mirror of
https://github.com/Monadical-SAS/reflector.git
synced 2026-04-25 06:35:18 +00:00
283 lines
400 KiB
JavaScript
283 lines
400 KiB
JavaScript
var gp=l=>{throw TypeError(l)};var cf=(l,i,s)=>i.has(l)||gp("Cannot "+s);var E=(l,i,s)=>(cf(l,i,"read from private field"),s?s.call(l):i.get(l)),oe=(l,i,s)=>i.has(l)?gp("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(l):i.set(l,s),te=(l,i,s,u)=>(cf(l,i,"write to private field"),u?u.call(l,s):i.set(l,s),s),we=(l,i,s)=>(cf(l,i,"access private method"),s);var Nu=(l,i,s,u)=>({set _(o){te(l,i,o,s)},get _(){return E(l,i,u)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&u(m)}).observe(document,{childList:!0,subtree:!0});function s(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(o){if(o.ep)return;o.ep=!0;const d=s(o);fetch(o.href,d)}})();function zv(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var of={exports:{}},ks={};/**
|
||
* @license React
|
||
* react-jsx-runtime.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var xp;function ub(){if(xp)return ks;xp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(u,o,d){var m=null;if(d!==void 0&&(m=""+d),o.key!==void 0&&(m=""+o.key),"key"in o){d={};for(var p in o)p!=="key"&&(d[p]=o[p])}else d=o;return o=d.ref,{$$typeof:l,type:u,key:m,ref:o!==void 0?o:null,props:d}}return ks.Fragment=i,ks.jsx=s,ks.jsxs=s,ks}var bp;function cb(){return bp||(bp=1,of.exports=ub()),of.exports}var f=cb();const Ol=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ha=globalThis,Vs="10.46.0";function Bu(){return Kf(Ha),Ha}function Kf(l){const i=l.__SENTRY__=l.__SENTRY__||{};return i.version=i.version||Vs,i[Vs]=i[Vs]||{}}function Zf(l,i,s=Ha){const u=s.__SENTRY__=s.__SENTRY__||{},o=u[Vs]=u[Vs]||{};return o[l]||(o[l]=i())}const ob="Sentry Logger ",Sp={};function Uv(l){if(!("console"in Ha))return l();const i=Ha.console,s={},u=Object.keys(Sp);u.forEach(o=>{const d=Sp[o];s[o]=i[o],i[o]=d});try{return l()}finally{u.forEach(o=>{i[o]=s[o]})}}function fb(){Jf().enabled=!0}function db(){Jf().enabled=!1}function kv(){return Jf().enabled}function hb(...l){Ff("log",...l)}function mb(...l){Ff("warn",...l)}function yb(...l){Ff("error",...l)}function Ff(l,...i){Ol&&kv()&&Uv(()=>{Ha.console[l](`${ob}[${l}]:`,...i)})}function Jf(){return Ol?Zf("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const Na={enable:fb,disable:db,isEnabled:kv,log:hb,warn:mb,error:yb},Lv=Object.prototype.toString;function pb(l){switch(Lv.call(l)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return bb(l,Error)}}function vb(l,i){return Lv.call(l)===`[object ${i}]`}function gb(l){return vb(l,"Object")}function xb(l){return!!(l!=null&&l.then&&typeof l.then=="function")}function bb(l,i){try{return l instanceof i}catch{return!1}}function Sb(l,i,s){try{Object.defineProperty(l,i,{value:s,writable:!0,configurable:!0})}catch{Ol&&Na.log(`Failed to add non-enumerable property "${i}" to object`,l)}}let bi;function Qu(l){if(bi!==void 0)return bi?bi(l):l();const i=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),s=Ha;return i in s&&typeof s[i]=="function"?(bi=s[i],bi(l)):(bi=null,l())}function _f(){return Qu(()=>Math.random())}function Eb(){return Qu(()=>Date.now())}function _b(l,i=0){return typeof l!="string"||i===0||l.length<=i?l:`${l.slice(0,i)}...`}function Nb(){const l=Ha;return l.crypto||l.msCrypto}let ff;function jb(){return _f()*16}function Ys(l=Nb()){try{if(l!=null&&l.randomUUID)return Qu(()=>l.randomUUID()).replace(/-/g,"")}catch{}return ff||(ff="10000000100040008000"+1e11),ff.replace(/[018]/g,i=>(i^(jb()&15)>>i/4).toString(16))}const Hv=1e3;function qv(){return Eb()/Hv}function wb(){const{performance:l}=Ha;if(!(l!=null&&l.now)||!l.timeOrigin)return qv;const i=l.timeOrigin;return()=>(i+Qu(()=>l.now()))/Hv}let Ep;function Tb(){return(Ep??(Ep=wb()))()}function Ab(l,i={}){if(i.user&&(!l.ipAddress&&i.user.ip_address&&(l.ipAddress=i.user.ip_address),!l.did&&!i.did&&(l.did=i.user.id||i.user.email||i.user.username)),l.timestamp=i.timestamp||Tb(),i.abnormal_mechanism&&(l.abnormal_mechanism=i.abnormal_mechanism),i.ignoreDuration&&(l.ignoreDuration=i.ignoreDuration),i.sid&&(l.sid=i.sid.length===32?i.sid:Ys()),i.init!==void 0&&(l.init=i.init),!l.did&&i.did&&(l.did=`${i.did}`),typeof i.started=="number"&&(l.started=i.started),l.ignoreDuration)l.duration=void 0;else if(typeof i.duration=="number")l.duration=i.duration;else{const s=l.timestamp-l.started;l.duration=s>=0?s:0}i.release&&(l.release=i.release),i.environment&&(l.environment=i.environment),!l.ipAddress&&i.ipAddress&&(l.ipAddress=i.ipAddress),!l.userAgent&&i.userAgent&&(l.userAgent=i.userAgent),typeof i.errors=="number"&&(l.errors=i.errors),i.status&&(l.status=i.status)}function Bv(l,i,s=2){if(!i||typeof i!="object"||s<=0)return i;if(l&&Object.keys(i).length===0)return l;const u={...l};for(const o in i)Object.prototype.hasOwnProperty.call(i,o)&&(u[o]=Bv(u[o],i[o],s-1));return u}function _p(){return Ys()}const Nf="_sentrySpan";function Np(l,i){i?Sb(l,Nf,i):delete l[Nf]}function jp(l){return l[Nf]}const Rb=100;class $n{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:_p(),sampleRand:_f()}}clone(){const i=new $n;return i._breadcrumbs=[...this._breadcrumbs],i._tags={...this._tags},i._attributes={...this._attributes},i._extra={...this._extra},i._contexts={...this._contexts},this._contexts.flags&&(i._contexts.flags={values:[...this._contexts.flags.values]}),i._user=this._user,i._level=this._level,i._session=this._session,i._transactionName=this._transactionName,i._fingerprint=this._fingerprint,i._eventProcessors=[...this._eventProcessors],i._attachments=[...this._attachments],i._sdkProcessingMetadata={...this._sdkProcessingMetadata},i._propagationContext={...this._propagationContext},i._client=this._client,i._lastEventId=this._lastEventId,i._conversationId=this._conversationId,Np(i,jp(this)),i}setClient(i){this._client=i}setLastEventId(i){this._lastEventId=i}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(i){this._scopeListeners.push(i)}addEventProcessor(i){return this._eventProcessors.push(i),this}setUser(i){return this._user=i||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Ab(this._session,{user:i}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(i){return this._conversationId=i||void 0,this._notifyScopeListeners(),this}setTags(i){return this._tags={...this._tags,...i},this._notifyScopeListeners(),this}setTag(i,s){return this.setTags({[i]:s})}setAttributes(i){return this._attributes={...this._attributes,...i},this._notifyScopeListeners(),this}setAttribute(i,s){return this.setAttributes({[i]:s})}removeAttribute(i){return i in this._attributes&&(delete this._attributes[i],this._notifyScopeListeners()),this}setExtras(i){return this._extra={...this._extra,...i},this._notifyScopeListeners(),this}setExtra(i,s){return this._extra={...this._extra,[i]:s},this._notifyScopeListeners(),this}setFingerprint(i){return this._fingerprint=i,this._notifyScopeListeners(),this}setLevel(i){return this._level=i,this._notifyScopeListeners(),this}setTransactionName(i){return this._transactionName=i,this._notifyScopeListeners(),this}setContext(i,s){return s===null?delete this._contexts[i]:this._contexts[i]=s,this._notifyScopeListeners(),this}setSession(i){return i?this._session=i:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(i){if(!i)return this;const s=typeof i=="function"?i(this):i,u=s instanceof $n?s.getScopeData():gb(s)?i:void 0,{tags:o,attributes:d,extra:m,user:p,contexts:x,level:v,fingerprint:b=[],propagationContext:g,conversationId:N}=u||{};return this._tags={...this._tags,...o},this._attributes={...this._attributes,...d},this._extra={...this._extra,...m},this._contexts={...this._contexts,...x},p&&Object.keys(p).length&&(this._user=p),v&&(this._level=v),b.length&&(this._fingerprint=b),g&&(this._propagationContext=g),N&&(this._conversationId=N),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Np(this,void 0),this._attachments=[],this.setPropagationContext({traceId:_p(),sampleRand:_f()}),this._notifyScopeListeners(),this}addBreadcrumb(i,s){var d;const u=typeof s=="number"?s:Rb;if(u<=0)return this;const o={timestamp:qv(),...i,message:i.message?_b(i.message,2048):i.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>u&&(this._breadcrumbs=this._breadcrumbs.slice(-u),(d=this._client)==null||d.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(i){return this._attachments.push(i),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:jp(this),conversationId:this._conversationId}}setSDKProcessingMetadata(i){return this._sdkProcessingMetadata=Bv(this._sdkProcessingMetadata,i,2),this}setPropagationContext(i){return this._propagationContext=i,this}getPropagationContext(){return this._propagationContext}captureException(i,s){const u=(s==null?void 0:s.event_id)||Ys();if(!this._client)return Ol&&Na.warn("No client configured on scope - will not capture exception!"),u;const o=new Error("Sentry syntheticException");return this._client.captureException(i,{originalException:i,syntheticException:o,...s,event_id:u},this),u}captureMessage(i,s,u){const o=(u==null?void 0:u.event_id)||Ys();if(!this._client)return Ol&&Na.warn("No client configured on scope - will not capture message!"),o;const d=(u==null?void 0:u.syntheticException)??new Error(i);return this._client.captureMessage(i,s,{originalException:i,syntheticException:d,...u,event_id:o},this),o}captureEvent(i,s){const u=i.event_id||(s==null?void 0:s.event_id)||Ys();return this._client?(this._client.captureEvent(i,{...s,event_id:u},this),u):(Ol&&Na.warn("No client configured on scope - will not capture event!"),u)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(i=>{i(this)}),this._notifyingListeners=!1)}}function Cb(){return Zf("defaultCurrentScope",()=>new $n)}function Ob(){return Zf("defaultIsolationScope",()=>new $n)}const wp=l=>l instanceof Promise&&!l[Qv],Qv=Symbol("chained PromiseLike"),Mb=(l,i,s)=>{const u=l.then(o=>(i(o),o),o=>{throw s(o),o});return wp(u)&&wp(l)?u:Db(l,u)},Db=(l,i)=>{let s=!1;for(const u in l){if(u in i)continue;s=!0;const o=l[u];typeof o=="function"?Object.defineProperty(i,u,{value:(...d)=>o.apply(l,d),enumerable:!0,configurable:!0,writable:!0}):i[u]=o}return s&&Object.assign(i,{[Qv]:!0}),i};class zb{constructor(i,s){let u;i?u=i:u=new $n;let o;s?o=s:o=new $n,this._stack=[{scope:u}],this._isolationScope=o}withScope(i){const s=this._pushScope();let u;try{u=i(s)}catch(o){throw this._popScope(),o}return xb(u)?Mb(u,()=>this._popScope(),()=>this._popScope()):(this._popScope(),u)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const i=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:i}),i}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function Li(){const l=Bu(),i=Kf(l);return i.stack=i.stack||new zb(Cb(),Ob())}function Ub(l){return Li().withScope(l)}function kb(l,i){const s=Li();return s.withScope(()=>(s.getStackTop().scope=l,i(l)))}function Tp(l){return Li().withScope(()=>l(Li().getIsolationScope()))}function Lb(){return{withIsolationScope:Tp,withScope:Ub,withSetScope:kb,withSetIsolationScope:(l,i)=>Tp(i),getCurrentScope:()=>Li().getScope(),getIsolationScope:()=>Li().getIsolationScope()}}function $f(l){const i=Kf(l);return i.acs?i.acs:Lb()}function Wf(){const l=Bu();return $f(l).getCurrentScope()}function Hb(){const l=Bu();return $f(l).getIsolationScope()}function Vv(...l){const i=Bu(),s=$f(i);if(l.length===2){const[u,o]=l;return u?s.withSetScope(u,o):s.withScope(o)}return s.withScope(l[0])}function Yv(){return Wf().getClient()}const qb=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function Bb(l){return l==="http"||l==="https"}function Qb(l,i=!1){const{host:s,path:u,pass:o,port:d,projectId:m,protocol:p,publicKey:x}=l;return`${p}://${x}${i&&o?`:${o}`:""}@${s}${d?`:${d}`:""}/${u&&`${u}/`}${m}`}function Vb(l){const i=qb.exec(l);if(!i){Uv(()=>{console.error(`Invalid Sentry Dsn: ${l}`)});return}const[s,u,o="",d="",m="",p=""]=i.slice(1);let x="",v=p;const b=v.split("/");if(b.length>1&&(x=b.slice(0,-1).join("/"),v=b.pop()),v){const g=v.match(/^\d+/);g&&(v=g[0])}return Gv({host:d,pass:o,path:x,projectId:v,port:m,protocol:s,publicKey:u})}function Gv(l){return{protocol:l.protocol,publicKey:l.publicKey||"",pass:l.pass||"",host:l.host,port:l.port||"",path:l.path||"",projectId:l.projectId}}function Yb(l){if(!Ol)return!0;const{port:i,projectId:s,protocol:u}=l;return["protocol","publicKey","host","projectId"].find(m=>l[m]?!1:(Na.error(`Invalid Sentry Dsn: ${m} missing`),!0))?!1:s.match(/^\d+$/)?Bb(u)?i&&isNaN(parseInt(i,10))?(Na.error(`Invalid Sentry Dsn: Invalid port ${i}`),!1):!0:(Na.error(`Invalid Sentry Dsn: Invalid protocol ${u}`),!1):(Na.error(`Invalid Sentry Dsn: Invalid projectId ${s}`),!1)}function Gb(l){const i=typeof l=="string"?Vb(l):Gv(l);if(!(!i||!Yb(i)))return i}function Xb(l){if(l)return Kb(l)?{captureContext:l}:Fb(l)?{captureContext:l}:l}function Kb(l){return l instanceof $n||typeof l=="function"}const Zb=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function Fb(l){return Object.keys(l).some(i=>Zb.includes(i))}function Jb(l,i){return Wf().captureException(l,Xb(i))}function $b(){return Hb().lastEventId()}function Wb(l){const i=l.protocol?`${l.protocol}:`:"",s=l.port?`:${l.port}`:"";return`${i}//${l.host}${s}${l.path?`/${l.path}`:""}/api/`}function Ib(l,i){const s=Gb(l);if(!s)return"";const u=`${Wb(s)}embed/error-page/`;let o=`dsn=${Qb(s)}`;for(const d in i)if(d!=="dsn"&&d!=="onClose")if(d==="user"){const m=i.user;if(!m)continue;m.name&&(o+=`&name=${encodeURIComponent(m.name)}`),m.email&&(o+=`&email=${encodeURIComponent(m.email)}`)}else o+=`&${encodeURIComponent(d)}=${encodeURIComponent(i[d])}`;return`${u}?${o}`}const ju=Ha,Ap=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Rp(l={}){const i=ju.document,s=(i==null?void 0:i.head)||(i==null?void 0:i.body);if(!s){Ap&&Na.error("[showReportDialog] Global document not defined");return}const u=Wf(),o=Yv(),d=o==null?void 0:o.getDsn();if(!d){Ap&&Na.error("[showReportDialog] DSN not configured");return}const m={...l,user:{...u.getUser(),...l.user},eventId:l.eventId||$b()},p=ju.document.createElement("script");p.async=!0,p.crossOrigin="anonymous",p.src=Ib(d,m);const{onLoad:x,onClose:v}=m;if(x&&(p.onload=x),v){const b=g=>{if(g.data==="__sentry_reportdialog_closed__")try{v()}finally{ju.removeEventListener("message",b)}};ju.addEventListener("message",b)}s.appendChild(p)}var df={exports:{}},be={};/**
|
||
* @license React
|
||
* react.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Cp;function Pb(){if(Cp)return be;Cp=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),N=Symbol.iterator;function T(w){return w===null||typeof w!="object"?null:(w=N&&w[N]||w["@@iterator"],typeof w=="function"?w:null)}var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,H={};function G(w,Y,I){this.props=w,this.context=Y,this.refs=H,this.updater=I||B}G.prototype.isReactComponent={},G.prototype.setState=function(w,Y){if(typeof w!="object"&&typeof w!="function"&&w!=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,w,Y,"setState")},G.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function Q(){}Q.prototype=G.prototype;function K(w,Y,I){this.props=w,this.context=Y,this.refs=H,this.updater=I||B}var Z=K.prototype=new Q;Z.constructor=K,U(Z,G.prototype),Z.isPureReactComponent=!0;var ee=Array.isArray;function ve(){}var re={H:null,A:null,T:null,S:null},ce=Object.prototype.hasOwnProperty;function xe(w,Y,I){var W=I.ref;return{$$typeof:l,type:w,key:Y,ref:W!==void 0?W:null,props:I}}function Ae(w,Y){return xe(w.type,Y,w.props)}function ze(w){return typeof w=="object"&&w!==null&&w.$$typeof===l}function fe(w){var Y={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(I){return Y[I]})}var he=/\/+/g;function Ne(w,Y){return typeof w=="object"&&w!==null&&w.key!=null?fe(""+w.key):Y.toString(36)}function pe(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(ve,ve):(w.status="pending",w.then(function(Y){w.status==="pending"&&(w.status="fulfilled",w.value=Y)},function(Y){w.status==="pending"&&(w.status="rejected",w.reason=Y)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function L(w,Y,I,W,ae){var ge=typeof w;(ge==="undefined"||ge==="boolean")&&(w=null);var Re=!1;if(w===null)Re=!0;else switch(ge){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(w.$$typeof){case l:case i:Re=!0;break;case b:return Re=w._init,L(Re(w._payload),Y,I,W,ae)}}if(Re)return ae=ae(w),Re=W===""?"."+Ne(w,0):W,ee(ae)?(I="",Re!=null&&(I=Re.replace(he,"$&/")+"/"),L(ae,Y,I,"",function(dn){return dn})):ae!=null&&(ze(ae)&&(ae=Ae(ae,I+(ae.key==null||w&&w.key===ae.key?"":(""+ae.key).replace(he,"$&/")+"/")+Re)),Y.push(ae)),1;Re=0;var tt=W===""?".":W+":";if(ee(w))for(var Je=0;Je<w.length;Je++)W=w[Je],ge=tt+Ne(W,Je),Re+=L(W,Y,I,ge,ae);else if(Je=T(w),typeof Je=="function")for(w=Je.call(w),Je=0;!(W=w.next()).done;)W=W.value,ge=tt+Ne(W,Je++),Re+=L(W,Y,I,ge,ae);else if(ge==="object"){if(typeof w.then=="function")return L(pe(w),Y,I,W,ae);throw Y=String(w),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Re}function F(w,Y,I){if(w==null)return w;var W=[],ae=0;return L(w,W,"","",function(ge){return Y.call(I,ge,ae++)}),W}function ie(w){if(w._status===-1){var Y=w._result;Y=Y(),Y.then(function(I){(w._status===0||w._status===-1)&&(w._status=1,w._result=I)},function(I){(w._status===0||w._status===-1)&&(w._status=2,w._result=I)}),w._status===-1&&(w._status=0,w._result=Y)}if(w._status===1)return w._result.default;throw w._result}var Se=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},me={map:F,forEach:function(w,Y,I){F(w,function(){Y.apply(this,arguments)},I)},count:function(w){var Y=0;return F(w,function(){Y++}),Y},toArray:function(w){return F(w,function(Y){return Y})||[]},only:function(w){if(!ze(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return be.Activity=g,be.Children=me,be.Component=G,be.Fragment=s,be.Profiler=o,be.PureComponent=K,be.StrictMode=u,be.Suspense=x,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=re,be.__COMPILER_RUNTIME={__proto__:null,c:function(w){return re.H.useMemoCache(w)}},be.cache=function(w){return function(){return w.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(w,Y,I){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var W=U({},w.props),ae=w.key;if(Y!=null)for(ge in Y.key!==void 0&&(ae=""+Y.key),Y)!ce.call(Y,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&Y.ref===void 0||(W[ge]=Y[ge]);var ge=arguments.length-2;if(ge===1)W.children=I;else if(1<ge){for(var Re=Array(ge),tt=0;tt<ge;tt++)Re[tt]=arguments[tt+2];W.children=Re}return xe(w.type,ae,W)},be.createContext=function(w){return w={$$typeof:m,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:d,_context:w},w},be.createElement=function(w,Y,I){var W,ae={},ge=null;if(Y!=null)for(W in Y.key!==void 0&&(ge=""+Y.key),Y)ce.call(Y,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ae[W]=Y[W]);var Re=arguments.length-2;if(Re===1)ae.children=I;else if(1<Re){for(var tt=Array(Re),Je=0;Je<Re;Je++)tt[Je]=arguments[Je+2];ae.children=tt}if(w&&w.defaultProps)for(W in Re=w.defaultProps,Re)ae[W]===void 0&&(ae[W]=Re[W]);return xe(w,ge,ae)},be.createRef=function(){return{current:null}},be.forwardRef=function(w){return{$$typeof:p,render:w}},be.isValidElement=ze,be.lazy=function(w){return{$$typeof:b,_payload:{_status:-1,_result:w},_init:ie}},be.memo=function(w,Y){return{$$typeof:v,type:w,compare:Y===void 0?null:Y}},be.startTransition=function(w){var Y=re.T,I={};re.T=I;try{var W=w(),ae=re.S;ae!==null&&ae(I,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(ve,Se)}catch(ge){Se(ge)}finally{Y!==null&&I.types!==null&&(Y.types=I.types),re.T=Y}},be.unstable_useCacheRefresh=function(){return re.H.useCacheRefresh()},be.use=function(w){return re.H.use(w)},be.useActionState=function(w,Y,I){return re.H.useActionState(w,Y,I)},be.useCallback=function(w,Y){return re.H.useCallback(w,Y)},be.useContext=function(w){return re.H.useContext(w)},be.useDebugValue=function(){},be.useDeferredValue=function(w,Y){return re.H.useDeferredValue(w,Y)},be.useEffect=function(w,Y){return re.H.useEffect(w,Y)},be.useEffectEvent=function(w){return re.H.useEffectEvent(w)},be.useId=function(){return re.H.useId()},be.useImperativeHandle=function(w,Y,I){return re.H.useImperativeHandle(w,Y,I)},be.useInsertionEffect=function(w,Y){return re.H.useInsertionEffect(w,Y)},be.useLayoutEffect=function(w,Y){return re.H.useLayoutEffect(w,Y)},be.useMemo=function(w,Y){return re.H.useMemo(w,Y)},be.useOptimistic=function(w,Y){return re.H.useOptimistic(w,Y)},be.useReducer=function(w,Y,I){return re.H.useReducer(w,Y,I)},be.useRef=function(w){return re.H.useRef(w)},be.useState=function(w){return re.H.useState(w)},be.useSyncExternalStore=function(w,Y,I){return re.H.useSyncExternalStore(w,Y,I)},be.useTransition=function(){return re.H.useTransition()},be.version="19.2.4",be}var Op;function If(){return Op||(Op=1,df.exports=Pb()),df.exports}var A=If();const Le=zv(A);function e1(l){const i=l.match(/^([^.]+)/);return i!==null&&parseInt(i[0])>=17}function t1(l,i){const s=new WeakSet;function u(o,d){if(!s.has(o)){if(o.cause)return s.add(o),u(o.cause,d);o.cause=d}}u(l,i)}function a1(l,{componentStack:i},s){if(e1(A.version)&&pb(l)&&i){const u=new Error(l.message);u.name=`React ErrorBoundary ${l.name}`,u.stack=i,t1(l,u)}return Vv(u=>(u.setContext("react",{componentStack:i}),Jb(l,s)))}const n1=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,hf={componentStack:null,error:null,eventId:null};class l1 extends A.Component{constructor(i){super(i),this.state=hf,this._openFallbackReportDialog=!0;const s=Yv();s&&i.showDialog&&(this._openFallbackReportDialog=!1,this._cleanupHook=s.on("afterSendEvent",u=>{!u.type&&this._lastEventId&&u.event_id===this._lastEventId&&Rp({...i.dialogOptions,eventId:this._lastEventId})}))}componentDidCatch(i,s){const{componentStack:u}=s,{beforeCapture:o,onError:d,showDialog:m,dialogOptions:p}=this.props;Vv(x=>{o&&o(x,i,u);const v=this.props.handled!=null?this.props.handled:!!this.props.fallback,b=a1(i,s,{mechanism:{handled:v,type:"auto.function.react.error_boundary"}});d&&d(i,u,b),m&&(this._lastEventId=b,this._openFallbackReportDialog&&Rp({...p,eventId:b})),this.setState({error:i,componentStack:u,eventId:b})})}componentDidMount(){const{onMount:i}=this.props;i&&i()}componentWillUnmount(){const{error:i,componentStack:s,eventId:u}=this.state,{onUnmount:o}=this.props;o&&(this.state===hf?o(null,null,null):o(i,s,u)),this._cleanupHook&&(this._cleanupHook(),this._cleanupHook=void 0)}resetErrorBoundary(){const{onReset:i}=this.props,{error:s,componentStack:u,eventId:o}=this.state;i&&i(s,u,o),this.setState(hf)}render(){const{fallback:i,children:s}=this.props,u=this.state;if(u.componentStack===null)return typeof s=="function"?s():s;const o=typeof i=="function"?A.createElement(i,{error:u.error,componentStack:u.componentStack,resetError:()=>this.resetErrorBoundary(),eventId:u.eventId}):i;return A.isValidElement(o)?o:(i&&n1&&Na.warn("fallback did not produce a valid ReactElement"),null)}}var mf={exports:{}},Ls={},yf={exports:{}},pf={};/**
|
||
* @license React
|
||
* scheduler.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var Mp;function i1(){return Mp||(Mp=1,(function(l){function i(L,F){var ie=L.length;L.push(F);e:for(;0<ie;){var Se=ie-1>>>1,me=L[Se];if(0<o(me,F))L[Se]=F,L[ie]=me,ie=Se;else break e}}function s(L){return L.length===0?null:L[0]}function u(L){if(L.length===0)return null;var F=L[0],ie=L.pop();if(ie!==F){L[0]=ie;e:for(var Se=0,me=L.length,w=me>>>1;Se<w;){var Y=2*(Se+1)-1,I=L[Y],W=Y+1,ae=L[W];if(0>o(I,ie))W<me&&0>o(ae,I)?(L[Se]=ae,L[W]=ie,Se=W):(L[Se]=I,L[Y]=ie,Se=Y);else if(W<me&&0>o(ae,ie))L[Se]=ae,L[W]=ie,Se=W;else break e}}return F}function o(L,F){var ie=L.sortIndex-F.sortIndex;return ie!==0?ie:L.id-F.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;l.unstable_now=function(){return d.now()}}else{var m=Date,p=m.now();l.unstable_now=function(){return m.now()-p}}var x=[],v=[],b=1,g=null,N=3,T=!1,B=!1,U=!1,H=!1,G=typeof setTimeout=="function"?setTimeout:null,Q=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function Z(L){for(var F=s(v);F!==null;){if(F.callback===null)u(v);else if(F.startTime<=L)u(v),F.sortIndex=F.expirationTime,i(x,F);else break;F=s(v)}}function ee(L){if(U=!1,Z(L),!B)if(s(x)!==null)B=!0,ve||(ve=!0,fe());else{var F=s(v);F!==null&&pe(ee,F.startTime-L)}}var ve=!1,re=-1,ce=5,xe=-1;function Ae(){return H?!0:!(l.unstable_now()-xe<ce)}function ze(){if(H=!1,ve){var L=l.unstable_now();xe=L;var F=!0;try{e:{B=!1,U&&(U=!1,Q(re),re=-1),T=!0;var ie=N;try{t:{for(Z(L),g=s(x);g!==null&&!(g.expirationTime>L&&Ae());){var Se=g.callback;if(typeof Se=="function"){g.callback=null,N=g.priorityLevel;var me=Se(g.expirationTime<=L);if(L=l.unstable_now(),typeof me=="function"){g.callback=me,Z(L),F=!0;break t}g===s(x)&&u(x),Z(L)}else u(x);g=s(x)}if(g!==null)F=!0;else{var w=s(v);w!==null&&pe(ee,w.startTime-L),F=!1}}break e}finally{g=null,N=ie,T=!1}F=void 0}}finally{F?fe():ve=!1}}}var fe;if(typeof K=="function")fe=function(){K(ze)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Ne=he.port2;he.port1.onmessage=ze,fe=function(){Ne.postMessage(null)}}else fe=function(){G(ze,0)};function pe(L,F){re=G(function(){L(l.unstable_now())},F)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(L){L.callback=null},l.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<L?Math.floor(1e3/L):5},l.unstable_getCurrentPriorityLevel=function(){return N},l.unstable_next=function(L){switch(N){case 1:case 2:case 3:var F=3;break;default:F=N}var ie=N;N=F;try{return L()}finally{N=ie}},l.unstable_requestPaint=function(){H=!0},l.unstable_runWithPriority=function(L,F){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var ie=N;N=L;try{return F()}finally{N=ie}},l.unstable_scheduleCallback=function(L,F,ie){var Se=l.unstable_now();switch(typeof ie=="object"&&ie!==null?(ie=ie.delay,ie=typeof ie=="number"&&0<ie?Se+ie:Se):ie=Se,L){case 1:var me=-1;break;case 2:me=250;break;case 5:me=1073741823;break;case 4:me=1e4;break;default:me=5e3}return me=ie+me,L={id:b++,callback:F,priorityLevel:L,startTime:ie,expirationTime:me,sortIndex:-1},ie>Se?(L.sortIndex=ie,i(v,L),s(x)===null&&L===s(v)&&(U?(Q(re),re=-1):U=!0,pe(ee,ie-Se))):(L.sortIndex=me,i(x,L),B||T||(B=!0,ve||(ve=!0,fe()))),L},l.unstable_shouldYield=Ae,l.unstable_wrapCallback=function(L){var F=N;return function(){var ie=N;N=F;try{return L.apply(this,arguments)}finally{N=ie}}}})(pf)),pf}var Dp;function s1(){return Dp||(Dp=1,yf.exports=i1()),yf.exports}var vf={exports:{}},Tt={};/**
|
||
* @license React
|
||
* react-dom.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var zp;function r1(){if(zp)return Tt;zp=1;var l=If();function i(x){var v="https://react.dev/errors/"+x;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)v+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+x+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var u={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(x,v,b){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:x,containerInfo:v,implementation:b}}var m=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(x,v){if(x==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,Tt.createPortal=function(x,v){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return d(x,v,null,b)},Tt.flushSync=function(x){var v=m.T,b=u.p;try{if(m.T=null,u.p=2,x)return x()}finally{m.T=v,u.p=b,u.d.f()}},Tt.preconnect=function(x,v){typeof x=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,u.d.C(x,v))},Tt.prefetchDNS=function(x){typeof x=="string"&&u.d.D(x)},Tt.preinit=function(x,v){if(typeof x=="string"&&v&&typeof v.as=="string"){var b=v.as,g=p(b,v.crossOrigin),N=typeof v.integrity=="string"?v.integrity:void 0,T=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;b==="style"?u.d.S(x,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:g,integrity:N,fetchPriority:T}):b==="script"&&u.d.X(x,{crossOrigin:g,integrity:N,fetchPriority:T,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},Tt.preinitModule=function(x,v){if(typeof x=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var b=p(v.as,v.crossOrigin);u.d.M(x,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&u.d.M(x)},Tt.preload=function(x,v){if(typeof x=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var b=v.as,g=p(b,v.crossOrigin);u.d.L(x,b,{crossOrigin:g,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},Tt.preloadModule=function(x,v){if(typeof x=="string")if(v){var b=p(v.as,v.crossOrigin);u.d.m(x,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else u.d.m(x)},Tt.requestFormReset=function(x){u.d.r(x)},Tt.unstable_batchedUpdates=function(x,v){return x(v)},Tt.useFormState=function(x,v,b){return m.H.useFormState(x,v,b)},Tt.useFormStatus=function(){return m.H.useHostTransitionStatus()},Tt.version="19.2.4",Tt}var Up;function u1(){if(Up)return vf.exports;Up=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),vf.exports=r1(),vf.exports}/**
|
||
* @license React
|
||
* react-dom-client.production.js
|
||
*
|
||
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE file in the root directory of this source tree.
|
||
*/var kp;function c1(){if(kp)return Ls;kp=1;var l=s1(),i=If(),s=u1();function u(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(d(e)!==e)throw Error(u(188))}function v(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(u(188));return t!==e?null:e}for(var a=e,n=t;;){var r=a.return;if(r===null)break;var c=r.alternate;if(c===null){if(n=r.return,n!==null){a=n;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===a)return x(r),e;if(c===n)return x(r),t;c=c.sibling}throw Error(u(188))}if(a.return!==n.return)a=r,n=c;else{for(var h=!1,y=r.child;y;){if(y===a){h=!0,a=r,n=c;break}if(y===n){h=!0,n=r,a=c;break}y=y.sibling}if(!h){for(y=c.child;y;){if(y===a){h=!0,a=c,n=r;break}if(y===n){h=!0,n=c,a=r;break}y=y.sibling}if(!h)throw Error(u(189))}}if(a.alternate!==n)throw Error(u(190))}if(a.tag!==3)throw Error(u(188));return a.stateNode.current===a?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,N=Symbol.for("react.element"),T=Symbol.for("react.transitional.element"),B=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),H=Symbol.for("react.strict_mode"),G=Symbol.for("react.profiler"),Q=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Z=Symbol.for("react.forward_ref"),ee=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),re=Symbol.for("react.memo"),ce=Symbol.for("react.lazy"),xe=Symbol.for("react.activity"),Ae=Symbol.for("react.memo_cache_sentinel"),ze=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=ze&&e[ze]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function Ne(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case G:return"Profiler";case H:return"StrictMode";case ee:return"Suspense";case ve:return"SuspenseList";case xe:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case B:return"Portal";case K:return e.displayName||"Context";case Q:return(e._context.displayName||"Context")+".Consumer";case Z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case re:return t=e.displayName||null,t!==null?t:Ne(e.type)||"Memo";case ce:t=e._payload,e=e._init;try{return Ne(e(t))}catch{}}return null}var pe=Array.isArray,L=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ie={pending:!1,data:null,method:null,action:null},Se=[],me=-1;function w(e){return{current:e}}function Y(e){0>me||(e.current=Se[me],Se[me]=null,me--)}function I(e,t){me++,Se[me]=e.current,e.current=t}var W=w(null),ae=w(null),ge=w(null),Re=w(null);function tt(e,t){switch(I(ge,t),I(ae,e),I(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Qy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Qy(t),e=Vy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(W),I(W,e)}function Je(){Y(W),Y(ae),Y(ge)}function dn(e){e.memoizedState!==null&&I(Re,e);var t=W.current,a=Vy(t,e.type);t!==a&&(I(ae,e),I(W,a))}function hn(e){ae.current===e&&(Y(W),Y(ae)),Re.current===e&&(Y(Re),Ms._currentValue=ie)}var Pn,lr;function Ta(e){if(Pn===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Pn=t&&t[1]||"",lr=-1<a.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Pn+e+lr}var Yi=!1;function zl(e,t){if(!e||Yi)return"";Yi=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(k){var z=k}Reflect.construct(e,[],X)}else{try{X.call()}catch(k){z=k}e.call(X.prototype)}}else{try{throw Error()}catch(k){z=k}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(k){if(k&&z&&typeof k.stack=="string")return[k.stack,z.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=n.DetermineComponentFrameRoot(),h=c[0],y=c[1];if(h&&y){var S=h.split(`
|
||
`),M=y.split(`
|
||
`);for(r=n=0;n<S.length&&!S[n].includes("DetermineComponentFrameRoot");)n++;for(;r<M.length&&!M[r].includes("DetermineComponentFrameRoot");)r++;if(n===S.length||r===M.length)for(n=S.length-1,r=M.length-1;1<=n&&0<=r&&S[n]!==M[r];)r--;for(;1<=n&&0<=r;n--,r--)if(S[n]!==M[r]){if(n!==1||r!==1)do if(n--,r--,0>r||S[n]!==M[r]){var q=`
|
||
`+S[n].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=n&&0<=r);break}}}finally{Yi=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Ta(a):""}function ir(e,t){switch(e.tag){case 26:case 27:case 5:return Ta(e.type);case 16:return Ta("Lazy");case 13:return e.child!==t&&t!==null?Ta("Suspense Fallback"):Ta("Suspense");case 19:return Ta("SuspenseList");case 0:case 15:return zl(e.type,!1);case 11:return zl(e.type.render,!1);case 1:return zl(e.type,!0);case 31:return Ta("Activity");default:return""}}function sr(e){try{var t="",a=null;do t+=ir(e,a),a=e,e=e.return;while(e);return t}catch(n){return`
|
||
Error generating stack: `+n.message+`
|
||
`+n.stack}}var Gi=Object.prototype.hasOwnProperty,rr=l.unstable_scheduleCallback,Ul=l.unstable_cancelCallback,_=l.unstable_shouldYield,C=l.unstable_requestPaint,D=l.unstable_now,P=l.unstable_getCurrentPriorityLevel,J=l.unstable_ImmediatePriority,$=l.unstable_UserBlockingPriority,le=l.unstable_NormalPriority,Ee=l.unstable_LowPriority,He=l.unstable_IdlePriority,Rt=l.log,aa=l.unstable_setDisableYieldValue,ct=null,Ct=null;function na(e){if(typeof Rt=="function"&&aa(e),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(ct,e)}catch{}}var St=Math.clz32?Math.clz32:Fu,Zu=Math.log,ur=Math.LN2;function Fu(e){return e>>>=0,e===0?32:31-(Zu(e)/ur|0)|0}var el=256,cr=262144,or=4194304;function tl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function fr(e,t,a){var n=e.pendingLanes;if(n===0)return 0;var r=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=n&134217727;return y!==0?(n=y&~c,n!==0?r=tl(n):(h&=y,h!==0?r=tl(h):a||(a=y&~e,a!==0&&(r=tl(a))))):(y=n&~c,y!==0?r=tl(y):h!==0?r=tl(h):a||(a=n&~e,a!==0&&(r=tl(a)))),r===0?0:t!==0&&t!==r&&(t&c)===0&&(c=r&-r,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:r}function Xi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Jg(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ed(){var e=or;return or<<=1,(or&62914560)===0&&(or=4194304),e}function Ju(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Ki(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $g(e,t,a,n,r,c){var h=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,M=e.hiddenUpdates;for(a=h&~a;0<a;){var q=31-St(a),X=1<<q;y[q]=0,S[q]=-1;var z=M[q];if(z!==null)for(M[q]=null,q=0;q<z.length;q++){var k=z[q];k!==null&&(k.lane&=-536870913)}a&=~X}n!==0&&_d(e,n,0),c!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function _d(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var n=31-St(t);e.entangledLanes|=t,e.entanglements[n]=e.entanglements[n]|1073741824|a&261930}function Nd(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var n=31-St(a),r=1<<n;r&t|e[n]&t&&(e[n]|=t),a&=~r}}function jd(e,t){var a=t&-t;return a=(a&42)!==0?1:$u(a),(a&(e.suspendedLanes|t))!==0?0:a}function $u(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function wd(){var e=F.p;return e!==0?e:(e=window.event,e===void 0?32:fp(e.type))}function Td(e,t){var a=F.p;try{return F.p=e,t()}finally{F.p=a}}var mn=Math.random().toString(36).slice(2),Et="__reactFiber$"+mn,kt="__reactProps$"+mn,kl="__reactContainer$"+mn,Iu="__reactEvents$"+mn,Wg="__reactListeners$"+mn,Ig="__reactHandles$"+mn,Ad="__reactResources$"+mn,Zi="__reactMarker$"+mn;function Pu(e){delete e[Et],delete e[kt],delete e[Iu],delete e[Wg],delete e[Ig]}function Ll(e){var t=e[Et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[kl]||a[Et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Jy(e);e!==null;){if(a=e[Et])return a;e=Jy(e)}return t}e=a,a=e.parentNode}return null}function Hl(e){if(e=e[Et]||e[kl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Fi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(u(33))}function ql(e){var t=e[Ad];return t||(t=e[Ad]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function gt(e){e[Zi]=!0}var Rd=new Set,Cd={};function al(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(Cd[e]=t,e=0;e<t.length;e++)Rd.add(t[e])}var Pg=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]*$"),Od={},Md={};function e0(e){return Gi.call(Md,e)?!0:Gi.call(Od,e)?!1:Pg.test(e)?Md[e]=!0:(Od[e]=!0,!1)}function dr(e,t,a){if(e0(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var n=t.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function hr(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Ba(e,t,a,n){if(n===null)e.removeAttribute(a);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+n)}}function la(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Dd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function t0(e,t,a){var n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,c=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(h){a=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(h){a=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ec(e){if(!e._valueTracker){var t=Dd(e)?"checked":"value";e._valueTracker=t0(e,t,""+e[t])}}function zd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),n="";return e&&(n=Dd(e)?e.checked?"true":"false":e.value),e=n,e!==a?(t.setValue(e),!0):!1}function mr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var a0=/[\n"\\]/g;function ia(e){return e.replace(a0,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function tc(e,t,a,n,r,c,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+la(t)):e.value!==""+la(t)&&(e.value=""+la(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?ac(e,h,la(t)):a!=null?ac(e,h,la(a)):n!=null&&e.removeAttribute("value"),r==null&&c!=null&&(e.defaultChecked=!!c),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+la(y):e.removeAttribute("name")}function Ud(e,t,a,n,r,c,h,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){ec(e);return}a=a!=null?""+la(a):"",t=t!=null?""+la(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}n=n??r,n=typeof n!="function"&&typeof n!="symbol"&&!!n,e.checked=y?e.checked:!!n,e.defaultChecked=!!n,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),ec(e)}function ac(e,t,a){t==="number"&&mr(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ql(e,t,a,n){if(e=e.options,t){t={};for(var r=0;r<a.length;r++)t["$"+a[r]]=!0;for(a=0;a<e.length;a++)r=t.hasOwnProperty("$"+e[a].value),e[a].selected!==r&&(e[a].selected=r),r&&n&&(e[a].defaultSelected=!0)}else{for(a=""+la(a),t=null,r=0;r<e.length;r++){if(e[r].value===a){e[r].selected=!0,n&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function kd(e,t,a){if(t!=null&&(t=""+la(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+la(a):""}function Ld(e,t,a,n){if(t==null){if(n!=null){if(a!=null)throw Error(u(92));if(pe(n)){if(1<n.length)throw Error(u(93));n=n[0]}a=n}a==null&&(a=""),t=a}a=la(t),e.defaultValue=a,n=e.textContent,n===a&&n!==""&&n!==null&&(e.value=n),ec(e)}function Vl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var n0=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 Hd(e,t,a){var n=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?n?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":n?e.setProperty(t,a):typeof a!="number"||a===0||n0.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function qd(e,t,a){if(t!=null&&typeof t!="object")throw Error(u(62));if(e=e.style,a!=null){for(var n in a)!a.hasOwnProperty(n)||t!=null&&t.hasOwnProperty(n)||(n.indexOf("--")===0?e.setProperty(n,""):n==="float"?e.cssFloat="":e[n]="");for(var r in t)n=t[r],t.hasOwnProperty(r)&&a[r]!==n&&Hd(e,r,n)}else for(var c in t)t.hasOwnProperty(c)&&Hd(e,c,t[c])}function nc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var l0=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"]]),i0=/^[\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 yr(e){return i0.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qa(){}var lc=null;function ic(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yl=null,Gl=null;function Bd(e){var t=Hl(e);if(t&&(e=t.stateNode)){var a=e[kt]||null;e:switch(e=t.stateNode,t.type){case"input":if(tc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+ia(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var n=a[t];if(n!==e&&n.form===e.form){var r=n[kt]||null;if(!r)throw Error(u(90));tc(n,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<a.length;t++)n=a[t],n.form===e.form&&zd(n)}break e;case"textarea":kd(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ql(e,!!a.multiple,t,!1)}}}var sc=!1;function Qd(e,t,a){if(sc)return e(t,a);sc=!0;try{var n=e(t);return n}finally{if(sc=!1,(Yl!==null||Gl!==null)&&(au(),Yl&&(t=Yl,e=Gl,Gl=Yl=null,Bd(t),e)))for(t=0;t<e.length;t++)Bd(e[t])}}function Ji(e,t){var a=e.stateNode;if(a===null)return null;var n=a[kt]||null;if(n===null)return null;a=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(u(231,t,typeof a));return a}var Va=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),rc=!1;if(Va)try{var $i={};Object.defineProperty($i,"passive",{get:function(){rc=!0}}),window.addEventListener("test",$i,$i),window.removeEventListener("test",$i,$i)}catch{rc=!1}var yn=null,uc=null,pr=null;function Vd(){if(pr)return pr;var e,t=uc,a=t.length,n,r="value"in yn?yn.value:yn.textContent,c=r.length;for(e=0;e<a&&t[e]===r[e];e++);var h=a-e;for(n=1;n<=h&&t[a-n]===r[c-n];n++);return pr=r.slice(e,1<n?1-n:void 0)}function vr(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function gr(){return!0}function Yd(){return!1}function Lt(e){function t(a,n,r,c,h){this._reactName=a,this._targetInst=r,this.type=n,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?gr:Yd,this.isPropagationStopped=Yd,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=gr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=gr)},persist:function(){},isPersistent:gr}),t}var nl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xr=Lt(nl),Wi=g({},nl,{view:0,detail:0}),s0=Lt(Wi),cc,oc,Ii,br=g({},Wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:dc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ii&&(Ii&&e.type==="mousemove"?(cc=e.screenX-Ii.screenX,oc=e.screenY-Ii.screenY):oc=cc=0,Ii=e),cc)},movementY:function(e){return"movementY"in e?e.movementY:oc}}),Gd=Lt(br),r0=g({},br,{dataTransfer:0}),u0=Lt(r0),c0=g({},Wi,{relatedTarget:0}),fc=Lt(c0),o0=g({},nl,{animationName:0,elapsedTime:0,pseudoElement:0}),f0=Lt(o0),d0=g({},nl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),h0=Lt(d0),m0=g({},nl,{data:0}),Xd=Lt(m0),y0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},p0={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"},v0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function g0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=v0[e])?!!t[e]:!1}function dc(){return g0}var x0=g({},Wi,{key:function(e){if(e.key){var t=y0[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=vr(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?p0[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:dc,charCode:function(e){return e.type==="keypress"?vr(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?vr(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),b0=Lt(x0),S0=g({},br,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Kd=Lt(S0),E0=g({},Wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:dc}),_0=Lt(E0),N0=g({},nl,{propertyName:0,elapsedTime:0,pseudoElement:0}),j0=Lt(N0),w0=g({},br,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),T0=Lt(w0),A0=g({},nl,{newState:0,oldState:0}),R0=Lt(A0),C0=[9,13,27,32],hc=Va&&"CompositionEvent"in window,Pi=null;Va&&"documentMode"in document&&(Pi=document.documentMode);var O0=Va&&"TextEvent"in window&&!Pi,Zd=Va&&(!hc||Pi&&8<Pi&&11>=Pi),Fd=" ",Jd=!1;function $d(e,t){switch(e){case"keyup":return C0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xl=!1;function M0(e,t){switch(e){case"compositionend":return Wd(t);case"keypress":return t.which!==32?null:(Jd=!0,Fd);case"textInput":return e=t.data,e===Fd&&Jd?null:e;default:return null}}function D0(e,t){if(Xl)return e==="compositionend"||!hc&&$d(e,t)?(e=Vd(),pr=uc=yn=null,Xl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Zd&&t.locale!=="ko"?null:t.data;default:return null}}var z0={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 Id(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!z0[e.type]:t==="textarea"}function Pd(e,t,a,n){Yl?Gl?Gl.push(n):Gl=[n]:Yl=n,t=cu(t,"onChange"),0<t.length&&(a=new xr("onChange","change",null,a,n),e.push({event:a,listeners:t}))}var es=null,ts=null;function U0(e){Uy(e,0)}function Sr(e){var t=Fi(e);if(zd(t))return e}function eh(e,t){if(e==="change")return t}var th=!1;if(Va){var mc;if(Va){var yc="oninput"in document;if(!yc){var ah=document.createElement("div");ah.setAttribute("oninput","return;"),yc=typeof ah.oninput=="function"}mc=yc}else mc=!1;th=mc&&(!document.documentMode||9<document.documentMode)}function nh(){es&&(es.detachEvent("onpropertychange",lh),ts=es=null)}function lh(e){if(e.propertyName==="value"&&Sr(ts)){var t=[];Pd(t,ts,e,ic(e)),Qd(U0,t)}}function k0(e,t,a){e==="focusin"?(nh(),es=t,ts=a,es.attachEvent("onpropertychange",lh)):e==="focusout"&&nh()}function L0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Sr(ts)}function H0(e,t){if(e==="click")return Sr(t)}function q0(e,t){if(e==="input"||e==="change")return Sr(t)}function B0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:B0;function as(e,t){if(Zt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),n=Object.keys(t);if(a.length!==n.length)return!1;for(n=0;n<a.length;n++){var r=a[n];if(!Gi.call(t,r)||!Zt(e[r],t[r]))return!1}return!0}function ih(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function sh(e,t){var a=ih(e);e=0;for(var n;a;){if(a.nodeType===3){if(n=e+a.textContent.length,e<=t&&n>=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ih(a)}}function rh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function uh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=mr(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=mr(e.document)}return t}function pc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Q0=Va&&"documentMode"in document&&11>=document.documentMode,Kl=null,vc=null,ns=null,gc=!1;function ch(e,t,a){var n=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;gc||Kl==null||Kl!==mr(n)||(n=Kl,"selectionStart"in n&&pc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),ns&&as(ns,n)||(ns=n,n=cu(vc,"onSelect"),0<n.length&&(t=new xr("onSelect","select",null,t,a),e.push({event:t,listeners:n}),t.target=Kl)))}function ll(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Zl={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionrun:ll("Transition","TransitionRun"),transitionstart:ll("Transition","TransitionStart"),transitioncancel:ll("Transition","TransitionCancel"),transitionend:ll("Transition","TransitionEnd")},xc={},oh={};Va&&(oh=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function il(e){if(xc[e])return xc[e];if(!Zl[e])return e;var t=Zl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in oh)return xc[e]=t[a];return e}var fh=il("animationend"),dh=il("animationiteration"),hh=il("animationstart"),V0=il("transitionrun"),Y0=il("transitionstart"),G0=il("transitioncancel"),mh=il("transitionend"),yh=new Map,bc="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(" ");bc.push("scrollEnd");function pa(e,t){yh.set(e,t),al(t,[e])}var Er=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},sa=[],Fl=0,Sc=0;function _r(){for(var e=Fl,t=Sc=Fl=0;t<e;){var a=sa[t];sa[t++]=null;var n=sa[t];sa[t++]=null;var r=sa[t];sa[t++]=null;var c=sa[t];if(sa[t++]=null,n!==null&&r!==null){var h=n.pending;h===null?r.next=r:(r.next=h.next,h.next=r),n.pending=r}c!==0&&ph(a,r,c)}}function Nr(e,t,a,n){sa[Fl++]=e,sa[Fl++]=t,sa[Fl++]=a,sa[Fl++]=n,Sc|=n,e.lanes|=n,e=e.alternate,e!==null&&(e.lanes|=n)}function Ec(e,t,a,n){return Nr(e,t,a,n),jr(e)}function sl(e,t){return Nr(e,null,null,t),jr(e)}function ph(e,t,a){e.lanes|=a;var n=e.alternate;n!==null&&(n.lanes|=a);for(var r=!1,c=e.return;c!==null;)c.childLanes|=a,n=c.alternate,n!==null&&(n.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(r=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,r&&t!==null&&(r=31-St(a),e=c.hiddenUpdates,n=e[r],n===null?e[r]=[t]:n.push(t),t.lane=a|536870912),c):null}function jr(e){if(50<js)throw js=0,Mo=null,Error(u(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Jl={};function X0(e,t,a,n){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ft(e,t,a,n){return new X0(e,t,a,n)}function _c(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ya(e,t){var a=e.alternate;return a===null?(a=Ft(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function vh(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function wr(e,t,a,n,r,c){var h=0;if(n=e,typeof e=="function")_c(e)&&(h=1);else if(typeof e=="string")h=$x(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case xe:return e=Ft(31,a,t,r),e.elementType=xe,e.lanes=c,e;case U:return rl(a.children,r,c,t);case H:h=8,r|=24;break;case G:return e=Ft(12,a,t,r|2),e.elementType=G,e.lanes=c,e;case ee:return e=Ft(13,a,t,r),e.elementType=ee,e.lanes=c,e;case ve:return e=Ft(19,a,t,r),e.elementType=ve,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:h=10;break e;case Q:h=9;break e;case Z:h=11;break e;case re:h=14;break e;case ce:h=16,n=null;break e}h=29,a=Error(u(130,e===null?"null":typeof e,"")),n=null}return t=Ft(h,a,t,r),t.elementType=e,t.type=n,t.lanes=c,t}function rl(e,t,a,n){return e=Ft(7,e,n,t),e.lanes=a,e}function Nc(e,t,a){return e=Ft(6,e,null,t),e.lanes=a,e}function gh(e){var t=Ft(18,null,null,0);return t.stateNode=e,t}function jc(e,t,a){return t=Ft(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var xh=new WeakMap;function ra(e,t){if(typeof e=="object"&&e!==null){var a=xh.get(e);return a!==void 0?a:(t={value:e,source:t,stack:sr(t)},xh.set(e,t),t)}return{value:e,source:t,stack:sr(t)}}var $l=[],Wl=0,Tr=null,ls=0,ua=[],ca=0,pn=null,Aa=1,Ra="";function Ga(e,t){$l[Wl++]=ls,$l[Wl++]=Tr,Tr=e,ls=t}function bh(e,t,a){ua[ca++]=Aa,ua[ca++]=Ra,ua[ca++]=pn,pn=e;var n=Aa;e=Ra;var r=32-St(n)-1;n&=~(1<<r),a+=1;var c=32-St(t)+r;if(30<c){var h=r-r%5;c=(n&(1<<h)-1).toString(32),n>>=h,r-=h,Aa=1<<32-St(t)+r|a<<r|n,Ra=c+e}else Aa=1<<c|a<<r|n,Ra=e}function wc(e){e.return!==null&&(Ga(e,1),bh(e,1,0))}function Tc(e){for(;e===Tr;)Tr=$l[--Wl],$l[Wl]=null,ls=$l[--Wl],$l[Wl]=null;for(;e===pn;)pn=ua[--ca],ua[ca]=null,Ra=ua[--ca],ua[ca]=null,Aa=ua[--ca],ua[ca]=null}function Sh(e,t){ua[ca++]=Aa,ua[ca++]=Ra,ua[ca++]=pn,Aa=t.id,Ra=t.overflow,pn=e}var _t=null,$e=null,Ue=!1,vn=null,oa=!1,Ac=Error(u(519));function gn(e){var t=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw is(ra(t,e)),Ac}function Eh(e){var t=e.stateNode,a=e.type,n=e.memoizedProps;switch(t[Et]=e,t[kt]=n,a){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(a=0;a<Ts.length;a++)Oe(Ts[a],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),Ud(t,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),Ld(t,n.value,n.defaultValue,n.children)}a=n.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||n.suppressHydrationWarning===!0||qy(t.textContent,a)?(n.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),n.onScroll!=null&&Oe("scroll",t),n.onScrollEnd!=null&&Oe("scrollend",t),n.onClick!=null&&(t.onclick=Qa),t=!0):t=!1,t||gn(e,!0)}function _h(e){for(_t=e.return;_t;)switch(_t.tag){case 5:case 31:case 13:oa=!1;return;case 27:case 3:oa=!0;return;default:_t=_t.return}}function Il(e){if(e!==_t)return!1;if(!Ue)return _h(e),Ue=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||Zo(e.type,e.memoizedProps)),a=!a),a&&$e&&gn(e),_h(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));$e=Fy(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));$e=Fy(e)}else t===27?(t=$e,Mn(e.type)?(e=Io,Io=null,$e=e):$e=t):$e=_t?da(e.stateNode.nextSibling):null;return!0}function ul(){$e=_t=null,Ue=!1}function Rc(){var e=vn;return e!==null&&(Qt===null?Qt=e:Qt.push.apply(Qt,e),vn=null),e}function is(e){vn===null?vn=[e]:vn.push(e)}var Cc=w(null),cl=null,Xa=null;function xn(e,t,a){I(Cc,t._currentValue),t._currentValue=a}function Ka(e){e._currentValue=Cc.current,Y(Cc)}function Oc(e,t,a){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===a)break;e=e.return}}function Mc(e,t,a,n){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var c=r.dependencies;if(c!==null){var h=r.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=r;for(var S=0;S<t.length;S++)if(y.context===t[S]){c.lanes|=a,y=c.alternate,y!==null&&(y.lanes|=a),Oc(c.return,a,e),n||(h=null);break e}c=y.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(u(341));h.lanes|=a,c=h.alternate,c!==null&&(c.lanes|=a),Oc(h,a,e),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===e){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function Pl(e,t,a,n){e=null;for(var r=t,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(u(387));if(h=h.memoizedProps,h!==null){var y=r.type;Zt(r.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(r===Re.current){if(h=r.alternate,h===null)throw Error(u(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ms):e=[Ms])}r=r.return}e!==null&&Mc(t,e,a,n),t.flags|=262144}function Ar(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){cl=e,Xa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Nt(e){return Nh(cl,e)}function Rr(e,t){return cl===null&&ol(e),Nh(e,t)}function Nh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Xa===null){if(e===null)throw Error(u(308));Xa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Xa=Xa.next=t;return a}var K0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},Z0=l.unstable_scheduleCallback,F0=l.unstable_NormalPriority,ot={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Dc(){return{controller:new K0,data:new Map,refCount:0}}function ss(e){e.refCount--,e.refCount===0&&Z0(F0,function(){e.controller.abort()})}var rs=null,zc=0,ei=0,ti=null;function J0(e,t){if(rs===null){var a=rs=[];zc=0,ei=Ho(),ti={status:"pending",value:void 0,then:function(n){a.push(n)}}}return zc++,t.then(jh,jh),t}function jh(){if(--zc===0&&rs!==null){ti!==null&&(ti.status="fulfilled");var e=rs;rs=null,ei=0,ti=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function $0(e,t){var a=[],n={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return e.then(function(){n.status="fulfilled",n.value=t;for(var r=0;r<a.length;r++)(0,a[r])(t)},function(r){for(n.status="rejected",n.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),n}var wh=L.S;L.S=function(e,t){cy=D(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&J0(e,t),wh!==null&&wh(e,t)};var fl=w(null);function Uc(){var e=fl.current;return e!==null?e:Fe.pooledCache}function Cr(e,t){t===null?I(fl,fl.current):I(fl,t.pool)}function Th(){var e=Uc();return e===null?null:{parent:ot._currentValue,pool:e}}var ai=Error(u(460)),kc=Error(u(474)),Or=Error(u(542)),Mr={then:function(){}};function Ah(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Rh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Qa,Qa),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Oh(e),e;default:if(typeof t.status=="string")t.then(Qa,Qa);else{if(e=Fe,e!==null&&100<e.shellSuspendCounter)throw Error(u(482));e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=n}},function(n){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Oh(e),e}throw hl=t,ai}}function dl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(hl=a,ai):a}}var hl=null;function Ch(){if(hl===null)throw Error(u(459));var e=hl;return hl=null,e}function Oh(e){if(e===ai||e===Or)throw Error(u(483))}var ni=null,us=0;function Dr(e){var t=us;return us+=1,ni===null&&(ni=[]),Rh(ni,e,t)}function cs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function zr(e,t){throw t.$$typeof===N?Error(u(525)):(e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Mh(e){function t(R,j){if(e){var O=R.deletions;O===null?(R.deletions=[j],R.flags|=16):O.push(j)}}function a(R,j){if(!e)return null;for(;j!==null;)t(R,j),j=j.sibling;return null}function n(R){for(var j=new Map;R!==null;)R.key!==null?j.set(R.key,R):j.set(R.index,R),R=R.sibling;return j}function r(R,j){return R=Ya(R,j),R.index=0,R.sibling=null,R}function c(R,j,O){return R.index=O,e?(O=R.alternate,O!==null?(O=O.index,O<j?(R.flags|=67108866,j):O):(R.flags|=67108866,j)):(R.flags|=1048576,j)}function h(R){return e&&R.alternate===null&&(R.flags|=67108866),R}function y(R,j,O,V){return j===null||j.tag!==6?(j=Nc(O,R.mode,V),j.return=R,j):(j=r(j,O),j.return=R,j)}function S(R,j,O,V){var de=O.type;return de===U?q(R,j,O.props.children,V,O.key):j!==null&&(j.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ce&&dl(de)===j.type)?(j=r(j,O.props),cs(j,O),j.return=R,j):(j=wr(O.type,O.key,O.props,null,R.mode,V),cs(j,O),j.return=R,j)}function M(R,j,O,V){return j===null||j.tag!==4||j.stateNode.containerInfo!==O.containerInfo||j.stateNode.implementation!==O.implementation?(j=jc(O,R.mode,V),j.return=R,j):(j=r(j,O.children||[]),j.return=R,j)}function q(R,j,O,V,de){return j===null||j.tag!==7?(j=rl(O,R.mode,V,de),j.return=R,j):(j=r(j,O),j.return=R,j)}function X(R,j,O){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=Nc(""+j,R.mode,O),j.return=R,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case T:return O=wr(j.type,j.key,j.props,null,R.mode,O),cs(O,j),O.return=R,O;case B:return j=jc(j,R.mode,O),j.return=R,j;case ce:return j=dl(j),X(R,j,O)}if(pe(j)||fe(j))return j=rl(j,R.mode,O,null),j.return=R,j;if(typeof j.then=="function")return X(R,Dr(j),O);if(j.$$typeof===K)return X(R,Rr(R,j),O);zr(R,j)}return null}function z(R,j,O,V){var de=j!==null?j.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return de!==null?null:y(R,j,""+O,V);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case T:return O.key===de?S(R,j,O,V):null;case B:return O.key===de?M(R,j,O,V):null;case ce:return O=dl(O),z(R,j,O,V)}if(pe(O)||fe(O))return de!==null?null:q(R,j,O,V,null);if(typeof O.then=="function")return z(R,j,Dr(O),V);if(O.$$typeof===K)return z(R,j,Rr(R,O),V);zr(R,O)}return null}function k(R,j,O,V,de){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return R=R.get(O)||null,y(j,R,""+V,de);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case T:return R=R.get(V.key===null?O:V.key)||null,S(j,R,V,de);case B:return R=R.get(V.key===null?O:V.key)||null,M(j,R,V,de);case ce:return V=dl(V),k(R,j,O,V,de)}if(pe(V)||fe(V))return R=R.get(O)||null,q(j,R,V,de,null);if(typeof V.then=="function")return k(R,j,O,Dr(V),de);if(V.$$typeof===K)return k(R,j,O,Rr(j,V),de);zr(j,V)}return null}function ne(R,j,O,V){for(var de=null,qe=null,ue=j,je=j=0,De=null;ue!==null&&je<O.length;je++){ue.index>je?(De=ue,ue=null):De=ue.sibling;var Be=z(R,ue,O[je],V);if(Be===null){ue===null&&(ue=De);break}e&&ue&&Be.alternate===null&&t(R,ue),j=c(Be,j,je),qe===null?de=Be:qe.sibling=Be,qe=Be,ue=De}if(je===O.length)return a(R,ue),Ue&&Ga(R,je),de;if(ue===null){for(;je<O.length;je++)ue=X(R,O[je],V),ue!==null&&(j=c(ue,j,je),qe===null?de=ue:qe.sibling=ue,qe=ue);return Ue&&Ga(R,je),de}for(ue=n(ue);je<O.length;je++)De=k(ue,R,je,O[je],V),De!==null&&(e&&De.alternate!==null&&ue.delete(De.key===null?je:De.key),j=c(De,j,je),qe===null?de=De:qe.sibling=De,qe=De);return e&&ue.forEach(function(Ln){return t(R,Ln)}),Ue&&Ga(R,je),de}function ye(R,j,O,V){if(O==null)throw Error(u(151));for(var de=null,qe=null,ue=j,je=j=0,De=null,Be=O.next();ue!==null&&!Be.done;je++,Be=O.next()){ue.index>je?(De=ue,ue=null):De=ue.sibling;var Ln=z(R,ue,Be.value,V);if(Ln===null){ue===null&&(ue=De);break}e&&ue&&Ln.alternate===null&&t(R,ue),j=c(Ln,j,je),qe===null?de=Ln:qe.sibling=Ln,qe=Ln,ue=De}if(Be.done)return a(R,ue),Ue&&Ga(R,je),de;if(ue===null){for(;!Be.done;je++,Be=O.next())Be=X(R,Be.value,V),Be!==null&&(j=c(Be,j,je),qe===null?de=Be:qe.sibling=Be,qe=Be);return Ue&&Ga(R,je),de}for(ue=n(ue);!Be.done;je++,Be=O.next())Be=k(ue,R,je,Be.value,V),Be!==null&&(e&&Be.alternate!==null&&ue.delete(Be.key===null?je:Be.key),j=c(Be,j,je),qe===null?de=Be:qe.sibling=Be,qe=Be);return e&&ue.forEach(function(rb){return t(R,rb)}),Ue&&Ga(R,je),de}function Ze(R,j,O,V){if(typeof O=="object"&&O!==null&&O.type===U&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case T:e:{for(var de=O.key;j!==null;){if(j.key===de){if(de=O.type,de===U){if(j.tag===7){a(R,j.sibling),V=r(j,O.props.children),V.return=R,R=V;break e}}else if(j.elementType===de||typeof de=="object"&&de!==null&&de.$$typeof===ce&&dl(de)===j.type){a(R,j.sibling),V=r(j,O.props),cs(V,O),V.return=R,R=V;break e}a(R,j);break}else t(R,j);j=j.sibling}O.type===U?(V=rl(O.props.children,R.mode,V,O.key),V.return=R,R=V):(V=wr(O.type,O.key,O.props,null,R.mode,V),cs(V,O),V.return=R,R=V)}return h(R);case B:e:{for(de=O.key;j!==null;){if(j.key===de)if(j.tag===4&&j.stateNode.containerInfo===O.containerInfo&&j.stateNode.implementation===O.implementation){a(R,j.sibling),V=r(j,O.children||[]),V.return=R,R=V;break e}else{a(R,j);break}else t(R,j);j=j.sibling}V=jc(O,R.mode,V),V.return=R,R=V}return h(R);case ce:return O=dl(O),Ze(R,j,O,V)}if(pe(O))return ne(R,j,O,V);if(fe(O)){if(de=fe(O),typeof de!="function")throw Error(u(150));return O=de.call(O),ye(R,j,O,V)}if(typeof O.then=="function")return Ze(R,j,Dr(O),V);if(O.$$typeof===K)return Ze(R,j,Rr(R,O),V);zr(R,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,j!==null&&j.tag===6?(a(R,j.sibling),V=r(j,O),V.return=R,R=V):(a(R,j),V=Nc(O,R.mode,V),V.return=R,R=V),h(R)):a(R,j)}return function(R,j,O,V){try{us=0;var de=Ze(R,j,O,V);return ni=null,de}catch(ue){if(ue===ai||ue===Or)throw ue;var qe=Ft(29,ue,null,R.mode);return qe.lanes=V,qe.return=R,qe}finally{}}}var ml=Mh(!0),Dh=Mh(!1),bn=!1;function Lc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Sn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function En(e,t,a){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(Qe&2)!==0){var r=n.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),n.pending=t,t=jr(e),ph(e,null,a),t}return Nr(e,n,t,a),jr(e)}function os(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Nd(e,a)}}function qc(e,t){var a=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,a===n)){var r=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var h={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?r=c=h:c=c.next=h,a=a.next}while(a!==null);c===null?r=c=t:c=c.next=t}else r=c=t;a={baseState:n.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:n.shared,callbacks:n.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Bc=!1;function fs(){if(Bc){var e=ti;if(e!==null)throw e}}function ds(e,t,a,n){Bc=!1;var r=e.updateQueue;bn=!1;var c=r.firstBaseUpdate,h=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var S=y,M=S.next;S.next=null,h===null?c=M:h.next=M,h=S;var q=e.alternate;q!==null&&(q=q.updateQueue,y=q.lastBaseUpdate,y!==h&&(y===null?q.firstBaseUpdate=M:y.next=M,q.lastBaseUpdate=S))}if(c!==null){var X=r.baseState;h=0,q=M=S=null,y=c;do{var z=y.lane&-536870913,k=z!==y.lane;if(k?(Me&z)===z:(n&z)===z){z!==0&&z===ei&&(Bc=!0),q!==null&&(q=q.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ne=e,ye=y;z=t;var Ze=a;switch(ye.tag){case 1:if(ne=ye.payload,typeof ne=="function"){X=ne.call(Ze,X,z);break e}X=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=ye.payload,z=typeof ne=="function"?ne.call(Ze,X,z):ne,z==null)break e;X=g({},X,z);break e;case 2:bn=!0}}z=y.callback,z!==null&&(e.flags|=64,k&&(e.flags|=8192),k=r.callbacks,k===null?r.callbacks=[z]:k.push(z))}else k={lane:z,tag:y.tag,payload:y.payload,callback:y.callback,next:null},q===null?(M=q=k,S=X):q=q.next=k,h|=z;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;k=y,y=k.next,k.next=null,r.lastBaseUpdate=k,r.shared.pending=null}}while(!0);q===null&&(S=X),r.baseState=S,r.firstBaseUpdate=M,r.lastBaseUpdate=q,c===null&&(r.shared.lanes=0),Tn|=h,e.lanes=h,e.memoizedState=X}}function zh(e,t){if(typeof e!="function")throw Error(u(191,e));e.call(t)}function Uh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)zh(a[e],t)}var li=w(null),Ur=w(0);function kh(e,t){e=tn,I(Ur,e),I(li,t),tn=e|t.baseLanes}function Qc(){I(Ur,tn),I(li,li.current)}function Vc(){tn=Ur.current,Y(li),Y(Ur)}var Jt=w(null),fa=null;function _n(e){var t=e.alternate;I(st,st.current&1),I(Jt,e),fa===null&&(t===null||li.current!==null||t.memoizedState!==null)&&(fa=e)}function Yc(e){I(st,st.current),I(Jt,e),fa===null&&(fa=e)}function Lh(e){e.tag===22?(I(st,st.current),I(Jt,e),fa===null&&(fa=e)):Nn()}function Nn(){I(st,st.current),I(Jt,Jt.current)}function $t(e){Y(Jt),fa===e&&(fa=null),Y(st)}var st=w(0);function kr(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||$o(a)||Wo(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Za=0,_e=null,Xe=null,ft=null,Lr=!1,ii=!1,yl=!1,Hr=0,hs=0,si=null,W0=0;function nt(){throw Error(u(321))}function Gc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Zt(e[a],t[a]))return!1;return!0}function Xc(e,t,a,n,r,c){return Za=c,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,L.H=e===null||e.memoizedState===null?bm:so,yl=!1,c=a(n,r),yl=!1,ii&&(c=qh(t,a,n,r)),Hh(e),c}function Hh(e){L.H=ps;var t=Xe!==null&&Xe.next!==null;if(Za=0,ft=Xe=_e=null,Lr=!1,hs=0,si=null,t)throw Error(u(300));e===null||dt||(e=e.dependencies,e!==null&&Ar(e)&&(dt=!0))}function qh(e,t,a,n){_e=e;var r=0;do{if(ii&&(si=null),hs=0,ii=!1,25<=r)throw Error(u(301));if(r+=1,ft=Xe=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}L.H=Sm,c=t(a,n)}while(ii);return c}function I0(){var e=L.H,t=e.useState()[0];return t=typeof t.then=="function"?ms(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(_e.flags|=1024),t}function Kc(){var e=Hr!==0;return Hr=0,e}function Zc(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Fc(e){if(Lr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Lr=!1}Za=0,ft=Xe=_e=null,ii=!1,hs=Hr=0,si=null}function Ot(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?_e.memoizedState=ft=e:ft=ft.next=e,ft}function rt(){if(Xe===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=ft===null?_e.memoizedState:ft.next;if(t!==null)ft=t,Xe=e;else{if(e===null)throw _e.alternate===null?Error(u(467)):Error(u(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},ft===null?_e.memoizedState=ft=e:ft=ft.next=e}return ft}function qr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ms(e){var t=hs;return hs+=1,si===null&&(si=[]),e=Rh(si,e,t),t=_e,(ft===null?t.memoizedState:ft.next)===null&&(t=t.alternate,L.H=t===null||t.memoizedState===null?bm:so),e}function Br(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ms(e);if(e.$$typeof===K)return Nt(e)}throw Error(u(438,String(e)))}function Jc(e){var t=null,a=_e.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var n=_e.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(t={data:n.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=qr(),_e.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),n=0;n<e;n++)a[n]=Ae;return t.index++,a}function Fa(e,t){return typeof t=="function"?t(e):t}function Qr(e){var t=rt();return $c(t,Xe,e)}function $c(e,t,a){var n=e.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=a;var r=e.baseQueue,c=n.pending;if(c!==null){if(r!==null){var h=r.next;r.next=c.next,c.next=h}t.baseQueue=r=c,n.pending=null}if(c=e.baseState,r===null)e.memoizedState=c;else{t=r.next;var y=h=null,S=null,M=t,q=!1;do{var X=M.lane&-536870913;if(X!==M.lane?(Me&X)===X:(Za&X)===X){var z=M.revertLane;if(z===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),X===ei&&(q=!0);else if((Za&z)===z){M=M.next,z===ei&&(q=!0);continue}else X={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(y=S=X,h=c):S=S.next=X,_e.lanes|=z,Tn|=z;X=M.action,yl&&a(c,X),c=M.hasEagerState?M.eagerState:a(c,X)}else z={lane:X,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},S===null?(y=S=z,h=c):S=S.next=z,_e.lanes|=X,Tn|=X;M=M.next}while(M!==null&&M!==t);if(S===null?h=c:S.next=y,!Zt(c,e.memoizedState)&&(dt=!0,q&&(a=ti,a!==null)))throw a;e.memoizedState=c,e.baseState=h,e.baseQueue=S,n.lastRenderedState=c}return r===null&&(n.lanes=0),[e.memoizedState,n.dispatch]}function Wc(e){var t=rt(),a=t.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=e;var n=a.dispatch,r=a.pending,c=t.memoizedState;if(r!==null){a.pending=null;var h=r=r.next;do c=e(c,h.action),h=h.next;while(h!==r);Zt(c,t.memoizedState)||(dt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,n]}function Bh(e,t,a){var n=_e,r=rt(),c=Ue;if(c){if(a===void 0)throw Error(u(407));a=a()}else a=t();var h=!Zt((Xe||r).memoizedState,a);if(h&&(r.memoizedState=a,dt=!0),r=r.queue,eo(Yh.bind(null,n,r,e),[e]),r.getSnapshot!==t||h||ft!==null&&ft.memoizedState.tag&1){if(n.flags|=2048,ri(9,{destroy:void 0},Vh.bind(null,n,r,a,t),null),Fe===null)throw Error(u(349));c||(Za&127)!==0||Qh(n,t,a)}return a}function Qh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=_e.updateQueue,t===null?(t=qr(),_e.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Vh(e,t,a,n){t.value=a,t.getSnapshot=n,Gh(t)&&Xh(e)}function Yh(e,t,a){return a(function(){Gh(t)&&Xh(e)})}function Gh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Zt(e,a)}catch{return!0}}function Xh(e){var t=sl(e,2);t!==null&&Vt(t,e,2)}function Ic(e){var t=Ot();if(typeof e=="function"){var a=e;if(e=a(),yl){na(!0);try{a()}finally{na(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:e},t}function Kh(e,t,a,n){return e.baseState=a,$c(e,Xe,typeof n=="function"?n:Fa)}function P0(e,t,a,n,r){if(Gr(e))throw Error(u(485));if(e=t.action,e!==null){var c={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};L.T!==null?a(!0):c.isTransition=!1,n(c),a=t.pending,a===null?(c.next=t.pending=c,Zh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function Zh(e,t){var a=t.action,n=t.payload,r=e.state;if(t.isTransition){var c=L.T,h={};L.T=h;try{var y=a(r,n),S=L.S;S!==null&&S(h,y),Fh(e,t,y)}catch(M){Pc(e,t,M)}finally{c!==null&&h.types!==null&&(c.types=h.types),L.T=c}}else try{c=a(r,n),Fh(e,t,c)}catch(M){Pc(e,t,M)}}function Fh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(n){Jh(e,t,n)},function(n){return Pc(e,t,n)}):Jh(e,t,a)}function Jh(e,t,a){t.status="fulfilled",t.value=a,$h(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Zh(e,a)))}function Pc(e,t,a){var n=e.pending;if(e.pending=null,n!==null){n=n.next;do t.status="rejected",t.reason=a,$h(t),t=t.next;while(t!==n)}e.action=null}function $h(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Wh(e,t){return t}function Ih(e,t){if(Ue){var a=Fe.formState;if(a!==null){e:{var n=_e;if(Ue){if($e){t:{for(var r=$e,c=oa;r.nodeType!==8;){if(!c){r=null;break t}if(r=da(r.nextSibling),r===null){r=null;break t}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){$e=da(r.nextSibling),n=r.data==="F!";break e}}gn(n)}n=!1}n&&(t=a[0])}}return a=Ot(),a.memoizedState=a.baseState=t,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wh,lastRenderedState:t},a.queue=n,a=vm.bind(null,_e,n),n.dispatch=a,n=Ic(!1),c=io.bind(null,_e,!1,n.queue),n=Ot(),r={state:t,dispatch:null,action:e,pending:null},n.queue=r,a=P0.bind(null,_e,r,c,a),r.dispatch=a,n.memoizedState=e,[t,a,!1]}function Ph(e){var t=rt();return em(t,Xe,e)}function em(e,t,a){if(t=$c(e,t,Wh)[0],e=Qr(Fa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var n=ms(t)}catch(h){throw h===ai?Or:h}else n=t;t=rt();var r=t.queue,c=r.dispatch;return a!==t.memoizedState&&(_e.flags|=2048,ri(9,{destroy:void 0},ex.bind(null,r,a),null)),[n,c,e]}function ex(e,t){e.action=t}function tm(e){var t=rt(),a=Xe;if(a!==null)return em(t,a,e);rt(),t=t.memoizedState,a=rt();var n=a.queue.dispatch;return a.memoizedState=e,[t,n,!1]}function ri(e,t,a,n){return e={tag:e,create:a,deps:n,inst:t,next:null},t=_e.updateQueue,t===null&&(t=qr(),_e.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(n=a.next,a.next=e,e.next=n,t.lastEffect=e),e}function am(){return rt().memoizedState}function Vr(e,t,a,n){var r=Ot();_e.flags|=e,r.memoizedState=ri(1|t,{destroy:void 0},a,n===void 0?null:n)}function Yr(e,t,a,n){var r=rt();n=n===void 0?null:n;var c=r.memoizedState.inst;Xe!==null&&n!==null&&Gc(n,Xe.memoizedState.deps)?r.memoizedState=ri(t,c,a,n):(_e.flags|=e,r.memoizedState=ri(1|t,c,a,n))}function nm(e,t){Vr(8390656,8,e,t)}function eo(e,t){Yr(2048,8,e,t)}function tx(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=qr(),_e.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function lm(e){var t=rt().memoizedState;return tx({ref:t,nextImpl:e}),function(){if((Qe&2)!==0)throw Error(u(440));return t.impl.apply(void 0,arguments)}}function im(e,t){return Yr(4,2,e,t)}function sm(e,t){return Yr(4,4,e,t)}function rm(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function um(e,t,a){a=a!=null?a.concat([e]):null,Yr(4,4,rm.bind(null,t,e),a)}function to(){}function cm(e,t){var a=rt();t=t===void 0?null:t;var n=a.memoizedState;return t!==null&&Gc(t,n[1])?n[0]:(a.memoizedState=[e,t],e)}function om(e,t){var a=rt();t=t===void 0?null:t;var n=a.memoizedState;if(t!==null&&Gc(t,n[1]))return n[0];if(n=e(),yl){na(!0);try{e()}finally{na(!1)}}return a.memoizedState=[n,t],n}function ao(e,t,a){return a===void 0||(Za&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=fy(),_e.lanes|=e,Tn|=e,a)}function fm(e,t,a,n){return Zt(a,t)?a:li.current!==null?(e=ao(e,a,n),Zt(e,t)||(dt=!0),e):(Za&42)===0||(Za&1073741824)!==0&&(Me&261930)===0?(dt=!0,e.memoizedState=a):(e=fy(),_e.lanes|=e,Tn|=e,t)}function dm(e,t,a,n,r){var c=F.p;F.p=c!==0&&8>c?c:8;var h=L.T,y={};L.T=y,io(e,!1,t,a);try{var S=r(),M=L.S;if(M!==null&&M(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var q=$0(S,n);ys(e,t,q,Pt(e))}else ys(e,t,n,Pt(e))}catch(X){ys(e,t,{then:function(){},status:"rejected",reason:X},Pt())}finally{F.p=c,h!==null&&y.types!==null&&(h.types=y.types),L.T=h}}function ax(){}function no(e,t,a,n){if(e.tag!==5)throw Error(u(476));var r=hm(e).queue;dm(e,r,t,ie,a===null?ax:function(){return mm(e),a(n)})}function hm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ie,baseState:ie,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:ie},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Fa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mm(e){var t=hm(e);t.next===null&&(t=e.alternate.memoizedState),ys(e,t.next.queue,{},Pt())}function lo(){return Nt(Ms)}function ym(){return rt().memoizedState}function pm(){return rt().memoizedState}function nx(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Pt();e=Sn(a);var n=En(t,e,a);n!==null&&(Vt(n,t,a),os(n,t,a)),t={cache:Dc()},e.payload=t;return}t=t.return}}function lx(e,t,a){var n=Pt();a={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Gr(e)?gm(t,a):(a=Ec(e,t,a,n),a!==null&&(Vt(a,e,n),xm(a,t,n)))}function vm(e,t,a){var n=Pt();ys(e,t,a,n)}function ys(e,t,a,n){var r={lane:n,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Gr(e))gm(t,r);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,y=c(h,a);if(r.hasEagerState=!0,r.eagerState=y,Zt(y,h))return Nr(e,t,r,0),Fe===null&&_r(),!1}catch{}finally{}if(a=Ec(e,t,r,n),a!==null)return Vt(a,e,n),xm(a,t,n),!0}return!1}function io(e,t,a,n){if(n={lane:2,revertLane:Ho(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Gr(e)){if(t)throw Error(u(479))}else t=Ec(e,a,n,2),t!==null&&Vt(t,e,2)}function Gr(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function gm(e,t){ii=Lr=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function xm(e,t,a){if((a&4194048)!==0){var n=t.lanes;n&=e.pendingLanes,a|=n,t.lanes=a,Nd(e,a)}}var ps={readContext:Nt,use:Br,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};ps.useEffectEvent=nt;var bm={readContext:Nt,use:Br,useCallback:function(e,t){return Ot().memoizedState=[e,t===void 0?null:t],e},useContext:Nt,useEffect:nm,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Vr(4194308,4,rm.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Vr(4194308,4,e,t)},useInsertionEffect:function(e,t){Vr(4,2,e,t)},useMemo:function(e,t){var a=Ot();t=t===void 0?null:t;var n=e();if(yl){na(!0);try{e()}finally{na(!1)}}return a.memoizedState=[n,t],n},useReducer:function(e,t,a){var n=Ot();if(a!==void 0){var r=a(t);if(yl){na(!0);try{a(t)}finally{na(!1)}}}else r=t;return n.memoizedState=n.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},n.queue=e,e=e.dispatch=lx.bind(null,_e,e),[n.memoizedState,e]},useRef:function(e){var t=Ot();return e={current:e},t.memoizedState=e},useState:function(e){e=Ic(e);var t=e.queue,a=vm.bind(null,_e,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:to,useDeferredValue:function(e,t){var a=Ot();return ao(a,e,t)},useTransition:function(){var e=Ic(!1);return e=dm.bind(null,_e,e.queue,!0,!1),Ot().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var n=_e,r=Ot();if(Ue){if(a===void 0)throw Error(u(407));a=a()}else{if(a=t(),Fe===null)throw Error(u(349));(Me&127)!==0||Qh(n,t,a)}r.memoizedState=a;var c={value:a,getSnapshot:t};return r.queue=c,nm(Yh.bind(null,n,c,e),[e]),n.flags|=2048,ri(9,{destroy:void 0},Vh.bind(null,n,c,a,t),null),a},useId:function(){var e=Ot(),t=Fe.identifierPrefix;if(Ue){var a=Ra,n=Aa;a=(n&~(1<<32-St(n)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Hr++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=W0++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:lo,useFormState:Ih,useActionState:Ih,useOptimistic:function(e){var t=Ot();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=io.bind(null,_e,!0,a),a.dispatch=t,[e,t]},useMemoCache:Jc,useCacheRefresh:function(){return Ot().memoizedState=nx.bind(null,_e)},useEffectEvent:function(e){var t=Ot(),a={impl:e};return t.memoizedState=a,function(){if((Qe&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},so={readContext:Nt,use:Br,useCallback:cm,useContext:Nt,useEffect:eo,useImperativeHandle:um,useInsertionEffect:im,useLayoutEffect:sm,useMemo:om,useReducer:Qr,useRef:am,useState:function(){return Qr(Fa)},useDebugValue:to,useDeferredValue:function(e,t){var a=rt();return fm(a,Xe.memoizedState,e,t)},useTransition:function(){var e=Qr(Fa)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:ms(e),t]},useSyncExternalStore:Bh,useId:ym,useHostTransitionStatus:lo,useFormState:Ph,useActionState:Ph,useOptimistic:function(e,t){var a=rt();return Kh(a,Xe,e,t)},useMemoCache:Jc,useCacheRefresh:pm};so.useEffectEvent=lm;var Sm={readContext:Nt,use:Br,useCallback:cm,useContext:Nt,useEffect:eo,useImperativeHandle:um,useInsertionEffect:im,useLayoutEffect:sm,useMemo:om,useReducer:Wc,useRef:am,useState:function(){return Wc(Fa)},useDebugValue:to,useDeferredValue:function(e,t){var a=rt();return Xe===null?ao(a,e,t):fm(a,Xe.memoizedState,e,t)},useTransition:function(){var e=Wc(Fa)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:ms(e),t]},useSyncExternalStore:Bh,useId:ym,useHostTransitionStatus:lo,useFormState:tm,useActionState:tm,useOptimistic:function(e,t){var a=rt();return Xe!==null?Kh(a,Xe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:Jc,useCacheRefresh:pm};Sm.useEffectEvent=lm;function ro(e,t,a,n){t=e.memoizedState,a=a(n,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var uo={enqueueSetState:function(e,t,a){e=e._reactInternals;var n=Pt(),r=Sn(n);r.payload=t,a!=null&&(r.callback=a),t=En(e,r,n),t!==null&&(Vt(t,e,n),os(t,e,n))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var n=Pt(),r=Sn(n);r.tag=1,r.payload=t,a!=null&&(r.callback=a),t=En(e,r,n),t!==null&&(Vt(t,e,n),os(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Pt(),n=Sn(a);n.tag=2,t!=null&&(n.callback=t),t=En(e,n,a),t!==null&&(Vt(t,e,a),os(t,e,a))}};function Em(e,t,a,n,r,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,c,h):t.prototype&&t.prototype.isPureReactComponent?!as(a,n)||!as(r,c):!0}function _m(e,t,a,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,n),t.state!==e&&uo.enqueueReplaceState(t,t.state,null)}function pl(e,t){var a=t;if("ref"in t){a={};for(var n in t)n!=="ref"&&(a[n]=t[n])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var r in e)a[r]===void 0&&(a[r]=e[r])}return a}function Nm(e){Er(e)}function jm(e){console.error(e)}function wm(e){Er(e)}function Xr(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(n){setTimeout(function(){throw n})}}function Tm(e,t,a){try{var n=e.onCaughtError;n(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function co(e,t,a){return a=Sn(a),a.tag=3,a.payload={element:null},a.callback=function(){Xr(e,t)},a}function Am(e){return e=Sn(e),e.tag=3,e}function Rm(e,t,a,n){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var c=n.value;e.payload=function(){return r(c)},e.callback=function(){Tm(t,a,n)}}var h=a.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){Tm(t,a,n),typeof r!="function"&&(An===null?An=new Set([this]):An.add(this));var y=n.stack;this.componentDidCatch(n.value,{componentStack:y!==null?y:""})})}function ix(e,t,a,n,r){if(a.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(t=a.alternate,t!==null&&Pl(t,a,r,!0),a=Jt.current,a!==null){switch(a.tag){case 31:case 13:return fa===null?nu():a.alternate===null&<===0&&(lt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,n===Mr?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([n]):t.add(n),Uo(e,n,r)),!1;case 22:return a.flags|=65536,n===Mr?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([n])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([n]):a.add(n)),Uo(e,n,r)),!1}throw Error(u(435,a.tag))}return Uo(e,n,r),nu(),!1}if(Ue)return t=Jt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,n!==Ac&&(e=Error(u(422),{cause:n}),is(ra(e,a)))):(n!==Ac&&(t=Error(u(423),{cause:n}),is(ra(t,a))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,n=ra(n,a),r=co(e.stateNode,n,r),qc(e,r),lt!==4&&(lt=2)),!1;var c=Error(u(520),{cause:n});if(c=ra(c,a),Ns===null?Ns=[c]:Ns.push(c),lt!==4&&(lt=2),t===null)return!0;n=ra(n,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=r&-r,a.lanes|=e,e=co(a.stateNode,n,e),qc(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(An===null||!An.has(c))))return a.flags|=65536,r&=-r,a.lanes|=r,r=Am(r),Rm(r,e,a,n),qc(a,r),!1}a=a.return}while(a!==null);return!1}var oo=Error(u(461)),dt=!1;function jt(e,t,a,n){t.child=e===null?Dh(t,null,a,n):ml(t,e.child,a,n)}function Cm(e,t,a,n,r){a=a.render;var c=t.ref;if("ref"in n){var h={};for(var y in n)y!=="ref"&&(h[y]=n[y])}else h=n;return ol(t),n=Xc(e,t,a,h,c,r),y=Kc(),e!==null&&!dt?(Zc(e,t,r),Ja(e,t,r)):(Ue&&y&&wc(t),t.flags|=1,jt(e,t,n,r),t.child)}function Om(e,t,a,n,r){if(e===null){var c=a.type;return typeof c=="function"&&!_c(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Mm(e,t,c,n,r)):(e=wr(a.type,null,n,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!xo(e,r)){var h=c.memoizedProps;if(a=a.compare,a=a!==null?a:as,a(h,n)&&e.ref===t.ref)return Ja(e,t,r)}return t.flags|=1,e=Ya(c,n),e.ref=t.ref,e.return=t,t.child=e}function Mm(e,t,a,n,r){if(e!==null){var c=e.memoizedProps;if(as(c,n)&&e.ref===t.ref)if(dt=!1,t.pendingProps=n=c,xo(e,r))(e.flags&131072)!==0&&(dt=!0);else return t.lanes=e.lanes,Ja(e,t,r)}return fo(e,t,a,n,r)}function Dm(e,t,a,n){var r=n.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(n=t.child=e.child,r=0;n!==null;)r=r|n.lanes|n.childLanes,n=n.sibling;n=r&~c}else n=0,t.child=null;return zm(e,t,c,a,n)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Cr(t,c!==null?c.cachePool:null),c!==null?kh(t,c):Qc(),Lh(t);else return n=t.lanes=536870912,zm(e,t,c!==null?c.baseLanes|a:a,a,n)}else c!==null?(Cr(t,c.cachePool),kh(t,c),Nn(),t.memoizedState=null):(e!==null&&Cr(t,null),Qc(),Nn());return jt(e,t,r,a),t.child}function vs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zm(e,t,a,n,r){var c=Uc();return c=c===null?null:{parent:ot._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&Cr(t,null),Qc(),Lh(t),e!==null&&Pl(e,t,n,!0),t.childLanes=r,null}function Kr(e,t){return t=Fr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Um(e,t,a){return ml(t,e.child,null,a),e=Kr(t,t.pendingProps),e.flags|=2,$t(t),t.memoizedState=null,e}function sx(e,t,a){var n=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(n.mode==="hidden")return e=Kr(t,n),t.lanes=536870912,vs(null,e);if(Yc(t),(e=$e)?(e=Zy(e,oa),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pn!==null?{id:Aa,overflow:Ra}:null,retryLane:536870912,hydrationErrors:null},a=gh(e),a.return=t,t.child=a,_t=t,$e=null)):e=null,e===null)throw gn(t);return t.lanes=536870912,null}return Kr(t,n)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Yc(t),r)if(t.flags&256)t.flags&=-257,t=Um(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(u(558));else if(dt||Pl(e,t,a,!1),r=(a&e.childLanes)!==0,dt||r){if(n=Fe,n!==null&&(h=jd(n,a),h!==0&&h!==c.retryLane))throw c.retryLane=h,sl(e,h),Vt(n,e,h),oo;nu(),t=Um(e,t,a)}else e=c.treeContext,$e=da(h.nextSibling),_t=t,Ue=!0,vn=null,oa=!1,e!==null&&Sh(t,e),t=Kr(t,n),t.flags|=4096;return t}return e=Ya(e.child,{mode:n.mode,children:n.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Zr(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(u(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function fo(e,t,a,n,r){return ol(t),a=Xc(e,t,a,n,void 0,r),n=Kc(),e!==null&&!dt?(Zc(e,t,r),Ja(e,t,r)):(Ue&&n&&wc(t),t.flags|=1,jt(e,t,a,r),t.child)}function km(e,t,a,n,r,c){return ol(t),t.updateQueue=null,a=qh(t,n,a,r),Hh(e),n=Kc(),e!==null&&!dt?(Zc(e,t,c),Ja(e,t,c)):(Ue&&n&&wc(t),t.flags|=1,jt(e,t,a,c),t.child)}function Lm(e,t,a,n,r){if(ol(t),t.stateNode===null){var c=Jl,h=a.contextType;typeof h=="object"&&h!==null&&(c=Nt(h)),c=new a(n,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=uo,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=n,c.state=t.memoizedState,c.refs={},Lc(t),h=a.contextType,c.context=typeof h=="object"&&h!==null?Nt(h):Jl,c.state=t.memoizedState,h=a.getDerivedStateFromProps,typeof h=="function"&&(ro(t,a,h,n),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&uo.enqueueReplaceState(c,c.state,null),ds(t,n,c,r),fs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,S=pl(a,y);c.props=S;var M=c.context,q=a.contextType;h=Jl,typeof q=="object"&&q!==null&&(h=Nt(q));var X=a.getDerivedStateFromProps;q=typeof X=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||M!==h)&&_m(t,c,n,h),bn=!1;var z=t.memoizedState;c.state=z,ds(t,n,c,r),fs(),M=t.memoizedState,y||z!==M||bn?(typeof X=="function"&&(ro(t,a,X,n),M=t.memoizedState),(S=bn||Em(t,a,S,n,z,M,h))?(q||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=M),c.props=n,c.state=M,c.context=h,n=S):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{c=t.stateNode,Hc(e,t),h=t.memoizedProps,q=pl(a,h),c.props=q,X=t.pendingProps,z=c.context,M=a.contextType,S=Jl,typeof M=="object"&&M!==null&&(S=Nt(M)),y=a.getDerivedStateFromProps,(M=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==X||z!==S)&&_m(t,c,n,S),bn=!1,z=t.memoizedState,c.state=z,ds(t,n,c,r),fs();var k=t.memoizedState;h!==X||z!==k||bn||e!==null&&e.dependencies!==null&&Ar(e.dependencies)?(typeof y=="function"&&(ro(t,a,y,n),k=t.memoizedState),(q=bn||Em(t,a,q,n,z,k,S)||e!==null&&e.dependencies!==null&&Ar(e.dependencies))?(M||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(n,k,S),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(n,k,S)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=k),c.props=n,c.state=k,c.context=S,n=q):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),n=!1)}return c=n,Zr(e,t),n=(t.flags&128)!==0,c||n?(c=t.stateNode,a=n&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&n?(t.child=ml(t,e.child,null,r),t.child=ml(t,null,a,r)):jt(e,t,a,r),t.memoizedState=c.state,e=t.child):e=Ja(e,t,r),e}function Hm(e,t,a,n){return ul(),t.flags|=256,jt(e,t,a,n),t.child}var ho={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function mo(e){return{baseLanes:e,cachePool:Th()}}function yo(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=It),e}function qm(e,t,a){var n=t.pendingProps,r=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),h&&(r=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(r?_n(t):Nn(),(e=$e)?(e=Zy(e,oa),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:pn!==null?{id:Aa,overflow:Ra}:null,retryLane:536870912,hydrationErrors:null},a=gh(e),a.return=t,t.child=a,_t=t,$e=null)):e=null,e===null)throw gn(t);return Wo(e)?t.lanes=32:t.lanes=536870912,null}var y=n.children;return n=n.fallback,r?(Nn(),r=t.mode,y=Fr({mode:"hidden",children:y},r),n=rl(n,r,a,null),y.return=t,n.return=t,y.sibling=n,t.child=y,n=t.child,n.memoizedState=mo(a),n.childLanes=yo(e,h,a),t.memoizedState=ho,vs(null,n)):(_n(t),po(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(c)t.flags&256?(_n(t),t.flags&=-257,t=vo(e,t,a)):t.memoizedState!==null?(Nn(),t.child=e.child,t.flags|=128,t=null):(Nn(),y=n.fallback,r=t.mode,n=Fr({mode:"visible",children:n.children},r),y=rl(y,r,a,null),y.flags|=2,n.return=t,y.return=t,n.sibling=y,t.child=n,ml(t,e.child,null,a),n=t.child,n.memoizedState=mo(a),n.childLanes=yo(e,h,a),t.memoizedState=ho,t=vs(null,n));else if(_n(t),Wo(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var M=h.dgst;h=M,n=Error(u(419)),n.stack="",n.digest=h,is({value:n,source:null,stack:null}),t=vo(e,t,a)}else if(dt||Pl(e,t,a,!1),h=(a&e.childLanes)!==0,dt||h){if(h=Fe,h!==null&&(n=jd(h,a),n!==0&&n!==S.retryLane))throw S.retryLane=n,sl(e,n),Vt(h,e,n),oo;$o(y)||nu(),t=vo(e,t,a)}else $o(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,$e=da(y.nextSibling),_t=t,Ue=!0,vn=null,oa=!1,e!==null&&Sh(t,e),t=po(t,n.children),t.flags|=4096);return t}return r?(Nn(),y=n.fallback,r=t.mode,S=e.child,M=S.sibling,n=Ya(S,{mode:"hidden",children:n.children}),n.subtreeFlags=S.subtreeFlags&65011712,M!==null?y=Ya(M,y):(y=rl(y,r,a,null),y.flags|=2),y.return=t,n.return=t,n.sibling=y,t.child=n,vs(null,n),n=t.child,y=e.child.memoizedState,y===null?y=mo(a):(r=y.cachePool,r!==null?(S=ot._currentValue,r=r.parent!==S?{parent:S,pool:S}:r):r=Th(),y={baseLanes:y.baseLanes|a,cachePool:r}),n.memoizedState=y,n.childLanes=yo(e,h,a),t.memoizedState=ho,vs(e.child,n)):(_n(t),a=e.child,e=a.sibling,a=Ya(a,{mode:"visible",children:n.children}),a.return=t,a.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=a,t.memoizedState=null,a)}function po(e,t){return t=Fr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Fr(e,t){return e=Ft(22,e,null,t),e.lanes=0,e}function vo(e,t,a){return ml(t,e.child,null,a),e=po(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Bm(e,t,a){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Oc(e.return,t,a)}function go(e,t,a,n,r,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:a,tailMode:r,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=n,h.tail=a,h.tailMode=r,h.treeForkCount=c)}function Qm(e,t,a){var n=t.pendingProps,r=n.revealOrder,c=n.tail;n=n.children;var h=st.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,I(st,h),jt(e,t,n,a),n=Ue?ls:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Bm(e,a,t);else if(e.tag===19)Bm(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(a=t.child,r=null;a!==null;)e=a.alternate,e!==null&&kr(e)===null&&(r=a),a=a.sibling;a=r,a===null?(r=t.child,t.child=null):(r=a.sibling,a.sibling=null),go(t,!1,r,a,c,n);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&kr(e)===null){t.child=r;break}e=r.sibling,r.sibling=a,a=r,r=e}go(t,!0,a,null,c,n);break;case"together":go(t,!1,null,null,void 0,n);break;default:t.memoizedState=null}return t.child}function Ja(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Tn|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Pl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,a=Ya(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Ya(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function xo(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ar(e)))}function rx(e,t,a){switch(t.tag){case 3:tt(t,t.stateNode.containerInfo),xn(t,ot,e.memoizedState.cache),ul();break;case 27:case 5:dn(t);break;case 4:tt(t,t.stateNode.containerInfo);break;case 10:xn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yc(t),null;break;case 13:var n=t.memoizedState;if(n!==null)return n.dehydrated!==null?(_n(t),t.flags|=128,null):(a&t.child.childLanes)!==0?qm(e,t,a):(_n(t),e=Ja(e,t,a),e!==null?e.sibling:null);_n(t);break;case 19:var r=(e.flags&128)!==0;if(n=(a&t.childLanes)!==0,n||(Pl(e,t,a,!1),n=(a&t.childLanes)!==0),r){if(n)return Qm(e,t,a);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),I(st,st.current),n)break;return null;case 22:return t.lanes=0,Dm(e,t,a,t.pendingProps);case 24:xn(t,ot,e.memoizedState.cache)}return Ja(e,t,a)}function Vm(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)dt=!0;else{if(!xo(e,a)&&(t.flags&128)===0)return dt=!1,rx(e,t,a);dt=(e.flags&131072)!==0}else dt=!1,Ue&&(t.flags&1048576)!==0&&bh(t,ls,t.index);switch(t.lanes=0,t.tag){case 16:e:{var n=t.pendingProps;if(e=dl(t.elementType),t.type=e,typeof e=="function")_c(e)?(n=pl(e,n),t.tag=1,t=Lm(null,t,e,n,a)):(t.tag=0,t=fo(null,t,e,n,a));else{if(e!=null){var r=e.$$typeof;if(r===Z){t.tag=11,t=Cm(null,t,e,n,a);break e}else if(r===re){t.tag=14,t=Om(null,t,e,n,a);break e}}throw t=Ne(e)||e,Error(u(306,t,""))}}return t;case 0:return fo(e,t,t.type,t.pendingProps,a);case 1:return n=t.type,r=pl(n,t.pendingProps),Lm(e,t,n,r,a);case 3:e:{if(tt(t,t.stateNode.containerInfo),e===null)throw Error(u(387));n=t.pendingProps;var c=t.memoizedState;r=c.element,Hc(e,t),ds(t,n,null,a);var h=t.memoizedState;if(n=h.cache,xn(t,ot,n),n!==c.cache&&Mc(t,[ot],a,!0),fs(),n=h.element,c.isDehydrated)if(c={element:n,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=Hm(e,t,n,a);break e}else if(n!==r){r=ra(Error(u(424)),t),is(r),t=Hm(e,t,n,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for($e=da(e.firstChild),_t=t,Ue=!0,vn=null,oa=!0,a=Dh(t,null,n,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ul(),n===r){t=Ja(e,t,a);break e}jt(e,t,n,a)}t=t.child}return t;case 26:return Zr(e,t),e===null?(a=Py(t.type,null,t.pendingProps,null))?t.memoizedState=a:Ue||(a=t.type,e=t.pendingProps,n=ou(ge.current).createElement(a),n[Et]=t,n[kt]=e,wt(n,a,e),gt(n),t.stateNode=n):t.memoizedState=Py(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return dn(t),e===null&&Ue&&(n=t.stateNode=$y(t.type,t.pendingProps,ge.current),_t=t,oa=!0,r=$e,Mn(t.type)?(Io=r,$e=da(n.firstChild)):$e=r),jt(e,t,t.pendingProps.children,a),Zr(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((r=n=$e)&&(n=Lx(n,t.type,t.pendingProps,oa),n!==null?(t.stateNode=n,_t=t,$e=da(n.firstChild),oa=!1,r=!0):r=!1),r||gn(t)),dn(t),r=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,n=c.children,Zo(r,c)?n=null:h!==null&&Zo(r,h)&&(t.flags|=32),t.memoizedState!==null&&(r=Xc(e,t,I0,null,null,a),Ms._currentValue=r),Zr(e,t),jt(e,t,n,a),t.child;case 6:return e===null&&Ue&&((e=a=$e)&&(a=Hx(a,t.pendingProps,oa),a!==null?(t.stateNode=a,_t=t,$e=null,e=!0):e=!1),e||gn(t)),null;case 13:return qm(e,t,a);case 4:return tt(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=ml(t,null,n,a):jt(e,t,n,a),t.child;case 11:return Cm(e,t,t.type,t.pendingProps,a);case 7:return jt(e,t,t.pendingProps,a),t.child;case 8:return jt(e,t,t.pendingProps.children,a),t.child;case 12:return jt(e,t,t.pendingProps.children,a),t.child;case 10:return n=t.pendingProps,xn(t,t.type,n.value),jt(e,t,n.children,a),t.child;case 9:return r=t.type._context,n=t.pendingProps.children,ol(t),r=Nt(r),n=n(r),t.flags|=1,jt(e,t,n,a),t.child;case 14:return Om(e,t,t.type,t.pendingProps,a);case 15:return Mm(e,t,t.type,t.pendingProps,a);case 19:return Qm(e,t,a);case 31:return sx(e,t,a);case 22:return Dm(e,t,a,t.pendingProps);case 24:return ol(t),n=Nt(ot),e===null?(r=Uc(),r===null&&(r=Fe,c=Dc(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=a),r=c),t.memoizedState={parent:n,cache:r},Lc(t),xn(t,ot,r)):((e.lanes&a)!==0&&(Hc(e,t),ds(t,null,null,a),fs()),r=e.memoizedState,c=t.memoizedState,r.parent!==n?(r={parent:n,cache:n},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),xn(t,ot,n)):(n=c.cache,xn(t,ot,n),n!==r.cache&&Mc(t,[ot],a,!0))),jt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(u(156,t.tag))}function $a(e){e.flags|=4}function bo(e,t,a,n,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(yy())e.flags|=8192;else throw hl=Mr,kc}else e.flags&=-16777217}function Ym(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!lp(t))if(yy())e.flags|=8192;else throw hl=Mr,kc}function Jr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ed():536870912,e.lanes|=t,fi|=t)}function gs(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var n=null;a!==null;)a.alternate!==null&&(n=a),a=a.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function We(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,n=0;if(t)for(var r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags&65011712,n|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)a|=r.lanes|r.childLanes,n|=r.subtreeFlags,n|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=n,e.childLanes=a,t}function ux(e,t,a){var n=t.pendingProps;switch(Tc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return We(t),null;case 3:return a=t.stateNode,n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ka(ot),Je(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Il(t)?$a(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Rc())),We(t),null;case 26:var r=t.type,c=t.memoizedState;return e===null?($a(t),c!==null?(We(t),Ym(t,c)):(We(t),bo(t,r,null,n,a))):c?c!==e.memoizedState?($a(t),We(t),Ym(t,c)):(We(t),t.flags&=-16777217):(e=e.memoizedProps,e!==n&&$a(t),We(t),bo(t,r,e,n,a)),null;case 27:if(hn(t),a=ge.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&$a(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return We(t),null}e=W.current,Il(t)?Eh(t):(e=$y(r,n,a),t.stateNode=e,$a(t))}return We(t),null;case 5:if(hn(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==n&&$a(t);else{if(!n){if(t.stateNode===null)throw Error(u(166));return We(t),null}if(c=W.current,Il(t))Eh(t);else{var h=ou(ge.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof n.is=="string"?h.createElement("select",{is:n.is}):h.createElement("select"),n.multiple?c.multiple=!0:n.size&&(c.size=n.size);break;default:c=typeof n.is=="string"?h.createElement(r,{is:n.is}):h.createElement(r)}}c[Et]=t,c[kt]=n;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(wt(c,r,n),r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&$a(t)}}return We(t),bo(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==n&&$a(t);else{if(typeof n!="string"&&t.stateNode===null)throw Error(u(166));if(e=ge.current,Il(t)){if(e=t.stateNode,a=t.memoizedProps,n=null,r=_t,r!==null)switch(r.tag){case 27:case 5:n=r.memoizedProps}e[Et]=t,e=!!(e.nodeValue===a||n!==null&&n.suppressHydrationWarning===!0||qy(e.nodeValue,a)),e||gn(t,!0)}else e=ou(e).createTextNode(n),e[Et]=t,t.stateNode=e}return We(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(n=Il(t),a!==null){if(e===null){if(!n)throw Error(u(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(557));e[Et]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),e=!1}else a=Rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?($t(t),t):($t(t),null);if((t.flags&128)!==0)throw Error(u(558))}return We(t),null;case 13:if(n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Il(t),n!==null&&n.dehydrated!==null){if(e===null){if(!r)throw Error(u(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[Et]=t}else ul(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;We(t),r=!1}else r=Rc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?($t(t),t):($t(t),null)}return $t(t),(t.flags&128)!==0?(t.lanes=a,t):(a=n!==null,e=e!==null&&e.memoizedState!==null,a&&(n=t.child,r=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(r=n.alternate.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==r&&(n.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Jr(t,t.updateQueue),We(t),null);case 4:return Je(),e===null&&Vo(t.stateNode.containerInfo),We(t),null;case 10:return Ka(t.type),We(t),null;case 19:if(Y(st),n=t.memoizedState,n===null)return We(t),null;if(r=(t.flags&128)!==0,c=n.rendering,c===null)if(r)gs(n,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=kr(e),c!==null){for(t.flags|=128,gs(n,!1),e=c.updateQueue,t.updateQueue=e,Jr(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)vh(a,e),a=a.sibling;return I(st,st.current&1|2),Ue&&Ga(t,n.treeForkCount),t.child}e=e.sibling}n.tail!==null&&D()>eu&&(t.flags|=128,r=!0,gs(n,!1),t.lanes=4194304)}else{if(!r)if(e=kr(c),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Jr(t,e),gs(n,!0),n.tail===null&&n.tailMode==="hidden"&&!c.alternate&&!Ue)return We(t),null}else 2*D()-n.renderingStartTime>eu&&a!==536870912&&(t.flags|=128,r=!0,gs(n,!1),t.lanes=4194304);n.isBackwards?(c.sibling=t.child,t.child=c):(e=n.last,e!==null?e.sibling=c:t.child=c,n.last=c)}return n.tail!==null?(e=n.tail,n.rendering=e,n.tail=e.sibling,n.renderingStartTime=D(),e.sibling=null,a=st.current,I(st,r?a&1|2:a&1),Ue&&Ga(t,n.treeForkCount),e):(We(t),null);case 22:case 23:return $t(t),Vc(),n=t.memoizedState!==null,e!==null?e.memoizedState!==null!==n&&(t.flags|=8192):n&&(t.flags|=8192),n?(a&536870912)!==0&&(t.flags&128)===0&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),a=t.updateQueue,a!==null&&Jr(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),n=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),n!==a&&(t.flags|=2048),e!==null&&Y(fl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ka(ot),We(t),null;case 25:return null;case 30:return null}throw Error(u(156,t.tag))}function cx(e,t){switch(Tc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ka(ot),Je(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return hn(t),null;case 31:if(t.memoizedState!==null){if($t(t),t.alternate===null)throw Error(u(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if($t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));ul()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(st),null;case 4:return Je(),null;case 10:return Ka(t.type),null;case 22:case 23:return $t(t),Vc(),e!==null&&Y(fl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ka(ot),null;case 25:return null;default:return null}}function Gm(e,t){switch(Tc(t),t.tag){case 3:Ka(ot),Je();break;case 26:case 27:case 5:hn(t);break;case 4:Je();break;case 31:t.memoizedState!==null&&$t(t);break;case 13:$t(t);break;case 19:Y(st);break;case 10:Ka(t.type);break;case 22:case 23:$t(t),Vc(),e!==null&&Y(fl);break;case 24:Ka(ot)}}function xs(e,t){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var r=n.next;a=r;do{if((a.tag&e)===e){n=void 0;var c=a.create,h=a.inst;n=c(),h.destroy=n}a=a.next}while(a!==r)}}catch(y){Ge(t,t.return,y)}}function jn(e,t,a){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var c=r.next;n=c;do{if((n.tag&e)===e){var h=n.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,r=t;var S=a,M=y;try{M()}catch(q){Ge(r,S,q)}}}n=n.next}while(n!==c)}}catch(q){Ge(t,t.return,q)}}function Xm(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Uh(t,a)}catch(n){Ge(e,e.return,n)}}}function Km(e,t,a){a.props=pl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(n){Ge(e,t,n)}}function bs(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}typeof a=="function"?e.refCleanup=a(n):a.current=n}}catch(r){Ge(e,t,r)}}function Ca(e,t){var a=e.ref,n=e.refCleanup;if(a!==null)if(typeof n=="function")try{n()}catch(r){Ge(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){Ge(e,t,r)}else a.current=null}function Zm(e){var t=e.type,a=e.memoizedProps,n=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&n.focus();break e;case"img":a.src?n.src=a.src:a.srcSet&&(n.srcset=a.srcSet)}}catch(r){Ge(e,e.return,r)}}function So(e,t,a){try{var n=e.stateNode;Ox(n,e.type,a,t),n[kt]=t}catch(r){Ge(e,e.return,r)}}function Fm(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Mn(e.type)||e.tag===4}function Eo(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Fm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Mn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _o(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Qa));else if(n!==4&&(n===27&&Mn(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(_o(e,t,a),e=e.sibling;e!==null;)_o(e,t,a),e=e.sibling}function $r(e,t,a){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(n!==4&&(n===27&&Mn(e.type)&&(a=e.stateNode),e=e.child,e!==null))for($r(e,t,a),e=e.sibling;e!==null;)$r(e,t,a),e=e.sibling}function Jm(e){var t=e.stateNode,a=e.memoizedProps;try{for(var n=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);wt(t,n,a),t[Et]=e,t[kt]=a}catch(c){Ge(e,e.return,c)}}var Wa=!1,ht=!1,No=!1,$m=typeof WeakSet=="function"?WeakSet:Set,xt=null;function ox(e,t){if(e=e.containerInfo,Xo=vu,e=uh(e),pc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var r=n.anchorOffset,c=n.focusNode;n=n.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var h=0,y=-1,S=-1,M=0,q=0,X=e,z=null;t:for(;;){for(var k;X!==a||r!==0&&X.nodeType!==3||(y=h+r),X!==c||n!==0&&X.nodeType!==3||(S=h+n),X.nodeType===3&&(h+=X.nodeValue.length),(k=X.firstChild)!==null;)z=X,X=k;for(;;){if(X===e)break t;if(z===a&&++M===r&&(y=h),z===c&&++q===n&&(S=h),(k=X.nextSibling)!==null)break;X=z,z=X.parentNode}X=k}a=y===-1||S===-1?null:{start:y,end:S}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ko={focusedElem:e,selectionRange:a},vu=!1,xt=t;xt!==null;)if(t=xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xt=e;else for(;xt!==null;){switch(t=xt,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)r=e[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,a=t,r=c.memoizedProps,c=c.memoizedState,n=a.stateNode;try{var ne=pl(a.type,r);e=n.getSnapshotBeforeUpdate(ne,c),n.__reactInternalSnapshotBeforeUpdate=e}catch(ye){Ge(a,a.return,ye)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)Jo(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Jo(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(u(163))}if(e=t.sibling,e!==null){e.return=t.return,xt=e;break}xt=t.return}}function Wm(e,t,a){var n=a.flags;switch(a.tag){case 0:case 11:case 15:Pa(e,a),n&4&&xs(5,a);break;case 1:if(Pa(e,a),n&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(h){Ge(a,a.return,h)}else{var r=pl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Ge(a,a.return,h)}}n&64&&Xm(a),n&512&&bs(a,a.return);break;case 3:if(Pa(e,a),n&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Uh(e,t)}catch(h){Ge(a,a.return,h)}}break;case 27:t===null&&n&4&&Jm(a);case 26:case 5:Pa(e,a),t===null&&n&4&&Zm(a),n&512&&bs(a,a.return);break;case 12:Pa(e,a);break;case 31:Pa(e,a),n&4&&ey(e,a);break;case 13:Pa(e,a),n&4&&ty(e,a),n&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=xx.bind(null,a),qx(e,a))));break;case 22:if(n=a.memoizedState!==null||Wa,!n){t=t!==null&&t.memoizedState!==null||ht,r=Wa;var c=ht;Wa=n,(ht=t)&&!c?en(e,a,(a.subtreeFlags&8772)!==0):Pa(e,a),Wa=r,ht=c}break;case 30:break;default:Pa(e,a)}}function Im(e){var t=e.alternate;t!==null&&(e.alternate=null,Im(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Pe=null,Ht=!1;function Ia(e,t,a){for(a=a.child;a!==null;)Pm(e,t,a),a=a.sibling}function Pm(e,t,a){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(ct,a)}catch{}switch(a.tag){case 26:ht||Ca(a,t),Ia(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ht||Ca(a,t);var n=Pe,r=Ht;Mn(a.type)&&(Pe=a.stateNode,Ht=!1),Ia(e,t,a),Rs(a.stateNode),Pe=n,Ht=r;break;case 5:ht||Ca(a,t);case 6:if(n=Pe,r=Ht,Pe=null,Ia(e,t,a),Pe=n,Ht=r,Pe!==null)if(Ht)try{(Pe.nodeType===9?Pe.body:Pe.nodeName==="HTML"?Pe.ownerDocument.body:Pe).removeChild(a.stateNode)}catch(c){Ge(a,t,c)}else try{Pe.removeChild(a.stateNode)}catch(c){Ge(a,t,c)}break;case 18:Pe!==null&&(Ht?(e=Pe,Xy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),xi(e)):Xy(Pe,a.stateNode));break;case 4:n=Pe,r=Ht,Pe=a.stateNode.containerInfo,Ht=!0,Ia(e,t,a),Pe=n,Ht=r;break;case 0:case 11:case 14:case 15:jn(2,a,t),ht||jn(4,a,t),Ia(e,t,a);break;case 1:ht||(Ca(a,t),n=a.stateNode,typeof n.componentWillUnmount=="function"&&Km(a,t,n)),Ia(e,t,a);break;case 21:Ia(e,t,a);break;case 22:ht=(n=ht)||a.memoizedState!==null,Ia(e,t,a),ht=n;break;default:Ia(e,t,a)}}function ey(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{xi(e)}catch(a){Ge(t,t.return,a)}}}function ty(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{xi(e)}catch(a){Ge(t,t.return,a)}}function fx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new $m),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new $m),t;default:throw Error(u(435,e.tag))}}function Wr(e,t){var a=fx(e);t.forEach(function(n){if(!a.has(n)){a.add(n);var r=bx.bind(null,e,n);n.then(r,r)}})}function qt(e,t){var a=t.deletions;if(a!==null)for(var n=0;n<a.length;n++){var r=a[n],c=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(Mn(y.type)){Pe=y.stateNode,Ht=!1;break e}break;case 5:Pe=y.stateNode,Ht=!1;break e;case 3:case 4:Pe=y.stateNode.containerInfo,Ht=!0;break e}y=y.return}if(Pe===null)throw Error(u(160));Pm(c,h,r),Pe=null,Ht=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)ay(t,e),t=t.sibling}var va=null;function ay(e,t){var a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:qt(t,e),Bt(e),n&4&&(jn(3,e,e.return),xs(3,e),jn(5,e,e.return));break;case 1:qt(t,e),Bt(e),n&512&&(ht||a===null||Ca(a,a.return)),n&64&&Wa&&(e=e.updateQueue,e!==null&&(n=e.callbacks,n!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?n:a.concat(n))));break;case 26:var r=va;if(qt(t,e),Bt(e),n&512&&(ht||a===null||Ca(a,a.return)),n&4){var c=a!==null?a.memoizedState:null;if(n=e.memoizedState,a===null)if(n===null)if(e.stateNode===null){e:{n=e.type,a=e.memoizedProps,r=r.ownerDocument||r;t:switch(n){case"title":c=r.getElementsByTagName("title")[0],(!c||c[Zi]||c[Et]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(n),r.head.insertBefore(c,r.querySelector("head > title"))),wt(c,n,a),c[Et]=e,gt(c),n=c;break e;case"link":var h=ap("link","href",r).get(n+(a.href||""));if(h){for(var y=0;y<h.length;y++)if(c=h[y],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){h.splice(y,1);break t}}c=r.createElement(n),wt(c,n,a),r.head.appendChild(c);break;case"meta":if(h=ap("meta","content",r).get(n+(a.content||""))){for(y=0;y<h.length;y++)if(c=h[y],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){h.splice(y,1);break t}}c=r.createElement(n),wt(c,n,a),r.head.appendChild(c);break;default:throw Error(u(468,n))}c[Et]=e,gt(c),n=c}e.stateNode=n}else np(r,e.type,e.stateNode);else e.stateNode=tp(r,n,e.memoizedProps);else c!==n?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,n===null?np(r,e.type,e.stateNode):tp(r,n,e.memoizedProps)):n===null&&e.stateNode!==null&&So(e,e.memoizedProps,a.memoizedProps)}break;case 27:qt(t,e),Bt(e),n&512&&(ht||a===null||Ca(a,a.return)),a!==null&&n&4&&So(e,e.memoizedProps,a.memoizedProps);break;case 5:if(qt(t,e),Bt(e),n&512&&(ht||a===null||Ca(a,a.return)),e.flags&32){r=e.stateNode;try{Vl(r,"")}catch(ne){Ge(e,e.return,ne)}}n&4&&e.stateNode!=null&&(r=e.memoizedProps,So(e,r,a!==null?a.memoizedProps:r)),n&1024&&(No=!0);break;case 6:if(qt(t,e),Bt(e),n&4){if(e.stateNode===null)throw Error(u(162));n=e.memoizedProps,a=e.stateNode;try{a.nodeValue=n}catch(ne){Ge(e,e.return,ne)}}break;case 3:if(hu=null,r=va,va=fu(t.containerInfo),qt(t,e),va=r,Bt(e),n&4&&a!==null&&a.memoizedState.isDehydrated)try{xi(t.containerInfo)}catch(ne){Ge(e,e.return,ne)}No&&(No=!1,ny(e));break;case 4:n=va,va=fu(e.stateNode.containerInfo),qt(t,e),Bt(e),va=n;break;case 12:qt(t,e),Bt(e);break;case 31:qt(t,e),Bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wr(e,n)));break;case 13:qt(t,e),Bt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Pr=D()),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wr(e,n)));break;case 22:r=e.memoizedState!==null;var S=a!==null&&a.memoizedState!==null,M=Wa,q=ht;if(Wa=M||r,ht=q||S,qt(t,e),ht=q,Wa=M,Bt(e),n&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(a===null||S||Wa||ht||vl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){S=a=t;try{if(c=S.stateNode,r)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=S.stateNode;var X=S.memoizedProps.style,z=X!=null&&X.hasOwnProperty("display")?X.display:null;y.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(ne){Ge(S,S.return,ne)}}}else if(t.tag===6){if(a===null){S=t;try{S.stateNode.nodeValue=r?"":S.memoizedProps}catch(ne){Ge(S,S.return,ne)}}}else if(t.tag===18){if(a===null){S=t;try{var k=S.stateNode;r?Ky(k,!0):Ky(S.stateNode,!1)}catch(ne){Ge(S,S.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}n&4&&(n=e.updateQueue,n!==null&&(a=n.retryQueue,a!==null&&(n.retryQueue=null,Wr(e,a))));break;case 19:qt(t,e),Bt(e),n&4&&(n=e.updateQueue,n!==null&&(e.updateQueue=null,Wr(e,n)));break;case 30:break;case 21:break;default:qt(t,e),Bt(e)}}function Bt(e){var t=e.flags;if(t&2){try{for(var a,n=e.return;n!==null;){if(Fm(n)){a=n;break}n=n.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var r=a.stateNode,c=Eo(e);$r(e,c,r);break;case 5:var h=a.stateNode;a.flags&32&&(Vl(h,""),a.flags&=-33);var y=Eo(e);$r(e,y,h);break;case 3:case 4:var S=a.stateNode.containerInfo,M=Eo(e);_o(e,M,S);break;default:throw Error(u(161))}}catch(q){Ge(e,e.return,q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function ny(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;ny(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Wm(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:jn(4,t,t.return),vl(t);break;case 1:Ca(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Km(t,t.return,a),vl(t);break;case 27:Rs(t.stateNode);case 26:case 5:Ca(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function en(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var n=t.alternate,r=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:en(r,c,a),xs(4,c);break;case 1:if(en(r,c,a),n=c,r=n.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(M){Ge(n,n.return,M)}if(n=c,r=n.updateQueue,r!==null){var y=n.stateNode;try{var S=r.shared.hiddenCallbacks;if(S!==null)for(r.shared.hiddenCallbacks=null,r=0;r<S.length;r++)zh(S[r],y)}catch(M){Ge(n,n.return,M)}}a&&h&64&&Xm(c),bs(c,c.return);break;case 27:Jm(c);case 26:case 5:en(r,c,a),a&&n===null&&h&4&&Zm(c),bs(c,c.return);break;case 12:en(r,c,a);break;case 31:en(r,c,a),a&&h&4&&ey(r,c);break;case 13:en(r,c,a),a&&h&4&&ty(r,c);break;case 22:c.memoizedState===null&&en(r,c,a),bs(c,c.return);break;case 30:break;default:en(r,c,a)}t=t.sibling}}function jo(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&ss(a))}function wo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ss(e))}function ga(e,t,a,n){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)ly(e,t,a,n),t=t.sibling}function ly(e,t,a,n){var r=t.flags;switch(t.tag){case 0:case 11:case 15:ga(e,t,a,n),r&2048&&xs(9,t);break;case 1:ga(e,t,a,n);break;case 3:ga(e,t,a,n),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ss(e)));break;case 12:if(r&2048){ga(e,t,a,n),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,y=c.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Ge(t,t.return,S)}}else ga(e,t,a,n);break;case 31:ga(e,t,a,n);break;case 13:ga(e,t,a,n);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?ga(e,t,a,n):Ss(e,t):c._visibility&2?ga(e,t,a,n):(c._visibility|=2,ui(e,t,a,n,(t.subtreeFlags&10256)!==0||!1)),r&2048&&jo(h,t);break;case 24:ga(e,t,a,n),r&2048&&wo(t.alternate,t);break;default:ga(e,t,a,n)}}function ui(e,t,a,n,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,y=a,S=n,M=h.flags;switch(h.tag){case 0:case 11:case 15:ui(c,h,y,S,r),xs(8,h);break;case 23:break;case 22:var q=h.stateNode;h.memoizedState!==null?q._visibility&2?ui(c,h,y,S,r):Ss(c,h):(q._visibility|=2,ui(c,h,y,S,r)),r&&M&2048&&jo(h.alternate,h);break;case 24:ui(c,h,y,S,r),r&&M&2048&&wo(h.alternate,h);break;default:ui(c,h,y,S,r)}t=t.sibling}}function Ss(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,n=t,r=n.flags;switch(n.tag){case 22:Ss(a,n),r&2048&&jo(n.alternate,n);break;case 24:Ss(a,n),r&2048&&wo(n.alternate,n);break;default:Ss(a,n)}t=t.sibling}}var Es=8192;function ci(e,t,a){if(e.subtreeFlags&Es)for(e=e.child;e!==null;)iy(e,t,a),e=e.sibling}function iy(e,t,a){switch(e.tag){case 26:ci(e,t,a),e.flags&Es&&e.memoizedState!==null&&Wx(a,va,e.memoizedState,e.memoizedProps);break;case 5:ci(e,t,a);break;case 3:case 4:var n=va;va=fu(e.stateNode.containerInfo),ci(e,t,a),va=n;break;case 22:e.memoizedState===null&&(n=e.alternate,n!==null&&n.memoizedState!==null?(n=Es,Es=16777216,ci(e,t,a),Es=n):ci(e,t,a));break;default:ci(e,t,a)}}function sy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function _s(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];xt=n,uy(n,e)}sy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ry(e),e=e.sibling}function ry(e){switch(e.tag){case 0:case 11:case 15:_s(e),e.flags&2048&&jn(9,e,e.return);break;case 3:_s(e);break;case 12:_s(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ir(e)):_s(e);break;default:_s(e)}}function Ir(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var n=t[a];xt=n,uy(n,e)}sy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:jn(8,t,t.return),Ir(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ir(t));break;default:Ir(t)}e=e.sibling}}function uy(e,t){for(;xt!==null;){var a=xt;switch(a.tag){case 0:case 11:case 15:jn(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var n=a.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:ss(a.memoizedState.cache)}if(n=a.child,n!==null)n.return=a,xt=n;else e:for(a=e;xt!==null;){n=xt;var r=n.sibling,c=n.return;if(Im(n),n===a){xt=null;break e}if(r!==null){r.return=c,xt=r;break e}xt=c}}}var dx={getCacheForType:function(e){var t=Nt(ot),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Nt(ot).controller.signal}},hx=typeof WeakMap=="function"?WeakMap:Map,Qe=0,Fe=null,Ce=null,Me=0,Ye=0,Wt=null,wn=!1,oi=!1,To=!1,tn=0,lt=0,Tn=0,gl=0,Ao=0,It=0,fi=0,Ns=null,Qt=null,Ro=!1,Pr=0,cy=0,eu=1/0,tu=null,An=null,yt=0,Rn=null,di=null,an=0,Co=0,Oo=null,oy=null,js=0,Mo=null;function Pt(){return(Qe&2)!==0&&Me!==0?Me&-Me:L.T!==null?Ho():wd()}function fy(){if(It===0)if((Me&536870912)===0||Ue){var e=cr;cr<<=1,(cr&3932160)===0&&(cr=262144),It=e}else It=536870912;return e=Jt.current,e!==null&&(e.flags|=32),It}function Vt(e,t,a){(e===Fe&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)&&(hi(e,0),Cn(e,Me,It,!1)),Ki(e,a),((Qe&2)===0||e!==Fe)&&(e===Fe&&((Qe&2)===0&&(gl|=a),lt===4&&Cn(e,Me,It,!1)),Oa(e))}function dy(e,t,a){if((Qe&6)!==0)throw Error(u(327));var n=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Xi(e,t),r=n?px(e,t):zo(e,t,!0),c=n;do{if(r===0){oi&&!n&&Cn(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!mx(a)){r=zo(e,t,!1),c=!1;continue}if(r===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var y=e;r=Ns;var S=y.current.memoizedState.isDehydrated;if(S&&(hi(y,h).flags|=256),h=zo(y,h,!1),h!==2){if(To&&!S){y.errorRecoveryDisabledLanes|=c,gl|=c,r=4;break e}c=Qt,Qt=r,c!==null&&(Qt===null?Qt=c:Qt.push.apply(Qt,c))}r=h}if(c=!1,r!==2)continue}}if(r===1){hi(e,0),Cn(e,t,0,!0);break}e:{switch(n=e,c=r,c){case 0:case 1:throw Error(u(345));case 4:if((t&4194048)!==t)break;case 6:Cn(n,t,It,!wn);break e;case 2:Qt=null;break;case 3:case 5:break;default:throw Error(u(329))}if((t&62914560)===t&&(r=Pr+300-D(),10<r)){if(Cn(n,t,It,!wn),fr(n,0,!0)!==0)break e;an=t,n.timeoutHandle=Yy(hy.bind(null,n,a,Qt,tu,Ro,t,It,gl,fi,wn,c,"Throttled",-0,0),r);break e}hy(n,a,Qt,tu,Ro,t,It,gl,fi,wn,c,null,-0,0)}}break}while(!0);Oa(e)}function hy(e,t,a,n,r,c,h,y,S,M,q,X,z,k){if(e.timeoutHandle=-1,X=t.subtreeFlags,X&8192||(X&16785408)===16785408){X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qa},iy(t,c,X);var ne=(c&62914560)===c?Pr-D():(c&4194048)===c?cy-D():0;if(ne=Ix(X,ne),ne!==null){an=c,e.cancelPendingCommit=ne(Sy.bind(null,e,t,c,a,n,r,h,y,S,q,X,null,z,k)),Cn(e,c,h,!M);return}}Sy(e,t,c,a,n,r,h,y,S)}function mx(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var n=0;n<a.length;n++){var r=a[n],c=r.getSnapshot;r=r.value;try{if(!Zt(c(),r))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Cn(e,t,a,n){t&=~Ao,t&=~gl,e.suspendedLanes|=t,e.pingedLanes&=~t,n&&(e.warmLanes|=t),n=e.expirationTimes;for(var r=t;0<r;){var c=31-St(r),h=1<<c;n[c]=-1,r&=~h}a!==0&&_d(e,a,t)}function au(){return(Qe&6)===0?(ws(0),!1):!0}function Do(){if(Ce!==null){if(Ye===0)var e=Ce.return;else e=Ce,Xa=cl=null,Fc(e),ni=null,us=0,e=Ce;for(;e!==null;)Gm(e.alternate,e),e=e.return;Ce=null}}function hi(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,zx(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),an=0,Do(),Fe=e,Ce=a=Ya(e.current,null),Me=t,Ye=0,Wt=null,wn=!1,oi=Xi(e,t),To=!1,fi=It=Ao=gl=Tn=lt=0,Qt=Ns=null,Ro=!1,(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-St(n),c=1<<r;t|=e[r],n&=~c}return tn=t,_r(),a}function my(e,t){_e=null,L.H=ps,t===ai||t===Or?(t=Ch(),Ye=3):t===kc?(t=Ch(),Ye=4):Ye=t===oo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Wt=t,Ce===null&&(lt=1,Xr(e,ra(t,e.current)))}function yy(){var e=Jt.current;return e===null?!0:(Me&4194048)===Me?fa===null:(Me&62914560)===Me||(Me&536870912)!==0?e===fa:!1}function py(){var e=L.H;return L.H=ps,e===null?ps:e}function vy(){var e=L.A;return L.A=dx,e}function nu(){lt=4,wn||(Me&4194048)!==Me&&Jt.current!==null||(oi=!0),(Tn&134217727)===0&&(gl&134217727)===0||Fe===null||Cn(Fe,Me,It,!1)}function zo(e,t,a){var n=Qe;Qe|=2;var r=py(),c=vy();(Fe!==e||Me!==t)&&(tu=null,hi(e,t)),t=!1;var h=lt;e:do try{if(Ye!==0&&Ce!==null){var y=Ce,S=Wt;switch(Ye){case 8:Do(),h=6;break e;case 3:case 2:case 9:case 6:Jt.current===null&&(t=!0);var M=Ye;if(Ye=0,Wt=null,mi(e,y,S,M),a&&oi){h=0;break e}break;default:M=Ye,Ye=0,Wt=null,mi(e,y,S,M)}}yx(),h=lt;break}catch(q){my(e,q)}while(!0);return t&&e.shellSuspendCounter++,Xa=cl=null,Qe=n,L.H=r,L.A=c,Ce===null&&(Fe=null,Me=0,_r()),h}function yx(){for(;Ce!==null;)gy(Ce)}function px(e,t){var a=Qe;Qe|=2;var n=py(),r=vy();Fe!==e||Me!==t?(tu=null,eu=D()+500,hi(e,t)):oi=Xi(e,t);e:do try{if(Ye!==0&&Ce!==null){t=Ce;var c=Wt;t:switch(Ye){case 1:Ye=0,Wt=null,mi(e,t,c,1);break;case 2:case 9:if(Ah(c)){Ye=0,Wt=null,xy(t);break}t=function(){Ye!==2&&Ye!==9||Fe!==e||(Ye=7),Oa(e)},c.then(t,t);break e;case 3:Ye=7;break e;case 4:Ye=5;break e;case 7:Ah(c)?(Ye=0,Wt=null,xy(t)):(Ye=0,Wt=null,mi(e,t,c,7));break;case 5:var h=null;switch(Ce.tag){case 26:h=Ce.memoizedState;case 5:case 27:var y=Ce;if(h?lp(h):y.stateNode.complete){Ye=0,Wt=null;var S=y.sibling;if(S!==null)Ce=S;else{var M=y.return;M!==null?(Ce=M,lu(M)):Ce=null}break t}}Ye=0,Wt=null,mi(e,t,c,5);break;case 6:Ye=0,Wt=null,mi(e,t,c,6);break;case 8:Do(),lt=6;break e;default:throw Error(u(462))}}vx();break}catch(q){my(e,q)}while(!0);return Xa=cl=null,L.H=n,L.A=r,Qe=a,Ce!==null?0:(Fe=null,Me=0,_r(),lt)}function vx(){for(;Ce!==null&&!_();)gy(Ce)}function gy(e){var t=Vm(e.alternate,e,tn);e.memoizedProps=e.pendingProps,t===null?lu(e):Ce=t}function xy(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=km(a,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=km(a,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:Fc(t);default:Gm(a,t),t=Ce=vh(t,tn),t=Vm(a,t,tn)}e.memoizedProps=e.pendingProps,t===null?lu(e):Ce=t}function mi(e,t,a,n){Xa=cl=null,Fc(t),ni=null,us=0;var r=t.return;try{if(ix(e,r,t,a,Me)){lt=1,Xr(e,ra(a,e.current)),Ce=null;return}}catch(c){if(r!==null)throw Ce=r,c;lt=1,Xr(e,ra(a,e.current)),Ce=null;return}t.flags&32768?(Ue||n===1?e=!0:oi||(Me&536870912)!==0?e=!1:(wn=e=!0,(n===2||n===9||n===3||n===6)&&(n=Jt.current,n!==null&&n.tag===13&&(n.flags|=16384))),by(t,e)):lu(t)}function lu(e){var t=e;do{if((t.flags&32768)!==0){by(t,wn);return}e=t.return;var a=ux(t.alternate,t,tn);if(a!==null){Ce=a;return}if(t=t.sibling,t!==null){Ce=t;return}Ce=t=e}while(t!==null);lt===0&&(lt=5)}function by(e,t){do{var a=cx(e.alternate,e);if(a!==null){a.flags&=32767,Ce=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Ce=e;return}Ce=e=a}while(e!==null);lt=6,Ce=null}function Sy(e,t,a,n,r,c,h,y,S){e.cancelPendingCommit=null;do iu();while(yt!==0);if((Qe&6)!==0)throw Error(u(327));if(t!==null){if(t===e.current)throw Error(u(177));if(c=t.lanes|t.childLanes,c|=Sc,$g(e,a,c,h,y,S),e===Fe&&(Ce=Fe=null,Me=0),di=t,Rn=e,an=a,Co=c,Oo=r,oy=n,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Sx(le,function(){return wy(),null})):(e.callbackNode=null,e.callbackPriority=0),n=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||n){n=L.T,L.T=null,r=F.p,F.p=2,h=Qe,Qe|=4;try{ox(e,t,a)}finally{Qe=h,F.p=r,L.T=n}}yt=1,Ey(),_y(),Ny()}}function Ey(){if(yt===1){yt=0;var e=Rn,t=di,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=L.T,L.T=null;var n=F.p;F.p=2;var r=Qe;Qe|=4;try{ay(t,e);var c=Ko,h=uh(e.containerInfo),y=c.focusedElem,S=c.selectionRange;if(h!==y&&y&&y.ownerDocument&&rh(y.ownerDocument.documentElement,y)){if(S!==null&&pc(y)){var M=S.start,q=S.end;if(q===void 0&&(q=M),"selectionStart"in y)y.selectionStart=M,y.selectionEnd=Math.min(q,y.value.length);else{var X=y.ownerDocument||document,z=X&&X.defaultView||window;if(z.getSelection){var k=z.getSelection(),ne=y.textContent.length,ye=Math.min(S.start,ne),Ze=S.end===void 0?ye:Math.min(S.end,ne);!k.extend&&ye>Ze&&(h=Ze,Ze=ye,ye=h);var R=sh(y,ye),j=sh(y,Ze);if(R&&j&&(k.rangeCount!==1||k.anchorNode!==R.node||k.anchorOffset!==R.offset||k.focusNode!==j.node||k.focusOffset!==j.offset)){var O=X.createRange();O.setStart(R.node,R.offset),k.removeAllRanges(),ye>Ze?(k.addRange(O),k.extend(j.node,j.offset)):(O.setEnd(j.node,j.offset),k.addRange(O))}}}}for(X=[],k=y;k=k.parentNode;)k.nodeType===1&&X.push({element:k,left:k.scrollLeft,top:k.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<X.length;y++){var V=X[y];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}vu=!!Xo,Ko=Xo=null}finally{Qe=r,F.p=n,L.T=a}}e.current=t,yt=2}}function _y(){if(yt===2){yt=0;var e=Rn,t=di,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=L.T,L.T=null;var n=F.p;F.p=2;var r=Qe;Qe|=4;try{Wm(e,t.alternate,t)}finally{Qe=r,F.p=n,L.T=a}}yt=3}}function Ny(){if(yt===4||yt===3){yt=0,C();var e=Rn,t=di,a=an,n=oy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,di=Rn=null,jy(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(An=null),Wu(a),t=t.stateNode,Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(ct,t,void 0,(t.current.flags&128)===128)}catch{}if(n!==null){t=L.T,r=F.p,F.p=2,L.T=null;try{for(var c=e.onRecoverableError,h=0;h<n.length;h++){var y=n[h];c(y.value,{componentStack:y.stack})}}finally{L.T=t,F.p=r}}(an&3)!==0&&iu(),Oa(e),r=e.pendingLanes,(a&261930)!==0&&(r&42)!==0?e===Mo?js++:(js=0,Mo=e):js=0,ws(0)}}function jy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ss(t)))}function iu(){return Ey(),_y(),Ny(),wy()}function wy(){if(yt!==5)return!1;var e=Rn,t=Co;Co=0;var a=Wu(an),n=L.T,r=F.p;try{F.p=32>a?32:a,L.T=null,a=Oo,Oo=null;var c=Rn,h=an;if(yt=0,di=Rn=null,an=0,(Qe&6)!==0)throw Error(u(331));var y=Qe;if(Qe|=4,ry(c.current),ly(c,c.current,h,a),Qe=y,ws(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(ct,c)}catch{}return!0}finally{F.p=r,L.T=n,jy(e,t)}}function Ty(e,t,a){t=ra(a,t),t=co(e.stateNode,t,2),e=En(e,t,2),e!==null&&(Ki(e,2),Oa(e))}function Ge(e,t,a){if(e.tag===3)Ty(e,e,a);else for(;t!==null;){if(t.tag===3){Ty(t,e,a);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(An===null||!An.has(n))){e=ra(a,e),a=Am(2),n=En(t,a,2),n!==null&&(Rm(a,n,t,e),Ki(n,2),Oa(n));break}}t=t.return}}function Uo(e,t,a){var n=e.pingCache;if(n===null){n=e.pingCache=new hx;var r=new Set;n.set(t,r)}else r=n.get(t),r===void 0&&(r=new Set,n.set(t,r));r.has(a)||(To=!0,r.add(a),e=gx.bind(null,e,t,a),t.then(e,e))}function gx(e,t,a){var n=e.pingCache;n!==null&&n.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Fe===e&&(Me&a)===a&&(lt===4||lt===3&&(Me&62914560)===Me&&300>D()-Pr?(Qe&2)===0&&hi(e,0):Ao|=a,fi===Me&&(fi=0)),Oa(e)}function Ay(e,t){t===0&&(t=Ed()),e=sl(e,t),e!==null&&(Ki(e,t),Oa(e))}function xx(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ay(e,a)}function bx(e,t){var a=0;switch(e.tag){case 31:case 13:var n=e.stateNode,r=e.memoizedState;r!==null&&(a=r.retryLane);break;case 19:n=e.stateNode;break;case 22:n=e.stateNode._retryCache;break;default:throw Error(u(314))}n!==null&&n.delete(t),Ay(e,a)}function Sx(e,t){return rr(e,t)}var su=null,yi=null,ko=!1,ru=!1,Lo=!1,On=0;function Oa(e){e!==yi&&e.next===null&&(yi===null?su=yi=e:yi=yi.next=e),ru=!0,ko||(ko=!0,_x())}function ws(e,t){if(!Lo&&ru){Lo=!0;do for(var a=!1,n=su;n!==null;){if(e!==0){var r=n.pendingLanes;if(r===0)var c=0;else{var h=n.suspendedLanes,y=n.pingedLanes;c=(1<<31-St(42|e)+1)-1,c&=r&~(h&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,My(n,c))}else c=Me,c=fr(n,n===Fe?c:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(c&3)===0||Xi(n,c)||(a=!0,My(n,c));n=n.next}while(a);Lo=!1}}function Ex(){Ry()}function Ry(){ru=ko=!1;var e=0;On!==0&&Dx()&&(e=On);for(var t=D(),a=null,n=su;n!==null;){var r=n.next,c=Cy(n,t);c===0?(n.next=null,a===null?su=r:a.next=r,r===null&&(yi=a)):(a=n,(e!==0||(c&3)!==0)&&(ru=!0)),n=r}yt!==0&&yt!==5||ws(e),On!==0&&(On=0)}function Cy(e,t){for(var a=e.suspendedLanes,n=e.pingedLanes,r=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-St(c),y=1<<h,S=r[h];S===-1?((y&a)===0||(y&n)!==0)&&(r[h]=Jg(y,t)):S<=t&&(e.expiredLanes|=y),c&=~y}if(t=Fe,a=Me,a=fr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n=e.callbackNode,a===0||e===t&&(Ye===2||Ye===9)||e.cancelPendingCommit!==null)return n!==null&&n!==null&&Ul(n),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Xi(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(n!==null&&Ul(n),Wu(a)){case 2:case 8:a=$;break;case 32:a=le;break;case 268435456:a=He;break;default:a=le}return n=Oy.bind(null,e),a=rr(a,n),e.callbackPriority=t,e.callbackNode=a,t}return n!==null&&n!==null&&Ul(n),e.callbackPriority=2,e.callbackNode=null,2}function Oy(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(iu()&&e.callbackNode!==a)return null;var n=Me;return n=fr(e,e===Fe?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),n===0?null:(dy(e,n,t),Cy(e,D()),e.callbackNode!=null&&e.callbackNode===a?Oy.bind(null,e):null)}function My(e,t){if(iu())return null;dy(e,t,!0)}function _x(){Ux(function(){(Qe&6)!==0?rr(J,Ex):Ry()})}function Ho(){if(On===0){var e=ei;e===0&&(e=el,el<<=1,(el&261888)===0&&(el=256)),On=e}return On}function Dy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:yr(""+e)}function zy(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Nx(e,t,a,n,r){if(t==="submit"&&a&&a.stateNode===r){var c=Dy((r[kt]||null).action),h=n.submitter;h&&(t=(t=h[kt]||null)?Dy(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var y=new xr("action","action",null,n,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(On!==0){var S=h?zy(r,h):new FormData(r);no(a,{pending:!0,data:S,method:r.method,action:c},null,S)}}else typeof c=="function"&&(y.preventDefault(),S=h?zy(r,h):new FormData(r),no(a,{pending:!0,data:S,method:r.method,action:c},c,S))},currentTarget:r}]})}}for(var qo=0;qo<bc.length;qo++){var Bo=bc[qo],jx=Bo.toLowerCase(),wx=Bo[0].toUpperCase()+Bo.slice(1);pa(jx,"on"+wx)}pa(fh,"onAnimationEnd"),pa(dh,"onAnimationIteration"),pa(hh,"onAnimationStart"),pa("dblclick","onDoubleClick"),pa("focusin","onFocus"),pa("focusout","onBlur"),pa(V0,"onTransitionRun"),pa(Y0,"onTransitionStart"),pa(G0,"onTransitionCancel"),pa(mh,"onTransitionEnd"),Bl("onMouseEnter",["mouseout","mouseover"]),Bl("onMouseLeave",["mouseout","mouseover"]),Bl("onPointerEnter",["pointerout","pointerover"]),Bl("onPointerLeave",["pointerout","pointerover"]),al("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),al("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),al("onBeforeInput",["compositionend","keypress","textInput","paste"]),al("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),al("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),al("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ts="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(" "),Tx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ts));function Uy(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var n=e[a],r=n.event;n=n.listeners;e:{var c=void 0;if(t)for(var h=n.length-1;0<=h;h--){var y=n[h],S=y.instance,M=y.currentTarget;if(y=y.listener,S!==c&&r.isPropagationStopped())break e;c=y,r.currentTarget=M;try{c(r)}catch(q){Er(q)}r.currentTarget=null,c=S}else for(h=0;h<n.length;h++){if(y=n[h],S=y.instance,M=y.currentTarget,y=y.listener,S!==c&&r.isPropagationStopped())break e;c=y,r.currentTarget=M;try{c(r)}catch(q){Er(q)}r.currentTarget=null,c=S}}}}function Oe(e,t){var a=t[Iu];a===void 0&&(a=t[Iu]=new Set);var n=e+"__bubble";a.has(n)||(ky(t,e,2,!1),a.add(n))}function Qo(e,t,a){var n=0;t&&(n|=4),ky(a,e,n,t)}var uu="_reactListening"+Math.random().toString(36).slice(2);function Vo(e){if(!e[uu]){e[uu]=!0,Rd.forEach(function(a){a!=="selectionchange"&&(Tx.has(a)||Qo(a,!1,e),Qo(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[uu]||(t[uu]=!0,Qo("selectionchange",!1,t))}}function ky(e,t,a,n){switch(fp(t)){case 2:var r=tb;break;case 8:r=ab;break;default:r=nf}a=r.bind(null,t,a,e),r=void 0,!rc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),n?r!==void 0?e.addEventListener(t,a,{capture:!0,passive:r}):e.addEventListener(t,a,!0):r!==void 0?e.addEventListener(t,a,{passive:r}):e.addEventListener(t,a,!1)}function Yo(e,t,a,n,r){var c=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var h=n.tag;if(h===3||h===4){var y=n.stateNode.containerInfo;if(y===r)break;if(h===4)for(h=n.return;h!==null;){var S=h.tag;if((S===3||S===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;y!==null;){if(h=Ll(y),h===null)return;if(S=h.tag,S===5||S===6||S===26||S===27){n=c=h;continue e}y=y.parentNode}}n=n.return}Qd(function(){var M=c,q=ic(a),X=[];e:{var z=yh.get(e);if(z!==void 0){var k=xr,ne=e;switch(e){case"keypress":if(vr(a)===0)break e;case"keydown":case"keyup":k=b0;break;case"focusin":ne="focus",k=fc;break;case"focusout":ne="blur",k=fc;break;case"beforeblur":case"afterblur":k=fc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":k=Gd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":k=u0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":k=_0;break;case fh:case dh:case hh:k=f0;break;case mh:k=j0;break;case"scroll":case"scrollend":k=s0;break;case"wheel":k=T0;break;case"copy":case"cut":case"paste":k=h0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":k=Kd;break;case"toggle":case"beforetoggle":k=R0}var ye=(t&4)!==0,Ze=!ye&&(e==="scroll"||e==="scrollend"),R=ye?z!==null?z+"Capture":null:z;ye=[];for(var j=M,O;j!==null;){var V=j;if(O=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||O===null||R===null||(V=Ji(j,R),V!=null&&ye.push(As(j,V,O))),Ze)break;j=j.return}0<ye.length&&(z=new k(z,ne,null,a,q),X.push({event:z,listeners:ye}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",k=e==="mouseout"||e==="pointerout",z&&a!==lc&&(ne=a.relatedTarget||a.fromElement)&&(Ll(ne)||ne[kl]))break e;if((k||z)&&(z=q.window===q?q:(z=q.ownerDocument)?z.defaultView||z.parentWindow:window,k?(ne=a.relatedTarget||a.toElement,k=M,ne=ne?Ll(ne):null,ne!==null&&(Ze=d(ne),ye=ne.tag,ne!==Ze||ye!==5&&ye!==27&&ye!==6)&&(ne=null)):(k=null,ne=M),k!==ne)){if(ye=Gd,V="onMouseLeave",R="onMouseEnter",j="mouse",(e==="pointerout"||e==="pointerover")&&(ye=Kd,V="onPointerLeave",R="onPointerEnter",j="pointer"),Ze=k==null?z:Fi(k),O=ne==null?z:Fi(ne),z=new ye(V,j+"leave",k,a,q),z.target=Ze,z.relatedTarget=O,V=null,Ll(q)===M&&(ye=new ye(R,j+"enter",ne,a,q),ye.target=O,ye.relatedTarget=Ze,V=ye),Ze=V,k&&ne)t:{for(ye=Ax,R=k,j=ne,O=0,V=R;V;V=ye(V))O++;V=0;for(var de=j;de;de=ye(de))V++;for(;0<O-V;)R=ye(R),O--;for(;0<V-O;)j=ye(j),V--;for(;O--;){if(R===j||j!==null&&R===j.alternate){ye=R;break t}R=ye(R),j=ye(j)}ye=null}else ye=null;k!==null&&Ly(X,z,k,ye,!1),ne!==null&&Ze!==null&&Ly(X,Ze,ne,ye,!0)}}e:{if(z=M?Fi(M):window,k=z.nodeName&&z.nodeName.toLowerCase(),k==="select"||k==="input"&&z.type==="file")var qe=eh;else if(Id(z))if(th)qe=q0;else{qe=L0;var ue=k0}else k=z.nodeName,!k||k.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?M&&nc(M.elementType)&&(qe=eh):qe=H0;if(qe&&(qe=qe(e,M))){Pd(X,qe,a,q);break e}ue&&ue(e,z,M),e==="focusout"&&M&&z.type==="number"&&M.memoizedProps.value!=null&&ac(z,"number",z.value)}switch(ue=M?Fi(M):window,e){case"focusin":(Id(ue)||ue.contentEditable==="true")&&(Kl=ue,vc=M,ns=null);break;case"focusout":ns=vc=Kl=null;break;case"mousedown":gc=!0;break;case"contextmenu":case"mouseup":case"dragend":gc=!1,ch(X,a,q);break;case"selectionchange":if(Q0)break;case"keydown":case"keyup":ch(X,a,q)}var je;if(hc)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Xl?$d(e,a)&&(De="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(De="onCompositionStart");De&&(Zd&&a.locale!=="ko"&&(Xl||De!=="onCompositionStart"?De==="onCompositionEnd"&&Xl&&(je=Vd()):(yn=q,uc="value"in yn?yn.value:yn.textContent,Xl=!0)),ue=cu(M,De),0<ue.length&&(De=new Xd(De,e,null,a,q),X.push({event:De,listeners:ue}),je?De.data=je:(je=Wd(a),je!==null&&(De.data=je)))),(je=O0?M0(e,a):D0(e,a))&&(De=cu(M,"onBeforeInput"),0<De.length&&(ue=new Xd("onBeforeInput","beforeinput",null,a,q),X.push({event:ue,listeners:De}),ue.data=je)),Nx(X,e,M,a,q)}Uy(X,t)})}function As(e,t,a){return{instance:e,listener:t,currentTarget:a}}function cu(e,t){for(var a=t+"Capture",n=[];e!==null;){var r=e,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=Ji(e,a),r!=null&&n.unshift(As(e,r,c)),r=Ji(e,t),r!=null&&n.push(As(e,r,c))),e.tag===3)return n;e=e.return}return[]}function Ax(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Ly(e,t,a,n,r){for(var c=t._reactName,h=[];a!==null&&a!==n;){var y=a,S=y.alternate,M=y.stateNode;if(y=y.tag,S!==null&&S===n)break;y!==5&&y!==26&&y!==27||M===null||(S=M,r?(M=Ji(a,c),M!=null&&h.unshift(As(a,M,S))):r||(M=Ji(a,c),M!=null&&h.push(As(a,M,S)))),a=a.return}h.length!==0&&e.push({event:t,listeners:h})}var Rx=/\r\n?/g,Cx=/\u0000|\uFFFD/g;function Hy(e){return(typeof e=="string"?e:""+e).replace(Rx,`
|
||
`).replace(Cx,"")}function qy(e,t){return t=Hy(t),Hy(e)===t}function Ke(e,t,a,n,r,c){switch(a){case"children":typeof n=="string"?t==="body"||t==="textarea"&&n===""||Vl(e,n):(typeof n=="number"||typeof n=="bigint")&&t!=="body"&&Vl(e,""+n);break;case"className":hr(e,"class",n);break;case"tabIndex":hr(e,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":hr(e,a,n);break;case"style":qd(e,n,c);break;case"data":if(t!=="object"){hr(e,"data",n);break}case"src":case"href":if(n===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=yr(""+n),e.setAttribute(a,n);break;case"action":case"formAction":if(typeof n=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Ke(e,t,"name",r.name,r,null),Ke(e,t,"formEncType",r.formEncType,r,null),Ke(e,t,"formMethod",r.formMethod,r,null),Ke(e,t,"formTarget",r.formTarget,r,null)):(Ke(e,t,"encType",r.encType,r,null),Ke(e,t,"method",r.method,r,null),Ke(e,t,"target",r.target,r,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){e.removeAttribute(a);break}n=yr(""+n),e.setAttribute(a,n);break;case"onClick":n!=null&&(e.onclick=Qa);break;case"onScroll":n!=null&&Oe("scroll",e);break;case"onScrollEnd":n!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"multiple":e.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":e.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){e.removeAttribute("xlink:href");break}a=yr(""+n),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""+n):e.removeAttribute(a);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":n&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":n===!0?e.setAttribute(a,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?e.setAttribute(a,n):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?e.setAttribute(a,n):e.removeAttribute(a);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?e.removeAttribute(a):e.setAttribute(a,n);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),dr(e,"popover",n);break;case"xlinkActuate":Ba(e,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Ba(e,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Ba(e,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Ba(e,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Ba(e,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Ba(e,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Ba(e,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Ba(e,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Ba(e,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":dr(e,"is",n);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=l0.get(a)||a,dr(e,a,n))}}function Go(e,t,a,n,r,c){switch(a){case"style":qd(e,n,c);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(u(61));if(a=n.__html,a!=null){if(r.children!=null)throw Error(u(60));e.innerHTML=a}}break;case"children":typeof n=="string"?Vl(e,n):(typeof n=="number"||typeof n=="bigint")&&Vl(e,""+n);break;case"onScroll":n!=null&&Oe("scroll",e);break;case"onScrollEnd":n!=null&&Oe("scrollend",e);break;case"onClick":n!=null&&(e.onclick=Qa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Cd.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),t=a.slice(2,r?a.length-7:void 0),c=e[kt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,r),typeof n=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,n,r);break e}a in e?e[a]=n:n===!0?e.setAttribute(a,""):dr(e,a,n)}}}function wt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var n=!1,r=!1,c;for(c in a)if(a.hasOwnProperty(c)){var h=a[c];if(h!=null)switch(c){case"src":n=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ke(e,t,c,h,a,null)}}r&&Ke(e,t,"srcSet",a.srcSet,a,null),n&&Ke(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var y=c=h=r=null,S=null,M=null;for(n in a)if(a.hasOwnProperty(n)){var q=a[n];if(q!=null)switch(n){case"name":r=q;break;case"type":h=q;break;case"checked":S=q;break;case"defaultChecked":M=q;break;case"value":c=q;break;case"defaultValue":y=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(u(137,t));break;default:Ke(e,t,n,q,a,null)}}Ud(e,c,y,S,M,h,r,!1);return;case"select":Oe("invalid",e),n=h=c=null;for(r in a)if(a.hasOwnProperty(r)&&(y=a[r],y!=null))switch(r){case"value":c=y;break;case"defaultValue":h=y;break;case"multiple":n=y;default:Ke(e,t,r,y,a,null)}t=c,a=h,e.multiple=!!n,t!=null?Ql(e,!!n,t,!1):a!=null&&Ql(e,!!n,a,!0);return;case"textarea":Oe("invalid",e),c=r=n=null;for(h in a)if(a.hasOwnProperty(h)&&(y=a[h],y!=null))switch(h){case"value":n=y;break;case"defaultValue":r=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(u(91));break;default:Ke(e,t,h,y,a,null)}Ld(e,n,r,c);return;case"option":for(S in a)if(a.hasOwnProperty(S)&&(n=a[S],n!=null))switch(S){case"selected":e.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Ke(e,t,S,n,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(n=0;n<Ts.length;n++)Oe(Ts[n],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in a)if(a.hasOwnProperty(M)&&(n=a[M],n!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,t));default:Ke(e,t,M,n,a,null)}return;default:if(nc(t)){for(q in a)a.hasOwnProperty(q)&&(n=a[q],n!==void 0&&Go(e,t,q,n,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(n=a[y],n!=null&&Ke(e,t,y,n,a,null))}function Ox(e,t,a,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,h=null,y=null,S=null,M=null,q=null;for(k in a){var X=a[k];if(a.hasOwnProperty(k)&&X!=null)switch(k){case"checked":break;case"value":break;case"defaultValue":S=X;default:n.hasOwnProperty(k)||Ke(e,t,k,null,n,X)}}for(var z in n){var k=n[z];if(X=a[z],n.hasOwnProperty(z)&&(k!=null||X!=null))switch(z){case"type":c=k;break;case"name":r=k;break;case"checked":M=k;break;case"defaultChecked":q=k;break;case"value":h=k;break;case"defaultValue":y=k;break;case"children":case"dangerouslySetInnerHTML":if(k!=null)throw Error(u(137,t));break;default:k!==X&&Ke(e,t,z,k,n,X)}}tc(e,h,y,S,M,q,c,r);return;case"select":k=h=y=z=null;for(c in a)if(S=a[c],a.hasOwnProperty(c)&&S!=null)switch(c){case"value":break;case"multiple":k=S;default:n.hasOwnProperty(c)||Ke(e,t,c,null,n,S)}for(r in n)if(c=n[r],S=a[r],n.hasOwnProperty(r)&&(c!=null||S!=null))switch(r){case"value":z=c;break;case"defaultValue":y=c;break;case"multiple":h=c;default:c!==S&&Ke(e,t,r,c,n,S)}t=y,a=h,n=k,z!=null?Ql(e,!!a,z,!1):!!n!=!!a&&(t!=null?Ql(e,!!a,t,!0):Ql(e,!!a,a?[]:"",!1));return;case"textarea":k=z=null;for(y in a)if(r=a[y],a.hasOwnProperty(y)&&r!=null&&!n.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Ke(e,t,y,null,n,r)}for(h in n)if(r=n[h],c=a[h],n.hasOwnProperty(h)&&(r!=null||c!=null))switch(h){case"value":z=r;break;case"defaultValue":k=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==c&&Ke(e,t,h,r,n,c)}kd(e,z,k);return;case"option":for(var ne in a)if(z=a[ne],a.hasOwnProperty(ne)&&z!=null&&!n.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:Ke(e,t,ne,null,n,z)}for(S in n)if(z=n[S],k=a[S],n.hasOwnProperty(S)&&z!==k&&(z!=null||k!=null))switch(S){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Ke(e,t,S,z,n,k)}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 ye in a)z=a[ye],a.hasOwnProperty(ye)&&z!=null&&!n.hasOwnProperty(ye)&&Ke(e,t,ye,null,n,z);for(M in n)if(z=n[M],k=a[M],n.hasOwnProperty(M)&&z!==k&&(z!=null||k!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(u(137,t));break;default:Ke(e,t,M,z,n,k)}return;default:if(nc(t)){for(var Ze in a)z=a[Ze],a.hasOwnProperty(Ze)&&z!==void 0&&!n.hasOwnProperty(Ze)&&Go(e,t,Ze,void 0,n,z);for(q in n)z=n[q],k=a[q],!n.hasOwnProperty(q)||z===k||z===void 0&&k===void 0||Go(e,t,q,z,n,k);return}}for(var R in a)z=a[R],a.hasOwnProperty(R)&&z!=null&&!n.hasOwnProperty(R)&&Ke(e,t,R,null,n,z);for(X in n)z=n[X],k=a[X],!n.hasOwnProperty(X)||z===k||z==null&&k==null||Ke(e,t,X,z,n,k)}function By(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Mx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),n=0;n<a.length;n++){var r=a[n],c=r.transferSize,h=r.initiatorType,y=r.duration;if(c&&y&&By(h)){for(h=0,y=r.responseEnd,n+=1;n<a.length;n++){var S=a[n],M=S.startTime;if(M>y)break;var q=S.transferSize,X=S.initiatorType;q&&By(X)&&(S=S.responseEnd,h+=q*(S<y?1:(y-M)/(S-M)))}if(--n,t+=8*(c+h)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Xo=null,Ko=null;function ou(e){return e.nodeType===9?e:e.ownerDocument}function Qy(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Vy(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Zo(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Fo=null;function Dx(){var e=window.event;return e&&e.type==="popstate"?e===Fo?!1:(Fo=e,!0):(Fo=null,!1)}var Yy=typeof setTimeout=="function"?setTimeout:void 0,zx=typeof clearTimeout=="function"?clearTimeout:void 0,Gy=typeof Promise=="function"?Promise:void 0,Ux=typeof queueMicrotask=="function"?queueMicrotask:typeof Gy<"u"?function(e){return Gy.resolve(null).then(e).catch(kx)}:Yy;function kx(e){setTimeout(function(){throw e})}function Mn(e){return e==="head"}function Xy(e,t){var a=t,n=0;do{var r=a.nextSibling;if(e.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(n===0){e.removeChild(r),xi(t);return}n--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")n++;else if(a==="html")Rs(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Rs(a);for(var c=a.firstChild;c;){var h=c.nextSibling,y=c.nodeName;c[Zi]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=h}}else a==="body"&&Rs(e.ownerDocument.body);a=r}while(a);xi(t)}function Ky(e,t){var a=e;e=0;do{var n=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),n&&n.nodeType===8)if(a=n.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=n}while(a)}function Jo(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Jo(a),Pu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Lx(e,t,a,n){for(;e.nodeType===1;){var r=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!n&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(n){if(!e[Zi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=da(e.nextSibling),e===null)break}return null}function Hx(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=da(e.nextSibling),e===null))return null;return e}function Zy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=da(e.nextSibling),e===null))return null;return e}function $o(e){return e.data==="$?"||e.data==="$~"}function Wo(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function qx(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var n=function(){t(),a.removeEventListener("DOMContentLoaded",n)};a.addEventListener("DOMContentLoaded",n),e._reactRetry=n}}function da(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Io=null;function Fy(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return da(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Jy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function $y(e,t,a){switch(t=ou(a),e){case"html":if(e=t.documentElement,!e)throw Error(u(452));return e;case"head":if(e=t.head,!e)throw Error(u(453));return e;case"body":if(e=t.body,!e)throw Error(u(454));return e;default:throw Error(u(451))}}function Rs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pu(e)}var ha=new Map,Wy=new Set;function fu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var nn=F.d;F.d={f:Bx,r:Qx,D:Vx,C:Yx,L:Gx,m:Xx,X:Zx,S:Kx,M:Fx};function Bx(){var e=nn.f(),t=au();return e||t}function Qx(e){var t=Hl(e);t!==null&&t.tag===5&&t.type==="form"?mm(t):nn.r(e)}var pi=typeof document>"u"?null:document;function Iy(e,t,a){var n=pi;if(n&&typeof t=="string"&&t){var r=ia(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),Wy.has(r)||(Wy.add(r),e={rel:e,crossOrigin:a,href:t},n.querySelector(r)===null&&(t=n.createElement("link"),wt(t,"link",e),gt(t),n.head.appendChild(t)))}}function Vx(e){nn.D(e),Iy("dns-prefetch",e,null)}function Yx(e,t){nn.C(e,t),Iy("preconnect",e,t)}function Gx(e,t,a){nn.L(e,t,a);var n=pi;if(n&&e&&t){var r='link[rel="preload"][as="'+ia(t)+'"]';t==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+ia(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+ia(a.imageSizes)+'"]')):r+='[href="'+ia(e)+'"]';var c=r;switch(t){case"style":c=vi(e);break;case"script":c=gi(e)}ha.has(c)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),ha.set(c,e),n.querySelector(r)!==null||t==="style"&&n.querySelector(Cs(c))||t==="script"&&n.querySelector(Os(c))||(t=n.createElement("link"),wt(t,"link",e),gt(t),n.head.appendChild(t)))}}function Xx(e,t){nn.m(e,t);var a=pi;if(a&&e){var n=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+ia(n)+'"][href="'+ia(e)+'"]',c=r;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=gi(e)}if(!ha.has(c)&&(e=g({rel:"modulepreload",href:e},t),ha.set(c,e),a.querySelector(r)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Os(c)))return}n=a.createElement("link"),wt(n,"link",e),gt(n),a.head.appendChild(n)}}}function Kx(e,t,a){nn.S(e,t,a);var n=pi;if(n&&e){var r=ql(n).hoistableStyles,c=vi(e);t=t||"default";var h=r.get(c);if(!h){var y={loading:0,preload:null};if(h=n.querySelector(Cs(c)))y.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=ha.get(c))&&Po(e,a);var S=h=n.createElement("link");gt(S),wt(S,"link",e),S._p=new Promise(function(M,q){S.onload=M,S.onerror=q}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,du(h,t,n)}h={type:"stylesheet",instance:h,count:1,state:y},r.set(c,h)}}}function Zx(e,t){nn.X(e,t);var a=pi;if(a&&e){var n=ql(a).hoistableScripts,r=gi(e),c=n.get(r);c||(c=a.querySelector(Os(r)),c||(e=g({src:e,async:!0},t),(t=ha.get(r))&&ef(e,t),c=a.createElement("script"),gt(c),wt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(r,c))}}function Fx(e,t){nn.M(e,t);var a=pi;if(a&&e){var n=ql(a).hoistableScripts,r=gi(e),c=n.get(r);c||(c=a.querySelector(Os(r)),c||(e=g({src:e,async:!0,type:"module"},t),(t=ha.get(r))&&ef(e,t),c=a.createElement("script"),gt(c),wt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},n.set(r,c))}}function Py(e,t,a,n){var r=(r=ge.current)?fu(r):null;if(!r)throw Error(u(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=vi(a.href),a=ql(r).hoistableStyles,n=a.get(t),n||(n={type:"style",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=vi(a.href);var c=ql(r).hoistableStyles,h=c.get(e);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=r.querySelector(Cs(e)))&&!c._p&&(h.instance=c,h.state.loading=5),ha.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},ha.set(e,a),c||Jx(r,e,a,h.state))),t&&n===null)throw Error(u(528,""));return h}if(t&&n!==null)throw Error(u(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gi(a),a=ql(r).hoistableScripts,n=a.get(t),n||(n={type:"script",instance:null,count:0,state:null},a.set(t,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,e))}}function vi(e){return'href="'+ia(e)+'"'}function Cs(e){return'link[rel="stylesheet"]['+e+"]"}function ep(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Jx(e,t,a,n){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?n.loading=1:(t=e.createElement("link"),n.preload=t,t.addEventListener("load",function(){return n.loading|=1}),t.addEventListener("error",function(){return n.loading|=2}),wt(t,"link",a),gt(t),e.head.appendChild(t))}function gi(e){return'[src="'+ia(e)+'"]'}function Os(e){return"script[async]"+e}function tp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var n=e.querySelector('style[data-href~="'+ia(a.href)+'"]');if(n)return t.instance=n,gt(n),n;var r=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return n=(e.ownerDocument||e).createElement("style"),gt(n),wt(n,"style",r),du(n,a.precedence,e),t.instance=n;case"stylesheet":r=vi(a.href);var c=e.querySelector(Cs(r));if(c)return t.state.loading|=4,t.instance=c,gt(c),c;n=ep(a),(r=ha.get(r))&&Po(n,r),c=(e.ownerDocument||e).createElement("link"),gt(c);var h=c;return h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),wt(c,"link",n),t.state.loading|=4,du(c,a.precedence,e),t.instance=c;case"script":return c=gi(a.src),(r=e.querySelector(Os(c)))?(t.instance=r,gt(r),r):(n=a,(r=ha.get(c))&&(n=g({},a),ef(n,r)),e=e.ownerDocument||e,r=e.createElement("script"),gt(r),wt(r,"link",n),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(u(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(n=t.instance,t.state.loading|=4,du(n,a.precedence,e));return t.instance}function du(e,t,a){for(var n=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=n.length?n[n.length-1]:null,c=r,h=0;h<n.length;h++){var y=n[h];if(y.dataset.precedence===t)c=y;else if(c!==r)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Po(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ef(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var hu=null;function ap(e,t,a){if(hu===null){var n=new Map,r=hu=new Map;r.set(a,n)}else r=hu,n=r.get(a),n||(n=new Map,r.set(a,n));if(n.has(e))return n;for(n.set(e,null),a=a.getElementsByTagName(e),r=0;r<a.length;r++){var c=a[r];if(!(c[Zi]||c[Et]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var y=n.get(h);y?y.push(c):n.set(h,[c])}}return n}function np(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function $x(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function lp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Wx(e,t,a,n){if(a.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=vi(n.href),c=t.querySelector(Cs(r));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=mu.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,gt(c);return}c=t.ownerDocument||t,n=ep(n),(r=ha.get(r))&&Po(n,r),c=c.createElement("link"),gt(c);var h=c;h._p=new Promise(function(y,S){h.onload=y,h.onerror=S}),wt(c,"link",n),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=mu.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var tf=0;function Ix(e,t){return e.stylesheets&&e.count===0&&pu(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var n=setTimeout(function(){if(e.stylesheets&&pu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&tf===0&&(tf=62500*Mx());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&pu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>tf?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(n),clearTimeout(r)}}:null}function mu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)pu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var yu=null;function pu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,yu=new Map,t.forEach(Px,e),yu=null,mu.call(e))}function Px(e,t){if(!(t.state.loading&4)){var a=yu.get(e);if(a)var n=a.get(null);else{a=new Map,yu.set(e,a);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var h=r[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(a.set(h.dataset.precedence,h),n=h)}n&&a.set(null,n)}r=t.instance,h=r.getAttribute("data-precedence"),c=a.get(h)||n,c===n&&a.set(null,r),a.set(h,r),this.count++,n=mu.bind(this),r.addEventListener("load",n),r.addEventListener("error",n),c?c.parentNode.insertBefore(r,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ms={$$typeof:K,Provider:null,Consumer:null,_currentValue:ie,_currentValue2:ie,_threadCount:0};function eb(e,t,a,n,r,c,h,y,S){this.tag=1,this.containerInfo=e,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=Ju(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ju(0),this.hiddenUpdates=Ju(null),this.identifierPrefix=n,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function ip(e,t,a,n,r,c,h,y,S,M,q,X){return e=new eb(e,t,a,h,S,M,q,X,y),t=1,c===!0&&(t|=24),c=Ft(3,null,null,t),e.current=c,c.stateNode=e,t=Dc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:n,isDehydrated:a,cache:t},Lc(c),e}function sp(e){return e?(e=Jl,e):Jl}function rp(e,t,a,n,r,c){r=sp(r),n.context===null?n.context=r:n.pendingContext=r,n=Sn(t),n.payload={element:a},c=c===void 0?null:c,c!==null&&(n.callback=c),a=En(e,n,t),a!==null&&(Vt(a,e,t),os(a,e,t))}function up(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function af(e,t){up(e,t),(e=e.alternate)&&up(e,t)}function cp(e){if(e.tag===13||e.tag===31){var t=sl(e,67108864);t!==null&&Vt(t,e,67108864),af(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=Pt();t=$u(t);var a=sl(e,t);a!==null&&Vt(a,e,t),af(e,t)}}var vu=!0;function tb(e,t,a,n){var r=L.T;L.T=null;var c=F.p;try{F.p=2,nf(e,t,a,n)}finally{F.p=c,L.T=r}}function ab(e,t,a,n){var r=L.T;L.T=null;var c=F.p;try{F.p=8,nf(e,t,a,n)}finally{F.p=c,L.T=r}}function nf(e,t,a,n){if(vu){var r=lf(n);if(r===null)Yo(e,t,n,gu,a),dp(e,n);else if(lb(r,e,t,a,n))n.stopPropagation();else if(dp(e,n),t&4&&-1<nb.indexOf(e)){for(;r!==null;){var c=Hl(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=tl(c.pendingLanes);if(h!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var S=1<<31-St(h);y.entanglements[1]|=S,h&=~S}Oa(c),(Qe&6)===0&&(eu=D()+500,ws(0))}}break;case 31:case 13:y=sl(c,2),y!==null&&Vt(y,c,2),au(),af(c,2)}if(c=lf(n),c===null&&Yo(e,t,n,gu,a),c===r)break;r=c}r!==null&&n.stopPropagation()}else Yo(e,t,n,null,a)}}function lf(e){return e=ic(e),sf(e)}var gu=null;function sf(e){if(gu=null,e=Ll(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===31){if(e=p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return gu=e,null}function fp(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 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(P()){case J:return 2;case $:return 8;case le:case Ee:return 32;case He:return 268435456;default:return 32}default:return 32}}var rf=!1,Dn=null,zn=null,Un=null,Ds=new Map,zs=new Map,kn=[],nb="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 dp(e,t){switch(e){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":zn=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":Ds.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":zs.delete(t.pointerId)}}function Us(e,t,a,n,r,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:n,nativeEvent:c,targetContainers:[r]},t!==null&&(t=Hl(t),t!==null&&cp(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function lb(e,t,a,n,r){switch(t){case"focusin":return Dn=Us(Dn,e,t,a,n,r),!0;case"dragenter":return zn=Us(zn,e,t,a,n,r),!0;case"mouseover":return Un=Us(Un,e,t,a,n,r),!0;case"pointerover":var c=r.pointerId;return Ds.set(c,Us(Ds.get(c)||null,e,t,a,n,r)),!0;case"gotpointercapture":return c=r.pointerId,zs.set(c,Us(zs.get(c)||null,e,t,a,n,r)),!0}return!1}function hp(e){var t=Ll(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,Td(e.priority,function(){op(a)});return}}else if(t===31){if(t=p(a),t!==null){e.blockedOn=t,Td(e.priority,function(){op(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function xu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=lf(e.nativeEvent);if(a===null){a=e.nativeEvent;var n=new a.constructor(a.type,a);lc=n,a.target.dispatchEvent(n),lc=null}else return t=Hl(a),t!==null&&cp(t),e.blockedOn=a,!1;t.shift()}return!0}function mp(e,t,a){xu(e)&&a.delete(t)}function ib(){rf=!1,Dn!==null&&xu(Dn)&&(Dn=null),zn!==null&&xu(zn)&&(zn=null),Un!==null&&xu(Un)&&(Un=null),Ds.forEach(mp),zs.forEach(mp)}function bu(e,t){e.blockedOn===t&&(e.blockedOn=null,rf||(rf=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,ib)))}var Su=null;function yp(e){Su!==e&&(Su=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Su===e&&(Su=null);for(var t=0;t<e.length;t+=3){var a=e[t],n=e[t+1],r=e[t+2];if(typeof n!="function"){if(sf(n||a)===null)continue;break}var c=Hl(a);c!==null&&(e.splice(t,3),t-=3,no(c,{pending:!0,data:r,method:a.method,action:n},n,r))}}))}function xi(e){function t(S){return bu(S,e)}Dn!==null&&bu(Dn,e),zn!==null&&bu(zn,e),Un!==null&&bu(Un,e),Ds.forEach(t),zs.forEach(t);for(var a=0;a<kn.length;a++){var n=kn[a];n.blockedOn===e&&(n.blockedOn=null)}for(;0<kn.length&&(a=kn[0],a.blockedOn===null);)hp(a),a.blockedOn===null&&kn.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(n=0;n<a.length;n+=3){var r=a[n],c=a[n+1],h=r[kt]||null;if(typeof c=="function")h||yp(a);else if(h){var y=null;if(c&&c.hasAttribute("formAction")){if(r=c,h=c[kt]||null)y=h.formAction;else if(sf(r)!==null)continue}else y=h.action;typeof y=="function"?a[n+1]=y:(a.splice(n,3),n-=3),yp(a)}}}function pp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),n||setTimeout(a,20)}function a(){if(!n&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){n=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function uf(e){this._internalRoot=e}Eu.prototype.render=uf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));var a=t.current,n=Pt();rp(a,n,e,t,null,null)},Eu.prototype.unmount=uf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;rp(e.current,2,null,e,null,null),au(),t[kl]=null}};function Eu(e){this._internalRoot=e}Eu.prototype.unstable_scheduleHydration=function(e){if(e){var t=wd();e={blockedOn:null,target:e,priority:t};for(var a=0;a<kn.length&&t!==0&&t<kn[a].priority;a++);kn.splice(a,0,e),a===0&&hp(e)}};var vp=i.version;if(vp!=="19.2.4")throw Error(u(527,vp,"19.2.4"));F.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=v(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var sb={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:L,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_u.isDisabled&&_u.supportsFiber)try{ct=_u.inject(sb),Ct=_u}catch{}}return Ls.createRoot=function(e,t){if(!o(e))throw Error(u(299));var a=!1,n="",r=Nm,c=jm,h=wm;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=ip(e,1,!1,null,null,a,n,null,r,c,h,pp),e[kl]=t.current,Vo(e),new uf(t)},Ls.hydrateRoot=function(e,t,a){if(!o(e))throw Error(u(299));var n=!1,r="",c=Nm,h=jm,y=wm,S=null;return a!=null&&(a.unstable_strictMode===!0&&(n=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(h=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(S=a.formState)),t=ip(e,1,!0,t,a??null,n,r,S,c,h,y,pp),t.context=sp(null),a=t.current,n=Pt(),n=$u(n),r=Sn(n),r.callback=null,En(a,r,n),a=n,t.current.lanes=a,Ki(t,a),Oa(t),e[kl]=t.current,Vo(e),new Eu(t)},Ls.version="19.2.4",Ls}var Lp;function o1(){if(Lp)return mf.exports;Lp=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),mf.exports=c1(),mf.exports}var f1=o1();const d1=zv(f1);/**
|
||
* react-router v7.13.2
|
||
*
|
||
* Copyright (c) Remix Software Inc.
|
||
*
|
||
* This source code is licensed under the MIT license found in the
|
||
* LICENSE.md file in the root directory of this source tree.
|
||
*
|
||
* @license MIT
|
||
*/var Hp="popstate";function qp(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function h1(l={}){function i(u,o){var v;let d=(v=o.state)==null?void 0:v.masked,{pathname:m,search:p,hash:x}=d||u.location;return jf("",{pathname:m,search:p,hash:x},o.state&&o.state.usr||null,o.state&&o.state.key||"default",d?{pathname:u.location.pathname,search:u.location.search,hash:u.location.hash}:void 0)}function s(u,o){return typeof o=="string"?o:Ks(o)}return y1(i,s,null,l)}function et(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function ja(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function m1(){return Math.random().toString(36).substring(2,10)}function Bp(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function jf(l,i,s=null,u,o){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?Hi(i):i,state:s,key:i&&i.key||u||m1(),unstable_mask:o}}function Ks({pathname:l="/",search:i="",hash:s=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(l+=s.charAt(0)==="#"?s:"#"+s),l}function Hi(l){let i={};if(l){let s=l.indexOf("#");s>=0&&(i.hash=l.substring(s),l=l.substring(0,s));let u=l.indexOf("?");u>=0&&(i.search=l.substring(u),l=l.substring(0,u)),l&&(i.pathname=l)}return i}function y1(l,i,s,u={}){let{window:o=document.defaultView,v5Compat:d=!1}=u,m=o.history,p="POP",x=null,v=b();v==null&&(v=0,m.replaceState({...m.state,idx:v},""));function b(){return(m.state||{idx:null}).idx}function g(){p="POP";let H=b(),G=H==null?null:H-v;v=H,x&&x({action:p,location:U.location,delta:G})}function N(H,G){p="PUSH";let Q=qp(H)?H:jf(U.location,H,G);v=b()+1;let K=Bp(Q,v),Z=U.createHref(Q.unstable_mask||Q);try{m.pushState(K,"",Z)}catch(ee){if(ee instanceof DOMException&&ee.name==="DataCloneError")throw ee;o.location.assign(Z)}d&&x&&x({action:p,location:U.location,delta:1})}function T(H,G){p="REPLACE";let Q=qp(H)?H:jf(U.location,H,G);v=b();let K=Bp(Q,v),Z=U.createHref(Q.unstable_mask||Q);m.replaceState(K,"",Z),d&&x&&x({action:p,location:U.location,delta:0})}function B(H){return p1(H)}let U={get action(){return p},get location(){return l(o,m)},listen(H){if(x)throw new Error("A history only accepts one active listener");return o.addEventListener(Hp,g),x=H,()=>{o.removeEventListener(Hp,g),x=null}},createHref(H){return i(o,H)},createURL:B,encodeLocation(H){let G=B(H);return{pathname:G.pathname,search:G.search,hash:G.hash}},push:N,replace:T,go(H){return m.go(H)}};return U}function p1(l,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),et(s,"No window.location.(origin|href) available to create URL");let u=typeof l=="string"?l:Ks(l);return u=u.replace(/ $/,"%20"),!i&&u.startsWith("//")&&(u=s+u),new URL(u,s)}function Xv(l,i,s="/"){return v1(l,i,s,!1)}function v1(l,i,s,u){let o=typeof i=="string"?Hi(i):i,d=fn(o.pathname||"/",s);if(d==null)return null;let m=Kv(l);g1(m);let p=null;for(let x=0;p==null&&x<m.length;++x){let v=R1(d);p=T1(m[x],v,u)}return p}function Kv(l,i=[],s=[],u="",o=!1){let d=(m,p,x=o,v)=>{let b={relativePath:v===void 0?m.path||"":v,caseSensitive:m.caseSensitive===!0,childrenIndex:p,route:m};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(u)&&x)return;et(b.relativePath.startsWith(u),`Absolute route path "${b.relativePath}" nested under path "${u}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(u.length)}let g=La([u,b.relativePath]),N=s.concat(b);m.children&&m.children.length>0&&(et(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Kv(m.children,i,N,g,x)),!(m.path==null&&!m.index)&&i.push({path:g,score:j1(g,m.index),routesMeta:N})};return l.forEach((m,p)=>{var x;if(m.path===""||!((x=m.path)!=null&&x.includes("?")))d(m,p);else for(let v of Zv(m.path))d(m,p,!0,v)}),i}function Zv(l){let i=l.split("/");if(i.length===0)return[];let[s,...u]=i,o=s.endsWith("?"),d=s.replace(/\?$/,"");if(u.length===0)return o?[d,""]:[d];let m=Zv(u.join("/")),p=[];return p.push(...m.map(x=>x===""?d:[d,x].join("/"))),o&&p.push(...m),p.map(x=>l.startsWith("/")&&x===""?"/":x)}function g1(l){l.sort((i,s)=>i.score!==s.score?s.score-i.score:w1(i.routesMeta.map(u=>u.childrenIndex),s.routesMeta.map(u=>u.childrenIndex)))}var x1=/^:[\w-]+$/,b1=3,S1=2,E1=1,_1=10,N1=-2,Qp=l=>l==="*";function j1(l,i){let s=l.split("/"),u=s.length;return s.some(Qp)&&(u+=N1),i&&(u+=S1),s.filter(o=>!Qp(o)).reduce((o,d)=>o+(x1.test(d)?b1:d===""?E1:_1),u)}function w1(l,i){return l.length===i.length&&l.slice(0,-1).every((u,o)=>u===i[o])?l[l.length-1]-i[i.length-1]:0}function T1(l,i,s=!1){let{routesMeta:u}=l,o={},d="/",m=[];for(let p=0;p<u.length;++p){let x=u[p],v=p===u.length-1,b=d==="/"?i:i.slice(d.length)||"/",g=Ou({path:x.relativePath,caseSensitive:x.caseSensitive,end:v},b),N=x.route;if(!g&&v&&s&&!u[u.length-1].route.index&&(g=Ou({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},b)),!g)return null;Object.assign(o,g.params),m.push({params:o,pathname:La([d,g.pathname]),pathnameBase:D1(La([d,g.pathnameBase])),route:N}),g.pathnameBase!=="/"&&(d=La([d,g.pathnameBase]))}return m}function Ou(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[s,u]=A1(l.path,l.caseSensitive,l.end),o=i.match(s);if(!o)return null;let d=o[0],m=d.replace(/(.)\/+$/,"$1"),p=o.slice(1);return{params:u.reduce((v,{paramName:b,isOptional:g},N)=>{if(b==="*"){let B=p[N]||"";m=d.slice(0,d.length-B.length).replace(/(.)\/+$/,"$1")}const T=p[N];return g&&!T?v[b]=void 0:v[b]=(T||"").replace(/%2F/g,"/"),v},{}),pathname:d,pathnameBase:m,pattern:l}}function A1(l,i=!1,s=!0){ja(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let u=[],o="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,p,x,v,b)=>{if(u.push({paramName:p,isOptional:x!=null}),x){let g=b.charAt(v+m.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(u.push({paramName:"*"}),o+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?o+="\\/*$":l!==""&&l!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,i?void 0:"i"),u]}function R1(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return ja(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function fn(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,u=l.charAt(s);return u&&u!=="/"?null:l.slice(s)||"/"}var C1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function O1(l,i="/"){let{pathname:s,search:u="",hash:o=""}=typeof l=="string"?Hi(l):l,d;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?d=Vp(s.substring(1),"/"):d=Vp(s,i)):d=i,{pathname:d,search:z1(u),hash:U1(o)}}function Vp(l,i){let s=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(o=>{o===".."?s.length>1&&s.pop():o!=="."&&s.push(o)}),s.length>1?s.join("/"):"/"}function gf(l,i,s,u){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(u)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function M1(l){return l.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Pf(l){let i=M1(l);return i.map((s,u)=>u===i.length-1?s.pathname:s.pathnameBase)}function Vu(l,i,s,u=!1){let o;typeof l=="string"?o=Hi(l):(o={...l},et(!o.pathname||!o.pathname.includes("?"),gf("?","pathname","search",o)),et(!o.pathname||!o.pathname.includes("#"),gf("#","pathname","hash",o)),et(!o.search||!o.search.includes("#"),gf("#","search","hash",o)));let d=l===""||o.pathname==="",m=d?"/":o.pathname,p;if(m==null)p=s;else{let g=i.length-1;if(!u&&m.startsWith("..")){let N=m.split("/");for(;N[0]==="..";)N.shift(),g-=1;o.pathname=N.join("/")}p=g>=0?i[g]:"/"}let x=O1(o,p),v=m&&m!=="/"&&m.endsWith("/"),b=(d||m===".")&&s.endsWith("/");return!x.pathname.endsWith("/")&&(v||b)&&(x.pathname+="/"),x}var La=l=>l.join("/").replace(/\/\/+/g,"/"),D1=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),z1=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,U1=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,k1=class{constructor(l,i,s,u=!1){this.status=l,this.statusText=i||"",this.internal=u,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function L1(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function H1(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Fv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Jv(l,i){let s=l;if(typeof s!="string"||!C1.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let u=s,o=!1;if(Fv)try{let d=new URL(window.location.href),m=s.startsWith("//")?new URL(d.protocol+s):new URL(s),p=fn(m.pathname,i);m.origin===d.origin&&p!=null?s=p+m.search+m.hash:o=!0}catch{ja(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:u,isExternal:o,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var $v=["POST","PUT","PATCH","DELETE"];new Set($v);var q1=["GET",...$v];new Set(q1);var qi=A.createContext(null);qi.displayName="DataRouter";var Yu=A.createContext(null);Yu.displayName="DataRouterState";var B1=A.createContext(!1),Wv=A.createContext({isTransitioning:!1});Wv.displayName="ViewTransition";var Q1=A.createContext(new Map);Q1.displayName="Fetchers";var V1=A.createContext(null);V1.displayName="Await";var ta=A.createContext(null);ta.displayName="Navigation";var er=A.createContext(null);er.displayName="Location";var wa=A.createContext({outlet:null,matches:[],isDataRoute:!1});wa.displayName="Route";var ed=A.createContext(null);ed.displayName="RouteError";var Iv="REACT_ROUTER_ERROR",Y1="REDIRECT",G1="ROUTE_ERROR_RESPONSE";function X1(l){if(l.startsWith(`${Iv}:${Y1}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function K1(l){if(l.startsWith(`${Iv}:${G1}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new k1(i.status,i.statusText,i.data)}catch{}}function Z1(l,{relative:i}={}){et(Bi(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:u}=A.useContext(ta),{hash:o,pathname:d,search:m}=tr(l,{relative:i}),p=d;return s!=="/"&&(p=d==="/"?s:La([s,d])),u.createHref({pathname:p,search:m,hash:o})}function Bi(){return A.useContext(er)!=null}function qa(){return et(Bi(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(er).location}var Pv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eg(l){A.useContext(ta).static||A.useLayoutEffect(l)}function Dl(){let{isDataRoute:l}=A.useContext(wa);return l?uS():F1()}function F1(){et(Bi(),"useNavigate() may be used only in the context of a <Router> component.");let l=A.useContext(qi),{basename:i,navigator:s}=A.useContext(ta),{matches:u}=A.useContext(wa),{pathname:o}=qa(),d=JSON.stringify(Pf(u)),m=A.useRef(!1);return eg(()=>{m.current=!0}),A.useCallback((x,v={})=>{if(ja(m.current,Pv),!m.current)return;if(typeof x=="number"){s.go(x);return}let b=Vu(x,JSON.parse(d),o,v.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:La([i,b.pathname])),(v.replace?s.replace:s.push)(b,v.state,v)},[i,s,d,o,l])}var J1=A.createContext(null);function $1(l){let i=A.useContext(wa).outlet;return A.useMemo(()=>i&&A.createElement(J1.Provider,{value:l},i),[i,l])}function tr(l,{relative:i}={}){let{matches:s}=A.useContext(wa),{pathname:u}=qa(),o=JSON.stringify(Pf(s));return A.useMemo(()=>Vu(l,JSON.parse(o),u,i==="path"),[l,o,u,i])}function W1(l,i){return tg(l,i)}function tg(l,i,s){var H;et(Bi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=A.useContext(ta),{matches:o}=A.useContext(wa),d=o[o.length-1],m=d?d.params:{},p=d?d.pathname:"/",x=d?d.pathnameBase:"/",v=d&&d.route;{let G=v&&v.path||"";ng(p,!v||G.endsWith("*")||G.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${G}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
||
|
||
Please change the parent <Route path="${G}"> to <Route path="${G==="/"?"*":`${G}/*`}">.`)}let b=qa(),g;if(i){let G=typeof i=="string"?Hi(i):i;et(x==="/"||((H=G.pathname)==null?void 0:H.startsWith(x)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${G.pathname}" was given in the \`location\` prop.`),g=G}else g=b;let N=g.pathname||"/",T=N;if(x!=="/"){let G=x.replace(/^\//,"").split("/");T="/"+N.replace(/^\//,"").split("/").slice(G.length).join("/")}let B=Xv(l,{pathname:T});ja(v||B!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),ja(B==null||B[B.length-1].route.element!==void 0||B[B.length-1].route.Component!==void 0||B[B.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let U=aS(B&&B.map(G=>Object.assign({},G,{params:Object.assign({},m,G.params),pathname:La([x,u.encodeLocation?u.encodeLocation(G.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathname]),pathnameBase:G.pathnameBase==="/"?x:La([x,u.encodeLocation?u.encodeLocation(G.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:G.pathnameBase])})),o,s);return i&&U?A.createElement(er.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},U):U}function I1(){let l=rS(),i=L1(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),s=l instanceof Error?l.stack:null,u="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:u},d={padding:"2px 4px",backgroundColor:u},m=null;return console.error("Error handled by React Router default ErrorBoundary:",l),m=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:d},"ErrorBoundary")," or"," ",A.createElement("code",{style:d},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},i),s?A.createElement("pre",{style:o},s):null,m)}var P1=A.createElement(I1,null),ag=class extends A.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const s=K1(l.digest);s&&(l=s)}let i=l!==void 0?A.createElement(wa.Provider,{value:this.props.routeContext},A.createElement(ed.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?A.createElement(eS,{error:l},i):i}};ag.contextType=B1;var xf=new WeakMap;function eS({children:l,error:i}){let{basename:s}=A.useContext(ta);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let u=X1(i.digest);if(u){let o=xf.get(i);if(o)throw o;let d=Jv(u.location,s);if(Fv&&!xf.get(i))if(d.isExternal||u.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:u.replace}));throw xf.set(i,m),m}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return l}function tS({routeContext:l,match:i,children:s}){let u=A.useContext(qi);return u&&u.static&&u.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(u.staticContext._deepestRenderedBoundaryId=i.route.id),A.createElement(wa.Provider,{value:l},s)}function aS(l,i=[],s){let u=s==null?void 0:s.state;if(l==null){if(!u)return null;if(u.errors)l=u.matches;else if(i.length===0&&!u.initialized&&u.matches.length>0)l=u.matches;else return null}let o=l,d=u==null?void 0:u.errors;if(d!=null){let b=o.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);et(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),o=o.slice(0,Math.min(o.length,b+1))}let m=!1,p=-1;if(s&&u){m=u.renderFallback;for(let b=0;b<o.length;b++){let g=o[b];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(p=b),g.route.id){let{loaderData:N,errors:T}=u,B=g.route.loader&&!N.hasOwnProperty(g.route.id)&&(!T||T[g.route.id]===void 0);if(g.route.lazy||B){s.isStatic&&(m=!0),p>=0?o=o.slice(0,p+1):o=[o[0]];break}}}}let x=s==null?void 0:s.onError,v=u&&x?(b,g)=>{var N,T;x(b,{location:u.location,params:((T=(N=u.matches)==null?void 0:N[0])==null?void 0:T.params)??{},unstable_pattern:H1(u.matches),errorInfo:g})}:void 0;return o.reduceRight((b,g,N)=>{let T,B=!1,U=null,H=null;u&&(T=d&&g.route.id?d[g.route.id]:void 0,U=g.route.errorElement||P1,m&&(p<0&&N===0?(ng("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),B=!0,H=null):p===N&&(B=!0,H=g.route.hydrateFallbackElement||null)));let G=i.concat(o.slice(0,N+1)),Q=()=>{let K;return T?K=U:B?K=H:g.route.Component?K=A.createElement(g.route.Component,null):g.route.element?K=g.route.element:K=b,A.createElement(tS,{match:g,routeContext:{outlet:b,matches:G,isDataRoute:u!=null},children:K})};return u&&(g.route.ErrorBoundary||g.route.errorElement||N===0)?A.createElement(ag,{location:u.location,revalidation:u.revalidation,component:U,error:T,children:Q(),routeContext:{outlet:null,matches:G,isDataRoute:!0},onError:v}):Q()},null)}function td(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nS(l){let i=A.useContext(qi);return et(i,td(l)),i}function lS(l){let i=A.useContext(Yu);return et(i,td(l)),i}function iS(l){let i=A.useContext(wa);return et(i,td(l)),i}function ad(l){let i=iS(l),s=i.matches[i.matches.length-1];return et(s.route.id,`${l} can only be used on routes that contain a unique "id"`),s.route.id}function sS(){return ad("useRouteId")}function rS(){var u;let l=A.useContext(ed),i=lS("useRouteError"),s=ad("useRouteError");return l!==void 0?l:(u=i.errors)==null?void 0:u[s]}function uS(){let{router:l}=nS("useNavigate"),i=ad("useNavigate"),s=A.useRef(!1);return eg(()=>{s.current=!0}),A.useCallback(async(o,d={})=>{ja(s.current,Pv),s.current&&(typeof o=="number"?await l.navigate(o):await l.navigate(o,{fromRouteId:i,...d}))},[l,i])}var Yp={};function ng(l,i,s){!i&&!Yp[l]&&(Yp[l]=!0,ja(!1,s))}A.memo(cS);function cS({routes:l,future:i,state:s,isStatic:u,onError:o}){return tg(l,void 0,{state:s,isStatic:u,onError:o})}function lg({to:l,replace:i,state:s,relative:u}){et(Bi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=A.useContext(ta);ja(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=A.useContext(wa),{pathname:m}=qa(),p=Dl(),x=Vu(l,Pf(d),m,u==="path"),v=JSON.stringify(x);return A.useEffect(()=>{p(JSON.parse(v),{replace:i,state:s,relative:u})},[p,v,u,i,s]),null}function nd(l){return $1(l.context)}function xa(l){et(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function oS({basename:l="/",children:i=null,location:s,navigationType:u="POP",navigator:o,static:d=!1,unstable_useTransitions:m}){et(!Bi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=l.replace(/^\/*/,"/"),x=A.useMemo(()=>({basename:p,navigator:o,static:d,unstable_useTransitions:m,future:{}}),[p,o,d,m]);typeof s=="string"&&(s=Hi(s));let{pathname:v="/",search:b="",hash:g="",state:N=null,key:T="default",unstable_mask:B}=s,U=A.useMemo(()=>{let H=fn(v,p);return H==null?null:{location:{pathname:H,search:b,hash:g,state:N,key:T,unstable_mask:B},navigationType:u}},[p,v,b,g,N,T,u,B]);return ja(U!=null,`<Router basename="${p}"> is not able to match the URL "${v}${b}${g}" because it does not start with the basename, so the <Router> won't render anything.`),U==null?null:A.createElement(ta.Provider,{value:x},A.createElement(er.Provider,{children:i,value:U}))}function fS({children:l,location:i}){return W1(wf(l),i)}function wf(l,i=[]){let s=[];return A.Children.forEach(l,(u,o)=>{if(!A.isValidElement(u))return;let d=[...i,o];if(u.type===A.Fragment){s.push.apply(s,wf(u.props.children,d));return}et(u.type===xa,`[${typeof u.type=="string"?u.type:u.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),et(!u.props.index||!u.props.children,"An index route cannot have child routes.");let m={id:u.props.id||d.join("-"),caseSensitive:u.props.caseSensitive,element:u.props.element,Component:u.props.Component,index:u.props.index,path:u.props.path,middleware:u.props.middleware,loader:u.props.loader,action:u.props.action,hydrateFallbackElement:u.props.hydrateFallbackElement,HydrateFallback:u.props.HydrateFallback,errorElement:u.props.errorElement,ErrorBoundary:u.props.ErrorBoundary,hasErrorBoundary:u.props.hasErrorBoundary===!0||u.props.ErrorBoundary!=null||u.props.errorElement!=null,shouldRevalidate:u.props.shouldRevalidate,handle:u.props.handle,lazy:u.props.lazy};u.props.children&&(m.children=wf(u.props.children,d)),s.push(m)}),s}var Au="get",Ru="application/x-www-form-urlencoded";function Gu(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function dS(l){return Gu(l)&&l.tagName.toLowerCase()==="button"}function hS(l){return Gu(l)&&l.tagName.toLowerCase()==="form"}function mS(l){return Gu(l)&&l.tagName.toLowerCase()==="input"}function yS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function pS(l,i){return l.button===0&&(!i||i==="_self")&&!yS(l)}var wu=null;function vS(){if(wu===null)try{new FormData(document.createElement("form"),0),wu=!1}catch{wu=!0}return wu}var gS=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bf(l){return l!=null&&!gS.has(l)?(ja(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ru}"`),null):l}function xS(l,i){let s,u,o,d,m;if(hS(l)){let p=l.getAttribute("action");u=p?fn(p,i):null,s=l.getAttribute("method")||Au,o=bf(l.getAttribute("enctype"))||Ru,d=new FormData(l)}else if(dS(l)||mS(l)&&(l.type==="submit"||l.type==="image")){let p=l.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=l.getAttribute("formaction")||p.getAttribute("action");if(u=x?fn(x,i):null,s=l.getAttribute("formmethod")||p.getAttribute("method")||Au,o=bf(l.getAttribute("formenctype"))||bf(p.getAttribute("enctype"))||Ru,d=new FormData(p,l),!vS()){let{name:v,type:b,value:g}=l;if(b==="image"){let N=v?`${v}.`:"";d.append(`${N}x`,"0"),d.append(`${N}y`,"0")}else v&&d.append(v,g)}}else{if(Gu(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=Au,u=null,o=Ru,m=l}return d&&o==="text/plain"&&(m=d,d=void 0),{action:u,method:s.toLowerCase(),encType:o,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ld(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function bS(l,i,s,u){let o=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return s?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${u}`:o.pathname=`${o.pathname}.${u}`:o.pathname==="/"?o.pathname=`_root.${u}`:i&&fn(o.pathname,i)==="/"?o.pathname=`${i.replace(/\/$/,"")}/_root.${u}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${u}`,o}async function SS(l,i){if(l.id in i)return i[l.id];try{let s=await import(l.module);return i[l.id]=s,s}catch(s){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function ES(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function _S(l,i,s){let u=await Promise.all(l.map(async o=>{let d=i.routes[o.route.id];if(d){let m=await SS(d,s);return m.links?m.links():[]}return[]}));return TS(u.flat(1).filter(ES).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Gp(l,i,s,u,o,d){let m=(x,v)=>s[v]?x.route.id!==s[v].route.id:!0,p=(x,v)=>{var b;return s[v].pathname!==x.pathname||((b=s[v].route.path)==null?void 0:b.endsWith("*"))&&s[v].params["*"]!==x.params["*"]};return d==="assets"?i.filter((x,v)=>m(x,v)||p(x,v)):d==="data"?i.filter((x,v)=>{var g;let b=u.routes[x.route.id];if(!b||!b.hasLoader)return!1;if(m(x,v)||p(x,v))return!0;if(x.route.shouldRevalidate){let N=x.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((g=s[0])==null?void 0:g.params)||{},nextUrl:new URL(l,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof N=="boolean")return N}return!0}):[]}function NS(l,i,{includeHydrateFallback:s}={}){return jS(l.map(u=>{let o=i.routes[u.route.id];if(!o)return[];let d=[o.module];return o.clientActionModule&&(d=d.concat(o.clientActionModule)),o.clientLoaderModule&&(d=d.concat(o.clientLoaderModule)),s&&o.hydrateFallbackModule&&(d=d.concat(o.hydrateFallbackModule)),o.imports&&(d=d.concat(o.imports)),d}).flat(1))}function jS(l){return[...new Set(l)]}function wS(l){let i={},s=Object.keys(l).sort();for(let u of s)i[u]=l[u];return i}function TS(l,i){let s=new Set;return new Set(i),l.reduce((u,o)=>{let d=JSON.stringify(wS(o));return s.has(d)||(s.add(d),u.push({key:d,link:o})),u},[])}function ig(){let l=A.useContext(qi);return ld(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function AS(){let l=A.useContext(Yu);return ld(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var id=A.createContext(void 0);id.displayName="FrameworkContext";function sg(){let l=A.useContext(id);return ld(l,"You must render this element inside a <HydratedRouter> element"),l}function RS(l,i){let s=A.useContext(id),[u,o]=A.useState(!1),[d,m]=A.useState(!1),{onFocus:p,onBlur:x,onMouseEnter:v,onMouseLeave:b,onTouchStart:g}=i,N=A.useRef(null);A.useEffect(()=>{if(l==="render"&&m(!0),l==="viewport"){let U=G=>{G.forEach(Q=>{m(Q.isIntersecting)})},H=new IntersectionObserver(U,{threshold:.5});return N.current&&H.observe(N.current),()=>{H.disconnect()}}},[l]),A.useEffect(()=>{if(u){let U=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(U)}}},[u]);let T=()=>{o(!0)},B=()=>{o(!1),m(!1)};return s?l!=="intent"?[d,N,{}]:[d,N,{onFocus:Hs(p,T),onBlur:Hs(x,B),onMouseEnter:Hs(v,T),onMouseLeave:Hs(b,B),onTouchStart:Hs(g,T)}]:[!1,N,{}]}function Hs(l,i){return s=>{l&&l(s),s.defaultPrevented||i(s)}}function CS({page:l,...i}){let{router:s}=ig(),u=A.useMemo(()=>Xv(s.routes,l,s.basename),[s.routes,l,s.basename]);return u?A.createElement(MS,{page:l,matches:u,...i}):null}function OS(l){let{manifest:i,routeModules:s}=sg(),[u,o]=A.useState([]);return A.useEffect(()=>{let d=!1;return _S(l,i,s).then(m=>{d||o(m)}),()=>{d=!0}},[l,i,s]),u}function MS({page:l,matches:i,...s}){let u=qa(),{future:o,manifest:d,routeModules:m}=sg(),{basename:p}=ig(),{loaderData:x,matches:v}=AS(),b=A.useMemo(()=>Gp(l,i,v,d,u,"data"),[l,i,v,d,u]),g=A.useMemo(()=>Gp(l,i,v,d,u,"assets"),[l,i,v,d,u]),N=A.useMemo(()=>{if(l===u.pathname+u.search+u.hash)return[];let U=new Set,H=!1;if(i.forEach(Q=>{var Z;let K=d.routes[Q.route.id];!K||!K.hasLoader||(!b.some(ee=>ee.route.id===Q.route.id)&&Q.route.id in x&&((Z=m[Q.route.id])!=null&&Z.shouldRevalidate)||K.hasClientLoader?H=!0:U.add(Q.route.id))}),U.size===0)return[];let G=bS(l,p,o.unstable_trailingSlashAwareDataRequests,"data");return H&&U.size>0&&G.searchParams.set("_routes",i.filter(Q=>U.has(Q.route.id)).map(Q=>Q.route.id).join(",")),[G.pathname+G.search]},[p,o.unstable_trailingSlashAwareDataRequests,x,u,d,b,i,l,m]),T=A.useMemo(()=>NS(g,d),[g,d]),B=OS(g);return A.createElement(A.Fragment,null,N.map(U=>A.createElement("link",{key:U,rel:"prefetch",as:"fetch",href:U,...s})),T.map(U=>A.createElement("link",{key:U,rel:"modulepreload",href:U,...s})),B.map(({key:U,link:H})=>A.createElement("link",{key:U,nonce:s.nonce,...H,crossOrigin:H.crossOrigin??s.crossOrigin})))}function DS(...l){return i=>{l.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var zS=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zS&&(window.__reactRouterVersion="7.13.2")}catch{}function US({basename:l,children:i,unstable_useTransitions:s,window:u}){let o=A.useRef();o.current==null&&(o.current=h1({window:u,v5Compat:!0}));let d=o.current,[m,p]=A.useState({action:d.action,location:d.location}),x=A.useCallback(v=>{s===!1?p(v):A.startTransition(()=>p(v))},[s]);return A.useLayoutEffect(()=>d.listen(x),[d,x]),A.createElement(oS,{basename:l,children:i,location:m.location,navigationType:m.action,navigator:d,unstable_useTransitions:s})}var rg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sd=A.forwardRef(function({onClick:i,discover:s="render",prefetch:u="none",relative:o,reloadDocument:d,replace:m,unstable_mask:p,state:x,target:v,to:b,preventScrollReset:g,viewTransition:N,unstable_defaultShouldRevalidate:T,...B},U){let{basename:H,navigator:G,unstable_useTransitions:Q}=A.useContext(ta),K=typeof b=="string"&&rg.test(b),Z=Jv(b,H);b=Z.to;let ee=Z1(b,{relative:o}),ve=qa(),re=null;if(p){let pe=Vu(p,[],ve.unstable_mask?ve.unstable_mask.pathname:"/",!0);H!=="/"&&(pe.pathname=pe.pathname==="/"?H:La([H,pe.pathname])),re=G.createHref(pe)}let[ce,xe,Ae]=RS(u,B),ze=qS(b,{replace:m,unstable_mask:p,state:x,target:v,preventScrollReset:g,relative:o,viewTransition:N,unstable_defaultShouldRevalidate:T,unstable_useTransitions:Q});function fe(pe){i&&i(pe),pe.defaultPrevented||ze(pe)}let he=!(Z.isExternal||d),Ne=A.createElement("a",{...B,...Ae,href:(he?re:void 0)||Z.absoluteURL||ee,onClick:he?fe:i,ref:DS(U,xe),target:v,"data-discover":!K&&s==="render"?"true":void 0});return ce&&!K?A.createElement(A.Fragment,null,Ne,A.createElement(CS,{page:ee})):Ne});sd.displayName="Link";var kS=A.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:u="",end:o=!1,style:d,to:m,viewTransition:p,children:x,...v},b){let g=tr(m,{relative:v.relative}),N=qa(),T=A.useContext(Yu),{navigator:B,basename:U}=A.useContext(ta),H=T!=null&&GS(g)&&p===!0,G=B.encodeLocation?B.encodeLocation(g).pathname:g.pathname,Q=N.pathname,K=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;s||(Q=Q.toLowerCase(),K=K?K.toLowerCase():null,G=G.toLowerCase()),K&&U&&(K=fn(K,U)||K);const Z=G!=="/"&&G.endsWith("/")?G.length-1:G.length;let ee=Q===G||!o&&Q.startsWith(G)&&Q.charAt(Z)==="/",ve=K!=null&&(K===G||!o&&K.startsWith(G)&&K.charAt(G.length)==="/"),re={isActive:ee,isPending:ve,isTransitioning:H},ce=ee?i:void 0,xe;typeof u=="function"?xe=u(re):xe=[u,ee?"active":null,ve?"pending":null,H?"transitioning":null].filter(Boolean).join(" ");let Ae=typeof d=="function"?d(re):d;return A.createElement(sd,{...v,"aria-current":ce,className:xe,ref:b,style:Ae,to:m,viewTransition:p},typeof x=="function"?x(re):x)});kS.displayName="NavLink";var LS=A.forwardRef(({discover:l="render",fetcherKey:i,navigate:s,reloadDocument:u,replace:o,state:d,method:m=Au,action:p,onSubmit:x,relative:v,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:N,...T},B)=>{let{unstable_useTransitions:U}=A.useContext(ta),H=VS(),G=YS(p,{relative:v}),Q=m.toLowerCase()==="get"?"get":"post",K=typeof p=="string"&&rg.test(p),Z=ee=>{if(x&&x(ee),ee.defaultPrevented)return;ee.preventDefault();let ve=ee.nativeEvent.submitter,re=(ve==null?void 0:ve.getAttribute("formmethod"))||m,ce=()=>H(ve||ee.currentTarget,{fetcherKey:i,method:re,navigate:s,replace:o,state:d,relative:v,preventScrollReset:b,viewTransition:g,unstable_defaultShouldRevalidate:N});U&&s!==!1?A.startTransition(()=>ce()):ce()};return A.createElement("form",{ref:B,method:Q,action:G,onSubmit:u?x:Z,...T,"data-discover":!K&&l==="render"?"true":void 0})});LS.displayName="Form";function HS(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ug(l){let i=A.useContext(qi);return et(i,HS(l)),i}function qS(l,{target:i,replace:s,unstable_mask:u,state:o,preventScrollReset:d,relative:m,viewTransition:p,unstable_defaultShouldRevalidate:x,unstable_useTransitions:v}={}){let b=Dl(),g=qa(),N=tr(l,{relative:m});return A.useCallback(T=>{if(pS(T,i)){T.preventDefault();let B=s!==void 0?s:Ks(g)===Ks(N),U=()=>b(l,{replace:B,unstable_mask:u,state:o,preventScrollReset:d,relative:m,viewTransition:p,unstable_defaultShouldRevalidate:x});v?A.startTransition(()=>U()):U()}},[g,b,N,s,u,o,i,l,d,m,p,x,v])}var BS=0,QS=()=>`__${String(++BS)}__`;function VS(){let{router:l}=ug("useSubmit"),{basename:i}=A.useContext(ta),s=sS(),u=l.fetch,o=l.navigate;return A.useCallback(async(d,m={})=>{let{action:p,method:x,encType:v,formData:b,body:g}=xS(d,i);if(m.navigate===!1){let N=m.fetcherKey||QS();await u(N,s,m.action||p,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:g,formMethod:m.method||x,formEncType:m.encType||v,flushSync:m.flushSync})}else await o(m.action||p,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:b,body:g,formMethod:m.method||x,formEncType:m.encType||v,replace:m.replace,state:m.state,fromRouteId:s,flushSync:m.flushSync,viewTransition:m.viewTransition})},[u,o,i,s])}function YS(l,{relative:i}={}){let{basename:s}=A.useContext(ta),u=A.useContext(wa);et(u,"useFormAction must be used inside a RouteContext");let[o]=u.matches.slice(-1),d={...tr(l||".",{relative:i})},m=qa();if(l==null){d.search=m.search;let p=new URLSearchParams(d.search),x=p.getAll("index");if(x.some(b=>b==="")){p.delete("index"),x.filter(g=>g).forEach(g=>p.append("index",g));let b=p.toString();d.search=b?`?${b}`:""}}return(!l||l===".")&&o.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(d.pathname=d.pathname==="/"?s:La([s,d.pathname])),Ks(d)}function GS(l,{relative:i}={}){let s=A.useContext(Wv);et(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:u}=ug("useViewTransitionState"),o=tr(l,{relative:i});if(!s.isTransitioning)return!1;let d=fn(s.currentLocation.pathname,u)||s.currentLocation.pathname,m=fn(s.nextLocation.pathname,u)||s.nextLocation.pathname;return Ou(o.pathname,m)!=null||Ou(o.pathname,d)!=null}var Qi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},El,Bn,ji,_v,XS=(_v=class extends Qi{constructor(){super();oe(this,El);oe(this,Bn);oe(this,ji);te(this,ji,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){E(this,Bn)||this.setEventListener(E(this,ji))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,Bn))==null||i.call(this),te(this,Bn,void 0))}setEventListener(i){var s;te(this,ji,i),(s=E(this,Bn))==null||s.call(this),te(this,Bn,i(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(i){E(this,El)!==i&&(te(this,El,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(s=>{s(i)})}isFocused(){var i;return typeof E(this,El)=="boolean"?E(this,El):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},El=new WeakMap,Bn=new WeakMap,ji=new WeakMap,_v),rd=new XS,KS={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},Qn,Xf,Nv,ZS=(Nv=class{constructor(){oe(this,Qn,KS);oe(this,Xf,!1)}setTimeoutProvider(l){te(this,Qn,l)}setTimeout(l,i){return E(this,Qn).setTimeout(l,i)}clearTimeout(l){E(this,Qn).clearTimeout(l)}setInterval(l,i){return E(this,Qn).setInterval(l,i)}clearInterval(l){E(this,Qn).clearInterval(l)}},Qn=new WeakMap,Xf=new WeakMap,Nv),bl=new ZS;function FS(l){setTimeout(l,0)}var JS=typeof window>"u"||"Deno"in globalThis;function zt(){}function $S(l,i){return typeof l=="function"?l(i):l}function Tf(l){return typeof l=="number"&&l>=0&&l!==1/0}function cg(l,i){return Math.max(l+(i||0)-Date.now(),0)}function Jn(l,i){return typeof l=="function"?l(i):l}function ya(l,i){return typeof l=="function"?l(i):l}function Xp(l,i){const{type:s="all",exact:u,fetchStatus:o,predicate:d,queryKey:m,stale:p}=l;if(m){if(u){if(i.queryHash!==ud(m,i.options))return!1}else if(!Zs(i.queryKey,m))return!1}if(s!=="all"){const x=i.isActive();if(s==="active"&&!x||s==="inactive"&&x)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||o&&o!==i.state.fetchStatus||d&&!d(i))}function Kp(l,i){const{exact:s,status:u,predicate:o,mutationKey:d}=l;if(d){if(!i.options.mutationKey)return!1;if(s){if(Ml(i.options.mutationKey)!==Ml(d))return!1}else if(!Zs(i.options.mutationKey,d))return!1}return!(u&&i.state.status!==u||o&&!o(i))}function ud(l,i){return((i==null?void 0:i.queryKeyHashFn)||Ml)(l)}function Ml(l){return JSON.stringify(l,(i,s)=>Af(s)?Object.keys(s).sort().reduce((u,o)=>(u[o]=s[o],u),{}):s)}function Zs(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(s=>Zs(l[s],i[s])):!1}var WS=Object.prototype.hasOwnProperty;function og(l,i,s=0){if(l===i)return l;if(s>500)return i;const u=Zp(l)&&Zp(i);if(!u&&!(Af(l)&&Af(i)))return i;const d=(u?l:Object.keys(l)).length,m=u?i:Object.keys(i),p=m.length,x=u?new Array(p):{};let v=0;for(let b=0;b<p;b++){const g=u?b:m[b],N=l[g],T=i[g];if(N===T){x[g]=N,(u?b<d:WS.call(l,g))&&v++;continue}if(N===null||T===null||typeof N!="object"||typeof T!="object"){x[g]=T;continue}const B=og(N,T,s+1);x[g]=B,B===N&&v++}return d===p&&v===d?l:x}function Mu(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const s in l)if(l[s]!==i[s])return!1;return!0}function Zp(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Af(l){if(!Fp(l))return!1;const i=l.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Fp(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Fp(l){return Object.prototype.toString.call(l)==="[object Object]"}function IS(l){return new Promise(i=>{bl.setTimeout(i,l)})}function Rf(l,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(l,i):s.structuralSharing!==!1?og(l,i):i}function PS(l,i,s=0){const u=[...l,i];return s&&u.length>s?u.slice(1):u}function e2(l,i,s=0){const u=[i,...l];return s&&u.length>s?u.slice(0,-1):u}var cd=Symbol();function fg(l,i){return!l.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!l.queryFn||l.queryFn===cd?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function od(l,i){return typeof l=="function"?l(...i):!!l}function t2(l,i,s){let u=!1,o;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(o??(o=i()),u||(u=!0,o.aborted?s():o.addEventListener("abort",s,{once:!0})),o)}),l}var Fs=(()=>{let l=()=>JS;return{isServer(){return l()},setIsServer(i){l=i}}})();function Cf(){let l,i;const s=new Promise((o,d)=>{l=o,i=d});s.status="pending",s.catch(()=>{});function u(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{u({status:"fulfilled",value:o}),l(o)},s.reject=o=>{u({status:"rejected",reason:o}),i(o)},s}var a2=FS;function n2(){let l=[],i=0,s=p=>{p()},u=p=>{p()},o=a2;const d=p=>{i?l.push(p):o(()=>{s(p)})},m=()=>{const p=l;l=[],p.length&&o(()=>{u(()=>{p.forEach(x=>{s(x)})})})};return{batch:p=>{let x;i++;try{x=p()}finally{i--,i||m()}return x},batchCalls:p=>(...x)=>{d(()=>{p(...x)})},schedule:d,setNotifyFunction:p=>{s=p},setBatchNotifyFunction:p=>{u=p},setScheduler:p=>{o=p}}}var vt=n2(),wi,Vn,Ti,jv,l2=(jv=class extends Qi{constructor(){super();oe(this,wi,!0);oe(this,Vn);oe(this,Ti);te(this,Ti,i=>{if(typeof window<"u"&&window.addEventListener){const s=()=>i(!0),u=()=>i(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",u)}}})}onSubscribe(){E(this,Vn)||this.setEventListener(E(this,Ti))}onUnsubscribe(){var i;this.hasListeners()||((i=E(this,Vn))==null||i.call(this),te(this,Vn,void 0))}setEventListener(i){var s;te(this,Ti,i),(s=E(this,Vn))==null||s.call(this),te(this,Vn,i(this.setOnline.bind(this)))}setOnline(i){E(this,wi)!==i&&(te(this,wi,i),this.listeners.forEach(u=>{u(i)}))}isOnline(){return E(this,wi)}},wi=new WeakMap,Vn=new WeakMap,Ti=new WeakMap,jv),Du=new l2;function i2(l){return Math.min(1e3*2**l,3e4)}function dg(l){return(l??"online")==="online"?Du.isOnline():!0}var Of=class extends Error{constructor(l){super("CancelledError"),this.revert=l==null?void 0:l.revert,this.silent=l==null?void 0:l.silent}};function hg(l){let i=!1,s=0,u;const o=Cf(),d=()=>o.status!=="pending",m=U=>{var H;if(!d()){const G=new Of(U);N(G),(H=l.onCancel)==null||H.call(l,G)}},p=()=>{i=!0},x=()=>{i=!1},v=()=>rd.isFocused()&&(l.networkMode==="always"||Du.isOnline())&&l.canRun(),b=()=>dg(l.networkMode)&&l.canRun(),g=U=>{d()||(u==null||u(),o.resolve(U))},N=U=>{d()||(u==null||u(),o.reject(U))},T=()=>new Promise(U=>{var H;u=G=>{(d()||v())&&U(G)},(H=l.onPause)==null||H.call(l)}).then(()=>{var U;u=void 0,d()||(U=l.onContinue)==null||U.call(l)}),B=()=>{if(d())return;let U;const H=s===0?l.initialPromise:void 0;try{U=H??l.fn()}catch(G){U=Promise.reject(G)}Promise.resolve(U).then(g).catch(G=>{var ve;if(d())return;const Q=l.retry??(Fs.isServer()?0:3),K=l.retryDelay??i2,Z=typeof K=="function"?K(s,G):K,ee=Q===!0||typeof Q=="number"&&s<Q||typeof Q=="function"&&Q(s,G);if(i||!ee){N(G);return}s++,(ve=l.onFail)==null||ve.call(l,s,G),IS(Z).then(()=>v()?void 0:T()).then(()=>{i?N(G):B()})})};return{promise:o,status:()=>o.status,cancel:m,continue:()=>(u==null||u(),o),cancelRetry:p,continueRetry:x,canStart:b,start:()=>(b()?B():T().then(B),o)}}var _l,wv,mg=(wv=class{constructor(){oe(this,_l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tf(this.gcTime)&&te(this,_l,bl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(Fs.isServer()?1/0:300*1e3))}clearGcTimeout(){E(this,_l)&&(bl.clearTimeout(E(this,_l)),te(this,_l,void 0))}},_l=new WeakMap,wv),Nl,Ai,ma,jl,bt,Js,wl,ea,yg,ln,Tv,s2=(Tv=class extends mg{constructor(i){super();oe(this,ea);oe(this,Nl);oe(this,Ai);oe(this,ma);oe(this,jl);oe(this,bt);oe(this,Js);oe(this,wl);te(this,wl,!1),te(this,Js,i.defaultOptions),this.setOptions(i.options),this.observers=[],te(this,jl,i.client),te(this,ma,E(this,jl).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,te(this,Nl,$p(this.options)),this.state=i.state??E(this,Nl),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=E(this,bt))==null?void 0:i.promise}setOptions(i){if(this.options={...E(this,Js),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=$p(this.options);s.data!==void 0&&(this.setState(Jp(s.data,s.dataUpdatedAt)),te(this,Nl,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,ma).remove(this)}setData(i,s){const u=Rf(this.state.data,i,this.options);return we(this,ea,ln).call(this,{data:u,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),u}setState(i,s){we(this,ea,ln).call(this,{type:"setState",state:i,setStateOptions:s})}cancel(i){var u,o;const s=(u=E(this,bt))==null?void 0:u.promise;return(o=E(this,bt))==null||o.cancel(i),s?s.then(zt).catch(zt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,Nl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>ya(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===cd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Jn(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!cg(this.state.dataUpdatedAt,i)}onFocus(){var s;const i=this.observers.find(u=>u.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(s=E(this,bt))==null||s.continue()}onOnline(){var s;const i=this.observers.find(u=>u.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(s=E(this,bt))==null||s.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),E(this,ma).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(s=>s!==i),this.observers.length||(E(this,bt)&&(E(this,wl)||we(this,ea,yg).call(this)?E(this,bt).cancel({revert:!0}):E(this,bt).cancelRetry()),this.scheduleGc()),E(this,ma).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||we(this,ea,ln).call(this,{type:"invalidate"})}async fetch(i,s){var x,v,b,g,N,T,B,U,H,G,Q,K;if(this.state.fetchStatus!=="idle"&&((x=E(this,bt))==null?void 0:x.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(E(this,bt))return E(this,bt).continueRetry(),E(this,bt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const Z=this.observers.find(ee=>ee.options.queryFn);Z&&this.setOptions(Z.options)}const u=new AbortController,o=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>(te(this,wl,!0),u.signal)})},d=()=>{const Z=fg(this.options,s),ve=(()=>{const re={client:E(this,jl),queryKey:this.queryKey,meta:this.meta};return o(re),re})();return te(this,wl,!1),this.options.persister?this.options.persister(Z,ve,this):Z(ve)},p=(()=>{const Z={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:E(this,jl),state:this.state,fetchFn:d};return o(Z),Z})();(v=this.options.behavior)==null||v.onFetch(p,this),te(this,Ai,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=p.fetchOptions)==null?void 0:b.meta))&&we(this,ea,ln).call(this,{type:"fetch",meta:(g=p.fetchOptions)==null?void 0:g.meta}),te(this,bt,hg({initialPromise:s==null?void 0:s.initialPromise,fn:p.fetchFn,onCancel:Z=>{Z instanceof Of&&Z.revert&&this.setState({...E(this,Ai),fetchStatus:"idle"}),u.abort()},onFail:(Z,ee)=>{we(this,ea,ln).call(this,{type:"failed",failureCount:Z,error:ee})},onPause:()=>{we(this,ea,ln).call(this,{type:"pause"})},onContinue:()=>{we(this,ea,ln).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const Z=await E(this,bt).start();if(Z===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(Z),(T=(N=E(this,ma).config).onSuccess)==null||T.call(N,Z,this),(U=(B=E(this,ma).config).onSettled)==null||U.call(B,Z,this.state.error,this),Z}catch(Z){if(Z instanceof Of){if(Z.silent)return E(this,bt).promise;if(Z.revert){if(this.state.data===void 0)throw Z;return this.state.data}}throw we(this,ea,ln).call(this,{type:"error",error:Z}),(G=(H=E(this,ma).config).onError)==null||G.call(H,Z,this),(K=(Q=E(this,ma).config).onSettled)==null||K.call(Q,this.state.data,Z,this),Z}finally{this.scheduleGc()}}},Nl=new WeakMap,Ai=new WeakMap,ma=new WeakMap,jl=new WeakMap,bt=new WeakMap,Js=new WeakMap,wl=new WeakMap,ea=new WeakSet,yg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ln=function(i){const s=u=>{switch(i.type){case"failed":return{...u,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...pg(u.data,this.options),fetchMeta:i.meta??null};case"success":const o={...u,...Jp(i.data,i.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return te(this,Ai,i.manual?o:void 0),o;case"error":const d=i.error;return{...u,error:d,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...i.state}}};this.state=s(this.state),vt.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),E(this,ma).notify({query:this,type:"updated",action:i})})},Tv);function pg(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:dg(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Jp(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function $p(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,s=i!==void 0,u=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Yt,ke,$s,Mt,Tl,Ri,sn,Yn,Ws,Ci,Oi,Al,Rl,Gn,Mi,Ve,Qs,Mf,Df,zf,Uf,kf,Lf,Hf,vg,Av,fd=(Av=class extends Qi{constructor(i,s){super();oe(this,Ve);oe(this,Yt);oe(this,ke);oe(this,$s);oe(this,Mt);oe(this,Tl);oe(this,Ri);oe(this,sn);oe(this,Yn);oe(this,Ws);oe(this,Ci);oe(this,Oi);oe(this,Al);oe(this,Rl);oe(this,Gn);oe(this,Mi,new Set);this.options=s,te(this,Yt,i),te(this,Yn,null),te(this,sn,Cf()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,ke).addObserver(this),Wp(E(this,ke),this.options)?we(this,Ve,Qs).call(this):this.updateResult(),we(this,Ve,Uf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return qf(E(this,ke),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return qf(E(this,ke),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,we(this,Ve,kf).call(this),we(this,Ve,Lf).call(this),E(this,ke).removeObserver(this)}setOptions(i){const s=this.options,u=E(this,ke);if(this.options=E(this,Yt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ya(this.options.enabled,E(this,ke))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");we(this,Ve,Hf).call(this),E(this,ke).setOptions(this.options),s._defaulted&&!Mu(this.options,s)&&E(this,Yt).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,ke),observer:this});const o=this.hasListeners();o&&Ip(E(this,ke),u,this.options,s)&&we(this,Ve,Qs).call(this),this.updateResult(),o&&(E(this,ke)!==u||ya(this.options.enabled,E(this,ke))!==ya(s.enabled,E(this,ke))||Jn(this.options.staleTime,E(this,ke))!==Jn(s.staleTime,E(this,ke)))&&we(this,Ve,Mf).call(this);const d=we(this,Ve,Df).call(this);o&&(E(this,ke)!==u||ya(this.options.enabled,E(this,ke))!==ya(s.enabled,E(this,ke))||d!==E(this,Gn))&&we(this,Ve,zf).call(this,d)}getOptimisticResult(i){const s=E(this,Yt).getQueryCache().build(E(this,Yt),i),u=this.createResult(s,i);return u2(this,u)&&(te(this,Mt,u),te(this,Ri,this.options),te(this,Tl,E(this,ke).state)),u}getCurrentResult(){return E(this,Mt)}trackResult(i,s){return new Proxy(i,{get:(u,o)=>(this.trackProp(o),s==null||s(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,sn).status==="pending"&&E(this,sn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,o))})}trackProp(i){E(this,Mi).add(i)}getCurrentQuery(){return E(this,ke)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const s=E(this,Yt).defaultQueryOptions(i),u=E(this,Yt).getQueryCache().build(E(this,Yt),s);return u.fetch().then(()=>this.createResult(u,s))}fetch(i){return we(this,Ve,Qs).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,Mt)))}createResult(i,s){var xe;const u=E(this,ke),o=this.options,d=E(this,Mt),m=E(this,Tl),p=E(this,Ri),v=i!==u?i.state:E(this,$s),{state:b}=i;let g={...b},N=!1,T;if(s._optimisticResults){const Ae=this.hasListeners(),ze=!Ae&&Wp(i,s),fe=Ae&&Ip(i,u,s,o);(ze||fe)&&(g={...g,...pg(b.data,i.options)}),s._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:B,errorUpdatedAt:U,status:H}=g;T=g.data;let G=!1;if(s.placeholderData!==void 0&&T===void 0&&H==="pending"){let Ae;d!=null&&d.isPlaceholderData&&s.placeholderData===(p==null?void 0:p.placeholderData)?(Ae=d.data,G=!0):Ae=typeof s.placeholderData=="function"?s.placeholderData((xe=E(this,Oi))==null?void 0:xe.state.data,E(this,Oi)):s.placeholderData,Ae!==void 0&&(H="success",T=Rf(d==null?void 0:d.data,Ae,s),N=!0)}if(s.select&&T!==void 0&&!G)if(d&&T===(m==null?void 0:m.data)&&s.select===E(this,Ws))T=E(this,Ci);else try{te(this,Ws,s.select),T=s.select(T),T=Rf(d==null?void 0:d.data,T,s),te(this,Ci,T),te(this,Yn,null)}catch(Ae){te(this,Yn,Ae)}E(this,Yn)&&(B=E(this,Yn),T=E(this,Ci),U=Date.now(),H="error");const Q=g.fetchStatus==="fetching",K=H==="pending",Z=H==="error",ee=K&&Q,ve=T!==void 0,ce={status:H,fetchStatus:g.fetchStatus,isPending:K,isSuccess:H==="success",isError:Z,isInitialLoading:ee,isLoading:ee,data:T,dataUpdatedAt:g.dataUpdatedAt,error:B,errorUpdatedAt:U,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:g.dataUpdateCount>v.dataUpdateCount||g.errorUpdateCount>v.errorUpdateCount,isFetching:Q,isRefetching:Q&&!K,isLoadingError:Z&&!ve,isPaused:g.fetchStatus==="paused",isPlaceholderData:N,isRefetchError:Z&&ve,isStale:dd(i,s),refetch:this.refetch,promise:E(this,sn),isEnabled:ya(s.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Ae=ce.data!==void 0,ze=ce.status==="error"&&!Ae,fe=pe=>{ze?pe.reject(ce.error):Ae&&pe.resolve(ce.data)},he=()=>{const pe=te(this,sn,ce.promise=Cf());fe(pe)},Ne=E(this,sn);switch(Ne.status){case"pending":i.queryHash===u.queryHash&&fe(Ne);break;case"fulfilled":(ze||ce.data!==Ne.value)&&he();break;case"rejected":(!ze||ce.error!==Ne.reason)&&he();break}}return ce}updateResult(){const i=E(this,Mt),s=this.createResult(E(this,ke),this.options);if(te(this,Tl,E(this,ke).state),te(this,Ri,this.options),E(this,Tl).data!==void 0&&te(this,Oi,E(this,ke)),Mu(s,i))return;te(this,Mt,s);const u=()=>{if(!i)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!E(this,Mi).size)return!0;const m=new Set(d??E(this,Mi));return this.options.throwOnError&&m.add("error"),Object.keys(E(this,Mt)).some(p=>{const x=p;return E(this,Mt)[x]!==i[x]&&m.has(x)})};we(this,Ve,vg).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&we(this,Ve,Uf).call(this)}},Yt=new WeakMap,ke=new WeakMap,$s=new WeakMap,Mt=new WeakMap,Tl=new WeakMap,Ri=new WeakMap,sn=new WeakMap,Yn=new WeakMap,Ws=new WeakMap,Ci=new WeakMap,Oi=new WeakMap,Al=new WeakMap,Rl=new WeakMap,Gn=new WeakMap,Mi=new WeakMap,Ve=new WeakSet,Qs=function(i){we(this,Ve,Hf).call(this);let s=E(this,ke).fetch(this.options,i);return i!=null&&i.throwOnError||(s=s.catch(zt)),s},Mf=function(){we(this,Ve,kf).call(this);const i=Jn(this.options.staleTime,E(this,ke));if(Fs.isServer()||E(this,Mt).isStale||!Tf(i))return;const u=cg(E(this,Mt).dataUpdatedAt,i)+1;te(this,Al,bl.setTimeout(()=>{E(this,Mt).isStale||this.updateResult()},u))},Df=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,ke)):this.options.refetchInterval)??!1},zf=function(i){we(this,Ve,Lf).call(this),te(this,Gn,i),!(Fs.isServer()||ya(this.options.enabled,E(this,ke))===!1||!Tf(E(this,Gn))||E(this,Gn)===0)&&te(this,Rl,bl.setInterval(()=>{(this.options.refetchIntervalInBackground||rd.isFocused())&&we(this,Ve,Qs).call(this)},E(this,Gn)))},Uf=function(){we(this,Ve,Mf).call(this),we(this,Ve,zf).call(this,we(this,Ve,Df).call(this))},kf=function(){E(this,Al)&&(bl.clearTimeout(E(this,Al)),te(this,Al,void 0))},Lf=function(){E(this,Rl)&&(bl.clearInterval(E(this,Rl)),te(this,Rl,void 0))},Hf=function(){const i=E(this,Yt).getQueryCache().build(E(this,Yt),this.options);if(i===E(this,ke))return;const s=E(this,ke);te(this,ke,i),te(this,$s,i.state),this.hasListeners()&&(s==null||s.removeObserver(this),i.addObserver(this))},vg=function(i){vt.batch(()=>{i.listeners&&this.listeners.forEach(s=>{s(E(this,Mt))}),E(this,Yt).getQueryCache().notify({query:E(this,ke),type:"observerResultsUpdated"})})},Av);function r2(l,i){return ya(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&i.retryOnMount===!1)}function Wp(l,i){return r2(l,i)||l.state.data!==void 0&&qf(l,i,i.refetchOnMount)}function qf(l,i,s){if(ya(i.enabled,l)!==!1&&Jn(i.staleTime,l)!=="static"){const u=typeof s=="function"?s(l):s;return u==="always"||u!==!1&&dd(l,i)}return!1}function Ip(l,i,s,u){return(l!==i||ya(u.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&dd(l,s)}function dd(l,i){return ya(i.enabled,l)!==!1&&l.isStaleByTime(Jn(i.staleTime,l))}function u2(l,i){return!Mu(l.getCurrentResult(),i)}function zu(l){return{onFetch:(i,s)=>{var b,g,N,T,B;const u=i.options,o=(N=(g=(b=i.fetchOptions)==null?void 0:b.meta)==null?void 0:g.fetchMore)==null?void 0:N.direction,d=((T=i.state.data)==null?void 0:T.pages)||[],m=((B=i.state.data)==null?void 0:B.pageParams)||[];let p={pages:[],pageParams:[]},x=0;const v=async()=>{let U=!1;const H=K=>{t2(K,()=>i.signal,()=>U=!0)},G=fg(i.options,i.fetchOptions),Q=async(K,Z,ee)=>{if(U)return Promise.reject();if(Z==null&&K.pages.length)return Promise.resolve(K);const re=(()=>{const ze={client:i.client,queryKey:i.queryKey,pageParam:Z,direction:ee?"backward":"forward",meta:i.options.meta};return H(ze),ze})(),ce=await G(re),{maxPages:xe}=i.options,Ae=ee?e2:PS;return{pages:Ae(K.pages,ce,xe),pageParams:Ae(K.pageParams,Z,xe)}};if(o&&d.length){const K=o==="backward",Z=K?gg:Bf,ee={pages:d,pageParams:m},ve=Z(u,ee);p=await Q(ee,ve,K)}else{const K=l??d.length;do{const Z=x===0?m[0]??u.initialPageParam:Bf(u,p);if(x>0&&Z==null)break;p=await Q(p,Z),x++}while(x<K)}return p};i.options.persister?i.fetchFn=()=>{var U,H;return(H=(U=i.options).persister)==null?void 0:H.call(U,v,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s)}:i.fetchFn=v}}}function Bf(l,{pages:i,pageParams:s}){const u=i.length-1;return i.length>0?l.getNextPageParam(i[u],i,s[u],s):void 0}function gg(l,{pages:i,pageParams:s}){var u;return i.length>0?(u=l.getPreviousPageParam)==null?void 0:u.call(l,i[0],i,s[0],s):void 0}function c2(l,i){return i?Bf(l,i)!=null:!1}function o2(l,i){return!i||!l.getPreviousPageParam?!1:gg(l,i)!=null}var f2=class extends fd{constructor(l,i){super(l,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){super.setOptions({...l,behavior:zu()})}getOptimisticResult(l){return l.behavior=zu(),super.getOptimisticResult(l)}fetchNextPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"backward"}}})}createResult(l,i){var B,U;const{state:s}=l,u=super.createResult(l,i),{isFetching:o,isRefetching:d,isError:m,isRefetchError:p}=u,x=(U=(B=s.fetchMeta)==null?void 0:B.fetchMore)==null?void 0:U.direction,v=m&&x==="forward",b=o&&x==="forward",g=m&&x==="backward",N=o&&x==="backward";return{...u,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:c2(i,s.data),hasPreviousPage:o2(i,s.data),isFetchNextPageError:v,isFetchingNextPage:b,isFetchPreviousPageError:g,isFetchingPreviousPage:N,isRefetchError:p&&!v&&!g,isRefetching:d&&!b&&!N}}},Is,za,At,Cl,Ua,Hn,Rv,d2=(Rv=class extends mg{constructor(i){super();oe(this,Ua);oe(this,Is);oe(this,za);oe(this,At);oe(this,Cl);te(this,Is,i.client),this.mutationId=i.mutationId,te(this,At,i.mutationCache),te(this,za,[]),this.state=i.state||xg(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){E(this,za).includes(i)||(E(this,za).push(i),this.clearGcTimeout(),E(this,At).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){te(this,za,E(this,za).filter(s=>s!==i)),this.scheduleGc(),E(this,At).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){E(this,za).length||(this.state.status==="pending"?this.scheduleGc():E(this,At).remove(this))}continue(){var i;return((i=E(this,Cl))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var m,p,x,v,b,g,N,T,B,U,H,G,Q,K,Z,ee,ve,re;const s=()=>{we(this,Ua,Hn).call(this,{type:"continue"})},u={client:E(this,Is),meta:this.options.meta,mutationKey:this.options.mutationKey};te(this,Cl,hg({fn:()=>this.options.mutationFn?this.options.mutationFn(i,u):Promise.reject(new Error("No mutationFn found")),onFail:(ce,xe)=>{we(this,Ua,Hn).call(this,{type:"failed",failureCount:ce,error:xe})},onPause:()=>{we(this,Ua,Hn).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,At).canRun(this)}));const o=this.state.status==="pending",d=!E(this,Cl).canStart();try{if(o)s();else{we(this,Ua,Hn).call(this,{type:"pending",variables:i,isPaused:d}),E(this,At).config.onMutate&&await E(this,At).config.onMutate(i,this,u);const xe=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,i,u));xe!==this.state.context&&we(this,Ua,Hn).call(this,{type:"pending",context:xe,variables:i,isPaused:d})}const ce=await E(this,Cl).start();return await((v=(x=E(this,At).config).onSuccess)==null?void 0:v.call(x,ce,i,this.state.context,this,u)),await((g=(b=this.options).onSuccess)==null?void 0:g.call(b,ce,i,this.state.context,u)),await((T=(N=E(this,At).config).onSettled)==null?void 0:T.call(N,ce,null,this.state.variables,this.state.context,this,u)),await((U=(B=this.options).onSettled)==null?void 0:U.call(B,ce,null,i,this.state.context,u)),we(this,Ua,Hn).call(this,{type:"success",data:ce}),ce}catch(ce){try{await((G=(H=E(this,At).config).onError)==null?void 0:G.call(H,ce,i,this.state.context,this,u))}catch(xe){Promise.reject(xe)}try{await((K=(Q=this.options).onError)==null?void 0:K.call(Q,ce,i,this.state.context,u))}catch(xe){Promise.reject(xe)}try{await((ee=(Z=E(this,At).config).onSettled)==null?void 0:ee.call(Z,void 0,ce,this.state.variables,this.state.context,this,u))}catch(xe){Promise.reject(xe)}try{await((re=(ve=this.options).onSettled)==null?void 0:re.call(ve,void 0,ce,i,this.state.context,u))}catch(xe){Promise.reject(xe)}throw we(this,Ua,Hn).call(this,{type:"error",error:ce}),ce}finally{E(this,At).runNext(this)}}},Is=new WeakMap,za=new WeakMap,At=new WeakMap,Cl=new WeakMap,Ua=new WeakSet,Hn=function(i){const s=u=>{switch(i.type){case"failed":return{...u,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...u,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:i.error,failureCount:u.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=s(this.state),vt.batch(()=>{E(this,za).forEach(u=>{u.onMutationUpdate(i)}),E(this,At).notify({mutation:this,type:"updated",action:i})})},Rv);function xg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var rn,Sa,Ps,Cv,h2=(Cv=class extends Qi{constructor(i={}){super();oe(this,rn);oe(this,Sa);oe(this,Ps);this.config=i,te(this,rn,new Set),te(this,Sa,new Map),te(this,Ps,0)}build(i,s,u){const o=new d2({client:i,mutationCache:this,mutationId:++Nu(this,Ps)._,options:i.defaultMutationOptions(s),state:u});return this.add(o),o}add(i){E(this,rn).add(i);const s=Tu(i);if(typeof s=="string"){const u=E(this,Sa).get(s);u?u.push(i):E(this,Sa).set(s,[i])}this.notify({type:"added",mutation:i})}remove(i){if(E(this,rn).delete(i)){const s=Tu(i);if(typeof s=="string"){const u=E(this,Sa).get(s);if(u)if(u.length>1){const o=u.indexOf(i);o!==-1&&u.splice(o,1)}else u[0]===i&&E(this,Sa).delete(s)}}this.notify({type:"removed",mutation:i})}canRun(i){const s=Tu(i);if(typeof s=="string"){const u=E(this,Sa).get(s),o=u==null?void 0:u.find(d=>d.state.status==="pending");return!o||o===i}else return!0}runNext(i){var u;const s=Tu(i);if(typeof s=="string"){const o=(u=E(this,Sa).get(s))==null?void 0:u.find(d=>d!==i&&d.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){vt.batch(()=>{E(this,rn).forEach(i=>{this.notify({type:"removed",mutation:i})}),E(this,rn).clear(),E(this,Sa).clear()})}getAll(){return Array.from(E(this,rn))}find(i){const s={exact:!0,...i};return this.getAll().find(u=>Kp(s,u))}findAll(i={}){return this.getAll().filter(s=>Kp(i,s))}notify(i){vt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}resumePausedMutations(){const i=this.getAll().filter(s=>s.state.isPaused);return vt.batch(()=>Promise.all(i.map(s=>s.continue().catch(zt))))}},rn=new WeakMap,Sa=new WeakMap,Ps=new WeakMap,Cv);function Tu(l){var i;return(i=l.options.scope)==null?void 0:i.id}var un,Xn,Gt,cn,on,Cu,Qf,Ov,m2=(Ov=class extends Qi{constructor(s,u){super();oe(this,on);oe(this,un);oe(this,Xn);oe(this,Gt);oe(this,cn);te(this,un,s),this.setOptions(u),this.bindMethods(),we(this,on,Cu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(s){var o;const u=this.options;this.options=E(this,un).defaultMutationOptions(s),Mu(this.options,u)||E(this,un).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Gt),observer:this}),u!=null&&u.mutationKey&&this.options.mutationKey&&Ml(u.mutationKey)!==Ml(this.options.mutationKey)?this.reset():((o=E(this,Gt))==null?void 0:o.state.status)==="pending"&&E(this,Gt).setOptions(this.options)}onUnsubscribe(){var s;this.hasListeners()||(s=E(this,Gt))==null||s.removeObserver(this)}onMutationUpdate(s){we(this,on,Cu).call(this),we(this,on,Qf).call(this,s)}getCurrentResult(){return E(this,Xn)}reset(){var s;(s=E(this,Gt))==null||s.removeObserver(this),te(this,Gt,void 0),we(this,on,Cu).call(this),we(this,on,Qf).call(this)}mutate(s,u){var o;return te(this,cn,u),(o=E(this,Gt))==null||o.removeObserver(this),te(this,Gt,E(this,un).getMutationCache().build(E(this,un),this.options)),E(this,Gt).addObserver(this),E(this,Gt).execute(s)}},un=new WeakMap,Xn=new WeakMap,Gt=new WeakMap,cn=new WeakMap,on=new WeakSet,Cu=function(){var u;const s=((u=E(this,Gt))==null?void 0:u.state)??xg();te(this,Xn,{...s,isPending:s.status==="pending",isSuccess:s.status==="success",isError:s.status==="error",isIdle:s.status==="idle",mutate:this.mutate,reset:this.reset})},Qf=function(s){vt.batch(()=>{var u,o,d,m,p,x,v,b;if(E(this,cn)&&this.hasListeners()){const g=E(this,Xn).variables,N=E(this,Xn).context,T={client:E(this,un),meta:this.options.meta,mutationKey:this.options.mutationKey};if((s==null?void 0:s.type)==="success"){try{(o=(u=E(this,cn)).onSuccess)==null||o.call(u,s.data,g,N,T)}catch(B){Promise.reject(B)}try{(m=(d=E(this,cn)).onSettled)==null||m.call(d,s.data,null,g,N,T)}catch(B){Promise.reject(B)}}else if((s==null?void 0:s.type)==="error"){try{(x=(p=E(this,cn)).onError)==null||x.call(p,s.error,g,N,T)}catch(B){Promise.reject(B)}try{(b=(v=E(this,cn)).onSettled)==null||b.call(v,void 0,s.error,g,N,T)}catch(B){Promise.reject(B)}}}this.listeners.forEach(g=>{g(E(this,Xn))})})},Ov),ka,Mv,y2=(Mv=class extends Qi{constructor(i={}){super();oe(this,ka);this.config=i,te(this,ka,new Map)}build(i,s,u){const o=s.queryKey,d=s.queryHash??ud(o,s);let m=this.get(d);return m||(m=new s2({client:i,queryKey:o,queryHash:d,options:i.defaultQueryOptions(s),state:u,defaultOptions:i.getQueryDefaults(o)}),this.add(m)),m}add(i){E(this,ka).has(i.queryHash)||(E(this,ka).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const s=E(this,ka).get(i.queryHash);s&&(i.destroy(),s===i&&E(this,ka).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){vt.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return E(this,ka).get(i)}getAll(){return[...E(this,ka).values()]}find(i){const s={exact:!0,...i};return this.getAll().find(u=>Xp(s,u))}findAll(i={}){const s=this.getAll();return Object.keys(i).length>0?s.filter(u=>Xp(i,u)):s}notify(i){vt.batch(()=>{this.listeners.forEach(s=>{s(i)})})}onFocus(){vt.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){vt.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},ka=new WeakMap,Mv),it,Kn,Zn,Di,zi,Fn,Ui,ki,Dv,p2=(Dv=class{constructor(l={}){oe(this,it);oe(this,Kn);oe(this,Zn);oe(this,Di);oe(this,zi);oe(this,Fn);oe(this,Ui);oe(this,ki);te(this,it,l.queryCache||new y2),te(this,Kn,l.mutationCache||new h2),te(this,Zn,l.defaultOptions||{}),te(this,Di,new Map),te(this,zi,new Map),te(this,Fn,0)}mount(){Nu(this,Fn)._++,E(this,Fn)===1&&(te(this,Ui,rd.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,it).onFocus())})),te(this,ki,Du.subscribe(async l=>{l&&(await this.resumePausedMutations(),E(this,it).onOnline())})))}unmount(){var l,i;Nu(this,Fn)._--,E(this,Fn)===0&&((l=E(this,Ui))==null||l.call(this),te(this,Ui,void 0),(i=E(this,ki))==null||i.call(this),te(this,ki,void 0))}isFetching(l){return E(this,it).findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return E(this,Kn).findAll({...l,status:"pending"}).length}getQueryData(l){var s;const i=this.defaultQueryOptions({queryKey:l});return(s=E(this,it).get(i.queryHash))==null?void 0:s.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),s=E(this,it).build(this,i),u=s.state.data;return u===void 0?this.fetchQuery(l):(l.revalidateIfStale&&s.isStaleByTime(Jn(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(u))}getQueriesData(l){return E(this,it).findAll(l).map(({queryKey:i,state:s})=>{const u=s.data;return[i,u]})}setQueryData(l,i,s){const u=this.defaultQueryOptions({queryKey:l}),o=E(this,it).get(u.queryHash),d=o==null?void 0:o.state.data,m=$S(i,d);if(m!==void 0)return E(this,it).build(this,u).setData(m,{...s,manual:!0})}setQueriesData(l,i,s){return vt.batch(()=>E(this,it).findAll(l).map(({queryKey:u})=>[u,this.setQueryData(u,i,s)]))}getQueryState(l){var s;const i=this.defaultQueryOptions({queryKey:l});return(s=E(this,it).get(i.queryHash))==null?void 0:s.state}removeQueries(l){const i=E(this,it);vt.batch(()=>{i.findAll(l).forEach(s=>{i.remove(s)})})}resetQueries(l,i){const s=E(this,it);return vt.batch(()=>(s.findAll(l).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const s={revert:!0,...i},u=vt.batch(()=>E(this,it).findAll(l).map(o=>o.cancel(s)));return Promise.all(u).then(zt).catch(zt)}invalidateQueries(l,i={}){return vt.batch(()=>(E(this,it).findAll(l).forEach(s=>{s.invalidate()}),(l==null?void 0:l.refetchType)==="none"?Promise.resolve():this.refetchQueries({...l,type:(l==null?void 0:l.refetchType)??(l==null?void 0:l.type)??"active"},i)))}refetchQueries(l,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},u=vt.batch(()=>E(this,it).findAll(l).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,s);return s.throwOnError||(d=d.catch(zt)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(u).then(zt)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const s=E(this,it).build(this,i);return s.isStaleByTime(Jn(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(zt).catch(zt)}fetchInfiniteQuery(l){return l.behavior=zu(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(zt).catch(zt)}ensureInfiniteQueryData(l){return l.behavior=zu(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return Du.isOnline()?E(this,Kn).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,it)}getMutationCache(){return E(this,Kn)}getDefaultOptions(){return E(this,Zn)}setDefaultOptions(l){te(this,Zn,l)}setQueryDefaults(l,i){E(this,Di).set(Ml(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...E(this,Di).values()],s={};return i.forEach(u=>{Zs(l,u.queryKey)&&Object.assign(s,u.defaultOptions)}),s}setMutationDefaults(l,i){E(this,zi).set(Ml(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...E(this,zi).values()],s={};return i.forEach(u=>{Zs(l,u.mutationKey)&&Object.assign(s,u.defaultOptions)}),s}defaultQueryOptions(l){if(l._defaulted)return l;const i={...E(this,Zn).queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=ud(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===cd&&(i.enabled=!1),i}defaultMutationOptions(l){return l!=null&&l._defaulted?l:{...E(this,Zn).mutations,...(l==null?void 0:l.mutationKey)&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){E(this,it).clear(),E(this,Kn).clear()}},it=new WeakMap,Kn=new WeakMap,Zn=new WeakMap,Di=new WeakMap,zi=new WeakMap,Fn=new WeakMap,Ui=new WeakMap,ki=new WeakMap,Dv),bg=A.createContext(void 0),Vi=l=>{const i=A.useContext(bg);if(l)return l;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},v2=({client:l,children:i})=>(A.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),f.jsx(bg.Provider,{value:l,children:i})),Sg=A.createContext(!1),g2=()=>A.useContext(Sg);Sg.Provider;function x2(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var b2=A.createContext(x2()),S2=()=>A.useContext(b2),E2=(l,i,s)=>{const u=s!=null&&s.state.error&&typeof l.throwOnError=="function"?od(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||u)&&(i.isReset()||(l.retryOnMount=!1))},_2=l=>{A.useEffect(()=>{l.clearReset()},[l])},N2=({result:l,errorResetBoundary:i,throwOnError:s,query:u,suspense:o})=>l.isError&&!i.isReset()&&!l.isFetching&&u&&(o&&l.data===void 0||od(s,[l.error,u])),j2=(l,i)=>i.state.data===void 0,w2=l=>{if(l.suspense){const s=o=>o==="static"?o:Math.max(o??1e3,1e3),u=l.staleTime;l.staleTime=typeof u=="function"?(...o)=>s(u(...o)):s(u),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},T2=(l,i)=>l.isLoading&&l.isFetching&&!i,A2=(l,i)=>(l==null?void 0:l.suspense)&&i.isPending,Pp=(l,i,s)=>i.fetchOptimistic(l).catch(()=>{s.clearReset()});function hd(l,i,s){var N,T,B,U;const u=g2(),o=S2(),d=Vi(s),m=d.defaultQueryOptions(l);(T=(N=d.getDefaultOptions().queries)==null?void 0:N._experimental_beforeQuery)==null||T.call(N,m);const p=d.getQueryCache().get(m.queryHash);m._optimisticResults=u?"isRestoring":"optimistic",w2(m),E2(m,o,p),_2(o);const x=!d.getQueryCache().get(m.queryHash),[v]=A.useState(()=>new i(d,m)),b=v.getOptimisticResult(m),g=!u&&l.subscribed!==!1;if(A.useSyncExternalStore(A.useCallback(H=>{const G=g?v.subscribe(vt.batchCalls(H)):zt;return v.updateResult(),G},[v,g]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),A.useEffect(()=>{v.setOptions(m)},[m,v]),A2(m,b))throw Pp(m,v,o);if(N2({result:b,errorResetBoundary:o,throwOnError:m.throwOnError,query:p,suspense:m.suspense}))throw b.error;if((U=(B=d.getDefaultOptions().queries)==null?void 0:B._experimental_afterQuery)==null||U.call(B,m,b),m.experimental_prefetchInRender&&!Fs.isServer()&&T2(b,u)){const H=x?Pp(m,v,o):p==null?void 0:p.promise;H==null||H.catch(zt).finally(()=>{v.updateResult()})}return m.notifyOnChangeProps?b:v.trackResult(b)}function R2(l,i){return hd(l,fd,i)}function C2(l,i){return hd({...l,enabled:!0,suspense:!0,throwOnError:j2,placeholderData:void 0},fd,i)}function O2(l,i){const s=Vi(i),[u]=A.useState(()=>new m2(s,l));A.useEffect(()=>{u.setOptions(l)},[u,l]);const o=A.useSyncExternalStore(A.useCallback(m=>u.subscribe(vt.batchCalls(m)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),d=A.useCallback((m,p)=>{u.mutate(m,p).catch(zt)},[u]);if(o.error&&od(u.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:d,mutateAsync:o.mutate}}function M2(l,i){return hd(l,f2,i)}const D2=new p2({defaultOptions:{queries:{staleTime:60*1e3,gcTime:300*1e3,retry:1,refetchOnWindowFocus:!1},mutations:{retry:0}}}),z2=/\{[^{}]+\}/g,U2=()=>{var l,i;return typeof process=="object"&&Number.parseInt((i=(l=process==null?void 0:process.versions)==null?void 0:l.node)==null?void 0:i.substring(0,2))>=18&&process.versions.undici};function k2(){return Math.random().toString(36).slice(2,11)}function L2(l){let{baseUrl:i="",Request:s=globalThis.Request,fetch:u=globalThis.fetch,querySerializer:o,bodySerializer:d,pathSerializer:m,headers:p,requestInitExt:x=void 0,...v}={...l};x=U2()?x:void 0,i=av(i);const b=[];async function g(N,T){var I;const{baseUrl:B,fetch:U=u,Request:H=s,headers:G,params:Q={},parseAs:K="json",querySerializer:Z,bodySerializer:ee=d??q2,pathSerializer:ve,body:re,middleware:ce=[],...xe}=T||{};let Ae=i;B&&(Ae=av(B)??i);let ze=typeof o=="function"?o:ev(o);Z&&(ze=typeof Z=="function"?Z:ev({...typeof o=="object"?o:{},...Z}));const fe=ve||m||H2,he=re===void 0?void 0:ee(re,tv(p,G,Q.header)),Ne=tv(he===void 0||he instanceof FormData?{}:{"Content-Type":"application/json"},p,G,Q.header),pe=[...b,...ce],L={redirect:"follow",...v,...xe,body:he,headers:Ne};let F,ie,Se=new H(B2(N,{baseUrl:Ae,params:Q,querySerializer:ze,pathSerializer:fe}),L),me;for(const W in xe)W in Se||(Se[W]=xe[W]);if(pe.length){F=k2(),ie=Object.freeze({baseUrl:Ae,fetch:U,parseAs:K,querySerializer:ze,bodySerializer:ee,pathSerializer:fe});for(const W of pe)if(W&&typeof W=="object"&&typeof W.onRequest=="function"){const ae=await W.onRequest({request:Se,schemaPath:N,params:Q,options:ie,id:F});if(ae)if(ae instanceof H)Se=ae;else if(ae instanceof Response){me=ae;break}else throw new Error("onRequest: must return new Request() or Response() when modifying the request")}}if(!me){try{me=await U(Se,x)}catch(W){let ae=W;if(pe.length)for(let ge=pe.length-1;ge>=0;ge--){const Re=pe[ge];if(Re&&typeof Re=="object"&&typeof Re.onError=="function"){const tt=await Re.onError({request:Se,error:ae,schemaPath:N,params:Q,options:ie,id:F});if(tt){if(tt instanceof Response){ae=void 0,me=tt;break}if(tt instanceof Error){ae=tt;continue}throw new Error("onError: must return new Response() or instance of Error")}}}if(ae)throw ae}if(pe.length)for(let W=pe.length-1;W>=0;W--){const ae=pe[W];if(ae&&typeof ae=="object"&&typeof ae.onResponse=="function"){const ge=await ae.onResponse({request:Se,response:me,schemaPath:N,params:Q,options:ie,id:F});if(ge){if(!(ge instanceof Response))throw new Error("onResponse: must return new Response() when modifying the response");me=ge}}}}const w=me.headers.get("Content-Length");if(me.status===204||Se.method==="HEAD"||w==="0"&&!((I=me.headers.get("Transfer-Encoding"))!=null&&I.includes("chunked")))return me.ok?{data:void 0,response:me}:{error:void 0,response:me};if(me.ok)return{data:await(async()=>{if(K==="stream")return me.body;if(K==="json"&&!w){const ae=await me.text();return ae?JSON.parse(ae):void 0}return await me[K]()})(),response:me};let Y=await me.text();try{Y=JSON.parse(Y)}catch{}return{error:Y,response:me}}return{request(N,T,B){return g(T,{...B,method:N.toUpperCase()})},GET(N,T){return g(N,{...T,method:"GET"})},PUT(N,T){return g(N,{...T,method:"PUT"})},POST(N,T){return g(N,{...T,method:"POST"})},DELETE(N,T){return g(N,{...T,method:"DELETE"})},OPTIONS(N,T){return g(N,{...T,method:"OPTIONS"})},HEAD(N,T){return g(N,{...T,method:"HEAD"})},PATCH(N,T){return g(N,{...T,method:"PATCH"})},TRACE(N,T){return g(N,{...T,method:"TRACE"})},use(...N){for(const T of N)if(T){if(typeof T!="object"||!("onRequest"in T||"onResponse"in T||"onError"in T))throw new Error("Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`");b.push(T)}},eject(...N){for(const T of N){const B=b.indexOf(T);B!==-1&&b.splice(B,1)}}}}function Xu(l,i,s){if(i==null)return"";if(typeof i=="object")throw new Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${l}=${(s==null?void 0:s.allowReserved)===!0?i:encodeURIComponent(i)}`}function Eg(l,i,s){if(!i||typeof i!="object")return"";const u=[],o={simple:",",label:".",matrix:";"}[s.style]||"&";if(s.style!=="deepObject"&&s.explode===!1){for(const p in i)u.push(p,s.allowReserved===!0?i[p]:encodeURIComponent(i[p]));const m=u.join(",");switch(s.style){case"form":return`${l}=${m}`;case"label":return`.${m}`;case"matrix":return`;${l}=${m}`;default:return m}}for(const m in i){const p=s.style==="deepObject"?`${l}[${m}]`:m;u.push(Xu(p,i[m],s))}const d=u.join(o);return s.style==="label"||s.style==="matrix"?`${o}${d}`:d}function _g(l,i,s){if(!Array.isArray(i))return"";if(s.explode===!1){const d={form:",",spaceDelimited:"%20",pipeDelimited:"|"}[s.style]||",",m=(s.allowReserved===!0?i:i.map(p=>encodeURIComponent(p))).join(d);switch(s.style){case"simple":return m;case"label":return`.${m}`;case"matrix":return`;${l}=${m}`;default:return`${l}=${m}`}}const u={simple:",",label:".",matrix:";"}[s.style]||"&",o=[];for(const d of i)s.style==="simple"||s.style==="label"?o.push(s.allowReserved===!0?d:encodeURIComponent(d)):o.push(Xu(l,d,s));return s.style==="label"||s.style==="matrix"?`${u}${o.join(u)}`:o.join(u)}function ev(l){return function(s){const u=[];if(s&&typeof s=="object")for(const o in s){const d=s[o];if(d!=null){if(Array.isArray(d)){if(d.length===0)continue;u.push(_g(o,d,{style:"form",explode:!0,...l==null?void 0:l.array,allowReserved:(l==null?void 0:l.allowReserved)||!1}));continue}if(typeof d=="object"){u.push(Eg(o,d,{style:"deepObject",explode:!0,...l==null?void 0:l.object,allowReserved:(l==null?void 0:l.allowReserved)||!1}));continue}u.push(Xu(o,d,l))}}return u.join("&")}}function H2(l,i){let s=l;for(const u of l.match(z2)??[]){let o=u.substring(1,u.length-1),d=!1,m="simple";if(o.endsWith("*")&&(d=!0,o=o.substring(0,o.length-1)),o.startsWith(".")?(m="label",o=o.substring(1)):o.startsWith(";")&&(m="matrix",o=o.substring(1)),!i||i[o]===void 0||i[o]===null)continue;const p=i[o];if(Array.isArray(p)){s=s.replace(u,_g(o,p,{style:m,explode:d}));continue}if(typeof p=="object"){s=s.replace(u,Eg(o,p,{style:m,explode:d}));continue}if(m==="matrix"){s=s.replace(u,`;${Xu(o,p)}`);continue}s=s.replace(u,m==="label"?`.${encodeURIComponent(p)}`:encodeURIComponent(p))}return s}function q2(l,i){return l instanceof FormData?l:i&&(i.get instanceof Function?i.get("Content-Type")??i.get("content-type"):i["Content-Type"]??i["content-type"])==="application/x-www-form-urlencoded"?new URLSearchParams(l).toString():JSON.stringify(l)}function B2(l,i){var o;let s=`${i.baseUrl}${l}`;(o=i.params)!=null&&o.path&&(s=i.pathSerializer(s,i.params.path));let u=i.querySerializer(i.params.query??{});return u.startsWith("?")&&(u=u.substring(1)),u&&(s+=`?${u}`),s}function tv(...l){const i=new Headers;for(const s of l){if(!s||typeof s!="object")continue;const u=s instanceof Headers?s.entries():Object.entries(s);for(const[o,d]of u)if(d===null)i.delete(o);else if(Array.isArray(d))for(const m of d)i.append(o,m);else d!==void 0&&i.set(o,d)}return i}function av(l){return l.endsWith("/")?l.substring(0,l.length-1):l}function Q2(l){const i=async({queryKey:[u,o,d],signal:m})=>{const p=u.toUpperCase(),x=l[p],{data:v,error:b,response:g}=await x(o,{signal:m,...d});if(b)throw b;return g.status===204||g.headers.get("Content-Length")==="0"?v??null:v},s=(u,o,...[d,m])=>({queryKey:d===void 0?[u,o]:[u,o,d],queryFn:i,...m});return{queryOptions:s,useQuery:(u,o,...[d,m,p])=>R2(s(u,o,d,m),p),useSuspenseQuery:(u,o,...[d,m,p])=>C2(s(u,o,d,m),p),useInfiniteQuery:(u,o,d,m,p)=>{const{pageParamName:x="cursor",...v}=m,{queryKey:b}=s(u,o,d);return M2({queryKey:b,queryFn:async({queryKey:[g,N,T],pageParam:B=0,signal:U})=>{var ee;const H=g.toUpperCase(),G=l[H],Q={...T,signal:U,params:{...(T==null?void 0:T.params)||{},query:{...(ee=T==null?void 0:T.params)==null?void 0:ee.query,[x]:B}}},{data:K,error:Z}=await G(N,Q);if(Z)throw Z;return K},...v},p)},useMutation:(u,o,d,m)=>O2({mutationKey:[u,o],mutationFn:async p=>{const x=u.toUpperCase(),v=l[x],{data:b,error:g}=await v(o,p);if(g)throw g;return b},...d},m)}}const V2=(l,i=!0)=>(l=i?l.trim():l,l.length>0?l:null),Ng=(l,i=!0,s)=>Y2(V2(l,i),"Expected non-empty string"+(s?`: ${s}`:"")),Y2=(l,i)=>{if(l==null)throw new Error(`Assertion failed: ${i??"value is null or undefined"}`);return l},G2=()=>"/v1",jg=G2(),X2=l=>{if(typeof window>"u")return"ws://localhost";const i=new URL(l,window.location.origin),s=i.protocol==="https:"?"wss:":"ws:",u=i.pathname.replace(/\/+$/,"");return`${s}//${i.host}${u}`},K2=()=>X2(jg),Z2=K2(),wg=L2({baseUrl:jg});let Vf;wg.use({async onRequest({request:l}){const i=Vf;return i&&l.headers.set("Authorization",`Bearer ${Ng(i,!0,"panic! token is required")}`),!l.headers.has("Content-Type")&&!(l.body instanceof FormData)&&l.headers.set("Content-Type","application/json"),l}});const Wn=Q2(wg),Ma=l=>{l===void 0&&Vf!==void 0||(Vf=l)},Tg=A.createContext(void 0),qs="/auth",F2=240*1e3,J2=5e3;function $2({children:l}){const[i,s]=A.useState({status:"loading"}),u=A.useRef(null),o=A.useCallback(async()=>{try{const b=await fetch(`${qs}/session`,{credentials:"include"});if(!b.ok){s({status:"unauthenticated"}),Ma(null);return}const g=await b.json();g.status==="authenticated"?(s({status:"authenticated",accessToken:g.accessToken,accessTokenExpires:g.accessTokenExpires,user:g.user}),Ma(g.accessToken)):g.status==="refresh_needed"?await d():(s({status:"unauthenticated"}),Ma(null))}catch(b){console.error("Session check failed:",b),s({status:"unauthenticated"}),Ma(null)}},[]),d=A.useCallback(async()=>{try{const b=await fetch(`${qs}/refresh`,{method:"POST",credentials:"include"});if(!b.ok){s({status:"unauthenticated"}),Ma(null);return}const g=await b.json();s({status:"authenticated",accessToken:g.accessToken,accessTokenExpires:g.accessTokenExpires,user:g.user}),Ma(g.accessToken)}catch(b){console.error("Token refresh failed:",b),s({status:"unauthenticated"}),Ma(null)}},[]);A.useEffect(()=>{o()},[o]),A.useEffect(()=>{if(i.status!=="authenticated"){u.current&&(clearInterval(u.current),u.current=null);return}const b=window.setInterval(()=>{if(i.status!=="authenticated")return;i.accessTokenExpires-Date.now()<F2&&d()},J2);return u.current=b,()=>clearInterval(b)},[i.status,i.status==="authenticated"?i.accessTokenExpires:null,d]);const m=A.useCallback(async(b,g)=>{if(b==="sso")return window.location.href=`${qs}/login`,{ok:!0};if(!g)return{ok:!1,error:"Email and password are required"};try{const N=await fetch(`${qs}/login`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(g)});if(!N.ok)return{ok:!1,error:(await N.json().catch(()=>({}))).error||"Invalid credentials"};const T=await N.json();return s({status:"authenticated",accessToken:T.accessToken,accessTokenExpires:T.accessTokenExpires,user:T.user}),Ma(T.accessToken),{ok:!0}}catch(N){return console.error("Login error:",N),{ok:!1,error:"An unexpected error occurred"}}},[]),p=A.useCallback(async()=>{try{await fetch(`${qs}/logout`,{method:"POST",credentials:"include"})}catch(b){console.error("Logout error:",b)}s({status:"unauthenticated"}),Ma(null)},[]),x=A.useCallback(async()=>{await o()},[o]);Ma(i.status==="authenticated"?i.accessToken:i.status==="loading"?void 0:null);const v={...i,signIn:m,signOut:p,update:x};return f.jsx(Tg.Provider,{value:v,children:l})}function In(){const l=A.useContext(Tg);if(l===void 0)throw new Error("useAuth must be used within an AuthProvider");return l}const Ag=A.createContext(void 0);function W2({children:l}){const[i,s]=A.useState({error:null,message:null}),u=A.useCallback((d,m)=>{console.error(m||"An error occurred:",d),s({error:d,message:m||d.message}),setTimeout(()=>{s(p=>p.error===d?{error:null,message:null}:p)},8e3)},[]),o=A.useCallback(()=>{s({error:null,message:null})},[]);return Le.createElement(Ag.Provider,{value:{errorState:i,setError:u,clearError:o}},l,i.message?Le.createElement("div",{className:"fixed bottom-6 right-6 z-[9999] max-w-md bg-red-50 border border-red-200 text-red-800 px-5 py-4 rounded-md shadow-lg animate-in slide-in-from-bottom-4 flex items-start gap-3",role:"alert"},Le.createElement("div",{className:"flex-1"},Le.createElement("p",{className:"text-sm font-semibold"},"Error"),Le.createElement("p",{className:"text-sm mt-0.5 text-red-700"},i.message)),Le.createElement("button",{onClick:o,className:"text-red-400 hover:text-red-600 text-lg leading-none mt-0.5","aria-label":"Dismiss error"},"×")):null)}function md(){const l=A.useContext(Ag);if(l===void 0)throw new Error("useError must be used within an ErrorProvider");return l}const I2=A.createContext(void 0),nv="recording_consent_meetings",P2="T",Rg="F",eE="|",tE=(l,i)=>`${l}|${i?P2:Rg}`,aE=l=>{const i=l.lastIndexOf(eE);if(i===-1)return{meetingId:l,accepted:!0};const s=l.slice(i+1);return{meetingId:l.slice(0,i),accepted:s!==Rg}},nE=({children:l})=>{const[i,s]=A.useState({ready:!1}),u=x=>{try{if(typeof window<"u"&&window.localStorage){const v=Array.from(x.entries()).slice(-5).map(([b,g])=>tE(b,g));localStorage.setItem(nv,JSON.stringify(v))}}catch(v){console.error("Failed to save consent data to localStorage:",v)}},o=(x,v)=>{if(!i.ready){console.warn("Attempted to touch consent before context is ready");return}const b=new Map(i.consentForMeetings);b.set(x,v),u(b),s({ready:!0,consentForMeetings:b})},d=x=>i.ready?i.consentForMeetings.has(x):!1,m=x=>i.ready?i.consentForMeetings.get(x)===!0:!1;A.useEffect(()=>{try{if(typeof window>"u"||!window.localStorage){s({ready:!0,consentForMeetings:new Map});return}const x=localStorage.getItem(nv);if(!x){s({ready:!0,consentForMeetings:new Map});return}const v=JSON.parse(x);if(!Array.isArray(v)){console.warn("Invalid consent data format in localStorage, resetting"),s({ready:!0,consentForMeetings:new Map});return}const b=new Map;for(const g of v){const N=aE(g);N&&b.set(N.meetingId,N.accepted)}s({ready:!0,consentForMeetings:b})}catch(x){console.error("Failed to parse consent data from localStorage:",x),s({ready:!0,consentForMeetings:new Map})}},[]);const p={state:i,touch:o,hasAnswered:d,hasAccepted:m};return f.jsx(I2.Provider,{value:p,children:l})},lE=()=>{const l=In();return{isAuthenticated:l.status==="authenticated",isLoading:l.status==="loading"}};function iE(l=1){const{isAuthenticated:i}=lE();return Wn.useQuery("get","/v1/rooms",{params:{query:{page:l}}},{enabled:i})}function sE(){const{setError:l}=md(),i=Vi();return Wn.useMutation("post","/v1/rooms",{onSuccess:()=>i.invalidateQueries({queryKey:Wn.queryOptions("get","/v1/rooms").queryKey}),onError:s=>{l(s,"There was an error creating the room")}})}function rE(){const{setError:l}=md(),i=Vi();return Wn.useMutation("delete","/v1/rooms/{room_id}",{onSuccess:()=>i.invalidateQueries({queryKey:Wn.queryOptions("get","/v1/rooms").queryKey}),onError:s=>{l(s,"There was an error deleting the room")}})}const yd="/v1/transcripts/search",uE=l=>l.invalidateQueries({queryKey:["get",yd]});function cE(l="",i={}){return Wn.useQuery("get",yd,{params:{query:{q:l,limit:i.limit,offset:i.offset,room_id:i.room_id,source_kind:i.source_kind}}},{enabled:!0})}const oE=(l,i)=>l.invalidateQueries({queryKey:Wn.queryOptions("get","/v1/transcripts/{transcript_id}",{params:{path:{transcript_id:i}}}).queryKey});function fE(){const{setError:l}=md(),i=Vi();return Wn.useMutation("delete","/v1/transcripts/{transcript_id}",{onSuccess:()=>i.invalidateQueries({queryKey:["get",yd]}),onError:s=>{l(s,"There was an error deleting the transcript")}})}class dE{constructor(){this.socket=null,this.listeners=new Set,this.closeTimeoutId=null,this.isConnecting=!1}ensureConnection(i,s){if(typeof window>"u"||(this.closeTimeoutId!==null&&(clearTimeout(this.closeTimeoutId),this.closeTimeoutId=null),this.isConnecting)||this.socket&&(this.socket.readyState===WebSocket.OPEN||this.socket.readyState===WebSocket.CONNECTING))return;this.isConnecting=!0;const u=new WebSocket(i,s||[]);this.socket=u,u.onmessage=o=>{this.listeners.forEach(d=>{try{d(o)}catch(m){console.error("UserEvents listener error",m)}})},u.onopen=()=>{this.socket===u&&(this.isConnecting=!1)},u.onclose=()=>{this.socket===u&&(this.socket=null,this.isConnecting=!1)},u.onerror=()=>{this.socket===u&&(this.isConnecting=!1)}}subscribe(i){return this.listeners.add(i),this.closeTimeoutId!==null&&(clearTimeout(this.closeTimeoutId),this.closeTimeoutId=null),()=>{this.listeners.delete(i),this.listeners.size===0&&(this.closeTimeoutId=window.setTimeout(()=>{if(this.socket)try{this.socket.close()}catch(s){console.warn("Error closing user events socket",s)}this.socket=null,this.closeTimeoutId=null},1e3))}}}const lv=new dE;function hE({children:l}){const i=In(),s=Vi(),u=A.useRef(null),o=A.useRef(null);return A.useEffect(()=>{if(i.status==="unauthenticated"){if(o.current){try{o.current()}catch(p){console.warn("Error detaching UserEvents listener",p)}o.current=null}u.current=null;return}if(i.status!=="authenticated")return;!u.current&&i.accessToken&&(u.current=i.accessToken);const d=u.current,m=`${Z2}/v1/events`;if(lv.ensureConnection(m,d?["bearer",d]:void 0),!o.current){const p=v=>{try{const b=JSON.parse(v.data);switch(b.event){case"TRANSCRIPT_CREATED":case"TRANSCRIPT_DELETED":case"TRANSCRIPT_STATUS":case"TRANSCRIPT_FINAL_TITLE":case"TRANSCRIPT_DURATION":uE(s).then(()=>{}),oE(s,Ng(b.data.id)).then(()=>{});break;default:console.warn(`Unknown user event: ${b.event}`)}}catch{console.warn("Invalid user event message",v.data)}},x=lv.subscribe(p);o.current=x}},[i.status,s]),A.useEffect(()=>()=>{if(o.current){try{o.current()}catch(d){console.warn("Error detaching UserEvents listener on unmount",d)}o.current=null}u.current=null},[]),f.jsx(f.Fragment,{children:l})}/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const mE=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),yE=l=>l.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,u)=>u?u.toUpperCase():s.toLowerCase()),iv=l=>{const i=yE(l);return i.charAt(0).toUpperCase()+i.slice(1)},Cg=(...l)=>l.filter((i,s,u)=>!!i&&i.trim()!==""&&u.indexOf(i)===s).join(" ").trim(),pE=l=>{for(const i in l)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var vE={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const gE=A.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:u,className:o="",children:d,iconNode:m,...p},x)=>A.createElement("svg",{ref:x,...vE,width:i,height:i,stroke:l,strokeWidth:u?Number(s)*24/Number(i):s,className:Cg("lucide",o),...!d&&!pE(p)&&{"aria-hidden":"true"},...p},[...m.map(([v,b])=>A.createElement(v,b)),...Array.isArray(d)?d:[d]]));/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Te=(l,i)=>{const s=A.forwardRef(({className:u,...o},d)=>A.createElement(gE,{ref:d,iconNode:i,className:Cg(`lucide-${mE(iv(l))}`,`lucide-${l}`,u),...o}));return s.displayName=iv(l),s};/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const xE=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Og=Te("arrow-right",xE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const bE=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],SE=Te("bell",bE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const EE=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],_E=Te("calendar",EE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const NE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],jE=Te("chevron-down",NE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const wE=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],TE=Te("chevron-left",wE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const AE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],RE=Te("chevron-right",AE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const CE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],OE=Te("circle-alert",CE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ME=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],DE=Te("circle-check",ME);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],UE=Te("circle-dot",zE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const kE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],sv=Te("circle-plus",kE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const LE=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],HE=Te("clock",LE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const qE=[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]],BE=Te("code-xml",qE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const QE=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],VE=Te("compass",QE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const YE=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Mg=Te("download",YE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const GE=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],pd=Te("ellipsis-vertical",GE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const XE=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],KE=Te("fingerprint",XE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const ZE=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Uu=Te("folder-open",ZE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const FE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],JE=Te("globe",FE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $E=[["path",{d:"M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z",key:"yt0hxn"}]],WE=Te("hexagon",$E);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const IE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],PE=Te("info",IE);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const e_=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],t_=Te("key-round",e_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const a_=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Dg=Te("link",a_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const n_=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],l_=Te("log-in",n_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const i_=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],s_=Te("mail",i_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const r_=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]],u_=Te("maximize",r_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const c_=[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]],o_=Te("mic",c_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const f_=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],rv=Te("pause",f_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const d_=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],h_=Te("pen-line",d_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const m_=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],uv=Te("play",m_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const y_=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],p_=Te("plus",y_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const v_=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],zg=Te("search",v_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const g_=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],x_=Te("settings",g_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const b_=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],S_=Te("share-2",b_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const E_=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],__=Te("shield-check",E_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const N_=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Ug=Te("sparkles",N_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const j_=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],w_=Te("upload",j_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const T_=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],A_=Te("users",T_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const R_=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],C_=Te("volume-2",R_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const O_=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],M_=Te("wrench",O_);/**
|
||
* @license lucide-react v0.546.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const D_=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],z_=Te("x",D_),kg=({links:l})=>{const i=qa(),s=In(),u=s.status==="authenticated"?s.user:null;return f.jsxs("header",{className:"z-50 bg-surface/85 backdrop-blur-[12px] px-8 py-4 flex items-center justify-between border-b border-outline-variant/10 shrink-0",children:[f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("img",{src:"https://reflector.monadical.com/reach.svg",alt:"Reflector Logo",className:"w-6 h-6"}),f.jsx("span",{className:"font-serif font-bold text-xl text-on-surface",children:"Reflector"})]}),f.jsx("nav",{className:"hidden md:flex items-center gap-6",children:l.map((o,d)=>{const m=i.pathname===o.href||o.href!=="/"&&i.pathname.startsWith(`${o.href}/`);return f.jsxs(Le.Fragment,{children:[f.jsx(sd,{to:o.href,className:`font-sans text-sm transition-colors ${m?"text-primary font-semibold":"text-on-surface-variant hover:text-on-surface"}`,children:o.label}),d<l.length-1&&f.jsx("span",{className:"text-outline-variant/60",children:"·"})]},o.href)})})]}),f.jsxs("div",{className:"flex items-center gap-5",children:[f.jsx("button",{className:"text-muted hover:text-primary transition-colors",children:f.jsx(SE,{className:"w-5 h-5"})}),f.jsx("div",{className:"w-8 h-8 rounded-full bg-surface-high flex items-center justify-center overflow-hidden cursor-pointer hover:ring-2 hover:ring-primary/20 transition-all",children:u!=null&&u.name?f.jsx("span",{className:"font-serif font-bold text-primary",children:u.name.charAt(0)}):f.jsx("span",{className:"font-serif font-bold text-primary",children:"C"})})]})]})};function U_(){const{signIn:l}=In(),i=Dl(),[s,u]=A.useState(""),[o,d]=A.useState(""),[m,p]=A.useState(null),[x,v]=A.useState(!1),b=async N=>{N.preventDefault(),p(null),v(!0);const T=await l("credentials",{email:s,password:o});v(!1),T.ok?i("/welcome"):p(T.error||"Invalid email or password")},g=()=>{l("sso")};return f.jsxs("div",{className:"min-h-screen bg-surface flex flex-col font-sans text-on-surface selection:bg-primary-fixed",children:[f.jsxs("header",{className:"fixed top-0 w-full z-50 flex justify-between items-center px-6 py-4 bg-surface/85 backdrop-blur-[12px]",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("img",{src:"https://reflector.monadical.com/reach.svg",alt:"Reflector Logo",className:"w-6 h-6"}),f.jsx("span",{className:"text-2xl font-bold text-on-surface tracking-tight font-serif",children:"Reflector"})]}),f.jsxs("div",{className:"flex items-center gap-8",children:[f.jsxs("nav",{className:"hidden md:flex items-center gap-6",children:[f.jsx("a",{href:"#",className:"text-on-surface-variant font-medium hover:text-primary transition-colors duration-300 text-sm",children:"Collections"}),f.jsx("span",{className:"text-outline-variant/60",children:"·"}),f.jsx("a",{href:"#",className:"text-on-surface-variant font-medium hover:text-primary transition-colors duration-300 text-sm",children:"Exhibitions"}),f.jsx("span",{className:"text-outline-variant/60",children:"·"}),f.jsx("a",{href:"#",className:"text-on-surface-variant font-medium hover:text-primary transition-colors duration-300 text-sm",children:"Journal"})]}),f.jsx("button",{onClick:g,className:"bg-gradient-primary text-white px-[18px] py-[6px] rounded-sm text-sm font-semibold hover:brightness-110 active:brightness-95 transition-all",children:"Log In"})]})]}),f.jsx("main",{className:"flex-1 flex items-center justify-center px-6 py-24 md:py-0 mt-16 md:mt-0",children:f.jsxs("div",{className:"w-full max-w-6xl mx-auto grid grid-cols-1 md:grid-cols-12 gap-12 lg:gap-24 items-center",children:[f.jsxs("div",{className:"md:col-span-7 space-y-8",children:[f.jsxs("h1",{className:"text-[2.5rem] text-on-surface leading-[1.1] tracking-tight",children:[f.jsx("span",{className:"font-serif",children:"Welcome to "}),f.jsx("span",{className:"font-serif italic",children:"Reflector"})]}),f.jsx("p",{className:"text-[0.9375rem] text-on-surface-variant max-w-[420px] leading-[1.6]",children:"Access a curated digital environment designed for intellectual authority and archival depth. Manage your collections with the precision of a modern curator."}),f.jsx("div",{children:f.jsxs("button",{className:"flex items-center gap-2 text-primary font-semibold text-sm hover:underline underline-offset-4 transition-all group bg-transparent border-none p-0",children:["Learn more",f.jsx(Og,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})}),f.jsxs("div",{className:"mt-8 pt-8 space-y-4 max-w-[420px]",children:[f.jsx("p",{className:"text-[0.875rem] text-on-surface-variant font-serif italic leading-relaxed",children:'"The Digital Curator prioritizes warmth, intentionality, and authority in every interaction."'}),f.jsx("a",{href:"#",className:"inline-block text-[0.6875rem] uppercase tracking-widest font-semibold text-on-surface-variant hover:text-primary transition-colors",children:"Privacy policy"})]})]}),f.jsxs("div",{className:"md:col-span-5 relative flex justify-center md:justify-end",children:[f.jsxs("div",{className:"w-full max-w-md bg-surface-highest rounded-md p-8 shadow-card flex flex-col items-center text-center relative z-10",children:[f.jsx("div",{className:"text-primary mb-6",children:f.jsx(KE,{className:"w-6 h-6",strokeWidth:1.5})}),f.jsx("h2",{className:"font-serif text-[1.25rem] font-semibold text-on-surface mb-3",children:"Secure Access"}),f.jsx("p",{className:"text-sm text-on-surface-variant max-w-[240px] mx-auto mb-6 leading-relaxed",children:"Enter the archive to view your curated workspace and historical logs."}),m&&f.jsx("div",{className:"w-full mb-4 px-3 py-2 bg-red-50 border border-red-200 rounded-sm text-sm text-red-700",children:m}),f.jsxs("form",{onSubmit:b,className:"w-full space-y-3 mb-4",children:[f.jsx("input",{type:"email",placeholder:"Email",value:s,onChange:N=>u(N.target.value),required:!0,className:"w-full px-3 py-2.5 bg-surface-mid border border-outline-variant/30 rounded-sm text-sm text-on-surface placeholder:text-muted focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary/30 transition-colors"}),f.jsx("input",{type:"password",placeholder:"Password",value:o,onChange:N=>d(N.target.value),required:!0,className:"w-full px-3 py-2.5 bg-surface-mid border border-outline-variant/30 rounded-sm text-sm text-on-surface placeholder:text-muted focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary/30 transition-colors"}),f.jsx("button",{type:"submit",disabled:x,className:"w-full py-3 bg-gradient-primary text-white font-semibold rounded-sm hover:brightness-110 active:brightness-95 transition-all text-base disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2",children:x?f.jsx("span",{className:"inline-block w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}):f.jsxs(f.Fragment,{children:[f.jsx(l_,{className:"w-4 h-4"}),"Log In"]})})]}),f.jsxs("div",{className:"w-full flex items-center gap-3 mb-4",children:[f.jsx("div",{className:"flex-1 h-px bg-outline-variant/20"}),f.jsx("span",{className:"text-[0.6875rem] text-muted uppercase tracking-wider font-medium",children:"or"}),f.jsx("div",{className:"flex-1 h-px bg-outline-variant/20"})]}),f.jsx("button",{onClick:g,className:"w-full py-2.5 border border-outline-variant/30 text-on-surface-variant font-medium rounded-sm hover:bg-surface-mid hover:border-primary/30 transition-all text-sm",children:"Continue with SSO"}),f.jsx("p",{className:"mt-6 text-[0.6875rem] text-muted uppercase tracking-widest font-medium",children:"Authorized Personnel Only"})]}),f.jsxs("div",{className:"absolute -bottom-4 -left-4 md:-left-8 bg-surface-mid px-2.5 py-1 rounded-sm shadow-sm flex items-center gap-1.5 z-20 border border-outline-variant/20",children:[f.jsx(Ug,{className:"w-3 h-3 text-on-surface-variant"}),f.jsx("span",{className:"text-[0.6875rem] font-medium text-on-surface-variant uppercase tracking-wider",children:"Curated Experience Engine v6.9"})]})]})]})})]})}var ar=l=>l.type==="checkbox",Sl=l=>l instanceof Date,Xt=l=>l==null;const Lg=l=>typeof l=="object";var ut=l=>!Xt(l)&&!Array.isArray(l)&&Lg(l)&&!Sl(l),k_=l=>ut(l)&&l.target?ar(l.target)?l.target.checked:l.target.value:l,Hg=l=>l.substring(0,l.search(/\.\d+(\.|$)/))||l,L_=(l,i)=>l.has(Hg(i)),H_=l=>{const i=l.constructor&&l.constructor.prototype;return ut(i)&&i.hasOwnProperty("isPrototypeOf")},vd=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pt(l){if(l instanceof Date)return new Date(l);const i=typeof FileList<"u"&&l instanceof FileList;if(vd&&(l instanceof Blob||i))return l;const s=Array.isArray(l);if(!s&&!(ut(l)&&H_(l)))return l;const u=s?[]:Object.create(Object.getPrototypeOf(l));for(const o in l)Object.prototype.hasOwnProperty.call(l,o)&&(u[o]=pt(l[o]));return u}var Ku=l=>/^\w*$/.test(l),at=l=>l===void 0,gd=l=>Array.isArray(l)?l.filter(Boolean):[],xd=l=>gd(l.replace(/["|']|\]/g,"").split(/\.|\[/)),se=(l,i,s)=>{if(!i||!ut(l))return s;const u=(Ku(i)?[i]:xd(i)).reduce((o,d)=>Xt(o)?o:o[d],l);return at(u)||u===l?at(l[i])?s:l[i]:u},Da=l=>typeof l=="boolean",Ea=l=>typeof l=="function",Ie=(l,i,s)=>{let u=-1;const o=Ku(i)?[i]:xd(i),d=o.length,m=d-1;for(;++u<d;){const p=o[u];let x=s;if(u!==m){const v=l[p];x=ut(v)||Array.isArray(v)?v:isNaN(+o[u+1])?{}:[]}if(p==="__proto__"||p==="constructor"||p==="prototype")return;l[p]=x,l=l[p]}};const Si={BLUR:"blur",FOCUS_OUT:"focusout",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},_a={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ba={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Sf="form",qg="root",q_=Le.createContext(null);q_.displayName="HookFormControlContext";var B_=(l,i,s,u=!0)=>{const o={defaultValues:i._defaultValues};for(const d in l)Object.defineProperty(o,d,{get:()=>{const m=d;return i._proxyFormState[m]!==_a.all&&(i._proxyFormState[m]=!u||_a.all),l[m]}});return o};const Q_=typeof window<"u"?Le.useLayoutEffect:Le.useEffect;var Ut=l=>typeof l=="string",V_=(l,i,s,u,o)=>Ut(l)?(u&&i.watch.add(l),se(s,l,o)):Array.isArray(l)?l.map(d=>(u&&i.watch.add(d),se(s,d))):(u&&(i.watchAll=!0),s),Yf=l=>Xt(l)||!Lg(l);function qn(l,i,s=new WeakSet){if(Yf(l)||Yf(i))return Object.is(l,i);if(Sl(l)&&Sl(i))return Object.is(l.getTime(),i.getTime());const u=Object.keys(l),o=Object.keys(i);if(u.length!==o.length)return!1;if(s.has(l)||s.has(i))return!0;s.add(l),s.add(i);for(const d of u){const m=l[d];if(!o.includes(d))return!1;if(d!=="ref"){const p=i[d];if(Sl(m)&&Sl(p)||ut(m)&&ut(p)||Array.isArray(m)&&Array.isArray(p)?!qn(m,p,s):!Object.is(m,p))return!1}}return!0}const Y_=Le.createContext(null);Y_.displayName="HookFormContext";var G_=(l,i,s,u,o)=>i?{...s[l],types:{...s[l]&&s[l].types?s[l].types:{},[u]:o||!0}}:{},Gs=l=>Array.isArray(l)?l:[l],cv=()=>{let l=[];return{get observers(){return l},next:o=>{for(const d of l)d.next&&d.next(o)},subscribe:o=>(l.push(o),{unsubscribe:()=>{l=l.filter(d=>d!==o)}}),unsubscribe:()=>{l=[]}}};function Bg(l,i){const s={};for(const u in l)if(l.hasOwnProperty(u)){const o=l[u],d=i[u];if(o&&ut(o)&&d){const m=Bg(o,d);ut(m)&&(s[u]=m)}else l[u]&&(s[u]=d)}return s}var Dt=l=>ut(l)&&!Object.keys(l).length,bd=l=>l.type==="file",ku=l=>{if(!vd)return!1;const i=l?l.ownerDocument:0;return l instanceof(i&&i.defaultView?i.defaultView.HTMLElement:HTMLElement)},Qg=l=>l.type==="select-multiple",Sd=l=>l.type==="radio",X_=l=>Sd(l)||ar(l),Ef=l=>ku(l)&&l.isConnected;function K_(l,i){const s=i.slice(0,-1).length;let u=0;for(;u<s;)l=at(l)?u++:l[i[u++]];return l}function Z_(l){for(const i in l)if(l.hasOwnProperty(i)&&!at(l[i]))return!1;return!0}function mt(l,i){const s=Array.isArray(i)?i:Ku(i)?[i]:xd(i),u=s.length===1?l:K_(l,s),o=s.length-1,d=s[o];return u&&delete u[d],o!==0&&(ut(u)&&Dt(u)||Array.isArray(u)&&Z_(u))&&mt(l,s.slice(0,-1)),l}var F_=l=>{for(const i in l)if(Ea(l[i]))return!0;return!1};function Vg(l){return Array.isArray(l)||ut(l)&&!F_(l)}function Gf(l,i={}){for(const s in l){const u=l[s];Vg(u)?(i[s]=Array.isArray(u)?[]:{},Gf(u,i[s])):at(u)||(i[s]=!0)}return i}function _i(l,i,s){s||(s=Gf(i));for(const u in l){const o=l[u];if(Vg(o))at(i)||Yf(s[u])?s[u]=Gf(o,Array.isArray(o)?[]:{}):_i(o,Xt(i)?{}:i[u],s[u]);else{const d=i[u];s[u]=!qn(o,d)}}return s}const ov={value:!1,isValid:!1},fv={value:!0,isValid:!0};var Yg=l=>{if(Array.isArray(l)){if(l.length>1){const i=l.filter(s=>s&&s.checked&&!s.disabled).map(s=>s.value);return{value:i,isValid:!!i.length}}return l[0].checked&&!l[0].disabled?l[0].attributes&&!at(l[0].attributes.value)?at(l[0].value)||l[0].value===""?fv:{value:l[0].value,isValid:!0}:fv:ov}return ov},Gg=(l,{valueAsNumber:i,valueAsDate:s,setValueAs:u})=>at(l)?l:i?l===""?NaN:l&&+l:s&&Ut(l)?new Date(l):u?u(l):l;const dv={isValid:!1,value:null};var Xg=l=>Array.isArray(l)?l.reduce((i,s)=>s&&s.checked&&!s.disabled?{isValid:!0,value:s.value}:i,dv):dv;function hv(l){const i=l.ref;return bd(i)?i.files:Sd(i)?Xg(l.refs).value:Qg(i)?[...i.selectedOptions].map(({value:s})=>s):ar(i)?Yg(l.refs).value:Gg(at(i.value)?l.ref.value:i.value,l)}var J_=(l,i,s,u)=>{const o={};for(const d of l){const m=se(i,d);m&&Ie(o,d,m._f)}return{criteriaMode:s,names:[...l],fields:o,shouldUseNativeValidation:u}},Lu=l=>l instanceof RegExp,Bs=l=>at(l)?l:Lu(l)?l.source:ut(l)?Lu(l.value)?l.value.source:l.value:l,mv=l=>({isOnSubmit:!l||l===_a.onSubmit,isOnBlur:l===_a.onBlur,isOnChange:l===_a.onChange,isOnAll:l===_a.all,isOnTouch:l===_a.onTouched});const yv="AsyncFunction";var $_=l=>!!l&&!!l.validate&&!!(Ea(l.validate)&&l.validate.constructor.name===yv||ut(l.validate)&&Object.values(l.validate).find(i=>i.constructor.name===yv)),W_=l=>l.mount&&(l.required||l.min||l.max||l.maxLength||l.minLength||l.pattern||l.validate),pv=(l,i,s)=>!s&&(i.watchAll||i.watch.has(l)||[...i.watch].some(u=>l.startsWith(u)&&/^\.\w+/.test(l.slice(u.length))));const Xs=(l,i,s,u)=>{for(const o of s||Object.keys(l)){const d=se(l,o);if(d){const{_f:m,...p}=d;if(m){if(m.refs&&m.refs[0]&&i(m.refs[0],o)&&!u)return!0;if(m.ref&&i(m.ref,m.name)&&!u)return!0;if(Xs(p,i))break}else if(ut(p)&&Xs(p,i))break}}};function vv(l,i,s){const u=se(l,s);if(u||Ku(s))return{error:u,name:s};const o=s.split(".");for(;o.length;){const d=o.join("."),m=se(i,d),p=se(l,d);if(m&&!Array.isArray(m)&&s!==d)return{name:s};if(p&&p.type)return{name:d,error:p};if(p&&p.root&&p.root.type)return{name:`${d}.root`,error:p.root};o.pop()}return{name:s}}var I_=(l,i,s,u)=>{s(l);const{name:o,...d}=l;return Dt(d)||Object.keys(d).length>=Object.keys(i).length||Object.keys(d).find(m=>i[m]===(!u||_a.all))},P_=(l,i,s)=>!l||!i||l===i||Gs(l).some(u=>u&&(s?u===i:u.startsWith(i)||i.startsWith(u))),eN=(l,i,s,u,o)=>o.isOnAll?!1:!s&&o.isOnTouch?!(i||l):(s?u.isOnBlur:o.isOnBlur)?!l:(s?u.isOnChange:o.isOnChange)?l:!0,tN=(l,i)=>!gd(se(l,i)).length&&mt(l,i),aN=(l,i,s)=>{const u=Gs(se(l,s));return Ie(u,qg,i[s]),Ie(l,s,u),l};function gv(l,i,s="validate"){if(Ut(l)||Array.isArray(l)&&l.every(Ut)||Da(l)&&!l)return{type:s,message:Ut(l)?l:"",ref:i}}var Ei=l=>ut(l)&&!Lu(l)?l:{value:l,message:""},xv=async(l,i,s,u,o,d)=>{const{ref:m,refs:p,required:x,maxLength:v,minLength:b,min:g,max:N,pattern:T,validate:B,name:U,valueAsNumber:H,mount:G}=l._f,Q=se(s,U);if(!G||i.has(U))return{};const K=p?p[0]:m,Z=fe=>{o&&K.reportValidity&&(K.setCustomValidity(Da(fe)?"":fe||""),K.reportValidity())},ee={},ve=Sd(m),re=ar(m),ce=ve||re,xe=(H||bd(m))&&at(m.value)&&at(Q)||ku(m)&&m.value===""||Q===""||Array.isArray(Q)&&!Q.length,Ae=G_.bind(null,U,u,ee),ze=(fe,he,Ne,pe=ba.maxLength,L=ba.minLength)=>{const F=fe?he:Ne;ee[U]={type:fe?pe:L,message:F,ref:m,...Ae(fe?pe:L,F)}};if(d?!Array.isArray(Q)||!Q.length:x&&(!ce&&(xe||Xt(Q))||Da(Q)&&!Q||re&&!Yg(p).isValid||ve&&!Xg(p).isValid)){const{value:fe,message:he}=Ut(x)?{value:!!x,message:x}:Ei(x);if(fe&&(ee[U]={type:ba.required,message:he,ref:K,...Ae(ba.required,he)},!u))return Z(he),ee}if(!xe&&(!Xt(g)||!Xt(N))){let fe,he;const Ne=Ei(N),pe=Ei(g);if(!Xt(Q)&&!isNaN(Q)){const L=m.valueAsNumber||Q&&+Q;Xt(Ne.value)||(fe=L>Ne.value),Xt(pe.value)||(he=L<pe.value)}else{const L=m.valueAsDate||new Date(Q),F=me=>new Date(new Date().toDateString()+" "+me),ie=m.type=="time",Se=m.type=="week";Ut(Ne.value)&&Q&&(fe=ie?F(Q)>F(Ne.value):Se?Q>Ne.value:L>new Date(Ne.value)),Ut(pe.value)&&Q&&(he=ie?F(Q)<F(pe.value):Se?Q<pe.value:L<new Date(pe.value))}if((fe||he)&&(ze(!!fe,Ne.message,pe.message,ba.max,ba.min),!u))return Z(ee[U].message),ee}if((v||b)&&!xe&&(Ut(Q)||d&&Array.isArray(Q))){const fe=Ei(v),he=Ei(b),Ne=!Xt(fe.value)&&Q.length>+fe.value,pe=!Xt(he.value)&&Q.length<+he.value;if((Ne||pe)&&(ze(Ne,fe.message,he.message),!u))return Z(ee[U].message),ee}if(T&&!xe&&Ut(Q)){const{value:fe,message:he}=Ei(T);if(Lu(fe)&&!Q.match(fe)&&(ee[U]={type:ba.pattern,message:he,ref:m,...Ae(ba.pattern,he)},!u))return Z(he),ee}if(B){if(Ea(B)){const fe=await B(Q,s),he=gv(fe,K);if(he&&(ee[U]={...he,...Ae(ba.validate,he.message)},!u))return Z(he.message),ee}else if(ut(B)){let fe={};for(const he in B){if(!Dt(fe)&&!u)break;const Ne=gv(await B[he](Q,s),K,he);Ne&&(fe={...Ne,...Ae(he,Ne.message)},Z(Ne.message),u&&(ee[U]=fe))}if(!Dt(fe)&&(ee[U]={ref:K,...fe},!u))return ee}}return Z(!0),ee};const nN={mode:_a.onSubmit,reValidateMode:_a.onChange,shouldFocusError:!0};function lN(l={}){let i={...nN,...l},s={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ea(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},u={},o=ut(i.defaultValues)||ut(i.values)?pt(i.defaultValues||i.values)||{}:{},d=i.shouldUnregister?{}:pt(o),m={action:!1,mount:!1,watch:!1,keepIsValid:!1},p={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},x,v=0;const b={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},g={...b};let N={...g};const T={array:cv(),state:cv()},B=i.criteriaMode===_a.all,U=_=>C=>{clearTimeout(v),v=setTimeout(_,C)},H=async _=>{if(!m.keepIsValid&&!i.disabled&&(g.isValid||N.isValid||_)){let C;i.resolver?(C=Dt((await ce()).errors),G()):C=await ze({fields:u,onlyCheckValid:!0,eventType:Si.VALID}),C!==s.isValid&&T.state.next({isValid:C})}},G=(_,C)=>{!i.disabled&&(g.isValidating||g.validatingFields||N.isValidating||N.validatingFields)&&((_||Array.from(p.mount)).forEach(D=>{D&&(C?Ie(s.validatingFields,D,C):mt(s.validatingFields,D))}),T.state.next({validatingFields:s.validatingFields,isValidating:!Dt(s.validatingFields)}))},Q=(_,C=[],D,P,J=!0,$=!0)=>{if(P&&D&&!i.disabled){if(m.action=!0,$&&Array.isArray(se(u,_))){const le=D(se(u,_),P.argA,P.argB);J&&Ie(u,_,le)}if($&&Array.isArray(se(s.errors,_))){const le=D(se(s.errors,_),P.argA,P.argB);J&&Ie(s.errors,_,le),tN(s.errors,_)}if((g.touchedFields||N.touchedFields)&&$&&Array.isArray(se(s.touchedFields,_))){const le=D(se(s.touchedFields,_),P.argA,P.argB);J&&Ie(s.touchedFields,_,le)}if(g.dirtyFields||N.dirtyFields){const le=_i(o,d),Ee=Hg(_);Ie(s.dirtyFields,Ee,se(le,Ee))}T.state.next({name:_,isDirty:he(_,C),dirtyFields:s.dirtyFields,errors:s.errors,isValid:s.isValid})}else Ie(d,_,C)},K=(_,C)=>{Ie(s.errors,_,C),T.state.next({errors:s.errors})},Z=_=>{s.errors=_,T.state.next({errors:s.errors,isValid:!1})},ee=(_,C,D,P)=>{const J=se(u,_);if(J){const $=se(d,_,at(D)?se(o,_):D);at($)||P&&P.defaultChecked||C?Ie(d,_,C?$:hv(J._f)):L(_,$),m.mount&&!m.action&&H()}},ve=(_,C,D,P,J)=>{let $=!1,le=!1;const Ee={name:_};if(!i.disabled){if(!D||P){(g.isDirty||N.isDirty)&&(le=s.isDirty,s.isDirty=Ee.isDirty=he(),$=le!==Ee.isDirty);const He=qn(se(o,_),C);le=!!se(s.dirtyFields,_),He?mt(s.dirtyFields,_):Ie(s.dirtyFields,_,!0),Ee.dirtyFields=s.dirtyFields,$=$||(g.dirtyFields||N.dirtyFields)&&le!==!He}if(D){const He=se(s.touchedFields,_);He||(Ie(s.touchedFields,_,D),Ee.touchedFields=s.touchedFields,$=$||(g.touchedFields||N.touchedFields)&&He!==D)}$&&J&&T.state.next(Ee)}return $?Ee:{}},re=(_,C,D,P)=>{const J=se(s.errors,_),$=(g.isValid||N.isValid)&&Da(C)&&s.isValid!==C;if(i.delayError&&D?(x=U(()=>K(_,D)),x(i.delayError)):(clearTimeout(v),x=null,D?Ie(s.errors,_,D):mt(s.errors,_)),(D?!qn(J,D):J)||!Dt(P)||$){const le={...P,...$&&Da(C)?{isValid:C}:{},errors:s.errors,name:_};s={...s,...le},T.state.next(le)}},ce=async _=>(G(_,!0),await i.resolver(d,i.context,J_(_||p.mount,u,i.criteriaMode,i.shouldUseNativeValidation))),xe=async _=>{const{errors:C}=await ce(_);if(G(_),_)for(const D of _){const P=se(C,D);P?Ie(s.errors,D,P):mt(s.errors,D)}else s.errors=C;return C},Ae=async({name:_,eventType:C})=>{if(l.validate){const D=await l.validate({formValues:d,formState:s,name:_,eventType:C});if(ut(D))for(const P in D)D[P]&&ae(`${Sf}.${P}`,{message:Ut(D.message)?D.message:"",type:ba.validate});else Ut(D)||!D?ae(Sf,{message:D||"",type:ba.validate}):W(Sf);return D}return!0},ze=async({fields:_,onlyCheckValid:C,name:D,eventType:P,context:J={valid:!0,runRootValidation:!1}})=>{if(l.validate&&(J.runRootValidation=!0,!await Ae({name:D,eventType:P})&&(J.valid=!1,C)))return J.valid;for(const $ in _){const le=_[$];if(le){const{_f:Ee,...He}=le;if(Ee){const Rt=p.array.has(Ee.name),aa=le._f&&$_(le._f);aa&&g.validatingFields&&G([Ee.name],!0);const ct=await xv(le,p.disabled,d,B,i.shouldUseNativeValidation&&!C,Rt);if(aa&&g.validatingFields&&G([Ee.name]),ct[Ee.name]&&(J.valid=!1,C)||(!C&&(se(ct,Ee.name)?Rt?aN(s.errors,ct,Ee.name):Ie(s.errors,Ee.name,ct[Ee.name]):mt(s.errors,Ee.name)),l.shouldUseNativeValidation&&ct[Ee.name]))break}!Dt(He)&&await ze({context:J,onlyCheckValid:C,fields:He,name:$,eventType:P})}}return J.valid},fe=()=>{for(const _ of p.unMount){const C=se(u,_);C&&(C._f.refs?C._f.refs.every(D=>!Ef(D)):!Ef(C._f.ref))&&Je(_)}p.unMount=new Set},he=(_,C)=>!i.disabled&&(_&&C&&Ie(d,_,C),!qn(Y(),o)),Ne=(_,C,D)=>V_(_,p,{...m.mount?d:at(C)?o:Ut(_)?{[_]:C}:C},D,C),pe=_=>gd(se(m.mount?d:o,_,i.shouldUnregister?se(o,_,[]):[])),L=(_,C,D={})=>{const P=se(u,_);let J=C;if(P){const $=P._f;$&&(!$.disabled&&Ie(d,_,Gg(C,$)),J=ku($.ref)&&Xt(C)?"":C,Qg($.ref)?[...$.ref.options].forEach(le=>le.selected=J.includes(le.value)):$.refs?ar($.ref)?$.refs.forEach(le=>{(!le.defaultChecked||!le.disabled)&&(Array.isArray(J)?le.checked=!!J.find(Ee=>Ee===le.value):le.checked=J===le.value||!!J)}):$.refs.forEach(le=>le.checked=le.value===J):bd($.ref)?$.ref.value="":($.ref.value=J,$.ref.type||T.state.next({name:_,values:pt(d)})))}(D.shouldDirty||D.shouldTouch)&&ve(_,J,D.shouldTouch,D.shouldDirty,!0),D.shouldValidate&&w(_)},F=(_,C,D)=>{for(const P in C){if(!C.hasOwnProperty(P))return;const J=C[P],$=_+"."+P,le=se(u,$);(p.array.has(_)||ut(J)||le&&!le._f)&&!Sl(J)?F($,J,D):L($,J,D)}},ie=(_,C,D={})=>{const P=se(u,_),J=p.array.has(_),$=pt(C);Ie(d,_,$),J?(T.array.next({name:_,values:pt(d)}),(g.isDirty||g.dirtyFields||N.isDirty||N.dirtyFields)&&D.shouldDirty&&T.state.next({name:_,dirtyFields:_i(o,d),isDirty:he(_,$)})):P&&!P._f&&!Xt($)?F(_,$,D):L(_,$,D),pv(_,p)?T.state.next({...s,name:_,values:pt(d)}):T.state.next({name:m.mount?_:void 0,values:pt(d)})},Se=async _=>{m.mount=!0;const C=_.target;let D=C.name,P=!0;const J=se(u,D),$=He=>{P=Number.isNaN(He)||Sl(He)&&isNaN(He.getTime())||qn(He,se(d,D,He))},le=mv(i.mode),Ee=mv(i.reValidateMode);if(J){let He,Rt;const aa=C.type?hv(J._f):k_(_),ct=_.type===Si.BLUR||_.type===Si.FOCUS_OUT,Ct=!W_(J._f)&&!l.validate&&!i.resolver&&!se(s.errors,D)&&!J._f.deps||eN(ct,se(s.touchedFields,D),s.isSubmitted,Ee,le),na=pv(D,p,ct);Ie(d,D,aa),ct?(!C||!C.readOnly)&&(J._f.onBlur&&J._f.onBlur(_),x&&x(0)):J._f.onChange&&J._f.onChange(_);const St=ve(D,aa,ct),Zu=!Dt(St)||na;if(!ct&&T.state.next({name:D,type:_.type,values:pt(d)}),Ct)return(g.isValid||N.isValid)&&(i.mode==="onBlur"?ct&&H():ct||H()),Zu&&T.state.next({name:D,...na?{}:St});if(!i.resolver&&l.validate&&await Ae({name:D,eventType:_.type}),!ct&&na&&T.state.next({...s}),i.resolver){const{errors:ur}=await ce([D]);if(G([D]),$(aa),P){const Fu=vv(s.errors,u,D),el=vv(ur,u,Fu.name||D);He=el.error,D=el.name,Rt=Dt(ur)}}else G([D],!0),He=(await xv(J,p.disabled,d,B,i.shouldUseNativeValidation))[D],G([D]),$(aa),P&&(He?Rt=!1:(g.isValid||N.isValid)&&(Rt=await ze({fields:u,onlyCheckValid:!0,name:D,eventType:_.type})));P&&(J._f.deps&&(!Array.isArray(J._f.deps)||J._f.deps.length>0)&&w(J._f.deps),re(D,Rt,He,St))}},me=(_,C)=>{if(se(s.errors,C)&&_.focus)return _.focus(),1},w=async(_,C={})=>{let D,P;const J=Gs(_);if(i.resolver){const $=await xe(at(_)?_:J);D=Dt($),P=_?!J.some(le=>se($,le)):D}else _?(P=(await Promise.all(J.map(async $=>{const le=se(u,$);return await ze({fields:le&&le._f?{[$]:le}:le,eventType:Si.TRIGGER})}))).every(Boolean),!(!P&&!s.isValid)&&H()):P=D=await ze({fields:u,name:_,eventType:Si.TRIGGER});return T.state.next({...!Ut(_)||(g.isValid||N.isValid)&&D!==s.isValid?{}:{name:_},...i.resolver||!_?{isValid:D}:{},errors:s.errors}),C.shouldFocus&&!P&&Xs(u,me,_?J:p.mount),P},Y=(_,C)=>{let D={...m.mount?d:o};return C&&(D=Bg(C.dirtyFields?s.dirtyFields:s.touchedFields,D)),at(_)?D:Ut(_)?se(D,_):_.map(P=>se(D,P))},I=(_,C)=>({invalid:!!se((C||s).errors,_),isDirty:!!se((C||s).dirtyFields,_),error:se((C||s).errors,_),isValidating:!!se(s.validatingFields,_),isTouched:!!se((C||s).touchedFields,_)}),W=_=>{const C=_?Gs(_):void 0;C==null||C.forEach(D=>mt(s.errors,D)),C?C.forEach(D=>{T.state.next({name:D,errors:s.errors})}):T.state.next({errors:{}})},ae=(_,C,D)=>{const P=(se(u,_,{_f:{}})._f||{}).ref,J=se(s.errors,_)||{},{ref:$,message:le,type:Ee,...He}=J;Ie(s.errors,_,{...He,...C,ref:P}),T.state.next({name:_,errors:s.errors,isValid:!1}),D&&D.shouldFocus&&P&&P.focus&&P.focus()},ge=(_,C)=>Ea(_)?T.state.subscribe({next:D=>"values"in D&&_(Ne(void 0,C),D)}):Ne(_,C,!0),Re=_=>T.state.subscribe({next:C=>{P_(_.name,C.name,_.exact)&&I_(C,_.formState||g,Gi,_.reRenderRoot)&&_.callback({values:{...d},...s,...C,defaultValues:o})}}).unsubscribe,tt=_=>(m.mount=!0,N={...N,..._.formState},Re({..._,formState:{...b,..._.formState}})),Je=(_,C={})=>{for(const D of _?Gs(_):p.mount)p.mount.delete(D),p.array.delete(D),C.keepValue||(mt(u,D),mt(d,D)),!C.keepError&&mt(s.errors,D),!C.keepDirty&&mt(s.dirtyFields,D),!C.keepTouched&&mt(s.touchedFields,D),!C.keepIsValidating&&mt(s.validatingFields,D),!i.shouldUnregister&&!C.keepDefaultValue&&mt(o,D);T.state.next({values:pt(d)}),T.state.next({...s,...C.keepDirty?{isDirty:he()}:{}}),!C.keepIsValid&&H()},dn=({disabled:_,name:C})=>{if(Da(_)&&m.mount||_||p.disabled.has(C)){const J=p.disabled.has(C)!==!!_;_?p.disabled.add(C):p.disabled.delete(C),J&&m.mount&&!m.action&&H()}},hn=(_,C={})=>{let D=se(u,_);const P=Da(C.disabled)||Da(i.disabled);return Ie(u,_,{...D||{},_f:{...D&&D._f?D._f:{ref:{name:_}},name:_,mount:!0,...C}}),p.mount.add(_),D?dn({disabled:Da(C.disabled)?C.disabled:i.disabled,name:_}):ee(_,!0,C.value),{...P?{disabled:C.disabled||i.disabled}:{},...i.progressive?{required:!!C.required,min:Bs(C.min),max:Bs(C.max),minLength:Bs(C.minLength),maxLength:Bs(C.maxLength),pattern:Bs(C.pattern)}:{},name:_,onChange:Se,onBlur:Se,ref:J=>{if(J){hn(_,C),D=se(u,_);const $=at(J.value)&&J.querySelectorAll&&J.querySelectorAll("input,select,textarea")[0]||J,le=X_($),Ee=D._f.refs||[];if(le?Ee.find(He=>He===$):$===D._f.ref)return;Ie(u,_,{_f:{...D._f,...le?{refs:[...Ee.filter(Ef),$,...Array.isArray(se(o,_))?[{}]:[]],ref:{type:$.type,name:_}}:{ref:$}}}),ee(_,!1,void 0,$)}else D=se(u,_,{}),D._f&&(D._f.mount=!1),(i.shouldUnregister||C.shouldUnregister)&&!(L_(p.array,_)&&m.action)&&p.unMount.add(_)}}},Pn=()=>i.shouldFocusError&&Xs(u,me,p.mount),lr=_=>{Da(_)&&(T.state.next({disabled:_}),Xs(u,(C,D)=>{const P=se(u,D);P&&(C.disabled=P._f.disabled||_,Array.isArray(P._f.refs)&&P._f.refs.forEach(J=>{J.disabled=P._f.disabled||_}))},0,!1))},Ta=(_,C)=>async D=>{let P;D&&(D.preventDefault&&D.preventDefault(),D.persist&&D.persist());let J=pt(d);if(T.state.next({isSubmitting:!0}),i.resolver){const{errors:$,values:le}=await ce();G(),s.errors=$,J=pt(le)}else await ze({fields:u,eventType:Si.SUBMIT});if(p.disabled.size)for(const $ of p.disabled)mt(J,$);if(mt(s.errors,qg),Dt(s.errors)){T.state.next({errors:{}});try{await _(J,D)}catch($){P=$}}else C&&await C({...s.errors},D),Pn(),setTimeout(Pn);if(T.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Dt(s.errors)&&!P,submitCount:s.submitCount+1,errors:s.errors}),P)throw P},Yi=(_,C={})=>{se(u,_)&&(at(C.defaultValue)?ie(_,pt(se(o,_))):(ie(_,C.defaultValue),Ie(o,_,pt(C.defaultValue))),C.keepTouched||mt(s.touchedFields,_),C.keepDirty||(mt(s.dirtyFields,_),s.isDirty=C.defaultValue?he(_,pt(se(o,_))):he()),C.keepError||(mt(s.errors,_),g.isValid&&H()),T.state.next({...s}))},zl=(_,C={})=>{const D=_?pt(_):o,P=pt(D),J=Dt(_),$=J?o:P;if(C.keepDefaultValues||(o=D),!C.keepValues){if(C.keepDirtyValues){const le=new Set([...p.mount,...Object.keys(_i(o,d))]);for(const Ee of Array.from(le)){const He=se(s.dirtyFields,Ee),Rt=se(d,Ee),aa=se($,Ee);He&&!at(Rt)?Ie($,Ee,Rt):!He&&!at(aa)&&ie(Ee,aa)}}else{if(vd&&at(_))for(const le of p.mount){const Ee=se(u,le);if(Ee&&Ee._f){const He=Array.isArray(Ee._f.refs)?Ee._f.refs[0]:Ee._f.ref;if(ku(He)){const Rt=He.closest("form");if(Rt){Rt.reset();break}}}}if(C.keepFieldsRef)for(const le of p.mount)ie(le,se($,le));else u={}}d=i.shouldUnregister?C.keepDefaultValues?pt(o):{}:pt($),T.array.next({values:{...$}}),T.state.next({values:{...$}})}p={mount:C.keepDirtyValues?p.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},m.mount=!g.isValid||!!C.keepIsValid||!!C.keepDirtyValues||!i.shouldUnregister&&!Dt($),m.watch=!!i.shouldUnregister,m.keepIsValid=!!C.keepIsValid,m.action=!1,C.keepErrors||(s.errors={}),T.state.next({submitCount:C.keepSubmitCount?s.submitCount:0,isDirty:J?!1:C.keepDirty?s.isDirty:!!(C.keepDefaultValues&&!qn(_,o)),isSubmitted:C.keepIsSubmitted?s.isSubmitted:!1,dirtyFields:J?{}:C.keepDirtyValues?C.keepDefaultValues&&d?_i(o,d):s.dirtyFields:C.keepDefaultValues&&_?_i(o,_):C.keepDirty?s.dirtyFields:{},touchedFields:C.keepTouched?s.touchedFields:{},errors:C.keepErrors?s.errors:{},isSubmitSuccessful:C.keepIsSubmitSuccessful?s.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},ir=(_,C)=>zl(Ea(_)?_(d):_,{...i.resetOptions,...C}),sr=(_,C={})=>{const D=se(u,_),P=D&&D._f;if(P){const J=P.refs?P.refs[0]:P.ref;J.focus&&setTimeout(()=>{J.focus(),C.shouldSelect&&Ea(J.select)&&J.select()})}},Gi=_=>{s={...s,..._}},Ul={control:{register:hn,unregister:Je,getFieldState:I,handleSubmit:Ta,setError:ae,_subscribe:Re,_runSchema:ce,_updateIsValidating:G,_focusError:Pn,_getWatch:Ne,_getDirty:he,_setValid:H,_setFieldArray:Q,_setDisabledField:dn,_setErrors:Z,_getFieldArray:pe,_reset:zl,_resetDefaultValues:()=>Ea(i.defaultValues)&&i.defaultValues().then(_=>{ir(_,i.resetOptions),T.state.next({isLoading:!1})}),_removeUnmounted:fe,_disableForm:lr,_subjects:T,_proxyFormState:g,get _fields(){return u},get _formValues(){return d},get _state(){return m},set _state(_){m=_},get _defaultValues(){return o},get _names(){return p},set _names(_){p=_},get _formState(){return s},get _options(){return i},set _options(_){i={...i,..._}}},subscribe:tt,trigger:w,register:hn,handleSubmit:Ta,watch:ge,setValue:ie,getValues:Y,reset:ir,resetField:Yi,clearErrors:W,unregister:Je,setError:ae,setFocus:sr,getFieldState:I};return{...Ul,formControl:Ul}}function nr(l={}){const i=Le.useRef(void 0),s=Le.useRef(void 0),[u,o]=Le.useState({isDirty:!1,isValidating:!1,isLoading:Ea(l.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:l.errors||{},disabled:l.disabled||!1,isReady:!1,defaultValues:Ea(l.defaultValues)?void 0:l.defaultValues});if(!i.current)if(l.formControl)i.current={...l.formControl,formState:u},l.defaultValues&&!Ea(l.defaultValues)&&l.formControl.reset(l.defaultValues,l.resetOptions);else{const{formControl:m,...p}=lN(l);i.current={...p,formState:u}}const d=i.current.control;return d._options=l,Q_(()=>{const m=d._subscribe({formState:d._proxyFormState,callback:()=>o({...d._formState}),reRenderRoot:!0});return o(p=>({...p,isReady:!0})),d._formState.isReady=!0,m},[d]),Le.useEffect(()=>d._disableForm(l.disabled),[d,l.disabled]),Le.useEffect(()=>{l.mode&&(d._options.mode=l.mode),l.reValidateMode&&(d._options.reValidateMode=l.reValidateMode)},[d,l.mode,l.reValidateMode]),Le.useEffect(()=>{l.errors&&(d._setErrors(l.errors),d._focusError())},[d,l.errors]),Le.useEffect(()=>{l.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,l.shouldUnregister]),Le.useEffect(()=>{if(d._proxyFormState.isDirty){const m=d._getDirty();m!==u.isDirty&&d._subjects.state.next({isDirty:m})}},[d,u.isDirty]),Le.useEffect(()=>{var m;l.values&&!qn(l.values,s.current)?(d._reset(l.values,{keepFieldsRef:!0,...d._options.resetOptions}),!((m=d._options.resetOptions)===null||m===void 0)&&m.keepIsValid||d._setValid(),s.current=l.values,o(p=>({...p}))):d._resetDefaultValues()},[d,l.values]),Le.useEffect(()=>{d._state.mount||(d._setValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),i.current.formState=Le.useMemo(()=>B_(u,d),[d,u]),i.current}const bv=l=>{let i;const s=new Set,u=(v,b)=>{const g=typeof v=="function"?v(i):v;if(!Object.is(g,i)){const N=i;i=b??(typeof g!="object"||g===null)?g:Object.assign({},i,g),s.forEach(T=>T(i,N))}},o=()=>i,p={setState:u,getState:o,getInitialState:()=>x,subscribe:v=>(s.add(v),()=>s.delete(v))},x=i=l(u,o,p);return p},iN=(l=>l?bv(l):bv),sN=l=>l;function rN(l,i=sN){const s=Le.useSyncExternalStore(l.subscribe,Le.useCallback(()=>i(l.getState()),[l,i]),Le.useCallback(()=>i(l.getInitialState()),[l,i]));return Le.useDebugValue(s),s}const Sv=l=>{const i=iN(l),s=u=>rN(i,u);return Object.assign(s,i),s},Kg=(l=>l?Sv(l):Sv),Zg=Kg(l=>({isPlaying:!1,currentTime:0,activeChapterId:null,setPlaying:i=>l({isPlaying:i}),setCurrentTime:i=>l({currentTime:i}),setActiveChapter:i=>l({activeChapterId:i})})),Kt=Le.forwardRef(({variant:l="primary",className:i="",children:s,...u},o)=>{const d="rounded-sm px-5 py-2.5 font-sans font-semibold text-sm transition-all duration-200",m={primary:"bg-gradient-primary text-on-primary border-none hover:brightness-110 active:brightness-95",secondary:"bg-transparent border-[1.5px] border-primary text-primary hover:bg-primary/5",tertiary:"bg-transparent border-none text-primary hover:bg-surface-mid"};return f.jsx("button",{ref:o,className:`${d} ${m[l]} ${i}`,...u,children:s})});Kt.displayName="Button";const Hu=Le.forwardRef(({className:l="",...i},s)=>f.jsx("input",{ref:s,className:`bg-surface-mid border border-outline-variant/40 rounded-sm px-3.5 py-2.5 font-sans text-on-surface placeholder:text-muted focus:outline-none focus:border-primary focus:ring-4 focus:ring-primary/15 transition-all ${l}`,...i}));Hu.displayName="Input";const Ni=Le.forwardRef(({className:l="",children:i,...s},u)=>f.jsx("select",{ref:u,className:`bg-surface-mid border border-outline-variant/40 rounded-sm px-3.5 py-2.5 font-sans text-on-surface focus:outline-none focus:border-primary focus:ring-4 focus:ring-primary/15 transition-all appearance-none ${l}`,...s,children:i}));Ni.displayName="Select";const qu=Le.forwardRef(({className:l="",children:i,...s},u)=>f.jsx("div",{ref:u,className:`bg-surface-highest rounded-md p-6 shadow-card ${l}`,...s,children:i}));qu.displayName="Card";const Ev=({message:l})=>l?f.jsx("span",{className:"font-sans text-[0.8125rem] text-primary mt-1 block",children:l}):null;function uN(){var m,p;const l=Zg(x=>x.setPlaying),i=Dl(),{register:s,handleSubmit:u,formState:{errors:o}}=nr({defaultValues:{workspace:"Personal Archive"}}),d=x=>{console.log("Starting recording session:",x),l(!0),i("/rooms")};return f.jsxs("div",{className:"flex-1 bg-surface flex flex-col font-sans text-on-surface selection:bg-primary-fixed",children:[f.jsx("main",{className:"flex-1 flex flex-col px-6 pt-16 pb-24",children:f.jsxs("div",{className:"w-full max-w-6xl mx-auto space-y-24",children:[f.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-16 lg:gap-24 items-center",children:[f.jsxs("div",{className:"lg:col-span-7 space-y-8",children:[f.jsx("h1",{className:"text-[2.5rem] md:text-[3.5rem] font-serif font-bold text-on-surface leading-[1.1] tracking-tight",children:"Welcome to Reflector"}),f.jsx("p",{className:"text-[0.9375rem] text-on-surface-variant max-w-[440px] leading-[1.6]",children:"Reflector is your digital archive for meaningful conversations. We use advanced acoustic intelligence to curate your meetings, thoughts, and moments into a searchable, editorial-grade memory bank."}),f.jsxs("div",{className:"flex items-center gap-4 pt-4",children:[f.jsx(Kt,{variant:"secondary",onClick:()=>i("/transcriptions"),children:"Archive"}),f.jsx(Kt,{variant:"secondary",onClick:()=>i("/rooms"),children:"Rooms"})]})]}),f.jsx("div",{className:"lg:col-span-5",children:f.jsx(qu,{className:"p-7",children:f.jsxs("form",{onSubmit:u(d),className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between mb-2",children:[f.jsx("h2",{className:"font-serif font-bold text-xl",children:"Try Reflector"}),f.jsx("button",{type:"button",className:"text-muted hover:text-on-surface transition-colors",children:f.jsx(x_,{className:"w-5 h-5"})})]}),f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"block font-sans text-[0.75rem] font-semibold text-on-surface-variant uppercase tracking-wider",children:"Meeting Title"}),f.jsx(Hu,{...s("meetingTitle",{required:"Meeting title is required"}),placeholder:"Weekly Sync...",className:"w-full"}),f.jsx(Ev,{message:(m=o.meetingTitle)==null?void 0:m.message})]}),f.jsxs("div",{className:"space-y-1.5",children:[f.jsx("label",{className:"block font-sans text-[0.75rem] font-semibold text-on-surface-variant uppercase tracking-wider",children:"Workspace"}),f.jsxs(Ni,{...s("workspace",{required:"Workspace is required"}),className:"w-full font-medium",children:[f.jsx("option",{value:"Personal Archive",children:"Personal Archive"}),f.jsx("option",{value:"Team Syncs",children:"Team Syncs"}),f.jsx("option",{value:"Client Meetings",children:"Client Meetings"})]}),f.jsx(Ev,{message:(p=o.workspace)==null?void 0:p.message})]})]}),f.jsxs(Kt,{type:"submit",variant:"primary",className:"w-full flex items-center justify-center gap-2 py-3 text-[0.9375rem]",children:[f.jsx(o_,{className:"w-4 h-4"}),"Request Microphone Permission"]}),f.jsxs("div",{className:"relative flex items-center py-2",children:[f.jsx("div",{className:"flex-grow border-t border-surface-high"}),f.jsx("span",{className:"flex-shrink-0 mx-4 text-[0.6875rem] text-muted uppercase tracking-widest font-medium",children:"OR"}),f.jsx("div",{className:"flex-grow border-t border-surface-high"})]}),f.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[f.jsxs(Kt,{type:"button",variant:"secondary",onClick:()=>i("/rooms"),className:"flex flex-col items-center justify-center gap-2 py-4 h-auto",children:[f.jsx(UE,{className:"w-5 h-5"}),f.jsx("span",{className:"text-xs",children:"Record Meeting"})]}),f.jsxs(Kt,{type:"button",variant:"secondary",onClick:()=>i("/transcriptions"),className:"flex flex-col items-center justify-center gap-2 py-4 h-auto border-outline-variant/40 text-on-surface hover:bg-surface-mid",children:[f.jsx(w_,{className:"w-5 h-5"}),f.jsx("span",{className:"text-xs",children:"Upload File"})]})]})]})})})]}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8 lg:gap-12",children:[f.jsxs("div",{className:"relative h-[320px] rounded-md overflow-hidden group",children:[f.jsx("img",{src:"https://images.unsplash.com/photo-1507842217343-583bb7270b66?q=80&w=2400&auto=format&fit=crop",alt:"Library aesthetic",className:"absolute inset-0 w-full h-full object-cover grayscale-[30%] group-hover:scale-105 transition-transform duration-700",referrerPolicy:"no-referrer"}),f.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent"}),f.jsxs("div",{className:"absolute bottom-0 left-0 p-8 space-y-2",children:[f.jsx("h3",{className:"font-serif italic text-2xl text-white",children:"The Editorial standard for your audio."}),f.jsx("p",{className:"text-white/80 text-sm max-w-[280px] leading-relaxed",children:"Our curation engine doesn't just transcribe; it captures the essence, tone, and authority of your spoken words."})]})]}),f.jsxs("div",{className:"bg-gradient-primary rounded-md p-10 flex flex-col justify-center relative overflow-hidden",children:[f.jsx("div",{className:"absolute -right-12 -top-12 w-64 h-64 bg-white/10 rounded-full blur-3xl pointer-events-none"}),f.jsxs("div",{className:"relative z-10 space-y-6",children:[f.jsx(Ug,{className:"w-10 h-10 text-white"}),f.jsxs("div",{className:"space-y-3",children:[f.jsx("h3",{className:"font-serif font-bold text-3xl text-white",children:"AI Synthesis"}),f.jsx("p",{className:"text-white/85 text-[0.9375rem] leading-relaxed max-w-[320px]",children:"Turn hours of live discussion into a structured archive of actionable insight and creative sparks."})]})]})]})]})]})}),f.jsxs("footer",{className:"bg-surface-low py-8 px-8 flex flex-col md:flex-row justify-between items-center gap-4 border-t border-outline-variant/20",children:[f.jsx("span",{className:"text-[0.6875rem] font-medium text-on-surface-variant uppercase tracking-widest",children:"© 2024 Reflector Archive"}),f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx("a",{href:"#",className:"text-sm text-on-surface-variant hover:text-primary transition-colors",children:"Learn more"}),f.jsx("a",{href:"#",className:"text-sm text-on-surface-variant hover:text-primary transition-colors",children:"Privacy policy"})]})]})]})}const xl=Le.forwardRef(({className:l="",label:i,...s},u)=>f.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[f.jsx("input",{type:"checkbox",ref:u,className:`appearance-none w-4 h-4 rounded-[4px] border-[1.5px] border-outline-variant/60 checked:bg-primary checked:border-primary transition-colors relative
|
||
checked:after:content-[''] checked:after:absolute checked:after:left-[4px] checked:after:top-[1px] checked:after:w-[5px] checked:after:h-[9px] checked:after:border-r-2 checked:after:border-b-2 checked:after:border-white checked:after:rotate-45
|
||
${l}`,...s}),i&&f.jsx("span",{className:"font-sans text-sm text-on-surface",children:i})]}));xl.displayName="Checkbox";function cN({isOpen:l,onClose:i}){const[s,u]=A.useState("general"),o=sE(),{register:d,handleSubmit:m,watch:p,reset:x,formState:{errors:v}}=nr({defaultValues:{platform:"Zulip",recordingType:"Audio only",isShared:!0,isLocked:!1,skipConsent:!1,enableIcs:!1,emailTranscript:!1,postToZulip:!1,zulipStream:"",zulipTopic:"",webhookUrl:""}}),b=p("postToZulip"),g=p("webhookUrl"),N=()=>{x(),u("general"),i()},T=U=>{o.mutate({body:{name:U.name||"Untitled Room",recording_type:U.recordingType==="Cloud (Auto)"?"cloud":U.recordingType==="Local only"?"local":"none",is_locked:U.isLocked,zulip_auto_post:U.postToZulip,zulip_stream:U.zulipStream||"",zulip_topic:U.zulipTopic||"",skip_consent:U.skipConsent,webhook_url:U.webhookUrl||"",webhook_secret:"",room_mode:"normal",recording_trigger:"auto",is_shared:U.isShared,ics_enabled:U.enableIcs,ics_fetch_interval:300,platform:U.platform==="daily"?"daily":"whereby"}},{onSuccess:()=>N()})};if(!l)return null;const B=[{id:"general",label:"General"},{id:"calendar",label:"Calendar"},{id:"sharing",label:"Sharing"},{id:"webhooks",label:"WebHooks"}];return f.jsx("div",{className:"fixed inset-0 bg-[#1b1c14]/45 z-50 flex items-center justify-center p-4 backdrop-blur-sm",children:f.jsxs("div",{className:"bg-white rounded-[12px] shadow-[0_16px_48px_rgba(27,28,20,0.12)] w-[420px] max-w-full flex flex-col overflow-hidden animate-in fade-in zoom-in-95 duration-200",children:[f.jsxs("div",{className:"pt-6 px-6 pb-0 flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(WE,{className:"w-5 h-5 text-primary fill-primary/20"}),f.jsx("h2",{className:"font-serif text-lg font-bold text-on-surface",children:"New Room"})]}),f.jsx("button",{onClick:N,className:"text-muted hover:text-primary hover:bg-primary/10 p-1.5 rounded-full transition-colors",children:f.jsx(z_,{className:"w-5 h-5"})})]}),f.jsxs("div",{className:"px-6 mt-4 flex items-center gap-6 relative",children:[f.jsx("div",{className:"absolute bottom-0 left-0 right-0 h-[2px] bg-surface-high"}),B.map(U=>f.jsx("button",{type:"button",onClick:()=>u(U.id),className:`pb-3 font-sans text-sm transition-colors relative z-10 ${s===U.id?"text-primary font-semibold border-b-[2.5px] border-primary":"text-muted font-medium hover:text-on-surface-variant"}`,children:U.label},U.id))]}),f.jsx("div",{className:"p-5 px-6 max-h-[60vh] overflow-y-auto",children:f.jsxs("form",{id:"add-room-form",onSubmit:m(T),className:"space-y-6",children:[s==="general"&&f.jsxs("div",{className:"space-y-5 animate-in fade-in duration-300",children:[f.jsxs("div",{children:[f.jsx("label",{className:"font-sans text-[0.75rem] font-bold uppercase tracking-widest text-muted mb-1.5 block",children:"Room Name"}),f.jsx(Hu,{...d("name",{required:!0}),placeholder:"e.g. Editorial Sync",className:"w-full"})]}),f.jsxs("div",{children:[f.jsx("label",{className:"font-sans text-[0.75rem] font-bold uppercase tracking-widest text-muted mb-1.5 block",children:"Platform"}),f.jsxs(Ni,{...d("platform"),className:"w-full",children:[f.jsx("option",{value:"Zulip",children:"Zulip"}),f.jsx("option",{value:"Slack",children:"Slack"}),f.jsx("option",{value:"Teams",children:"Microsoft Teams"}),f.jsx("option",{value:"Google Meet",children:"Google Meet"})]})]}),f.jsxs("div",{children:[f.jsxs("label",{className:"font-sans text-[0.75rem] font-bold uppercase tracking-widest text-muted mb-1.5 flex items-center gap-1.5",children:["Recording Type",f.jsx(PE,{className:"w-3.5 h-3.5 text-muted hover:text-primary transition-colors cursor-help"})]}),f.jsxs(Ni,{...d("recordingType"),className:"w-full",children:[f.jsx("option",{value:"Audio only",children:"Audio only"}),f.jsx("option",{value:"Cloud (Auto)",children:"Cloud (Auto)"}),f.jsx("option",{value:"Local only",children:"Local only"})]})]}),f.jsxs("div",{className:"space-y-3 pt-2",children:[f.jsx(xl,{...d("isLocked"),label:"Locked room (Require password)"}),f.jsx(xl,{...d("isShared"),label:"Shared room (Public archive)"}),f.jsx(xl,{...d("skipConsent"),label:"Skip consent checkbox"})]}),f.jsxs("div",{className:"bg-surface-mid rounded-lg p-3 flex gap-3 mt-6",children:[f.jsx("div",{className:"w-12 h-12 rounded bg-surface-high shrink-0 overflow-hidden",children:f.jsx("img",{src:"https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&q=80&w=100&h=100",alt:"Library",className:"w-full h-full object-cover opacity-80 mix-blend-multiply"})}),f.jsxs("div",{className:"flex flex-col gap-1",children:[f.jsx("span",{className:"font-sans text-[0.6875rem] font-bold uppercase tracking-widest text-primary",children:"Curator's Note"}),f.jsx("p",{className:"font-serif italic text-sm text-on-surface-variant leading-snug",children:'"Rooms represent the archival heart of your editorial cycle. Configure with care."'})]})]})]}),s==="calendar"&&f.jsxs("div",{className:"space-y-2 animate-in fade-in duration-300",children:[f.jsx(xl,{...d("enableIcs"),label:"Enable ICS calendar sync"}),f.jsx("p",{className:"font-sans text-sm text-muted ml-6",children:"When enabled, a calendar feed URL will be generated for this room."})]}),s==="sharing"&&f.jsxs("div",{className:"space-y-4 animate-in fade-in duration-300",children:[f.jsx(xl,{...d("emailTranscript"),label:"Email me transcript when processed"}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(xl,{...d("postToZulip"),label:"Automatically post transcription to Zulip"}),f.jsx("div",{className:`overflow-hidden transition-all duration-300 ${b?"max-h-48 opacity-100 mt-4":"max-h-0 opacity-0"}`,children:f.jsxs("div",{className:"pl-6 space-y-4 border-l-2 border-surface-high ml-2 py-1",children:[f.jsxs("div",{children:[f.jsx("label",{className:"font-sans text-[0.75rem] font-bold uppercase tracking-widest text-muted mb-1.5 block",children:"Zulip stream"}),f.jsxs(Ni,{...d("zulipStream"),disabled:!b,className:`w-full ${b?"":"opacity-45 cursor-not-allowed"}`,children:[f.jsx("option",{value:"",children:"Select stream..."}),f.jsx("option",{value:"#editorial-general",children:"#editorial-general"}),f.jsx("option",{value:"#curation-desk",children:"#curation-desk"})]})]}),f.jsxs("div",{children:[f.jsx("label",{className:"font-sans text-[0.75rem] font-bold uppercase tracking-widest text-muted mb-1.5 block",children:"Zulip topic"}),f.jsxs(Ni,{...d("zulipTopic"),disabled:!b,className:`w-full ${b?"":"opacity-45 cursor-not-allowed"}`,children:[f.jsx("option",{value:"",children:"Select topic..."}),f.jsx("option",{value:"Daily Sync",children:"Daily Sync"}),f.jsx("option",{value:"Archive Review",children:"Archive Review"})]})]})]})})]})]}),s==="webhooks"&&f.jsxs("div",{className:"space-y-2 animate-in fade-in duration-300",children:[f.jsx("label",{className:"font-sans text-[0.75rem] font-bold uppercase tracking-widest text-muted mb-1.5 block",children:"Webhook URL"}),f.jsxs("div",{className:"relative",children:[f.jsx("div",{className:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none",children:f.jsx(Dg,{className:"w-4 h-4 text-muted"})}),f.jsx(Hu,{...d("webhookUrl",{pattern:{value:/^https?:\/\/.+/,message:"Must be a valid URL starting with http:// or https://"}}),placeholder:"https://example.com/webhook",className:`w-full pl-9 pr-9 ${v.webhookUrl?"border-primary focus:ring-primary/15":g&&!v.webhookUrl?"border-[#4caf79] focus:ring-[#4caf79]/15":""}`}),g&&!v.webhookUrl&&f.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:f.jsx(DE,{className:"w-4 h-4 text-[#4caf79]"})}),v.webhookUrl&&f.jsx("div",{className:"absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none",children:f.jsx(OE,{className:"w-4 h-4 text-primary"})})]}),v.webhookUrl&&f.jsx("p",{className:"font-sans text-[0.75rem] text-primary mt-1.5",children:v.webhookUrl.message}),f.jsx("p",{className:"font-sans text-sm text-muted mt-2",children:"Optional URL to receive a POST notification when a transcript is ready."})]})]})}),f.jsxs("div",{className:"px-6 py-4 bg-surface-low rounded-b-[12px] flex items-center justify-between border-t border-outline-variant/10",children:[f.jsx(Kt,{variant:"secondary",onClick:N,className:"border-[1.5px] border-[#C8C8BE] text-on-surface-variant hover:bg-surface-high",children:"Cancel"}),f.jsx(Kt,{variant:"primary",type:"submit",form:"add-room-form",children:"Save Room"})]})]})})}function oN(){const{data:l,isLoading:i,isError:s}=iE(),u=rE();In();const[o,d]=A.useState(!1),[m,p]=A.useState("my"),x=Dl(),v=(l==null?void 0:l.items)??[],b=v;return f.jsxs("div",{className:"flex-1 bg-surface flex flex-col font-sans text-on-surface selection:bg-primary-fixed",children:[f.jsxs("main",{className:"flex-1 p-8 md:p-12 max-w-6xl w-full space-y-10",children:[f.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[f.jsx("h1",{className:"font-serif text-[1.75rem] font-bold text-on-surface",children:"Rooms"}),f.jsxs(Kt,{variant:"primary",className:"flex items-center gap-2 self-start sm:self-auto",onClick:()=>d(!0),children:[f.jsx(sv,{className:"w-4 h-4"}),"Add Room"]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{onClick:()=>p("my"),className:`px-4 py-1.5 rounded-sm font-sans text-sm font-semibold transition-colors ${m==="my"?"bg-primary text-white":"bg-surface-mid text-on-surface-variant hover:bg-surface-high"}`,children:"My Rooms"}),f.jsx("button",{onClick:()=>p("shared"),className:`px-4 py-1.5 rounded-sm font-sans text-sm font-semibold transition-colors ${m==="shared"?"bg-primary text-white":"bg-surface-mid text-on-surface-variant hover:bg-surface-high"}`,children:"Shared Rooms"})]}),f.jsx("div",{className:"bg-surface-highest rounded-md shadow-card overflow-hidden",children:i?f.jsxs("div",{className:"p-16 flex flex-col items-center justify-center",children:[f.jsx("div",{className:"w-8 h-8 border-2 border-primary/30 border-t-primary rounded-full animate-spin mb-4"}),f.jsx("p",{className:"text-sm text-muted",children:"Loading rooms..."})]}):s?f.jsxs("div",{className:"p-16 flex flex-col items-center justify-center text-center",children:[f.jsx(Uu,{className:"w-10 h-10 text-red-300 mb-4",strokeWidth:1.5}),f.jsx("p",{className:"text-sm text-red-600",children:"Failed to load rooms. Please try again."})]}):b.length===0?f.jsxs("div",{className:"p-16 flex flex-col items-center justify-center text-center border border-dashed border-outline-variant/40 rounded-md m-4",children:[f.jsx(Uu,{className:"w-10 h-10 text-outline-variant mb-4",strokeWidth:1.5}),f.jsx("p",{className:"font-serif italic text-on-surface-variant mb-4",children:m==="my"?"You haven't created any rooms yet.":"No shared rooms available."}),m==="my"&&f.jsxs(Kt,{variant:"tertiary",className:"flex items-center gap-2",onClick:()=>d(!0),children:[f.jsx(sv,{className:"w-4 h-4"}),"Create your first room"]})]}):f.jsx("div",{className:"overflow-x-auto",children:f.jsxs("table",{className:"w-full text-left border-collapse",children:[f.jsx("thead",{children:f.jsxs("tr",{className:"border-b border-outline-variant/20",children:[f.jsx("th",{className:"px-6 py-4 font-sans text-[0.75rem] font-semibold uppercase tracking-wider text-muted",children:"Room Name"}),f.jsx("th",{className:"px-6 py-4 font-sans text-[0.75rem] font-semibold uppercase tracking-wider text-muted",children:"Meeting Status"}),f.jsx("th",{className:"px-6 py-4 font-sans text-[0.75rem] font-semibold uppercase tracking-wider text-muted",children:"Zulip Stream"}),f.jsx("th",{className:"px-6 py-4 font-sans text-[0.75rem] font-semibold uppercase tracking-wider text-muted",children:"Size"}),f.jsx("th",{className:"px-6 py-4 font-sans text-[0.75rem] font-semibold uppercase tracking-wider text-muted",children:"Recording"}),f.jsx("th",{className:"px-6 py-4 font-sans text-[0.75rem] font-semibold uppercase tracking-wider text-muted text-right",children:"Actions"})]})}),f.jsx("tbody",{className:"divide-y divide-transparent",children:b.map(g=>f.jsxs("tr",{className:"group hover:bg-surface-low transition-colors",children:[f.jsx("td",{className:"px-6 py-3.5",children:f.jsx("span",{onClick:()=>x("/transcriptions"),className:"font-serif text-base font-semibold text-on-surface group-hover:text-primary transition-colors cursor-pointer",children:g.name})}),f.jsx("td",{className:"px-6 py-3.5",children:f.jsx("span",{className:"font-sans text-[0.8125rem] text-muted",children:"No meetings"})}),f.jsx("td",{className:"px-6 py-3.5",children:f.jsx("span",{className:"font-sans text-[0.8125rem] text-on-surface-variant",children:g.zulip_stream||"—"})}),f.jsx("td",{className:"px-6 py-3.5",children:f.jsx("span",{className:"font-sans text-[0.8125rem] text-on-surface-variant",children:g.room_mode??"—"})}),f.jsx("td",{className:"px-6 py-3.5",children:f.jsx("span",{className:"inline-block bg-surface-mid px-2.5 py-0.5 rounded-sm font-sans text-[0.6875rem] font-medium text-on-surface-variant",children:g.recording_type||"none"})}),f.jsx("td",{className:"px-6 py-3.5 text-right",children:f.jsxs("div",{className:"flex items-center justify-end gap-2 opacity-0 group-hover:opacity-100 transition-opacity",children:[f.jsx("button",{className:"p-1.5 text-muted hover:text-primary hover:bg-primary/5 rounded-sm transition-colors",children:f.jsx(Dg,{className:"w-4 h-4"})}),f.jsx("button",{className:"p-1.5 text-muted hover:text-primary hover:bg-primary/5 rounded-sm transition-colors",onClick:N=>{N.stopPropagation(),confirm("Delete this room?")&&u.mutate({params:{path:{room_id:g.id}}})},children:f.jsx(pd,{className:"w-4 h-4"})})]})})]},g.id))})]})})}),f.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[f.jsxs(qu,{className:"md:col-span-2 flex flex-col justify-center relative overflow-hidden group",children:[f.jsx("div",{className:"absolute -right-8 -top-8 opacity-5 group-hover:opacity-10 transition-opacity duration-500 pointer-events-none",children:f.jsx(M_,{className:"w-48 h-48 text-on-surface"})}),f.jsxs("div",{className:"relative z-10 flex items-start gap-4",children:[f.jsx("div",{className:"mt-1",children:f.jsx(VE,{className:"w-5 h-5 text-primary"})}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("h3",{className:"font-serif text-[1.25rem] font-semibold text-on-surface",children:"Archive Maintenance Notice"}),f.jsx("p",{className:"font-sans text-[0.8125rem] text-on-surface-variant leading-relaxed max-w-md",children:"Scheduled maintenance for the recording servers will begin tonight at 2:00 AM PST. Room availability will not be affected, but cloud recording will be temporarily diverted to local archival buffers."})]})]})]}),f.jsxs(qu,{className:"border-t-4 border-t-primary flex flex-col justify-between",children:[f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{className:"font-sans text-[0.75rem] font-semibold uppercase tracking-wider text-on-surface",children:"Room Capacity"}),f.jsxs("div",{className:"space-y-2",children:[f.jsx("div",{className:"h-1.5 w-full bg-surface-mid rounded-sm overflow-hidden",children:f.jsx("div",{className:"h-full bg-gradient-primary rounded-sm",style:{width:`${v.length/10*100}%`}})}),f.jsxs("p",{className:"font-sans text-[0.8125rem] text-on-surface-variant",children:["You are currently using ",f.jsx("strong",{className:"text-on-surface font-semibold",children:v.length})," of your 10 allocated room slots."]})]})]}),f.jsx("div",{className:"mt-6 pt-4 border-t border-outline-variant/20",children:f.jsx("button",{className:"font-sans text-[0.75rem] font-bold text-primary hover:underline uppercase tracking-wider",children:"Upgrade Plan"})})]})]})]}),f.jsx(cN,{isOpen:o,onClose:()=>d(!1)})]})}function fN(){In();const l=Dl(),[i,s]=A.useState(""),[u,o]=A.useState(""),[d,m]=A.useState(0),p=20;fE();const{data:x,isLoading:v,isError:b}=cE(u,{limit:p,offset:d*p}),{register:g,watch:N}=nr({defaultValues:{search:""}}),T=N("search");Le.useEffect(()=>{const Q=setTimeout(()=>{o(T),m(0)},300);return()=>clearTimeout(Q)},[T]);const B=(x==null?void 0:x.results)??[],[U,H]=A.useState("all"),G=[{id:"all",label:"All Time"},{id:"week",label:"This Week"},{id:"shared",label:"Shared With Me"},{id:"drafts",label:"Drafts"}];return f.jsxs("div",{className:"flex-1 bg-surface flex flex-col font-sans text-on-surface selection:bg-primary-fixed",children:[f.jsxs("main",{className:"flex-1 p-8 md:p-12 max-w-5xl mx-auto w-full",children:[f.jsxs("div",{className:"flex flex-col md:flex-row md:items-end justify-between gap-6 mb-8",children:[f.jsxs("div",{className:"space-y-1",children:[f.jsx("h1",{className:"font-serif text-[2rem] font-bold text-on-surface leading-tight",children:"Transcriptions"}),f.jsx("p",{className:"font-sans text-sm text-muted",children:"Review, add and archive your curated recordings."})]}),f.jsxs("div",{className:"flex items-center",children:[f.jsxs("div",{className:"relative group",children:[f.jsx(zg,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted group-focus-within:text-primary transition-colors"}),f.jsx("input",{type:"text",...g("search"),className:"pl-9 pr-4 py-2 w-64 md:w-80 bg-surface-high border-none rounded-l-md focus:outline-none focus:ring-1 focus:ring-primary transition-all text-sm text-on-surface placeholder:text-muted",placeholder:"Search transcriptions..."})]}),f.jsx(Kt,{variant:"primary",className:"rounded-l-none py-2 px-5",children:"Search"})]})]}),f.jsx("div",{className:"flex items-center gap-2 mb-8 overflow-x-auto pb-2 scrollbar-hide",children:G.map(Q=>f.jsx("button",{onClick:()=>H(Q.id),className:`px-3.5 py-1.5 rounded-md font-sans text-xs font-semibold whitespace-nowrap transition-colors ${U===Q.id?"bg-primary text-white":"bg-surface-high text-on-surface-variant hover:bg-surface-highest"}`,children:Q.label},Q.id))}),f.jsx("div",{className:"space-y-1",children:v?f.jsxs("div",{className:"p-16 flex flex-col items-center justify-center",children:[f.jsx("div",{className:"w-8 h-8 border-2 border-primary/30 border-t-primary rounded-full animate-spin mb-4"}),f.jsx("p",{className:"text-sm text-muted",children:"Loading transcriptions..."})]}):b?f.jsxs("div",{className:"p-16 flex flex-col items-center justify-center text-center",children:[f.jsx(Uu,{className:"w-10 h-10 text-red-300 mb-4",strokeWidth:1.5}),f.jsx("p",{className:"text-sm text-red-600",children:"Failed to load transcriptions."})]}):B.length===0?f.jsxs("div",{className:"p-16 flex flex-col items-center justify-center text-center",children:[f.jsx(Uu,{className:"w-10 h-10 text-outline-variant mb-4",strokeWidth:1.5}),f.jsx("p",{className:"font-serif italic text-on-surface-variant",children:"No transcriptions found."})]}):B.map(Q=>f.jsxs("div",{onClick:()=>l(`/transcriptions/${Q.id}`),className:"group flex items-center p-4 -mx-4 rounded-lg hover:bg-surface-low transition-colors cursor-pointer",children:[f.jsx("div",{className:"flex items-center justify-center w-8 shrink-0",children:f.jsx("div",{className:`w-2.5 h-2.5 rounded-full ${Q.status==="ended"?"bg-primary":Q.status==="error"?"bg-red-400":"bg-muted"}`})}),f.jsxs("div",{className:"flex-1 px-3 min-w-0",children:[f.jsx("h4",{className:"font-serif text-[1.0625rem] font-semibold text-on-surface group-hover:text-primary transition-colors truncate mb-1",children:Q.title||"Untitled Transcript"}),f.jsxs("div",{className:"flex items-center gap-3 text-[0.75rem] text-muted font-sans",children:[f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(_E,{className:"w-3.5 h-3.5"})," ",Q.created_at?new Date(Q.created_at).toLocaleDateString():"—"]}),f.jsx("span",{className:"text-outline-variant/60",children:"•"}),f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(A_,{className:"w-3.5 h-3.5"})," ",Q.room_name??"Personal"]}),f.jsx("span",{className:"text-outline-variant/60",children:"•"}),f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx(HE,{className:"w-3.5 h-3.5"})," ",Q.duration?`${Math.round(Q.duration/60)}m`:"—"]}),f.jsx("span",{className:"text-outline-variant/60",children:"•"}),f.jsx("span",{className:"bg-surface-high px-2 py-0.5 rounded-md text-on-surface-variant font-medium",children:Q.source_kind||"upload"})]})]}),f.jsxs("div",{className:"flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity shrink-0",children:[f.jsx("button",{onClick:K=>K.stopPropagation(),className:"p-2 text-muted hover:text-primary hover:bg-primary/5 rounded-md transition-colors",children:f.jsx(Mg,{className:"w-4 h-4"})}),f.jsx("button",{onClick:K=>K.stopPropagation(),className:"p-2 text-muted hover:text-primary hover:bg-primary/5 rounded-md transition-colors",children:f.jsx(pd,{className:"w-4 h-4"})})]})]},Q.id))}),f.jsxs("div",{className:"mt-12 flex items-center justify-center gap-2",children:[f.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded border border-outline-variant/40 text-muted hover:bg-surface-high transition-colors",children:f.jsx("span",{className:"text-lg leading-none mb-0.5",children:"‹"})}),f.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded bg-primary text-white font-sans text-sm font-bold",children:"1"}),f.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded border border-outline-variant/40 text-on-surface-variant hover:bg-surface-high transition-colors font-sans text-sm font-medium",children:"2"}),f.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded border border-outline-variant/40 text-on-surface-variant hover:bg-surface-high transition-colors font-sans text-sm font-medium",children:"3"}),f.jsx("span",{className:"px-1 text-muted text-sm",children:"..."}),f.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded border border-outline-variant/40 text-on-surface-variant hover:bg-surface-high transition-colors font-sans text-sm font-medium",children:"12"}),f.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded border border-outline-variant/40 text-muted hover:bg-surface-high transition-colors",children:f.jsx("span",{className:"text-lg leading-none mb-0.5",children:"›"})})]})]}),f.jsxs("footer",{className:"w-full py-8 px-8 flex flex-col md:flex-row justify-between items-center gap-4 bg-surface-low border-t border-outline-variant/20 mt-auto",children:[f.jsxs("div",{className:"flex items-center gap-6",children:[f.jsx("span",{className:"text-muted font-sans text-[0.8125rem]",children:"© 2024 Reflector Archive"}),f.jsxs("div",{className:"flex gap-4",children:[f.jsx("a",{href:"#",className:"text-muted hover:text-primary text-[0.8125rem] transition-colors",children:"Learn more"}),f.jsx("a",{href:"#",className:"text-muted hover:text-primary text-[0.8125rem] transition-colors",children:"Privacy policy"})]})]}),f.jsxs("div",{className:"flex gap-5",children:[f.jsx("a",{href:"#",className:"text-muted hover:text-primary transition-colors",children:f.jsx(JE,{className:"w-4 h-4"})}),f.jsx("a",{href:"#",className:"text-muted hover:text-primary transition-colors",children:f.jsx(s_,{className:"w-4 h-4"})})]})]})]})}const dN=Kg()(l=>({user:null,isAuthenticated:!1,setAuth:i=>l({user:i,isAuthenticated:!0}),clearAuth:()=>l({user:null,isAuthenticated:!1})}));function hN(){const{user:l}=dN(),i=Dl(),{isPlaying:s,setPlaying:u,currentTime:o,activeChapterId:d,setActiveChapter:m}=Zg(),p=()=>u(!s),{register:x,watch:v}=nr({defaultValues:{transcriptSearch:""}}),[b,g]=A.useState({c1:!0}),N=U=>{g(H=>({...H,[U]:!H[U]}))},T=[{id:"c1",title:"Introduction & Agenda",time:"00:00",active:!0},{id:"c2",title:"Q3 Performance Review",time:"05:22",active:!1},{id:"c3",title:"Product Roadmap Updates",time:"18:45",active:!1},{id:"c4",title:"Marketing Strategy Alignment",time:"32:10",active:!1},{id:"c5",title:"Next Steps & Action Items",time:"48:55",active:!1}],B=[{id:"t1",speaker:"Sarah Jenkins",time:"00:00",text:"Alright, let's get started. Thanks everyone for joining the Q3 retrospective."},{id:"t2",speaker:"David Chen",time:"00:15",text:"Thanks Sarah. I think we have a lot of good ground to cover today, especially regarding the new product launch."},{id:"t3",speaker:"Sarah Jenkins",time:"00:28",text:"Exactly. Let's start by looking at the numbers from last month. As you can see in the report, we exceeded our targets by 15%."}];return f.jsxs("div",{className:"flex-1 min-h-0 bg-surface flex flex-col font-sans text-on-surface selection:bg-primary-fixed",children:[f.jsxs("div",{className:"w-full bg-[#1b1c14] px-6 py-3.5 flex flex-col gap-3 sticky top-0 z-20",children:[f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("button",{onClick:p,className:"w-10 h-10 rounded-full bg-primary/10 flex items-center justify-center text-primary hover:bg-primary/20 transition-colors shrink-0",children:s?f.jsx(rv,{className:"w-5 h-5 fill-current"}):f.jsx(uv,{className:"w-5 h-5 fill-current ml-0.5"})}),f.jsxs("div",{className:"flex-1 flex items-center gap-3",children:[f.jsx("span",{className:"text-xs font-mono text-muted shrink-0",children:"18:45"}),f.jsx("div",{className:"flex-1 h-8 flex items-center gap-0.5",children:[...Array(60)].map((U,H)=>f.jsx("div",{className:`flex-1 rounded-full ${H<20?"bg-primary":"bg-[#3a3b30]"}`,style:{height:`${Math.max(20,Math.random()*100)}%`}},H))}),f.jsx("span",{className:"text-xs font-mono text-muted shrink-0",children:"55:00"})]})]}),f.jsxs("div",{className:"flex items-center gap-2 pl-14",children:[f.jsx("span",{className:"px-2.5 py-0.5 rounded-full bg-primary/10 text-primary text-[0.6875rem] font-bold uppercase tracking-wider",children:"Sarah J."}),f.jsx("span",{className:"px-2.5 py-0.5 rounded-full bg-surface-high/20 text-outline-variant text-[0.6875rem] font-bold uppercase tracking-wider",children:"David C."}),f.jsx("span",{className:"px-2.5 py-0.5 rounded-full bg-surface-high/20 text-outline-variant text-[0.6875rem] font-bold uppercase tracking-wider",children:"Elena M."})]})]}),f.jsxs("main",{className:"flex-1 flex flex-col lg:flex-row w-full max-w-[1600px] mx-auto overflow-hidden",children:[f.jsxs("div",{className:"flex-1 lg:w-[55%] flex flex-col border-r border-outline-variant/10 overflow-y-auto",children:[f.jsx("div",{className:"p-4 border-b border-outline-variant/10",children:f.jsxs("button",{onClick:()=>i("/transcriptions"),className:"flex items-center gap-2 text-muted hover:text-primary transition-colors text-sm font-medium",children:[f.jsx(TE,{className:"w-4 h-4"}),"Back to Archive"]})}),f.jsxs("div",{className:"w-full aspect-video bg-black relative group",children:[f.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:f.jsx("span",{className:"text-white/20 font-serif italic text-2xl",children:"Video Recording"})}),f.jsxs("div",{className:"absolute bottom-0 left-0 right-0 p-4 bg-gradient-to-t from-black/80 to-transparent opacity-0 group-hover:opacity-100 transition-opacity flex items-center justify-between",children:[f.jsxs("div",{className:"flex items-center gap-4 text-white",children:[f.jsx("button",{onClick:p,children:s?f.jsx(rv,{className:"w-5 h-5"}):f.jsx(uv,{className:"w-5 h-5"})}),f.jsx("button",{children:f.jsx(C_,{className:"w-5 h-5"})}),f.jsx("span",{className:"text-xs font-mono",children:"18:45 / 55:00"})]}),f.jsx("button",{className:"text-white",children:f.jsx(u_,{className:"w-5 h-5"})})]})]}),f.jsxs("div",{className:"p-8 md:p-10 max-w-3xl mx-auto w-full",children:[f.jsxs("div",{className:"flex items-start justify-between mb-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"font-serif text-3xl font-bold text-on-surface mb-2",children:"Q3 Strategy & Planning Sync"}),f.jsxs("p",{className:"text-sm text-muted flex items-center gap-2",children:[f.jsx("span",{children:"Oct 12, 2024"}),f.jsx("span",{children:"•"}),f.jsx("span",{children:"Editorial Strategy Room"})]})]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsxs(Kt,{variant:"secondary",className:"py-1.5 px-3",children:[f.jsx(S_,{className:"w-4 h-4 mr-2"})," Share"]}),f.jsxs(Kt,{variant:"secondary",className:"py-1.5 px-3",children:[f.jsx(Mg,{className:"w-4 h-4 mr-2"})," Export"]}),f.jsx("button",{className:"p-2 text-muted hover:text-primary transition-colors rounded-md hover:bg-surface-high",children:f.jsx(pd,{className:"w-5 h-5"})})]})]}),f.jsxs("section",{className:"mb-10 bg-surface-low p-6 rounded-xl border border-outline-variant/10 relative group",children:[f.jsx("button",{className:"absolute top-4 right-4 p-1.5 text-muted hover:text-primary opacity-0 group-hover:opacity-100 transition-all rounded-md hover:bg-surface-high",children:f.jsx(h_,{className:"w-4 h-4"})}),f.jsxs("h3",{className:"text-xs font-bold uppercase tracking-widest text-muted mb-3 flex items-center gap-2",children:[f.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-primary"})," Quick Recap"]}),f.jsx("p",{className:"font-serif text-lg text-on-surface leading-relaxed",children:"The team reviewed Q3 performance, noting a 15% overachievement in core metrics. Discussion then shifted to the upcoming product launch, with marketing and engineering aligning on the revised timeline for mid-November."})]}),f.jsxs("section",{children:[f.jsx("h3",{className:"text-xs font-bold uppercase tracking-widest text-muted mb-4",children:"Executive Summary"}),f.jsx("div",{className:"space-y-4 text-on-surface-variant text-[0.9375rem] leading-relaxed",children:f.jsxs("ul",{className:"list-disc pl-5 space-y-2 marker:text-primary",children:[f.jsxs("li",{children:[f.jsx("strong",{children:"Performance Review:"})," Sarah presented the Q3 numbers. All major KPIs were met or exceeded, particularly user engagement which saw a 22% bump after the last update."]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Roadmap Adjustments:"})," David highlighted potential delays in the mobile app rollout due to API constraint issues. The team agreed to a two-week buffer."]}),f.jsxs("li",{children:[f.jsx("strong",{children:"Marketing Sync:"}),' Elena outlined the go-to-market strategy for the new features, focusing heavily on the "Editorial Archive" positioning.']}),f.jsxs("li",{children:[f.jsx("strong",{children:"Action Items:"})," David to provide updated API documentation by Friday. Elena to finalize ad copy by next Tuesday."]})]})})]})]})]}),f.jsxs("div",{className:"flex-1 lg:w-[45%] flex flex-col bg-surface-low overflow-hidden",children:[f.jsxs("div",{className:"p-6 border-b border-outline-variant/10 bg-surface/50 backdrop-blur-sm sticky top-0 z-10",children:[f.jsxs("div",{className:"flex items-center justify-between mb-4",children:[f.jsx("h2",{className:"font-serif text-xl font-bold text-on-surface",children:"Transcript"}),f.jsx("div",{className:"flex items-center gap-2",children:f.jsx("span",{className:"text-xs font-medium text-muted bg-surface-high px-2 py-1 rounded",children:"Auto-scroll"})})]}),f.jsxs("div",{className:"relative",children:[f.jsx(zg,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-muted"}),f.jsx("input",{type:"text",...x("transcriptSearch"),className:"w-full pl-9 pr-4 py-2 bg-surface border border-outline-variant/20 rounded-lg focus:outline-none focus:border-primary focus:ring-1 focus:ring-primary transition-all text-sm text-on-surface placeholder:text-muted",placeholder:"Search in transcript..."})]})]}),f.jsx("div",{className:"flex-1 overflow-y-auto p-6 space-y-8",children:T.map(U=>f.jsxs("div",{className:"relative",children:[f.jsxs("div",{className:`flex items-center gap-3 mb-4 cursor-pointer group ${U.active?"text-primary":"text-on-surface-variant"}`,onClick:()=>N(U.id),children:[f.jsx("button",{className:`p-0.5 rounded-sm transition-colors ${U.active?"bg-primary/10":"hover:bg-surface-high"}`,children:b[U.id]?f.jsx(jE,{className:"w-4 h-4"}):f.jsx(RE,{className:"w-4 h-4"})}),f.jsx("span",{className:"font-mono text-xs font-medium",children:U.time}),f.jsx("h3",{className:"font-serif font-bold text-lg group-hover:text-primary transition-colors",children:U.title})]}),b[U.id]&&f.jsx("div",{className:"pl-9 space-y-6 relative before:absolute before:left-3.5 before:top-2 before:bottom-2 before:w-px before:bg-outline-variant/20",children:B.map(H=>f.jsxs("div",{className:"group relative",children:[H.id==="t2"&&f.jsx("div",{className:"absolute -left-9 top-1.5 w-1.5 h-1.5 rounded-full bg-primary ring-4 ring-primary/10"}),f.jsxs("div",{className:"flex items-baseline gap-3 mb-1",children:[f.jsx("span",{className:`text-xs font-bold uppercase tracking-wider ${H.speaker==="Sarah Jenkins"?"text-primary":"text-on-surface-variant"}`,children:H.speaker}),f.jsx("span",{className:"text-[0.6875rem] font-mono text-muted opacity-0 group-hover:opacity-100 transition-opacity cursor-pointer hover:text-primary",children:H.time})]}),f.jsx("p",{className:`text-[0.9375rem] leading-relaxed ${H.id==="t2"?"text-on-surface font-medium":"text-on-surface-variant"}`,children:H.text})]},H.id))})]},U.id))})]})]})]})}function mN(){const l=In();l.status==="authenticated"&&l.user;const[i,s]=A.useState([]),[u,o]=A.useState(!1),d=N=>{const T=Math.random().toString(36).substr(2,9);s(B=>[...B,{id:T,name:N,prefix:"rfl_"+T.slice(0,4),createdAt:new Date().toLocaleDateString(),lastUsed:null}])},m=N=>s(T=>T.filter(B=>B.id!==N)),{register:p,handleSubmit:x,reset:v,formState:{errors:b}}=nr(),g=N=>{d(N.keyName),v(),o(!1)};return f.jsx("div",{className:"flex-1 bg-surface flex flex-col font-sans text-on-surface selection:bg-primary-fixed",children:f.jsxs("main",{className:"flex-1 w-full max-w-[860px] mx-auto px-[24px] py-[40px]",children:[f.jsxs("div",{className:"mb-8",children:[f.jsx("h1",{className:"font-serif text-[2rem] font-bold text-[#1b1c14] leading-tight mb-1",children:"API Keys"}),f.jsx("p",{className:"font-sans text-[0.9375rem] text-[#a09a8e]",children:"Manage your API keys to authenticate with the Editorial Archive API. Keep these keys secure and never share them publicly."})]}),f.jsx("div",{className:"bg-[#FFFFFF] rounded-[12px] p-[20px] md:px-[24px] shadow-[0_4px_24px_rgba(27,28,20,0.06)] mb-8",children:u?f.jsxs("form",{onSubmit:x(g),className:"flex flex-col md:flex-row md:items-start gap-4",children:[f.jsxs("div",{className:"flex-1",children:[f.jsx("label",{className:"block font-sans text-[0.8125rem] font-bold text-[#1b1c14] mb-1.5 uppercase tracking-wider",children:"Key Name"}),f.jsx("input",{type:"text",...p("keyName",{required:!0,minLength:3}),placeholder:"e.g., Production Server",className:"w-full bg-[#f6f4e7] border border-outline-variant/20 rounded-[6px] px-3 py-2 text-[0.9375rem] text-[#1b1c14] focus:outline-none focus:ring-1 focus:ring-[#DC5A28] focus:border-[#DC5A28] transition-all",autoFocus:!0}),b.keyName&&f.jsx("p",{className:"text-[#ba1a1a] text-xs mt-1.5",children:"Name is required (min 3 characters)."})]}),f.jsxs("div",{className:"flex items-center gap-2 md:mt-[26px]",children:[f.jsx(Kt,{type:"button",variant:"secondary",onClick:()=>{o(!1),v()},children:"Cancel"}),f.jsx("button",{type:"submit",className:"bg-gradient-to-br from-[#a63500] to-[#c84c1a] text-white font-sans font-semibold text-[0.9375rem] px-[18px] py-[8px] rounded-[6px] hover:opacity-90 transition-opacity",children:"Generate Key"})]})]}):f.jsxs("div",{className:"flex flex-col md:flex-row md:items-center justify-between gap-4",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"font-serif text-[1.25rem] font-bold text-[#1b1c14] mb-1",children:"Create New API Key"}),f.jsx("p",{className:"font-sans text-[0.9375rem] text-[#5a5850]",children:"Generate a new secret token to access our archival endpoints."})]}),f.jsxs("button",{onClick:()=>o(!0),className:"shrink-0 bg-gradient-to-br from-[#a63500] to-[#c84c1a] text-white font-sans font-semibold text-[0.9375rem] px-[18px] py-[8px] rounded-[6px] hover:opacity-90 transition-opacity flex items-center gap-2",children:[f.jsx(p_,{className:"w-4 h-4"})," Create API Key"]})]})}),f.jsxs("div",{className:"mt-[32px]",children:[f.jsx("h2",{className:"font-serif text-[1.25rem] font-bold text-[#1b1c14] mb-4",children:"Your API Keys"}),i.length===0?f.jsxs("div",{className:"bg-[#f6f4e7] rounded-[12px] p-[48px] px-[24px] flex flex-col items-center justify-center text-center",children:[f.jsx(t_,{className:"w-10 h-10 text-[#C8C8BE] mb-4"}),f.jsx("p",{className:"font-serif italic text-[1rem] text-[#a09a8e] mb-2",children:"No API keys yet."}),f.jsx("p",{className:"font-sans text-[0.9375rem] text-[#a09a8e] max-w-md",children:"You haven't generated any keys yet. Create one above to start curating your archive via API."})]}):f.jsx("div",{className:"w-full overflow-x-auto",children:f.jsxs("table",{className:"w-full text-left border-collapse",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{className:"font-sans text-[0.75rem] font-bold text-[#a09a8e] uppercase tracking-wider pb-3 px-4 font-normal",children:"Name"}),f.jsx("th",{className:"font-sans text-[0.75rem] font-bold text-[#a09a8e] uppercase tracking-wider pb-3 px-4 font-normal",children:"Prefix"}),f.jsx("th",{className:"font-sans text-[0.75rem] font-bold text-[#a09a8e] uppercase tracking-wider pb-3 px-4 font-normal",children:"Created"}),f.jsx("th",{className:"font-sans text-[0.75rem] font-bold text-[#a09a8e] uppercase tracking-wider pb-3 px-4 font-normal",children:"Last Used"}),f.jsx("th",{className:"font-sans text-[0.75rem] font-bold text-[#a09a8e] uppercase tracking-wider pb-3 px-4 font-normal text-right",children:"Actions"})]})}),f.jsx("tbody",{children:i.map(N=>f.jsxs("tr",{className:"group hover:bg-[#f6f4e7] transition-colors border-t border-outline-variant/10",children:[f.jsx("td",{className:"py-4 px-4 font-sans text-[0.9375rem] font-semibold text-[#1b1c14]",children:N.name}),f.jsx("td",{className:"py-4 px-4",children:f.jsxs("span",{className:"font-mono text-[0.8125rem] text-[#5a5850] bg-[#f0eee1] rounded-[6px] px-[8px] py-[2px]",children:[N.prefix,"••••••••"]})}),f.jsx("td",{className:"py-4 px-4 font-sans text-[0.9375rem] text-[#5a5850]",children:N.createdAt}),f.jsx("td",{className:"py-4 px-4 font-sans text-[0.9375rem] text-[#5a5850]",children:N.lastUsed||"Never"}),f.jsx("td",{className:"py-4 px-4 text-right",children:f.jsx("button",{onClick:()=>m(N.id),className:"font-sans text-[0.9375rem] font-medium text-[#DC5A28] hover:underline transition-all",children:"Revoke"})})]},N.id))})]})})]}),f.jsxs("div",{className:"mt-[32px] grid grid-cols-1 md:grid-cols-2 gap-6",children:[f.jsxs("div",{className:"bg-[#FFFFFF] rounded-[12px] p-[24px] shadow-[0_4px_24px_rgba(27,28,20,0.04)] border border-outline-variant/10",children:[f.jsx(__,{className:"w-6 h-6 text-[#DC5A28] mb-4"}),f.jsx("h3",{className:"font-serif text-[1.25rem] font-bold text-[#1b1c14] mb-3",children:"Security Best Practices"}),f.jsxs("ul",{className:"space-y-2 font-sans text-[0.9375rem] text-[#5a5850]",children:[f.jsxs("li",{className:"flex gap-2",children:[f.jsx("span",{className:"text-[#DC5A28] mt-0.5",children:"•"}),f.jsx("span",{children:"Never commit your API keys to version control systems like GitHub."})]}),f.jsxs("li",{className:"flex gap-2",children:[f.jsx("span",{className:"text-[#DC5A28] mt-0.5",children:"•"}),f.jsx("span",{children:"Rotate your keys every 90 days to minimize risk of exposure."})]}),f.jsxs("li",{className:"flex gap-2",children:[f.jsx("span",{className:"text-[#DC5A28] mt-0.5",children:"•"}),f.jsx("span",{children:"Use environment variables to store your keys in production."})]})]})]}),f.jsxs("div",{className:"bg-[#FFFFFF] rounded-[12px] p-[24px] shadow-[0_4px_24px_rgba(27,28,20,0.04)] border border-outline-variant/10 flex flex-col",children:[f.jsx(BE,{className:"w-6 h-6 text-[#DC5A28] mb-4"}),f.jsx("h3",{className:"font-serif text-[1.25rem] font-bold text-[#1b1c14] mb-3",children:"API Documentation"}),f.jsx("p",{className:"font-sans text-[0.9375rem] text-[#5a5850] mb-6 flex-1",children:"Learn how to integrate the Editorial Archive into your workflow with our comprehensive guides."}),f.jsxs("a",{href:"#",className:"inline-flex items-center gap-1 font-sans text-[0.9375rem] font-semibold text-[#DC5A28] hover:text-[#a63500] transition-colors",children:["View Documentation ",f.jsx(Og,{className:"w-4 h-4"})]})]})]})]})})}const Fg=[{label:"Archive",href:"/transcriptions"},{label:"Rooms",href:"/rooms"},{label:"Analytics",href:"#"},{label:"Settings",href:"/settings"}];function yN(){const l=In();return l.status==="loading"?f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-surface",children:f.jsx("div",{className:"w-8 h-8 border-2 border-primary/30 border-t-primary rounded-full animate-spin"})}):l.status==="authenticated"?f.jsx(nd,{}):f.jsx(lg,{to:"/",replace:!0})}function pN(){return f.jsxs("div",{className:"min-h-screen flex flex-col bg-surface",children:[f.jsx(kg,{links:Fg}),f.jsx("main",{className:"flex-1 flex flex-col",children:f.jsx(nd,{})})]})}function vN(){return f.jsxs("div",{className:"h-screen flex flex-col bg-surface overflow-hidden",children:[f.jsx(kg,{links:Fg}),f.jsx("div",{className:"flex flex-1 overflow-hidden",children:f.jsx("main",{className:"flex-1 overflow-y-auto flex flex-col",children:f.jsx(nd,{})})})]})}function gN(){return f.jsx(v2,{client:D2,children:f.jsx($2,{children:f.jsx(W2,{children:f.jsx(nE,{children:f.jsx(hE,{children:f.jsx(l1,{fallback:f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-surface text-on-surface",children:f.jsx("p",{children:"Something went wrong. Please refresh the page."})}),children:f.jsxs(fS,{children:[f.jsx(xa,{path:"/",element:f.jsx(U_,{})}),f.jsxs(xa,{element:f.jsx(yN,{}),children:[f.jsx(xa,{element:f.jsx(pN,{}),children:f.jsx(xa,{path:"/welcome",element:f.jsx(uN,{})})}),f.jsxs(xa,{element:f.jsx(vN,{}),children:[f.jsx(xa,{path:"/rooms",element:f.jsx(oN,{})}),f.jsx(xa,{path:"/transcriptions",element:f.jsx(fN,{})}),f.jsx(xa,{path:"/transcriptions/:id",element:f.jsx(hN,{})}),f.jsx(xa,{path:"/settings",element:f.jsx(mN,{})})]})]}),f.jsx(xa,{path:"*",element:f.jsx(lg,{to:"/",replace:!0})})]})})})})})})})}d1.createRoot(document.getElementById("root")).render(f.jsx(Le.StrictMode,{children:f.jsx(US,{children:f.jsx(gN,{})})}));
|