@meetploy/cli 1.19.0 → 1.21.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.
@@ -0,0 +1,354 @@
1
+ var D0=n=>{throw TypeError(n)};var uh=(n,a,r)=>a.has(n)||D0("Cannot "+r);var k=(n,a,r)=>(uh(n,a,"read from private field"),r?r.call(n):a.get(n)),be=(n,a,r)=>a.has(n)?D0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),oe=(n,a,r,i)=>(uh(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),Ae=(n,a,r)=>(uh(n,a,"access private method"),r);var Uu=(n,a,r,i)=>({set _(o){oe(n,a,o,r)},get _(){return k(n,a,i)}});function mN(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in n)){const c=Object.getOwnPropertyDescriptor(i,o);c&&Object.defineProperty(n,o,c.get?c:{enumerable:!0,get:()=>i[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)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(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();function ub(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ch={exports:{}},Qs={};/**
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 O0;function pN(){if(O0)return Qs;O0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,o,c){var h=null;if(c!==void 0&&(h=""+c),o.key!==void 0&&(h=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:n,type:i,key:h,ref:o!==void 0?o:null,props:c}}return Qs.Fragment=a,Qs.jsx=r,Qs.jsxs=r,Qs}var z0;function vN(){return z0||(z0=1,ch.exports=pN()),ch.exports}var u=vN(),Di=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(){}},dr=typeof window>"u"||"Deno"in globalThis;function Nn(){}function gN(n,a){return typeof n=="function"?n(a):n}function zh(n){return typeof n=="number"&&n>=0&&n!==1/0}function cb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function di(n,a){return typeof n=="function"?n(a):n}function Un(n,a){return typeof n=="function"?n(a):n}function L0(n,a){const{type:r="all",exact:i,fetchStatus:o,predicate:c,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==wm(h,a.options))return!1}else if(!Is(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||o&&o!==a.state.fetchStatus||c&&!c(a))}function U0(n,a){const{exact:r,status:i,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(r){if(fr(a.options.mutationKey)!==fr(c))return!1}else if(!Is(a.options.mutationKey,c))return!1}return!(i&&a.state.status!==i||o&&!o(a))}function wm(n,a){return((a==null?void 0:a.queryKeyHashFn)||fr)(n)}function fr(n){return JSON.stringify(n,(a,r)=>Lh(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function Is(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>Is(n[r],a[r])):!1}function db(n,a){if(n===a)return n;const r=q0(n)&&q0(a);if(r||Lh(n)&&Lh(a)){const i=r?n:Object.keys(n),o=i.length,c=r?a:Object.keys(a),h=c.length,m=r?[]:{};let p=0;for(let g=0;g<h;g++){const x=r?g:c[g];(!r&&i.includes(x)||r)&&n[x]===void 0&&a[x]===void 0?(m[x]=void 0,p++):(m[x]=db(n[x],a[x]),m[x]===n[x]&&n[x]!==void 0&&p++)}return o===h&&p===o?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 q0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Lh(n){if(!H0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!H0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function H0(n){return Object.prototype.toString.call(n)==="[object Object]"}function yN(n){return new Promise(a=>{setTimeout(a,n)})}function Uh(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?db(n,a):a}function xN(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function bN(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var jm=Symbol();function fb(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===jm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var ar,yl,pi,Ix,wN=(Ix=class extends Di{constructor(){super();be(this,ar);be(this,yl);be(this,pi);oe(this,pi,a=>{if(!dr&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,yl)||this.setEventListener(k(this,pi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,yl))==null||a.call(this),oe(this,yl,void 0))}setEventListener(a){var r;oe(this,pi,a),(r=k(this,yl))==null||r.call(this),oe(this,yl,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){k(this,ar)!==a&&(oe(this,ar,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof k(this,ar)=="boolean"?k(this,ar):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},ar=new WeakMap,yl=new WeakMap,pi=new WeakMap,Ix),Sm=new wN,vi,xl,gi,eb,jN=(eb=class extends Di{constructor(){super();be(this,vi,!0);be(this,xl);be(this,gi);oe(this,gi,a=>{if(!dr&&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,xl)||this.setEventListener(k(this,gi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,xl))==null||a.call(this),oe(this,xl,void 0))}setEventListener(a){var r;oe(this,gi,a),(r=k(this,xl))==null||r.call(this),oe(this,xl,a(this.setOnline.bind(this)))}setOnline(a){k(this,vi)!==a&&(oe(this,vi,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return k(this,vi)}},vi=new WeakMap,xl=new WeakMap,gi=new WeakMap,eb),ac=new jN;function qh(){let n,a;const r=new Promise((o,c)=>{n=o,a=c});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),n(o)},r.reject=o=>{i({status:"rejected",reason:o}),a(o)},r}function SN(n){return Math.min(1e3*2**n,3e4)}function hb(n){return(n??"online")==="online"?ac.isOnline():!0}var mb=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function dh(n){return n instanceof mb}function pb(n){let a=!1,r=0,i=!1,o;const c=qh(),h=j=>{var C;i||(w(new mb(j)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},g=()=>Sm.isFocused()&&(n.networkMode==="always"||ac.isOnline())&&n.canRun(),x=()=>hb(n.networkMode)&&n.canRun(),y=j=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,j),o==null||o(),c.resolve(j))},w=j=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,j),o==null||o(),c.reject(j))},S=()=>new Promise(j=>{var C;o=_=>{(i||g())&&j(_)},(C=n.onPause)==null||C.call(n)}).then(()=>{var j;o=void 0,i||(j=n.onContinue)==null||j.call(n)}),E=()=>{if(i)return;let j;const C=r===0?n.initialPromise:void 0;try{j=C??n.fn()}catch(_){j=Promise.reject(_)}Promise.resolve(j).then(y).catch(_=>{var K;if(i)return;const T=n.retry??(dr?0:3),R=n.retryDelay??SN,D=typeof R=="function"?R(r,_):R,L=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,_);if(a||!L){w(_);return}r++,(K=n.onFail)==null||K.call(n,r,_),yN(D).then(()=>g()?void 0:S()).then(()=>{a?w(_):E()})})};return{promise:c,cancel:h,continue:()=>(o==null||o(),c),cancelRetry:m,continueRetry:p,canStart:x,start:()=>(x()?E():S().then(E),c)}}var EN=n=>setTimeout(n,0);function NN(){let n=[],a=0,r=m=>{m()},i=m=>{m()},o=EN;const c=m=>{a?n.push(m):o(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&o(()=>{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=>{o=m}}}var St=NN(),lr,tb,vb=(tb=class{constructor(){be(this,lr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zh(this.gcTime)&&oe(this,lr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(dr?1/0:300*1e3))}clearGcTimeout(){k(this,lr)&&(clearTimeout(k(this,lr)),oe(this,lr,void 0))}},lr=new WeakMap,tb),yi,xi,En,rr,Lt,ro,ir,zn,ka,nb,CN=(nb=class extends vb{constructor(a){super();be(this,zn);be(this,yi);be(this,xi);be(this,En);be(this,rr);be(this,Lt);be(this,ro);be(this,ir);oe(this,ir,!1),oe(this,ro,a.defaultOptions),this.setOptions(a.options),this.observers=[],oe(this,rr,a.client),oe(this,En,k(this,rr).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,oe(this,yi,_N(this.options)),this.state=a.state??k(this,yi),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,ro),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,En).remove(this)}setData(a,r){const i=Uh(this.state.data,a,this.options);return Ae(this,zn,ka).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a,r){Ae(this,zn,ka).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,o;const r=(i=k(this,Lt))==null?void 0:i.promise;return(o=k(this,Lt))==null||o.cancel(a),r?r.then(Nn).catch(Nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,yi))}isActive(){return this.observers.some(a=>Un(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jm||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||!cb(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,En).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,ir)?k(this,Lt).cancel({revert:!0}):k(this,Lt).cancelRetry()),this.scheduleGc()),k(this,En).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ae(this,zn,ka).call(this,{type:"invalidate"})}fetch(a,r){var p,g,x;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 y=this.observers.find(w=>w.options.queryFn);y&&this.setOptions(y.options)}const i=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(oe(this,ir,!0),i.signal)})},c=()=>{const y=fb(this.options,r),w={client:k(this,rr),queryKey:this.queryKey,meta:this.meta};return o(w),oe(this,ir,!1),this.options.persister?this.options.persister(y,w,this):y(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,rr),state:this.state,fetchFn:c};o(h),(p=this.options.behavior)==null||p.onFetch(h,this),oe(this,xi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&Ae(this,zn,ka).call(this,{type:"fetch",meta:(x=h.fetchOptions)==null?void 0:x.meta});const m=y=>{var w,S,E,j;dh(y)&&y.silent||Ae(this,zn,ka).call(this,{type:"error",error:y}),dh(y)||((S=(w=k(this,En).config).onError)==null||S.call(w,y,this),(j=(E=k(this,En).config).onSettled)==null||j.call(E,this.state.data,y,this)),this.scheduleGc()};return oe(this,Lt,pb({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:y=>{var w,S,E,j;if(y===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(C){m(C);return}(S=(w=k(this,En).config).onSuccess)==null||S.call(w,y,this),(j=(E=k(this,En).config).onSettled)==null||j.call(E,y,this.state.error,this),this.scheduleGc()},onError:m,onFail:(y,w)=>{Ae(this,zn,ka).call(this,{type:"failed",failureCount:y,error:w})},onPause:()=>{Ae(this,zn,ka).call(this,{type:"pause"})},onContinue:()=>{Ae(this,zn,ka).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),k(this,Lt).start()}},yi=new WeakMap,xi=new WeakMap,En=new WeakMap,rr=new WeakMap,Lt=new WeakMap,ro=new WeakMap,ir=new WeakMap,zn=new WeakSet,ka=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,...gb(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 o=a.error;return dh(o)&&o.revert&&k(this,xi)?{...k(this,xi),fetchStatus:"idle"}:{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),St.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),k(this,En).notify({query:this,type:"updated",action:a})})},nb);function gb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:hb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function _N(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,ab,TN=(ab=class extends Di{constructor(a={}){super();be(this,Zn);this.config=a,oe(this,Zn,new Map)}build(a,r,i){const o=r.queryKey,c=r.queryHash??wm(o,r);let h=this.get(c);return h||(h=new CN({client:a,queryKey:o,queryHash:c,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(o)}),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(){St.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=>L0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>L0(a,i)):r}notify(a){St.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){St.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Zn=new WeakMap,ab),Pn,qt,sr,Jn,vl,lb,RN=(lb=class extends vb{constructor(a){super();be(this,Jn);be(this,Pn);be(this,qt);be(this,sr);this.mutationId=a.mutationId,oe(this,qt,a.mutationCache),oe(this,Pn,[]),this.state=a.state||yb(),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,qt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){oe(this,Pn,k(this,Pn).filter(r=>r!==a)),this.scheduleGc(),k(this,qt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){k(this,Pn).length||(this.state.status==="pending"?this.scheduleGc():k(this,qt).remove(this))}continue(){var a;return((a=k(this,sr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var c,h,m,p,g,x,y,w,S,E,j,C,_,T,R,D,L,K,H,q;const r=()=>{Ae(this,Jn,vl).call(this,{type:"continue"})};oe(this,sr,pb({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(G,te)=>{Ae(this,Jn,vl).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{Ae(this,Jn,vl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,qt).canRun(this)}));const i=this.state.status==="pending",o=!k(this,sr).canStart();try{if(i)r();else{Ae(this,Jn,vl).call(this,{type:"pending",variables:a,isPaused:o}),await((h=(c=k(this,qt).config).onMutate)==null?void 0:h.call(c,a,this));const te=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,a));te!==this.state.context&&Ae(this,Jn,vl).call(this,{type:"pending",context:te,variables:a,isPaused:o})}const G=await k(this,sr).start();return await((x=(g=k(this,qt).config).onSuccess)==null?void 0:x.call(g,G,a,this.state.context,this)),await((w=(y=this.options).onSuccess)==null?void 0:w.call(y,G,a,this.state.context)),await((E=(S=k(this,qt).config).onSettled)==null?void 0:E.call(S,G,null,this.state.variables,this.state.context,this)),await((C=(j=this.options).onSettled)==null?void 0:C.call(j,G,null,a,this.state.context)),Ae(this,Jn,vl).call(this,{type:"success",data:G}),G}catch(G){try{throw await((T=(_=k(this,qt).config).onError)==null?void 0:T.call(_,G,a,this.state.context,this)),await((D=(R=this.options).onError)==null?void 0:D.call(R,G,a,this.state.context)),await((K=(L=k(this,qt).config).onSettled)==null?void 0:K.call(L,void 0,G,this.state.variables,this.state.context,this)),await((q=(H=this.options).onSettled)==null?void 0:q.call(H,void 0,G,a,this.state.context)),G}finally{Ae(this,Jn,vl).call(this,{type:"error",error:G})}}finally{k(this,qt).runNext(this)}}},Pn=new WeakMap,qt=new WeakMap,sr=new WeakMap,Jn=new WeakSet,vl=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),St.batch(()=>{k(this,Pn).forEach(i=>{i.onMutationUpdate(a)}),k(this,qt).notify({mutation:this,type:"updated",action:a})})},lb);function yb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Da,Ln,io,rb,MN=(rb=class extends Di{constructor(a={}){super();be(this,Da);be(this,Ln);be(this,io);this.config=a,oe(this,Da,new Set),oe(this,Ln,new Map),oe(this,io,0)}build(a,r,i){const o=new RN({mutationCache:this,mutationId:++Uu(this,io)._,options:a.defaultMutationOptions(r),state:i});return this.add(o),o}add(a){k(this,Da).add(a);const r=qu(a);if(typeof r=="string"){const i=k(this,Ln).get(r);i?i.push(a):k(this,Ln).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(k(this,Da).delete(a)){const r=qu(a);if(typeof r=="string"){const i=k(this,Ln).get(r);if(i)if(i.length>1){const o=i.indexOf(a);o!==-1&&i.splice(o,1)}else i[0]===a&&k(this,Ln).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=qu(a);if(typeof r=="string"){const i=k(this,Ln).get(r),o=i==null?void 0:i.find(c=>c.state.status==="pending");return!o||o===a}else return!0}runNext(a){var i;const r=qu(a);if(typeof r=="string"){const o=(i=k(this,Ln).get(r))==null?void 0:i.find(c=>c!==a&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{k(this,Da).forEach(a=>{this.notify({type:"removed",mutation:a})}),k(this,Da).clear(),k(this,Ln).clear()})}getAll(){return Array.from(k(this,Da))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>U0(r,i))}findAll(a={}){return this.getAll().filter(r=>U0(a,r))}notify(a){St.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return St.batch(()=>Promise.all(a.map(r=>r.continue().catch(Nn))))}},Da=new WeakMap,Ln=new WeakMap,io=new WeakMap,rb);function qu(n){var a;return(a=n.options.scope)==null?void 0:a.id}function B0(n){return{onFetch:(a,r)=>{var x,y,w,S,E;const i=a.options,o=(w=(y=(x=a.fetchOptions)==null?void 0:x.meta)==null?void 0:y.fetchMore)==null?void 0:w.direction,c=((S=a.state.data)==null?void 0:S.pages)||[],h=((E=a.state.data)==null?void 0:E.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let j=!1;const C=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(a.signal.aborted?j=!0:a.signal.addEventListener("abort",()=>{j=!0}),a.signal)})},_=fb(a.options,a.fetchOptions),T=async(R,D,L)=>{if(j)return Promise.reject();if(D==null&&R.pages.length)return Promise.resolve(R);const K={client:a.client,queryKey:a.queryKey,pageParam:D,direction:L?"backward":"forward",meta:a.options.meta};C(K);const H=await _(K),{maxPages:q}=a.options,G=L?bN:xN;return{pages:G(R.pages,H,q),pageParams:G(R.pageParams,D,q)}};if(o&&c.length){const R=o==="backward",D=R?AN:Q0,L={pages:c,pageParams:h},K=D(i,L);m=await T(L,K,R)}else{const R=n??c.length;do{const D=p===0?h[0]??i.initialPageParam:Q0(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 j,C;return(C=(j=a.options).persister)==null?void 0:C.call(j,g,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=g}}}function Q0(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 AN(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 st,bl,wl,bi,wi,jl,ji,Si,ib,kN=(ib=class{constructor(n={}){be(this,st);be(this,bl);be(this,wl);be(this,bi);be(this,wi);be(this,jl);be(this,ji);be(this,Si);oe(this,st,n.queryCache||new TN),oe(this,bl,n.mutationCache||new MN),oe(this,wl,n.defaultOptions||{}),oe(this,bi,new Map),oe(this,wi,new Map),oe(this,jl,0)}mount(){Uu(this,jl)._++,k(this,jl)===1&&(oe(this,ji,Sm.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,st).onFocus())})),oe(this,Si,ac.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,st).onOnline())})))}unmount(){var n,a;Uu(this,jl)._--,k(this,jl)===0&&((n=k(this,ji))==null||n.call(this),oe(this,ji,void 0),(a=k(this,Si))==null||a.call(this),oe(this,Si,void 0))}isFetching(n){return k(this,st).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return k(this,bl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,st).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=k(this,st).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(di(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return k(this,st).findAll(n).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(n,a,r){const i=this.defaultQueryOptions({queryKey:n}),o=k(this,st).get(i.queryHash),c=o==null?void 0:o.state.data,h=gN(a,c);if(h!==void 0)return k(this,st).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return St.batch(()=>k(this,st).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,st).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=k(this,st);St.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=k(this,st);return St.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=St.batch(()=>k(this,st).findAll(n).map(o=>o.cancel(r)));return Promise.all(i).then(Nn).catch(Nn)}invalidateQueries(n,a={}){return St.batch(()=>(k(this,st).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=St.batch(()=>k(this,st).findAll(n).filter(o=>!o.isDisabled()).map(o=>{let c=o.fetch(void 0,r);return r.throwOnError||(c=c.catch(Nn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(Nn)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=k(this,st).build(this,a);return r.isStaleByTime(di(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Nn).catch(Nn)}fetchInfiniteQuery(n){return n.behavior=B0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Nn).catch(Nn)}ensureInfiniteQueryData(n){return n.behavior=B0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ac.isOnline()?k(this,bl).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,st)}getMutationCache(){return k(this,bl)}getDefaultOptions(){return k(this,wl)}setDefaultOptions(n){oe(this,wl,n)}setQueryDefaults(n,a){k(this,bi).set(fr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...k(this,bi).values()],r={};return a.forEach(i=>{Is(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){k(this,wi).set(fr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...k(this,wi).values()],r={};return a.forEach(i=>{Is(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...k(this,wl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=wm(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===jm&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...k(this,wl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){k(this,st).clear(),k(this,bl).clear()}},st=new WeakMap,bl=new WeakMap,wl=new WeakMap,bi=new WeakMap,wi=new WeakMap,jl=new WeakMap,ji=new WeakMap,Si=new WeakMap,ib),Ft,qe,so,Ht,or,Ei,Sl,El,oo,Ni,Ci,ur,cr,Nl,_i,Ge,Ks,Hh,Bh,Qh,$h,Gh,Yh,Vh,xb,sb,DN=(sb=class extends Di{constructor(a,r){super();be(this,Ge);be(this,Ft);be(this,qe);be(this,so);be(this,Ht);be(this,or);be(this,Ei);be(this,Sl);be(this,El);be(this,oo);be(this,Ni);be(this,Ci);be(this,ur);be(this,cr);be(this,Nl);be(this,_i,new Set);this.options=r,oe(this,Ft,a),oe(this,El,null),oe(this,Sl,qh()),this.options.experimental_prefetchInRender||k(this,Sl).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,qe).addObserver(this),$0(k(this,qe),this.options)?Ae(this,Ge,Ks).call(this):this.updateResult(),Ae(this,Ge,$h).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kh(k(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kh(k(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ae(this,Ge,Gh).call(this),Ae(this,Ge,Yh).call(this),k(this,qe).removeObserver(this)}setOptions(a){const r=this.options,i=k(this,qe);if(this.options=k(this,Ft).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Un(this.options.enabled,k(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ae(this,Ge,Vh).call(this),k(this,qe).setOptions(this.options),r._defaulted&&!nc(this.options,r)&&k(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,qe),observer:this});const o=this.hasListeners();o&&G0(k(this,qe),i,this.options,r)&&Ae(this,Ge,Ks).call(this),this.updateResult(),o&&(k(this,qe)!==i||Un(this.options.enabled,k(this,qe))!==Un(r.enabled,k(this,qe))||di(this.options.staleTime,k(this,qe))!==di(r.staleTime,k(this,qe)))&&Ae(this,Ge,Hh).call(this);const c=Ae(this,Ge,Bh).call(this);o&&(k(this,qe)!==i||Un(this.options.enabled,k(this,qe))!==Un(r.enabled,k(this,qe))||c!==k(this,Nl))&&Ae(this,Ge,Qh).call(this,c)}getOptimisticResult(a){const r=k(this,Ft).getQueryCache().build(k(this,Ft),a),i=this.createResult(r,a);return zN(this,i)&&(oe(this,Ht,i),oe(this,Ei,this.options),oe(this,or,k(this,qe).state)),i}getCurrentResult(){return k(this,Ht)}trackResult(a,r){const i={};return Object.keys(a).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),r==null||r(o),a[o])})}),i}trackProp(a){k(this,_i).add(a)}getCurrentQuery(){return k(this,qe)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=k(this,Ft).defaultQueryOptions(a),i=k(this,Ft).getQueryCache().build(k(this,Ft),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Ae(this,Ge,Ks).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Ht)))}createResult(a,r){var G;const i=k(this,qe),o=this.options,c=k(this,Ht),h=k(this,or),m=k(this,Ei),g=a!==i?a.state:k(this,so),{state:x}=a;let y={...x},w=!1,S;if(r._optimisticResults){const te=this.hasListeners(),ue=!te&&$0(a,r),ce=te&&G0(a,i,r,o);(ue||ce)&&(y={...y,...gb(x.data,a.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:j,status:C}=y;S=y.data;let _=!1;if(r.placeholderData!==void 0&&S===void 0&&C==="pending"){let te;c!=null&&c.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(te=c.data,_=!0):te=typeof r.placeholderData=="function"?r.placeholderData((G=k(this,Ci))==null?void 0:G.state.data,k(this,Ci)):r.placeholderData,te!==void 0&&(C="success",S=Uh(c==null?void 0:c.data,te,r),w=!0)}if(r.select&&S!==void 0&&!_)if(c&&S===(h==null?void 0:h.data)&&r.select===k(this,oo))S=k(this,Ni);else try{oe(this,oo,r.select),S=r.select(S),S=Uh(c==null?void 0:c.data,S,r),oe(this,Ni,S),oe(this,El,null)}catch(te){oe(this,El,te)}k(this,El)&&(E=k(this,El),S=k(this,Ni),j=Date.now(),C="error");const T=y.fetchStatus==="fetching",R=C==="pending",D=C==="error",L=R&&T,K=S!==void 0,q={status:C,fetchStatus:y.fetchStatus,isPending:R,isSuccess:C==="success",isError:D,isInitialLoading:L,isLoading:L,data:S,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:j,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>g.dataUpdateCount||y.errorUpdateCount>g.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:D&&!K,isPaused:y.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:D&&K,isStale:Em(a,r),refetch:this.refetch,promise:k(this,Sl)};if(this.options.experimental_prefetchInRender){const te=I=>{q.status==="error"?I.reject(q.error):q.data!==void 0&&I.resolve(q.data)},ue=()=>{const I=oe(this,Sl,q.promise=qh());te(I)},ce=k(this,Sl);switch(ce.status){case"pending":a.queryHash===i.queryHash&&te(ce);break;case"fulfilled":(q.status==="error"||q.data!==ce.value)&&ue();break;case"rejected":(q.status!=="error"||q.error!==ce.reason)&&ue();break}}return q}updateResult(){const a=k(this,Ht),r=this.createResult(k(this,qe),this.options);if(oe(this,or,k(this,qe).state),oe(this,Ei,this.options),k(this,or).data!==void 0&&oe(this,Ci,k(this,qe)),nc(r,a))return;oe(this,Ht,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!k(this,_i).size)return!0;const h=new Set(c??k(this,_i));return this.options.throwOnError&&h.add("error"),Object.keys(k(this,Ht)).some(m=>{const p=m;return k(this,Ht)[p]!==a[p]&&h.has(p)})};Ae(this,Ge,xb).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ae(this,Ge,$h).call(this)}},Ft=new WeakMap,qe=new WeakMap,so=new WeakMap,Ht=new WeakMap,or=new WeakMap,Ei=new WeakMap,Sl=new WeakMap,El=new WeakMap,oo=new WeakMap,Ni=new WeakMap,Ci=new WeakMap,ur=new WeakMap,cr=new WeakMap,Nl=new WeakMap,_i=new WeakMap,Ge=new WeakSet,Ks=function(a){Ae(this,Ge,Vh).call(this);let r=k(this,qe).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(Nn)),r},Hh=function(){Ae(this,Ge,Gh).call(this);const a=di(this.options.staleTime,k(this,qe));if(dr||k(this,Ht).isStale||!zh(a))return;const i=cb(k(this,Ht).dataUpdatedAt,a)+1;oe(this,ur,setTimeout(()=>{k(this,Ht).isStale||this.updateResult()},i))},Bh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,qe)):this.options.refetchInterval)??!1},Qh=function(a){Ae(this,Ge,Yh).call(this),oe(this,Nl,a),!(dr||Un(this.options.enabled,k(this,qe))===!1||!zh(k(this,Nl))||k(this,Nl)===0)&&oe(this,cr,setInterval(()=>{(this.options.refetchIntervalInBackground||Sm.isFocused())&&Ae(this,Ge,Ks).call(this)},k(this,Nl)))},$h=function(){Ae(this,Ge,Hh).call(this),Ae(this,Ge,Qh).call(this,Ae(this,Ge,Bh).call(this))},Gh=function(){k(this,ur)&&(clearTimeout(k(this,ur)),oe(this,ur,void 0))},Yh=function(){k(this,cr)&&(clearInterval(k(this,cr)),oe(this,cr,void 0))},Vh=function(){const a=k(this,Ft).getQueryCache().build(k(this,Ft),this.options);if(a===k(this,qe))return;const r=k(this,qe);oe(this,qe,a),oe(this,so,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},xb=function(a){St.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(k(this,Ht))}),k(this,Ft).getQueryCache().notify({query:k(this,qe),type:"observerResultsUpdated"})})},sb);function ON(n,a){return Un(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function $0(n,a){return ON(n,a)||n.state.data!==void 0&&Kh(n,a,a.refetchOnMount)}function Kh(n,a,r){if(Un(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&Em(n,a)}return!1}function G0(n,a,r,i){return(n!==a||Un(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Em(n,r)}function Em(n,a){return Un(a.enabled,n)!==!1&&n.isStaleByTime(di(a.staleTime,n))}function zN(n,a){return!nc(n.getCurrentResult(),a)}var Cl,_l,Zt,Oa,La,Zu,Xh,ob,LN=(ob=class extends Di{constructor(r,i){super();be(this,La);be(this,Cl);be(this,_l);be(this,Zt);be(this,Oa);oe(this,Cl,r),this.setOptions(i),this.bindMethods(),Ae(this,La,Zu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const i=this.options;this.options=k(this,Cl).defaultMutationOptions(r),nc(this.options,i)||k(this,Cl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Zt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&fr(i.mutationKey)!==fr(this.options.mutationKey)?this.reset():((o=k(this,Zt))==null?void 0:o.state.status)==="pending"&&k(this,Zt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Zt))==null||r.removeObserver(this)}onMutationUpdate(r){Ae(this,La,Zu).call(this),Ae(this,La,Xh).call(this,r)}getCurrentResult(){return k(this,_l)}reset(){var r;(r=k(this,Zt))==null||r.removeObserver(this),oe(this,Zt,void 0),Ae(this,La,Zu).call(this),Ae(this,La,Xh).call(this)}mutate(r,i){var o;return oe(this,Oa,i),(o=k(this,Zt))==null||o.removeObserver(this),oe(this,Zt,k(this,Cl).getMutationCache().build(k(this,Cl),this.options)),k(this,Zt).addObserver(this),k(this,Zt).execute(r)}},Cl=new WeakMap,_l=new WeakMap,Zt=new WeakMap,Oa=new WeakMap,La=new WeakSet,Zu=function(){var i;const r=((i=k(this,Zt))==null?void 0:i.state)??yb();oe(this,_l,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Xh=function(r){St.batch(()=>{var i,o,c,h,m,p,g,x;if(k(this,Oa)&&this.hasListeners()){const y=k(this,_l).variables,w=k(this,_l).context;(r==null?void 0:r.type)==="success"?((o=(i=k(this,Oa)).onSuccess)==null||o.call(i,r.data,y,w),(h=(c=k(this,Oa)).onSettled)==null||h.call(c,r.data,null,y,w)):(r==null?void 0:r.type)==="error"&&((p=(m=k(this,Oa)).onError)==null||p.call(m,r.error,y,w),(x=(g=k(this,Oa)).onSettled)==null||x.call(g,void 0,r.error,y,w))}this.listeners.forEach(y=>{y(k(this,_l))})})},ob),fh={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 Y0;function UN(){if(Y0)return Ce;Y0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=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"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),w=Symbol.iterator;function S(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(){}},j=Object.assign,C={};function _(A,F,ee){this.props=A,this.context=F,this.refs=C,this.updater=ee||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,ee){this.props=A,this.context=F,this.refs=C,this.updater=ee||E}var D=R.prototype=new T;D.constructor=R,j(D,_.prototype),D.isPureReactComponent=!0;var L=Array.isArray;function K(){}var H={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function G(A,F,ee){var le=ee.ref;return{$$typeof:n,type:A,key:F,ref:le!==void 0?le:null,props:ee}}function te(A,F){return G(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(ee){return F[ee]})}var I=/\/+/g;function ie(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 U(A,F,ee,le,ve){var Se=typeof A;(Se==="undefined"||Se==="boolean")&&(A=null);var ne=!1;if(A===null)ne=!0;else switch(Se){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(A.$$typeof){case n:case a:ne=!0;break;case x:return ne=A._init,U(ne(A._payload),F,ee,le,ve)}}if(ne)return ve=ve(A),ne=le===""?"."+ie(A,0):le,L(ve)?(ee="",ne!=null&&(ee=ne.replace(I,"$&/")+"/"),U(ve,F,ee,"",function(Ne){return Ne})):ve!=null&&(ue(ve)&&(ve=te(ve,ee+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(I,"$&/")+"/")+ne)),F.push(ve)),1;ne=0;var Ee=le===""?".":le+":";if(L(A))for(var ye=0;ye<A.length;ye++)le=A[ye],Se=Ee+ie(le,ye),ne+=U(le,F,ee,Se,ve);else if(ye=S(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(le=A.next()).done;)le=le.value,Se=Ee+ie(le,ye++),ne+=U(le,F,ee,Se,ve);else if(Se==="object"){if(typeof A.then=="function")return U(re(A),F,ee,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 ne}function W(A,F,ee){if(A==null)return A;var le=[],ve=0;return U(A,le,"","",function(Se){return F.call(ee,Se,ve++)}),le}function Y(A){if(A._status===-1){var F=A._result;F=F(),F.then(function(ee){(A._status===0||A._status===-1)&&(A._status=1,A._result=ee)},function(ee){(A._status===0||A._status===-1)&&(A._status=2,A._result=ee)}),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:W,forEach:function(A,F,ee){W(A,function(){F.apply(this,arguments)},ee)},count:function(A){var F=0;return W(A,function(){F++}),F},toArray:function(A){return W(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=y,Ce.Children=de,Ce.Component=_,Ce.Fragment=r,Ce.Profiler=o,Ce.PureComponent=R,Ce.StrictMode=i,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return H.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,F,ee){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var le=j({},A.props),ve=A.key;if(F!=null)for(Se in F.key!==void 0&&(ve=""+F.key),F)!q.call(F,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&F.ref===void 0||(le[Se]=F[Se]);var Se=arguments.length-2;if(Se===1)le.children=ee;else if(1<Se){for(var ne=Array(Se),Ee=0;Ee<Se;Ee++)ne[Ee]=arguments[Ee+2];le.children=ne}return G(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,ee){var le,ve={},Se=null;if(F!=null)for(le in F.key!==void 0&&(Se=""+F.key),F)q.call(F,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=F[le]);var ne=arguments.length-2;if(ne===1)ve.children=ee;else if(1<ne){for(var Ee=Array(ne),ye=0;ye<ne;ye++)Ee[ye]=arguments[ye+2];ve.children=Ee}if(A&&A.defaultProps)for(le in ne=A.defaultProps,ne)ve[le]===void 0&&(ve[le]=ne[le]);return G(A,Se,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:x,_payload:{_status:-1,_result:A},_init:Y}},Ce.memo=function(A,F){return{$$typeof:g,type:A,compare:F===void 0?null:F}},Ce.startTransition=function(A){var F=H.T,ee={};H.T=ee;try{var le=A(),ve=H.S;ve!==null&&ve(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(K,X)}catch(Se){X(Se)}finally{F!==null&&ee.types!==null&&(F.types=ee.types),H.T=F}},Ce.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ce.use=function(A){return H.H.use(A)},Ce.useActionState=function(A,F,ee){return H.H.useActionState(A,F,ee)},Ce.useCallback=function(A,F){return H.H.useCallback(A,F)},Ce.useContext=function(A){return H.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,F){return H.H.useDeferredValue(A,F)},Ce.useEffect=function(A,F){return H.H.useEffect(A,F)},Ce.useEffectEvent=function(A){return H.H.useEffectEvent(A)},Ce.useId=function(){return H.H.useId()},Ce.useImperativeHandle=function(A,F,ee){return H.H.useImperativeHandle(A,F,ee)},Ce.useInsertionEffect=function(A,F){return H.H.useInsertionEffect(A,F)},Ce.useLayoutEffect=function(A,F){return H.H.useLayoutEffect(A,F)},Ce.useMemo=function(A,F){return H.H.useMemo(A,F)},Ce.useOptimistic=function(A,F){return H.H.useOptimistic(A,F)},Ce.useReducer=function(A,F,ee){return H.H.useReducer(A,F,ee)},Ce.useRef=function(A){return H.H.useRef(A)},Ce.useState=function(A){return H.H.useState(A)},Ce.useSyncExternalStore=function(A,F,ee){return H.H.useSyncExternalStore(A,F,ee)},Ce.useTransition=function(){return H.H.useTransition()},Ce.version="19.2.3",Ce}var V0;function Nm(){return V0||(V0=1,fh.exports=UN()),fh.exports}var v=Nm();const ot=ub(v),bb=mN({__proto__:null,default:ot},[v]);var wb=v.createContext(void 0),Cm=n=>{const a=v.useContext(wb);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(wb.Provider,{value:n,children:a})),jb=v.createContext(!1),HN=()=>v.useContext(jb);jb.Provider;function BN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var QN=v.createContext(BN()),$N=()=>v.useContext(QN);function Sb(n,a){return typeof n=="function"?n(...a):!!n}function Fh(){}var GN=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},YN=n=>{v.useEffect(()=>{n.clearReset()},[n])},VN=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(o&&n.data===void 0||Sb(r,[n.error,i])),KN=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)))},XN=(n,a)=>n.isLoading&&n.isFetching&&!a,FN=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,K0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function ZN(n,a,r){var y,w,S,E,j;const i=Cm(),o=HN(),c=$N(),h=i.defaultQueryOptions(n);(w=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||w.call(y,h),h._optimisticResults=o?"isRestoring":"optimistic",KN(h),GN(h,c),YN(c);const m=!i.getQueryCache().get(h.queryHash),[p]=v.useState(()=>new a(i,h)),g=p.getOptimisticResult(h),x=!o&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(C=>{const _=x?p.subscribe(St.batchCalls(C)):Fh;return p.updateResult(),_},[p,x]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),FN(h,g))throw K0(h,p,c);if(VN({result:g,errorResetBoundary:c,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((E=(S=i.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||E.call(S,h,g),h.experimental_prefetchInRender&&!dr&&XN(g,o)){const C=m?K0(h,p,c):(j=i.getQueryCache().get(h.queryHash))==null?void 0:j.promise;C==null||C.catch(Fh).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function ft(n,a){return ZN(n,DN)}function Zh(n,a){const r=Cm(),[i]=v.useState(()=>new LN(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const o=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(St.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=v.useCallback((h,m)=>{i.mutate(h,m).catch(Fh)},[i]);if(o.error&&Sb(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}var hh={exports:{}},$s={},mh={exports:{}},ph={};/**
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 X0;function PN(){return X0||(X0=1,(function(n){function a(U,W){var Y=U.length;U.push(W);e:for(;0<Y;){var X=Y-1>>>1,de=U[X];if(0<o(de,W))U[X]=W,U[Y]=de,Y=X;else break e}}function r(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var W=U[0],Y=U.pop();if(Y!==W){U[0]=Y;e:for(var X=0,de=U.length,A=de>>>1;X<A;){var F=2*(X+1)-1,ee=U[F],le=F+1,ve=U[le];if(0>o(ee,Y))le<de&&0>o(ve,ee)?(U[X]=ve,U[le]=Y,X=le):(U[X]=ee,U[F]=Y,X=F);else if(le<de&&0>o(ve,Y))U[X]=ve,U[le]=Y,X=le;else break e}}return W}function o(U,W){var Y=U.sortIndex-W.sortIndex;return Y!==0?Y:U.id-W.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=[],x=1,y=null,w=3,S=!1,E=!1,j=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function D(U){for(var W=r(g);W!==null;){if(W.callback===null)i(g);else if(W.startTime<=U)i(g),W.sortIndex=W.expirationTime,a(p,W);else break;W=r(g)}}function L(U){if(j=!1,D(U),!E)if(r(p)!==null)E=!0,K||(K=!0,ce());else{var W=r(g);W!==null&&re(L,W.startTime-U)}}var K=!1,H=-1,q=5,G=-1;function te(){return C?!0:!(n.unstable_now()-G<q)}function ue(){if(C=!1,K){var U=n.unstable_now();G=U;var W=!0;try{e:{E=!1,j&&(j=!1,T(H),H=-1),S=!0;var Y=w;try{t:{for(D(U),y=r(p);y!==null&&!(y.expirationTime>U&&te());){var X=y.callback;if(typeof X=="function"){y.callback=null,w=y.priorityLevel;var de=X(y.expirationTime<=U);if(U=n.unstable_now(),typeof de=="function"){y.callback=de,D(U),W=!0;break t}y===r(p)&&i(p),D(U)}else i(p);y=r(p)}if(y!==null)W=!0;else{var A=r(g);A!==null&&re(L,A.startTime-U),W=!1}}break e}finally{y=null,w=Y,S=!1}W=void 0}}finally{W?ce():K=!1}}}var ce;if(typeof R=="function")ce=function(){R(ue)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,ie=I.port2;I.port1.onmessage=ue,ce=function(){ie.postMessage(null)}}else ce=function(){_(ue,0)};function re(U,W){H=_(function(){U(n.unstable_now())},W)}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(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(U){switch(w){case 1:case 2:case 3:var W=3;break;default:W=w}var Y=w;w=W;try{return U()}finally{w=Y}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(U,W){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Y=w;w=U;try{return W()}finally{w=Y}},n.unstable_scheduleCallback=function(U,W,Y){var X=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?X+Y:X):Y=X,U){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=Y+de,U={id:x++,callback:W,priorityLevel:U,startTime:Y,expirationTime:de,sortIndex:-1},Y>X?(U.sortIndex=Y,a(g,U),r(p)===null&&U===r(g)&&(j?(T(H),H=-1):j=!0,re(L,Y-X))):(U.sortIndex=de,a(p,U),E||S||(E=!0,K||(K=!0,ce()))),U},n.unstable_shouldYield=te,n.unstable_wrapCallback=function(U){var W=w;return function(){var Y=w;w=W;try{return U.apply(this,arguments)}finally{w=Y}}}})(ph)),ph}var F0;function JN(){return F0||(F0=1,mh.exports=PN()),mh.exports}var vh={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 Z0;function WN(){if(Z0)return zt;Z0=1;var n=Nm();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}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},o=Symbol.for("react.portal");function c(p,g,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:p,containerInfo:g,implementation:x}}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 x=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,x)},zt.flushSync=function(p){var g=h.T,x=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=g,i.p=x,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 x=g.as,y=m(x,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:w,fetchPriority:S}):x==="script"&&i.d.X(p,{crossOrigin:y,integrity:w,fetchPriority:S,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 x=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:x,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 x=g.as,y=m(x,g.crossOrigin);i.d.L(p,x,{crossOrigin:y,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 x=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,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,x){return h.H.useFormState(p,g,x)},zt.useFormStatus=function(){return h.H.useHostTransitionStatus()},zt.version="19.2.3",zt}var P0;function Eb(){if(P0)return vh.exports;P0=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=WN(),vh.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 J0;function IN(){if(J0)return $s;J0=1;var n=JN(),a=Nm(),r=Eb();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 o(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,s=t;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(s=d.return,s!==null){l=s;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return p(d),e;if(f===s)return p(d),t;f=f.sibling}throw Error(i(188))}if(l.return!==s.return)l=d,s=f;else{for(var b=!1,N=d.child;N;){if(N===l){b=!0,l=d,s=f;break}if(N===s){b=!0,s=d,l=f;break}N=N.sibling}if(!b){for(N=f.child;N;){if(N===l){b=!0,l=f,s=d;break}if(N===s){b=!0,s=f,l=d;break}N=N.sibling}if(!b)throw Error(i(189))}}if(l.alternate!==s)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,w=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),j=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"),L=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),te=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 I=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case _:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case K:return"SuspenseList";case G: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 H:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var re=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={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 ee(e,t){de++,X[de]=e.current,e.current=t}var le=A(null),ve=A(null),Se=A(null),ne=A(null);function Ee(e,t){switch(ee(Se,t),ee(ve,e),ee(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?n0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=n0(t),e=a0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(le),ee(le,e)}function ye(){F(le),F(ve),F(Se)}function Ne(e){e.memoizedState!==null&&ee(ne,e);var t=le.current,l=a0(t,e.type);t!==l&&(ee(ve,e),ee(le,l))}function He(e){ve.current===e&&(F(le),F(ve)),ne.current===e&&(F(ne),Us._currentValue=Y)}var Ye,Ot;function Jt(e){if(Ye===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",Ot=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Ye+e+Ot}var ca=!1;function da(e,t){if(!e||ca)return"";ca=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(V){var $=V}Reflect.construct(e,[],J)}else{try{J.call()}catch(V){$=V}e.call(J.prototype)}}else{try{throw Error()}catch(V){$=V}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(V){if(V&&$&&typeof V.stack=="string")return[V.stack,$.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=s.DetermineComponentFrameRoot(),b=f[0],N=f[1];if(b&&N){var M=b.split(`
44
+ `),Q=N.split(`
45
+ `);for(d=s=0;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;for(;d<Q.length&&!Q[d].includes("DetermineComponentFrameRoot");)d++;if(s===M.length||d===Q.length)for(s=M.length-1,d=Q.length-1;1<=s&&0<=d&&M[s]!==Q[d];)d--;for(;1<=s&&0<=d;s--,d--)if(M[s]!==Q[d]){if(s!==1||d!==1)do if(s--,d--,0>d||M[s]!==Q[d]){var Z=`
46
+ `+M[s].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=s&&0<=d);break}}}finally{ca=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Jt(l):""}function Xc(e,t){switch(e.tag){case 26:case 27:case 5:return Jt(e.type);case 16:return Jt("Lazy");case 13:return e.child!==t&&t!==null?Jt("Suspense Fallback"):Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 15:return da(e.type,!1);case 11:return da(e.type.render,!1);case 1:return da(e.type,!0);case 31:return Jt("Activity");default:return""}}function xo(e){try{var t="",l=null;do t+=Xc(e,l),l=e,e=e.return;while(e);return t}catch(s){return`
47
+ Error generating stack: `+s.message+`
48
+ `+s.stack}}var Ga=Object.prototype.hasOwnProperty,Fc=n.unstable_scheduleCallback,Zc=n.unstable_cancelCallback,KS=n.unstable_shouldYield,XS=n.unstable_requestPaint,Wt=n.unstable_now,FS=n.unstable_getCurrentPriorityLevel,Op=n.unstable_ImmediatePriority,zp=n.unstable_UserBlockingPriority,bo=n.unstable_NormalPriority,ZS=n.unstable_LowPriority,Lp=n.unstable_IdlePriority,PS=n.log,JS=n.unstable_setDisableYieldValue,Zi=null,It=null;function Ya(e){if(typeof PS=="function"&&JS(e),It&&typeof It.setStrictMode=="function")try{It.setStrictMode(Zi,e)}catch{}}var en=Math.clz32?Math.clz32:e2,WS=Math.log,IS=Math.LN2;function e2(e){return e>>>=0,e===0?32:31-(WS(e)/IS|0)|0}var wo=256,jo=262144,So=4194304;function Ll(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 Eo(e,t,l){var s=e.pendingLanes;if(s===0)return 0;var d=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var N=s&134217727;return N!==0?(s=N&~f,s!==0?d=Ll(s):(b&=N,b!==0?d=Ll(b):l||(l=N&~e,l!==0&&(d=Ll(l))))):(N=s&~f,N!==0?d=Ll(N):b!==0?d=Ll(b):l||(l=s&~e,l!==0&&(d=Ll(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 t2(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 Up(){var e=So;return So<<=1,(So&62914560)===0&&(So=4194304),e}function Pc(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 n2(e,t,l,s,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-en(l),J=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&=~J}s!==0&&qp(e,s,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(b&~t))}function qp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-en(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|l&261930}function Hp(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var s=31-en(l),d=1<<s;d&t|e[s]&t&&(e[s]|=t),l&=~d}}function Bp(e,t){var l=t&-t;return l=(l&42)!==0?1:Jc(l),(l&(e.suspendedLanes|t))!==0?0:l}function Jc(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 Wc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Qp(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:C0(e.type))}function $p(e,t){var l=W.p;try{return W.p=e,t()}finally{W.p=l}}var Va=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Va,Qt="__reactProps$"+Va,Sr="__reactContainer$"+Va,Ic="__reactEvents$"+Va,a2="__reactListeners$"+Va,l2="__reactHandles$"+Va,Gp="__reactResources$"+Va,Wi="__reactMarker$"+Va;function ed(e){delete e[Rt],delete e[Qt],delete e[Ic],delete e[a2],delete e[l2]}function Er(e){var t=e[Rt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Sr]||l[Rt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=c0(e);e!==null;){if(l=e[Rt])return l;e=c0(e)}return t}e=l,l=e.parentNode}return null}function Nr(e){if(e=e[Rt]||e[Sr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ii(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Cr(e){var t=e[Gp];return t||(t=e[Gp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Nt(e){e[Wi]=!0}var Yp=new Set,Vp={};function Ul(e,t){_r(e,t),_r(e+"Capture",t)}function _r(e,t){for(Vp[e]=t,e=0;e<t.length;e++)Yp.add(t[e])}var r2=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]*$"),Kp={},Xp={};function i2(e){return Ga.call(Xp,e)?!0:Ga.call(Kp,e)?!1:r2.test(e)?Xp[e]=!0:(Kp[e]=!0,!1)}function No(e,t,l){if(i2(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Co(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 fa(e,t,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+s)}}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 Fp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s2(e,t,l){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,f=s.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:s.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function td(e){if(!e._valueTracker){var t=Fp(e)?"checked":"value";e._valueTracker=s2(e,t,""+e[t])}}function Zp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return e&&(s=Fp(e)?e.checked?"true":"false":e.value),e=s,e!==l?(t.setValue(e),!0):!1}function _o(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 o2=/[\n"\\]/g;function mn(e){return e.replace(o2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function nd(e,t,l,s,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?ad(e,b,hn(t)):l!=null?ad(e,b,hn(l)):s!=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 Pp(e,t,l,s,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)){td(e);return}l=l!=null?""+hn(l):"",t=t!=null?""+hn(t):l,N||t===e.value||(e.value=t),e.defaultValue=t}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=N?e.checked:!!s,e.defaultChecked=!!s,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),td(e)}function ad(e,t,l){t==="number"&&_o(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Tr(e,t,l,s){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&&s&&(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,s&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function Jp(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 Wp(e,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(i(92));if(re(s)){if(1<s.length)throw Error(i(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=hn(t),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s),td(e)}function Rr(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var u2=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 Ip(e,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,l):typeof l!="number"||l===0||u2.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function ev(e,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var d in t)s=t[d],t.hasOwnProperty(d)&&l[d]!==s&&Ip(e,d,s)}else for(var f in t)t.hasOwnProperty(f)&&Ip(e,f,t[f])}function ld(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 c2=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"]]),d2=/^[\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 To(e){return d2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ha(){}var rd=null;function id(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mr=null,Ar=null;function tv(e){var t=Nr(e);if(t&&(e=t.stateNode)){var l=e[Qt]||null;e:switch(e=t.stateNode,t.type){case"input":if(nd(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 s=l[t];if(s!==e&&s.form===e.form){var d=s[Qt]||null;if(!d)throw Error(i(90));nd(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===e.form&&Zp(s)}break e;case"textarea":Jp(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Tr(e,!!l.multiple,t,!1)}}}var sd=!1;function nv(e,t,l){if(sd)return e(t,l);sd=!0;try{var s=e(t);return s}finally{if(sd=!1,(Mr!==null||Ar!==null)&&(pu(),Mr&&(t=Mr,e=Ar,Ar=Mr=null,tv(t),e)))for(t=0;t<e.length;t++)tv(e[t])}}function es(e,t){var l=e.stateNode;if(l===null)return null;var s=l[Qt]||null;if(s===null)return null;l=s[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":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),od=!1;if(ma)try{var ts={};Object.defineProperty(ts,"passive",{get:function(){od=!0}}),window.addEventListener("test",ts,ts),window.removeEventListener("test",ts,ts)}catch{od=!1}var Ka=null,ud=null,Ro=null;function av(){if(Ro)return Ro;var e,t=ud,l=t.length,s,d="value"in Ka?Ka.value:Ka.textContent,f=d.length;for(e=0;e<l&&t[e]===d[e];e++);var b=l-e;for(s=1;s<=b&&t[l-s]===d[f-s];s++);return Ro=d.slice(e,1<s?1-s:void 0)}function Mo(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 Ao(){return!0}function lv(){return!1}function $t(e){function t(l,s,d,f,b){this._reactName=l,this._targetInst=d,this.type=s,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)?Ao:lv,this.isPropagationStopped=lv,this}return y(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=Ao)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ao)},persist:function(){},isPersistent:Ao}),t}var ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ko=$t(ql),ns=y({},ql,{view:0,detail:0}),f2=$t(ns),cd,dd,as,Do=y({},ns,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hd,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!==as&&(as&&e.type==="mousemove"?(cd=e.screenX-as.screenX,dd=e.screenY-as.screenY):dd=cd=0,as=e),cd)},movementY:function(e){return"movementY"in e?e.movementY:dd}}),rv=$t(Do),h2=y({},Do,{dataTransfer:0}),m2=$t(h2),p2=y({},ns,{relatedTarget:0}),fd=$t(p2),v2=y({},ql,{animationName:0,elapsedTime:0,pseudoElement:0}),g2=$t(v2),y2=y({},ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),x2=$t(y2),b2=y({},ql,{data:0}),iv=$t(b2),w2={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"},S2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function E2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=S2[e])?!!t[e]:!1}function hd(){return E2}var N2=y({},ns,{key:function(e){if(e.key){var t=w2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Mo(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:hd,charCode:function(e){return e.type==="keypress"?Mo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Mo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),C2=$t(N2),_2=y({},Do,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),sv=$t(_2),T2=y({},ns,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hd}),R2=$t(T2),M2=y({},ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),A2=$t(M2),k2=y({},Do,{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}),D2=$t(k2),O2=y({},ql,{newState:0,oldState:0}),z2=$t(O2),L2=[9,13,27,32],md=ma&&"CompositionEvent"in window,ls=null;ma&&"documentMode"in document&&(ls=document.documentMode);var U2=ma&&"TextEvent"in window&&!ls,ov=ma&&(!md||ls&&8<ls&&11>=ls),uv=" ",cv=!1;function dv(e,t){switch(e){case"keyup":return L2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var kr=!1;function q2(e,t){switch(e){case"compositionend":return fv(t);case"keypress":return t.which!==32?null:(cv=!0,uv);case"textInput":return e=t.data,e===uv&&cv?null:e;default:return null}}function H2(e,t){if(kr)return e==="compositionend"||!md&&dv(e,t)?(e=av(),Ro=ud=Ka=null,kr=!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 ov&&t.locale!=="ko"?null:t.data;default:return null}}var B2={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 hv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!B2[e.type]:t==="textarea"}function mv(e,t,l,s){Mr?Ar?Ar.push(s):Ar=[s]:Mr=s,t=ju(t,"onChange"),0<t.length&&(l=new ko("onChange","change",null,l,s),e.push({event:l,listeners:t}))}var rs=null,is=null;function Q2(e){Py(e,0)}function Oo(e){var t=Ii(e);if(Zp(t))return e}function pv(e,t){if(e==="change")return t}var vv=!1;if(ma){var pd;if(ma){var vd="oninput"in document;if(!vd){var gv=document.createElement("div");gv.setAttribute("oninput","return;"),vd=typeof gv.oninput=="function"}pd=vd}else pd=!1;vv=pd&&(!document.documentMode||9<document.documentMode)}function yv(){rs&&(rs.detachEvent("onpropertychange",xv),is=rs=null)}function xv(e){if(e.propertyName==="value"&&Oo(is)){var t=[];mv(t,is,e,id(e)),nv(Q2,t)}}function $2(e,t,l){e==="focusin"?(yv(),rs=t,is=l,rs.attachEvent("onpropertychange",xv)):e==="focusout"&&yv()}function G2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Oo(is)}function Y2(e,t){if(e==="click")return Oo(t)}function V2(e,t){if(e==="input"||e==="change")return Oo(t)}function K2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:K2;function ss(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var d=l[s];if(!Ga.call(t,d)||!tn(e[d],t[d]))return!1}return!0}function bv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wv(e,t){var l=bv(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=t&&s>=t)return{node:l,offset:t-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=bv(l)}}function jv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?jv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_o(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=_o(e.document)}return t}function gd(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 X2=ma&&"documentMode"in document&&11>=document.documentMode,Dr=null,yd=null,os=null,xd=!1;function Ev(e,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;xd||Dr==null||Dr!==_o(s)||(s=Dr,"selectionStart"in s&&gd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),os&&ss(os,s)||(os=s,s=ju(yd,"onSelect"),0<s.length&&(t=new ko("onSelect","select",null,t,l),e.push({event:t,listeners:s}),t.target=Dr)))}function Hl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Or={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")},bd={},Nv={};ma&&(Nv=document.createElement("div").style,"AnimationEvent"in window||(delete Or.animationend.animation,delete Or.animationiteration.animation,delete Or.animationstart.animation),"TransitionEvent"in window||delete Or.transitionend.transition);function Bl(e){if(bd[e])return bd[e];if(!Or[e])return e;var t=Or[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Nv)return bd[e]=t[l];return e}var Cv=Bl("animationend"),_v=Bl("animationiteration"),Tv=Bl("animationstart"),F2=Bl("transitionrun"),Z2=Bl("transitionstart"),P2=Bl("transitioncancel"),Rv=Bl("transitionend"),Mv=new Map,wd="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(" ");wd.push("scrollEnd");function An(e,t){Mv.set(e,t),Ul(t,[e])}var zo=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=[],zr=0,jd=0;function Lo(){for(var e=zr,t=jd=zr=0;t<e;){var l=pn[t];pn[t++]=null;var s=pn[t];pn[t++]=null;var d=pn[t];pn[t++]=null;var f=pn[t];if(pn[t++]=null,s!==null&&d!==null){var b=s.pending;b===null?d.next=d:(d.next=b.next,b.next=d),s.pending=d}f!==0&&Av(l,d,f)}}function Uo(e,t,l,s){pn[zr++]=e,pn[zr++]=t,pn[zr++]=l,pn[zr++]=s,jd|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Sd(e,t,l,s){return Uo(e,t,l,s),qo(e)}function Ql(e,t){return Uo(e,null,null,t),qo(e)}function Av(e,t,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var d=!1,f=e.return;f!==null;)f.childLanes|=l,s=f.alternate,s!==null&&(s.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-en(l),e=f.hiddenUpdates,s=e[d],s===null?e[d]=[t]:s.push(t),t.lane=l|536870912),f):null}function qo(e){if(50<Ms)throw Ms=0,Df=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Lr={};function J2(e,t,l,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,l,s){return new J2(e,t,l,s)}function Ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pa(e,t){var l=e.alternate;return l===null?(l=nn(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 kv(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 Ho(e,t,l,s,d,f){var b=0;if(s=e,typeof e=="function")Ed(e)&&(b=1);else if(typeof e=="string")b=nN(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=nn(31,l,t,d),e.elementType=G,e.lanes=f,e;case j:return $l(l.children,d,f,t);case C:b=8,d|=24;break;case _:return e=nn(12,l,t,d|2),e.elementType=_,e.lanes=f,e;case L:return e=nn(13,l,t,d),e.elementType=L,e.lanes=f,e;case K:return e=nn(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 H:b=14;break e;case q:b=16,s=null;break e}b=29,l=Error(i(130,e===null?"null":typeof e,"")),s=null}return t=nn(b,l,t,d),t.elementType=e,t.type=s,t.lanes=f,t}function $l(e,t,l,s){return e=nn(7,e,s,t),e.lanes=l,e}function Nd(e,t,l){return e=nn(6,e,null,t),e.lanes=l,e}function Dv(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function Cd(e,t,l){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ov=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var l=Ov.get(e);return l!==void 0?l:(t={value:e,source:t,stack:xo(t)},Ov.set(e,t),t)}return{value:e,source:t,stack:xo(t)}}var Ur=[],qr=0,Bo=null,us=0,gn=[],yn=0,Xa=null,Vn=1,Kn="";function va(e,t){Ur[qr++]=us,Ur[qr++]=Bo,Bo=e,us=t}function zv(e,t,l){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Xa,Xa=e;var s=Vn;e=Kn;var d=32-en(s)-1;s&=~(1<<d),l+=1;var f=32-en(t)+d;if(30<f){var b=d-d%5;f=(s&(1<<b)-1).toString(32),s>>=b,d-=b,Vn=1<<32-en(t)+d|l<<d|s,Kn=f+e}else Vn=1<<f|l<<d|s,Kn=e}function _d(e){e.return!==null&&(va(e,1),zv(e,1,0))}function Td(e){for(;e===Bo;)Bo=Ur[--qr],Ur[qr]=null,us=Ur[--qr],Ur[qr]=null;for(;e===Xa;)Xa=gn[--yn],gn[yn]=null,Kn=gn[--yn],gn[yn]=null,Vn=gn[--yn],gn[yn]=null}function Lv(e,t){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Xa,Vn=t.id,Kn=t.overflow,Xa=e}var Mt=null,Ie=null,Ue=!1,Fa=null,xn=!1,Rd=Error(i(519));function Za(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw cs(vn(t,e)),Rd}function Uv(e){var t=e.stateNode,l=e.type,s=e.memoizedProps;switch(t[Rt]=e,t[Qt]=s,l){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(l=0;l<ks.length;l++)Oe(ks[l],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),Pp(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),Wp(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||e0(t.textContent,l)?(s.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),s.onScroll!=null&&Oe("scroll",t),s.onScrollEnd!=null&&Oe("scrollend",t),s.onClick!=null&&(t.onclick=ha),t=!0):t=!1,t||Za(e,!0)}function qv(e){for(Mt=e.return;Mt;)switch(Mt.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Mt=Mt.return}}function Hr(e){if(e!==Mt)return!1;if(!Ue)return qv(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")||Ff(e.type,e.memoizedProps)),l=!l),l&&Ie&&Za(e),qv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ie=u0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ie=u0(e)}else t===27?(t=Ie,ul(e.type)?(e=If,If=null,Ie=e):Ie=t):Ie=Mt?wn(e.stateNode.nextSibling):null;return!0}function Gl(){Ie=Mt=null,Ue=!1}function Md(){var e=Fa;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),Fa=null),e}function cs(e){Fa===null?Fa=[e]:Fa.push(e)}var Ad=A(null),Yl=null,ga=null;function Pa(e,t,l){ee(Ad,t._currentValue),t._currentValue=l}function ya(e){e._currentValue=Ad.current,F(Ad)}function kd(e,t,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===l)break;e=e.return}}function Dd(e,t,l,s){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),kd(f.return,l,e),s||(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),kd(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 Br(e,t,l,s){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;tn(d.pendingProps.value,b.value)||(e!==null?e.push(N):e=[N])}}else if(d===ne.current){if(b=d.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(Us):e=[Us])}d=d.return}e!==null&&Dd(t,e,l,s),t.flags|=262144}function Qo(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vl(e){Yl=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function At(e){return Hv(Yl,e)}function $o(e,t){return Yl===null&&Vl(e),Hv(e,t)}function Hv(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ga===null){if(e===null)throw Error(i(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return l}var W2=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},I2=n.unstable_scheduleCallback,eE=n.unstable_NormalPriority,ht={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Od(){return{controller:new W2,data:new Map,refCount:0}}function ds(e){e.refCount--,e.refCount===0&&I2(eE,function(){e.controller.abort()})}var fs=null,zd=0,Qr=0,$r=null;function tE(e,t){if(fs===null){var l=fs=[];zd=0,Qr=Hf(),$r={status:"pending",value:void 0,then:function(s){l.push(s)}}}return zd++,t.then(Bv,Bv),t}function Bv(){if(--zd===0&&fs!==null){$r!==null&&($r.status="fulfilled");var e=fs;fs=null,Qr=0,$r=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function nE(e,t){var l=[],s={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(s.status="rejected",s.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),s}var Qv=U.S;U.S=function(e,t){Ey=Wt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&tE(e,t),Qv!==null&&Qv(e,t)};var Kl=A(null);function Ld(){var e=Kl.current;return e!==null?e:We.pooledCache}function Go(e,t){t===null?ee(Kl,Kl.current):ee(Kl,t.pool)}function $v(){var e=Ld();return e===null?null:{parent:ht._currentValue,pool:e}}var Gr=Error(i(460)),Ud=Error(i(474)),Yo=Error(i(542)),Vo={then:function(){}};function Gv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ha,ha),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kv(e),e;default:if(typeof t.status=="string")t.then(ha,ha);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=s}},function(s){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Kv(e),e}throw Fl=t,Gr}}function Xl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Fl=l,Gr):l}}var Fl=null;function Vv(){if(Fl===null)throw Error(i(459));var e=Fl;return Fl=null,e}function Kv(e){if(e===Gr||e===Yo)throw Error(i(483))}var Yr=null,hs=0;function Ko(e){var t=hs;return hs+=1,Yr===null&&(Yr=[]),Yv(Yr,e,t)}function ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xo(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 Xv(e){function t(z,O){if(e){var B=z.deletions;B===null?(z.deletions=[O],z.flags|=16):B.push(O)}}function l(z,O){if(!e)return null;for(;O!==null;)t(z,O),O=O.sibling;return null}function s(z){for(var O=new Map;z!==null;)z.key!==null?O.set(z.key,z):O.set(z.index,z),z=z.sibling;return O}function d(z,O){return z=pa(z,O),z.index=0,z.sibling=null,z}function f(z,O,B){return z.index=B,e?(B=z.alternate,B!==null?(B=B.index,B<O?(z.flags|=67108866,O):B):(z.flags|=67108866,O)):(z.flags|=1048576,O)}function b(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function N(z,O,B,P){return O===null||O.tag!==6?(O=Nd(B,z.mode,P),O.return=z,O):(O=d(O,B),O.return=z,O)}function M(z,O,B,P){var xe=B.type;return xe===j?Z(z,O,B.props.children,P,B.key):O!==null&&(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Xl(xe)===O.type)?(O=d(O,B.props),ms(O,B),O.return=z,O):(O=Ho(B.type,B.key,B.props,null,z.mode,P),ms(O,B),O.return=z,O)}function Q(z,O,B,P){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Cd(B,z.mode,P),O.return=z,O):(O=d(O,B.children||[]),O.return=z,O)}function Z(z,O,B,P,xe){return O===null||O.tag!==7?(O=$l(B,z.mode,P,xe),O.return=z,O):(O=d(O,B),O.return=z,O)}function J(z,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Nd(""+O,z.mode,B),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return B=Ho(O.type,O.key,O.props,null,z.mode,B),ms(B,O),B.return=z,B;case E:return O=Cd(O,z.mode,B),O.return=z,O;case q:return O=Xl(O),J(z,O,B)}if(re(O)||ce(O))return O=$l(O,z.mode,B,null),O.return=z,O;if(typeof O.then=="function")return J(z,Ko(O),B);if(O.$$typeof===R)return J(z,$o(z,O),B);Xo(z,O)}return null}function $(z,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(z,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return B.key===xe?M(z,O,B,P):null;case E:return B.key===xe?Q(z,O,B,P):null;case q:return B=Xl(B),$(z,O,B,P)}if(re(B)||ce(B))return xe!==null?null:Z(z,O,B,P,null);if(typeof B.then=="function")return $(z,O,Ko(B),P);if(B.$$typeof===R)return $(z,O,$o(z,B),P);Xo(z,B)}return null}function V(z,O,B,P,xe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return z=z.get(B)||null,N(O,z,""+P,xe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return z=z.get(P.key===null?B:P.key)||null,M(O,z,P,xe);case E:return z=z.get(P.key===null?B:P.key)||null,Q(O,z,P,xe);case q:return P=Xl(P),V(z,O,B,P,xe)}if(re(P)||ce(P))return z=z.get(B)||null,Z(O,z,P,xe,null);if(typeof P.then=="function")return V(z,O,B,Ko(P),xe);if(P.$$typeof===R)return V(z,O,B,$o(O,P),xe);Xo(O,P)}return null}function fe(z,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=$(z,ge,B[Te],P);if(Qe===null){ge===null&&(ge=Le);break}e&&ge&&Qe.alternate===null&&t(z,ge),O=f(Qe,O,Te),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe,ge=Le}if(Te===B.length)return l(z,ge),Ue&&va(z,Te),xe;if(ge===null){for(;Te<B.length;Te++)ge=J(z,B[Te],P),ge!==null&&(O=f(ge,O,Te),Be===null?xe=ge:Be.sibling=ge,Be=ge);return Ue&&va(z,Te),xe}for(ge=s(ge);Te<B.length;Te++)Le=V(ge,z,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(ml){return t(z,ml)}),Ue&&va(z,Te),xe}function je(z,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 ml=$(z,ge,Qe.value,P);if(ml===null){ge===null&&(ge=Le);break}e&&ge&&ml.alternate===null&&t(z,ge),O=f(ml,O,Te),Be===null?xe=ml:Be.sibling=ml,Be=ml,ge=Le}if(Qe.done)return l(z,ge),Ue&&va(z,Te),xe;if(ge===null){for(;!Qe.done;Te++,Qe=B.next())Qe=J(z,Qe.value,P),Qe!==null&&(O=f(Qe,O,Te),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe);return Ue&&va(z,Te),xe}for(ge=s(ge);!Qe.done;Te++,Qe=B.next())Qe=V(ge,z,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(hN){return t(z,hN)}),Ue&&va(z,Te),xe}function Je(z,O,B,P){if(typeof B=="object"&&B!==null&&B.type===j&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case S:e:{for(var xe=B.key;O!==null;){if(O.key===xe){if(xe=B.type,xe===j){if(O.tag===7){l(z,O.sibling),P=d(O,B.props.children),P.return=z,z=P;break e}}else if(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Xl(xe)===O.type){l(z,O.sibling),P=d(O,B.props),ms(P,B),P.return=z,z=P;break e}l(z,O);break}else t(z,O);O=O.sibling}B.type===j?(P=$l(B.props.children,z.mode,P,B.key),P.return=z,z=P):(P=Ho(B.type,B.key,B.props,null,z.mode,P),ms(P,B),P.return=z,z=P)}return b(z);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(z,O.sibling),P=d(O,B.children||[]),P.return=z,z=P;break e}else{l(z,O);break}else t(z,O);O=O.sibling}P=Cd(B,z.mode,P),P.return=z,z=P}return b(z);case q:return B=Xl(B),Je(z,O,B,P)}if(re(B))return fe(z,O,B,P);if(ce(B)){if(xe=ce(B),typeof xe!="function")throw Error(i(150));return B=xe.call(B),je(z,O,B,P)}if(typeof B.then=="function")return Je(z,O,Ko(B),P);if(B.$$typeof===R)return Je(z,O,$o(z,B),P);Xo(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,O!==null&&O.tag===6?(l(z,O.sibling),P=d(O,B),P.return=z,z=P):(l(z,O),P=Nd(B,z.mode,P),P.return=z,z=P),b(z)):l(z,O)}return function(z,O,B,P){try{hs=0;var xe=Je(z,O,B,P);return Yr=null,xe}catch(ge){if(ge===Gr||ge===Yo)throw ge;var Be=nn(29,ge,null,z.mode);return Be.lanes=P,Be.return=z,Be}finally{}}}var Zl=Xv(!0),Fv=Xv(!1),Ja=!1;function qd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hd(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 Wa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ia(e,t,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,($e&2)!==0){var d=s.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),s.pending=t,t=qo(e),Av(e,null,l),t}return Uo(e,s,t,l),qo(e)}function ps(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,Hp(e,l)}}function Bd(e,t){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){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:s.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Qd=!1;function vs(){if(Qd){var e=$r;if(e!==null)throw e}}function gs(e,t,l,s){Qd=!1;var d=e.updateQueue;Ja=!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 J=d.baseState;b=0,Z=Q=M=null,N=f;do{var $=N.lane&-536870913,V=$!==N.lane;if(V?(ze&$)===$:(s&$)===$){$!==0&&$===Qr&&(Qd=!0),Z!==null&&(Z=Z.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var fe=e,je=N;$=t;var Je=l;switch(je.tag){case 1:if(fe=je.payload,typeof fe=="function"){J=fe.call(Je,J,$);break e}J=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=je.payload,$=typeof fe=="function"?fe.call(Je,J,$):fe,$==null)break e;J=y({},J,$);break e;case 2:Ja=!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=J):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=J),d.baseState=M,d.firstBaseUpdate=Q,d.lastBaseUpdate=Z,f===null&&(d.shared.lanes=0),ll|=b,e.lanes=b,e.memoizedState=J}}function Zv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Pv(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Zv(l[e],t)}var Vr=A(null),Fo=A(0);function Jv(e,t){e=_a,ee(Fo,e),ee(Vr,t),_a=e|t.baseLanes}function $d(){ee(Fo,_a),ee(Vr,Vr.current)}function Gd(){_a=Fo.current,F(Vr),F(Fo)}var an=A(null),bn=null;function el(e){var t=e.alternate;ee(ct,ct.current&1),ee(an,e),bn===null&&(t===null||Vr.current!==null||t.memoizedState!==null)&&(bn=e)}function Yd(e){ee(ct,ct.current),ee(an,e),bn===null&&(bn=e)}function Wv(e){e.tag===22?(ee(ct,ct.current),ee(an,e),bn===null&&(bn=e)):tl()}function tl(){ee(ct,ct.current),ee(an,an.current)}function ln(e){F(an),bn===e&&(bn=null),F(ct)}var ct=A(0);function Zo(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Jf(l)||Wf(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 xa=0,_e=null,Ze=null,mt=null,Po=!1,Kr=!1,Pl=!1,Jo=0,ys=0,Xr=null,aE=0;function rt(){throw Error(i(321))}function Vd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!tn(e[l],t[l]))return!1;return!0}function Kd(e,t,l,s,d,f){return xa=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?zg:of,Pl=!1,f=l(s,d),Pl=!1,Kr&&(f=eg(t,l,s,d)),Iv(e),f}function Iv(e){U.H=ws;var t=Ze!==null&&Ze.next!==null;if(xa=0,mt=Ze=_e=null,Po=!1,ys=0,Xr=null,t)throw Error(i(300));e===null||pt||(e=e.dependencies,e!==null&&Qo(e)&&(pt=!0))}function eg(e,t,l,s){_e=e;var d=0;do{if(Kr&&(Xr=null),ys=0,Kr=!1,25<=d)throw Error(i(301));if(d+=1,mt=Ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=Lg,f=t(l,s)}while(Kr);return f}function lE(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?xs(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(_e.flags|=1024),t}function Xd(){var e=Jo!==0;return Jo=0,e}function Fd(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Zd(e){if(Po){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Po=!1}xa=0,mt=Ze=_e=null,Kr=!1,ys=Jo=0,Xr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?_e.memoizedState=mt=e:mt=mt.next=e,mt}function dt(){if(Ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=mt===null?_e.memoizedState:mt.next;if(t!==null)mt=t,Ze=e;else{if(e===null)throw _e.alternate===null?Error(i(467)):Error(i(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},mt===null?_e.memoizedState=mt=e:mt=mt.next=e}return mt}function Wo(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xs(e){var t=ys;return ys+=1,Xr===null&&(Xr=[]),e=Yv(Xr,e,t),t=_e,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?zg:of),e}function Io(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return xs(e);if(e.$$typeof===R)return At(e)}throw Error(i(438,String(e)))}function Pd(e){var t=null,l=_e.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=_e.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Wo(),_e.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),s=0;s<e;s++)l[s]=te;return t.index++,l}function ba(e,t){return typeof t=="function"?t(e):t}function eu(e){var t=dt();return Jd(t,Ze,e)}function Jd(e,t,l){var s=e.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=l;var d=e.baseQueue,f=s.pending;if(f!==null){if(d!==null){var b=d.next;d.next=f.next,f.next=b}t.baseQueue=d=f,s.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 J=Q.lane&-536870913;if(J!==Q.lane?(ze&J)===J:(xa&J)===J){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}),J===Qr&&(Z=!0);else if((xa&$)===$){Q=Q.next,$===Qr&&(Z=!0);continue}else J={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(N=M=J,b=f):M=M.next=J,_e.lanes|=$,ll|=$;J=Q.action,Pl&&l(f,J),f=Q.hasEagerState?Q.eagerState:l(f,J)}else $={lane:J,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|=J,ll|=J;Q=Q.next}while(Q!==null&&Q!==t);if(M===null?b=f:M.next=N,!tn(f,e.memoizedState)&&(pt=!0,Z&&(l=$r,l!==null)))throw l;e.memoizedState=f,e.baseState=b,e.baseQueue=M,s.lastRenderedState=f}return d===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function Wd(e){var t=dt(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var s=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);tn(f,t.memoizedState)||(pt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,s]}function tg(e,t,l){var s=_e,d=dt(),f=Ue;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var b=!tn((Ze||d).memoizedState,l);if(b&&(d.memoizedState=l,pt=!0),d=d.queue,tf(lg.bind(null,s,d,e),[e]),d.getSnapshot!==t||b||mt!==null&&mt.memoizedState.tag&1){if(s.flags|=2048,Fr(9,{destroy:void 0},ag.bind(null,s,d,l,t),null),We===null)throw Error(i(349));f||(xa&127)!==0||ng(s,t,l)}return l}function ng(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=_e.updateQueue,t===null?(t=Wo(),_e.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function ag(e,t,l,s){t.value=l,t.getSnapshot=s,rg(t)&&ig(e)}function lg(e,t,l){return l(function(){rg(t)&&ig(e)})}function rg(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!tn(e,l)}catch{return!0}}function ig(e){var t=Ql(e,2);t!==null&&Xt(t,e,2)}function Id(e){var t=Ut();if(typeof e=="function"){var l=e;if(e=l(),Pl){Ya(!0);try{l()}finally{Ya(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t}function sg(e,t,l,s){return e.baseState=l,Jd(e,Ze,typeof s=="function"?s:ba)}function rE(e,t,l,s,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)}};U.T!==null?l(!0):f.isTransition=!1,s(f),l=t.pending,l===null?(f.next=t.pending=f,og(t,f)):(f.next=l.next,t.pending=l.next=f)}}function og(e,t){var l=t.action,s=t.payload,d=e.state;if(t.isTransition){var f=U.T,b={};U.T=b;try{var N=l(d,s),M=U.S;M!==null&&M(b,N),ug(e,t,N)}catch(Q){ef(e,t,Q)}finally{f!==null&&b.types!==null&&(f.types=b.types),U.T=f}}else try{f=l(d,s),ug(e,t,f)}catch(Q){ef(e,t,Q)}}function ug(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){cg(e,t,s)},function(s){return ef(e,t,s)}):cg(e,t,l)}function cg(e,t,l){t.status="fulfilled",t.value=l,dg(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,og(e,l)))}function ef(e,t,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,dg(t),t=t.next;while(t!==s)}e.action=null}function dg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function fg(e,t){return t}function hg(e,t){if(Ue){var l=We.formState;if(l!==null){e:{var s=_e;if(Ue){if(Ie){t:{for(var d=Ie,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){Ie=wn(d.nextSibling),s=d.data==="F!";break e}}Za(s)}s=!1}s&&(t=l[0])}}return l=Ut(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fg,lastRenderedState:t},l.queue=s,l=kg.bind(null,_e,s),s.dispatch=l,s=Id(!1),f=sf.bind(null,_e,!1,s.queue),s=Ut(),d={state:t,dispatch:null,action:e,pending:null},s.queue=d,l=rE.bind(null,_e,d,f,l),d.dispatch=l,s.memoizedState=e,[t,l,!1]}function mg(e){var t=dt();return pg(t,Ze,e)}function pg(e,t,l){if(t=Jd(e,t,fg)[0],e=eu(ba)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=xs(t)}catch(b){throw b===Gr?Yo:b}else s=t;t=dt();var d=t.queue,f=d.dispatch;return l!==t.memoizedState&&(_e.flags|=2048,Fr(9,{destroy:void 0},iE.bind(null,d,l),null)),[s,f,e]}function iE(e,t){e.action=t}function vg(e){var t=dt(),l=Ze;if(l!==null)return pg(t,l,e);dt(),t=t.memoizedState,l=dt();var s=l.queue.dispatch;return l.memoizedState=e,[t,s,!1]}function Fr(e,t,l,s){return e={tag:e,create:l,deps:s,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Wo(),_e.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,t.lastEffect=e),e}function gg(){return dt().memoizedState}function tu(e,t,l,s){var d=Ut();_e.flags|=e,d.memoizedState=Fr(1|t,{destroy:void 0},l,s===void 0?null:s)}function nu(e,t,l,s){var d=dt();s=s===void 0?null:s;var f=d.memoizedState.inst;Ze!==null&&s!==null&&Vd(s,Ze.memoizedState.deps)?d.memoizedState=Fr(t,f,l,s):(_e.flags|=e,d.memoizedState=Fr(1|t,f,l,s))}function yg(e,t){tu(8390656,8,e,t)}function tf(e,t){nu(2048,8,e,t)}function sE(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Wo(),_e.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function xg(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 bg(e,t){return nu(4,2,e,t)}function wg(e,t){return nu(4,4,e,t)}function jg(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 Sg(e,t,l){l=l!=null?l.concat([e]):null,nu(4,4,jg.bind(null,t,e),l)}function nf(){}function Eg(e,t){var l=dt();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&Vd(t,s[1])?s[0]:(l.memoizedState=[e,t],e)}function Ng(e,t){var l=dt();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&Vd(t,s[1]))return s[0];if(s=e(),Pl){Ya(!0);try{e()}finally{Ya(!1)}}return l.memoizedState=[s,t],s}function af(e,t,l){return l===void 0||(xa&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Cy(),_e.lanes|=e,ll|=e,l)}function Cg(e,t,l,s){return tn(l,t)?l:Vr.current!==null?(e=af(e,l,s),tn(e,t)||(pt=!0),e):(xa&42)===0||(xa&1073741824)!==0&&(ze&261930)===0?(pt=!0,e.memoizedState=l):(e=Cy(),_e.lanes|=e,ll|=e,t)}function _g(e,t,l,s,d){var f=W.p;W.p=f!==0&&8>f?f:8;var b=U.T,N={};U.T=N,sf(e,!1,t,l);try{var M=d(),Q=U.S;if(Q!==null&&Q(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Z=nE(M,s);bs(e,t,Z,on(e))}else bs(e,t,s,on(e))}catch(J){bs(e,t,{then:function(){},status:"rejected",reason:J},on())}finally{W.p=f,b!==null&&N.types!==null&&(b.types=N.types),U.T=b}}function oE(){}function lf(e,t,l,s){if(e.tag!==5)throw Error(i(476));var d=Tg(e).queue;_g(e,d,t,Y,l===null?oE:function(){return Rg(e),l(s)})}function Tg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:Y},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Rg(e){var t=Tg(e);t.next===null&&(t=e.alternate.memoizedState),bs(e,t.next.queue,{},on())}function rf(){return At(Us)}function Mg(){return dt().memoizedState}function Ag(){return dt().memoizedState}function uE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=on();e=Wa(l);var s=Ia(t,e,l);s!==null&&(Xt(s,t,l),ps(s,t,l)),t={cache:Od()},e.payload=t;return}t=t.return}}function cE(e,t,l){var s=on();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},au(e)?Dg(t,l):(l=Sd(e,t,l,s),l!==null&&(Xt(l,e,s),Og(l,t,s)))}function kg(e,t,l){var s=on();bs(e,t,l,s)}function bs(e,t,l,s){var d={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(au(e))Dg(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,tn(N,b))return Uo(e,t,d,0),We===null&&Lo(),!1}catch{}finally{}if(l=Sd(e,t,d,s),l!==null)return Xt(l,e,s),Og(l,t,s),!0}return!1}function sf(e,t,l,s){if(s={lane:2,revertLane:Hf(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},au(e)){if(t)throw Error(i(479))}else t=Sd(e,l,s,2),t!==null&&Xt(t,e,2)}function au(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Dg(e,t){Kr=Po=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Og(e,t,l){if((l&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,Hp(e,l)}}var ws={readContext:At,use:Io,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};ws.useEffectEvent=rt;var zg={readContext:At,use:Io,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:At,useEffect:yg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,tu(4194308,4,jg.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 s=e();if(Pl){Ya(!0);try{e()}finally{Ya(!1)}}return l.memoizedState=[s,t],s},useReducer:function(e,t,l){var s=Ut();if(l!==void 0){var d=l(t);if(Pl){Ya(!0);try{l(t)}finally{Ya(!1)}}}else d=t;return s.memoizedState=s.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},s.queue=e,e=e.dispatch=cE.bind(null,_e,e),[s.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=Id(e);var t=e.queue,l=kg.bind(null,_e,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:nf,useDeferredValue:function(e,t){var l=Ut();return af(l,e,t)},useTransition:function(){var e=Id(!1);return e=_g.bind(null,_e,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var s=_e,d=Ut();if(Ue){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),We===null)throw Error(i(349));(ze&127)!==0||ng(s,t,l)}d.memoizedState=l;var f={value:l,getSnapshot:t};return d.queue=f,yg(lg.bind(null,s,f,e),[e]),s.flags|=2048,Fr(9,{destroy:void 0},ag.bind(null,s,f,l,t),null),l},useId:function(){var e=Ut(),t=We.identifierPrefix;if(Ue){var l=Kn,s=Vn;l=(s&~(1<<32-en(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Jo++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=aE++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rf,useFormState:hg,useActionState:hg,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=sf.bind(null,_e,!0,l),l.dispatch=t,[e,t]},useMemoCache:Pd,useCacheRefresh:function(){return Ut().memoizedState=uE.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)}}},of={readContext:At,use:Io,useCallback:Eg,useContext:At,useEffect:tf,useImperativeHandle:Sg,useInsertionEffect:bg,useLayoutEffect:wg,useMemo:Ng,useReducer:eu,useRef:gg,useState:function(){return eu(ba)},useDebugValue:nf,useDeferredValue:function(e,t){var l=dt();return Cg(l,Ze.memoizedState,e,t)},useTransition:function(){var e=eu(ba)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:xs(e),t]},useSyncExternalStore:tg,useId:Mg,useHostTransitionStatus:rf,useFormState:mg,useActionState:mg,useOptimistic:function(e,t){var l=dt();return sg(l,Ze,e,t)},useMemoCache:Pd,useCacheRefresh:Ag};of.useEffectEvent=xg;var Lg={readContext:At,use:Io,useCallback:Eg,useContext:At,useEffect:tf,useImperativeHandle:Sg,useInsertionEffect:bg,useLayoutEffect:wg,useMemo:Ng,useReducer:Wd,useRef:gg,useState:function(){return Wd(ba)},useDebugValue:nf,useDeferredValue:function(e,t){var l=dt();return Ze===null?af(l,e,t):Cg(l,Ze.memoizedState,e,t)},useTransition:function(){var e=Wd(ba)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:xs(e),t]},useSyncExternalStore:tg,useId:Mg,useHostTransitionStatus:rf,useFormState:vg,useActionState:vg,useOptimistic:function(e,t){var l=dt();return Ze!==null?sg(l,Ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Pd,useCacheRefresh:Ag};Lg.useEffectEvent=xg;function uf(e,t,l,s){t=e.memoizedState,l=l(s,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var cf={enqueueSetState:function(e,t,l){e=e._reactInternals;var s=on(),d=Wa(s);d.payload=t,l!=null&&(d.callback=l),t=Ia(e,d,s),t!==null&&(Xt(t,e,s),ps(t,e,s))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var s=on(),d=Wa(s);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Ia(e,d,s),t!==null&&(Xt(t,e,s),ps(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=on(),s=Wa(l);s.tag=2,t!=null&&(s.callback=t),t=Ia(e,s,l),t!==null&&(Xt(t,e,l),ps(t,e,l))}};function Ug(e,t,l,s,d,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,b):t.prototype&&t.prototype.isPureReactComponent?!ss(l,s)||!ss(d,f):!0}function qg(e,t,l,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==e&&cf.enqueueReplaceState(t,t.state,null)}function Jl(e,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function Hg(e){zo(e)}function Bg(e){console.error(e)}function Qg(e){zo(e)}function lu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function $g(e,t,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function df(e,t,l){return l=Wa(l),l.tag=3,l.payload={element:null},l.callback=function(){lu(e,t)},l}function Gg(e){return e=Wa(e),e.tag=3,e}function Yg(e,t,l,s){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var f=s.value;e.payload=function(){return d(f)},e.callback=function(){$g(t,l,s)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){$g(t,l,s),typeof d!="function"&&(rl===null?rl=new Set([this]):rl.add(this));var N=s.stack;this.componentDidCatch(s.value,{componentStack:N!==null?N:""})})}function dE(e,t,l,s,d){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&Br(t,l,d,!0),l=an.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,s===Vo?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),Lf(e,s,d)),!1;case 22:return l.flags|=65536,s===Vo?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),Lf(e,s,d)),!1}throw Error(i(435,l.tag))}return Lf(e,s,d),vu(),!1}if(Ue)return t=an.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,s!==Rd&&(e=Error(i(422),{cause:s}),cs(vn(e,l)))):(s!==Rd&&(t=Error(i(423),{cause:s}),cs(vn(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,s=vn(s,l),d=df(e.stateNode,s,d),Bd(e,d),it!==4&&(it=2)),!1;var f=Error(i(520),{cause:s});if(f=vn(f,l),Rs===null?Rs=[f]:Rs.push(f),it!==4&&(it=2),t===null)return!0;s=vn(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=df(l.stateNode,s,e),Bd(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"&&(rl===null||!rl.has(f))))return l.flags|=65536,d&=-d,l.lanes|=d,d=Gg(d),Yg(d,e,l,s),Bd(l,d),!1}l=l.return}while(l!==null);return!1}var ff=Error(i(461)),pt=!1;function kt(e,t,l,s){t.child=e===null?Fv(t,null,l,s):Zl(t,e.child,l,s)}function Vg(e,t,l,s,d){l=l.render;var f=t.ref;if("ref"in s){var b={};for(var N in s)N!=="ref"&&(b[N]=s[N])}else b=s;return Vl(t),s=Kd(e,t,l,b,f,d),N=Xd(),e!==null&&!pt?(Fd(e,t,d),wa(e,t,d)):(Ue&&N&&_d(t),t.flags|=1,kt(e,t,s,d),t.child)}function Kg(e,t,l,s,d){if(e===null){var f=l.type;return typeof f=="function"&&!Ed(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Xg(e,t,f,s,d)):(e=Ho(l.type,null,s,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!bf(e,d)){var b=f.memoizedProps;if(l=l.compare,l=l!==null?l:ss,l(b,s)&&e.ref===t.ref)return wa(e,t,d)}return t.flags|=1,e=pa(f,s),e.ref=t.ref,e.return=t,t.child=e}function Xg(e,t,l,s,d){if(e!==null){var f=e.memoizedProps;if(ss(f,s)&&e.ref===t.ref)if(pt=!1,t.pendingProps=s=f,bf(e,d))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,wa(e,t,d)}return hf(e,t,l,s,d)}function Fg(e,t,l,s){var d=s.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(s=t.child=e.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;s=d&~f}else s=0,t.child=null;return Zg(e,t,f,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Go(t,f!==null?f.cachePool:null),f!==null?Jv(t,f):$d(),Wv(t);else return s=t.lanes=536870912,Zg(e,t,f!==null?f.baseLanes|l:l,l,s)}else f!==null?(Go(t,f.cachePool),Jv(t,f),tl(),t.memoizedState=null):(e!==null&&Go(t,null),$d(),tl());return kt(e,t,d,l),t.child}function js(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zg(e,t,l,s,d){var f=Ld();return f=f===null?null:{parent:ht._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Go(t,null),$d(),Wv(t),e!==null&&Br(e,t,s,!0),t.childLanes=d,null}function ru(e,t){return t=su({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Pg(e,t,l){return Zl(t,e.child,null,l),e=ru(t,t.pendingProps),e.flags|=2,ln(t),t.memoizedState=null,e}function fE(e,t,l){var s=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(s.mode==="hidden")return e=ru(t,s),t.lanes=536870912,js(null,e);if(Yd(t),(e=Ie)?(e=o0(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=Dv(e),l.return=t,t.child=l,Mt=t,Ie=null)):e=null,e===null)throw Za(t);return t.lanes=536870912,null}return ru(t,s)}var f=e.memoizedState;if(f!==null){var b=f.dehydrated;if(Yd(t),d)if(t.flags&256)t.flags&=-257,t=Pg(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(pt||Br(e,t,l,!1),d=(l&e.childLanes)!==0,pt||d){if(s=We,s!==null&&(b=Bp(s,l),b!==0&&b!==f.retryLane))throw f.retryLane=b,Ql(e,b),Xt(s,e,b),ff;vu(),t=Pg(e,t,l)}else e=f.treeContext,Ie=wn(b.nextSibling),Mt=t,Ue=!0,Fa=null,xn=!1,e!==null&&Lv(t,e),t=ru(t,s),t.flags|=4096;return t}return e=pa(e.child,{mode:s.mode,children:s.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 hf(e,t,l,s,d){return Vl(t),l=Kd(e,t,l,s,void 0,d),s=Xd(),e!==null&&!pt?(Fd(e,t,d),wa(e,t,d)):(Ue&&s&&_d(t),t.flags|=1,kt(e,t,l,d),t.child)}function Jg(e,t,l,s,d,f){return Vl(t),t.updateQueue=null,l=eg(t,s,l,d),Iv(e),s=Xd(),e!==null&&!pt?(Fd(e,t,f),wa(e,t,f)):(Ue&&s&&_d(t),t.flags|=1,kt(e,t,l,f),t.child)}function Wg(e,t,l,s,d){if(Vl(t),t.stateNode===null){var f=Lr,b=l.contextType;typeof b=="object"&&b!==null&&(f=At(b)),f=new l(s,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=cf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=s,f.state=t.memoizedState,f.refs={},qd(t),b=l.contextType,f.context=typeof b=="object"&&b!==null?At(b):Lr,f.state=t.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(uf(t,l,b,s),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&&cf.enqueueReplaceState(f,f.state,null),gs(t,s,f,d),vs(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){f=t.stateNode;var N=t.memoizedProps,M=Jl(l,N);f.props=M;var Q=f.context,Z=l.contextType;b=Lr,typeof Z=="object"&&Z!==null&&(b=At(Z));var J=l.getDerivedStateFromProps;Z=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,Z||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(N||Q!==b)&&qg(t,f,s,b),Ja=!1;var $=t.memoizedState;f.state=$,gs(t,s,f,d),vs(),Q=t.memoizedState,N||$!==Q||Ja?(typeof J=="function"&&(uf(t,l,J,s),Q=t.memoizedState),(M=Ja||Ug(t,l,M,s,$,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=s,t.memoizedState=Q),f.props=s,f.state=Q,f.context=b,s=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,Hd(e,t),b=t.memoizedProps,Z=Jl(l,b),f.props=Z,J=t.pendingProps,$=f.context,Q=l.contextType,M=Lr,typeof Q=="object"&&Q!==null&&(M=At(Q)),N=l.getDerivedStateFromProps,(Q=typeof N=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==J||$!==M)&&qg(t,f,s,M),Ja=!1,$=t.memoizedState,f.state=$,gs(t,s,f,d),vs();var V=t.memoizedState;b!==J||$!==V||Ja||e!==null&&e.dependencies!==null&&Qo(e.dependencies)?(typeof N=="function"&&(uf(t,l,N,s),V=t.memoizedState),(Z=Ja||Ug(t,l,Z,s,$,V,M)||e!==null&&e.dependencies!==null&&Qo(e.dependencies))?(Q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,V,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,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=s,t.memoizedState=V),f.props=s,f.state=V,f.context=M,s=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),s=!1)}return f=s,iu(e,t),s=(t.flags&128)!==0,f||s?(f=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&s?(t.child=Zl(t,e.child,null,d),t.child=Zl(t,null,l,d)):kt(e,t,l,d),t.memoizedState=f.state,e=t.child):e=wa(e,t,d),e}function Ig(e,t,l,s){return Gl(),t.flags|=256,kt(e,t,l,s),t.child}var mf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pf(e){return{baseLanes:e,cachePool:$v()}}function vf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=sn),e}function ey(e,t,l){var s=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?el(t):tl(),(e=Ie)?(e=o0(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=Dv(e),l.return=t,t.child=l,Mt=t,Ie=null)):e=null,e===null)throw Za(t);return Wf(e)?t.lanes=32:t.lanes=536870912,null}var N=s.children;return s=s.fallback,d?(tl(),d=t.mode,N=su({mode:"hidden",children:N},d),s=$l(s,d,l,null),N.return=t,s.return=t,N.sibling=s,t.child=N,s=t.child,s.memoizedState=pf(l),s.childLanes=vf(e,b,l),t.memoizedState=mf,js(null,s)):(el(t),gf(t,N))}var M=e.memoizedState;if(M!==null&&(N=M.dehydrated,N!==null)){if(f)t.flags&256?(el(t),t.flags&=-257,t=yf(e,t,l)):t.memoizedState!==null?(tl(),t.child=e.child,t.flags|=128,t=null):(tl(),N=s.fallback,d=t.mode,s=su({mode:"visible",children:s.children},d),N=$l(N,d,l,null),N.flags|=2,s.return=t,N.return=t,s.sibling=N,t.child=s,Zl(t,e.child,null,l),s=t.child,s.memoizedState=pf(l),s.childLanes=vf(e,b,l),t.memoizedState=mf,t=js(null,s));else if(el(t),Wf(N)){if(b=N.nextSibling&&N.nextSibling.dataset,b)var Q=b.dgst;b=Q,s=Error(i(419)),s.stack="",s.digest=b,cs({value:s,source:null,stack:null}),t=yf(e,t,l)}else if(pt||Br(e,t,l,!1),b=(l&e.childLanes)!==0,pt||b){if(b=We,b!==null&&(s=Bp(b,l),s!==0&&s!==M.retryLane))throw M.retryLane=s,Ql(e,s),Xt(b,e,s),ff;Jf(N)||vu(),t=yf(e,t,l)}else Jf(N)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Ie=wn(N.nextSibling),Mt=t,Ue=!0,Fa=null,xn=!1,e!==null&&Lv(t,e),t=gf(t,s.children),t.flags|=4096);return t}return d?(tl(),N=s.fallback,d=t.mode,M=e.child,Q=M.sibling,s=pa(M,{mode:"hidden",children:s.children}),s.subtreeFlags=M.subtreeFlags&65011712,Q!==null?N=pa(Q,N):(N=$l(N,d,l,null),N.flags|=2),N.return=t,s.return=t,s.sibling=N,t.child=s,js(null,s),s=t.child,N=e.child.memoizedState,N===null?N=pf(l):(d=N.cachePool,d!==null?(M=ht._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=$v(),N={baseLanes:N.baseLanes|l,cachePool:d}),s.memoizedState=N,s.childLanes=vf(e,b,l),t.memoizedState=mf,js(e.child,s)):(el(t),l=e.child,e=l.sibling,l=pa(l,{mode:"visible",children:s.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 gf(e,t){return t=su({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function su(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function yf(e,t,l){return Zl(t,e.child,null,l),e=gf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ty(e,t,l){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),kd(e.return,t,l)}function xf(e,t,l,s,d,f){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:d,treeForkCount:f}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=s,b.tail=l,b.tailMode=d,b.treeForkCount=f)}function ny(e,t,l){var s=t.pendingProps,d=s.revealOrder,f=s.tail;s=s.children;var b=ct.current,N=(b&2)!==0;if(N?(b=b&1|2,t.flags|=128):b&=1,ee(ct,b),kt(e,t,s,l),s=Ue?us:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ty(e,l,t);else if(e.tag===19)ty(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&&Zo(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),xf(t,!1,d,l,f,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&Zo(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}xf(t,!0,l,null,f,s);break;case"together":xf(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function wa(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ll|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Br(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=pa(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=pa(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function bf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qo(e)))}function hE(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Pa(t,ht,e.memoizedState.cache),Gl();break;case 27:case 5:Ne(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Yd(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(el(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ey(e,t,l):(el(t),e=wa(e,t,l),e!==null?e.sibling:null);el(t);break;case 19:var d=(e.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(Br(e,t,l,!1),s=(l&t.childLanes)!==0),d){if(s)return ny(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ee(ct,ct.current),s)break;return null;case 22:return t.lanes=0,Fg(e,t,l,t.pendingProps);case 24:Pa(t,ht,e.memoizedState.cache)}return wa(e,t,l)}function ay(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!bf(e,l)&&(t.flags&128)===0)return pt=!1,hE(e,t,l);pt=(e.flags&131072)!==0}else pt=!1,Ue&&(t.flags&1048576)!==0&&zv(t,us,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Xl(t.elementType),t.type=e,typeof e=="function")Ed(e)?(s=Jl(e,s),t.tag=1,t=Wg(null,t,e,s,l)):(t.tag=0,t=hf(null,t,e,s,l));else{if(e!=null){var d=e.$$typeof;if(d===D){t.tag=11,t=Vg(null,t,e,s,l);break e}else if(d===H){t.tag=14,t=Kg(null,t,e,s,l);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return hf(e,t,t.type,t.pendingProps,l);case 1:return s=t.type,d=Jl(s,t.pendingProps),Wg(e,t,s,d,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));s=t.pendingProps;var f=t.memoizedState;d=f.element,Hd(e,t),gs(t,s,null,l);var b=t.memoizedState;if(s=b.cache,Pa(t,ht,s),s!==f.cache&&Dd(t,[ht],l,!0),vs(),s=b.element,f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Ig(e,t,s,l);break e}else if(s!==d){d=vn(Error(i(424)),t),cs(d),t=Ig(e,t,s,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(Ie=wn(e.firstChild),Mt=t,Ue=!0,Fa=null,xn=!0,l=Fv(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Gl(),s===d){t=wa(e,t,l);break e}kt(e,t,s,l)}t=t.child}return t;case 26:return iu(e,t),e===null?(l=m0(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ue||(l=t.type,e=t.pendingProps,s=Su(Se.current).createElement(l),s[Rt]=t,s[Qt]=e,Dt(s,l,e),Nt(s),t.stateNode=s):t.memoizedState=m0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&Ue&&(s=t.stateNode=d0(t.type,t.pendingProps,Se.current),Mt=t,xn=!0,d=Ie,ul(t.type)?(If=d,Ie=wn(s.firstChild)):Ie=d),kt(e,t,t.pendingProps.children,l),iu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((d=s=Ie)&&(s=GE(s,t.type,t.pendingProps,xn),s!==null?(t.stateNode=s,Mt=t,Ie=wn(s.firstChild),xn=!1,d=!0):d=!1),d||Za(t)),Ne(t),d=t.type,f=t.pendingProps,b=e!==null?e.memoizedProps:null,s=f.children,Ff(d,f)?s=null:b!==null&&Ff(d,b)&&(t.flags|=32),t.memoizedState!==null&&(d=Kd(e,t,lE,null,null,l),Us._currentValue=d),iu(e,t),kt(e,t,s,l),t.child;case 6:return e===null&&Ue&&((e=l=Ie)&&(l=YE(l,t.pendingProps,xn),l!==null?(t.stateNode=l,Mt=t,Ie=null,e=!0):e=!1),e||Za(t)),null;case 13:return ey(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Zl(t,null,s,l):kt(e,t,s,l),t.child;case 11:return Vg(e,t,t.type,t.pendingProps,l);case 7:return kt(e,t,t.pendingProps,l),t.child;case 8:return kt(e,t,t.pendingProps.children,l),t.child;case 12:return kt(e,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,Pa(t,t.type,s.value),kt(e,t,s.children,l),t.child;case 9:return d=t.type._context,s=t.pendingProps.children,Vl(t),d=At(d),s=s(d),t.flags|=1,kt(e,t,s,l),t.child;case 14:return Kg(e,t,t.type,t.pendingProps,l);case 15:return Xg(e,t,t.type,t.pendingProps,l);case 19:return ny(e,t,l);case 31:return fE(e,t,l);case 22:return Fg(e,t,l,t.pendingProps);case 24:return Vl(t),s=At(ht),e===null?(d=Ld(),d===null&&(d=We,f=Od(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=l),d=f),t.memoizedState={parent:s,cache:d},qd(t),Pa(t,ht,d)):((e.lanes&l)!==0&&(Hd(e,t),gs(t,null,null,l),vs()),d=e.memoizedState,f=t.memoizedState,d.parent!==s?(d={parent:s,cache:s},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Pa(t,ht,s)):(s=f.cache,Pa(t,ht,s),s!==d.cache&&Dd(t,[ht],l,!0))),kt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ja(e){e.flags|=4}function wf(e,t,l,s,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(My())e.flags|=8192;else throw Fl=Vo,Ud}else e.flags&=-16777217}function ly(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!x0(t))if(My())e.flags|=8192;else throw Fl=Vo,Ud}function ou(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Up():536870912,e.lanes|=t,Wr|=t)}function Ss(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 s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=s,e.childLanes=l,t}function mE(e,t,l){var s=t.pendingProps;switch(Td(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,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),ya(ht),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Hr(t)?ja(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Md())),et(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(ja(t),f!==null?(et(t),ly(t,f)):(et(t),wf(t,d,null,s,l))):f?f!==e.memoizedState?(ja(t),et(t),ly(t,f)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&ja(t),et(t),wf(t,d,e,s,l)),null;case 27:if(He(t),l=Se.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ja(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return et(t),null}e=le.current,Hr(t)?Uv(t):(e=d0(d,s,l),t.stateNode=e,ja(t))}return et(t),null;case 5:if(He(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ja(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return et(t),null}if(f=le.current,Hr(t))Uv(t);else{var b=Su(Se.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 s.is=="string"?b.createElement("select",{is:s.is}):b.createElement("select"),s.multiple?f.multiple=!0:s.size&&(f.size=s.size);break;default:f=typeof s.is=="string"?b.createElement(d,{is:s.is}):b.createElement(d)}}f[Rt]=t,f[Qt]=s;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(Dt(f,d,s),d){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&ja(t)}}return et(t),wf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&ja(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(e=Se.current,Hr(t)){if(e=t.stateNode,l=t.memoizedProps,s=null,d=Mt,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}e[Rt]=t,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||e0(e.nodeValue,l)),e||Za(t,!0)}else e=Su(e).createTextNode(s),e[Rt]=t,t.stateNode=e}return et(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(s=Hr(t),l!==null){if(e===null){if(!s)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Rt]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else l=Md(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ln(t),t):(ln(t),null);if((t.flags&128)!==0)throw Error(i(558))}return et(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Hr(t),s!==null&&s.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[Rt]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),d=!1}else d=Md(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(ln(t),t):(ln(t),null)}return ln(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=t.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool),f=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==d&&(s.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ou(t,t.updateQueue),et(t),null);case 4:return ye(),e===null&&Gf(t.stateNode.containerInfo),et(t),null;case 10:return ya(t.type),et(t),null;case 19:if(F(ct),s=t.memoizedState,s===null)return et(t),null;if(d=(t.flags&128)!==0,f=s.rendering,f===null)if(d)Ss(s,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Zo(e),f!==null){for(t.flags|=128,Ss(s,!1),e=f.updateQueue,t.updateQueue=e,ou(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)kv(l,e),l=l.sibling;return ee(ct,ct.current&1|2),Ue&&va(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&Wt()>hu&&(t.flags|=128,d=!0,Ss(s,!1),t.lanes=4194304)}else{if(!d)if(e=Zo(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,ou(t,e),Ss(s,!0),s.tail===null&&s.tailMode==="hidden"&&!f.alternate&&!Ue)return et(t),null}else 2*Wt()-s.renderingStartTime>hu&&l!==536870912&&(t.flags|=128,d=!0,Ss(s,!1),t.lanes=4194304);s.isBackwards?(f.sibling=t.child,t.child=f):(e=s.last,e!==null?e.sibling=f:t.child=f,s.last=f)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=Wt(),e.sibling=null,l=ct.current,ee(ct,d?l&1|2:l&1),Ue&&va(t,s.treeForkCount),e):(et(t),null);case 22:case 23:return ln(t),Gd(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),l=t.updateQueue,l!==null&&ou(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),e!==null&&F(Kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ya(ht),et(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function pE(e,t){switch(Td(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(ht),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return He(t),null;case 31:if(t.memoizedState!==null){if(ln(t),t.alternate===null)throw Error(i(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ln(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Gl()}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 ya(t.type),null;case 22:case 23:return ln(t),Gd(),e!==null&&F(Kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ya(ht),null;case 25:return null;default:return null}}function ry(e,t){switch(Td(t),t.tag){case 3:ya(ht),ye();break;case 26:case 27:case 5:He(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&ln(t);break;case 13:ln(t);break;case 19:F(ct);break;case 10:ya(t.type);break;case 22:case 23:ln(t),Gd(),e!==null&&F(Kl);break;case 24:ya(ht)}}function Es(e,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var d=s.next;l=d;do{if((l.tag&e)===e){s=void 0;var f=l.create,b=l.inst;s=f(),b.destroy=s}l=l.next}while(l!==d)}}catch(N){Ke(t,t.return,N)}}function nl(e,t,l){try{var s=t.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var f=d.next;s=f;do{if((s.tag&e)===e){var b=s.inst,N=b.destroy;if(N!==void 0){b.destroy=void 0,d=t;var M=l,Q=N;try{Q()}catch(Z){Ke(d,M,Z)}}}s=s.next}while(s!==f)}}catch(Z){Ke(t,t.return,Z)}}function iy(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Pv(t,l)}catch(s){Ke(e,e.return,s)}}}function sy(e,t,l){l.props=Jl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){Ke(e,t,s)}}function Ns(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(d){Ke(e,t,d)}}function Xn(e,t){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(d){Ke(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){Ke(e,t,d)}else l.current=null}function oy(e){var t=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(d){Ke(e,e.return,d)}}function jf(e,t,l){try{var s=e.stateNode;UE(s,e.type,l,t),s[Qt]=t}catch(d){Ke(e,e.return,d)}}function uy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ul(e.type)||e.tag===4}function Sf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||uy(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&&ul(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 Ef(e,t,l){var s=e.tag;if(s===5||s===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=ha));else if(s!==4&&(s===27&&ul(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ef(e,t,l),e=e.sibling;e!==null;)Ef(e,t,l),e=e.sibling}function uu(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(s!==4&&(s===27&&ul(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 cy(e){var t=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);Dt(t,s,l),t[Rt]=e,t[Qt]=l}catch(f){Ke(e,e.return,f)}}var Sa=!1,vt=!1,Nf=!1,dy=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function vE(e,t){if(e=e.containerInfo,Kf=Mu,e=Sv(e),gd(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var d=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var b=0,N=-1,M=-1,Q=0,Z=0,J=e,$=null;t:for(;;){for(var V;J!==l||d!==0&&J.nodeType!==3||(N=b+d),J!==f||s!==0&&J.nodeType!==3||(M=b+s),J.nodeType===3&&(b+=J.nodeValue.length),(V=J.firstChild)!==null;)$=J,J=V;for(;;){if(J===e)break t;if($===l&&++Q===d&&(N=b),$===f&&++Z===s&&(M=b),(V=J.nextSibling)!==null)break;J=$,$=J.parentNode}J=V}l=N===-1||M===-1?null:{start:N,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Xf={focusedElem:e,selectionRange:l},Mu=!1,Ct=t;Ct!==null;)if(t=Ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ct=e;else for(;Ct!==null;){switch(t=Ct,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,s=l.stateNode;try{var fe=Jl(l.type,d);e=s.getSnapshotBeforeUpdate(fe,f),s.__reactInternalSnapshotBeforeUpdate=e}catch(je){Ke(l,l.return,je)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Pf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pf(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,Ct=e;break}Ct=t.return}}function fy(e,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Na(e,l),s&4&&Es(5,l);break;case 1:if(Na(e,l),s&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(b){Ke(l,l.return,b)}else{var d=Jl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ke(l,l.return,b)}}s&64&&iy(l),s&512&&Ns(l,l.return);break;case 3:if(Na(e,l),s&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{Pv(e,t)}catch(b){Ke(l,l.return,b)}}break;case 27:t===null&&s&4&&cy(l);case 26:case 5:Na(e,l),t===null&&s&4&&oy(l),s&512&&Ns(l,l.return);break;case 12:Na(e,l);break;case 31:Na(e,l),s&4&&py(e,l);break;case 13:Na(e,l),s&4&&vy(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=NE.bind(null,l),VE(e,l))));break;case 22:if(s=l.memoizedState!==null||Sa,!s){t=t!==null&&t.memoizedState!==null||vt,d=Sa;var f=vt;Sa=s,(vt=t)&&!f?Ca(e,l,(l.subtreeFlags&8772)!==0):Na(e,l),Sa=d,vt=f}break;case 30:break;default:Na(e,l)}}function hy(e){var t=e.alternate;t!==null&&(e.alternate=null,hy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ed(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,Gt=!1;function Ea(e,t,l){for(l=l.child;l!==null;)my(e,t,l),l=l.sibling}function my(e,t,l){if(It&&typeof It.onCommitFiberUnmount=="function")try{It.onCommitFiberUnmount(Zi,l)}catch{}switch(l.tag){case 26:vt||Xn(l,t),Ea(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:vt||Xn(l,t);var s=tt,d=Gt;ul(l.type)&&(tt=l.stateNode,Gt=!1),Ea(e,t,l),Os(l.stateNode),tt=s,Gt=d;break;case 5:vt||Xn(l,t);case 6:if(s=tt,d=Gt,tt=null,Ea(e,t,l),tt=s,Gt=d,tt!==null)if(Gt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(l.stateNode)}catch(f){Ke(l,t,f)}else try{tt.removeChild(l.stateNode)}catch(f){Ke(l,t,f)}break;case 18:tt!==null&&(Gt?(e=tt,i0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ii(e)):i0(tt,l.stateNode));break;case 4:s=tt,d=Gt,tt=l.stateNode.containerInfo,Gt=!0,Ea(e,t,l),tt=s,Gt=d;break;case 0:case 11:case 14:case 15:nl(2,l,t),vt||nl(4,l,t),Ea(e,t,l);break;case 1:vt||(Xn(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&sy(l,t,s)),Ea(e,t,l);break;case 21:Ea(e,t,l);break;case 22:vt=(s=vt)||l.memoizedState!==null,Ea(e,t,l),vt=s;break;default:Ea(e,t,l)}}function py(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ii(e)}catch(l){Ke(t,t.return,l)}}}function vy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ii(e)}catch(l){Ke(t,t.return,l)}}function gE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new dy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new dy),t;default:throw Error(i(435,e.tag))}}function cu(e,t){var l=gE(e);t.forEach(function(s){if(!l.has(s)){l.add(s);var d=CE.bind(null,e,s);s.then(d,d)}})}function Yt(e,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var d=l[s],f=e,b=t,N=b;e:for(;N!==null;){switch(N.tag){case 27:if(ul(N.type)){tt=N.stateNode,Gt=!1;break e}break;case 5:tt=N.stateNode,Gt=!1;break e;case 3:case 4:tt=N.stateNode.containerInfo,Gt=!0;break e}N=N.return}if(tt===null)throw Error(i(160));my(f,b,d),tt=null,Gt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gy(t,e),t=t.sibling}var kn=null;function gy(e,t){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),Vt(e),s&4&&(nl(3,e,e.return),Es(3,e),nl(5,e,e.return));break;case 1:Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),s&64&&Sa&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var d=kn;if(Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),s&4){var f=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){e:{s=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(s){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Wi]||f[Rt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(s),d.head.insertBefore(f,d.querySelector("head > title"))),Dt(f,s,l),f[Rt]=e,Nt(f),s=f;break e;case"link":var b=g0("link","href",d).get(s+(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(s),Dt(f,s,l),d.head.appendChild(f);break;case"meta":if(b=g0("meta","content",d).get(s+(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(s),Dt(f,s,l),d.head.appendChild(f);break;default:throw Error(i(468,s))}f[Rt]=e,Nt(f),s=f}e.stateNode=s}else y0(d,e.type,e.stateNode);else e.stateNode=v0(d,s,e.memoizedProps);else f!==s?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,s===null?y0(d,e.type,e.stateNode):v0(d,s,e.memoizedProps)):s===null&&e.stateNode!==null&&jf(e,e.memoizedProps,l.memoizedProps)}break;case 27:Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),l!==null&&s&4&&jf(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),e.flags&32){d=e.stateNode;try{Rr(d,"")}catch(fe){Ke(e,e.return,fe)}}s&4&&e.stateNode!=null&&(d=e.memoizedProps,jf(e,d,l!==null?l.memoizedProps:d)),s&1024&&(Nf=!0);break;case 6:if(Yt(t,e),Vt(e),s&4){if(e.stateNode===null)throw Error(i(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(fe){Ke(e,e.return,fe)}}break;case 3:if(Cu=null,d=kn,kn=Eu(t.containerInfo),Yt(t,e),kn=d,Vt(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(fe){Ke(e,e.return,fe)}Nf&&(Nf=!1,yy(e));break;case 4:s=kn,kn=Eu(e.stateNode.containerInfo),Yt(t,e),Vt(e),kn=s;break;case 12:Yt(t,e),Vt(e);break;case 31:Yt(t,e),Vt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,cu(e,s)));break;case 13:Yt(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(fu=Wt()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,cu(e,s)));break;case 22:d=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,Q=Sa,Z=vt;if(Sa=Q||d,vt=Z||M,Yt(t,e),vt=Z,Sa=Q,Vt(e),s&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||M||Sa||vt||Wl(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 J=M.memoizedProps.style,$=J!=null&&J.hasOwnProperty("display")?J.display:null;N.style.display=$==null||typeof $=="boolean"?"":(""+$).trim()}}catch(fe){Ke(M,M.return,fe)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Ke(M,M.return,fe)}}}else if(t.tag===18){if(l===null){M=t;try{var V=M.stateNode;d?s0(V,!0):s0(M.stateNode,!1)}catch(fe){Ke(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}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,cu(e,l))));break;case 19:Yt(t,e),Vt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,cu(e,s)));break;case 30:break;case 21:break;default:Yt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var l,s=e.return;s!==null;){if(uy(s)){l=s;break}s=s.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var d=l.stateNode,f=Sf(e);uu(e,f,d);break;case 5:var b=l.stateNode;l.flags&32&&(Rr(b,""),l.flags&=-33);var N=Sf(e);uu(e,N,b);break;case 3:case 4:var M=l.stateNode.containerInfo,Q=Sf(e);Ef(e,Q,M);break;default:throw Error(i(161))}}catch(Z){Ke(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)fy(e,t.alternate,t),t=t.sibling}function Wl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nl(4,t,t.return),Wl(t);break;case 1:Xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&sy(t,t.return,l),Wl(t);break;case 27:Os(t.stateNode);case 26:case 5:Xn(t,t.return),Wl(t);break;case 22:t.memoizedState===null&&Wl(t);break;case 30:Wl(t);break;default:Wl(t)}e=e.sibling}}function Ca(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,d=e,f=t,b=f.flags;switch(f.tag){case 0:case 11:case 15:Ca(d,f,l),Es(4,f);break;case 1:if(Ca(d,f,l),s=f,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(Q){Ke(s,s.return,Q)}if(s=f,d=s.updateQueue,d!==null){var N=s.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Zv(M[d],N)}catch(Q){Ke(s,s.return,Q)}}l&&b&64&&iy(f),Ns(f,f.return);break;case 27:cy(f);case 26:case 5:Ca(d,f,l),l&&s===null&&b&4&&oy(f),Ns(f,f.return);break;case 12:Ca(d,f,l);break;case 31:Ca(d,f,l),l&&b&4&&py(d,f);break;case 13:Ca(d,f,l),l&&b&4&&vy(d,f);break;case 22:f.memoizedState===null&&Ca(d,f,l),Ns(f,f.return);break;case 30:break;default:Ca(d,f,l)}t=t.sibling}}function Cf(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&&ds(l))}function _f(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ds(e))}function Dn(e,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xy(e,t,l,s),t=t.sibling}function xy(e,t,l,s){var d=t.flags;switch(t.tag){case 0:case 11:case 15:Dn(e,t,l,s),d&2048&&Es(9,t);break;case 1:Dn(e,t,l,s);break;case 3:Dn(e,t,l,s),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ds(e)));break;case 12:if(d&2048){Dn(e,t,l,s),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){Ke(t,t.return,M)}}else Dn(e,t,l,s);break;case 31:Dn(e,t,l,s);break;case 13:Dn(e,t,l,s);break;case 23:break;case 22:f=t.stateNode,b=t.alternate,t.memoizedState!==null?f._visibility&2?Dn(e,t,l,s):Cs(e,t):f._visibility&2?Dn(e,t,l,s):(f._visibility|=2,Zr(e,t,l,s,(t.subtreeFlags&10256)!==0||!1)),d&2048&&Cf(b,t);break;case 24:Dn(e,t,l,s),d&2048&&_f(t.alternate,t);break;default:Dn(e,t,l,s)}}function Zr(e,t,l,s,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,b=t,N=l,M=s,Q=b.flags;switch(b.tag){case 0:case 11:case 15:Zr(f,b,N,M,d),Es(8,b);break;case 23:break;case 22:var Z=b.stateNode;b.memoizedState!==null?Z._visibility&2?Zr(f,b,N,M,d):Cs(f,b):(Z._visibility|=2,Zr(f,b,N,M,d)),d&&Q&2048&&Cf(b.alternate,b);break;case 24:Zr(f,b,N,M,d),d&&Q&2048&&_f(b.alternate,b);break;default:Zr(f,b,N,M,d)}t=t.sibling}}function Cs(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,s=t,d=s.flags;switch(s.tag){case 22:Cs(l,s),d&2048&&Cf(s.alternate,s);break;case 24:Cs(l,s),d&2048&&_f(s.alternate,s);break;default:Cs(l,s)}t=t.sibling}}var _s=8192;function Pr(e,t,l){if(e.subtreeFlags&_s)for(e=e.child;e!==null;)by(e,t,l),e=e.sibling}function by(e,t,l){switch(e.tag){case 26:Pr(e,t,l),e.flags&_s&&e.memoizedState!==null&&aN(l,kn,e.memoizedState,e.memoizedProps);break;case 5:Pr(e,t,l);break;case 3:case 4:var s=kn;kn=Eu(e.stateNode.containerInfo),Pr(e,t,l),kn=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=_s,_s=16777216,Pr(e,t,l),_s=s):Pr(e,t,l));break;default:Pr(e,t,l)}}function wy(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 Ts(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Ct=s,Sy(s,e)}wy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)jy(e),e=e.sibling}function jy(e){switch(e.tag){case 0:case 11:case 15:Ts(e),e.flags&2048&&nl(9,e,e.return);break;case 3:Ts(e);break;case 12:Ts(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)):Ts(e);break;default:Ts(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 s=t[l];Ct=s,Sy(s,e)}wy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nl(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 Sy(e,t){for(;Ct!==null;){var l=Ct;switch(l.tag){case 0:case 11:case 15:nl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:ds(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Ct=s;else e:for(l=e;Ct!==null;){s=Ct;var d=s.sibling,f=s.return;if(hy(s),s===l){Ct=null;break e}if(d!==null){d.return=f,Ct=d;break e}Ct=f}}}var yE={getCacheForType:function(e){var t=At(ht),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return At(ht).controller.signal}},xE=typeof WeakMap=="function"?WeakMap:Map,$e=0,We=null,De=null,ze=0,Ve=0,rn=null,al=!1,Jr=!1,Tf=!1,_a=0,it=0,ll=0,Il=0,Rf=0,sn=0,Wr=0,Rs=null,Kt=null,Mf=!1,fu=0,Ey=0,hu=1/0,mu=null,rl=null,wt=0,il=null,Ir=null,Ta=0,Af=0,kf=null,Ny=null,Ms=0,Df=null;function on(){return($e&2)!==0&&ze!==0?ze&-ze:U.T!==null?Hf():Qp()}function Cy(){if(sn===0)if((ze&536870912)===0||Ue){var e=jo;jo<<=1,(jo&3932160)===0&&(jo=262144),sn=e}else sn=536870912;return e=an.current,e!==null&&(e.flags|=32),sn}function Xt(e,t,l){(e===We&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(ei(e,0),sl(e,ze,sn,!1)),Ji(e,l),(($e&2)===0||e!==We)&&(e===We&&(($e&2)===0&&(Il|=l),it===4&&sl(e,ze,sn,!1)),Fn(e))}function _y(e,t,l){if(($e&6)!==0)throw Error(i(327));var s=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Pi(e,t),d=s?jE(e,t):zf(e,t,!0),f=s;do{if(d===0){Jr&&!s&&sl(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!bE(l)){d=zf(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=Rs;var M=N.current.memoizedState.isDehydrated;if(M&&(ei(N,b).flags|=256),b=zf(N,b,!1),b!==2){if(Tf&&!M){N.errorRecoveryDisabledLanes|=f,Il|=f,d=4;break e}f=Kt,Kt=d,f!==null&&(Kt===null?Kt=f:Kt.push.apply(Kt,f))}d=b}if(f=!1,d!==2)continue}}if(d===1){ei(e,0),sl(e,t,0,!0);break}e:{switch(s=e,f=d,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:sl(s,t,sn,!al);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(d=fu+300-Wt(),10<d)){if(sl(s,t,sn,!al),Eo(s,0,!0)!==0)break e;Ta=t,s.timeoutHandle=l0(Ty.bind(null,s,l,Kt,mu,Mf,t,sn,Il,Wr,al,f,"Throttled",-0,0),d);break e}Ty(s,l,Kt,mu,Mf,t,sn,Il,Wr,al,f,null,-0,0)}}break}while(!0);Fn(e)}function Ty(e,t,l,s,d,f,b,N,M,Q,Z,J,$,V){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ha},by(t,f,J);var fe=(f&62914560)===f?fu-Wt():(f&4194048)===f?Ey-Wt():0;if(fe=lN(J,fe),fe!==null){Ta=f,e.cancelPendingCommit=fe(Ly.bind(null,e,t,f,l,s,d,b,N,M,Z,J,null,$,V)),sl(e,f,b,!Q);return}}Ly(e,t,f,l,s,d,b,N,M)}function bE(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 s=0;s<l.length;s++){var d=l[s],f=d.getSnapshot;d=d.value;try{if(!tn(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 sl(e,t,l,s){t&=~Rf,t&=~Il,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var d=t;0<d;){var f=31-en(d),b=1<<f;s[f]=-1,d&=~b}l!==0&&qp(e,l,t)}function pu(){return($e&6)===0?(As(0),!1):!0}function Of(){if(De!==null){if(Ve===0)var e=De.return;else e=De,ga=Yl=null,Zd(e),Yr=null,hs=0,e=De;for(;e!==null;)ry(e.alternate,e),e=e.return;De=null}}function ei(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,BE(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ta=0,Of(),We=e,De=l=pa(e.current,null),ze=t,Ve=0,rn=null,al=!1,Jr=Pi(e,t),Tf=!1,Wr=sn=Rf=Il=ll=it=0,Kt=Rs=null,Mf=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var d=31-en(s),f=1<<d;t|=e[d],s&=~f}return _a=t,Lo(),l}function Ry(e,t){_e=null,U.H=ws,t===Gr||t===Yo?(t=Vv(),Ve=3):t===Ud?(t=Vv(),Ve=4):Ve=t===ff?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,De===null&&(it=1,lu(e,vn(t,e.current)))}function My(){var e=an.current;return e===null?!0:(ze&4194048)===ze?bn===null:(ze&62914560)===ze||(ze&536870912)!==0?e===bn:!1}function Ay(){var e=U.H;return U.H=ws,e===null?ws:e}function ky(){var e=U.A;return U.A=yE,e}function vu(){it=4,al||(ze&4194048)!==ze&&an.current!==null||(Jr=!0),(ll&134217727)===0&&(Il&134217727)===0||We===null||sl(We,ze,sn,!1)}function zf(e,t,l){var s=$e;$e|=2;var d=Ay(),f=ky();(We!==e||ze!==t)&&(mu=null,ei(e,t)),t=!1;var b=it;e:do try{if(Ve!==0&&De!==null){var N=De,M=rn;switch(Ve){case 8:Of(),b=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(t=!0);var Q=Ve;if(Ve=0,rn=null,ti(e,N,M,Q),l&&Jr){b=0;break e}break;default:Q=Ve,Ve=0,rn=null,ti(e,N,M,Q)}}wE(),b=it;break}catch(Z){Ry(e,Z)}while(!0);return t&&e.shellSuspendCounter++,ga=Yl=null,$e=s,U.H=d,U.A=f,De===null&&(We=null,ze=0,Lo()),b}function wE(){for(;De!==null;)Dy(De)}function jE(e,t){var l=$e;$e|=2;var s=Ay(),d=ky();We!==e||ze!==t?(mu=null,hu=Wt()+500,ei(e,t)):Jr=Pi(e,t);e:do try{if(Ve!==0&&De!==null){t=De;var f=rn;t:switch(Ve){case 1:Ve=0,rn=null,ti(e,t,f,1);break;case 2:case 9:if(Gv(f)){Ve=0,rn=null,Oy(t);break}t=function(){Ve!==2&&Ve!==9||We!==e||(Ve=7),Fn(e)},f.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:Gv(f)?(Ve=0,rn=null,Oy(t)):(Ve=0,rn=null,ti(e,t,f,7));break;case 5:var b=null;switch(De.tag){case 26:b=De.memoizedState;case 5:case 27:var N=De;if(b?x0(b):N.stateNode.complete){Ve=0,rn=null;var M=N.sibling;if(M!==null)De=M;else{var Q=N.return;Q!==null?(De=Q,gu(Q)):De=null}break t}}Ve=0,rn=null,ti(e,t,f,5);break;case 6:Ve=0,rn=null,ti(e,t,f,6);break;case 8:Of(),it=6;break e;default:throw Error(i(462))}}SE();break}catch(Z){Ry(e,Z)}while(!0);return ga=Yl=null,U.H=s,U.A=d,$e=l,De!==null?0:(We=null,ze=0,Lo(),it)}function SE(){for(;De!==null&&!KS();)Dy(De)}function Dy(e){var t=ay(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?gu(e):De=t}function Oy(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Jg(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Jg(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Zd(t);default:ry(l,t),t=De=kv(t,_a),t=ay(l,t,_a)}e.memoizedProps=e.pendingProps,t===null?gu(e):De=t}function ti(e,t,l,s){ga=Yl=null,Zd(t),Yr=null,hs=0;var d=t.return;try{if(dE(e,d,t,l,ze)){it=1,lu(e,vn(l,e.current)),De=null;return}}catch(f){if(d!==null)throw De=d,f;it=1,lu(e,vn(l,e.current)),De=null;return}t.flags&32768?(Ue||s===1?e=!0:Jr||(ze&536870912)!==0?e=!1:(al=e=!0,(s===2||s===9||s===3||s===6)&&(s=an.current,s!==null&&s.tag===13&&(s.flags|=16384))),zy(t,e)):gu(t)}function gu(e){var t=e;do{if((t.flags&32768)!==0){zy(t,al);return}e=t.return;var l=mE(t.alternate,t,_a);if(l!==null){De=l;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);it===0&&(it=5)}function zy(e,t){do{var l=pE(e.alternate,e);if(l!==null){l.flags&=32767,De=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=l}while(e!==null);it=6,De=null}function Ly(e,t,l,s,d,f,b,N,M){e.cancelPendingCommit=null;do yu();while(wt!==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|=jd,n2(e,l,f,b,N,M),e===We&&(De=We=null,ze=0),Ir=t,il=e,Ta=l,Af=f,kf=d,Ny=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,_E(bo,function(){return Qy(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=U.T,U.T=null,d=W.p,W.p=2,b=$e,$e|=4;try{vE(e,t,l)}finally{$e=b,W.p=d,U.T=s}}wt=1,Uy(),qy(),Hy()}}function Uy(){if(wt===1){wt=0;var e=il,t=Ir,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var s=W.p;W.p=2;var d=$e;$e|=4;try{gy(t,e);var f=Xf,b=Sv(e.containerInfo),N=f.focusedElem,M=f.selectionRange;if(b!==N&&N&&N.ownerDocument&&jv(N.ownerDocument.documentElement,N)){if(M!==null&&gd(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 J=N.ownerDocument||document,$=J&&J.defaultView||window;if($.getSelection){var V=$.getSelection(),fe=N.textContent.length,je=Math.min(M.start,fe),Je=M.end===void 0?je:Math.min(M.end,fe);!V.extend&&je>Je&&(b=Je,Je=je,je=b);var z=wv(N,je),O=wv(N,Je);if(z&&O&&(V.rangeCount!==1||V.anchorNode!==z.node||V.anchorOffset!==z.offset||V.focusNode!==O.node||V.focusOffset!==O.offset)){var B=J.createRange();B.setStart(z.node,z.offset),V.removeAllRanges(),je>Je?(V.addRange(B),V.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),V.addRange(B))}}}}for(J=[],V=N;V=V.parentNode;)V.nodeType===1&&J.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<J.length;N++){var P=J[N];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Mu=!!Kf,Xf=Kf=null}finally{$e=d,W.p=s,U.T=l}}e.current=t,wt=2}}function qy(){if(wt===2){wt=0;var e=il,t=Ir,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var s=W.p;W.p=2;var d=$e;$e|=4;try{fy(e,t.alternate,t)}finally{$e=d,W.p=s,U.T=l}}wt=3}}function Hy(){if(wt===4||wt===3){wt=0,XS();var e=il,t=Ir,l=Ta,s=Ny;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,Ir=il=null,By(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(rl=null),Wc(l),t=t.stateNode,It&&typeof It.onCommitFiberRoot=="function")try{It.onCommitFiberRoot(Zi,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=U.T,d=W.p,W.p=2,U.T=null;try{for(var f=e.onRecoverableError,b=0;b<s.length;b++){var N=s[b];f(N.value,{componentStack:N.stack})}}finally{U.T=t,W.p=d}}(Ta&3)!==0&&yu(),Fn(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===Df?Ms++:(Ms=0,Df=e):Ms=0,As(0)}}function By(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ds(t)))}function yu(){return Uy(),qy(),Hy(),Qy()}function Qy(){if(wt!==5)return!1;var e=il,t=Af;Af=0;var l=Wc(Ta),s=U.T,d=W.p;try{W.p=32>l?32:l,U.T=null,l=kf,kf=null;var f=il,b=Ta;if(wt=0,Ir=il=null,Ta=0,($e&6)!==0)throw Error(i(331));var N=$e;if($e|=4,jy(f.current),xy(f,f.current,b,l),$e=N,As(0,!1),It&&typeof It.onPostCommitFiberRoot=="function")try{It.onPostCommitFiberRoot(Zi,f)}catch{}return!0}finally{W.p=d,U.T=s,By(e,t)}}function $y(e,t,l){t=vn(l,t),t=df(e.stateNode,t,2),e=Ia(e,t,2),e!==null&&(Ji(e,2),Fn(e))}function Ke(e,t,l){if(e.tag===3)$y(e,e,l);else for(;t!==null;){if(t.tag===3){$y(t,e,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(rl===null||!rl.has(s))){e=vn(l,e),l=Gg(2),s=Ia(t,l,2),s!==null&&(Yg(l,s,t,e),Ji(s,2),Fn(s));break}}t=t.return}}function Lf(e,t,l){var s=e.pingCache;if(s===null){s=e.pingCache=new xE;var d=new Set;s.set(t,d)}else d=s.get(t),d===void 0&&(d=new Set,s.set(t,d));d.has(l)||(Tf=!0,d.add(l),e=EE.bind(null,e,t,l),t.then(e,e))}function EE(e,t,l){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,We===e&&(ze&l)===l&&(it===4||it===3&&(ze&62914560)===ze&&300>Wt()-fu?($e&2)===0&&ei(e,0):Rf|=l,Wr===ze&&(Wr=0)),Fn(e)}function Gy(e,t){t===0&&(t=Up()),e=Ql(e,t),e!==null&&(Ji(e,t),Fn(e))}function NE(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Gy(e,l)}function CE(e,t){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(t),Gy(e,l)}function _E(e,t){return Fc(e,t)}var xu=null,ni=null,Uf=!1,bu=!1,qf=!1,ol=0;function Fn(e){e!==ni&&e.next===null&&(ni===null?xu=ni=e:ni=ni.next=e),bu=!0,Uf||(Uf=!0,RE())}function As(e,t){if(!qf&&bu){qf=!0;do for(var l=!1,s=xu;s!==null;){if(e!==0){var d=s.pendingLanes;if(d===0)var f=0;else{var b=s.suspendedLanes,N=s.pingedLanes;f=(1<<31-en(42|e)+1)-1,f&=d&~(b&~N),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Xy(s,f))}else f=ze,f=Eo(s,s===We?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||Pi(s,f)||(l=!0,Xy(s,f));s=s.next}while(l);qf=!1}}function TE(){Yy()}function Yy(){bu=Uf=!1;var e=0;ol!==0&&HE()&&(e=ol);for(var t=Wt(),l=null,s=xu;s!==null;){var d=s.next,f=Vy(s,t);f===0?(s.next=null,l===null?xu=d:l.next=d,d===null&&(ni=l)):(l=s,(e!==0||(f&3)!==0)&&(bu=!0)),s=d}wt!==0&&wt!==5||As(e),ol!==0&&(ol=0)}function Vy(e,t){for(var l=e.suspendedLanes,s=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var b=31-en(f),N=1<<b,M=d[b];M===-1?((N&l)===0||(N&s)!==0)&&(d[b]=t2(N,t)):M<=t&&(e.expiredLanes|=N),f&=~N}if(t=We,l=ze,l=Eo(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Zc(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Pi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(s!==null&&Zc(s),Wc(l)){case 2:case 8:l=zp;break;case 32:l=bo;break;case 268435456:l=Lp;break;default:l=bo}return s=Ky.bind(null,e),l=Fc(l,s),e.callbackPriority=t,e.callbackNode=l,t}return s!==null&&s!==null&&Zc(s),e.callbackPriority=2,e.callbackNode=null,2}function Ky(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(yu()&&e.callbackNode!==l)return null;var s=ze;return s=Eo(e,e===We?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(_y(e,s,t),Vy(e,Wt()),e.callbackNode!=null&&e.callbackNode===l?Ky.bind(null,e):null)}function Xy(e,t){if(yu())return null;_y(e,t,!0)}function RE(){QE(function(){($e&6)!==0?Fc(Op,TE):Yy()})}function Hf(){if(ol===0){var e=Qr;e===0&&(e=wo,wo<<=1,(wo&261888)===0&&(wo=256)),ol=e}return ol}function Fy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:To(""+e)}function Zy(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 ME(e,t,l,s,d){if(t==="submit"&&l&&l.stateNode===d){var f=Fy((d[Qt]||null).action),b=s.submitter;b&&(t=(t=b[Qt]||null)?Fy(t.formAction):b.getAttribute("formAction"),t!==null&&(f=t,b=null));var N=new ko("action","action",null,s,d);e.push({event:N,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ol!==0){var M=b?Zy(d,b):new FormData(d);lf(l,{pending:!0,data:M,method:d.method,action:f},null,M)}}else typeof f=="function"&&(N.preventDefault(),M=b?Zy(d,b):new FormData(d),lf(l,{pending:!0,data:M,method:d.method,action:f},f,M))},currentTarget:d}]})}}for(var Bf=0;Bf<wd.length;Bf++){var Qf=wd[Bf],AE=Qf.toLowerCase(),kE=Qf[0].toUpperCase()+Qf.slice(1);An(AE,"on"+kE)}An(Cv,"onAnimationEnd"),An(_v,"onAnimationIteration"),An(Tv,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(F2,"onTransitionRun"),An(Z2,"onTransitionStart"),An(P2,"onTransitionCancel"),An(Rv,"onTransitionEnd"),_r("onMouseEnter",["mouseout","mouseover"]),_r("onMouseLeave",["mouseout","mouseover"]),_r("onPointerEnter",["pointerout","pointerover"]),_r("onPointerLeave",["pointerout","pointerover"]),Ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ks="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(" "),DE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ks));function Py(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],d=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var b=s.length-1;0<=b;b--){var N=s[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){zo(Z)}d.currentTarget=null,f=M}else for(b=0;b<s.length;b++){if(N=s[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){zo(Z)}d.currentTarget=null,f=M}}}}function Oe(e,t){var l=t[Ic];l===void 0&&(l=t[Ic]=new Set);var s=e+"__bubble";l.has(s)||(Jy(t,e,2,!1),l.add(s))}function $f(e,t,l){var s=0;t&&(s|=4),Jy(l,e,s,t)}var wu="_reactListening"+Math.random().toString(36).slice(2);function Gf(e){if(!e[wu]){e[wu]=!0,Yp.forEach(function(l){l!=="selectionchange"&&(DE.has(l)||$f(l,!1,e),$f(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wu]||(t[wu]=!0,$f("selectionchange",!1,t))}}function Jy(e,t,l,s){switch(C0(t)){case 2:var d=sN;break;case 8:d=oN;break;default:d=lh}l=d.bind(null,t,l,e),d=void 0,!od||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),s?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 Yf(e,t,l,s,d){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var b=s.tag;if(b===3||b===4){var N=s.stateNode.containerInfo;if(N===d)break;if(b===4)for(b=s.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=Er(N),b===null)return;if(M=b.tag,M===5||M===6||M===26||M===27){s=f=b;continue e}N=N.parentNode}}s=s.return}nv(function(){var Q=f,Z=id(l),J=[];e:{var $=Mv.get(e);if($!==void 0){var V=ko,fe=e;switch(e){case"keypress":if(Mo(l)===0)break e;case"keydown":case"keyup":V=C2;break;case"focusin":fe="focus",V=fd;break;case"focusout":fe="blur",V=fd;break;case"beforeblur":case"afterblur":V=fd;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=rv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=m2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=R2;break;case Cv:case _v:case Tv:V=g2;break;case Rv:V=A2;break;case"scroll":case"scrollend":V=f2;break;case"wheel":V=D2;break;case"copy":case"cut":case"paste":V=x2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=sv;break;case"toggle":case"beforetoggle":V=z2}var je=(t&4)!==0,Je=!je&&(e==="scroll"||e==="scrollend"),z=je?$!==null?$+"Capture":null:$;je=[];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||z===null||(P=es(O,z),P!=null&&je.push(Ds(O,P,B))),Je)break;O=O.return}0<je.length&&($=new V($,fe,null,l,Z),J.push({event:$,listeners:je}))}}if((t&7)===0){e:{if($=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",$&&l!==rd&&(fe=l.relatedTarget||l.fromElement)&&(Er(fe)||fe[Sr]))break e;if((V||$)&&($=Z.window===Z?Z:($=Z.ownerDocument)?$.defaultView||$.parentWindow:window,V?(fe=l.relatedTarget||l.toElement,V=Q,fe=fe?Er(fe):null,fe!==null&&(Je=c(fe),je=fe.tag,fe!==Je||je!==5&&je!==27&&je!==6)&&(fe=null)):(V=null,fe=Q),V!==fe)){if(je=rv,P="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(je=sv,P="onPointerLeave",z="onPointerEnter",O="pointer"),Je=V==null?$:Ii(V),B=fe==null?$:Ii(fe),$=new je(P,O+"leave",V,l,Z),$.target=Je,$.relatedTarget=B,P=null,Er(Z)===Q&&(je=new je(z,O+"enter",fe,l,Z),je.target=B,je.relatedTarget=Je,P=je),Je=P,V&&fe)t:{for(je=OE,z=V,O=fe,B=0,P=z;P;P=je(P))B++;P=0;for(var xe=O;xe;xe=je(xe))P++;for(;0<B-P;)z=je(z),B--;for(;0<P-B;)O=je(O),P--;for(;B--;){if(z===O||O!==null&&z===O.alternate){je=z;break t}z=je(z),O=je(O)}je=null}else je=null;V!==null&&Wy(J,$,V,je,!1),fe!==null&&Je!==null&&Wy(J,Je,fe,je,!0)}}e:{if($=Q?Ii(Q):window,V=$.nodeName&&$.nodeName.toLowerCase(),V==="select"||V==="input"&&$.type==="file")var Be=pv;else if(hv($))if(vv)Be=V2;else{Be=G2;var ge=$2}else V=$.nodeName,!V||V.toLowerCase()!=="input"||$.type!=="checkbox"&&$.type!=="radio"?Q&&ld(Q.elementType)&&(Be=pv):Be=Y2;if(Be&&(Be=Be(e,Q))){mv(J,Be,l,Z);break e}ge&&ge(e,$,Q),e==="focusout"&&Q&&$.type==="number"&&Q.memoizedProps.value!=null&&ad($,"number",$.value)}switch(ge=Q?Ii(Q):window,e){case"focusin":(hv(ge)||ge.contentEditable==="true")&&(Dr=ge,yd=Q,os=null);break;case"focusout":os=yd=Dr=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,Ev(J,l,Z);break;case"selectionchange":if(X2)break;case"keydown":case"keyup":Ev(J,l,Z)}var Te;if(md)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 kr?dv(e,l)&&(Le="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(ov&&l.locale!=="ko"&&(kr||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&kr&&(Te=av()):(Ka=Z,ud="value"in Ka?Ka.value:Ka.textContent,kr=!0)),ge=ju(Q,Le),0<ge.length&&(Le=new iv(Le,e,null,l,Z),J.push({event:Le,listeners:ge}),Te?Le.data=Te:(Te=fv(l),Te!==null&&(Le.data=Te)))),(Te=U2?q2(e,l):H2(e,l))&&(Le=ju(Q,"onBeforeInput"),0<Le.length&&(ge=new iv("onBeforeInput","beforeinput",null,l,Z),J.push({event:ge,listeners:Le}),ge.data=Te)),ME(J,e,Q,l,Z)}Py(J,t)})}function Ds(e,t,l){return{instance:e,listener:t,currentTarget:l}}function ju(e,t){for(var l=t+"Capture",s=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=es(e,l),d!=null&&s.unshift(Ds(e,d,f)),d=es(e,t),d!=null&&s.push(Ds(e,d,f))),e.tag===3)return s;e=e.return}return[]}function OE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Wy(e,t,l,s,d){for(var f=t._reactName,b=[];l!==null&&l!==s;){var N=l,M=N.alternate,Q=N.stateNode;if(N=N.tag,M!==null&&M===s)break;N!==5&&N!==26&&N!==27||Q===null||(M=Q,d?(Q=es(l,f),Q!=null&&b.unshift(Ds(l,Q,M))):d||(Q=es(l,f),Q!=null&&b.push(Ds(l,Q,M)))),l=l.return}b.length!==0&&e.push({event:t,listeners:b})}var zE=/\r\n?/g,LE=/\u0000|\uFFFD/g;function Iy(e){return(typeof e=="string"?e:""+e).replace(zE,`
49
+ `).replace(LE,"")}function e0(e,t){return t=Iy(t),Iy(e)===t}function Pe(e,t,l,s,d,f){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Rr(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Rr(e,""+s);break;case"className":Co(e,"class",s);break;case"tabIndex":Co(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Co(e,l,s);break;case"style":ev(e,s,f);break;case"data":if(t!=="object"){Co(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=To(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="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"&&Pe(e,t,"name",d.name,d,null),Pe(e,t,"formEncType",d.formEncType,d,null),Pe(e,t,"formMethod",d.formMethod,d,null),Pe(e,t,"formTarget",d.formTarget,d,null)):(Pe(e,t,"encType",d.encType,d,null),Pe(e,t,"method",d.method,d,null),Pe(e,t,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=To(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=ha);break;case"onScroll":s!=null&&Oe("scroll",e);break;case"onScrollEnd":s!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=To(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),No(e,"popover",s);break;case"xlinkActuate":fa(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":fa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":fa(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":fa(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":fa(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":fa(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":fa(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":fa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":fa(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":No(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=c2.get(l)||l,No(e,l,s))}}function Vf(e,t,l,s,d,f){switch(l){case"style":ev(e,s,f);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof s=="string"?Rr(e,s):(typeof s=="number"||typeof s=="bigint")&&Rr(e,""+s);break;case"onScroll":s!=null&&Oe("scroll",e);break;case"onScrollEnd":s!=null&&Oe("scrollend",e);break;case"onClick":s!=null&&(e.onclick=ha);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Vp.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[Qt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof s=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,s,d);break e}l in e?e[l]=s:s===!0?e.setAttribute(l,""):No(e,l,s)}}}function Dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var s=!1,d=!1,f;for(f in l)if(l.hasOwnProperty(f)){var b=l[f];if(b!=null)switch(f){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,f,b,l,null)}}d&&Pe(e,t,"srcSet",l.srcSet,l,null),s&&Pe(e,t,"src",l.src,l,null);return;case"input":Oe("invalid",e);var N=f=b=d=null,M=null,Q=null;for(s in l)if(l.hasOwnProperty(s)){var Z=l[s];if(Z!=null)switch(s){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:Pe(e,t,s,Z,l,null)}}Pp(e,f,N,M,Q,b,d,!1);return;case"select":Oe("invalid",e),s=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":s=N;default:Pe(e,t,d,N,l,null)}t=f,l=b,e.multiple=!!s,t!=null?Tr(e,!!s,t,!1):l!=null&&Tr(e,!!s,l,!0);return;case"textarea":Oe("invalid",e),f=d=s=null;for(b in l)if(l.hasOwnProperty(b)&&(N=l[b],N!=null))switch(b){case"value":s=N;break;case"defaultValue":d=N;break;case"children":f=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Pe(e,t,b,N,l,null)}Wp(e,s,d,f);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(s=l[M],s!=null))switch(M){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Pe(e,t,M,s,l,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(s=0;s<ks.length;s++)Oe(ks[s],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in l)if(l.hasOwnProperty(Q)&&(s=l[Q],s!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,Q,s,l,null)}return;default:if(ld(t)){for(Z in l)l.hasOwnProperty(Z)&&(s=l[Z],s!==void 0&&Vf(e,t,Z,s,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(s=l[N],s!=null&&Pe(e,t,N,s,l,null))}function UE(e,t,l,s){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 J=l[V];if(l.hasOwnProperty(V)&&J!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":M=J;default:s.hasOwnProperty(V)||Pe(e,t,V,null,s,J)}}for(var $ in s){var V=s[$];if(J=l[$],s.hasOwnProperty($)&&(V!=null||J!=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!==J&&Pe(e,t,$,V,s,J)}}nd(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:s.hasOwnProperty(f)||Pe(e,t,f,null,s,M)}for(d in s)if(f=s[d],M=l[d],s.hasOwnProperty(d)&&(f!=null||M!=null))switch(d){case"value":$=f;break;case"defaultValue":N=f;break;case"multiple":b=f;default:f!==M&&Pe(e,t,d,f,s,M)}t=N,l=b,s=V,$!=null?Tr(e,!!l,$,!1):!!s!=!!l&&(t!=null?Tr(e,!!l,t,!0):Tr(e,!!l,l?[]:"",!1));return;case"textarea":V=$=null;for(N in l)if(d=l[N],l.hasOwnProperty(N)&&d!=null&&!s.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Pe(e,t,N,null,s,d)}for(b in s)if(d=s[b],f=l[b],s.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&&Pe(e,t,b,d,s,f)}Jp(e,$,V);return;case"option":for(var fe in l)if($=l[fe],l.hasOwnProperty(fe)&&$!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Pe(e,t,fe,null,s,$)}for(M in s)if($=s[M],V=l[M],s.hasOwnProperty(M)&&$!==V&&($!=null||V!=null))switch(M){case"selected":e.selected=$&&typeof $!="function"&&typeof $!="symbol";break;default:Pe(e,t,M,$,s,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 je in l)$=l[je],l.hasOwnProperty(je)&&$!=null&&!s.hasOwnProperty(je)&&Pe(e,t,je,null,s,$);for(Q in s)if($=s[Q],V=l[Q],s.hasOwnProperty(Q)&&$!==V&&($!=null||V!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,t));break;default:Pe(e,t,Q,$,s,V)}return;default:if(ld(t)){for(var Je in l)$=l[Je],l.hasOwnProperty(Je)&&$!==void 0&&!s.hasOwnProperty(Je)&&Vf(e,t,Je,void 0,s,$);for(Z in s)$=s[Z],V=l[Z],!s.hasOwnProperty(Z)||$===V||$===void 0&&V===void 0||Vf(e,t,Z,$,s,V);return}}for(var z in l)$=l[z],l.hasOwnProperty(z)&&$!=null&&!s.hasOwnProperty(z)&&Pe(e,t,z,null,s,$);for(J in s)$=s[J],V=l[J],!s.hasOwnProperty(J)||$===V||$==null&&V==null||Pe(e,t,J,$,s,V)}function t0(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"),s=0;s<l.length;s++){var d=l[s],f=d.transferSize,b=d.initiatorType,N=d.duration;if(f&&N&&t0(b)){for(b=0,N=d.responseEnd,s+=1;s<l.length;s++){var M=l[s],Q=M.startTime;if(Q>N)break;var Z=M.transferSize,J=M.initiatorType;Z&&t0(J)&&(M=M.responseEnd,b+=Z*(M<N?1:(N-Q)/(M-Q)))}if(--s,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 Kf=null,Xf=null;function Su(e){return e.nodeType===9?e:e.ownerDocument}function n0(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 a0(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 Ff(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 Zf=null;function HE(){var e=window.event;return e&&e.type==="popstate"?e===Zf?!1:(Zf=e,!0):(Zf=null,!1)}var l0=typeof setTimeout=="function"?setTimeout:void 0,BE=typeof clearTimeout=="function"?clearTimeout:void 0,r0=typeof Promise=="function"?Promise:void 0,QE=typeof queueMicrotask=="function"?queueMicrotask:typeof r0<"u"?function(e){return r0.resolve(null).then(e).catch($E)}:l0;function $E(e){setTimeout(function(){throw e})}function ul(e){return e==="head"}function i0(e,t){var l=t,s=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(s===0){e.removeChild(d),ii(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")Os(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Os(l);for(var f=l.firstChild;f;){var b=f.nextSibling,N=f.nodeName;f[Wi]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=b}}else l==="body"&&Os(e.ownerDocument.body);l=d}while(l);ii(t)}function s0(e,t){var l=e;e=0;do{var s=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||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=s}while(l)}function Pf(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":Pf(l),ed(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function GE(e,t,l,s){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Wi])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 YE(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 o0(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 Jf(e){return e.data==="$?"||e.data==="$~"}function Wf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function VE(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}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 If=null;function u0(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 c0(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 d0(e,t,l){switch(t=Su(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 Os(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ed(e)}var jn=new Map,f0=new Set;function Eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ra=W.d;W.d={f:KE,r:XE,D:FE,C:ZE,L:PE,m:JE,X:IE,S:WE,M:eN};function KE(){var e=Ra.f(),t=pu();return e||t}function XE(e){var t=Nr(e);t!==null&&t.tag===5&&t.type==="form"?Rg(t):Ra.r(e)}var ai=typeof document>"u"?null:document;function h0(e,t,l){var s=ai;if(s&&typeof t=="string"&&t){var d=mn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),f0.has(d)||(f0.add(d),e={rel:e,crossOrigin:l,href:t},s.querySelector(d)===null&&(t=s.createElement("link"),Dt(t,"link",e),Nt(t),s.head.appendChild(t)))}}function FE(e){Ra.D(e),h0("dns-prefetch",e,null)}function ZE(e,t){Ra.C(e,t),h0("preconnect",e,t)}function PE(e,t,l){Ra.L(e,t,l);var s=ai;if(s&&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=li(e);break;case"script":f=ri(e)}jn.has(f)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),jn.set(f,e),s.querySelector(d)!==null||t==="style"&&s.querySelector(zs(f))||t==="script"&&s.querySelector(Ls(f))||(t=s.createElement("link"),Dt(t,"link",e),Nt(t),s.head.appendChild(t)))}}function JE(e,t){Ra.m(e,t);var l=ai;if(l&&e){var s=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+mn(s)+'"][href="'+mn(e)+'"]',f=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ri(e)}if(!jn.has(f)&&(e=y({rel:"modulepreload",href:e},t),jn.set(f,e),l.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ls(f)))return}s=l.createElement("link"),Dt(s,"link",e),Nt(s),l.head.appendChild(s)}}}function WE(e,t,l){Ra.S(e,t,l);var s=ai;if(s&&e){var d=Cr(s).hoistableStyles,f=li(e);t=t||"default";var b=d.get(f);if(!b){var N={loading:0,preload:null};if(b=s.querySelector(zs(f)))N.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=jn.get(f))&&eh(e,l);var M=b=s.createElement("link");Nt(M),Dt(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,s)}b={type:"stylesheet",instance:b,count:1,state:N},d.set(f,b)}}}function IE(e,t){Ra.X(e,t);var l=ai;if(l&&e){var s=Cr(l).hoistableScripts,d=ri(e),f=s.get(d);f||(f=l.querySelector(Ls(d)),f||(e=y({src:e,async:!0},t),(t=jn.get(d))&&th(e,t),f=l.createElement("script"),Nt(f),Dt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(d,f))}}function eN(e,t){Ra.M(e,t);var l=ai;if(l&&e){var s=Cr(l).hoistableScripts,d=ri(e),f=s.get(d);f||(f=l.querySelector(Ls(d)),f||(e=y({src:e,async:!0,type:"module"},t),(t=jn.get(d))&&th(e,t),f=l.createElement("script"),Nt(f),Dt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(d,f))}}function m0(e,t,l,s){var d=(d=Se.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=li(l.href),l=Cr(d).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=li(l.href);var f=Cr(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(zs(e)))&&!f._p&&(b.instance=f,b.state.loading=5),jn.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},jn.set(e,l),f||tN(d,e,l,b.state))),t&&s===null)throw Error(i(528,""));return b}if(t&&s!==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=ri(l),l=Cr(d).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function li(e){return'href="'+mn(e)+'"'}function zs(e){return'link[rel="stylesheet"]['+e+"]"}function p0(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function tN(e,t,l,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Dt(t,"link",l),Nt(t),e.head.appendChild(t))}function ri(e){return'[src="'+mn(e)+'"]'}function Ls(e){return"script[async]"+e}function v0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+mn(l.href)+'"]');if(s)return t.instance=s,Nt(s),s;var d=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Nt(s),Dt(s,"style",d),Nu(s,l.precedence,e),t.instance=s;case"stylesheet":d=li(l.href);var f=e.querySelector(zs(d));if(f)return t.state.loading|=4,t.instance=f,Nt(f),f;s=p0(l),(d=jn.get(d))&&eh(s,d),f=(e.ownerDocument||e).createElement("link"),Nt(f);var b=f;return b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),Dt(f,"link",s),t.state.loading|=4,Nu(f,l.precedence,e),t.instance=f;case"script":return f=ri(l.src),(d=e.querySelector(Ls(f)))?(t.instance=d,Nt(d),d):(s=l,(d=jn.get(f))&&(s=y({},l),th(s,d)),e=e.ownerDocument||e,d=e.createElement("script"),Nt(d),Dt(d,"link",s),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&&(s=t.instance,t.state.loading|=4,Nu(s,l.precedence,e));return t.instance}function Nu(e,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,f=d,b=0;b<s.length;b++){var N=s[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 eh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function th(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 g0(e,t,l){if(Cu===null){var s=new Map,d=Cu=new Map;d.set(l,s)}else d=Cu,s=d.get(l),s||(s=new Map,d.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var f=l[d];if(!(f[Wi]||f[Rt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var b=f.getAttribute(t)||"";b=e+b;var N=s.get(b);N?N.push(f):s.set(b,[f])}}return s}function y0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function nN(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 x0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function aN(e,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=li(s.href),f=t.querySelector(zs(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,Nt(f);return}f=t.ownerDocument||t,s=p0(s),(d=jn.get(d))&&eh(s,d),f=f.createElement("link"),Nt(f);var b=f;b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),Dt(f,"link",s),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 nh=0;function lN(e,t){return e.stylesheets&&e.count===0&&Ru(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var s=setTimeout(function(){if(e.stylesheets&&Ru(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&nh===0&&(nh=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>nh?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),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(rN,e),Tu=null,_u.call(e))}function rN(e,t){if(!(t.state.loading&4)){var l=Tu.get(e);if(l)var s=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),s=b)}s&&l.set(null,s)}d=t.instance,b=d.getAttribute("data-precedence"),f=l.get(b)||s,f===s&&l.set(null,d),l.set(b,d),this.count++,s=_u.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var Us={$$typeof:R,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function iN(e,t,l,s,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=Pc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pc(0),this.hiddenUpdates=Pc(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function b0(e,t,l,s,d,f,b,N,M,Q,Z,J){return e=new iN(e,t,l,b,M,Q,Z,J,N),t=1,f===!0&&(t|=24),f=nn(3,null,null,t),e.current=f,f.stateNode=e,t=Od(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:s,isDehydrated:l,cache:t},qd(f),e}function w0(e){return e?(e=Lr,e):Lr}function j0(e,t,l,s,d,f){d=w0(d),s.context===null?s.context=d:s.pendingContext=d,s=Wa(t),s.payload={element:l},f=f===void 0?null:f,f!==null&&(s.callback=f),l=Ia(e,s,t),l!==null&&(Xt(l,e,t),ps(l,e,t))}function S0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ah(e,t){S0(e,t),(e=e.alternate)&&S0(e,t)}function E0(e){if(e.tag===13||e.tag===31){var t=Ql(e,67108864);t!==null&&Xt(t,e,67108864),ah(e,67108864)}}function N0(e){if(e.tag===13||e.tag===31){var t=on();t=Jc(t);var l=Ql(e,t);l!==null&&Xt(l,e,t),ah(e,t)}}var Mu=!0;function sN(e,t,l,s){var d=U.T;U.T=null;var f=W.p;try{W.p=2,lh(e,t,l,s)}finally{W.p=f,U.T=d}}function oN(e,t,l,s){var d=U.T;U.T=null;var f=W.p;try{W.p=8,lh(e,t,l,s)}finally{W.p=f,U.T=d}}function lh(e,t,l,s){if(Mu){var d=rh(s);if(d===null)Yf(e,t,s,Au,l),_0(e,s);else if(cN(d,e,t,l,s))s.stopPropagation();else if(_0(e,s),t&4&&-1<uN.indexOf(e)){for(;d!==null;){var f=Nr(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var b=Ll(f.pendingLanes);if(b!==0){var N=f;for(N.pendingLanes|=2,N.entangledLanes|=2;b;){var M=1<<31-en(b);N.entanglements[1]|=M,b&=~M}Fn(f),($e&6)===0&&(hu=Wt()+500,As(0))}}break;case 31:case 13:N=Ql(f,2),N!==null&&Xt(N,f,2),pu(),ah(f,2)}if(f=rh(s),f===null&&Yf(e,t,s,Au,l),f===d)break;d=f}d!==null&&s.stopPropagation()}else Yf(e,t,s,null,l)}}function rh(e){return e=id(e),ih(e)}var Au=null;function ih(e){if(Au=null,e=Er(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 C0(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(FS()){case Op:return 2;case zp:return 8;case bo:case ZS:return 32;case Lp:return 268435456;default:return 32}default:return 32}}var sh=!1,cl=null,dl=null,fl=null,qs=new Map,Hs=new Map,hl=[],uN="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 _0(e,t){switch(e){case"focusin":case"focusout":cl=null;break;case"dragenter":case"dragleave":dl=null;break;case"mouseover":case"mouseout":fl=null;break;case"pointerover":case"pointerout":qs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Hs.delete(t.pointerId)}}function Bs(e,t,l,s,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:f,targetContainers:[d]},t!==null&&(t=Nr(t),t!==null&&E0(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function cN(e,t,l,s,d){switch(t){case"focusin":return cl=Bs(cl,e,t,l,s,d),!0;case"dragenter":return dl=Bs(dl,e,t,l,s,d),!0;case"mouseover":return fl=Bs(fl,e,t,l,s,d),!0;case"pointerover":var f=d.pointerId;return qs.set(f,Bs(qs.get(f)||null,e,t,l,s,d)),!0;case"gotpointercapture":return f=d.pointerId,Hs.set(f,Bs(Hs.get(f)||null,e,t,l,s,d)),!0}return!1}function T0(e){var t=Er(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,$p(e.priority,function(){N0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,$p(e.priority,function(){N0(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=rh(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);rd=s,l.target.dispatchEvent(s),rd=null}else return t=Nr(l),t!==null&&E0(t),e.blockedOn=l,!1;t.shift()}return!0}function R0(e,t,l){ku(e)&&l.delete(t)}function dN(){sh=!1,cl!==null&&ku(cl)&&(cl=null),dl!==null&&ku(dl)&&(dl=null),fl!==null&&ku(fl)&&(fl=null),qs.forEach(R0),Hs.forEach(R0)}function Du(e,t){e.blockedOn===t&&(e.blockedOn=null,sh||(sh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,dN)))}var Ou=null;function M0(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],s=e[t+1],d=e[t+2];if(typeof s!="function"){if(ih(s||l)===null)continue;break}var f=Nr(l);f!==null&&(e.splice(t,3),t-=3,lf(f,{pending:!0,data:d,method:l.method,action:s},s,d))}}))}function ii(e){function t(M){return Du(M,e)}cl!==null&&Du(cl,e),dl!==null&&Du(dl,e),fl!==null&&Du(fl,e),qs.forEach(t),Hs.forEach(t);for(var l=0;l<hl.length;l++){var s=hl[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<hl.length&&(l=hl[0],l.blockedOn===null);)T0(l),l.blockedOn===null&&hl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var d=l[s],f=l[s+1],b=d[Qt]||null;if(typeof f=="function")b||M0(l);else if(b){var N=null;if(f&&f.hasAttribute("formAction")){if(d=f,b=f[Qt]||null)N=b.formAction;else if(ih(d)!==null)continue}else N=b.action;typeof N=="function"?l[s+1]=N:(l.splice(s,3),s-=3),M0(l)}}}function A0(){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),s||setTimeout(l,20)}function l(){if(!s&&!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 s=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function oh(e){this._internalRoot=e}zu.prototype.render=oh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,s=on();j0(l,s,e,t,null,null)},zu.prototype.unmount=oh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;j0(e.current,2,null,e,null,null),pu(),t[Sr]=null}};function zu(e){this._internalRoot=e}zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<hl.length&&t!==0&&t<hl[l].priority;l++);hl.splice(l,0,e),l===0&&T0(e)}};var k0=a.version;if(k0!=="19.2.3")throw Error(i(527,k0,"19.2.3"));W.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?x(e):null,e=e===null?null:e.stateNode,e};var fN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,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(fN),It=Lu}catch{}}return $s.createRoot=function(e,t){if(!o(e))throw Error(i(299));var l=!1,s="",d=Hg,f=Bg,b=Qg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=b0(e,1,!1,null,null,l,s,null,d,f,b,A0),e[Sr]=t.current,Gf(e),new oh(t)},$s.hydrateRoot=function(e,t,l){if(!o(e))throw Error(i(299));var s=!1,d="",f=Hg,b=Bg,N=Qg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!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=b0(e,1,!0,t,l??null,s,d,M,f,b,N,A0),t.context=w0(null),l=t.current,s=on(),s=Jc(s),d=Wa(s),d.callback=null,Ia(l,d,s),l=s,t.current.lanes=l,Ji(t,l),Fn(t),e[Sr]=t.current,Gf(e),new zu(t)},$s.version="19.2.3",$s}var W0;function eC(){if(W0)return hh.exports;W0=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(),hh.exports=IN(),hh.exports}var tC=eC(),Gs={},I0;function nC(){if(I0)return Gs;I0=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.parse=h,Gs.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]*$/,o=Object.prototype.toString,c=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,S){const E=new c,j=w.length;if(j<2)return E;const C=(S==null?void 0:S.decode)||x;let _=0;do{const T=w.indexOf("=",_);if(T===-1)break;const R=w.indexOf(";",_),D=R===-1?j:R;if(T>D){_=w.lastIndexOf(";",T-1)+1;continue}const L=m(w,_,T),K=p(w,T,L),H=w.slice(L,K);if(E[H]===void 0){let q=m(w,T+1,D),G=p(w,D,q);const te=C(w.slice(q,G));E[H]=te}_=D+1}while(_<j);return E}function m(w,S,E){do{const j=w.charCodeAt(S);if(j!==32&&j!==9)return S}while(++S<E);return E}function p(w,S,E){for(;S>E;){const j=w.charCodeAt(--S);if(j!==32&&j!==9)return S+1}return E}function g(w,S,E){const j=(E==null?void 0:E.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const C=j(S);if(!a.test(C))throw new TypeError(`argument val is invalid: ${S}`);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(!y(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 x(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function y(w){return o.call(w)==="[object Date]"}return Gs}nC();var ex="popstate";function aC(n={}){function a(o,c){let{pathname:h="/",search:m="",hash:p=""}=gr(o.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Ph("",{pathname:h,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(o,c){let h=o.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=o.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof c=="string"?c:eo(c))}function i(o,c){Tn(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return rC(a,r,i,n)}function at(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Tn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function lC(){return Math.random().toString(36).substring(2,10)}function tx(n,a){return{usr:n.state,key:n.key,idx:a}}function Ph(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?gr(a):a,state:r,key:a&&a.key||i||lC()}}function eo({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 gr(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 rC(n,a,r,i={}){let{window:o=document.defaultView,v5Compat:c=!1}=i,h=o.history,m="POP",p=null,g=x();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function x(){return(h.state||{idx:null}).idx}function y(){m="POP";let C=x(),_=C==null?null:C-g;g=C,p&&p({action:m,location:j.location,delta:_})}function w(C,_){m="PUSH";let T=Ph(j.location,C,_);r&&r(T,C),g=x()+1;let R=tx(T,g),D=j.createHref(T);try{h.pushState(R,"",D)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;o.location.assign(D)}c&&p&&p({action:m,location:j.location,delta:1})}function S(C,_){m="REPLACE";let T=Ph(j.location,C,_);r&&r(T,C),g=x();let R=tx(T,g),D=j.createHref(T);h.replaceState(R,"",D),c&&p&&p({action:m,location:j.location,delta:0})}function E(C){return iC(C)}let j={get action(){return m},get location(){return n(o,h)},listen(C){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(ex,y),p=C,()=>{o.removeEventListener(ex,y),p=null}},createHref(C){return a(o,C)},createURL:E,encodeLocation(C){let _=E(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:S,go(C){return h.go(C)}};return j}function iC(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:eo(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function Nb(n,a,r="/"){return sC(n,a,r,!1)}function sC(n,a,r,i){let o=typeof a=="string"?gr(a):a,c=Ua(o.pathname||"/",r);if(c==null)return null;let h=Cb(n);oC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=xC(c);m=gC(h[p],g,i)}return m}function Cb(n,a=[],r=[],i=""){let o=(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=za([i,p.relativePath]),x=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}".`),Cb(c.children,a,x,g)),!(c.path==null&&!c.index)&&a.push({path:g,score:pC(g,c.index),routesMeta:x})};return n.forEach((c,h)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))o(c,h);else for(let p of _b(c.path))o(c,h,p)}),a}function _b(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,o=r.endsWith("?"),c=r.replace(/\?$/,"");if(i.length===0)return o?[c,""]:[c];let h=_b(i.join("/")),m=[];return m.push(...h.map(p=>p===""?c:[c,p].join("/"))),o&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function oC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:vC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var uC=/^:[\w-]+$/,cC=3,dC=2,fC=1,hC=10,mC=-2,nx=n=>n==="*";function pC(n,a){let r=n.split("/"),i=r.length;return r.some(nx)&&(i+=mC),a&&(i+=dC),r.filter(o=>!nx(o)).reduce((o,c)=>o+(uC.test(c)?cC:c===""?fC:hC),i)}function vC(n,a){return n.length===a.length&&n.slice(0,-1).every((i,o)=>i===a[o])?n[n.length-1]-a[a.length-1]:0}function gC(n,a,r=!1){let{routesMeta:i}=n,o={},c="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,x=c==="/"?a:a.slice(c.length)||"/",y=lc({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},x),w=p.route;if(!y&&g&&r&&!i[i.length-1].route.index&&(y=lc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},x)),!y)return null;Object.assign(o,y.params),h.push({params:o,pathname:za([c,y.pathname]),pathnameBase:SC(za([c,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(c=za([c,y.pathnameBase]))}return h}function lc(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=yC(n.path,n.caseSensitive,n.end),o=a.match(r);if(!o)return null;let c=o[0],h=c.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:i.reduce((g,{paramName:x,isOptional:y},w)=>{if(x==="*"){let E=m[w]||"";h=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const S=m[w];return y&&!S?g[x]=void 0:g[x]=(S||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:h,pattern:n}}function yC(n,a=!1,r=!0){Tn(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=[],o="^"+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:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),i]}function xC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Tn(!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 Ua(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 bC(n,a="/"){let{pathname:r,search:i="",hash:o=""}=typeof n=="string"?gr(n):n;return{pathname:r?r.startsWith("/")?r:wC(r,a):a,search:EC(i),hash:NC(o)}}function wC(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function gh(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 _m(n){let a=jC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function Tm(n,a,r,i=!1){let o;typeof n=="string"?o=gr(n):(o={...n},at(!o.pathname||!o.pathname.includes("?"),gh("?","pathname","search",o)),at(!o.pathname||!o.pathname.includes("#"),gh("#","pathname","hash",o)),at(!o.search||!o.search.includes("#"),gh("#","search","hash",o)));let c=n===""||o.pathname==="",h=c?"/":o.pathname,m;if(h==null)m=r;else{let y=a.length-1;if(!i&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),y-=1;o.pathname=w.join("/")}m=y>=0?a[y]:"/"}let p=bC(o,m),g=h&&h!=="/"&&h.endsWith("/"),x=(c||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||x)&&(p.pathname+="/"),p}var za=n=>n.join("/").replace(/\/\/+/g,"/"),SC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),EC=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,NC=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function CC(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Tb=["POST","PUT","PATCH","DELETE"];new Set(Tb);var _C=["GET",...Tb];new Set(_C);var Oi=v.createContext(null);Oi.displayName="DataRouter";var bc=v.createContext(null);bc.displayName="DataRouterState";var Rb=v.createContext({isTransitioning:!1});Rb.displayName="ViewTransition";var TC=v.createContext(new Map);TC.displayName="Fetchers";var RC=v.createContext(null);RC.displayName="Await";var Qn=v.createContext(null);Qn.displayName="Navigation";var uo=v.createContext(null);uo.displayName="Location";var $n=v.createContext({outlet:null,matches:[],isDataRoute:!1});$n.displayName="Route";var Rm=v.createContext(null);Rm.displayName="RouteError";function MC(n,{relative:a}={}){at(zi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext(Qn),{hash:o,pathname:c,search:h}=co(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:za([r,c])),i.createHref({pathname:m,search:h,hash:o})}function zi(){return v.useContext(uo)!=null}function Ba(){return at(zi(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(uo).location}var Mb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ab(n){v.useContext(Qn).static||v.useLayoutEffect(n)}function kb(){let{isDataRoute:n}=v.useContext($n);return n?GC():AC()}function AC(){at(zi(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(Oi),{basename:a,navigator:r}=v.useContext(Qn),{matches:i}=v.useContext($n),{pathname:o}=Ba(),c=JSON.stringify(_m(i)),h=v.useRef(!1);return Ab(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(Tn(h.current,Mb),!h.current)return;if(typeof p=="number"){r.go(p);return}let x=Tm(p,JSON.parse(c),o,g.relative==="path");n==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:za([a,x.pathname])),(g.replace?r.replace:r.push)(x,g.state,g)},[a,r,c,o,n])}v.createContext(null);function Qa(){let{matches:n}=v.useContext($n),a=n[n.length-1];return a?a.params:{}}function co(n,{relative:a}={}){let{matches:r}=v.useContext($n),{pathname:i}=Ba(),o=JSON.stringify(_m(r));return v.useMemo(()=>Tm(n,JSON.parse(o),i,a==="path"),[n,o,i,a])}function kC(n,a){return Db(n,a)}function Db(n,a,r,i){var _;at(zi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=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:"/",x=h&&h.route;{let T=x&&x.path||"";Ob(p,!x||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 y=Ba(),w;if(a){let T=typeof a=="string"?gr(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=y;let S=w.pathname||"/",E=S;if(g!=="/"){let T=g.replace(/^\//,"").split("/");E="/"+S.replace(/^\//,"").split("/").slice(T.length).join("/")}let j=Nb(n,{pathname:E});Tn(x||j!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Tn(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.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=UC(j&&j.map(T=>Object.assign({},T,{params:Object.assign({},m,T.params),pathname:za([g,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:za([g,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),c,r,i);return a&&C?v.createElement(uo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},C):C}function DC(){let n=$C(),a=CC(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)",o={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:o},r):null,h)}var OC=v.createElement(DC,null),zC=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(Rm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function LC({routeContext:n,match:a,children:r}){let i=v.useContext(Oi);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 UC(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 o=n,c=r==null?void 0:r.errors;if(c!=null){let p=o.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(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let h=!1,m=-1;if(r)for(let p=0;p<o.length;p++){let g=o[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:x,errors:y}=r,w=g.route.loader&&!x.hasOwnProperty(g.route.id)&&(!y||y[g.route.id]===void 0);if(g.route.lazy||w){h=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((p,g,x)=>{let y,w=!1,S=null,E=null;r&&(y=c&&g.route.id?c[g.route.id]:void 0,S=g.route.errorElement||OC,h&&(m<0&&x===0?(Ob("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===x&&(w=!0,E=g.route.hydrateFallbackElement||null)));let j=a.concat(o.slice(0,x+1)),C=()=>{let _;return y?_=S:w?_=E:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(LC,{match:g,routeContext:{outlet:p,matches:j,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?v.createElement(zC,{location:r.location,revalidation:r.revalidation,component:S,error:y,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):C()},null)}function Mm(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(Oi);return at(a,Mm(n)),a}function HC(n){let a=v.useContext(bc);return at(a,Mm(n)),a}function BC(n){let a=v.useContext($n);return at(a,Mm(n)),a}function Am(n){let a=BC(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 QC(){return Am("useRouteId")}function $C(){var i;let n=v.useContext(Rm),a=HC("useRouteError"),r=Am("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function GC(){let{router:n}=qC("useNavigate"),a=Am("useNavigate"),r=v.useRef(!1);return Ab(()=>{r.current=!0}),v.useCallback(async(o,c={})=>{Tn(r.current,Mb),r.current&&(typeof o=="number"?n.navigate(o):await n.navigate(o,{fromRouteId:a,...c}))},[n,a])}var ax={};function Ob(n,a,r){!a&&!ax[n]&&(ax[n]=!0,Tn(!1,r))}v.memo(YC);function YC({routes:n,future:a,state:r}){return Db(n,void 0,r,a)}function Ma({to:n,replace:a,state:r,relative:i}){at(zi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=v.useContext(Qn);Tn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext($n),{pathname:h}=Ba(),m=kb(),p=Tm(n,_m(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 Sn(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 VC({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:o,static:c=!1}){at(!zi(),"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:o,static:c,future:{}}),[h,o,c]);typeof r=="string"&&(r=gr(r));let{pathname:p="/",search:g="",hash:x="",state:y=null,key:w="default"}=r,S=v.useMemo(()=>{let E=Ua(p,h);return E==null?null:{location:{pathname:E,search:g,hash:x,state:y,key:w},navigationType:i}},[h,p,g,x,y,w,i]);return Tn(S!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:v.createElement(Qn.Provider,{value:m},v.createElement(uo.Provider,{children:a,value:S}))}function KC({children:n,location:a}){return kC(Jh(n),a)}function Jh(n,a=[]){let r=[];return v.Children.forEach(n,(i,o)=>{if(!v.isValidElement(i))return;let c=[...a,o];if(i.type===v.Fragment){r.push.apply(r,Jh(i.props.children,c));return}at(i.type===Sn,`[${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=Jh(i.props.children,c)),r.push(h)}),r}var Pu="get",Ju="application/x-www-form-urlencoded";function wc(n){return n!=null&&typeof n.tagName=="string"}function XC(n){return wc(n)&&n.tagName.toLowerCase()==="button"}function FC(n){return wc(n)&&n.tagName.toLowerCase()==="form"}function ZC(n){return wc(n)&&n.tagName.toLowerCase()==="input"}function PC(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function JC(n,a){return n.button===0&&(!a||a==="_self")&&!PC(n)}var Hu=null;function WC(){if(Hu===null)try{new FormData(document.createElement("form"),0),Hu=!1}catch{Hu=!0}return Hu}var IC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yh(n){return n!=null&&!IC.has(n)?(Tn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ju}"`),null):n}function e_(n,a){let r,i,o,c,h;if(FC(n)){let m=n.getAttribute("action");i=m?Ua(m,a):null,r=n.getAttribute("method")||Pu,o=yh(n.getAttribute("enctype"))||Ju,c=new FormData(n)}else if(XC(n)||ZC(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?Ua(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Pu,o=yh(n.getAttribute("formenctype"))||yh(m.getAttribute("enctype"))||Ju,c=new FormData(m,n),!WC()){let{name:g,type:x,value:y}=n;if(x==="image"){let w=g?`${g}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else g&&c.append(g,y)}}else{if(wc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pu,i=null,o=Ju,h=n}return c&&o==="text/plain"&&(h=c,c=void 0),{action:i,method:r.toLowerCase(),encType:o,formData:c,body:h}}function km(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function t_(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 n_(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 a_(n,a,r){let i=await Promise.all(n.map(async o=>{let c=a.routes[o.route.id];if(c){let h=await t_(c,r);return h.links?h.links():[]}return[]}));return s_(i.flat(1).filter(n_).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function lx(n,a,r,i,o,c){let h=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,m=(p,g)=>{var x;return r[g].pathname!==p.pathname||((x=r[g].route.path)==null?void 0:x.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 y;let x=i.routes[p.route.id];if(!x||!x.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((y=r[0])==null?void 0:y.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function l_(n,a,{includeHydrateFallback:r}={}){return r_(n.map(i=>{let o=a.routes[i.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function r_(n){return[...new Set(n)]}function i_(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,o)=>{let c=JSON.stringify(i_(o));return r.has(c)||(r.add(c),i.push({key:c,link:o})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var o_=new Set([100,101,204,205]);function u_(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&&Ua(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function zb(){let n=v.useContext(Oi);return km(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function c_(){let n=v.useContext(bc);return km(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Dm=v.createContext(void 0);Dm.displayName="FrameworkContext";function Lb(){let n=v.useContext(Dm);return km(n,"You must render this element inside a <HydratedRouter> element"),n}function d_(n,a){let r=v.useContext(Dm),[i,o]=v.useState(!1),[c,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:x,onTouchStart:y}=a,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let j=_=>{_.forEach(T=>{h(T.isIntersecting)})},C=new IntersectionObserver(j,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let j=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(j)}}},[i]);let S=()=>{o(!0)},E=()=>{o(!1),h(!1)};return r?n!=="intent"?[c,w,{}]:[c,w,{onFocus:Ys(m,S),onBlur:Ys(p,E),onMouseEnter:Ys(g,S),onMouseLeave:Ys(x,E),onTouchStart:Ys(y,S)}]:[!1,w,{}]}function Ys(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function f_({page:n,...a}){let{router:r}=zb(),i=v.useMemo(()=>Nb(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(m_,{page:n,matches:i,...a}):null}function h_(n){let{manifest:a,routeModules:r}=Lb(),[i,o]=v.useState([]);return v.useEffect(()=>{let c=!1;return a_(n,a,r).then(h=>{c||o(h)}),()=>{c=!0}},[n,a,r]),i}function m_({page:n,matches:a,...r}){let i=Ba(),{manifest:o,routeModules:c}=Lb(),{basename:h}=zb(),{loaderData:m,matches:p}=c_(),g=v.useMemo(()=>lx(n,a,p,o,i,"data"),[n,a,p,o,i]),x=v.useMemo(()=>lx(n,a,p,o,i,"assets"),[n,a,p,o,i]),y=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,j=!1;if(a.forEach(_=>{var R;let T=o.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?j=!0:E.add(_.route.id))}),E.size===0)return[];let C=u_(n,h);return j&&E.size>0&&C.searchParams.set("_routes",a.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[h,m,i,o,g,a,n,c]),w=v.useMemo(()=>l_(x,o),[x,o]),S=h_(x);return v.createElement(v.Fragment,null,y.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})),S.map(({key:E,link:j})=>v.createElement("link",{key:E,...j})))}function p_(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var Ub=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ub&&(window.__reactRouterVersion="7.6.1")}catch{}function v_({basename:n,children:a,window:r}){let i=v.useRef();i.current==null&&(i.current=aC({window:r,v5Compat:!0}));let o=i.current,[c,h]=v.useState({action:o.action,location:o.location}),m=v.useCallback(p=>{v.startTransition(()=>h(p))},[h]);return v.useLayoutEffect(()=>o.listen(m),[o,m]),v.createElement(VC,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:o})}var qb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=v.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:o,reloadDocument:c,replace:h,state:m,target:p,to:g,preventScrollReset:x,viewTransition:y,...w},S){let{basename:E}=v.useContext(Qn),j=typeof g=="string"&&qb.test(g),C,_=!1;if(typeof g=="string"&&j&&(C=g,Ub))try{let G=new URL(window.location.href),te=g.startsWith("//")?new URL(G.protocol+g):new URL(g),ue=Ua(te.pathname,E);te.origin===G.origin&&ue!=null?g=ue+te.search+te.hash:_=!0}catch{Tn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=MC(g,{relative:o}),[R,D,L]=d_(i,w),K=b_(g,{replace:h,state:m,target:p,preventScrollReset:x,relative:o,viewTransition:y});function H(G){a&&a(G),G.defaultPrevented||K(G)}let q=v.createElement("a",{...w,...L,href:C||T,onClick:_||c?a:H,ref:p_(S,D),target:p,"data-discover":!j&&r==="render"?"true":void 0});return R&&!j?v.createElement(v.Fragment,null,q,v.createElement(f_,{page:T})):q});Pt.displayName="Link";var g_=v.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:o=!1,style:c,to:h,viewTransition:m,children:p,...g},x){let y=co(h,{relative:g.relative}),w=Ba(),S=v.useContext(bc),{navigator:E,basename:j}=v.useContext(Qn),C=S!=null&&N_(y)&&m===!0,_=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,T=w.pathname,R=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(T=T.toLowerCase(),R=R?R.toLowerCase():null,_=_.toLowerCase()),R&&j&&(R=Ua(R,j)||R);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=T===_||!o&&T.startsWith(_)&&T.charAt(D)==="/",K=R!=null&&(R===_||!o&&R.startsWith(_)&&R.charAt(_.length)==="/"),H={isActive:L,isPending:K,isTransitioning:C},q=L?a:void 0,G;typeof i=="function"?G=i(H):G=[i,L?"active":null,K?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof c=="function"?c(H):c;return v.createElement(Pt,{...g,"aria-current":q,className:G,ref:x,style:te,to:h,viewTransition:m},typeof p=="function"?p(H):p)});g_.displayName="NavLink";var y_=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:o,state:c,method:h=Pu,action:m,onSubmit:p,relative:g,preventScrollReset:x,viewTransition:y,...w},S)=>{let E=S_(),j=E_(m,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&qb.test(m),T=R=>{if(p&&p(R),R.defaultPrevented)return;R.preventDefault();let D=R.nativeEvent.submitter,L=(D==null?void 0:D.getAttribute("formmethod"))||h;E(D||R.currentTarget,{fetcherKey:a,method:L,navigate:r,replace:o,state:c,relative:g,preventScrollReset:x,viewTransition:y})};return v.createElement("form",{ref:S,method:C,action:j,onSubmit:i?p:T,...w,"data-discover":!_&&n==="render"?"true":void 0})});y_.displayName="Form";function x_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Hb(n){let a=v.useContext(Oi);return at(a,x_(n)),a}function b_(n,{target:a,replace:r,state:i,preventScrollReset:o,relative:c,viewTransition:h}={}){let m=kb(),p=Ba(),g=co(n,{relative:c});return v.useCallback(x=>{if(JC(x,a)){x.preventDefault();let y=r!==void 0?r:eo(p)===eo(g);m(n,{replace:y,state:i,preventScrollReset:o,relative:c,viewTransition:h})}},[p,m,g,r,i,a,n,o,c,h])}var w_=0,j_=()=>`__${String(++w_)}__`;function S_(){let{router:n}=Hb("useSubmit"),{basename:a}=v.useContext(Qn),r=QC();return v.useCallback(async(i,o={})=>{let{action:c,method:h,encType:m,formData:p,body:g}=e_(i,a);if(o.navigate===!1){let x=o.fetcherKey||j_();await n.fetch(x,r,o.action||c,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||h,formEncType:o.encType||m,flushSync:o.flushSync})}else await n.navigate(o.action||c,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||h,formEncType:o.encType||m,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,a,r])}function E_(n,{relative:a}={}){let{basename:r}=v.useContext(Qn),i=v.useContext($n);at(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),c={...co(n||".",{relative:a})},h=Ba();if(n==null){c.search=h.search;let m=new URLSearchParams(c.search),p=m.getAll("index");if(p.some(x=>x==="")){m.delete("index"),p.filter(y=>y).forEach(y=>m.append("index",y));let x=m.toString();c.search=x?`?${x}`:""}}return(!n||n===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:za([r,c.pathname])),eo(c)}function N_(n,a={}){let r=v.useContext(Rb);at(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Hb("useViewTransitionState"),o=co(n,{relative:a.relative});if(!r.isTransitioning)return!1;let c=Ua(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=Ua(r.nextLocation.pathname,i)||r.nextLocation.pathname;return lc(o.pathname,h)!=null||lc(o.pathname,c)!=null}[...o_];var fo=Eb();const Bb=ub(fo);/**
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 C_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),__=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),rx=n=>{const a=__(n);return a.charAt(0).toUpperCase()+a.slice(1)},Qb=(...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 T_={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 R_=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...T_,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:Qb("lucide",o),...m},[...h.map(([g,x])=>v.createElement(g,x)),...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 Fe=(n,a)=>{const r=v.forwardRef(({className:i,...o},c)=>v.createElement(R_,{ref:c,iconNode:a,className:Qb(`lucide-${C_(rx(n))}`,`lucide-${n}`,i),...o}));return r.displayName=rx(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 M_=[["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"}]],A_=Fe("archive",M_);/**
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 k_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],D_=Fe("arrow-left",k_);/**
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 O_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],z_=Fe("ban",O_);/**
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 L_=[["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"}]],U_=Fe("bell",L_);/**
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"}]],$b=Fe("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 H_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ho=Fe("chevron-left",H_);/**
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 B_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],yr=Fe("chevron-right",B_);/**
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 Q_=[["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"}]],$_=Fe("circle-alert",Q_);/**
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_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Rl=Fe("circle-check",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 Y_=[["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"}]],Li=Fe("circle-x",Y_);/**
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 V_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],kl=Fe("clock",V_);/**
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 K_=[["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"}]],Gb=Fe("columns-3",K_);/**
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 X_=[["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"}]],F_=Fe("database",X_);/**
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 Z_=[["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"}]],P_=Fe("folder-open",Z_);/**
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 J_=[["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"}]],W_=Fe("git-branch",J_);/**
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 I_=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["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"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],eT=Fe("hard-drive",I_);/**
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 tT=[["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"}]],nT=Fe("inbox",tT);/**
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 aT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Yb=Fe("info",aT);/**
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 lT=[["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"}]],Vb=Fe("key",lT);/**
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 rT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],qn=Fe("loader-circle",rT);/**
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 iT=[["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"}]],sT=Fe("mail-warning",iT);/**
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 oT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Kb=Fe("play",oT);/**
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 uT=[["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"}]],jc=Fe("refresh-cw",uT);/**
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 cT=[["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"}]],dT=Fe("repeat",cT);/**
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 fT=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],hT=Fe("search",fT);/**
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 mT=[["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"}]],pT=Fe("settings",mT);/**
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 vT=[["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"}]],gT=Fe("shield",vT);/**
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 yT=[["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"}]],Sc=Fe("table",yT);/**
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 xT=[["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"}]],bT=Fe("timer",xT);function Xb(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=Xb(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function wT(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=Xb(n))&&(i&&(i+=" "),i+=a);return i}const Om="-",jT=n=>{const a=ET(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:o=>{const c=o.split(Om);return c[0]===""&&c.length!==1&&c.shift(),Fb(c,a)||ST(o)},getConflictingClassGroupIds:(o,c)=>{const h=r[o]||[];return c&&i[o]?[...h,...i[o]]:h}}},Fb=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],o=a.nextPart.get(i),c=o?Fb(n.slice(1),o):void 0;if(c)return c;if(a.validators.length===0)return;const h=n.join(Om);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},ix=/^\[(.+)\]$/,ST=n=>{if(ix.test(n)){const a=ix.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},ET=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const o in r)Wh(r[o],i,o,a);return i},Wh=(n,a,r,i)=>{n.forEach(o=>{if(typeof o=="string"){const c=o===""?a:sx(a,o);c.classGroupId=r;return}if(typeof o=="function"){if(NT(o)){Wh(o(i),a,r,i);return}a.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([c,h])=>{Wh(h,sx(a,c),r,i)})})},sx=(n,a)=>{let r=n;return a.split(Om).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},NT=n=>n.isThemeGetter,CT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const o=(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 o(c,h),h},set(c,h){r.has(c)?r.set(c,h):o(c,h)}}},Ih="!",em=":",_T=em.length,TT=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=o=>{const c=[];let h=0,m=0,p=0,g;for(let E=0;E<o.length;E++){let j=o[E];if(h===0&&m===0){if(j===em){c.push(o.slice(p,E)),p=E+_T;continue}if(j==="/"){g=E;continue}}j==="["?h++:j==="]"?h--:j==="("?m++:j===")"&&m--}const x=c.length===0?o:o.substring(p),y=RT(x),w=y!==x,S=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:y,maybePostfixModifierPosition:S}};if(a){const o=a+em,c=i;i=h=>h.startsWith(o)?c(h.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const o=i;i=c=>r({className:c,parseClassName:o})}return i},RT=n=>n.endsWith(Ih)?n.substring(0,n.length-1):n.startsWith(Ih)?n.substring(1):n,MT=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(c=>{c[0]==="["||a[c]?(i.push(...o.sort(),c),o=[]):o.push(c)}),i.push(...o.sort()),i}},AT=n=>({cache:CT(n.cacheSize),parseClassName:TT(n),sortModifiers:MT(n),...jT(n)}),kT=/\s+/,DT=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:c}=a,h=[],m=n.trim().split(kT);let p="";for(let g=m.length-1;g>=0;g-=1){const x=m[g],{isExternal:y,modifiers:w,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:j}=r(x);if(y){p=x+(p.length>0?" "+p:p);continue}let C=!!j,_=i(C?E.substring(0,j):E);if(!_){if(!C){p=x+(p.length>0?" "+p:p);continue}if(_=i(E),!_){p=x+(p.length>0?" "+p:p);continue}C=!1}const T=c(w).join(":"),R=S?T+Ih:T,D=R+_;if(h.includes(D))continue;h.push(D);const L=o(_,C);for(let K=0;K<L.length;++K){const H=L[K];h.push(R+H)}p=x+(p.length>0?" "+p:p)}return p};function OT(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=Zb(a))&&(i&&(i+=" "),i+=r);return i}const Zb=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=Zb(n[i]))&&(r&&(r+=" "),r+=a);return r};function zT(n,...a){let r,i,o,c=h;function h(p){const g=a.reduce((x,y)=>y(x),n());return r=AT(g),i=r.cache.get,o=r.cache.set,c=m,m(p)}function m(p){const g=i(p);if(g)return g;const x=DT(p,r);return o(p,x),x}return function(){return c(OT.apply(null,arguments))}}const jt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},Pb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,LT=/^\d+\/\d+$/,UT=/^(\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$/,HT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,BT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,QT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,si=n=>LT.test(n),ke=n=>!!n&&!Number.isNaN(Number(n)),pl=n=>!!n&&Number.isInteger(Number(n)),xh=n=>n.endsWith("%")&&ke(n.slice(0,-1)),Aa=n=>UT.test(n),$T=()=>!0,GT=n=>qT.test(n)&&!HT.test(n),Wb=()=>!1,YT=n=>BT.test(n),VT=n=>QT.test(n),KT=n=>!he(n)&&!me(n),XT=n=>Ui(n,t1,Wb),he=n=>Pb.test(n),er=n=>Ui(n,n1,GT),bh=n=>Ui(n,WT,ke),ox=n=>Ui(n,Ib,Wb),FT=n=>Ui(n,e1,VT),Bu=n=>Ui(n,a1,YT),me=n=>Jb.test(n),Vs=n=>qi(n,n1),ZT=n=>qi(n,IT),ux=n=>qi(n,Ib),PT=n=>qi(n,t1),JT=n=>qi(n,e1),Qu=n=>qi(n,a1,!0),Ui=(n,a,r)=>{const i=Pb.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},qi=(n,a,r=!1)=>{const i=Jb.exec(n);return i?i[1]?a(i[1]):r:!1},Ib=n=>n==="position"||n==="percentage",e1=n=>n==="image"||n==="url",t1=n=>n==="length"||n==="size"||n==="bg-size",n1=n=>n==="length",WT=n=>n==="number",IT=n=>n==="family-name",a1=n=>n==="shadow",eR=()=>{const n=jt("color"),a=jt("font"),r=jt("text"),i=jt("font-weight"),o=jt("tracking"),c=jt("leading"),h=jt("breakpoint"),m=jt("container"),p=jt("spacing"),g=jt("radius"),x=jt("shadow"),y=jt("inset-shadow"),w=jt("text-shadow"),S=jt("drop-shadow"),E=jt("blur"),j=jt("perspective"),C=jt("aspect"),_=jt("ease"),T=jt("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"],L=()=>[...D(),me,he],K=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],q=()=>[me,he,p],G=()=>[si,"full","auto",...q()],te=()=>[pl,"none","subgrid",me,he],ue=()=>["auto",{span:["full",pl,me,he]},pl,me,he],ce=()=>[pl,"auto",me,he],I=()=>["auto","min","max","fr",me,he],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...q()],W=()=>[si,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],Y=()=>[n,me,he],X=()=>[...D(),ux,ox,{position:[me,he]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",PT,XT,{size:[me,he]}],F=()=>[xh,Vs,er],ee=()=>["","none","full",g,me,he],le=()=>["",ke,Vs,er],ve=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[ke,xh,ux,ox],Ee=()=>["","none",E,me,he],ye=()=>["none",ke,me,he],Ne=()=>["none",ke,me,he],He=()=>[ke,me,he],Ye=()=>[si,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Aa],breakpoint:[Aa],color:[$T],container:[Aa],"drop-shadow":[Aa],ease:["in","out","in-out"],font:[KT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Aa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Aa],shadow:[Aa],spacing:["px",ke],text:[Aa],"text-shadow":[Aa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",si,he,me,C]}],container:["container"],columns:[{columns:[ke,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:L()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[pl,"auto",me,he]}],basis:[{basis:[si,"full","auto",m,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,si,"auto","initial","none",he]}],grow:[{grow:["",ke,me,he]}],shrink:[{shrink:["",ke,me,he]}],order:[{order:[pl,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":te()}],"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":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[m,"screen",...W()]}],"min-w":[{"min-w":[m,"screen","none",...W()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...W()]}],h:[{h:["screen",...W()]}],"min-h":[{"min-h":["screen","none",...W()]}],"max-h":[{"max-h":["screen",...W()]}],"font-size":[{text:["base",r,Vs,er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,me,bh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xh,he]}],"font-family":[{font:[ZT,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:[o,me,he]}],"line-clamp":[{"line-clamp":[ke,"none",me,bh]}],leading:[{leading:[c,...q()]}],"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:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",me,er]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[ke,"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:q()}],"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"]},pl,me,he],radial:["",me,he],conic:[pl,me,he]},JT,FT]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"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:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,me,he]}],"outline-w":[{outline:["",ke,Vs,er]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",x,Qu,Bu]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",y,Qu,Bu]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[ke,er]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",w,Qu,Bu]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[ke,me,he]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"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":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"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":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"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:[ke,me,he]}],contrast:[{contrast:[ke,me,he]}],"drop-shadow":[{"drop-shadow":["","none",S,Qu,Bu]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",ke,me,he]}],"hue-rotate":[{"hue-rotate":[ke,me,he]}],invert:[{invert:["",ke,me,he]}],saturate:[{saturate:[ke,me,he]}],sepia:[{sepia:["",ke,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[ke,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[ke,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,me,he]}],"backdrop-invert":[{"backdrop-invert":["",ke,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[ke,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[ke,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"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:[ke,"initial",me,he]}],ease:[{ease:["linear","initial",_,me,he]}],delay:[{delay:[ke,me,he]}],animate:[{animate:["none",T,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,me,he]}],"perspective-origin":[{"perspective-origin":L()}],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:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ye()}],"translate-x":[{"translate-x":Ye()}],"translate-y":[{"translate-y":Ye()}],"translate-z":[{"translate-z":Ye()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"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":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"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",...Y()]}],"stroke-w":[{stroke:[ke,Vs,er,bh]}],stroke:[{stroke:["none",...Y()]}],"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"]}},tR=zT(eR);function pe(...n){return tR(wT(n))}function Ps(n){return n===null?"-":n<1e3?`${String(n)}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const nR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},aR={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 rc({children:n,className:a,rounded:r="lg",shadow:i="md",...o}){return u.jsxs("div",{"data-slot":"glass-container",className:pe("relative","bg-card","backdrop-blur-xl","border border-border",nR[r],aR[i],a),...o,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 gt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...o}){return u.jsx(rc,{"data-slot":"card",rounded:a,shadow:r,className:pe("p-6",n),...o,children:i})}function _t({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 Tt({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 Bt({className:n,...a}){return u.jsx("p",{"data-slot":"card-description",className:pe("text-muted-foreground text-sm",n),...a})}function yt({className:n,...a}){return u.jsx("div",{"data-slot":"card-content",className:pe(n),...a})}/**
217
+ * @license lucide-react v0.511.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 lR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),rR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),cx=n=>{const a=rR(n);return a.charAt(0).toUpperCase()+a.slice(1)},l1=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),iR=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
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
+ */var sR={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"};/**
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
+ */const oR=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...sR,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:l1("lucide",o),...!c&&!iR(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,x])=>v.createElement(g,x)),...Array.isArray(c)?c:[c]]));/**
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 Gn=(n,a)=>{const r=v.forwardRef(({className:i,...o},c)=>v.createElement(oR,{ref:c,iconNode:a,className:l1(`lucide-${lR(cx(n))}`,`lucide-${n}`,i),...o}));return r.displayName=cx(n),r};/**
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 uR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],r1=Gn("check",uR);/**
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 cR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],dR=Gn("chevron-down",cR);/**
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 fR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],dx=Gn("chevron-left",fR);/**
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 hR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],fx=Gn("chevron-right",hR);/**
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 mR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],pR=Gn("chevron-up",mR);/**
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 vR=[["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"}]],gR=Gn("clipboard",vR);/**
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 yR=[["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"}]],xR=Gn("file-json",yR);/**
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 bR=[["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"}]],wR=Gn("file-spreadsheet",bR);/**
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:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],SR=Gn("loader-circle",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 ER=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],NR=Gn("search",ER);/**
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 CR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_R=Gn("x",CR);function TR(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 wh({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 o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.select();try{document.execCommand("copy")}catch{}document.body.removeChild(o),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(r1,{className:"w-3 h-3"}):u.jsx(gR,{className:"w-3 h-3"})})}function cn({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[o,c]=v.useState(!1),[,h]=v.useState(0),m=i||o;if(v.useEffect(()=>{const w=setInterval(()=>{h(S=>S+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(),x=p.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),y=TR(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:y}),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(rc,{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(wh,{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(wh,{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:x}),u.jsx(wh,{value:x})]})]})]})})})]})}function RR(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function MR(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 AR(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function kR(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&AR(n)?"date":typeof i=="number"?"number":MR(i)?"date":"string"}return"string"}function i1({results:n,meta:a,columns:r,error:i,title:o="Results",pageSize:c=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const[g,x]=v.useState(""),[y,w]=v.useState(null),[S,E]=v.useState(new Set),[j,C]=v.useState(1),_=!!p,T=p?Math.floor(p.offset/p.limit)+1:1,R=p?Math.ceil(p.total/p.limit):1,D=v.useMemo(()=>r||(n.length===0?[]:Object.keys(n[0]).map(I=>({key:I,label:I,type:kR(I,n)}))),[r,n]),L=v.useMemo(()=>g?n.filter(I=>Object.values(I).some(ie=>String(ie).toLowerCase().includes(g.toLowerCase()))):n,[n,g]),K=v.useMemo(()=>y?[...L].sort((I,ie)=>{const re=I[y.key],U=ie[y.key];return re==null?1:U==null?-1:re<U?y.direction==="asc"?-1:1:re>U?y.direction==="asc"?1:-1:0}):L,[L,y]),H=Math.ceil(K.length/c),q=v.useMemo(()=>{const I=(j-1)*c;return K.slice(I,I+c)},[K,j,c]);v.useMemo(()=>{C(1)},[g,y]);const G=I=>{w(ie=>(ie==null?void 0:ie.key)===I?ie.direction==="asc"?{key:I,direction:"desc"}:null:{key:I,direction:"asc"})},te=()=>{S.size===q.length?E(new Set):E(new Set(q.map((I,ie)=>ie)))},ue=I=>{const ie=new Set(S);ie.has(I)?ie.delete(I):ie.add(I),E(ie)},ce=(I,ie)=>{const re=I[ie.key];if(re==null)return u.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(ie.type??"string"){case"bool":return re===!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(r1,{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(_R,{className:"w-3.5 h-3.5"})});case"date":return u.jsx(cn,{timestamp:re,rawValue:typeof re=="number"?re:void 0});case"number":return u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof re=="number"?re.toLocaleString():JSON.stringify(re)});default:return typeof re=="object"?u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(re)}):u.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:typeof re=="object"?JSON.stringify(re):String(re)})}};return i?u.jsxs(rc,{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(rc,{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:o}),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:RR(a.duration)}),u.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[n.length," row",n.length!==1?"s":""]})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"relative group",children:[u.jsx(NR,{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:g,onChange:I=>{x(I.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(wR,{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(xR,{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:S.size===q.length&&q.length>0,onChange:te,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(I=>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:()=>{G(I.key)},children:u.jsxs("div",{className:"flex items-center gap-1",children:[I.label,u.jsxs("div",{className:pe("flex flex-col opacity-0 group-hover:opacity-50",(y==null?void 0:y.key)===I.key&&"opacity-100"),children:[u.jsx(pR,{className:pe("w-2 h-2",(y==null?void 0:y.key)===I.key&&y.direction==="asc"&&"text-blue-500")}),u.jsx(dR,{className:pe("w-2 h-2",(y==null?void 0:y.key)===I.key&&y.direction==="desc"&&"text-blue-500")})]})]})},I.key))]})}),u.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:q.length>0?q.map((I,ie)=>u.jsxs("tr",{className:pe("group transition-colors",S.has(ie)?"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:S.has(ie),onChange:()=>{ue(ie)},className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(re=>u.jsx("td",{className:"p-4 whitespace-nowrap",children:ce(I,re)},`${String(ie)}-${re.key}`))]},ie)):u.jsx("tr",{children:u.jsx("td",{colSpan:D.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:g?`No results found matching "${g}"`:"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:[_?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+n.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:q.length})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:K.length})," ","results"]}),S.size>0&&u.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[S.size," row",S.size!==1?"s":""," ","selected"]})]}),_&&R>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:T===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(dx,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(R,5)},(I,ie)=>{let re;return R<=5||T<=3?re=ie+1:T>=R-2?re=R-4+ie:re=T-2+ie,u.jsx("button",{onClick:()=>{p.onPageChange((re-1)*p.limit)},className:pe("px-2.5 py-1 rounded-lg font-medium transition-colors",T===re?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:re},re)})}),u.jsx("button",{onClick:()=>{p.onPageChange(p.offset+p.limit)},disabled:T===R,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(fx,{className:"w-4 h-4"})})]}),!_&&H>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{C(I=>Math.max(1,I-1))},disabled:j===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(dx,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(H,5)},(I,ie)=>{let re;return H<=5||j<=3?re=ie+1:j>=H-2?re=H-4+ie:re=j-2+ie,u.jsx("button",{onClick:()=>{C(re)},className:pe("px-2.5 py-1 rounded-lg font-medium transition-colors",j===re?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:re},re)})}),u.jsx("button",{onClick:()=>{C(I=>Math.min(H,I+1))},disabled:j===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(fx,{className:"w-4 h-4"})})]})]})]})}function na({className:n,...a}){return u.jsx("table",{"data-slot":"table",className:pe("w-full caption-bottom text-sm",n),...a})}function aa({className:n,...a}){return u.jsx("thead",{"data-slot":"table-header",className:pe("[&_tr]:border-b",n),...a})}function la({className:n,...a}){return u.jsx("tbody",{"data-slot":"table-body",className:pe("[&_tr:last-child]:border-0",n),...a})}function xt({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 Re({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 Me({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 hx(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function mo(...n){return a=>{let r=!1;const i=n.map(o=>{const c=hx(o,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let o=0;o<i.length;o++){const c=i[o];typeof c=="function"?c():hx(n[o],null)}}}}function we(...n){return v.useCallback(mo(...n),n)}function hr(n){const a=DR(n),r=v.forwardRef((i,o)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(OR);if(p){const g=p.props.children,x=m.map(y=>y===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:y);return u.jsx(a,{...h,ref:o,children:v.isValidElement(g)?v.cloneElement(g,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:c})});return r.displayName=`${n}.Slot`,r}var mx=hr("Slot");function DR(n){const a=v.forwardRef((r,i)=>{const{children:o,...c}=r;if(v.isValidElement(o)){const h=LR(o),m=zR(c,o.props);return o.type!==v.Fragment&&(m.ref=i?mo(i,h):h),v.cloneElement(o,m)}return v.Children.count(o)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var s1=Symbol("radix.slottable");function o1(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=s1,a}function OR(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===s1}function zR(n,a){const r={...a};for(const i in a){const o=n[i],c=a[i];/^on[A-Z]/.test(i)?o&&c?r[i]=(...h)=>{const m=c(...h);return o(...h),m}:o&&(r[i]=o):i==="style"?r[i]={...o,...c}:i==="className"&&(r[i]=[o,c].filter(Boolean).join(" "))}return{...n,...r}}function LR(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}function u1(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;a++)n[a]&&(r=u1(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function UR(){for(var n,a,r=0,i="",o=arguments.length;r<o;r++)(n=arguments[r])&&(a=u1(n))&&(i&&(i+=" "),i+=a);return i}const px=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,vx=UR,c1=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return vx(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:c}=a,h=Object.keys(o).map(g=>{const x=r==null?void 0:r[g],y=c==null?void 0:c[g];if(x===null)return null;const w=px(x)||px(y);return o[g][w]}),m=r&&Object.entries(r).reduce((g,x)=>{let[y,w]=x;return w===void 0||(g[y]=w),g},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,x)=>{let{class:y,className:w,...S}=x;return Object.entries(S).every(E=>{let[j,C]=E;return Array.isArray(C)?C.includes({...c,...m}[j]):{...c,...m}[j]===C})?[...g,y,w]:g},[]);return vx(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 Ti({className:n,icon:a,variant:r="default",children:i,...o}){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),...o,children:[a&&u.jsx("span",{className:"flex-shrink-0",children:a}),u.jsx("span",{className:"leading-none",children:i})]})}const gx=c1("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"}}),HR=["primary","secondary","danger","success","icon"];function Xe({className:n,variant:a,size:r,asChild:i=!1,isLoading:o=!1,children:c,disabled:h,...m}){const p=i?mx:"button",g=a&&HR.includes(a);return i?u.jsx(mx,{"data-slot":"button",className:pe(gx({variant:a,size:r,className:n})),...m,children:c}):u.jsxs(p,{"data-slot":"button",className:pe(gx({variant:a,size:r,className:n})),disabled:h===!0||o,...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:[o&&u.jsx(SR,{className:"size-4 animate-spin"}),c]})]})}const d1=({ref:n,className:a,active:r=!1,icon:i,children:o,"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"}),o,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")})]})};d1.displayName="TabButton";const BR={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function f1({className:n,label:a,error:r,leftIcon:i,rightContent:o,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",BR[c],i&&"pl-2",o!==null&&"pr-2"),...h}),o&&u.jsx("div",{className:"relative z-10 pr-3",children:o})]})}),r&&u.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var QR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=QR.reduce((n,a)=>{const r=hr(`Primitive.${a}`),i=v.forwardRef((o,c)=>{const{asChild:h,...m}=o,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 ic(n,a){n&&fo.flushSync(()=>n.dispatchEvent(a))}var lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function $R(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Et=n=>{const{present:a,children:r}=n,i=GR(a),o=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),c=we(i.ref,YR(o));return typeof r=="function"||i.isPresent?v.cloneElement(o,{ref:c}):null};Et.displayName="Presence";function GR(n){const[a,r]=v.useState(),i=v.useRef(null),o=v.useRef(n),c=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=$R(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,x=o.current;if(x!==n){const y=c.current,w=$u(g);n?p("MOUNT"):w==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(x&&y!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,p]),lt(()=>{if(a){let g;const x=a.ownerDocument.defaultView??window,y=S=>{const E=$u(i.current).includes(CSS.escape(S.animationName));if(S.target===a&&E&&(p("ANIMATION_END"),!o.current)){const j=a.style.animationFillMode;a.style.animationFillMode="forwards",g=x.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=j)})}},w=S=>{S.target===a&&(c.current=$u(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",y),a.addEventListener("animationend",y),()=>{x.clearTimeout(g),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",y),a.removeEventListener("animationend",y)}}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 YR(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}function VR(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 o(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,o]}function bt(n,a=[]){let r=[];function i(c,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=y=>{var w;const{scope:S,children:E,...j}=y,C=((w=S==null?void 0:S[n])==null?void 0:w[p])||m,_=v.useMemo(()=>j,Object.values(j));return u.jsx(C.Provider,{value:_,children:E})};g.displayName=c+"Provider";function x(y,w){var S;const E=((S=w==null?void 0:w[n])==null?void 0:S[p])||m,j=v.useContext(E);if(j)return j;if(h!==void 0)return h;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[g,x]}const o=()=>{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 o.scopeName=n,[i,KR(o,...a)]}function KR(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const i=n.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const c=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(o)[`__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 XR=v.createContext(void 0);function Hi(n){const a=v.useContext(XR);return n||a||"ltr"}function tm(n,[a,r]){return Math.min(r,Math.max(a,n))}function ae(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 FR(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var zm="ScrollArea",[h1,Lz]=bt(zm),[ZR,Rn]=h1(zm),m1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:o,scrollHideDelay:c=600,...h}=n,[m,p]=v.useState(null),[g,x]=v.useState(null),[y,w]=v.useState(null),[S,E]=v.useState(null),[j,C]=v.useState(null),[_,T]=v.useState(0),[R,D]=v.useState(0),[L,K]=v.useState(!1),[H,q]=v.useState(!1),G=we(a,ue=>p(ue)),te=Hi(o);return u.jsx(ZR,{scope:r,type:i,dir:te,scrollHideDelay:c,scrollArea:m,viewport:g,onViewportChange:x,content:y,onContentChange:w,scrollbarX:S,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:K,scrollbarY:j,onScrollbarYChange:C,scrollbarYEnabled:H,onScrollbarYEnabledChange:q,onCornerWidthChange:T,onCornerHeightChange:D,children:u.jsx(se.div,{dir:te,...h,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":R+"px",...n.style}})})});m1.displayName=zm;var p1="ScrollAreaViewport",v1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:o,...c}=n,h=Rn(p1,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:o}),u.jsx(se.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})})]})});v1.displayName=p1;var ra="ScrollAreaScrollbar",g1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Rn(ra,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:h}=o,m=n.orientation==="horizontal";return v.useEffect(()=>(m?c(!0):h(!0),()=>{m?c(!1):h(!1)}),[m,c,h]),o.type==="hover"?u.jsx(PR,{...i,ref:a,forceMount:r}):o.type==="scroll"?u.jsx(JR,{...i,ref:a,forceMount:r}):o.type==="auto"?u.jsx(y1,{...i,ref:a,forceMount:r}):o.type==="always"?u.jsx(Lm,{...i,ref:a}):null});g1.displayName=ra;var PR=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Rn(ra,n.__scopeScrollArea),[c,h]=v.useState(!1);return v.useEffect(()=>{const m=o.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},x=()=>{p=window.setTimeout(()=>h(!1),o.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",x),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",x)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(Et,{present:r||c,children:u.jsx(y1,{"data-state":c?"visible":"hidden",...i,ref:a})})}),JR=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Rn(ra,n.__scopeScrollArea),c=n.orientation==="horizontal",h=Nc(()=>p("SCROLL_END"),100),[m,p]=FR("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"),o.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,o.scrollHideDelay,p]),v.useEffect(()=>{const g=o.viewport,x=c?"scrollLeft":"scrollTop";if(g){let y=g[x];const w=()=>{const S=g[x];y!==S&&(p("SCROLL"),h()),y=S};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[o.viewport,c,p,h]),u.jsx(Et,{present:r||m!=="hidden",children:u.jsx(Lm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ae(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ae(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),y1=v.forwardRef((n,a)=>{const r=Rn(ra,n.__scopeScrollArea),{forceMount:i,...o}=n,[c,h]=v.useState(!1),m=n.orientation==="horizontal",p=Nc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,x=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:x)}},10);return Ri(r.viewport,p),Ri(r.content,p),u.jsx(Et,{present:i||c,children:u.jsx(Lm,{"data-state":c?"visible":"hidden",...o,ref:a})})}),Lm=v.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,o=Rn(ra,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=S1(m.viewport,m.content),x={...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 y(w,S){return aM(w,h.current,m,S)}return r==="horizontal"?u.jsx(WR,{...x,ref:a,onThumbPositionChange:()=>{if(o.viewport&&c.current){const w=o.viewport.scrollLeft,S=yx(w,m,o.dir);c.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:w=>{o.viewport&&(o.viewport.scrollLeft=w)},onDragScroll:w=>{o.viewport&&(o.viewport.scrollLeft=y(w,o.dir))}}):r==="vertical"?u.jsx(IR,{...x,ref:a,onThumbPositionChange:()=>{if(o.viewport&&c.current){const w=o.viewport.scrollTop,S=yx(w,m);c.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:w=>{o.viewport&&(o.viewport.scrollTop=w)},onDragScroll:w=>{o.viewport&&(o.viewport.scrollTop=y(w))}}):null}),WR=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...o}=n,c=Rn(ra,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(b1,{"data-orientation":"horizontal",...o,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":Ec(r)+"px",...n.style},onThumbPointerDown:x=>n.onThumbPointerDown(x.x),onDragScroll:x=>n.onDragScroll(x.x),onWheelScroll:(x,y)=>{if(c.viewport){const w=c.viewport.scrollLeft+x.deltaX;n.onWheelScroll(w),N1(w,y)&&x.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:oc(h.paddingLeft),paddingEnd:oc(h.paddingRight)}})}})}),IR=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...o}=n,c=Rn(ra,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(b1,{"data-orientation":"vertical",...o,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":Ec(r)+"px",...n.style},onThumbPointerDown:x=>n.onThumbPointerDown(x.y),onDragScroll:x=>n.onDragScroll(x.y),onWheelScroll:(x,y)=>{if(c.viewport){const w=c.viewport.scrollTop+x.deltaY;n.onWheelScroll(w),N1(w,y)&&x.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:oc(h.paddingTop),paddingEnd:oc(h.paddingBottom)}})}})}),[eM,x1]=h1(ra),b1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:o,onThumbChange:c,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:x,onResize:y,...w}=n,S=Rn(ra,r),[E,j]=v.useState(null),C=we(a,G=>j(G)),_=v.useRef(null),T=v.useRef(""),R=S.viewport,D=i.content-i.viewport,L=nt(x),K=nt(p),H=Nc(y,10);function q(G){if(_.current){const te=G.clientX-_.current.left,ue=G.clientY-_.current.top;g({x:te,y:ue})}}return v.useEffect(()=>{const G=te=>{const ue=te.target;E!=null&&E.contains(ue)&&L(te,D)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[R,E,D,L]),v.useEffect(K,[i,K]),Ri(E,H),Ri(S.content,H),u.jsx(eM,{scope:r,scrollbar:E,hasThumb:o,onThumbChange:nt(c),onThumbPointerUp:nt(h),onThumbPositionChange:K,onThumbPointerDown:nt(m),children:u.jsx(se.div,{...w,ref:C,style:{position:"absolute",...w.style},onPointerDown:ae(n.onPointerDown,G=>{G.button===0&&(G.target.setPointerCapture(G.pointerId),_.current=E.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),q(G))}),onPointerMove:ae(n.onPointerMove,q),onPointerUp:ae(n.onPointerUp,G=>{const te=G.target;te.hasPointerCapture(G.pointerId)&&te.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=T.current,S.viewport&&(S.viewport.style.scrollBehavior=""),_.current=null})})})}),sc="ScrollAreaThumb",w1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=x1(sc,n.__scopeScrollArea);return u.jsx(Et,{present:r||o.hasThumb,children:u.jsx(tM,{ref:a,...i})})}),tM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...o}=n,c=Rn(sc,r),h=x1(sc,r),{onThumbPositionChange:m}=h,p=we(a,y=>h.onThumbChange(y)),g=v.useRef(void 0),x=Nc(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const y=c.viewport;if(y){const w=()=>{if(x(),!g.current){const S=lM(y,m);g.current=S,m()}};return m(),y.addEventListener("scroll",w),()=>y.removeEventListener("scroll",w)}},[c.viewport,x,m]),u.jsx(se.div,{"data-state":h.hasThumb?"visible":"hidden",...o,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ae(n.onPointerDownCapture,y=>{const w=y.target.getBoundingClientRect(),S=y.clientX-w.left,E=y.clientY-w.top;h.onThumbPointerDown({x:S,y:E})}),onPointerUp:ae(n.onPointerUp,h.onThumbPointerUp)})});w1.displayName=sc;var Um="ScrollAreaCorner",j1=v.forwardRef((n,a)=>{const r=Rn(Um,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?u.jsx(nM,{...n,ref:a}):null});j1.displayName=Um;var nM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,o=Rn(Um,r),[c,h]=v.useState(0),[m,p]=v.useState(0),g=!!(c&&m);return Ri(o.scrollbarX,()=>{var x;const y=((x=o.scrollbarX)==null?void 0:x.offsetHeight)||0;o.onCornerHeightChange(y),p(y)}),Ri(o.scrollbarY,()=>{var x;const y=((x=o.scrollbarY)==null?void 0:x.offsetWidth)||0;o.onCornerWidthChange(y),h(y)}),g?u.jsx(se.div,{...i,ref:a,style:{width:c,height:m,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function oc(n){return n?parseInt(n,10):0}function S1(n,a){const r=n/a;return isNaN(r)?0:r}function Ec(n){const a=S1(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function aM(n,a,r,i="ltr"){const o=Ec(r),c=o/2,h=a||c,m=o-h,p=r.scrollbar.paddingStart+h,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,x=r.content-r.viewport,y=i==="ltr"?[0,x]:[x*-1,0];return E1([p,g],y)(n)}function yx(n,a,r="ltr"){const i=Ec(a),o=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,c=a.scrollbar.size-o,h=a.content-a.viewport,m=c-i,p=r==="ltr"?[0,h]:[h*-1,0],g=tm(n,p);return E1([0,h],[0,m])(g)}function E1(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 N1(n,a){return n>0&&n<a}var lM=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function o(){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(o)})(),()=>window.cancelAnimationFrame(i)};function Nc(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 Ri(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(n),()=>{window.cancelAnimationFrame(i),o.unobserve(n)}}},[n,r])}var rM=m1,iM=v1,sM=j1;function C1({className:n,children:a,...r}){return u.jsxs(rM,{"data-slot":"scroll-area",className:pe("relative",n),...r,children:[u.jsx(iM,{"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(oM,{}),u.jsx(sM,{})]})}function oM({className:n,orientation:a="vertical",...r}){return u.jsx(g1,{"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(w1,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var uM=bb[" useInsertionEffect ".trim().toString()]||lt;function ia({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[o,c,h]=cM({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:o;{const x=v.useRef(n!==void 0);v.useEffect(()=>{const y=x.current;y!==m&&console.warn(`${i} is changing from ${y?"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.`),x.current=m},[m,i])}const g=v.useCallback(x=>{var y;if(m){const w=dM(x)?x(n):x;w!==n&&((y=h.current)==null||y.call(h,w))}else c(x)},[m,n,c,h]);return[p,g]}function cM({defaultProp:n,onChange:a}){const[r,i]=v.useState(n),o=v.useRef(r),c=v.useRef(a);return uM(()=>{c.current=a},[a]),v.useEffect(()=>{var h;o.current!==r&&((h=c.current)==null||h.call(c,r),o.current=r)},[r,o]),[r,i,c]}function dM(n){return typeof n=="function"}function Bi(n){const a=n+"CollectionProvider",[r,i]=bt(a),[o,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=j=>{const{scope:C,children:_}=j,T=ot.useRef(null),R=ot.useRef(new Map).current;return u.jsx(o,{scope:C,itemMap:R,collectionRef:T,children:_})};h.displayName=a;const m=n+"CollectionSlot",p=hr(m),g=ot.forwardRef((j,C)=>{const{scope:_,children:T}=j,R=c(m,_),D=we(C,R.collectionRef);return u.jsx(p,{ref:D,children:T})});g.displayName=m;const x=n+"CollectionItemSlot",y="data-radix-collection-item",w=hr(x),S=ot.forwardRef((j,C)=>{const{scope:_,children:T,...R}=j,D=ot.useRef(null),L=we(C,D),K=c(x,_);return ot.useEffect(()=>(K.itemMap.set(D,{ref:D,...R}),()=>void K.itemMap.delete(D))),u.jsx(w,{[y]:"",ref:L,children:T})});S.displayName=x;function E(j){const C=c(n+"CollectionConsumer",j);return ot.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const T=Array.from(_.querySelectorAll(`[${y}]`));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:S},E,i]}function fM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n);v.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var hM="DismissableLayer",nm="dismissableLayer.update",mM="dismissableLayer.pointerDownOutside",pM="dismissableLayer.focusOutside",xx,_1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qi=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(_1),[x,y]=v.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=v.useState({}),E=we(a,H=>y(H)),j=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),_=j.indexOf(C),T=x?j.indexOf(x):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,D=T>=_,L=yM(H=>{const q=H.target,G=[...g.branches].some(te=>te.contains(q));!D||G||(o==null||o(H),h==null||h(H),H.defaultPrevented||m==null||m())},w),K=xM(H=>{const q=H.target;[...g.branches].some(G=>G.contains(q))||(c==null||c(H),h==null||h(H),H.defaultPrevented||m==null||m())},w);return fM(H=>{T===g.layers.size-1&&(i==null||i(H),!H.defaultPrevented&&m&&(H.preventDefault(),m()))},w),v.useEffect(()=>{if(x)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(xx=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),bx(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=xx)}},[x,w,r,g]),v.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),bx())},[x,g]),v.useEffect(()=>{const H=()=>S({});return document.addEventListener(nm,H),()=>document.removeEventListener(nm,H)},[]),u.jsx(se.div,{...p,ref:E,style:{pointerEvents:R?D?"auto":"none":void 0,...n.style},onFocusCapture:ae(n.onFocusCapture,K.onFocusCapture),onBlurCapture:ae(n.onBlurCapture,K.onBlurCapture),onPointerDownCapture:ae(n.onPointerDownCapture,L.onPointerDownCapture)})});Qi.displayName=hM;var vM="DismissableLayerBranch",gM=v.forwardRef((n,a)=>{const r=v.useContext(_1),i=v.useRef(null),o=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(se.div,{...n,ref:o})});gM.displayName=vM;function yM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const c=m=>{if(m.target&&!i.current){let p=function(){T1(mM,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=p,a.addEventListener("click",o.current,{once:!0})):p()}else a.removeEventListener("click",o.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",c),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function xM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1);return v.useEffect(()=>{const o=c=>{c.target&&!i.current&&T1(pM,r,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function bx(){const n=new CustomEvent(nm);document.dispatchEvent(n)}function T1(n,a,r,{discrete:i}){const o=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(n,a,{once:!0}),i?ic(o,c):o.dispatchEvent(c)}var jh=0;function qm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??wx()),document.body.insertAdjacentElement("beforeend",n[1]??wx()),jh++,()=>{jh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),jh--}},[])}function wx(){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 Sh="focusScope.autoFocusOnMount",Eh="focusScope.autoFocusOnUnmount",jx={bubbles:!1,cancelable:!0},bM="FocusScope",Cc=v.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...h}=n,[m,p]=v.useState(null),g=nt(o),x=nt(c),y=v.useRef(null),w=we(a,j=>p(j)),S=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let j=function(R){if(S.paused||!m)return;const D=R.target;m.contains(D)?y.current=D:gl(y.current,{select:!0})},C=function(R){if(S.paused||!m)return;const D=R.relatedTarget;D!==null&&(m.contains(D)||gl(y.current,{select:!0}))},_=function(R){if(document.activeElement===document.body)for(const D of R)D.removedNodes.length>0&&gl(m)};document.addEventListener("focusin",j),document.addEventListener("focusout",C);const T=new MutationObserver(_);return m&&T.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",C),T.disconnect()}}},[i,m,S.paused]),v.useEffect(()=>{if(m){Ex.add(S);const j=document.activeElement;if(!m.contains(j)){const C=new CustomEvent(Sh,jx);m.addEventListener(Sh,g),m.dispatchEvent(C),C.defaultPrevented||(wM(CM(R1(m)),{select:!0}),document.activeElement===j&&gl(m))}return()=>{m.removeEventListener(Sh,g),setTimeout(()=>{const C=new CustomEvent(Eh,jx);m.addEventListener(Eh,x),m.dispatchEvent(C),C.defaultPrevented||gl(j??document.body,{select:!0}),m.removeEventListener(Eh,x),Ex.remove(S)},0)}}},[m,g,x,S]);const E=v.useCallback(j=>{if(!r&&!i||S.paused)return;const C=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,_=document.activeElement;if(C&&_){const T=j.currentTarget,[R,D]=jM(T);R&&D?!j.shiftKey&&_===D?(j.preventDefault(),r&&gl(R,{select:!0})):j.shiftKey&&_===R&&(j.preventDefault(),r&&gl(D,{select:!0})):_===T&&j.preventDefault()}},[r,i,S.paused]);return u.jsx(se.div,{tabIndex:-1,...h,ref:w,onKeyDown:E})});Cc.displayName=bM;function wM(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(gl(i,{select:a}),document.activeElement!==r)return}function jM(n){const a=R1(n),r=Sx(a,n),i=Sx(a.reverse(),n);return[r,i]}function R1(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Sx(n,a){for(const r of n)if(!SM(r,{upTo:a}))return r}function SM(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 EM(n){return n instanceof HTMLInputElement&&"select"in n}function gl(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&EM(n)&&a&&n.select()}}var Ex=NM();function NM(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=Nx(n,a),n.unshift(a)},remove(a){var r;n=Nx(n,a),(r=n[0])==null||r.resume()}}}function Nx(n,a){const r=[...n],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function CM(n){return n.filter(a=>a.tagName!=="A")}var _M=bb[" useId ".trim().toString()]||(()=>{}),TM=0;function Dl(n){const[a,r]=v.useState(_M());return lt(()=>{r(i=>i??String(TM++))},[n]),a?`radix-${a}`:""}const RM=["top","right","bottom","left"],Ml=Math.min,un=Math.max,uc=Math.round,Gu=Math.floor,ea=n=>({x:n,y:n}),MM={left:"right",right:"left",bottom:"top",top:"bottom"},AM={start:"end",end:"start"};function am(n,a,r){return un(n,Ml(a,r))}function qa(n,a){return typeof n=="function"?n(a):n}function Ha(n){return n.split("-")[0]}function $i(n){return n.split("-")[1]}function Hm(n){return n==="x"?"y":"x"}function Bm(n){return n==="y"?"height":"width"}const kM=new Set(["top","bottom"]);function In(n){return kM.has(Ha(n))?"y":"x"}function Qm(n){return Hm(In(n))}function DM(n,a,r){r===void 0&&(r=!1);const i=$i(n),o=Qm(n),c=Bm(o);let h=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(h=cc(h)),[h,cc(h)]}function OM(n){const a=cc(n);return[lm(n),a,lm(a)]}function lm(n){return n.replace(/start|end/g,a=>AM[a])}const Cx=["left","right"],_x=["right","left"],zM=["top","bottom"],LM=["bottom","top"];function UM(n,a,r){switch(n){case"top":case"bottom":return r?a?_x:Cx:a?Cx:_x;case"left":case"right":return a?zM:LM;default:return[]}}function qM(n,a,r,i){const o=$i(n);let c=UM(Ha(n),r==="start",i);return o&&(c=c.map(h=>h+"-"+o),a&&(c=c.concat(c.map(lm)))),c}function cc(n){return n.replace(/left|right|bottom|top/g,a=>MM[a])}function HM(n){return{top:0,right:0,bottom:0,left:0,...n}}function M1(n){return typeof n!="number"?HM(n):{top:n,right:n,bottom:n,left:n}}function dc(n){const{x:a,y:r,width:i,height:o}=n;return{width:i,height:o,top:r,left:a,right:a+i,bottom:r+o,x:a,y:r}}function Tx(n,a,r){let{reference:i,floating:o}=n;const c=In(a),h=Qm(a),m=Bm(h),p=Ha(a),g=c==="y",x=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,w=i[m]/2-o[m]/2;let S;switch(p){case"top":S={x,y:i.y-o.height};break;case"bottom":S={x,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y};break;case"left":S={x:i.x-o.width,y};break;default:S={x:i.x,y:i.y}}switch($i(a)){case"start":S[h]-=w*(r&&g?-1:1);break;case"end":S[h]+=w*(r&&g?-1:1);break}return S}const BM=async(n,a,r)=>{const{placement:i="bottom",strategy:o="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:o}),{x,y}=Tx(g,i,p),w=i,S={},E=0;for(let j=0;j<m.length;j++){const{name:C,fn:_}=m[j],{x:T,y:R,data:D,reset:L}=await _({x,y,initialPlacement:i,placement:w,strategy:o,middlewareData:S,rects:g,platform:h,elements:{reference:n,floating:a}});x=T??x,y=R??y,S={...S,[C]:{...S[C],...D}},L&&E<=50&&(E++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(g=L.rects===!0?await h.getElementRects({reference:n,floating:a,strategy:o}):L.rects),{x,y}=Tx(g,w,p)),j=-1)}return{x,y,placement:w,strategy:o,middlewareData:S}};async function to(n,a){var r;a===void 0&&(a={});const{x:i,y:o,platform:c,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:w=!1,padding:S=0}=qa(a,n),E=M1(S),j=m[w?y==="floating"?"reference":"floating":y],C=dc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(j)))==null||r?j:j.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(m.floating)),boundary:g,rootBoundary:x,strategy:p})),_=y==="floating"?{x:i,y:o,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=dc(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 QM=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:o,rects:c,platform:h,elements:m,middlewareData:p}=a,{element:g,padding:x=0}=qa(n,a)||{};if(g==null)return{};const y=M1(x),w={x:r,y:i},S=Qm(o),E=Bm(S),j=await h.getDimensions(g),C=S==="y",_=C?"top":"left",T=C?"bottom":"right",R=C?"clientHeight":"clientWidth",D=c.reference[E]+c.reference[S]-w[S]-c.floating[E],L=w[S]-c.reference[S],K=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let H=K?K[R]:0;(!H||!await(h.isElement==null?void 0:h.isElement(K)))&&(H=m.floating[R]||c.floating[E]);const q=D/2-L/2,G=H/2-j[E]/2-1,te=Ml(y[_],G),ue=Ml(y[T],G),ce=te,I=H-j[E]-ue,ie=H/2-j[E]/2+q,re=am(ce,ie,I),U=!p.arrow&&$i(o)!=null&&ie!==re&&c.reference[E]/2-(ie<ce?te:ue)-j[E]/2<0,W=U?ie<ce?ie-ce:ie-I:0;return{[S]:w[S]+W,data:{[S]:re,centerOffset:ie-re-W,...U&&{alignmentOffset:W}},reset:U}}}),$M=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:o,middlewareData:c,rects:h,initialPlacement:m,platform:p,elements:g}=a,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:j=!0,...C}=qa(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const _=Ha(o),T=In(m),R=Ha(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(R||!j?[cc(m)]:OM(m)),K=E!=="none";!w&&K&&L.push(...qM(m,j,E,D));const H=[m,...L],q=await to(a,C),G=[];let te=((i=c.flip)==null?void 0:i.overflows)||[];if(x&&G.push(q[_]),y){const ie=DM(o,h,D);G.push(q[ie[0]],q[ie[1]])}if(te=[...te,{placement:o,overflows:G}],!G.every(ie=>ie<=0)){var ue,ce;const ie=(((ue=c.flip)==null?void 0:ue.index)||0)+1,re=H[ie];if(re&&(!(y==="alignment"&&T!==In(re))||te.every(W=>In(W.placement)===T?W.overflows[0]>0:!0)))return{data:{index:ie,overflows:te},reset:{placement:re}};let U=(ce=te.filter(W=>W.overflows[0]<=0).sort((W,Y)=>W.overflows[1]-Y.overflows[1])[0])==null?void 0:ce.placement;if(!U)switch(S){case"bestFit":{var I;const W=(I=te.filter(Y=>{if(K){const X=In(Y.placement);return X===T||X==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(X=>X>0).reduce((X,de)=>X+de,0)]).sort((Y,X)=>Y[1]-X[1])[0])==null?void 0:I[0];W&&(U=W);break}case"initialPlacement":U=m;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function Rx(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Mx(n){return RM.some(a=>n[a]>=0)}const GM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:i="referenceHidden",...o}=qa(n,a);switch(i){case"referenceHidden":{const c=await to(a,{...o,elementContext:"reference"}),h=Rx(c,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Mx(h)}}}case"escaped":{const c=await to(a,{...o,altBoundary:!0}),h=Rx(c,r.floating);return{data:{escapedOffsets:h,escaped:Mx(h)}}}default:return{}}}}},A1=new Set(["left","top"]);async function YM(n,a){const{placement:r,platform:i,elements:o}=n,c=await(i.isRTL==null?void 0:i.isRTL(o.floating)),h=Ha(r),m=$i(r),p=In(r)==="y",g=A1.has(h)?-1:1,x=c&&p?-1:1,y=qa(a,n);let{mainAxis:w,crossAxis:S,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof E=="number"&&(S=m==="end"?E*-1:E),p?{x:S*x,y:w*g}:{x:w*g,y:S*x}}const VM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:o,y:c,placement:h,middlewareData:m}=a,p=await YM(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:o+p.x,y:c+p.y,data:{...p,placement:h}}}}},KM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:o}=a,{mainAxis:c=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:_,y:T}=C;return{x:_,y:T}}},...p}=qa(n,a),g={x:r,y:i},x=await to(a,p),y=In(Ha(o)),w=Hm(y);let S=g[w],E=g[y];if(c){const C=w==="y"?"top":"left",_=w==="y"?"bottom":"right",T=S+x[C],R=S-x[_];S=am(T,S,R)}if(h){const C=y==="y"?"top":"left",_=y==="y"?"bottom":"right",T=E+x[C],R=E-x[_];E=am(T,E,R)}const j=m.fn({...a,[w]:S,[y]:E});return{...j,data:{x:j.x-r,y:j.y-i,enabled:{[w]:c,[y]:h}}}}}},XM=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:o,rects:c,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=qa(n,a),x={x:r,y:i},y=In(o),w=Hm(y);let S=x[w],E=x[y];const j=qa(m,a),C=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(p){const R=w==="y"?"height":"width",D=c.reference[w]-c.floating[R]+C.mainAxis,L=c.reference[w]+c.reference[R]-C.mainAxis;S<D?S=D:S>L&&(S=L)}if(g){var _,T;const R=w==="y"?"width":"height",D=A1.has(Ha(o)),L=c.reference[y]-c.floating[R]+(D&&((_=h.offset)==null?void 0:_[y])||0)+(D?0:C.crossAxis),K=c.reference[y]+c.reference[R]+(D?0:((T=h.offset)==null?void 0:T[y])||0)-(D?C.crossAxis:0);E<L?E=L:E>K&&(E=K)}return{[w]:S,[y]:E}}}},FM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:o,rects:c,platform:h,elements:m}=a,{apply:p=()=>{},...g}=qa(n,a),x=await to(a,g),y=Ha(o),w=$i(o),S=In(o)==="y",{width:E,height:j}=c.floating;let C,_;y==="top"||y==="bottom"?(C=y,_=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=y,C=w==="end"?"top":"bottom");const T=j-x.top-x.bottom,R=E-x.left-x.right,D=Ml(j-x[C],T),L=Ml(E-x[_],R),K=!a.middlewareData.shift;let H=D,q=L;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(q=R),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(H=T),K&&!w){const te=un(x.left,0),ue=un(x.right,0),ce=un(x.top,0),I=un(x.bottom,0);S?q=E-2*(te!==0||ue!==0?te+ue:un(x.left,x.right)):H=j-2*(ce!==0||I!==0?ce+I:un(x.top,x.bottom))}await p({...a,availableWidth:q,availableHeight:H});const G=await h.getDimensions(m.floating);return E!==G.width||j!==G.height?{reset:{rects:!0}}:{}}}};function _c(){return typeof window<"u"}function Gi(n){return k1(n)?(n.nodeName||"").toLowerCase():"#document"}function dn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function sa(n){var a;return(a=(k1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function k1(n){return _c()?n instanceof Node||n instanceof dn(n).Node:!1}function Hn(n){return _c()?n instanceof Element||n instanceof dn(n).Element:!1}function ta(n){return _c()?n instanceof HTMLElement||n instanceof dn(n).HTMLElement:!1}function Ax(n){return!_c()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof dn(n).ShadowRoot}const ZM=new Set(["inline","contents"]);function po(n){const{overflow:a,overflowX:r,overflowY:i,display:o}=Bn(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!ZM.has(o)}const PM=new Set(["table","td","th"]);function JM(n){return PM.has(Gi(n))}const WM=[":popover-open",":modal"];function Tc(n){return WM.some(a=>{try{return n.matches(a)}catch{return!1}})}const IM=["transform","translate","scale","rotate","perspective"],eA=["transform","translate","scale","rotate","perspective","filter"],tA=["paint","layout","strict","content"];function $m(n){const a=Gm(),r=Hn(n)?Bn(n):n;return IM.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)||eA.some(i=>(r.willChange||"").includes(i))||tA.some(i=>(r.contain||"").includes(i))}function nA(n){let a=Al(n);for(;ta(a)&&!Mi(a);){if($m(a))return a;if(Tc(a))return null;a=Al(a)}return null}function Gm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aA=new Set(["html","body","#document"]);function Mi(n){return aA.has(Gi(n))}function Bn(n){return dn(n).getComputedStyle(n)}function Rc(n){return Hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Al(n){if(Gi(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Ax(n)&&n.host||sa(n);return Ax(a)?a.host:a}function D1(n){const a=Al(n);return Mi(a)?n.ownerDocument?n.ownerDocument.body:n.body:ta(a)&&po(a)?a:D1(a)}function no(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=D1(n),c=o===((i=n.ownerDocument)==null?void 0:i.body),h=dn(o);if(c){const m=rm(h);return a.concat(h,h.visualViewport||[],po(o)?o:[],m&&r?no(m):[])}return a.concat(o,no(o,[],r))}function rm(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function O1(n){const a=Bn(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const o=ta(n),c=o?n.offsetWidth:r,h=o?n.offsetHeight:i,m=uc(r)!==c||uc(i)!==h;return m&&(r=c,i=h),{width:r,height:i,$:m}}function Ym(n){return Hn(n)?n:n.contextElement}function fi(n){const a=Ym(n);if(!ta(a))return ea(1);const r=a.getBoundingClientRect(),{width:i,height:o,$:c}=O1(a);let h=(c?uc(r.width):r.width)/i,m=(c?uc(r.height):r.height)/o;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const lA=ea(0);function z1(n){const a=dn(n);return!Gm()||!a.visualViewport?lA:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function rA(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==dn(n)?!1:a}function mr(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=n.getBoundingClientRect(),c=Ym(n);let h=ea(1);a&&(i?Hn(i)&&(h=fi(i)):h=fi(n));const m=rA(c,r,i)?z1(c):ea(0);let p=(o.left+m.x)/h.x,g=(o.top+m.y)/h.y,x=o.width/h.x,y=o.height/h.y;if(c){const w=dn(c),S=i&&Hn(i)?dn(i):i;let E=w,j=rm(E);for(;j&&i&&S!==E;){const C=fi(j),_=j.getBoundingClientRect(),T=Bn(j),R=_.left+(j.clientLeft+parseFloat(T.paddingLeft))*C.x,D=_.top+(j.clientTop+parseFloat(T.paddingTop))*C.y;p*=C.x,g*=C.y,x*=C.x,y*=C.y,p+=R,g+=D,E=dn(j),j=rm(E)}}return dc({width:x,height:y,x:p,y:g})}function Mc(n,a){const r=Rc(n).scrollLeft;return a?a.left+r:mr(sa(n)).left+r}function L1(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-Mc(n,r),o=r.top+a.scrollTop;return{x:i,y:o}}function iA(n){let{elements:a,rect:r,offsetParent:i,strategy:o}=n;const c=o==="fixed",h=sa(i),m=a?Tc(a.floating):!1;if(i===h||m&&c)return r;let p={scrollLeft:0,scrollTop:0},g=ea(1);const x=ea(0),y=ta(i);if((y||!y&&!c)&&((Gi(i)!=="body"||po(h))&&(p=Rc(i)),ta(i))){const S=mr(i);g=fi(i),x.x=S.x+i.clientLeft,x.y=S.y+i.clientTop}const w=h&&!y&&!c?L1(h,p):ea(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+x.x+w.x,y:r.y*g.y-p.scrollTop*g.y+x.y+w.y}}function sA(n){return Array.from(n.getClientRects())}function oA(n){const a=sa(n),r=Rc(n),i=n.ownerDocument.body,o=un(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=un(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Mc(n);const m=-r.scrollTop;return Bn(i).direction==="rtl"&&(h+=un(a.clientWidth,i.clientWidth)-o),{width:o,height:c,x:h,y:m}}const kx=25;function uA(n,a){const r=dn(n),i=sa(n),o=r.visualViewport;let c=i.clientWidth,h=i.clientHeight,m=0,p=0;if(o){c=o.width,h=o.height;const x=Gm();(!x||x&&a==="fixed")&&(m=o.offsetLeft,p=o.offsetTop)}const g=Mc(i);if(g<=0){const x=i.ownerDocument,y=x.body,w=getComputedStyle(y),S=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(i.clientWidth-y.clientWidth-S);E<=kx&&(c-=E)}else g<=kx&&(c+=g);return{width:c,height:h,x:m,y:p}}const cA=new Set(["absolute","fixed"]);function dA(n,a){const r=mr(n,!0,a==="fixed"),i=r.top+n.clientTop,o=r.left+n.clientLeft,c=ta(n)?fi(n):ea(1),h=n.clientWidth*c.x,m=n.clientHeight*c.y,p=o*c.x,g=i*c.y;return{width:h,height:m,x:p,y:g}}function Dx(n,a,r){let i;if(a==="viewport")i=uA(n,r);else if(a==="document")i=oA(sa(n));else if(Hn(a))i=dA(a,r);else{const o=z1(n);i={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return dc(i)}function U1(n,a){const r=Al(n);return r===a||!Hn(r)||Mi(r)?!1:Bn(r).position==="fixed"||U1(r,a)}function fA(n,a){const r=a.get(n);if(r)return r;let i=no(n,[],!1).filter(m=>Hn(m)&&Gi(m)!=="body"),o=null;const c=Bn(n).position==="fixed";let h=c?Al(n):n;for(;Hn(h)&&!Mi(h);){const m=Bn(h),p=$m(h);!p&&m.position==="fixed"&&(o=null),(c?!p&&!o:!p&&m.position==="static"&&o&&cA.has(o.position)||po(h)&&!p&&U1(n,h))?i=i.filter(g=>g!==h):o=m,h=Al(h)}return a.set(n,i),i}function hA(n){let{element:a,boundary:r,rootBoundary:i,strategy:o}=n;const c=[...r==="clippingAncestors"?Tc(a)?[]:fA(a,this._c):[].concat(r),i],h=c[0],m=c.reduce((p,g)=>{const x=Dx(a,g,o);return p.top=un(x.top,p.top),p.right=Ml(x.right,p.right),p.bottom=Ml(x.bottom,p.bottom),p.left=un(x.left,p.left),p},Dx(a,h,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function mA(n){const{width:a,height:r}=O1(n);return{width:a,height:r}}function pA(n,a,r){const i=ta(a),o=sa(a),c=r==="fixed",h=mr(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const p=ea(0);function g(){p.x=Mc(o)}if(i||!i&&!c)if((Gi(a)!=="body"||po(o))&&(m=Rc(a)),i){const S=mr(a,!0,c,a);p.x=S.x+a.clientLeft,p.y=S.y+a.clientTop}else o&&g();c&&!i&&o&&g();const x=o&&!i&&!c?L1(o,m):ea(0),y=h.left+m.scrollLeft-p.x-x.x,w=h.top+m.scrollTop-p.y-x.y;return{x:y,y:w,width:h.width,height:h.height}}function Nh(n){return Bn(n).position==="static"}function Ox(n,a){if(!ta(n)||Bn(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return sa(n)===r&&(r=r.ownerDocument.body),r}function q1(n,a){const r=dn(n);if(Tc(n))return r;if(!ta(n)){let o=Al(n);for(;o&&!Mi(o);){if(Hn(o)&&!Nh(o))return o;o=Al(o)}return r}let i=Ox(n,a);for(;i&&JM(i)&&Nh(i);)i=Ox(i,a);return i&&Mi(i)&&Nh(i)&&!$m(i)?r:i||nA(n)||r}const vA=async function(n){const a=this.getOffsetParent||q1,r=this.getDimensions,i=await r(n.floating);return{reference:pA(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function gA(n){return Bn(n).direction==="rtl"}const yA={convertOffsetParentRelativeRectToViewportRelativeRect:iA,getDocumentElement:sa,getClippingRect:hA,getOffsetParent:q1,getElementRects:vA,getClientRects:sA,getDimensions:mA,getScale:fi,isElement:Hn,isRTL:gA};function H1(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function xA(n,a){let r=null,i;const o=sa(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:x,top:y,width:w,height:S}=g;if(m||a(),!w||!S)return;const E=Gu(y),j=Gu(o.clientWidth-(x+w)),C=Gu(o.clientHeight-(y+S)),_=Gu(x),T={rootMargin:-E+"px "+-j+"px "+-C+"px "+-_+"px",threshold:un(0,Ml(1,p))||1};let R=!0;function D(L){const K=L[0].intersectionRatio;if(K!==p){if(!R)return h();K?h(!1,K):i=setTimeout(()=>{h(!1,1e-7)},1e3)}K===1&&!H1(g,n.getBoundingClientRect())&&h(),R=!1}try{r=new IntersectionObserver(D,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(D,T)}r.observe(n)}return h(!0),c}function bA(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Ym(n),x=o||c?[...g?no(g):[],...no(a)]:[];x.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),c&&_.addEventListener("resize",r)});const y=g&&m?xA(g,r):null;let w=-1,S=null;h&&(S=new ResizeObserver(_=>{let[T]=_;T&&T.target===g&&S&&(S.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=S)==null||R.observe(a)})),r()}),g&&!p&&S.observe(g),S.observe(a));let E,j=p?mr(n):null;p&&C();function C(){const _=mr(n);j&&!H1(j,_)&&r(),j=_,E=requestAnimationFrame(C)}return r(),()=>{var _;x.forEach(T=>{o&&T.removeEventListener("scroll",r),c&&T.removeEventListener("resize",r)}),y==null||y(),(_=S)==null||_.disconnect(),S=null,p&&cancelAnimationFrame(E)}}const wA=VM,jA=KM,SA=$M,EA=FM,NA=GM,zx=QM,CA=XM,_A=(n,a,r)=>{const i=new Map,o={platform:yA,...r},c={...o.platform,_c:i};return BM(n,a,{...o,platform:c})};var TA=typeof document<"u",RA=function(){},Wu=TA?v.useLayoutEffect:RA;function fc(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,o;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(!fc(n[i],a[i]))return!1;return!0}if(o=Object.keys(n),r=o.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,o[i]))return!1;for(i=r;i--!==0;){const c=o[i];if(!(c==="_owner"&&n.$$typeof)&&!fc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function B1(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Lx(n,a){const r=B1(n);return Math.round(a*r)/r}function Ch(n){const a=v.useRef(n);return Wu(()=>{a.current=n}),a}function MA(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:c,floating:h}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[x,y]=v.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[w,S]=v.useState(i);fc(w,i)||S(i);const[E,j]=v.useState(null),[C,_]=v.useState(null),T=v.useCallback(Y=>{Y!==K.current&&(K.current=Y,j(Y))},[]),R=v.useCallback(Y=>{Y!==H.current&&(H.current=Y,_(Y))},[]),D=c||E,L=h||C,K=v.useRef(null),H=v.useRef(null),q=v.useRef(x),G=p!=null,te=Ch(p),ue=Ch(o),ce=Ch(g),I=v.useCallback(()=>{if(!K.current||!H.current)return;const Y={placement:a,strategy:r,middleware:w};ue.current&&(Y.platform=ue.current),_A(K.current,H.current,Y).then(X=>{const de={...X,isPositioned:ce.current!==!1};ie.current&&!fc(q.current,de)&&(q.current=de,fo.flushSync(()=>{y(de)}))})},[w,a,r,ue,ce]);Wu(()=>{g===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,y(Y=>({...Y,isPositioned:!1})))},[g]);const ie=v.useRef(!1);Wu(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Wu(()=>{if(D&&(K.current=D),L&&(H.current=L),D&&L){if(te.current)return te.current(D,L,I);I()}},[D,L,I,te,G]);const re=v.useMemo(()=>({reference:K,floating:H,setReference:T,setFloating:R}),[T,R]),U=v.useMemo(()=>({reference:D,floating:L}),[D,L]),W=v.useMemo(()=>{const Y={position:r,left:0,top:0};if(!U.floating)return Y;const X=Lx(U.floating,x.x),de=Lx(U.floating,x.y);return m?{...Y,transform:"translate("+X+"px, "+de+"px)",...B1(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:X,top:de}},[r,m,U.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:I,refs:re,elements:U,floatingStyles:W}),[x,I,re,U,W])}const AA=n=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:i,padding:o}=typeof n=="function"?n(r):n;return i&&a(i)?i.current!=null?zx({element:i.current,padding:o}).fn(r):{}:i?zx({element:i,padding:o}).fn(r):{}}}},kA=(n,a)=>({...wA(n),options:[n,a]}),DA=(n,a)=>({...jA(n),options:[n,a]}),OA=(n,a)=>({...CA(n),options:[n,a]}),zA=(n,a)=>({...SA(n),options:[n,a]}),LA=(n,a)=>({...EA(n),options:[n,a]}),UA=(n,a)=>({...NA(n),options:[n,a]}),qA=(n,a)=>({...AA(n),options:[n,a]});var HA="Arrow",Q1=v.forwardRef((n,a)=>{const{children:r,width:i=10,height:o=5,...c}=n;return u.jsx(se.svg,{...c,ref:a,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});Q1.displayName=HA;var BA=Q1;function Ac(n){const[a,r]=v.useState(void 0);return lt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[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 $1="Popper",[G1,Yi]=bt($1),[Uz,Y1]=G1($1),V1="PopperAnchor",K1=v.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...o}=n,c=Y1(V1,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(se.div,{...o,ref:m})});K1.displayName=V1;var Vm="PopperContent",[QA,$A]=G1(Vm),X1=v.forwardRef((n,a)=>{var r,i,o,c,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:x=0,align:y="center",alignOffset:w=0,arrowPadding:S=0,avoidCollisions:E=!0,collisionBoundary:j=[],collisionPadding:C=0,sticky:_="partial",hideWhenDetached:T=!1,updatePositionStrategy:R="optimized",onPlaced:D,...L}=n,K=Y1(Vm,p),[H,q]=v.useState(null),G=we(a,Ot=>q(Ot)),[te,ue]=v.useState(null),ce=Ac(te),I=(ce==null?void 0:ce.width)??0,ie=(ce==null?void 0:ce.height)??0,re=g+(y!=="center"?"-"+y:""),U=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},W=Array.isArray(j)?j:[j],Y=W.length>0,X={padding:U,boundary:W.filter(YA),altBoundary:Y},{refs:de,floatingStyles:A,placement:F,isPositioned:ee,middlewareData:le}=MA({strategy:"fixed",placement:re,whileElementsMounted:(...Ot)=>bA(...Ot,{animationFrame:R==="always"}),elements:{reference:K.anchor},middleware:[kA({mainAxis:x+ie,alignmentAxis:w}),E&&DA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?OA():void 0,...X}),E&&zA({...X}),LA({...X,apply:({elements:Ot,rects:Jt,availableWidth:ca,availableHeight:da})=>{const{width:Xc,height:xo}=Jt.reference,Ga=Ot.floating.style;Ga.setProperty("--radix-popper-available-width",`${ca}px`),Ga.setProperty("--radix-popper-available-height",`${da}px`),Ga.setProperty("--radix-popper-anchor-width",`${Xc}px`),Ga.setProperty("--radix-popper-anchor-height",`${xo}px`)}}),te&&qA({element:te,padding:S}),VA({arrowWidth:I,arrowHeight:ie}),T&&UA({strategy:"referenceHidden",...X})]}),[ve,Se]=P1(F),ne=nt(D);lt(()=>{ee&&(ne==null||ne())},[ee,ne]);const Ee=(r=le.arrow)==null?void 0:r.x,ye=(i=le.arrow)==null?void 0:i.y,Ne=((o=le.arrow)==null?void 0:o.centerOffset)!==0,[He,Ye]=v.useState();return lt(()=>{H&&Ye(window.getComputedStyle(H).zIndex)},[H]),u.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:ee?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--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(QA,{scope:p,placedSide:ve,onArrowChange:ue,arrowX:Ee,arrowY:ye,shouldHideArrow:Ne,children:u.jsx(se.div,{"data-side":ve,"data-align":Se,...L,ref:G,style:{...L.style,animation:ee?void 0:"none"}})})})});X1.displayName=Vm;var F1="PopperArrow",GA={top:"bottom",right:"left",bottom:"top",left:"right"},Z1=v.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,o=$A(F1,r),c=GA[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(BA,{...i,ref:a,style:{...i.style,display:"block"}})})});Z1.displayName=F1;function YA(n){return n!==null}var VA=n=>({name:"transformOrigin",options:n,fn(a){var r,i,o;const{placement:c,rects:h,middlewareData:m}=a,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,g=p?0:n.arrowWidth,x=p?0:n.arrowHeight,[y,w]=P1(c),S={start:"0%",center:"50%",end:"100%"}[w],E=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,j=(((o=m.arrow)==null?void 0:o.y)??0)+x/2;let C="",_="";return y==="bottom"?(C=p?S:`${E}px`,_=`${-x}px`):y==="top"?(C=p?S:`${E}px`,_=`${h.floating.height+x}px`):y==="right"?(C=`${-x}px`,_=p?S:`${j}px`):y==="left"&&(C=`${h.floating.width+x}px`,_=p?S:`${j}px`),{data:{x:C,y:_}}}});function P1(n){const[a,r="center"]=n.split("-");return[a,r]}var Km=K1,Xm=X1,Fm=Z1,KA="Portal",XA=v.forwardRef((n,a)=>{var r;const{container:i,...o}=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?Bb.createPortal(u.jsx(se.div,{...o,ref:a}),m):null});XA.displayName=KA;var _h="rovingFocusGroup.onEntryFocus",FA={bubbles:!1,cancelable:!0},vo="RovingFocusGroup",[im,J1,ZA]=Bi(vo),[PA,Vi]=bt(vo,[ZA]),[JA,WA]=PA(vo),W1=v.forwardRef((n,a)=>u.jsx(im.Provider,{scope:n.__scopeRovingFocusGroup,children:u.jsx(im.Slot,{scope:n.__scopeRovingFocusGroup,children:u.jsx(IA,{...n,ref:a})})}));W1.displayName=vo;var IA=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:o=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...y}=n,w=v.useRef(null),S=we(a,w),E=Hi(c),[j,C]=ia({prop:h,defaultProp:m??null,onChange:p,caller:vo}),[_,T]=v.useState(!1),R=nt(g),D=J1(r),L=v.useRef(!1),[K,H]=v.useState(0);return v.useEffect(()=>{const q=w.current;if(q)return q.addEventListener(_h,R),()=>q.removeEventListener(_h,R)},[R]),u.jsx(JA,{scope:r,orientation:i,dir:E,loop:o,currentTabStopId:j,onItemFocus:v.useCallback(q=>C(q),[C]),onItemShiftTab:v.useCallback(()=>T(!0),[]),onFocusableItemAdd:v.useCallback(()=>H(q=>q+1),[]),onFocusableItemRemove:v.useCallback(()=>H(q=>q-1),[]),children:u.jsx(se.div,{tabIndex:_||K===0?-1:0,"data-orientation":i,...y,ref:S,style:{outline:"none",...n.style},onMouseDown:ae(n.onMouseDown,()=>{L.current=!0}),onFocus:ae(n.onFocus,q=>{const G=!L.current;if(q.target===q.currentTarget&&G&&!_){const te=new CustomEvent(_h,FA);if(q.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ue=D().filter(re=>re.focusable),ce=ue.find(re=>re.active),I=ue.find(re=>re.id===j),ie=[ce,I,...ue].filter(Boolean).map(re=>re.ref.current);tw(ie,x)}}L.current=!1}),onBlur:ae(n.onBlur,()=>T(!1))})})}),I1="RovingFocusGroupItem",ew=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:c,children:h,...m}=n,p=Dl(),g=c||p,x=WA(I1,r),y=x.currentTabStopId===g,w=J1(r),{onFocusableItemAdd:S,onFocusableItemRemove:E,currentTabStopId:j}=x;return v.useEffect(()=>{if(i)return S(),()=>E()},[i,S,E]),u.jsx(im.ItemSlot,{scope:r,id:g,focusable:i,active:o,children:u.jsx(se.span,{tabIndex:y?0:-1,"data-orientation":x.orientation,...m,ref:a,onMouseDown:ae(n.onMouseDown,C=>{i?x.onItemFocus(g):C.preventDefault()}),onFocus:ae(n.onFocus,()=>x.onItemFocus(g)),onKeyDown:ae(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){x.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const _=nk(C,x.orientation,x.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=x.loop?ak(T,R+1):T.slice(R+1)}setTimeout(()=>tw(T))}}),children:typeof h=="function"?h({isCurrentTabStop:y,hasTabStop:j!=null}):h})})});ew.displayName=I1;var ek={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function tk(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function nk(n,a,r){const i=tk(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return ek[i]}function tw(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function ak(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var Zm=W1,Pm=ew,lk=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},oi=new WeakMap,Yu=new WeakMap,Vu={},Th=0,nw=function(n){return n&&(n.host||nw(n.parentNode))},rk=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=nw(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})},ik=function(n,a,r,i){var o=rk(a,Array.isArray(n)?n:[n]);Vu[r]||(Vu[r]=new WeakMap);var c=Vu[r],h=[],m=new Set,p=new Set(o),g=function(y){!y||m.has(y)||(m.add(y),g(y.parentNode))};o.forEach(g);var x=function(y){!y||p.has(y)||Array.prototype.forEach.call(y.children,function(w){if(m.has(w))x(w);else try{var S=w.getAttribute(i),E=S!==null&&S!=="false",j=(oi.get(w)||0)+1,C=(c.get(w)||0)+1;oi.set(w,j),c.set(w,C),h.push(w),j===1&&E&&Yu.set(w,!0),C===1&&w.setAttribute(r,"true"),E||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return x(a),m.clear(),Th++,function(){h.forEach(function(y){var w=oi.get(y)-1,S=c.get(y)-1;oi.set(y,w),c.set(y,S),w||(Yu.has(y)||y.removeAttribute(i),Yu.delete(y)),S||y.removeAttribute(r)}),Th--,Th||(oi=new WeakMap,oi=new WeakMap,Yu=new WeakMap,Vu={})}},Jm=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),o=lk(n);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),ik(i,o,r,"aria-hidden")):function(){return null}},Wn=function(){return Wn=Object.assign||function(n){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},Wn.apply(this,arguments)};function aw(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 o=0,i=Object.getOwnPropertySymbols(n);o<i.length;o++)a.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(n,i[o])&&(r[i[o]]=n[i[o]]);return r}function sk(n,a,r){for(var i=0,o=a.length,c;i<o;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 Iu="right-scroll-bar-position",ec="width-before-scroll-bar",ok="with-scroll-bars-hidden",uk="--removed-body-scroll-bar-size";function Rh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function ck(n,a){var r=v.useState(function(){return{value:n,callback:a,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=a,r.facade}var dk=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ux=new WeakMap;function fk(n,a){var r=ck(null,function(i){return n.forEach(function(o){return Rh(o,i)})});return dk(function(){var i=Ux.get(r);if(i){var o=new Set(i),c=new Set(n),h=r.current;o.forEach(function(m){c.has(m)||Rh(m,null)}),c.forEach(function(m){o.has(m)||Rh(m,h)})}Ux.set(r,n)},[n]),r}function hk(n){return n}function mk(n,a){a===void 0&&(a=hk);var r=[],i=!1,o={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 x=h;h=[],x.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(x){h.push(x),g()},filter:function(x){return h=h.filter(x),r}}}};return o}function pk(n){n===void 0&&(n={});var a=mk(null);return a.options=Wn({async:!0,ssr:!1},n),a}var lw=function(n){var a=n.sideCar,r=aw(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,Wn({},r))};lw.isSideCarExport=!0;function vk(n,a){return n.useMedium(a),lw}var rw=pk(),Mh=function(){},kc=v.forwardRef(function(n,a){var r=v.useRef(null),i=v.useState({onScrollCapture:Mh,onWheelCapture:Mh,onTouchMoveCapture:Mh}),o=i[0],c=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,x=n.enabled,y=n.shards,w=n.sideCar,S=n.noRelative,E=n.noIsolation,j=n.inert,C=n.allowPinchZoom,_=n.as,T=_===void 0?"div":_,R=n.gapMode,D=aw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,K=fk([r,a]),H=Wn(Wn({},D),o);return v.createElement(v.Fragment,null,x&&v.createElement(L,{sideCar:rw,removeScrollBar:g,shards:y,noRelative:S,noIsolation:E,inert:j,setCallbacks:c,allowPinchZoom:!!C,lockRef:r,gapMode:R}),h?v.cloneElement(v.Children.only(m),Wn(Wn({},H),{ref:K})):v.createElement(T,Wn({},H,{className:p,ref:K}),m))});kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};kc.classNames={fullWidth:ec,zeroRight:Iu};var gk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yk(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=gk();return a&&n.setAttribute("nonce",a),n}function xk(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function bk(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var wk=function(){var n=0,a=null;return{add:function(r){n==0&&(a=yk())&&(xk(a,r),bk(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},jk=function(){var n=wk();return function(a,r){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},iw=function(){var n=jk(),a=function(r){var i=r.styles,o=r.dynamic;return n(i,o),null};return a},Sk={left:0,top:0,right:0,gap:0},Ah=function(n){return parseInt(n||"",10)||0},Ek=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],o=a[n==="padding"?"paddingRight":"marginRight"];return[Ah(r),Ah(i),Ah(o)]},Nk=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Sk;var a=Ek(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])}},Ck=iw(),hi="data-scroll-locked",_k=function(n,a,r,i){var o=n.left,c=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
292
+ .`.concat(ok,` {
293
+ overflow: hidden `).concat(i,`;
294
+ padding-right: `).concat(m,"px ").concat(i,`;
295
+ }
296
+ body[`).concat(hi,`] {
297
+ overflow: hidden `).concat(i,`;
298
+ overscroll-behavior: contain;
299
+ `).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
300
+ padding-left: `.concat(o,`px;
301
+ padding-top: `).concat(c,`px;
302
+ padding-right: `).concat(h,`px;
303
+ margin-left:0;
304
+ margin-top:0;
305
+ margin-right: `).concat(m,"px ").concat(i,`;
306
+ `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
307
+ }
308
+
309
+ .`).concat(Iu,` {
310
+ right: `).concat(m,"px ").concat(i,`;
311
+ }
312
+
313
+ .`).concat(ec,` {
314
+ margin-right: `).concat(m,"px ").concat(i,`;
315
+ }
316
+
317
+ .`).concat(Iu," .").concat(Iu,` {
318
+ right: 0 `).concat(i,`;
319
+ }
320
+
321
+ .`).concat(ec," .").concat(ec,` {
322
+ margin-right: 0 `).concat(i,`;
323
+ }
324
+
325
+ body[`).concat(hi,`] {
326
+ `).concat(uk,": ").concat(m,`px;
327
+ }
328
+ `)},qx=function(){var n=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(n)?n:0},Tk=function(){v.useEffect(function(){return document.body.setAttribute(hi,(qx()+1).toString()),function(){var n=qx()-1;n<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,n.toString())}},[])},Rk=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,o=i===void 0?"margin":i;Tk();var c=v.useMemo(function(){return Nk(o)},[o]);return v.createElement(Ck,{styles:_k(c,!a,o,r?"":"!important")})},sm=!1;if(typeof window<"u")try{var Ku=Object.defineProperty({},"passive",{get:function(){return sm=!0,!0}});window.addEventListener("test",Ku,Ku),window.removeEventListener("test",Ku,Ku)}catch{sm=!1}var ui=sm?{passive:!1}:!1,Mk=function(n){return n.tagName==="TEXTAREA"},sw=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!Mk(n)&&r[a]==="visible")},Ak=function(n){return sw(n,"overflowY")},kk=function(n){return sw(n,"overflowX")},Hx=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=ow(n,i);if(o){var c=uw(n,i),h=c[1],m=c[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},Dk=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},Ok=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},ow=function(n,a){return n==="v"?Ak(a):kk(a)},uw=function(n,a){return n==="v"?Dk(a):Ok(a)},zk=function(n,a){return n==="h"&&a==="rtl"?-1:1},Lk=function(n,a,r,i,o){var c=zk(n,window.getComputedStyle(a).direction),h=c*i,m=r.target,p=a.contains(m),g=!1,x=h>0,y=0,w=0;do{if(!m)break;var S=uw(n,m),E=S[0],j=S[1],C=S[2],_=j-C-c*E;(E||_)&&ow(n,m)&&(y+=_,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(x&&Math.abs(y)<1||!x&&Math.abs(w)<1)&&(g=!0),g},Xu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Bx=function(n){return[n.deltaX,n.deltaY]},Qx=function(n){return n&&"current"in n?n.current:n},Uk=function(n,a){return n[0]===a[0]&&n[1]===a[1]},qk=function(n){return`
329
+ .block-interactivity-`.concat(n,` {pointer-events: none;}
330
+ .allow-interactivity-`).concat(n,` {pointer-events: all;}
331
+ `)},Hk=0,ci=[];function Bk(n){var a=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),o=v.useState(Hk++)[0],c=v.useState(iw)[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(o));var j=sk([n.lockRef.current],(n.shards||[]).map(Qx)).filter(Boolean);return j.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),j.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[n.inert,n.lockRef.current,n.shards]);var m=v.useCallback(function(j,C){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!h.current.allowPinchZoom;var _=Xu(j),T=r.current,R="deltaX"in j?j.deltaX:T[0]-_[0],D="deltaY"in j?j.deltaY:T[1]-_[1],L,K=j.target,H=Math.abs(R)>Math.abs(D)?"h":"v";if("touches"in j&&H==="h"&&K.type==="range")return!1;var q=Hx(H,K);if(!q)return!0;if(q?L=H:(L=H==="v"?"h":"v",q=Hx(H,K)),!q)return!1;if(!i.current&&"changedTouches"in j&&(R||D)&&(i.current=L),!L)return!0;var G=i.current||L;return Lk(G,C,j,G==="h"?R:D)},[]),p=v.useCallback(function(j){var C=j;if(!(!ci.length||ci[ci.length-1]!==c)){var _="deltaY"in C?Bx(C):Xu(C),T=a.current.filter(function(L){return L.name===C.type&&(L.target===C.target||C.target===L.shadowParent)&&Uk(L.delta,_)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}if(!T){var R=(h.current.shards||[]).map(Qx).filter(Boolean).filter(function(L){return L.contains(C.target)}),D=R.length>0?m(C,R[0]):!h.current.noIsolation;D&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(j,C,_,T){var R={name:j,delta:C,target:_,should:T,shadowParent:Qk(_)};a.current.push(R),setTimeout(function(){a.current=a.current.filter(function(D){return D!==R})},1)},[]),x=v.useCallback(function(j){r.current=Xu(j),i.current=void 0},[]),y=v.useCallback(function(j){g(j.type,Bx(j),j.target,m(j,n.lockRef.current))},[]),w=v.useCallback(function(j){g(j.type,Xu(j),j.target,m(j,n.lockRef.current))},[]);v.useEffect(function(){return ci.push(c),n.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",p,ui),document.addEventListener("touchmove",p,ui),document.addEventListener("touchstart",x,ui),function(){ci=ci.filter(function(j){return j!==c}),document.removeEventListener("wheel",p,ui),document.removeEventListener("touchmove",p,ui),document.removeEventListener("touchstart",x,ui)}},[]);var S=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(c,{styles:qk(o)}):null,S?v.createElement(Rk,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function Qk(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const $k=vk(rw,Bk);var Dc=v.forwardRef(function(n,a){return v.createElement(kc,Wn({},n,{ref:a,sideCar:$k}))});Dc.classNames=kc.classNames;var om=["Enter"," "],Gk=["ArrowDown","PageUp","Home"],cw=["ArrowUp","PageDown","End"],Yk=[...Gk,...cw],Vk={ltr:[...om,"ArrowRight"],rtl:[...om,"ArrowLeft"]},Kk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Oc="Menu",[ao,Xk,Fk]=Bi(Oc),[xr,dw]=bt(Oc,[Fk,Yi,Vi]),Wm=Yi(),fw=Vi(),[qz,Ki]=xr(Oc),[Hz,go]=xr(Oc),Zk="MenuAnchor",Im=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,o=Wm(r);return u.jsx(Km,{...o,...i,ref:a})});Im.displayName=Zk;var Pk="MenuPortal",[Bz,hw]=xr(Pk,{forceMount:void 0}),_n="MenuContent",[Jk,ep]=xr(_n),mw=v.forwardRef((n,a)=>{const r=hw(_n,n.__scopeMenu),{forceMount:i=r.forceMount,...o}=n,c=Ki(_n,n.__scopeMenu),h=go(_n,n.__scopeMenu);return u.jsx(ao.Provider,{scope:n.__scopeMenu,children:u.jsx(Et,{present:i||c.open,children:u.jsx(ao.Slot,{scope:n.__scopeMenu,children:h.modal?u.jsx(Wk,{...o,ref:a}):u.jsx(Ik,{...o,ref:a})})})})}),Wk=v.forwardRef((n,a)=>{const r=Ki(_n,n.__scopeMenu),i=v.useRef(null),o=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return Jm(c)},[]),u.jsx(tp,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Ik=v.forwardRef((n,a)=>{const r=Ki(_n,n.__scopeMenu);return u.jsx(tp,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),e4=hr("MenuContent.ScrollLock"),tp=v.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:w,onDismiss:S,disableOutsideScroll:E,...j}=n,C=Ki(_n,r),_=go(_n,r),T=Wm(r),R=fw(r),D=Xk(r),[L,K]=v.useState(null),H=v.useRef(null),q=we(a,H,C.onContentChange),G=v.useRef(0),te=v.useRef(""),ue=v.useRef(0),ce=v.useRef(null),I=v.useRef("right"),ie=v.useRef(0),re=E?Dc:v.Fragment,U=E?{as:e4,allowPinchZoom:!0}:void 0,W=X=>{var de,A;const F=te.current+X,ee=D().filter(ye=>!ye.disabled),le=document.activeElement,ve=(de=ee.find(ye=>ye.ref.current===le))==null?void 0:de.textValue,Se=ee.map(ye=>ye.textValue),ne=f4(Se,F,ve),Ee=(A=ee.find(ye=>ye.textValue===ne))==null?void 0:A.ref.current;(function ye(Ne){te.current=Ne,window.clearTimeout(G.current),Ne!==""&&(G.current=window.setTimeout(()=>ye(""),1e3))})(F),Ee&&setTimeout(()=>Ee.focus())};v.useEffect(()=>()=>window.clearTimeout(G.current),[]),qm();const Y=v.useCallback(X=>{var de,A;return I.current===((de=ce.current)==null?void 0:de.side)&&m4(X,(A=ce.current)==null?void 0:A.area)},[]);return u.jsx(Jk,{scope:r,searchRef:te,onItemEnter:v.useCallback(X=>{Y(X)&&X.preventDefault()},[Y]),onItemLeave:v.useCallback(X=>{var de;Y(X)||((de=H.current)==null||de.focus(),K(null))},[Y]),onTriggerLeave:v.useCallback(X=>{Y(X)&&X.preventDefault()},[Y]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:v.useCallback(X=>{ce.current=X},[]),children:u.jsx(re,{...U,children:u.jsx(Cc,{asChild:!0,trapped:o,onMountAutoFocus:ae(c,X=>{var de;X.preventDefault(),(de=H.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:w,onDismiss:S,children:u.jsx(Zm,{asChild:!0,...R,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:K,onEntryFocus:ae(p,X=>{_.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Xm,{role:"menu","aria-orientation":"vertical","data-state":Mw(C.open),"data-radix-menu-content":"",dir:_.dir,...T,...j,ref:q,style:{outline:"none",...j.style},onKeyDown:ae(j.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&&W(X.key));const ee=H.current;if(X.target!==ee||!Yk.includes(X.key))return;X.preventDefault();const le=D().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);cw.includes(X.key)&&le.reverse(),c4(le)}),onBlur:ae(n.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(G.current),te.current="")}),onPointerMove:ae(n.onPointerMove,lo(X=>{const de=X.target,A=ie.current!==X.clientX;if(X.currentTarget.contains(de)&&A){const F=X.clientX>ie.current?"right":"left";I.current=F,ie.current=X.clientX}}))})})})})})})});mw.displayName=_n;var t4="MenuGroup",np=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{role:"group",...i,ref:a})});np.displayName=t4;var n4="MenuLabel",pw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{...i,ref:a})});pw.displayName=n4;var hc="MenuItem",$x="menu.itemSelect",zc=v.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...o}=n,c=v.useRef(null),h=go(hc,n.__scopeMenu),m=ep(hc,n.__scopeMenu),p=we(a,c),g=v.useRef(!1),x=()=>{const y=c.current;if(!r&&y){const w=new CustomEvent($x,{bubbles:!0,cancelable:!0});y.addEventListener($x,S=>i==null?void 0:i(S),{once:!0}),ic(y,w),w.defaultPrevented?g.current=!1:h.onClose()}};return u.jsx(vw,{...o,ref:p,disabled:r,onClick:ae(n.onClick,x),onPointerDown:y=>{var w;(w=n.onPointerDown)==null||w.call(n,y),g.current=!0},onPointerUp:ae(n.onPointerUp,y=>{var w;g.current||(w=y.currentTarget)==null||w.click()}),onKeyDown:ae(n.onKeyDown,y=>{const w=m.searchRef.current!=="";r||w&&y.key===" "||om.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});zc.displayName=hc;var vw=v.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:o,...c}=n,h=ep(hc,r),m=fw(r),p=v.useRef(null),g=we(a,p),[x,y]=v.useState(!1),[w,S]=v.useState("");return v.useEffect(()=>{const E=p.current;E&&S((E.textContent??"").trim())},[c.children]),u.jsx(ao.ItemSlot,{scope:r,disabled:i,textValue:o??w,children:u.jsx(Pm,{asChild:!0,...m,focusable:!i,children:u.jsx(se.div,{role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:g,onPointerMove:ae(n.onPointerMove,lo(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ae(n.onPointerLeave,lo(E=>h.onItemLeave(E))),onFocus:ae(n.onFocus,()=>y(!0)),onBlur:ae(n.onBlur,()=>y(!1))})})})}),a4="MenuCheckboxItem",gw=v.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...o}=n;return u.jsx(jw,{scope:n.__scopeMenu,checked:r,children:u.jsx(zc,{role:"menuitemcheckbox","aria-checked":mc(r)?"mixed":r,...o,ref:a,"data-state":lp(r),onSelect:ae(o.onSelect,()=>i==null?void 0:i(mc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});gw.displayName=a4;var yw="MenuRadioGroup",[l4,r4]=xr(yw,{value:void 0,onValueChange:()=>{}}),xw=v.forwardRef((n,a)=>{const{value:r,onValueChange:i,...o}=n,c=nt(i);return u.jsx(l4,{scope:n.__scopeMenu,value:r,onValueChange:c,children:u.jsx(np,{...o,ref:a})})});xw.displayName=yw;var bw="MenuRadioItem",ww=v.forwardRef((n,a)=>{const{value:r,...i}=n,o=r4(bw,n.__scopeMenu),c=r===o.value;return u.jsx(jw,{scope:n.__scopeMenu,checked:c,children:u.jsx(zc,{role:"menuitemradio","aria-checked":c,...i,ref:a,"data-state":lp(c),onSelect:ae(i.onSelect,()=>{var h;return(h=o.onValueChange)==null?void 0:h.call(o,r)},{checkForDefaultPrevented:!1})})})});ww.displayName=bw;var ap="MenuItemIndicator",[jw,i4]=xr(ap,{checked:!1}),Sw=v.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...o}=n,c=i4(ap,r);return u.jsx(Et,{present:i||mc(c.checked)||c.checked===!0,children:u.jsx(se.span,{...o,ref:a,"data-state":lp(c.checked)})})});Sw.displayName=ap;var s4="MenuSeparator",Ew=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});Ew.displayName=s4;var o4="MenuArrow",Nw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,o=Wm(r);return u.jsx(Fm,{...o,...i,ref:a})});Nw.displayName=o4;var u4="MenuSub",[Qz,Cw]=xr(u4),Xs="MenuSubTrigger",_w=v.forwardRef((n,a)=>{const r=Ki(Xs,n.__scopeMenu),i=go(Xs,n.__scopeMenu),o=Cw(Xs,n.__scopeMenu),c=ep(Xs,n.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=c,g={__scopeMenu:n.__scopeMenu},x=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return v.useEffect(()=>x,[x]),v.useEffect(()=>{const y=m.current;return()=>{window.clearTimeout(y),p(null)}},[m,p]),u.jsx(Im,{asChild:!0,...g,children:u.jsx(vw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Mw(r.open),...n,ref:mo(a,o.onTriggerChange),onClick:y=>{var w;(w=n.onClick)==null||w.call(n,y),!(n.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ae(n.onPointerMove,lo(y=>{c.onItemEnter(y),!y.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(c.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),x()},100))})),onPointerLeave:ae(n.onPointerLeave,lo(y=>{var w,S;x();const E=(w=r.content)==null?void 0:w.getBoundingClientRect();if(E){const j=(S=r.content)==null?void 0:S.dataset.side,C=j==="right",_=C?-5:5,T=E[C?"left":"right"],R=E[C?"right":"left"];c.onPointerGraceIntentChange({area:[{x:y.clientX+_,y:y.clientY},{x:T,y:E.top},{x:R,y:E.top},{x:R,y:E.bottom},{x:T,y:E.bottom}],side:j}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(y),y.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:ae(n.onKeyDown,y=>{var w;const S=c.searchRef.current!=="";n.disabled||S&&y.key===" "||Vk[i.dir].includes(y.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),y.preventDefault())})})})});_w.displayName=Xs;var Tw="MenuSubContent",Rw=v.forwardRef((n,a)=>{const r=hw(_n,n.__scopeMenu),{forceMount:i=r.forceMount,...o}=n,c=Ki(_n,n.__scopeMenu),h=go(_n,n.__scopeMenu),m=Cw(Tw,n.__scopeMenu),p=v.useRef(null),g=we(a,p);return u.jsx(ao.Provider,{scope:n.__scopeMenu,children:u.jsx(Et,{present:i||c.open,children:u.jsx(ao.Slot,{scope:n.__scopeMenu,children:u.jsx(tp,{id:m.contentId,"aria-labelledby":m.triggerId,...o,ref:g,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:x=>{var y;h.isUsingKeyboardRef.current&&((y=p.current)==null||y.focus()),x.preventDefault()},onCloseAutoFocus:x=>x.preventDefault(),onFocusOutside:ae(n.onFocusOutside,x=>{x.target!==m.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:ae(n.onEscapeKeyDown,x=>{h.onClose(),x.preventDefault()}),onKeyDown:ae(n.onKeyDown,x=>{var y;const w=x.currentTarget.contains(x.target),S=Kk[h.dir].includes(x.key);w&&S&&(c.onOpenChange(!1),(y=m.trigger)==null||y.focus(),x.preventDefault())})})})})})});Rw.displayName=Tw;function Mw(n){return n?"open":"closed"}function mc(n){return n==="indeterminate"}function lp(n){return mc(n)?"indeterminate":n?"checked":"unchecked"}function c4(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function d4(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function f4(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,o=r?n.indexOf(r):-1;let c=d4(n,Math.max(o,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 h4(n,a){const{x:r,y:i}=n;let o=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,x=m.y,y=p.x,w=p.y;x>i!=w>i&&r<(y-g)*(i-x)/(w-x)+g&&(o=!o)}return o}function m4(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return h4(r,a)}function lo(n){return a=>a.pointerType==="mouse"?n(a):void 0}var p4=Im,v4=mw,g4=np,y4=pw,x4=zc,b4=gw,w4=xw,j4=ww,S4=Sw,E4=Ew,N4=Nw,C4=_w,_4=Rw,Aw="DropdownMenu",[T4,$z]=bt(Aw,[dw]),fn=dw(),[Gz,kw]=T4(Aw),Dw="DropdownMenuTrigger",R4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...o}=n,c=kw(Dw,r),h=fn(r);return u.jsx(p4,{asChild:!0,...h,children:u.jsx(se.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,...o,ref:mo(a,c.triggerRef),onPointerDown:ae(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(c.onOpenToggle(),c.open||m.preventDefault())}),onKeyDown:ae(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&c.onOpenToggle(),m.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});R4.displayName=Dw;var Ow="DropdownMenuContent",zw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=kw(Ow,r),c=fn(r),h=v.useRef(!1);return u.jsx(v4,{id:o.contentId,"aria-labelledby":o.triggerId,...c,...i,ref:a,onCloseAutoFocus:ae(n.onCloseAutoFocus,m=>{var p;h.current||(p=o.triggerRef.current)==null||p.focus(),h.current=!1,m.preventDefault()}),onInteractOutside:ae(n.onInteractOutside,m=>{const p=m.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,x=p.button===2||g;(!o.modal||x)&&(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)"}})});zw.displayName=Ow;var M4="DropdownMenuGroup",A4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(g4,{...o,...i,ref:a})});A4.displayName=M4;var k4="DropdownMenuLabel",Lw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(y4,{...o,...i,ref:a})});Lw.displayName=k4;var D4="DropdownMenuItem",Uw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(x4,{...o,...i,ref:a})});Uw.displayName=D4;var O4="DropdownMenuCheckboxItem",qw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(b4,{...o,...i,ref:a})});qw.displayName=O4;var z4="DropdownMenuRadioGroup",L4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(w4,{...o,...i,ref:a})});L4.displayName=z4;var U4="DropdownMenuRadioItem",Hw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(j4,{...o,...i,ref:a})});Hw.displayName=U4;var q4="DropdownMenuItemIndicator",H4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(S4,{...o,...i,ref:a})});H4.displayName=q4;var B4="DropdownMenuSeparator",Bw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(E4,{...o,...i,ref:a})});Bw.displayName=B4;var Q4="DropdownMenuArrow",$4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(N4,{...o,...i,ref:a})});$4.displayName=Q4;var G4="DropdownMenuSubTrigger",Qw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(C4,{...o,...i,ref:a})});Qw.displayName=G4;var Y4="DropdownMenuSubContent",$w=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(_4,{...o,...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)"}})});$w.displayName=Y4;var V4=zw,K4=Lw,X4=Uw,F4=qw,Z4=Hw,P4=Bw,J4=Qw,W4=$w;const Gw=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",Gw,"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",Gw,"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 Yw="Dialog",[Vw,Kw]=bt(Yw),[Yz,oa]=Vw(Yw),Xw="DialogTrigger",Fw=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(Xw,r),c=we(a,o.triggerRef);return u.jsx(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ip(o.open),...i,ref:c,onClick:ae(n.onClick,o.onOpenToggle)})});Fw.displayName=Xw;var I4="DialogPortal",[Vz,Zw]=Vw(I4,{forceMount:void 0}),pc="DialogOverlay",Pw=v.forwardRef((n,a)=>{const r=Zw(pc,n.__scopeDialog),{forceMount:i=r.forceMount,...o}=n,c=oa(pc,n.__scopeDialog);return c.modal?u.jsx(Et,{present:i||c.open,children:u.jsx(t3,{...o,ref:a})}):null});Pw.displayName=pc;var e3=hr("DialogOverlay.RemoveScroll"),t3=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(pc,r);return u.jsx(Dc,{as:e3,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(se.div,{"data-state":ip(o.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),pr="DialogContent",Jw=v.forwardRef((n,a)=>{const r=Zw(pr,n.__scopeDialog),{forceMount:i=r.forceMount,...o}=n,c=oa(pr,n.__scopeDialog);return u.jsx(Et,{present:i||c.open,children:c.modal?u.jsx(n3,{...o,ref:a}):u.jsx(a3,{...o,ref:a})})});Jw.displayName=pr;var n3=v.forwardRef((n,a)=>{const r=oa(pr,n.__scopeDialog),i=v.useRef(null),o=we(a,r.contentRef,i);return v.useEffect(()=>{const c=i.current;if(c)return Jm(c)},[]),u.jsx(Ww,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(n.onCloseAutoFocus,c=>{var h;c.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ae(n.onPointerDownOutside,c=>{const h=c.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&c.preventDefault()}),onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault())})}),a3=v.forwardRef((n,a)=>{const r=oa(pr,n.__scopeDialog),i=v.useRef(!1),o=v.useRef(!1);return u.jsx(Ww,{...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,o.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"&&(o.current=!0));const p=c.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),Ww=v.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:c,...h}=n,m=oa(pr,r),p=v.useRef(null),g=we(a,p);return qm(),u.jsxs(u.Fragment,{children:[u.jsx(Cc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:c,children:u.jsx(Qi,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":ip(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(r3,{titleId:m.titleId}),u.jsx(s3,{contentRef:p,descriptionId:m.descriptionId})]})]})}),rp="DialogTitle",Iw=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(rp,r);return u.jsx(se.h2,{id:o.titleId,...i,ref:a})});Iw.displayName=rp;var ej="DialogDescription",tj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(ej,r);return u.jsx(se.p,{id:o.descriptionId,...i,ref:a})});tj.displayName=ej;var nj="DialogClose",aj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(nj,r);return u.jsx(se.button,{type:"button",...i,ref:a,onClick:ae(n.onClick,()=>o.onOpenChange(!1))})});aj.displayName=nj;function ip(n){return n?"open":"closed"}var lj="DialogTitleWarning",[l3,rj]=VR(lj,{contentName:pr,titleName:rp,docsSlug:"dialog"}),r3=({titleId:n})=>{const a=rj(lj),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
332
+
333
+ If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
334
+
335
+ 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},i3="DialogDescriptionWarning",s3=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${rj(i3).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(r))},[r,n,a]),null},o3=Fw,u3=Pw,c3=Jw,d3=Iw,f3=tj,ij=aj,h3="AlertDialog",[m3,Kz]=bt(h3,[Kw]),br=Kw(),p3="AlertDialogTrigger",v3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(o3,{...o,...i,ref:a})});v3.displayName=p3;var g3="AlertDialogOverlay",y3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(u3,{...o,...i,ref:a})});y3.displayName=g3;var mi="AlertDialogContent",[x3,b3]=m3(mi),w3=o1("AlertDialogContent"),j3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...o}=n,c=br(r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return u.jsx(l3,{contentName:mi,titleName:sj,docsSlug:"alert-dialog",children:u.jsx(x3,{scope:r,cancelRef:p,children:u.jsxs(c3,{role:"alertdialog",...c,...o,ref:m,onOpenAutoFocus:ae(o.onOpenAutoFocus,g=>{var x;g.preventDefault(),(x=p.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[u.jsx(w3,{children:i}),u.jsx(T3,{contentRef:h})]})})})});j3.displayName=mi;var sj="AlertDialogTitle",S3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(d3,{...o,...i,ref:a})});S3.displayName=sj;var oj="AlertDialogDescription",E3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(f3,{...o,...i,ref:a})});E3.displayName=oj;var N3="AlertDialogAction",C3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(ij,{...o,...i,ref:a})});C3.displayName=N3;var uj="AlertDialogCancel",_3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:o}=b3(uj,r),c=br(r),h=we(a,o);return u.jsx(ij,{...c,...i,ref:h})});_3.displayName=uj;var T3=({contentRef:n})=>{const a=`\`${mi}\` requires a description for the component to be accessible for screen reader users.
336
+
337
+ You can add a description to the \`${mi}\` by passing a \`${oj}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
338
+
339
+ 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 \`${mi}\`. 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.
340
+
341
+ 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 yo(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 cj=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"}),R3="VisuallyHidden",dj=v.forwardRef((n,a)=>u.jsx(se.span,{...n,ref:a,style:{...cj,...n.style}}));dj.displayName=R3;var fj=dj,M3=[" ","Enter","ArrowUp","ArrowDown"],A3=[" ","Enter"],Lc="Select",[sp,Uc,k3]=Bi(Lc),[Xi,Xz]=bt(Lc,[k3,Yi]),op=Yi(),[Fz,Ol]=Xi(Lc),[Zz,D3]=Xi(Lc),hj="SelectTrigger",O3=v.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...o}=n,c=op(r),h=Ol(hj,r),m=h.disabled||i,p=we(a,h.onTriggerChange),g=Uc(r),x=v.useRef("touch"),[y,w,S]=Ej(j=>{const C=g().filter(R=>!R.disabled),_=C.find(R=>R.value===h.value),T=Nj(C,j,_);T!==void 0&&h.onValueChange(T.value)}),E=j=>{m||(h.onOpenChange(!0),S()),j&&(h.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return u.jsx(Km,{asChild:!0,...c,children:u.jsx(se.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":Sj(h.value)?"":void 0,...o,ref:p,onClick:ae(o.onClick,j=>{j.currentTarget.focus(),x.current!=="mouse"&&E(j)}),onPointerDown:ae(o.onPointerDown,j=>{x.current=j.pointerType;const C=j.target;C.hasPointerCapture(j.pointerId)&&C.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(E(j),j.preventDefault())}),onKeyDown:ae(o.onKeyDown,j=>{const C=y.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&w(j.key),!(C&&j.key===" ")&&M3.includes(j.key)&&(E(),j.preventDefault())})})})});O3.displayName=hj;var mj="SelectValue",z3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:o,children:c,placeholder:h="",...m}=n,p=Ol(mj,r),{onValueNodeHasChildrenChange:g}=p,x=c!==void 0,y=we(a,p.onValueNodeChange);return lt(()=>{g(x)},[g,x]),u.jsx(se.span,{...m,ref:y,style:{pointerEvents:"none"},children:Sj(p.value)?u.jsx(u.Fragment,{children:h}):c})});z3.displayName=mj;var L3="SelectIcon",U3=v.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...o}=n;return u.jsx(se.span,{"aria-hidden":!0,...o,ref:a,children:i||"▼"})});U3.displayName=L3;var vr="SelectContent",q3=v.forwardRef((n,a)=>{const r=Ol(vr,n.__scopeSelect),[i,o]=v.useState();if(lt(()=>{o(new DocumentFragment)},[]),!r.open){const c=i;return c?fo.createPortal(u.jsx(pj,{scope:n.__scopeSelect,children:u.jsx(sp.Slot,{scope:n.__scopeSelect,children:u.jsx("div",{children:n.children})})}),c):null}return u.jsx(vj,{...n,ref:a})});q3.displayName=vr;var On=10,[pj,zl]=Xi(vr),H3="SelectContentImpl",B3=hr("SelectContent.RemoveScroll"),vj=v.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:w,collisionPadding:S,sticky:E,hideWhenDetached:j,avoidCollisions:C,..._}=n,T=Ol(vr,r),[R,D]=v.useState(null),[L,K]=v.useState(null),H=we(a,ne=>D(ne)),[q,G]=v.useState(null),[te,ue]=v.useState(null),ce=Uc(r),[I,ie]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(R)return Jm(R)},[R]),qm();const U=v.useCallback(ne=>{const[Ee,...ye]=ce().map(Ye=>Ye.ref.current),[Ne]=ye.slice(-1),He=document.activeElement;for(const Ye of ne)if(Ye===He||(Ye==null||Ye.scrollIntoView({block:"nearest"}),Ye===Ee&&L&&(L.scrollTop=0),Ye===Ne&&L&&(L.scrollTop=L.scrollHeight),Ye==null||Ye.focus(),document.activeElement!==He))return},[ce,L]),W=v.useCallback(()=>U([q,R]),[U,q,R]);v.useEffect(()=>{I&&W()},[I,W]);const{onOpenChange:Y,triggerPointerDownPosRef:X}=T;v.useEffect(()=>{if(R){let ne={x:0,y:0};const Ee=Ne=>{var He,Ye;ne={x:Math.abs(Math.round(Ne.pageX)-(((He=X.current)==null?void 0:He.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ye=X.current)==null?void 0:Ye.y)??0))}},ye=Ne=>{ne.x<=10&&ne.y<=10?Ne.preventDefault():R.contains(Ne.target)||Y(!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,Y,X]),v.useEffect(()=>{const ne=()=>Y(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[Y]);const[de,A]=Ej(ne=>{const Ee=ce().filter(He=>!He.disabled),ye=Ee.find(He=>He.ref.current===document.activeElement),Ne=Nj(Ee,ne,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),F=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&(G(ne),Ne&&(re.current=!0))},[T.value]),ee=v.useCallback(()=>R==null?void 0:R.focus(),[R]),le=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&ue(ne)},[T.value]),ve=i==="popper"?um:gj,Se=ve===um?{side:m,sideOffset:p,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:w,collisionPadding:S,sticky:E,hideWhenDetached:j,avoidCollisions:C}:{};return u.jsx(pj,{scope:r,content:R,viewport:L,onViewportChange:K,itemRefCallback:F,selectedItem:q,onItemLeave:ee,itemTextRefCallback:le,focusSelectedItem:W,selectedItemText:te,position:i,isPositioned:I,searchRef:de,children:u.jsx(Dc,{as:B3,allowPinchZoom:!0,children:u.jsx(Cc,{asChild:!0,trapped:T.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:ae(o,ne=>{var Ee;(Ee=T.trigger)==null||Ee.focus({preventScroll:!0}),ne.preventDefault()}),children:u.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:u.jsx(ve,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:ne=>ne.preventDefault(),..._,...Se,onPlaced:()=>ie(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ae(_.onKeyDown,ne=>{const Ee=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!Ee&&ne.key.length===1&&A(ne.key),["ArrowUp","ArrowDown","Home","End"].includes(ne.key)){let ye=ce().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const Ne=ne.target,He=ye.indexOf(Ne);ye=ye.slice(He+1)}setTimeout(()=>U(ye)),ne.preventDefault()}})})})})})})});vj.displayName=H3;var Q3="SelectItemAlignedPosition",gj=v.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...o}=n,c=Ol(vr,r),h=zl(vr,r),[m,p]=v.useState(null),[g,x]=v.useState(null),y=we(a,H=>x(H)),w=Uc(r),S=v.useRef(!1),E=v.useRef(!0),{viewport:j,selectedItem:C,selectedItemText:_,focusSelectedItem:T}=h,R=v.useCallback(()=>{if(c.trigger&&c.valueNode&&m&&g&&j&&C&&_){const H=c.trigger.getBoundingClientRect(),q=g.getBoundingClientRect(),G=c.valueNode.getBoundingClientRect(),te=_.getBoundingClientRect();if(c.dir!=="rtl"){const Ne=te.left-q.left,He=G.left-Ne,Ye=H.left-He,Ot=H.width+Ye,Jt=Math.max(Ot,q.width),ca=window.innerWidth-On,da=tm(He,[On,Math.max(On,ca-Jt)]);m.style.minWidth=Ot+"px",m.style.left=da+"px"}else{const Ne=q.right-te.right,He=window.innerWidth-G.right-Ne,Ye=window.innerWidth-H.right-He,Ot=H.width+Ye,Jt=Math.max(Ot,q.width),ca=window.innerWidth-On,da=tm(He,[On,Math.max(On,ca-Jt)]);m.style.minWidth=Ot+"px",m.style.right=da+"px"}const ue=w(),ce=window.innerHeight-On*2,I=j.scrollHeight,ie=window.getComputedStyle(g),re=parseInt(ie.borderTopWidth,10),U=parseInt(ie.paddingTop,10),W=parseInt(ie.borderBottomWidth,10),Y=parseInt(ie.paddingBottom,10),X=re+U+I+Y+W,de=Math.min(C.offsetHeight*5,X),A=window.getComputedStyle(j),F=parseInt(A.paddingTop,10),ee=parseInt(A.paddingBottom,10),le=H.top+H.height/2-On,ve=ce-le,Se=C.offsetHeight/2,ne=C.offsetTop+Se,Ee=re+U+ne,ye=X-Ee;if(Ee<=le){const Ne=ue.length>0&&C===ue[ue.length-1].ref.current;m.style.bottom="0px";const He=g.clientHeight-j.offsetTop-j.offsetHeight,Ye=Math.max(ve,Se+(Ne?ee:0)+He+W),Ot=Ee+Ye;m.style.height=Ot+"px"}else{const Ne=ue.length>0&&C===ue[0].ref.current;m.style.top="0px";const He=Math.max(le,re+j.offsetTop+(Ne?F:0)+Se)+ye;m.style.height=He+"px",j.scrollTop=Ee-le+j.offsetTop}m.style.margin=`${On}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>S.current=!0)}},[w,c.trigger,c.valueNode,m,g,j,C,_,c.dir,i]);lt(()=>R(),[R]);const[D,L]=v.useState();lt(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const K=v.useCallback(H=>{H&&E.current===!0&&(R(),T==null||T(),E.current=!1)},[R,T]);return u.jsx(G3,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:S,onScrollButtonChange:K,children:u.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:u.jsx(se.div,{...o,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});gj.displayName=Q3;var $3="SelectPopperPosition",um=v.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:o=On,...c}=n,h=op(r);return u.jsx(Xm,{...h,...c,ref:a,align:i,collisionPadding:o,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)"}})});um.displayName=$3;var[G3,up]=Xi(vr,{}),cm="SelectViewport",Y3=v.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...o}=n,c=zl(cm,r),h=up(cm,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(sp.Slot,{scope:r,children:u.jsx(se.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ae(o.onScroll,g=>{const x=g.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:w}=h;if(w!=null&&w.current&&y){const S=Math.abs(p.current-x.scrollTop);if(S>0){const E=window.innerHeight-On*2,j=parseFloat(y.style.minHeight),C=parseFloat(y.style.height),_=Math.max(j,C);if(_<E){const T=_+S,R=Math.min(E,T),D=T-R;y.style.height=R+"px",y.style.bottom==="0px"&&(x.scrollTop=D>0?D:0,y.style.justifyContent="flex-end")}}}p.current=x.scrollTop})})})]})});Y3.displayName=cm;var yj="SelectGroup",[V3,K3]=Xi(yj),X3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=Dl();return u.jsx(V3,{scope:r,id:o,children:u.jsx(se.div,{role:"group","aria-labelledby":o,...i,ref:a})})});X3.displayName=yj;var xj="SelectLabel",F3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=K3(xj,r);return u.jsx(se.div,{id:o.id,...i,ref:a})});F3.displayName=xj;var vc="SelectItem",[Z3,bj]=Xi(vc),P3=v.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:o=!1,textValue:c,...h}=n,m=Ol(vc,r),p=zl(vc,r),g=m.value===i,[x,y]=v.useState(c??""),[w,S]=v.useState(!1),E=we(a,T=>{var R;return(R=p.itemRefCallback)==null?void 0:R.call(p,T,i,o)}),j=Dl(),C=v.useRef("touch"),_=()=>{o||(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(Z3,{scope:r,value:i,disabled:o,textId:j,isSelected:g,onItemTextChange:v.useCallback(T=>{y(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:u.jsx(sp.ItemSlot,{scope:r,value:i,disabled:o,textValue:x,children:u.jsx(se.div,{role:"option","aria-labelledby":j,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...h,ref:E,onFocus:ae(h.onFocus,()=>S(!0)),onBlur:ae(h.onBlur,()=>S(!1)),onClick:ae(h.onClick,()=>{C.current!=="mouse"&&_()}),onPointerUp:ae(h.onPointerUp,()=>{C.current==="mouse"&&_()}),onPointerDown:ae(h.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:ae(h.onPointerMove,T=>{var R;C.current=T.pointerType,o?(R=p.onItemLeave)==null||R.call(p):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ae(h.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=p.onItemLeave)==null||R.call(p))}),onKeyDown:ae(h.onKeyDown,T=>{var R;((R=p.searchRef)==null?void 0:R.current)!==""&&T.key===" "||(A3.includes(T.key)&&_(),T.key===" "&&T.preventDefault())})})})})});P3.displayName=vc;var Fs="SelectItemText",J3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:o,...c}=n,h=Ol(Fs,r),m=zl(Fs,r),p=bj(Fs,r),g=D3(Fs,r),[x,y]=v.useState(null),w=we(a,_=>y(_),p.onItemTextChange,_=>{var T;return(T=m.itemTextRefCallback)==null?void 0:T.call(m,_,p.value,p.disabled)}),S=x==null?void 0:x.textContent,E=v.useMemo(()=>u.jsx("option",{value:p.value,disabled:p.disabled,children:S},p.value),[p.disabled,p.value,S]),{onNativeOptionAdd:j,onNativeOptionRemove:C}=g;return lt(()=>(j(E),()=>C(E)),[j,C,E]),u.jsxs(u.Fragment,{children:[u.jsx(se.span,{id:p.textId,...c,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?fo.createPortal(c.children,h.valueNode):null]})});J3.displayName=Fs;var wj="SelectItemIndicator",W3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return bj(wj,r).isSelected?u.jsx(se.span,{"aria-hidden":!0,...i,ref:a}):null});W3.displayName=wj;var dm="SelectScrollUpButton",I3=v.forwardRef((n,a)=>{const r=zl(dm,n.__scopeSelect),i=up(dm,n.__scopeSelect),[o,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]),o?u.jsx(jj,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});I3.displayName=dm;var fm="SelectScrollDownButton",eD=v.forwardRef((n,a)=>{const r=zl(fm,n.__scopeSelect),i=up(fm,n.__scopeSelect),[o,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,x=Math.ceil(p.scrollTop)<g;c(x)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),o?u.jsx(jj,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});eD.displayName=fm;var jj=v.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...o}=n,c=zl("SelectScrollButton",r),h=v.useRef(null),m=Uc(r),p=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),lt(()=>{var g;const x=m().find(y=>y.ref.current===document.activeElement);(g=x==null?void 0:x.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),u.jsx(se.div,{"aria-hidden":!0,...o,ref:a,style:{flexShrink:0,...o.style},onPointerDown:ae(o.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ae(o.onPointerMove,()=>{var g;(g=c.onItemLeave)==null||g.call(c),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ae(o.onPointerLeave,()=>{p()})})}),tD="SelectSeparator",nD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return u.jsx(se.div,{"aria-hidden":!0,...i,ref:a})});nD.displayName=tD;var hm="SelectArrow",aD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=op(r),c=Ol(hm,r),h=zl(hm,r);return c.open&&h.position==="popper"?u.jsx(Fm,{...o,...i,ref:a}):null});aD.displayName=hm;var lD="SelectBubbleInput",rD=v.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const o=v.useRef(null),c=we(i,o),h=yo(a);return v.useEffect(()=>{const m=o.current;if(!m)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==a&&g){const x=new Event("change",{bubbles:!0});g.call(m,a),m.dispatchEvent(x)}},[h,a]),u.jsx(se.select,{...r,style:{...cj,...r.style},ref:c,defaultValue:a})});rD.displayName=lD;function Sj(n){return n===""||n===void 0}function Ej(n){const a=nt(n),r=v.useRef(""),i=v.useRef(0),o=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,o,c]}function Nj(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,o=r?n.indexOf(r):-1;let c=iD(n,Math.max(o,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 iD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[qc,Pz]=bt("Tooltip",[Yi]),cp=Yi(),sD="TooltipProvider",Gx="tooltip.open",[Jz,Cj]=qc(sD),_j="Tooltip",[Wz,Hc]=qc(_j),mm="TooltipTrigger",oD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,o=Hc(mm,r),c=Cj(mm,r),h=cp(r),m=v.useRef(null),p=we(a,m,o.onTriggerChange),g=v.useRef(!1),x=v.useRef(!1),y=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),u.jsx(Km,{asChild:!0,...h,children:u.jsx(se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:p,onPointerMove:ae(n.onPointerMove,w=>{w.pointerType!=="touch"&&!x.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:ae(n.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:ae(n.onPointerDown,()=>{o.open&&o.onClose(),g.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:ae(n.onFocus,()=>{g.current||o.onOpen()}),onBlur:ae(n.onBlur,o.onClose),onClick:ae(n.onClick,o.onClose)})})});oD.displayName=mm;var uD="TooltipPortal",[Iz,cD]=qc(uD,{forceMount:void 0}),Ai="TooltipContent",Tj=v.forwardRef((n,a)=>{const r=cD(Ai,n.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...c}=n,h=Hc(Ai,n.__scopeTooltip);return u.jsx(Et,{present:i||h.open,children:h.disableHoverableContent?u.jsx(Rj,{side:o,...c,ref:a}):u.jsx(dD,{side:o,...c,ref:a})})}),dD=v.forwardRef((n,a)=>{const r=Hc(Ai,n.__scopeTooltip),i=Cj(Ai,n.__scopeTooltip),o=v.useRef(null),c=we(a,o),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,x=o.current,{onPointerInTransitChange:y}=i,w=v.useCallback(()=>{m(null),y(!1)},[y]),S=v.useCallback((E,j)=>{const C=E.currentTarget,_={x:E.clientX,y:E.clientY},T=vD(_,C.getBoundingClientRect()),R=gD(_,T),D=yD(j.getBoundingClientRect()),L=bD([...R,...D]);m(L),y(!0)},[y]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&x){const E=C=>S(C,x),j=C=>S(C,p);return p.addEventListener("pointerleave",E),x.addEventListener("pointerleave",j),()=>{p.removeEventListener("pointerleave",E),x.removeEventListener("pointerleave",j)}}},[p,x,S,w]),v.useEffect(()=>{if(h){const E=j=>{const C=j.target,_={x:j.clientX,y:j.clientY},T=(p==null?void 0:p.contains(C))||(x==null?void 0:x.contains(C)),R=!xD(_,h);T?w():R&&(w(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,x,h,g,w]),u.jsx(Rj,{...n,ref:c})}),[fD,hD]=qc(_j,{isInside:!1}),mD=o1("TooltipContent"),Rj=v.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:h,...m}=n,p=Hc(Ai,r),g=cp(r),{onClose:x}=p;return v.useEffect(()=>(document.addEventListener(Gx,x),()=>document.removeEventListener(Gx,x)),[x]),v.useEffect(()=>{if(p.trigger){const y=w=>{const S=w.target;S!=null&&S.contains(p.trigger)&&x()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[p.trigger,x]),u.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:y=>y.preventDefault(),onDismiss:x,children:u.jsxs(Xm,{"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(mD,{children:i}),u.jsx(fD,{scope:r,isInside:!0,children:u.jsx(fj,{id:p.contentId,role:"tooltip",children:o||i})})]})})});Tj.displayName=Ai;var Mj="TooltipArrow",pD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,o=cp(r);return hD(Mj,r).isInside?null:u.jsx(Fm,{...o,...i,ref:a})});pD.displayName=Mj;function vD(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),o=Math.abs(a.right-n.x),c=Math.abs(a.left-n.x);switch(Math.min(r,i,o,c)){case c:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function gD(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 yD(n){const{top:a,right:r,bottom:i,left:o}=n;return[{x:o,y:a},{x:r,y:a},{x:r,y:i},{x:o,y:i}]}function xD(n,a){const{x:r,y:i}=n;let o=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,x=m.y,y=p.x,w=p.y;x>i!=w>i&&r<(y-g)*(i-x)/(w-x)+g&&(o=!o)}return o}function bD(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),wD(a)}function wD(n){if(n.length<=1)return n.slice();const a=[];for(let i=0;i<n.length;i++){const o=n[i];for(;a.length>=2;){const c=a[a.length-1],h=a[a.length-2];if((c.x-h.x)*(o.y-h.y)>=(c.y-h.y)*(o.x-h.x))a.pop();else break}a.push(o)}a.pop();const r=[];for(let i=n.length-1;i>=0;i--){const o=n[i];for(;r.length>=2;){const c=r[r.length-1],h=r[r.length-2];if((c.x-h.x)*(o.y-h.y)>=(c.y-h.y)*(o.x-h.x))r.pop();else break}r.push(o)}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 jD=Tj;jD.displayName;var Bc="Checkbox",[SD,e6]=bt(Bc),[ED,dp]=SD(Bc);function ND(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:o,disabled:c,form:h,name:m,onCheckedChange:p,required:g,value:x="on",internal_do_not_use_render:y}=n,[w,S]=ia({prop:r,defaultProp:o??!1,onChange:p,caller:Bc}),[E,j]=v.useState(null),[C,_]=v.useState(null),T=v.useRef(!1),R=E?!!h||!!E.closest("form"):!0,D={checked:w,disabled:c,setChecked:S,control:E,setControl:j,name:m,form:h,value:x,hasConsumerStoppedPropagationRef:T,required:g,defaultChecked:Tl(o)?!1:o,isFormControl:R,bubbleInput:C,setBubbleInput:_};return u.jsx(ED,{scope:a,...D,children:TD(y)?y(D):i})}var Aj="CheckboxTrigger",kj=v.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},o)=>{const{control:c,value:h,disabled:m,checked:p,required:g,setControl:x,setChecked:y,hasConsumerStoppedPropagationRef:w,isFormControl:S,bubbleInput:E}=dp(Aj,n),j=we(o,x),C=v.useRef(p);return v.useEffect(()=>{const _=c==null?void 0:c.form;if(_){const T=()=>y(C.current);return _.addEventListener("reset",T),()=>_.removeEventListener("reset",T)}},[c,y]),u.jsx(se.button,{type:"button",role:"checkbox","aria-checked":Tl(p)?"mixed":p,"aria-required":g,"data-state":Lj(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:j,onKeyDown:ae(a,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ae(r,_=>{y(T=>Tl(T)?!0:!T),E&&S&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});kj.displayName=Aj;var CD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:o,defaultChecked:c,required:h,disabled:m,value:p,onCheckedChange:g,form:x,...y}=n;return u.jsx(ND,{__scopeCheckbox:r,checked:o,defaultChecked:c,disabled:m,required:h,onCheckedChange:g,name:i,form:x,value:p,internal_do_not_use_render:({isFormControl:w})=>u.jsxs(u.Fragment,{children:[u.jsx(kj,{...y,ref:a,__scopeCheckbox:r}),w&&u.jsx(zj,{__scopeCheckbox:r})]})})});CD.displayName=Bc;var Dj="CheckboxIndicator",_D=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...o}=n,c=dp(Dj,r);return u.jsx(Et,{present:i||Tl(c.checked)||c.checked===!0,children:u.jsx(se.span,{"data-state":Lj(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:a,style:{pointerEvents:"none",...n.style}})})});_D.displayName=Dj;var Oj="CheckboxBubbleInput",zj=v.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:o,checked:c,defaultChecked:h,required:m,disabled:p,name:g,value:x,form:y,bubbleInput:w,setBubbleInput:S}=dp(Oj,n),E=we(r,S),j=yo(c),C=Ac(i);v.useEffect(()=>{const T=w;if(!T)return;const R=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(R,"checked").set,L=!o.current;if(j!==c&&D){const K=new Event("click",{bubbles:L});T.indeterminate=Tl(c),D.call(T,Tl(c)?!1:c),T.dispatchEvent(K)}},[w,j,c,o]);const _=v.useRef(Tl(c)?!1:c);return u.jsx(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:g,value:x,form:y,...a,tabIndex:-1,ref:E,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});zj.displayName=Oj;function TD(n){return typeof n=="function"}function Tl(n){return n==="indeterminate"}function Lj(n){return Tl(n)?"indeterminate":n?"checked":"unchecked"}var fp="Radio",[RD,Uj]=bt(fp),[MD,AD]=RD(fp),qj=v.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:o=!1,required:c,disabled:h,value:m="on",onCheck:p,form:g,...x}=n,[y,w]=v.useState(null),S=we(a,C=>w(C)),E=v.useRef(!1),j=y?g||!!y.closest("form"):!0;return u.jsxs(MD,{scope:r,checked:o,disabled:h,children:[u.jsx(se.button,{type:"button",role:"radio","aria-checked":o,"data-state":$j(o),"data-disabled":h?"":void 0,disabled:h,value:m,...x,ref:S,onClick:ae(n.onClick,C=>{o||p==null||p(),j&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),j&&u.jsx(Qj,{control:y,bubbles:!E.current,name:i,value:m,checked:o,required:c,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});qj.displayName=fp;var Hj="RadioIndicator",Bj=v.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...o}=n,c=AD(Hj,r);return u.jsx(Et,{present:i||c.checked,children:u.jsx(se.span,{"data-state":$j(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:a})})});Bj.displayName=Hj;var kD="RadioBubbleInput",Qj=v.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...o},c)=>{const h=v.useRef(null),m=we(h,c),p=yo(r),g=Ac(a);return v.useEffect(()=>{const x=h.current;if(!x)return;const y=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&w){const S=new Event("click",{bubbles:i});w.call(x,r),x.dispatchEvent(S)}},[p,r,i]),u.jsx(se.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:m,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Qj.displayName=kD;function $j(n){return n?"checked":"unchecked"}var DD=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Qc="RadioGroup",[OD,t6]=bt(Qc,[Vi,Uj]),Gj=Vi(),Yj=Uj(),[zD,LD]=OD(Qc),Vj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:o,value:c,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:x=!0,onValueChange:y,...w}=n,S=Gj(r),E=Hi(g),[j,C]=ia({prop:c,defaultProp:o??null,onChange:y,caller:Qc});return u.jsx(zD,{scope:r,name:i,required:h,disabled:m,value:j,onValueChange:C,children:u.jsx(Zm,{asChild:!0,...S,orientation:p,dir:E,loop:x,children:u.jsx(se.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...w,ref:a})})})});Vj.displayName=Qc;var Kj="RadioGroupItem",Xj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...o}=n,c=LD(Kj,r),h=c.disabled||i,m=Gj(r),p=Yj(r),g=v.useRef(null),x=we(a,g),y=c.value===o.value,w=v.useRef(!1);return v.useEffect(()=>{const S=j=>{DD.includes(j.key)&&(w.current=!0)},E=()=>w.current=!1;return document.addEventListener("keydown",S),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",S),document.removeEventListener("keyup",E)}},[]),u.jsx(Pm,{asChild:!0,...m,focusable:!h,active:y,children:u.jsx(qj,{disabled:h,required:c.required,checked:y,...p,...o,name:c.name,ref:x,onCheck:()=>c.onValueChange(o.value),onKeyDown:ae(S=>{S.key==="Enter"&&S.preventDefault()}),onFocus:ae(o.onFocus,()=>{var S;w.current&&((S=g.current)==null||S.click())})})})});Xj.displayName=Kj;var UD="RadioGroupIndicator",qD=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,o=Yj(r);return u.jsx(Bj,{...o,...i,ref:a})});qD.displayName=UD;var HD=Vj,BD=Xj;HD.displayName;BD.displayName;var $c="Switch",[QD,n6]=bt($c),[$D,GD]=QD($c),Fj=v.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:o,defaultChecked:c,required:h,disabled:m,value:p="on",onCheckedChange:g,form:x,...y}=n,[w,S]=v.useState(null),E=we(a,R=>S(R)),j=v.useRef(!1),C=w?x||!!w.closest("form"):!0,[_,T]=ia({prop:o,defaultProp:c??!1,onChange:g,caller:$c});return u.jsxs($D,{scope:r,checked:_,disabled:m,children:[u.jsx(se.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":Wj(_),"data-disabled":m?"":void 0,disabled:m,value:p,...y,ref:E,onClick:ae(n.onClick,R=>{T(D=>!D),C&&(j.current=R.isPropagationStopped(),j.current||R.stopPropagation())})}),C&&u.jsx(Jj,{control:w,bubbles:!j.current,name:i,value:p,checked:_,required:h,disabled:m,form:x,style:{transform:"translateX(-100%)"}})]})});Fj.displayName=$c;var Zj="SwitchThumb",Pj=v.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,o=GD(Zj,r);return u.jsx(se.span,{"data-state":Wj(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:a})});Pj.displayName=Zj;var YD="SwitchBubbleInput",Jj=v.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...o},c)=>{const h=v.useRef(null),m=we(h,c),p=yo(r),g=Ac(a);return v.useEffect(()=>{const x=h.current;if(!x)return;const y=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&w){const S=new Event("click",{bubbles:i});w.call(x,r),x.dispatchEvent(S)}},[p,r,i]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:m,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Jj.displayName=YD;function Wj(n){return n?"checked":"unchecked"}var VD=Fj,KD=Pj;function kh({className:n,...a}){return u.jsx(VD,{"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(KD,{"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 Gc="Tabs",[XD,a6]=bt(Gc,[Vi]),Ij=Vi(),[FD,hp]=XD(Gc),eS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:o,defaultValue:c,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,x=Hi(m),[y,w]=ia({prop:i,onChange:o,defaultProp:c??"",caller:Gc});return u.jsx(FD,{scope:r,baseId:Dl(),value:y,onValueChange:w,orientation:h,dir:x,activationMode:p,children:u.jsx(se.div,{dir:x,"data-orientation":h,...g,ref:a})})});eS.displayName=Gc;var tS="TabsList",nS=v.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...o}=n,c=hp(tS,r),h=Ij(r);return u.jsx(Zm,{asChild:!0,...h,orientation:c.orientation,dir:c.dir,loop:i,children:u.jsx(se.div,{role:"tablist","aria-orientation":c.orientation,...o,ref:a})})});nS.displayName=tS;var aS="TabsTrigger",lS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:o=!1,...c}=n,h=hp(aS,r),m=Ij(r),p=sS(h.baseId,i),g=oS(h.baseId,i),x=i===h.value;return u.jsx(Pm,{asChild:!0,...m,focusable:!o,active:x,children:u.jsx(se.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":g,"data-state":x?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...c,ref:a,onMouseDown:ae(n.onMouseDown,y=>{!o&&y.button===0&&y.ctrlKey===!1?h.onValueChange(i):y.preventDefault()}),onKeyDown:ae(n.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&h.onValueChange(i)}),onFocus:ae(n.onFocus,()=>{const y=h.activationMode!=="manual";!x&&!o&&y&&h.onValueChange(i)})})})});lS.displayName=aS;var rS="TabsContent",iS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:o,children:c,...h}=n,m=hp(rS,r),p=sS(m.baseId,i),g=oS(m.baseId,i),x=i===m.value,y=v.useRef(x);return v.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),u.jsx(Et,{present:o||x,children:({present:w})=>u.jsx(se.div,{"data-state":x?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...h,ref:a,style:{...n.style,animationDuration:y.current?"0s":void 0},children:w&&c})})});iS.displayName=rS;function sS(n,a){return`${n}-trigger-${a}`}function oS(n,a){return`${n}-content-${a}`}var ZD=eS,PD=nS,JD=lS,WD=iS;function uS({className:n,...a}){return u.jsx(ZD,{"data-slot":"tabs",className:pe("flex flex-col gap-2",n),...a})}function cS({className:n,...a}){return u.jsx(PD,{"data-slot":"tabs-list",className:pe("flex border-b border-border",n),...a})}function Js({className:n,children:a,...r}){return u.jsx(JD,{asChild:!0,...r,children:u.jsx(d1,{className:n,children:a})})}function Ws({className:n,...a}){return u.jsx(WD,{"data-slot":"tabs-content",className:pe("flex-1 outline-none",n),...a})}function ID(n){const a=eO(n),r=v.forwardRef((i,o)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(nO);if(p){const g=p.props.children,x=m.map(y=>y===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:y);return u.jsx(a,{...h,ref:o,children:v.isValidElement(g)?v.cloneElement(g,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:c})});return r.displayName=`${n}.Slot`,r}function eO(n){const a=v.forwardRef((r,i)=>{const{children:o,...c}=r,h=v.isValidElement(o)?lO(o):void 0,m=we(h,i);if(v.isValidElement(o)){const p=aO(c,o.props);return o.type!==v.Fragment&&(p.ref=m),v.cloneElement(o,p)}return v.Children.count(o)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var tO=Symbol("radix.slottable");function nO(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===tO}function aO(n,a){const r={...a};for(const i in a){const o=n[i],c=a[i];/^on[A-Z]/.test(i)?o&&c?r[i]=(...h)=>{const m=c(...h);return o(...h),m}:o&&(r[i]=o):i==="style"?r[i]={...o,...c}:i==="className"&&(r[i]=[o,c].filter(Boolean).join(" "))}return{...n,...r}}function lO(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var rO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],mp=rO.reduce((n,a)=>{const r=ID(`Primitive.${a}`),i=v.forwardRef((o,c)=>{const{asChild:h,...m}=o,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}},{}),pp="Progress",vp=100,[iO,l6]=bt(pp),[sO,oO]=iO(pp),uO=v.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:o,getValueLabel:c=dO,...h}=n;(o||o===0)&&!Yx(o)&&console.error(fO(`${o}`,"Progress"));const m=Yx(o)?o:vp;i!==null&&!Vx(i,m)&&console.error(hO(`${i}`,"Progress"));const p=Vx(i,m)?i:null,g=gc(p)?c(p,m):void 0;return u.jsx(sO,{scope:r,value:p,max:m,children:u.jsx(mp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":gc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":fS(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});uO.displayName=pp;var dS="ProgressIndicator",cO=v.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,o=oO(dS,r);return u.jsx(mp.div,{"data-state":fS(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...i,ref:a})});cO.displayName=dS;function dO(n,a){return`${Math.round(n/a*100)}%`}function fS(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function gc(n){return typeof n=="number"}function Yx(n){return gc(n)&&!isNaN(n)&&n>0}function Vx(n,a){return gc(n)&&!isNaN(n)&&n<=a&&n>=0}function fO(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${vp}\`.`}function hO(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
342
+ - a positive number
343
+ - less than the value passed to \`max\` (or ${vp} if no \`max\` prop is set)
344
+ - \`null\` or \`undefined\` if the progress is indeterminate.
345
+
346
+ Defaulting to \`null\`.`}var mO="Separator",Kx="horizontal",pO=["horizontal","vertical"],vO=v.forwardRef((n,a)=>{const{decorative:r,orientation:i=Kx,...o}=n,c=gO(i)?i:Kx,h=r?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return u.jsx(mp.div,{"data-orientation":c,...h,...o,ref:a})});vO.displayName=mO;function gO(n){return pO.includes(n)}var yO="Label",hS=v.forwardRef((n,a)=>u.jsx(se.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())}}));hS.displayName=yO;var mS=hS;const xO=c1("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Zs=({ref:n,className:a,...r})=>u.jsx(mS,{ref:n,className:pe(xO(),a),...r});Zs.displayName=mS.displayName;var Yc="Collapsible",[bO,pS]=bt(Yc),[wO,gp]=bO(Yc),vS=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:c,onOpenChange:h,...m}=n,[p,g]=ia({prop:i,defaultProp:o??!1,onChange:h,caller:Yc});return u.jsx(wO,{scope:r,disabled:c,contentId:Dl(),open:p,onOpenToggle:v.useCallback(()=>g(x=>!x),[g]),children:u.jsx(se.div,{"data-state":wp(p),"data-disabled":c?"":void 0,...m,ref:a})})});vS.displayName=Yc;var gS="CollapsibleTrigger",yp=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,o=gp(gS,r);return u.jsx(se.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":wp(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:a,onClick:ae(n.onClick,o.onOpenToggle)})});yp.displayName=gS;var xp="CollapsibleContent",bp=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=gp(xp,n.__scopeCollapsible);return u.jsx(Et,{present:r||o.open,children:({present:c})=>u.jsx(jO,{...i,ref:a,present:c})})});bp.displayName=xp;var jO=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:o,...c}=n,h=gp(xp,r),[m,p]=v.useState(i),g=v.useRef(null),x=we(a,g),y=v.useRef(0),w=y.current,S=v.useRef(0),E=S.current,j=h.open||m,C=v.useRef(j),_=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();y.current=R.height,S.current=R.width,C.current||(T.style.transitionDuration=_.current.transitionDuration,T.style.animationName=_.current.animationName),p(i)}},[h.open,i]),u.jsx(se.div,{"data-state":wp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!j,...c,ref:x,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:j&&o})});function wp(n){return n?"open":"closed"}var yS=vS,SO=yp,EO=bp,Yn="Accordion",NO=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[jp,CO,_O]=Bi(Yn),[Vc,r6]=bt(Yn,[_O,pS]),Sp=pS(),TO=ot.forwardRef((n,a)=>{const{type:r,...i}=n,o=i,c=i;return u.jsx(jp.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?u.jsx(kO,{...c,ref:a}):u.jsx(AO,{...o,ref:a})})});TO.displayName=Yn;var[xS,RO]=Vc(Yn),[bS,MO]=Vc(Yn,{collapsible:!1}),AO=ot.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:o=()=>{},collapsible:c=!1,...h}=n,[m,p]=ia({prop:r,defaultProp:i??"",onChange:o,caller:Yn});return u.jsx(xS,{scope:n.__scopeAccordion,value:ot.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:ot.useCallback(()=>c&&p(""),[c,p]),children:u.jsx(bS,{scope:n.__scopeAccordion,collapsible:c,children:u.jsx(wS,{...h,ref:a})})})}),kO=ot.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:o=()=>{},...c}=n,[h,m]=ia({prop:r,defaultProp:i??[],onChange:o,caller:Yn}),p=ot.useCallback(x=>m((y=[])=>[...y,x]),[m]),g=ot.useCallback(x=>m((y=[])=>y.filter(w=>w!==x)),[m]);return u.jsx(xS,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:u.jsx(bS,{scope:n.__scopeAccordion,collapsible:!0,children:u.jsx(wS,{...c,ref:a})})})}),[DO,Kc]=Vc(Yn),wS=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:o,orientation:c="vertical",...h}=n,m=ot.useRef(null),p=we(m,a),g=CO(r),x=Hi(o)==="ltr",y=ae(n.onKeyDown,w=>{var S;if(!NO.includes(w.key))return;const E=w.target,j=g().filter(q=>{var G;return!((G=q.ref.current)!=null&&G.disabled)}),C=j.findIndex(q=>q.ref.current===E),_=j.length;if(C===-1)return;w.preventDefault();let T=C;const R=0,D=_-1,L=()=>{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"&&(x?L():K());break;case"ArrowDown":c==="vertical"&&L();break;case"ArrowLeft":c==="horizontal"&&(x?K():L());break;case"ArrowUp":c==="vertical"&&K();break}const H=T%_;(S=j[H].ref.current)==null||S.focus()});return u.jsx(DO,{scope:r,disabled:i,direction:o,orientation:c,children:u.jsx(jp.Slot,{scope:r,children:u.jsx(se.div,{...h,"data-orientation":c,ref:p,onKeyDown:i?void 0:y})})})}),yc="AccordionItem",[OO,Ep]=Vc(yc),zO=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...o}=n,c=Kc(yc,r),h=RO(yc,r),m=Sp(r),p=Dl(),g=i&&h.value.includes(i)||!1,x=c.disabled||n.disabled;return u.jsx(OO,{scope:r,open:g,disabled:x,triggerId:p,children:u.jsx(yS,{"data-orientation":c.orientation,"data-state":ES(g),...m,...o,ref:a,disabled:x,open:g,onOpenChange:y=>{y?h.onItemOpen(i):h.onItemClose(i)}})})});zO.displayName=yc;var jS="AccordionHeader",LO=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Kc(Yn,r),c=Ep(jS,r);return u.jsx(se.h3,{"data-orientation":o.orientation,"data-state":ES(c.open),"data-disabled":c.disabled?"":void 0,...i,ref:a})});LO.displayName=jS;var pm="AccordionTrigger",UO=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Kc(Yn,r),c=Ep(pm,r),h=MO(pm,r),m=Sp(r);return u.jsx(jp.ItemSlot,{scope:r,children:u.jsx(SO,{"aria-disabled":c.open&&!h.collapsible||void 0,"data-orientation":o.orientation,id:c.triggerId,...m,...i,ref:a})})});UO.displayName=pm;var SS="AccordionContent",qO=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Kc(Yn,r),c=Ep(SS,r),h=Sp(r);return u.jsx(EO,{role:"region","aria-labelledby":c.triggerId,"data-orientation":o.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=SS;function ES(n){return n?"open":"closed"}const NS=yS,CS=yp,_S=bp;var wr="NavigationMenu",[Np,TS,HO]=Bi(wr),[vm,BO,QO]=Bi(wr),[Cp,i6]=bt(wr,[HO,QO]),[$O,Mn]=Cp(wr),[GO,YO]=Cp(wr),VO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:c,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...x}=n,[y,w]=v.useState(null),S=we(a,G=>w(G)),E=Hi(g),j=v.useRef(0),C=v.useRef(0),_=v.useRef(0),[T,R]=v.useState(!0),[D,L]=ia({prop:i,onChange:G=>{const te=G!=="",ue=m>0;te?(window.clearTimeout(_.current),ue&&R(!1)):(window.clearTimeout(_.current),_.current=window.setTimeout(()=>R(!0),m)),o==null||o(G)},defaultProp:c??"",caller:wr}),K=v.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>L(""),150)},[L]),H=v.useCallback(G=>{window.clearTimeout(C.current),L(G)},[L]),q=v.useCallback(G=>{D===G?window.clearTimeout(C.current):j.current=window.setTimeout(()=>{window.clearTimeout(C.current),L(G)},h)},[D,L,h]);return v.useEffect(()=>()=>{window.clearTimeout(j.current),window.clearTimeout(C.current),window.clearTimeout(_.current)},[]),u.jsx(RS,{scope:r,isRootMenu:!0,value:D,dir:E,orientation:p,rootNavigationMenu:y,onTriggerEnter:G=>{window.clearTimeout(j.current),T?q(G):H(G)},onTriggerLeave:()=>{window.clearTimeout(j.current),K()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:K,onItemSelect:G=>{L(te=>te===G?"":G)},onItemDismiss:()=>L(""),children:u.jsx(se.nav,{"aria-label":"Main","data-orientation":p,dir:E,...x,ref:S})})});VO.displayName=wr;var gm="NavigationMenuSub",KO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:c,orientation:h="horizontal",...m}=n,p=Mn(gm,r),[g,x]=ia({prop:i,onChange:o,defaultProp:c??"",caller:gm});return u.jsx(RS,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:y=>x(y),onItemSelect:y=>x(y),onItemDismiss:()=>x(""),children:u.jsx(se.div,{"data-orientation":h,...m,ref:a})})});KO.displayName=gm;var RS=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:o,orientation:c,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:x,onTriggerLeave:y,onContentEnter:w,onContentLeave:S}=n,[E,j]=v.useState(null),[C,_]=v.useState(new Map),[T,R]=v.useState(null);return u.jsx($O,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:yo(m),baseId:Dl(),dir:o,orientation:c,viewport:E,onViewportChange:j,indicatorTrack:T,onIndicatorTrackChange:R,onTriggerEnter:nt(x),onTriggerLeave:nt(y),onContentEnter:nt(w),onContentLeave:nt(S),onItemSelect:nt(p),onItemDismiss:nt(g),onViewportContentChange:v.useCallback((D,L)=>{_(K=>(K.set(D,L),new Map(K)))},[]),onViewportContentRemove:v.useCallback(D=>{_(L=>L.has(D)?(L.delete(D),new Map(L)):L)},[]),children:u.jsx(Np.Provider,{scope:a,children:u.jsx(GO,{scope:a,items:C,children:h})})})},MS="NavigationMenuList",XO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=Mn(MS,r),c=u.jsx(se.ul,{"data-orientation":o.orientation,...i,ref:a});return u.jsx(se.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:u.jsx(Np.Slot,{scope:r,children:o.isRootMenu?u.jsx(OS,{asChild:!0,children:c}):c})})});XO.displayName=MS;var AS="NavigationMenuItem",[FO,kS]=Cp(AS),ZO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...o}=n,c=Dl(),h=i||c||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),x=v.useRef(()=>{}),y=v.useRef(!1),w=v.useCallback((E="start")=>{if(m.current){x.current();const j=xm(m.current);j.length&&Rp(E==="start"?j:j.reverse())}},[]),S=v.useCallback(()=>{if(m.current){const E=xm(m.current);E.length&&(x.current=s5(E))}},[]);return u.jsx(FO,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:y,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:S,onContentFocusOutside:S,children:u.jsx(se.li,{...o,ref:a})})});ZO.displayName=AS;var ym="NavigationMenuTrigger",PO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...o}=n,c=Mn(ym,n.__scopeNavigationMenu),h=kS(ym,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,a),g=LS(c.baseId,h.value),x=US(c.baseId,h.value),y=v.useRef(!1),w=v.useRef(!1),S=h.value===c.value;return u.jsxs(u.Fragment,{children:[u.jsx(Np.ItemSlot,{scope:r,value:h.value,children:u.jsx(zS,{asChild:!0,children:u.jsx(se.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":Mp(S),"aria-expanded":S,"aria-controls":x,...o,ref:p,onPointerEnter:ae(n.onPointerEnter,()=>{w.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:ae(n.onPointerMove,xc(()=>{i||w.current||h.wasEscapeCloseRef.current||y.current||(c.onTriggerEnter(h.value),y.current=!0)})),onPointerLeave:ae(n.onPointerLeave,xc(()=>{i||(c.onTriggerLeave(),y.current=!1)})),onClick:ae(n.onClick,()=>{c.onItemSelect(h.value),w.current=S}),onKeyDown:ae(n.onKeyDown,E=>{const j={horizontal:"ArrowDown",vertical:c.dir==="rtl"?"ArrowLeft":"ArrowRight"}[c.orientation];S&&E.key===j&&(h.onEntryKeyDown(),E.preventDefault())})})})}),S&&u.jsxs(u.Fragment,{children:[u.jsx(fj,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:E=>{const j=h.contentRef.current,C=E.relatedTarget,_=C===m.current,T=j==null?void 0:j.contains(C);(_||!T)&&h.onFocusProxyEnter(_?"start":"end")}}),c.viewport&&u.jsx("span",{"aria-owns":x})]})]})});PO.displayName=ym;var JO="NavigationMenuLink",Xx="navigationMenu.linkSelect",WO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:o,...c}=n;return u.jsx(zS,{asChild:!0,children:u.jsx(se.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...c,ref:a,onClick:ae(n.onClick,h=>{const m=h.target,p=new CustomEvent(Xx,{bubbles:!0,cancelable:!0});if(m.addEventListener(Xx,g=>o==null?void 0:o(g),{once:!0}),ic(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(tc,{bubbles:!0,cancelable:!0});ic(m,g)}},{checkForDefaultPrevented:!1})})})});WO.displayName=JO;var _p="NavigationMenuIndicator",IO=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Mn(_p,n.__scopeNavigationMenu),c=!!o.value;return o.indicatorTrack?Bb.createPortal(u.jsx(Et,{present:r||c,children:u.jsx(e5,{...i,ref:a})}),o.indicatorTrack):null});IO.displayName=_p;var e5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=Mn(_p,r),c=TS(r),[h,m]=v.useState(null),[p,g]=v.useState(null),x=o.orientation==="horizontal",y=!!o.value;v.useEffect(()=>{var S;const E=(S=c().find(j=>j.value===o.value))==null?void 0:S.ref.current;E&&m(E)},[c,o.value]);const w=()=>{h&&g({size:x?h.offsetWidth:h.offsetHeight,offset:x?h.offsetLeft:h.offsetTop})};return bm(h,w),bm(o.indicatorTrack,w),p?u.jsx(se.div,{"aria-hidden":!0,"data-state":y?"visible":"hidden","data-orientation":o.orientation,...i,ref:a,style:{position:"absolute",...x?{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}),ki="NavigationMenuContent",t5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Mn(ki,n.__scopeNavigationMenu),c=kS(ki,n.__scopeNavigationMenu),h=we(c.contentRef,a),m=c.value===o.value,p={value:c.value,triggerRef:c.triggerRef,focusProxyRef:c.focusProxyRef,wasEscapeCloseRef:c.wasEscapeCloseRef,onContentFocusOutside:c.onContentFocusOutside,onRootContentClose:c.onRootContentClose,...i};return o.viewport?u.jsx(n5,{forceMount:r,...p,ref:h}):u.jsx(Et,{present:r||m,children:u.jsx(DS,{"data-state":Mp(m),...p,ref:h,onPointerEnter:ae(n.onPointerEnter,o.onContentEnter),onPointerLeave:ae(n.onPointerLeave,xc(o.onContentLeave)),style:{pointerEvents:!m&&o.isRootMenu?"none":void 0,...p.style}})})});t5.displayName=ki;var n5=v.forwardRef((n,a)=>{const r=Mn(ki,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:o}=r;return lt(()=>{i(n.value,{ref:a,...n})},[n,a,i]),lt(()=>()=>o(n.value),[n.value,o]),null}),tc="navigationMenu.rootContentDismiss",DS=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:o,focusProxyRef:c,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,x=Mn(ki,r),y=v.useRef(null),w=we(y,a),S=LS(x.baseId,i),E=US(x.baseId,i),j=TS(r),C=v.useRef(null),{onItemDismiss:_}=x;v.useEffect(()=>{const R=y.current;if(x.isRootMenu&&R){const D=()=>{var L;_(),m(),R.contains(document.activeElement)&&((L=o.current)==null||L.focus())};return R.addEventListener(tc,D),()=>R.removeEventListener(tc,D)}},[x.isRootMenu,n.value,o,_,m]);const T=v.useMemo(()=>{const R=j().map(G=>G.value);x.dir==="rtl"&&R.reverse();const D=R.indexOf(x.value),L=R.indexOf(x.previousValue),K=i===x.value,H=L===R.indexOf(i);if(!K&&!H)return C.current;const q=(()=>{if(D!==L){if(K&&L!==-1)return D>L?"from-end":"from-start";if(H&&D!==-1)return D>L?"to-start":"to-end"}return null})();return C.current=q,q},[x.previousValue,x.value,x.dir,j,i]);return u.jsx(OS,{asChild:!0,children:u.jsx(Qi,{id:E,"aria-labelledby":S,"data-motion":T,"data-orientation":x.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var R;const D=new Event(tc,{bubbles:!0,cancelable:!0});(R=y.current)==null||R.dispatchEvent(D)},onFocusOutside:ae(n.onFocusOutside,R=>{var D;p();const L=R.target;(D=x.rootNavigationMenu)!=null&&D.contains(L)&&R.preventDefault()}),onPointerDownOutside:ae(n.onPointerDownOutside,R=>{var D;const L=R.target,K=j().some(q=>{var G;return(G=q.ref.current)==null?void 0:G.contains(L)}),H=x.isRootMenu&&((D=x.viewport)==null?void 0:D.contains(L));(K||H||!x.isRootMenu)&&R.preventDefault()}),onKeyDown:ae(n.onKeyDown,R=>{var D;const L=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!L){const K=xm(R.currentTarget),H=document.activeElement,q=K.findIndex(te=>te===H),G=R.shiftKey?K.slice(0,q).reverse():K.slice(q+1,K.length);Rp(G)?R.preventDefault():(D=c.current)==null||D.focus()}}),onEscapeKeyDown:ae(n.onEscapeKeyDown,R=>{h.current=!0})})})}),Tp="NavigationMenuViewport",a5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=!!Mn(Tp,n.__scopeNavigationMenu).value;return u.jsx(Et,{present:r||o,children:u.jsx(l5,{...i,ref:a})})});a5.displayName=Tp;var l5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...o}=n,c=Mn(Tp,r),h=we(a,c.onViewportChange),m=YO(ki,n.__scopeNavigationMenu),[p,g]=v.useState(null),[x,y]=v.useState(null),w=p?(p==null?void 0:p.width)+"px":void 0,S=p?(p==null?void 0:p.height)+"px":void 0,E=!!c.value,j=E?c.value:c.previousValue;return bm(x,()=>{x&&g({width:x.offsetWidth,height:x.offsetHeight})}),u.jsx(se.div,{"data-state":Mp(E),"data-orientation":c.orientation,...o,ref:h,style:{pointerEvents:!E&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":S,...o.style},onPointerEnter:ae(n.onPointerEnter,c.onContentEnter),onPointerLeave:ae(n.onPointerLeave,xc(c.onContentLeave)),children:Array.from(m.items).map(([C,{ref:_,forceMount:T,...R}])=>{const D=j===C;return u.jsx(Et,{present:T||D,children:u.jsx(DS,{...R,ref:mo(_,L=>{D&&L&&y(L)})})},C)})})}),r5="FocusGroup",OS=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=Mn(r5,r);return u.jsx(vm.Provider,{scope:r,children:u.jsx(vm.Slot,{scope:r,children:u.jsx(se.div,{dir:o.dir,...i,ref:a})})})}),Fx=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],i5="FocusGroupItem",zS=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=BO(r),c=Mn(i5,r);return u.jsx(vm.ItemSlot,{scope:r,children:u.jsx(se.button,{...i,ref:a,onKeyDown:ae(n.onKeyDown,h=>{if(["Home","End",...Fx].includes(h.key)){let m=o().map(p=>p.ref.current);if([c.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Fx.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>Rp(m)),h.preventDefault()}})})})});function xm(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Rp(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function s5(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 bm(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(n),()=>{window.cancelAnimationFrame(i),o.unobserve(n)}}},[n,r])}function Mp(n){return n?"open":"closed"}function LS(n,a){return`${n}-trigger-${a}`}function US(n,a){return`${n}-content-${a}`}function xc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Zx={exports:{}},Dh={};/**
347
+ * @license React
348
+ * use-sync-external-store-shim.production.js
349
+ *
350
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
351
+ *
352
+ * This source code is licensed under the MIT license found in the
353
+ * LICENSE file in the root directory of this source tree.
354
+ */var Px;function o5(){if(Px)return Dh;Px=1;var n=ot;function a(y,w){return y===w&&(y!==0||1/y===1/w)||y!==y&&w!==w}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,o=n.useEffect,c=n.useLayoutEffect,h=n.useDebugValue;function m(y,w){var S=w(),E=i({inst:{value:S,getSnapshot:w}}),j=E[0].inst,C=E[1];return c(function(){j.value=S,j.getSnapshot=w,p(j)&&C({inst:j})},[y,S,w]),o(function(){return p(j)&&C({inst:j}),y(function(){p(j)&&C({inst:j})})},[y]),h(S),S}function p(y){var w=y.getSnapshot;y=y.value;try{var S=w();return!r(y,S)}catch{return!0}}function g(y,w){return w()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return Dh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:x,Dh}var Jx;function u5(){return Jx||(Jx=1,Zx.exports=o5()),Zx.exports}var c5=u5();function d5(){return c5.useSyncExternalStore(f5,()=>!0,()=>!1)}function f5(){return()=>{}}var Ap="Avatar",[h5,s6]=bt(Ap),[m5,qS]=h5(Ap),HS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[o,c]=v.useState("idle");return u.jsx(m5,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:c,children:u.jsx(se.span,{...i,ref:a})})});HS.displayName=Ap;var BS="AvatarImage",QS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:o=()=>{},...c}=n,h=qS(BS,r),m=p5(i,c),p=nt(g=>{o(g),h.onImageLoadingStatusChange(g)});return lt(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?u.jsx(se.img,{...c,ref:a,src:i}):null});QS.displayName=BS;var $S="AvatarFallback",GS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...o}=n,c=qS($S,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(se.span,{...o,ref:a}):null});GS.displayName=$S;function Wx(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function p5(n,{referrerPolicy:a,crossOrigin:r}){const i=d5(),o=v.useRef(null),c=i?(o.current||(o.current=new window.Image),o.current):null,[h,m]=v.useState(()=>Wx(c,n));return lt(()=>{m(Wx(c,n))},[c,n]),lt(()=>{const p=y=>()=>{m(y)};if(!c)return;const g=p("loaded"),x=p("error");return c.addEventListener("load",g),c.addEventListener("error",x),a&&(c.referrerPolicy=a),typeof r=="string"&&(c.crossOrigin=r),()=>{c.removeEventListener("load",g),c.removeEventListener("error",x)}},[c,r,a]),h}var v5=HS,g5=QS,y5=GS;v5.displayName;g5.displayName;y5.displayName;J4.displayName;W4.displayName;V4.displayName;X4.displayName;F4.displayName;Z4.displayName;K4.displayName;P4.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 x5="";async function ut(n,a){const r=await fetch(`${x5}${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 r.json()}async function kp(){return ut("/api/config")}async function b5(n,a){return ut(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function w5(n){return ut(`/api/db/${n}/tables`)}async function j5(n,a,r,i){return ut(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function S5(n){return ut(`/api/db/${n}/schema`)}async function E5(n,a=20,r=0){return ut(`/api/cache/${n}/entries?limit=${a}&offset=${r}`)}async function N5(n,a=20,r=0,i=""){const o=new URLSearchParams({limit:String(a),offset:String(r)});return i&&o.set("search",i),ut(`/api/state/${n}/entries?${o.toString()}`)}async function C5(n){return ut(`/api/queue/${n}/metrics`)}async function _5(n,a=10){return ut(`/api/queue/${n}/messages?limit=${a}`)}async function T5(n,a=20,r=0,i,o){const c=new URLSearchParams({limit:String(a),offset:String(r)});return i&&c.set("status",i),o&&c.set("since",o),ut(`/api/workflow/${n}/executions?${c.toString()}`)}async function R5(n,a){return ut(`/api/workflow/${n}/executions/${a}`)}async function M5(n,a=20,r=0){return ut(`/api/timer/${n}/entries?limit=${a}&offset=${r}`)}async function A5(n){return ut(`/api/timer/${n}/metrics`)}async function k5(n,a=20){return ut(`/api/timer/${n}/executions?limit=${a}`)}async function D5(n,a=20){return ut(`/api/cron/${n}/executions?limit=${a}`)}async function O5(){return ut("/api/auth/tables")}async function z5(n,a,r){return ut(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function L5(){return ut("/api/auth/schema")}async function U5(n){return ut("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function q5(){return ut("/api/auth/settings")}async function H5(n){return ut("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}async function B5(n,a=20,r=0){return ut(`/api/fs/${n}/entries?limit=${a}&offset=${r}`)}function $a(){return u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function ua({children:n}){return u.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Fi({id:n}){return u.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Cn({title:n,value:a,icon:r,isLoading:i}){return u.jsxs(gt,{children:[u.jsxs(_t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Tt,{className:"text-sm font-medium",children:n}),r]}),u.jsx(yt,{children:u.jsx("div",{className:"text-2xl font-bold",children:i?u.jsx(qn,{className:"h-5 w-5 animate-spin"}):a})})]})}function jr({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 Q5={PENDING:{variant:"default",icon:u.jsx(kl,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:u.jsx(qn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(Li,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:u.jsx(z_,{className:"h-3 w-3"}),label:"Cancelled"}},$5={PENDING:{variant:"default",icon:u.jsx(kl,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:u.jsx(qn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:u.jsx(Li,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:u.jsx($_,{className:"h-3 w-3"}),label:"Dead Letter"}};function Dp({status:n}){const a=Q5[n];return a?u.jsx(Ti,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ti,{children:n})}const G5={PENDING:{variant:"default",icon:u.jsx(kl,{className:"h-3 w-3"}),label:"Pending"},FIRED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Fired"},COMPLETED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(Li,{className:"h-3 w-3"}),label:"Failed"}};function YS({status:n}){const a=G5[n];return a?u.jsx(Ti,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ti,{children:n})}function Y5({status:n}){const a=$5[n];return a?u.jsx(Ti,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ti,{children:n})}function V5(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 o=Math.floor(r/60),c=r%60;if(o<24)return c===0?`${o}h`:`${o}h ${c}m`;const h=Math.floor(o/24),m=o%24;return m===0?`${h}d`:`${h}d ${m}h`}function K5({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[u.jsx(Cn,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(kl,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Cn,{title:"Fired",value:(n==null?void 0:n.fired)??0,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:a})]})}function X5({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Scheduled Timers"}),u.jsx(Bt,{children:"Timer entries scheduled by your worker (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx($a,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Scheduled Time"}),u.jsx(Re,{children:"Interval"}),u.jsx(Re,{children:"Payload"}),u.jsx(Re,{children:"Created"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Fi,{id:r.id})}),u.jsx(Me,{children:u.jsx(YS,{status:r.status})}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Me,{className:"text-xs",children:r.intervalMs!=null?u.jsxs("span",{className:"inline-flex items-center gap-1",children:[u.jsx(dT,{className:"h-3 w-3"}),V5(r.intervalMs)]}):"-"}),u.jsx(Me,{className:"max-w-[200px] truncate font-mono text-xs",children:r.payload!=null?JSON.stringify(r.payload):"-"}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(ua,{children:"No timers scheduled"})})]})}function F5({executions:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Execution History"}),u.jsx(Bt,{children:"Recent timer handler executions"})]}),u.jsx(yt,{children:a?u.jsx($a,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"Timer ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Scheduled Time"}),u.jsx(Re,{children:"Duration"}),u.jsx(Re,{children:"Error"}),u.jsx(Re,{children:"Executed"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Fi,{id:r.timerId})}),u.jsx(Me,{children:u.jsx(YS,{status:r.status})}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Me,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Me,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(ua,{children:"No timer executions yet"})})]})}function Z5(){const{binding:n}=Qa(),a=n||"",{data:r,isLoading:i}=ft({queryKey:["timerMetrics",a],queryFn:()=>A5(a),enabled:!!a,refetchInterval:5e3}),{data:o,isLoading:c}=ft({queryKey:["timerEntries",a],queryFn:()=>M5(a,20),enabled:!!a,refetchInterval:5e3}),{data:h,isLoading:m}=ft({queryKey:["timerExecutions",a],queryFn:()=>k5(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(jr,{title:`Timers: ${a}`}),u.jsx(K5,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(X5,{entries:o==null?void 0:o.entries,isLoading:c}),u.jsx(F5,{executions:h==null?void 0:h.executions,isLoading:m})]})})}function P5({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(Vb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Gb,{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 J5({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(NS,{open:r,onOpenChange:i,children:[u.jsxs(CS,{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($b,{className:"h-4 w-4 shrink-0"}):u.jsx(yr,{className:"h-4 w-4 shrink-0"}),u.jsx(Sc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:o=>{o.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(_S,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(o=>u.jsx(P5,{column:o,onInsertText:a},o.name))})})]})}function W5({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=ft({queryKey:["auth-schema"],queryFn:L5,staleTime:3e4}),o=(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(Xe,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:u.jsx(jc,{className:pe("h-4 w-4",r&&"animate-spin")})})]}),u.jsx(C1,{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..."}):o.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:o.map(c=>u.jsx(J5,{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 I5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function ez(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 tz({settings:n,onUpdate:a,isUpdating:r}){const[i,o]=v.useState(n.sessionTokenExpiry.toString()),[c,h]=v.useState(n.allowSignups),[m,p]=v.useState(n.requireEmailVerification),[g,x]=v.useState(n.requireName),y=()=>{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(Zs,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),u.jsx(f1,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:S=>o(S.target.value)}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",ez(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(Zs,{children:"Allow Signups"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),u.jsx(kh,{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(Zs,{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(kh,{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(Zs,{children:"Require Name"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),u.jsx(kh,{checked:g,onCheckedChange:x})]})]}),u.jsx("div",{className:"flex justify-end",children:u.jsx(Xe,{onClick:y,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function nz(){var I,ie,re,U,W,Y;const n=Cm(),[a,r]=v.useState("settings"),[i,o]=v.useState(""),[c,h]=v.useState(null),[m,p]=v.useState(null),[g,x]=v.useState(null),[y,w]=v.useState(0),S=50,j=((ie=(I=ft({queryKey:["config"],queryFn:kp,staleTime:6e4}).data)==null?void 0:I.auth)==null?void 0:ie.binding)||"AUTH",C=ft({queryKey:["auth-settings"],queryFn:q5,staleTime:0}),_=Zh({mutationFn:H5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),T=X=>{_.mutate(X)},R=v.useCallback(X=>{o(de=>de+X)},[]),D=Zh({mutationFn:X=>U5(X),onSuccess:X=>{h(X),p(null)},onError:X=>{p(X instanceof Error?X.message:"Failed to execute query"),h(null)}}),L=()=>{i.trim()&&D.mutate(i)},K=ft({queryKey:["auth-tables"],queryFn:O5,staleTime:0,gcTime:0}),H=ft({queryKey:["auth-tableData",g,S,y],queryFn:()=>z5(g,S,y),staleTime:0,gcTime:0,enabled:!!g}),q=((re=K.data)==null?void 0:re.tables)||[],G=((U=H.data)==null?void 0:U.data)||[],te=((W=H.data)==null?void 0:W.columns)||[],ue=((Y=H.data)==null?void 0:Y.total)||0,ce=X=>{x(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: ",j]}),u.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[u.jsx(Yb,{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(uS,{value:a,onValueChange:r,children:[u.jsxs(cS,{children:[u.jsxs(Js,{value:"settings",children:[u.jsx(pT,{className:"mr-2 h-4 w-4"}),"Settings"]}),u.jsx(Js,{value:"query",children:"SQL Editor"}),u.jsx(Js,{value:"tables",children:"Tables"})]}),u.jsx(Ws,{value:"settings",className:"mt-4",children:u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Auth Settings"}),u.jsx(Bt,{children:"Configure authentication settings for local development."})]}),u.jsx(yt,{children:C.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?u.jsx(tz,{settings:C.data,onUpdate:T,isUpdating:_.isPending}):u.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),u.jsx(Ws,{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(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"SQL Query"}),u.jsx(Bt,{children:"Execute read-only SELECT queries against auth tables"})]}),u.jsxs(yt,{className:"space-y-4",children:[u.jsx("textarea",{value:i,onChange:X=>o(X.target.value),onKeyDown:X=>{(X.metaKey||X.ctrlKey)&&X.key==="Enter"&&L()},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(Xe,{onClick:L,disabled:D.isPending||!i.trim(),children:[u.jsx(Kb,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&u.jsx(gt,{className:"border-destructive/50",children:u.jsx(yt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),c&&u.jsx(i1,{results:c.results,meta:c.meta,error:c.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(W5,{onInsertText:R})})]})}),u.jsx(Ws,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(gt,{className:"md:col-span-1",children:[u.jsxs(_t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Tt,{className:"text-base",children:"Tables"}),u.jsx(Xe,{variant:"ghost",size:"icon",onClick:()=>K.refetch(),className:"h-8 w-8",children:u.jsx(jc,{className:"h-4 w-4"})})]}),u.jsx(yt,{children:K.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):q.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:q.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(Sc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:X.name})]},X.name))})})]}),u.jsxs(gt,{className:"md:col-span-3",children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:g||"Select a Table"}),g&&u.jsxs(Bt,{children:[ue," total rows"]})]}),u.jsx(yt,{children:g?H.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):G.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(na,{children:[u.jsx(aa,{children:u.jsx(xt,{children:te.map(X=>u.jsx(Re,{className:"font-mono",children:X},X))})}),u.jsx(la,{children:G.map((X,de)=>u.jsx(xt,{children:te.map(A=>u.jsx(Me,{className:"font-mono text-sm",children:I5(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 ",y+1," -"," ",Math.min(y+S,ue)," of ",ue]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Xe,{variant:"outline",size:"sm",disabled:y===0,onClick:()=>w(Math.max(0,y-S)),children:[u.jsx(ho,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Xe,{variant:"outline",size:"sm",disabled:y+S>=ue,onClick:()=>w(y+S),children:["Next",u.jsx(yr,{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"})})]})]})})]})]})})}const tr=20;function az(n){if(n<=0)return"expired";if(n<60)return`${n}s`;if(n<3600)return`${Math.floor(n/60)}m ${n%60}s`;const a=Math.floor(n/3600),r=Math.floor(n%3600/60);return`${a}h ${r}m`}function lz({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Cache Entries"}),u.jsx(Bt,{children:"Active (non-expired) entries in this cache (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx($a,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"Key"}),u.jsx(Re,{children:"Value"}),u.jsx(Re,{children:"TTL"}),u.jsx(Re,{children:"Expires At"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{className:"font-mono text-sm",children:r.key}),u.jsx(Me,{className:"max-w-[300px] truncate font-mono text-xs text-muted-foreground",children:r.value}),u.jsx(Me,{children:u.jsx("span",{className:"font-mono text-sm",children:az(r.ttlSeconds)})}),u.jsx(Me,{className:"text-sm text-muted-foreground",children:new Date(r.expiresAt).toLocaleString()})]},r.key))})]}):u.jsx(ua,{children:"No active entries in this cache"})})]})}function rz(){const{binding:n}=Qa(),a=n||"",[r,i]=v.useState(0),{data:o,isLoading:c}=ft({queryKey:["cacheEntries",a,r],queryFn:()=>E5(a,tr,r),enabled:!!a,refetchInterval:5e3}),h=(o==null?void 0:o.total)??0,m=Math.floor(r/tr)+1,p=Math.max(1,Math.ceil(h/tr));return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(jr,{title:`Cache: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.jsx(Cn,{title:"Active Entries",value:h,icon:u.jsx(kl,{className:"h-4 w-4 text-muted-foreground"}),isLoading:c})}),u.jsx(lz,{entries:o==null?void 0:o.entries,isLoading:c}),h>tr&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p," (",h," total entries)"]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Xe,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-tr)),disabled:r===0,children:[u.jsx(ho,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Xe,{variant:"outline",size:"sm",onClick:()=>i(r+tr),disabled:r+tr>=h,children:["Next",u.jsx(yr,{className:"h-4 w-4"})]})]})]})]})})}function iz({executions:n,cronExpression:a,isLoading:r}){const i=(n==null?void 0:n.filter(c=>c.status==="COMPLETED").length)??0,o=(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(Cn,{title:"Schedule",value:a??"-",icon:u.jsx(kl,{className:"h-4 w-4 text-muted-foreground"}),isLoading:r}),u.jsx(Cn,{title:"Completed",value:i,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:r}),u.jsx(Cn,{title:"Failed",value:o,icon:u.jsx(Li,{className:"h-4 w-4 text-red-500"}),isLoading:r})]})}function sz({executions:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Execution History"}),u.jsx(Bt,{children:"Recent cron handler executions (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx($a,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Triggered"}),u.jsx(Re,{children:"Duration"}),u.jsx(Re,{children:"Error"}),u.jsx(Re,{children:"Completed"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Fi,{id:r.id})}),u.jsx(Me,{children:u.jsx(Dp,{status:r.status})}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.triggeredAt})}),u.jsx(Me,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Me,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Me,{children:r.completedAt?u.jsx(cn,{timestamp:r.completedAt}):"-"})]},r.id))})]}):u.jsx(ua,{children:"No cron executions yet"})})]})}function oz(){const{binding:n}=Qa(),a=n||"",{data:r,isLoading:i}=ft({queryKey:["cronExecutions",a],queryFn:()=>D5(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(jr,{title:`Cron: ${a}`}),u.jsx(iz,{executions:r==null?void 0:r.executions,cronExpression:r==null?void 0:r.cronExpression,isLoading:i}),u.jsx(sz,{executions:r==null?void 0:r.executions,isLoading:i})]})})}const nr=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(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Files"}),u.jsx(Bt,{children:"Stored files with metadata (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx($a,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"Key"}),u.jsx(Re,{children:"Size"}),u.jsx(Re,{children:"Content Type"}),u.jsx(Re,{children:"Created At"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{className:"font-mono text-sm",children:r.key}),u.jsx(Me,{className:"text-sm text-muted-foreground",children:uz(r.size)}),u.jsx(Me,{className:"font-mono text-xs text-muted-foreground",children:r.contentType}),u.jsx(Me,{className:"text-sm text-muted-foreground",children:r.createdAt})]},r.key))})]}):u.jsx(ua,{children:"No files in this storage"})})]})}function dz(){const{binding:n}=Qa(),a=n||"",[r,i]=v.useState(0),{data:o,isLoading:c}=ft({queryKey:["fileStorageEntries",a,r],queryFn:()=>B5(a,nr,r),enabled:!!a,refetchInterval:5e3}),h=(o==null?void 0:o.total)??0,m=Math.floor(r/nr)+1,p=Math.ceil(h/nr);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(jr,{title:`File Storage: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:u.jsx(Cn,{title:"Total Files",value:h})}),u.jsx(cz,{entries:o==null?void 0:o.entries,isLoading:c}),h>nr&&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(Xe,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-nr)),disabled:r===0,children:[u.jsx(ho,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Xe,{variant:"outline",size:"sm",onClick:()=>i(r+nr),disabled:r+nr>=h,children:["Next",u.jsx(yr,{className:"h-4 w-4"})]})]})]})]})})}const Fu=20;function fz({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"State Entries"}),u.jsx(Bt,{children:"Key-value entries in this state store (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx($a,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"Key"}),u.jsx(Re,{children:"Value"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{className:"font-mono text-sm",children:r.key}),u.jsx(Me,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value})]},r.key))})]}):u.jsx(ua,{children:"No entries in this state store"})})]})}function hz(){const{binding:n}=Qa(),a=n||"",[r,i]=v.useState(0),[o,c]=v.useState(""),[h,m]=v.useState(""),{data:p,isLoading:g}=ft({queryKey:["stateEntries",a,r,o],queryFn:()=>N5(a,Fu,r,o),enabled:!!a,refetchInterval:5e3}),x=(p==null?void 0:p.hasMore)??!1,y=Math.floor(r/Fu)+1,w=S=>{S.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(jr,{title:`State: ${a}`}),u.jsxs("form",{onSubmit:w,className:"flex gap-2",children:[u.jsx(f1,{placeholder:"Search by key...",value:h,onChange:S=>m(S.target.value),className:"max-w-sm"}),u.jsxs(Xe,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(hT,{className:"h-4 w-4 mr-1"}),"Search"]}),o&&u.jsx(Xe,{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||x)&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",y]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Xe,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Fu)),disabled:r===0,children:[u.jsx(ho,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Xe,{variant:"outline",size:"sm",onClick:()=>i(r+Fu),disabled:!x,children:["Next",u.jsx(yr,{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(Vb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Gb,{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(NS,{open:r,onOpenChange:i,children:[u.jsxs(CS,{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($b,{className:"h-4 w-4 shrink-0"}):u.jsx(yr,{className:"h-4 w-4 shrink-0"}),u.jsx(Sc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:o=>{o.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(_S,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(o=>u.jsx(mz,{column:o,onInsertText:a},o.name))})})]})}function vz({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:o}=ft({queryKey:["schema",n],queryFn:()=>S5(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(Xe,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>o(),disabled:i,children:u.jsx(jc,{className:pe("h-4 w-4",i&&"animate-spin")})})]}),u.jsx(C1,{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 G,te,ue,ce;const{binding:n}=Qa(),a=n||"",[r,i]=v.useState("query"),[o,c]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[x,y]=v.useState(null),[w,S]=v.useState(0),E=50,j=v.useCallback(I=>{c(ie=>ie+I)},[]),C=Zh({mutationFn:I=>b5(a,I),onSuccess:I=>{m(I),g(null)},onError:I=>{g(I instanceof Error?I.message:"Failed to execute query"),m(null)}}),_=()=>{o.trim()&&C.mutate(o)},T=ft({queryKey:["tables",a],queryFn:()=>w5(a),staleTime:0,gcTime:0,enabled:!!a}),R=ft({queryKey:["tableData",a,x,E,w],queryFn:()=>j5(a,x,E,w),staleTime:0,gcTime:0,enabled:!!a&&!!x}),D=((G=T.data)==null?void 0:G.tables)||[],L=((te=R.data)==null?void 0:te.data)||[],K=((ue=R.data)==null?void 0:ue.columns)||[],H=((ce=R.data)==null?void 0:ce.total)||0,q=I=>{y(I),S(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(uS,{value:r,onValueChange:i,children:[u.jsxs(cS,{children:[u.jsx(Js,{value:"query",children:"SQL Editor"}),u.jsx(Js,{value:"tables",children:"Tables"})]}),u.jsx(Ws,{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(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"SQL Query"}),u.jsx(Bt,{children:"Execute SQL queries against your database"})]}),u.jsxs(yt,{className:"space-y-4",children:[u.jsx("textarea",{value:o,onChange:I=>c(I.target.value),onKeyDown:I=>{(I.metaKey||I.ctrlKey)&&I.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(Xe,{onClick:_,disabled:C.isPending||!o.trim(),children:[u.jsx(Kb,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&u.jsx(gt,{className:"border-destructive/50",children:u.jsx(yt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&u.jsx(i1,{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:j})})]})}),u.jsx(Ws,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(gt,{className:"md:col-span-1",children:[u.jsxs(_t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Tt,{className:"text-base",children:"Tables"}),u.jsx(Xe,{variant:"ghost",size:"icon",onClick:()=>T.refetch(),className:"h-8 w-8",children:u.jsx(jc,{className:"h-4 w-4"})})]}),u.jsx(yt,{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(I=>u.jsxs("button",{onClick:()=>q(I.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${x===I.name?"bg-muted font-medium":""}`,children:[u.jsx(Sc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:I.name})]},I.name))})})]}),u.jsxs(gt,{className:"md:col-span-3",children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:x||"Select a Table"}),x&&u.jsxs(Bt,{children:[H," total rows"]})]}),u.jsx(yt,{children:x?R.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L.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(na,{children:[u.jsx(aa,{children:u.jsx(xt,{children:K.map(I=>u.jsx(Re,{className:"font-mono",children:I},I))})}),u.jsx(la,{children:L.map((I,ie)=>u.jsx(xt,{children:K.map(re=>u.jsx(Me,{className:"font-mono text-sm",children:gz(I[re])},re))},ie))})]})}),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,H)," of ",H]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Xe,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>S(Math.max(0,w-E)),children:[u.jsx(ho,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Xe,{variant:"outline",size:"sm",disabled:w+E>=H,onClick:()=>S(w+E),children:["Next",u.jsx(yr,{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(Cn,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(kl,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Cn,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:u.jsx(qn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Cn,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:a}),u.jsx(Cn,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:u.jsx(Li,{className:"h-4 w-4 text-red-500"}),isLoading:a}),u.jsx(Cn,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:u.jsx(sT,{className:"h-4 w-4 text-orange-500"}),isLoading:a})]})}function bz({messages:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Recent Messages"}),u.jsx(Bt,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx($a,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Payload"}),u.jsx(Re,{children:"Attempt"}),u.jsx(Re,{children:"Created"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Fi,{id:r.id})}),u.jsx(Me,{children:u.jsx(Y5,{status:r.status})}),u.jsx(Me,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),u.jsx(Me,{children:r.attempt}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(ua,{children:"No messages in this queue"})})]})}function wz(){const{binding:n}=Qa(),a=n||"",{data:r,isLoading:i}=ft({queryKey:["queueMetrics",a],queryFn:()=>C5(a),enabled:!!a,refetchInterval:5e3}),{data:o,isLoading:c}=ft({queryKey:["queueMessages",a],queryFn:()=>_5(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(jr,{title:`Queue: ${a}`}),u.jsx(xz,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(bz,{messages:o==null?void 0:o.messages,isLoading:c})]})})}function jz({status:n}){switch(n){case"COMPLETED":return u.jsx(Rl,{className:"h-5 w-5 text-green-500"});case"RUNNING":return u.jsx(qn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return u.jsx(Li,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return u.jsx(kl,{className:"h-5 w-5 text-gray-400"})}}function Sz(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 Ez({steps:n}){if(n.length===0)return u.jsx(ua,{children:"No steps recorded for this execution"});const a=n.reduce((r,i)=>r+(i.durationMs||0),0);return u.jsxs("div",{className:"space-y-4",children:[a>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:Ps(a)})]}),u.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((r,i)=>{const o=r.durationMs?r.durationMs/a*100:0;return u.jsx("div",{className:pe(Sz(r.status),"h-full transition-all",i>0&&"border-l border-background"),style:{width:`${o}%`},title:`${r.stepName}: ${Ps(r.durationMs)}`},r.id)})})]}),u.jsx("div",{className:"relative",children:n.map((r,i)=>u.jsxs("div",{className:"relative pb-6 last:pb-0",children:[i<n.length-1&&u.jsx("div",{className:pe("absolute left-[9px] top-6 w-0.5 h-full -ml-px",r.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:r.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:r.stepName}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",r.stepIndex+1,")"]})]}),u.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:Ps(r.durationMs)})]}),r.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:r.errorMessage}),r.output&&r.status==="COMPLETED"&&u.jsxs("details",{className:"mt-2",children:[u.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"View output"}),u.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r.output,null,2)})]}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:u.jsx(cn,{timestamp:r.createdAt})})]})]})]},r.id))})]})}function Nz(){const{binding:n,executionId:a}=Qa(),r=n||"",i=a||"",{data:o,isLoading:c}=ft({queryKey:["workflowExecution",r,i],queryFn:()=>R5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=o==null?void 0:o.execution,m=(o==null?void 0:o.steps)||[];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-center gap-4",children:[u.jsx(Pt,{to:`/workflows/${r}`,children:u.jsxs(Xe,{variant:"ghost",size:"sm",children:[u.jsx(D_,{className:"mr-2 h-4 w-4"}),"Back"]})}),u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",u.jsx(Fi,{id:i})]})]}),c?u.jsx($a,{}):h?u.jsxs(u.Fragment,{children:[u.jsxs(gt,{children:[u.jsx(_t,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx(Tt,{children:"Execution Details"}),u.jsx(Bt,{children:h.startedAt?u.jsxs(u.Fragment,{children:["Started ",u.jsx(cn,{timestamp:h.startedAt})]}):"Not started yet"})]}),u.jsx(Dp,{status:h.status})]})}),u.jsxs(yt,{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:Ps(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(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Steps"}),u.jsx(Bt,{children:"Workflow step execution timeline"})]}),u.jsx(yt,{children:u.jsx(Ez,{steps:m})})]})]}):u.jsx(ua,{children:"Execution not found"})]})})}const Oh=20,Cz=[{value:"",label:"All statuses"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}],_z=[{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 Tz({executions:n,isLoading:a,bindingName:r}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Recent Executions"}),u.jsx(Bt,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx($a,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Steps"}),u.jsx(Re,{children:"Duration"}),u.jsx(Re,{children:"Started"}),u.jsx(Re,{})]})}),u.jsx(la,{children:n.map(i=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Fi,{id:i.id})}),u.jsx(Me,{children:u.jsx(Dp,{status:i.status})}),u.jsx(Me,{children:u.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),u.jsx(Me,{className:"text-sm",children:Ps(i.durationMs)}),u.jsx(Me,{children:i.startedAt?u.jsx(cn,{timestamp:i.startedAt}):"-"}),u.jsx(Me,{children:u.jsx(Pt,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):u.jsx(ua,{children:"No executions for this workflow"})})]})}function Rz(){const{binding:n}=Qa(),a=n||"",[r,i]=v.useState(""),[o,c]=v.useState(""),[h,m]=v.useState(0),p=h*Oh,{data:g,isLoading:x}=ft({queryKey:["workflowExecutions",a,r,o,h],queryFn:()=>T5(a,Oh,p,r||void 0,o||void 0),enabled:!!a,refetchInterval:5e3}),y=g?Math.ceil(g.total/Oh):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(jr,{title:`Workflow: ${a}`}),u.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[u.jsx("select",{value:r,onChange:S=>{i(S.target.value),w()},className:"text-sm border rounded px-2 py-1 bg-background",children:Cz.map(S=>u.jsx("option",{value:S.value,children:S.label},S.value))}),u.jsx("select",{value:o,onChange:S=>{c(S.target.value),w()},className:"text-sm border rounded px-2 py-1 bg-background",children:_z.map(S=>u.jsx("option",{value:S.value,children:S.label},S.value))}),g&&u.jsxs("span",{className:"text-sm text-muted-foreground",children:[g.total," total"]})]}),u.jsx(Tz,{executions:g==null?void 0:g.executions,isLoading:x,bindingName:a}),y>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(S=>S-1),children:"Previous"}),u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",h+1," of ",y]}),u.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:h>=y-1,onClick:()=>m(S=>S+1),children:"Next"})]})]})})}function Mz(){const n=Ba(),{data:a,isLoading:r}=ft({queryKey:["config"],queryFn:kp,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],o=a!=null&&a.queue?Object.keys(a.queue):[],c=a!=null&&a.cache?Object.keys(a.cache):[],h=a!=null&&a.state?Object.keys(a.state):[],m=a!=null&&a.fs?Object.keys(a.fs):[],p=a!=null&&a.workflow?Object.keys(a.workflow):[],g=a!=null&&a.cron?Object.keys(a.cron):[],x=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(Pt,{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(qn,{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 w=n.pathname===`/db/${y}`;return u.jsx(Pt,{to:`/db/${y}`,children:u.jsxs(Xe,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(F_,{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(Pt,{to:"/auth",children:u.jsxs(Xe,{variant:n.pathname==="/auth"?"secondary":"ghost",className:pe("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[u.jsx(gT,{className:"mr-2 h-4 w-4"}),u.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),u.jsx(Yb,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),o.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:o.map(y=>{const w=n.pathname===`/queues/${y}`;return u.jsx(Pt,{to:`/queues/${y}`,children:u.jsxs(Xe,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(nT,{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:"Cache"}),u.jsx("div",{className:"space-y-1",children:c.map(y=>{const w=n.pathname===`/cache/${y}`;return u.jsx(Pt,{to:`/cache/${y}`,children:u.jsxs(Xe,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(eT,{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:"State"}),u.jsx("div",{className:"space-y-1",children:h.map(y=>{const w=n.pathname===`/state/${y}`;return u.jsx(Pt,{to:`/state/${y}`,children:u.jsxs(Xe,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(A_,{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:"File Storage"}),u.jsx("div",{className:"space-y-1",children:m.map(y=>{const w=n.pathname===`/fs/${y}`;return u.jsx(Pt,{to:`/fs/${y}`,children:u.jsxs(Xe,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(P_,{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:"Workflows"}),u.jsx("div",{className:"space-y-1",children:p.map(y=>{const w=n.pathname.startsWith(`/workflows/${y}`);return u.jsx(Pt,{to:`/workflows/${y}`,children:u.jsxs(Xe,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(W_,{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:"Cron"}),u.jsx("div",{className:"space-y-1",children:g.map(y=>{const w=n.pathname===`/cron/${y}`;return u.jsx(Pt,{to:`/cron/${y}`,children:u.jsxs(Xe,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(bT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),x.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:x.map(y=>{const w=n.pathname===`/timers/${y}`;return u.jsx(Pt,{to:`/timers/${y}`,children:u.jsxs(Xe,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(U_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),i.length===0&&o.length===0&&c.length===0&&h.length===0&&m.length===0&&p.length===0&&g.length===0&&x.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 Az(){const{data:n,isLoading:a}=ft({queryKey:["config"],queryFn:kp,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],o=n.cache?Object.keys(n.cache):[],c=n.state?Object.keys(n.state):[],h=n.fs?Object.keys(n.fs):[],m=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return u.jsx(Ma,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return u.jsx(Ma,{to:"/auth",replace:!0});if(i.length>0)return u.jsx(Ma,{to:`/queues/${i[0]}`,replace:!0});if(o.length>0)return u.jsx(Ma,{to:`/cache/${o[0]}`,replace:!0});if(c.length>0)return u.jsx(Ma,{to:`/state/${c[0]}`,replace:!0});if(h.length>0)return u.jsx(Ma,{to:`/fs/${h[0]}`,replace:!0});if(m.length>0)return u.jsx(Ma,{to:`/workflows/${m[0]}`,replace:!0});const p=n.cron?Object.keys(n.cron):[];if(p.length>0)return u.jsx(Ma,{to:`/cron/${p[0]}`,replace:!0});const g=n.timer?Object.keys(n.timer):[];if(g.length>0)return u.jsx(Ma,{to:`/timers/${g[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(qn,{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 kz(){return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(Mz,{}),u.jsx("main",{className:"pl-64",children:u.jsx("div",{className:"container mx-auto px-6 py-4",children:u.jsxs(KC,{children:[u.jsx(Sn,{path:"/",element:u.jsx(Az,{})}),u.jsx(Sn,{path:"/db/:binding",element:u.jsx(yz,{})}),u.jsx(Sn,{path:"/auth",element:u.jsx(nz,{})}),u.jsx(Sn,{path:"/queues/:binding",element:u.jsx(wz,{})}),u.jsx(Sn,{path:"/cache/:binding",element:u.jsx(rz,{})}),u.jsx(Sn,{path:"/state/:binding",element:u.jsx(hz,{})}),u.jsx(Sn,{path:"/fs/:binding",element:u.jsx(dz,{})}),u.jsx(Sn,{path:"/cron/:binding",element:u.jsx(oz,{})}),u.jsx(Sn,{path:"/timers/:binding",element:u.jsx(Z5,{})}),u.jsx(Sn,{path:"/workflows/:binding",element:u.jsx(Rz,{})}),u.jsx(Sn,{path:"/workflows/:binding/:executionId",element:u.jsx(Nz,{})})]})})})]})}function VS(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}VS();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",VS);const Dz=new kN({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});tC.createRoot(document.getElementById("root")).render(u.jsx(v.StrictMode,{children:u.jsx(qN,{client:Dz,children:u.jsx(v_,{children:u.jsx(kz,{})})})}));