@meetploy/emulator 1.27.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,359 +0,0 @@
1
- var z0=n=>{throw TypeError(n)};var fh=(n,a,r)=>a.has(n)||z0("Cannot "+r);var k=(n,a,r)=>(fh(n,a,"read from private field"),r?r.call(n):a.get(n)),be=(n,a,r)=>a.has(n)?z0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),se=(n,a,r,i)=>(fh(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),Re=(n,a,r)=>(fh(n,a,"access private method"),r);var Uu=(n,a,r,i)=>({set _(s){se(n,a,s,r)},get _(){return k(n,a,i)}});function pN(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(n,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function db(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var hh={exports:{}},$o={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var L0;function vN(){if(L0)return $o;L0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,s,c){var h=null;if(c!==void 0&&(h=""+c),s.key!==void 0&&(h=""+s.key),"key"in s){c={};for(var m in s)m!=="key"&&(c[m]=s[m])}else c=s;return s=c.ref,{$$typeof:n,type:i,key:h,ref:s!==void 0?s:null,props:c}}return $o.Fragment=a,$o.jsx=r,$o.jsxs=r,$o}var U0;function gN(){return U0||(U0=1,hh.exports=vN()),hh.exports}var u=gN(),Ai=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ur=typeof window>"u"||"Deno"in globalThis;function En(){}function yN(n,a){return typeof n=="function"?n(a):n}function Hh(n){return typeof n=="number"&&n>=0&&n!==1/0}function fb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function ui(n,a){return typeof n=="function"?n(a):n}function Ln(n,a){return typeof n=="function"?n(a):n}function H0(n,a){const{type:r="all",exact:i,fetchStatus:s,predicate:c,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==jm(h,a.options))return!1}else if(!es(a.queryKey,h))return!1}if(r!=="all"){const p=a.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||s&&s!==a.state.fetchStatus||c&&!c(a))}function q0(n,a){const{exact:r,status:i,predicate:s,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(r){if(cr(a.options.mutationKey)!==cr(c))return!1}else if(!es(a.options.mutationKey,c))return!1}return!(i&&a.state.status!==i||s&&!s(a))}function jm(n,a){return((a==null?void 0:a.queryKeyHashFn)||cr)(n)}function cr(n){return JSON.stringify(n,(a,r)=>qh(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function es(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>es(n[r],a[r])):!1}function hb(n,a){if(n===a)return n;const r=B0(n)&&B0(a);if(r||qh(n)&&qh(a)){const i=r?n:Object.keys(n),s=i.length,c=r?a:Object.keys(a),h=c.length,m=r?[]:{};let p=0;for(let g=0;g<h;g++){const y=r?g:c[g];(!r&&i.includes(y)||r)&&n[y]===void 0&&a[y]===void 0?(m[y]=void 0,p++):(m[y]=hb(n[y],a[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return s===h&&p===s?n:m}return a}function nc(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const r in n)if(n[r]!==a[r])return!1;return!0}function B0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function qh(n){if(!Q0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!Q0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Q0(n){return Object.prototype.toString.call(n)==="[object Object]"}function xN(n){return new Promise(a=>{setTimeout(a,n)})}function Bh(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?hb(n,a):a}function bN(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function wN(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var Em=Symbol();function mb(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===Em?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var tr,vl,hi,tb,SN=(tb=class extends Ai{constructor(){super();be(this,tr);be(this,vl);be(this,hi);se(this,hi,a=>{if(!ur&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,vl)||this.setEventListener(k(this,hi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,vl))==null||a.call(this),se(this,vl,void 0))}setEventListener(a){var r;se(this,hi,a),(r=k(this,vl))==null||r.call(this),se(this,vl,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){k(this,tr)!==a&&(se(this,tr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof k(this,tr)=="boolean"?k(this,tr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},tr=new WeakMap,vl=new WeakMap,hi=new WeakMap,tb),Nm=new SN,mi,gl,pi,nb,jN=(nb=class extends Ai{constructor(){super();be(this,mi,!0);be(this,gl);be(this,pi);se(this,pi,a=>{if(!ur&&window.addEventListener){const r=()=>a(!0),i=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){k(this,gl)||this.setEventListener(k(this,pi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,gl))==null||a.call(this),se(this,gl,void 0))}setEventListener(a){var r;se(this,pi,a),(r=k(this,gl))==null||r.call(this),se(this,gl,a(this.setOnline.bind(this)))}setOnline(a){k(this,mi)!==a&&(se(this,mi,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return k(this,mi)}},mi=new WeakMap,gl=new WeakMap,pi=new WeakMap,nb),ac=new jN;function Qh(){let n,a;const r=new Promise((s,c)=>{n=s,a=c});r.status="pending",r.catch(()=>{});function i(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{i({status:"fulfilled",value:s}),n(s)},r.reject=s=>{i({status:"rejected",reason:s}),a(s)},r}function EN(n){return Math.min(1e3*2**n,3e4)}function pb(n){return(n??"online")==="online"?ac.isOnline():!0}var vb=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function mh(n){return n instanceof vb}function gb(n){let a=!1,r=0,i=!1,s;const c=Qh(),h=S=>{var C;i||(w(new vb(S)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},g=()=>Nm.isFocused()&&(n.networkMode==="always"||ac.isOnline())&&n.canRun(),y=()=>pb(n.networkMode)&&n.canRun(),x=S=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,S),s==null||s(),c.resolve(S))},w=S=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,S),s==null||s(),c.reject(S))},j=()=>new Promise(S=>{var C;s=_=>{(i||g())&&S(_)},(C=n.onPause)==null||C.call(n)}).then(()=>{var S;s=void 0,i||(S=n.onContinue)==null||S.call(n)}),E=()=>{if(i)return;let S;const C=r===0?n.initialPromise:void 0;try{S=C??n.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(x).catch(_=>{var K;if(i)return;const T=n.retry??(ur?0:3),R=n.retryDelay??EN,D=typeof R=="function"?R(r,_):R,U=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,_);if(a||!U){w(_);return}r++,(K=n.onFail)==null||K.call(n,r,_),xN(D).then(()=>g()?void 0:j()).then(()=>{a?w(_):E()})})};return{promise:c,cancel:h,continue:()=>(s==null||s(),c),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?E():j().then(E),c)}}var NN=n=>setTimeout(n,0);function CN(){let n=[],a=0,r=m=>{m()},i=m=>{m()},s=NN;const c=m=>{a?n.push(m):s(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&s(()=>{i(()=>{m.forEach(p=>{r(p)})})})};return{batch:m=>{let p;a++;try{p=m()}finally{a--,a||h()}return p},batchCalls:m=>(...p)=>{c(()=>{m(...p)})},schedule:c,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{s=m}}}var bt=CN(),nr,ab,yb=(ab=class{constructor(){be(this,nr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hh(this.gcTime)&&se(this,nr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ur?1/0:300*1e3))}clearGcTimeout(){k(this,nr)&&(clearTimeout(k(this,nr)),se(this,nr,void 0))}},nr=new WeakMap,ab),vi,gi,jn,ar,Lt,is,lr,On,_a,lb,_N=(lb=class extends yb{constructor(a){super();be(this,On);be(this,vi);be(this,gi);be(this,jn);be(this,ar);be(this,Lt);be(this,is);be(this,lr);se(this,lr,!1),se(this,is,a.defaultOptions),this.setOptions(a.options),this.observers=[],se(this,ar,a.client),se(this,jn,k(this,ar).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,se(this,vi,TN(this.options)),this.state=a.state??k(this,vi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=k(this,Lt))==null?void 0:a.promise}setOptions(a){this.options={...k(this,is),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,jn).remove(this)}setData(a,r){const i=Bh(this.state.data,a,this.options);return Re(this,On,_a).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a,r){Re(this,On,_a).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,s;const r=(i=k(this,Lt))==null?void 0:i.promise;return(s=k(this,Lt))==null||s.cancel(a),r?r.then(En).catch(En):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,vi))}isActive(){return this.observers.some(a=>Ln(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Em||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(a=0){return this.state.isInvalidated||this.state.data===void 0||!fb(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Lt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Lt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),k(this,jn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(k(this,Lt)&&(k(this,lr)?k(this,Lt).cancel({revert:!0}):k(this,Lt).cancelRetry()),this.scheduleGc()),k(this,jn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Re(this,On,_a).call(this,{type:"invalidate"})}fetch(a,r){var p,g,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,Lt))return k(this,Lt).continueRetry(),k(this,Lt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const x=this.observers.find(w=>w.options.queryFn);x&&this.setOptions(x.options)}const i=new AbortController,s=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(se(this,lr,!0),i.signal)})},c=()=>{const x=mb(this.options,r),w={client:k(this,ar),queryKey:this.queryKey,meta:this.meta};return s(w),se(this,lr,!1),this.options.persister?this.options.persister(x,w,this):x(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,ar),state:this.state,fetchFn:c};s(h),(p=this.options.behavior)==null||p.onFetch(h,this),se(this,gi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&Re(this,On,_a).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const m=x=>{var w,j,E,S;mh(x)&&x.silent||Re(this,On,_a).call(this,{type:"error",error:x}),mh(x)||((j=(w=k(this,jn).config).onError)==null||j.call(w,x,this),(S=(E=k(this,jn).config).onSettled)==null||S.call(E,this.state.data,x,this)),this.scheduleGc()};return se(this,Lt,gb({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:x=>{var w,j,E,S;if(x===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(x)}catch(C){m(C);return}(j=(w=k(this,jn).config).onSuccess)==null||j.call(w,x,this),(S=(E=k(this,jn).config).onSettled)==null||S.call(E,x,this.state.error,this),this.scheduleGc()},onError:m,onFail:(x,w)=>{Re(this,On,_a).call(this,{type:"failed",failureCount:x,error:w})},onPause:()=>{Re(this,On,_a).call(this,{type:"pause"})},onContinue:()=>{Re(this,On,_a).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),k(this,Lt).start()}},vi=new WeakMap,gi=new WeakMap,jn=new WeakMap,ar=new WeakMap,Lt=new WeakMap,is=new WeakMap,lr=new WeakMap,On=new WeakSet,_a=function(a){const r=i=>{switch(a.type){case"failed":return{...i,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...xb(i.data,this.options),fetchMeta:a.meta??null};case"success":return{...i,data:a.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=a.error;return mh(s)&&s.revert&&k(this,gi)?{...k(this,gi),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),k(this,jn).notify({query:this,type:"updated",action:a})})},lb);function xb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function TN(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,r=a!==void 0,i=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Zn,rb,RN=(rb=class extends Ai{constructor(a={}){super();be(this,Zn);this.config=a,se(this,Zn,new Map)}build(a,r,i){const s=r.queryKey,c=r.queryHash??jm(s,r);let h=this.get(c);return h||(h=new _N({client:a,queryKey:s,queryHash:c,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(s)}),this.add(h)),h}add(a){k(this,Zn).has(a.queryHash)||(k(this,Zn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=k(this,Zn).get(a.queryHash);r&&(a.destroy(),r===a&&k(this,Zn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){bt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return k(this,Zn).get(a)}getAll(){return[...k(this,Zn).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>H0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>H0(a,i)):r}notify(a){bt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Zn=new WeakMap,rb),Pn,Ht,rr,Jn,ml,ib,MN=(ib=class extends yb{constructor(a){super();be(this,Jn);be(this,Pn);be(this,Ht);be(this,rr);this.mutationId=a.mutationId,se(this,Ht,a.mutationCache),se(this,Pn,[]),this.state=a.state||bb(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){k(this,Pn).includes(a)||(k(this,Pn).push(a),this.clearGcTimeout(),k(this,Ht).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){se(this,Pn,k(this,Pn).filter(r=>r!==a)),this.scheduleGc(),k(this,Ht).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){k(this,Pn).length||(this.state.status==="pending"?this.scheduleGc():k(this,Ht).remove(this))}continue(){var a;return((a=k(this,rr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var c,h,m,p,g,y,x,w,j,E,S,C,_,T,R,D,U,K,q,H;const r=()=>{Re(this,Jn,ml).call(this,{type:"continue"})};se(this,rr,gb({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(Y,ee)=>{Re(this,Jn,ml).call(this,{type:"failed",failureCount:Y,error:ee})},onPause:()=>{Re(this,Jn,ml).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Ht).canRun(this)}));const i=this.state.status==="pending",s=!k(this,rr).canStart();try{if(i)r();else{Re(this,Jn,ml).call(this,{type:"pending",variables:a,isPaused:s}),await((h=(c=k(this,Ht).config).onMutate)==null?void 0:h.call(c,a,this));const ee=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,a));ee!==this.state.context&&Re(this,Jn,ml).call(this,{type:"pending",context:ee,variables:a,isPaused:s})}const Y=await k(this,rr).start();return await((y=(g=k(this,Ht).config).onSuccess)==null?void 0:y.call(g,Y,a,this.state.context,this)),await((w=(x=this.options).onSuccess)==null?void 0:w.call(x,Y,a,this.state.context)),await((E=(j=k(this,Ht).config).onSettled)==null?void 0:E.call(j,Y,null,this.state.variables,this.state.context,this)),await((C=(S=this.options).onSettled)==null?void 0:C.call(S,Y,null,a,this.state.context)),Re(this,Jn,ml).call(this,{type:"success",data:Y}),Y}catch(Y){try{throw await((T=(_=k(this,Ht).config).onError)==null?void 0:T.call(_,Y,a,this.state.context,this)),await((D=(R=this.options).onError)==null?void 0:D.call(R,Y,a,this.state.context)),await((K=(U=k(this,Ht).config).onSettled)==null?void 0:K.call(U,void 0,Y,this.state.variables,this.state.context,this)),await((H=(q=this.options).onSettled)==null?void 0:H.call(q,void 0,Y,a,this.state.context)),Y}finally{Re(this,Jn,ml).call(this,{type:"error",error:Y})}}finally{k(this,Ht).runNext(this)}}},Pn=new WeakMap,Ht=new WeakMap,rr=new WeakMap,Jn=new WeakSet,ml=function(a){const r=i=>{switch(a.type){case"failed":return{...i,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...i,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:a.error,failureCount:i.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),bt.batch(()=>{k(this,Pn).forEach(i=>{i.onMutationUpdate(a)}),k(this,Ht).notify({mutation:this,type:"updated",action:a})})},ib);function bb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ta,zn,os,ob,AN=(ob=class extends Ai{constructor(a={}){super();be(this,Ta);be(this,zn);be(this,os);this.config=a,se(this,Ta,new Set),se(this,zn,new Map),se(this,os,0)}build(a,r,i){const s=new MN({mutationCache:this,mutationId:++Uu(this,os)._,options:a.defaultMutationOptions(r),state:i});return this.add(s),s}add(a){k(this,Ta).add(a);const r=Hu(a);if(typeof r=="string"){const i=k(this,zn).get(r);i?i.push(a):k(this,zn).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(k(this,Ta).delete(a)){const r=Hu(a);if(typeof r=="string"){const i=k(this,zn).get(r);if(i)if(i.length>1){const s=i.indexOf(a);s!==-1&&i.splice(s,1)}else i[0]===a&&k(this,zn).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=Hu(a);if(typeof r=="string"){const i=k(this,zn).get(r),s=i==null?void 0:i.find(c=>c.state.status==="pending");return!s||s===a}else return!0}runNext(a){var i;const r=Hu(a);if(typeof r=="string"){const s=(i=k(this,zn).get(r))==null?void 0:i.find(c=>c!==a&&c.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){bt.batch(()=>{k(this,Ta).forEach(a=>{this.notify({type:"removed",mutation:a})}),k(this,Ta).clear(),k(this,zn).clear()})}getAll(){return Array.from(k(this,Ta))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>q0(r,i))}findAll(a={}){return this.getAll().filter(r=>q0(a,r))}notify(a){bt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return bt.batch(()=>Promise.all(a.map(r=>r.continue().catch(En))))}},Ta=new WeakMap,zn=new WeakMap,os=new WeakMap,ob);function Hu(n){var a;return(a=n.options.scope)==null?void 0:a.id}function $0(n){return{onFetch:(a,r)=>{var y,x,w,j,E;const i=a.options,s=(w=(x=(y=a.fetchOptions)==null?void 0:y.meta)==null?void 0:x.fetchMore)==null?void 0:w.direction,c=((j=a.state.data)==null?void 0:j.pages)||[],h=((E=a.state.data)==null?void 0:E.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let S=!1;const C=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(a.signal.aborted?S=!0:a.signal.addEventListener("abort",()=>{S=!0}),a.signal)})},_=mb(a.options,a.fetchOptions),T=async(R,D,U)=>{if(S)return Promise.reject();if(D==null&&R.pages.length)return Promise.resolve(R);const K={client:a.client,queryKey:a.queryKey,pageParam:D,direction:U?"backward":"forward",meta:a.options.meta};C(K);const q=await _(K),{maxPages:H}=a.options,Y=U?wN:bN;return{pages:Y(R.pages,q,H),pageParams:Y(R.pageParams,D,H)}};if(s&&c.length){const R=s==="backward",D=R?kN:Y0,U={pages:c,pageParams:h},K=D(i,U);m=await T(U,K,R)}else{const R=n??c.length;do{const D=p===0?h[0]??i.initialPageParam:Y0(i,m);if(p>0&&D==null)break;m=await T(m,D),p++}while(p<R)}return m};a.options.persister?a.fetchFn=()=>{var S,C;return(C=(S=a.options).persister)==null?void 0:C.call(S,g,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=g}}}function Y0(n,{pages:a,pageParams:r}){const i=a.length-1;return a.length>0?n.getNextPageParam(a[i],a,r[i],r):void 0}function kN(n,{pages:a,pageParams:r}){var i;return a.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,a[0],a,r[0],r):void 0}var ot,yl,xl,yi,xi,bl,bi,wi,sb,DN=(sb=class{constructor(n={}){be(this,ot);be(this,yl);be(this,xl);be(this,yi);be(this,xi);be(this,bl);be(this,bi);be(this,wi);se(this,ot,n.queryCache||new RN),se(this,yl,n.mutationCache||new AN),se(this,xl,n.defaultOptions||{}),se(this,yi,new Map),se(this,xi,new Map),se(this,bl,0)}mount(){Uu(this,bl)._++,k(this,bl)===1&&(se(this,bi,Nm.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onFocus())})),se(this,wi,ac.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onOnline())})))}unmount(){var n,a;Uu(this,bl)._--,k(this,bl)===0&&((n=k(this,bi))==null||n.call(this),se(this,bi,void 0),(a=k(this,wi))==null||a.call(this),se(this,wi,void 0))}isFetching(n){return k(this,ot).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return k(this,yl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=k(this,ot).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(ui(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return k(this,ot).findAll(n).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(n,a,r){const i=this.defaultQueryOptions({queryKey:n}),s=k(this,ot).get(i.queryHash),c=s==null?void 0:s.state.data,h=yN(a,c);if(h!==void 0)return k(this,ot).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return bt.batch(()=>k(this,ot).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=k(this,ot);bt.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=k(this,ot);return bt.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=bt.batch(()=>k(this,ot).findAll(n).map(s=>s.cancel(r)));return Promise.all(i).then(En).catch(En)}invalidateQueries(n,a={}){return bt.batch(()=>(k(this,ot).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},a)))}refetchQueries(n,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=bt.batch(()=>k(this,ot).findAll(n).filter(s=>!s.isDisabled()).map(s=>{let c=s.fetch(void 0,r);return r.throwOnError||(c=c.catch(En)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(En)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=k(this,ot).build(this,a);return r.isStaleByTime(ui(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(En).catch(En)}fetchInfiniteQuery(n){return n.behavior=$0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(En).catch(En)}ensureInfiniteQueryData(n){return n.behavior=$0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ac.isOnline()?k(this,yl).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ot)}getMutationCache(){return k(this,yl)}getDefaultOptions(){return k(this,xl)}setDefaultOptions(n){se(this,xl,n)}setQueryDefaults(n,a){k(this,yi).set(cr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...k(this,yi).values()],r={};return a.forEach(i=>{es(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){k(this,xi).set(cr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...k(this,xi).values()],r={};return a.forEach(i=>{es(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...k(this,xl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=jm(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Em&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...k(this,xl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){k(this,ot).clear(),k(this,yl).clear()}},ot=new WeakMap,yl=new WeakMap,xl=new WeakMap,yi=new WeakMap,xi=new WeakMap,bl=new WeakMap,bi=new WeakMap,wi=new WeakMap,sb),Xt,He,ss,qt,ir,Si,wl,Sl,us,ji,Ei,or,sr,jl,Ni,Ye,Xo,$h,Yh,Gh,Vh,Kh,Xh,Fh,wb,ub,ON=(ub=class extends Ai{constructor(a,r){super();be(this,Ye);be(this,Xt);be(this,He);be(this,ss);be(this,qt);be(this,ir);be(this,Si);be(this,wl);be(this,Sl);be(this,us);be(this,ji);be(this,Ei);be(this,or);be(this,sr);be(this,jl);be(this,Ni,new Set);this.options=r,se(this,Xt,a),se(this,Sl,null),se(this,wl,Qh()),this.options.experimental_prefetchInRender||k(this,wl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,He).addObserver(this),G0(k(this,He),this.options)?Re(this,Ye,Xo).call(this):this.updateResult(),Re(this,Ye,Vh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zh(k(this,He),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zh(k(this,He),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Re(this,Ye,Kh).call(this),Re(this,Ye,Xh).call(this),k(this,He).removeObserver(this)}setOptions(a){const r=this.options,i=k(this,He);if(this.options=k(this,Xt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,k(this,He))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Re(this,Ye,Fh).call(this),k(this,He).setOptions(this.options),r._defaulted&&!nc(this.options,r)&&k(this,Xt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,He),observer:this});const s=this.hasListeners();s&&V0(k(this,He),i,this.options,r)&&Re(this,Ye,Xo).call(this),this.updateResult(),s&&(k(this,He)!==i||Ln(this.options.enabled,k(this,He))!==Ln(r.enabled,k(this,He))||ui(this.options.staleTime,k(this,He))!==ui(r.staleTime,k(this,He)))&&Re(this,Ye,$h).call(this);const c=Re(this,Ye,Yh).call(this);s&&(k(this,He)!==i||Ln(this.options.enabled,k(this,He))!==Ln(r.enabled,k(this,He))||c!==k(this,jl))&&Re(this,Ye,Gh).call(this,c)}getOptimisticResult(a){const r=k(this,Xt).getQueryCache().build(k(this,Xt),a),i=this.createResult(r,a);return LN(this,i)&&(se(this,qt,i),se(this,Si,this.options),se(this,ir,k(this,He).state)),i}getCurrentResult(){return k(this,qt)}trackResult(a,r){const i={};return Object.keys(a).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),r==null||r(s),a[s])})}),i}trackProp(a){k(this,Ni).add(a)}getCurrentQuery(){return k(this,He)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=k(this,Xt).defaultQueryOptions(a),i=k(this,Xt).getQueryCache().build(k(this,Xt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Re(this,Ye,Xo).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,qt)))}createResult(a,r){var Y;const i=k(this,He),s=this.options,c=k(this,qt),h=k(this,ir),m=k(this,Si),g=a!==i?a.state:k(this,ss),{state:y}=a;let x={...y},w=!1,j;if(r._optimisticResults){const ee=this.hasListeners(),ue=!ee&&G0(a,r),ce=ee&&V0(a,i,r,s);(ue||ce)&&(x={...x,...xb(y.data,a.options)}),r._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:E,errorUpdatedAt:S,status:C}=x;j=x.data;let _=!1;if(r.placeholderData!==void 0&&j===void 0&&C==="pending"){let ee;c!=null&&c.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(ee=c.data,_=!0):ee=typeof r.placeholderData=="function"?r.placeholderData((Y=k(this,Ei))==null?void 0:Y.state.data,k(this,Ei)):r.placeholderData,ee!==void 0&&(C="success",j=Bh(c==null?void 0:c.data,ee,r),w=!0)}if(r.select&&j!==void 0&&!_)if(c&&j===(h==null?void 0:h.data)&&r.select===k(this,us))j=k(this,ji);else try{se(this,us,r.select),j=r.select(j),j=Bh(c==null?void 0:c.data,j,r),se(this,ji,j),se(this,Sl,null)}catch(ee){se(this,Sl,ee)}k(this,Sl)&&(E=k(this,Sl),j=k(this,ji),S=Date.now(),C="error");const T=x.fetchStatus==="fetching",R=C==="pending",D=C==="error",U=R&&T,K=j!==void 0,H={status:C,fetchStatus:x.fetchStatus,isPending:R,isSuccess:C==="success",isError:D,isInitialLoading:U,isLoading:U,data:j,dataUpdatedAt:x.dataUpdatedAt,error:E,errorUpdatedAt:S,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>g.dataUpdateCount||x.errorUpdateCount>g.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:D&&!K,isPaused:x.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:D&&K,isStale:Cm(a,r),refetch:this.refetch,promise:k(this,wl)};if(this.options.experimental_prefetchInRender){const ee=ie=>{H.status==="error"?ie.reject(H.error):H.data!==void 0&&ie.resolve(H.data)},ue=()=>{const ie=se(this,wl,H.promise=Qh());ee(ie)},ce=k(this,wl);switch(ce.status){case"pending":a.queryHash===i.queryHash&&ee(ce);break;case"fulfilled":(H.status==="error"||H.data!==ce.value)&&ue();break;case"rejected":(H.status!=="error"||H.error!==ce.reason)&&ue();break}}return H}updateResult(){const a=k(this,qt),r=this.createResult(k(this,He),this.options);if(se(this,ir,k(this,He).state),se(this,Si,this.options),k(this,ir).data!==void 0&&se(this,Ei,k(this,He)),nc(r,a))return;se(this,qt,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!k(this,Ni).size)return!0;const h=new Set(c??k(this,Ni));return this.options.throwOnError&&h.add("error"),Object.keys(k(this,qt)).some(m=>{const p=m;return k(this,qt)[p]!==a[p]&&h.has(p)})};Re(this,Ye,wb).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Re(this,Ye,Vh).call(this)}},Xt=new WeakMap,He=new WeakMap,ss=new WeakMap,qt=new WeakMap,ir=new WeakMap,Si=new WeakMap,wl=new WeakMap,Sl=new WeakMap,us=new WeakMap,ji=new WeakMap,Ei=new WeakMap,or=new WeakMap,sr=new WeakMap,jl=new WeakMap,Ni=new WeakMap,Ye=new WeakSet,Xo=function(a){Re(this,Ye,Fh).call(this);let r=k(this,He).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(En)),r},$h=function(){Re(this,Ye,Kh).call(this);const a=ui(this.options.staleTime,k(this,He));if(ur||k(this,qt).isStale||!Hh(a))return;const i=fb(k(this,qt).dataUpdatedAt,a)+1;se(this,or,setTimeout(()=>{k(this,qt).isStale||this.updateResult()},i))},Yh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,He)):this.options.refetchInterval)??!1},Gh=function(a){Re(this,Ye,Xh).call(this),se(this,jl,a),!(ur||Ln(this.options.enabled,k(this,He))===!1||!Hh(k(this,jl))||k(this,jl)===0)&&se(this,sr,setInterval(()=>{(this.options.refetchIntervalInBackground||Nm.isFocused())&&Re(this,Ye,Xo).call(this)},k(this,jl)))},Vh=function(){Re(this,Ye,$h).call(this),Re(this,Ye,Gh).call(this,Re(this,Ye,Yh).call(this))},Kh=function(){k(this,or)&&(clearTimeout(k(this,or)),se(this,or,void 0))},Xh=function(){k(this,sr)&&(clearInterval(k(this,sr)),se(this,sr,void 0))},Fh=function(){const a=k(this,Xt).getQueryCache().build(k(this,Xt),this.options);if(a===k(this,He))return;const r=k(this,He);se(this,He,a),se(this,ss,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},wb=function(a){bt.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(k(this,qt))}),k(this,Xt).getQueryCache().notify({query:k(this,He),type:"observerResultsUpdated"})})},ub);function zN(n,a){return Ln(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function G0(n,a){return zN(n,a)||n.state.data!==void 0&&Zh(n,a,a.refetchOnMount)}function Zh(n,a,r){if(Ln(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&Cm(n,a)}return!1}function V0(n,a,r,i){return(n!==a||Ln(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Cm(n,r)}function Cm(n,a){return Ln(a.enabled,n)!==!1&&n.isStaleByTime(ui(a.staleTime,n))}function LN(n,a){return!nc(n.getCurrentResult(),a)}var El,Nl,Ft,Ra,Aa,Zu,Ph,cb,UN=(cb=class extends Ai{constructor(r,i){super();be(this,Aa);be(this,El);be(this,Nl);be(this,Ft);be(this,Ra);se(this,El,r),this.setOptions(i),this.bindMethods(),Re(this,Aa,Zu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const i=this.options;this.options=k(this,El).defaultMutationOptions(r),nc(this.options,i)||k(this,El).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ft),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&cr(i.mutationKey)!==cr(this.options.mutationKey)?this.reset():((s=k(this,Ft))==null?void 0:s.state.status)==="pending"&&k(this,Ft).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Ft))==null||r.removeObserver(this)}onMutationUpdate(r){Re(this,Aa,Zu).call(this),Re(this,Aa,Ph).call(this,r)}getCurrentResult(){return k(this,Nl)}reset(){var r;(r=k(this,Ft))==null||r.removeObserver(this),se(this,Ft,void 0),Re(this,Aa,Zu).call(this),Re(this,Aa,Ph).call(this)}mutate(r,i){var s;return se(this,Ra,i),(s=k(this,Ft))==null||s.removeObserver(this),se(this,Ft,k(this,El).getMutationCache().build(k(this,El),this.options)),k(this,Ft).addObserver(this),k(this,Ft).execute(r)}},El=new WeakMap,Nl=new WeakMap,Ft=new WeakMap,Ra=new WeakMap,Aa=new WeakSet,Zu=function(){var i;const r=((i=k(this,Ft))==null?void 0:i.state)??bb();se(this,Nl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Ph=function(r){bt.batch(()=>{var i,s,c,h,m,p,g,y;if(k(this,Ra)&&this.hasListeners()){const x=k(this,Nl).variables,w=k(this,Nl).context;(r==null?void 0:r.type)==="success"?((s=(i=k(this,Ra)).onSuccess)==null||s.call(i,r.data,x,w),(h=(c=k(this,Ra)).onSettled)==null||h.call(c,r.data,null,x,w)):(r==null?void 0:r.type)==="error"&&((p=(m=k(this,Ra)).onError)==null||p.call(m,r.error,x,w),(y=(g=k(this,Ra)).onSettled)==null||y.call(g,void 0,r.error,x,w))}this.listeners.forEach(x=>{x(k(this,Nl))})})},cb),ph={exports:{}},Ce={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var K0;function HN(){if(K0)return Ce;K0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),w=Symbol.iterator;function j(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function _(A,F,W){this.props=A,this.context=F,this.refs=C,this.updater=W||E}_.prototype.isReactComponent={},_.prototype.setState=function(A,F){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,F,"setState")},_.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function T(){}T.prototype=_.prototype;function R(A,F,W){this.props=A,this.context=F,this.refs=C,this.updater=W||E}var D=R.prototype=new T;D.constructor=R,S(D,_.prototype),D.isPureReactComponent=!0;var U=Array.isArray;function K(){}var q={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function Y(A,F,W){var le=W.ref;return{$$typeof:n,type:A,key:F,ref:le!==void 0?le:null,props:W}}function ee(A,F){return Y(A.type,F,A.props)}function ue(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ce(A){var F={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(W){return F[W]})}var ie=/\/+/g;function ae(A,F){return typeof A=="object"&&A!==null&&A.key!=null?ce(""+A.key):F.toString(36)}function re(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(K,K):(A.status="pending",A.then(function(F){A.status==="pending"&&(A.status="fulfilled",A.value=F)},function(F){A.status==="pending"&&(A.status="rejected",A.reason=F)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function z(A,F,W,le,ve){var je=typeof A;(je==="undefined"||je==="boolean")&&(A=null);var te=!1;if(A===null)te=!0;else switch(je){case"bigint":case"string":case"number":te=!0;break;case"object":switch(A.$$typeof){case n:case a:te=!0;break;case y:return te=A._init,z(te(A._payload),F,W,le,ve)}}if(te)return ve=ve(A),te=le===""?"."+ae(A,0):le,U(ve)?(W="",te!=null&&(W=te.replace(ie,"$&/")+"/"),z(ve,F,W,"",function(Ne){return Ne})):ve!=null&&(ue(ve)&&(ve=ee(ve,W+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(ie,"$&/")+"/")+te)),F.push(ve)),1;te=0;var Ee=le===""?".":le+":";if(U(A))for(var ye=0;ye<A.length;ye++)le=A[ye],je=Ee+ae(le,ye),te+=z(le,F,W,je,ve);else if(ye=j(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(le=A.next()).done;)le=le.value,je=Ee+ae(le,ye++),te+=z(le,F,W,je,ve);else if(je==="object"){if(typeof A.then=="function")return z(re(A),F,W,le,ve);throw F=String(A),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return te}function J(A,F,W){if(A==null)return A;var le=[],ve=0;return z(A,le,"","",function(je){return F.call(W,je,ve++)}),le}function G(A){if(A._status===-1){var F=A._result;F=F(),F.then(function(W){(A._status===0||A._status===-1)&&(A._status=1,A._result=W)},function(W){(A._status===0||A._status===-1)&&(A._status=2,A._result=W)}),A._status===-1&&(A._status=0,A._result=F)}if(A._status===1)return A._result.default;throw A._result}var X=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},de={map:J,forEach:function(A,F,W){J(A,function(){F.apply(this,arguments)},W)},count:function(A){var F=0;return J(A,function(){F++}),F},toArray:function(A){return J(A,function(F){return F})||[]},only:function(A){if(!ue(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=x,Ce.Children=de,Ce.Component=_,Ce.Fragment=r,Ce.Profiler=s,Ce.PureComponent=R,Ce.StrictMode=i,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return q.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,F,W){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var le=S({},A.props),ve=A.key;if(F!=null)for(je in F.key!==void 0&&(ve=""+F.key),F)!H.call(F,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&F.ref===void 0||(le[je]=F[je]);var je=arguments.length-2;if(je===1)le.children=W;else if(1<je){for(var te=Array(je),Ee=0;Ee<je;Ee++)te[Ee]=arguments[Ee+2];le.children=te}return Y(A.type,ve,le)},Ce.createContext=function(A){return A={$$typeof:h,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:c,_context:A},A},Ce.createElement=function(A,F,W){var le,ve={},je=null;if(F!=null)for(le in F.key!==void 0&&(je=""+F.key),F)H.call(F,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=F[le]);var te=arguments.length-2;if(te===1)ve.children=W;else if(1<te){for(var Ee=Array(te),ye=0;ye<te;ye++)Ee[ye]=arguments[ye+2];ve.children=Ee}if(A&&A.defaultProps)for(le in te=A.defaultProps,te)ve[le]===void 0&&(ve[le]=te[le]);return Y(A,je,ve)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:m,render:A}},Ce.isValidElement=ue,Ce.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:G}},Ce.memo=function(A,F){return{$$typeof:g,type:A,compare:F===void 0?null:F}},Ce.startTransition=function(A){var F=q.T,W={};q.T=W;try{var le=A(),ve=q.S;ve!==null&&ve(W,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(K,X)}catch(je){X(je)}finally{F!==null&&W.types!==null&&(F.types=W.types),q.T=F}},Ce.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ce.use=function(A){return q.H.use(A)},Ce.useActionState=function(A,F,W){return q.H.useActionState(A,F,W)},Ce.useCallback=function(A,F){return q.H.useCallback(A,F)},Ce.useContext=function(A){return q.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,F){return q.H.useDeferredValue(A,F)},Ce.useEffect=function(A,F){return q.H.useEffect(A,F)},Ce.useEffectEvent=function(A){return q.H.useEffectEvent(A)},Ce.useId=function(){return q.H.useId()},Ce.useImperativeHandle=function(A,F,W){return q.H.useImperativeHandle(A,F,W)},Ce.useInsertionEffect=function(A,F){return q.H.useInsertionEffect(A,F)},Ce.useLayoutEffect=function(A,F){return q.H.useLayoutEffect(A,F)},Ce.useMemo=function(A,F){return q.H.useMemo(A,F)},Ce.useOptimistic=function(A,F){return q.H.useOptimistic(A,F)},Ce.useReducer=function(A,F,W){return q.H.useReducer(A,F,W)},Ce.useRef=function(A){return q.H.useRef(A)},Ce.useState=function(A){return q.H.useState(A)},Ce.useSyncExternalStore=function(A,F,W){return q.H.useSyncExternalStore(A,F,W)},Ce.useTransition=function(){return q.H.useTransition()},Ce.version="19.2.3",Ce}var X0;function _m(){return X0||(X0=1,ph.exports=HN()),ph.exports}var v=_m();const st=db(v),Sb=pN({__proto__:null,default:st},[v]);var jb=v.createContext(void 0),Sc=n=>{const a=v.useContext(jb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},qN=({client:n,children:a})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(jb.Provider,{value:n,children:a})),Eb=v.createContext(!1),BN=()=>v.useContext(Eb);Eb.Provider;function QN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var $N=v.createContext(QN()),YN=()=>v.useContext($N);function Nb(n,a){return typeof n=="function"?n(...a):!!n}function Jh(){}var GN=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},VN=n=>{v.useEffect(()=>{n.clearReset()},[n])},KN=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:s})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(s&&n.data===void 0||Nb(r,[n.error,i])),XN=n=>{const a=n.staleTime;n.suspense&&(n.staleTime=typeof a=="function"?(...r)=>Math.max(a(...r),1e3):Math.max(a??1e3,1e3),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3)))},FN=(n,a)=>n.isLoading&&n.isFetching&&!a,ZN=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,F0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function PN(n,a,r){var x,w,j,E,S;const i=Sc(),s=BN(),c=YN(),h=i.defaultQueryOptions(n);(w=(x=i.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||w.call(x,h),h._optimisticResults=s?"isRestoring":"optimistic",XN(h),GN(h,c),VN(c);const m=!i.getQueryCache().get(h.queryHash),[p]=v.useState(()=>new a(i,h)),g=p.getOptimisticResult(h),y=!s&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(C=>{const _=y?p.subscribe(bt.batchCalls(C)):Jh;return p.updateResult(),_},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),ZN(h,g))throw F0(h,p,c);if(KN({result:g,errorResetBoundary:c,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((E=(j=i.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||E.call(j,h,g),h.experimental_prefetchInRender&&!ur&&FN(g,s)){const C=m?F0(h,p,c):(S=i.getQueryCache().get(h.queryHash))==null?void 0:S.promise;C==null||C.catch(Jh).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function vt(n,a){return PN(n,ON)}function lc(n,a){const r=Sc(),[i]=v.useState(()=>new UN(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const s=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(bt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=v.useCallback((h,m)=>{i.mutate(h,m).catch(Jh)},[i]);if(s.error&&Nb(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}var vh={exports:{}},Yo={},gh={exports:{}},yh={};/**
18
- * @license React
19
- * scheduler.production.js
20
- *
21
- * Copyright (c) Meta Platforms, Inc. and affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Z0;function JN(){return Z0||(Z0=1,(function(n){function a(z,J){var G=z.length;z.push(J);e:for(;0<G;){var X=G-1>>>1,de=z[X];if(0<s(de,J))z[X]=J,z[G]=de,G=X;else break e}}function r(z){return z.length===0?null:z[0]}function i(z){if(z.length===0)return null;var J=z[0],G=z.pop();if(G!==J){z[0]=G;e:for(var X=0,de=z.length,A=de>>>1;X<A;){var F=2*(X+1)-1,W=z[F],le=F+1,ve=z[le];if(0>s(W,G))le<de&&0>s(ve,W)?(z[X]=ve,z[le]=G,X=le):(z[X]=W,z[F]=G,X=F);else if(le<de&&0>s(ve,G))z[X]=ve,z[le]=G,X=le;else break e}}return J}function s(z,J){var G=z.sortIndex-J.sortIndex;return G!==0?G:z.id-J.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],y=1,x=null,w=3,j=!1,E=!1,S=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function D(z){for(var J=r(g);J!==null;){if(J.callback===null)i(g);else if(J.startTime<=z)i(g),J.sortIndex=J.expirationTime,a(p,J);else break;J=r(g)}}function U(z){if(S=!1,D(z),!E)if(r(p)!==null)E=!0,K||(K=!0,ce());else{var J=r(g);J!==null&&re(U,J.startTime-z)}}var K=!1,q=-1,H=5,Y=-1;function ee(){return C?!0:!(n.unstable_now()-Y<H)}function ue(){if(C=!1,K){var z=n.unstable_now();Y=z;var J=!0;try{e:{E=!1,S&&(S=!1,T(q),q=-1),j=!0;var G=w;try{t:{for(D(z),x=r(p);x!==null&&!(x.expirationTime>z&&ee());){var X=x.callback;if(typeof X=="function"){x.callback=null,w=x.priorityLevel;var de=X(x.expirationTime<=z);if(z=n.unstable_now(),typeof de=="function"){x.callback=de,D(z),J=!0;break t}x===r(p)&&i(p),D(z)}else i(p);x=r(p)}if(x!==null)J=!0;else{var A=r(g);A!==null&&re(U,A.startTime-z),J=!1}}break e}finally{x=null,w=G,j=!1}J=void 0}}finally{J?ce():K=!1}}}var ce;if(typeof R=="function")ce=function(){R(ue)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=ue,ce=function(){ae.postMessage(null)}}else ce=function(){_(ue,0)};function re(z,J){q=_(function(){z(n.unstable_now())},J)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(z){switch(w){case 1:case 2:case 3:var J=3;break;default:J=w}var G=w;w=J;try{return z()}finally{w=G}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(z,J){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var G=w;w=z;try{return J()}finally{w=G}},n.unstable_scheduleCallback=function(z,J,G){var X=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?X+G:X):G=X,z){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=G+de,z={id:y++,callback:J,priorityLevel:z,startTime:G,expirationTime:de,sortIndex:-1},G>X?(z.sortIndex=G,a(g,z),r(p)===null&&z===r(g)&&(S?(T(q),q=-1):S=!0,re(U,G-X))):(z.sortIndex=de,a(p,z),E||j||(E=!0,K||(K=!0,ce()))),z},n.unstable_shouldYield=ee,n.unstable_wrapCallback=function(z){var J=w;return function(){var G=w;w=J;try{return z.apply(this,arguments)}finally{w=G}}}})(yh)),yh}var P0;function IN(){return P0||(P0=1,gh.exports=JN()),gh.exports}var xh={exports:{}},zt={};/**
26
- * @license React
27
- * react-dom.production.js
28
- *
29
- * Copyright (c) Meta Platforms, Inc. and affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var J0;function WN(){if(J0)return zt;J0=1;var n=_m();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,g,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:x==null?null:""+x,children:p,containerInfo:g,implementation:y}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,zt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return c(p,g,null,y)},zt.flushSync=function(p){var g=h.T,y=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=g,i.p=y,i.d.f()}},zt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},zt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},zt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,x=m(y,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:w,fetchPriority:j}):y==="script"&&i.d.X(p,{crossOrigin:x,integrity:w,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},zt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},zt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,x=m(y,g.crossOrigin);i.d.L(p,y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},zt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},zt.requestFormReset=function(p){i.d.r(p)},zt.unstable_batchedUpdates=function(p,g){return p(g)},zt.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},zt.useFormStatus=function(){return h.H.useHostTransitionStatus()},zt.version="19.2.3",zt}var I0;function Cb(){if(I0)return xh.exports;I0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),xh.exports=WN(),xh.exports}/**
34
- * @license React
35
- * react-dom-client.production.js
36
- *
37
- * Copyright (c) Meta Platforms, Inc. and affiliates.
38
- *
39
- * This source code is licensed under the MIT license found in the
40
- * LICENSE file in the root directory of this source tree.
41
- */var W0;function eC(){if(W0)return Yo;W0=1;var n=IN(),a=_m(),r=Cb();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}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 s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(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 m(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 p(e){if(c(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t!==e?null:e}for(var l=e,o=t;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(o=d.return,o!==null){l=o;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return p(d),e;if(f===o)return p(d),t;f=f.sibling}throw Error(i(188))}if(l.return!==o.return)l=d,o=f;else{for(var b=!1,N=d.child;N;){if(N===l){b=!0,l=d,o=f;break}if(N===o){b=!0,o=d,l=f;break}N=N.sibling}if(!b){for(N=f.child;N;){if(N===l){b=!0,l=f,o=d;break}if(N===o){b=!0,o=f,l=d;break}N=N.sibling}if(!b)throw Error(i(189))}}if(l.alternate!==o)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,w=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),R=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function ae(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case _:return"Profiler";case C:return"StrictMode";case U:return"Suspense";case K:return"SuspenseList";case Y:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case R:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:ae(e.type)||"Memo";case H:t=e._payload,e=e._init;try{return ae(e(t))}catch{}}return null}var re=Array.isArray,z=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},X=[],de=-1;function A(e){return{current:e}}function F(e){0>de||(e.current=X[de],X[de]=null,de--)}function W(e,t){de++,X[de]=e.current,e.current=t}var le=A(null),ve=A(null),je=A(null),te=A(null);function Ee(e,t){switch(W(je,t),W(ve,e),W(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?l0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=l0(t),e=r0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(le),W(le,e)}function ye(){F(le),F(ve),F(je)}function Ne(e){e.memoizedState!==null&&W(te,e);var t=le.current,l=r0(t,e.type);t!==l&&(W(ve,e),W(le,l))}function qe(e){ve.current===e&&(F(le),F(ve)),te.current===e&&(F(te),Ho._currentValue=G)}var Ve,Ot;function Pt(e){if(Ve===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ve=t&&t[1]||"",Ot=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ve+e+Ot}var ia=!1;function oa(e,t){if(!e||ia)return"";ia=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(V){var $=V}Reflect.construct(e,[],I)}else{try{I.call()}catch(V){$=V}e.call(I.prototype)}}else{try{throw Error()}catch(V){$=V}(I=e())&&typeof I.catch=="function"&&I.catch(function(){})}}catch(V){if(V&&$&&typeof V.stack=="string")return[V.stack,$.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),b=f[0],N=f[1];if(b&&N){var M=b.split(`
44
- `),Q=N.split(`
45
- `);for(d=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;d<Q.length&&!Q[d].includes("DetermineComponentFrameRoot");)d++;if(o===M.length||d===Q.length)for(o=M.length-1,d=Q.length-1;1<=o&&0<=d&&M[o]!==Q[d];)d--;for(;1<=o&&0<=d;o--,d--)if(M[o]!==Q[d]){if(o!==1||d!==1)do if(o--,d--,0>d||M[o]!==Q[d]){var Z=`
46
- `+M[o].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=o&&0<=d);break}}}finally{ia=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Pt(l):""}function Pc(e,t){switch(e.tag){case 26:case 27:case 5:return Pt(e.type);case 16:return Pt("Lazy");case 13:return e.child!==t&&t!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return oa(e.type,!1);case 11:return oa(e.type.render,!1);case 1:return oa(e.type,!0);case 31:return Pt("Activity");default:return""}}function xs(e){try{var t="",l=null;do t+=Pc(e,l),l=e,e=e.return;while(e);return t}catch(o){return`
47
- Error generating stack: `+o.message+`
48
- `+o.stack}}var Ba=Object.prototype.hasOwnProperty,Jc=n.unstable_scheduleCallback,Ic=n.unstable_cancelCallback,Xj=n.unstable_shouldYield,Fj=n.unstable_requestPaint,Jt=n.unstable_now,Zj=n.unstable_getCurrentPriorityLevel,Lp=n.unstable_ImmediatePriority,Up=n.unstable_UserBlockingPriority,bs=n.unstable_NormalPriority,Pj=n.unstable_LowPriority,Hp=n.unstable_IdlePriority,Jj=n.log,Ij=n.unstable_setDisableYieldValue,Zi=null,It=null;function Qa(e){if(typeof Jj=="function"&&Ij(e),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(Zi,e)}catch{}}var Wt=Math.clz32?Math.clz32:t2,Wj=Math.log,e2=Math.LN2;function t2(e){return e>>>=0,e===0?32:31-(Wj(e)/e2|0)|0}var ws=256,Ss=262144,js=4194304;function zl(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 Es(e,t,l){var o=e.pendingLanes;if(o===0)return 0;var d=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var N=o&134217727;return N!==0?(o=N&~f,o!==0?d=zl(o):(b&=N,b!==0?d=zl(b):l||(l=N&~e,l!==0&&(d=zl(l))))):(N=o&~f,N!==0?d=zl(N):b!==0?d=zl(b):l||(l=o&~e,l!==0&&(d=zl(l)))),d===0?0:t!==0&&t!==d&&(t&f)===0&&(f=d&-d,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:d}function Pi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function n2(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 qp(){var e=js;return js<<=1,(js&62914560)===0&&(js=4194304),e}function Wc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ji(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function a2(e,t,l,o,d,f){var b=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var N=e.entanglements,M=e.expirationTimes,Q=e.hiddenUpdates;for(l=b&~l;0<l;){var Z=31-Wt(l),I=1<<Z;N[Z]=0,M[Z]=-1;var $=Q[Z];if($!==null)for(Q[Z]=null,Z=0;Z<$.length;Z++){var V=$[Z];V!==null&&(V.lane&=-536870913)}l&=~I}o!==0&&Bp(e,o,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(b&~t))}function Bp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Wt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|l&261930}function Qp(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var o=31-Wt(l),d=1<<o;d&t|e[o]&t&&(e[o]|=t),l&=~d}}function $p(e,t){var l=t&-t;return l=(l&42)!==0?1:ed(l),(l&(e.suspendedLanes|t))!==0?0:l}function ed(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 td(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Yp(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:T0(e.type))}function Gp(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var $a=Math.random().toString(36).slice(2),_t="__reactFiber$"+$a,Bt="__reactProps$"+$a,br="__reactContainer$"+$a,nd="__reactEvents$"+$a,l2="__reactListeners$"+$a,r2="__reactHandles$"+$a,Vp="__reactResources$"+$a,Ii="__reactMarker$"+$a;function ad(e){delete e[_t],delete e[Bt],delete e[nd],delete e[l2],delete e[r2]}function wr(e){var t=e[_t];if(t)return t;for(var l=e.parentNode;l;){if(t=l[br]||l[_t]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=f0(e);e!==null;){if(l=e[_t])return l;e=f0(e)}return t}e=l,l=e.parentNode}return null}function Sr(e){if(e=e[_t]||e[br]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Wi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function jr(e){var t=e[Vp];return t||(t=e[Vp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Et(e){e[Ii]=!0}var Kp=new Set,Xp={};function Ll(e,t){Er(e,t),Er(e+"Capture",t)}function Er(e,t){for(Xp[e]=t,e=0;e<t.length;e++)Kp.add(t[e])}var i2=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]*$"),Fp={},Zp={};function o2(e){return Ba.call(Zp,e)?!0:Ba.call(Fp,e)?!1:i2.test(e)?Zp[e]=!0:(Fp[e]=!0,!1)}function Ns(e,t,l){if(o2(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Cs(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function sa(e,t,l,o){if(o===null)e.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+o)}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s2(e,t,l){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(b){l=""+b,f.call(this,b)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ld(e){if(!e._valueTracker){var t=Pp(e)?"checked":"value";e._valueTracker=s2(e,t,""+e[t])}}function Jp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),o="";return e&&(o=Pp(e)?e.checked?"true":"false":e.value),e=o,e!==l?(t.setValue(e),!0):!1}function _s(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 u2=/[\n"\\]/g;function mn(e){return e.replace(u2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rd(e,t,l,o,d,f,b,N){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+hn(t)):e.value!==""+hn(t)&&(e.value=""+hn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?id(e,b,hn(t)):l!=null?id(e,b,hn(l)):o!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+hn(N):e.removeAttribute("name")}function Ip(e,t,l,o,d,f,b,N){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){ld(e);return}l=l!=null?""+hn(l):"",t=t!=null?""+hn(t):l,N||t===e.value||(e.value=t),e.defaultValue=t}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=N?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),ld(e)}function id(e,t,l){t==="number"&&_s(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Nr(e,t,l,o){if(e=e.options,t){t={};for(var d=0;d<l.length;d++)t["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=t.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&o&&(e[l].defaultSelected=!0)}else{for(l=""+hn(l),t=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function Wp(e,t,l){if(t!=null&&(t=""+hn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+hn(l):""}function ev(e,t,l,o){if(t==null){if(o!=null){if(l!=null)throw Error(i(92));if(re(o)){if(1<o.length)throw Error(i(93));o=o[0]}l=o}l==null&&(l=""),t=l}l=hn(t),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o),ld(e)}function Cr(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var c2=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 tv(e,t,l){var o=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,l):typeof l!="number"||l===0||c2.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function nv(e,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var d in t)o=t[d],t.hasOwnProperty(d)&&l[d]!==o&&tv(e,d,o)}else for(var f in t)t.hasOwnProperty(f)&&tv(e,f,t[f])}function od(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 d2=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"]]),f2=/^[\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 Ts(e){return f2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ua(){}var sd=null;function ud(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var _r=null,Tr=null;function av(e){var t=Sr(e);if(t&&(e=t.stateNode)){var l=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(rd(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+mn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var o=l[t];if(o!==e&&o.form===e.form){var d=o[Bt]||null;if(!d)throw Error(i(90));rd(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)o=l[t],o.form===e.form&&Jp(o)}break e;case"textarea":Wp(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Nr(e,!!l.multiple,t,!1)}}}var cd=!1;function lv(e,t,l){if(cd)return e(t,l);cd=!0;try{var o=e(t);return o}finally{if(cd=!1,(_r!==null||Tr!==null)&&(pu(),_r&&(t=_r,e=Tr,Tr=_r=null,av(t),e)))for(t=0;t<e.length;t++)av(e[t])}}function eo(e,t){var l=e.stateNode;if(l===null)return null;var o=l[Bt]||null;if(o===null)return null;l=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dd=!1;if(ca)try{var to={};Object.defineProperty(to,"passive",{get:function(){dd=!0}}),window.addEventListener("test",to,to),window.removeEventListener("test",to,to)}catch{dd=!1}var Ya=null,fd=null,Rs=null;function rv(){if(Rs)return Rs;var e,t=fd,l=t.length,o,d="value"in Ya?Ya.value:Ya.textContent,f=d.length;for(e=0;e<l&&t[e]===d[e];e++);var b=l-e;for(o=1;o<=b&&t[l-o]===d[f-o];o++);return Rs=d.slice(e,1<o?1-o:void 0)}function Ms(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 As(){return!0}function iv(){return!1}function Qt(e){function t(l,o,d,f,b){this._reactName=l,this._targetInst=d,this.type=o,this.nativeEvent=f,this.target=b,this.currentTarget=null;for(var N in e)e.hasOwnProperty(N)&&(l=e[N],this[N]=l?l(f):f[N]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?As:iv,this.isPropagationStopped=iv,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=As)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=As)},persist:function(){},isPersistent:As}),t}var Ul={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ks=Qt(Ul),no=x({},Ul,{view:0,detail:0}),h2=Qt(no),hd,md,ao,Ds=x({},no,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:vd,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!==ao&&(ao&&e.type==="mousemove"?(hd=e.screenX-ao.screenX,md=e.screenY-ao.screenY):md=hd=0,ao=e),hd)},movementY:function(e){return"movementY"in e?e.movementY:md}}),ov=Qt(Ds),m2=x({},Ds,{dataTransfer:0}),p2=Qt(m2),v2=x({},no,{relatedTarget:0}),pd=Qt(v2),g2=x({},Ul,{animationName:0,elapsedTime:0,pseudoElement:0}),y2=Qt(g2),x2=x({},Ul,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),b2=Qt(x2),w2=x({},Ul,{data:0}),sv=Qt(w2),S2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},j2={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"},E2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=E2[e])?!!t[e]:!1}function vd(){return N2}var C2=x({},no,{key:function(e){if(e.key){var t=S2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ms(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?j2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:vd,charCode:function(e){return e.type==="keypress"?Ms(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ms(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_2=Qt(C2),T2=x({},Ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uv=Qt(T2),R2=x({},no,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:vd}),M2=Qt(R2),A2=x({},Ul,{propertyName:0,elapsedTime:0,pseudoElement:0}),k2=Qt(A2),D2=x({},Ds,{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}),O2=Qt(D2),z2=x({},Ul,{newState:0,oldState:0}),L2=Qt(z2),U2=[9,13,27,32],gd=ca&&"CompositionEvent"in window,lo=null;ca&&"documentMode"in document&&(lo=document.documentMode);var H2=ca&&"TextEvent"in window&&!lo,cv=ca&&(!gd||lo&&8<lo&&11>=lo),dv=" ",fv=!1;function hv(e,t){switch(e){case"keyup":return U2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function q2(e,t){switch(e){case"compositionend":return mv(t);case"keypress":return t.which!==32?null:(fv=!0,dv);case"textInput":return e=t.data,e===dv&&fv?null:e;default:return null}}function B2(e,t){if(Rr)return e==="compositionend"||!gd&&hv(e,t)?(e=rv(),Rs=fd=Ya=null,Rr=!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 cv&&t.locale!=="ko"?null:t.data;default:return null}}var Q2={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 pv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q2[e.type]:t==="textarea"}function vv(e,t,l,o){_r?Tr?Tr.push(o):Tr=[o]:_r=o,t=Su(t,"onChange"),0<t.length&&(l=new ks("onChange","change",null,l,o),e.push({event:l,listeners:t}))}var ro=null,io=null;function $2(e){Iy(e,0)}function Os(e){var t=Wi(e);if(Jp(t))return e}function gv(e,t){if(e==="change")return t}var yv=!1;if(ca){var yd;if(ca){var xd="oninput"in document;if(!xd){var xv=document.createElement("div");xv.setAttribute("oninput","return;"),xd=typeof xv.oninput=="function"}yd=xd}else yd=!1;yv=yd&&(!document.documentMode||9<document.documentMode)}function bv(){ro&&(ro.detachEvent("onpropertychange",wv),io=ro=null)}function wv(e){if(e.propertyName==="value"&&Os(io)){var t=[];vv(t,io,e,ud(e)),lv($2,t)}}function Y2(e,t,l){e==="focusin"?(bv(),ro=t,io=l,ro.attachEvent("onpropertychange",wv)):e==="focusout"&&bv()}function G2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(io)}function V2(e,t){if(e==="click")return Os(t)}function K2(e,t){if(e==="input"||e==="change")return Os(t)}function X2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:X2;function oo(e,t){if(en(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var d=l[o];if(!Ba.call(t,d)||!en(e[d],t[d]))return!1}return!0}function Sv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function jv(e,t){var l=Sv(e);e=0;for(var o;l;){if(l.nodeType===3){if(o=e+l.textContent.length,e<=t&&o>=t)return{node:l,offset:t-e};e=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Sv(l)}}function Ev(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ev(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_s(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=_s(e.document)}return t}function bd(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 F2=ca&&"documentMode"in document&&11>=document.documentMode,Mr=null,wd=null,so=null,Sd=!1;function Cv(e,t,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;Sd||Mr==null||Mr!==_s(o)||(o=Mr,"selectionStart"in o&&bd(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),so&&oo(so,o)||(so=o,o=Su(wd,"onSelect"),0<o.length&&(t=new ks("onSelect","select",null,t,l),e.push({event:t,listeners:o}),t.target=Mr)))}function Hl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Ar={animationend:Hl("Animation","AnimationEnd"),animationiteration:Hl("Animation","AnimationIteration"),animationstart:Hl("Animation","AnimationStart"),transitionrun:Hl("Transition","TransitionRun"),transitionstart:Hl("Transition","TransitionStart"),transitioncancel:Hl("Transition","TransitionCancel"),transitionend:Hl("Transition","TransitionEnd")},jd={},_v={};ca&&(_v=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);function ql(e){if(jd[e])return jd[e];if(!Ar[e])return e;var t=Ar[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in _v)return jd[e]=t[l];return e}var Tv=ql("animationend"),Rv=ql("animationiteration"),Mv=ql("animationstart"),Z2=ql("transitionrun"),P2=ql("transitionstart"),J2=ql("transitioncancel"),Av=ql("transitionend"),kv=new Map,Ed="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(" ");Ed.push("scrollEnd");function Rn(e,t){kv.set(e,t),Ll(t,[e])}var zs=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)},pn=[],kr=0,Nd=0;function Ls(){for(var e=kr,t=Nd=kr=0;t<e;){var l=pn[t];pn[t++]=null;var o=pn[t];pn[t++]=null;var d=pn[t];pn[t++]=null;var f=pn[t];if(pn[t++]=null,o!==null&&d!==null){var b=o.pending;b===null?d.next=d:(d.next=b.next,b.next=d),o.pending=d}f!==0&&Dv(l,d,f)}}function Us(e,t,l,o){pn[kr++]=e,pn[kr++]=t,pn[kr++]=l,pn[kr++]=o,Nd|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Cd(e,t,l,o){return Us(e,t,l,o),Hs(e)}function Bl(e,t){return Us(e,null,null,t),Hs(e)}function Dv(e,t,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var d=!1,f=e.return;f!==null;)f.childLanes|=l,o=f.alternate,o!==null&&(o.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(d=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,d&&t!==null&&(d=31-Wt(l),e=f.hiddenUpdates,o=e[d],o===null?e[d]=[t]:o.push(t),t.lane=l|536870912),f):null}function Hs(e){if(50<Ao)throw Ao=0,Lf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Dr={};function I2(e,t,l,o){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(e,t,l,o){return new I2(e,t,l,o)}function _d(e){return e=e.prototype,!(!e||!e.isReactComponent)}function da(e,t){var l=e.alternate;return l===null?(l=tn(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ov(e,t){e.flags&=65011714;var l=e.alternate;return l===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=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qs(e,t,l,o,d,f){var b=0;if(o=e,typeof e=="function")_d(e)&&(b=1);else if(typeof e=="string")b=aN(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Y:return e=tn(31,l,t,d),e.elementType=Y,e.lanes=f,e;case S:return Ql(l.children,d,f,t);case C:b=8,d|=24;break;case _:return e=tn(12,l,t,d|2),e.elementType=_,e.lanes=f,e;case U:return e=tn(13,l,t,d),e.elementType=U,e.lanes=f,e;case K:return e=tn(19,l,t,d),e.elementType=K,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:b=10;break e;case T:b=9;break e;case D:b=11;break e;case q:b=14;break e;case H:b=16,o=null;break e}b=29,l=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=tn(b,l,t,d),t.elementType=e,t.type=o,t.lanes=f,t}function Ql(e,t,l,o){return e=tn(7,e,o,t),e.lanes=l,e}function Td(e,t,l){return e=tn(6,e,null,t),e.lanes=l,e}function zv(e){var t=tn(18,null,null,0);return t.stateNode=e,t}function Rd(e,t,l){return t=tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lv=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var l=Lv.get(e);return l!==void 0?l:(t={value:e,source:t,stack:xs(t)},Lv.set(e,t),t)}return{value:e,source:t,stack:xs(t)}}var Or=[],zr=0,Bs=null,uo=0,gn=[],yn=0,Ga=null,Vn=1,Kn="";function fa(e,t){Or[zr++]=uo,Or[zr++]=Bs,Bs=e,uo=t}function Uv(e,t,l){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Ga,Ga=e;var o=Vn;e=Kn;var d=32-Wt(o)-1;o&=~(1<<d),l+=1;var f=32-Wt(t)+d;if(30<f){var b=d-d%5;f=(o&(1<<b)-1).toString(32),o>>=b,d-=b,Vn=1<<32-Wt(t)+d|l<<d|o,Kn=f+e}else Vn=1<<f|l<<d|o,Kn=e}function Md(e){e.return!==null&&(fa(e,1),Uv(e,1,0))}function Ad(e){for(;e===Bs;)Bs=Or[--zr],Or[zr]=null,uo=Or[--zr],Or[zr]=null;for(;e===Ga;)Ga=gn[--yn],gn[yn]=null,Kn=gn[--yn],gn[yn]=null,Vn=gn[--yn],gn[yn]=null}function Hv(e,t){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Ga,Vn=t.id,Kn=t.overflow,Ga=e}var Tt=null,We=null,Ue=!1,Va=null,xn=!1,kd=Error(i(519));function Ka(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw co(vn(t,e)),kd}function qv(e){var t=e.stateNode,l=e.type,o=e.memoizedProps;switch(t[_t]=e,t[Bt]=o,l){case"dialog":ke("cancel",t),ke("close",t);break;case"iframe":case"object":case"embed":ke("load",t);break;case"video":case"audio":for(l=0;l<Do.length;l++)ke(Do[l],t);break;case"source":ke("error",t);break;case"img":case"image":case"link":ke("error",t),ke("load",t);break;case"details":ke("toggle",t);break;case"input":ke("invalid",t),Ip(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ke("invalid",t);break;case"textarea":ke("invalid",t),ev(t,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||o.suppressHydrationWarning===!0||n0(t.textContent,l)?(o.popover!=null&&(ke("beforetoggle",t),ke("toggle",t)),o.onScroll!=null&&ke("scroll",t),o.onScrollEnd!=null&&ke("scrollend",t),o.onClick!=null&&(t.onclick=ua),t=!0):t=!1,t||Ka(e,!0)}function Bv(e){for(Tt=e.return;Tt;)switch(Tt.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Tt=Tt.return}}function Lr(e){if(e!==Tt)return!1;if(!Ue)return Bv(e),Ue=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Jf(e.type,e.memoizedProps)),l=!l),l&&We&&Ka(e),Bv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=d0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=d0(e)}else t===27?(t=We,il(e.type)?(e=nh,nh=null,We=e):We=t):We=Tt?wn(e.stateNode.nextSibling):null;return!0}function $l(){We=Tt=null,Ue=!1}function Dd(){var e=Va;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),Va=null),e}function co(e){Va===null?Va=[e]:Va.push(e)}var Od=A(null),Yl=null,ha=null;function Xa(e,t,l){W(Od,t._currentValue),t._currentValue=l}function ma(e){e._currentValue=Od.current,F(Od)}function zd(e,t,l){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===l)break;e=e.return}}function Ld(e,t,l,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var b=d.child;f=f.firstContext;e:for(;f!==null;){var N=f;f=d;for(var M=0;M<t.length;M++)if(N.context===t[M]){f.lanes|=l,N=f.alternate,N!==null&&(N.lanes|=l),zd(f.return,l,e),o||(b=null);break e}f=N.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(i(341));b.lanes|=l,f=b.alternate,f!==null&&(f.lanes|=l),zd(b,l,e),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===e){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function Ur(e,t,l,o){e=null;for(var d=t,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var N=d.type;en(d.pendingProps.value,b.value)||(e!==null?e.push(N):e=[N])}}else if(d===te.current){if(b=d.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(Ho):e=[Ho])}d=d.return}e!==null&&Ld(t,e,l,o),t.flags|=262144}function Qs(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gl(e){Yl=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Rt(e){return Qv(Yl,e)}function $s(e,t){return Yl===null&&Gl(e),Qv(e,t)}function Qv(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return l}var W2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},eE=n.unstable_scheduleCallback,tE=n.unstable_NormalPriority,ft={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ud(){return{controller:new W2,data:new Map,refCount:0}}function fo(e){e.refCount--,e.refCount===0&&eE(tE,function(){e.controller.abort()})}var ho=null,Hd=0,Hr=0,qr=null;function nE(e,t){if(ho===null){var l=ho=[];Hd=0,Hr=$f(),qr={status:"pending",value:void 0,then:function(o){l.push(o)}}}return Hd++,t.then($v,$v),t}function $v(){if(--Hd===0&&ho!==null){qr!==null&&(qr.status="fulfilled");var e=ho;ho=null,Hr=0,qr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function aE(e,t){var l=[],o={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(o.status="rejected",o.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),o}var Yv=z.S;z.S=function(e,t){Cy=Jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&nE(e,t),Yv!==null&&Yv(e,t)};var Vl=A(null);function qd(){var e=Vl.current;return e!==null?e:Ie.pooledCache}function Ys(e,t){t===null?W(Vl,Vl.current):W(Vl,t.pool)}function Gv(){var e=qd();return e===null?null:{parent:ft._currentValue,pool:e}}var Br=Error(i(460)),Bd=Error(i(474)),Gs=Error(i(542)),Vs={then:function(){}};function Vv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ua,ua),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fv(e),e;default:if(typeof t.status=="string")t.then(ua,ua);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=o}},function(o){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fv(e),e}throw Xl=t,Br}}function Kl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Xl=l,Br):l}}var Xl=null;function Xv(){if(Xl===null)throw Error(i(459));var e=Xl;return Xl=null,e}function Fv(e){if(e===Br||e===Gs)throw Error(i(483))}var Qr=null,mo=0;function Ks(e){var t=mo;return mo+=1,Qr===null&&(Qr=[]),Kv(Qr,e,t)}function po(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xs(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zv(e){function t(L,O){if(e){var B=L.deletions;B===null?(L.deletions=[O],L.flags|=16):B.push(O)}}function l(L,O){if(!e)return null;for(;O!==null;)t(L,O),O=O.sibling;return null}function o(L){for(var O=new Map;L!==null;)L.key!==null?O.set(L.key,L):O.set(L.index,L),L=L.sibling;return O}function d(L,O){return L=da(L,O),L.index=0,L.sibling=null,L}function f(L,O,B){return L.index=B,e?(B=L.alternate,B!==null?(B=B.index,B<O?(L.flags|=67108866,O):B):(L.flags|=67108866,O)):(L.flags|=1048576,O)}function b(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function N(L,O,B,P){return O===null||O.tag!==6?(O=Td(B,L.mode,P),O.return=L,O):(O=d(O,B),O.return=L,O)}function M(L,O,B,P){var xe=B.type;return xe===S?Z(L,O,B.props.children,P,B.key):O!==null&&(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===H&&Kl(xe)===O.type)?(O=d(O,B.props),po(O,B),O.return=L,O):(O=qs(B.type,B.key,B.props,null,L.mode,P),po(O,B),O.return=L,O)}function Q(L,O,B,P){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Rd(B,L.mode,P),O.return=L,O):(O=d(O,B.children||[]),O.return=L,O)}function Z(L,O,B,P,xe){return O===null||O.tag!==7?(O=Ql(B,L.mode,P,xe),O.return=L,O):(O=d(O,B),O.return=L,O)}function I(L,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Td(""+O,L.mode,B),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return B=qs(O.type,O.key,O.props,null,L.mode,B),po(B,O),B.return=L,B;case E:return O=Rd(O,L.mode,B),O.return=L,O;case H:return O=Kl(O),I(L,O,B)}if(re(O)||ce(O))return O=Ql(O,L.mode,B,null),O.return=L,O;if(typeof O.then=="function")return I(L,Ks(O),B);if(O.$$typeof===R)return I(L,$s(L,O),B);Xs(L,O)}return null}function $(L,O,B,P){var xe=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return xe!==null?null:N(L,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j:return B.key===xe?M(L,O,B,P):null;case E:return B.key===xe?Q(L,O,B,P):null;case H:return B=Kl(B),$(L,O,B,P)}if(re(B)||ce(B))return xe!==null?null:Z(L,O,B,P,null);if(typeof B.then=="function")return $(L,O,Ks(B),P);if(B.$$typeof===R)return $(L,O,$s(L,B),P);Xs(L,B)}return null}function V(L,O,B,P,xe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return L=L.get(B)||null,N(O,L,""+P,xe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case j:return L=L.get(P.key===null?B:P.key)||null,M(O,L,P,xe);case E:return L=L.get(P.key===null?B:P.key)||null,Q(O,L,P,xe);case H:return P=Kl(P),V(L,O,B,P,xe)}if(re(P)||ce(P))return L=L.get(B)||null,Z(O,L,P,xe,null);if(typeof P.then=="function")return V(L,O,B,Ks(P),xe);if(P.$$typeof===R)return V(L,O,B,$s(O,P),xe);Xs(O,P)}return null}function fe(L,O,B,P){for(var xe=null,Be=null,ge=O,Te=O=0,Le=null;ge!==null&&Te<B.length;Te++){ge.index>Te?(Le=ge,ge=null):Le=ge.sibling;var Qe=$(L,ge,B[Te],P);if(Qe===null){ge===null&&(ge=Le);break}e&&ge&&Qe.alternate===null&&t(L,ge),O=f(Qe,O,Te),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe,ge=Le}if(Te===B.length)return l(L,ge),Ue&&fa(L,Te),xe;if(ge===null){for(;Te<B.length;Te++)ge=I(L,B[Te],P),ge!==null&&(O=f(ge,O,Te),Be===null?xe=ge:Be.sibling=ge,Be=ge);return Ue&&fa(L,Te),xe}for(ge=o(ge);Te<B.length;Te++)Le=V(ge,L,Te,B[Te],P),Le!==null&&(e&&Le.alternate!==null&&ge.delete(Le.key===null?Te:Le.key),O=f(Le,O,Te),Be===null?xe=Le:Be.sibling=Le,Be=Le);return e&&ge.forEach(function(dl){return t(L,dl)}),Ue&&fa(L,Te),xe}function Se(L,O,B,P){if(B==null)throw Error(i(151));for(var xe=null,Be=null,ge=O,Te=O=0,Le=null,Qe=B.next();ge!==null&&!Qe.done;Te++,Qe=B.next()){ge.index>Te?(Le=ge,ge=null):Le=ge.sibling;var dl=$(L,ge,Qe.value,P);if(dl===null){ge===null&&(ge=Le);break}e&&ge&&dl.alternate===null&&t(L,ge),O=f(dl,O,Te),Be===null?xe=dl:Be.sibling=dl,Be=dl,ge=Le}if(Qe.done)return l(L,ge),Ue&&fa(L,Te),xe;if(ge===null){for(;!Qe.done;Te++,Qe=B.next())Qe=I(L,Qe.value,P),Qe!==null&&(O=f(Qe,O,Te),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe);return Ue&&fa(L,Te),xe}for(ge=o(ge);!Qe.done;Te++,Qe=B.next())Qe=V(ge,L,Te,Qe.value,P),Qe!==null&&(e&&Qe.alternate!==null&&ge.delete(Qe.key===null?Te:Qe.key),O=f(Qe,O,Te),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe);return e&&ge.forEach(function(mN){return t(L,mN)}),Ue&&fa(L,Te),xe}function Pe(L,O,B,P){if(typeof B=="object"&&B!==null&&B.type===S&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case j:e:{for(var xe=B.key;O!==null;){if(O.key===xe){if(xe=B.type,xe===S){if(O.tag===7){l(L,O.sibling),P=d(O,B.props.children),P.return=L,L=P;break e}}else if(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===H&&Kl(xe)===O.type){l(L,O.sibling),P=d(O,B.props),po(P,B),P.return=L,L=P;break e}l(L,O);break}else t(L,O);O=O.sibling}B.type===S?(P=Ql(B.props.children,L.mode,P,B.key),P.return=L,L=P):(P=qs(B.type,B.key,B.props,null,L.mode,P),po(P,B),P.return=L,L=P)}return b(L);case E:e:{for(xe=B.key;O!==null;){if(O.key===xe)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){l(L,O.sibling),P=d(O,B.children||[]),P.return=L,L=P;break e}else{l(L,O);break}else t(L,O);O=O.sibling}P=Rd(B,L.mode,P),P.return=L,L=P}return b(L);case H:return B=Kl(B),Pe(L,O,B,P)}if(re(B))return fe(L,O,B,P);if(ce(B)){if(xe=ce(B),typeof xe!="function")throw Error(i(150));return B=xe.call(B),Se(L,O,B,P)}if(typeof B.then=="function")return Pe(L,O,Ks(B),P);if(B.$$typeof===R)return Pe(L,O,$s(L,B),P);Xs(L,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,O!==null&&O.tag===6?(l(L,O.sibling),P=d(O,B),P.return=L,L=P):(l(L,O),P=Td(B,L.mode,P),P.return=L,L=P),b(L)):l(L,O)}return function(L,O,B,P){try{mo=0;var xe=Pe(L,O,B,P);return Qr=null,xe}catch(ge){if(ge===Br||ge===Gs)throw ge;var Be=tn(29,ge,null,L.mode);return Be.lanes=P,Be.return=L,Be}finally{}}}var Fl=Zv(!0),Pv=Zv(!1),Fa=!1;function Qd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $d(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 Za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,($e&2)!==0){var d=o.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),o.pending=t,t=Hs(e),Dv(e,null,l),t}return Us(e,o,t,l),Hs(e)}function vo(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Qp(e,l)}}function Yd(e,t){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var d=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?d=f=b:f=f.next=b,l=l.next}while(l!==null);f===null?d=f=t:f=f.next=t}else d=f=t;l={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Gd=!1;function go(){if(Gd){var e=qr;if(e!==null)throw e}}function yo(e,t,l,o){Gd=!1;var d=e.updateQueue;Fa=!1;var f=d.firstBaseUpdate,b=d.lastBaseUpdate,N=d.shared.pending;if(N!==null){d.shared.pending=null;var M=N,Q=M.next;M.next=null,b===null?f=Q:b.next=Q,b=M;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,N=Z.lastBaseUpdate,N!==b&&(N===null?Z.firstBaseUpdate=Q:N.next=Q,Z.lastBaseUpdate=M))}if(f!==null){var I=d.baseState;b=0,Z=Q=M=null,N=f;do{var $=N.lane&-536870913,V=$!==N.lane;if(V?(ze&$)===$:(o&$)===$){$!==0&&$===Hr&&(Gd=!0),Z!==null&&(Z=Z.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var fe=e,Se=N;$=t;var Pe=l;switch(Se.tag){case 1:if(fe=Se.payload,typeof fe=="function"){I=fe.call(Pe,I,$);break e}I=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=Se.payload,$=typeof fe=="function"?fe.call(Pe,I,$):fe,$==null)break e;I=x({},I,$);break e;case 2:Fa=!0}}$=N.callback,$!==null&&(e.flags|=64,V&&(e.flags|=8192),V=d.callbacks,V===null?d.callbacks=[$]:V.push($))}else V={lane:$,tag:N.tag,payload:N.payload,callback:N.callback,next:null},Z===null?(Q=Z=V,M=I):Z=Z.next=V,b|=$;if(N=N.next,N===null){if(N=d.shared.pending,N===null)break;V=N,N=V.next,V.next=null,d.lastBaseUpdate=V,d.shared.pending=null}}while(!0);Z===null&&(M=I),d.baseState=M,d.firstBaseUpdate=Q,d.lastBaseUpdate=Z,f===null&&(d.shared.lanes=0),tl|=b,e.lanes=b,e.memoizedState=I}}function Jv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Iv(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Jv(l[e],t)}var $r=A(null),Fs=A(0);function Wv(e,t){e=ja,W(Fs,e),W($r,t),ja=e|t.baseLanes}function Vd(){W(Fs,ja),W($r,$r.current)}function Kd(){ja=Fs.current,F($r),F(Fs)}var nn=A(null),bn=null;function Ja(e){var t=e.alternate;W(ct,ct.current&1),W(nn,e),bn===null&&(t===null||$r.current!==null||t.memoizedState!==null)&&(bn=e)}function Xd(e){W(ct,ct.current),W(nn,e),bn===null&&(bn=e)}function eg(e){e.tag===22?(W(ct,ct.current),W(nn,e),bn===null&&(bn=e)):Ia()}function Ia(){W(ct,ct.current),W(nn,nn.current)}function an(e){F(nn),bn===e&&(bn=null),F(ct)}var ct=A(0);function Zs(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||eh(l)||th(l)))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 pa=0,_e=null,Fe=null,ht=null,Ps=!1,Yr=!1,Zl=!1,Js=0,xo=0,Gr=null,lE=0;function rt(){throw Error(i(321))}function Fd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!en(e[l],t[l]))return!1;return!0}function Zd(e,t,l,o,d,f){return pa=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Ug:df,Zl=!1,f=l(o,d),Zl=!1,Yr&&(f=ng(t,l,o,d)),tg(e),f}function tg(e){z.H=So;var t=Fe!==null&&Fe.next!==null;if(pa=0,ht=Fe=_e=null,Ps=!1,xo=0,Gr=null,t)throw Error(i(300));e===null||mt||(e=e.dependencies,e!==null&&Qs(e)&&(mt=!0))}function ng(e,t,l,o){_e=e;var d=0;do{if(Yr&&(Gr=null),xo=0,Yr=!1,25<=d)throw Error(i(301));if(d+=1,ht=Fe=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}z.H=Hg,f=t(l,o)}while(Yr);return f}function rE(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?bo(t):t,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(_e.flags|=1024),t}function Pd(){var e=Js!==0;return Js=0,e}function Jd(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Id(e){if(Ps){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ps=!1}pa=0,ht=Fe=_e=null,Yr=!1,xo=Js=0,Gr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?_e.memoizedState=ht=e:ht=ht.next=e,ht}function dt(){if(Fe===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=ht===null?_e.memoizedState:ht.next;if(t!==null)ht=t,Fe=e;else{if(e===null)throw _e.alternate===null?Error(i(467)):Error(i(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},ht===null?_e.memoizedState=ht=e:ht=ht.next=e}return ht}function Is(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bo(e){var t=xo;return xo+=1,Gr===null&&(Gr=[]),e=Kv(Gr,e,t),t=_e,(ht===null?t.memoizedState:ht.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Ug:df),e}function Ws(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bo(e);if(e.$$typeof===R)return Rt(e)}throw Error(i(438,String(e)))}function Wd(e){var t=null,l=_e.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var o=_e.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Is(),_e.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),o=0;o<e;o++)l[o]=ee;return t.index++,l}function va(e,t){return typeof t=="function"?t(e):t}function eu(e){var t=dt();return ef(t,Fe,e)}function ef(e,t,l){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var d=e.baseQueue,f=o.pending;if(f!==null){if(d!==null){var b=d.next;d.next=f.next,f.next=b}t.baseQueue=d=f,o.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{t=d.next;var N=b=null,M=null,Q=t,Z=!1;do{var I=Q.lane&-536870913;if(I!==Q.lane?(ze&I)===I:(pa&I)===I){var $=Q.revertLane;if($===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),I===Hr&&(Z=!0);else if((pa&$)===$){Q=Q.next,$===Hr&&(Z=!0);continue}else I={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(N=M=I,b=f):M=M.next=I,_e.lanes|=$,tl|=$;I=Q.action,Zl&&l(f,I),f=Q.hasEagerState?Q.eagerState:l(f,I)}else $={lane:I,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(N=M=$,b=f):M=M.next=$,_e.lanes|=I,tl|=I;Q=Q.next}while(Q!==null&&Q!==t);if(M===null?b=f:M.next=N,!en(f,e.memoizedState)&&(mt=!0,Z&&(l=qr,l!==null)))throw l;e.memoizedState=f,e.baseState=b,e.baseQueue=M,o.lastRenderedState=f}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function tf(e){var t=dt(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var o=l.dispatch,d=l.pending,f=t.memoizedState;if(d!==null){l.pending=null;var b=d=d.next;do f=e(f,b.action),b=b.next;while(b!==d);en(f,t.memoizedState)||(mt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,o]}function ag(e,t,l){var o=_e,d=dt(),f=Ue;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var b=!en((Fe||d).memoizedState,l);if(b&&(d.memoizedState=l,mt=!0),d=d.queue,lf(ig.bind(null,o,d,e),[e]),d.getSnapshot!==t||b||ht!==null&&ht.memoizedState.tag&1){if(o.flags|=2048,Vr(9,{destroy:void 0},rg.bind(null,o,d,l,t),null),Ie===null)throw Error(i(349));f||(pa&127)!==0||lg(o,t,l)}return l}function lg(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=_e.updateQueue,t===null?(t=Is(),_e.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function rg(e,t,l,o){t.value=l,t.getSnapshot=o,og(t)&&sg(e)}function ig(e,t,l){return l(function(){og(t)&&sg(e)})}function og(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!en(e,l)}catch{return!0}}function sg(e){var t=Bl(e,2);t!==null&&Kt(t,e,2)}function nf(e){var t=Ut();if(typeof e=="function"){var l=e;if(e=l(),Zl){Qa(!0);try{l()}finally{Qa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:e},t}function ug(e,t,l,o){return e.baseState=l,ef(e,Fe,typeof o=="function"?o:va)}function iE(e,t,l,o,d){if(au(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){f.listeners.push(b)}};z.T!==null?l(!0):f.isTransition=!1,o(f),l=t.pending,l===null?(f.next=t.pending=f,cg(t,f)):(f.next=l.next,t.pending=l.next=f)}}function cg(e,t){var l=t.action,o=t.payload,d=e.state;if(t.isTransition){var f=z.T,b={};z.T=b;try{var N=l(d,o),M=z.S;M!==null&&M(b,N),dg(e,t,N)}catch(Q){af(e,t,Q)}finally{f!==null&&b.types!==null&&(f.types=b.types),z.T=f}}else try{f=l(d,o),dg(e,t,f)}catch(Q){af(e,t,Q)}}function dg(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){fg(e,t,o)},function(o){return af(e,t,o)}):fg(e,t,l)}function fg(e,t,l){t.status="fulfilled",t.value=l,hg(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,cg(e,l)))}function af(e,t,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=l,hg(t),t=t.next;while(t!==o)}e.action=null}function hg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mg(e,t){return t}function pg(e,t){if(Ue){var l=Ie.formState;if(l!==null){e:{var o=_e;if(Ue){if(We){t:{for(var d=We,f=xn;d.nodeType!==8;){if(!f){d=null;break t}if(d=wn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){We=wn(d.nextSibling),o=d.data==="F!";break e}}Ka(o)}o=!1}o&&(t=l[0])}}return l=Ut(),l.memoizedState=l.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mg,lastRenderedState:t},l.queue=o,l=Og.bind(null,_e,o),o.dispatch=l,o=nf(!1),f=cf.bind(null,_e,!1,o.queue),o=Ut(),d={state:t,dispatch:null,action:e,pending:null},o.queue=d,l=iE.bind(null,_e,d,f,l),d.dispatch=l,o.memoizedState=e,[t,l,!1]}function vg(e){var t=dt();return gg(t,Fe,e)}function gg(e,t,l){if(t=ef(e,t,mg)[0],e=eu(va)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=bo(t)}catch(b){throw b===Br?Gs:b}else o=t;t=dt();var d=t.queue,f=d.dispatch;return l!==t.memoizedState&&(_e.flags|=2048,Vr(9,{destroy:void 0},oE.bind(null,d,l),null)),[o,f,e]}function oE(e,t){e.action=t}function yg(e){var t=dt(),l=Fe;if(l!==null)return gg(t,l,e);dt(),t=t.memoizedState,l=dt();var o=l.queue.dispatch;return l.memoizedState=e,[t,o,!1]}function Vr(e,t,l,o){return e={tag:e,create:l,deps:o,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Is(),_e.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(o=l.next,l.next=e,e.next=o,t.lastEffect=e),e}function xg(){return dt().memoizedState}function tu(e,t,l,o){var d=Ut();_e.flags|=e,d.memoizedState=Vr(1|t,{destroy:void 0},l,o===void 0?null:o)}function nu(e,t,l,o){var d=dt();o=o===void 0?null:o;var f=d.memoizedState.inst;Fe!==null&&o!==null&&Fd(o,Fe.memoizedState.deps)?d.memoizedState=Vr(t,f,l,o):(_e.flags|=e,d.memoizedState=Vr(1|t,f,l,o))}function bg(e,t){tu(8390656,8,e,t)}function lf(e,t){nu(2048,8,e,t)}function sE(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Is(),_e.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function wg(e){var t=dt().memoizedState;return sE({ref:t,nextImpl:e}),function(){if(($e&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Sg(e,t){return nu(4,2,e,t)}function jg(e,t){return nu(4,4,e,t)}function Eg(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ng(e,t,l){l=l!=null?l.concat([e]):null,nu(4,4,Eg.bind(null,t,e),l)}function rf(){}function Cg(e,t){var l=dt();t=t===void 0?null:t;var o=l.memoizedState;return t!==null&&Fd(t,o[1])?o[0]:(l.memoizedState=[e,t],e)}function _g(e,t){var l=dt();t=t===void 0?null:t;var o=l.memoizedState;if(t!==null&&Fd(t,o[1]))return o[0];if(o=e(),Zl){Qa(!0);try{e()}finally{Qa(!1)}}return l.memoizedState=[o,t],o}function of(e,t,l){return l===void 0||(pa&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ty(),_e.lanes|=e,tl|=e,l)}function Tg(e,t,l,o){return en(l,t)?l:$r.current!==null?(e=of(e,l,o),en(e,t)||(mt=!0),e):(pa&42)===0||(pa&1073741824)!==0&&(ze&261930)===0?(mt=!0,e.memoizedState=l):(e=Ty(),_e.lanes|=e,tl|=e,t)}function Rg(e,t,l,o,d){var f=J.p;J.p=f!==0&&8>f?f:8;var b=z.T,N={};z.T=N,cf(e,!1,t,l);try{var M=d(),Q=z.S;if(Q!==null&&Q(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Z=aE(M,o);wo(e,t,Z,on(e))}else wo(e,t,o,on(e))}catch(I){wo(e,t,{then:function(){},status:"rejected",reason:I},on())}finally{J.p=f,b!==null&&N.types!==null&&(b.types=N.types),z.T=b}}function uE(){}function sf(e,t,l,o){if(e.tag!==5)throw Error(i(476));var d=Mg(e).queue;Rg(e,d,t,G,l===null?uE:function(){return Ag(e),l(o)})}function Mg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:G},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:va,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ag(e){var t=Mg(e);t.next===null&&(t=e.alternate.memoizedState),wo(e,t.next.queue,{},on())}function uf(){return Rt(Ho)}function kg(){return dt().memoizedState}function Dg(){return dt().memoizedState}function cE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=on();e=Za(l);var o=Pa(t,e,l);o!==null&&(Kt(o,t,l),vo(o,t,l)),t={cache:Ud()},e.payload=t;return}t=t.return}}function dE(e,t,l){var o=on();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},au(e)?zg(t,l):(l=Cd(e,t,l,o),l!==null&&(Kt(l,e,o),Lg(l,t,o)))}function Og(e,t,l){var o=on();wo(e,t,l,o)}function wo(e,t,l,o){var d={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(au(e))zg(t,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var b=t.lastRenderedState,N=f(b,l);if(d.hasEagerState=!0,d.eagerState=N,en(N,b))return Us(e,t,d,0),Ie===null&&Ls(),!1}catch{}finally{}if(l=Cd(e,t,d,o),l!==null)return Kt(l,e,o),Lg(l,t,o),!0}return!1}function cf(e,t,l,o){if(o={lane:2,revertLane:$f(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},au(e)){if(t)throw Error(i(479))}else t=Cd(e,l,o,2),t!==null&&Kt(t,e,2)}function au(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function zg(e,t){Yr=Ps=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Lg(e,t,l){if((l&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Qp(e,l)}}var So={readContext:Rt,use:Ws,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};So.useEffectEvent=rt;var Ug={readContext:Rt,use:Ws,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Rt,useEffect:bg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,tu(4194308,4,Eg.bind(null,t,e),l)},useLayoutEffect:function(e,t){return tu(4194308,4,e,t)},useInsertionEffect:function(e,t){tu(4,2,e,t)},useMemo:function(e,t){var l=Ut();t=t===void 0?null:t;var o=e();if(Zl){Qa(!0);try{e()}finally{Qa(!1)}}return l.memoizedState=[o,t],o},useReducer:function(e,t,l){var o=Ut();if(l!==void 0){var d=l(t);if(Zl){Qa(!0);try{l(t)}finally{Qa(!1)}}}else d=t;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=dE.bind(null,_e,e),[o.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=nf(e);var t=e.queue,l=Og.bind(null,_e,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:rf,useDeferredValue:function(e,t){var l=Ut();return of(l,e,t)},useTransition:function(){var e=nf(!1);return e=Rg.bind(null,_e,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var o=_e,d=Ut();if(Ue){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),Ie===null)throw Error(i(349));(ze&127)!==0||lg(o,t,l)}d.memoizedState=l;var f={value:l,getSnapshot:t};return d.queue=f,bg(ig.bind(null,o,f,e),[e]),o.flags|=2048,Vr(9,{destroy:void 0},rg.bind(null,o,f,l,t),null),l},useId:function(){var e=Ut(),t=Ie.identifierPrefix;if(Ue){var l=Kn,o=Vn;l=(o&~(1<<32-Wt(o)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Js++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=lE++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:uf,useFormState:pg,useActionState:pg,useOptimistic:function(e){var t=Ut();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=cf.bind(null,_e,!0,l),l.dispatch=t,[e,t]},useMemoCache:Wd,useCacheRefresh:function(){return Ut().memoizedState=cE.bind(null,_e)},useEffectEvent:function(e){var t=Ut(),l={impl:e};return t.memoizedState=l,function(){if(($e&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},df={readContext:Rt,use:Ws,useCallback:Cg,useContext:Rt,useEffect:lf,useImperativeHandle:Ng,useInsertionEffect:Sg,useLayoutEffect:jg,useMemo:_g,useReducer:eu,useRef:xg,useState:function(){return eu(va)},useDebugValue:rf,useDeferredValue:function(e,t){var l=dt();return Tg(l,Fe.memoizedState,e,t)},useTransition:function(){var e=eu(va)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:bo(e),t]},useSyncExternalStore:ag,useId:kg,useHostTransitionStatus:uf,useFormState:vg,useActionState:vg,useOptimistic:function(e,t){var l=dt();return ug(l,Fe,e,t)},useMemoCache:Wd,useCacheRefresh:Dg};df.useEffectEvent=wg;var Hg={readContext:Rt,use:Ws,useCallback:Cg,useContext:Rt,useEffect:lf,useImperativeHandle:Ng,useInsertionEffect:Sg,useLayoutEffect:jg,useMemo:_g,useReducer:tf,useRef:xg,useState:function(){return tf(va)},useDebugValue:rf,useDeferredValue:function(e,t){var l=dt();return Fe===null?of(l,e,t):Tg(l,Fe.memoizedState,e,t)},useTransition:function(){var e=tf(va)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:bo(e),t]},useSyncExternalStore:ag,useId:kg,useHostTransitionStatus:uf,useFormState:yg,useActionState:yg,useOptimistic:function(e,t){var l=dt();return Fe!==null?ug(l,Fe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Wd,useCacheRefresh:Dg};Hg.useEffectEvent=wg;function ff(e,t,l,o){t=e.memoizedState,l=l(o,t),l=l==null?t:x({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var hf={enqueueSetState:function(e,t,l){e=e._reactInternals;var o=on(),d=Za(o);d.payload=t,l!=null&&(d.callback=l),t=Pa(e,d,o),t!==null&&(Kt(t,e,o),vo(t,e,o))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var o=on(),d=Za(o);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Pa(e,d,o),t!==null&&(Kt(t,e,o),vo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=on(),o=Za(l);o.tag=2,t!=null&&(o.callback=t),t=Pa(e,o,l),t!==null&&(Kt(t,e,l),vo(t,e,l))}};function qg(e,t,l,o,d,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,b):t.prototype&&t.prototype.isPureReactComponent?!oo(l,o)||!oo(d,f):!0}function Bg(e,t,l,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,o),t.state!==e&&hf.enqueueReplaceState(t,t.state,null)}function Pl(e,t){var l=t;if("ref"in t){l={};for(var o in t)o!=="ref"&&(l[o]=t[o])}if(e=e.defaultProps){l===t&&(l=x({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function Qg(e){zs(e)}function $g(e){console.error(e)}function Yg(e){zs(e)}function lu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Gg(e,t,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function mf(e,t,l){return l=Za(l),l.tag=3,l.payload={element:null},l.callback=function(){lu(e,t)},l}function Vg(e){return e=Za(e),e.tag=3,e}function Kg(e,t,l,o){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var f=o.value;e.payload=function(){return d(f)},e.callback=function(){Gg(t,l,o)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Gg(t,l,o),typeof d!="function"&&(nl===null?nl=new Set([this]):nl.add(this));var N=o.stack;this.componentDidCatch(o.value,{componentStack:N!==null?N:""})})}function fE(e,t,l,o,d){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=l.alternate,t!==null&&Ur(t,l,d,!0),l=nn.current,l!==null){switch(l.tag){case 31:case 13:return bn===null?vu():l.alternate===null&&it===0&&(it=3),l.flags&=-257,l.flags|=65536,l.lanes=d,o===Vs?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([o]):t.add(o),qf(e,o,d)),!1;case 22:return l.flags|=65536,o===Vs?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([o]):l.add(o)),qf(e,o,d)),!1}throw Error(i(435,l.tag))}return qf(e,o,d),vu(),!1}if(Ue)return t=nn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,o!==kd&&(e=Error(i(422),{cause:o}),co(vn(e,l)))):(o!==kd&&(t=Error(i(423),{cause:o}),co(vn(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=vn(o,l),d=mf(e.stateNode,o,d),Yd(e,d),it!==4&&(it=2)),!1;var f=Error(i(520),{cause:o});if(f=vn(f,l),Mo===null?Mo=[f]:Mo.push(f),it!==4&&(it=2),t===null)return!0;o=vn(o,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=mf(l.stateNode,o,e),Yd(l,e),!1;case 1:if(t=l.type,f=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(nl===null||!nl.has(f))))return l.flags|=65536,d&=-d,l.lanes|=d,d=Vg(d),Kg(d,e,l,o),Yd(l,d),!1}l=l.return}while(l!==null);return!1}var pf=Error(i(461)),mt=!1;function Mt(e,t,l,o){t.child=e===null?Pv(t,null,l,o):Fl(t,e.child,l,o)}function Xg(e,t,l,o,d){l=l.render;var f=t.ref;if("ref"in o){var b={};for(var N in o)N!=="ref"&&(b[N]=o[N])}else b=o;return Gl(t),o=Zd(e,t,l,b,f,d),N=Pd(),e!==null&&!mt?(Jd(e,t,d),ga(e,t,d)):(Ue&&N&&Md(t),t.flags|=1,Mt(e,t,o,d),t.child)}function Fg(e,t,l,o,d){if(e===null){var f=l.type;return typeof f=="function"&&!_d(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Zg(e,t,f,o,d)):(e=qs(l.type,null,o,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!jf(e,d)){var b=f.memoizedProps;if(l=l.compare,l=l!==null?l:oo,l(b,o)&&e.ref===t.ref)return ga(e,t,d)}return t.flags|=1,e=da(f,o),e.ref=t.ref,e.return=t,t.child=e}function Zg(e,t,l,o,d){if(e!==null){var f=e.memoizedProps;if(oo(f,o)&&e.ref===t.ref)if(mt=!1,t.pendingProps=o=f,jf(e,d))(e.flags&131072)!==0&&(mt=!0);else return t.lanes=e.lanes,ga(e,t,d)}return vf(e,t,l,o,d)}function Pg(e,t,l,o){var d=o.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(o=t.child=e.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~f}else o=0,t.child=null;return Jg(e,t,f,l,o)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ys(t,f!==null?f.cachePool:null),f!==null?Wv(t,f):Vd(),eg(t);else return o=t.lanes=536870912,Jg(e,t,f!==null?f.baseLanes|l:l,l,o)}else f!==null?(Ys(t,f.cachePool),Wv(t,f),Ia(),t.memoizedState=null):(e!==null&&Ys(t,null),Vd(),Ia());return Mt(e,t,d,l),t.child}function jo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jg(e,t,l,o,d){var f=qd();return f=f===null?null:{parent:ft._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Ys(t,null),Vd(),eg(t),e!==null&&Ur(e,t,o,!0),t.childLanes=d,null}function ru(e,t){return t=ou({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ig(e,t,l){return Fl(t,e.child,null,l),e=ru(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function hE(e,t,l){var o=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(o.mode==="hidden")return e=ru(t,o),t.lanes=536870912,jo(null,e);if(Xd(t),(e=We)?(e=c0(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ga!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=zv(e),l.return=t,t.child=l,Tt=t,We=null)):e=null,e===null)throw Ka(t);return t.lanes=536870912,null}return ru(t,o)}var f=e.memoizedState;if(f!==null){var b=f.dehydrated;if(Xd(t),d)if(t.flags&256)t.flags&=-257,t=Ig(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(mt||Ur(e,t,l,!1),d=(l&e.childLanes)!==0,mt||d){if(o=Ie,o!==null&&(b=$p(o,l),b!==0&&b!==f.retryLane))throw f.retryLane=b,Bl(e,b),Kt(o,e,b),pf;vu(),t=Ig(e,t,l)}else e=f.treeContext,We=wn(b.nextSibling),Tt=t,Ue=!0,Va=null,xn=!1,e!==null&&Hv(t,e),t=ru(t,o),t.flags|=4096;return t}return e=da(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function iu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function vf(e,t,l,o,d){return Gl(t),l=Zd(e,t,l,o,void 0,d),o=Pd(),e!==null&&!mt?(Jd(e,t,d),ga(e,t,d)):(Ue&&o&&Md(t),t.flags|=1,Mt(e,t,l,d),t.child)}function Wg(e,t,l,o,d,f){return Gl(t),t.updateQueue=null,l=ng(t,o,l,d),tg(e),o=Pd(),e!==null&&!mt?(Jd(e,t,f),ga(e,t,f)):(Ue&&o&&Md(t),t.flags|=1,Mt(e,t,l,f),t.child)}function ey(e,t,l,o,d){if(Gl(t),t.stateNode===null){var f=Dr,b=l.contextType;typeof b=="object"&&b!==null&&(f=Rt(b)),f=new l(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=hf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},Qd(t),b=l.contextType,f.context=typeof b=="object"&&b!==null?Rt(b):Dr,f.state=t.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(ff(t,l,b,o),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(b=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),b!==f.state&&hf.enqueueReplaceState(f,f.state,null),yo(t,o,f,d),go(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var N=t.memoizedProps,M=Pl(l,N);f.props=M;var Q=f.context,Z=l.contextType;b=Dr,typeof Z=="object"&&Z!==null&&(b=Rt(Z));var I=l.getDerivedStateFromProps;Z=typeof I=="function"||typeof f.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,Z||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(N||Q!==b)&&Bg(t,f,o,b),Fa=!1;var $=t.memoizedState;f.state=$,yo(t,o,f,d),go(),Q=t.memoizedState,N||$!==Q||Fa?(typeof I=="function"&&(ff(t,l,I,o),Q=t.memoizedState),(M=Fa||qg(t,l,M,o,$,Q,b))?(Z||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=Q),f.props=o,f.state=Q,f.context=b,o=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,$d(e,t),b=t.memoizedProps,Z=Pl(l,b),f.props=Z,I=t.pendingProps,$=f.context,Q=l.contextType,M=Dr,typeof Q=="object"&&Q!==null&&(M=Rt(Q)),N=l.getDerivedStateFromProps,(Q=typeof N=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==I||$!==M)&&Bg(t,f,o,M),Fa=!1,$=t.memoizedState,f.state=$,yo(t,o,f,d),go();var V=t.memoizedState;b!==I||$!==V||Fa||e!==null&&e.dependencies!==null&&Qs(e.dependencies)?(typeof N=="function"&&(ff(t,l,N,o),V=t.memoizedState),(Z=Fa||qg(t,l,Z,o,$,V,M)||e!==null&&e.dependencies!==null&&Qs(e.dependencies))?(Q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,V,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,V,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=V),f.props=o,f.state=V,f.context=M,o=Z):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&$===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&$===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,iu(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=Fl(t,e.child,null,d),t.child=Fl(t,null,l,d)):Mt(e,t,l,d),t.memoizedState=f.state,e=t.child):e=ga(e,t,d),e}function ty(e,t,l,o){return $l(),t.flags|=256,Mt(e,t,l,o),t.child}var gf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function yf(e){return{baseLanes:e,cachePool:Gv()}}function xf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=rn),e}function ny(e,t,l){var o=t.pendingProps,d=!1,f=(t.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),b&&(d=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(d?Ja(t):Ia(),(e=We)?(e=c0(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ga!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=zv(e),l.return=t,t.child=l,Tt=t,We=null)):e=null,e===null)throw Ka(t);return th(e)?t.lanes=32:t.lanes=536870912,null}var N=o.children;return o=o.fallback,d?(Ia(),d=t.mode,N=ou({mode:"hidden",children:N},d),o=Ql(o,d,l,null),N.return=t,o.return=t,N.sibling=o,t.child=N,o=t.child,o.memoizedState=yf(l),o.childLanes=xf(e,b,l),t.memoizedState=gf,jo(null,o)):(Ja(t),bf(t,N))}var M=e.memoizedState;if(M!==null&&(N=M.dehydrated,N!==null)){if(f)t.flags&256?(Ja(t),t.flags&=-257,t=wf(e,t,l)):t.memoizedState!==null?(Ia(),t.child=e.child,t.flags|=128,t=null):(Ia(),N=o.fallback,d=t.mode,o=ou({mode:"visible",children:o.children},d),N=Ql(N,d,l,null),N.flags|=2,o.return=t,N.return=t,o.sibling=N,t.child=o,Fl(t,e.child,null,l),o=t.child,o.memoizedState=yf(l),o.childLanes=xf(e,b,l),t.memoizedState=gf,t=jo(null,o));else if(Ja(t),th(N)){if(b=N.nextSibling&&N.nextSibling.dataset,b)var Q=b.dgst;b=Q,o=Error(i(419)),o.stack="",o.digest=b,co({value:o,source:null,stack:null}),t=wf(e,t,l)}else if(mt||Ur(e,t,l,!1),b=(l&e.childLanes)!==0,mt||b){if(b=Ie,b!==null&&(o=$p(b,l),o!==0&&o!==M.retryLane))throw M.retryLane=o,Bl(e,o),Kt(b,e,o),pf;eh(N)||vu(),t=wf(e,t,l)}else eh(N)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,We=wn(N.nextSibling),Tt=t,Ue=!0,Va=null,xn=!1,e!==null&&Hv(t,e),t=bf(t,o.children),t.flags|=4096);return t}return d?(Ia(),N=o.fallback,d=t.mode,M=e.child,Q=M.sibling,o=da(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,Q!==null?N=da(Q,N):(N=Ql(N,d,l,null),N.flags|=2),N.return=t,o.return=t,o.sibling=N,t.child=o,jo(null,o),o=t.child,N=e.child.memoizedState,N===null?N=yf(l):(d=N.cachePool,d!==null?(M=ft._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=Gv(),N={baseLanes:N.baseLanes|l,cachePool:d}),o.memoizedState=N,o.childLanes=xf(e,b,l),t.memoizedState=gf,jo(e.child,o)):(Ja(t),l=e.child,e=l.sibling,l=da(l,{mode:"visible",children:o.children}),l.return=t,l.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=l,t.memoizedState=null,l)}function bf(e,t){return t=ou({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ou(e,t){return e=tn(22,e,null,t),e.lanes=0,e}function wf(e,t,l){return Fl(t,e.child,null,l),e=bf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ay(e,t,l){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),zd(e.return,t,l)}function Sf(e,t,l,o,d,f){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:d,treeForkCount:f}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=o,b.tail=l,b.tailMode=d,b.treeForkCount=f)}function ly(e,t,l){var o=t.pendingProps,d=o.revealOrder,f=o.tail;o=o.children;var b=ct.current,N=(b&2)!==0;if(N?(b=b&1|2,t.flags|=128):b&=1,W(ct,b),Mt(e,t,o,l),o=Ue?uo:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ay(e,l,t);else if(e.tag===19)ay(e,l,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(d){case"forwards":for(l=t.child,d=null;l!==null;)e=l.alternate,e!==null&&Zs(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),Sf(t,!1,d,l,f,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&Zs(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}Sf(t,!0,l,null,f,o);break;case"together":Sf(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function ga(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Ur(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,l=da(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=da(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function jf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qs(e)))}function mE(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Xa(t,ft,e.memoizedState.cache),$l();break;case 27:case 5:Ne(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Xd(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ja(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ny(e,t,l):(Ja(t),e=ga(e,t,l),e!==null?e.sibling:null);Ja(t);break;case 19:var d=(e.flags&128)!==0;if(o=(l&t.childLanes)!==0,o||(Ur(e,t,l,!1),o=(l&t.childLanes)!==0),d){if(o)return ly(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),W(ct,ct.current),o)break;return null;case 22:return t.lanes=0,Pg(e,t,l,t.pendingProps);case 24:Xa(t,ft,e.memoizedState.cache)}return ga(e,t,l)}function ry(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)mt=!0;else{if(!jf(e,l)&&(t.flags&128)===0)return mt=!1,mE(e,t,l);mt=(e.flags&131072)!==0}else mt=!1,Ue&&(t.flags&1048576)!==0&&Uv(t,uo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Kl(t.elementType),t.type=e,typeof e=="function")_d(e)?(o=Pl(e,o),t.tag=1,t=ey(null,t,e,o,l)):(t.tag=0,t=vf(null,t,e,o,l));else{if(e!=null){var d=e.$$typeof;if(d===D){t.tag=11,t=Xg(null,t,e,o,l);break e}else if(d===q){t.tag=14,t=Fg(null,t,e,o,l);break e}}throw t=ae(e)||e,Error(i(306,t,""))}}return t;case 0:return vf(e,t,t.type,t.pendingProps,l);case 1:return o=t.type,d=Pl(o,t.pendingProps),ey(e,t,o,d,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;d=f.element,$d(e,t),yo(t,o,null,l);var b=t.memoizedState;if(o=b.cache,Xa(t,ft,o),o!==f.cache&&Ld(t,[ft],l,!0),go(),o=b.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=ty(e,t,o,l);break e}else if(o!==d){d=vn(Error(i(424)),t),co(d),t=ty(e,t,o,l);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(We=wn(e.firstChild),Tt=t,Ue=!0,Va=null,xn=!0,l=Pv(t,null,o,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if($l(),o===d){t=ga(e,t,l);break e}Mt(e,t,o,l)}t=t.child}return t;case 26:return iu(e,t),e===null?(l=v0(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ue||(l=t.type,e=t.pendingProps,o=ju(je.current).createElement(l),o[_t]=t,o[Bt]=e,At(o,l,e),Et(o),t.stateNode=o):t.memoizedState=v0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&Ue&&(o=t.stateNode=h0(t.type,t.pendingProps,je.current),Tt=t,xn=!0,d=We,il(t.type)?(nh=d,We=wn(o.firstChild)):We=d),Mt(e,t,t.pendingProps.children,l),iu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((d=o=We)&&(o=GE(o,t.type,t.pendingProps,xn),o!==null?(t.stateNode=o,Tt=t,We=wn(o.firstChild),xn=!1,d=!0):d=!1),d||Ka(t)),Ne(t),d=t.type,f=t.pendingProps,b=e!==null?e.memoizedProps:null,o=f.children,Jf(d,f)?o=null:b!==null&&Jf(d,b)&&(t.flags|=32),t.memoizedState!==null&&(d=Zd(e,t,rE,null,null,l),Ho._currentValue=d),iu(e,t),Mt(e,t,o,l),t.child;case 6:return e===null&&Ue&&((e=l=We)&&(l=VE(l,t.pendingProps,xn),l!==null?(t.stateNode=l,Tt=t,We=null,e=!0):e=!1),e||Ka(t)),null;case 13:return ny(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Fl(t,null,o,l):Mt(e,t,o,l),t.child;case 11:return Xg(e,t,t.type,t.pendingProps,l);case 7:return Mt(e,t,t.pendingProps,l),t.child;case 8:return Mt(e,t,t.pendingProps.children,l),t.child;case 12:return Mt(e,t,t.pendingProps.children,l),t.child;case 10:return o=t.pendingProps,Xa(t,t.type,o.value),Mt(e,t,o.children,l),t.child;case 9:return d=t.type._context,o=t.pendingProps.children,Gl(t),d=Rt(d),o=o(d),t.flags|=1,Mt(e,t,o,l),t.child;case 14:return Fg(e,t,t.type,t.pendingProps,l);case 15:return Zg(e,t,t.type,t.pendingProps,l);case 19:return ly(e,t,l);case 31:return hE(e,t,l);case 22:return Pg(e,t,l,t.pendingProps);case 24:return Gl(t),o=Rt(ft),e===null?(d=qd(),d===null&&(d=Ie,f=Ud(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=l),d=f),t.memoizedState={parent:o,cache:d},Qd(t),Xa(t,ft,d)):((e.lanes&l)!==0&&($d(e,t),yo(t,null,null,l),go()),d=e.memoizedState,f=t.memoizedState,d.parent!==o?(d={parent:o,cache:o},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Xa(t,ft,o)):(o=f.cache,Xa(t,ft,o),o!==d.cache&&Ld(t,[ft],l,!0))),Mt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ya(e){e.flags|=4}function Ef(e,t,l,o,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(ky())e.flags|=8192;else throw Xl=Vs,Bd}else e.flags&=-16777217}function iy(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!w0(t))if(ky())e.flags|=8192;else throw Xl=Vs,Bd}function su(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?qp():536870912,e.lanes|=t,Zr|=t)}function Eo(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=l,t}function pE(e,t,l){var o=t.pendingProps;switch(Ad(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return l=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ma(ft),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Lr(t)?ya(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Dd())),et(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(ya(t),f!==null?(et(t),iy(t,f)):(et(t),Ef(t,d,null,o,l))):f?f!==e.memoizedState?(ya(t),et(t),iy(t,f)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ya(t),et(t),Ef(t,d,e,o,l)),null;case 27:if(qe(t),l=je.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ya(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return et(t),null}e=le.current,Lr(t)?qv(t):(e=h0(d,o,l),t.stateNode=e,ya(t))}return et(t),null;case 5:if(qe(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ya(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return et(t),null}if(f=le.current,Lr(t))qv(t);else{var b=ju(je.current);switch(f){case 1:f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=b.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?b.createElement("select",{is:o.is}):b.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?b.createElement(d,{is:o.is}):b.createElement(d)}}f[_t]=t,f[Bt]=o;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)f.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=f;e:switch(At(f,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ya(t)}}return et(t),Ef(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ya(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=je.current,Lr(t)){if(e=t.stateNode,l=t.memoizedProps,o=null,d=Tt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[_t]=t,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||n0(e.nodeValue,l)),e||Ka(t,!0)}else e=ju(e).createTextNode(o),e[_t]=t,t.stateNode=e}return et(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(o=Lr(t),l!==null){if(e===null){if(!o)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[_t]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else l=Dd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(i(558))}return et(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Lr(t),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[_t]=t}else $l(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),d=!1}else d=Dd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=l,t):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=t.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==d&&(o.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),su(t,t.updateQueue),et(t),null);case 4:return ye(),e===null&&Kf(t.stateNode.containerInfo),et(t),null;case 10:return ma(t.type),et(t),null;case 19:if(F(ct),o=t.memoizedState,o===null)return et(t),null;if(d=(t.flags&128)!==0,f=o.rendering,f===null)if(d)Eo(o,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Zs(e),f!==null){for(t.flags|=128,Eo(o,!1),e=f.updateQueue,t.updateQueue=e,su(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ov(l,e),l=l.sibling;return W(ct,ct.current&1|2),Ue&&fa(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Jt()>hu&&(t.flags|=128,d=!0,Eo(o,!1),t.lanes=4194304)}else{if(!d)if(e=Zs(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,su(t,e),Eo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!Ue)return et(t),null}else 2*Jt()-o.renderingStartTime>hu&&l!==536870912&&(t.flags|=128,d=!0,Eo(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Jt(),e.sibling=null,l=ct.current,W(ct,d?l&1|2:l&1),Ue&&fa(t,o.treeForkCount),e):(et(t),null);case 22:case 23:return an(t),Kd(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(l&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),l=t.updateQueue,l!==null&&su(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(t.flags|=2048),e!==null&&F(Vl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ma(ft),et(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function vE(e,t){switch(Ad(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ma(ft),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qe(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(i(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));$l()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ct),null;case 4:return ye(),null;case 10:return ma(t.type),null;case 22:case 23:return an(t),Kd(),e!==null&&F(Vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ma(ft),null;case 25:return null;default:return null}}function oy(e,t){switch(Ad(t),t.tag){case 3:ma(ft),ye();break;case 26:case 27:case 5:qe(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:F(ct);break;case 10:ma(t.type);break;case 22:case 23:an(t),Kd(),e!==null&&F(Vl);break;case 24:ma(ft)}}function No(e,t){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var d=o.next;l=d;do{if((l.tag&e)===e){o=void 0;var f=l.create,b=l.inst;o=f(),b.destroy=o}l=l.next}while(l!==d)}}catch(N){Xe(t,t.return,N)}}function Wa(e,t,l){try{var o=t.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var f=d.next;o=f;do{if((o.tag&e)===e){var b=o.inst,N=b.destroy;if(N!==void 0){b.destroy=void 0,d=t;var M=l,Q=N;try{Q()}catch(Z){Xe(d,M,Z)}}}o=o.next}while(o!==f)}}catch(Z){Xe(t,t.return,Z)}}function sy(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Iv(t,l)}catch(o){Xe(e,e.return,o)}}}function uy(e,t,l){l.props=Pl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Xe(e,t,o)}}function Co(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof l=="function"?e.refCleanup=l(o):l.current=o}}catch(d){Xe(e,t,d)}}function Xn(e,t){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(d){Xe(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Xe(e,t,d)}else l.current=null}function cy(e){var t=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(d){Xe(e,e.return,d)}}function Nf(e,t,l){try{var o=e.stateNode;HE(o,e.type,l,t),o[Bt]=t}catch(d){Xe(e,e.return,d)}}function dy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&il(e.type)||e.tag===4}function Cf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dy(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&&il(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 _f(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ua));else if(o!==4&&(o===27&&il(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(_f(e,t,l),e=e.sibling;e!==null;)_f(e,t,l),e=e.sibling}function uu(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(o!==4&&(o===27&&il(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(uu(e,t,l),e=e.sibling;e!==null;)uu(e,t,l),e=e.sibling}function fy(e){var t=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);At(t,o,l),t[_t]=e,t[Bt]=l}catch(f){Xe(e,e.return,f)}}var xa=!1,pt=!1,Tf=!1,hy=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function gE(e,t){if(e=e.containerInfo,Zf=Mu,e=Nv(e),bd(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var d=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var b=0,N=-1,M=-1,Q=0,Z=0,I=e,$=null;t:for(;;){for(var V;I!==l||d!==0&&I.nodeType!==3||(N=b+d),I!==f||o!==0&&I.nodeType!==3||(M=b+o),I.nodeType===3&&(b+=I.nodeValue.length),(V=I.firstChild)!==null;)$=I,I=V;for(;;){if(I===e)break t;if($===l&&++Q===d&&(N=b),$===f&&++Z===o&&(M=b),(V=I.nextSibling)!==null)break;I=$,$=I.parentNode}I=V}l=N===-1||M===-1?null:{start:N,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Pf={focusedElem:e,selectionRange:l},Mu=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,f=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(l=0;l<e.length;l++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,d=f.memoizedProps,f=f.memoizedState,o=l.stateNode;try{var fe=Pl(l.type,d);e=o.getSnapshotBeforeUpdate(fe,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Xe(l,l.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Wf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Wf(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function my(e,t,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:wa(e,l),o&4&&No(5,l);break;case 1:if(wa(e,l),o&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(b){Xe(l,l.return,b)}else{var d=Pl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Xe(l,l.return,b)}}o&64&&sy(l),o&512&&Co(l,l.return);break;case 3:if(wa(e,l),o&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Iv(e,t)}catch(b){Xe(l,l.return,b)}}break;case 27:t===null&&o&4&&fy(l);case 26:case 5:wa(e,l),t===null&&o&4&&cy(l),o&512&&Co(l,l.return);break;case 12:wa(e,l);break;case 31:wa(e,l),o&4&&gy(e,l);break;case 13:wa(e,l),o&4&&yy(e,l),o&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=CE.bind(null,l),KE(e,l))));break;case 22:if(o=l.memoizedState!==null||xa,!o){t=t!==null&&t.memoizedState!==null||pt,d=xa;var f=pt;xa=o,(pt=t)&&!f?Sa(e,l,(l.subtreeFlags&8772)!==0):wa(e,l),xa=d,pt=f}break;case 30:break;default:wa(e,l)}}function py(e){var t=e.alternate;t!==null&&(e.alternate=null,py(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ad(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 tt=null,$t=!1;function ba(e,t,l){for(l=l.child;l!==null;)vy(e,t,l),l=l.sibling}function vy(e,t,l){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(Zi,l)}catch{}switch(l.tag){case 26:pt||Xn(l,t),ba(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:pt||Xn(l,t);var o=tt,d=$t;il(l.type)&&(tt=l.stateNode,$t=!1),ba(e,t,l),zo(l.stateNode),tt=o,$t=d;break;case 5:pt||Xn(l,t);case 6:if(o=tt,d=$t,tt=null,ba(e,t,l),tt=o,$t=d,tt!==null)if($t)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(l.stateNode)}catch(f){Xe(l,t,f)}else try{tt.removeChild(l.stateNode)}catch(f){Xe(l,t,f)}break;case 18:tt!==null&&($t?(e=tt,s0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ai(e)):s0(tt,l.stateNode));break;case 4:o=tt,d=$t,tt=l.stateNode.containerInfo,$t=!0,ba(e,t,l),tt=o,$t=d;break;case 0:case 11:case 14:case 15:Wa(2,l,t),pt||Wa(4,l,t),ba(e,t,l);break;case 1:pt||(Xn(l,t),o=l.stateNode,typeof o.componentWillUnmount=="function"&&uy(l,t,o)),ba(e,t,l);break;case 21:ba(e,t,l);break;case 22:pt=(o=pt)||l.memoizedState!==null,ba(e,t,l),pt=o;break;default:ba(e,t,l)}}function gy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ai(e)}catch(l){Xe(t,t.return,l)}}}function yy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ai(e)}catch(l){Xe(t,t.return,l)}}function yE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hy),t;default:throw Error(i(435,e.tag))}}function cu(e,t){var l=yE(e);t.forEach(function(o){if(!l.has(o)){l.add(o);var d=_E.bind(null,e,o);o.then(d,d)}})}function Yt(e,t){var l=t.deletions;if(l!==null)for(var o=0;o<l.length;o++){var d=l[o],f=e,b=t,N=b;e:for(;N!==null;){switch(N.tag){case 27:if(il(N.type)){tt=N.stateNode,$t=!1;break e}break;case 5:tt=N.stateNode,$t=!1;break e;case 3:case 4:tt=N.stateNode.containerInfo,$t=!0;break e}N=N.return}if(tt===null)throw Error(i(160));vy(f,b,d),tt=null,$t=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xy(t,e),t=t.sibling}var Mn=null;function xy(e,t){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),Gt(e),o&4&&(Wa(3,e,e.return),No(3,e),Wa(5,e,e.return));break;case 1:Yt(t,e),Gt(e),o&512&&(pt||l===null||Xn(l,l.return)),o&64&&xa&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var d=Mn;if(Yt(t,e),Gt(e),o&512&&(pt||l===null||Xn(l,l.return)),o&4){var f=l!==null?l.memoizedState:null;if(o=e.memoizedState,l===null)if(o===null)if(e.stateNode===null){e:{o=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Ii]||f[_t]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(o),d.head.insertBefore(f,d.querySelector("head > title"))),At(f,o,l),f[_t]=e,Et(f),o=f;break e;case"link":var b=x0("link","href",d).get(o+(l.href||""));if(b){for(var N=0;N<b.length;N++)if(f=b[N],f.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&f.getAttribute("rel")===(l.rel==null?null:l.rel)&&f.getAttribute("title")===(l.title==null?null:l.title)&&f.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(N,1);break t}}f=d.createElement(o),At(f,o,l),d.head.appendChild(f);break;case"meta":if(b=x0("meta","content",d).get(o+(l.content||""))){for(N=0;N<b.length;N++)if(f=b[N],f.getAttribute("content")===(l.content==null?null:""+l.content)&&f.getAttribute("name")===(l.name==null?null:l.name)&&f.getAttribute("property")===(l.property==null?null:l.property)&&f.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&f.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(N,1);break t}}f=d.createElement(o),At(f,o,l),d.head.appendChild(f);break;default:throw Error(i(468,o))}f[_t]=e,Et(f),o=f}e.stateNode=o}else b0(d,e.type,e.stateNode);else e.stateNode=y0(d,o,e.memoizedProps);else f!==o?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,o===null?b0(d,e.type,e.stateNode):y0(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Nf(e,e.memoizedProps,l.memoizedProps)}break;case 27:Yt(t,e),Gt(e),o&512&&(pt||l===null||Xn(l,l.return)),l!==null&&o&4&&Nf(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Yt(t,e),Gt(e),o&512&&(pt||l===null||Xn(l,l.return)),e.flags&32){d=e.stateNode;try{Cr(d,"")}catch(fe){Xe(e,e.return,fe)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,Nf(e,d,l!==null?l.memoizedProps:d)),o&1024&&(Tf=!0);break;case 6:if(Yt(t,e),Gt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(fe){Xe(e,e.return,fe)}}break;case 3:if(Cu=null,d=Mn,Mn=Eu(t.containerInfo),Yt(t,e),Mn=d,Gt(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{ai(t.containerInfo)}catch(fe){Xe(e,e.return,fe)}Tf&&(Tf=!1,by(e));break;case 4:o=Mn,Mn=Eu(e.stateNode.containerInfo),Yt(t,e),Gt(e),Mn=o;break;case 12:Yt(t,e),Gt(e);break;case 31:Yt(t,e),Gt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cu(e,o)));break;case 13:Yt(t,e),Gt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(fu=Jt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cu(e,o)));break;case 22:d=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,Q=xa,Z=pt;if(xa=Q||d,pt=Z||M,Yt(t,e),pt=Z,xa=Q,Gt(e),o&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||M||xa||pt||Jl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){M=l=t;try{if(f=M.stateNode,d)b=f.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{N=M.stateNode;var I=M.memoizedProps.style,$=I!=null&&I.hasOwnProperty("display")?I.display:null;N.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(fe){Xe(M,M.return,fe)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Xe(M,M.return,fe)}}}else if(t.tag===18){if(l===null){M=t;try{var V=M.stateNode;d?u0(V,!0):u0(M.stateNode,!1)}catch(fe){Xe(M,M.return,fe)}}}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;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,cu(e,l))));break;case 19:Yt(t,e),Gt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cu(e,o)));break;case 30:break;case 21:break;default:Yt(t,e),Gt(e)}}function Gt(e){var t=e.flags;if(t&2){try{for(var l,o=e.return;o!==null;){if(dy(o)){l=o;break}o=o.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var d=l.stateNode,f=Cf(e);uu(e,f,d);break;case 5:var b=l.stateNode;l.flags&32&&(Cr(b,""),l.flags&=-33);var N=Cf(e);uu(e,N,b);break;case 3:case 4:var M=l.stateNode.containerInfo,Q=Cf(e);_f(e,Q,M);break;default:throw Error(i(161))}}catch(Z){Xe(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function by(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;by(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)my(e,t.alternate,t),t=t.sibling}function Jl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Wa(4,t,t.return),Jl(t);break;case 1:Xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&uy(t,t.return,l),Jl(t);break;case 27:zo(t.stateNode);case 26:case 5:Xn(t,t.return),Jl(t);break;case 22:t.memoizedState===null&&Jl(t);break;case 30:Jl(t);break;default:Jl(t)}e=e.sibling}}function Sa(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,d=e,f=t,b=f.flags;switch(f.tag){case 0:case 11:case 15:Sa(d,f,l),No(4,f);break;case 1:if(Sa(d,f,l),o=f,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(Q){Xe(o,o.return,Q)}if(o=f,d=o.updateQueue,d!==null){var N=o.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Jv(M[d],N)}catch(Q){Xe(o,o.return,Q)}}l&&b&64&&sy(f),Co(f,f.return);break;case 27:fy(f);case 26:case 5:Sa(d,f,l),l&&o===null&&b&4&&cy(f),Co(f,f.return);break;case 12:Sa(d,f,l);break;case 31:Sa(d,f,l),l&&b&4&&gy(d,f);break;case 13:Sa(d,f,l),l&&b&4&&yy(d,f);break;case 22:f.memoizedState===null&&Sa(d,f,l),Co(f,f.return);break;case 30:break;default:Sa(d,f,l)}t=t.sibling}}function Rf(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&fo(l))}function Mf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fo(e))}function An(e,t,l,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wy(e,t,l,o),t=t.sibling}function wy(e,t,l,o){var d=t.flags;switch(t.tag){case 0:case 11:case 15:An(e,t,l,o),d&2048&&No(9,t);break;case 1:An(e,t,l,o);break;case 3:An(e,t,l,o),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fo(e)));break;case 12:if(d&2048){An(e,t,l,o),e=t.stateNode;try{var f=t.memoizedProps,b=f.id,N=f.onPostCommit;typeof N=="function"&&N(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Xe(t,t.return,M)}}else An(e,t,l,o);break;case 31:An(e,t,l,o);break;case 13:An(e,t,l,o);break;case 23:break;case 22:f=t.stateNode,b=t.alternate,t.memoizedState!==null?f._visibility&2?An(e,t,l,o):_o(e,t):f._visibility&2?An(e,t,l,o):(f._visibility|=2,Kr(e,t,l,o,(t.subtreeFlags&10256)!==0||!1)),d&2048&&Rf(b,t);break;case 24:An(e,t,l,o),d&2048&&Mf(t.alternate,t);break;default:An(e,t,l,o)}}function Kr(e,t,l,o,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,b=t,N=l,M=o,Q=b.flags;switch(b.tag){case 0:case 11:case 15:Kr(f,b,N,M,d),No(8,b);break;case 23:break;case 22:var Z=b.stateNode;b.memoizedState!==null?Z._visibility&2?Kr(f,b,N,M,d):_o(f,b):(Z._visibility|=2,Kr(f,b,N,M,d)),d&&Q&2048&&Rf(b.alternate,b);break;case 24:Kr(f,b,N,M,d),d&&Q&2048&&Mf(b.alternate,b);break;default:Kr(f,b,N,M,d)}t=t.sibling}}function _o(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,o=t,d=o.flags;switch(o.tag){case 22:_o(l,o),d&2048&&Rf(o.alternate,o);break;case 24:_o(l,o),d&2048&&Mf(o.alternate,o);break;default:_o(l,o)}t=t.sibling}}var To=8192;function Xr(e,t,l){if(e.subtreeFlags&To)for(e=e.child;e!==null;)Sy(e,t,l),e=e.sibling}function Sy(e,t,l){switch(e.tag){case 26:Xr(e,t,l),e.flags&To&&e.memoizedState!==null&&lN(l,Mn,e.memoizedState,e.memoizedProps);break;case 5:Xr(e,t,l);break;case 3:case 4:var o=Mn;Mn=Eu(e.stateNode.containerInfo),Xr(e,t,l),Mn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=To,To=16777216,Xr(e,t,l),To=o):Xr(e,t,l));break;default:Xr(e,t,l)}}function jy(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 Ro(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];Nt=o,Ny(o,e)}jy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ey(e),e=e.sibling}function Ey(e){switch(e.tag){case 0:case 11:case 15:Ro(e),e.flags&2048&&Wa(9,e,e.return);break;case 3:Ro(e);break;case 12:Ro(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,du(e)):Ro(e);break;default:Ro(e)}}function du(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];Nt=o,Ny(o,e)}jy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Wa(8,t,t.return),du(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,du(t));break;default:du(t)}e=e.sibling}}function Ny(e,t){for(;Nt!==null;){var l=Nt;switch(l.tag){case 0:case 11:case 15:Wa(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:fo(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,Nt=o;else e:for(l=e;Nt!==null;){o=Nt;var d=o.sibling,f=o.return;if(py(o),o===l){Nt=null;break e}if(d!==null){d.return=f,Nt=d;break e}Nt=f}}}var xE={getCacheForType:function(e){var t=Rt(ft),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Rt(ft).controller.signal}},bE=typeof WeakMap=="function"?WeakMap:Map,$e=0,Ie=null,Ae=null,ze=0,Ke=0,ln=null,el=!1,Fr=!1,Af=!1,ja=0,it=0,tl=0,Il=0,kf=0,rn=0,Zr=0,Mo=null,Vt=null,Df=!1,fu=0,Cy=0,hu=1/0,mu=null,nl=null,yt=0,al=null,Pr=null,Ea=0,Of=0,zf=null,_y=null,Ao=0,Lf=null;function on(){return($e&2)!==0&&ze!==0?ze&-ze:z.T!==null?$f():Yp()}function Ty(){if(rn===0)if((ze&536870912)===0||Ue){var e=Ss;Ss<<=1,(Ss&3932160)===0&&(Ss=262144),rn=e}else rn=536870912;return e=nn.current,e!==null&&(e.flags|=32),rn}function Kt(e,t,l){(e===Ie&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)&&(Jr(e,0),ll(e,ze,rn,!1)),Ji(e,l),(($e&2)===0||e!==Ie)&&(e===Ie&&(($e&2)===0&&(Il|=l),it===4&&ll(e,ze,rn,!1)),Fn(e))}function Ry(e,t,l){if(($e&6)!==0)throw Error(i(327));var o=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Pi(e,t),d=o?jE(e,t):Hf(e,t,!0),f=o;do{if(d===0){Fr&&!o&&ll(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!wE(l)){d=Hf(e,t,!1),f=!1;continue}if(d===2){if(f=t,e.errorRecoveryDisabledLanes&f)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var N=e;d=Mo;var M=N.current.memoizedState.isDehydrated;if(M&&(Jr(N,b).flags|=256),b=Hf(N,b,!1),b!==2){if(Af&&!M){N.errorRecoveryDisabledLanes|=f,Il|=f,d=4;break e}f=Vt,Vt=d,f!==null&&(Vt===null?Vt=f:Vt.push.apply(Vt,f))}d=b}if(f=!1,d!==2)continue}}if(d===1){Jr(e,0),ll(e,t,0,!0);break}e:{switch(o=e,f=d,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ll(o,t,rn,!el);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(d=fu+300-Jt(),10<d)){if(ll(o,t,rn,!el),Es(o,0,!0)!==0)break e;Ea=t,o.timeoutHandle=i0(My.bind(null,o,l,Vt,mu,Df,t,rn,Il,Zr,el,f,"Throttled",-0,0),d);break e}My(o,l,Vt,mu,Df,t,rn,Il,Zr,el,f,null,-0,0)}}break}while(!0);Fn(e)}function My(e,t,l,o,d,f,b,N,M,Q,Z,I,$,V){if(e.timeoutHandle=-1,I=t.subtreeFlags,I&8192||(I&16785408)===16785408){I={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ua},Sy(t,f,I);var fe=(f&62914560)===f?fu-Jt():(f&4194048)===f?Cy-Jt():0;if(fe=rN(I,fe),fe!==null){Ea=f,e.cancelPendingCommit=fe(Hy.bind(null,e,t,f,l,o,d,b,N,M,Z,I,null,$,V)),ll(e,f,b,!Q);return}}Hy(e,t,f,l,o,d,b,N,M)}function wE(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var d=l[o],f=d.getSnapshot;d=d.value;try{if(!en(f(),d))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;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 ll(e,t,l,o){t&=~kf,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var d=t;0<d;){var f=31-Wt(d),b=1<<f;o[f]=-1,d&=~b}l!==0&&Bp(e,l,t)}function pu(){return($e&6)===0?(ko(0),!1):!0}function Uf(){if(Ae!==null){if(Ke===0)var e=Ae.return;else e=Ae,ha=Yl=null,Id(e),Qr=null,mo=0,e=Ae;for(;e!==null;)oy(e.alternate,e),e=e.return;Ae=null}}function Jr(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,QE(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ea=0,Uf(),Ie=e,Ae=l=da(e.current,null),ze=t,Ke=0,ln=null,el=!1,Fr=Pi(e,t),Af=!1,Zr=rn=kf=Il=tl=it=0,Vt=Mo=null,Df=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var d=31-Wt(o),f=1<<d;t|=e[d],o&=~f}return ja=t,Ls(),l}function Ay(e,t){_e=null,z.H=So,t===Br||t===Gs?(t=Xv(),Ke=3):t===Bd?(t=Xv(),Ke=4):Ke=t===pf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ln=t,Ae===null&&(it=1,lu(e,vn(t,e.current)))}function ky(){var e=nn.current;return e===null?!0:(ze&4194048)===ze?bn===null:(ze&62914560)===ze||(ze&536870912)!==0?e===bn:!1}function Dy(){var e=z.H;return z.H=So,e===null?So:e}function Oy(){var e=z.A;return z.A=xE,e}function vu(){it=4,el||(ze&4194048)!==ze&&nn.current!==null||(Fr=!0),(tl&134217727)===0&&(Il&134217727)===0||Ie===null||ll(Ie,ze,rn,!1)}function Hf(e,t,l){var o=$e;$e|=2;var d=Dy(),f=Oy();(Ie!==e||ze!==t)&&(mu=null,Jr(e,t)),t=!1;var b=it;e:do try{if(Ke!==0&&Ae!==null){var N=Ae,M=ln;switch(Ke){case 8:Uf(),b=6;break e;case 3:case 2:case 9:case 6:nn.current===null&&(t=!0);var Q=Ke;if(Ke=0,ln=null,Ir(e,N,M,Q),l&&Fr){b=0;break e}break;default:Q=Ke,Ke=0,ln=null,Ir(e,N,M,Q)}}SE(),b=it;break}catch(Z){Ay(e,Z)}while(!0);return t&&e.shellSuspendCounter++,ha=Yl=null,$e=o,z.H=d,z.A=f,Ae===null&&(Ie=null,ze=0,Ls()),b}function SE(){for(;Ae!==null;)zy(Ae)}function jE(e,t){var l=$e;$e|=2;var o=Dy(),d=Oy();Ie!==e||ze!==t?(mu=null,hu=Jt()+500,Jr(e,t)):Fr=Pi(e,t);e:do try{if(Ke!==0&&Ae!==null){t=Ae;var f=ln;t:switch(Ke){case 1:Ke=0,ln=null,Ir(e,t,f,1);break;case 2:case 9:if(Vv(f)){Ke=0,ln=null,Ly(t);break}t=function(){Ke!==2&&Ke!==9||Ie!==e||(Ke=7),Fn(e)},f.then(t,t);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:Vv(f)?(Ke=0,ln=null,Ly(t)):(Ke=0,ln=null,Ir(e,t,f,7));break;case 5:var b=null;switch(Ae.tag){case 26:b=Ae.memoizedState;case 5:case 27:var N=Ae;if(b?w0(b):N.stateNode.complete){Ke=0,ln=null;var M=N.sibling;if(M!==null)Ae=M;else{var Q=N.return;Q!==null?(Ae=Q,gu(Q)):Ae=null}break t}}Ke=0,ln=null,Ir(e,t,f,5);break;case 6:Ke=0,ln=null,Ir(e,t,f,6);break;case 8:Uf(),it=6;break e;default:throw Error(i(462))}}EE();break}catch(Z){Ay(e,Z)}while(!0);return ha=Yl=null,z.H=o,z.A=d,$e=l,Ae!==null?0:(Ie=null,ze=0,Ls(),it)}function EE(){for(;Ae!==null&&!Xj();)zy(Ae)}function zy(e){var t=ry(e.alternate,e,ja);e.memoizedProps=e.pendingProps,t===null?gu(e):Ae=t}function Ly(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Wg(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Wg(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Id(t);default:oy(l,t),t=Ae=Ov(t,ja),t=ry(l,t,ja)}e.memoizedProps=e.pendingProps,t===null?gu(e):Ae=t}function Ir(e,t,l,o){ha=Yl=null,Id(t),Qr=null,mo=0;var d=t.return;try{if(fE(e,d,t,l,ze)){it=1,lu(e,vn(l,e.current)),Ae=null;return}}catch(f){if(d!==null)throw Ae=d,f;it=1,lu(e,vn(l,e.current)),Ae=null;return}t.flags&32768?(Ue||o===1?e=!0:Fr||(ze&536870912)!==0?e=!1:(el=e=!0,(o===2||o===9||o===3||o===6)&&(o=nn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Uy(t,e)):gu(t)}function gu(e){var t=e;do{if((t.flags&32768)!==0){Uy(t,el);return}e=t.return;var l=pE(t.alternate,t,ja);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);it===0&&(it=5)}function Uy(e,t){do{var l=vE(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);it=6,Ae=null}function Hy(e,t,l,o,d,f,b,N,M){e.cancelPendingCommit=null;do yu();while(yt!==0);if(($e&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=Nd,a2(e,l,f,b,N,M),e===Ie&&(Ae=Ie=null,ze=0),Pr=t,al=e,Ea=l,Of=f,zf=d,_y=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,TE(bs,function(){return Yy(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=z.T,z.T=null,d=J.p,J.p=2,b=$e,$e|=4;try{gE(e,t,l)}finally{$e=b,J.p=d,z.T=o}}yt=1,qy(),By(),Qy()}}function qy(){if(yt===1){yt=0;var e=al,t=Pr,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null;var o=J.p;J.p=2;var d=$e;$e|=4;try{xy(t,e);var f=Pf,b=Nv(e.containerInfo),N=f.focusedElem,M=f.selectionRange;if(b!==N&&N&&N.ownerDocument&&Ev(N.ownerDocument.documentElement,N)){if(M!==null&&bd(N)){var Q=M.start,Z=M.end;if(Z===void 0&&(Z=Q),"selectionStart"in N)N.selectionStart=Q,N.selectionEnd=Math.min(Z,N.value.length);else{var I=N.ownerDocument||document,$=I&&I.defaultView||window;if($.getSelection){var V=$.getSelection(),fe=N.textContent.length,Se=Math.min(M.start,fe),Pe=M.end===void 0?Se:Math.min(M.end,fe);!V.extend&&Se>Pe&&(b=Pe,Pe=Se,Se=b);var L=jv(N,Se),O=jv(N,Pe);if(L&&O&&(V.rangeCount!==1||V.anchorNode!==L.node||V.anchorOffset!==L.offset||V.focusNode!==O.node||V.focusOffset!==O.offset)){var B=I.createRange();B.setStart(L.node,L.offset),V.removeAllRanges(),Se>Pe?(V.addRange(B),V.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),V.addRange(B))}}}}for(I=[],V=N;V=V.parentNode;)V.nodeType===1&&I.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<I.length;N++){var P=I[N];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Mu=!!Zf,Pf=Zf=null}finally{$e=d,J.p=o,z.T=l}}e.current=t,yt=2}}function By(){if(yt===2){yt=0;var e=al,t=Pr,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=z.T,z.T=null;var o=J.p;J.p=2;var d=$e;$e|=4;try{my(e,t.alternate,t)}finally{$e=d,J.p=o,z.T=l}}yt=3}}function Qy(){if(yt===4||yt===3){yt=0,Fj();var e=al,t=Pr,l=Ea,o=_y;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,Pr=al=null,$y(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(nl=null),td(l),t=t.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(Zi,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=z.T,d=J.p,J.p=2,z.T=null;try{for(var f=e.onRecoverableError,b=0;b<o.length;b++){var N=o[b];f(N.value,{componentStack:N.stack})}}finally{z.T=t,J.p=d}}(Ea&3)!==0&&yu(),Fn(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===Lf?Ao++:(Ao=0,Lf=e):Ao=0,ko(0)}}function $y(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fo(t)))}function yu(){return qy(),By(),Qy(),Yy()}function Yy(){if(yt!==5)return!1;var e=al,t=Of;Of=0;var l=td(Ea),o=z.T,d=J.p;try{J.p=32>l?32:l,z.T=null,l=zf,zf=null;var f=al,b=Ea;if(yt=0,Pr=al=null,Ea=0,($e&6)!==0)throw Error(i(331));var N=$e;if($e|=4,Ey(f.current),wy(f,f.current,b,l),$e=N,ko(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(Zi,f)}catch{}return!0}finally{J.p=d,z.T=o,$y(e,t)}}function Gy(e,t,l){t=vn(l,t),t=mf(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(Ji(e,2),Fn(e))}function Xe(e,t,l){if(e.tag===3)Gy(e,e,l);else for(;t!==null;){if(t.tag===3){Gy(t,e,l);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(nl===null||!nl.has(o))){e=vn(l,e),l=Vg(2),o=Pa(t,l,2),o!==null&&(Kg(l,o,t,e),Ji(o,2),Fn(o));break}}t=t.return}}function qf(e,t,l){var o=e.pingCache;if(o===null){o=e.pingCache=new bE;var d=new Set;o.set(t,d)}else d=o.get(t),d===void 0&&(d=new Set,o.set(t,d));d.has(l)||(Af=!0,d.add(l),e=NE.bind(null,e,t,l),t.then(e,e))}function NE(e,t,l){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ie===e&&(ze&l)===l&&(it===4||it===3&&(ze&62914560)===ze&&300>Jt()-fu?($e&2)===0&&Jr(e,0):kf|=l,Zr===ze&&(Zr=0)),Fn(e)}function Vy(e,t){t===0&&(t=qp()),e=Bl(e,t),e!==null&&(Ji(e,t),Fn(e))}function CE(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Vy(e,l)}function _E(e,t){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),Vy(e,l)}function TE(e,t){return Jc(e,t)}var xu=null,Wr=null,Bf=!1,bu=!1,Qf=!1,rl=0;function Fn(e){e!==Wr&&e.next===null&&(Wr===null?xu=Wr=e:Wr=Wr.next=e),bu=!0,Bf||(Bf=!0,ME())}function ko(e,t){if(!Qf&&bu){Qf=!0;do for(var l=!1,o=xu;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var f=0;else{var b=o.suspendedLanes,N=o.pingedLanes;f=(1<<31-Wt(42|e)+1)-1,f&=d&~(b&~N),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Zy(o,f))}else f=ze,f=Es(o,o===Ie?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||Pi(o,f)||(l=!0,Zy(o,f));o=o.next}while(l);Qf=!1}}function RE(){Ky()}function Ky(){bu=Bf=!1;var e=0;rl!==0&&BE()&&(e=rl);for(var t=Jt(),l=null,o=xu;o!==null;){var d=o.next,f=Xy(o,t);f===0?(o.next=null,l===null?xu=d:l.next=d,d===null&&(Wr=l)):(l=o,(e!==0||(f&3)!==0)&&(bu=!0)),o=d}yt!==0&&yt!==5||ko(e),rl!==0&&(rl=0)}function Xy(e,t){for(var l=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var b=31-Wt(f),N=1<<b,M=d[b];M===-1?((N&l)===0||(N&o)!==0)&&(d[b]=n2(N,t)):M<=t&&(e.expiredLanes|=N),f&=~N}if(t=Ie,l=ze,l=Es(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,l===0||e===t&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Ic(o),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Pi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(o!==null&&Ic(o),td(l)){case 2:case 8:l=Up;break;case 32:l=bs;break;case 268435456:l=Hp;break;default:l=bs}return o=Fy.bind(null,e),l=Jc(l,o),e.callbackPriority=t,e.callbackNode=l,t}return o!==null&&o!==null&&Ic(o),e.callbackPriority=2,e.callbackNode=null,2}function Fy(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(yu()&&e.callbackNode!==l)return null;var o=ze;return o=Es(e,e===Ie?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Ry(e,o,t),Xy(e,Jt()),e.callbackNode!=null&&e.callbackNode===l?Fy.bind(null,e):null)}function Zy(e,t){if(yu())return null;Ry(e,t,!0)}function ME(){$E(function(){($e&6)!==0?Jc(Lp,RE):Ky()})}function $f(){if(rl===0){var e=Hr;e===0&&(e=ws,ws<<=1,(ws&261888)===0&&(ws=256)),rl=e}return rl}function Py(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Ts(""+e)}function Jy(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function AE(e,t,l,o,d){if(t==="submit"&&l&&l.stateNode===d){var f=Py((d[Bt]||null).action),b=o.submitter;b&&(t=(t=b[Bt]||null)?Py(t.formAction):b.getAttribute("formAction"),t!==null&&(f=t,b=null));var N=new ks("action","action",null,o,d);e.push({event:N,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(rl!==0){var M=b?Jy(d,b):new FormData(d);sf(l,{pending:!0,data:M,method:d.method,action:f},null,M)}}else typeof f=="function"&&(N.preventDefault(),M=b?Jy(d,b):new FormData(d),sf(l,{pending:!0,data:M,method:d.method,action:f},f,M))},currentTarget:d}]})}}for(var Yf=0;Yf<Ed.length;Yf++){var Gf=Ed[Yf],kE=Gf.toLowerCase(),DE=Gf[0].toUpperCase()+Gf.slice(1);Rn(kE,"on"+DE)}Rn(Tv,"onAnimationEnd"),Rn(Rv,"onAnimationIteration"),Rn(Mv,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(Z2,"onTransitionRun"),Rn(P2,"onTransitionStart"),Rn(J2,"onTransitionCancel"),Rn(Av,"onTransitionEnd"),Er("onMouseEnter",["mouseout","mouseover"]),Er("onMouseLeave",["mouseout","mouseover"]),Er("onPointerEnter",["pointerout","pointerover"]),Er("onPointerLeave",["pointerout","pointerover"]),Ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Do="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(" "),OE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Do));function Iy(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],d=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var b=o.length-1;0<=b;b--){var N=o[b],M=N.instance,Q=N.currentTarget;if(N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=Q;try{f(d)}catch(Z){zs(Z)}d.currentTarget=null,f=M}else for(b=0;b<o.length;b++){if(N=o[b],M=N.instance,Q=N.currentTarget,N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=Q;try{f(d)}catch(Z){zs(Z)}d.currentTarget=null,f=M}}}}function ke(e,t){var l=t[nd];l===void 0&&(l=t[nd]=new Set);var o=e+"__bubble";l.has(o)||(Wy(t,e,2,!1),l.add(o))}function Vf(e,t,l){var o=0;t&&(o|=4),Wy(l,e,o,t)}var wu="_reactListening"+Math.random().toString(36).slice(2);function Kf(e){if(!e[wu]){e[wu]=!0,Kp.forEach(function(l){l!=="selectionchange"&&(OE.has(l)||Vf(l,!1,e),Vf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wu]||(t[wu]=!0,Vf("selectionchange",!1,t))}}function Wy(e,t,l,o){switch(T0(t)){case 2:var d=sN;break;case 8:d=uN;break;default:d=oh}l=d.bind(null,t,l,e),d=void 0,!dd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(t,l,{capture:!0,passive:d}):e.addEventListener(t,l,!0):d!==void 0?e.addEventListener(t,l,{passive:d}):e.addEventListener(t,l,!1)}function Xf(e,t,l,o,d){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var N=o.stateNode.containerInfo;if(N===d)break;if(b===4)for(b=o.return;b!==null;){var M=b.tag;if((M===3||M===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;N!==null;){if(b=wr(N),b===null)return;if(M=b.tag,M===5||M===6||M===26||M===27){o=f=b;continue e}N=N.parentNode}}o=o.return}lv(function(){var Q=f,Z=ud(l),I=[];e:{var $=kv.get(e);if($!==void 0){var V=ks,fe=e;switch(e){case"keypress":if(Ms(l)===0)break e;case"keydown":case"keyup":V=_2;break;case"focusin":fe="focus",V=pd;break;case"focusout":fe="blur",V=pd;break;case"beforeblur":case"afterblur":V=pd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=ov;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=p2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=M2;break;case Tv:case Rv:case Mv:V=y2;break;case Av:V=k2;break;case"scroll":case"scrollend":V=h2;break;case"wheel":V=O2;break;case"copy":case"cut":case"paste":V=b2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=uv;break;case"toggle":case"beforetoggle":V=L2}var Se=(t&4)!==0,Pe=!Se&&(e==="scroll"||e==="scrollend"),L=Se?$!==null?$+"Capture":null:$;Se=[];for(var O=Q,B;O!==null;){var P=O;if(B=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||B===null||L===null||(P=eo(O,L),P!=null&&Se.push(Oo(O,P,B))),Pe)break;O=O.return}0<Se.length&&($=new V($,fe,null,l,Z),I.push({event:$,listeners:Se}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",$&&l!==sd&&(fe=l.relatedTarget||l.fromElement)&&(wr(fe)||fe[br]))break e;if((V||$)&&($=Z.window===Z?Z:($=Z.ownerDocument)?$.defaultView||$.parentWindow:window,V?(fe=l.relatedTarget||l.toElement,V=Q,fe=fe?wr(fe):null,fe!==null&&(Pe=c(fe),Se=fe.tag,fe!==Pe||Se!==5&&Se!==27&&Se!==6)&&(fe=null)):(V=null,fe=Q),V!==fe)){if(Se=ov,P="onMouseLeave",L="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Se=uv,P="onPointerLeave",L="onPointerEnter",O="pointer"),Pe=V==null?$:Wi(V),B=fe==null?$:Wi(fe),$=new Se(P,O+"leave",V,l,Z),$.target=Pe,$.relatedTarget=B,P=null,wr(Z)===Q&&(Se=new Se(L,O+"enter",fe,l,Z),Se.target=B,Se.relatedTarget=Pe,P=Se),Pe=P,V&&fe)t:{for(Se=zE,L=V,O=fe,B=0,P=L;P;P=Se(P))B++;P=0;for(var xe=O;xe;xe=Se(xe))P++;for(;0<B-P;)L=Se(L),B--;for(;0<P-B;)O=Se(O),P--;for(;B--;){if(L===O||O!==null&&L===O.alternate){Se=L;break t}L=Se(L),O=Se(O)}Se=null}else Se=null;V!==null&&e0(I,$,V,Se,!1),fe!==null&&Pe!==null&&e0(I,Pe,fe,Se,!0)}}e:{if($=Q?Wi(Q):window,V=$.nodeName&&$.nodeName.toLowerCase(),V==="select"||V==="input"&&$.type==="file")var Be=gv;else if(pv($))if(yv)Be=K2;else{Be=G2;var ge=Y2}else V=$.nodeName,!V||V.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?Q&&od(Q.elementType)&&(Be=gv):Be=V2;if(Be&&(Be=Be(e,Q))){vv(I,Be,l,Z);break e}ge&&ge(e,$,Q),e==="focusout"&&Q&&$.type==="number"&&Q.memoizedProps.value!=null&&id($,"number",$.value)}switch(ge=Q?Wi(Q):window,e){case"focusin":(pv(ge)||ge.contentEditable==="true")&&(Mr=ge,wd=Q,so=null);break;case"focusout":so=wd=Mr=null;break;case"mousedown":Sd=!0;break;case"contextmenu":case"mouseup":case"dragend":Sd=!1,Cv(I,l,Z);break;case"selectionchange":if(F2)break;case"keydown":case"keyup":Cv(I,l,Z)}var Te;if(gd)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Rr?hv(e,l)&&(Le="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(cv&&l.locale!=="ko"&&(Rr||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Rr&&(Te=rv()):(Ya=Z,fd="value"in Ya?Ya.value:Ya.textContent,Rr=!0)),ge=Su(Q,Le),0<ge.length&&(Le=new sv(Le,e,null,l,Z),I.push({event:Le,listeners:ge}),Te?Le.data=Te:(Te=mv(l),Te!==null&&(Le.data=Te)))),(Te=H2?q2(e,l):B2(e,l))&&(Le=Su(Q,"onBeforeInput"),0<Le.length&&(ge=new sv("onBeforeInput","beforeinput",null,l,Z),I.push({event:ge,listeners:Le}),ge.data=Te)),AE(I,e,Q,l,Z)}Iy(I,t)})}function Oo(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Su(e,t){for(var l=t+"Capture",o=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=eo(e,l),d!=null&&o.unshift(Oo(e,d,f)),d=eo(e,t),d!=null&&o.push(Oo(e,d,f))),e.tag===3)return o;e=e.return}return[]}function zE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function e0(e,t,l,o,d){for(var f=t._reactName,b=[];l!==null&&l!==o;){var N=l,M=N.alternate,Q=N.stateNode;if(N=N.tag,M!==null&&M===o)break;N!==5&&N!==26&&N!==27||Q===null||(M=Q,d?(Q=eo(l,f),Q!=null&&b.unshift(Oo(l,Q,M))):d||(Q=eo(l,f),Q!=null&&b.push(Oo(l,Q,M)))),l=l.return}b.length!==0&&e.push({event:t,listeners:b})}var LE=/\r\n?/g,UE=/\u0000|\uFFFD/g;function t0(e){return(typeof e=="string"?e:""+e).replace(LE,`
49
- `).replace(UE,"")}function n0(e,t){return t=t0(t),t0(e)===t}function Ze(e,t,l,o,d,f){switch(l){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Cr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Cr(e,""+o);break;case"className":Cs(e,"class",o);break;case"tabIndex":Cs(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Cs(e,l,o);break;case"style":nv(e,o,f);break;case"data":if(t!=="object"){Cs(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Ts(""+o),e.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(l==="formAction"?(t!=="input"&&Ze(e,t,"name",d.name,d,null),Ze(e,t,"formEncType",d.formEncType,d,null),Ze(e,t,"formMethod",d.formMethod,d,null),Ze(e,t,"formTarget",d.formTarget,d,null)):(Ze(e,t,"encType",d.encType,d,null),Ze(e,t,"method",d.method,d,null),Ze(e,t,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Ts(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=ua);break;case"onScroll":o!=null&&ke("scroll",e);break;case"onScrollEnd":o!=null&&ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}l=Ts(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""+o):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":o===!0?e.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,o):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(l,o):e.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(l):e.setAttribute(l,o);break;case"popover":ke("beforetoggle",e),ke("toggle",e),Ns(e,"popover",o);break;case"xlinkActuate":sa(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":sa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":sa(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":sa(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":sa(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":sa(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":sa(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":sa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":sa(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ns(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=d2.get(l)||l,Ns(e,l,o))}}function Ff(e,t,l,o,d,f){switch(l){case"style":nv(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof o=="string"?Cr(e,o):(typeof o=="number"||typeof o=="bigint")&&Cr(e,""+o);break;case"onScroll":o!=null&&ke("scroll",e);break;case"onScrollEnd":o!=null&&ke("scrollend",e);break;case"onClick":o!=null&&(e.onclick=ua);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xp.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),t=l.slice(2,d?l.length-7:void 0),f=e[Bt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof o=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,o,d);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):Ns(e,l,o)}}}function At(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var o=!1,d=!1,f;for(f in l)if(l.hasOwnProperty(f)){var b=l[f];if(b!=null)switch(f){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ze(e,t,f,b,l,null)}}d&&Ze(e,t,"srcSet",l.srcSet,l,null),o&&Ze(e,t,"src",l.src,l,null);return;case"input":ke("invalid",e);var N=f=b=d=null,M=null,Q=null;for(o in l)if(l.hasOwnProperty(o)){var Z=l[o];if(Z!=null)switch(o){case"name":d=Z;break;case"type":b=Z;break;case"checked":M=Z;break;case"defaultChecked":Q=Z;break;case"value":f=Z;break;case"defaultValue":N=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Ze(e,t,o,Z,l,null)}}Ip(e,f,N,M,Q,b,d,!1);return;case"select":ke("invalid",e),o=b=f=null;for(d in l)if(l.hasOwnProperty(d)&&(N=l[d],N!=null))switch(d){case"value":f=N;break;case"defaultValue":b=N;break;case"multiple":o=N;default:Ze(e,t,d,N,l,null)}t=f,l=b,e.multiple=!!o,t!=null?Nr(e,!!o,t,!1):l!=null&&Nr(e,!!o,l,!0);return;case"textarea":ke("invalid",e),f=d=o=null;for(b in l)if(l.hasOwnProperty(b)&&(N=l[b],N!=null))switch(b){case"value":o=N;break;case"defaultValue":d=N;break;case"children":f=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Ze(e,t,b,N,l,null)}ev(e,o,d,f);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(o=l[M],o!=null))switch(M){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ze(e,t,M,o,l,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(o=0;o<Do.length;o++)ke(Do[o],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("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(Q in l)if(l.hasOwnProperty(Q)&&(o=l[Q],o!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ze(e,t,Q,o,l,null)}return;default:if(od(t)){for(Z in l)l.hasOwnProperty(Z)&&(o=l[Z],o!==void 0&&Ff(e,t,Z,o,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(o=l[N],o!=null&&Ze(e,t,N,o,l,null))}function HE(e,t,l,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,b=null,N=null,M=null,Q=null,Z=null;for(V in l){var I=l[V];if(l.hasOwnProperty(V)&&I!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":M=I;default:o.hasOwnProperty(V)||Ze(e,t,V,null,o,I)}}for(var $ in o){var V=o[$];if(I=l[$],o.hasOwnProperty($)&&(V!=null||I!=null))switch($){case"type":f=V;break;case"name":d=V;break;case"checked":Q=V;break;case"defaultChecked":Z=V;break;case"value":b=V;break;case"defaultValue":N=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:V!==I&&Ze(e,t,$,V,o,I)}}rd(e,b,N,M,Q,Z,f,d);return;case"select":V=b=N=$=null;for(f in l)if(M=l[f],l.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":V=M;default:o.hasOwnProperty(f)||Ze(e,t,f,null,o,M)}for(d in o)if(f=o[d],M=l[d],o.hasOwnProperty(d)&&(f!=null||M!=null))switch(d){case"value":$=f;break;case"defaultValue":N=f;break;case"multiple":b=f;default:f!==M&&Ze(e,t,d,f,o,M)}t=N,l=b,o=V,$!=null?Nr(e,!!l,$,!1):!!o!=!!l&&(t!=null?Nr(e,!!l,t,!0):Nr(e,!!l,l?[]:"",!1));return;case"textarea":V=$=null;for(N in l)if(d=l[N],l.hasOwnProperty(N)&&d!=null&&!o.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Ze(e,t,N,null,o,d)}for(b in o)if(d=o[b],f=l[b],o.hasOwnProperty(b)&&(d!=null||f!=null))switch(b){case"value":$=d;break;case"defaultValue":V=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==f&&Ze(e,t,b,d,o,f)}Wp(e,$,V);return;case"option":for(var fe in l)if($=l[fe],l.hasOwnProperty(fe)&&$!=null&&!o.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Ze(e,t,fe,null,o,$)}for(M in o)if($=o[M],V=l[M],o.hasOwnProperty(M)&&$!==V&&($!=null||V!=null))switch(M){case"selected":e.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Ze(e,t,M,$,o,V)}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 Se in l)$=l[Se],l.hasOwnProperty(Se)&&$!=null&&!o.hasOwnProperty(Se)&&Ze(e,t,Se,null,o,$);for(Q in o)if($=o[Q],V=l[Q],o.hasOwnProperty(Q)&&$!==V&&($!=null||V!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,t));break;default:Ze(e,t,Q,$,o,V)}return;default:if(od(t)){for(var Pe in l)$=l[Pe],l.hasOwnProperty(Pe)&&$!==void 0&&!o.hasOwnProperty(Pe)&&Ff(e,t,Pe,void 0,o,$);for(Z in o)$=o[Z],V=l[Z],!o.hasOwnProperty(Z)||$===V||$===void 0&&V===void 0||Ff(e,t,Z,$,o,V);return}}for(var L in l)$=l[L],l.hasOwnProperty(L)&&$!=null&&!o.hasOwnProperty(L)&&Ze(e,t,L,null,o,$);for(I in o)$=o[I],V=l[I],!o.hasOwnProperty(I)||$===V||$==null&&V==null||Ze(e,t,I,$,o,V)}function a0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var d=l[o],f=d.transferSize,b=d.initiatorType,N=d.duration;if(f&&N&&a0(b)){for(b=0,N=d.responseEnd,o+=1;o<l.length;o++){var M=l[o],Q=M.startTime;if(Q>N)break;var Z=M.transferSize,I=M.initiatorType;Z&&a0(I)&&(M=M.responseEnd,b+=Z*(M<N?1:(N-Q)/(M-Q)))}if(--o,t+=8*(f+b)/(d.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 Zf=null,Pf=null;function ju(e){return e.nodeType===9?e:e.ownerDocument}function l0(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 r0(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 Jf(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 If=null;function BE(){var e=window.event;return e&&e.type==="popstate"?e===If?!1:(If=e,!0):(If=null,!1)}var i0=typeof setTimeout=="function"?setTimeout:void 0,QE=typeof clearTimeout=="function"?clearTimeout:void 0,o0=typeof Promise=="function"?Promise:void 0,$E=typeof queueMicrotask=="function"?queueMicrotask:typeof o0<"u"?function(e){return o0.resolve(null).then(e).catch(YE)}:i0;function YE(e){setTimeout(function(){throw e})}function il(e){return e==="head"}function s0(e,t){var l=t,o=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(o===0){e.removeChild(d),ai(t);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")zo(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,zo(l);for(var f=l.firstChild;f;){var b=f.nextSibling,N=f.nodeName;f[Ii]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=b}}else l==="body"&&zo(e.ownerDocument.body);l=d}while(l);ai(t)}function u0(e,t){var l=e;e=0;do{var o=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=o}while(l)}function Wf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Wf(l),ad(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function GE(e,t,l,o){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ii])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=wn(e.nextSibling),e===null)break}return null}function VE(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=wn(e.nextSibling),e===null))return null;return e}function c0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wn(e.nextSibling),e===null))return null;return e}function eh(e){return e.data==="$?"||e.data==="$~"}function th(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function KE(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var o=function(){t(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function wn(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 nh=null;function d0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return wn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function f0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function h0(e,t,l){switch(t=ju(l),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function zo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ad(e)}var Sn=new Map,m0=new Set;function Eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Na=J.d;J.d={f:XE,r:FE,D:ZE,C:PE,L:JE,m:IE,X:eN,S:WE,M:tN};function XE(){var e=Na.f(),t=pu();return e||t}function FE(e){var t=Sr(e);t!==null&&t.tag===5&&t.type==="form"?Ag(t):Na.r(e)}var ei=typeof document>"u"?null:document;function p0(e,t,l){var o=ei;if(o&&typeof t=="string"&&t){var d=mn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),m0.has(d)||(m0.add(d),e={rel:e,crossOrigin:l,href:t},o.querySelector(d)===null&&(t=o.createElement("link"),At(t,"link",e),Et(t),o.head.appendChild(t)))}}function ZE(e){Na.D(e),p0("dns-prefetch",e,null)}function PE(e,t){Na.C(e,t),p0("preconnect",e,t)}function JE(e,t,l){Na.L(e,t,l);var o=ei;if(o&&e&&t){var d='link[rel="preload"][as="'+mn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+mn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+mn(l.imageSizes)+'"]')):d+='[href="'+mn(e)+'"]';var f=d;switch(t){case"style":f=ti(e);break;case"script":f=ni(e)}Sn.has(f)||(e=x({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Sn.set(f,e),o.querySelector(d)!==null||t==="style"&&o.querySelector(Lo(f))||t==="script"&&o.querySelector(Uo(f))||(t=o.createElement("link"),At(t,"link",e),Et(t),o.head.appendChild(t)))}}function IE(e,t){Na.m(e,t);var l=ei;if(l&&e){var o=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+mn(o)+'"][href="'+mn(e)+'"]',f=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ni(e)}if(!Sn.has(f)&&(e=x({rel:"modulepreload",href:e},t),Sn.set(f,e),l.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Uo(f)))return}o=l.createElement("link"),At(o,"link",e),Et(o),l.head.appendChild(o)}}}function WE(e,t,l){Na.S(e,t,l);var o=ei;if(o&&e){var d=jr(o).hoistableStyles,f=ti(e);t=t||"default";var b=d.get(f);if(!b){var N={loading:0,preload:null};if(b=o.querySelector(Lo(f)))N.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Sn.get(f))&&ah(e,l);var M=b=o.createElement("link");Et(M),At(M,"link",e),M._p=new Promise(function(Q,Z){M.onload=Q,M.onerror=Z}),M.addEventListener("load",function(){N.loading|=1}),M.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Nu(b,t,o)}b={type:"stylesheet",instance:b,count:1,state:N},d.set(f,b)}}}function eN(e,t){Na.X(e,t);var l=ei;if(l&&e){var o=jr(l).hoistableScripts,d=ni(e),f=o.get(d);f||(f=l.querySelector(Uo(d)),f||(e=x({src:e,async:!0},t),(t=Sn.get(d))&&lh(e,t),f=l.createElement("script"),Et(f),At(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function tN(e,t){Na.M(e,t);var l=ei;if(l&&e){var o=jr(l).hoistableScripts,d=ni(e),f=o.get(d);f||(f=l.querySelector(Uo(d)),f||(e=x({src:e,async:!0,type:"module"},t),(t=Sn.get(d))&&lh(e,t),f=l.createElement("script"),Et(f),At(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function v0(e,t,l,o){var d=(d=je.current)?Eu(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ti(l.href),l=jr(d).hoistableStyles,o=l.get(t),o||(o={type:"style",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ti(l.href);var f=jr(d).hoistableStyles,b=f.get(e);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,b),(f=d.querySelector(Lo(e)))&&!f._p&&(b.instance=f,b.state.loading=5),Sn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Sn.set(e,l),f||nN(d,e,l,b.state))),t&&o===null)throw Error(i(528,""));return b}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ni(l),l=jr(d).hoistableScripts,o=l.get(t),o||(o={type:"script",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ti(e){return'href="'+mn(e)+'"'}function Lo(e){return'link[rel="stylesheet"]['+e+"]"}function g0(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function nN(e,t,l,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),At(t,"link",l),Et(t),e.head.appendChild(t))}function ni(e){return'[src="'+mn(e)+'"]'}function Uo(e){return"script[async]"+e}function y0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+mn(l.href)+'"]');if(o)return t.instance=o,Et(o),o;var d=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Et(o),At(o,"style",d),Nu(o,l.precedence,e),t.instance=o;case"stylesheet":d=ti(l.href);var f=e.querySelector(Lo(d));if(f)return t.state.loading|=4,t.instance=f,Et(f),f;o=g0(l),(d=Sn.get(d))&&ah(o,d),f=(e.ownerDocument||e).createElement("link"),Et(f);var b=f;return b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),At(f,"link",o),t.state.loading|=4,Nu(f,l.precedence,e),t.instance=f;case"script":return f=ni(l.src),(d=e.querySelector(Uo(f)))?(t.instance=d,Et(d),d):(o=l,(d=Sn.get(f))&&(o=x({},l),lh(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),Et(d),At(d,"link",o),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Nu(o,l.precedence,e));return t.instance}function Nu(e,t,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,f=d,b=0;b<o.length;b++){var N=o[b];if(N.dataset.precedence===t)f=N;else if(f!==d)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function ah(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cu=null;function x0(e,t,l){if(Cu===null){var o=new Map,d=Cu=new Map;d.set(l,o)}else d=Cu,o=d.get(l),o||(o=new Map,d.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var f=l[d];if(!(f[Ii]||f[_t]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var b=f.getAttribute(t)||"";b=e+b;var N=o.get(b);N?N.push(f):o.set(b,[f])}}return o}function b0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function aN(e,t,l){if(l===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 w0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function lN(e,t,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=ti(o.href),f=t.querySelector(Lo(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_u.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,Et(f);return}f=t.ownerDocument||t,o=g0(o),(d=Sn.get(d))&&ah(o,d),f=f.createElement("link"),Et(f);var b=f;b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),At(f,"link",o),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=_u.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var rh=0;function rN(e,t){return e.stylesheets&&e.count===0&&Ru(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var o=setTimeout(function(){if(e.stylesheets&&Ru(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&rh===0&&(rh=62500*qE());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ru(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>rh?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function _u(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ru(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Tu=null;function Ru(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Tu=new Map,t.forEach(iN,e),Tu=null,_u.call(e))}function iN(e,t){if(!(t.state.loading&4)){var l=Tu.get(e);if(l)var o=l.get(null);else{l=new Map,Tu.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var b=d[f];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),o=b)}o&&l.set(null,o)}d=t.instance,b=d.getAttribute("data-precedence"),f=l.get(b)||o,f===o&&l.set(null,d),l.set(b,d),this.count++,o=_u.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var Ho={$$typeof:R,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function oN(e,t,l,o,d,f,b,N,M){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=Wc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wc(0),this.hiddenUpdates=Wc(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function S0(e,t,l,o,d,f,b,N,M,Q,Z,I){return e=new oN(e,t,l,b,M,Q,Z,I,N),t=1,f===!0&&(t|=24),f=tn(3,null,null,t),e.current=f,f.stateNode=e,t=Ud(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:l,cache:t},Qd(f),e}function j0(e){return e?(e=Dr,e):Dr}function E0(e,t,l,o,d,f){d=j0(d),o.context===null?o.context=d:o.pendingContext=d,o=Za(t),o.payload={element:l},f=f===void 0?null:f,f!==null&&(o.callback=f),l=Pa(e,o,t),l!==null&&(Kt(l,e,t),vo(l,e,t))}function N0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ih(e,t){N0(e,t),(e=e.alternate)&&N0(e,t)}function C0(e){if(e.tag===13||e.tag===31){var t=Bl(e,67108864);t!==null&&Kt(t,e,67108864),ih(e,67108864)}}function _0(e){if(e.tag===13||e.tag===31){var t=on();t=ed(t);var l=Bl(e,t);l!==null&&Kt(l,e,t),ih(e,t)}}var Mu=!0;function sN(e,t,l,o){var d=z.T;z.T=null;var f=J.p;try{J.p=2,oh(e,t,l,o)}finally{J.p=f,z.T=d}}function uN(e,t,l,o){var d=z.T;z.T=null;var f=J.p;try{J.p=8,oh(e,t,l,o)}finally{J.p=f,z.T=d}}function oh(e,t,l,o){if(Mu){var d=sh(o);if(d===null)Xf(e,t,o,Au,l),R0(e,o);else if(dN(d,e,t,l,o))o.stopPropagation();else if(R0(e,o),t&4&&-1<cN.indexOf(e)){for(;d!==null;){var f=Sr(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var b=zl(f.pendingLanes);if(b!==0){var N=f;for(N.pendingLanes|=2,N.entangledLanes|=2;b;){var M=1<<31-Wt(b);N.entanglements[1]|=M,b&=~M}Fn(f),($e&6)===0&&(hu=Jt()+500,ko(0))}}break;case 31:case 13:N=Bl(f,2),N!==null&&Kt(N,f,2),pu(),ih(f,2)}if(f=sh(o),f===null&&Xf(e,t,o,Au,l),f===d)break;d=f}d!==null&&o.stopPropagation()}else Xf(e,t,o,null,l)}}function sh(e){return e=ud(e),uh(e)}var Au=null;function uh(e){if(Au=null,e=wr(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Au=e,null}function T0(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(Zj()){case Lp:return 2;case Up:return 8;case bs:case Pj:return 32;case Hp:return 268435456;default:return 32}default:return 32}}var ch=!1,ol=null,sl=null,ul=null,qo=new Map,Bo=new Map,cl=[],cN="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 R0(e,t){switch(e){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":sl=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":qo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bo.delete(t.pointerId)}}function Qo(e,t,l,o,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:o,nativeEvent:f,targetContainers:[d]},t!==null&&(t=Sr(t),t!==null&&C0(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function dN(e,t,l,o,d){switch(t){case"focusin":return ol=Qo(ol,e,t,l,o,d),!0;case"dragenter":return sl=Qo(sl,e,t,l,o,d),!0;case"mouseover":return ul=Qo(ul,e,t,l,o,d),!0;case"pointerover":var f=d.pointerId;return qo.set(f,Qo(qo.get(f)||null,e,t,l,o,d)),!0;case"gotpointercapture":return f=d.pointerId,Bo.set(f,Qo(Bo.get(f)||null,e,t,l,o,d)),!0}return!1}function M0(e){var t=wr(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Gp(e.priority,function(){_0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Gp(e.priority,function(){_0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ku(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=sh(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);sd=o,l.target.dispatchEvent(o),sd=null}else return t=Sr(l),t!==null&&C0(t),e.blockedOn=l,!1;t.shift()}return!0}function A0(e,t,l){ku(e)&&l.delete(t)}function fN(){ch=!1,ol!==null&&ku(ol)&&(ol=null),sl!==null&&ku(sl)&&(sl=null),ul!==null&&ku(ul)&&(ul=null),qo.forEach(A0),Bo.forEach(A0)}function Du(e,t){e.blockedOn===t&&(e.blockedOn=null,ch||(ch=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,fN)))}var Ou=null;function k0(e){Ou!==e&&(Ou=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ou===e&&(Ou=null);for(var t=0;t<e.length;t+=3){var l=e[t],o=e[t+1],d=e[t+2];if(typeof o!="function"){if(uh(o||l)===null)continue;break}var f=Sr(l);f!==null&&(e.splice(t,3),t-=3,sf(f,{pending:!0,data:d,method:l.method,action:o},o,d))}}))}function ai(e){function t(M){return Du(M,e)}ol!==null&&Du(ol,e),sl!==null&&Du(sl,e),ul!==null&&Du(ul,e),qo.forEach(t),Bo.forEach(t);for(var l=0;l<cl.length;l++){var o=cl[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<cl.length&&(l=cl[0],l.blockedOn===null);)M0(l),l.blockedOn===null&&cl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var d=l[o],f=l[o+1],b=d[Bt]||null;if(typeof f=="function")b||k0(l);else if(b){var N=null;if(f&&f.hasAttribute("formAction")){if(d=f,b=f[Bt]||null)N=b.formAction;else if(uh(d)!==null)continue}else N=b.action;typeof N=="function"?l[o+1]=N:(l.splice(o,3),o-=3),k0(l)}}}function D0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(b){return d=b})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function dh(e){this._internalRoot=e}zu.prototype.render=dh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,o=on();E0(l,o,e,t,null,null)},zu.prototype.unmount=dh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;E0(e.current,2,null,e,null,null),pu(),t[br]=null}};function zu(e){this._internalRoot=e}zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Yp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<cl.length&&t!==0&&t<cl[l].priority;l++);cl.splice(l,0,e),l===0&&M0(e)}};var O0=a.version;if(O0!=="19.2.3")throw Error(i(527,O0,"19.2.3"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?y(e):null,e=e===null?null:e.stateNode,e};var hN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lu.isDisabled&&Lu.supportsFiber)try{Zi=Lu.inject(hN),It=Lu}catch{}}return Yo.createRoot=function(e,t){if(!s(e))throw Error(i(299));var l=!1,o="",d=Qg,f=$g,b=Yg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=S0(e,1,!1,null,null,l,o,null,d,f,b,D0),e[br]=t.current,Kf(e),new dh(t)},Yo.hydrateRoot=function(e,t,l){if(!s(e))throw Error(i(299));var o=!1,d="",f=Qg,b=$g,N=Yg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=S0(e,1,!0,t,l??null,o,d,M,f,b,N,D0),t.context=j0(null),l=t.current,o=on(),o=ed(o),d=Za(o),d.callback=null,Pa(l,d,o),l=o,t.current.lanes=l,Ji(t,l),Fn(t),e[br]=t.current,Kf(e),new zu(t)},Yo.version="19.2.3",Yo}var ex;function tC(){if(ex)return vh.exports;ex=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),vh.exports=eC(),vh.exports}var nC=tC(),Go={},tx;function aC(){if(tx)return Go;tx=1,Object.defineProperty(Go,"__esModule",{value:!0}),Go.parse=h,Go.serialize=g;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,a=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,c=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,j){const E=new c,S=w.length;if(S<2)return E;const C=(j==null?void 0:j.decode)||y;let _=0;do{const T=w.indexOf("=",_);if(T===-1)break;const R=w.indexOf(";",_),D=R===-1?S:R;if(T>D){_=w.lastIndexOf(";",T-1)+1;continue}const U=m(w,_,T),K=p(w,T,U),q=w.slice(U,K);if(E[q]===void 0){let H=m(w,T+1,D),Y=p(w,D,H);const ee=C(w.slice(H,Y));E[q]=ee}_=D+1}while(_<S);return E}function m(w,j,E){do{const S=w.charCodeAt(j);if(S!==32&&S!==9)return j}while(++j<E);return E}function p(w,j,E){for(;j>E;){const S=w.charCodeAt(--j);if(S!==32&&S!==9)return j+1}return E}function g(w,j,E){const S=(E==null?void 0:E.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const C=S(j);if(!a.test(C))throw new TypeError(`argument val is invalid: ${j}`);let _=w+"="+C;if(!E)return _;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);_+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);_+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);_+="; Path="+E.path}if(E.expires){if(!x(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return _}function y(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function x(w){return s.call(w)==="[object Date]"}return Go}aC();var nx="popstate";function lC(n={}){function a(s,c){let{pathname:h="/",search:m="",hash:p=""}=pr(s.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Ih("",{pathname:h,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(s,c){let h=s.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=s.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof c=="string"?c:ts(c))}function i(s,c){Cn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return iC(a,r,i,n)}function at(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Cn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function rC(){return Math.random().toString(36).substring(2,10)}function ax(n,a){return{usr:n.state,key:n.key,idx:a}}function Ih(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?pr(a):a,state:r,key:a&&a.key||i||rC()}}function ts({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function pr(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let i=n.indexOf("?");i>=0&&(a.search=n.substring(i),n=n.substring(0,i)),n&&(a.pathname=n)}return a}function iC(n,a,r,i={}){let{window:s=document.defaultView,v5Compat:c=!1}=i,h=s.history,m="POP",p=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function x(){m="POP";let C=y(),_=C==null?null:C-g;g=C,p&&p({action:m,location:S.location,delta:_})}function w(C,_){m="PUSH";let T=Ih(S.location,C,_);r&&r(T,C),g=y()+1;let R=ax(T,g),D=S.createHref(T);try{h.pushState(R,"",D)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;s.location.assign(D)}c&&p&&p({action:m,location:S.location,delta:1})}function j(C,_){m="REPLACE";let T=Ih(S.location,C,_);r&&r(T,C),g=y();let R=ax(T,g),D=S.createHref(T);h.replaceState(R,"",D),c&&p&&p({action:m,location:S.location,delta:0})}function E(C){return oC(C)}let S={get action(){return m},get location(){return n(s,h)},listen(C){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(nx,x),p=C,()=>{s.removeEventListener(nx,x),p=null}},createHref(C){return a(s,C)},createURL:E,encodeLocation(C){let _=E(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:j,go(C){return h.go(C)}};return S}function oC(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),at(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:ts(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function _b(n,a,r="/"){return sC(n,a,r,!1)}function sC(n,a,r,i){let s=typeof a=="string"?pr(a):a,c=ka(s.pathname||"/",r);if(c==null)return null;let h=Tb(n);uC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=bC(c);m=yC(h[p],g,i)}return m}function Tb(n,a=[],r=[],i=""){let s=(c,h,m)=>{let p={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};p.relativePath.startsWith("/")&&(at(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let g=Ma([i,p.relativePath]),y=r.concat(p);c.children&&c.children.length>0&&(at(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Tb(c.children,a,y,g)),!(c.path==null&&!c.index)&&a.push({path:g,score:vC(g,c.index),routesMeta:y})};return n.forEach((c,h)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))s(c,h);else for(let p of Rb(c.path))s(c,h,p)}),a}function Rb(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,s=r.endsWith("?"),c=r.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let h=Rb(i.join("/")),m=[];return m.push(...h.map(p=>p===""?c:[c,p].join("/"))),s&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function uC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:gC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var cC=/^:[\w-]+$/,dC=3,fC=2,hC=1,mC=10,pC=-2,lx=n=>n==="*";function vC(n,a){let r=n.split("/"),i=r.length;return r.some(lx)&&(i+=pC),a&&(i+=fC),r.filter(s=>!lx(s)).reduce((s,c)=>s+(cC.test(c)?dC:c===""?hC:mC),i)}function gC(n,a){return n.length===a.length&&n.slice(0,-1).every((i,s)=>i===a[s])?n[n.length-1]-a[a.length-1]:0}function yC(n,a,r=!1){let{routesMeta:i}=n,s={},c="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,y=c==="/"?a:a.slice(c.length)||"/",x=rc({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!x&&g&&r&&!i[i.length-1].route.index&&(x=rc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!x)return null;Object.assign(s,x.params),h.push({params:s,pathname:Ma([c,x.pathname]),pathnameBase:EC(Ma([c,x.pathnameBase])),route:w}),x.pathnameBase!=="/"&&(c=Ma([c,x.pathnameBase]))}return h}function rc(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=xC(n.path,n.caseSensitive,n.end),s=a.match(r);if(!s)return null;let c=s[0],h=c.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((g,{paramName:y,isOptional:x},w)=>{if(y==="*"){let E=m[w]||"";h=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const j=m[w];return x&&!j?g[y]=void 0:g[y]=(j||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:h,pattern:n}}function xC(n,a=!1,r=!0){Cn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p)=>(i.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),i]}function bC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Cn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function ka(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function wC(n,a="/"){let{pathname:r,search:i="",hash:s=""}=typeof n=="string"?pr(n):n;return{pathname:r?r.startsWith("/")?r:SC(r,a):a,search:NC(i),hash:CC(s)}}function SC(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function bh(n,a,r,i){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jC(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Tm(n){let a=jC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function Rm(n,a,r,i=!1){let s;typeof n=="string"?s=pr(n):(s={...n},at(!s.pathname||!s.pathname.includes("?"),bh("?","pathname","search",s)),at(!s.pathname||!s.pathname.includes("#"),bh("#","pathname","hash",s)),at(!s.search||!s.search.includes("#"),bh("#","search","hash",s)));let c=n===""||s.pathname==="",h=c?"/":s.pathname,m;if(h==null)m=r;else{let x=a.length-1;if(!i&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),x-=1;s.pathname=w.join("/")}m=x>=0?a[x]:"/"}let p=wC(s,m),g=h&&h!=="/"&&h.endsWith("/"),y=(c||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Ma=n=>n.join("/").replace(/\/\/+/g,"/"),EC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),NC=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,CC=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function _C(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Mb=["POST","PUT","PATCH","DELETE"];new Set(Mb);var TC=["GET",...Mb];new Set(TC);var ki=v.createContext(null);ki.displayName="DataRouter";var jc=v.createContext(null);jc.displayName="DataRouterState";var Ab=v.createContext({isTransitioning:!1});Ab.displayName="ViewTransition";var RC=v.createContext(new Map);RC.displayName="Fetchers";var MC=v.createContext(null);MC.displayName="Await";var Qn=v.createContext(null);Qn.displayName="Navigation";var cs=v.createContext(null);cs.displayName="Location";var $n=v.createContext({outlet:null,matches:[],isDataRoute:!1});$n.displayName="Route";var Mm=v.createContext(null);Mm.displayName="RouteError";function AC(n,{relative:a}={}){at(Di(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext(Qn),{hash:s,pathname:c,search:h}=ds(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:Ma([r,c])),i.createHref({pathname:m,search:h,hash:s})}function Di(){return v.useContext(cs)!=null}function za(){return at(Di(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(cs).location}var kb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Db(n){v.useContext(Qn).static||v.useLayoutEffect(n)}function Ob(){let{isDataRoute:n}=v.useContext($n);return n?GC():kC()}function kC(){at(Di(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(ki),{basename:a,navigator:r}=v.useContext(Qn),{matches:i}=v.useContext($n),{pathname:s}=za(),c=JSON.stringify(Tm(i)),h=v.useRef(!1);return Db(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(Cn(h.current,kb),!h.current)return;if(typeof p=="number"){r.go(p);return}let y=Rm(p,JSON.parse(c),s,g.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:Ma([a,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[a,r,c,s,n])}v.createContext(null);function Ml(){let{matches:n}=v.useContext($n),a=n[n.length-1];return a?a.params:{}}function ds(n,{relative:a}={}){let{matches:r}=v.useContext($n),{pathname:i}=za(),s=JSON.stringify(Tm(r));return v.useMemo(()=>Rm(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function DC(n,a){return zb(n,a)}function zb(n,a,r,i){var _;at(Di(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(Qn),{matches:c}=v.useContext($n),h=c[c.length-1],m=h?h.params:{},p=h?h.pathname:"/",g=h?h.pathnameBase:"/",y=h&&h.route;{let T=y&&y.path||"";Lb(p,!y||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${T}">) 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.
50
-
51
- Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let x=za(),w;if(a){let T=typeof a=="string"?pr(a):a;at(g==="/"||((_=T.pathname)==null?void 0:_.startsWith(g)),`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 "${g}" but pathname "${T.pathname}" was given in the \`location\` prop.`),w=T}else w=x;let j=w.pathname||"/",E=j;if(g!=="/"){let T=g.replace(/^\//,"").split("/");E="/"+j.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=_b(n,{pathname:E});Cn(y||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Cn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.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 C=HC(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},m,T.params),pathname:Ma([g,s.encodeLocation?s.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:Ma([g,s.encodeLocation?s.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),c,r,i);return a&&C?v.createElement(cs.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},C):C}function OC(){let n=YC(),a=_C(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:c},"ErrorBoundary")," or"," ",v.createElement("code",{style:c},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},a),r?v.createElement("pre",{style:s},r):null,h)}var zC=v.createElement(OC,null),LC=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,a){return a.location!==n.location||a.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:a.error,location:a.location,revalidation:n.revalidation||a.revalidation}}componentDidCatch(n,a){console.error("React Router caught the following error during render",n,a)}render(){return this.state.error!==void 0?v.createElement($n.Provider,{value:this.props.routeContext},v.createElement(Mm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function UC({routeContext:n,match:a,children:r}){let i=v.useContext(ki);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),v.createElement($n.Provider,{value:n},r)}function HC(n,a=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let s=n,c=r==null?void 0:r.errors;if(c!=null){let p=s.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);at(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let h=!1,m=-1;if(r)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:y,errors:x}=r,w=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||w){h=!0,m>=0?s=s.slice(0,m+1):s=[s[0]];break}}}return s.reduceRight((p,g,y)=>{let x,w=!1,j=null,E=null;r&&(x=c&&g.route.id?c[g.route.id]:void 0,j=g.route.errorElement||zC,h&&(m<0&&y===0?(Lb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===y&&(w=!0,E=g.route.hydrateFallbackElement||null)));let S=a.concat(s.slice(0,y+1)),C=()=>{let _;return x?_=j:w?_=E:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(UC,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?v.createElement(LC,{location:r.location,revalidation:r.revalidation,component:j,error:x,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}function Am(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function qC(n){let a=v.useContext(ki);return at(a,Am(n)),a}function BC(n){let a=v.useContext(jc);return at(a,Am(n)),a}function QC(n){let a=v.useContext($n);return at(a,Am(n)),a}function km(n){let a=QC(n),r=a.matches[a.matches.length-1];return at(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function $C(){return km("useRouteId")}function YC(){var i;let n=v.useContext(Mm),a=BC("useRouteError"),r=km("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function GC(){let{router:n}=qC("useNavigate"),a=km("useNavigate"),r=v.useRef(!1);return Db(()=>{r.current=!0}),v.useCallback(async(s,c={})=>{Cn(r.current,kb),r.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:a,...c}))},[n,a])}var rx={};function Lb(n,a,r){!a&&!rx[n]&&(rx[n]=!0,Cn(!1,r))}v.memo(VC);function VC({routes:n,future:a,state:r}){return zb(n,void 0,r,a)}function fl({to:n,replace:a,state:r,relative:i}){at(Di(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=v.useContext(Qn);Cn(!s,"<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:c}=v.useContext($n),{pathname:h}=za(),m=Ob(),p=Rm(n,Tm(c),h,i==="path"),g=JSON.stringify(p);return v.useEffect(()=>{m(JSON.parse(g),{replace:a,state:r,relative:i})},[m,g,i,a,r]),null}function kn(n){at(!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 KC({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:s,static:c=!1}){at(!Di(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:h,navigator:s,static:c,future:{}}),[h,s,c]);typeof r=="string"&&(r=pr(r));let{pathname:p="/",search:g="",hash:y="",state:x=null,key:w="default"}=r,j=v.useMemo(()=>{let E=ka(p,h);return E==null?null:{location:{pathname:E,search:g,hash:y,state:x,key:w},navigationType:i}},[h,p,g,y,x,w,i]);return Cn(j!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:v.createElement(Qn.Provider,{value:m},v.createElement(cs.Provider,{children:a,value:j}))}function XC({children:n,location:a}){return DC(Wh(n),a)}function Wh(n,a=[]){let r=[];return v.Children.forEach(n,(i,s)=>{if(!v.isValidElement(i))return;let c=[...a,s];if(i.type===v.Fragment){r.push.apply(r,Wh(i.props.children,c));return}at(i.type===kn,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),at(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(h.children=Wh(i.props.children,c)),r.push(h)}),r}var Pu="get",Ju="application/x-www-form-urlencoded";function Ec(n){return n!=null&&typeof n.tagName=="string"}function FC(n){return Ec(n)&&n.tagName.toLowerCase()==="button"}function ZC(n){return Ec(n)&&n.tagName.toLowerCase()==="form"}function PC(n){return Ec(n)&&n.tagName.toLowerCase()==="input"}function JC(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function IC(n,a){return n.button===0&&(!a||a==="_self")&&!JC(n)}var qu=null;function WC(){if(qu===null)try{new FormData(document.createElement("form"),0),qu=!1}catch{qu=!0}return qu}var e_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function wh(n){return n!=null&&!e_.has(n)?(Cn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ju}"`),null):n}function t_(n,a){let r,i,s,c,h;if(ZC(n)){let m=n.getAttribute("action");i=m?ka(m,a):null,r=n.getAttribute("method")||Pu,s=wh(n.getAttribute("enctype"))||Ju,c=new FormData(n)}else if(FC(n)||PC(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||m.getAttribute("action");if(i=p?ka(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Pu,s=wh(n.getAttribute("formenctype"))||wh(m.getAttribute("enctype"))||Ju,c=new FormData(m,n),!WC()){let{name:g,type:y,value:x}=n;if(y==="image"){let w=g?`${g}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else g&&c.append(g,x)}}else{if(Ec(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pu,i=null,s=Ju,h=n}return c&&s==="text/plain"&&(h=c,c=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:c,body:h}}function Dm(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function n_(n,a){if(n.id in a)return a[n.id];try{let r=await import(n.module);return a[n.id]=r,r}catch(r){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function a_(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function l_(n,a,r){let i=await Promise.all(n.map(async s=>{let c=a.routes[s.route.id];if(c){let h=await n_(c,r);return h.links?h.links():[]}return[]}));return s_(i.flat(1).filter(a_).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function ix(n,a,r,i,s,c){let h=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,m=(p,g)=>{var y;return r[g].pathname!==p.pathname||((y=r[g].route.path)==null?void 0:y.endsWith("*"))&&r[g].params["*"]!==p.params["*"]};return c==="assets"?a.filter((p,g)=>h(p,g)||m(p,g)):c==="data"?a.filter((p,g)=>{var x;let y=i.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((x=r[0])==null?void 0:x.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function r_(n,a,{includeHydrateFallback:r}={}){return i_(n.map(i=>{let s=a.routes[i.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function i_(n){return[...new Set(n)]}function o_(n){let a={},r=Object.keys(n).sort();for(let i of r)a[i]=n[i];return a}function s_(n,a){let r=new Set;return new Set(a),n.reduce((i,s)=>{let c=JSON.stringify(o_(s));return r.has(c)||(r.add(c),i.push({key:c,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var u_=new Set([100,101,204,205]);function c_(n,a){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":a&&ka(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Ub(){let n=v.useContext(ki);return Dm(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function d_(){let n=v.useContext(jc);return Dm(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Om=v.createContext(void 0);Om.displayName="FrameworkContext";function Hb(){let n=v.useContext(Om);return Dm(n,"You must render this element inside a <HydratedRouter> element"),n}function f_(n,a){let r=v.useContext(Om),[i,s]=v.useState(!1),[c,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:x}=a,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let S=_=>{_.forEach(T=>{h(T.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let S=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(S)}}},[i]);let j=()=>{s(!0)},E=()=>{s(!1),h(!1)};return r?n!=="intent"?[c,w,{}]:[c,w,{onFocus:Vo(m,j),onBlur:Vo(p,E),onMouseEnter:Vo(g,j),onMouseLeave:Vo(y,E),onTouchStart:Vo(x,j)}]:[!1,w,{}]}function Vo(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function h_({page:n,...a}){let{router:r}=Ub(),i=v.useMemo(()=>_b(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(p_,{page:n,matches:i,...a}):null}function m_(n){let{manifest:a,routeModules:r}=Hb(),[i,s]=v.useState([]);return v.useEffect(()=>{let c=!1;return l_(n,a,r).then(h=>{c||s(h)}),()=>{c=!0}},[n,a,r]),i}function p_({page:n,matches:a,...r}){let i=za(),{manifest:s,routeModules:c}=Hb(),{basename:h}=Ub(),{loaderData:m,matches:p}=d_(),g=v.useMemo(()=>ix(n,a,p,s,i,"data"),[n,a,p,s,i]),y=v.useMemo(()=>ix(n,a,p,s,i,"assets"),[n,a,p,s,i]),x=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,S=!1;if(a.forEach(_=>{var R;let T=s.routes[_.route.id];!T||!T.hasLoader||(!g.some(D=>D.route.id===_.route.id)&&_.route.id in m&&((R=c[_.route.id])!=null&&R.shouldRevalidate)||T.hasClientLoader?S=!0:E.add(_.route.id))}),E.size===0)return[];let C=c_(n,h);return S&&E.size>0&&C.searchParams.set("_routes",a.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[h,m,i,s,g,a,n,c]),w=v.useMemo(()=>r_(y,s),[y,s]),j=m_(y);return v.createElement(v.Fragment,null,x.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),w.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),j.map(({key:E,link:S})=>v.createElement("link",{key:E,...S})))}function v_(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var qb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{qb&&(window.__reactRouterVersion="7.6.1")}catch{}function g_({basename:n,children:a,window:r}){let i=v.useRef();i.current==null&&(i.current=lC({window:r,v5Compat:!0}));let s=i.current,[c,h]=v.useState({action:s.action,location:s.location}),m=v.useCallback(p=>{v.startTransition(()=>h(p))},[h]);return v.useLayoutEffect(()=>s.listen(m),[s,m]),v.createElement(KC,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:s})}var Bb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sn=v.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:s,reloadDocument:c,replace:h,state:m,target:p,to:g,preventScrollReset:y,viewTransition:x,...w},j){let{basename:E}=v.useContext(Qn),S=typeof g=="string"&&Bb.test(g),C,_=!1;if(typeof g=="string"&&S&&(C=g,qb))try{let Y=new URL(window.location.href),ee=g.startsWith("//")?new URL(Y.protocol+g):new URL(g),ue=ka(ee.pathname,E);ee.origin===Y.origin&&ue!=null?g=ue+ee.search+ee.hash:_=!0}catch{Cn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=AC(g,{relative:s}),[R,D,U]=f_(i,w),K=w_(g,{replace:h,state:m,target:p,preventScrollReset:y,relative:s,viewTransition:x});function q(Y){a&&a(Y),Y.defaultPrevented||K(Y)}let H=v.createElement("a",{...w,...U,href:C||T,onClick:_||c?a:q,ref:v_(j,D),target:p,"data-discover":!S&&r==="render"?"true":void 0});return R&&!S?v.createElement(v.Fragment,null,H,v.createElement(h_,{page:T})):H});sn.displayName="Link";var y_=v.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:s=!1,style:c,to:h,viewTransition:m,children:p,...g},y){let x=ds(h,{relative:g.relative}),w=za(),j=v.useContext(jc),{navigator:E,basename:S}=v.useContext(Qn),C=j!=null&&C_(x)&&m===!0,_=E.encodeLocation?E.encodeLocation(x).pathname:x.pathname,T=w.pathname,R=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;r||(T=T.toLowerCase(),R=R?R.toLowerCase():null,_=_.toLowerCase()),R&&S&&(R=ka(R,S)||R);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let U=T===_||!s&&T.startsWith(_)&&T.charAt(D)==="/",K=R!=null&&(R===_||!s&&R.startsWith(_)&&R.charAt(_.length)==="/"),q={isActive:U,isPending:K,isTransitioning:C},H=U?a:void 0,Y;typeof i=="function"?Y=i(q):Y=[i,U?"active":null,K?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ee=typeof c=="function"?c(q):c;return v.createElement(sn,{...g,"aria-current":H,className:Y,ref:y,style:ee,to:h,viewTransition:m},typeof p=="function"?p(q):p)});y_.displayName="NavLink";var x_=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:s,state:c,method:h=Pu,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:x,...w},j)=>{let E=E_(),S=N_(m,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Bb.test(m),T=R=>{if(p&&p(R),R.defaultPrevented)return;R.preventDefault();let D=R.nativeEvent.submitter,U=(D==null?void 0:D.getAttribute("formmethod"))||h;E(D||R.currentTarget,{fetcherKey:a,method:U,navigate:r,replace:s,state:c,relative:g,preventScrollReset:y,viewTransition:x})};return v.createElement("form",{ref:j,method:C,action:S,onSubmit:i?p:T,...w,"data-discover":!_&&n==="render"?"true":void 0})});x_.displayName="Form";function b_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qb(n){let a=v.useContext(ki);return at(a,b_(n)),a}function w_(n,{target:a,replace:r,state:i,preventScrollReset:s,relative:c,viewTransition:h}={}){let m=Ob(),p=za(),g=ds(n,{relative:c});return v.useCallback(y=>{if(IC(y,a)){y.preventDefault();let x=r!==void 0?r:ts(p)===ts(g);m(n,{replace:x,state:i,preventScrollReset:s,relative:c,viewTransition:h})}},[p,m,g,r,i,a,n,s,c,h])}var S_=0,j_=()=>`__${String(++S_)}__`;function E_(){let{router:n}=Qb("useSubmit"),{basename:a}=v.useContext(Qn),r=$C();return v.useCallback(async(i,s={})=>{let{action:c,method:h,encType:m,formData:p,body:g}=t_(i,a);if(s.navigate===!1){let y=s.fetcherKey||j_();await n.fetch(y,r,s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,flushSync:s.flushSync})}else await n.navigate(s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,r])}function N_(n,{relative:a}={}){let{basename:r}=v.useContext(Qn),i=v.useContext($n);at(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...ds(n||".",{relative:a})},h=za();if(n==null){c.search=h.search;let m=new URLSearchParams(c.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(x=>x).forEach(x=>m.append("index",x));let y=m.toString();c.search=y?`?${y}`:""}}return(!n||n===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:Ma([r,c.pathname])),ts(c)}function C_(n,a={}){let r=v.useContext(Ab);at(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Qb("useViewTransitionState"),s=ds(n,{relative:a.relative});if(!r.isTransitioning)return!1;let c=ka(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=ka(r.nextLocation.pathname,i)||r.nextLocation.pathname;return rc(s.pathname,h)!=null||rc(s.pathname,c)!=null}[...u_];var fs=Cb();const $b=db(fs);/**
52
- * @license lucide-react v0.488.0 - ISC
53
- *
54
- * This source code is licensed under the ISC license.
55
- * See the LICENSE file in the root directory of this source tree.
56
- */const __=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),T_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),ox=n=>{const a=T_(n);return a.charAt(0).toUpperCase()+a.slice(1)},Yb=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim();/**
57
- * @license lucide-react v0.488.0 - ISC
58
- *
59
- * This source code is licensed under the ISC license.
60
- * See the LICENSE file in the root directory of this source tree.
61
- */var R_={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"};/**
62
- * @license lucide-react v0.488.0 - ISC
63
- *
64
- * This source code is licensed under the ISC license.
65
- * See the LICENSE file in the root directory of this source tree.
66
- */const M_=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...R_,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:Yb("lucide",s),...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
67
- * @license lucide-react v0.488.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */const Ge=(n,a)=>{const r=v.forwardRef(({className:i,...s},c)=>v.createElement(M_,{ref:c,iconNode:a,className:Yb(`lucide-${__(ox(n))}`,`lucide-${n}`,i),...s}));return r.displayName=ox(n),r};/**
72
- * @license lucide-react v0.488.0 - ISC
73
- *
74
- * This source code is licensed under the ISC license.
75
- * See the LICENSE file in the root directory of this source tree.
76
- */const A_=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],k_=Ge("archive",A_);/**
77
- * @license lucide-react v0.488.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const D_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],O_=Ge("arrow-left",D_);/**
82
- * @license lucide-react v0.488.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */const z_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],L_=Ge("ban",z_);/**
87
- * @license lucide-react v0.488.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const U_=[["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"}]],H_=Ge("bell",U_);/**
92
- * @license lucide-react v0.488.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const q_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Gb=Ge("chevron-down",q_);/**
97
- * @license lucide-react v0.488.0 - ISC
98
- *
99
- * This source code is licensed under the ISC license.
100
- * See the LICENSE file in the root directory of this source tree.
101
- */const B_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Nc=Ge("chevron-left",B_);/**
102
- * @license lucide-react v0.488.0 - ISC
103
- *
104
- * This source code is licensed under the ISC license.
105
- * See the LICENSE file in the root directory of this source tree.
106
- */const Q_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Oi=Ge("chevron-right",Q_);/**
107
- * @license lucide-react v0.488.0 - ISC
108
- *
109
- * This source code is licensed under the ISC license.
110
- * See the LICENSE file in the root directory of this source tree.
111
- */const $_=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],Y_=Ge("chevrons-down-up",$_);/**
112
- * @license lucide-react v0.488.0 - ISC
113
- *
114
- * This source code is licensed under the ISC license.
115
- * See the LICENSE file in the root directory of this source tree.
116
- */const G_=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],V_=Ge("chevrons-up-down",G_);/**
117
- * @license lucide-react v0.488.0 - ISC
118
- *
119
- * This source code is licensed under the ISC license.
120
- * See the LICENSE file in the root directory of this source tree.
121
- */const K_=[["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"}]],X_=Ge("circle-alert",K_);/**
122
- * @license lucide-react v0.488.0 - ISC
123
- *
124
- * This source code is licensed under the ISC license.
125
- * See the LICENSE file in the root directory of this source tree.
126
- */const F_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],_l=Ge("circle-check",F_);/**
127
- * @license lucide-react v0.488.0 - ISC
128
- *
129
- * This source code is licensed under the ISC license.
130
- * See the LICENSE file in the root directory of this source tree.
131
- */const Z_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],zi=Ge("circle-x",Z_);/**
132
- * @license lucide-react v0.488.0 - ISC
133
- *
134
- * This source code is licensed under the ISC license.
135
- * See the LICENSE file in the root directory of this source tree.
136
- */const P_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],vr=Ge("clock",P_);/**
137
- * @license lucide-react v0.488.0 - ISC
138
- *
139
- * This source code is licensed under the ISC license.
140
- * See the LICENSE file in the root directory of this source tree.
141
- */const J_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Vb=Ge("columns-3",J_);/**
142
- * @license lucide-react v0.488.0 - ISC
143
- *
144
- * This source code is licensed under the ISC license.
145
- * See the LICENSE file in the root directory of this source tree.
146
- */const I_=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],W_=Ge("database",I_);/**
147
- * @license lucide-react v0.488.0 - ISC
148
- *
149
- * This source code is licensed under the ISC license.
150
- * See the LICENSE file in the root directory of this source tree.
151
- */const eT=[["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"}]],tT=Ge("folder-open",eT);/**
152
- * @license lucide-react v0.488.0 - ISC
153
- *
154
- * This source code is licensed under the ISC license.
155
- * See the LICENSE file in the root directory of this source tree.
156
- */const nT=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],aT=Ge("git-branch",nT);/**
157
- * @license lucide-react v0.488.0 - ISC
158
- *
159
- * This source code is licensed under the ISC license.
160
- * See the LICENSE file in the root directory of this source tree.
161
- */const lT=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],rT=Ge("inbox",lT);/**
162
- * @license lucide-react v0.488.0 - ISC
163
- *
164
- * This source code is licensed under the ISC license.
165
- * See the LICENSE file in the root directory of this source tree.
166
- */const iT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Kb=Ge("info",iT);/**
167
- * @license lucide-react v0.488.0 - ISC
168
- *
169
- * This source code is licensed under the ISC license.
170
- * See the LICENSE file in the root directory of this source tree.
171
- */const oT=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Xb=Ge("key",oT);/**
172
- * @license lucide-react v0.488.0 - ISC
173
- *
174
- * This source code is licensed under the ISC license.
175
- * See the LICENSE file in the root directory of this source tree.
176
- */const sT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Hn=Ge("loader-circle",sT);/**
177
- * @license lucide-react v0.488.0 - ISC
178
- *
179
- * This source code is licensed under the ISC license.
180
- * See the LICENSE file in the root directory of this source tree.
181
- */const uT=[["path",{d:"M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5",key:"e61zoh"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}],["path",{d:"M20 14v4",key:"1hm744"}],["path",{d:"M20 22v.01",key:"12bgn6"}]],cT=Ge("mail-warning",uT);/**
182
- * @license lucide-react v0.488.0 - ISC
183
- *
184
- * This source code is licensed under the ISC license.
185
- * See the LICENSE file in the root directory of this source tree.
186
- */const dT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],zm=Ge("play",dT);/**
187
- * @license lucide-react v0.488.0 - ISC
188
- *
189
- * This source code is licensed under the ISC license.
190
- * See the LICENSE file in the root directory of this source tree.
191
- */const fT=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],hs=Ge("refresh-cw",fT);/**
192
- * @license lucide-react v0.488.0 - ISC
193
- *
194
- * This source code is licensed under the ISC license.
195
- * See the LICENSE file in the root directory of this source tree.
196
- */const hT=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],mT=Ge("repeat",hT);/**
197
- * @license lucide-react v0.488.0 - ISC
198
- *
199
- * This source code is licensed under the ISC license.
200
- * See the LICENSE file in the root directory of this source tree.
201
- */const pT=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],vT=Ge("search",pT);/**
202
- * @license lucide-react v0.488.0 - ISC
203
- *
204
- * This source code is licensed under the ISC license.
205
- * See the LICENSE file in the root directory of this source tree.
206
- */const gT=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],yT=Ge("settings",gT);/**
207
- * @license lucide-react v0.488.0 - ISC
208
- *
209
- * This source code is licensed under the ISC license.
210
- * See the LICENSE file in the root directory of this source tree.
211
- */const xT=[["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"}]],bT=Ge("shield",xT);/**
212
- * @license lucide-react v0.488.0 - ISC
213
- *
214
- * This source code is licensed under the ISC license.
215
- * See the LICENSE file in the root directory of this source tree.
216
- */const wT=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],Cc=Ge("table",wT);/**
217
- * @license lucide-react v0.488.0 - ISC
218
- *
219
- * This source code is licensed under the ISC license.
220
- * See the LICENSE file in the root directory of this source tree.
221
- */const ST=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],jT=Ge("timer",ST);function Fb(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n))for(a=0;a<n.length;a++)n[a]&&(r=Fb(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function ET(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=Fb(n))&&(i&&(i+=" "),i+=a);return i}const Lm="-",NT=n=>{const a=_T(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:s=>{const c=s.split(Lm);return c[0]===""&&c.length!==1&&c.shift(),Zb(c,a)||CT(s)},getConflictingClassGroupIds:(s,c)=>{const h=r[s]||[];return c&&i[s]?[...h,...i[s]]:h}}},Zb=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],s=a.nextPart.get(i),c=s?Zb(n.slice(1),s):void 0;if(c)return c;if(a.validators.length===0)return;const h=n.join(Lm);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},sx=/^\[(.+)\]$/,CT=n=>{if(sx.test(n)){const a=sx.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},_T=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const s in r)em(r[s],i,s,a);return i},em=(n,a,r,i)=>{n.forEach(s=>{if(typeof s=="string"){const c=s===""?a:ux(a,s);c.classGroupId=r;return}if(typeof s=="function"){if(TT(s)){em(s(i),a,r,i);return}a.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([c,h])=>{em(h,ux(a,c),r,i)})})},ux=(n,a)=>{let r=n;return a.split(Lm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},TT=n=>n.isThemeGetter,RT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const s=(c,h)=>{r.set(c,h),a++,a>n&&(a=0,i=r,r=new Map)};return{get(c){let h=r.get(c);if(h!==void 0)return h;if((h=i.get(c))!==void 0)return s(c,h),h},set(c,h){r.has(c)?r.set(c,h):s(c,h)}}},tm="!",nm=":",MT=nm.length,AT=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=s=>{const c=[];let h=0,m=0,p=0,g;for(let E=0;E<s.length;E++){let S=s[E];if(h===0&&m===0){if(S===nm){c.push(s.slice(p,E)),p=E+MT;continue}if(S==="/"){g=E;continue}}S==="["?h++:S==="]"?h--:S==="("?m++:S===")"&&m--}const y=c.length===0?s:s.substring(p),x=kT(y),w=x!==y,j=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:j}};if(a){const s=a+nm,c=i;i=h=>h.startsWith(s)?c(h.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=c=>r({className:c,parseClassName:s})}return i},kT=n=>n.endsWith(tm)?n.substring(0,n.length-1):n.startsWith(tm)?n.substring(1):n,DT=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(c=>{c[0]==="["||a[c]?(i.push(...s.sort(),c),s=[]):s.push(c)}),i.push(...s.sort()),i}},OT=n=>({cache:RT(n.cacheSize),parseClassName:AT(n),sortModifiers:DT(n),...NT(n)}),zT=/\s+/,LT=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c}=a,h=[],m=n.trim().split(zT);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:x,modifiers:w,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:S}=r(y);if(x){p=y+(p.length>0?" "+p:p);continue}let C=!!S,_=i(C?E.substring(0,S):E);if(!_){if(!C){p=y+(p.length>0?" "+p:p);continue}if(_=i(E),!_){p=y+(p.length>0?" "+p:p);continue}C=!1}const T=c(w).join(":"),R=j?T+tm:T,D=R+_;if(h.includes(D))continue;h.push(D);const U=s(_,C);for(let K=0;K<U.length;++K){const q=U[K];h.push(R+q)}p=y+(p.length>0?" "+p:p)}return p};function UT(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=Pb(a))&&(i&&(i+=" "),i+=r);return i}const Pb=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=Pb(n[i]))&&(r&&(r+=" "),r+=a);return r};function HT(n,...a){let r,i,s,c=h;function h(p){const g=a.reduce((y,x)=>x(y),n());return r=OT(g),i=r.cache.get,s=r.cache.set,c=m,m(p)}function m(p){const g=i(p);if(g)return g;const y=LT(p,r);return s(p,y),y}return function(){return c(UT.apply(null,arguments))}}const xt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},Jb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ib=/^\((?:(\w[\w-]*):)?(.+)\)$/i,qT=/^\d+\/\d+$/,BT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,QT=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$T=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,YT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,li=n=>qT.test(n),Me=n=>!!n&&!Number.isNaN(Number(n)),hl=n=>!!n&&Number.isInteger(Number(n)),Sh=n=>n.endsWith("%")&&Me(n.slice(0,-1)),Ca=n=>BT.test(n),VT=()=>!0,KT=n=>QT.test(n)&&!$T.test(n),Wb=()=>!1,XT=n=>YT.test(n),FT=n=>GT.test(n),ZT=n=>!he(n)&&!me(n),PT=n=>Li(n,nw,Wb),he=n=>Jb.test(n),Wl=n=>Li(n,aw,KT),jh=n=>Li(n,tR,Me),cx=n=>Li(n,ew,Wb),JT=n=>Li(n,tw,FT),Bu=n=>Li(n,lw,XT),me=n=>Ib.test(n),Ko=n=>Ui(n,aw),IT=n=>Ui(n,nR),dx=n=>Ui(n,ew),WT=n=>Ui(n,nw),eR=n=>Ui(n,tw),Qu=n=>Ui(n,lw,!0),Li=(n,a,r)=>{const i=Jb.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},Ui=(n,a,r=!1)=>{const i=Ib.exec(n);return i?i[1]?a(i[1]):r:!1},ew=n=>n==="position"||n==="percentage",tw=n=>n==="image"||n==="url",nw=n=>n==="length"||n==="size"||n==="bg-size",aw=n=>n==="length",tR=n=>n==="number",nR=n=>n==="family-name",lw=n=>n==="shadow",aR=()=>{const n=xt("color"),a=xt("font"),r=xt("text"),i=xt("font-weight"),s=xt("tracking"),c=xt("leading"),h=xt("breakpoint"),m=xt("container"),p=xt("spacing"),g=xt("radius"),y=xt("shadow"),x=xt("inset-shadow"),w=xt("text-shadow"),j=xt("drop-shadow"),E=xt("blur"),S=xt("perspective"),C=xt("aspect"),_=xt("ease"),T=xt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...D(),me,he],K=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],H=()=>[me,he,p],Y=()=>[li,"full","auto",...H()],ee=()=>[hl,"none","subgrid",me,he],ue=()=>["auto",{span:["full",hl,me,he]},hl,me,he],ce=()=>[hl,"auto",me,he],ie=()=>["auto","min","max","fr",me,he],ae=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...H()],J=()=>[li,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],G=()=>[n,me,he],X=()=>[...D(),dx,cx,{position:[me,he]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",WT,PT,{size:[me,he]}],F=()=>[Sh,Ko,Wl],W=()=>["","none","full",g,me,he],le=()=>["",Me,Ko,Wl],ve=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],te=()=>[Me,Sh,dx,cx],Ee=()=>["","none",E,me,he],ye=()=>["none",Me,me,he],Ne=()=>["none",Me,me,he],qe=()=>[Me,me,he],Ve=()=>[li,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ca],breakpoint:[Ca],color:[VT],container:[Ca],"drop-shadow":[Ca],ease:["in","out","in-out"],font:[ZT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ca],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ca],shadow:[Ca],spacing:["px",Me],text:[Ca],"text-shadow":[Ca],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",li,he,me,C]}],container:["container"],columns:[{columns:[Me,he,me,m]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Y()}],"inset-x":[{"inset-x":Y()}],"inset-y":[{"inset-y":Y()}],start:[{start:Y()}],end:[{end:Y()}],top:[{top:Y()}],right:[{right:Y()}],bottom:[{bottom:Y()}],left:[{left:Y()}],visibility:["visible","invisible","collapse"],z:[{z:[hl,"auto",me,he]}],basis:[{basis:[li,"full","auto",m,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,li,"auto","initial","none",he]}],grow:[{grow:["",Me,me,he]}],shrink:[{shrink:["",Me,me,he]}],order:[{order:[hl,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":ee()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":ee()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...ae(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ae()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:J()}],w:[{w:[m,"screen",...J()]}],"min-w":[{"min-w":[m,"screen","none",...J()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...J()]}],h:[{h:["screen",...J()]}],"min-h":[{"min-h":["screen","none",...J()]}],"max-h":[{"max-h":["screen",...J()]}],"font-size":[{text:["base",r,Ko,Wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,me,jh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Sh,he]}],"font-family":[{font:[IT,he,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,me,he]}],"line-clamp":[{"line-clamp":[Me,"none",me,jh]}],leading:[{leading:[c,...H()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",me,Wl]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[Me,"auto",me,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hl,me,he],radial:["",me,he],conic:[hl,me,he]},eR,JT]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,me,he]}],"outline-w":[{outline:["",Me,Ko,Wl]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",y,Qu,Bu]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",x,Qu,Bu]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[Me,Wl]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",w,Qu,Bu]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[Me,me,he]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":te()}],"mask-image-linear-to-pos":[{"mask-linear-to":te()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":te()}],"mask-image-t-to-pos":[{"mask-t-to":te()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":te()}],"mask-image-r-to-pos":[{"mask-r-to":te()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":te()}],"mask-image-b-to-pos":[{"mask-b-to":te()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":te()}],"mask-image-l-to-pos":[{"mask-l-to":te()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":te()}],"mask-image-x-to-pos":[{"mask-x-to":te()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":te()}],"mask-image-y-to-pos":[{"mask-y-to":te()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":te()}],"mask-image-radial-to-pos":[{"mask-radial-to":te()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":te()}],"mask-image-conic-to-pos":[{"mask-conic-to":te()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:Ee()}],brightness:[{brightness:[Me,me,he]}],contrast:[{contrast:[Me,me,he]}],"drop-shadow":[{"drop-shadow":["","none",j,Qu,Bu]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",Me,me,he]}],"hue-rotate":[{"hue-rotate":[Me,me,he]}],invert:[{invert:["",Me,me,he]}],saturate:[{saturate:[Me,me,he]}],sepia:[{sepia:["",Me,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Me,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[Me,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,me,he]}],"backdrop-invert":[{"backdrop-invert":["",Me,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[Me,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[Me,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",me,he]}],ease:[{ease:["linear","initial",_,me,he]}],delay:[{delay:[Me,me,he]}],animate:[{animate:["none",T,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,me,he]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:qe()}],"skew-x":[{"skew-x":qe()}],"skew-y":[{"skew-y":qe()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ve()}],"translate-x":[{"translate-x":Ve()}],"translate-y":[{"translate-y":Ve()}],"translate-z":[{"translate-z":Ve()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,he]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[Me,Ko,Wl,jh]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},lR=HT(aR);function pe(...n){return lR(ET(n))}function si(n){return n===null?"-":n<1e3?`${String(n)}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const rR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},iR={sm:"dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]",md:"dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]",lg:"dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]"};function ic({children:n,className:a,rounded:r="lg",shadow:i="md",...s}){return u.jsxs("div",{"data-slot":"glass-container",className:pe("relative","bg-card","backdrop-blur-xl","border border-border",rR[r],iR[i],a),...s,children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none dark:block hidden",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 pointer-events-none block dark:hidden",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"relative z-10",children:n})]})}function wt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...s}){return u.jsx(ic,{"data-slot":"card",rounded:a,shadow:r,className:pe("p-6",n),...s,children:i})}function kt({className:n,...a}){return u.jsx("div",{"data-slot":"card-header",className:pe("flex flex-row items-center justify-between space-y-0 pb-2",n),...a})}function Dt({className:n,...a}){return u.jsx("h3",{"data-slot":"card-title",className:pe("font-semibold text-sm leading-none text-card-foreground",n),...a})}function Zt({className:n,...a}){return u.jsx("p",{"data-slot":"card-description",className:pe("text-muted-foreground text-sm",n),...a})}function St({className:n,...a}){return u.jsx("div",{"data-slot":"card-content",className:pe(n),...a})}/**
222
- * @license lucide-react v0.511.0 - ISC
223
- *
224
- * This source code is licensed under the ISC license.
225
- * See the LICENSE file in the root directory of this source tree.
226
- */const oR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),sR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),fx=n=>{const a=sR(n);return a.charAt(0).toUpperCase()+a.slice(1)},rw=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),uR=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
227
- * @license lucide-react v0.511.0 - ISC
228
- *
229
- * This source code is licensed under the ISC license.
230
- * See the LICENSE file in the root directory of this source tree.
231
- */var cR={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"};/**
232
- * @license lucide-react v0.511.0 - ISC
233
- *
234
- * This source code is licensed under the ISC license.
235
- * See the LICENSE file in the root directory of this source tree.
236
- */const dR=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...cR,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:rw("lucide",s),...!c&&!uR(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
237
- * @license lucide-react v0.511.0 - ISC
238
- *
239
- * This source code is licensed under the ISC license.
240
- * See the LICENSE file in the root directory of this source tree.
241
- */const Yn=(n,a)=>{const r=v.forwardRef(({className:i,...s},c)=>v.createElement(dR,{ref:c,iconNode:a,className:rw(`lucide-${oR(fx(n))}`,`lucide-${n}`,i),...s}));return r.displayName=fx(n),r};/**
242
- * @license lucide-react v0.511.0 - ISC
243
- *
244
- * This source code is licensed under the ISC license.
245
- * See the LICENSE file in the root directory of this source tree.
246
- */const fR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],iw=Yn("check",fR);/**
247
- * @license lucide-react v0.511.0 - ISC
248
- *
249
- * This source code is licensed under the ISC license.
250
- * See the LICENSE file in the root directory of this source tree.
251
- */const hR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],mR=Yn("chevron-down",hR);/**
252
- * @license lucide-react v0.511.0 - ISC
253
- *
254
- * This source code is licensed under the ISC license.
255
- * See the LICENSE file in the root directory of this source tree.
256
- */const pR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],hx=Yn("chevron-left",pR);/**
257
- * @license lucide-react v0.511.0 - ISC
258
- *
259
- * This source code is licensed under the ISC license.
260
- * See the LICENSE file in the root directory of this source tree.
261
- */const vR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],mx=Yn("chevron-right",vR);/**
262
- * @license lucide-react v0.511.0 - ISC
263
- *
264
- * This source code is licensed under the ISC license.
265
- * See the LICENSE file in the root directory of this source tree.
266
- */const gR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],yR=Yn("chevron-up",gR);/**
267
- * @license lucide-react v0.511.0 - ISC
268
- *
269
- * This source code is licensed under the ISC license.
270
- * See the LICENSE file in the root directory of this source tree.
271
- */const xR=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}]],bR=Yn("clipboard",xR);/**
272
- * @license lucide-react v0.511.0 - ISC
273
- *
274
- * This source code is licensed under the ISC license.
275
- * See the LICENSE file in the root directory of this source tree.
276
- */const wR=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 12a1 1 0 0 0-1 1v1a1 1 0 0 1-1 1 1 1 0 0 1 1 1v1a1 1 0 0 0 1 1",key:"1oajmo"}],["path",{d:"M14 18a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1 1 1 0 0 1-1-1v-1a1 1 0 0 0-1-1",key:"mpwhp6"}]],SR=Yn("file-json",wR);/**
277
- * @license lucide-react v0.511.0 - ISC
278
- *
279
- * This source code is licensed under the ISC license.
280
- * See the LICENSE file in the root directory of this source tree.
281
- */const jR=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],ER=Yn("file-spreadsheet",jR);/**
282
- * @license lucide-react v0.511.0 - ISC
283
- *
284
- * This source code is licensed under the ISC license.
285
- * See the LICENSE file in the root directory of this source tree.
286
- */const NR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],CR=Yn("loader-circle",NR);/**
287
- * @license lucide-react v0.511.0 - ISC
288
- *
289
- * This source code is licensed under the ISC license.
290
- * See the LICENSE file in the root directory of this source tree.
291
- */const _R=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],TR=Yn("search",_R);/**
292
- * @license lucide-react v0.511.0 - ISC
293
- *
294
- * This source code is licensed under the ISC license.
295
- * See the LICENSE file in the root directory of this source tree.
296
- */const RR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],MR=Yn("x",RR);function AR(n){const a=Math.floor((new Date().getTime()-n.getTime())/1e3);return a<5?"just now":a<60?`${String(a)}s ago`:a<3600?`${String(Math.floor(a/60))}m ago`:a<86400?`${String(Math.floor(a/3600))}h ago`:a<604800?`${String(Math.floor(a/86400))}d ago`:n.toLocaleDateString()}function Eh({value:n}){const[a,r]=v.useState(!1);return u.jsx("button",{onClick:i=>{i.stopPropagation(),navigator.clipboard.writeText(n).then(()=>{r(!0),setTimeout(()=>{r(!1)},2e3)}).catch(()=>{const s=document.createElement("textarea");s.value=n,document.body.appendChild(s),s.select();try{document.execCommand("copy")}catch{}document.body.removeChild(s),r(!0),setTimeout(()=>{r(!1)},2e3)})},className:pe("p-1 rounded transition-colors flex-shrink-0",a?"text-green-500":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"),title:a?"Copied!":"Copy to clipboard",children:a?u.jsx(iw,{className:"w-3 h-3"}):u.jsx(bR,{className:"w-3 h-3"})})}function cn({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[s,c]=v.useState(!1),[,h]=v.useState(0),m=i||s;if(v.useEffect(()=>{const w=setInterval(()=>{h(j=>j+1)},1e3);return()=>{clearInterval(w)}},[]),!n)return null;let p;typeof n=="number"?p=new Date(n<1e10?n*1e3:n):p=new Date(n);const g=p.toISOString(),y=p.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),x=AR(p);return u.jsxs("div",{className:pe("relative inline-block",a),onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[u.jsx("time",{dateTime:g,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:x}),u.jsx("div",{className:pe("absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-[9999] w-72","transition-all duration-200 ease-out origin-bottom",m?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:u.jsx(ic,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:u.jsxs("div",{className:"space-y-2.5",children:[r!==void 0&&u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:typeof r=="object"?JSON.stringify(r):String(r)}),u.jsx(Eh,{value:typeof r=="object"?JSON.stringify(r):String(r)})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:g}),u.jsx(Eh,{value:g})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:y}),u.jsx(Eh,{value:y})]})]})]})})})]})}function kR(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function DR(n){return typeof n!="string"?!1:[/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/,/^\d{4}-\d{2}-\d{2}$/].some(a=>a.test(n))}function OR(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function zR(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&OR(n)?"date":typeof i=="number"?"number":DR(i)?"date":"string"}return"string"}function ow({results:n,meta:a,columns:r,error:i,title:s="Results",pageSize:c=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const g=n??[],[y,x]=v.useState(""),[w,j]=v.useState(null),[E,S]=v.useState(new Set),[C,_]=v.useState(1),T=!!p,R=p?Math.floor(p.offset/p.limit)+1:1,D=p?Math.ceil(p.total/p.limit):1,U=v.useMemo(()=>r||(g.length===0?[]:Object.keys(g[0]).map(ae=>({key:ae,label:ae,type:zR(ae,g)}))),[r,g]),K=v.useMemo(()=>y?g.filter(ae=>Object.values(ae).some(re=>String(re).toLowerCase().includes(y.toLowerCase()))):g,[g,y]),q=v.useMemo(()=>w?[...K].sort((ae,re)=>{const z=ae[w.key],J=re[w.key];return z==null?1:J==null?-1:z<J?w.direction==="asc"?-1:1:z>J?w.direction==="asc"?1:-1:0}):K,[K,w]),H=Math.ceil(q.length/c),Y=v.useMemo(()=>{const ae=(C-1)*c;return q.slice(ae,ae+c)},[q,C,c]);v.useMemo(()=>{_(1)},[y,w]);const ee=ae=>{j(re=>(re==null?void 0:re.key)===ae?re.direction==="asc"?{key:ae,direction:"desc"}:null:{key:ae,direction:"asc"})},ue=()=>{E.size===Y.length?S(new Set):S(new Set(Y.map((ae,re)=>re)))},ce=ae=>{const re=new Set(E);re.has(ae)?re.delete(ae):re.add(ae),S(re)},ie=(ae,re)=>{const z=ae[re.key];if(z==null)return u.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(re.type??"string"){case"bool":return z===!0?u.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:u.jsx(iw,{className:"w-3.5 h-3.5"})}):u.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:u.jsx(MR,{className:"w-3.5 h-3.5"})});case"date":return u.jsx(cn,{timestamp:z,rawValue:typeof z=="number"?z:void 0});case"number":return u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof z=="number"?z.toLocaleString():JSON.stringify(z)});default:return typeof z=="object"?u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(z)}):u.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:typeof z=="object"?JSON.stringify(z):String(z)})}};return i?u.jsxs(ic,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[u.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:u.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),u.jsx("div",{className:"p-5",children:u.jsx("p",{className:"font-mono text-sm text-red-500",children:i})})]}):u.jsxs(ic,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[u.jsxs("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:s}),a&&u.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-green-500/10 text-green-600 dark:text-green-400 border border-green-500/20",children:kR(a.duration)}),u.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[g.length," row",g.length!==1?"s":""]})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"relative group",children:[u.jsx(TR,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 group-focus-within:text-blue-500 transition-colors"}),u.jsx("input",{type:"text",placeholder:"Search results...",value:y,onChange:ae=>{x(ae.target.value)},className:"pl-9 pr-4 py-2 rounded-lg text-sm bg-gray-100 dark:bg-white/[0.06] border border-transparent focus:bg-white dark:focus:bg-black focus:border-blue-500 focus:ring-1 focus:ring-blue-500 outline-none transition-all w-full sm:w-64 dark:text-white text-gray-900 placeholder-gray-500"})]}),(h??m)&&u.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[h&&u.jsx("button",{onClick:h,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export CSV",children:u.jsx(ER,{className:"w-4 h-4"})}),m&&u.jsx("button",{onClick:m,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export JSON",children:u.jsx(SR,{className:"w-4 h-4"})})]})]})]}),u.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:u.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[u.jsx("th",{className:"p-4 w-12",children:u.jsx("input",{type:"checkbox",checked:E.size===Y.length&&Y.length>0,onChange:ue,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),U.map(ae=>u.jsx("th",{className:"p-4 text-xs font-semibold uppercase tracking-wider text-gray-500 dark:text-gray-400 cursor-pointer hover:text-blue-500 dark:hover:text-blue-400 transition-colors select-none group",onClick:()=>{ee(ae.key)},children:u.jsxs("div",{className:"flex items-center gap-1",children:[ae.label,u.jsxs("div",{className:pe("flex flex-col opacity-0 group-hover:opacity-50",(w==null?void 0:w.key)===ae.key&&"opacity-100"),children:[u.jsx(yR,{className:pe("w-2 h-2",(w==null?void 0:w.key)===ae.key&&w.direction==="asc"&&"text-blue-500")}),u.jsx(mR,{className:pe("w-2 h-2",(w==null?void 0:w.key)===ae.key&&w.direction==="desc"&&"text-blue-500")})]})]})},ae.key))]})}),u.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:Y.length>0?Y.map((ae,re)=>u.jsxs("tr",{className:pe("group transition-colors",E.has(re)?"bg-blue-50/50 dark:bg-blue-500/10":"hover:bg-gray-50 dark:hover:bg-white/[0.02]"),children:[u.jsx("td",{className:"p-4",children:u.jsx("input",{type:"checkbox",checked:E.has(re),onChange:()=>{ce(re)},className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),U.map(z=>u.jsx("td",{className:"p-4 whitespace-nowrap",children:ie(ae,z)},`${String(re)}-${z.key}`))]},re)):u.jsx("tr",{children:u.jsx("td",{colSpan:U.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:y?`No results found matching "${y}"`:"Query executed successfully. No rows returned."})})})]})}),u.jsxs("div",{className:"p-4 border-t dark:border-white/[0.08] border-gray-200 flex items-center justify-between text-xs text-gray-500 dark:text-gray-400",children:[u.jsxs("div",{children:[T?u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+g.length,p.total)})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Y.length})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:q.length})," ","results"]}),E.size>0&&u.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[E.size," row",E.size!==1?"s":""," ","selected"]})]}),T&&D>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{p.onPageChange(Math.max(0,p.offset-p.limit))},disabled:R===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(hx,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(D,5)},(ae,re)=>{let z;return D<=5||R<=3?z=re+1:R>=D-2?z=D-4+re:z=R-2+re,u.jsx("button",{onClick:()=>{p.onPageChange((z-1)*p.limit)},className:pe("px-2.5 py-1 rounded-lg font-medium transition-colors",R===z?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:z},z)})}),u.jsx("button",{onClick:()=>{p.onPageChange(p.offset+p.limit)},disabled:R===D,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(mx,{className:"w-4 h-4"})})]}),!T&&H>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{_(ae=>Math.max(1,ae-1))},disabled:C===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(hx,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(H,5)},(ae,re)=>{let z;return H<=5||C<=3?z=re+1:C>=H-2?z=H-4+re:z=C-2+re,u.jsx("button",{onClick:()=>{_(z)},className:pe("px-2.5 py-1 rounded-lg font-medium transition-colors",C===z?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:z},z)})}),u.jsx("button",{onClick:()=>{_(ae=>Math.min(H,ae+1))},disabled:C===H,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(mx,{className:"w-4 h-4"})})]})]})]})}function La({className:n,...a}){return u.jsx("table",{"data-slot":"table",className:pe("w-full caption-bottom text-sm",n),...a})}function Ua({className:n,...a}){return u.jsx("thead",{"data-slot":"table-header",className:pe("[&_tr]:border-b",n),...a})}function Ha({className:n,...a}){return u.jsx("tbody",{"data-slot":"table-body",className:pe("[&_tr:last-child]:border-0",n),...a})}function Ct({className:n,...a}){return u.jsx("tr",{"data-slot":"table-row",className:pe("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function De({className:n,...a}){return u.jsx("th",{"data-slot":"table-head",className:pe("text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function Oe({className:n,...a}){return u.jsx("td",{"data-slot":"table-cell",className:pe("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function px(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function ms(...n){return a=>{let r=!1;const i=n.map(s=>{const c=px(s,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():px(n[s],null)}}}}function we(...n){return v.useCallback(ms(...n),n)}function dr(n){const a=LR(n),r=v.forwardRef((i,s)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(UR);if(p){const g=p.props.children,y=m.map(x=>x===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:x);return u.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return u.jsx(a,{...h,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}var vx=dr("Slot");function LR(n){const a=v.forwardRef((r,i)=>{const{children:s,...c}=r;if(v.isValidElement(s)){const h=qR(s),m=HR(c,s.props);return s.type!==v.Fragment&&(m.ref=i?ms(i,h):h),v.cloneElement(s,m)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var sw=Symbol("radix.slottable");function uw(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=sw,a}function UR(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===sw}function HR(n,a){const r={...a};for(const i in a){const s=n[i],c=a[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...h)=>{const m=c(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function qR(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function cw(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(r=cw(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function BR(){for(var n,a,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=cw(n))&&(i&&(i+=" "),i+=a);return i}const gx=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,yx=BR,dw=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return yx(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:c}=a,h=Object.keys(s).map(g=>{const y=r==null?void 0:r[g],x=c==null?void 0:c[g];if(y===null)return null;const w=gx(y)||gx(x);return s[g][w]}),m=r&&Object.entries(r).reduce((g,y)=>{let[x,w]=y;return w===void 0||(g[x]=w),g},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,y)=>{let{class:x,className:w,...j}=y;return Object.entries(j).every(E=>{let[S,C]=E;return Array.isArray(C)?C.includes({...c,...m}[S]):{...c,...m}[S]===C})?[...g,x,w]:g},[]);return yx(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},QR={default:"text-gray-600 bg-gray-100 border-gray-200 dark:text-gray-400 dark:bg-gray-900 dark:border-gray-500/20",success:"text-green-600 bg-green-50 border-green-200 dark:text-green-400 dark:bg-green-950 dark:border-green-500/20",error:"text-red-600 bg-red-50 border-red-200 dark:text-red-400 dark:bg-red-950 dark:border-red-500/20",warning:"text-yellow-600 bg-yellow-50 border-yellow-200 dark:text-yellow-400 dark:bg-yellow-950 dark:border-yellow-500/20",purple:"text-purple-600 bg-purple-50 border-purple-200 dark:text-purple-400 dark:bg-purple-950 dark:border-purple-500/20",blue:"text-blue-600 bg-blue-50 border-blue-200 dark:text-blue-400 dark:bg-blue-950 dark:border-blue-500/20",orange:"text-orange-600 bg-orange-50 border-orange-200 dark:text-orange-400 dark:bg-orange-950 dark:border-orange-500/20",emerald:"text-emerald-600 bg-emerald-50 border-emerald-200 dark:text-emerald-400 dark:bg-emerald-950 dark:border-emerald-500/20"};function Ci({className:n,icon:a,variant:r="default",children:i,...s}){return u.jsxs("div",{className:pe("inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg border [&_svg]:w-3 [&_svg]:h-3",QR[r],n),...s,children:[a&&u.jsx("span",{className:"flex-shrink-0",children:a}),u.jsx("span",{className:"leading-none",children:i})]})}const xx=dw("relative inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent dark:focus-visible:ring-white/20 focus-visible:ring-black/10 cursor-pointer overflow-hidden",{variants:{variant:{default:"rounded-md bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",primary:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-white/[0.08] bg-black/[0.05]","dark:border-white/[0.1] border-black/[0.1]","dark:text-white text-gray-900","dark:hover:bg-white/[0.15] hover:bg-black/[0.1]","dark:hover:border-white/[0.2] hover:border-black/[0.2]"),secondary:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.05] hover:bg-black/[0.04]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.15] hover:border-gray-300"),destructive:"rounded-md bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",danger:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-red-500/[0.1] bg-red-500/[0.05]","dark:border-red-500/[0.2] border-red-500/[0.2]","dark:text-red-400 text-red-600","dark:hover:bg-red-500/[0.2] hover:bg-red-500/[0.1]","dark:hover:border-red-500/[0.3] hover:border-red-500/[0.3]"),success:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-emerald-500/[0.1] bg-emerald-500/[0.05]","dark:border-emerald-500/[0.2] border-emerald-500/[0.2]","dark:text-emerald-400 text-emerald-600","dark:hover:bg-emerald-500/[0.2] hover:bg-emerald-500/[0.1]","dark:hover:border-emerald-500/[0.3] hover:border-emerald-500/[0.3]"),outline:"rounded-md border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",ghost:pe("rounded-lg border border-transparent","dark:text-gray-400 text-gray-600","dark:hover:text-white hover:text-gray-900","dark:hover:bg-white/[0.08] hover:bg-black/[0.06]"),link:"text-primary underline-offset-4 hover:underline",icon:pe("rounded-full border backdrop-blur-xl","dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]","dark:bg-white/[0.06] bg-black/[0.04]","dark:border-white/[0.08] border-black/[0.08]","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.12] hover:bg-black/[0.08]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.2] hover:border-black/[0.15]")},size:{default:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",sm:"h-8 px-3 text-xs has-[>svg]:px-2.5",md:"h-10 px-4 text-sm has-[>svg]:px-3",lg:"h-12 px-6 text-base has-[>svg]:px-4",icon:"size-8 p-0 [&_svg]:size-4","icon-sm":"size-8 p-0 [&_svg]:size-4","icon-md":"size-10 p-0 [&_svg]:size-5","icon-lg":"size-12 p-0 [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}}),$R=["primary","secondary","danger","success","icon"];function Je({className:n,variant:a,size:r,asChild:i=!1,isLoading:s=!1,children:c,disabled:h,...m}){const p=i?vx:"button",g=a&&$R.includes(a);return i?u.jsx(vx,{"data-slot":"button",className:pe(xx({variant:a,size:r,className:n})),...m,children:c}):u.jsxs(p,{"data-slot":"button",className:pe(xx({variant:a,size:r,className:n})),disabled:h===!0||s,...m,children:[g&&u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),u.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[s&&u.jsx(CR,{className:"size-4 animate-spin"}),c]})]})}const fw=({ref:n,className:a,active:r=!1,icon:i,children:s,"data-state":c,...h})=>{const m=r||c==="active";return u.jsxs("button",{ref:n,"data-slot":"tab-button","data-state":c,className:pe("group relative flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors duration-200 cursor-pointer","dark:text-gray-400 text-gray-600 dark:hover:text-white hover:text-gray-900",m&&"dark:text-white text-gray-900",a),...h,children:[i&&u.jsx(i,{className:"size-4"}),s,u.jsx("span",{className:pe("absolute bottom-0 left-0 right-0 h-[2px]","bg-gradient-to-r from-transparent dark:via-white/60 via-black/60 to-transparent","transition-transform duration-300",m?"scale-x-100":"scale-x-0")})]})};fw.displayName="TabButton";const YR={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function hw({className:n,label:a,error:r,leftIcon:i,rightContent:s,inputSize:c="md",...h}){return u.jsxs("div",{className:"w-full",children:[a&&u.jsx("label",{className:"block text-sm font-medium dark:text-white text-gray-900 mb-2",children:a}),u.jsx("div",{className:"relative",children:u.jsxs("div",{className:pe("relative flex items-center overflow-hidden","border backdrop-blur-xl rounded-lg","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","transition-all duration-200","focus-within:dark:border-white/[0.15] focus-within:border-gray-300",r&&"dark:border-red-500/[0.3] border-red-500",n),children:[u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),i&&u.jsx("div",{className:"relative z-10 pl-4",children:u.jsx(i,{className:"w-4 h-4 dark:text-gray-400 text-gray-600 flex-shrink-0"})}),u.jsx("input",{className:pe("relative z-10 flex-1 bg-transparent border-0 outline-none","dark:text-white text-gray-900","dark:placeholder:text-gray-500 placeholder:text-gray-400","disabled:opacity-50 disabled:cursor-not-allowed",YR[c],i&&"pl-2",s!==null&&"pr-2"),...h}),s&&u.jsx("div",{className:"relative z-10 pr-3",children:s})]})}),r&&u.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var GR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=GR.reduce((n,a)=>{const r=dr(`Primitive.${a}`),i=v.forwardRef((s,c)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function oc(n,a){n&&fs.flushSync(()=>n.dispatchEvent(a))}var lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function VR(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var jt=n=>{const{present:a,children:r}=n,i=KR(a),s=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),c=we(i.ref,XR(s));return typeof r=="function"||i.isPresent?v.cloneElement(s,{ref:c}):null};jt.displayName="Presence";function KR(n){const[a,r]=v.useState(),i=v.useRef(null),s=v.useRef(n),c=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=VR(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=$u(i.current);c.current=m==="mounted"?g:"none"},[m]),lt(()=>{const g=i.current,y=s.current;if(y!==n){const x=c.current,w=$u(g);n?p("MOUNT"):w==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&x!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),lt(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,x=j=>{const E=$u(i.current).includes(CSS.escape(j.animationName));if(j.target===a&&E&&(p("ANIMATION_END"),!s.current)){const S=a.style.animationFillMode;a.style.animationFillMode="forwards",g=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=S)})}},w=j=>{j.target===a&&(c.current=$u(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",x),a.addEventListener("animationend",x),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",x),a.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function $u(n){return(n==null?void 0:n.animationName)||"none"}function XR(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function FR(n,a){const r=v.createContext(a),i=c=>{const{children:h,...m}=c,p=v.useMemo(()=>m,Object.values(m));return u.jsx(r.Provider,{value:p,children:h})};i.displayName=n+"Provider";function s(c){const h=v.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[i,s]}function gt(n,a=[]){let r=[];function i(c,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=x=>{var w;const{scope:j,children:E,...S}=x,C=((w=j==null?void 0:j[n])==null?void 0:w[p])||m,_=v.useMemo(()=>S,Object.values(S));return u.jsx(C.Provider,{value:_,children:E})};g.displayName=c+"Provider";function y(x,w){var j;const E=((j=w==null?void 0:w[n])==null?void 0:j[p])||m,S=v.useContext(E);if(S)return S;if(h!==void 0)return h;throw new Error(`\`${x}\` must be used within \`${c}\``)}return[g,y]}const s=()=>{const c=r.map(h=>v.createContext(h));return function(h){const m=(h==null?void 0:h[n])||c;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:m}}),[h,m])}};return s.scopeName=n,[i,ZR(s,...a)]}function ZR(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const c=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(s)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function nt(n){const a=v.useRef(n);return v.useEffect(()=>{a.current=n}),v.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}var PR=v.createContext(void 0);function Hi(n){const a=v.useContext(PR);return n||a||"ltr"}function am(n,[a,r]){return Math.min(r,Math.max(a,n))}function ne(n,a,{checkForDefaultPrevented:r=!0}={}){return function(i){if(n==null||n(i),r===!1||!i.defaultPrevented)return a==null?void 0:a(i)}}function JR(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Um="ScrollArea",[mw,Hz]=gt(Um),[IR,_n]=mw(Um),pw=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:c=600,...h}=n,[m,p]=v.useState(null),[g,y]=v.useState(null),[x,w]=v.useState(null),[j,E]=v.useState(null),[S,C]=v.useState(null),[_,T]=v.useState(0),[R,D]=v.useState(0),[U,K]=v.useState(!1),[q,H]=v.useState(!1),Y=we(a,ue=>p(ue)),ee=Hi(s);return u.jsx(IR,{scope:r,type:i,dir:ee,scrollHideDelay:c,scrollArea:m,viewport:g,onViewportChange:y,content:x,onContentChange:w,scrollbarX:j,onScrollbarXChange:E,scrollbarXEnabled:U,onScrollbarXEnabledChange:K,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:q,onScrollbarYEnabledChange:H,onCornerWidthChange:T,onCornerHeightChange:D,children:u.jsx(oe.div,{dir:ee,...h,ref:Y,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":R+"px",...n.style}})})});pw.displayName=Um;var vw="ScrollAreaViewport",gw=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:s,...c}=n,h=_n(vw,r),m=v.useRef(null),p=we(a,m,h.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),u.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...c,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...n.style},children:u.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});gw.displayName=vw;var na="ScrollAreaScrollbar",yw=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(na,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:h}=s,m=n.orientation==="horizontal";return v.useEffect(()=>(m?c(!0):h(!0),()=>{m?c(!1):h(!1)}),[m,c,h]),s.type==="hover"?u.jsx(WR,{...i,ref:a,forceMount:r}):s.type==="scroll"?u.jsx(eM,{...i,ref:a,forceMount:r}):s.type==="auto"?u.jsx(xw,{...i,ref:a,forceMount:r}):s.type==="always"?u.jsx(Hm,{...i,ref:a}):null});yw.displayName=na;var WR=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(na,n.__scopeScrollArea),[c,h]=v.useState(!1);return v.useEffect(()=>{const m=s.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},y=()=>{p=window.setTimeout(()=>h(!1),s.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",y)}}},[s.scrollArea,s.scrollHideDelay]),u.jsx(jt,{present:r||c,children:u.jsx(xw,{"data-state":c?"visible":"hidden",...i,ref:a})})}),eM=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(na,n.__scopeScrollArea),c=n.orientation==="horizontal",h=Tc(()=>p("SCROLL_END"),100),[m,p]=JR("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>p("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,s.scrollHideDelay,p]),v.useEffect(()=>{const g=s.viewport,y=c?"scrollLeft":"scrollTop";if(g){let x=g[y];const w=()=>{const j=g[y];x!==j&&(p("SCROLL"),h()),x=j};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[s.viewport,c,p,h]),u.jsx(jt,{present:r||m!=="hidden",children:u.jsx(Hm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ne(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ne(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),xw=v.forwardRef((n,a)=>{const r=_n(na,n.__scopeScrollArea),{forceMount:i,...s}=n,[c,h]=v.useState(!1),m=n.orientation==="horizontal",p=Tc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:y)}},10);return _i(r.viewport,p),_i(r.content,p),u.jsx(jt,{present:i||c,children:u.jsx(Hm,{"data-state":c?"visible":"hidden",...s,ref:a})})}),Hm=v.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,s=_n(na,n.__scopeScrollArea),c=v.useRef(null),h=v.useRef(0),[m,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=Ew(m.viewport,m.content),y={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:w=>c.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function x(w,j){return iM(w,h.current,m,j)}return r==="horizontal"?u.jsx(tM,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollLeft,j=bx(w,m,s.dir);c.current.style.transform=`translate3d(${j}px, 0, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollLeft=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollLeft=x(w,s.dir))}}):r==="vertical"?u.jsx(nM,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollTop,j=bx(w,m);c.current.style.transform=`translate3d(0, ${j}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=x(w))}}):null}),tM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,c=_n(na,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarXChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(ww,{"data-orientation":"horizontal",...s,ref:g,sizes:r,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":_c(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.x),onDragScroll:y=>n.onDragScroll(y.x),onWheelScroll:(y,x)=>{if(c.viewport){const w=c.viewport.scrollLeft+y.deltaX;n.onWheelScroll(w),Cw(w,x)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:uc(h.paddingLeft),paddingEnd:uc(h.paddingRight)}})}})}),nM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,c=_n(na,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarYChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(ww,{"data-orientation":"vertical",...s,ref:g,sizes:r,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":_c(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.y),onDragScroll:y=>n.onDragScroll(y.y),onWheelScroll:(y,x)=>{if(c.viewport){const w=c.viewport.scrollTop+y.deltaY;n.onWheelScroll(w),Cw(w,x)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:uc(h.paddingTop),paddingEnd:uc(h.paddingBottom)}})}})}),[aM,bw]=mw(na),ww=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:c,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:y,onResize:x,...w}=n,j=_n(na,r),[E,S]=v.useState(null),C=we(a,Y=>S(Y)),_=v.useRef(null),T=v.useRef(""),R=j.viewport,D=i.content-i.viewport,U=nt(y),K=nt(p),q=Tc(x,10);function H(Y){if(_.current){const ee=Y.clientX-_.current.left,ue=Y.clientY-_.current.top;g({x:ee,y:ue})}}return v.useEffect(()=>{const Y=ee=>{const ue=ee.target;E!=null&&E.contains(ue)&&U(ee,D)};return document.addEventListener("wheel",Y,{passive:!1}),()=>document.removeEventListener("wheel",Y,{passive:!1})},[R,E,D,U]),v.useEffect(K,[i,K]),_i(E,q),_i(j.content,q),u.jsx(aM,{scope:r,scrollbar:E,hasThumb:s,onThumbChange:nt(c),onThumbPointerUp:nt(h),onThumbPositionChange:K,onThumbPointerDown:nt(m),children:u.jsx(oe.div,{...w,ref:C,style:{position:"absolute",...w.style},onPointerDown:ne(n.onPointerDown,Y=>{Y.button===0&&(Y.target.setPointerCapture(Y.pointerId),_.current=E.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j.viewport&&(j.viewport.style.scrollBehavior="auto"),H(Y))}),onPointerMove:ne(n.onPointerMove,H),onPointerUp:ne(n.onPointerUp,Y=>{const ee=Y.target;ee.hasPointerCapture(Y.pointerId)&&ee.releasePointerCapture(Y.pointerId),document.body.style.webkitUserSelect=T.current,j.viewport&&(j.viewport.style.scrollBehavior=""),_.current=null})})})}),sc="ScrollAreaThumb",Sw=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=bw(sc,n.__scopeScrollArea);return u.jsx(jt,{present:r||s.hasThumb,children:u.jsx(lM,{ref:a,...i})})}),lM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...s}=n,c=_n(sc,r),h=bw(sc,r),{onThumbPositionChange:m}=h,p=we(a,x=>h.onThumbChange(x)),g=v.useRef(void 0),y=Tc(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const x=c.viewport;if(x){const w=()=>{if(y(),!g.current){const j=oM(x,m);g.current=j,m()}};return m(),x.addEventListener("scroll",w),()=>x.removeEventListener("scroll",w)}},[c.viewport,y,m]),u.jsx(oe.div,{"data-state":h.hasThumb?"visible":"hidden",...s,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ne(n.onPointerDownCapture,x=>{const w=x.target.getBoundingClientRect(),j=x.clientX-w.left,E=x.clientY-w.top;h.onThumbPointerDown({x:j,y:E})}),onPointerUp:ne(n.onPointerUp,h.onThumbPointerUp)})});Sw.displayName=sc;var qm="ScrollAreaCorner",jw=v.forwardRef((n,a)=>{const r=_n(qm,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?u.jsx(rM,{...n,ref:a}):null});jw.displayName=qm;var rM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,s=_n(qm,r),[c,h]=v.useState(0),[m,p]=v.useState(0),g=!!(c&&m);return _i(s.scrollbarX,()=>{var y;const x=((y=s.scrollbarX)==null?void 0:y.offsetHeight)||0;s.onCornerHeightChange(x),p(x)}),_i(s.scrollbarY,()=>{var y;const x=((y=s.scrollbarY)==null?void 0:y.offsetWidth)||0;s.onCornerWidthChange(x),h(x)}),g?u.jsx(oe.div,{...i,ref:a,style:{width:c,height:m,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function uc(n){return n?parseInt(n,10):0}function Ew(n,a){const r=n/a;return isNaN(r)?0:r}function _c(n){const a=Ew(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function iM(n,a,r,i="ltr"){const s=_c(r),c=s/2,h=a||c,m=s-h,p=r.scrollbar.paddingStart+h,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,y=r.content-r.viewport,x=i==="ltr"?[0,y]:[y*-1,0];return Nw([p,g],x)(n)}function bx(n,a,r="ltr"){const i=_c(a),s=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,c=a.scrollbar.size-s,h=a.content-a.viewport,m=c-i,p=r==="ltr"?[0,h]:[h*-1,0],g=am(n,p);return Nw([0,h],[0,m])(g)}function Nw(n,a){return r=>{if(n[0]===n[1]||a[0]===a[1])return a[0];const i=(a[1]-a[0])/(n[1]-n[0]);return a[0]+i*(r-n[0])}}function Cw(n,a){return n>0&&n<a}var oM=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const c={left:n.scrollLeft,top:n.scrollTop},h=r.left!==c.left,m=r.top!==c.top;(h||m)&&a(),r=c,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function Tc(n,a){const r=nt(n),i=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),v.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,a)},[r,a])}function _i(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}var sM=pw,uM=gw,cM=jw;function _w({className:n,children:a,...r}){return u.jsxs(sM,{"data-slot":"scroll-area",className:pe("relative",n),...r,children:[u.jsx(uM,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:a}),u.jsx(dM,{}),u.jsx(cM,{})]})}function dM({className:n,orientation:a="vertical",...r}){return u.jsx(yw,{"data-slot":"scroll-area-scrollbar",orientation:a,className:pe("flex touch-none p-px transition-colors select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...r,children:u.jsx(Sw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var fM=Sb[" useInsertionEffect ".trim().toString()]||lt;function aa({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[s,c,h]=hM({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:s;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const x=y.current;x!==m&&console.warn(`${i} is changing from ${x?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=m},[m,i])}const g=v.useCallback(y=>{var x;if(m){const w=mM(y)?y(n):y;w!==n&&((x=h.current)==null||x.call(h,w))}else c(y)},[m,n,c,h]);return[p,g]}function hM({defaultProp:n,onChange:a}){const[r,i]=v.useState(n),s=v.useRef(r),c=v.useRef(a);return fM(()=>{c.current=a},[a]),v.useEffect(()=>{var h;s.current!==r&&((h=c.current)==null||h.call(c,r),s.current=r)},[r,s]),[r,i,c]}function mM(n){return typeof n=="function"}function qi(n){const a=n+"CollectionProvider",[r,i]=gt(a),[s,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:C,children:_}=S,T=st.useRef(null),R=st.useRef(new Map).current;return u.jsx(s,{scope:C,itemMap:R,collectionRef:T,children:_})};h.displayName=a;const m=n+"CollectionSlot",p=dr(m),g=st.forwardRef((S,C)=>{const{scope:_,children:T}=S,R=c(m,_),D=we(C,R.collectionRef);return u.jsx(p,{ref:D,children:T})});g.displayName=m;const y=n+"CollectionItemSlot",x="data-radix-collection-item",w=dr(y),j=st.forwardRef((S,C)=>{const{scope:_,children:T,...R}=S,D=st.useRef(null),U=we(C,D),K=c(y,_);return st.useEffect(()=>(K.itemMap.set(D,{ref:D,...R}),()=>void K.itemMap.delete(D))),u.jsx(w,{[x]:"",ref:U,children:T})});j.displayName=y;function E(S){const C=c(n+"CollectionConsumer",S);return st.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const T=Array.from(_.querySelectorAll(`[${x}]`));return Array.from(C.itemMap.values()).sort((R,D)=>T.indexOf(R.ref.current)-T.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:h,Slot:g,ItemSlot:j},E,i]}function pM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n);v.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var vM="DismissableLayer",lm="dismissableLayer.update",gM="dismissableLayer.pointerDownOutside",yM="dismissableLayer.focusOutside",wx,Tw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Bi=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(Tw),[y,x]=v.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=v.useState({}),E=we(a,q=>x(q)),S=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(C),T=y?S.indexOf(y):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,D=T>=_,U=wM(q=>{const H=q.target,Y=[...g.branches].some(ee=>ee.contains(H));!D||Y||(s==null||s(q),h==null||h(q),q.defaultPrevented||m==null||m())},w),K=SM(q=>{const H=q.target;[...g.branches].some(Y=>Y.contains(H))||(c==null||c(q),h==null||h(q),q.defaultPrevented||m==null||m())},w);return pM(q=>{T===g.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&m&&(q.preventDefault(),m()))},w),v.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(wx=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),Sx(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=wx)}},[y,w,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),Sx())},[y,g]),v.useEffect(()=>{const q=()=>j({});return document.addEventListener(lm,q),()=>document.removeEventListener(lm,q)},[]),u.jsx(oe.div,{...p,ref:E,style:{pointerEvents:R?D?"auto":"none":void 0,...n.style},onFocusCapture:ne(n.onFocusCapture,K.onFocusCapture),onBlurCapture:ne(n.onBlurCapture,K.onBlurCapture),onPointerDownCapture:ne(n.onPointerDownCapture,U.onPointerDownCapture)})});Bi.displayName=vM;var xM="DismissableLayerBranch",bM=v.forwardRef((n,a)=>{const r=v.useContext(Tw),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),u.jsx(oe.div,{...n,ref:s})});bM.displayName=xM;function wM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const c=m=>{if(m.target&&!i.current){let p=function(){Rw(gM,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",c),a.removeEventListener("click",s.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function SM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1);return v.useEffect(()=>{const s=c=>{c.target&&!i.current&&Rw(yM,r,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Sx(){const n=new CustomEvent(lm);document.dispatchEvent(n)}function Rw(n,a,r,{discrete:i}){const s=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&s.addEventListener(n,a,{once:!0}),i?oc(s,c):s.dispatchEvent(c)}var Nh=0;function Bm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??jx()),document.body.insertAdjacentElement("beforeend",n[1]??jx()),Nh++,()=>{Nh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Nh--}},[])}function jx(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Ch="focusScope.autoFocusOnMount",_h="focusScope.autoFocusOnUnmount",Ex={bubbles:!1,cancelable:!0},jM="FocusScope",Rc=v.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...h}=n,[m,p]=v.useState(null),g=nt(s),y=nt(c),x=v.useRef(null),w=we(a,S=>p(S)),j=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let S=function(R){if(j.paused||!m)return;const D=R.target;m.contains(D)?x.current=D:pl(x.current,{select:!0})},C=function(R){if(j.paused||!m)return;const D=R.relatedTarget;D!==null&&(m.contains(D)||pl(x.current,{select:!0}))},_=function(R){if(document.activeElement===document.body)for(const D of R)D.removedNodes.length>0&&pl(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const T=new MutationObserver(_);return m&&T.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),T.disconnect()}}},[i,m,j.paused]),v.useEffect(()=>{if(m){Cx.add(j);const S=document.activeElement;if(!m.contains(S)){const C=new CustomEvent(Ch,Ex);m.addEventListener(Ch,g),m.dispatchEvent(C),C.defaultPrevented||(EM(RM(Mw(m)),{select:!0}),document.activeElement===S&&pl(m))}return()=>{m.removeEventListener(Ch,g),setTimeout(()=>{const C=new CustomEvent(_h,Ex);m.addEventListener(_h,y),m.dispatchEvent(C),C.defaultPrevented||pl(S??document.body,{select:!0}),m.removeEventListener(_h,y),Cx.remove(j)},0)}}},[m,g,y,j]);const E=v.useCallback(S=>{if(!r&&!i||j.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(C&&_){const T=S.currentTarget,[R,D]=NM(T);R&&D?!S.shiftKey&&_===D?(S.preventDefault(),r&&pl(R,{select:!0})):S.shiftKey&&_===R&&(S.preventDefault(),r&&pl(D,{select:!0})):_===T&&S.preventDefault()}},[r,i,j.paused]);return u.jsx(oe.div,{tabIndex:-1,...h,ref:w,onKeyDown:E})});Rc.displayName=jM;function EM(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(pl(i,{select:a}),document.activeElement!==r)return}function NM(n){const a=Mw(n),r=Nx(a,n),i=Nx(a.reverse(),n);return[r,i]}function Mw(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Nx(n,a){for(const r of n)if(!CM(r,{upTo:a}))return r}function CM(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function _M(n){return n instanceof HTMLInputElement&&"select"in n}function pl(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&_M(n)&&a&&n.select()}}var Cx=TM();function TM(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=_x(n,a),n.unshift(a)},remove(a){var r;n=_x(n,a),(r=n[0])==null||r.resume()}}}function _x(n,a){const r=[...n],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function RM(n){return n.filter(a=>a.tagName!=="A")}var MM=Sb[" useId ".trim().toString()]||(()=>{}),AM=0;function Al(n){const[a,r]=v.useState(MM());return lt(()=>{r(i=>i??String(AM++))},[n]),a?`radix-${a}`:""}const kM=["top","right","bottom","left"],Tl=Math.min,un=Math.max,cc=Math.round,Yu=Math.floor,ea=n=>({x:n,y:n}),DM={left:"right",right:"left",bottom:"top",top:"bottom"},OM={start:"end",end:"start"};function rm(n,a,r){return un(n,Tl(a,r))}function Da(n,a){return typeof n=="function"?n(a):n}function Oa(n){return n.split("-")[0]}function Qi(n){return n.split("-")[1]}function Qm(n){return n==="x"?"y":"x"}function $m(n){return n==="y"?"height":"width"}const zM=new Set(["top","bottom"]);function Wn(n){return zM.has(Oa(n))?"y":"x"}function Ym(n){return Qm(Wn(n))}function LM(n,a,r){r===void 0&&(r=!1);const i=Qi(n),s=Ym(n),c=$m(s);let h=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(h=dc(h)),[h,dc(h)]}function UM(n){const a=dc(n);return[im(n),a,im(a)]}function im(n){return n.replace(/start|end/g,a=>OM[a])}const Tx=["left","right"],Rx=["right","left"],HM=["top","bottom"],qM=["bottom","top"];function BM(n,a,r){switch(n){case"top":case"bottom":return r?a?Rx:Tx:a?Tx:Rx;case"left":case"right":return a?HM:qM;default:return[]}}function QM(n,a,r,i){const s=Qi(n);let c=BM(Oa(n),r==="start",i);return s&&(c=c.map(h=>h+"-"+s),a&&(c=c.concat(c.map(im)))),c}function dc(n){return n.replace(/left|right|bottom|top/g,a=>DM[a])}function $M(n){return{top:0,right:0,bottom:0,left:0,...n}}function Aw(n){return typeof n!="number"?$M(n):{top:n,right:n,bottom:n,left:n}}function fc(n){const{x:a,y:r,width:i,height:s}=n;return{width:i,height:s,top:r,left:a,right:a+i,bottom:r+s,x:a,y:r}}function Mx(n,a,r){let{reference:i,floating:s}=n;const c=Wn(a),h=Ym(a),m=$m(h),p=Oa(a),g=c==="y",y=i.x+i.width/2-s.width/2,x=i.y+i.height/2-s.height/2,w=i[m]/2-s[m]/2;let j;switch(p){case"top":j={x:y,y:i.y-s.height};break;case"bottom":j={x:y,y:i.y+i.height};break;case"right":j={x:i.x+i.width,y:x};break;case"left":j={x:i.x-s.width,y:x};break;default:j={x:i.x,y:i.y}}switch(Qi(a)){case"start":j[h]-=w*(r&&g?-1:1);break;case"end":j[h]+=w*(r&&g?-1:1);break}return j}const YM=async(n,a,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:h}=r,m=c.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(a));let g=await h.getElementRects({reference:n,floating:a,strategy:s}),{x:y,y:x}=Mx(g,i,p),w=i,j={},E=0;for(let S=0;S<m.length;S++){const{name:C,fn:_}=m[S],{x:T,y:R,data:D,reset:U}=await _({x:y,y:x,initialPlacement:i,placement:w,strategy:s,middlewareData:j,rects:g,platform:h,elements:{reference:n,floating:a}});y=T??y,x=R??x,j={...j,[C]:{...j[C],...D}},U&&E<=50&&(E++,typeof U=="object"&&(U.placement&&(w=U.placement),U.rects&&(g=U.rects===!0?await h.getElementRects({reference:n,floating:a,strategy:s}):U.rects),{x:y,y:x}=Mx(g,w,p)),S=-1)}return{x:y,y:x,placement:w,strategy:s,middlewareData:j}};async function ns(n,a){var r;a===void 0&&(a={});const{x:i,y:s,platform:c,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:w=!1,padding:j=0}=Da(a,n),E=Aw(j),S=m[w?x==="floating"?"reference":"floating":x],C=fc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(S)))==null||r?S:S.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(m.floating)),boundary:g,rootBoundary:y,strategy:p})),_=x==="floating"?{x:i,y:s,width:h.floating.width,height:h.floating.height}:h.reference,T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m.floating)),R=await(c.isElement==null?void 0:c.isElement(T))?await(c.getScale==null?void 0:c.getScale(T))||{x:1,y:1}:{x:1,y:1},D=fc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:T,strategy:p}):_);return{top:(C.top-D.top+E.top)/R.y,bottom:(D.bottom-C.bottom+E.bottom)/R.y,left:(C.left-D.left+E.left)/R.x,right:(D.right-C.right+E.right)/R.x}}const GM=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:s,rects:c,platform:h,elements:m,middlewareData:p}=a,{element:g,padding:y=0}=Da(n,a)||{};if(g==null)return{};const x=Aw(y),w={x:r,y:i},j=Ym(s),E=$m(j),S=await h.getDimensions(g),C=j==="y",_=C?"top":"left",T=C?"bottom":"right",R=C?"clientHeight":"clientWidth",D=c.reference[E]+c.reference[j]-w[j]-c.floating[E],U=w[j]-c.reference[j],K=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let q=K?K[R]:0;(!q||!await(h.isElement==null?void 0:h.isElement(K)))&&(q=m.floating[R]||c.floating[E]);const H=D/2-U/2,Y=q/2-S[E]/2-1,ee=Tl(x[_],Y),ue=Tl(x[T],Y),ce=ee,ie=q-S[E]-ue,ae=q/2-S[E]/2+H,re=rm(ce,ae,ie),z=!p.arrow&&Qi(s)!=null&&ae!==re&&c.reference[E]/2-(ae<ce?ee:ue)-S[E]/2<0,J=z?ae<ce?ae-ce:ae-ie:0;return{[j]:w[j]+J,data:{[j]:re,centerOffset:ae-re-J,...z&&{alignmentOffset:J}},reset:z}}}),VM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:s,middlewareData:c,rects:h,initialPlacement:m,platform:p,elements:g}=a,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=Da(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const _=Oa(s),T=Wn(m),R=Oa(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(g.floating)),U=w||(R||!S?[dc(m)]:UM(m)),K=E!=="none";!w&&K&&U.push(...QM(m,S,E,D));const q=[m,...U],H=await ns(a,C),Y=[];let ee=((i=c.flip)==null?void 0:i.overflows)||[];if(y&&Y.push(H[_]),x){const ae=LM(s,h,D);Y.push(H[ae[0]],H[ae[1]])}if(ee=[...ee,{placement:s,overflows:Y}],!Y.every(ae=>ae<=0)){var ue,ce;const ae=(((ue=c.flip)==null?void 0:ue.index)||0)+1,re=q[ae];if(re&&(!(x==="alignment"&&T!==Wn(re))||ee.every(J=>Wn(J.placement)===T?J.overflows[0]>0:!0)))return{data:{index:ae,overflows:ee},reset:{placement:re}};let z=(ce=ee.filter(J=>J.overflows[0]<=0).sort((J,G)=>J.overflows[1]-G.overflows[1])[0])==null?void 0:ce.placement;if(!z)switch(j){case"bestFit":{var ie;const J=(ie=ee.filter(G=>{if(K){const X=Wn(G.placement);return X===T||X==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(X=>X>0).reduce((X,de)=>X+de,0)]).sort((G,X)=>G[1]-X[1])[0])==null?void 0:ie[0];J&&(z=J);break}case"initialPlacement":z=m;break}if(s!==z)return{reset:{placement:z}}}return{}}}};function Ax(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function kx(n){return kM.some(a=>n[a]>=0)}const KM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:i="referenceHidden",...s}=Da(n,a);switch(i){case"referenceHidden":{const c=await ns(a,{...s,elementContext:"reference"}),h=Ax(c,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:kx(h)}}}case"escaped":{const c=await ns(a,{...s,altBoundary:!0}),h=Ax(c,r.floating);return{data:{escapedOffsets:h,escaped:kx(h)}}}default:return{}}}}},kw=new Set(["left","top"]);async function XM(n,a){const{placement:r,platform:i,elements:s}=n,c=await(i.isRTL==null?void 0:i.isRTL(s.floating)),h=Oa(r),m=Qi(r),p=Wn(r)==="y",g=kw.has(h)?-1:1,y=c&&p?-1:1,x=Da(a,n);let{mainAxis:w,crossAxis:j,alignmentAxis:E}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return m&&typeof E=="number"&&(j=m==="end"?E*-1:E),p?{x:j*y,y:w*g}:{x:w*g,y:j*y}}const FM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:s,y:c,placement:h,middlewareData:m}=a,p=await XM(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:h}}}}},ZM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:s}=a,{mainAxis:c=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:_,y:T}=C;return{x:_,y:T}}},...p}=Da(n,a),g={x:r,y:i},y=await ns(a,p),x=Wn(Oa(s)),w=Qm(x);let j=g[w],E=g[x];if(c){const C=w==="y"?"top":"left",_=w==="y"?"bottom":"right",T=j+y[C],R=j-y[_];j=rm(T,j,R)}if(h){const C=x==="y"?"top":"left",_=x==="y"?"bottom":"right",T=E+y[C],R=E-y[_];E=rm(T,E,R)}const S=m.fn({...a,[w]:j,[x]:E});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:c,[x]:h}}}}}},PM=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:s,rects:c,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=Da(n,a),y={x:r,y:i},x=Wn(s),w=Qm(x);let j=y[w],E=y[x];const S=Da(m,a),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const R=w==="y"?"height":"width",D=c.reference[w]-c.floating[R]+C.mainAxis,U=c.reference[w]+c.reference[R]-C.mainAxis;j<D?j=D:j>U&&(j=U)}if(g){var _,T;const R=w==="y"?"width":"height",D=kw.has(Oa(s)),U=c.reference[x]-c.floating[R]+(D&&((_=h.offset)==null?void 0:_[x])||0)+(D?0:C.crossAxis),K=c.reference[x]+c.reference[R]+(D?0:((T=h.offset)==null?void 0:T[x])||0)-(D?C.crossAxis:0);E<U?E=U:E>K&&(E=K)}return{[w]:j,[x]:E}}}},JM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:s,rects:c,platform:h,elements:m}=a,{apply:p=()=>{},...g}=Da(n,a),y=await ns(a,g),x=Oa(s),w=Qi(s),j=Wn(s)==="y",{width:E,height:S}=c.floating;let C,_;x==="top"||x==="bottom"?(C=x,_=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=x,C=w==="end"?"top":"bottom");const T=S-y.top-y.bottom,R=E-y.left-y.right,D=Tl(S-y[C],T),U=Tl(E-y[_],R),K=!a.middlewareData.shift;let q=D,H=U;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(H=R),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(q=T),K&&!w){const ee=un(y.left,0),ue=un(y.right,0),ce=un(y.top,0),ie=un(y.bottom,0);j?H=E-2*(ee!==0||ue!==0?ee+ue:un(y.left,y.right)):q=S-2*(ce!==0||ie!==0?ce+ie:un(y.top,y.bottom))}await p({...a,availableWidth:H,availableHeight:q});const Y=await h.getDimensions(m.floating);return E!==Y.width||S!==Y.height?{reset:{rects:!0}}:{}}}};function Mc(){return typeof window<"u"}function $i(n){return Dw(n)?(n.nodeName||"").toLowerCase():"#document"}function dn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function la(n){var a;return(a=(Dw(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Dw(n){return Mc()?n instanceof Node||n instanceof dn(n).Node:!1}function qn(n){return Mc()?n instanceof Element||n instanceof dn(n).Element:!1}function ta(n){return Mc()?n instanceof HTMLElement||n instanceof dn(n).HTMLElement:!1}function Dx(n){return!Mc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof dn(n).ShadowRoot}const IM=new Set(["inline","contents"]);function ps(n){const{overflow:a,overflowX:r,overflowY:i,display:s}=Bn(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!IM.has(s)}const WM=new Set(["table","td","th"]);function eA(n){return WM.has($i(n))}const tA=[":popover-open",":modal"];function Ac(n){return tA.some(a=>{try{return n.matches(a)}catch{return!1}})}const nA=["transform","translate","scale","rotate","perspective"],aA=["transform","translate","scale","rotate","perspective","filter"],lA=["paint","layout","strict","content"];function Gm(n){const a=Vm(),r=qn(n)?Bn(n):n;return nA.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!a&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!a&&(r.filter?r.filter!=="none":!1)||aA.some(i=>(r.willChange||"").includes(i))||lA.some(i=>(r.contain||"").includes(i))}function rA(n){let a=Rl(n);for(;ta(a)&&!Ti(a);){if(Gm(a))return a;if(Ac(a))return null;a=Rl(a)}return null}function Vm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iA=new Set(["html","body","#document"]);function Ti(n){return iA.has($i(n))}function Bn(n){return dn(n).getComputedStyle(n)}function kc(n){return qn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Rl(n){if($i(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Dx(n)&&n.host||la(n);return Dx(a)?a.host:a}function Ow(n){const a=Rl(n);return Ti(a)?n.ownerDocument?n.ownerDocument.body:n.body:ta(a)&&ps(a)?a:Ow(a)}function as(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=Ow(n),c=s===((i=n.ownerDocument)==null?void 0:i.body),h=dn(s);if(c){const m=om(h);return a.concat(h,h.visualViewport||[],ps(s)?s:[],m&&r?as(m):[])}return a.concat(s,as(s,[],r))}function om(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function zw(n){const a=Bn(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=ta(n),c=s?n.offsetWidth:r,h=s?n.offsetHeight:i,m=cc(r)!==c||cc(i)!==h;return m&&(r=c,i=h),{width:r,height:i,$:m}}function Km(n){return qn(n)?n:n.contextElement}function ci(n){const a=Km(n);if(!ta(a))return ea(1);const r=a.getBoundingClientRect(),{width:i,height:s,$:c}=zw(a);let h=(c?cc(r.width):r.width)/i,m=(c?cc(r.height):r.height)/s;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const oA=ea(0);function Lw(n){const a=dn(n);return!Vm()||!a.visualViewport?oA:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function sA(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==dn(n)?!1:a}function fr(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),c=Km(n);let h=ea(1);a&&(i?qn(i)&&(h=ci(i)):h=ci(n));const m=sA(c,r,i)?Lw(c):ea(0);let p=(s.left+m.x)/h.x,g=(s.top+m.y)/h.y,y=s.width/h.x,x=s.height/h.y;if(c){const w=dn(c),j=i&&qn(i)?dn(i):i;let E=w,S=om(E);for(;S&&i&&j!==E;){const C=ci(S),_=S.getBoundingClientRect(),T=Bn(S),R=_.left+(S.clientLeft+parseFloat(T.paddingLeft))*C.x,D=_.top+(S.clientTop+parseFloat(T.paddingTop))*C.y;p*=C.x,g*=C.y,y*=C.x,x*=C.y,p+=R,g+=D,E=dn(S),S=om(E)}}return fc({width:y,height:x,x:p,y:g})}function Dc(n,a){const r=kc(n).scrollLeft;return a?a.left+r:fr(la(n)).left+r}function Uw(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-Dc(n,r),s=r.top+a.scrollTop;return{x:i,y:s}}function uA(n){let{elements:a,rect:r,offsetParent:i,strategy:s}=n;const c=s==="fixed",h=la(i),m=a?Ac(a.floating):!1;if(i===h||m&&c)return r;let p={scrollLeft:0,scrollTop:0},g=ea(1);const y=ea(0),x=ta(i);if((x||!x&&!c)&&(($i(i)!=="body"||ps(h))&&(p=kc(i)),ta(i))){const j=fr(i);g=ci(i),y.x=j.x+i.clientLeft,y.y=j.y+i.clientTop}const w=h&&!x&&!c?Uw(h,p):ea(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+y.x+w.x,y:r.y*g.y-p.scrollTop*g.y+y.y+w.y}}function cA(n){return Array.from(n.getClientRects())}function dA(n){const a=la(n),r=kc(n),i=n.ownerDocument.body,s=un(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=un(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Dc(n);const m=-r.scrollTop;return Bn(i).direction==="rtl"&&(h+=un(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:h,y:m}}const Ox=25;function fA(n,a){const r=dn(n),i=la(n),s=r.visualViewport;let c=i.clientWidth,h=i.clientHeight,m=0,p=0;if(s){c=s.width,h=s.height;const y=Vm();(!y||y&&a==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const g=Dc(i);if(g<=0){const y=i.ownerDocument,x=y.body,w=getComputedStyle(x),j=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(i.clientWidth-x.clientWidth-j);E<=Ox&&(c-=E)}else g<=Ox&&(c+=g);return{width:c,height:h,x:m,y:p}}const hA=new Set(["absolute","fixed"]);function mA(n,a){const r=fr(n,!0,a==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,c=ta(n)?ci(n):ea(1),h=n.clientWidth*c.x,m=n.clientHeight*c.y,p=s*c.x,g=i*c.y;return{width:h,height:m,x:p,y:g}}function zx(n,a,r){let i;if(a==="viewport")i=fA(n,r);else if(a==="document")i=dA(la(n));else if(qn(a))i=mA(a,r);else{const s=Lw(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return fc(i)}function Hw(n,a){const r=Rl(n);return r===a||!qn(r)||Ti(r)?!1:Bn(r).position==="fixed"||Hw(r,a)}function pA(n,a){const r=a.get(n);if(r)return r;let i=as(n,[],!1).filter(m=>qn(m)&&$i(m)!=="body"),s=null;const c=Bn(n).position==="fixed";let h=c?Rl(n):n;for(;qn(h)&&!Ti(h);){const m=Bn(h),p=Gm(h);!p&&m.position==="fixed"&&(s=null),(c?!p&&!s:!p&&m.position==="static"&&s&&hA.has(s.position)||ps(h)&&!p&&Hw(n,h))?i=i.filter(g=>g!==h):s=m,h=Rl(h)}return a.set(n,i),i}function vA(n){let{element:a,boundary:r,rootBoundary:i,strategy:s}=n;const c=[...r==="clippingAncestors"?Ac(a)?[]:pA(a,this._c):[].concat(r),i],h=c[0],m=c.reduce((p,g)=>{const y=zx(a,g,s);return p.top=un(y.top,p.top),p.right=Tl(y.right,p.right),p.bottom=Tl(y.bottom,p.bottom),p.left=un(y.left,p.left),p},zx(a,h,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function gA(n){const{width:a,height:r}=zw(n);return{width:a,height:r}}function yA(n,a,r){const i=ta(a),s=la(a),c=r==="fixed",h=fr(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const p=ea(0);function g(){p.x=Dc(s)}if(i||!i&&!c)if(($i(a)!=="body"||ps(s))&&(m=kc(a)),i){const j=fr(a,!0,c,a);p.x=j.x+a.clientLeft,p.y=j.y+a.clientTop}else s&&g();c&&!i&&s&&g();const y=s&&!i&&!c?Uw(s,m):ea(0),x=h.left+m.scrollLeft-p.x-y.x,w=h.top+m.scrollTop-p.y-y.y;return{x,y:w,width:h.width,height:h.height}}function Th(n){return Bn(n).position==="static"}function Lx(n,a){if(!ta(n)||Bn(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return la(n)===r&&(r=r.ownerDocument.body),r}function qw(n,a){const r=dn(n);if(Ac(n))return r;if(!ta(n)){let s=Rl(n);for(;s&&!Ti(s);){if(qn(s)&&!Th(s))return s;s=Rl(s)}return r}let i=Lx(n,a);for(;i&&eA(i)&&Th(i);)i=Lx(i,a);return i&&Ti(i)&&Th(i)&&!Gm(i)?r:i||rA(n)||r}const xA=async function(n){const a=this.getOffsetParent||qw,r=this.getDimensions,i=await r(n.floating);return{reference:yA(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function bA(n){return Bn(n).direction==="rtl"}const wA={convertOffsetParentRelativeRectToViewportRelativeRect:uA,getDocumentElement:la,getClippingRect:vA,getOffsetParent:qw,getElementRects:xA,getClientRects:cA,getDimensions:gA,getScale:ci,isElement:qn,isRTL:bA};function Bw(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function SA(n,a){let r=null,i;const s=la(n);function c(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function h(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),c();const g=n.getBoundingClientRect(),{left:y,top:x,width:w,height:j}=g;if(m||a(),!w||!j)return;const E=Yu(x),S=Yu(s.clientWidth-(y+w)),C=Yu(s.clientHeight-(x+j)),_=Yu(y),T={rootMargin:-E+"px "+-S+"px "+-C+"px "+-_+"px",threshold:un(0,Tl(1,p))||1};let R=!0;function D(U){const K=U[0].intersectionRatio;if(K!==p){if(!R)return h();K?h(!1,K):i=setTimeout(()=>{h(!1,1e-7)},1e3)}K===1&&!Bw(g,n.getBoundingClientRect())&&h(),R=!1}try{r=new IntersectionObserver(D,{...T,root:s.ownerDocument})}catch{r=new IntersectionObserver(D,T)}r.observe(n)}return h(!0),c}function jA(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Km(n),y=s||c?[...g?as(g):[],...as(a)]:[];y.forEach(_=>{s&&_.addEventListener("scroll",r,{passive:!0}),c&&_.addEventListener("resize",r)});const x=g&&m?SA(g,r):null;let w=-1,j=null;h&&(j=new ResizeObserver(_=>{let[T]=_;T&&T.target===g&&j&&(j.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=j)==null||R.observe(a)})),r()}),g&&!p&&j.observe(g),j.observe(a));let E,S=p?fr(n):null;p&&C();function C(){const _=fr(n);S&&!Bw(S,_)&&r(),S=_,E=requestAnimationFrame(C)}return r(),()=>{var _;y.forEach(T=>{s&&T.removeEventListener("scroll",r),c&&T.removeEventListener("resize",r)}),x==null||x(),(_=j)==null||_.disconnect(),j=null,p&&cancelAnimationFrame(E)}}const EA=FM,NA=ZM,CA=VM,_A=JM,TA=KM,Ux=GM,RA=PM,MA=(n,a,r)=>{const i=new Map,s={platform:wA,...r},c={...s.platform,_c:i};return YM(n,a,{...s,platform:c})};var AA=typeof document<"u",kA=function(){},Iu=AA?v.useLayoutEffect:kA;function hc(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,i,s;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!hc(n[i],a[i]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,s[i]))return!1;for(i=r;i--!==0;){const c=s[i];if(!(c==="_owner"&&n.$$typeof)&&!hc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function Qw(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Hx(n,a){const r=Qw(n);return Math.round(a*r)/r}function Rh(n){const a=v.useRef(n);return Iu(()=>{a.current=n}),a}function DA(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:c,floating:h}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[y,x]=v.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[w,j]=v.useState(i);hc(w,i)||j(i);const[E,S]=v.useState(null),[C,_]=v.useState(null),T=v.useCallback(G=>{G!==K.current&&(K.current=G,S(G))},[]),R=v.useCallback(G=>{G!==q.current&&(q.current=G,_(G))},[]),D=c||E,U=h||C,K=v.useRef(null),q=v.useRef(null),H=v.useRef(y),Y=p!=null,ee=Rh(p),ue=Rh(s),ce=Rh(g),ie=v.useCallback(()=>{if(!K.current||!q.current)return;const G={placement:a,strategy:r,middleware:w};ue.current&&(G.platform=ue.current),MA(K.current,q.current,G).then(X=>{const de={...X,isPositioned:ce.current!==!1};ae.current&&!hc(H.current,de)&&(H.current=de,fs.flushSync(()=>{x(de)}))})},[w,a,r,ue,ce]);Iu(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,x(G=>({...G,isPositioned:!1})))},[g]);const ae=v.useRef(!1);Iu(()=>(ae.current=!0,()=>{ae.current=!1}),[]),Iu(()=>{if(D&&(K.current=D),U&&(q.current=U),D&&U){if(ee.current)return ee.current(D,U,ie);ie()}},[D,U,ie,ee,Y]);const re=v.useMemo(()=>({reference:K,floating:q,setReference:T,setFloating:R}),[T,R]),z=v.useMemo(()=>({reference:D,floating:U}),[D,U]),J=v.useMemo(()=>{const G={position:r,left:0,top:0};if(!z.floating)return G;const X=Hx(z.floating,y.x),de=Hx(z.floating,y.y);return m?{...G,transform:"translate("+X+"px, "+de+"px)",...Qw(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:X,top:de}},[r,m,z.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:ie,refs:re,elements:z,floatingStyles:J}),[y,ie,re,z,J])}const OA=n=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:i,padding:s}=typeof n=="function"?n(r):n;return i&&a(i)?i.current!=null?Ux({element:i.current,padding:s}).fn(r):{}:i?Ux({element:i,padding:s}).fn(r):{}}}},zA=(n,a)=>({...EA(n),options:[n,a]}),LA=(n,a)=>({...NA(n),options:[n,a]}),UA=(n,a)=>({...RA(n),options:[n,a]}),HA=(n,a)=>({...CA(n),options:[n,a]}),qA=(n,a)=>({..._A(n),options:[n,a]}),BA=(n,a)=>({...TA(n),options:[n,a]}),QA=(n,a)=>({...OA(n),options:[n,a]});var $A="Arrow",$w=v.forwardRef((n,a)=>{const{children:r,width:i=10,height:s=5,...c}=n;return u.jsx(oe.svg,{...c,ref:a,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});$w.displayName=$A;var YA=$w;function Oc(n){const[a,r]=v.useState(void 0);return lt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let h,m;if("borderBoxSize"in c){const p=c.borderBoxSize,g=Array.isArray(p)?p[0]:p;h=g.inlineSize,m=g.blockSize}else h=n.offsetWidth,m=n.offsetHeight;r({width:h,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else r(void 0)},[n]),a}var Yw="Popper",[Gw,Yi]=gt(Yw),[qz,Vw]=Gw(Yw),Kw="PopperAnchor",Xw=v.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...s}=n,c=Vw(Kw,r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=(i==null?void 0:i.current)||h.current,g!==p.current&&c.onAnchorChange(p.current)}),i?null:u.jsx(oe.div,{...s,ref:m})});Xw.displayName=Kw;var Xm="PopperContent",[GA,VA]=Gw(Xm),Fw=v.forwardRef((n,a)=>{var r,i,s,c,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:y=0,align:x="center",alignOffset:w=0,arrowPadding:j=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:_="partial",hideWhenDetached:T=!1,updatePositionStrategy:R="optimized",onPlaced:D,...U}=n,K=Vw(Xm,p),[q,H]=v.useState(null),Y=we(a,Ot=>H(Ot)),[ee,ue]=v.useState(null),ce=Oc(ee),ie=(ce==null?void 0:ce.width)??0,ae=(ce==null?void 0:ce.height)??0,re=g+(x!=="center"?"-"+x:""),z=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},J=Array.isArray(S)?S:[S],G=J.length>0,X={padding:z,boundary:J.filter(XA),altBoundary:G},{refs:de,floatingStyles:A,placement:F,isPositioned:W,middlewareData:le}=DA({strategy:"fixed",placement:re,whileElementsMounted:(...Ot)=>jA(...Ot,{animationFrame:R==="always"}),elements:{reference:K.anchor},middleware:[zA({mainAxis:y+ae,alignmentAxis:w}),E&&LA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?UA():void 0,...X}),E&&HA({...X}),qA({...X,apply:({elements:Ot,rects:Pt,availableWidth:ia,availableHeight:oa})=>{const{width:Pc,height:xs}=Pt.reference,Ba=Ot.floating.style;Ba.setProperty("--radix-popper-available-width",`${ia}px`),Ba.setProperty("--radix-popper-available-height",`${oa}px`),Ba.setProperty("--radix-popper-anchor-width",`${Pc}px`),Ba.setProperty("--radix-popper-anchor-height",`${xs}px`)}}),ee&&QA({element:ee,padding:j}),FA({arrowWidth:ie,arrowHeight:ae}),T&&BA({strategy:"referenceHidden",...X})]}),[ve,je]=Jw(F),te=nt(D);lt(()=>{W&&(te==null||te())},[W,te]);const Ee=(r=le.arrow)==null?void 0:r.x,ye=(i=le.arrow)==null?void 0:i.y,Ne=((s=le.arrow)==null?void 0:s.centerOffset)!==0,[qe,Ve]=v.useState();return lt(()=>{q&&Ve(window.getComputedStyle(q).zIndex)},[q]),u.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:W?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:qe,"--radix-popper-transform-origin":[(c=le.transformOrigin)==null?void 0:c.x,(h=le.transformOrigin)==null?void 0:h.y].join(" "),...((m=le.hide)==null?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:u.jsx(GA,{scope:p,placedSide:ve,onArrowChange:ue,arrowX:Ee,arrowY:ye,shouldHideArrow:Ne,children:u.jsx(oe.div,{"data-side":ve,"data-align":je,...U,ref:Y,style:{...U.style,animation:W?void 0:"none"}})})})});Fw.displayName=Xm;var Zw="PopperArrow",KA={top:"bottom",right:"left",bottom:"top",left:"right"},Pw=v.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,s=VA(Zw,r),c=KA[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(YA,{...i,ref:a,style:{...i.style,display:"block"}})})});Pw.displayName=Zw;function XA(n){return n!==null}var FA=n=>({name:"transformOrigin",options:n,fn(a){var r,i,s;const{placement:c,rects:h,middlewareData:m}=a,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,g=p?0:n.arrowWidth,y=p?0:n.arrowHeight,[x,w]=Jw(c),j={start:"0%",center:"50%",end:"100%"}[w],E=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,S=(((s=m.arrow)==null?void 0:s.y)??0)+y/2;let C="",_="";return x==="bottom"?(C=p?j:`${E}px`,_=`${-y}px`):x==="top"?(C=p?j:`${E}px`,_=`${h.floating.height+y}px`):x==="right"?(C=`${-y}px`,_=p?j:`${S}px`):x==="left"&&(C=`${h.floating.width+y}px`,_=p?j:`${S}px`),{data:{x:C,y:_}}}});function Jw(n){const[a,r="center"]=n.split("-");return[a,r]}var Fm=Xw,Zm=Fw,Pm=Pw,ZA="Portal",PA=v.forwardRef((n,a)=>{var r;const{container:i,...s}=n,[c,h]=v.useState(!1);lt(()=>h(!0),[]);const m=i||c&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?$b.createPortal(u.jsx(oe.div,{...s,ref:a}),m):null});PA.displayName=ZA;var Mh="rovingFocusGroup.onEntryFocus",JA={bubbles:!1,cancelable:!0},vs="RovingFocusGroup",[sm,Iw,IA]=qi(vs),[WA,Gi]=gt(vs,[IA]),[ek,tk]=WA(vs),Ww=v.forwardRef((n,a)=>u.jsx(sm.Provider,{scope:n.__scopeRovingFocusGroup,children:u.jsx(sm.Slot,{scope:n.__scopeRovingFocusGroup,children:u.jsx(nk,{...n,ref:a})})}));Ww.displayName=vs;var nk=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...x}=n,w=v.useRef(null),j=we(a,w),E=Hi(c),[S,C]=aa({prop:h,defaultProp:m??null,onChange:p,caller:vs}),[_,T]=v.useState(!1),R=nt(g),D=Iw(r),U=v.useRef(!1),[K,q]=v.useState(0);return v.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(Mh,R),()=>H.removeEventListener(Mh,R)},[R]),u.jsx(ek,{scope:r,orientation:i,dir:E,loop:s,currentTabStopId:S,onItemFocus:v.useCallback(H=>C(H),[C]),onItemShiftTab:v.useCallback(()=>T(!0),[]),onFocusableItemAdd:v.useCallback(()=>q(H=>H+1),[]),onFocusableItemRemove:v.useCallback(()=>q(H=>H-1),[]),children:u.jsx(oe.div,{tabIndex:_||K===0?-1:0,"data-orientation":i,...x,ref:j,style:{outline:"none",...n.style},onMouseDown:ne(n.onMouseDown,()=>{U.current=!0}),onFocus:ne(n.onFocus,H=>{const Y=!U.current;if(H.target===H.currentTarget&&Y&&!_){const ee=new CustomEvent(Mh,JA);if(H.currentTarget.dispatchEvent(ee),!ee.defaultPrevented){const ue=D().filter(re=>re.focusable),ce=ue.find(re=>re.active),ie=ue.find(re=>re.id===S),ae=[ce,ie,...ue].filter(Boolean).map(re=>re.ref.current);n1(ae,y)}}U.current=!1}),onBlur:ne(n.onBlur,()=>T(!1))})})}),e1="RovingFocusGroupItem",t1=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:c,children:h,...m}=n,p=Al(),g=c||p,y=tk(e1,r),x=y.currentTabStopId===g,w=Iw(r),{onFocusableItemAdd:j,onFocusableItemRemove:E,currentTabStopId:S}=y;return v.useEffect(()=>{if(i)return j(),()=>E()},[i,j,E]),u.jsx(sm.ItemSlot,{scope:r,id:g,focusable:i,active:s,children:u.jsx(oe.span,{tabIndex:x?0:-1,"data-orientation":y.orientation,...m,ref:a,onMouseDown:ne(n.onMouseDown,C=>{i?y.onItemFocus(g):C.preventDefault()}),onFocus:ne(n.onFocus,()=>y.onItemFocus(g)),onKeyDown:ne(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){y.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const _=rk(C,y.orientation,y.dir);if(_!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let T=w().filter(R=>R.focusable).map(R=>R.ref.current);if(_==="last")T.reverse();else if(_==="prev"||_==="next"){_==="prev"&&T.reverse();const R=T.indexOf(C.currentTarget);T=y.loop?ik(T,R+1):T.slice(R+1)}setTimeout(()=>n1(T))}}),children:typeof h=="function"?h({isCurrentTabStop:x,hasTabStop:S!=null}):h})})});t1.displayName=e1;var ak={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lk(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function rk(n,a,r){const i=lk(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return ak[i]}function n1(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function ik(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var Jm=Ww,Im=t1,ok=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},ri=new WeakMap,Gu=new WeakMap,Vu={},Ah=0,a1=function(n){return n&&(n.host||a1(n.parentNode))},sk=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=a1(r);return i&&n.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",n,". Doing nothing"),null)}).filter(function(r){return!!r})},uk=function(n,a,r,i){var s=sk(a,Array.isArray(n)?n:[n]);Vu[r]||(Vu[r]=new WeakMap);var c=Vu[r],h=[],m=new Set,p=new Set(s),g=function(x){!x||m.has(x)||(m.add(x),g(x.parentNode))};s.forEach(g);var y=function(x){!x||p.has(x)||Array.prototype.forEach.call(x.children,function(w){if(m.has(w))y(w);else try{var j=w.getAttribute(i),E=j!==null&&j!=="false",S=(ri.get(w)||0)+1,C=(c.get(w)||0)+1;ri.set(w,S),c.set(w,C),h.push(w),S===1&&E&&Gu.set(w,!0),C===1&&w.setAttribute(r,"true"),E||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return y(a),m.clear(),Ah++,function(){h.forEach(function(x){var w=ri.get(x)-1,j=c.get(x)-1;ri.set(x,w),c.set(x,j),w||(Gu.has(x)||x.removeAttribute(i),Gu.delete(x)),j||x.removeAttribute(r)}),Ah--,Ah||(ri=new WeakMap,ri=new WeakMap,Gu=new WeakMap,Vu={})}},Wm=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=ok(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),uk(i,s,r,"aria-hidden")):function(){return null}},In=function(){return In=Object.assign||function(n){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])}return n},In.apply(this,arguments)};function l1(n,a){var r={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.indexOf(i)<0&&(r[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)a.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(r[i[s]]=n[i[s]]);return r}function ck(n,a,r){for(var i=0,s=a.length,c;i<s;i++)(c||!(i in a))&&(c||(c=Array.prototype.slice.call(a,0,i)),c[i]=a[i]);return n.concat(c||Array.prototype.slice.call(a))}var Wu="right-scroll-bar-position",ec="width-before-scroll-bar",dk="with-scroll-bars-hidden",fk="--removed-body-scroll-bar-size";function kh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function hk(n,a){var r=v.useState(function(){return{value:n,callback:a,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=a,r.facade}var mk=typeof window<"u"?v.useLayoutEffect:v.useEffect,qx=new WeakMap;function pk(n,a){var r=hk(null,function(i){return n.forEach(function(s){return kh(s,i)})});return mk(function(){var i=qx.get(r);if(i){var s=new Set(i),c=new Set(n),h=r.current;s.forEach(function(m){c.has(m)||kh(m,null)}),c.forEach(function(m){s.has(m)||kh(m,h)})}qx.set(r,n)},[n]),r}function vk(n){return n}function gk(n,a){a===void 0&&(a=vk);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(c){var h=a(c,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(c){for(i=!0;r.length;){var h=r;r=[],h.forEach(c)}r={push:function(m){return c(m)},filter:function(){return r}}},assignMedium:function(c){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(c),h=r}var p=function(){var y=h;h=[],y.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(y){h.push(y),g()},filter:function(y){return h=h.filter(y),r}}}};return s}function yk(n){n===void 0&&(n={});var a=gk(null);return a.options=In({async:!0,ssr:!1},n),a}var r1=function(n){var a=n.sideCar,r=l1(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,In({},r))};r1.isSideCarExport=!0;function xk(n,a){return n.useMedium(a),r1}var i1=yk(),Dh=function(){},zc=v.forwardRef(function(n,a){var r=v.useRef(null),i=v.useState({onScrollCapture:Dh,onWheelCapture:Dh,onTouchMoveCapture:Dh}),s=i[0],c=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,y=n.enabled,x=n.shards,w=n.sideCar,j=n.noRelative,E=n.noIsolation,S=n.inert,C=n.allowPinchZoom,_=n.as,T=_===void 0?"div":_,R=n.gapMode,D=l1(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),U=w,K=pk([r,a]),q=In(In({},D),s);return v.createElement(v.Fragment,null,y&&v.createElement(U,{sideCar:i1,removeScrollBar:g,shards:x,noRelative:j,noIsolation:E,inert:S,setCallbacks:c,allowPinchZoom:!!C,lockRef:r,gapMode:R}),h?v.cloneElement(v.Children.only(m),In(In({},q),{ref:K})):v.createElement(T,In({},q,{className:p,ref:K}),m))});zc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};zc.classNames={fullWidth:ec,zeroRight:Wu};var bk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function wk(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=bk();return a&&n.setAttribute("nonce",a),n}function Sk(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function jk(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var Ek=function(){var n=0,a=null;return{add:function(r){n==0&&(a=wk())&&(Sk(a,r),jk(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},Nk=function(){var n=Ek();return function(a,r){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},o1=function(){var n=Nk(),a=function(r){var i=r.styles,s=r.dynamic;return n(i,s),null};return a},Ck={left:0,top:0,right:0,gap:0},Oh=function(n){return parseInt(n||"",10)||0},_k=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],s=a[n==="padding"?"paddingRight":"marginRight"];return[Oh(r),Oh(i),Oh(s)]},Tk=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Ck;var a=_k(n),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,i-r+a[2]-a[0])}},Rk=o1(),di="data-scroll-locked",Mk=function(n,a,r,i){var s=n.left,c=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
297
- .`.concat(dk,` {
298
- overflow: hidden `).concat(i,`;
299
- padding-right: `).concat(m,"px ").concat(i,`;
300
- }
301
- body[`).concat(di,`] {
302
- overflow: hidden `).concat(i,`;
303
- overscroll-behavior: contain;
304
- `).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
305
- padding-left: `.concat(s,`px;
306
- padding-top: `).concat(c,`px;
307
- padding-right: `).concat(h,`px;
308
- margin-left:0;
309
- margin-top:0;
310
- margin-right: `).concat(m,"px ").concat(i,`;
311
- `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
312
- }
313
-
314
- .`).concat(Wu,` {
315
- right: `).concat(m,"px ").concat(i,`;
316
- }
317
-
318
- .`).concat(ec,` {
319
- margin-right: `).concat(m,"px ").concat(i,`;
320
- }
321
-
322
- .`).concat(Wu," .").concat(Wu,` {
323
- right: 0 `).concat(i,`;
324
- }
325
-
326
- .`).concat(ec," .").concat(ec,` {
327
- margin-right: 0 `).concat(i,`;
328
- }
329
-
330
- body[`).concat(di,`] {
331
- `).concat(fk,": ").concat(m,`px;
332
- }
333
- `)},Bx=function(){var n=parseInt(document.body.getAttribute(di)||"0",10);return isFinite(n)?n:0},Ak=function(){v.useEffect(function(){return document.body.setAttribute(di,(Bx()+1).toString()),function(){var n=Bx()-1;n<=0?document.body.removeAttribute(di):document.body.setAttribute(di,n.toString())}},[])},kk=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;Ak();var c=v.useMemo(function(){return Tk(s)},[s]);return v.createElement(Rk,{styles:Mk(c,!a,s,r?"":"!important")})},um=!1;if(typeof window<"u")try{var Ku=Object.defineProperty({},"passive",{get:function(){return um=!0,!0}});window.addEventListener("test",Ku,Ku),window.removeEventListener("test",Ku,Ku)}catch{um=!1}var ii=um?{passive:!1}:!1,Dk=function(n){return n.tagName==="TEXTAREA"},s1=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!Dk(n)&&r[a]==="visible")},Ok=function(n){return s1(n,"overflowY")},zk=function(n){return s1(n,"overflowX")},Qx=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=u1(n,i);if(s){var c=c1(n,i),h=c[1],m=c[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},Lk=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},Uk=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},u1=function(n,a){return n==="v"?Ok(a):zk(a)},c1=function(n,a){return n==="v"?Lk(a):Uk(a)},Hk=function(n,a){return n==="h"&&a==="rtl"?-1:1},qk=function(n,a,r,i,s){var c=Hk(n,window.getComputedStyle(a).direction),h=c*i,m=r.target,p=a.contains(m),g=!1,y=h>0,x=0,w=0;do{if(!m)break;var j=c1(n,m),E=j[0],S=j[1],C=j[2],_=S-C-c*E;(E||_)&&u1(n,m)&&(x+=_,w+=E);var T=m.parentNode;m=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!p&&m!==document.body||p&&(a.contains(m)||a===m));return(y&&Math.abs(x)<1||!y&&Math.abs(w)<1)&&(g=!0),g},Xu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},$x=function(n){return[n.deltaX,n.deltaY]},Yx=function(n){return n&&"current"in n?n.current:n},Bk=function(n,a){return n[0]===a[0]&&n[1]===a[1]},Qk=function(n){return`
334
- .block-interactivity-`.concat(n,` {pointer-events: none;}
335
- .allow-interactivity-`).concat(n,` {pointer-events: all;}
336
- `)},$k=0,oi=[];function Yk(n){var a=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),s=v.useState($k++)[0],c=v.useState(o1)[0],h=v.useRef(n);v.useEffect(function(){h.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(s));var S=ck([n.lockRef.current],(n.shards||[]).map(Yx)).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=v.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var _=Xu(S),T=r.current,R="deltaX"in S?S.deltaX:T[0]-_[0],D="deltaY"in S?S.deltaY:T[1]-_[1],U,K=S.target,q=Math.abs(R)>Math.abs(D)?"h":"v";if("touches"in S&&q==="h"&&K.type==="range")return!1;var H=Qx(q,K);if(!H)return!0;if(H?U=q:(U=q==="v"?"h":"v",H=Qx(q,K)),!H)return!1;if(!i.current&&"changedTouches"in S&&(R||D)&&(i.current=U),!U)return!0;var Y=i.current||U;return qk(Y,C,S,Y==="h"?R:D)},[]),p=v.useCallback(function(S){var C=S;if(!(!oi.length||oi[oi.length-1]!==c)){var _="deltaY"in C?$x(C):Xu(C),T=a.current.filter(function(U){return U.name===C.type&&(U.target===C.target||C.target===U.shadowParent)&&Bk(U.delta,_)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}if(!T){var R=(h.current.shards||[]).map(Yx).filter(Boolean).filter(function(U){return U.contains(C.target)}),D=R.length>0?m(C,R[0]):!h.current.noIsolation;D&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(S,C,_,T){var R={name:S,delta:C,target:_,should:T,shadowParent:Gk(_)};a.current.push(R),setTimeout(function(){a.current=a.current.filter(function(D){return D!==R})},1)},[]),y=v.useCallback(function(S){r.current=Xu(S),i.current=void 0},[]),x=v.useCallback(function(S){g(S.type,$x(S),S.target,m(S,n.lockRef.current))},[]),w=v.useCallback(function(S){g(S.type,Xu(S),S.target,m(S,n.lockRef.current))},[]);v.useEffect(function(){return oi.push(c),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:w}),document.addEventListener("wheel",p,ii),document.addEventListener("touchmove",p,ii),document.addEventListener("touchstart",y,ii),function(){oi=oi.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,ii),document.removeEventListener("touchmove",p,ii),document.removeEventListener("touchstart",y,ii)}},[]);var j=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(c,{styles:Qk(s)}):null,j?v.createElement(kk,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function Gk(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const Vk=xk(i1,Yk);var Lc=v.forwardRef(function(n,a){return v.createElement(zc,In({},n,{ref:a,sideCar:Vk}))});Lc.classNames=zc.classNames;var cm=["Enter"," "],Kk=["ArrowDown","PageUp","Home"],d1=["ArrowUp","PageDown","End"],Xk=[...Kk,...d1],Fk={ltr:[...cm,"ArrowRight"],rtl:[...cm,"ArrowLeft"]},Zk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Uc="Menu",[ls,Pk,Jk]=qi(Uc),[gr,f1]=gt(Uc,[Jk,Yi,Gi]),ep=Yi(),h1=Gi(),[Bz,Vi]=gr(Uc),[Qz,gs]=gr(Uc),Ik="MenuAnchor",tp=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=ep(r);return u.jsx(Fm,{...s,...i,ref:a})});tp.displayName=Ik;var Wk="MenuPortal",[$z,m1]=gr(Wk,{forceMount:void 0}),Nn="MenuContent",[e4,np]=gr(Nn),p1=v.forwardRef((n,a)=>{const r=m1(Nn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=Vi(Nn,n.__scopeMenu),h=gs(Nn,n.__scopeMenu);return u.jsx(ls.Provider,{scope:n.__scopeMenu,children:u.jsx(jt,{present:i||c.open,children:u.jsx(ls.Slot,{scope:n.__scopeMenu,children:h.modal?u.jsx(t4,{...s,ref:a}):u.jsx(n4,{...s,ref:a})})})})}),t4=v.forwardRef((n,a)=>{const r=Vi(Nn,n.__scopeMenu),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return Wm(c)},[]),u.jsx(ap,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ne(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),n4=v.forwardRef((n,a)=>{const r=Vi(Nn,n.__scopeMenu);return u.jsx(ap,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),a4=dr("MenuContent.ScrollLock"),ap=v.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:w,onDismiss:j,disableOutsideScroll:E,...S}=n,C=Vi(Nn,r),_=gs(Nn,r),T=ep(r),R=h1(r),D=Pk(r),[U,K]=v.useState(null),q=v.useRef(null),H=we(a,q,C.onContentChange),Y=v.useRef(0),ee=v.useRef(""),ue=v.useRef(0),ce=v.useRef(null),ie=v.useRef("right"),ae=v.useRef(0),re=E?Lc:v.Fragment,z=E?{as:a4,allowPinchZoom:!0}:void 0,J=X=>{var de,A;const F=ee.current+X,W=D().filter(ye=>!ye.disabled),le=document.activeElement,ve=(de=W.find(ye=>ye.ref.current===le))==null?void 0:de.textValue,je=W.map(ye=>ye.textValue),te=p4(je,F,ve),Ee=(A=W.find(ye=>ye.textValue===te))==null?void 0:A.ref.current;(function ye(Ne){ee.current=Ne,window.clearTimeout(Y.current),Ne!==""&&(Y.current=window.setTimeout(()=>ye(""),1e3))})(F),Ee&&setTimeout(()=>Ee.focus())};v.useEffect(()=>()=>window.clearTimeout(Y.current),[]),Bm();const G=v.useCallback(X=>{var de,A;return ie.current===((de=ce.current)==null?void 0:de.side)&&g4(X,(A=ce.current)==null?void 0:A.area)},[]);return u.jsx(e4,{scope:r,searchRef:ee,onItemEnter:v.useCallback(X=>{G(X)&&X.preventDefault()},[G]),onItemLeave:v.useCallback(X=>{var de;G(X)||((de=q.current)==null||de.focus(),K(null))},[G]),onTriggerLeave:v.useCallback(X=>{G(X)&&X.preventDefault()},[G]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:v.useCallback(X=>{ce.current=X},[]),children:u.jsx(re,{...z,children:u.jsx(Rc,{asChild:!0,trapped:s,onMountAutoFocus:ne(c,X=>{var de;X.preventDefault(),(de=q.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx(Bi,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:w,onDismiss:j,children:u.jsx(Jm,{asChild:!0,...R,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:U,onCurrentTabStopIdChange:K,onEntryFocus:ne(p,X=>{_.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Zm,{role:"menu","aria-orientation":"vertical","data-state":A1(C.open),"data-radix-menu-content":"",dir:_.dir,...T,...S,ref:H,style:{outline:"none",...S.style},onKeyDown:ne(S.onKeyDown,X=>{const de=X.target.closest("[data-radix-menu-content]")===X.currentTarget,A=X.ctrlKey||X.altKey||X.metaKey,F=X.key.length===1;de&&(X.key==="Tab"&&X.preventDefault(),!A&&F&&J(X.key));const W=q.current;if(X.target!==W||!Xk.includes(X.key))return;X.preventDefault();const le=D().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);d1.includes(X.key)&&le.reverse(),h4(le)}),onBlur:ne(n.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(Y.current),ee.current="")}),onPointerMove:ne(n.onPointerMove,rs(X=>{const de=X.target,A=ae.current!==X.clientX;if(X.currentTarget.contains(de)&&A){const F=X.clientX>ae.current?"right":"left";ie.current=F,ae.current=X.clientX}}))})})})})})})});p1.displayName=Nn;var l4="MenuGroup",lp=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{role:"group",...i,ref:a})});lp.displayName=l4;var r4="MenuLabel",v1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{...i,ref:a})});v1.displayName=r4;var mc="MenuItem",Gx="menu.itemSelect",Hc=v.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...s}=n,c=v.useRef(null),h=gs(mc,n.__scopeMenu),m=np(mc,n.__scopeMenu),p=we(a,c),g=v.useRef(!1),y=()=>{const x=c.current;if(!r&&x){const w=new CustomEvent(Gx,{bubbles:!0,cancelable:!0});x.addEventListener(Gx,j=>i==null?void 0:i(j),{once:!0}),oc(x,w),w.defaultPrevented?g.current=!1:h.onClose()}};return u.jsx(g1,{...s,ref:p,disabled:r,onClick:ne(n.onClick,y),onPointerDown:x=>{var w;(w=n.onPointerDown)==null||w.call(n,x),g.current=!0},onPointerUp:ne(n.onPointerUp,x=>{var w;g.current||(w=x.currentTarget)==null||w.click()}),onKeyDown:ne(n.onKeyDown,x=>{const w=m.searchRef.current!=="";r||w&&x.key===" "||cm.includes(x.key)&&(x.currentTarget.click(),x.preventDefault())})})});Hc.displayName=mc;var g1=v.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:s,...c}=n,h=np(mc,r),m=h1(r),p=v.useRef(null),g=we(a,p),[y,x]=v.useState(!1),[w,j]=v.useState("");return v.useEffect(()=>{const E=p.current;E&&j((E.textContent??"").trim())},[c.children]),u.jsx(ls.ItemSlot,{scope:r,disabled:i,textValue:s??w,children:u.jsx(Im,{asChild:!0,...m,focusable:!i,children:u.jsx(oe.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:g,onPointerMove:ne(n.onPointerMove,rs(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ne(n.onPointerLeave,rs(E=>h.onItemLeave(E))),onFocus:ne(n.onFocus,()=>x(!0)),onBlur:ne(n.onBlur,()=>x(!1))})})})}),i4="MenuCheckboxItem",y1=v.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...s}=n;return u.jsx(j1,{scope:n.__scopeMenu,checked:r,children:u.jsx(Hc,{role:"menuitemcheckbox","aria-checked":pc(r)?"mixed":r,...s,ref:a,"data-state":ip(r),onSelect:ne(s.onSelect,()=>i==null?void 0:i(pc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});y1.displayName=i4;var x1="MenuRadioGroup",[o4,s4]=gr(x1,{value:void 0,onValueChange:()=>{}}),b1=v.forwardRef((n,a)=>{const{value:r,onValueChange:i,...s}=n,c=nt(i);return u.jsx(o4,{scope:n.__scopeMenu,value:r,onValueChange:c,children:u.jsx(lp,{...s,ref:a})})});b1.displayName=x1;var w1="MenuRadioItem",S1=v.forwardRef((n,a)=>{const{value:r,...i}=n,s=s4(w1,n.__scopeMenu),c=r===s.value;return u.jsx(j1,{scope:n.__scopeMenu,checked:c,children:u.jsx(Hc,{role:"menuitemradio","aria-checked":c,...i,ref:a,"data-state":ip(c),onSelect:ne(i.onSelect,()=>{var h;return(h=s.onValueChange)==null?void 0:h.call(s,r)},{checkForDefaultPrevented:!1})})})});S1.displayName=w1;var rp="MenuItemIndicator",[j1,u4]=gr(rp,{checked:!1}),E1=v.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...s}=n,c=u4(rp,r);return u.jsx(jt,{present:i||pc(c.checked)||c.checked===!0,children:u.jsx(oe.span,{...s,ref:a,"data-state":ip(c.checked)})})});E1.displayName=rp;var c4="MenuSeparator",N1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});N1.displayName=c4;var d4="MenuArrow",C1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=ep(r);return u.jsx(Pm,{...s,...i,ref:a})});C1.displayName=d4;var f4="MenuSub",[Yz,_1]=gr(f4),Fo="MenuSubTrigger",T1=v.forwardRef((n,a)=>{const r=Vi(Fo,n.__scopeMenu),i=gs(Fo,n.__scopeMenu),s=_1(Fo,n.__scopeMenu),c=np(Fo,n.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=c,g={__scopeMenu:n.__scopeMenu},y=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const x=m.current;return()=>{window.clearTimeout(x),p(null)}},[m,p]),u.jsx(tp,{asChild:!0,...g,children:u.jsx(g1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":A1(r.open),...n,ref:ms(a,s.onTriggerChange),onClick:x=>{var w;(w=n.onClick)==null||w.call(n,x),!(n.disabled||x.defaultPrevented)&&(x.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ne(n.onPointerMove,rs(x=>{c.onItemEnter(x),!x.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(c.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:ne(n.onPointerLeave,rs(x=>{var w,j;y();const E=(w=r.content)==null?void 0:w.getBoundingClientRect();if(E){const S=(j=r.content)==null?void 0:j.dataset.side,C=S==="right",_=C?-5:5,T=E[C?"left":"right"],R=E[C?"right":"left"];c.onPointerGraceIntentChange({area:[{x:x.clientX+_,y:x.clientY},{x:T,y:E.top},{x:R,y:E.top},{x:R,y:E.bottom},{x:T,y:E.bottom}],side:S}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(x),x.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:ne(n.onKeyDown,x=>{var w;const j=c.searchRef.current!=="";n.disabled||j&&x.key===" "||Fk[i.dir].includes(x.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),x.preventDefault())})})})});T1.displayName=Fo;var R1="MenuSubContent",M1=v.forwardRef((n,a)=>{const r=m1(Nn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=Vi(Nn,n.__scopeMenu),h=gs(Nn,n.__scopeMenu),m=_1(R1,n.__scopeMenu),p=v.useRef(null),g=we(a,p);return u.jsx(ls.Provider,{scope:n.__scopeMenu,children:u.jsx(jt,{present:i||c.open,children:u.jsx(ls.Slot,{scope:n.__scopeMenu,children:u.jsx(ap,{id:m.contentId,"aria-labelledby":m.triggerId,...s,ref:g,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var x;h.isUsingKeyboardRef.current&&((x=p.current)==null||x.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:ne(n.onFocusOutside,y=>{y.target!==m.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:ne(n.onEscapeKeyDown,y=>{h.onClose(),y.preventDefault()}),onKeyDown:ne(n.onKeyDown,y=>{var x;const w=y.currentTarget.contains(y.target),j=Zk[h.dir].includes(y.key);w&&j&&(c.onOpenChange(!1),(x=m.trigger)==null||x.focus(),y.preventDefault())})})})})})});M1.displayName=R1;function A1(n){return n?"open":"closed"}function pc(n){return n==="indeterminate"}function ip(n){return pc(n)?"indeterminate":n?"checked":"unchecked"}function h4(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function m4(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function p4(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let c=m4(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function v4(n,a){const{x:r,y:i}=n;let s=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,y=m.y,x=p.x,w=p.y;y>i!=w>i&&r<(x-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function g4(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return v4(r,a)}function rs(n){return a=>a.pointerType==="mouse"?n(a):void 0}var y4=tp,x4=p1,b4=lp,w4=v1,S4=Hc,j4=y1,E4=b1,N4=S1,C4=E1,_4=N1,T4=C1,R4=T1,M4=M1,k1="DropdownMenu",[A4,Gz]=gt(k1,[f1]),fn=f1(),[Vz,D1]=A4(k1),O1="DropdownMenuTrigger",k4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...s}=n,c=D1(O1,r),h=fn(r);return u.jsx(y4,{asChild:!0,...h,children:u.jsx(oe.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:ms(a,c.triggerRef),onPointerDown:ne(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(c.onOpenToggle(),c.open||m.preventDefault())}),onKeyDown:ne(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&c.onOpenToggle(),m.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});k4.displayName=O1;var z1="DropdownMenuContent",L1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=D1(z1,r),c=fn(r),h=v.useRef(!1);return u.jsx(x4,{id:s.contentId,"aria-labelledby":s.triggerId,...c,...i,ref:a,onCloseAutoFocus:ne(n.onCloseAutoFocus,m=>{var p;h.current||(p=s.triggerRef.current)==null||p.focus(),h.current=!1,m.preventDefault()}),onInteractOutside:ne(n.onInteractOutside,m=>{const p=m.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,y=p.button===2||g;(!s.modal||y)&&(h.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});L1.displayName=z1;var D4="DropdownMenuGroup",O4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(b4,{...s,...i,ref:a})});O4.displayName=D4;var z4="DropdownMenuLabel",U1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(w4,{...s,...i,ref:a})});U1.displayName=z4;var L4="DropdownMenuItem",H1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(S4,{...s,...i,ref:a})});H1.displayName=L4;var U4="DropdownMenuCheckboxItem",q1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(j4,{...s,...i,ref:a})});q1.displayName=U4;var H4="DropdownMenuRadioGroup",q4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(E4,{...s,...i,ref:a})});q4.displayName=H4;var B4="DropdownMenuRadioItem",B1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(N4,{...s,...i,ref:a})});B1.displayName=B4;var Q4="DropdownMenuItemIndicator",$4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(C4,{...s,...i,ref:a})});$4.displayName=Q4;var Y4="DropdownMenuSeparator",Q1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(_4,{...s,...i,ref:a})});Q1.displayName=Y4;var G4="DropdownMenuArrow",V4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(T4,{...s,...i,ref:a})});V4.displayName=G4;var K4="DropdownMenuSubTrigger",$1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(R4,{...s,...i,ref:a})});$1.displayName=K4;var X4="DropdownMenuSubContent",Y1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=fn(r);return u.jsx(M4,{...s,...i,ref:a,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Y1.displayName=X4;var F4=L1,Z4=U1,P4=H1,J4=q1,I4=B1,W4=Q1,e3=$1,t3=Y1;const G1=pe("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");pe("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",G1,"hover:dark:border-white/[0.15] hover:border-gray-300","focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:dark:border-white/[0.15] focus:border-gray-300","data-[state=open]:dark:border-white/[0.15] data-[state=open]:border-gray-300");pe("z-50 min-w-[8rem] p-1 rounded-xl",G1,"data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2");pe("relative flex items-center gap-3","px-3 py-2 rounded-lg text-sm cursor-pointer","outline-none select-none","transition-colors duration-150","dark:text-gray-200 text-gray-700","dark:hover:bg-white/[0.06] hover:bg-gray-100","dark:focus:bg-white/[0.08] focus:bg-gray-100","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none");pe("dark:text-red-400 text-red-600","dark:hover:bg-red-500/10 hover:bg-red-50","dark:focus:bg-red-500/15 focus:bg-red-100");pe("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");pe("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var V1="Dialog",[K1,X1]=gt(V1),[Kz,ra]=K1(V1),F1="DialogTrigger",Z1=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(F1,r),c=we(a,s.triggerRef);return u.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":sp(s.open),...i,ref:c,onClick:ne(n.onClick,s.onOpenToggle)})});Z1.displayName=F1;var n3="DialogPortal",[Xz,P1]=K1(n3,{forceMount:void 0}),vc="DialogOverlay",J1=v.forwardRef((n,a)=>{const r=P1(vc,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=ra(vc,n.__scopeDialog);return c.modal?u.jsx(jt,{present:i||c.open,children:u.jsx(l3,{...s,ref:a})}):null});J1.displayName=vc;var a3=dr("DialogOverlay.RemoveScroll"),l3=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(vc,r);return u.jsx(Lc,{as:a3,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(oe.div,{"data-state":sp(s.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),hr="DialogContent",I1=v.forwardRef((n,a)=>{const r=P1(hr,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=ra(hr,n.__scopeDialog);return u.jsx(jt,{present:i||c.open,children:c.modal?u.jsx(r3,{...s,ref:a}):u.jsx(i3,{...s,ref:a})})});I1.displayName=hr;var r3=v.forwardRef((n,a)=>{const r=ra(hr,n.__scopeDialog),i=v.useRef(null),s=we(a,r.contentRef,i);return v.useEffect(()=>{const c=i.current;if(c)return Wm(c)},[]),u.jsx(W1,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ne(n.onCloseAutoFocus,c=>{var h;c.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ne(n.onPointerDownOutside,c=>{const h=c.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&c.preventDefault()}),onFocusOutside:ne(n.onFocusOutside,c=>c.preventDefault())})}),i3=v.forwardRef((n,a)=>{const r=ra(hr,n.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return u.jsx(W1,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,c),c.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),c.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:c=>{var h,m;(h=n.onInteractOutside)==null||h.call(n,c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const p=c.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),W1=v.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...h}=n,m=ra(hr,r),p=v.useRef(null),g=we(a,p);return Bm(),u.jsxs(u.Fragment,{children:[u.jsx(Rc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c,children:u.jsx(Bi,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":sp(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(s3,{titleId:m.titleId}),u.jsx(c3,{contentRef:p,descriptionId:m.descriptionId})]})]})}),op="DialogTitle",eS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(op,r);return u.jsx(oe.h2,{id:s.titleId,...i,ref:a})});eS.displayName=op;var tS="DialogDescription",nS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(tS,r);return u.jsx(oe.p,{id:s.descriptionId,...i,ref:a})});nS.displayName=tS;var aS="DialogClose",lS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=ra(aS,r);return u.jsx(oe.button,{type:"button",...i,ref:a,onClick:ne(n.onClick,()=>s.onOpenChange(!1))})});lS.displayName=aS;function sp(n){return n?"open":"closed"}var rS="DialogTitleWarning",[o3,iS]=FR(rS,{contentName:hr,titleName:op,docsSlug:"dialog"}),s3=({titleId:n})=>{const a=iS(rS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
337
-
338
- If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
339
-
340
- For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(r))},[r,n]),null},u3="DialogDescriptionWarning",c3=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${iS(u3).contentName}}.`;return v.useEffect(()=>{var i;const s=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(r))},[r,n,a]),null},d3=Z1,f3=J1,h3=I1,m3=eS,p3=nS,oS=lS,v3="AlertDialog",[g3,Fz]=gt(v3,[X1]),yr=X1(),y3="AlertDialogTrigger",x3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(d3,{...s,...i,ref:a})});x3.displayName=y3;var b3="AlertDialogOverlay",w3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(f3,{...s,...i,ref:a})});w3.displayName=b3;var fi="AlertDialogContent",[S3,j3]=g3(fi),E3=uw("AlertDialogContent"),N3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...s}=n,c=yr(r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return u.jsx(o3,{contentName:fi,titleName:sS,docsSlug:"alert-dialog",children:u.jsx(S3,{scope:r,cancelRef:p,children:u.jsxs(h3,{role:"alertdialog",...c,...s,ref:m,onOpenAutoFocus:ne(s.onOpenAutoFocus,g=>{var y;g.preventDefault(),(y=p.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[u.jsx(E3,{children:i}),u.jsx(A3,{contentRef:h})]})})})});N3.displayName=fi;var sS="AlertDialogTitle",C3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(m3,{...s,...i,ref:a})});C3.displayName=sS;var uS="AlertDialogDescription",_3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(p3,{...s,...i,ref:a})});_3.displayName=uS;var T3="AlertDialogAction",R3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=yr(r);return u.jsx(oS,{...s,...i,ref:a})});R3.displayName=T3;var cS="AlertDialogCancel",M3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:s}=j3(cS,r),c=yr(r),h=we(a,s);return u.jsx(oS,{...c,...i,ref:h})});M3.displayName=cS;var A3=({contentRef:n})=>{const a=`\`${fi}\` requires a description for the component to be accessible for screen reader users.
341
-
342
- You can add a description to the \`${fi}\` by passing a \`${uS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
343
-
344
- Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${fi}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
345
-
346
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var r;document.getElementById((r=n.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(a)},[a,n]),null};function ys(n){const a=v.useRef({value:n,previous:n});return v.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}var dS=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),k3="VisuallyHidden",fS=v.forwardRef((n,a)=>u.jsx(oe.span,{...n,ref:a,style:{...dS,...n.style}}));fS.displayName=k3;var hS=fS,D3=[" ","Enter","ArrowUp","ArrowDown"],O3=[" ","Enter"],qc="Select",[up,Bc,z3]=qi(qc),[Ki,Zz]=gt(qc,[z3,Yi]),cp=Yi(),[Pz,kl]=Ki(qc),[Jz,L3]=Ki(qc),mS="SelectTrigger",U3=v.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...s}=n,c=cp(r),h=kl(mS,r),m=h.disabled||i,p=we(a,h.onTriggerChange),g=Bc(r),y=v.useRef("touch"),[x,w,j]=NS(S=>{const C=g().filter(R=>!R.disabled),_=C.find(R=>R.value===h.value),T=CS(C,S,_);T!==void 0&&h.onValueChange(T.value)}),E=S=>{m||(h.onOpenChange(!0),j()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return u.jsx(Fm,{asChild:!0,...c,children:u.jsx(oe.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":ES(h.value)?"":void 0,...s,ref:p,onClick:ne(s.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&E(S)}),onPointerDown:ne(s.onPointerDown,S=>{y.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:ne(s.onKeyDown,S=>{const C=x.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(C&&S.key===" ")&&D3.includes(S.key)&&(E(),S.preventDefault())})})})});U3.displayName=mS;var pS="SelectValue",H3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,children:c,placeholder:h="",...m}=n,p=kl(pS,r),{onValueNodeHasChildrenChange:g}=p,y=c!==void 0,x=we(a,p.onValueNodeChange);return lt(()=>{g(y)},[g,y]),u.jsx(oe.span,{...m,ref:x,style:{pointerEvents:"none"},children:ES(p.value)?u.jsx(u.Fragment,{children:h}):c})});H3.displayName=pS;var q3="SelectIcon",B3=v.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...s}=n;return u.jsx(oe.span,{"aria-hidden":!0,...s,ref:a,children:i||"▼"})});B3.displayName=q3;var mr="SelectContent",Q3=v.forwardRef((n,a)=>{const r=kl(mr,n.__scopeSelect),[i,s]=v.useState();if(lt(()=>{s(new DocumentFragment)},[]),!r.open){const c=i;return c?fs.createPortal(u.jsx(vS,{scope:n.__scopeSelect,children:u.jsx(up.Slot,{scope:n.__scopeSelect,children:u.jsx("div",{children:n.children})})}),c):null}return u.jsx(gS,{...n,ref:a})});Q3.displayName=mr;var Dn=10,[vS,Dl]=Ki(mr),$3="SelectContentImpl",Y3=dr("SelectContent.RemoveScroll"),gS=v.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C,..._}=n,T=kl(mr,r),[R,D]=v.useState(null),[U,K]=v.useState(null),q=we(a,te=>D(te)),[H,Y]=v.useState(null),[ee,ue]=v.useState(null),ce=Bc(r),[ie,ae]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(R)return Wm(R)},[R]),Bm();const z=v.useCallback(te=>{const[Ee,...ye]=ce().map(Ve=>Ve.ref.current),[Ne]=ye.slice(-1),qe=document.activeElement;for(const Ve of te)if(Ve===qe||(Ve==null||Ve.scrollIntoView({block:"nearest"}),Ve===Ee&&U&&(U.scrollTop=0),Ve===Ne&&U&&(U.scrollTop=U.scrollHeight),Ve==null||Ve.focus(),document.activeElement!==qe))return},[ce,U]),J=v.useCallback(()=>z([H,R]),[z,H,R]);v.useEffect(()=>{ie&&J()},[ie,J]);const{onOpenChange:G,triggerPointerDownPosRef:X}=T;v.useEffect(()=>{if(R){let te={x:0,y:0};const Ee=Ne=>{var qe,Ve;te={x:Math.abs(Math.round(Ne.pageX)-(((qe=X.current)==null?void 0:qe.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ve=X.current)==null?void 0:Ve.y)??0))}},ye=Ne=>{te.x<=10&&te.y<=10?Ne.preventDefault():R.contains(Ne.target)||G(!1),document.removeEventListener("pointermove",Ee),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",ye,{capture:!0})}}},[R,G,X]),v.useEffect(()=>{const te=()=>G(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[G]);const[de,A]=NS(te=>{const Ee=ce().filter(qe=>!qe.disabled),ye=Ee.find(qe=>qe.ref.current===document.activeElement),Ne=CS(Ee,te,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),F=v.useCallback((te,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&(Y(te),Ne&&(re.current=!0))},[T.value]),W=v.useCallback(()=>R==null?void 0:R.focus(),[R]),le=v.useCallback((te,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&ue(te)},[T.value]),ve=i==="popper"?dm:yS,je=ve===dm?{side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C}:{};return u.jsx(vS,{scope:r,content:R,viewport:U,onViewportChange:K,itemRefCallback:F,selectedItem:H,onItemLeave:W,itemTextRefCallback:le,focusSelectedItem:J,selectedItemText:ee,position:i,isPositioned:ie,searchRef:de,children:u.jsx(Lc,{as:Y3,allowPinchZoom:!0,children:u.jsx(Rc,{asChild:!0,trapped:T.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:ne(s,te=>{var Ee;(Ee=T.trigger)==null||Ee.focus({preventScroll:!0}),te.preventDefault()}),children:u.jsx(Bi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:u.jsx(ve,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:te=>te.preventDefault(),..._,...je,onPlaced:()=>ae(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ne(_.onKeyDown,te=>{const Ee=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!Ee&&te.key.length===1&&A(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let ye=ce().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(te.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const Ne=te.target,qe=ye.indexOf(Ne);ye=ye.slice(qe+1)}setTimeout(()=>z(ye)),te.preventDefault()}})})})})})})});gS.displayName=$3;var G3="SelectItemAlignedPosition",yS=v.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...s}=n,c=kl(mr,r),h=Dl(mr,r),[m,p]=v.useState(null),[g,y]=v.useState(null),x=we(a,q=>y(q)),w=Bc(r),j=v.useRef(!1),E=v.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:_,focusSelectedItem:T}=h,R=v.useCallback(()=>{if(c.trigger&&c.valueNode&&m&&g&&S&&C&&_){const q=c.trigger.getBoundingClientRect(),H=g.getBoundingClientRect(),Y=c.valueNode.getBoundingClientRect(),ee=_.getBoundingClientRect();if(c.dir!=="rtl"){const Ne=ee.left-H.left,qe=Y.left-Ne,Ve=q.left-qe,Ot=q.width+Ve,Pt=Math.max(Ot,H.width),ia=window.innerWidth-Dn,oa=am(qe,[Dn,Math.max(Dn,ia-Pt)]);m.style.minWidth=Ot+"px",m.style.left=oa+"px"}else{const Ne=H.right-ee.right,qe=window.innerWidth-Y.right-Ne,Ve=window.innerWidth-q.right-qe,Ot=q.width+Ve,Pt=Math.max(Ot,H.width),ia=window.innerWidth-Dn,oa=am(qe,[Dn,Math.max(Dn,ia-Pt)]);m.style.minWidth=Ot+"px",m.style.right=oa+"px"}const ue=w(),ce=window.innerHeight-Dn*2,ie=S.scrollHeight,ae=window.getComputedStyle(g),re=parseInt(ae.borderTopWidth,10),z=parseInt(ae.paddingTop,10),J=parseInt(ae.borderBottomWidth,10),G=parseInt(ae.paddingBottom,10),X=re+z+ie+G+J,de=Math.min(C.offsetHeight*5,X),A=window.getComputedStyle(S),F=parseInt(A.paddingTop,10),W=parseInt(A.paddingBottom,10),le=q.top+q.height/2-Dn,ve=ce-le,je=C.offsetHeight/2,te=C.offsetTop+je,Ee=re+z+te,ye=X-Ee;if(Ee<=le){const Ne=ue.length>0&&C===ue[ue.length-1].ref.current;m.style.bottom="0px";const qe=g.clientHeight-S.offsetTop-S.offsetHeight,Ve=Math.max(ve,je+(Ne?W:0)+qe+J),Ot=Ee+Ve;m.style.height=Ot+"px"}else{const Ne=ue.length>0&&C===ue[0].ref.current;m.style.top="0px";const qe=Math.max(le,re+S.offsetTop+(Ne?F:0)+je)+ye;m.style.height=qe+"px",S.scrollTop=Ee-le+S.offsetTop}m.style.margin=`${Dn}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>j.current=!0)}},[w,c.trigger,c.valueNode,m,g,S,C,_,c.dir,i]);lt(()=>R(),[R]);const[D,U]=v.useState();lt(()=>{g&&U(window.getComputedStyle(g).zIndex)},[g]);const K=v.useCallback(q=>{q&&E.current===!0&&(R(),T==null||T(),E.current=!1)},[R,T]);return u.jsx(K3,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:j,onScrollButtonChange:K,children:u.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:u.jsx(oe.div,{...s,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});yS.displayName=G3;var V3="SelectPopperPosition",dm=v.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=Dn,...c}=n,h=cp(r);return u.jsx(Zm,{...h,...c,ref:a,align:i,collisionPadding:s,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});dm.displayName=V3;var[K3,dp]=Ki(mr,{}),fm="SelectViewport",X3=v.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...s}=n,c=Dl(fm,r),h=dp(fm,r),m=we(a,c.onViewportChange),p=v.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),u.jsx(up.Slot,{scope:r,children:u.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ne(s.onScroll,g=>{const y=g.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:w}=h;if(w!=null&&w.current&&x){const j=Math.abs(p.current-y.scrollTop);if(j>0){const E=window.innerHeight-Dn*2,S=parseFloat(x.style.minHeight),C=parseFloat(x.style.height),_=Math.max(S,C);if(_<E){const T=_+j,R=Math.min(E,T),D=T-R;x.style.height=R+"px",x.style.bottom==="0px"&&(y.scrollTop=D>0?D:0,x.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});X3.displayName=fm;var xS="SelectGroup",[F3,Z3]=Ki(xS),P3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=Al();return u.jsx(F3,{scope:r,id:s,children:u.jsx(oe.div,{role:"group","aria-labelledby":s,...i,ref:a})})});P3.displayName=xS;var bS="SelectLabel",J3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=Z3(bS,r);return u.jsx(oe.div,{id:s.id,...i,ref:a})});J3.displayName=bS;var gc="SelectItem",[I3,wS]=Ki(gc),W3=v.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:c,...h}=n,m=kl(gc,r),p=Dl(gc,r),g=m.value===i,[y,x]=v.useState(c??""),[w,j]=v.useState(!1),E=we(a,T=>{var R;return(R=p.itemRefCallback)==null?void 0:R.call(p,T,i,s)}),S=Al(),C=v.useRef("touch"),_=()=>{s||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(I3,{scope:r,value:i,disabled:s,textId:S,isSelected:g,onItemTextChange:v.useCallback(T=>{x(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:u.jsx(up.ItemSlot,{scope:r,value:i,disabled:s,textValue:y,children:u.jsx(oe.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...h,ref:E,onFocus:ne(h.onFocus,()=>j(!0)),onBlur:ne(h.onBlur,()=>j(!1)),onClick:ne(h.onClick,()=>{C.current!=="mouse"&&_()}),onPointerUp:ne(h.onPointerUp,()=>{C.current==="mouse"&&_()}),onPointerDown:ne(h.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:ne(h.onPointerMove,T=>{var R;C.current=T.pointerType,s?(R=p.onItemLeave)==null||R.call(p):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ne(h.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=p.onItemLeave)==null||R.call(p))}),onKeyDown:ne(h.onKeyDown,T=>{var R;((R=p.searchRef)==null?void 0:R.current)!==""&&T.key===" "||(O3.includes(T.key)&&_(),T.key===" "&&T.preventDefault())})})})})});W3.displayName=gc;var Zo="SelectItemText",eD=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,...c}=n,h=kl(Zo,r),m=Dl(Zo,r),p=wS(Zo,r),g=L3(Zo,r),[y,x]=v.useState(null),w=we(a,_=>x(_),p.onItemTextChange,_=>{var T;return(T=m.itemTextRefCallback)==null?void 0:T.call(m,_,p.value,p.disabled)}),j=y==null?void 0:y.textContent,E=v.useMemo(()=>u.jsx("option",{value:p.value,disabled:p.disabled,children:j},p.value),[p.disabled,p.value,j]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=g;return lt(()=>(S(E),()=>C(E)),[S,C,E]),u.jsxs(u.Fragment,{children:[u.jsx(oe.span,{id:p.textId,...c,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?fs.createPortal(c.children,h.valueNode):null]})});eD.displayName=Zo;var SS="SelectItemIndicator",tD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return wS(SS,r).isSelected?u.jsx(oe.span,{"aria-hidden":!0,...i,ref:a}):null});tD.displayName=SS;var hm="SelectScrollUpButton",nD=v.forwardRef((n,a)=>{const r=Dl(hm,n.__scopeSelect),i=dp(hm,n.__scopeSelect),[s,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;c(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?u.jsx(jS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});nD.displayName=hm;var mm="SelectScrollDownButton",aD=v.forwardRef((n,a)=>{const r=Dl(mm,n.__scopeSelect),i=dp(mm,n.__scopeSelect),[s,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;c(y)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?u.jsx(jS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});aD.displayName=mm;var jS=v.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=n,c=Dl("SelectScrollButton",r),h=v.useRef(null),m=Bc(r),p=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),lt(()=>{var g;const y=m().find(x=>x.ref.current===document.activeElement);(g=y==null?void 0:y.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),u.jsx(oe.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:ne(s.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ne(s.onPointerMove,()=>{var g;(g=c.onItemLeave)==null||g.call(c),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ne(s.onPointerLeave,()=>{p()})})}),lD="SelectSeparator",rD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return u.jsx(oe.div,{"aria-hidden":!0,...i,ref:a})});rD.displayName=lD;var pm="SelectArrow",iD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=cp(r),c=kl(pm,r),h=Dl(pm,r);return c.open&&h.position==="popper"?u.jsx(Pm,{...s,...i,ref:a}):null});iD.displayName=pm;var oD="SelectBubbleInput",sD=v.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const s=v.useRef(null),c=we(i,s),h=ys(a);return v.useEffect(()=>{const m=s.current;if(!m)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==a&&g){const y=new Event("change",{bubbles:!0});g.call(m,a),m.dispatchEvent(y)}},[h,a]),u.jsx(oe.select,{...r,style:{...dS,...r.style},ref:c,defaultValue:a})});sD.displayName=oD;function ES(n){return n===""||n===void 0}function NS(n){const a=nt(n),r=v.useRef(""),i=v.useRef(0),s=v.useCallback(h=>{const m=r.current+h;a(m),(function p(g){r.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(m)},[a]),c=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,c]}function CS(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let c=uD(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function uD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[Qc,Iz]=gt("Tooltip",[Yi]),fp=Yi(),cD="TooltipProvider",Vx="tooltip.open",[Wz,_S]=Qc(cD),TS="Tooltip",[e6,$c]=Qc(TS),vm="TooltipTrigger",dD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=$c(vm,r),c=_S(vm,r),h=fp(r),m=v.useRef(null),p=we(a,m,s.onTriggerChange),g=v.useRef(!1),y=v.useRef(!1),x=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),u.jsx(Fm,{asChild:!0,...h,children:u.jsx(oe.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:p,onPointerMove:ne(n.onPointerMove,w=>{w.pointerType!=="touch"&&!y.current&&!c.isPointerInTransitRef.current&&(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:ne(n.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:ne(n.onPointerDown,()=>{s.open&&s.onClose(),g.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:ne(n.onFocus,()=>{g.current||s.onOpen()}),onBlur:ne(n.onBlur,s.onClose),onClick:ne(n.onClick,s.onClose)})})});dD.displayName=vm;var fD="TooltipPortal",[t6,hD]=Qc(fD,{forceMount:void 0}),Ri="TooltipContent",RS=v.forwardRef((n,a)=>{const r=hD(Ri,n.__scopeTooltip),{forceMount:i=r.forceMount,side:s="top",...c}=n,h=$c(Ri,n.__scopeTooltip);return u.jsx(jt,{present:i||h.open,children:h.disableHoverableContent?u.jsx(MS,{side:s,...c,ref:a}):u.jsx(mD,{side:s,...c,ref:a})})}),mD=v.forwardRef((n,a)=>{const r=$c(Ri,n.__scopeTooltip),i=_S(Ri,n.__scopeTooltip),s=v.useRef(null),c=we(a,s),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,y=s.current,{onPointerInTransitChange:x}=i,w=v.useCallback(()=>{m(null),x(!1)},[x]),j=v.useCallback((E,S)=>{const C=E.currentTarget,_={x:E.clientX,y:E.clientY},T=xD(_,C.getBoundingClientRect()),R=bD(_,T),D=wD(S.getBoundingClientRect()),U=jD([...R,...D]);m(U),x(!0)},[x]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&y){const E=C=>j(C,y),S=C=>j(C,p);return p.addEventListener("pointerleave",E),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",S)}}},[p,y,j,w]),v.useEffect(()=>{if(h){const E=S=>{const C=S.target,_={x:S.clientX,y:S.clientY},T=(p==null?void 0:p.contains(C))||(y==null?void 0:y.contains(C)),R=!SD(_,h);T?w():R&&(w(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,y,h,g,w]),u.jsx(MS,{...n,ref:c})}),[pD,vD]=Qc(TS,{isInside:!1}),gD=uw("TooltipContent"),MS=v.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:c,onPointerDownOutside:h,...m}=n,p=$c(Ri,r),g=fp(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Vx,y),()=>document.removeEventListener(Vx,y)),[y]),v.useEffect(()=>{if(p.trigger){const x=w=>{const j=w.target;j!=null&&j.contains(p.trigger)&&y()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[p.trigger,y]),u.jsx(Bi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:x=>x.preventDefault(),onDismiss:y,children:u.jsxs(Zm,{"data-state":p.stateAttribute,...g,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(gD,{children:i}),u.jsx(pD,{scope:r,isInside:!0,children:u.jsx(hS,{id:p.contentId,role:"tooltip",children:s||i})})]})})});RS.displayName=Ri;var AS="TooltipArrow",yD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=fp(r);return vD(AS,r).isInside?null:u.jsx(Pm,{...s,...i,ref:a})});yD.displayName=AS;function xD(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),s=Math.abs(a.right-n.x),c=Math.abs(a.left-n.x);switch(Math.min(r,i,s,c)){case c:return"left";case s:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function bD(n,a,r=5){const i=[];switch(a){case"top":i.push({x:n.x-r,y:n.y+r},{x:n.x+r,y:n.y+r});break;case"bottom":i.push({x:n.x-r,y:n.y-r},{x:n.x+r,y:n.y-r});break;case"left":i.push({x:n.x+r,y:n.y-r},{x:n.x+r,y:n.y+r});break;case"right":i.push({x:n.x-r,y:n.y-r},{x:n.x-r,y:n.y+r});break}return i}function wD(n){const{top:a,right:r,bottom:i,left:s}=n;return[{x:s,y:a},{x:r,y:a},{x:r,y:i},{x:s,y:i}]}function SD(n,a){const{x:r,y:i}=n;let s=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,y=m.y,x=p.x,w=p.y;y>i!=w>i&&r<(x-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function jD(n){const a=n.slice();return a.sort((r,i)=>r.x<i.x?-1:r.x>i.x?1:r.y<i.y?-1:r.y>i.y?1:0),ED(a)}function ED(n){if(n.length<=1)return n.slice();const a=[];for(let i=0;i<n.length;i++){const s=n[i];for(;a.length>=2;){const c=a[a.length-1],h=a[a.length-2];if((c.x-h.x)*(s.y-h.y)>=(c.y-h.y)*(s.x-h.x))a.pop();else break}a.push(s)}a.pop();const r=[];for(let i=n.length-1;i>=0;i--){const s=n[i];for(;r.length>=2;){const c=r[r.length-1],h=r[r.length-2];if((c.x-h.x)*(s.y-h.y)>=(c.y-h.y)*(s.x-h.x))r.pop();else break}r.push(s)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var ND=RS;ND.displayName;var Yc="Checkbox",[CD,n6]=gt(Yc),[_D,hp]=CD(Yc);function TD(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:s,disabled:c,form:h,name:m,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:x}=n,[w,j]=aa({prop:r,defaultProp:s??!1,onChange:p,caller:Yc}),[E,S]=v.useState(null),[C,_]=v.useState(null),T=v.useRef(!1),R=E?!!h||!!E.closest("form"):!0,D={checked:w,disabled:c,setChecked:j,control:E,setControl:S,name:m,form:h,value:y,hasConsumerStoppedPropagationRef:T,required:g,defaultChecked:Cl(s)?!1:s,isFormControl:R,bubbleInput:C,setBubbleInput:_};return u.jsx(_D,{scope:a,...D,children:AD(x)?x(D):i})}var kS="CheckboxTrigger",DS=v.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},s)=>{const{control:c,value:h,disabled:m,checked:p,required:g,setControl:y,setChecked:x,hasConsumerStoppedPropagationRef:w,isFormControl:j,bubbleInput:E}=hp(kS,n),S=we(s,y),C=v.useRef(p);return v.useEffect(()=>{const _=c==null?void 0:c.form;if(_){const T=()=>x(C.current);return _.addEventListener("reset",T),()=>_.removeEventListener("reset",T)}},[c,x]),u.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":Cl(p)?"mixed":p,"aria-required":g,"data-state":US(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:S,onKeyDown:ne(a,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ne(r,_=>{x(T=>Cl(T)?!0:!T),E&&j&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});DS.displayName=kS;var RD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:c,required:h,disabled:m,value:p,onCheckedChange:g,form:y,...x}=n;return u.jsx(TD,{__scopeCheckbox:r,checked:s,defaultChecked:c,disabled:m,required:h,onCheckedChange:g,name:i,form:y,value:p,internal_do_not_use_render:({isFormControl:w})=>u.jsxs(u.Fragment,{children:[u.jsx(DS,{...x,ref:a,__scopeCheckbox:r}),w&&u.jsx(LS,{__scopeCheckbox:r})]})})});RD.displayName=Yc;var OS="CheckboxIndicator",MD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...s}=n,c=hp(OS,r);return u.jsx(jt,{present:i||Cl(c.checked)||c.checked===!0,children:u.jsx(oe.span,{"data-state":US(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...n.style}})})});MD.displayName=OS;var zS="CheckboxBubbleInput",LS=v.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:h,required:m,disabled:p,name:g,value:y,form:x,bubbleInput:w,setBubbleInput:j}=hp(zS,n),E=we(r,j),S=ys(c),C=Oc(i);v.useEffect(()=>{const T=w;if(!T)return;const R=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(R,"checked").set,U=!s.current;if(S!==c&&D){const K=new Event("click",{bubbles:U});T.indeterminate=Cl(c),D.call(T,Cl(c)?!1:c),T.dispatchEvent(K)}},[w,S,c,s]);const _=v.useRef(Cl(c)?!1:c);return u.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:g,value:y,form:x,...a,tabIndex:-1,ref:E,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});LS.displayName=zS;function AD(n){return typeof n=="function"}function Cl(n){return n==="indeterminate"}function US(n){return Cl(n)?"indeterminate":n?"checked":"unchecked"}var mp="Radio",[kD,HS]=gt(mp),[DD,OD]=kD(mp),qS=v.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:s=!1,required:c,disabled:h,value:m="on",onCheck:p,form:g,...y}=n,[x,w]=v.useState(null),j=we(a,C=>w(C)),E=v.useRef(!1),S=x?g||!!x.closest("form"):!0;return u.jsxs(DD,{scope:r,checked:s,disabled:h,children:[u.jsx(oe.button,{type:"button",role:"radio","aria-checked":s,"data-state":YS(s),"data-disabled":h?"":void 0,disabled:h,value:m,...y,ref:j,onClick:ne(n.onClick,C=>{s||p==null||p(),S&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),S&&u.jsx($S,{control:x,bubbles:!E.current,name:i,value:m,checked:s,required:c,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});qS.displayName=mp;var BS="RadioIndicator",QS=v.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...s}=n,c=OD(BS,r);return u.jsx(jt,{present:i||c.checked,children:u.jsx(oe.span,{"data-state":YS(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:a})})});QS.displayName=BS;var zD="RadioBubbleInput",$S=v.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...s},c)=>{const h=v.useRef(null),m=we(h,c),p=ys(r),g=Oc(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const x=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(x,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),u.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$S.displayName=zD;function YS(n){return n?"checked":"unchecked"}var LD=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Gc="RadioGroup",[UD,a6]=gt(Gc,[Gi,HS]),GS=Gi(),VS=HS(),[HD,qD]=UD(Gc),KS=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:s,value:c,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:y=!0,onValueChange:x,...w}=n,j=GS(r),E=Hi(g),[S,C]=aa({prop:c,defaultProp:s??null,onChange:x,caller:Gc});return u.jsx(HD,{scope:r,name:i,required:h,disabled:m,value:S,onValueChange:C,children:u.jsx(Jm,{asChild:!0,...j,orientation:p,dir:E,loop:y,children:u.jsx(oe.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...w,ref:a})})})});KS.displayName=Gc;var XS="RadioGroupItem",FS=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...s}=n,c=qD(XS,r),h=c.disabled||i,m=GS(r),p=VS(r),g=v.useRef(null),y=we(a,g),x=c.value===s.value,w=v.useRef(!1);return v.useEffect(()=>{const j=S=>{LD.includes(S.key)&&(w.current=!0)},E=()=>w.current=!1;return document.addEventListener("keydown",j),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",j),document.removeEventListener("keyup",E)}},[]),u.jsx(Im,{asChild:!0,...m,focusable:!h,active:x,children:u.jsx(qS,{disabled:h,required:c.required,checked:x,...p,...s,name:c.name,ref:y,onCheck:()=>c.onValueChange(s.value),onKeyDown:ne(j=>{j.key==="Enter"&&j.preventDefault()}),onFocus:ne(s.onFocus,()=>{var j;w.current&&((j=g.current)==null||j.click())})})})});FS.displayName=XS;var BD="RadioGroupIndicator",QD=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,s=VS(r);return u.jsx(QS,{...s,...i,ref:a})});QD.displayName=BD;var $D=KS,YD=FS;$D.displayName;YD.displayName;var Vc="Switch",[GD,l6]=gt(Vc),[VD,KD]=GD(Vc),ZS=v.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:c,required:h,disabled:m,value:p="on",onCheckedChange:g,form:y,...x}=n,[w,j]=v.useState(null),E=we(a,R=>j(R)),S=v.useRef(!1),C=w?y||!!w.closest("form"):!0,[_,T]=aa({prop:s,defaultProp:c??!1,onChange:g,caller:Vc});return u.jsxs(VD,{scope:r,checked:_,disabled:m,children:[u.jsx(oe.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":WS(_),"data-disabled":m?"":void 0,disabled:m,value:p,...x,ref:E,onClick:ne(n.onClick,R=>{T(D=>!D),C&&(S.current=R.isPropagationStopped(),S.current||R.stopPropagation())})}),C&&u.jsx(IS,{control:w,bubbles:!S.current,name:i,value:p,checked:_,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});ZS.displayName=Vc;var PS="SwitchThumb",JS=v.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,s=KD(PS,r);return u.jsx(oe.span,{"data-state":WS(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a})});JS.displayName=PS;var XD="SwitchBubbleInput",IS=v.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...s},c)=>{const h=v.useRef(null),m=we(h,c),p=ys(r),g=Oc(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const x=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(x,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});IS.displayName=XD;function WS(n){return n?"checked":"unchecked"}var FD=ZS,ZD=JS;function zh({className:n,...a}){return u.jsx(FD,{"data-slot":"switch",className:pe("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n),...a,children:u.jsx(ZD,{"data-slot":"switch-thumb",className:pe("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var Kc="Tabs",[PD,r6]=gt(Kc,[Gi]),ej=Gi(),[JD,pp]=PD(Kc),tj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:c,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,y=Hi(m),[x,w]=aa({prop:i,onChange:s,defaultProp:c??"",caller:Kc});return u.jsx(JD,{scope:r,baseId:Al(),value:x,onValueChange:w,orientation:h,dir:y,activationMode:p,children:u.jsx(oe.div,{dir:y,"data-orientation":h,...g,ref:a})})});tj.displayName=Kc;var nj="TabsList",aj=v.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...s}=n,c=pp(nj,r),h=ej(r);return u.jsx(Jm,{asChild:!0,...h,orientation:c.orientation,dir:c.dir,loop:i,children:u.jsx(oe.div,{role:"tablist","aria-orientation":c.orientation,...s,ref:a})})});aj.displayName=nj;var lj="TabsTrigger",rj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...c}=n,h=pp(lj,r),m=ej(r),p=sj(h.baseId,i),g=uj(h.baseId,i),y=i===h.value;return u.jsx(Im,{asChild:!0,...m,focusable:!s,active:y,children:u.jsx(oe.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p,...c,ref:a,onMouseDown:ne(n.onMouseDown,x=>{!s&&x.button===0&&x.ctrlKey===!1?h.onValueChange(i):x.preventDefault()}),onKeyDown:ne(n.onKeyDown,x=>{[" ","Enter"].includes(x.key)&&h.onValueChange(i)}),onFocus:ne(n.onFocus,()=>{const x=h.activationMode!=="manual";!y&&!s&&x&&h.onValueChange(i)})})})});rj.displayName=lj;var ij="TabsContent",oj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:s,children:c,...h}=n,m=pp(ij,r),p=sj(m.baseId,i),g=uj(m.baseId,i),y=i===m.value,x=v.useRef(y);return v.useEffect(()=>{const w=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(w)},[]),u.jsx(jt,{present:s||y,children:({present:w})=>u.jsx(oe.div,{"data-state":y?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...h,ref:a,style:{...n.style,animationDuration:x.current?"0s":void 0},children:w&&c})})});oj.displayName=ij;function sj(n,a){return`${n}-trigger-${a}`}function uj(n,a){return`${n}-content-${a}`}var ID=tj,WD=aj,eO=rj,tO=oj;function cj({className:n,...a}){return u.jsx(ID,{"data-slot":"tabs",className:pe("flex flex-col gap-2",n),...a})}function dj({className:n,...a}){return u.jsx(WD,{"data-slot":"tabs-list",className:pe("flex border-b border-border",n),...a})}function Io({className:n,children:a,...r}){return u.jsx(eO,{asChild:!0,...r,children:u.jsx(fw,{className:n,children:a})})}function Wo({className:n,...a}){return u.jsx(tO,{"data-slot":"tabs-content",className:pe("flex-1 outline-none",n),...a})}function nO(n){const a=aO(n),r=v.forwardRef((i,s)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(rO);if(p){const g=p.props.children,y=m.map(x=>x===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:x);return u.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return u.jsx(a,{...h,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}function aO(n){const a=v.forwardRef((r,i)=>{const{children:s,...c}=r,h=v.isValidElement(s)?oO(s):void 0,m=we(h,i);if(v.isValidElement(s)){const p=iO(c,s.props);return s.type!==v.Fragment&&(p.ref=m),v.cloneElement(s,p)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var lO=Symbol("radix.slottable");function rO(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===lO}function iO(n,a){const r={...a};for(const i in a){const s=n[i],c=a[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...h)=>{const m=c(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function oO(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var sO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vp=sO.reduce((n,a)=>{const r=nO(`Primitive.${a}`),i=v.forwardRef((s,c)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{}),gp="Progress",yp=100,[uO,i6]=gt(gp),[cO,dO]=uO(gp),fO=v.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:s,getValueLabel:c=mO,...h}=n;(s||s===0)&&!Kx(s)&&console.error(pO(`${s}`,"Progress"));const m=Kx(s)?s:yp;i!==null&&!Xx(i,m)&&console.error(vO(`${i}`,"Progress"));const p=Xx(i,m)?i:null,g=yc(p)?c(p,m):void 0;return u.jsx(cO,{scope:r,value:p,max:m,children:u.jsx(vp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":yc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":hj(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});fO.displayName=gp;var fj="ProgressIndicator",hO=v.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,s=dO(fj,r);return u.jsx(vp.div,{"data-state":hj(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})});hO.displayName=fj;function mO(n,a){return`${Math.round(n/a*100)}%`}function hj(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function yc(n){return typeof n=="number"}function Kx(n){return yc(n)&&!isNaN(n)&&n>0}function Xx(n,a){return yc(n)&&!isNaN(n)&&n<=a&&n>=0}function pO(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${yp}\`.`}function vO(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
347
- - a positive number
348
- - less than the value passed to \`max\` (or ${yp} if no \`max\` prop is set)
349
- - \`null\` or \`undefined\` if the progress is indeterminate.
350
-
351
- Defaulting to \`null\`.`}var gO="Separator",Fx="horizontal",yO=["horizontal","vertical"],xO=v.forwardRef((n,a)=>{const{decorative:r,orientation:i=Fx,...s}=n,c=bO(i)?i:Fx,h=r?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return u.jsx(vp.div,{"data-orientation":c,...h,...s,ref:a})});xO.displayName=gO;function bO(n){return yO.includes(n)}var wO="Label",mj=v.forwardRef((n,a)=>u.jsx(oe.label,{...n,ref:a,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=n.onMouseDown)==null||i.call(n,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));mj.displayName=wO;var pj=mj;const SO=dw("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Po=({ref:n,className:a,...r})=>u.jsx(pj,{ref:n,className:pe(SO(),a),...r});Po.displayName=pj.displayName;var Xc="Collapsible",[jO,vj]=gt(Xc),[EO,xp]=jO(Xc),gj=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:s,disabled:c,onOpenChange:h,...m}=n,[p,g]=aa({prop:i,defaultProp:s??!1,onChange:h,caller:Xc});return u.jsx(EO,{scope:r,disabled:c,contentId:Al(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:u.jsx(oe.div,{"data-state":jp(p),"data-disabled":c?"":void 0,...m,ref:a})})});gj.displayName=Xc;var yj="CollapsibleTrigger",bp=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,s=xp(yj,r);return u.jsx(oe.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":jp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:a,onClick:ne(n.onClick,s.onOpenToggle)})});bp.displayName=yj;var wp="CollapsibleContent",Sp=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=xp(wp,n.__scopeCollapsible);return u.jsx(jt,{present:r||s.open,children:({present:c})=>u.jsx(NO,{...i,ref:a,present:c})})});Sp.displayName=wp;var NO=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:s,...c}=n,h=xp(wp,r),[m,p]=v.useState(i),g=v.useRef(null),y=we(a,g),x=v.useRef(0),w=x.current,j=v.useRef(0),E=j.current,S=h.open||m,C=v.useRef(S),_=v.useRef(void 0);return v.useEffect(()=>{const T=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(T)},[]),lt(()=>{const T=g.current;if(T){_.current=_.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const R=T.getBoundingClientRect();x.current=R.height,j.current=R.width,C.current||(T.style.transitionDuration=_.current.transitionDuration,T.style.animationName=_.current.animationName),p(i)}},[h.open,i]),u.jsx(oe.div,{"data-state":jp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!S,...c,ref:y,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:S&&s})});function jp(n){return n?"open":"closed"}var xj=gj,CO=bp,_O=Sp,Gn="Accordion",TO=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ep,RO,MO]=qi(Gn),[Fc,o6]=gt(Gn,[MO,vj]),Np=vj(),AO=st.forwardRef((n,a)=>{const{type:r,...i}=n,s=i,c=i;return u.jsx(Ep.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?u.jsx(zO,{...c,ref:a}):u.jsx(OO,{...s,ref:a})})});AO.displayName=Gn;var[bj,kO]=Fc(Gn),[wj,DO]=Fc(Gn,{collapsible:!1}),OO=st.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},collapsible:c=!1,...h}=n,[m,p]=aa({prop:r,defaultProp:i??"",onChange:s,caller:Gn});return u.jsx(bj,{scope:n.__scopeAccordion,value:st.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:st.useCallback(()=>c&&p(""),[c,p]),children:u.jsx(wj,{scope:n.__scopeAccordion,collapsible:c,children:u.jsx(Sj,{...h,ref:a})})})}),zO=st.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},...c}=n,[h,m]=aa({prop:r,defaultProp:i??[],onChange:s,caller:Gn}),p=st.useCallback(y=>m((x=[])=>[...x,y]),[m]),g=st.useCallback(y=>m((x=[])=>x.filter(w=>w!==y)),[m]);return u.jsx(bj,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:u.jsx(wj,{scope:n.__scopeAccordion,collapsible:!0,children:u.jsx(Sj,{...c,ref:a})})})}),[LO,Zc]=Fc(Gn),Sj=st.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:s,orientation:c="vertical",...h}=n,m=st.useRef(null),p=we(m,a),g=RO(r),y=Hi(s)==="ltr",x=ne(n.onKeyDown,w=>{var j;if(!TO.includes(w.key))return;const E=w.target,S=g().filter(H=>{var Y;return!((Y=H.ref.current)!=null&&Y.disabled)}),C=S.findIndex(H=>H.ref.current===E),_=S.length;if(C===-1)return;w.preventDefault();let T=C;const R=0,D=_-1,U=()=>{T=C+1,T>D&&(T=R)},K=()=>{T=C-1,T<R&&(T=D)};switch(w.key){case"Home":T=R;break;case"End":T=D;break;case"ArrowRight":c==="horizontal"&&(y?U():K());break;case"ArrowDown":c==="vertical"&&U();break;case"ArrowLeft":c==="horizontal"&&(y?K():U());break;case"ArrowUp":c==="vertical"&&K();break}const q=T%_;(j=S[q].ref.current)==null||j.focus()});return u.jsx(LO,{scope:r,disabled:i,direction:s,orientation:c,children:u.jsx(Ep.Slot,{scope:r,children:u.jsx(oe.div,{...h,"data-orientation":c,ref:p,onKeyDown:i?void 0:x})})})}),xc="AccordionItem",[UO,Cp]=Fc(xc),HO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...s}=n,c=Zc(xc,r),h=kO(xc,r),m=Np(r),p=Al(),g=i&&h.value.includes(i)||!1,y=c.disabled||n.disabled;return u.jsx(UO,{scope:r,open:g,disabled:y,triggerId:p,children:u.jsx(xj,{"data-orientation":c.orientation,"data-state":Nj(g),...m,...s,ref:a,disabled:y,open:g,onOpenChange:x=>{x?h.onItemOpen(i):h.onItemClose(i)}})})});HO.displayName=xc;var jj="AccordionHeader",qO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Zc(Gn,r),c=Cp(jj,r);return u.jsx(oe.h3,{"data-orientation":s.orientation,"data-state":Nj(c.open),"data-disabled":c.disabled?"":void 0,...i,ref:a})});qO.displayName=jj;var gm="AccordionTrigger",BO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Zc(Gn,r),c=Cp(gm,r),h=DO(gm,r),m=Np(r);return u.jsx(Ep.ItemSlot,{scope:r,children:u.jsx(CO,{"aria-disabled":c.open&&!h.collapsible||void 0,"data-orientation":s.orientation,id:c.triggerId,...m,...i,ref:a})})});BO.displayName=gm;var Ej="AccordionContent",QO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Zc(Gn,r),c=Cp(Ej,r),h=Np(r);return u.jsx(_O,{role:"region","aria-labelledby":c.triggerId,"data-orientation":s.orientation,...h,...i,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});QO.displayName=Ej;function Nj(n){return n?"open":"closed"}const Cj=xj,_j=bp,Tj=Sp;var xr="NavigationMenu",[_p,Rj,$O]=qi(xr),[ym,YO,GO]=qi(xr),[Tp,s6]=gt(xr,[$O,GO]),[VO,Tn]=Tp(xr),[KO,XO]=Tp(xr),FO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...y}=n,[x,w]=v.useState(null),j=we(a,Y=>w(Y)),E=Hi(g),S=v.useRef(0),C=v.useRef(0),_=v.useRef(0),[T,R]=v.useState(!0),[D,U]=aa({prop:i,onChange:Y=>{const ee=Y!=="",ue=m>0;ee?(window.clearTimeout(_.current),ue&&R(!1)):(window.clearTimeout(_.current),_.current=window.setTimeout(()=>R(!0),m)),s==null||s(Y)},defaultProp:c??"",caller:xr}),K=v.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>U(""),150)},[U]),q=v.useCallback(Y=>{window.clearTimeout(C.current),U(Y)},[U]),H=v.useCallback(Y=>{D===Y?window.clearTimeout(C.current):S.current=window.setTimeout(()=>{window.clearTimeout(C.current),U(Y)},h)},[D,U,h]);return v.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(C.current),window.clearTimeout(_.current)},[]),u.jsx(Mj,{scope:r,isRootMenu:!0,value:D,dir:E,orientation:p,rootNavigationMenu:x,onTriggerEnter:Y=>{window.clearTimeout(S.current),T?H(Y):q(Y)},onTriggerLeave:()=>{window.clearTimeout(S.current),K()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:K,onItemSelect:Y=>{U(ee=>ee===Y?"":Y)},onItemDismiss:()=>U(""),children:u.jsx(oe.nav,{"aria-label":"Main","data-orientation":p,dir:E,...y,ref:j})})});FO.displayName=xr;var xm="NavigationMenuSub",ZO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,orientation:h="horizontal",...m}=n,p=Tn(xm,r),[g,y]=aa({prop:i,onChange:s,defaultProp:c??"",caller:xm});return u.jsx(Mj,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:x=>y(x),onItemSelect:x=>y(x),onItemDismiss:()=>y(""),children:u.jsx(oe.div,{"data-orientation":h,...m,ref:a})})});ZO.displayName=xm;var Mj=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:s,orientation:c,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:y,onTriggerLeave:x,onContentEnter:w,onContentLeave:j}=n,[E,S]=v.useState(null),[C,_]=v.useState(new Map),[T,R]=v.useState(null);return u.jsx(VO,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:ys(m),baseId:Al(),dir:s,orientation:c,viewport:E,onViewportChange:S,indicatorTrack:T,onIndicatorTrackChange:R,onTriggerEnter:nt(y),onTriggerLeave:nt(x),onContentEnter:nt(w),onContentLeave:nt(j),onItemSelect:nt(p),onItemDismiss:nt(g),onViewportContentChange:v.useCallback((D,U)=>{_(K=>(K.set(D,U),new Map(K)))},[]),onViewportContentRemove:v.useCallback(D=>{_(U=>U.has(D)?(U.delete(D),new Map(U)):U)},[]),children:u.jsx(_p.Provider,{scope:a,children:u.jsx(KO,{scope:a,items:C,children:h})})})},Aj="NavigationMenuList",PO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=Tn(Aj,r),c=u.jsx(oe.ul,{"data-orientation":s.orientation,...i,ref:a});return u.jsx(oe.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:u.jsx(_p.Slot,{scope:r,children:s.isRootMenu?u.jsx(zj,{asChild:!0,children:c}):c})})});PO.displayName=Aj;var kj="NavigationMenuItem",[JO,Dj]=Tp(kj),IO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...s}=n,c=Al(),h=i||c||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),y=v.useRef(()=>{}),x=v.useRef(!1),w=v.useCallback((E="start")=>{if(m.current){y.current();const S=wm(m.current);S.length&&Ap(E==="start"?S:S.reverse())}},[]),j=v.useCallback(()=>{if(m.current){const E=wm(m.current);E.length&&(y.current=c5(E))}},[]);return u.jsx(JO,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:x,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:j,onContentFocusOutside:j,children:u.jsx(oe.li,{...s,ref:a})})});IO.displayName=kj;var bm="NavigationMenuTrigger",WO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...s}=n,c=Tn(bm,n.__scopeNavigationMenu),h=Dj(bm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,a),g=Uj(c.baseId,h.value),y=Hj(c.baseId,h.value),x=v.useRef(!1),w=v.useRef(!1),j=h.value===c.value;return u.jsxs(u.Fragment,{children:[u.jsx(_p.ItemSlot,{scope:r,value:h.value,children:u.jsx(Lj,{asChild:!0,children:u.jsx(oe.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":kp(j),"aria-expanded":j,"aria-controls":y,...s,ref:p,onPointerEnter:ne(n.onPointerEnter,()=>{w.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:ne(n.onPointerMove,bc(()=>{i||w.current||h.wasEscapeCloseRef.current||x.current||(c.onTriggerEnter(h.value),x.current=!0)})),onPointerLeave:ne(n.onPointerLeave,bc(()=>{i||(c.onTriggerLeave(),x.current=!1)})),onClick:ne(n.onClick,()=>{c.onItemSelect(h.value),w.current=j}),onKeyDown:ne(n.onKeyDown,E=>{const S={horizontal:"ArrowDown",vertical:c.dir==="rtl"?"ArrowLeft":"ArrowRight"}[c.orientation];j&&E.key===S&&(h.onEntryKeyDown(),E.preventDefault())})})})}),j&&u.jsxs(u.Fragment,{children:[u.jsx(hS,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:E=>{const S=h.contentRef.current,C=E.relatedTarget,_=C===m.current,T=S==null?void 0:S.contains(C);(_||!T)&&h.onFocusProxyEnter(_?"start":"end")}}),c.viewport&&u.jsx("span",{"aria-owns":y})]})]})});WO.displayName=bm;var e5="NavigationMenuLink",Zx="navigationMenu.linkSelect",t5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:s,...c}=n;return u.jsx(Lj,{asChild:!0,children:u.jsx(oe.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...c,ref:a,onClick:ne(n.onClick,h=>{const m=h.target,p=new CustomEvent(Zx,{bubbles:!0,cancelable:!0});if(m.addEventListener(Zx,g=>s==null?void 0:s(g),{once:!0}),oc(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(tc,{bubbles:!0,cancelable:!0});oc(m,g)}},{checkForDefaultPrevented:!1})})})});t5.displayName=e5;var Rp="NavigationMenuIndicator",n5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Tn(Rp,n.__scopeNavigationMenu),c=!!s.value;return s.indicatorTrack?$b.createPortal(u.jsx(jt,{present:r||c,children:u.jsx(a5,{...i,ref:a})}),s.indicatorTrack):null});n5.displayName=Rp;var a5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=Tn(Rp,r),c=Rj(r),[h,m]=v.useState(null),[p,g]=v.useState(null),y=s.orientation==="horizontal",x=!!s.value;v.useEffect(()=>{var j;const E=(j=c().find(S=>S.value===s.value))==null?void 0:j.ref.current;E&&m(E)},[c,s.value]);const w=()=>{h&&g({size:y?h.offsetWidth:h.offsetHeight,offset:y?h.offsetLeft:h.offsetTop})};return Sm(h,w),Sm(s.indicatorTrack,w),p?u.jsx(oe.div,{"aria-hidden":!0,"data-state":x?"visible":"hidden","data-orientation":s.orientation,...i,ref:a,style:{position:"absolute",...y?{left:0,width:p.size+"px",transform:`translateX(${p.offset}px)`}:{top:0,height:p.size+"px",transform:`translateY(${p.offset}px)`},...i.style}}):null}),Mi="NavigationMenuContent",l5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Tn(Mi,n.__scopeNavigationMenu),c=Dj(Mi,n.__scopeNavigationMenu),h=we(c.contentRef,a),m=c.value===s.value,p={value:c.value,triggerRef:c.triggerRef,focusProxyRef:c.focusProxyRef,wasEscapeCloseRef:c.wasEscapeCloseRef,onContentFocusOutside:c.onContentFocusOutside,onRootContentClose:c.onRootContentClose,...i};return s.viewport?u.jsx(r5,{forceMount:r,...p,ref:h}):u.jsx(jt,{present:r||m,children:u.jsx(Oj,{"data-state":kp(m),...p,ref:h,onPointerEnter:ne(n.onPointerEnter,s.onContentEnter),onPointerLeave:ne(n.onPointerLeave,bc(s.onContentLeave)),style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,...p.style}})})});l5.displayName=Mi;var r5=v.forwardRef((n,a)=>{const r=Tn(Mi,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:s}=r;return lt(()=>{i(n.value,{ref:a,...n})},[n,a,i]),lt(()=>()=>s(n.value),[n.value,s]),null}),tc="navigationMenu.rootContentDismiss",Oj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:s,focusProxyRef:c,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,y=Tn(Mi,r),x=v.useRef(null),w=we(x,a),j=Uj(y.baseId,i),E=Hj(y.baseId,i),S=Rj(r),C=v.useRef(null),{onItemDismiss:_}=y;v.useEffect(()=>{const R=x.current;if(y.isRootMenu&&R){const D=()=>{var U;_(),m(),R.contains(document.activeElement)&&((U=s.current)==null||U.focus())};return R.addEventListener(tc,D),()=>R.removeEventListener(tc,D)}},[y.isRootMenu,n.value,s,_,m]);const T=v.useMemo(()=>{const R=S().map(Y=>Y.value);y.dir==="rtl"&&R.reverse();const D=R.indexOf(y.value),U=R.indexOf(y.previousValue),K=i===y.value,q=U===R.indexOf(i);if(!K&&!q)return C.current;const H=(()=>{if(D!==U){if(K&&U!==-1)return D>U?"from-end":"from-start";if(q&&D!==-1)return D>U?"to-start":"to-end"}return null})();return C.current=H,H},[y.previousValue,y.value,y.dir,S,i]);return u.jsx(zj,{asChild:!0,children:u.jsx(Bi,{id:E,"aria-labelledby":j,"data-motion":T,"data-orientation":y.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var R;const D=new Event(tc,{bubbles:!0,cancelable:!0});(R=x.current)==null||R.dispatchEvent(D)},onFocusOutside:ne(n.onFocusOutside,R=>{var D;p();const U=R.target;(D=y.rootNavigationMenu)!=null&&D.contains(U)&&R.preventDefault()}),onPointerDownOutside:ne(n.onPointerDownOutside,R=>{var D;const U=R.target,K=S().some(H=>{var Y;return(Y=H.ref.current)==null?void 0:Y.contains(U)}),q=y.isRootMenu&&((D=y.viewport)==null?void 0:D.contains(U));(K||q||!y.isRootMenu)&&R.preventDefault()}),onKeyDown:ne(n.onKeyDown,R=>{var D;const U=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!U){const K=wm(R.currentTarget),q=document.activeElement,H=K.findIndex(ee=>ee===q),Y=R.shiftKey?K.slice(0,H).reverse():K.slice(H+1,K.length);Ap(Y)?R.preventDefault():(D=c.current)==null||D.focus()}}),onEscapeKeyDown:ne(n.onEscapeKeyDown,R=>{h.current=!0})})})}),Mp="NavigationMenuViewport",i5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=!!Tn(Mp,n.__scopeNavigationMenu).value;return u.jsx(jt,{present:r||s,children:u.jsx(o5,{...i,ref:a})})});i5.displayName=Mp;var o5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...s}=n,c=Tn(Mp,r),h=we(a,c.onViewportChange),m=XO(Mi,n.__scopeNavigationMenu),[p,g]=v.useState(null),[y,x]=v.useState(null),w=p?(p==null?void 0:p.width)+"px":void 0,j=p?(p==null?void 0:p.height)+"px":void 0,E=!!c.value,S=E?c.value:c.previousValue;return Sm(y,()=>{y&&g({width:y.offsetWidth,height:y.offsetHeight})}),u.jsx(oe.div,{"data-state":kp(E),"data-orientation":c.orientation,...s,ref:h,style:{pointerEvents:!E&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":j,...s.style},onPointerEnter:ne(n.onPointerEnter,c.onContentEnter),onPointerLeave:ne(n.onPointerLeave,bc(c.onContentLeave)),children:Array.from(m.items).map(([C,{ref:_,forceMount:T,...R}])=>{const D=S===C;return u.jsx(jt,{present:T||D,children:u.jsx(Oj,{...R,ref:ms(_,U=>{D&&U&&x(U)})})},C)})})}),s5="FocusGroup",zj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=Tn(s5,r);return u.jsx(ym.Provider,{scope:r,children:u.jsx(ym.Slot,{scope:r,children:u.jsx(oe.div,{dir:s.dir,...i,ref:a})})})}),Px=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],u5="FocusGroupItem",Lj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=YO(r),c=Tn(u5,r);return u.jsx(ym.ItemSlot,{scope:r,children:u.jsx(oe.button,{...i,ref:a,onKeyDown:ne(n.onKeyDown,h=>{if(["Home","End",...Px].includes(h.key)){let m=s().map(p=>p.ref.current);if([c.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Px.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>Ap(m)),h.preventDefault()}})})})});function wm(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Ap(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function c5(n){return n.forEach(a=>{a.dataset.tabindex=a.getAttribute("tabindex")||"",a.setAttribute("tabindex","-1")}),()=>{n.forEach(a=>{const r=a.dataset.tabindex;a.setAttribute("tabindex",r)})}}function Sm(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}function kp(n){return n?"open":"closed"}function Uj(n,a){return`${n}-trigger-${a}`}function Hj(n,a){return`${n}-content-${a}`}function bc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Jx={exports:{}},Lh={};/**
352
- * @license React
353
- * use-sync-external-store-shim.production.js
354
- *
355
- * Copyright (c) Meta Platforms, Inc. and affiliates.
356
- *
357
- * This source code is licensed under the MIT license found in the
358
- * LICENSE file in the root directory of this source tree.
359
- */var Ix;function d5(){if(Ix)return Lh;Ix=1;var n=st;function a(x,w){return x===w&&(x!==0||1/x===1/w)||x!==x&&w!==w}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,s=n.useEffect,c=n.useLayoutEffect,h=n.useDebugValue;function m(x,w){var j=w(),E=i({inst:{value:j,getSnapshot:w}}),S=E[0].inst,C=E[1];return c(function(){S.value=j,S.getSnapshot=w,p(S)&&C({inst:S})},[x,j,w]),s(function(){return p(S)&&C({inst:S}),x(function(){p(S)&&C({inst:S})})},[x]),h(j),j}function p(x){var w=x.getSnapshot;x=x.value;try{var j=w();return!r(x,j)}catch{return!0}}function g(x,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return Lh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Lh}var Wx;function f5(){return Wx||(Wx=1,Jx.exports=d5()),Jx.exports}var h5=f5();function m5(){return h5.useSyncExternalStore(p5,()=>!0,()=>!1)}function p5(){return()=>{}}var Dp="Avatar",[v5,u6]=gt(Dp),[g5,qj]=v5(Dp),Bj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[s,c]=v.useState("idle");return u.jsx(g5,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:c,children:u.jsx(oe.span,{...i,ref:a})})});Bj.displayName=Dp;var Qj="AvatarImage",$j=v.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...c}=n,h=qj(Qj,r),m=y5(i,c),p=nt(g=>{s(g),h.onImageLoadingStatusChange(g)});return lt(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?u.jsx(oe.img,{...c,ref:a,src:i}):null});$j.displayName=Qj;var Yj="AvatarFallback",Gj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...s}=n,c=qj(Yj,r),[h,m]=v.useState(i===void 0);return v.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>m(!0),i);return()=>window.clearTimeout(p)}},[i]),h&&c.imageLoadingStatus!=="loaded"?u.jsx(oe.span,{...s,ref:a}):null});Gj.displayName=Yj;function eb(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function y5(n,{referrerPolicy:a,crossOrigin:r}){const i=m5(),s=v.useRef(null),c=i?(s.current||(s.current=new window.Image),s.current):null,[h,m]=v.useState(()=>eb(c,n));return lt(()=>{m(eb(c,n))},[c,n]),lt(()=>{const p=x=>()=>{m(x)};if(!c)return;const g=p("loaded"),y=p("error");return c.addEventListener("load",g),c.addEventListener("error",y),a&&(c.referrerPolicy=a),typeof r=="string"&&(c.crossOrigin=r),()=>{c.removeEventListener("load",g),c.removeEventListener("error",y)}},[c,r,a]),h}var x5=Bj,b5=$j,w5=Gj;x5.displayName;b5.displayName;w5.displayName;e3.displayName;t3.displayName;F4.displayName;P4.displayName;J4.displayName;I4.displayName;Z4.displayName;W4.displayName;pe("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","rounded-2xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");const S5="";async function ut(n,a){const r=await fetch(`${S5}${n}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const i=await r.text();throw new Error(i||`Request failed: ${r.status}`)}return await r.json()}async function Op(){return await ut("/api/config")}async function j5(n,a){return await ut(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function E5(n){return await ut(`/api/db/${n}/tables`)}async function N5(n,a,r,i){return await ut(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function C5(n){return await ut(`/api/db/${n}/schema`)}async function _5(n,a=20,r=0,i=""){const s=new URLSearchParams({limit:String(a),offset:String(r)});return i&&s.set("search",i),await ut(`/api/state/${n}/entries?${s.toString()}`)}async function T5(n){return await ut(`/api/queue/${n}/metrics`)}async function R5(n,a=10){return await ut(`/api/queue/${n}/messages?limit=${a}`)}async function M5(n,a=20,r=0,i,s){const c=new URLSearchParams({limit:String(a),offset:String(r)});return i&&c.set("status",i),s&&c.set("since",s),await ut(`/api/workflow/${n}/executions?${c.toString()}`)}async function A5(n,a){return await ut(`/api/workflow/${n}/executions/${a}`)}async function k5(n,a=20,r=0){return await ut(`/api/timer/${n}/entries?limit=${a}&offset=${r}`)}async function D5(n){return await ut(`/api/timer/${n}/metrics`)}async function O5(n,a=20){return await ut(`/api/timer/${n}/executions?limit=${a}`)}async function z5(n,a=20){return await ut(`/api/cron/${n}/executions?limit=${a}`)}async function L5(n){return await ut(`/api/cron/${n}/trigger`,{method:"POST"})}async function U5(){return await ut("/api/auth/tables")}async function H5(n,a,r){return await ut(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function q5(){return await ut("/api/auth/schema")}async function B5(n){return await ut("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function Q5(){return await ut("/api/auth/settings")}async function $5(n){return await ut("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}async function Y5(n,a=20,r=0){return await ut(`/api/fs/${n}/entries?limit=${a}&offset=${r}`)}function Ol(){return u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Hn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function qa({children:n}){return u.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Xi({id:n}){return u.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Un({title:n,value:a,icon:r,isLoading:i}){return u.jsxs(wt,{children:[u.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Dt,{className:"text-sm font-medium",children:n}),r]}),u.jsx(St,{children:u.jsx("div",{className:"text-2xl font-bold",children:i?u.jsx(Hn,{className:"h-5 w-5 animate-spin"}):a})})]})}function Fi({title:n,children:a}){return u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:n}),a]})}const G5={PENDING:{variant:"default",icon:u.jsx(vr,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:u.jsx(Hn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:u.jsx(_l,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(zi,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:u.jsx(L_,{className:"h-3 w-3"}),label:"Cancelled"}},V5={PENDING:{variant:"default",icon:u.jsx(vr,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:u.jsx(Hn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:u.jsx(_l,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:u.jsx(zi,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:u.jsx(X_,{className:"h-3 w-3"}),label:"Dead Letter"}};function zp({status:n}){const a=G5[n];return a?u.jsx(Ci,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ci,{children:n})}const K5={PENDING:{variant:"default",icon:u.jsx(vr,{className:"h-3 w-3"}),label:"Pending"},FIRED:{variant:"success",icon:u.jsx(_l,{className:"h-3 w-3"}),label:"Fired"},COMPLETED:{variant:"success",icon:u.jsx(_l,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(zi,{className:"h-3 w-3"}),label:"Failed"}};function Vj({status:n}){const a=K5[n];return a?u.jsx(Ci,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ci,{children:n})}function X5({status:n}){const a=V5[n];return a?u.jsx(Ci,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ci,{children:n})}function F5(n){if(n<1e3)return`${n}ms`;const a=Math.floor(n/1e3);if(a<60)return`${a}s`;const r=Math.floor(a/60),i=a%60;if(r<60)return i===0?`${r}m`:`${r}m ${i}s`;const s=Math.floor(r/60),c=r%60;if(s<24)return c===0?`${s}h`:`${s}h ${c}m`;const h=Math.floor(s/24),m=s%24;return m===0?`${h}d`:`${h}d ${m}h`}function Z5({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[u.jsx(Un,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(vr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Un,{title:"Fired",value:(n==null?void 0:n.fired)??0,icon:u.jsx(_l,{className:"h-4 w-4 text-green-500"}),isLoading:a})]})}function P5({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Scheduled Timers"}),u.jsx(Zt,{children:"Timer entries scheduled by your worker (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Scheduled Time"}),u.jsx(De,{children:"Interval"}),u.jsx(De,{children:"Payload"}),u.jsx(De,{children:"Created"})]})}),u.jsx(Ha,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:r.id})}),u.jsx(Oe,{children:u.jsx(Vj,{status:r.status})}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Oe,{className:"text-xs",children:r.intervalMs!=null?u.jsxs("span",{className:"inline-flex items-center gap-1",children:[u.jsx(mT,{className:"h-3 w-3"}),F5(r.intervalMs)]}):"-"}),u.jsx(Oe,{className:"max-w-[200px] truncate font-mono text-xs",children:r.payload!=null?JSON.stringify(r.payload):"-"}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(qa,{children:"No timers scheduled"})})]})}function J5({executions:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Execution History"}),u.jsx(Zt,{children:"Recent timer handler executions"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"Timer ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Scheduled Time"}),u.jsx(De,{children:"Duration"}),u.jsx(De,{children:"Error"}),u.jsx(De,{children:"Executed"})]})}),u.jsx(Ha,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:r.timerId})}),u.jsx(Oe,{children:u.jsx(Vj,{status:r.status})}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Oe,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Oe,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(qa,{children:"No timer executions yet"})})]})}function I5(){const{binding:n}=Ml(),a=n||"",{data:r,isLoading:i}=vt({queryKey:["timerMetrics",a],queryFn:()=>D5(a),enabled:!!a,refetchInterval:5e3}),{data:s,isLoading:c}=vt({queryKey:["timerEntries",a],queryFn:()=>k5(a,20),enabled:!!a,refetchInterval:5e3}),{data:h,isLoading:m}=vt({queryKey:["timerExecutions",a],queryFn:()=>O5(a,20),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`Timers: ${a}`}),u.jsx(Z5,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(P5,{entries:s==null?void 0:s.entries,isLoading:c}),u.jsx(J5,{executions:h==null?void 0:h.executions,isLoading:m})]})})}function W5({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?u.jsx(Xb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Vb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function ez({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(Cj,{open:r,onOpenChange:i,children:[u.jsxs(_j,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx(Gb,{className:"h-4 w-4 shrink-0"}):u.jsx(Oi,{className:"h-4 w-4 shrink-0"}),u.jsx(Cc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(Tj,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>u.jsx(W5,{column:s,onInsertText:a},s.name))})})]})}function tz({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=vt({queryKey:["auth-schema"],queryFn:q5,staleTime:3e4}),s=(a==null?void 0:a.tables)||[];return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),u.jsx(Je,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:u.jsx(hs,{className:pe("h-4 w-4",r&&"animate-spin")})})]}),u.jsx(_w,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:r?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):s.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:s.map(c=>u.jsx(ez,{table:c,onInsertText:n},c.name))})})}),u.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function nz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function az(n){if(n<60)return`${n} seconds`;if(n<3600)return`${Math.floor(n/60)} minutes`;if(n<86400){const r=Math.floor(n/3600);return`${r} hour${r>1?"s":""}`}const a=Math.floor(n/86400);return`${a} day${a>1?"s":""}`}function lz({settings:n,onUpdate:a,isUpdating:r}){const[i,s]=v.useState(n.sessionTokenExpiry.toString()),[c,h]=v.useState(n.allowSignups),[m,p]=v.useState(n.requireEmailVerification),[g,y]=v.useState(n.requireName),x=()=>{a({sessionTokenExpiry:parseInt(i,10),allowSignups:c,requireEmailVerification:m,requireName:g})},w=parseInt(i,10)!==n.sessionTokenExpiry||c!==n.allowSignups||m!==n.requireEmailVerification||g!==n.requireName;return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Po,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),u.jsx(hw,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:j=>s(j.target.value)}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",az(parseInt(i,10)||0)," (min: 1 hour, max: 90 days)"]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Po,{children:"Allow Signups"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),u.jsx(zh,{checked:c,onCheckedChange:h})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Po,{children:"Require Email Verification"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Users must verify their email before accessing the app"})]}),u.jsx(zh,{checked:m,onCheckedChange:p})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Po,{children:"Require Name"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),u.jsx(zh,{checked:g,onCheckedChange:y})]})]}),u.jsx("div",{className:"flex justify-end",children:u.jsx(Je,{onClick:x,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function rz(){var ie,ae,re,z,J,G;const n=Sc(),[a,r]=v.useState("settings"),[i,s]=v.useState(""),[c,h]=v.useState(null),[m,p]=v.useState(null),[g,y]=v.useState(null),[x,w]=v.useState(0),j=50,S=((ae=(ie=vt({queryKey:["config"],queryFn:Op,staleTime:6e4}).data)==null?void 0:ie.auth)==null?void 0:ae.binding)||"AUTH",C=vt({queryKey:["auth-settings"],queryFn:Q5,staleTime:0}),_=lc({mutationFn:$5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),T=X=>{_.mutate(X)},R=v.useCallback(X=>{s(de=>de+X)},[]),D=lc({mutationFn:X=>B5(X),onSuccess:X=>{h(X),p(null)},onError:X=>{p(X instanceof Error?X.message:"Failed to execute query"),h(null)}}),U=()=>{i.trim()&&D.mutate(i)},K=vt({queryKey:["auth-tables"],queryFn:U5,staleTime:0,gcTime:0}),q=vt({queryKey:["auth-tableData",g,j,x],queryFn:()=>H5(g,j,x),staleTime:0,gcTime:0,enabled:!!g}),H=((re=K.data)==null?void 0:re.tables)||[],Y=((z=q.data)==null?void 0:z.data)||[],ee=((J=q.data)==null?void 0:J.columns)||[],ue=((G=q.data)==null?void 0:G.total)||0,ce=X=>{y(X),w(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",S]}),u.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[u.jsx(Kb,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"This is the Ploy Auth database containing user accounts and refresh tokens. Password hashes are hidden for security. Only SELECT queries are allowed."})]})]}),u.jsxs(cj,{value:a,onValueChange:r,children:[u.jsxs(dj,{children:[u.jsxs(Io,{value:"settings",children:[u.jsx(yT,{className:"mr-2 h-4 w-4"}),"Settings"]}),u.jsx(Io,{value:"query",children:"SQL Editor"}),u.jsx(Io,{value:"tables",children:"Tables"})]}),u.jsx(Wo,{value:"settings",className:"mt-4",children:u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Auth Settings"}),u.jsx(Zt,{children:"Configure authentication settings for local development."})]}),u.jsx(St,{children:C.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Hn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?u.jsx(lz,{settings:C.data,onUpdate:T,isUpdating:_.isPending}):u.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),u.jsx(Wo,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"SQL Query"}),u.jsx(Zt,{children:"Execute read-only SELECT queries against auth tables"})]}),u.jsxs(St,{className:"space-y-4",children:[u.jsx("textarea",{value:i,onChange:X=>s(X.target.value),onKeyDown:X=>{(X.metaKey||X.ctrlKey)&&X.key==="Enter"&&U()},placeholder:"SELECT * FROM auth_users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),u.jsxs(Je,{onClick:U,disabled:D.isPending||!i.trim(),children:[u.jsx(zm,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&u.jsx(wt,{className:"border-destructive/50",children:u.jsx(St,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),c&&u.jsx(ow,{results:c.results,meta:c.meta,error:c.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(tz,{onInsertText:R})})]})}),u.jsx(Wo,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(wt,{className:"md:col-span-1",children:[u.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Dt,{className:"text-base",children:"Tables"}),u.jsx(Je,{variant:"ghost",size:"icon",onClick:()=>K.refetch(),className:"h-8 w-8",children:u.jsx(hs,{className:"h-4 w-4"})})]}),u.jsx(St,{children:K.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):H.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:H.map(X=>u.jsxs("button",{onClick:()=>ce(X.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${g===X.name?"bg-muted font-medium":""}`,children:[u.jsx(Cc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:X.name})]},X.name))})})]}),u.jsxs(wt,{className:"md:col-span-3",children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:g||"Select a Table"}),g&&u.jsxs(Zt,{children:[ue," total rows"]})]}),u.jsx(St,{children:g?q.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Hn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):Y.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsx(Ct,{children:ee.map(X=>u.jsx(De,{className:"font-mono",children:X},X))})}),u.jsx(Ha,{children:Y.map((X,de)=>u.jsx(Ct,{children:ee.map(A=>u.jsx(Oe,{className:"font-mono text-sm",children:nz(X[A])},A))},de))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",x+1," -"," ",Math.min(x+j,ue)," of ",ue]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Je,{variant:"outline",size:"sm",disabled:x===0,onClick:()=>w(Math.max(0,x-j)),children:[u.jsx(Nc,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Je,{variant:"outline",size:"sm",disabled:x+j>=ue,onClick:()=>w(x+j),children:["Next",u.jsx(Oi,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function iz({executions:n,cronExpression:a,isLoading:r}){const i=(n==null?void 0:n.filter(c=>c.status==="COMPLETED").length)??0,s=(n==null?void 0:n.filter(c=>c.status==="FAILED").length)??0;return u.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[u.jsx(Un,{title:"Schedule",value:a??"-",icon:u.jsx(vr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:r}),u.jsx(Un,{title:"Completed",value:i,icon:u.jsx(_l,{className:"h-4 w-4 text-green-500"}),isLoading:r}),u.jsx(Un,{title:"Failed",value:s,icon:u.jsx(zi,{className:"h-4 w-4 text-red-500"}),isLoading:r})]})}function oz({executions:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Execution History"}),u.jsx(Zt,{children:"Recent cron handler executions (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Triggered"}),u.jsx(De,{children:"Duration"}),u.jsx(De,{children:"Error"}),u.jsx(De,{children:"Completed"})]})}),u.jsx(Ha,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:r.id})}),u.jsx(Oe,{children:u.jsx(zp,{status:r.status})}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.triggeredAt})}),u.jsx(Oe,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Oe,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Oe,{children:r.completedAt?u.jsx(cn,{timestamp:r.completedAt}):"-"})]},r.id))})]}):u.jsx(qa,{children:"No cron executions yet"})})]})}function sz(){const{binding:n}=Ml(),a=n||"",r=Sc(),{data:i,isLoading:s}=vt({queryKey:["cronExecutions",a],queryFn:()=>z5(a,20),enabled:!!a,refetchInterval:5e3}),c=lc({mutationFn:()=>L5(a),onSettled:()=>{r.invalidateQueries({queryKey:["cronExecutions",a]})}});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`Cron: ${a}`,children:u.jsxs(Je,{size:"sm",disabled:!a||c.isPending,onClick:()=>{c.mutate()},children:[u.jsx(zm,{className:"h-4 w-4 mr-1"}),c.isPending?"Running...":"Run now"]})}),u.jsx(iz,{executions:i==null?void 0:i.executions,cronExpression:i==null?void 0:i.cronExpression,isLoading:s}),u.jsx(oz,{executions:i==null?void 0:i.executions,isLoading:s})]})})}const er=20;function uz(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:n<1024*1024*1024?`${(n/(1024*1024)).toFixed(1)} MB`:`${(n/(1024*1024*1024)).toFixed(1)} GB`}function cz({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Files"}),u.jsx(Zt,{children:"Stored files with metadata (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"Key"}),u.jsx(De,{children:"Size"}),u.jsx(De,{children:"Content Type"}),u.jsx(De,{children:"Created At"})]})}),u.jsx(Ha,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{className:"font-mono text-sm",children:r.key}),u.jsx(Oe,{className:"text-sm text-muted-foreground",children:uz(r.size)}),u.jsx(Oe,{className:"font-mono text-xs text-muted-foreground",children:r.contentType}),u.jsx(Oe,{className:"text-sm text-muted-foreground",children:r.createdAt})]},r.key))})]}):u.jsx(qa,{children:"No files in this storage"})})]})}function dz(){const{binding:n}=Ml(),a=n||"",[r,i]=v.useState(0),{data:s,isLoading:c}=vt({queryKey:["fileStorageEntries",a,r],queryFn:()=>Y5(a,er,r),enabled:!!a,refetchInterval:5e3}),h=(s==null?void 0:s.total)??0,m=Math.floor(r/er)+1,p=Math.ceil(h/er);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`File Storage: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:u.jsx(Un,{title:"Total Files",value:h})}),u.jsx(cz,{entries:s==null?void 0:s.entries,isLoading:c}),h>er&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Je,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-er)),disabled:r===0,children:[u.jsx(Nc,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Je,{variant:"outline",size:"sm",onClick:()=>i(r+er),disabled:r+er>=h,children:["Next",u.jsx(Oi,{className:"h-4 w-4"})]})]})]})]})})}const Fu=20;function fz({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"State Entries"}),u.jsx(Zt,{children:"Key-value entries in this state store (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"Key"}),u.jsx(De,{children:"Value"})]})}),u.jsx(Ha,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{className:"font-mono text-sm",children:r.key}),u.jsx(Oe,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value})]},r.key))})]}):u.jsx(qa,{children:"No entries in this state store"})})]})}function hz(){const{binding:n}=Ml(),a=n||"",[r,i]=v.useState(0),[s,c]=v.useState(""),[h,m]=v.useState(""),{data:p,isLoading:g}=vt({queryKey:["stateEntries",a,r,s],queryFn:()=>_5(a,Fu,r,s),enabled:!!a,refetchInterval:5e3}),y=(p==null?void 0:p.hasMore)??!1,x=Math.floor(r/Fu)+1,w=j=>{j.preventDefault(),c(h),i(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`State: ${a}`}),u.jsxs("form",{onSubmit:w,className:"flex gap-2",children:[u.jsx(hw,{placeholder:"Search by key...",value:h,onChange:j=>m(j.target.value),className:"max-w-sm"}),u.jsxs(Je,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(vT,{className:"h-4 w-4 mr-1"}),"Search"]}),s&&u.jsx(Je,{type:"button",variant:"ghost",size:"sm",onClick:()=>{c(""),m(""),i(0)},children:"Clear"})]}),u.jsx(fz,{entries:p==null?void 0:p.entries,isLoading:g}),(r>0||y)&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",x]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Je,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Fu)),disabled:r===0,children:[u.jsx(Nc,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Je,{variant:"outline",size:"sm",onClick:()=>i(r+Fu),disabled:!y,children:["Next",u.jsx(Oi,{className:"h-4 w-4"})]})]})]})]})})}function mz({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?u.jsx(Xb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Vb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function pz({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(Cj,{open:r,onOpenChange:i,children:[u.jsxs(_j,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx(Gb,{className:"h-4 w-4 shrink-0"}):u.jsx(Oi,{className:"h-4 w-4 shrink-0"}),u.jsx(Cc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(Tj,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>u.jsx(mz,{column:s,onInsertText:a},s.name))})})]})}function vz({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:s}=vt({queryKey:["schema",n],queryFn:()=>C5(n),staleTime:3e4}),h=((r==null?void 0:r.tables)||[]).filter(m=>!m.name.startsWith("_litestream_"));return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),u.jsx(Je,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(),disabled:i,children:u.jsx(hs,{className:pe("h-4 w-4",i&&"animate-spin")})})]}),u.jsx(_w,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:i?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):h.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:h.map(m=>u.jsx(pz,{table:m,onInsertText:a},m.name))})})}),u.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function gz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function yz(){var Y,ee,ue,ce;const{binding:n}=Ml(),a=n||"",[r,i]=v.useState("query"),[s,c]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[y,x]=v.useState(null),[w,j]=v.useState(0),E=50,S=v.useCallback(ie=>{c(ae=>ae+ie)},[]),C=lc({mutationFn:ie=>j5(a,ie),onSuccess:ie=>{m(ie),g(null)},onError:ie=>{g(ie instanceof Error?ie.message:"Failed to execute query"),m(null)}}),_=()=>{s.trim()&&C.mutate(s)},T=vt({queryKey:["tables",a],queryFn:()=>E5(a),staleTime:0,gcTime:0,enabled:!!a}),R=vt({queryKey:["tableData",a,y,E,w],queryFn:()=>N5(a,y,E,w),staleTime:0,gcTime:0,enabled:!!a&&!!y}),D=((Y=T.data)==null?void 0:Y.tables)||[],U=((ee=R.data)==null?void 0:ee.data)||[],K=((ue=R.data)==null?void 0:ue.columns)||[],q=((ce=R.data)==null?void 0:ce.total)||0,H=ie=>{x(ie),j(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",a]}),u.jsxs(cj,{value:r,onValueChange:i,children:[u.jsxs(dj,{children:[u.jsx(Io,{value:"query",children:"SQL Editor"}),u.jsx(Io,{value:"tables",children:"Tables"})]}),u.jsx(Wo,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"SQL Query"}),u.jsx(Zt,{children:"Execute SQL queries against your database"})]}),u.jsxs(St,{className:"space-y-4",children:[u.jsx("textarea",{value:s,onChange:ie=>c(ie.target.value),onKeyDown:ie=>{(ie.metaKey||ie.ctrlKey)&&ie.key==="Enter"&&_()},placeholder:"SELECT * FROM users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),u.jsxs(Je,{onClick:_,disabled:C.isPending||!s.trim(),children:[u.jsx(zm,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&u.jsx(wt,{className:"border-destructive/50",children:u.jsx(St,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&u.jsx(ow,{results:h.results,meta:h.meta,error:h.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(vz,{bindingName:a,onInsertText:S})})]})}),u.jsx(Wo,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(wt,{className:"md:col-span-1",children:[u.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Dt,{className:"text-base",children:"Tables"}),u.jsx(Je,{variant:"ghost",size:"icon",onClick:()=>T.refetch(),className:"h-8 w-8",children:u.jsx(hs,{className:"h-4 w-4"})})]}),u.jsx(St,{children:T.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):D.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:D.map(ie=>u.jsxs("button",{onClick:()=>H(ie.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${y===ie.name?"bg-muted font-medium":""}`,children:[u.jsx(Cc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:ie.name})]},ie.name))})})]}),u.jsxs(wt,{className:"md:col-span-3",children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:y||"Select a Table"}),y&&u.jsxs(Zt,{children:[q," total rows"]})]}),u.jsx(St,{children:y?R.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Hn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):U.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsx(Ct,{children:K.map(ie=>u.jsx(De,{className:"font-mono",children:ie},ie))})}),u.jsx(Ha,{children:U.map((ie,ae)=>u.jsx(Ct,{children:K.map(re=>u.jsx(Oe,{className:"font-mono text-sm",children:gz(ie[re])},re))},ae))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",w+1," -"," ",Math.min(w+E,q)," of ",q]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Je,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>j(Math.max(0,w-E)),children:[u.jsx(Nc,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Je,{variant:"outline",size:"sm",disabled:w+E>=q,onClick:()=>j(w+E),children:["Next",u.jsx(Oi,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function xz({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[u.jsx(Un,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(vr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Un,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:u.jsx(Hn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Un,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:u.jsx(_l,{className:"h-4 w-4 text-green-500"}),isLoading:a}),u.jsx(Un,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:u.jsx(zi,{className:"h-4 w-4 text-red-500"}),isLoading:a}),u.jsx(Un,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:u.jsx(cT,{className:"h-4 w-4 text-orange-500"}),isLoading:a})]})}function bz({messages:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Recent Messages"}),u.jsx(Zt,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Payload"}),u.jsx(De,{children:"Attempt"}),u.jsx(De,{children:"Created"})]})}),u.jsx(Ha,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:r.id})}),u.jsx(Oe,{children:u.jsx(X5,{status:r.status})}),u.jsx(Oe,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),u.jsx(Oe,{children:r.attempt}),u.jsx(Oe,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(qa,{children:"No messages in this queue"})})]})}function wz(){const{binding:n}=Ml(),a=n||"",{data:r,isLoading:i}=vt({queryKey:["queueMetrics",a],queryFn:()=>T5(a),enabled:!!a,refetchInterval:5e3}),{data:s,isLoading:c}=vt({queryKey:["queueMessages",a],queryFn:()=>R5(a,10),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`Queue: ${a}`}),u.jsx(xz,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(bz,{messages:s==null?void 0:s.messages,isLoading:c})]})})}function Jo(n){return n!=null}function Sz(n,a){const r=[];n&&Jo(n.input)&&r.push("execution-input"),n&&Jo(n.output)&&r.push("execution-output");for(const i of a)Jo(i.input)&&r.push(`${i.id}-input`),Jo(i.output)&&r.push(`${i.id}-output`);return r}function wc({id:n,label:a,value:r,isOpen:i,onToggle:s}){return Jo(r)?u.jsxs("details",{className:"mt-2",open:i,onToggle:c=>{s(n,c.currentTarget.open)},children:[u.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:a}),u.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r,null,2)})]}):null}function jz({status:n}){switch(n){case"COMPLETED":return u.jsx(_l,{className:"h-5 w-5 text-green-500"});case"RUNNING":return u.jsx(Hn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return u.jsx(zi,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return u.jsx(vr,{className:"h-5 w-5 text-gray-400"})}}function Ez(n){switch(n){case"COMPLETED":return"bg-green-500";case"RUNNING":return"bg-blue-500";case"FAILED":return"bg-red-500";case"PENDING":default:return"bg-gray-300 dark:bg-gray-600"}}function Nz(n){return n.attempt!==null&&n.attempt!==void 0&&n.maxRetries!==null&&n.maxRetries!==void 0&&(n.attempt>1||n.status!=="COMPLETED")}function Cz({steps:n,openIoSectionIds:a,onToggleIoSection:r}){if(n.length===0)return u.jsx(qa,{children:"No steps recorded for this execution"});const i=n.reduce((s,c)=>s+(c.durationMs||0),0);return u.jsxs("div",{className:"space-y-4",children:[i>0&&u.jsxs("div",{className:"mb-6",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[u.jsx("span",{children:"Total Duration"}),u.jsx("span",{children:si(i)})]}),u.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((s,c)=>{const h=s.durationMs?s.durationMs/i*100:0;return u.jsx("div",{className:pe(Ez(s.status),"h-full transition-all",c>0&&"border-l border-background"),style:{width:`${h}%`},title:`${s.stepName}: ${si(s.durationMs)}`},s.id)})})]}),u.jsx("div",{className:"relative",children:n.map((s,c)=>{const h=Nz(s);return u.jsxs("div",{className:"relative pb-6 last:pb-0",children:[c<n.length-1&&u.jsx("div",{className:pe("absolute left-[9px] top-6 w-0.5 h-full -ml-px",s.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),u.jsxs("div",{className:"flex gap-4",children:[u.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:u.jsx(jz,{status:s.status})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-medium",children:s.stepName}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",s.stepIndex+1,")"]}),h&&u.jsxs("span",{className:pe("inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded-full font-mono",s.attempt!==null&&s.attempt!==void 0&&s.attempt>1?s.status==="FAILED"?"bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-300":"bg-yellow-100 text-yellow-700 dark:bg-yellow-950 dark:text-yellow-300":"bg-muted text-muted-foreground"),children:[u.jsx(hs,{className:"h-3 w-3"}),s.attempt,"/",(s.maxRetries??0)+1]})]}),u.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:si(s.durationMs)})]}),s.errorMessage&&u.jsx("div",{className:"mt-2 p-2 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:s.errorMessage}),s.retryAttempts&&s.retryAttempts.length>0&&u.jsxs("div",{className:"mt-2 space-y-2",children:[u.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:"Previous failures"}),s.retryAttempts.map(m=>u.jsxs("div",{className:"rounded border border-yellow-200 bg-yellow-50 px-3 py-2 dark:border-yellow-900 dark:bg-yellow-950/40",children:[u.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2 text-xs text-yellow-800 dark:text-yellow-200",children:[u.jsxs("span",{className:"font-medium",children:["Attempt ",m.attempt," failed"]}),u.jsx("span",{className:"font-mono",children:si(m.durationMs??null)})]}),u.jsx("pre",{className:"whitespace-pre-wrap text-xs font-mono text-yellow-900 dark:text-yellow-100",children:m.errorMessage})]},`${s.id}-${m.attempt}`))]}),u.jsx(wc,{id:`${s.id}-input`,label:"View input",value:s.input,isOpen:a.has(`${s.id}-input`),onToggle:r}),u.jsx(wc,{id:`${s.id}-output`,label:"View output",value:s.output,isOpen:a.has(`${s.id}-output`),onToggle:r}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:u.jsx(cn,{timestamp:s.createdAt})})]})]})]},s.id)})})]})}function _z(){const{binding:n,executionId:a}=Ml(),r=n||"",i=a||"",{data:s,isLoading:c}=vt({queryKey:["workflowExecution",r,i],queryFn:()=>A5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=s==null?void 0:s.execution,m=(s==null?void 0:s.steps)||[],p=Sz(h??null,m),[g,y]=v.useState(()=>new Set),x=p.length>0&&p.every(E=>g.has(E));function w(E,S){y(C=>{const _=new Set(C);return S?_.add(E):_.delete(E),_})}function j(){y(()=>x?new Set:new Set(p))}return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(sn,{to:`/workflows/${r}`,children:u.jsxs(Je,{variant:"ghost",size:"sm",children:[u.jsx(O_,{className:"mr-2 h-4 w-4"}),"Back"]})}),u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",u.jsx(Xi,{id:i})]})]}),p.length>0&&u.jsxs(Je,{variant:"ghost",size:"sm",onClick:j,children:[x?u.jsx(Y_,{className:"h-4 w-4"}):u.jsx(V_,{className:"h-4 w-4"}),x?"Collapse All I/O":"Expand All I/O"]})]}),c?u.jsx(Ol,{}):h?u.jsxs(u.Fragment,{children:[u.jsxs(wt,{children:[u.jsx(kt,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx(Dt,{children:"Execution Details"}),u.jsx(Zt,{children:h.startedAt?u.jsxs(u.Fragment,{children:["Started ",u.jsx(cn,{timestamp:h.startedAt})]}):"Not started yet"})]}),u.jsx(zp,{status:h.status})]})}),u.jsxs(St,{children:[u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),u.jsx("p",{className:"font-mono",children:si(h.durationMs)})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),u.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(cn,{timestamp:h.createdAt})})]}),h.completedAt&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(cn,{timestamp:h.completedAt})})]})]}),h.errorMessage&&u.jsx("div",{className:"mt-4 p-3 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:h.errorMessage}),u.jsxs("div",{className:"mt-4 grid gap-3 md:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Input"}),u.jsx(wc,{id:"execution-input",label:"View execution input",value:h.input,isOpen:g.has("execution-input"),onToggle:w})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Output"}),u.jsx(wc,{id:"execution-output",label:"View execution output",value:h.output,isOpen:g.has("execution-output"),onToggle:w})]})]})]})]}),u.jsxs(wt,{children:[u.jsx(kt,{children:u.jsxs("div",{children:[u.jsx(Dt,{children:"Steps"}),u.jsx(Zt,{children:"Workflow step execution timeline"})]})}),u.jsx(St,{children:u.jsx(Cz,{steps:m,openIoSectionIds:g,onToggleIoSection:w})})]})]}):u.jsx(qa,{children:"Execution not found"})]})})}const Uh=20,Tz=[{value:"",label:"All statuses"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}],Rz=[{value:"",label:"All time"},{value:"1h",label:"Last hour"},{value:"24h",label:"Last 24 hours"},{value:"7d",label:"Last 7 days"},{value:"30d",label:"Last 30 days"}];function Mz({executions:n,isLoading:a,bindingName:r}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Recent Executions"}),u.jsx(Zt,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Ol,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(De,{children:"ID"}),u.jsx(De,{children:"Status"}),u.jsx(De,{children:"Steps"}),u.jsx(De,{children:"Duration"}),u.jsx(De,{children:"Started"}),u.jsx(De,{})]})}),u.jsx(Ha,{children:n.map(i=>u.jsxs(Ct,{children:[u.jsx(Oe,{children:u.jsx(Xi,{id:i.id})}),u.jsx(Oe,{children:u.jsx(zp,{status:i.status})}),u.jsx(Oe,{children:u.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),u.jsx(Oe,{className:"text-sm",children:si(i.durationMs)}),u.jsx(Oe,{children:i.startedAt?u.jsx(cn,{timestamp:i.startedAt}):"-"}),u.jsx(Oe,{children:u.jsx(sn,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):u.jsx(qa,{children:"No executions for this workflow"})})]})}function Az(){const{binding:n}=Ml(),a=n||"",[r,i]=v.useState(""),[s,c]=v.useState(""),[h,m]=v.useState(0),p=h*Uh,{data:g,isLoading:y}=vt({queryKey:["workflowExecutions",a,r,s,h],queryFn:()=>M5(a,Uh,p,r||void 0,s||void 0),enabled:!!a,refetchInterval:5e3}),x=g?Math.ceil(g.total/Uh):0,w=()=>m(0);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Fi,{title:`Workflow: ${a}`}),u.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[u.jsx("select",{value:r,onChange:j=>{i(j.target.value),w()},className:"text-sm border rounded px-2 py-1 bg-background",children:Tz.map(j=>u.jsx("option",{value:j.value,children:j.label},j.value))}),u.jsx("select",{value:s,onChange:j=>{c(j.target.value),w()},className:"text-sm border rounded px-2 py-1 bg-background",children:Rz.map(j=>u.jsx("option",{value:j.value,children:j.label},j.value))}),g&&u.jsxs("span",{className:"text-sm text-muted-foreground",children:[g.total," total"]})]}),u.jsx(Mz,{executions:g==null?void 0:g.executions,isLoading:y,bindingName:a}),x>1&&u.jsxs("div",{className:"flex items-center justify-between pt-2",children:[u.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:h===0,onClick:()=>m(j=>j-1),children:"Previous"}),u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",h+1," of ",x]}),u.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:h>=x-1,onClick:()=>m(j=>j+1),children:"Next"})]})]})})}function kz(){const n=za(),{data:a,isLoading:r}=vt({queryKey:["config"],queryFn:Op,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],s=a!=null&&a.queue?Object.keys(a.queue):[],c=a!=null&&a.state?Object.keys(a.state):[],h=a!=null&&a.fs?Object.keys(a.fs):[],m=a!=null&&a.workflow?Object.keys(a.workflow):[],p=a!=null&&a.cron?Object.keys(a.cron):[],g=a!=null&&a.timer?Object.keys(a.timer):[];return u.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[u.jsx("div",{className:"flex h-14 items-center border-b px-4",children:u.jsxs(sn,{to:"/",className:"flex items-center gap-2 font-semibold",children:[u.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),u.jsx("span",{children:"Ploy Dev"})]})}),u.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Hn,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):u.jsxs("div",{className:"space-y-6",children:[i.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),u.jsx("div",{className:"space-y-1",children:i.map(y=>{const x=n.pathname===`/db/${y}`;return u.jsx(sn,{to:`/db/${y}`,children:u.jsxs(Je,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(W_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),(a==null?void 0:a.auth)&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),u.jsx("div",{className:"space-y-1",children:u.jsx(sn,{to:"/auth",children:u.jsxs(Je,{variant:n.pathname==="/auth"?"secondary":"ghost",className:pe("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[u.jsx(bT,{className:"mr-2 h-4 w-4"}),u.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),u.jsx(Kb,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),s.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),u.jsx("div",{className:"space-y-1",children:s.map(y=>{const x=n.pathname===`/queues/${y}`;return u.jsx(sn,{to:`/queues/${y}`,children:u.jsxs(Je,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(rT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),c.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"State"}),u.jsx("div",{className:"space-y-1",children:c.map(y=>{const x=n.pathname===`/state/${y}`;return u.jsx(sn,{to:`/state/${y}`,children:u.jsxs(Je,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(k_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),h.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"File Storage"}),u.jsx("div",{className:"space-y-1",children:h.map(y=>{const x=n.pathname===`/fs/${y}`;return u.jsx(sn,{to:`/fs/${y}`,children:u.jsxs(Je,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(tT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),m.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),u.jsx("div",{className:"space-y-1",children:m.map(y=>{const x=n.pathname.startsWith(`/workflows/${y}`);return u.jsx(sn,{to:`/workflows/${y}`,children:u.jsxs(Je,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(aT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),p.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cron"}),u.jsx("div",{className:"space-y-1",children:p.map(y=>{const x=n.pathname===`/cron/${y}`;return u.jsx(sn,{to:`/cron/${y}`,children:u.jsxs(Je,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(jT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),g.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Timers"}),u.jsx("div",{className:"space-y-1",children:g.map(y=>{const x=n.pathname===`/timers/${y}`;return u.jsx(sn,{to:`/timers/${y}`,children:u.jsxs(Je,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(H_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),i.length===0&&s.length===0&&c.length===0&&h.length===0&&m.length===0&&p.length===0&&g.length===0&&!(a!=null&&a.auth)&&u.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function Dz(){const{data:n,isLoading:a}=vt({queryKey:["config"],queryFn:Op,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],s=n.state?Object.keys(n.state):[],c=n.fs?Object.keys(n.fs):[],h=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return u.jsx(fl,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return u.jsx(fl,{to:"/auth",replace:!0});if(i.length>0)return u.jsx(fl,{to:`/queues/${i[0]}`,replace:!0});if(s.length>0)return u.jsx(fl,{to:`/state/${s[0]}`,replace:!0});if(c.length>0)return u.jsx(fl,{to:`/fs/${c[0]}`,replace:!0});if(h.length>0)return u.jsx(fl,{to:`/workflows/${h[0]}`,replace:!0});const m=n.cron?Object.keys(n.cron):[];if(m.length>0)return u.jsx(fl,{to:`/cron/${m[0]}`,replace:!0});const p=n.timer?Object.keys(n.timer):[];if(p.length>0)return u.jsx(fl,{to:`/timers/${p[0]}`,replace:!0})}return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[u.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),a?u.jsx(Hn,{className:"h-6 w-6 animate-spin text-muted-foreground"}):u.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function Oz(){return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(kz,{}),u.jsx("main",{className:"pl-64",children:u.jsx("div",{className:"container mx-auto px-6 py-4",children:u.jsxs(XC,{children:[u.jsx(kn,{path:"/",element:u.jsx(Dz,{})}),u.jsx(kn,{path:"/db/:binding",element:u.jsx(yz,{})}),u.jsx(kn,{path:"/auth",element:u.jsx(rz,{})}),u.jsx(kn,{path:"/queues/:binding",element:u.jsx(wz,{})}),u.jsx(kn,{path:"/state/:binding",element:u.jsx(hz,{})}),u.jsx(kn,{path:"/fs/:binding",element:u.jsx(dz,{})}),u.jsx(kn,{path:"/cron/:binding",element:u.jsx(sz,{})}),u.jsx(kn,{path:"/timers/:binding",element:u.jsx(I5,{})}),u.jsx(kn,{path:"/workflows/:binding",element:u.jsx(Az,{})}),u.jsx(kn,{path:"/workflows/:binding/:executionId",element:u.jsx(_z,{})})]})})})]})}function Kj(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}Kj();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Kj);const zz=new DN({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});nC.createRoot(document.getElementById("root")).render(u.jsx(v.StrictMode,{children:u.jsx(qN,{client:zz,children:u.jsx(g_,{children:u.jsx(Oz,{})})})}));