@meetploy/emulator 1.4.0 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,319 +0,0 @@
1
- var R0=n=>{throw TypeError(n)};var If=(n,a,r)=>a.has(n)||R0("Cannot "+r);var k=(n,a,r)=>(If(n,a,"read from private field"),r?r.call(n):a.get(n)),xe=(n,a,r)=>a.has(n)?R0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),ue=(n,a,r,i)=>(If(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),Te=(n,a,r)=>(If(n,a,"access private method"),r);var bu=(n,a,r,i)=>({set _(s){ue(n,a,s,r)},get _(){return k(n,a,i)}});function CN(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const u=Object.getOwnPropertyDescriptor(i,s);u&&Object.defineProperty(n,s,u.get?u:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const h of u.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(s){if(s.ep)return;s.ep=!0;const u=r(s);fetch(s.href,u)}})();function lx(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var eh={exports:{}},Eo={};/**
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 T0;function _N(){if(T0)return Eo;T0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,s,u){var h=null;if(u!==void 0&&(h=""+u),s.key!==void 0&&(h=""+s.key),"key"in s){u={};for(var m in s)m!=="key"&&(u[m]=s[m])}else u=s;return s=u.ref,{$$typeof:n,type:i,key:h,ref:s!==void 0?s:null,props:u}}return Eo.Fragment=a,Eo.jsx=r,Eo.jsxs=r,Eo}var M0;function RN(){return M0||(M0=1,eh.exports=_N()),eh.exports}var d=RN(),yi=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(){}},Wl=typeof window>"u"||"Deno"in globalThis;function wn(){}function TN(n,a){return typeof n=="function"?n(a):n}function Eh(n){return typeof n=="number"&&n>=0&&n!==1/0}function rx(n,a){return Math.max(n+(a||0)-Date.now(),0)}function Jr(n,a){return typeof n=="function"?n(a):n}function kn(n,a){return typeof n=="function"?n(a):n}function A0(n,a){const{type:r="all",exact:i,fetchStatus:s,predicate:u,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==dm(h,a.options))return!1}else if(!Lo(a.queryKey,h))return!1}if(r!=="all"){const p=a.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||s&&s!==a.state.fetchStatus||u&&!u(a))}function k0(n,a){const{exact:r,status:i,predicate:s,mutationKey:u}=n;if(u){if(!a.options.mutationKey)return!1;if(r){if(Il(a.options.mutationKey)!==Il(u))return!1}else if(!Lo(a.options.mutationKey,u))return!1}return!(i&&a.state.status!==i||s&&!s(a))}function dm(n,a){return((a==null?void 0:a.queryKeyHashFn)||Il)(n)}function Il(n){return JSON.stringify(n,(a,r)=>Nh(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function Lo(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>Lo(n[r],a[r])):!1}function ix(n,a){if(n===a)return n;const r=D0(n)&&D0(a);if(r||Nh(n)&&Nh(a)){const i=r?n:Object.keys(n),s=i.length,u=r?a:Object.keys(a),h=u.length,m=r?[]:{};let p=0;for(let g=0;g<h;g++){const y=r?g:u[g];(!r&&i.includes(y)||r)&&n[y]===void 0&&a[y]===void 0?(m[y]=void 0,p++):(m[y]=ix(n[y],a[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return s===h&&p===s?n:m}return a}function Hu(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 D0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Nh(n){if(!O0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!O0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function O0(n){return Object.prototype.toString.call(n)==="[object Object]"}function MN(n){return new Promise(a=>{setTimeout(a,n)})}function Ch(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?ix(n,a):a}function AN(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function kN(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var fm=Symbol();function ox(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===fm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var Vl,ol,ti,Zb,DN=(Zb=class extends yi{constructor(){super();xe(this,Vl);xe(this,ol);xe(this,ti);ue(this,ti,a=>{if(!Wl&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,ol)||this.setEventListener(k(this,ti))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,ol))==null||a.call(this),ue(this,ol,void 0))}setEventListener(a){var r;ue(this,ti,a),(r=k(this,ol))==null||r.call(this),ue(this,ol,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){k(this,Vl)!==a&&(ue(this,Vl,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof k(this,Vl)=="boolean"?k(this,Vl):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},Vl=new WeakMap,ol=new WeakMap,ti=new WeakMap,Zb),hm=new DN,ni,sl,ai,Fb,ON=(Fb=class extends yi{constructor(){super();xe(this,ni,!0);xe(this,sl);xe(this,ai);ue(this,ai,a=>{if(!Wl&&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,sl)||this.setEventListener(k(this,ai))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,sl))==null||a.call(this),ue(this,sl,void 0))}setEventListener(a){var r;ue(this,ai,a),(r=k(this,sl))==null||r.call(this),ue(this,sl,a(this.setOnline.bind(this)))}setOnline(a){k(this,ni)!==a&&(ue(this,ni,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return k(this,ni)}},ni=new WeakMap,sl=new WeakMap,ai=new WeakMap,Fb),qu=new ON;function _h(){let n,a;const r=new Promise((s,u)=>{n=s,a=u});r.status="pending",r.catch(()=>{});function i(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{i({status:"fulfilled",value:s}),n(s)},r.reject=s=>{i({status:"rejected",reason:s}),a(s)},r}function zN(n){return Math.min(1e3*2**n,3e4)}function sx(n){return(n??"online")==="online"?qu.isOnline():!0}var ux=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function th(n){return n instanceof ux}function cx(n){let a=!1,r=0,i=!1,s;const u=_h(),h=S=>{var C;i||(w(new ux(S)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},g=()=>hm.isFocused()&&(n.networkMode==="always"||qu.isOnline())&&n.canRun(),y=()=>sx(n.networkMode)&&n.canRun(),b=S=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,S),s==null||s(),u.resolve(S))},w=S=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,S),s==null||s(),u.reject(S))},j=()=>new Promise(S=>{var C;s=_=>{(i||g())&&S(_)},(C=n.onPause)==null||C.call(n)}).then(()=>{var S;s=void 0,i||(S=n.onContinue)==null||S.call(n)}),E=()=>{if(i)return;let S;const C=r===0?n.initialPromise:void 0;try{S=C??n.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(b).catch(_=>{var X;if(i)return;const R=n.retry??(Wl?0:3),T=n.retryDelay??zN,D=typeof T=="function"?T(r,_):T,L=R===!0||typeof R=="number"&&r<R||typeof R=="function"&&R(r,_);if(a||!L){w(_);return}r++,(X=n.onFail)==null||X.call(n,r,_),MN(D).then(()=>g()?void 0:j()).then(()=>{a?w(_):E()})})};return{promise:u,cancel:h,continue:()=>(s==null||s(),u),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?E():j().then(E),u)}}var LN=n=>setTimeout(n,0);function UN(){let n=[],a=0,r=m=>{m()},i=m=>{m()},s=LN;const u=m=>{a?n.push(m):s(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&s(()=>{i(()=>{m.forEach(p=>{r(p)})})})};return{batch:m=>{let p;a++;try{p=m()}finally{a--,a||h()}return p},batchCalls:m=>(...p)=>{u(()=>{m(...p)})},schedule:u,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{s=m}}}var vt=UN(),Kl,Pb,dx=(Pb=class{constructor(){xe(this,Kl)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Eh(this.gcTime)&&ue(this,Kl,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Wl?1/0:300*1e3))}clearGcTimeout(){k(this,Kl)&&(clearTimeout(k(this,Kl)),ue(this,Kl,void 0))}},Kl=new WeakMap,Pb),li,ri,xn,Xl,Tt,Yo,$l,Mn,wa,Jb,HN=(Jb=class extends dx{constructor(a){super();xe(this,Mn);xe(this,li);xe(this,ri);xe(this,xn);xe(this,Xl);xe(this,Tt);xe(this,Yo);xe(this,$l);ue(this,$l,!1),ue(this,Yo,a.defaultOptions),this.setOptions(a.options),this.observers=[],ue(this,Xl,a.client),ue(this,xn,k(this,Xl).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,ue(this,li,qN(this.options)),this.state=a.state??k(this,li),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=k(this,Tt))==null?void 0:a.promise}setOptions(a){this.options={...k(this,Yo),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,xn).remove(this)}setData(a,r){const i=Ch(this.state.data,a,this.options);return Te(this,Mn,wa).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a,r){Te(this,Mn,wa).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,s;const r=(i=k(this,Tt))==null?void 0:i.promise;return(s=k(this,Tt))==null||s.cancel(a),r?r.then(wn).catch(wn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,li))}isActive(){return this.observers.some(a=>kn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===fm||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||!rx(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Tt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Tt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),k(this,xn).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,Tt)&&(k(this,$l)?k(this,Tt).cancel({revert:!0}):k(this,Tt).cancelRetry()),this.scheduleGc()),k(this,xn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,Mn,wa).call(this,{type:"invalidate"})}fetch(a,r){var p,g,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,Tt))return k(this,Tt).continueRetry(),k(this,Tt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const b=this.observers.find(w=>w.options.queryFn);b&&this.setOptions(b.options)}const i=new AbortController,s=b=>{Object.defineProperty(b,"signal",{enumerable:!0,get:()=>(ue(this,$l,!0),i.signal)})},u=()=>{const b=ox(this.options,r),w={client:k(this,Xl),queryKey:this.queryKey,meta:this.meta};return s(w),ue(this,$l,!1),this.options.persister?this.options.persister(b,w,this):b(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,Xl),state:this.state,fetchFn:u};s(h),(p=this.options.behavior)==null||p.onFetch(h,this),ue(this,ri,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&Te(this,Mn,wa).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const m=b=>{var w,j,E,S;th(b)&&b.silent||Te(this,Mn,wa).call(this,{type:"error",error:b}),th(b)||((j=(w=k(this,xn).config).onError)==null||j.call(w,b,this),(S=(E=k(this,xn).config).onSettled)==null||S.call(E,this.state.data,b,this)),this.scheduleGc()};return ue(this,Tt,cx({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:b=>{var w,j,E,S;if(b===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(b)}catch(C){m(C);return}(j=(w=k(this,xn).config).onSuccess)==null||j.call(w,b,this),(S=(E=k(this,xn).config).onSettled)==null||S.call(E,b,this.state.error,this),this.scheduleGc()},onError:m,onFail:(b,w)=>{Te(this,Mn,wa).call(this,{type:"failed",failureCount:b,error:w})},onPause:()=>{Te(this,Mn,wa).call(this,{type:"pause"})},onContinue:()=>{Te(this,Mn,wa).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),k(this,Tt).start()}},li=new WeakMap,ri=new WeakMap,xn=new WeakMap,Xl=new WeakMap,Tt=new WeakMap,Yo=new WeakMap,$l=new WeakMap,Mn=new WeakSet,wa=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,...fx(i.data,this.options),fetchMeta:a.meta??null};case"success":return{...i,data:a.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=a.error;return th(s)&&s.revert&&k(this,ri)?{...k(this,ri),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),vt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),k(this,xn).notify({query:this,type:"updated",action:a})})},Jb);function fx(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:sx(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function qN(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 Gn,Wb,BN=(Wb=class extends yi{constructor(a={}){super();xe(this,Gn);this.config=a,ue(this,Gn,new Map)}build(a,r,i){const s=r.queryKey,u=r.queryHash??dm(s,r);let h=this.get(u);return h||(h=new HN({client:a,queryKey:s,queryHash:u,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(s)}),this.add(h)),h}add(a){k(this,Gn).has(a.queryHash)||(k(this,Gn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=k(this,Gn).get(a.queryHash);r&&(a.destroy(),r===a&&k(this,Gn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){vt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return k(this,Gn).get(a)}getAll(){return[...k(this,Gn).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>A0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>A0(a,i)):r}notify(a){vt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){vt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){vt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Gn=new WeakMap,Wb),Vn,Ot,Zl,Kn,rl,Ib,QN=(Ib=class extends dx{constructor(a){super();xe(this,Kn);xe(this,Vn);xe(this,Ot);xe(this,Zl);this.mutationId=a.mutationId,ue(this,Ot,a.mutationCache),ue(this,Vn,[]),this.state=a.state||hx(),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,Vn).includes(a)||(k(this,Vn).push(a),this.clearGcTimeout(),k(this,Ot).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){ue(this,Vn,k(this,Vn).filter(r=>r!==a)),this.scheduleGc(),k(this,Ot).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){k(this,Vn).length||(this.state.status==="pending"?this.scheduleGc():k(this,Ot).remove(this))}continue(){var a;return((a=k(this,Zl))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var u,h,m,p,g,y,b,w,j,E,S,C,_,R,T,D,L,X,q,H;const r=()=>{Te(this,Kn,rl).call(this,{type:"continue"})};ue(this,Zl,cx({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(G,te)=>{Te(this,Kn,rl).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{Te(this,Kn,rl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,Ot).canRun(this)}));const i=this.state.status==="pending",s=!k(this,Zl).canStart();try{if(i)r();else{Te(this,Kn,rl).call(this,{type:"pending",variables:a,isPaused:s}),await((h=(u=k(this,Ot).config).onMutate)==null?void 0:h.call(u,a,this));const te=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,a));te!==this.state.context&&Te(this,Kn,rl).call(this,{type:"pending",context:te,variables:a,isPaused:s})}const G=await k(this,Zl).start();return await((y=(g=k(this,Ot).config).onSuccess)==null?void 0:y.call(g,G,a,this.state.context,this)),await((w=(b=this.options).onSuccess)==null?void 0:w.call(b,G,a,this.state.context)),await((E=(j=k(this,Ot).config).onSettled)==null?void 0:E.call(j,G,null,this.state.variables,this.state.context,this)),await((C=(S=this.options).onSettled)==null?void 0:C.call(S,G,null,a,this.state.context)),Te(this,Kn,rl).call(this,{type:"success",data:G}),G}catch(G){try{throw await((R=(_=k(this,Ot).config).onError)==null?void 0:R.call(_,G,a,this.state.context,this)),await((D=(T=this.options).onError)==null?void 0:D.call(T,G,a,this.state.context)),await((X=(L=k(this,Ot).config).onSettled)==null?void 0:X.call(L,void 0,G,this.state.variables,this.state.context,this)),await((H=(q=this.options).onSettled)==null?void 0:H.call(q,void 0,G,a,this.state.context)),G}finally{Te(this,Kn,rl).call(this,{type:"error",error:G})}}finally{k(this,Ot).runNext(this)}}},Vn=new WeakMap,Ot=new WeakMap,Zl=new WeakMap,Kn=new WeakSet,rl=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),vt.batch(()=>{k(this,Vn).forEach(i=>{i.onMutationUpdate(a)}),k(this,Ot).notify({mutation:this,type:"updated",action:a})})},Ib);function hx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Sa,An,Go,ex,YN=(ex=class extends yi{constructor(a={}){super();xe(this,Sa);xe(this,An);xe(this,Go);this.config=a,ue(this,Sa,new Set),ue(this,An,new Map),ue(this,Go,0)}build(a,r,i){const s=new QN({mutationCache:this,mutationId:++bu(this,Go)._,options:a.defaultMutationOptions(r),state:i});return this.add(s),s}add(a){k(this,Sa).add(a);const r=xu(a);if(typeof r=="string"){const i=k(this,An).get(r);i?i.push(a):k(this,An).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(k(this,Sa).delete(a)){const r=xu(a);if(typeof r=="string"){const i=k(this,An).get(r);if(i)if(i.length>1){const s=i.indexOf(a);s!==-1&&i.splice(s,1)}else i[0]===a&&k(this,An).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=xu(a);if(typeof r=="string"){const i=k(this,An).get(r),s=i==null?void 0:i.find(u=>u.state.status==="pending");return!s||s===a}else return!0}runNext(a){var i;const r=xu(a);if(typeof r=="string"){const s=(i=k(this,An).get(r))==null?void 0:i.find(u=>u!==a&&u.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){vt.batch(()=>{k(this,Sa).forEach(a=>{this.notify({type:"removed",mutation:a})}),k(this,Sa).clear(),k(this,An).clear()})}getAll(){return Array.from(k(this,Sa))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>k0(r,i))}findAll(a={}){return this.getAll().filter(r=>k0(a,r))}notify(a){vt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return vt.batch(()=>Promise.all(a.map(r=>r.continue().catch(wn))))}},Sa=new WeakMap,An=new WeakMap,Go=new WeakMap,ex);function xu(n){var a;return(a=n.options.scope)==null?void 0:a.id}function z0(n){return{onFetch:(a,r)=>{var y,b,w,j,E;const i=a.options,s=(w=(b=(y=a.fetchOptions)==null?void 0:y.meta)==null?void 0:b.fetchMore)==null?void 0:w.direction,u=((j=a.state.data)==null?void 0:j.pages)||[],h=((E=a.state.data)==null?void 0:E.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let S=!1;const C=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(a.signal.aborted?S=!0:a.signal.addEventListener("abort",()=>{S=!0}),a.signal)})},_=ox(a.options,a.fetchOptions),R=async(T,D,L)=>{if(S)return Promise.reject();if(D==null&&T.pages.length)return Promise.resolve(T);const X={client:a.client,queryKey:a.queryKey,pageParam:D,direction:L?"backward":"forward",meta:a.options.meta};C(X);const q=await _(X),{maxPages:H}=a.options,G=L?kN:AN;return{pages:G(T.pages,q,H),pageParams:G(T.pageParams,D,H)}};if(s&&u.length){const T=s==="backward",D=T?GN:L0,L={pages:u,pageParams:h},X=D(i,L);m=await R(L,X,T)}else{const T=n??u.length;do{const D=p===0?h[0]??i.initialPageParam:L0(i,m);if(p>0&&D==null)break;m=await R(m,D),p++}while(p<T)}return m};a.options.persister?a.fetchFn=()=>{var S,C;return(C=(S=a.options).persister)==null?void 0:C.call(S,g,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=g}}}function L0(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 GN(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 at,ul,cl,ii,oi,dl,si,ui,tx,VN=(tx=class{constructor(n={}){xe(this,at);xe(this,ul);xe(this,cl);xe(this,ii);xe(this,oi);xe(this,dl);xe(this,si);xe(this,ui);ue(this,at,n.queryCache||new BN),ue(this,ul,n.mutationCache||new YN),ue(this,cl,n.defaultOptions||{}),ue(this,ii,new Map),ue(this,oi,new Map),ue(this,dl,0)}mount(){bu(this,dl)._++,k(this,dl)===1&&(ue(this,si,hm.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,at).onFocus())})),ue(this,ui,qu.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,at).onOnline())})))}unmount(){var n,a;bu(this,dl)._--,k(this,dl)===0&&((n=k(this,si))==null||n.call(this),ue(this,si,void 0),(a=k(this,ui))==null||a.call(this),ue(this,ui,void 0))}isFetching(n){return k(this,at).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return k(this,ul).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,at).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=k(this,at).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(Jr(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return k(this,at).findAll(n).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(n,a,r){const i=this.defaultQueryOptions({queryKey:n}),s=k(this,at).get(i.queryHash),u=s==null?void 0:s.state.data,h=TN(a,u);if(h!==void 0)return k(this,at).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return vt.batch(()=>k(this,at).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,at).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=k(this,at);vt.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=k(this,at);return vt.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=vt.batch(()=>k(this,at).findAll(n).map(s=>s.cancel(r)));return Promise.all(i).then(wn).catch(wn)}invalidateQueries(n,a={}){return vt.batch(()=>(k(this,at).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=vt.batch(()=>k(this,at).findAll(n).filter(s=>!s.isDisabled()).map(s=>{let u=s.fetch(void 0,r);return r.throwOnError||(u=u.catch(wn)),s.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(i).then(wn)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=k(this,at).build(this,a);return r.isStaleByTime(Jr(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(wn).catch(wn)}fetchInfiniteQuery(n){return n.behavior=z0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(wn).catch(wn)}ensureInfiniteQueryData(n){return n.behavior=z0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return qu.isOnline()?k(this,ul).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,at)}getMutationCache(){return k(this,ul)}getDefaultOptions(){return k(this,cl)}setDefaultOptions(n){ue(this,cl,n)}setQueryDefaults(n,a){k(this,ii).set(Il(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...k(this,ii).values()],r={};return a.forEach(i=>{Lo(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){k(this,oi).set(Il(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...k(this,oi).values()],r={};return a.forEach(i=>{Lo(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...k(this,cl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=dm(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===fm&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...k(this,cl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){k(this,at).clear(),k(this,ul).clear()}},at=new WeakMap,ul=new WeakMap,cl=new WeakMap,ii=new WeakMap,oi=new WeakMap,dl=new WeakMap,si=new WeakMap,ui=new WeakMap,tx),Vt,Le,Vo,zt,Fl,ci,fl,hl,Ko,di,fi,Pl,Jl,ml,hi,Qe,To,Rh,Th,Mh,Ah,kh,Dh,Oh,mx,nx,KN=(nx=class extends yi{constructor(a,r){super();xe(this,Qe);xe(this,Vt);xe(this,Le);xe(this,Vo);xe(this,zt);xe(this,Fl);xe(this,ci);xe(this,fl);xe(this,hl);xe(this,Ko);xe(this,di);xe(this,fi);xe(this,Pl);xe(this,Jl);xe(this,ml);xe(this,hi,new Set);this.options=r,ue(this,Vt,a),ue(this,hl,null),ue(this,fl,_h()),this.options.experimental_prefetchInRender||k(this,fl).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,Le).addObserver(this),U0(k(this,Le),this.options)?Te(this,Qe,To).call(this):this.updateResult(),Te(this,Qe,Ah).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return zh(k(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return zh(k(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Qe,kh).call(this),Te(this,Qe,Dh).call(this),k(this,Le).removeObserver(this)}setOptions(a){const r=this.options,i=k(this,Le);if(this.options=k(this,Vt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof kn(this.options.enabled,k(this,Le))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Te(this,Qe,Oh).call(this),k(this,Le).setOptions(this.options),r._defaulted&&!Hu(this.options,r)&&k(this,Vt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Le),observer:this});const s=this.hasListeners();s&&H0(k(this,Le),i,this.options,r)&&Te(this,Qe,To).call(this),this.updateResult(),s&&(k(this,Le)!==i||kn(this.options.enabled,k(this,Le))!==kn(r.enabled,k(this,Le))||Jr(this.options.staleTime,k(this,Le))!==Jr(r.staleTime,k(this,Le)))&&Te(this,Qe,Rh).call(this);const u=Te(this,Qe,Th).call(this);s&&(k(this,Le)!==i||kn(this.options.enabled,k(this,Le))!==kn(r.enabled,k(this,Le))||u!==k(this,ml))&&Te(this,Qe,Mh).call(this,u)}getOptimisticResult(a){const r=k(this,Vt).getQueryCache().build(k(this,Vt),a),i=this.createResult(r,a);return $N(this,i)&&(ue(this,zt,i),ue(this,ci,this.options),ue(this,Fl,k(this,Le).state)),i}getCurrentResult(){return k(this,zt)}trackResult(a,r){const i={};return Object.keys(a).forEach(s=>{Object.defineProperty(i,s,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(s),r==null||r(s),a[s])})}),i}trackProp(a){k(this,hi).add(a)}getCurrentQuery(){return k(this,Le)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=k(this,Vt).defaultQueryOptions(a),i=k(this,Vt).getQueryCache().build(k(this,Vt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Te(this,Qe,To).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,zt)))}createResult(a,r){var G;const i=k(this,Le),s=this.options,u=k(this,zt),h=k(this,Fl),m=k(this,ci),g=a!==i?a.state:k(this,Vo),{state:y}=a;let b={...y},w=!1,j;if(r._optimisticResults){const te=this.hasListeners(),ce=!te&&U0(a,r),de=te&&H0(a,i,r,s);(ce||de)&&(b={...b,...fx(y.data,a.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:E,errorUpdatedAt:S,status:C}=b;j=b.data;let _=!1;if(r.placeholderData!==void 0&&j===void 0&&C==="pending"){let te;u!=null&&u.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(te=u.data,_=!0):te=typeof r.placeholderData=="function"?r.placeholderData((G=k(this,fi))==null?void 0:G.state.data,k(this,fi)):r.placeholderData,te!==void 0&&(C="success",j=Ch(u==null?void 0:u.data,te,r),w=!0)}if(r.select&&j!==void 0&&!_)if(u&&j===(h==null?void 0:h.data)&&r.select===k(this,Ko))j=k(this,di);else try{ue(this,Ko,r.select),j=r.select(j),j=Ch(u==null?void 0:u.data,j,r),ue(this,di,j),ue(this,hl,null)}catch(te){ue(this,hl,te)}k(this,hl)&&(E=k(this,hl),j=k(this,di),S=Date.now(),C="error");const R=b.fetchStatus==="fetching",T=C==="pending",D=C==="error",L=T&&R,X=j!==void 0,H={status:C,fetchStatus:b.fetchStatus,isPending:T,isSuccess:C==="success",isError:D,isInitialLoading:L,isLoading:L,data:j,dataUpdatedAt:b.dataUpdatedAt,error:E,errorUpdatedAt:S,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>g.dataUpdateCount||b.errorUpdateCount>g.errorUpdateCount,isFetching:R,isRefetching:R&&!T,isLoadingError:D&&!X,isPaused:b.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:D&&X,isStale:mm(a,r),refetch:this.refetch,promise:k(this,fl)};if(this.options.experimental_prefetchInRender){const te=I=>{H.status==="error"?I.reject(H.error):H.data!==void 0&&I.resolve(H.data)},ce=()=>{const I=ue(this,fl,H.promise=_h());te(I)},de=k(this,fl);switch(de.status){case"pending":a.queryHash===i.queryHash&&te(de);break;case"fulfilled":(H.status==="error"||H.data!==de.value)&&ce();break;case"rejected":(H.status!=="error"||H.error!==de.reason)&&ce();break}}return H}updateResult(){const a=k(this,zt),r=this.createResult(k(this,Le),this.options);if(ue(this,Fl,k(this,Le).state),ue(this,ci,this.options),k(this,Fl).data!==void 0&&ue(this,fi,k(this,Le)),Hu(r,a))return;ue(this,zt,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:s}=this.options,u=typeof s=="function"?s():s;if(u==="all"||!u&&!k(this,hi).size)return!0;const h=new Set(u??k(this,hi));return this.options.throwOnError&&h.add("error"),Object.keys(k(this,zt)).some(m=>{const p=m;return k(this,zt)[p]!==a[p]&&h.has(p)})};Te(this,Qe,mx).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Qe,Ah).call(this)}},Vt=new WeakMap,Le=new WeakMap,Vo=new WeakMap,zt=new WeakMap,Fl=new WeakMap,ci=new WeakMap,fl=new WeakMap,hl=new WeakMap,Ko=new WeakMap,di=new WeakMap,fi=new WeakMap,Pl=new WeakMap,Jl=new WeakMap,ml=new WeakMap,hi=new WeakMap,Qe=new WeakSet,To=function(a){Te(this,Qe,Oh).call(this);let r=k(this,Le).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(wn)),r},Rh=function(){Te(this,Qe,kh).call(this);const a=Jr(this.options.staleTime,k(this,Le));if(Wl||k(this,zt).isStale||!Eh(a))return;const i=rx(k(this,zt).dataUpdatedAt,a)+1;ue(this,Pl,setTimeout(()=>{k(this,zt).isStale||this.updateResult()},i))},Th=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Le)):this.options.refetchInterval)??!1},Mh=function(a){Te(this,Qe,Dh).call(this),ue(this,ml,a),!(Wl||kn(this.options.enabled,k(this,Le))===!1||!Eh(k(this,ml))||k(this,ml)===0)&&ue(this,Jl,setInterval(()=>{(this.options.refetchIntervalInBackground||hm.isFocused())&&Te(this,Qe,To).call(this)},k(this,ml)))},Ah=function(){Te(this,Qe,Rh).call(this),Te(this,Qe,Mh).call(this,Te(this,Qe,Th).call(this))},kh=function(){k(this,Pl)&&(clearTimeout(k(this,Pl)),ue(this,Pl,void 0))},Dh=function(){k(this,Jl)&&(clearInterval(k(this,Jl)),ue(this,Jl,void 0))},Oh=function(){const a=k(this,Vt).getQueryCache().build(k(this,Vt),this.options);if(a===k(this,Le))return;const r=k(this,Le);ue(this,Le,a),ue(this,Vo,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},mx=function(a){vt.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(k(this,zt))}),k(this,Vt).getQueryCache().notify({query:k(this,Le),type:"observerResultsUpdated"})})},nx);function XN(n,a){return kn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function U0(n,a){return XN(n,a)||n.state.data!==void 0&&zh(n,a,a.refetchOnMount)}function zh(n,a,r){if(kn(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&mm(n,a)}return!1}function H0(n,a,r,i){return(n!==a||kn(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&mm(n,r)}function mm(n,a){return kn(a.enabled,n)!==!1&&n.isStaleByTime(Jr(a.staleTime,n))}function $N(n,a){return!Hu(n.getCurrentResult(),a)}var pl,vl,Kt,ja,_a,Au,Lh,ax,ZN=(ax=class extends yi{constructor(r,i){super();xe(this,_a);xe(this,pl);xe(this,vl);xe(this,Kt);xe(this,ja);ue(this,pl,r),this.setOptions(i),this.bindMethods(),Te(this,_a,Au).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const i=this.options;this.options=k(this,pl).defaultMutationOptions(r),Hu(this.options,i)||k(this,pl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Kt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&Il(i.mutationKey)!==Il(this.options.mutationKey)?this.reset():((s=k(this,Kt))==null?void 0:s.state.status)==="pending"&&k(this,Kt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Kt))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,_a,Au).call(this),Te(this,_a,Lh).call(this,r)}getCurrentResult(){return k(this,vl)}reset(){var r;(r=k(this,Kt))==null||r.removeObserver(this),ue(this,Kt,void 0),Te(this,_a,Au).call(this),Te(this,_a,Lh).call(this)}mutate(r,i){var s;return ue(this,ja,i),(s=k(this,Kt))==null||s.removeObserver(this),ue(this,Kt,k(this,pl).getMutationCache().build(k(this,pl),this.options)),k(this,Kt).addObserver(this),k(this,Kt).execute(r)}},pl=new WeakMap,vl=new WeakMap,Kt=new WeakMap,ja=new WeakMap,_a=new WeakSet,Au=function(){var i;const r=((i=k(this,Kt))==null?void 0:i.state)??hx();ue(this,vl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Lh=function(r){vt.batch(()=>{var i,s,u,h,m,p,g,y;if(k(this,ja)&&this.hasListeners()){const b=k(this,vl).variables,w=k(this,vl).context;(r==null?void 0:r.type)==="success"?((s=(i=k(this,ja)).onSuccess)==null||s.call(i,r.data,b,w),(h=(u=k(this,ja)).onSettled)==null||h.call(u,r.data,null,b,w)):(r==null?void 0:r.type)==="error"&&((p=(m=k(this,ja)).onError)==null||p.call(m,r.error,b,w),(y=(g=k(this,ja)).onSettled)==null||y.call(g,void 0,r.error,b,w))}this.listeners.forEach(b=>{b(k(this,vl))})})},ax),nh={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 q0;function FN(){if(q0)return Ce;q0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),w=Symbol.iterator;function j(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function _(A,Z,ee){this.props=A,this.context=Z,this.refs=C,this.updater=ee||E}_.prototype.isReactComponent={},_.prototype.setState=function(A,Z){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,Z,"setState")},_.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=_.prototype;function T(A,Z,ee){this.props=A,this.context=Z,this.refs=C,this.updater=ee||E}var D=T.prototype=new R;D.constructor=T,S(D,_.prototype),D.isPureReactComponent=!0;var L=Array.isArray;function X(){}var q={H:null,A:null,T:null,S:null},H=Object.prototype.hasOwnProperty;function G(A,Z,ee){var le=ee.ref;return{$$typeof:n,type:A,key:Z,ref:le!==void 0?le:null,props:ee}}function te(A,Z){return G(A.type,Z,A.props)}function ce(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function de(A){var Z={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return Z[ee]})}var I=/\/+/g;function ie(A,Z){return typeof A=="object"&&A!==null&&A.key!=null?de(""+A.key):Z.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(X,X):(A.status="pending",A.then(function(Z){A.status==="pending"&&(A.status="fulfilled",A.value=Z)},function(Z){A.status==="pending"&&(A.status="rejected",A.reason=Z)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,Z,ee,le,ve){var je=typeof A;(je==="undefined"||je==="boolean")&&(A=null);var ne=!1;if(A===null)ne=!0;else switch(je){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(A.$$typeof){case n:case a:ne=!0;break;case y:return ne=A._init,U(ne(A._payload),Z,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,Z,ee,"",function(Ne){return Ne})):ve!=null&&(ce(ve)&&(ve=te(ve,ee+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(I,"$&/")+"/")+ne)),Z.push(ve)),1;ne=0;var Ee=le===""?".":le+":";if(L(A))for(var ye=0;ye<A.length;ye++)le=A[ye],je=Ee+ie(le,ye),ne+=U(le,Z,ee,je,ve);else if(ye=j(A),typeof ye=="function")for(A=ye.call(A),ye=0;!(le=A.next()).done;)le=le.value,je=Ee+ie(le,ye++),ne+=U(le,Z,ee,je,ve);else if(je==="object"){if(typeof A.then=="function")return U(re(A),Z,ee,le,ve);throw Z=String(A),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return ne}function W(A,Z,ee){if(A==null)return A;var le=[],ve=0;return U(A,le,"","",function(je){return Z.call(ee,je,ve++)}),le}function V(A){if(A._status===-1){var Z=A._result;Z=Z(),Z.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=Z)}if(A._status===1)return A._result.default;throw A._result}var $=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=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(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},fe={map:W,forEach:function(A,Z,ee){W(A,function(){Z.apply(this,arguments)},ee)},count:function(A){var Z=0;return W(A,function(){Z++}),Z},toArray:function(A){return W(A,function(Z){return Z})||[]},only:function(A){if(!ce(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=b,Ce.Children=fe,Ce.Component=_,Ce.Fragment=r,Ce.Profiler=s,Ce.PureComponent=T,Ce.StrictMode=i,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return q.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,Z,ee){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var le=S({},A.props),ve=A.key;if(Z!=null)for(je in Z.key!==void 0&&(ve=""+Z.key),Z)!H.call(Z,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&Z.ref===void 0||(le[je]=Z[je]);var je=arguments.length-2;if(je===1)le.children=ee;else if(1<je){for(var ne=Array(je),Ee=0;Ee<je;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:u,_context:A},A},Ce.createElement=function(A,Z,ee){var le,ve={},je=null;if(Z!=null)for(le in Z.key!==void 0&&(je=""+Z.key),Z)H.call(Z,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=Z[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,je,ve)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:m,render:A}},Ce.isValidElement=ce,Ce.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:V}},Ce.memo=function(A,Z){return{$$typeof:g,type:A,compare:Z===void 0?null:Z}},Ce.startTransition=function(A){var Z=q.T,ee={};q.T=ee;try{var le=A(),ve=q.S;ve!==null&&ve(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(X,$)}catch(je){$(je)}finally{Z!==null&&ee.types!==null&&(Z.types=ee.types),q.T=Z}},Ce.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ce.use=function(A){return q.H.use(A)},Ce.useActionState=function(A,Z,ee){return q.H.useActionState(A,Z,ee)},Ce.useCallback=function(A,Z){return q.H.useCallback(A,Z)},Ce.useContext=function(A){return q.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,Z){return q.H.useDeferredValue(A,Z)},Ce.useEffect=function(A,Z){return q.H.useEffect(A,Z)},Ce.useEffectEvent=function(A){return q.H.useEffectEvent(A)},Ce.useId=function(){return q.H.useId()},Ce.useImperativeHandle=function(A,Z,ee){return q.H.useImperativeHandle(A,Z,ee)},Ce.useInsertionEffect=function(A,Z){return q.H.useInsertionEffect(A,Z)},Ce.useLayoutEffect=function(A,Z){return q.H.useLayoutEffect(A,Z)},Ce.useMemo=function(A,Z){return q.H.useMemo(A,Z)},Ce.useOptimistic=function(A,Z){return q.H.useOptimistic(A,Z)},Ce.useReducer=function(A,Z,ee){return q.H.useReducer(A,Z,ee)},Ce.useRef=function(A){return q.H.useRef(A)},Ce.useState=function(A){return q.H.useState(A)},Ce.useSyncExternalStore=function(A,Z,ee){return q.H.useSyncExternalStore(A,Z,ee)},Ce.useTransition=function(){return q.H.useTransition()},Ce.version="19.2.3",Ce}var B0;function pm(){return B0||(B0=1,nh.exports=FN()),nh.exports}var v=pm();const lt=lx(v),px=CN({__proto__:null,default:lt},[v]);var vx=v.createContext(void 0),vm=n=>{const a=v.useContext(vx);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},PN=({client:n,children:a})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(vx.Provider,{value:n,children:a})),gx=v.createContext(!1),JN=()=>v.useContext(gx);gx.Provider;function WN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var IN=v.createContext(WN()),eC=()=>v.useContext(IN);function yx(n,a){return typeof n=="function"?n(...a):!!n}function Uh(){}var tC=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},nC=n=>{v.useEffect(()=>{n.clearReset()},[n])},aC=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:s})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(s&&n.data===void 0||yx(r,[n.error,i])),lC=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)))},rC=(n,a)=>n.isLoading&&n.isFetching&&!a,iC=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,Q0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function oC(n,a,r){var b,w,j,E,S;const i=vm(),s=JN(),u=eC(),h=i.defaultQueryOptions(n);(w=(b=i.getDefaultOptions().queries)==null?void 0:b._experimental_beforeQuery)==null||w.call(b,h),h._optimisticResults=s?"isRestoring":"optimistic",lC(h),tC(h,u),nC(u);const m=!i.getQueryCache().get(h.queryHash),[p]=v.useState(()=>new a(i,h)),g=p.getOptimisticResult(h),y=!s&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(C=>{const _=y?p.subscribe(vt.batchCalls(C)):Uh;return p.updateResult(),_},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),iC(h,g))throw Q0(h,p,u);if(aC({result:g,errorResetBoundary:u,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((E=(j=i.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||E.call(j,h,g),h.experimental_prefetchInRender&&!Wl&&rC(g,s)){const C=m?Q0(h,p,u):(S=i.getQueryCache().get(h.queryHash))==null?void 0:S.promise;C==null||C.catch(Uh).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function Xt(n,a){return oC(n,KN)}function Hh(n,a){const r=vm(),[i]=v.useState(()=>new ZN(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const s=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(vt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),u=v.useCallback((h,m)=>{i.mutate(h,m).catch(Uh)},[i]);if(s.error&&yx(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:u,mutateAsync:s.mutate}}var ah={exports:{}},No={},lh={exports:{}},rh={};/**
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 Y0;function sC(){return Y0||(Y0=1,(function(n){function a(U,W){var V=U.length;U.push(W);e:for(;0<V;){var $=V-1>>>1,fe=U[$];if(0<s(fe,W))U[$]=W,U[V]=fe,V=$;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],V=U.pop();if(V!==W){U[0]=V;e:for(var $=0,fe=U.length,A=fe>>>1;$<A;){var Z=2*($+1)-1,ee=U[Z],le=Z+1,ve=U[le];if(0>s(ee,V))le<fe&&0>s(ve,ee)?(U[$]=ve,U[le]=V,$=le):(U[$]=ee,U[Z]=V,$=Z);else if(le<fe&&0>s(ve,V))U[$]=ve,U[le]=V,$=le;else break e}}return W}function s(U,W){var V=U.sortIndex-W.sortIndex;return V!==0?V:U.id-W.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;n.unstable_now=function(){return u.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],y=1,b=null,w=3,j=!1,E=!1,S=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,R=typeof clearTimeout=="function"?clearTimeout:null,T=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(S=!1,D(U),!E)if(r(p)!==null)E=!0,X||(X=!0,de());else{var W=r(g);W!==null&&re(L,W.startTime-U)}}var X=!1,q=-1,H=5,G=-1;function te(){return C?!0:!(n.unstable_now()-G<H)}function ce(){if(C=!1,X){var U=n.unstable_now();G=U;var W=!0;try{e:{E=!1,S&&(S=!1,R(q),q=-1),j=!0;var V=w;try{t:{for(D(U),b=r(p);b!==null&&!(b.expirationTime>U&&te());){var $=b.callback;if(typeof $=="function"){b.callback=null,w=b.priorityLevel;var fe=$(b.expirationTime<=U);if(U=n.unstable_now(),typeof fe=="function"){b.callback=fe,D(U),W=!0;break t}b===r(p)&&i(p),D(U)}else i(p);b=r(p)}if(b!==null)W=!0;else{var A=r(g);A!==null&&re(L,A.startTime-U),W=!1}}break e}finally{b=null,w=V,j=!1}W=void 0}}finally{W?de():X=!1}}}var de;if(typeof T=="function")de=function(){T(ce)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,ie=I.port2;I.port1.onmessage=ce,de=function(){ie.postMessage(null)}}else de=function(){_(ce,0)};function re(U,W){q=_(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"):H=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 V=w;w=W;try{return U()}finally{w=V}},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 V=w;w=U;try{return W()}finally{w=V}},n.unstable_scheduleCallback=function(U,W,V){var $=n.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?$+V:$):V=$,U){case 1:var fe=-1;break;case 2:fe=250;break;case 5:fe=1073741823;break;case 4:fe=1e4;break;default:fe=5e3}return fe=V+fe,U={id:y++,callback:W,priorityLevel:U,startTime:V,expirationTime:fe,sortIndex:-1},V>$?(U.sortIndex=V,a(g,U),r(p)===null&&U===r(g)&&(S?(R(q),q=-1):S=!0,re(L,V-$))):(U.sortIndex=fe,a(p,U),E||j||(E=!0,X||(X=!0,de()))),U},n.unstable_shouldYield=te,n.unstable_wrapCallback=function(U){var W=w;return function(){var V=w;w=W;try{return U.apply(this,arguments)}finally{w=V}}}})(rh)),rh}var G0;function uC(){return G0||(G0=1,lh.exports=sC()),lh.exports}var ih={exports:{}},Rt={};/**
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 V0;function cC(){if(V0)return Rt;V0=1;var n=pm();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(p,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:b==null?null:""+b,children:p,containerInfo:g,implementation:y}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Rt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return u(p,g,null,y)},Rt.flushSync=function(p){var g=h.T,y=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=g,i.p=y,i.d.f()}},Rt.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))},Rt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},Rt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:w,fetchPriority:j}):y==="script"&&i.d.X(p,{crossOrigin:b,integrity:w,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Rt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},Rt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin);i.d.L(p,y,{crossOrigin:b,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})}},Rt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},Rt.requestFormReset=function(p){i.d.r(p)},Rt.unstable_batchedUpdates=function(p,g){return p(g)},Rt.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},Rt.useFormStatus=function(){return h.H.useHostTransitionStatus()},Rt.version="19.2.3",Rt}var K0;function bx(){if(K0)return ih.exports;K0=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(),ih.exports=cC(),ih.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 X0;function dC(){if(X0)return No;X0=1;var n=uC(),a=pm(),r=bx();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(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(u(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=u(e),t===null)throw Error(i(188));return t!==e?null:e}for(var l=e,o=t;;){var c=l.return;if(c===null)break;var f=c.alternate;if(f===null){if(o=c.return,o!==null){l=o;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===l)return p(c),e;if(f===o)return p(c),t;f=f.sibling}throw Error(i(188))}if(l.return!==o.return)l=c,o=f;else{for(var x=!1,N=c.child;N;){if(N===l){x=!0,l=c,o=f;break}if(N===o){x=!0,o=c,l=f;break}N=N.sibling}if(!x){for(N=f.child;N;){if(N===l){x=!0,l=f,o=c;break}if(N===o){x=!0,o=f,l=c;break}N=N.sibling}if(!x)throw Error(i(189))}}if(l.alternate!==o)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,w=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),ce=Symbol.iterator;function de(e){return e===null||typeof e!="object"?null:(e=ce&&e[ce]||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 S:return"Fragment";case _:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case X:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case T:return e.displayName||"Context";case R:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case H: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,V={pending:!1,data:null,method:null,action:null},$=[],fe=-1;function A(e){return{current:e}}function Z(e){0>fe||(e.current=$[fe],$[fe]=null,fe--)}function ee(e,t){fe++,$[fe]=e.current,e.current=t}var le=A(null),ve=A(null),je=A(null),ne=A(null);function Ee(e,t){switch(ee(je,t),ee(ve,e),ee(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Jy(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Jy(t),e=Wy(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(le),ee(le,e)}function ye(){Z(le),Z(ve),Z(je)}function Ne(e){e.memoizedState!==null&&ee(ne,e);var t=le.current,l=Wy(t,e.type);t!==l&&(ee(ve,e),ee(le,l))}function Ue(e){ve.current===e&&(Z(le),Z(ve)),ne.current===e&&(Z(ne),xo._currentValue=V)}var Ye,_t;function Zt(e){if(Ye===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ye=t&&t[1]||"",_t=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Ye+e+_t}var ea=!1;function ta(e,t){if(!e||ea)return"";ea=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={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(K){var Y=K}Reflect.construct(e,[],J)}else{try{J.call()}catch(K){Y=K}e.call(J.prototype)}}else{try{throw Error()}catch(K){Y=K}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(K){if(K&&Y&&typeof K.stack=="string")return[K.stack,Y.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),x=f[0],N=f[1];if(x&&N){var M=x.split(`
44
- `),Q=N.split(`
45
- `);for(c=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;c<Q.length&&!Q[c].includes("DetermineComponentFrameRoot");)c++;if(o===M.length||c===Q.length)for(o=M.length-1,c=Q.length-1;1<=o&&0<=c&&M[o]!==Q[c];)c--;for(;1<=o&&0<=c;o--,c--)if(M[o]!==Q[c]){if(o!==1||c!==1)do if(o--,c--,0>c||M[o]!==Q[c]){var F=`
46
- `+M[o].replace(" at new "," at ");return e.displayName&&F.includes("<anonymous>")&&(F=F.replace("<anonymous>",e.displayName)),F}while(1<=o&&0<=c);break}}}finally{ea=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Zt(l):""}function Uc(e,t){switch(e.tag){case 26:case 27:case 5:return Zt(e.type);case 16:return Zt("Lazy");case 13:return e.child!==t&&t!==null?Zt("Suspense Fallback"):Zt("Suspense");case 19:return Zt("SuspenseList");case 0:case 15:return ta(e.type,!1);case 11:return ta(e.type.render,!1);case 1:return ta(e.type,!0);case 31:return Zt("Activity");default:return""}}function ts(e){try{var t="",l=null;do t+=Uc(e,l),l=e,e=e.return;while(e);return t}catch(o){return`
47
- Error generating stack: `+o.message+`
48
- `+o.stack}}var ka=Object.prototype.hasOwnProperty,Hc=n.unstable_scheduleCallback,qc=n.unstable_cancelCallback,l2=n.unstable_shouldYield,r2=n.unstable_requestPaint,Ft=n.unstable_now,i2=n.unstable_getCurrentPriorityLevel,Tp=n.unstable_ImmediatePriority,Mp=n.unstable_UserBlockingPriority,ns=n.unstable_NormalPriority,o2=n.unstable_LowPriority,Ap=n.unstable_IdlePriority,s2=n.log,u2=n.unstable_setDisableYieldValue,Ai=null,Pt=null;function Da(e){if(typeof s2=="function"&&u2(e),Pt&&typeof Pt.setStrictMode=="function")try{Pt.setStrictMode(Ai,e)}catch{}}var Jt=Math.clz32?Math.clz32:f2,c2=Math.log,d2=Math.LN2;function f2(e){return e>>>=0,e===0?32:31-(c2(e)/d2|0)|0}var as=256,ls=262144,rs=4194304;function El(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 is(e,t,l){var o=e.pendingLanes;if(o===0)return 0;var c=0,f=e.suspendedLanes,x=e.pingedLanes;e=e.warmLanes;var N=o&134217727;return N!==0?(o=N&~f,o!==0?c=El(o):(x&=N,x!==0?c=El(x):l||(l=N&~e,l!==0&&(c=El(l))))):(N=o&~f,N!==0?c=El(N):x!==0?c=El(x):l||(l=o&~e,l!==0&&(c=El(l)))),c===0?0:t!==0&&t!==c&&(t&f)===0&&(f=c&-c,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:c}function ki(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function h2(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 kp(){var e=rs;return rs<<=1,(rs&62914560)===0&&(rs=4194304),e}function Bc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Di(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function m2(e,t,l,o,c,f){var x=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=x&~l;0<l;){var F=31-Jt(l),J=1<<F;N[F]=0,M[F]=-1;var Y=Q[F];if(Y!==null)for(Q[F]=null,F=0;F<Y.length;F++){var K=Y[F];K!==null&&(K.lane&=-536870913)}l&=~J}o!==0&&Dp(e,o,0),f!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=f&~(x&~t))}function Dp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-Jt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|l&261930}function Op(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var o=31-Jt(l),c=1<<o;c&t|e[o]&t&&(e[o]|=t),l&=~c}}function zp(e,t){var l=t&-t;return l=(l&42)!==0?1:Qc(l),(l&(e.suspendedLanes|t))!==0?0:l}function Qc(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 Yc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Lp(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:w0(e.type))}function Up(e,t){var l=W.p;try{return W.p=e,t()}finally{W.p=l}}var Oa=Math.random().toString(36).slice(2),wt="__reactFiber$"+Oa,Ut="__reactProps$"+Oa,ur="__reactContainer$"+Oa,Gc="__reactEvents$"+Oa,p2="__reactListeners$"+Oa,v2="__reactHandles$"+Oa,Hp="__reactResources$"+Oa,Oi="__reactMarker$"+Oa;function Vc(e){delete e[wt],delete e[Ut],delete e[Gc],delete e[p2],delete e[v2]}function cr(e){var t=e[wt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[ur]||l[wt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=r0(e);e!==null;){if(l=e[wt])return l;e=r0(e)}return t}e=l,l=e.parentNode}return null}function dr(e){if(e=e[wt]||e[ur]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function zi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function fr(e){var t=e[Hp];return t||(t=e[Hp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function gt(e){e[Oi]=!0}var qp=new Set,Bp={};function Nl(e,t){hr(e,t),hr(e+"Capture",t)}function hr(e,t){for(Bp[e]=t,e=0;e<t.length;e++)qp.add(t[e])}var g2=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]*$"),Qp={},Yp={};function y2(e){return ka.call(Yp,e)?!0:ka.call(Qp,e)?!1:g2.test(e)?Yp[e]=!0:(Qp[e]=!0,!1)}function os(e,t,l){if(y2(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function ss(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 na(e,t,l,o){if(o===null)e.removeAttribute(l);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+o)}}function cn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Gp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function b2(e,t,l){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var c=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return c.call(this)},set:function(x){l=""+x,f.call(this,x)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Kc(e){if(!e._valueTracker){var t=Gp(e)?"checked":"value";e._valueTracker=b2(e,t,""+e[t])}}function Vp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),o="";return e&&(o=Gp(e)?e.checked?"true":"false":e.value),e=o,e!==l?(t.setValue(e),!0):!1}function us(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 x2=/[\n"\\]/g;function dn(e){return e.replace(x2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Xc(e,t,l,o,c,f,x,N){e.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.type=x:e.removeAttribute("type"),t!=null?x==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+cn(t)):e.value!==""+cn(t)&&(e.value=""+cn(t)):x!=="submit"&&x!=="reset"||e.removeAttribute("value"),t!=null?$c(e,x,cn(t)):l!=null?$c(e,x,cn(l)):o!=null&&e.removeAttribute("value"),c==null&&f!=null&&(e.defaultChecked=!!f),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+cn(N):e.removeAttribute("name")}function Kp(e,t,l,o,c,f,x,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)){Kc(e);return}l=l!=null?""+cn(l):"",t=t!=null?""+cn(t):l,N||t===e.value||(e.value=t),e.defaultValue=t}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=N?e.checked:!!o,e.defaultChecked=!!o,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(e.name=x),Kc(e)}function $c(e,t,l){t==="number"&&us(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function mr(e,t,l,o){if(e=e.options,t){t={};for(var c=0;c<l.length;c++)t["$"+l[c]]=!0;for(l=0;l<e.length;l++)c=t.hasOwnProperty("$"+e[l].value),e[l].selected!==c&&(e[l].selected=c),c&&o&&(e[l].defaultSelected=!0)}else{for(l=""+cn(l),t=null,c=0;c<e.length;c++){if(e[c].value===l){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}t!==null||e[c].disabled||(t=e[c])}t!==null&&(t.selected=!0)}}function Xp(e,t,l){if(t!=null&&(t=""+cn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+cn(l):""}function $p(e,t,l,o){if(t==null){if(o!=null){if(l!=null)throw Error(i(92));if(re(o)){if(1<o.length)throw Error(i(93));o=o[0]}l=o}l==null&&(l=""),t=l}l=cn(t),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o),Kc(e)}function pr(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var w2=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 Zp(e,t,l){var o=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,l):typeof l!="number"||l===0||w2.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Fp(e,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in t)o=t[c],t.hasOwnProperty(c)&&l[c]!==o&&Zp(e,c,o)}else for(var f in t)t.hasOwnProperty(f)&&Zp(e,f,t[f])}function Zc(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 S2=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"]]),j2=/^[\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 cs(e){return j2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function aa(){}var Fc=null;function Pc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vr=null,gr=null;function Pp(e){var t=dr(e);if(t&&(e=t.stateNode)){var l=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(Xc(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="'+dn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var o=l[t];if(o!==e&&o.form===e.form){var c=o[Ut]||null;if(!c)throw Error(i(90));Xc(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(t=0;t<l.length;t++)o=l[t],o.form===e.form&&Vp(o)}break e;case"textarea":Xp(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&mr(e,!!l.multiple,t,!1)}}}var Jc=!1;function Jp(e,t,l){if(Jc)return e(t,l);Jc=!0;try{var o=e(t);return o}finally{if(Jc=!1,(vr!==null||gr!==null)&&(Js(),vr&&(t=vr,e=gr,gr=vr=null,Pp(t),e)))for(t=0;t<e.length;t++)Pp(e[t])}}function Li(e,t){var l=e.stateNode;if(l===null)return null;var o=l[Ut]||null;if(o===null)return null;l=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wc=!1;if(la)try{var Ui={};Object.defineProperty(Ui,"passive",{get:function(){Wc=!0}}),window.addEventListener("test",Ui,Ui),window.removeEventListener("test",Ui,Ui)}catch{Wc=!1}var za=null,Ic=null,ds=null;function Wp(){if(ds)return ds;var e,t=Ic,l=t.length,o,c="value"in za?za.value:za.textContent,f=c.length;for(e=0;e<l&&t[e]===c[e];e++);var x=l-e;for(o=1;o<=x&&t[l-o]===c[f-o];o++);return ds=c.slice(e,1<o?1-o:void 0)}function fs(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 hs(){return!0}function Ip(){return!1}function Ht(e){function t(l,o,c,f,x){this._reactName=l,this._targetInst=c,this.type=o,this.nativeEvent=f,this.target=x,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)?hs:Ip,this.isPropagationStopped=Ip,this}return b(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=hs)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=hs)},persist:function(){},isPersistent:hs}),t}var Cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ms=Ht(Cl),Hi=b({},Cl,{view:0,detail:0}),E2=Ht(Hi),ed,td,qi,ps=b({},Hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ad,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!==qi&&(qi&&e.type==="mousemove"?(ed=e.screenX-qi.screenX,td=e.screenY-qi.screenY):td=ed=0,qi=e),ed)},movementY:function(e){return"movementY"in e?e.movementY:td}}),ev=Ht(ps),N2=b({},ps,{dataTransfer:0}),C2=Ht(N2),_2=b({},Hi,{relatedTarget:0}),nd=Ht(_2),R2=b({},Cl,{animationName:0,elapsedTime:0,pseudoElement:0}),T2=Ht(R2),M2=b({},Cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),A2=Ht(M2),k2=b({},Cl,{data:0}),tv=Ht(k2),D2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},O2={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"},z2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function L2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=z2[e])?!!t[e]:!1}function ad(){return L2}var U2=b({},Hi,{key:function(e){if(e.key){var t=D2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=fs(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?O2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ad,charCode:function(e){return e.type==="keypress"?fs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?fs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),H2=Ht(U2),q2=b({},ps,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),nv=Ht(q2),B2=b({},Hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ad}),Q2=Ht(B2),Y2=b({},Cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),G2=Ht(Y2),V2=b({},ps,{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}),K2=Ht(V2),X2=b({},Cl,{newState:0,oldState:0}),$2=Ht(X2),Z2=[9,13,27,32],ld=la&&"CompositionEvent"in window,Bi=null;la&&"documentMode"in document&&(Bi=document.documentMode);var F2=la&&"TextEvent"in window&&!Bi,av=la&&(!ld||Bi&&8<Bi&&11>=Bi),lv=" ",rv=!1;function iv(e,t){switch(e){case"keyup":return Z2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ov(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var yr=!1;function P2(e,t){switch(e){case"compositionend":return ov(t);case"keypress":return t.which!==32?null:(rv=!0,lv);case"textInput":return e=t.data,e===lv&&rv?null:e;default:return null}}function J2(e,t){if(yr)return e==="compositionend"||!ld&&iv(e,t)?(e=Wp(),ds=Ic=za=null,yr=!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 av&&t.locale!=="ko"?null:t.data;default:return null}}var W2={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 sv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!W2[e.type]:t==="textarea"}function uv(e,t,l,o){vr?gr?gr.push(o):gr=[o]:vr=o,t=lu(t,"onChange"),0<t.length&&(l=new ms("onChange","change",null,l,o),e.push({event:l,listeners:t}))}var Qi=null,Yi=null;function I2(e){Ky(e,0)}function vs(e){var t=zi(e);if(Vp(t))return e}function cv(e,t){if(e==="change")return t}var dv=!1;if(la){var rd;if(la){var id="oninput"in document;if(!id){var fv=document.createElement("div");fv.setAttribute("oninput","return;"),id=typeof fv.oninput=="function"}rd=id}else rd=!1;dv=rd&&(!document.documentMode||9<document.documentMode)}function hv(){Qi&&(Qi.detachEvent("onpropertychange",mv),Yi=Qi=null)}function mv(e){if(e.propertyName==="value"&&vs(Yi)){var t=[];uv(t,Yi,e,Pc(e)),Jp(I2,t)}}function eE(e,t,l){e==="focusin"?(hv(),Qi=t,Yi=l,Qi.attachEvent("onpropertychange",mv)):e==="focusout"&&hv()}function tE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return vs(Yi)}function nE(e,t){if(e==="click")return vs(t)}function aE(e,t){if(e==="input"||e==="change")return vs(t)}function lE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Wt=typeof Object.is=="function"?Object.is:lE;function Gi(e,t){if(Wt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var c=l[o];if(!ka.call(t,c)||!Wt(e[c],t[c]))return!1}return!0}function pv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vv(e,t){var l=pv(e);e=0;for(var o;l;){if(l.nodeType===3){if(o=e+l.textContent.length,e<=t&&o>=t)return{node:l,offset:t-e};e=o}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=pv(l)}}function gv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?gv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function yv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=us(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=us(e.document)}return t}function od(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 rE=la&&"documentMode"in document&&11>=document.documentMode,br=null,sd=null,Vi=null,ud=!1;function bv(e,t,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ud||br==null||br!==us(o)||(o=br,"selectionStart"in o&&od(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Vi&&Gi(Vi,o)||(Vi=o,o=lu(sd,"onSelect"),0<o.length&&(t=new ms("onSelect","select",null,t,l),e.push({event:t,listeners:o}),t.target=br)))}function _l(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var xr={animationend:_l("Animation","AnimationEnd"),animationiteration:_l("Animation","AnimationIteration"),animationstart:_l("Animation","AnimationStart"),transitionrun:_l("Transition","TransitionRun"),transitionstart:_l("Transition","TransitionStart"),transitioncancel:_l("Transition","TransitionCancel"),transitionend:_l("Transition","TransitionEnd")},cd={},xv={};la&&(xv=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);function Rl(e){if(cd[e])return cd[e];if(!xr[e])return e;var t=xr[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in xv)return cd[e]=t[l];return e}var wv=Rl("animationend"),Sv=Rl("animationiteration"),jv=Rl("animationstart"),iE=Rl("transitionrun"),oE=Rl("transitionstart"),sE=Rl("transitioncancel"),Ev=Rl("transitionend"),Nv=new Map,dd="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(" ");dd.push("scrollEnd");function Cn(e,t){Nv.set(e,t),Nl(t,[e])}var gs=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)},fn=[],wr=0,fd=0;function ys(){for(var e=wr,t=fd=wr=0;t<e;){var l=fn[t];fn[t++]=null;var o=fn[t];fn[t++]=null;var c=fn[t];fn[t++]=null;var f=fn[t];if(fn[t++]=null,o!==null&&c!==null){var x=o.pending;x===null?c.next=c:(c.next=x.next,x.next=c),o.pending=c}f!==0&&Cv(l,c,f)}}function bs(e,t,l,o){fn[wr++]=e,fn[wr++]=t,fn[wr++]=l,fn[wr++]=o,fd|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function hd(e,t,l,o){return bs(e,t,l,o),xs(e)}function Tl(e,t){return bs(e,null,null,t),xs(e)}function Cv(e,t,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var c=!1,f=e.return;f!==null;)f.childLanes|=l,o=f.alternate,o!==null&&(o.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(c=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,c&&t!==null&&(c=31-Jt(l),e=f.hiddenUpdates,o=e[c],o===null?e[c]=[t]:o.push(t),t.lane=l|536870912),f):null}function xs(e){if(50<ho)throw ho=0,jf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Sr={};function uE(e,t,l,o){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function It(e,t,l,o){return new uE(e,t,l,o)}function md(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ra(e,t){var l=e.alternate;return l===null?(l=It(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 _v(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 ws(e,t,l,o,c,f){var x=0;if(o=e,typeof e=="function")md(e)&&(x=1);else if(typeof e=="string")x=mN(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=It(31,l,t,c),e.elementType=G,e.lanes=f,e;case S:return Ml(l.children,c,f,t);case C:x=8,c|=24;break;case _:return e=It(12,l,t,c|2),e.elementType=_,e.lanes=f,e;case L:return e=It(13,l,t,c),e.elementType=L,e.lanes=f,e;case X:return e=It(19,l,t,c),e.elementType=X,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:x=10;break e;case R:x=9;break e;case D:x=11;break e;case q:x=14;break e;case H:x=16,o=null;break e}x=29,l=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=It(x,l,t,c),t.elementType=e,t.type=o,t.lanes=f,t}function Ml(e,t,l,o){return e=It(7,e,o,t),e.lanes=l,e}function pd(e,t,l){return e=It(6,e,null,t),e.lanes=l,e}function Rv(e){var t=It(18,null,null,0);return t.stateNode=e,t}function vd(e,t,l){return t=It(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Tv=new WeakMap;function hn(e,t){if(typeof e=="object"&&e!==null){var l=Tv.get(e);return l!==void 0?l:(t={value:e,source:t,stack:ts(t)},Tv.set(e,t),t)}return{value:e,source:t,stack:ts(t)}}var jr=[],Er=0,Ss=null,Ki=0,mn=[],pn=0,La=null,qn=1,Bn="";function ia(e,t){jr[Er++]=Ki,jr[Er++]=Ss,Ss=e,Ki=t}function Mv(e,t,l){mn[pn++]=qn,mn[pn++]=Bn,mn[pn++]=La,La=e;var o=qn;e=Bn;var c=32-Jt(o)-1;o&=~(1<<c),l+=1;var f=32-Jt(t)+c;if(30<f){var x=c-c%5;f=(o&(1<<x)-1).toString(32),o>>=x,c-=x,qn=1<<32-Jt(t)+c|l<<c|o,Bn=f+e}else qn=1<<f|l<<c|o,Bn=e}function gd(e){e.return!==null&&(ia(e,1),Mv(e,1,0))}function yd(e){for(;e===Ss;)Ss=jr[--Er],jr[Er]=null,Ki=jr[--Er],jr[Er]=null;for(;e===La;)La=mn[--pn],mn[pn]=null,Bn=mn[--pn],mn[pn]=null,qn=mn[--pn],mn[pn]=null}function Av(e,t){mn[pn++]=qn,mn[pn++]=Bn,mn[pn++]=La,qn=t.id,Bn=t.overflow,La=e}var St=null,Fe=null,ze=!1,Ua=null,vn=!1,bd=Error(i(519));function Ha(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Xi(hn(t,e)),bd}function kv(e){var t=e.stateNode,l=e.type,o=e.memoizedProps;switch(t[wt]=e,t[Ut]=o,l){case"dialog":ke("cancel",t),ke("close",t);break;case"iframe":case"object":case"embed":ke("load",t);break;case"video":case"audio":for(l=0;l<po.length;l++)ke(po[l],t);break;case"source":ke("error",t);break;case"img":case"image":case"link":ke("error",t),ke("load",t);break;case"details":ke("toggle",t);break;case"input":ke("invalid",t),Kp(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":ke("invalid",t);break;case"textarea":ke("invalid",t),$p(t,o.value,o.defaultValue,o.children)}l=o.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||o.suppressHydrationWarning===!0||Fy(t.textContent,l)?(o.popover!=null&&(ke("beforetoggle",t),ke("toggle",t)),o.onScroll!=null&&ke("scroll",t),o.onScrollEnd!=null&&ke("scrollend",t),o.onClick!=null&&(t.onclick=aa),t=!0):t=!1,t||Ha(e,!0)}function Dv(e){for(St=e.return;St;)switch(St.tag){case 5:case 31:case 13:vn=!1;return;case 27:case 3:vn=!0;return;default:St=St.return}}function Nr(e){if(e!==St)return!1;if(!ze)return Dv(e),ze=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Hf(e.type,e.memoizedProps)),l=!l),l&&Fe&&Ha(e),Dv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=l0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=l0(e)}else t===27?(t=Fe,Wa(e.type)?(e=Gf,Gf=null,Fe=e):Fe=t):Fe=St?yn(e.stateNode.nextSibling):null;return!0}function Al(){Fe=St=null,ze=!1}function xd(){var e=Ua;return e!==null&&(Yt===null?Yt=e:Yt.push.apply(Yt,e),Ua=null),e}function Xi(e){Ua===null?Ua=[e]:Ua.push(e)}var wd=A(null),kl=null,oa=null;function qa(e,t,l){ee(wd,t._currentValue),t._currentValue=l}function sa(e){e._currentValue=wd.current,Z(wd)}function Sd(e,t,l){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===l)break;e=e.return}}function jd(e,t,l,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var f=c.dependencies;if(f!==null){var x=c.child;f=f.firstContext;e:for(;f!==null;){var N=f;f=c;for(var M=0;M<t.length;M++)if(N.context===t[M]){f.lanes|=l,N=f.alternate,N!==null&&(N.lanes|=l),Sd(f.return,l,e),o||(x=null);break e}f=N.next}}else if(c.tag===18){if(x=c.return,x===null)throw Error(i(341));x.lanes|=l,f=x.alternate,f!==null&&(f.lanes|=l),Sd(x,l,e),x=null}else x=c.child;if(x!==null)x.return=c;else for(x=c;x!==null;){if(x===e){x=null;break}if(c=x.sibling,c!==null){c.return=x.return,x=c;break}x=x.return}c=x}}function Cr(e,t,l,o){e=null;for(var c=t,f=!1;c!==null;){if(!f){if((c.flags&524288)!==0)f=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var x=c.alternate;if(x===null)throw Error(i(387));if(x=x.memoizedProps,x!==null){var N=c.type;Wt(c.pendingProps.value,x.value)||(e!==null?e.push(N):e=[N])}}else if(c===ne.current){if(x=c.alternate,x===null)throw Error(i(387));x.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(xo):e=[xo])}c=c.return}e!==null&&jd(t,e,l,o),t.flags|=262144}function js(e){for(e=e.firstContext;e!==null;){if(!Wt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Dl(e){kl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function jt(e){return Ov(kl,e)}function Es(e,t){return kl===null&&Dl(e),Ov(e,t)}function Ov(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},oa===null){if(e===null)throw Error(i(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return l}var cE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},dE=n.unstable_scheduleCallback,fE=n.unstable_NormalPriority,ut={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ed(){return{controller:new cE,data:new Map,refCount:0}}function $i(e){e.refCount--,e.refCount===0&&dE(fE,function(){e.controller.abort()})}var Zi=null,Nd=0,_r=0,Rr=null;function hE(e,t){if(Zi===null){var l=Zi=[];Nd=0,_r=Tf(),Rr={status:"pending",value:void 0,then:function(o){l.push(o)}}}return Nd++,t.then(zv,zv),t}function zv(){if(--Nd===0&&Zi!==null){Rr!==null&&(Rr.status="fulfilled");var e=Zi;Zi=null,_r=0,Rr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function mE(e,t){var l=[],o={status:"pending",value:null,reason:null,then:function(c){l.push(c)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var c=0;c<l.length;c++)(0,l[c])(t)},function(c){for(o.status="rejected",o.reason=c,c=0;c<l.length;c++)(0,l[c])(void 0)}),o}var Lv=U.S;U.S=function(e,t){by=Ft(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&hE(e,t),Lv!==null&&Lv(e,t)};var Ol=A(null);function Cd(){var e=Ol.current;return e!==null?e:Ze.pooledCache}function Ns(e,t){t===null?ee(Ol,Ol.current):ee(Ol,t.pool)}function Uv(){var e=Cd();return e===null?null:{parent:ut._currentValue,pool:e}}var Tr=Error(i(460)),_d=Error(i(474)),Cs=Error(i(542)),_s={then:function(){}};function Hv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function qv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(aa,aa),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qv(e),e;default:if(typeof t.status=="string")t.then(aa,aa);else{if(e=Ze,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var c=t;c.status="fulfilled",c.value=o}},function(o){if(t.status==="pending"){var c=t;c.status="rejected",c.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Qv(e),e}throw Ll=t,Tr}}function zl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ll=l,Tr):l}}var Ll=null;function Bv(){if(Ll===null)throw Error(i(459));var e=Ll;return Ll=null,e}function Qv(e){if(e===Tr||e===Cs)throw Error(i(483))}var Mr=null,Fi=0;function Rs(e){var t=Fi;return Fi+=1,Mr===null&&(Mr=[]),qv(Mr,e,t)}function Pi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ts(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 Yv(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 o(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 c(z,O){return z=ra(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 x(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function N(z,O,B,P){return O===null||O.tag!==6?(O=pd(B,z.mode,P),O.return=z,O):(O=c(O,B),O.return=z,O)}function M(z,O,B,P){var be=B.type;return be===S?F(z,O,B.props.children,P,B.key):O!==null&&(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&zl(be)===O.type)?(O=c(O,B.props),Pi(O,B),O.return=z,O):(O=ws(B.type,B.key,B.props,null,z.mode,P),Pi(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=vd(B,z.mode,P),O.return=z,O):(O=c(O,B.children||[]),O.return=z,O)}function F(z,O,B,P,be){return O===null||O.tag!==7?(O=Ml(B,z.mode,P,be),O.return=z,O):(O=c(O,B),O.return=z,O)}function J(z,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=pd(""+O,z.mode,B),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return B=ws(O.type,O.key,O.props,null,z.mode,B),Pi(B,O),B.return=z,B;case E:return O=vd(O,z.mode,B),O.return=z,O;case H:return O=zl(O),J(z,O,B)}if(re(O)||de(O))return O=Ml(O,z.mode,B,null),O.return=z,O;if(typeof O.then=="function")return J(z,Rs(O),B);if(O.$$typeof===T)return J(z,Es(z,O),B);Ts(z,O)}return null}function Y(z,O,B,P){var be=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return be!==null?null:N(z,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j:return B.key===be?M(z,O,B,P):null;case E:return B.key===be?Q(z,O,B,P):null;case H:return B=zl(B),Y(z,O,B,P)}if(re(B)||de(B))return be!==null?null:F(z,O,B,P,null);if(typeof B.then=="function")return Y(z,O,Rs(B),P);if(B.$$typeof===T)return Y(z,O,Es(z,B),P);Ts(z,B)}return null}function K(z,O,B,P,be){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return z=z.get(B)||null,N(O,z,""+P,be);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case j:return z=z.get(P.key===null?B:P.key)||null,M(O,z,P,be);case E:return z=z.get(P.key===null?B:P.key)||null,Q(O,z,P,be);case H:return P=zl(P),K(z,O,B,P,be)}if(re(P)||de(P))return z=z.get(B)||null,F(O,z,P,be,null);if(typeof P.then=="function")return K(z,O,B,Rs(P),be);if(P.$$typeof===T)return K(z,O,B,Es(O,P),be);Ts(O,P)}return null}function he(z,O,B,P){for(var be=null,He=null,ge=O,Re=O=0,Oe=null;ge!==null&&Re<B.length;Re++){ge.index>Re?(Oe=ge,ge=null):Oe=ge.sibling;var qe=Y(z,ge,B[Re],P);if(qe===null){ge===null&&(ge=Oe);break}e&&ge&&qe.alternate===null&&t(z,ge),O=f(qe,O,Re),He===null?be=qe:He.sibling=qe,He=qe,ge=Oe}if(Re===B.length)return l(z,ge),ze&&ia(z,Re),be;if(ge===null){for(;Re<B.length;Re++)ge=J(z,B[Re],P),ge!==null&&(O=f(ge,O,Re),He===null?be=ge:He.sibling=ge,He=ge);return ze&&ia(z,Re),be}for(ge=o(ge);Re<B.length;Re++)Oe=K(ge,z,Re,B[Re],P),Oe!==null&&(e&&Oe.alternate!==null&&ge.delete(Oe.key===null?Re:Oe.key),O=f(Oe,O,Re),He===null?be=Oe:He.sibling=Oe,He=Oe);return e&&ge.forEach(function(al){return t(z,al)}),ze&&ia(z,Re),be}function Se(z,O,B,P){if(B==null)throw Error(i(151));for(var be=null,He=null,ge=O,Re=O=0,Oe=null,qe=B.next();ge!==null&&!qe.done;Re++,qe=B.next()){ge.index>Re?(Oe=ge,ge=null):Oe=ge.sibling;var al=Y(z,ge,qe.value,P);if(al===null){ge===null&&(ge=Oe);break}e&&ge&&al.alternate===null&&t(z,ge),O=f(al,O,Re),He===null?be=al:He.sibling=al,He=al,ge=Oe}if(qe.done)return l(z,ge),ze&&ia(z,Re),be;if(ge===null){for(;!qe.done;Re++,qe=B.next())qe=J(z,qe.value,P),qe!==null&&(O=f(qe,O,Re),He===null?be=qe:He.sibling=qe,He=qe);return ze&&ia(z,Re),be}for(ge=o(ge);!qe.done;Re++,qe=B.next())qe=K(ge,z,Re,qe.value,P),qe!==null&&(e&&qe.alternate!==null&&ge.delete(qe.key===null?Re:qe.key),O=f(qe,O,Re),He===null?be=qe:He.sibling=qe,He=qe);return e&&ge.forEach(function(NN){return t(z,NN)}),ze&&ia(z,Re),be}function $e(z,O,B,P){if(typeof B=="object"&&B!==null&&B.type===S&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case j:e:{for(var be=B.key;O!==null;){if(O.key===be){if(be=B.type,be===S){if(O.tag===7){l(z,O.sibling),P=c(O,B.props.children),P.return=z,z=P;break e}}else if(O.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===H&&zl(be)===O.type){l(z,O.sibling),P=c(O,B.props),Pi(P,B),P.return=z,z=P;break e}l(z,O);break}else t(z,O);O=O.sibling}B.type===S?(P=Ml(B.props.children,z.mode,P,B.key),P.return=z,z=P):(P=ws(B.type,B.key,B.props,null,z.mode,P),Pi(P,B),P.return=z,z=P)}return x(z);case E:e:{for(be=B.key;O!==null;){if(O.key===be)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){l(z,O.sibling),P=c(O,B.children||[]),P.return=z,z=P;break e}else{l(z,O);break}else t(z,O);O=O.sibling}P=vd(B,z.mode,P),P.return=z,z=P}return x(z);case H:return B=zl(B),$e(z,O,B,P)}if(re(B))return he(z,O,B,P);if(de(B)){if(be=de(B),typeof be!="function")throw Error(i(150));return B=be.call(B),Se(z,O,B,P)}if(typeof B.then=="function")return $e(z,O,Rs(B),P);if(B.$$typeof===T)return $e(z,O,Es(z,B),P);Ts(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=c(O,B),P.return=z,z=P):(l(z,O),P=pd(B,z.mode,P),P.return=z,z=P),x(z)):l(z,O)}return function(z,O,B,P){try{Fi=0;var be=$e(z,O,B,P);return Mr=null,be}catch(ge){if(ge===Tr||ge===Cs)throw ge;var He=It(29,ge,null,z.mode);return He.lanes=P,He.return=z,He}finally{}}}var Ul=Yv(!0),Gv=Yv(!1),Ba=!1;function Rd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Td(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 Qa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ya(e,t,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Be&2)!==0){var c=o.pending;return c===null?t.next=t:(t.next=c.next,c.next=t),o.pending=t,t=xs(e),Cv(e,null,l),t}return bs(e,o,t,l),xs(e)}function Ji(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Op(e,l)}}function Md(e,t){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var c=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var x={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?c=f=x:f=f.next=x,l=l.next}while(l!==null);f===null?c=f=t:f=f.next=t}else c=f=t;l={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Ad=!1;function Wi(){if(Ad){var e=Rr;if(e!==null)throw e}}function Ii(e,t,l,o){Ad=!1;var c=e.updateQueue;Ba=!1;var f=c.firstBaseUpdate,x=c.lastBaseUpdate,N=c.shared.pending;if(N!==null){c.shared.pending=null;var M=N,Q=M.next;M.next=null,x===null?f=Q:x.next=Q,x=M;var F=e.alternate;F!==null&&(F=F.updateQueue,N=F.lastBaseUpdate,N!==x&&(N===null?F.firstBaseUpdate=Q:N.next=Q,F.lastBaseUpdate=M))}if(f!==null){var J=c.baseState;x=0,F=Q=M=null,N=f;do{var Y=N.lane&-536870913,K=Y!==N.lane;if(K?(De&Y)===Y:(o&Y)===Y){Y!==0&&Y===_r&&(Ad=!0),F!==null&&(F=F.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var he=e,Se=N;Y=t;var $e=l;switch(Se.tag){case 1:if(he=Se.payload,typeof he=="function"){J=he.call($e,J,Y);break e}J=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=Se.payload,Y=typeof he=="function"?he.call($e,J,Y):he,Y==null)break e;J=b({},J,Y);break e;case 2:Ba=!0}}Y=N.callback,Y!==null&&(e.flags|=64,K&&(e.flags|=8192),K=c.callbacks,K===null?c.callbacks=[Y]:K.push(Y))}else K={lane:Y,tag:N.tag,payload:N.payload,callback:N.callback,next:null},F===null?(Q=F=K,M=J):F=F.next=K,x|=Y;if(N=N.next,N===null){if(N=c.shared.pending,N===null)break;K=N,N=K.next,K.next=null,c.lastBaseUpdate=K,c.shared.pending=null}}while(!0);F===null&&(M=J),c.baseState=M,c.firstBaseUpdate=Q,c.lastBaseUpdate=F,f===null&&(c.shared.lanes=0),$a|=x,e.lanes=x,e.memoizedState=J}}function Vv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Kv(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Vv(l[e],t)}var Ar=A(null),Ms=A(0);function Xv(e,t){e=ga,ee(Ms,e),ee(Ar,t),ga=e|t.baseLanes}function kd(){ee(Ms,ga),ee(Ar,Ar.current)}function Dd(){ga=Ms.current,Z(Ar),Z(Ms)}var en=A(null),gn=null;function Ga(e){var t=e.alternate;ee(it,it.current&1),ee(en,e),gn===null&&(t===null||Ar.current!==null||t.memoizedState!==null)&&(gn=e)}function Od(e){ee(it,it.current),ee(en,e),gn===null&&(gn=e)}function $v(e){e.tag===22?(ee(it,it.current),ee(en,e),gn===null&&(gn=e)):Va()}function Va(){ee(it,it.current),ee(en,en.current)}function tn(e){Z(en),gn===e&&(gn=null),Z(it)}var it=A(0);function As(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Qf(l)||Yf(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 ua=0,_e=null,Ke=null,ct=null,ks=!1,kr=!1,Hl=!1,Ds=0,eo=0,Dr=null,pE=0;function tt(){throw Error(i(321))}function zd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Wt(e[l],t[l]))return!1;return!0}function Ld(e,t,l,o,c,f){return ua=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Mg:Jd,Hl=!1,f=l(o,c),Hl=!1,kr&&(f=Fv(t,l,o,c)),Zv(e),f}function Zv(e){U.H=ao;var t=Ke!==null&&Ke.next!==null;if(ua=0,ct=Ke=_e=null,ks=!1,eo=0,Dr=null,t)throw Error(i(300));e===null||dt||(e=e.dependencies,e!==null&&js(e)&&(dt=!0))}function Fv(e,t,l,o){_e=e;var c=0;do{if(kr&&(Dr=null),eo=0,kr=!1,25<=c)throw Error(i(301));if(c+=1,ct=Ke=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=Ag,f=t(l,o)}while(kr);return f}function vE(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?to(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(_e.flags|=1024),t}function Ud(){var e=Ds!==0;return Ds=0,e}function Hd(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function qd(e){if(ks){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ks=!1}ua=0,ct=Ke=_e=null,kr=!1,eo=Ds=0,Dr=null}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?_e.memoizedState=ct=e:ct=ct.next=e,ct}function ot(){if(Ke===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=ct===null?_e.memoizedState:ct.next;if(t!==null)ct=t,Ke=e;else{if(e===null)throw _e.alternate===null?Error(i(467)):Error(i(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},ct===null?_e.memoizedState=ct=e:ct=ct.next=e}return ct}function Os(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function to(e){var t=eo;return eo+=1,Dr===null&&(Dr=[]),e=qv(Dr,e,t),t=_e,(ct===null?t.memoizedState:ct.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Mg:Jd),e}function zs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return to(e);if(e.$$typeof===T)return jt(e)}throw Error(i(438,String(e)))}function Bd(e){var t=null,l=_e.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var o=_e.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(c){return c.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Os(),_e.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),o=0;o<e;o++)l[o]=te;return t.index++,l}function ca(e,t){return typeof t=="function"?t(e):t}function Ls(e){var t=ot();return Qd(t,Ke,e)}function Qd(e,t,l){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var c=e.baseQueue,f=o.pending;if(f!==null){if(c!==null){var x=c.next;c.next=f.next,f.next=x}t.baseQueue=c=f,o.pending=null}if(f=e.baseState,c===null)e.memoizedState=f;else{t=c.next;var N=x=null,M=null,Q=t,F=!1;do{var J=Q.lane&-536870913;if(J!==Q.lane?(De&J)===J:(ua&J)===J){var Y=Q.revertLane;if(Y===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),J===_r&&(F=!0);else if((ua&Y)===Y){Q=Q.next,Y===_r&&(F=!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,x=f):M=M.next=J,_e.lanes|=Y,$a|=Y;J=Q.action,Hl&&l(f,J),f=Q.hasEagerState?Q.eagerState:l(f,J)}else Y={lane:J,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(N=M=Y,x=f):M=M.next=Y,_e.lanes|=J,$a|=J;Q=Q.next}while(Q!==null&&Q!==t);if(M===null?x=f:M.next=N,!Wt(f,e.memoizedState)&&(dt=!0,F&&(l=Rr,l!==null)))throw l;e.memoizedState=f,e.baseState=x,e.baseQueue=M,o.lastRenderedState=f}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Yd(e){var t=ot(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var o=l.dispatch,c=l.pending,f=t.memoizedState;if(c!==null){l.pending=null;var x=c=c.next;do f=e(f,x.action),x=x.next;while(x!==c);Wt(f,t.memoizedState)||(dt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,o]}function Pv(e,t,l){var o=_e,c=ot(),f=ze;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var x=!Wt((Ke||c).memoizedState,l);if(x&&(c.memoizedState=l,dt=!0),c=c.queue,Kd(Iv.bind(null,o,c,e),[e]),c.getSnapshot!==t||x||ct!==null&&ct.memoizedState.tag&1){if(o.flags|=2048,Or(9,{destroy:void 0},Wv.bind(null,o,c,l,t),null),Ze===null)throw Error(i(349));f||(ua&127)!==0||Jv(o,t,l)}return l}function Jv(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=_e.updateQueue,t===null?(t=Os(),_e.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Wv(e,t,l,o){t.value=l,t.getSnapshot=o,eg(t)&&tg(e)}function Iv(e,t,l){return l(function(){eg(t)&&tg(e)})}function eg(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Wt(e,l)}catch{return!0}}function tg(e){var t=Tl(e,2);t!==null&&Gt(t,e,2)}function Gd(e){var t=Dt();if(typeof e=="function"){var l=e;if(e=l(),Hl){Da(!0);try{l()}finally{Da(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function ng(e,t,l,o){return e.baseState=l,Qd(e,Ke,typeof o=="function"?o:ca)}function gE(e,t,l,o,c){if(qs(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){f.listeners.push(x)}};U.T!==null?l(!0):f.isTransition=!1,o(f),l=t.pending,l===null?(f.next=t.pending=f,ag(t,f)):(f.next=l.next,t.pending=l.next=f)}}function ag(e,t){var l=t.action,o=t.payload,c=e.state;if(t.isTransition){var f=U.T,x={};U.T=x;try{var N=l(c,o),M=U.S;M!==null&&M(x,N),lg(e,t,N)}catch(Q){Vd(e,t,Q)}finally{f!==null&&x.types!==null&&(f.types=x.types),U.T=f}}else try{f=l(c,o),lg(e,t,f)}catch(Q){Vd(e,t,Q)}}function lg(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){rg(e,t,o)},function(o){return Vd(e,t,o)}):rg(e,t,l)}function rg(e,t,l){t.status="fulfilled",t.value=l,ig(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ag(e,l)))}function Vd(e,t,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=l,ig(t),t=t.next;while(t!==o)}e.action=null}function ig(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function og(e,t){return t}function sg(e,t){if(ze){var l=Ze.formState;if(l!==null){e:{var o=_e;if(ze){if(Fe){t:{for(var c=Fe,f=vn;c.nodeType!==8;){if(!f){c=null;break t}if(c=yn(c.nextSibling),c===null){c=null;break t}}f=c.data,c=f==="F!"||f==="F"?c:null}if(c){Fe=yn(c.nextSibling),o=c.data==="F!";break e}}Ha(o)}o=!1}o&&(t=l[0])}}return l=Dt(),l.memoizedState=l.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:og,lastRenderedState:t},l.queue=o,l=_g.bind(null,_e,o),o.dispatch=l,o=Gd(!1),f=Pd.bind(null,_e,!1,o.queue),o=Dt(),c={state:t,dispatch:null,action:e,pending:null},o.queue=c,l=gE.bind(null,_e,c,f,l),c.dispatch=l,o.memoizedState=e,[t,l,!1]}function ug(e){var t=ot();return cg(t,Ke,e)}function cg(e,t,l){if(t=Qd(e,t,og)[0],e=Ls(ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=to(t)}catch(x){throw x===Tr?Cs:x}else o=t;t=ot();var c=t.queue,f=c.dispatch;return l!==t.memoizedState&&(_e.flags|=2048,Or(9,{destroy:void 0},yE.bind(null,c,l),null)),[o,f,e]}function yE(e,t){e.action=t}function dg(e){var t=ot(),l=Ke;if(l!==null)return cg(t,l,e);ot(),t=t.memoizedState,l=ot();var o=l.queue.dispatch;return l.memoizedState=e,[t,o,!1]}function Or(e,t,l,o){return e={tag:e,create:l,deps:o,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Os(),_e.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(o=l.next,l.next=e,e.next=o,t.lastEffect=e),e}function fg(){return ot().memoizedState}function Us(e,t,l,o){var c=Dt();_e.flags|=e,c.memoizedState=Or(1|t,{destroy:void 0},l,o===void 0?null:o)}function Hs(e,t,l,o){var c=ot();o=o===void 0?null:o;var f=c.memoizedState.inst;Ke!==null&&o!==null&&zd(o,Ke.memoizedState.deps)?c.memoizedState=Or(t,f,l,o):(_e.flags|=e,c.memoizedState=Or(1|t,f,l,o))}function hg(e,t){Us(8390656,8,e,t)}function Kd(e,t){Hs(2048,8,e,t)}function bE(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Os(),_e.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function mg(e){var t=ot().memoizedState;return bE({ref:t,nextImpl:e}),function(){if((Be&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function pg(e,t){return Hs(4,2,e,t)}function vg(e,t){return Hs(4,4,e,t)}function gg(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 yg(e,t,l){l=l!=null?l.concat([e]):null,Hs(4,4,gg.bind(null,t,e),l)}function Xd(){}function bg(e,t){var l=ot();t=t===void 0?null:t;var o=l.memoizedState;return t!==null&&zd(t,o[1])?o[0]:(l.memoizedState=[e,t],e)}function xg(e,t){var l=ot();t=t===void 0?null:t;var o=l.memoizedState;if(t!==null&&zd(t,o[1]))return o[0];if(o=e(),Hl){Da(!0);try{e()}finally{Da(!1)}}return l.memoizedState=[o,t],o}function $d(e,t,l){return l===void 0||(ua&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=wy(),_e.lanes|=e,$a|=e,l)}function wg(e,t,l,o){return Wt(l,t)?l:Ar.current!==null?(e=$d(e,l,o),Wt(e,t)||(dt=!0),e):(ua&42)===0||(ua&1073741824)!==0&&(De&261930)===0?(dt=!0,e.memoizedState=l):(e=wy(),_e.lanes|=e,$a|=e,t)}function Sg(e,t,l,o,c){var f=W.p;W.p=f!==0&&8>f?f:8;var x=U.T,N={};U.T=N,Pd(e,!1,t,l);try{var M=c(),Q=U.S;if(Q!==null&&Q(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var F=mE(M,o);no(e,t,F,ln(e))}else no(e,t,o,ln(e))}catch(J){no(e,t,{then:function(){},status:"rejected",reason:J},ln())}finally{W.p=f,x!==null&&N.types!==null&&(x.types=N.types),U.T=x}}function xE(){}function Zd(e,t,l,o){if(e.tag!==5)throw Error(i(476));var c=jg(e).queue;Sg(e,c,t,V,l===null?xE:function(){return Eg(e),l(o)})}function jg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:V},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Eg(e){var t=jg(e);t.next===null&&(t=e.alternate.memoizedState),no(e,t.next.queue,{},ln())}function Fd(){return jt(xo)}function Ng(){return ot().memoizedState}function Cg(){return ot().memoizedState}function wE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=ln();e=Qa(l);var o=Ya(t,e,l);o!==null&&(Gt(o,t,l),Ji(o,t,l)),t={cache:Ed()},e.payload=t;return}t=t.return}}function SE(e,t,l){var o=ln();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},qs(e)?Rg(t,l):(l=hd(e,t,l,o),l!==null&&(Gt(l,e,o),Tg(l,t,o)))}function _g(e,t,l){var o=ln();no(e,t,l,o)}function no(e,t,l,o){var c={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(qs(e))Rg(t,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var x=t.lastRenderedState,N=f(x,l);if(c.hasEagerState=!0,c.eagerState=N,Wt(N,x))return bs(e,t,c,0),Ze===null&&ys(),!1}catch{}finally{}if(l=hd(e,t,c,o),l!==null)return Gt(l,e,o),Tg(l,t,o),!0}return!1}function Pd(e,t,l,o){if(o={lane:2,revertLane:Tf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},qs(e)){if(t)throw Error(i(479))}else t=hd(e,l,o,2),t!==null&&Gt(t,e,2)}function qs(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Rg(e,t){kr=ks=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Tg(e,t,l){if((l&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Op(e,l)}}var ao={readContext:jt,use:zs,useCallback:tt,useContext:tt,useEffect:tt,useImperativeHandle:tt,useLayoutEffect:tt,useInsertionEffect:tt,useMemo:tt,useReducer:tt,useRef:tt,useState:tt,useDebugValue:tt,useDeferredValue:tt,useTransition:tt,useSyncExternalStore:tt,useId:tt,useHostTransitionStatus:tt,useFormState:tt,useActionState:tt,useOptimistic:tt,useMemoCache:tt,useCacheRefresh:tt};ao.useEffectEvent=tt;var Mg={readContext:jt,use:zs,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:jt,useEffect:hg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Us(4194308,4,gg.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Us(4194308,4,e,t)},useInsertionEffect:function(e,t){Us(4,2,e,t)},useMemo:function(e,t){var l=Dt();t=t===void 0?null:t;var o=e();if(Hl){Da(!0);try{e()}finally{Da(!1)}}return l.memoizedState=[o,t],o},useReducer:function(e,t,l){var o=Dt();if(l!==void 0){var c=l(t);if(Hl){Da(!0);try{l(t)}finally{Da(!1)}}}else c=t;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=SE.bind(null,_e,e),[o.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:function(e){e=Gd(e);var t=e.queue,l=_g.bind(null,_e,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Xd,useDeferredValue:function(e,t){var l=Dt();return $d(l,e,t)},useTransition:function(){var e=Gd(!1);return e=Sg.bind(null,_e,e.queue,!0,!1),Dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var o=_e,c=Dt();if(ze){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),Ze===null)throw Error(i(349));(De&127)!==0||Jv(o,t,l)}c.memoizedState=l;var f={value:l,getSnapshot:t};return c.queue=f,hg(Iv.bind(null,o,f,e),[e]),o.flags|=2048,Or(9,{destroy:void 0},Wv.bind(null,o,f,l,t),null),l},useId:function(){var e=Dt(),t=Ze.identifierPrefix;if(ze){var l=Bn,o=qn;l=(o&~(1<<32-Jt(o)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Ds++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=pE++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Fd,useFormState:sg,useActionState:sg,useOptimistic:function(e){var t=Dt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=Pd.bind(null,_e,!0,l),l.dispatch=t,[e,t]},useMemoCache:Bd,useCacheRefresh:function(){return Dt().memoizedState=wE.bind(null,_e)},useEffectEvent:function(e){var t=Dt(),l={impl:e};return t.memoizedState=l,function(){if((Be&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},Jd={readContext:jt,use:zs,useCallback:bg,useContext:jt,useEffect:Kd,useImperativeHandle:yg,useInsertionEffect:pg,useLayoutEffect:vg,useMemo:xg,useReducer:Ls,useRef:fg,useState:function(){return Ls(ca)},useDebugValue:Xd,useDeferredValue:function(e,t){var l=ot();return wg(l,Ke.memoizedState,e,t)},useTransition:function(){var e=Ls(ca)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:Pv,useId:Ng,useHostTransitionStatus:Fd,useFormState:ug,useActionState:ug,useOptimistic:function(e,t){var l=ot();return ng(l,Ke,e,t)},useMemoCache:Bd,useCacheRefresh:Cg};Jd.useEffectEvent=mg;var Ag={readContext:jt,use:zs,useCallback:bg,useContext:jt,useEffect:Kd,useImperativeHandle:yg,useInsertionEffect:pg,useLayoutEffect:vg,useMemo:xg,useReducer:Yd,useRef:fg,useState:function(){return Yd(ca)},useDebugValue:Xd,useDeferredValue:function(e,t){var l=ot();return Ke===null?$d(l,e,t):wg(l,Ke.memoizedState,e,t)},useTransition:function(){var e=Yd(ca)[0],t=ot().memoizedState;return[typeof e=="boolean"?e:to(e),t]},useSyncExternalStore:Pv,useId:Ng,useHostTransitionStatus:Fd,useFormState:dg,useActionState:dg,useOptimistic:function(e,t){var l=ot();return Ke!==null?ng(l,Ke,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Bd,useCacheRefresh:Cg};Ag.useEffectEvent=mg;function Wd(e,t,l,o){t=e.memoizedState,l=l(o,t),l=l==null?t:b({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var Id={enqueueSetState:function(e,t,l){e=e._reactInternals;var o=ln(),c=Qa(o);c.payload=t,l!=null&&(c.callback=l),t=Ya(e,c,o),t!==null&&(Gt(t,e,o),Ji(t,e,o))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var o=ln(),c=Qa(o);c.tag=1,c.payload=t,l!=null&&(c.callback=l),t=Ya(e,c,o),t!==null&&(Gt(t,e,o),Ji(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=ln(),o=Qa(l);o.tag=2,t!=null&&(o.callback=t),t=Ya(e,o,l),t!==null&&(Gt(t,e,l),Ji(t,e,l))}};function kg(e,t,l,o,c,f,x){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,x):t.prototype&&t.prototype.isPureReactComponent?!Gi(l,o)||!Gi(c,f):!0}function Dg(e,t,l,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,o),t.state!==e&&Id.enqueueReplaceState(t,t.state,null)}function ql(e,t){var l=t;if("ref"in t){l={};for(var o in t)o!=="ref"&&(l[o]=t[o])}if(e=e.defaultProps){l===t&&(l=b({},l));for(var c in e)l[c]===void 0&&(l[c]=e[c])}return l}function Og(e){gs(e)}function zg(e){console.error(e)}function Lg(e){gs(e)}function Bs(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Ug(e,t,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function ef(e,t,l){return l=Qa(l),l.tag=3,l.payload={element:null},l.callback=function(){Bs(e,t)},l}function Hg(e){return e=Qa(e),e.tag=3,e}function qg(e,t,l,o){var c=l.type.getDerivedStateFromError;if(typeof c=="function"){var f=o.value;e.payload=function(){return c(f)},e.callback=function(){Ug(t,l,o)}}var x=l.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(e.callback=function(){Ug(t,l,o),typeof c!="function"&&(Za===null?Za=new Set([this]):Za.add(this));var N=o.stack;this.componentDidCatch(o.value,{componentStack:N!==null?N:""})})}function jE(e,t,l,o,c){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=l.alternate,t!==null&&Cr(t,l,c,!0),l=en.current,l!==null){switch(l.tag){case 31:case 13:return gn===null?Ws():l.alternate===null&&nt===0&&(nt=3),l.flags&=-257,l.flags|=65536,l.lanes=c,o===_s?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([o]):t.add(o),Cf(e,o,c)),!1;case 22:return l.flags|=65536,o===_s?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([o]):l.add(o)),Cf(e,o,c)),!1}throw Error(i(435,l.tag))}return Cf(e,o,c),Ws(),!1}if(ze)return t=en.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=c,o!==bd&&(e=Error(i(422),{cause:o}),Xi(hn(e,l)))):(o!==bd&&(t=Error(i(423),{cause:o}),Xi(hn(t,l))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=hn(o,l),c=ef(e.stateNode,o,c),Md(e,c),nt!==4&&(nt=2)),!1;var f=Error(i(520),{cause:o});if(f=hn(f,l),fo===null?fo=[f]:fo.push(f),nt!==4&&(nt=2),t===null)return!0;o=hn(o,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=c&-c,l.lanes|=e,e=ef(l.stateNode,o,e),Md(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"&&(Za===null||!Za.has(f))))return l.flags|=65536,c&=-c,l.lanes|=c,c=Hg(c),qg(c,e,l,o),Md(l,c),!1}l=l.return}while(l!==null);return!1}var tf=Error(i(461)),dt=!1;function Et(e,t,l,o){t.child=e===null?Gv(t,null,l,o):Ul(t,e.child,l,o)}function Bg(e,t,l,o,c){l=l.render;var f=t.ref;if("ref"in o){var x={};for(var N in o)N!=="ref"&&(x[N]=o[N])}else x=o;return Dl(t),o=Ld(e,t,l,x,f,c),N=Ud(),e!==null&&!dt?(Hd(e,t,c),da(e,t,c)):(ze&&N&&gd(t),t.flags|=1,Et(e,t,o,c),t.child)}function Qg(e,t,l,o,c){if(e===null){var f=l.type;return typeof f=="function"&&!md(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Yg(e,t,f,o,c)):(e=ws(l.type,null,o,t,t.mode,c),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!cf(e,c)){var x=f.memoizedProps;if(l=l.compare,l=l!==null?l:Gi,l(x,o)&&e.ref===t.ref)return da(e,t,c)}return t.flags|=1,e=ra(f,o),e.ref=t.ref,e.return=t,t.child=e}function Yg(e,t,l,o,c){if(e!==null){var f=e.memoizedProps;if(Gi(f,o)&&e.ref===t.ref)if(dt=!1,t.pendingProps=o=f,cf(e,c))(e.flags&131072)!==0&&(dt=!0);else return t.lanes=e.lanes,da(e,t,c)}return nf(e,t,l,o,c)}function Gg(e,t,l,o){var c=o.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(o=t.child=e.child,c=0;o!==null;)c=c|o.lanes|o.childLanes,o=o.sibling;o=c&~f}else o=0,t.child=null;return Vg(e,t,f,l,o)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ns(t,f!==null?f.cachePool:null),f!==null?Xv(t,f):kd(),$v(t);else return o=t.lanes=536870912,Vg(e,t,f!==null?f.baseLanes|l:l,l,o)}else f!==null?(Ns(t,f.cachePool),Xv(t,f),Va(),t.memoizedState=null):(e!==null&&Ns(t,null),kd(),Va());return Et(e,t,c,l),t.child}function lo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vg(e,t,l,o,c){var f=Cd();return f=f===null?null:{parent:ut._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Ns(t,null),kd(),$v(t),e!==null&&Cr(e,t,o,!0),t.childLanes=c,null}function Qs(e,t){return t=Gs({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Kg(e,t,l){return Ul(t,e.child,null,l),e=Qs(t,t.pendingProps),e.flags|=2,tn(t),t.memoizedState=null,e}function EE(e,t,l){var o=t.pendingProps,c=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(o.mode==="hidden")return e=Qs(t,o),t.lanes=536870912,lo(null,e);if(Od(t),(e=Fe)?(e=a0(e,vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:qn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},l=Rv(e),l.return=t,t.child=l,St=t,Fe=null)):e=null,e===null)throw Ha(t);return t.lanes=536870912,null}return Qs(t,o)}var f=e.memoizedState;if(f!==null){var x=f.dehydrated;if(Od(t),c)if(t.flags&256)t.flags&=-257,t=Kg(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(dt||Cr(e,t,l,!1),c=(l&e.childLanes)!==0,dt||c){if(o=Ze,o!==null&&(x=zp(o,l),x!==0&&x!==f.retryLane))throw f.retryLane=x,Tl(e,x),Gt(o,e,x),tf;Ws(),t=Kg(e,t,l)}else e=f.treeContext,Fe=yn(x.nextSibling),St=t,ze=!0,Ua=null,vn=!1,e!==null&&Av(t,e),t=Qs(t,o),t.flags|=4096;return t}return e=ra(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ys(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 nf(e,t,l,o,c){return Dl(t),l=Ld(e,t,l,o,void 0,c),o=Ud(),e!==null&&!dt?(Hd(e,t,c),da(e,t,c)):(ze&&o&&gd(t),t.flags|=1,Et(e,t,l,c),t.child)}function Xg(e,t,l,o,c,f){return Dl(t),t.updateQueue=null,l=Fv(t,o,l,c),Zv(e),o=Ud(),e!==null&&!dt?(Hd(e,t,f),da(e,t,f)):(ze&&o&&gd(t),t.flags|=1,Et(e,t,l,f),t.child)}function $g(e,t,l,o,c){if(Dl(t),t.stateNode===null){var f=Sr,x=l.contextType;typeof x=="object"&&x!==null&&(f=jt(x)),f=new l(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=Id,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},Rd(t),x=l.contextType,f.context=typeof x=="object"&&x!==null?jt(x):Sr,f.state=t.memoizedState,x=l.getDerivedStateFromProps,typeof x=="function"&&(Wd(t,l,x,o),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(x=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),x!==f.state&&Id.enqueueReplaceState(f,f.state,null),Ii(t,o,f,c),Wi(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){f=t.stateNode;var N=t.memoizedProps,M=ql(l,N);f.props=M;var Q=f.context,F=l.contextType;x=Sr,typeof F=="object"&&F!==null&&(x=jt(F));var J=l.getDerivedStateFromProps;F=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,F||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(N||Q!==x)&&Dg(t,f,o,x),Ba=!1;var Y=t.memoizedState;f.state=Y,Ii(t,o,f,c),Wi(),Q=t.memoizedState,N||Y!==Q||Ba?(typeof J=="function"&&(Wd(t,l,J,o),Q=t.memoizedState),(M=Ba||kg(t,l,M,o,Y,Q,x))?(F||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=Q),f.props=o,f.state=Q,f.context=x,o=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,Td(e,t),x=t.memoizedProps,F=ql(l,x),f.props=F,J=t.pendingProps,Y=f.context,Q=l.contextType,M=Sr,typeof Q=="object"&&Q!==null&&(M=jt(Q)),N=l.getDerivedStateFromProps,(Q=typeof N=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x!==J||Y!==M)&&Dg(t,f,o,M),Ba=!1,Y=t.memoizedState,f.state=Y,Ii(t,o,f,c),Wi();var K=t.memoizedState;x!==J||Y!==K||Ba||e!==null&&e.dependencies!==null&&js(e.dependencies)?(typeof N=="function"&&(Wd(t,l,N,o),K=t.memoizedState),(F=Ba||kg(t,l,F,o,Y,K,M)||e!==null&&e.dependencies!==null&&js(e.dependencies))?(Q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,K,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,K,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=K),f.props=o,f.state=K,f.context=M,o=F):(typeof f.componentDidUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||x===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,Ys(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=Ul(t,e.child,null,c),t.child=Ul(t,null,l,c)):Et(e,t,l,c),t.memoizedState=f.state,e=t.child):e=da(e,t,c),e}function Zg(e,t,l,o){return Al(),t.flags|=256,Et(e,t,l,o),t.child}var af={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lf(e){return{baseLanes:e,cachePool:Uv()}}function rf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=an),e}function Fg(e,t,l){var o=t.pendingProps,c=!1,f=(t.flags&128)!==0,x;if((x=f)||(x=e!==null&&e.memoizedState===null?!1:(it.current&2)!==0),x&&(c=!0,t.flags&=-129),x=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(c?Ga(t):Va(),(e=Fe)?(e=a0(e,vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:La!==null?{id:qn,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},l=Rv(e),l.return=t,t.child=l,St=t,Fe=null)):e=null,e===null)throw Ha(t);return Yf(e)?t.lanes=32:t.lanes=536870912,null}var N=o.children;return o=o.fallback,c?(Va(),c=t.mode,N=Gs({mode:"hidden",children:N},c),o=Ml(o,c,l,null),N.return=t,o.return=t,N.sibling=o,t.child=N,o=t.child,o.memoizedState=lf(l),o.childLanes=rf(e,x,l),t.memoizedState=af,lo(null,o)):(Ga(t),of(t,N))}var M=e.memoizedState;if(M!==null&&(N=M.dehydrated,N!==null)){if(f)t.flags&256?(Ga(t),t.flags&=-257,t=sf(e,t,l)):t.memoizedState!==null?(Va(),t.child=e.child,t.flags|=128,t=null):(Va(),N=o.fallback,c=t.mode,o=Gs({mode:"visible",children:o.children},c),N=Ml(N,c,l,null),N.flags|=2,o.return=t,N.return=t,o.sibling=N,t.child=o,Ul(t,e.child,null,l),o=t.child,o.memoizedState=lf(l),o.childLanes=rf(e,x,l),t.memoizedState=af,t=lo(null,o));else if(Ga(t),Yf(N)){if(x=N.nextSibling&&N.nextSibling.dataset,x)var Q=x.dgst;x=Q,o=Error(i(419)),o.stack="",o.digest=x,Xi({value:o,source:null,stack:null}),t=sf(e,t,l)}else if(dt||Cr(e,t,l,!1),x=(l&e.childLanes)!==0,dt||x){if(x=Ze,x!==null&&(o=zp(x,l),o!==0&&o!==M.retryLane))throw M.retryLane=o,Tl(e,o),Gt(x,e,o),tf;Qf(N)||Ws(),t=sf(e,t,l)}else Qf(N)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Fe=yn(N.nextSibling),St=t,ze=!0,Ua=null,vn=!1,e!==null&&Av(t,e),t=of(t,o.children),t.flags|=4096);return t}return c?(Va(),N=o.fallback,c=t.mode,M=e.child,Q=M.sibling,o=ra(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,Q!==null?N=ra(Q,N):(N=Ml(N,c,l,null),N.flags|=2),N.return=t,o.return=t,o.sibling=N,t.child=o,lo(null,o),o=t.child,N=e.child.memoizedState,N===null?N=lf(l):(c=N.cachePool,c!==null?(M=ut._currentValue,c=c.parent!==M?{parent:M,pool:M}:c):c=Uv(),N={baseLanes:N.baseLanes|l,cachePool:c}),o.memoizedState=N,o.childLanes=rf(e,x,l),t.memoizedState=af,lo(e.child,o)):(Ga(t),l=e.child,e=l.sibling,l=ra(l,{mode:"visible",children:o.children}),l.return=t,l.sibling=null,e!==null&&(x=t.deletions,x===null?(t.deletions=[e],t.flags|=16):x.push(e)),t.child=l,t.memoizedState=null,l)}function of(e,t){return t=Gs({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Gs(e,t){return e=It(22,e,null,t),e.lanes=0,e}function sf(e,t,l){return Ul(t,e.child,null,l),e=of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Pg(e,t,l){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),Sd(e.return,t,l)}function uf(e,t,l,o,c,f){var x=e.memoizedState;x===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:c,treeForkCount:f}:(x.isBackwards=t,x.rendering=null,x.renderingStartTime=0,x.last=o,x.tail=l,x.tailMode=c,x.treeForkCount=f)}function Jg(e,t,l){var o=t.pendingProps,c=o.revealOrder,f=o.tail;o=o.children;var x=it.current,N=(x&2)!==0;if(N?(x=x&1|2,t.flags|=128):x&=1,ee(it,x),Et(e,t,o,l),o=ze?Ki:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pg(e,l,t);else if(e.tag===19)Pg(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(c){case"forwards":for(l=t.child,c=null;l!==null;)e=l.alternate,e!==null&&As(e)===null&&(c=l),l=l.sibling;l=c,l===null?(c=t.child,t.child=null):(c=l.sibling,l.sibling=null),uf(t,!1,c,l,f,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,c=t.child,t.child=null;c!==null;){if(e=c.alternate,e!==null&&As(e)===null){t.child=c;break}e=c.sibling,c.sibling=l,l=c,c=e}uf(t,!0,l,null,f,o);break;case"together":uf(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function da(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),$a|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Cr(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=ra(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ra(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function cf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&js(e)))}function NE(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),qa(t,ut,e.memoizedState.cache),Al();break;case 27:case 5:Ne(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:qa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Od(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ga(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Fg(e,t,l):(Ga(t),e=da(e,t,l),e!==null?e.sibling:null);Ga(t);break;case 19:var c=(e.flags&128)!==0;if(o=(l&t.childLanes)!==0,o||(Cr(e,t,l,!1),o=(l&t.childLanes)!==0),c){if(o)return Jg(e,t,l);t.flags|=128}if(c=t.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ee(it,it.current),o)break;return null;case 22:return t.lanes=0,Gg(e,t,l,t.pendingProps);case 24:qa(t,ut,e.memoizedState.cache)}return da(e,t,l)}function Wg(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)dt=!0;else{if(!cf(e,l)&&(t.flags&128)===0)return dt=!1,NE(e,t,l);dt=(e.flags&131072)!==0}else dt=!1,ze&&(t.flags&1048576)!==0&&Mv(t,Ki,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=zl(t.elementType),t.type=e,typeof e=="function")md(e)?(o=ql(e,o),t.tag=1,t=$g(null,t,e,o,l)):(t.tag=0,t=nf(null,t,e,o,l));else{if(e!=null){var c=e.$$typeof;if(c===D){t.tag=11,t=Bg(null,t,e,o,l);break e}else if(c===q){t.tag=14,t=Qg(null,t,e,o,l);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return nf(e,t,t.type,t.pendingProps,l);case 1:return o=t.type,c=ql(o,t.pendingProps),$g(e,t,o,c,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;c=f.element,Td(e,t),Ii(t,o,null,l);var x=t.memoizedState;if(o=x.cache,qa(t,ut,o),o!==f.cache&&jd(t,[ut],l,!0),Wi(),o=x.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:x.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Zg(e,t,o,l);break e}else if(o!==c){c=hn(Error(i(424)),t),Xi(c),t=Zg(e,t,o,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Fe=yn(e.firstChild),St=t,ze=!0,Ua=null,vn=!0,l=Gv(t,null,o,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Al(),o===c){t=da(e,t,l);break e}Et(e,t,o,l)}t=t.child}return t;case 26:return Ys(e,t),e===null?(l=u0(t.type,null,t.pendingProps,null))?t.memoizedState=l:ze||(l=t.type,e=t.pendingProps,o=ru(je.current).createElement(l),o[wt]=t,o[Ut]=e,Nt(o,l,e),gt(o),t.stateNode=o):t.memoizedState=u0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&ze&&(o=t.stateNode=i0(t.type,t.pendingProps,je.current),St=t,vn=!0,c=Fe,Wa(t.type)?(Gf=c,Fe=yn(o.firstChild)):Fe=c),Et(e,t,t.pendingProps.children,l),Ys(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((c=o=Fe)&&(o=tN(o,t.type,t.pendingProps,vn),o!==null?(t.stateNode=o,St=t,Fe=yn(o.firstChild),vn=!1,c=!0):c=!1),c||Ha(t)),Ne(t),c=t.type,f=t.pendingProps,x=e!==null?e.memoizedProps:null,o=f.children,Hf(c,f)?o=null:x!==null&&Hf(c,x)&&(t.flags|=32),t.memoizedState!==null&&(c=Ld(e,t,vE,null,null,l),xo._currentValue=c),Ys(e,t),Et(e,t,o,l),t.child;case 6:return e===null&&ze&&((e=l=Fe)&&(l=nN(l,t.pendingProps,vn),l!==null?(t.stateNode=l,St=t,Fe=null,e=!0):e=!1),e||Ha(t)),null;case 13:return Fg(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ul(t,null,o,l):Et(e,t,o,l),t.child;case 11:return Bg(e,t,t.type,t.pendingProps,l);case 7:return Et(e,t,t.pendingProps,l),t.child;case 8:return Et(e,t,t.pendingProps.children,l),t.child;case 12:return Et(e,t,t.pendingProps.children,l),t.child;case 10:return o=t.pendingProps,qa(t,t.type,o.value),Et(e,t,o.children,l),t.child;case 9:return c=t.type._context,o=t.pendingProps.children,Dl(t),c=jt(c),o=o(c),t.flags|=1,Et(e,t,o,l),t.child;case 14:return Qg(e,t,t.type,t.pendingProps,l);case 15:return Yg(e,t,t.type,t.pendingProps,l);case 19:return Jg(e,t,l);case 31:return EE(e,t,l);case 22:return Gg(e,t,l,t.pendingProps);case 24:return Dl(t),o=jt(ut),e===null?(c=Cd(),c===null&&(c=Ze,f=Ed(),c.pooledCache=f,f.refCount++,f!==null&&(c.pooledCacheLanes|=l),c=f),t.memoizedState={parent:o,cache:c},Rd(t),qa(t,ut,c)):((e.lanes&l)!==0&&(Td(e,t),Ii(t,null,null,l),Wi()),c=e.memoizedState,f=t.memoizedState,c.parent!==o?(c={parent:o,cache:o},t.memoizedState=c,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=c),qa(t,ut,o)):(o=f.cache,qa(t,ut,o),o!==c.cache&&jd(t,[ut],l,!0))),Et(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function fa(e){e.flags|=4}function df(e,t,l,o,c){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(c&335544128)===c)if(e.stateNode.complete)e.flags|=8192;else if(Ny())e.flags|=8192;else throw Ll=_s,_d}else e.flags&=-16777217}function Ig(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!m0(t))if(Ny())e.flags|=8192;else throw Ll=_s,_d}function Vs(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?kp():536870912,e.lanes|=t,Hr|=t)}function ro(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var o=null;l!==null;)l.alternate!==null&&(o=l),l=l.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(t)for(var c=e.child;c!==null;)l|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)l|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=l,t}function CE(e,t,l){var o=t.pendingProps;switch(yd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pe(t),null;case 1:return Pe(t),null;case 3:return l=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),sa(ut),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Nr(t)?fa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,xd())),Pe(t),null;case 26:var c=t.type,f=t.memoizedState;return e===null?(fa(t),f!==null?(Pe(t),Ig(t,f)):(Pe(t),df(t,c,null,o,l))):f?f!==e.memoizedState?(fa(t),Pe(t),Ig(t,f)):(Pe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&fa(t),Pe(t),df(t,c,e,o,l)),null;case 27:if(Ue(t),l=je.current,c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&fa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Pe(t),null}e=le.current,Nr(t)?kv(t):(e=i0(c,o,l),t.stateNode=e,fa(t))}return Pe(t),null;case 5:if(Ue(t),c=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&fa(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return Pe(t),null}if(f=le.current,Nr(t))kv(t);else{var x=ru(je.current);switch(f){case 1:f=x.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:f=x.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":f=x.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":f=x.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":f=x.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?x.createElement("select",{is:o.is}):x.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?x.createElement(c,{is:o.is}):x.createElement(c)}}f[wt]=t,f[Ut]=o;e:for(x=t.child;x!==null;){if(x.tag===5||x.tag===6)f.appendChild(x.stateNode);else if(x.tag!==4&&x.tag!==27&&x.child!==null){x.child.return=x,x=x.child;continue}if(x===t)break e;for(;x.sibling===null;){if(x.return===null||x.return===t)break e;x=x.return}x.sibling.return=x.return,x=x.sibling}t.stateNode=f;e:switch(Nt(f,c,o),c){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&fa(t)}}return Pe(t),df(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&fa(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=je.current,Nr(t)){if(e=t.stateNode,l=t.memoizedProps,o=null,c=St,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[wt]=t,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||Fy(e.nodeValue,l)),e||Ha(t,!0)}else e=ru(e).createTextNode(o),e[wt]=t,t.stateNode=e}return Pe(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(o=Nr(t),l!==null){if(e===null){if(!o)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[wt]=t}else Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),e=!1}else l=xd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(tn(t),t):(tn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Pe(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=Nr(t),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(i(318));if(c=t.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(i(317));c[wt]=t}else Al(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Pe(t),c=!1}else c=xd(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return t.flags&256?(tn(t),t):(tn(t),null)}return tn(t),(t.flags&128)!==0?(t.lanes=l,t):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=t.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==c&&(o.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Vs(t,t.updateQueue),Pe(t),null);case 4:return ye(),e===null&&Df(t.stateNode.containerInfo),Pe(t),null;case 10:return sa(t.type),Pe(t),null;case 19:if(Z(it),o=t.memoizedState,o===null)return Pe(t),null;if(c=(t.flags&128)!==0,f=o.rendering,f===null)if(c)ro(o,!1);else{if(nt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=As(e),f!==null){for(t.flags|=128,ro(o,!1),e=f.updateQueue,t.updateQueue=e,Vs(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)_v(l,e),l=l.sibling;return ee(it,it.current&1|2),ze&&ia(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ft()>Fs&&(t.flags|=128,c=!0,ro(o,!1),t.lanes=4194304)}else{if(!c)if(e=As(f),e!==null){if(t.flags|=128,c=!0,e=e.updateQueue,t.updateQueue=e,Vs(t,e),ro(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!ze)return Pe(t),null}else 2*Ft()-o.renderingStartTime>Fs&&l!==536870912&&(t.flags|=128,c=!0,ro(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ft(),e.sibling=null,l=it.current,ee(it,c?l&1|2:l&1),ze&&ia(t,o.treeForkCount),e):(Pe(t),null);case 22:case 23:return tn(t),Dd(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(l&536870912)!==0&&(t.flags&128)===0&&(Pe(t),t.subtreeFlags&6&&(t.flags|=8192)):Pe(t),l=t.updateQueue,l!==null&&Vs(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(t.flags|=2048),e!==null&&Z(Ol),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),sa(ut),Pe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function _E(e,t){switch(yd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return sa(ut),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ue(t),null;case 31:if(t.memoizedState!==null){if(tn(t),t.alternate===null)throw Error(i(340));Al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(tn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Al()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(it),null;case 4:return ye(),null;case 10:return sa(t.type),null;case 22:case 23:return tn(t),Dd(),e!==null&&Z(Ol),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return sa(ut),null;case 25:return null;default:return null}}function ey(e,t){switch(yd(t),t.tag){case 3:sa(ut),ye();break;case 26:case 27:case 5:Ue(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&tn(t);break;case 13:tn(t);break;case 19:Z(it);break;case 10:sa(t.type);break;case 22:case 23:tn(t),Dd(),e!==null&&Z(Ol);break;case 24:sa(ut)}}function io(e,t){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){o=void 0;var f=l.create,x=l.inst;o=f(),x.destroy=o}l=l.next}while(l!==c)}}catch(N){Ve(t,t.return,N)}}function Ka(e,t,l){try{var o=t.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var f=c.next;o=f;do{if((o.tag&e)===e){var x=o.inst,N=x.destroy;if(N!==void 0){x.destroy=void 0,c=t;var M=l,Q=N;try{Q()}catch(F){Ve(c,M,F)}}}o=o.next}while(o!==f)}}catch(F){Ve(t,t.return,F)}}function ty(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Kv(t,l)}catch(o){Ve(e,e.return,o)}}}function ny(e,t,l){l.props=ql(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Ve(e,t,o)}}function oo(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof l=="function"?e.refCleanup=l(o):l.current=o}}catch(c){Ve(e,t,c)}}function Qn(e,t){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(c){Ve(e,t,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(c){Ve(e,t,c)}else l.current=null}function ay(e){var t=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(c){Ve(e,e.return,c)}}function ff(e,t,l){try{var o=e.stateNode;FE(o,e.type,l,t),o[Ut]=t}catch(c){Ve(e,e.return,c)}}function ly(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wa(e.type)||e.tag===4}function hf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ly(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&&Wa(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 mf(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=aa));else if(o!==4&&(o===27&&Wa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(mf(e,t,l),e=e.sibling;e!==null;)mf(e,t,l),e=e.sibling}function Ks(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(o!==4&&(o===27&&Wa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ks(e,t,l),e=e.sibling;e!==null;)Ks(e,t,l),e=e.sibling}function ry(e){var t=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,c=t.attributes;c.length;)t.removeAttributeNode(c[0]);Nt(t,o,l),t[wt]=e,t[Ut]=l}catch(f){Ve(e,e.return,f)}}var ha=!1,ft=!1,pf=!1,iy=typeof WeakSet=="function"?WeakSet:Set,yt=null;function RE(e,t){if(e=e.containerInfo,Lf=fu,e=yv(e),od(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var c=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var x=0,N=-1,M=-1,Q=0,F=0,J=e,Y=null;t:for(;;){for(var K;J!==l||c!==0&&J.nodeType!==3||(N=x+c),J!==f||o!==0&&J.nodeType!==3||(M=x+o),J.nodeType===3&&(x+=J.nodeValue.length),(K=J.firstChild)!==null;)Y=J,J=K;for(;;){if(J===e)break t;if(Y===l&&++Q===c&&(N=x),Y===f&&++F===o&&(M=x),(K=J.nextSibling)!==null)break;J=Y,Y=J.parentNode}J=K}l=N===-1||M===-1?null:{start:N,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Uf={focusedElem:e,selectionRange:l},fu=!1,yt=t;yt!==null;)if(t=yt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,yt=e;else for(;yt!==null;){switch(t=yt,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++)c=e[l],c.ref.impl=c.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,c=f.memoizedProps,f=f.memoizedState,o=l.stateNode;try{var he=ql(l.type,c);e=o.getSnapshotBeforeUpdate(he,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ve(l,l.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Bf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Bf(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,yt=e;break}yt=t.return}}function oy(e,t,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:pa(e,l),o&4&&io(5,l);break;case 1:if(pa(e,l),o&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(x){Ve(l,l.return,x)}else{var c=ql(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(c,t,e.__reactInternalSnapshotBeforeUpdate)}catch(x){Ve(l,l.return,x)}}o&64&&ty(l),o&512&&oo(l,l.return);break;case 3:if(pa(e,l),o&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Kv(e,t)}catch(x){Ve(l,l.return,x)}}break;case 27:t===null&&o&4&&ry(l);case 26:case 5:pa(e,l),t===null&&o&4&&ay(l),o&512&&oo(l,l.return);break;case 12:pa(e,l);break;case 31:pa(e,l),o&4&&cy(e,l);break;case 13:pa(e,l),o&4&&dy(e,l),o&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=UE.bind(null,l),aN(e,l))));break;case 22:if(o=l.memoizedState!==null||ha,!o){t=t!==null&&t.memoizedState!==null||ft,c=ha;var f=ft;ha=o,(ft=t)&&!f?va(e,l,(l.subtreeFlags&8772)!==0):pa(e,l),ha=c,ft=f}break;case 30:break;default:pa(e,l)}}function sy(e){var t=e.alternate;t!==null&&(e.alternate=null,sy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Vc(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 Je=null,qt=!1;function ma(e,t,l){for(l=l.child;l!==null;)uy(e,t,l),l=l.sibling}function uy(e,t,l){if(Pt&&typeof Pt.onCommitFiberUnmount=="function")try{Pt.onCommitFiberUnmount(Ai,l)}catch{}switch(l.tag){case 26:ft||Qn(l,t),ma(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:ft||Qn(l,t);var o=Je,c=qt;Wa(l.type)&&(Je=l.stateNode,qt=!1),ma(e,t,l),go(l.stateNode),Je=o,qt=c;break;case 5:ft||Qn(l,t);case 6:if(o=Je,c=qt,Je=null,ma(e,t,l),Je=o,qt=c,Je!==null)if(qt)try{(Je.nodeType===9?Je.body:Je.nodeName==="HTML"?Je.ownerDocument.body:Je).removeChild(l.stateNode)}catch(f){Ve(l,t,f)}else try{Je.removeChild(l.stateNode)}catch(f){Ve(l,t,f)}break;case 18:Je!==null&&(qt?(e=Je,t0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),Xr(e)):t0(Je,l.stateNode));break;case 4:o=Je,c=qt,Je=l.stateNode.containerInfo,qt=!0,ma(e,t,l),Je=o,qt=c;break;case 0:case 11:case 14:case 15:Ka(2,l,t),ft||Ka(4,l,t),ma(e,t,l);break;case 1:ft||(Qn(l,t),o=l.stateNode,typeof o.componentWillUnmount=="function"&&ny(l,t,o)),ma(e,t,l);break;case 21:ma(e,t,l);break;case 22:ft=(o=ft)||l.memoizedState!==null,ma(e,t,l),ft=o;break;default:ma(e,t,l)}}function cy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Xr(e)}catch(l){Ve(t,t.return,l)}}}function dy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Xr(e)}catch(l){Ve(t,t.return,l)}}function TE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new iy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new iy),t;default:throw Error(i(435,e.tag))}}function Xs(e,t){var l=TE(e);t.forEach(function(o){if(!l.has(o)){l.add(o);var c=HE.bind(null,e,o);o.then(c,c)}})}function Bt(e,t){var l=t.deletions;if(l!==null)for(var o=0;o<l.length;o++){var c=l[o],f=e,x=t,N=x;e:for(;N!==null;){switch(N.tag){case 27:if(Wa(N.type)){Je=N.stateNode,qt=!1;break e}break;case 5:Je=N.stateNode,qt=!1;break e;case 3:case 4:Je=N.stateNode.containerInfo,qt=!0;break e}N=N.return}if(Je===null)throw Error(i(160));uy(f,x,c),Je=null,qt=!1,f=c.alternate,f!==null&&(f.return=null),c.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)fy(t,e),t=t.sibling}var _n=null;function fy(e,t){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(t,e),Qt(e),o&4&&(Ka(3,e,e.return),io(3,e),Ka(5,e,e.return));break;case 1:Bt(t,e),Qt(e),o&512&&(ft||l===null||Qn(l,l.return)),o&64&&ha&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var c=_n;if(Bt(t,e),Qt(e),o&512&&(ft||l===null||Qn(l,l.return)),o&4){var f=l!==null?l.memoizedState:null;if(o=e.memoizedState,l===null)if(o===null)if(e.stateNode===null){e:{o=e.type,l=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":f=c.getElementsByTagName("title")[0],(!f||f[Oi]||f[wt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=c.createElement(o),c.head.insertBefore(f,c.querySelector("head > title"))),Nt(f,o,l),f[wt]=e,gt(f),o=f;break e;case"link":var x=f0("link","href",c).get(o+(l.href||""));if(x){for(var N=0;N<x.length;N++)if(f=x[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)){x.splice(N,1);break t}}f=c.createElement(o),Nt(f,o,l),c.head.appendChild(f);break;case"meta":if(x=f0("meta","content",c).get(o+(l.content||""))){for(N=0;N<x.length;N++)if(f=x[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)){x.splice(N,1);break t}}f=c.createElement(o),Nt(f,o,l),c.head.appendChild(f);break;default:throw Error(i(468,o))}f[wt]=e,gt(f),o=f}e.stateNode=o}else h0(c,e.type,e.stateNode);else e.stateNode=d0(c,o,e.memoizedProps);else f!==o?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,o===null?h0(c,e.type,e.stateNode):d0(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&ff(e,e.memoizedProps,l.memoizedProps)}break;case 27:Bt(t,e),Qt(e),o&512&&(ft||l===null||Qn(l,l.return)),l!==null&&o&4&&ff(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Bt(t,e),Qt(e),o&512&&(ft||l===null||Qn(l,l.return)),e.flags&32){c=e.stateNode;try{pr(c,"")}catch(he){Ve(e,e.return,he)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,ff(e,c,l!==null?l.memoizedProps:c)),o&1024&&(pf=!0);break;case 6:if(Bt(t,e),Qt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(he){Ve(e,e.return,he)}}break;case 3:if(su=null,c=_n,_n=iu(t.containerInfo),Bt(t,e),_n=c,Qt(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{Xr(t.containerInfo)}catch(he){Ve(e,e.return,he)}pf&&(pf=!1,hy(e));break;case 4:o=_n,_n=iu(e.stateNode.containerInfo),Bt(t,e),Qt(e),_n=o;break;case 12:Bt(t,e),Qt(e);break;case 31:Bt(t,e),Qt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Xs(e,o)));break;case 13:Bt(t,e),Qt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Zs=Ft()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Xs(e,o)));break;case 22:c=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,Q=ha,F=ft;if(ha=Q||c,ft=F||M,Bt(t,e),ft=F,ha=Q,Qt(e),o&8192)e:for(t=e.stateNode,t._visibility=c?t._visibility&-2:t._visibility|1,c&&(l===null||M||ha||ft||Bl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){M=l=t;try{if(f=M.stateNode,c)x=f.style,typeof x.setProperty=="function"?x.setProperty("display","none","important"):x.display="none";else{N=M.stateNode;var J=M.memoizedProps.style,Y=J!=null&&J.hasOwnProperty("display")?J.display:null;N.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(he){Ve(M,M.return,he)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=c?"":M.memoizedProps}catch(he){Ve(M,M.return,he)}}}else if(t.tag===18){if(l===null){M=t;try{var K=M.stateNode;c?n0(K,!0):n0(M.stateNode,!1)}catch(he){Ve(M,M.return,he)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,Xs(e,l))));break;case 19:Bt(t,e),Qt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Xs(e,o)));break;case 30:break;case 21:break;default:Bt(t,e),Qt(e)}}function Qt(e){var t=e.flags;if(t&2){try{for(var l,o=e.return;o!==null;){if(ly(o)){l=o;break}o=o.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var c=l.stateNode,f=hf(e);Ks(e,f,c);break;case 5:var x=l.stateNode;l.flags&32&&(pr(x,""),l.flags&=-33);var N=hf(e);Ks(e,N,x);break;case 3:case 4:var M=l.stateNode.containerInfo,Q=hf(e);mf(e,Q,M);break;default:throw Error(i(161))}}catch(F){Ve(e,e.return,F)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;hy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)oy(e,t.alternate,t),t=t.sibling}function Bl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ka(4,t,t.return),Bl(t);break;case 1:Qn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ny(t,t.return,l),Bl(t);break;case 27:go(t.stateNode);case 26:case 5:Qn(t,t.return),Bl(t);break;case 22:t.memoizedState===null&&Bl(t);break;case 30:Bl(t);break;default:Bl(t)}e=e.sibling}}function va(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,c=e,f=t,x=f.flags;switch(f.tag){case 0:case 11:case 15:va(c,f,l),io(4,f);break;case 1:if(va(c,f,l),o=f,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(Q){Ve(o,o.return,Q)}if(o=f,c=o.updateQueue,c!==null){var N=o.stateNode;try{var M=c.shared.hiddenCallbacks;if(M!==null)for(c.shared.hiddenCallbacks=null,c=0;c<M.length;c++)Vv(M[c],N)}catch(Q){Ve(o,o.return,Q)}}l&&x&64&&ty(f),oo(f,f.return);break;case 27:ry(f);case 26:case 5:va(c,f,l),l&&o===null&&x&4&&ay(f),oo(f,f.return);break;case 12:va(c,f,l);break;case 31:va(c,f,l),l&&x&4&&cy(c,f);break;case 13:va(c,f,l),l&&x&4&&dy(c,f);break;case 22:f.memoizedState===null&&va(c,f,l),oo(f,f.return);break;case 30:break;default:va(c,f,l)}t=t.sibling}}function vf(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&&$i(l))}function gf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e))}function Rn(e,t,l,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)my(e,t,l,o),t=t.sibling}function my(e,t,l,o){var c=t.flags;switch(t.tag){case 0:case 11:case 15:Rn(e,t,l,o),c&2048&&io(9,t);break;case 1:Rn(e,t,l,o);break;case 3:Rn(e,t,l,o),c&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&$i(e)));break;case 12:if(c&2048){Rn(e,t,l,o),e=t.stateNode;try{var f=t.memoizedProps,x=f.id,N=f.onPostCommit;typeof N=="function"&&N(x,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ve(t,t.return,M)}}else Rn(e,t,l,o);break;case 31:Rn(e,t,l,o);break;case 13:Rn(e,t,l,o);break;case 23:break;case 22:f=t.stateNode,x=t.alternate,t.memoizedState!==null?f._visibility&2?Rn(e,t,l,o):so(e,t):f._visibility&2?Rn(e,t,l,o):(f._visibility|=2,zr(e,t,l,o,(t.subtreeFlags&10256)!==0||!1)),c&2048&&vf(x,t);break;case 24:Rn(e,t,l,o),c&2048&&gf(t.alternate,t);break;default:Rn(e,t,l,o)}}function zr(e,t,l,o,c){for(c=c&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,x=t,N=l,M=o,Q=x.flags;switch(x.tag){case 0:case 11:case 15:zr(f,x,N,M,c),io(8,x);break;case 23:break;case 22:var F=x.stateNode;x.memoizedState!==null?F._visibility&2?zr(f,x,N,M,c):so(f,x):(F._visibility|=2,zr(f,x,N,M,c)),c&&Q&2048&&vf(x.alternate,x);break;case 24:zr(f,x,N,M,c),c&&Q&2048&&gf(x.alternate,x);break;default:zr(f,x,N,M,c)}t=t.sibling}}function so(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,o=t,c=o.flags;switch(o.tag){case 22:so(l,o),c&2048&&vf(o.alternate,o);break;case 24:so(l,o),c&2048&&gf(o.alternate,o);break;default:so(l,o)}t=t.sibling}}var uo=8192;function Lr(e,t,l){if(e.subtreeFlags&uo)for(e=e.child;e!==null;)py(e,t,l),e=e.sibling}function py(e,t,l){switch(e.tag){case 26:Lr(e,t,l),e.flags&uo&&e.memoizedState!==null&&pN(l,_n,e.memoizedState,e.memoizedProps);break;case 5:Lr(e,t,l);break;case 3:case 4:var o=_n;_n=iu(e.stateNode.containerInfo),Lr(e,t,l),_n=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=uo,uo=16777216,Lr(e,t,l),uo=o):Lr(e,t,l));break;default:Lr(e,t,l)}}function vy(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 co(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];yt=o,yy(o,e)}vy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)gy(e),e=e.sibling}function gy(e){switch(e.tag){case 0:case 11:case 15:co(e),e.flags&2048&&Ka(9,e,e.return);break;case 3:co(e);break;case 12:co(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,$s(e)):co(e);break;default:co(e)}}function $s(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];yt=o,yy(o,e)}vy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ka(8,t,t.return),$s(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,$s(t));break;default:$s(t)}e=e.sibling}}function yy(e,t){for(;yt!==null;){var l=yt;switch(l.tag){case 0:case 11:case 15:Ka(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var o=l.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:$i(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,yt=o;else e:for(l=e;yt!==null;){o=yt;var c=o.sibling,f=o.return;if(sy(o),o===l){yt=null;break e}if(c!==null){c.return=f,yt=c;break e}yt=f}}}var ME={getCacheForType:function(e){var t=jt(ut),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return jt(ut).controller.signal}},AE=typeof WeakMap=="function"?WeakMap:Map,Be=0,Ze=null,Ae=null,De=0,Ge=0,nn=null,Xa=!1,Ur=!1,yf=!1,ga=0,nt=0,$a=0,Ql=0,bf=0,an=0,Hr=0,fo=null,Yt=null,xf=!1,Zs=0,by=0,Fs=1/0,Ps=null,Za=null,mt=0,Fa=null,qr=null,ya=0,wf=0,Sf=null,xy=null,ho=0,jf=null;function ln(){return(Be&2)!==0&&De!==0?De&-De:U.T!==null?Tf():Lp()}function wy(){if(an===0)if((De&536870912)===0||ze){var e=ls;ls<<=1,(ls&3932160)===0&&(ls=262144),an=e}else an=536870912;return e=en.current,e!==null&&(e.flags|=32),an}function Gt(e,t,l){(e===Ze&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)&&(Br(e,0),Pa(e,De,an,!1)),Di(e,l),((Be&2)===0||e!==Ze)&&(e===Ze&&((Be&2)===0&&(Ql|=l),nt===4&&Pa(e,De,an,!1)),Yn(e))}function Sy(e,t,l){if((Be&6)!==0)throw Error(i(327));var o=!l&&(t&127)===0&&(t&e.expiredLanes)===0||ki(e,t),c=o?OE(e,t):Nf(e,t,!0),f=o;do{if(c===0){Ur&&!o&&Pa(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!kE(l)){c=Nf(e,t,!1),f=!1;continue}if(c===2){if(f=t,e.errorRecoveryDisabledLanes&f)var x=0;else x=e.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){t=x;e:{var N=e;c=fo;var M=N.current.memoizedState.isDehydrated;if(M&&(Br(N,x).flags|=256),x=Nf(N,x,!1),x!==2){if(yf&&!M){N.errorRecoveryDisabledLanes|=f,Ql|=f,c=4;break e}f=Yt,Yt=c,f!==null&&(Yt===null?Yt=f:Yt.push.apply(Yt,f))}c=x}if(f=!1,c!==2)continue}}if(c===1){Br(e,0),Pa(e,t,0,!0);break}e:{switch(o=e,f=c,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Pa(o,t,an,!Xa);break e;case 2:Yt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(c=Zs+300-Ft(),10<c)){if(Pa(o,t,an,!Xa),is(o,0,!0)!==0)break e;ya=t,o.timeoutHandle=Iy(jy.bind(null,o,l,Yt,Ps,xf,t,an,Ql,Hr,Xa,f,"Throttled",-0,0),c);break e}jy(o,l,Yt,Ps,xf,t,an,Ql,Hr,Xa,f,null,-0,0)}}break}while(!0);Yn(e)}function jy(e,t,l,o,c,f,x,N,M,Q,F,J,Y,K){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:aa},py(t,f,J);var he=(f&62914560)===f?Zs-Ft():(f&4194048)===f?by-Ft():0;if(he=vN(J,he),he!==null){ya=f,e.cancelPendingCommit=he(Ay.bind(null,e,t,f,l,o,c,x,N,M,F,J,null,Y,K)),Pa(e,f,x,!Q);return}}Ay(e,t,f,l,o,c,x,N,M)}function kE(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var c=l[o],f=c.getSnapshot;c=c.value;try{if(!Wt(f(),c))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 Pa(e,t,l,o){t&=~bf,t&=~Ql,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var c=t;0<c;){var f=31-Jt(c),x=1<<f;o[f]=-1,c&=~x}l!==0&&Dp(e,l,t)}function Js(){return(Be&6)===0?(mo(0),!1):!0}function Ef(){if(Ae!==null){if(Ge===0)var e=Ae.return;else e=Ae,oa=kl=null,qd(e),Mr=null,Fi=0,e=Ae;for(;e!==null;)ey(e.alternate,e),e=e.return;Ae=null}}function Br(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,WE(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ya=0,Ef(),Ze=e,Ae=l=ra(e.current,null),De=t,Ge=0,nn=null,Xa=!1,Ur=ki(e,t),yf=!1,Hr=an=bf=Ql=$a=nt=0,Yt=fo=null,xf=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var c=31-Jt(o),f=1<<c;t|=e[c],o&=~f}return ga=t,ys(),l}function Ey(e,t){_e=null,U.H=ao,t===Tr||t===Cs?(t=Bv(),Ge=3):t===_d?(t=Bv(),Ge=4):Ge=t===tf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,nn=t,Ae===null&&(nt=1,Bs(e,hn(t,e.current)))}function Ny(){var e=en.current;return e===null?!0:(De&4194048)===De?gn===null:(De&62914560)===De||(De&536870912)!==0?e===gn:!1}function Cy(){var e=U.H;return U.H=ao,e===null?ao:e}function _y(){var e=U.A;return U.A=ME,e}function Ws(){nt=4,Xa||(De&4194048)!==De&&en.current!==null||(Ur=!0),($a&134217727)===0&&(Ql&134217727)===0||Ze===null||Pa(Ze,De,an,!1)}function Nf(e,t,l){var o=Be;Be|=2;var c=Cy(),f=_y();(Ze!==e||De!==t)&&(Ps=null,Br(e,t)),t=!1;var x=nt;e:do try{if(Ge!==0&&Ae!==null){var N=Ae,M=nn;switch(Ge){case 8:Ef(),x=6;break e;case 3:case 2:case 9:case 6:en.current===null&&(t=!0);var Q=Ge;if(Ge=0,nn=null,Qr(e,N,M,Q),l&&Ur){x=0;break e}break;default:Q=Ge,Ge=0,nn=null,Qr(e,N,M,Q)}}DE(),x=nt;break}catch(F){Ey(e,F)}while(!0);return t&&e.shellSuspendCounter++,oa=kl=null,Be=o,U.H=c,U.A=f,Ae===null&&(Ze=null,De=0,ys()),x}function DE(){for(;Ae!==null;)Ry(Ae)}function OE(e,t){var l=Be;Be|=2;var o=Cy(),c=_y();Ze!==e||De!==t?(Ps=null,Fs=Ft()+500,Br(e,t)):Ur=ki(e,t);e:do try{if(Ge!==0&&Ae!==null){t=Ae;var f=nn;t:switch(Ge){case 1:Ge=0,nn=null,Qr(e,t,f,1);break;case 2:case 9:if(Hv(f)){Ge=0,nn=null,Ty(t);break}t=function(){Ge!==2&&Ge!==9||Ze!==e||(Ge=7),Yn(e)},f.then(t,t);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Hv(f)?(Ge=0,nn=null,Ty(t)):(Ge=0,nn=null,Qr(e,t,f,7));break;case 5:var x=null;switch(Ae.tag){case 26:x=Ae.memoizedState;case 5:case 27:var N=Ae;if(x?m0(x):N.stateNode.complete){Ge=0,nn=null;var M=N.sibling;if(M!==null)Ae=M;else{var Q=N.return;Q!==null?(Ae=Q,Is(Q)):Ae=null}break t}}Ge=0,nn=null,Qr(e,t,f,5);break;case 6:Ge=0,nn=null,Qr(e,t,f,6);break;case 8:Ef(),nt=6;break e;default:throw Error(i(462))}}zE();break}catch(F){Ey(e,F)}while(!0);return oa=kl=null,U.H=o,U.A=c,Be=l,Ae!==null?0:(Ze=null,De=0,ys(),nt)}function zE(){for(;Ae!==null&&!l2();)Ry(Ae)}function Ry(e){var t=Wg(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?Is(e):Ae=t}function Ty(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Xg(l,t,t.pendingProps,t.type,void 0,De);break;case 11:t=Xg(l,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:qd(t);default:ey(l,t),t=Ae=_v(t,ga),t=Wg(l,t,ga)}e.memoizedProps=e.pendingProps,t===null?Is(e):Ae=t}function Qr(e,t,l,o){oa=kl=null,qd(t),Mr=null,Fi=0;var c=t.return;try{if(jE(e,c,t,l,De)){nt=1,Bs(e,hn(l,e.current)),Ae=null;return}}catch(f){if(c!==null)throw Ae=c,f;nt=1,Bs(e,hn(l,e.current)),Ae=null;return}t.flags&32768?(ze||o===1?e=!0:Ur||(De&536870912)!==0?e=!1:(Xa=e=!0,(o===2||o===9||o===3||o===6)&&(o=en.current,o!==null&&o.tag===13&&(o.flags|=16384))),My(t,e)):Is(t)}function Is(e){var t=e;do{if((t.flags&32768)!==0){My(t,Xa);return}e=t.return;var l=CE(t.alternate,t,ga);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);nt===0&&(nt=5)}function My(e,t){do{var l=_E(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);nt=6,Ae=null}function Ay(e,t,l,o,c,f,x,N,M){e.cancelPendingCommit=null;do eu();while(mt!==0);if((Be&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=fd,m2(e,l,f,x,N,M),e===Ze&&(Ae=Ze=null,De=0),qr=t,Fa=e,ya=l,wf=f,Sf=c,xy=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,qE(ns,function(){return Ly(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,c=W.p,W.p=2,x=Be,Be|=4;try{RE(e,t,l)}finally{Be=x,W.p=c,U.T=o}}mt=1,ky(),Dy(),Oy()}}function ky(){if(mt===1){mt=0;var e=Fa,t=qr,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var o=W.p;W.p=2;var c=Be;Be|=4;try{fy(t,e);var f=Uf,x=yv(e.containerInfo),N=f.focusedElem,M=f.selectionRange;if(x!==N&&N&&N.ownerDocument&&gv(N.ownerDocument.documentElement,N)){if(M!==null&&od(N)){var Q=M.start,F=M.end;if(F===void 0&&(F=Q),"selectionStart"in N)N.selectionStart=Q,N.selectionEnd=Math.min(F,N.value.length);else{var J=N.ownerDocument||document,Y=J&&J.defaultView||window;if(Y.getSelection){var K=Y.getSelection(),he=N.textContent.length,Se=Math.min(M.start,he),$e=M.end===void 0?Se:Math.min(M.end,he);!K.extend&&Se>$e&&(x=$e,$e=Se,Se=x);var z=vv(N,Se),O=vv(N,$e);if(z&&O&&(K.rangeCount!==1||K.anchorNode!==z.node||K.anchorOffset!==z.offset||K.focusNode!==O.node||K.focusOffset!==O.offset)){var B=J.createRange();B.setStart(z.node,z.offset),K.removeAllRanges(),Se>$e?(K.addRange(B),K.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),K.addRange(B))}}}}for(J=[],K=N;K=K.parentNode;)K.nodeType===1&&J.push({element:K,left:K.scrollLeft,top:K.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}}fu=!!Lf,Uf=Lf=null}finally{Be=c,W.p=o,U.T=l}}e.current=t,mt=2}}function Dy(){if(mt===2){mt=0;var e=Fa,t=qr,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var o=W.p;W.p=2;var c=Be;Be|=4;try{oy(e,t.alternate,t)}finally{Be=c,W.p=o,U.T=l}}mt=3}}function Oy(){if(mt===4||mt===3){mt=0,r2();var e=Fa,t=qr,l=ya,o=xy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?mt=5:(mt=0,qr=Fa=null,zy(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Za=null),Yc(l),t=t.stateNode,Pt&&typeof Pt.onCommitFiberRoot=="function")try{Pt.onCommitFiberRoot(Ai,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=U.T,c=W.p,W.p=2,U.T=null;try{for(var f=e.onRecoverableError,x=0;x<o.length;x++){var N=o[x];f(N.value,{componentStack:N.stack})}}finally{U.T=t,W.p=c}}(ya&3)!==0&&eu(),Yn(e),c=e.pendingLanes,(l&261930)!==0&&(c&42)!==0?e===jf?ho++:(ho=0,jf=e):ho=0,mo(0)}}function zy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,$i(t)))}function eu(){return ky(),Dy(),Oy(),Ly()}function Ly(){if(mt!==5)return!1;var e=Fa,t=wf;wf=0;var l=Yc(ya),o=U.T,c=W.p;try{W.p=32>l?32:l,U.T=null,l=Sf,Sf=null;var f=Fa,x=ya;if(mt=0,qr=Fa=null,ya=0,(Be&6)!==0)throw Error(i(331));var N=Be;if(Be|=4,gy(f.current),my(f,f.current,x,l),Be=N,mo(0,!1),Pt&&typeof Pt.onPostCommitFiberRoot=="function")try{Pt.onPostCommitFiberRoot(Ai,f)}catch{}return!0}finally{W.p=c,U.T=o,zy(e,t)}}function Uy(e,t,l){t=hn(l,t),t=ef(e.stateNode,t,2),e=Ya(e,t,2),e!==null&&(Di(e,2),Yn(e))}function Ve(e,t,l){if(e.tag===3)Uy(e,e,l);else for(;t!==null;){if(t.tag===3){Uy(t,e,l);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Za===null||!Za.has(o))){e=hn(l,e),l=Hg(2),o=Ya(t,l,2),o!==null&&(qg(l,o,t,e),Di(o,2),Yn(o));break}}t=t.return}}function Cf(e,t,l){var o=e.pingCache;if(o===null){o=e.pingCache=new AE;var c=new Set;o.set(t,c)}else c=o.get(t),c===void 0&&(c=new Set,o.set(t,c));c.has(l)||(yf=!0,c.add(l),e=LE.bind(null,e,t,l),t.then(e,e))}function LE(e,t,l){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ze===e&&(De&l)===l&&(nt===4||nt===3&&(De&62914560)===De&&300>Ft()-Zs?(Be&2)===0&&Br(e,0):bf|=l,Hr===De&&(Hr=0)),Yn(e)}function Hy(e,t){t===0&&(t=kp()),e=Tl(e,t),e!==null&&(Di(e,t),Yn(e))}function UE(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Hy(e,l)}function HE(e,t){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(l=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),Hy(e,l)}function qE(e,t){return Hc(e,t)}var tu=null,Yr=null,_f=!1,nu=!1,Rf=!1,Ja=0;function Yn(e){e!==Yr&&e.next===null&&(Yr===null?tu=Yr=e:Yr=Yr.next=e),nu=!0,_f||(_f=!0,QE())}function mo(e,t){if(!Rf&&nu){Rf=!0;do for(var l=!1,o=tu;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var f=0;else{var x=o.suspendedLanes,N=o.pingedLanes;f=(1<<31-Jt(42|e)+1)-1,f&=c&~(x&~N),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Yy(o,f))}else f=De,f=is(o,o===Ze?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||ki(o,f)||(l=!0,Yy(o,f));o=o.next}while(l);Rf=!1}}function BE(){qy()}function qy(){nu=_f=!1;var e=0;Ja!==0&&JE()&&(e=Ja);for(var t=Ft(),l=null,o=tu;o!==null;){var c=o.next,f=By(o,t);f===0?(o.next=null,l===null?tu=c:l.next=c,c===null&&(Yr=l)):(l=o,(e!==0||(f&3)!==0)&&(nu=!0)),o=c}mt!==0&&mt!==5||mo(e),Ja!==0&&(Ja=0)}function By(e,t){for(var l=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var x=31-Jt(f),N=1<<x,M=c[x];M===-1?((N&l)===0||(N&o)!==0)&&(c[x]=h2(N,t)):M<=t&&(e.expiredLanes|=N),f&=~N}if(t=Ze,l=De,l=is(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,l===0||e===t&&(Ge===2||Ge===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&qc(o),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||ki(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(o!==null&&qc(o),Yc(l)){case 2:case 8:l=Mp;break;case 32:l=ns;break;case 268435456:l=Ap;break;default:l=ns}return o=Qy.bind(null,e),l=Hc(l,o),e.callbackPriority=t,e.callbackNode=l,t}return o!==null&&o!==null&&qc(o),e.callbackPriority=2,e.callbackNode=null,2}function Qy(e,t){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(eu()&&e.callbackNode!==l)return null;var o=De;return o=is(e,e===Ze?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Sy(e,o,t),By(e,Ft()),e.callbackNode!=null&&e.callbackNode===l?Qy.bind(null,e):null)}function Yy(e,t){if(eu())return null;Sy(e,t,!0)}function QE(){IE(function(){(Be&6)!==0?Hc(Tp,BE):qy()})}function Tf(){if(Ja===0){var e=_r;e===0&&(e=as,as<<=1,(as&261888)===0&&(as=256)),Ja=e}return Ja}function Gy(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:cs(""+e)}function Vy(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 YE(e,t,l,o,c){if(t==="submit"&&l&&l.stateNode===c){var f=Gy((c[Ut]||null).action),x=o.submitter;x&&(t=(t=x[Ut]||null)?Gy(t.formAction):x.getAttribute("formAction"),t!==null&&(f=t,x=null));var N=new ms("action","action",null,o,c);e.push({event:N,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ja!==0){var M=x?Vy(c,x):new FormData(c);Zd(l,{pending:!0,data:M,method:c.method,action:f},null,M)}}else typeof f=="function"&&(N.preventDefault(),M=x?Vy(c,x):new FormData(c),Zd(l,{pending:!0,data:M,method:c.method,action:f},f,M))},currentTarget:c}]})}}for(var Mf=0;Mf<dd.length;Mf++){var Af=dd[Mf],GE=Af.toLowerCase(),VE=Af[0].toUpperCase()+Af.slice(1);Cn(GE,"on"+VE)}Cn(wv,"onAnimationEnd"),Cn(Sv,"onAnimationIteration"),Cn(jv,"onAnimationStart"),Cn("dblclick","onDoubleClick"),Cn("focusin","onFocus"),Cn("focusout","onBlur"),Cn(iE,"onTransitionRun"),Cn(oE,"onTransitionStart"),Cn(sE,"onTransitionCancel"),Cn(Ev,"onTransitionEnd"),hr("onMouseEnter",["mouseout","mouseover"]),hr("onMouseLeave",["mouseout","mouseover"]),hr("onPointerEnter",["pointerout","pointerover"]),hr("onPointerLeave",["pointerout","pointerover"]),Nl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Nl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Nl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Nl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Nl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var po="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(" "),KE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(po));function Ky(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],c=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var x=o.length-1;0<=x;x--){var N=o[x],M=N.instance,Q=N.currentTarget;if(N=N.listener,M!==f&&c.isPropagationStopped())break e;f=N,c.currentTarget=Q;try{f(c)}catch(F){gs(F)}c.currentTarget=null,f=M}else for(x=0;x<o.length;x++){if(N=o[x],M=N.instance,Q=N.currentTarget,N=N.listener,M!==f&&c.isPropagationStopped())break e;f=N,c.currentTarget=Q;try{f(c)}catch(F){gs(F)}c.currentTarget=null,f=M}}}}function ke(e,t){var l=t[Gc];l===void 0&&(l=t[Gc]=new Set);var o=e+"__bubble";l.has(o)||(Xy(t,e,2,!1),l.add(o))}function kf(e,t,l){var o=0;t&&(o|=4),Xy(l,e,o,t)}var au="_reactListening"+Math.random().toString(36).slice(2);function Df(e){if(!e[au]){e[au]=!0,qp.forEach(function(l){l!=="selectionchange"&&(KE.has(l)||kf(l,!1,e),kf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[au]||(t[au]=!0,kf("selectionchange",!1,t))}}function Xy(e,t,l,o){switch(w0(t)){case 2:var c=bN;break;case 8:c=xN;break;default:c=Zf}l=c.bind(null,t,l,e),c=void 0,!Wc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(t,l,{capture:!0,passive:c}):e.addEventListener(t,l,!0):c!==void 0?e.addEventListener(t,l,{passive:c}):e.addEventListener(t,l,!1)}function Of(e,t,l,o,c){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var x=o.tag;if(x===3||x===4){var N=o.stateNode.containerInfo;if(N===c)break;if(x===4)for(x=o.return;x!==null;){var M=x.tag;if((M===3||M===4)&&x.stateNode.containerInfo===c)return;x=x.return}for(;N!==null;){if(x=cr(N),x===null)return;if(M=x.tag,M===5||M===6||M===26||M===27){o=f=x;continue e}N=N.parentNode}}o=o.return}Jp(function(){var Q=f,F=Pc(l),J=[];e:{var Y=Nv.get(e);if(Y!==void 0){var K=ms,he=e;switch(e){case"keypress":if(fs(l)===0)break e;case"keydown":case"keyup":K=H2;break;case"focusin":he="focus",K=nd;break;case"focusout":he="blur",K=nd;break;case"beforeblur":case"afterblur":K=nd;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":K=ev;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=C2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=Q2;break;case wv:case Sv:case jv:K=T2;break;case Ev:K=G2;break;case"scroll":case"scrollend":K=E2;break;case"wheel":K=K2;break;case"copy":case"cut":case"paste":K=A2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=nv;break;case"toggle":case"beforetoggle":K=$2}var Se=(t&4)!==0,$e=!Se&&(e==="scroll"||e==="scrollend"),z=Se?Y!==null?Y+"Capture":null:Y;Se=[];for(var O=Q,B;O!==null;){var P=O;if(B=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||B===null||z===null||(P=Li(O,z),P!=null&&Se.push(vo(O,P,B))),$e)break;O=O.return}0<Se.length&&(Y=new K(Y,he,null,l,F),J.push({event:Y,listeners:Se}))}}if((t&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",K=e==="mouseout"||e==="pointerout",Y&&l!==Fc&&(he=l.relatedTarget||l.fromElement)&&(cr(he)||he[ur]))break e;if((K||Y)&&(Y=F.window===F?F:(Y=F.ownerDocument)?Y.defaultView||Y.parentWindow:window,K?(he=l.relatedTarget||l.toElement,K=Q,he=he?cr(he):null,he!==null&&($e=u(he),Se=he.tag,he!==$e||Se!==5&&Se!==27&&Se!==6)&&(he=null)):(K=null,he=Q),K!==he)){if(Se=ev,P="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Se=nv,P="onPointerLeave",z="onPointerEnter",O="pointer"),$e=K==null?Y:zi(K),B=he==null?Y:zi(he),Y=new Se(P,O+"leave",K,l,F),Y.target=$e,Y.relatedTarget=B,P=null,cr(F)===Q&&(Se=new Se(z,O+"enter",he,l,F),Se.target=B,Se.relatedTarget=$e,P=Se),$e=P,K&&he)t:{for(Se=XE,z=K,O=he,B=0,P=z;P;P=Se(P))B++;P=0;for(var be=O;be;be=Se(be))P++;for(;0<B-P;)z=Se(z),B--;for(;0<P-B;)O=Se(O),P--;for(;B--;){if(z===O||O!==null&&z===O.alternate){Se=z;break t}z=Se(z),O=Se(O)}Se=null}else Se=null;K!==null&&$y(J,Y,K,Se,!1),he!==null&&$e!==null&&$y(J,$e,he,Se,!0)}}e:{if(Y=Q?zi(Q):window,K=Y.nodeName&&Y.nodeName.toLowerCase(),K==="select"||K==="input"&&Y.type==="file")var He=cv;else if(sv(Y))if(dv)He=aE;else{He=tE;var ge=eE}else K=Y.nodeName,!K||K.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?Q&&Zc(Q.elementType)&&(He=cv):He=nE;if(He&&(He=He(e,Q))){uv(J,He,l,F);break e}ge&&ge(e,Y,Q),e==="focusout"&&Q&&Y.type==="number"&&Q.memoizedProps.value!=null&&$c(Y,"number",Y.value)}switch(ge=Q?zi(Q):window,e){case"focusin":(sv(ge)||ge.contentEditable==="true")&&(br=ge,sd=Q,Vi=null);break;case"focusout":Vi=sd=br=null;break;case"mousedown":ud=!0;break;case"contextmenu":case"mouseup":case"dragend":ud=!1,bv(J,l,F);break;case"selectionchange":if(rE)break;case"keydown":case"keyup":bv(J,l,F)}var Re;if(ld)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else yr?iv(e,l)&&(Oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(av&&l.locale!=="ko"&&(yr||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&yr&&(Re=Wp()):(za=F,Ic="value"in za?za.value:za.textContent,yr=!0)),ge=lu(Q,Oe),0<ge.length&&(Oe=new tv(Oe,e,null,l,F),J.push({event:Oe,listeners:ge}),Re?Oe.data=Re:(Re=ov(l),Re!==null&&(Oe.data=Re)))),(Re=F2?P2(e,l):J2(e,l))&&(Oe=lu(Q,"onBeforeInput"),0<Oe.length&&(ge=new tv("onBeforeInput","beforeinput",null,l,F),J.push({event:ge,listeners:Oe}),ge.data=Re)),YE(J,e,Q,l,F)}Ky(J,t)})}function vo(e,t,l){return{instance:e,listener:t,currentTarget:l}}function lu(e,t){for(var l=t+"Capture",o=[];e!==null;){var c=e,f=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||f===null||(c=Li(e,l),c!=null&&o.unshift(vo(e,c,f)),c=Li(e,t),c!=null&&o.push(vo(e,c,f))),e.tag===3)return o;e=e.return}return[]}function XE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function $y(e,t,l,o,c){for(var f=t._reactName,x=[];l!==null&&l!==o;){var N=l,M=N.alternate,Q=N.stateNode;if(N=N.tag,M!==null&&M===o)break;N!==5&&N!==26&&N!==27||Q===null||(M=Q,c?(Q=Li(l,f),Q!=null&&x.unshift(vo(l,Q,M))):c||(Q=Li(l,f),Q!=null&&x.push(vo(l,Q,M)))),l=l.return}x.length!==0&&e.push({event:t,listeners:x})}var $E=/\r\n?/g,ZE=/\u0000|\uFFFD/g;function Zy(e){return(typeof e=="string"?e:""+e).replace($E,`
49
- `).replace(ZE,"")}function Fy(e,t){return t=Zy(t),Zy(e)===t}function Xe(e,t,l,o,c,f){switch(l){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||pr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&pr(e,""+o);break;case"className":ss(e,"class",o);break;case"tabIndex":ss(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ss(e,l,o);break;case"style":Fp(e,o,f);break;case"data":if(t!=="object"){ss(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=cs(""+o),e.setAttribute(l,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(l==="formAction"?(t!=="input"&&Xe(e,t,"name",c.name,c,null),Xe(e,t,"formEncType",c.formEncType,c,null),Xe(e,t,"formMethod",c.formMethod,c,null),Xe(e,t,"formTarget",c.formTarget,c,null)):(Xe(e,t,"encType",c.encType,c,null),Xe(e,t,"method",c.method,c,null),Xe(e,t,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=cs(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=aa);break;case"onScroll":o!=null&&ke("scroll",e);break;case"onScrollEnd":o!=null&&ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}l=cs(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""+o):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":o===!0?e.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,o):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(l,o):e.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(l):e.setAttribute(l,o);break;case"popover":ke("beforetoggle",e),ke("toggle",e),os(e,"popover",o);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":os(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=S2.get(l)||l,os(e,l,o))}}function zf(e,t,l,o,c,f){switch(l){case"style":Fp(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(c.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof o=="string"?pr(e,o):(typeof o=="number"||typeof o=="bigint")&&pr(e,""+o);break;case"onScroll":o!=null&&ke("scroll",e);break;case"onScrollEnd":o!=null&&ke("scrollend",e);break;case"onClick":o!=null&&(e.onclick=aa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bp.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(c=l.endsWith("Capture"),t=l.slice(2,c?l.length-7:void 0),f=e[Ut]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,c),typeof o=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,o,c);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):os(e,l,o)}}}function Nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var o=!1,c=!1,f;for(f in l)if(l.hasOwnProperty(f)){var x=l[f];if(x!=null)switch(f){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,f,x,l,null)}}c&&Xe(e,t,"srcSet",l.srcSet,l,null),o&&Xe(e,t,"src",l.src,l,null);return;case"input":ke("invalid",e);var N=f=x=c=null,M=null,Q=null;for(o in l)if(l.hasOwnProperty(o)){var F=l[o];if(F!=null)switch(o){case"name":c=F;break;case"type":x=F;break;case"checked":M=F;break;case"defaultChecked":Q=F;break;case"value":f=F;break;case"defaultValue":N=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(i(137,t));break;default:Xe(e,t,o,F,l,null)}}Kp(e,f,N,M,Q,x,c,!1);return;case"select":ke("invalid",e),o=x=f=null;for(c in l)if(l.hasOwnProperty(c)&&(N=l[c],N!=null))switch(c){case"value":f=N;break;case"defaultValue":x=N;break;case"multiple":o=N;default:Xe(e,t,c,N,l,null)}t=f,l=x,e.multiple=!!o,t!=null?mr(e,!!o,t,!1):l!=null&&mr(e,!!o,l,!0);return;case"textarea":ke("invalid",e),f=c=o=null;for(x in l)if(l.hasOwnProperty(x)&&(N=l[x],N!=null))switch(x){case"value":o=N;break;case"defaultValue":c=N;break;case"children":f=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Xe(e,t,x,N,l,null)}$p(e,o,c,f);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(o=l[M],o!=null))switch(M){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Xe(e,t,M,o,l,null)}return;case"dialog":ke("beforetoggle",e),ke("toggle",e),ke("cancel",e),ke("close",e);break;case"iframe":case"object":ke("load",e);break;case"video":case"audio":for(o=0;o<po.length;o++)ke(po[o],e);break;case"image":ke("error",e),ke("load",e);break;case"details":ke("toggle",e);break;case"embed":case"source":case"link":ke("error",e),ke("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Q in l)if(l.hasOwnProperty(Q)&&(o=l[Q],o!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,Q,o,l,null)}return;default:if(Zc(t)){for(F in l)l.hasOwnProperty(F)&&(o=l[F],o!==void 0&&zf(e,t,F,o,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(o=l[N],o!=null&&Xe(e,t,N,o,l,null))}function FE(e,t,l,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,f=null,x=null,N=null,M=null,Q=null,F=null;for(K in l){var J=l[K];if(l.hasOwnProperty(K)&&J!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":M=J;default:o.hasOwnProperty(K)||Xe(e,t,K,null,o,J)}}for(var Y in o){var K=o[Y];if(J=l[Y],o.hasOwnProperty(Y)&&(K!=null||J!=null))switch(Y){case"type":f=K;break;case"name":c=K;break;case"checked":Q=K;break;case"defaultChecked":F=K;break;case"value":x=K;break;case"defaultValue":N=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(i(137,t));break;default:K!==J&&Xe(e,t,Y,K,o,J)}}Xc(e,x,N,M,Q,F,f,c);return;case"select":K=x=N=Y=null;for(f in l)if(M=l[f],l.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":K=M;default:o.hasOwnProperty(f)||Xe(e,t,f,null,o,M)}for(c in o)if(f=o[c],M=l[c],o.hasOwnProperty(c)&&(f!=null||M!=null))switch(c){case"value":Y=f;break;case"defaultValue":N=f;break;case"multiple":x=f;default:f!==M&&Xe(e,t,c,f,o,M)}t=N,l=x,o=K,Y!=null?mr(e,!!l,Y,!1):!!o!=!!l&&(t!=null?mr(e,!!l,t,!0):mr(e,!!l,l?[]:"",!1));return;case"textarea":K=Y=null;for(N in l)if(c=l[N],l.hasOwnProperty(N)&&c!=null&&!o.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Xe(e,t,N,null,o,c)}for(x in o)if(c=o[x],f=l[x],o.hasOwnProperty(x)&&(c!=null||f!=null))switch(x){case"value":Y=c;break;case"defaultValue":K=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(i(91));break;default:c!==f&&Xe(e,t,x,c,o,f)}Xp(e,Y,K);return;case"option":for(var he in l)if(Y=l[he],l.hasOwnProperty(he)&&Y!=null&&!o.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Xe(e,t,he,null,o,Y)}for(M in o)if(Y=o[M],K=l[M],o.hasOwnProperty(M)&&Y!==K&&(Y!=null||K!=null))switch(M){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Xe(e,t,M,Y,o,K)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Se in l)Y=l[Se],l.hasOwnProperty(Se)&&Y!=null&&!o.hasOwnProperty(Se)&&Xe(e,t,Se,null,o,Y);for(Q in o)if(Y=o[Q],K=l[Q],o.hasOwnProperty(Q)&&Y!==K&&(Y!=null||K!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Xe(e,t,Q,Y,o,K)}return;default:if(Zc(t)){for(var $e in l)Y=l[$e],l.hasOwnProperty($e)&&Y!==void 0&&!o.hasOwnProperty($e)&&zf(e,t,$e,void 0,o,Y);for(F in o)Y=o[F],K=l[F],!o.hasOwnProperty(F)||Y===K||Y===void 0&&K===void 0||zf(e,t,F,Y,o,K);return}}for(var z in l)Y=l[z],l.hasOwnProperty(z)&&Y!=null&&!o.hasOwnProperty(z)&&Xe(e,t,z,null,o,Y);for(J in o)Y=o[J],K=l[J],!o.hasOwnProperty(J)||Y===K||Y==null&&K==null||Xe(e,t,J,Y,o,K)}function Py(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var c=l[o],f=c.transferSize,x=c.initiatorType,N=c.duration;if(f&&N&&Py(x)){for(x=0,N=c.responseEnd,o+=1;o<l.length;o++){var M=l[o],Q=M.startTime;if(Q>N)break;var F=M.transferSize,J=M.initiatorType;F&&Py(J)&&(M=M.responseEnd,x+=F*(M<N?1:(N-Q)/(M-Q)))}if(--o,t+=8*(f+x)/(c.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 Lf=null,Uf=null;function ru(e){return e.nodeType===9?e:e.ownerDocument}function Jy(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 Wy(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 Hf(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 qf=null;function JE(){var e=window.event;return e&&e.type==="popstate"?e===qf?!1:(qf=e,!0):(qf=null,!1)}var Iy=typeof setTimeout=="function"?setTimeout:void 0,WE=typeof clearTimeout=="function"?clearTimeout:void 0,e0=typeof Promise=="function"?Promise:void 0,IE=typeof queueMicrotask=="function"?queueMicrotask:typeof e0<"u"?function(e){return e0.resolve(null).then(e).catch(eN)}:Iy;function eN(e){setTimeout(function(){throw e})}function Wa(e){return e==="head"}function t0(e,t){var l=t,o=0;do{var c=l.nextSibling;if(e.removeChild(l),c&&c.nodeType===8)if(l=c.data,l==="/$"||l==="/&"){if(o===0){e.removeChild(c),Xr(t);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")go(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,go(l);for(var f=l.firstChild;f;){var x=f.nextSibling,N=f.nodeName;f[Oi]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=x}}else l==="body"&&go(e.ownerDocument.body);l=c}while(l);Xr(t)}function n0(e,t){var l=e;e=0;do{var o=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),o&&o.nodeType===8)if(l=o.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=o}while(l)}function Bf(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":Bf(l),Vc(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function tN(e,t,l,o){for(;e.nodeType===1;){var c=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Oi])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!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=yn(e.nextSibling),e===null)break}return null}function nN(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=yn(e.nextSibling),e===null))return null;return e}function a0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=yn(e.nextSibling),e===null))return null;return e}function Qf(e){return e.data==="$?"||e.data==="$~"}function Yf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function aN(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var o=function(){t(),l.removeEventListener("DOMContentLoaded",o)};l.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function yn(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 Gf=null;function l0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return yn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function r0(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 i0(e,t,l){switch(t=ru(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 go(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Vc(e)}var bn=new Map,o0=new Set;function iu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ba=W.d;W.d={f:lN,r:rN,D:iN,C:oN,L:sN,m:uN,X:dN,S:cN,M:fN};function lN(){var e=ba.f(),t=Js();return e||t}function rN(e){var t=dr(e);t!==null&&t.tag===5&&t.type==="form"?Eg(t):ba.r(e)}var Gr=typeof document>"u"?null:document;function s0(e,t,l){var o=Gr;if(o&&typeof t=="string"&&t){var c=dn(t);c='link[rel="'+e+'"][href="'+c+'"]',typeof l=="string"&&(c+='[crossorigin="'+l+'"]'),o0.has(c)||(o0.add(c),e={rel:e,crossOrigin:l,href:t},o.querySelector(c)===null&&(t=o.createElement("link"),Nt(t,"link",e),gt(t),o.head.appendChild(t)))}}function iN(e){ba.D(e),s0("dns-prefetch",e,null)}function oN(e,t){ba.C(e,t),s0("preconnect",e,t)}function sN(e,t,l){ba.L(e,t,l);var o=Gr;if(o&&e&&t){var c='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(c+='[imagesrcset="'+dn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(c+='[imagesizes="'+dn(l.imageSizes)+'"]')):c+='[href="'+dn(e)+'"]';var f=c;switch(t){case"style":f=Vr(e);break;case"script":f=Kr(e)}bn.has(f)||(e=b({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),bn.set(f,e),o.querySelector(c)!==null||t==="style"&&o.querySelector(yo(f))||t==="script"&&o.querySelector(bo(f))||(t=o.createElement("link"),Nt(t,"link",e),gt(t),o.head.appendChild(t)))}}function uN(e,t){ba.m(e,t);var l=Gr;if(l&&e){var o=t&&typeof t.as=="string"?t.as:"script",c='link[rel="modulepreload"][as="'+dn(o)+'"][href="'+dn(e)+'"]',f=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Kr(e)}if(!bn.has(f)&&(e=b({rel:"modulepreload",href:e},t),bn.set(f,e),l.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(bo(f)))return}o=l.createElement("link"),Nt(o,"link",e),gt(o),l.head.appendChild(o)}}}function cN(e,t,l){ba.S(e,t,l);var o=Gr;if(o&&e){var c=fr(o).hoistableStyles,f=Vr(e);t=t||"default";var x=c.get(f);if(!x){var N={loading:0,preload:null};if(x=o.querySelector(yo(f)))N.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},l),(l=bn.get(f))&&Vf(e,l);var M=x=o.createElement("link");gt(M),Nt(M,"link",e),M._p=new Promise(function(Q,F){M.onload=Q,M.onerror=F}),M.addEventListener("load",function(){N.loading|=1}),M.addEventListener("error",function(){N.loading|=2}),N.loading|=4,ou(x,t,o)}x={type:"stylesheet",instance:x,count:1,state:N},c.set(f,x)}}}function dN(e,t){ba.X(e,t);var l=Gr;if(l&&e){var o=fr(l).hoistableScripts,c=Kr(e),f=o.get(c);f||(f=l.querySelector(bo(c)),f||(e=b({src:e,async:!0},t),(t=bn.get(c))&&Kf(e,t),f=l.createElement("script"),gt(f),Nt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function fN(e,t){ba.M(e,t);var l=Gr;if(l&&e){var o=fr(l).hoistableScripts,c=Kr(e),f=o.get(c);f||(f=l.querySelector(bo(c)),f||(e=b({src:e,async:!0,type:"module"},t),(t=bn.get(c))&&Kf(e,t),f=l.createElement("script"),gt(f),Nt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(c,f))}}function u0(e,t,l,o){var c=(c=je.current)?iu(c):null;if(!c)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Vr(l.href),l=fr(c).hoistableStyles,o=l.get(t),o||(o={type:"style",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=Vr(l.href);var f=fr(c).hoistableStyles,x=f.get(e);if(x||(c=c.ownerDocument||c,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,x),(f=c.querySelector(yo(e)))&&!f._p&&(x.instance=f,x.state.loading=5),bn.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},bn.set(e,l),f||hN(c,e,l,x.state))),t&&o===null)throw Error(i(528,""));return x}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Kr(l),l=fr(c).hoistableScripts,o=l.get(t),o||(o={type:"script",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Vr(e){return'href="'+dn(e)+'"'}function yo(e){return'link[rel="stylesheet"]['+e+"]"}function c0(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function hN(e,t,l,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Nt(t,"link",l),gt(t),e.head.appendChild(t))}function Kr(e){return'[src="'+dn(e)+'"]'}function bo(e){return"script[async]"+e}function d0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+dn(l.href)+'"]');if(o)return t.instance=o,gt(o),o;var c=b({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),gt(o),Nt(o,"style",c),ou(o,l.precedence,e),t.instance=o;case"stylesheet":c=Vr(l.href);var f=e.querySelector(yo(c));if(f)return t.state.loading|=4,t.instance=f,gt(f),f;o=c0(l),(c=bn.get(c))&&Vf(o,c),f=(e.ownerDocument||e).createElement("link"),gt(f);var x=f;return x._p=new Promise(function(N,M){x.onload=N,x.onerror=M}),Nt(f,"link",o),t.state.loading|=4,ou(f,l.precedence,e),t.instance=f;case"script":return f=Kr(l.src),(c=e.querySelector(bo(f)))?(t.instance=c,gt(c),c):(o=l,(c=bn.get(f))&&(o=b({},l),Kf(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),gt(c),Nt(c,"link",o),e.head.appendChild(c),t.instance=c);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,ou(o,l.precedence,e));return t.instance}function ou(e,t,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,f=c,x=0;x<o.length;x++){var N=o[x];if(N.dataset.precedence===t)f=N;else if(f!==c)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Vf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Kf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var su=null;function f0(e,t,l){if(su===null){var o=new Map,c=su=new Map;c.set(l,o)}else c=su,o=c.get(l),o||(o=new Map,c.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),c=0;c<l.length;c++){var f=l[c];if(!(f[Oi]||f[wt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var x=f.getAttribute(t)||"";x=e+x;var N=o.get(x);N?N.push(f):o.set(x,[f])}}return o}function h0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function mN(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 m0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function pN(e,t,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var c=Vr(o.href),f=t.querySelector(yo(c));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=uu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,gt(f);return}f=t.ownerDocument||t,o=c0(o),(c=bn.get(c))&&Vf(o,c),f=f.createElement("link"),gt(f);var x=f;x._p=new Promise(function(N,M){x.onload=N,x.onerror=M}),Nt(f,"link",o),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=uu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Xf=0;function vN(e,t){return e.stylesheets&&e.count===0&&du(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var o=setTimeout(function(){if(e.stylesheets&&du(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Xf===0&&(Xf=62500*PE());var c=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&du(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Xf?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(c)}}:null}function uu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)du(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cu=null;function du(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cu=new Map,t.forEach(gN,e),cu=null,uu.call(e))}function gN(e,t){if(!(t.state.loading&4)){var l=cu.get(e);if(l)var o=l.get(null);else{l=new Map,cu.set(e,l);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<c.length;f++){var x=c[f];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(l.set(x.dataset.precedence,x),o=x)}o&&l.set(null,o)}c=t.instance,x=c.getAttribute("data-precedence"),f=l.get(x)||o,f===o&&l.set(null,c),l.set(x,c),this.count++,o=uu.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),f?f.parentNode.insertBefore(c,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),t.state.loading|=4}}var xo={$$typeof:T,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function yN(e,t,l,o,c,f,x,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=Bc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bc(0),this.hiddenUpdates=Bc(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=f,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function p0(e,t,l,o,c,f,x,N,M,Q,F,J){return e=new yN(e,t,l,x,M,Q,F,J,N),t=1,f===!0&&(t|=24),f=It(3,null,null,t),e.current=f,f.stateNode=e,t=Ed(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:l,cache:t},Rd(f),e}function v0(e){return e?(e=Sr,e):Sr}function g0(e,t,l,o,c,f){c=v0(c),o.context===null?o.context=c:o.pendingContext=c,o=Qa(t),o.payload={element:l},f=f===void 0?null:f,f!==null&&(o.callback=f),l=Ya(e,o,t),l!==null&&(Gt(l,e,t),Ji(l,e,t))}function y0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function $f(e,t){y0(e,t),(e=e.alternate)&&y0(e,t)}function b0(e){if(e.tag===13||e.tag===31){var t=Tl(e,67108864);t!==null&&Gt(t,e,67108864),$f(e,67108864)}}function x0(e){if(e.tag===13||e.tag===31){var t=ln();t=Qc(t);var l=Tl(e,t);l!==null&&Gt(l,e,t),$f(e,t)}}var fu=!0;function bN(e,t,l,o){var c=U.T;U.T=null;var f=W.p;try{W.p=2,Zf(e,t,l,o)}finally{W.p=f,U.T=c}}function xN(e,t,l,o){var c=U.T;U.T=null;var f=W.p;try{W.p=8,Zf(e,t,l,o)}finally{W.p=f,U.T=c}}function Zf(e,t,l,o){if(fu){var c=Ff(o);if(c===null)Of(e,t,o,hu,l),S0(e,o);else if(SN(c,e,t,l,o))o.stopPropagation();else if(S0(e,o),t&4&&-1<wN.indexOf(e)){for(;c!==null;){var f=dr(c);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var x=El(f.pendingLanes);if(x!==0){var N=f;for(N.pendingLanes|=2,N.entangledLanes|=2;x;){var M=1<<31-Jt(x);N.entanglements[1]|=M,x&=~M}Yn(f),(Be&6)===0&&(Fs=Ft()+500,mo(0))}}break;case 31:case 13:N=Tl(f,2),N!==null&&Gt(N,f,2),Js(),$f(f,2)}if(f=Ff(o),f===null&&Of(e,t,o,hu,l),f===c)break;c=f}c!==null&&o.stopPropagation()}else Of(e,t,o,null,l)}}function Ff(e){return e=Pc(e),Pf(e)}var hu=null;function Pf(e){if(hu=null,e=cr(e),e!==null){var t=u(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 hu=e,null}function w0(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(i2()){case Tp:return 2;case Mp:return 8;case ns:case o2:return 32;case Ap:return 268435456;default:return 32}default:return 32}}var Jf=!1,Ia=null,el=null,tl=null,wo=new Map,So=new Map,nl=[],wN="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 S0(e,t){switch(e){case"focusin":case"focusout":Ia=null;break;case"dragenter":case"dragleave":el=null;break;case"mouseover":case"mouseout":tl=null;break;case"pointerover":case"pointerout":wo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":So.delete(t.pointerId)}}function jo(e,t,l,o,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:o,nativeEvent:f,targetContainers:[c]},t!==null&&(t=dr(t),t!==null&&b0(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,c!==null&&t.indexOf(c)===-1&&t.push(c),e)}function SN(e,t,l,o,c){switch(t){case"focusin":return Ia=jo(Ia,e,t,l,o,c),!0;case"dragenter":return el=jo(el,e,t,l,o,c),!0;case"mouseover":return tl=jo(tl,e,t,l,o,c),!0;case"pointerover":var f=c.pointerId;return wo.set(f,jo(wo.get(f)||null,e,t,l,o,c)),!0;case"gotpointercapture":return f=c.pointerId,So.set(f,jo(So.get(f)||null,e,t,l,o,c)),!0}return!1}function j0(e){var t=cr(e.target);if(t!==null){var l=u(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Up(e.priority,function(){x0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Up(e.priority,function(){x0(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 mu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Ff(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);Fc=o,l.target.dispatchEvent(o),Fc=null}else return t=dr(l),t!==null&&b0(t),e.blockedOn=l,!1;t.shift()}return!0}function E0(e,t,l){mu(e)&&l.delete(t)}function jN(){Jf=!1,Ia!==null&&mu(Ia)&&(Ia=null),el!==null&&mu(el)&&(el=null),tl!==null&&mu(tl)&&(tl=null),wo.forEach(E0),So.forEach(E0)}function pu(e,t){e.blockedOn===t&&(e.blockedOn=null,Jf||(Jf=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,jN)))}var vu=null;function N0(e){vu!==e&&(vu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){vu===e&&(vu=null);for(var t=0;t<e.length;t+=3){var l=e[t],o=e[t+1],c=e[t+2];if(typeof o!="function"){if(Pf(o||l)===null)continue;break}var f=dr(l);f!==null&&(e.splice(t,3),t-=3,Zd(f,{pending:!0,data:c,method:l.method,action:o},o,c))}}))}function Xr(e){function t(M){return pu(M,e)}Ia!==null&&pu(Ia,e),el!==null&&pu(el,e),tl!==null&&pu(tl,e),wo.forEach(t),So.forEach(t);for(var l=0;l<nl.length;l++){var o=nl[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<nl.length&&(l=nl[0],l.blockedOn===null);)j0(l),l.blockedOn===null&&nl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var c=l[o],f=l[o+1],x=c[Ut]||null;if(typeof f=="function")x||N0(l);else if(x){var N=null;if(f&&f.hasAttribute("formAction")){if(c=f,x=f[Ut]||null)N=x.formAction;else if(Pf(c)!==null)continue}else N=x.action;typeof N=="function"?l[o+1]=N:(l.splice(o,3),o-=3),N0(l)}}}function C0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(x){return c=x})},focusReset:"manual",scroll:"manual"})}function t(){c!==null&&(c(),c=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,c=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),c!==null&&(c(),c=null)}}}function Wf(e){this._internalRoot=e}gu.prototype.render=Wf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,o=ln();g0(l,o,e,t,null,null)},gu.prototype.unmount=Wf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;g0(e.current,2,null,e,null,null),Js(),t[ur]=null}};function gu(e){this._internalRoot=e}gu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Lp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<nl.length&&t!==0&&t<nl[l].priority;l++);nl.splice(l,0,e),l===0&&j0(e)}};var _0=a.version;if(_0!=="19.2.3")throw Error(i(527,_0,"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?y(e):null,e=e===null?null:e.stateNode,e};var EN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yu.isDisabled&&yu.supportsFiber)try{Ai=yu.inject(EN),Pt=yu}catch{}}return No.createRoot=function(e,t){if(!s(e))throw Error(i(299));var l=!1,o="",c=Og,f=zg,x=Lg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(c=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(x=t.onRecoverableError)),t=p0(e,1,!1,null,null,l,o,null,c,f,x,C0),e[ur]=t.current,Df(e),new Wf(t)},No.hydrateRoot=function(e,t,l){if(!s(e))throw Error(i(299));var o=!1,c="",f=Og,x=zg,N=Lg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(c=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(x=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=p0(e,1,!0,t,l??null,o,c,M,f,x,N,C0),t.context=v0(null),l=t.current,o=ln(),o=Qc(o),c=Qa(o),c.callback=null,Ya(l,c,o),l=o,t.current.lanes=l,Di(t,l),Yn(t),e[ur]=t.current,Df(e),new gu(t)},No.version="19.2.3",No}var $0;function fC(){if($0)return ah.exports;$0=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(),ah.exports=dC(),ah.exports}var hC=fC(),Co={},Z0;function mC(){if(Z0)return Co;Z0=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.parse=h,Co.serialize=g;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,a=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,u=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,j){const E=new u,S=w.length;if(S<2)return E;const C=(j==null?void 0:j.decode)||y;let _=0;do{const R=w.indexOf("=",_);if(R===-1)break;const T=w.indexOf(";",_),D=T===-1?S:T;if(R>D){_=w.lastIndexOf(";",R-1)+1;continue}const L=m(w,_,R),X=p(w,R,L),q=w.slice(L,X);if(E[q]===void 0){let H=m(w,R+1,D),G=p(w,D,H);const te=C(w.slice(H,G));E[q]=te}_=D+1}while(_<S);return E}function m(w,j,E){do{const S=w.charCodeAt(j);if(S!==32&&S!==9)return j}while(++j<E);return E}function p(w,j,E){for(;j>E;){const S=w.charCodeAt(--j);if(S!==32&&S!==9)return j+1}return E}function g(w,j,E){const S=(E==null?void 0:E.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const C=S(j);if(!a.test(C))throw new TypeError(`argument val is invalid: ${j}`);let _=w+"="+C;if(!E)return _;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);_+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);_+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);_+="; Path="+E.path}if(E.expires){if(!b(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return _}function y(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function b(w){return s.call(w)==="[object Date]"}return Co}mC();var F0="popstate";function pC(n={}){function a(s,u){let{pathname:h="/",search:m="",hash:p=""}=lr(s.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),qh("",{pathname:h,search:m,hash:p},u.state&&u.state.usr||null,u.state&&u.state.key||"default")}function r(s,u){let h=s.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=s.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof u=="string"?u:Uo(u))}function i(s,u){jn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(u)})`)}return gC(a,r,i,n)}function Ie(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function jn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function vC(){return Math.random().toString(36).substring(2,10)}function P0(n,a){return{usr:n.state,key:n.key,idx:a}}function qh(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?lr(a):a,state:r,key:a&&a.key||i||vC()}}function Uo({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 lr(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 gC(n,a,r,i={}){let{window:s=document.defaultView,v5Compat:u=!1}=i,h=s.history,m="POP",p=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function b(){m="POP";let C=y(),_=C==null?null:C-g;g=C,p&&p({action:m,location:S.location,delta:_})}function w(C,_){m="PUSH";let R=qh(S.location,C,_);r&&r(R,C),g=y()+1;let T=P0(R,g),D=S.createHref(R);try{h.pushState(T,"",D)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;s.location.assign(D)}u&&p&&p({action:m,location:S.location,delta:1})}function j(C,_){m="REPLACE";let R=qh(S.location,C,_);r&&r(R,C),g=y();let T=P0(R,g),D=S.createHref(R);h.replaceState(T,"",D),u&&p&&p({action:m,location:S.location,delta:0})}function E(C){return yC(C)}let S={get action(){return m},get location(){return n(s,h)},listen(C){if(p)throw new Error("A history only accepts one active listener");return s.addEventListener(F0,b),p=C,()=>{s.removeEventListener(F0,b),p=null}},createHref(C){return a(s,C)},createURL:E,encodeLocation(C){let _=E(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:j,go(C){return h.go(C)}};return S}function yC(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),Ie(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Uo(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function xx(n,a,r="/"){return bC(n,a,r,!1)}function bC(n,a,r,i){let s=typeof a=="string"?lr(a):a,u=Ra(s.pathname||"/",r);if(u==null)return null;let h=wx(n);xC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=AC(u);m=TC(h[p],g,i)}return m}function wx(n,a=[],r=[],i=""){let s=(u,h,m)=>{let p={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:h,route:u};p.relativePath.startsWith("/")&&(Ie(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=Na([i,p.relativePath]),y=r.concat(p);u.children&&u.children.length>0&&(Ie(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),wx(u.children,a,y,g)),!(u.path==null&&!u.index)&&a.push({path:g,score:_C(g,u.index),routesMeta:y})};return n.forEach((u,h)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))s(u,h);else for(let p of Sx(u.path))s(u,h,p)}),a}function Sx(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,s=r.endsWith("?"),u=r.replace(/\?$/,"");if(i.length===0)return s?[u,""]:[u];let h=Sx(i.join("/")),m=[];return m.push(...h.map(p=>p===""?u:[u,p].join("/"))),s&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function xC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:RC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var wC=/^:[\w-]+$/,SC=3,jC=2,EC=1,NC=10,CC=-2,J0=n=>n==="*";function _C(n,a){let r=n.split("/"),i=r.length;return r.some(J0)&&(i+=CC),a&&(i+=jC),r.filter(s=>!J0(s)).reduce((s,u)=>s+(wC.test(u)?SC:u===""?EC:NC),i)}function RC(n,a){return n.length===a.length&&n.slice(0,-1).every((i,s)=>i===a[s])?n[n.length-1]-a[a.length-1]:0}function TC(n,a,r=!1){let{routesMeta:i}=n,s={},u="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,y=u==="/"?a:a.slice(u.length)||"/",b=Bu({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!b&&g&&r&&!i[i.length-1].route.index&&(b=Bu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(s,b.params),h.push({params:s,pathname:Na([u,b.pathname]),pathnameBase:zC(Na([u,b.pathnameBase])),route:w}),b.pathnameBase!=="/"&&(u=Na([u,b.pathnameBase]))}return h}function Bu(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=MC(n.path,n.caseSensitive,n.end),s=a.match(r);if(!s)return null;let u=s[0],h=u.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((g,{paramName:y,isOptional:b},w)=>{if(y==="*"){let E=m[w]||"";h=u.slice(0,u.length-E.length).replace(/(.)\/+$/,"$1")}const j=m[w];return b&&!j?g[y]=void 0:g[y]=(j||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:h,pattern:n}}function MC(n,a=!1,r=!0){jn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],s="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p)=>(i.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),s+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?s+="\\/*$":n!==""&&n!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,a?void 0:"i"),i]}function AC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return jn(!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 Ra(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 kC(n,a="/"){let{pathname:r,search:i="",hash:s=""}=typeof n=="string"?lr(n):n;return{pathname:r?r.startsWith("/")?r:DC(r,a):a,search:LC(i),hash:UC(s)}}function DC(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(s=>{s===".."?r.length>1&&r.pop():s!=="."&&r.push(s)}),r.length>1?r.join("/"):"/"}function oh(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 OC(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function gm(n){let a=OC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function ym(n,a,r,i=!1){let s;typeof n=="string"?s=lr(n):(s={...n},Ie(!s.pathname||!s.pathname.includes("?"),oh("?","pathname","search",s)),Ie(!s.pathname||!s.pathname.includes("#"),oh("#","pathname","hash",s)),Ie(!s.search||!s.search.includes("#"),oh("#","search","hash",s)));let u=n===""||s.pathname==="",h=u?"/":s.pathname,m;if(h==null)m=r;else{let b=a.length-1;if(!i&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),b-=1;s.pathname=w.join("/")}m=b>=0?a[b]:"/"}let p=kC(s,m),g=h&&h!=="/"&&h.endsWith("/"),y=(u||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Na=n=>n.join("/").replace(/\/\/+/g,"/"),zC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),LC=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,UC=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function HC(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var jx=["POST","PUT","PATCH","DELETE"];new Set(jx);var qC=["GET",...jx];new Set(qC);var bi=v.createContext(null);bi.displayName="DataRouter";var ac=v.createContext(null);ac.displayName="DataRouterState";var Ex=v.createContext({isTransitioning:!1});Ex.displayName="ViewTransition";var BC=v.createContext(new Map);BC.displayName="Fetchers";var QC=v.createContext(null);QC.displayName="Await";var zn=v.createContext(null);zn.displayName="Navigation";var Xo=v.createContext(null);Xo.displayName="Location";var Ln=v.createContext({outlet:null,matches:[],isDataRoute:!1});Ln.displayName="Route";var bm=v.createContext(null);bm.displayName="RouteError";function YC(n,{relative:a}={}){Ie(xi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext(zn),{hash:s,pathname:u,search:h}=$o(n,{relative:a}),m=u;return r!=="/"&&(m=u==="/"?r:Na([r,u])),i.createHref({pathname:m,search:h,hash:s})}function xi(){return v.useContext(Xo)!=null}function Aa(){return Ie(xi(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Xo).location}var Nx="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Cx(n){v.useContext(zn).static||v.useLayoutEffect(n)}function _x(){let{isDataRoute:n}=v.useContext(Ln);return n?t_():GC()}function GC(){Ie(xi(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(bi),{basename:a,navigator:r}=v.useContext(zn),{matches:i}=v.useContext(Ln),{pathname:s}=Aa(),u=JSON.stringify(gm(i)),h=v.useRef(!1);return Cx(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(jn(h.current,Nx),!h.current)return;if(typeof p=="number"){r.go(p);return}let y=ym(p,JSON.parse(u),s,g.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:Na([a,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[a,r,u,s,n])}v.createContext(null);function lc(){let{matches:n}=v.useContext(Ln),a=n[n.length-1];return a?a.params:{}}function $o(n,{relative:a}={}){let{matches:r}=v.useContext(Ln),{pathname:i}=Aa(),s=JSON.stringify(gm(r));return v.useMemo(()=>ym(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function VC(n,a){return Rx(n,a)}function Rx(n,a,r,i){var _;Ie(xi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(zn),{matches:u}=v.useContext(Ln),h=u[u.length-1],m=h?h.params:{},p=h?h.pathname:"/",g=h?h.pathnameBase:"/",y=h&&h.route;{let R=y&&y.path||"";Tx(p,!y||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${R}">) 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="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let b=Aa(),w;if(a){let R=typeof a=="string"?lr(a):a;Ie(g==="/"||((_=R.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 "${R.pathname}" was given in the \`location\` prop.`),w=R}else w=b;let j=w.pathname||"/",E=j;if(g!=="/"){let R=g.replace(/^\//,"").split("/");E="/"+j.replace(/^\//,"").split("/").slice(R.length).join("/")}let S=xx(n,{pathname:E});jn(y||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),jn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=FC(S&&S.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:Na([g,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:Na([g,s.encodeLocation?s.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),u,r,i);return a&&C?v.createElement(Xo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},C):C}function KC(){let n=e_(),a=HC(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},u={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:u},"ErrorBoundary")," or"," ",v.createElement("code",{style:u},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},a),r?v.createElement("pre",{style:s},r):null,h)}var XC=v.createElement(KC,null),$C=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(Ln.Provider,{value:this.props.routeContext},v.createElement(bm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function ZC({routeContext:n,match:a,children:r}){let i=v.useContext(bi);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),v.createElement(Ln.Provider,{value:n},r)}function FC(n,a=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let s=n,u=r==null?void 0:r.errors;if(u!=null){let p=s.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);Ie(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let h=!1,m=-1;if(r)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:y,errors:b}=r,w=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!b||b[g.route.id]===void 0);if(g.route.lazy||w){h=!0,m>=0?s=s.slice(0,m+1):s=[s[0]];break}}}return s.reduceRight((p,g,y)=>{let b,w=!1,j=null,E=null;r&&(b=u&&g.route.id?u[g.route.id]:void 0,j=g.route.errorElement||XC,h&&(m<0&&y===0?(Tx("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===y&&(w=!0,E=g.route.hydrateFallbackElement||null)));let S=a.concat(s.slice(0,y+1)),C=()=>{let _;return b?_=j:w?_=E:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(ZC,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?v.createElement($C,{location:r.location,revalidation:r.revalidation,component:j,error:b,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}function xm(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function PC(n){let a=v.useContext(bi);return Ie(a,xm(n)),a}function JC(n){let a=v.useContext(ac);return Ie(a,xm(n)),a}function WC(n){let a=v.useContext(Ln);return Ie(a,xm(n)),a}function wm(n){let a=WC(n),r=a.matches[a.matches.length-1];return Ie(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function IC(){return wm("useRouteId")}function e_(){var i;let n=v.useContext(bm),a=JC("useRouteError"),r=wm("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function t_(){let{router:n}=PC("useNavigate"),a=wm("useNavigate"),r=v.useRef(!1);return Cx(()=>{r.current=!0}),v.useCallback(async(s,u={})=>{jn(r.current,Nx),r.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:a,...u}))},[n,a])}var W0={};function Tx(n,a,r){!a&&!W0[n]&&(W0[n]=!0,jn(!1,r))}v.memo(n_);function n_({routes:n,future:a,state:r}){return Rx(n,void 0,r,a)}function wu({to:n,replace:a,state:r,relative:i}){Ie(xi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=v.useContext(zn);jn(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=v.useContext(Ln),{pathname:h}=Aa(),m=_x(),p=ym(n,gm(u),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 Gl(n){Ie(!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 a_({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:s,static:u=!1}){Ie(!xi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:h,navigator:s,static:u,future:{}}),[h,s,u]);typeof r=="string"&&(r=lr(r));let{pathname:p="/",search:g="",hash:y="",state:b=null,key:w="default"}=r,j=v.useMemo(()=>{let E=Ra(p,h);return E==null?null:{location:{pathname:E,search:g,hash:y,state:b,key:w},navigationType:i}},[h,p,g,y,b,w,i]);return jn(j!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:v.createElement(zn.Provider,{value:m},v.createElement(Xo.Provider,{children:a,value:j}))}function l_({children:n,location:a}){return VC(Bh(n),a)}function Bh(n,a=[]){let r=[];return v.Children.forEach(n,(i,s)=>{if(!v.isValidElement(i))return;let u=[...a,s];if(i.type===v.Fragment){r.push.apply(r,Bh(i.props.children,u));return}Ie(i.type===Gl,`[${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>`),Ie(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||u.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=Bh(i.props.children,u)),r.push(h)}),r}var ku="get",Du="application/x-www-form-urlencoded";function rc(n){return n!=null&&typeof n.tagName=="string"}function r_(n){return rc(n)&&n.tagName.toLowerCase()==="button"}function i_(n){return rc(n)&&n.tagName.toLowerCase()==="form"}function o_(n){return rc(n)&&n.tagName.toLowerCase()==="input"}function s_(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function u_(n,a){return n.button===0&&(!a||a==="_self")&&!s_(n)}var Su=null;function c_(){if(Su===null)try{new FormData(document.createElement("form"),0),Su=!1}catch{Su=!0}return Su}var d_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function sh(n){return n!=null&&!d_.has(n)?(jn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Du}"`),null):n}function f_(n,a){let r,i,s,u,h;if(i_(n)){let m=n.getAttribute("action");i=m?Ra(m,a):null,r=n.getAttribute("method")||ku,s=sh(n.getAttribute("enctype"))||Du,u=new FormData(n)}else if(r_(n)||o_(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?Ra(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||ku,s=sh(n.getAttribute("formenctype"))||sh(m.getAttribute("enctype"))||Du,u=new FormData(m,n),!c_()){let{name:g,type:y,value:b}=n;if(y==="image"){let w=g?`${g}.`:"";u.append(`${w}x`,"0"),u.append(`${w}y`,"0")}else g&&u.append(g,b)}}else{if(rc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=ku,i=null,s=Du,h=n}return u&&s==="text/plain"&&(h=u,u=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:u,body:h}}function Sm(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function h_(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 m_(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 p_(n,a,r){let i=await Promise.all(n.map(async s=>{let u=a.routes[s.route.id];if(u){let h=await h_(u,r);return h.links?h.links():[]}return[]}));return b_(i.flat(1).filter(m_).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function I0(n,a,r,i,s,u){let h=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,m=(p,g)=>{var y;return r[g].pathname!==p.pathname||((y=r[g].route.path)==null?void 0:y.endsWith("*"))&&r[g].params["*"]!==p.params["*"]};return u==="assets"?a.filter((p,g)=>h(p,g)||m(p,g)):u==="data"?a.filter((p,g)=>{var b;let y=i.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((b=r[0])==null?void 0:b.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function v_(n,a,{includeHydrateFallback:r}={}){return g_(n.map(i=>{let s=a.routes[i.route.id];if(!s)return[];let u=[s.module];return s.clientActionModule&&(u=u.concat(s.clientActionModule)),s.clientLoaderModule&&(u=u.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(u=u.concat(s.hydrateFallbackModule)),s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function g_(n){return[...new Set(n)]}function y_(n){let a={},r=Object.keys(n).sort();for(let i of r)a[i]=n[i];return a}function b_(n,a){let r=new Set;return new Set(a),n.reduce((i,s)=>{let u=JSON.stringify(y_(s));return r.has(u)||(r.add(u),i.push({key:u,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var x_=new Set([100,101,204,205]);function w_(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&&Ra(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Mx(){let n=v.useContext(bi);return Sm(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function S_(){let n=v.useContext(ac);return Sm(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var jm=v.createContext(void 0);jm.displayName="FrameworkContext";function Ax(){let n=v.useContext(jm);return Sm(n,"You must render this element inside a <HydratedRouter> element"),n}function j_(n,a){let r=v.useContext(jm),[i,s]=v.useState(!1),[u,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=a,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let S=_=>{_.forEach(R=>{h(R.isIntersecting)})},C=new IntersectionObserver(S,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let S=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(S)}}},[i]);let j=()=>{s(!0)},E=()=>{s(!1),h(!1)};return r?n!=="intent"?[u,w,{}]:[u,w,{onFocus:_o(m,j),onBlur:_o(p,E),onMouseEnter:_o(g,j),onMouseLeave:_o(y,E),onTouchStart:_o(b,j)}]:[!1,w,{}]}function _o(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function E_({page:n,...a}){let{router:r}=Mx(),i=v.useMemo(()=>xx(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(C_,{page:n,matches:i,...a}):null}function N_(n){let{manifest:a,routeModules:r}=Ax(),[i,s]=v.useState([]);return v.useEffect(()=>{let u=!1;return p_(n,a,r).then(h=>{u||s(h)}),()=>{u=!0}},[n,a,r]),i}function C_({page:n,matches:a,...r}){let i=Aa(),{manifest:s,routeModules:u}=Ax(),{basename:h}=Mx(),{loaderData:m,matches:p}=S_(),g=v.useMemo(()=>I0(n,a,p,s,i,"data"),[n,a,p,s,i]),y=v.useMemo(()=>I0(n,a,p,s,i,"assets"),[n,a,p,s,i]),b=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,S=!1;if(a.forEach(_=>{var T;let R=s.routes[_.route.id];!R||!R.hasLoader||(!g.some(D=>D.route.id===_.route.id)&&_.route.id in m&&((T=u[_.route.id])!=null&&T.shouldRevalidate)||R.hasClientLoader?S=!0:E.add(_.route.id))}),E.size===0)return[];let C=w_(n,h);return S&&E.size>0&&C.searchParams.set("_routes",a.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[h,m,i,s,g,a,n,u]),w=v.useMemo(()=>v_(y,s),[y,s]),j=N_(y);return v.createElement(v.Fragment,null,b.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),w.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),j.map(({key:E,link:S})=>v.createElement("link",{key:E,...S})))}function __(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var kx=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kx&&(window.__reactRouterVersion="7.6.1")}catch{}function R_({basename:n,children:a,window:r}){let i=v.useRef();i.current==null&&(i.current=pC({window:r,v5Compat:!0}));let s=i.current,[u,h]=v.useState({action:s.action,location:s.location}),m=v.useCallback(p=>{v.startTransition(()=>h(p))},[h]);return v.useLayoutEffect(()=>s.listen(m),[s,m]),v.createElement(a_,{basename:n,children:a,location:u.location,navigationType:u.action,navigator:s})}var Dx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ea=v.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:s,reloadDocument:u,replace:h,state:m,target:p,to:g,preventScrollReset:y,viewTransition:b,...w},j){let{basename:E}=v.useContext(zn),S=typeof g=="string"&&Dx.test(g),C,_=!1;if(typeof g=="string"&&S&&(C=g,kx))try{let G=new URL(window.location.href),te=g.startsWith("//")?new URL(G.protocol+g):new URL(g),ce=Ra(te.pathname,E);te.origin===G.origin&&ce!=null?g=ce+te.search+te.hash:_=!0}catch{jn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=YC(g,{relative:s}),[T,D,L]=j_(i,w),X=k_(g,{replace:h,state:m,target:p,preventScrollReset:y,relative:s,viewTransition:b});function q(G){a&&a(G),G.defaultPrevented||X(G)}let H=v.createElement("a",{...w,...L,href:C||R,onClick:_||u?a:q,ref:__(j,D),target:p,"data-discover":!S&&r==="render"?"true":void 0});return T&&!S?v.createElement(v.Fragment,null,H,v.createElement(E_,{page:R})):H});Ea.displayName="Link";var T_=v.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:s=!1,style:u,to:h,viewTransition:m,children:p,...g},y){let b=$o(h,{relative:g.relative}),w=Aa(),j=v.useContext(ac),{navigator:E,basename:S}=v.useContext(zn),C=j!=null&&U_(b)&&m===!0,_=E.encodeLocation?E.encodeLocation(b).pathname:b.pathname,R=w.pathname,T=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;r||(R=R.toLowerCase(),T=T?T.toLowerCase():null,_=_.toLowerCase()),T&&S&&(T=Ra(T,S)||T);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=R===_||!s&&R.startsWith(_)&&R.charAt(D)==="/",X=T!=null&&(T===_||!s&&T.startsWith(_)&&T.charAt(_.length)==="/"),q={isActive:L,isPending:X,isTransitioning:C},H=L?a:void 0,G;typeof i=="function"?G=i(q):G=[i,L?"active":null,X?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof u=="function"?u(q):u;return v.createElement(Ea,{...g,"aria-current":H,className:G,ref:y,style:te,to:h,viewTransition:m},typeof p=="function"?p(q):p)});T_.displayName="NavLink";var M_=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:s,state:u,method:h=ku,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:b,...w},j)=>{let E=z_(),S=L_(m,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Dx.test(m),R=T=>{if(p&&p(T),T.defaultPrevented)return;T.preventDefault();let D=T.nativeEvent.submitter,L=(D==null?void 0:D.getAttribute("formmethod"))||h;E(D||T.currentTarget,{fetcherKey:a,method:L,navigate:r,replace:s,state:u,relative:g,preventScrollReset:y,viewTransition:b})};return v.createElement("form",{ref:j,method:C,action:S,onSubmit:i?p:R,...w,"data-discover":!_&&n==="render"?"true":void 0})});M_.displayName="Form";function A_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ox(n){let a=v.useContext(bi);return Ie(a,A_(n)),a}function k_(n,{target:a,replace:r,state:i,preventScrollReset:s,relative:u,viewTransition:h}={}){let m=_x(),p=Aa(),g=$o(n,{relative:u});return v.useCallback(y=>{if(u_(y,a)){y.preventDefault();let b=r!==void 0?r:Uo(p)===Uo(g);m(n,{replace:b,state:i,preventScrollReset:s,relative:u,viewTransition:h})}},[p,m,g,r,i,a,n,s,u,h])}var D_=0,O_=()=>`__${String(++D_)}__`;function z_(){let{router:n}=Ox("useSubmit"),{basename:a}=v.useContext(zn),r=IC();return v.useCallback(async(i,s={})=>{let{action:u,method:h,encType:m,formData:p,body:g}=f_(i,a);if(s.navigate===!1){let y=s.fetcherKey||O_();await n.fetch(y,r,s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,flushSync:s.flushSync})}else await n.navigate(s.action||u,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,r])}function L_(n,{relative:a}={}){let{basename:r}=v.useContext(zn),i=v.useContext(Ln);Ie(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),u={...$o(n||".",{relative:a})},h=Aa();if(n==null){u.search=h.search;let m=new URLSearchParams(u.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(b=>b).forEach(b=>m.append("index",b));let y=m.toString();u.search=y?`?${y}`:""}}return(!n||n===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Na([r,u.pathname])),Uo(u)}function U_(n,a={}){let r=v.useContext(Ex);Ie(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Ox("useViewTransitionState"),s=$o(n,{relative:a.relative});if(!r.isTransitioning)return!1;let u=Ra(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=Ra(r.nextLocation.pathname,i)||r.nextLocation.pathname;return Bu(s.pathname,h)!=null||Bu(s.pathname,u)!=null}[...x_];var Zo=bx();const zx=lx(Zo);/**
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 H_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),q_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),eb=n=>{const a=q_(n);return a.charAt(0).toUpperCase()+a.slice(1)},Lx=(...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 B_={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 Q_=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:u,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...B_,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:Lx("lucide",s),...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
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 rt=(n,a)=>{const r=v.forwardRef(({className:i,...s},u)=>v.createElement(Q_,{ref:u,iconNode:a,className:Lx(`lucide-${H_(eb(n))}`,`lucide-${n}`,i),...s}));return r.displayName=eb(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 Y_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],G_=rt("arrow-left",Y_);/**
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 V_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],K_=rt("ban",V_);/**
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 X_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ux=rt("chevron-down",X_);/**
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 $_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Hx=rt("chevron-left",$_);/**
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 Z_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ic=rt("chevron-right",Z_);/**
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 F_=[["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"}]],P_=rt("circle-alert",F_);/**
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 J_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],oc=rt("circle-check",J_);/**
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 W_=[["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"}]],sc=rt("circle-x",W_);/**
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 I_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],uc=rt("clock",I_);/**
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 eR=[["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"}]],qx=rt("columns-3",eR);/**
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 tR=[["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"}]],nR=rt("database",tR);/**
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 aR=[["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"}]],lR=rt("git-branch",aR);/**
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 rR=[["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"}]],iR=rt("inbox",rR);/**
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 oR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Bx=rt("info",oR);/**
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 sR=[["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"}]],Qx=rt("key",sR);/**
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 uR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Ct=rt("loader-circle",uR);/**
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 cR=[["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"}]],dR=rt("mail-warning",cR);/**
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 fR=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Yx=rt("play",fR);/**
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 hR=[["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"}]],cc=rt("refresh-cw",hR);/**
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 mR=[["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"}]],pR=rt("settings",mR);/**
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 vR=[["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"}]],gR=rt("shield",vR);/**
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 yR=[["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"}]],dc=rt("table",yR);function Gx(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=Gx(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function bR(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=Gx(n))&&(i&&(i+=" "),i+=a);return i}const Em="-",xR=n=>{const a=SR(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:s=>{const u=s.split(Em);return u[0]===""&&u.length!==1&&u.shift(),Vx(u,a)||wR(s)},getConflictingClassGroupIds:(s,u)=>{const h=r[s]||[];return u&&i[s]?[...h,...i[s]]:h}}},Vx=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],s=a.nextPart.get(i),u=s?Vx(n.slice(1),s):void 0;if(u)return u;if(a.validators.length===0)return;const h=n.join(Em);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},tb=/^\[(.+)\]$/,wR=n=>{if(tb.test(n)){const a=tb.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},SR=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const s in r)Qh(r[s],i,s,a);return i},Qh=(n,a,r,i)=>{n.forEach(s=>{if(typeof s=="string"){const u=s===""?a:nb(a,s);u.classGroupId=r;return}if(typeof s=="function"){if(jR(s)){Qh(s(i),a,r,i);return}a.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([u,h])=>{Qh(h,nb(a,u),r,i)})})},nb=(n,a)=>{let r=n;return a.split(Em).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},jR=n=>n.isThemeGetter,ER=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const s=(u,h)=>{r.set(u,h),a++,a>n&&(a=0,i=r,r=new Map)};return{get(u){let h=r.get(u);if(h!==void 0)return h;if((h=i.get(u))!==void 0)return s(u,h),h},set(u,h){r.has(u)?r.set(u,h):s(u,h)}}},Yh="!",Gh=":",NR=Gh.length,CR=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=s=>{const u=[];let h=0,m=0,p=0,g;for(let E=0;E<s.length;E++){let S=s[E];if(h===0&&m===0){if(S===Gh){u.push(s.slice(p,E)),p=E+NR;continue}if(S==="/"){g=E;continue}}S==="["?h++:S==="]"?h--:S==="("?m++:S===")"&&m--}const y=u.length===0?s:s.substring(p),b=_R(y),w=b!==y,j=g&&g>p?g-p:void 0;return{modifiers:u,hasImportantModifier:w,baseClassName:b,maybePostfixModifierPosition:j}};if(a){const s=a+Gh,u=i;i=h=>h.startsWith(s)?u(h.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=u=>r({className:u,parseClassName:s})}return i},_R=n=>n.endsWith(Yh)?n.substring(0,n.length-1):n.startsWith(Yh)?n.substring(1):n,RR=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(u=>{u[0]==="["||a[u]?(i.push(...s.sort(),u),s=[]):s.push(u)}),i.push(...s.sort()),i}},TR=n=>({cache:ER(n.cacheSize),parseClassName:CR(n),sortModifiers:RR(n),...xR(n)}),MR=/\s+/,AR=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:u}=a,h=[],m=n.trim().split(MR);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:b,modifiers:w,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:S}=r(y);if(b){p=y+(p.length>0?" "+p:p);continue}let C=!!S,_=i(C?E.substring(0,S):E);if(!_){if(!C){p=y+(p.length>0?" "+p:p);continue}if(_=i(E),!_){p=y+(p.length>0?" "+p:p);continue}C=!1}const R=u(w).join(":"),T=j?R+Yh:R,D=T+_;if(h.includes(D))continue;h.push(D);const L=s(_,C);for(let X=0;X<L.length;++X){const q=L[X];h.push(T+q)}p=y+(p.length>0?" "+p:p)}return p};function kR(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=Kx(a))&&(i&&(i+=" "),i+=r);return i}const Kx=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=Kx(n[i]))&&(r&&(r+=" "),r+=a);return r};function DR(n,...a){let r,i,s,u=h;function h(p){const g=a.reduce((y,b)=>b(y),n());return r=TR(g),i=r.cache.get,s=r.cache.set,u=m,m(p)}function m(p){const g=i(p);if(g)return g;const y=AR(p,r);return s(p,y),y}return function(){return u(kR.apply(null,arguments))}}const pt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},Xx=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,$x=/^\((?:(\w[\w-]*):)?(.+)\)$/i,OR=/^\d+\/\d+$/,zR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,LR=/\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$/,UR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,HR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$r=n=>OR.test(n),Me=n=>!!n&&!Number.isNaN(Number(n)),ll=n=>!!n&&Number.isInteger(Number(n)),uh=n=>n.endsWith("%")&&Me(n.slice(0,-1)),xa=n=>zR.test(n),BR=()=>!0,QR=n=>LR.test(n)&&!UR.test(n),Zx=()=>!1,YR=n=>HR.test(n),GR=n=>qR.test(n),VR=n=>!me(n)&&!pe(n),KR=n=>wi(n,Jx,Zx),me=n=>Xx.test(n),Yl=n=>wi(n,Wx,QR),ch=n=>wi(n,PR,Me),ab=n=>wi(n,Fx,Zx),XR=n=>wi(n,Px,GR),ju=n=>wi(n,Ix,YR),pe=n=>$x.test(n),Ro=n=>Si(n,Wx),$R=n=>Si(n,JR),lb=n=>Si(n,Fx),ZR=n=>Si(n,Jx),FR=n=>Si(n,Px),Eu=n=>Si(n,Ix,!0),wi=(n,a,r)=>{const i=Xx.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},Si=(n,a,r=!1)=>{const i=$x.exec(n);return i?i[1]?a(i[1]):r:!1},Fx=n=>n==="position"||n==="percentage",Px=n=>n==="image"||n==="url",Jx=n=>n==="length"||n==="size"||n==="bg-size",Wx=n=>n==="length",PR=n=>n==="number",JR=n=>n==="family-name",Ix=n=>n==="shadow",WR=()=>{const n=pt("color"),a=pt("font"),r=pt("text"),i=pt("font-weight"),s=pt("tracking"),u=pt("leading"),h=pt("breakpoint"),m=pt("container"),p=pt("spacing"),g=pt("radius"),y=pt("shadow"),b=pt("inset-shadow"),w=pt("text-shadow"),j=pt("drop-shadow"),E=pt("blur"),S=pt("perspective"),C=pt("aspect"),_=pt("ease"),R=pt("animate"),T=()=>["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(),pe,me],X=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],H=()=>[pe,me,p],G=()=>[$r,"full","auto",...H()],te=()=>[ll,"none","subgrid",pe,me],ce=()=>["auto",{span:["full",ll,pe,me]},ll,pe,me],de=()=>[ll,"auto",pe,me],I=()=>["auto","min","max","fr",pe,me],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...H()],W=()=>[$r,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],V=()=>[n,pe,me],$=()=>[...D(),lb,ab,{position:[pe,me]}],fe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",ZR,KR,{size:[pe,me]}],Z=()=>[uh,Ro,Yl],ee=()=>["","none","full",g,pe,me],le=()=>["",Me,Ro,Yl],ve=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Me,uh,lb,ab],Ee=()=>["","none",E,pe,me],ye=()=>["none",Me,pe,me],Ne=()=>["none",Me,pe,me],Ue=()=>[Me,pe,me],Ye=()=>[$r,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[xa],breakpoint:[xa],color:[BR],container:[xa],"drop-shadow":[xa],ease:["in","out","in-out"],font:[VR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[xa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[xa],shadow:[xa],spacing:["px",Me],text:[xa],"text-shadow":[xa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$r,me,pe,C]}],container:["container"],columns:[{columns:[Me,me,pe,m]}],"break-after":[{"break-after":T()}],"break-before":[{"break-before":T()}],"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:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],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:[ll,"auto",pe,me]}],basis:[{basis:[$r,"full","auto",m,...H()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,$r,"auto","initial","none",me]}],grow:[{grow:["",Me,pe,me]}],shrink:[{shrink:["",Me,pe,me]}],order:[{order:[ll,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ce()}],"col-start":[{"col-start":de()}],"col-end":[{"col-end":de()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ce()}],"row-start":[{"row-start":de()}],"row-end":[{"row-end":de()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"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:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m: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":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"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,Ro,Yl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,pe,ch]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",uh,me]}],"font-family":[{font:[$R,me,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,pe,me]}],"line-clamp":[{"line-clamp":[Me,"none",pe,ch]}],leading:[{leading:[u,...H()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:V()}],"text-color":[{text:V()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",pe,Yl]}],"text-decoration-color":[{decoration:V()}],"underline-offset":[{"underline-offset":[Me,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],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",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:$()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ll,pe,me],radial:["",pe,me],conic:[ll,pe,me]},FR,XR]}],"bg-color":[{bg:V()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:V()}],"gradient-via":[{via:V()}],"gradient-to":[{to:V()}],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:V()}],"border-color-x":[{"border-x":V()}],"border-color-y":[{"border-y":V()}],"border-color-s":[{"border-s":V()}],"border-color-e":[{"border-e":V()}],"border-color-t":[{"border-t":V()}],"border-color-r":[{"border-r":V()}],"border-color-b":[{"border-b":V()}],"border-color-l":[{"border-l":V()}],"divide-color":[{divide:V()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,pe,me]}],"outline-w":[{outline:["",Me,Ro,Yl]}],"outline-color":[{outline:V()}],shadow:[{shadow:["","none",y,Eu,ju]}],"shadow-color":[{shadow:V()}],"inset-shadow":[{"inset-shadow":["none",b,Eu,ju]}],"inset-shadow-color":[{"inset-shadow":V()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:V()}],"ring-offset-w":[{"ring-offset":[Me,Yl]}],"ring-offset-color":[{"ring-offset":V()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":V()}],"text-shadow":[{"text-shadow":["none",w,Eu,ju]}],"text-shadow-color":[{"text-shadow":V()}],opacity:[{opacity:[Me,pe,me]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":V()}],"mask-image-linear-to-color":[{"mask-linear-to":V()}],"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":V()}],"mask-image-t-to-color":[{"mask-t-to":V()}],"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":V()}],"mask-image-r-to-color":[{"mask-r-to":V()}],"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":V()}],"mask-image-b-to-color":[{"mask-b-to":V()}],"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":V()}],"mask-image-l-to-color":[{"mask-l-to":V()}],"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":V()}],"mask-image-x-to-color":[{"mask-x-to":V()}],"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":V()}],"mask-image-y-to-color":[{"mask-y-to":V()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"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":V()}],"mask-image-radial-to-color":[{"mask-radial-to":V()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":V()}],"mask-image-conic-to-color":[{"mask-conic-to":V()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:$()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:Ee()}],brightness:[{brightness:[Me,pe,me]}],contrast:[{contrast:[Me,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",j,Eu,ju]}],"drop-shadow-color":[{"drop-shadow":V()}],grayscale:[{grayscale:["",Me,pe,me]}],"hue-rotate":[{"hue-rotate":[Me,pe,me]}],invert:[{invert:["",Me,pe,me]}],saturate:[{saturate:[Me,pe,me]}],sepia:[{sepia:["",Me,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Me,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[Me,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",Me,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[Me,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[Me,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",pe,me]}],ease:[{ease:["linear","initial",_,pe,me]}],delay:[{delay:[Me,pe,me]}],animate:[{animate:["none",R,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,pe,me]}],"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:Ue()}],"skew-x":[{"skew-x":Ue()}],"skew-y":[{"skew-y":Ue()}],transform:[{transform:[pe,me,"","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:V()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:V()}],"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",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,me]}],fill:[{fill:["none",...V()]}],"stroke-w":[{stroke:[Me,Ro,Yl,ch]}],stroke:[{stroke:["none",...V()]}],"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"]}},IR=DR(WR);function oe(...n){return IR(bR(n))}function Do(n){return n===null?"-":n<1e3?`${n}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const eT={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},tT={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 Qu({children:n,className:a,rounded:r="lg",shadow:i="md",...s}){return d.jsxs("div",{"data-slot":"glass-container",className:oe("relative","bg-card","backdrop-blur-xl","border border-border",eT[r],tT[i],a),...s,children:[d.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%)"}}),d.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%)"}}),d.jsx("div",{className:"relative z-10",children:n})]})}function bt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...s}){return d.jsx(Qu,{"data-slot":"card",rounded:a,shadow:r,className:oe("p-6",n),...s,children:i})}function Mt({className:n,...a}){return d.jsx("div",{"data-slot":"card-header",className:oe("flex flex-row items-center justify-between space-y-0 pb-2",n),...a})}function At({className:n,...a}){return d.jsx("h3",{"data-slot":"card-title",className:oe("font-semibold text-sm leading-none text-card-foreground",n),...a})}function Ca({className:n,...a}){return d.jsx("p",{"data-slot":"card-description",className:oe("text-muted-foreground text-sm",n),...a})}function xt({className:n,...a}){return d.jsx("div",{"data-slot":"card-content",className:oe(n),...a})}/**
182
- * @license lucide-react v0.511.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 nT=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),aT=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),rb=n=>{const a=aT(n);return a.charAt(0).toUpperCase()+a.slice(1)},ew=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),lT=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
187
- * @license lucide-react v0.511.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
- */var rT={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"};/**
192
- * @license lucide-react v0.511.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 iT=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:u,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...rT,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:ew("lucide",s),...!u&&!lT(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(u)?u:[u]]));/**
197
- * @license lucide-react v0.511.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 Un=(n,a)=>{const r=v.forwardRef(({className:i,...s},u)=>v.createElement(iT,{ref:u,iconNode:a,className:ew(`lucide-${nT(rb(n))}`,`lucide-${n}`,i),...s}));return r.displayName=rb(n),r};/**
202
- * @license lucide-react v0.511.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 oT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Nm=Un("check",oT);/**
207
- * @license lucide-react v0.511.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 sT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],uT=Un("chevron-down",sT);/**
212
- * @license lucide-react v0.511.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 cT=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ib=Un("chevron-left",cT);/**
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 dT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Vh=Un("chevron-right",dT);/**
222
- * @license lucide-react v0.511.0 - ISC
223
- *
224
- * This source code is licensed under the ISC license.
225
- * See the LICENSE file in the root directory of this source tree.
226
- */const fT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],hT=Un("chevron-up",fT);/**
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 mT=[["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"}]],pT=Un("clipboard",mT);/**
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 vT=[["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"}]],gT=Un("file-json",vT);/**
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 yT=[["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"}]],bT=Un("file-spreadsheet",yT);/**
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 xT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],wT=Un("loader-circle",xT);/**
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 ST=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],jT=Un("search",ST);/**
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 ET=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],NT=Un("x",ET);function CT(n){const a=Math.floor((new Date().getTime()-n.getTime())/1e3);return a<60?"just now":a<3600?`${Math.floor(a/60)}m ago`:a<86400?`${Math.floor(a/3600)}h ago`:a<604800?`${Math.floor(a/86400)}d ago`:n.toLocaleDateString()}function dh({value:n}){const[a,r]=v.useState(!1);return d.jsx("button",{onClick:async i=>{i.stopPropagation();try{await navigator.clipboard.writeText(n),r(!0),setTimeout(()=>r(!1),2e3)}catch{const s=document.createElement("textarea");s.value=n,document.body.appendChild(s),s.select(),document.execCommand("copy"),document.body.removeChild(s),r(!0),setTimeout(()=>r(!1),2e3)}},className:oe("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?d.jsx(Nm,{className:"w-3 h-3"}):d.jsx(pT,{className:"w-3 h-3"})})}function _T({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[s,u]=v.useState(!1),h=i||s;if(!n)return null;let m;typeof n=="number"?m=new Date(n<1e10?n*1e3:n):m=new Date(n);const p=m.toISOString(),g=m.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),y=CT(m);return d.jsxs("div",{className:oe("relative inline-block",a),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),children:[d.jsx("time",{dateTime:p,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:y}),d.jsx("div",{className:oe("absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-[9999] w-72","transition-all duration-200 ease-out origin-bottom",h?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:d.jsx(Qu,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:d.jsxs("div",{className:"space-y-2.5",children:[r!==void 0&&d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:String(r)}),d.jsx(dh,{value:String(r)})]})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:p}),d.jsx(dh,{value:p})]})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),d.jsxs("div",{className:"flex items-center gap-1",children:[d.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:g}),d.jsx(dh,{value:g})]})]})]})})})]})}function RT(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function TT(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 MT(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function AT(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&MT(n)?"date":typeof i=="number"?"number":TT(i)?"date":"string"}return"string"}function tw({results:n,meta:a,columns:r,error:i,title:s="Results",pageSize:u=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const[g,y]=v.useState(""),[b,w]=v.useState(null),[j,E]=v.useState(new Set),[S,C]=v.useState(1),_=!!p,R=p?Math.floor(p.offset/p.limit)+1:1,T=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:AT(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]),X=v.useMemo(()=>b?[...L].sort((I,ie)=>{const re=I[b.key],U=ie[b.key];return re==null?1:U==null?-1:re<U?b.direction==="asc"?-1:1:re>U?b.direction==="asc"?1:-1:0}):L,[L,b]),q=Math.ceil(X.length/u),H=v.useMemo(()=>{const I=(S-1)*u;return X.slice(I,I+u)},[X,S,u]);v.useMemo(()=>{C(1)},[g,b]);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=()=>{j.size===H.length?E(new Set):E(new Set(H.map((I,ie)=>ie)))},ce=I=>{const ie=new Set(j);ie.has(I)?ie.delete(I):ie.add(I),E(ie)},de=(I,ie)=>{const re=I[ie.key];if(re==null)return d.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(ie.type||"string"){case"bool":return re?d.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:d.jsx(Nm,{className:"w-3.5 h-3.5"})}):d.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:d.jsx(NT,{className:"w-3.5 h-3.5"})});case"date":return d.jsx(_T,{timestamp:re,rawValue:typeof re=="number"?re:void 0});case"number":return d.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof re=="number"?re.toLocaleString():String(re)});default:return typeof re=="object"?d.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(re)}):d.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:String(re)})}};return i?d.jsxs(Qu,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[d.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:d.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),d.jsx("div",{className:"p-5",children:d.jsx("p",{className:"font-mono text-sm text-red-500",children:i})})]}):d.jsxs(Qu,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[d.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:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:s}),a&&d.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:RT(a.duration)}),d.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[n.length," row",n.length!==1?"s":""]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("div",{className:"relative group",children:[d.jsx(jT,{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"}),d.jsx("input",{type:"text",placeholder:"Search results...",value:g,onChange:I=>y(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)&&d.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[h&&d.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:d.jsx(bT,{className:"w-4 h-4"})}),m&&d.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:d.jsx(gT,{className:"w-4 h-4"})})]})]})]}),d.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:d.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[d.jsx("th",{className:"p-4 w-12",children:d.jsx("input",{type:"checkbox",checked:j.size===H.length&&H.length>0,onChange:te,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(I=>d.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:d.jsxs("div",{className:"flex items-center gap-1",children:[I.label,d.jsxs("div",{className:oe("flex flex-col opacity-0 group-hover:opacity-50",(b==null?void 0:b.key)===I.key&&"opacity-100"),children:[d.jsx(hT,{className:oe("w-2 h-2",(b==null?void 0:b.key)===I.key&&b.direction==="asc"&&"text-blue-500")}),d.jsx(uT,{className:oe("w-2 h-2",(b==null?void 0:b.key)===I.key&&b.direction==="desc"&&"text-blue-500")})]})]})},I.key))]})}),d.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:H.length>0?H.map((I,ie)=>d.jsxs("tr",{className:oe("group transition-colors",j.has(ie)?"bg-blue-50/50 dark:bg-blue-500/10":"hover:bg-gray-50 dark:hover:bg-white/[0.02]"),children:[d.jsx("td",{className:"p-4",children:d.jsx("input",{type:"checkbox",checked:j.has(ie),onChange:()=>ce(ie),className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(re=>d.jsx("td",{className:"p-4 whitespace-nowrap",children:de(I,re)},`${ie}-${re.key}`))]},ie)):d.jsx("tr",{children:d.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."})})})]})}),d.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:[d.jsxs("div",{children:[_?d.jsxs(d.Fragment,{children:["Showing"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+n.length,p.total)})," ","of"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):d.jsxs(d.Fragment,{children:["Showing"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:H.length})," ","of"," ",d.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:X.length})," ","results"]}),j.size>0&&d.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[j.size," row",j.size!==1?"s":""," ","selected"]})]}),_&&T>1&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>p.onPageChange(Math.max(0,p.offset-p.limit)),disabled:R===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:d.jsx(ib,{className:"w-4 h-4"})}),d.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(T,5)},(I,ie)=>{let re;return T<=5||R<=3?re=ie+1:R>=T-2?re=T-4+ie:re=R-2+ie,d.jsx("button",{onClick:()=>p.onPageChange((re-1)*p.limit),className:oe("px-2.5 py-1 rounded-lg font-medium transition-colors",R===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)})}),d.jsx("button",{onClick:()=>p.onPageChange(p.offset+p.limit),disabled:R===T,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:d.jsx(Vh,{className:"w-4 h-4"})})]}),!_&&q>1&&d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{onClick:()=>C(I=>Math.max(1,I-1)),disabled:S===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:d.jsx(ib,{className:"w-4 h-4"})}),d.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(q,5)},(I,ie)=>{let re;return q<=5||S<=3?re=ie+1:S>=q-2?re=q-4+ie:re=S-2+ie,d.jsx("button",{onClick:()=>C(re),className:oe("px-2.5 py-1 rounded-lg font-medium transition-colors",S===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)})}),d.jsx("button",{onClick:()=>C(I=>Math.min(q,I+1)),disabled:S===q,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:d.jsx(Vh,{className:"w-4 h-4"})})]})]})]})}function fc({className:n,...a}){return d.jsx("table",{"data-slot":"table",className:oe("w-full caption-bottom text-sm",n),...a})}function hc({className:n,...a}){return d.jsx("thead",{"data-slot":"table-header",className:oe("[&_tr]:border-b",n),...a})}function mc({className:n,...a}){return d.jsx("tbody",{"data-slot":"table-body",className:oe("[&_tr:last-child]:border-0",n),...a})}function yl({className:n,...a}){return d.jsx("tr",{"data-slot":"table-row",className:oe("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function rn({className:n,...a}){return d.jsx("th",{"data-slot":"table-head",className:oe("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 on({className:n,...a}){return d.jsx("td",{"data-slot":"table-cell",className:oe("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function ob(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Fo(...n){return a=>{let r=!1;const i=n.map(s=>{const u=ob(s,a);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let s=0;s<i.length;s++){const u=i[s];typeof u=="function"?u():ob(n[s],null)}}}}function we(...n){return v.useCallback(Fo(...n),n)}function er(n){const a=kT(n),r=v.forwardRef((i,s)=>{const{children:u,...h}=i,m=v.Children.toArray(u),p=m.find(DT);if(p){const g=p.props.children,y=m.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return d.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return d.jsx(a,{...h,ref:s,children:u})});return r.displayName=`${n}.Slot`,r}var sb=er("Slot");function kT(n){const a=v.forwardRef((r,i)=>{const{children:s,...u}=r;if(v.isValidElement(s)){const h=zT(s),m=OT(u,s.props);return s.type!==v.Fragment&&(m.ref=i?Fo(i,h):h),v.cloneElement(s,m)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var nw=Symbol("radix.slottable");function aw(n){const a=({children:r})=>d.jsx(d.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=nw,a}function DT(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===nw}function OT(n,a){const r={...a};for(const i in a){const s=n[i],u=a[i];/^on[A-Z]/.test(i)?s&&u?r[i]=(...h)=>{const m=u(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...u}:i==="className"&&(r[i]=[s,u].filter(Boolean).join(" "))}return{...n,...r}}function zT(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function lw(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var s=n.length;for(a=0;a<s;a++)n[a]&&(r=lw(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function LT(){for(var n,a,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=lw(n))&&(i&&(i+=" "),i+=a);return i}const ub=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,cb=LT,Cm=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return cb(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:u}=a,h=Object.keys(s).map(g=>{const y=r==null?void 0:r[g],b=u==null?void 0:u[g];if(y===null)return null;const w=ub(y)||ub(b);return s[g][w]}),m=r&&Object.entries(r).reduce((g,y)=>{let[b,w]=y;return w===void 0||(g[b]=w),g},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,y)=>{let{class:b,className:w,...j}=y;return Object.entries(j).every(E=>{let[S,C]=E;return Array.isArray(C)?C.includes({...u,...m}[S]):{...u,...m}[S]===C})?[...g,b,w]:g},[]);return cb(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},UT={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 Yu({className:n,icon:a,variant:r="default",children:i,...s}){return d.jsxs("div",{className:oe("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",UT[r],n),...s,children:[a&&d.jsx("span",{className:"flex-shrink-0",children:a}),d.jsx("span",{className:"leading-none",children:i})]})}const db=Cm("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:oe("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:oe("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:oe("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:oe("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:oe("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:oe("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"}}),HT=["primary","secondary","danger","success","icon"];function kt({className:n,variant:a,size:r,asChild:i=!1,isLoading:s=!1,children:u,disabled:h,...m}){const p=i?sb:"button",g=a&&HT.includes(a);return i?d.jsx(sb,{"data-slot":"button",className:oe(db({variant:a,size:r,className:n})),...m,children:u}):d.jsxs(p,{"data-slot":"button",className:oe(db({variant:a,size:r,className:n})),disabled:h||s,...m,children:[g&&d.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[d.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%)"}}),d.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%)"}})]}),d.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[s&&d.jsx(wT,{className:"size-4 animate-spin"}),u]})]})}const rw=v.forwardRef(({className:n,active:a=!1,icon:r,children:i,"data-state":s,...u},h)=>{const m=a||s==="active";return d.jsxs("button",{ref:h,"data-slot":"tab-button","data-state":s,className:oe("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",n),...u,children:[r&&d.jsx(r,{className:"size-4"}),i,d.jsx("span",{className:oe("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")})]})});rw.displayName="TabButton";const qT={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function BT({className:n,label:a,error:r,leftIcon:i,rightContent:s,inputSize:u="md",...h}){return d.jsxs("div",{className:"w-full",children:[a&&d.jsx("label",{className:"block text-sm font-medium dark:text-white text-gray-900 mb-2",children:a}),d.jsx("div",{className:"relative",children:d.jsxs("div",{className:oe("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:[d.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[d.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%)"}}),d.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&&d.jsx("div",{className:"relative z-10 pl-4",children:d.jsx(i,{className:"w-4 h-4 dark:text-gray-400 text-gray-600 flex-shrink-0"})}),d.jsx("input",{className:oe("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",qT[u],i&&"pl-2",s!==null&&"pr-2"),...h}),s&&d.jsx("div",{className:"relative z-10 pr-3",children:s})]})}),r&&d.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var QT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=QT.reduce((n,a)=>{const r=er(`Primitive.${a}`),i=v.forwardRef((s,u)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...m,ref:u})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function Gu(n,a){n&&Zo.flushSync(()=>n.dispatchEvent(a))}var et=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function YT(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var st=n=>{const{present:a,children:r}=n,i=GT(a),s=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),u=we(i.ref,VT(s));return typeof r=="function"||i.isPresent?v.cloneElement(s,{ref:u}):null};st.displayName="Presence";function GT(n){const[a,r]=v.useState(),i=v.useRef(null),s=v.useRef(n),u=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=YT(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Nu(i.current);u.current=m==="mounted"?g:"none"},[m]),et(()=>{const g=i.current,y=s.current;if(y!==n){const b=u.current,w=Nu(g);n?p("MOUNT"):w==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&b!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),et(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,b=j=>{const E=Nu(i.current).includes(CSS.escape(j.animationName));if(j.target===a&&E&&(p("ANIMATION_END"),!s.current)){const S=a.style.animationFillMode;a.style.animationFillMode="forwards",g=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=S)})}},w=j=>{j.target===a&&(u.current=Nu(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",b),a.addEventListener("animationend",b),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",b),a.removeEventListener("animationend",b)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function Nu(n){return(n==null?void 0:n.animationName)||"none"}function VT(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}function KT(n,a){const r=v.createContext(a),i=u=>{const{children:h,...m}=u,p=v.useMemo(()=>m,Object.values(m));return d.jsx(r.Provider,{value:p,children:h})};i.displayName=n+"Provider";function s(u){const h=v.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${u}\` must be used within \`${n}\``)}return[i,s]}function ht(n,a=[]){let r=[];function i(u,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=b=>{var w;const{scope:j,children:E,...S}=b,C=((w=j==null?void 0:j[n])==null?void 0:w[p])||m,_=v.useMemo(()=>S,Object.values(S));return d.jsx(C.Provider,{value:_,children:E})};g.displayName=u+"Provider";function y(b,w){var j;const E=((j=w==null?void 0:w[n])==null?void 0:j[p])||m,S=v.useContext(E);if(S)return S;if(h!==void 0)return h;throw new Error(`\`${b}\` must be used within \`${u}\``)}return[g,y]}const s=()=>{const u=r.map(h=>v.createContext(h));return function(h){const m=(h==null?void 0:h[n])||u;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:m}}),[h,m])}};return s.scopeName=n,[i,XT(s,...a)]}function XT(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const u=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(s)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:u}),[u])}};return r.scopeName=a.scopeName,r}function We(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 $T=v.createContext(void 0);function ji(n){const a=v.useContext($T);return n||a||"ltr"}function Kh(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 ZT(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var _m="ScrollArea",[iw,hz]=ht(_m),[FT,En]=iw(_m),ow=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:u=600,...h}=n,[m,p]=v.useState(null),[g,y]=v.useState(null),[b,w]=v.useState(null),[j,E]=v.useState(null),[S,C]=v.useState(null),[_,R]=v.useState(0),[T,D]=v.useState(0),[L,X]=v.useState(!1),[q,H]=v.useState(!1),G=we(a,ce=>p(ce)),te=ji(s);return d.jsx(FT,{scope:r,type:i,dir:te,scrollHideDelay:u,scrollArea:m,viewport:g,onViewportChange:y,content:b,onContentChange:w,scrollbarX:j,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:X,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:q,onScrollbarYEnabledChange:H,onCornerWidthChange:R,onCornerHeightChange:D,children:d.jsx(se.div,{dir:te,...h,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":T+"px",...n.style}})})});ow.displayName=_m;var sw="ScrollAreaViewport",uw=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:s,...u}=n,h=En(sw,r),m=v.useRef(null),p=we(a,m,h.onViewportChange);return d.jsxs(d.Fragment,{children:[d.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),d.jsx(se.div,{"data-radix-scroll-area-viewport":"",...u,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...n.style},children:d.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});uw.displayName=sw;var Pn="ScrollAreaScrollbar",cw=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=En(Pn,n.__scopeScrollArea),{onScrollbarXEnabledChange:u,onScrollbarYEnabledChange:h}=s,m=n.orientation==="horizontal";return v.useEffect(()=>(m?u(!0):h(!0),()=>{m?u(!1):h(!1)}),[m,u,h]),s.type==="hover"?d.jsx(PT,{...i,ref:a,forceMount:r}):s.type==="scroll"?d.jsx(JT,{...i,ref:a,forceMount:r}):s.type==="auto"?d.jsx(dw,{...i,ref:a,forceMount:r}):s.type==="always"?d.jsx(Rm,{...i,ref:a}):null});cw.displayName=Pn;var PT=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=En(Pn,n.__scopeScrollArea),[u,h]=v.useState(!1);return v.useEffect(()=>{const m=s.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},y=()=>{p=window.setTimeout(()=>h(!1),s.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",y)}}},[s.scrollArea,s.scrollHideDelay]),d.jsx(st,{present:r||u,children:d.jsx(dw,{"data-state":u?"visible":"hidden",...i,ref:a})})}),JT=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=En(Pn,n.__scopeScrollArea),u=n.orientation==="horizontal",h=vc(()=>p("SCROLL_END"),100),[m,p]=ZT("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>p("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,s.scrollHideDelay,p]),v.useEffect(()=>{const g=s.viewport,y=u?"scrollLeft":"scrollTop";if(g){let b=g[y];const w=()=>{const j=g[y];b!==j&&(p("SCROLL"),h()),b=j};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[s.viewport,u,p,h]),d.jsx(st,{present:r||m!=="hidden",children:d.jsx(Rm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ae(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ae(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),dw=v.forwardRef((n,a)=>{const r=En(Pn,n.__scopeScrollArea),{forceMount:i,...s}=n,[u,h]=v.useState(!1),m=n.orientation==="horizontal",p=vc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:y)}},10);return mi(r.viewport,p),mi(r.content,p),d.jsx(st,{present:i||u,children:d.jsx(Rm,{"data-state":u?"visible":"hidden",...s,ref:a})})}),Rm=v.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,s=En(Pn,n.__scopeScrollArea),u=v.useRef(null),h=v.useRef(0),[m,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=vw(m.viewport,m.content),y={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:w=>u.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function b(w,j){return aM(w,h.current,m,j)}return r==="horizontal"?d.jsx(WT,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&u.current){const w=s.viewport.scrollLeft,j=fb(w,m,s.dir);u.current.style.transform=`translate3d(${j}px, 0, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollLeft=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollLeft=b(w,s.dir))}}):r==="vertical"?d.jsx(IT,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&u.current){const w=s.viewport.scrollTop,j=fb(w,m);u.current.style.transform=`translate3d(0, ${j}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=b(w))}}):null}),WT=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,u=En(Pn,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,u.onScrollbarXChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),d.jsx(hw,{"data-orientation":"horizontal",...s,ref:g,sizes:r,style:{bottom:0,left:u.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:u.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":pc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.x),onDragScroll:y=>n.onDragScroll(y.x),onWheelScroll:(y,b)=>{if(u.viewport){const w=u.viewport.scrollLeft+y.deltaX;n.onWheelScroll(w),yw(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&u.viewport&&h&&i({content:u.viewport.scrollWidth,viewport:u.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:Ku(h.paddingLeft),paddingEnd:Ku(h.paddingRight)}})}})}),IT=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,u=En(Pn,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,u.onScrollbarYChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),d.jsx(hw,{"data-orientation":"vertical",...s,ref:g,sizes:r,style:{top:0,right:u.dir==="ltr"?0:void 0,left:u.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":pc(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.y),onDragScroll:y=>n.onDragScroll(y.y),onWheelScroll:(y,b)=>{if(u.viewport){const w=u.viewport.scrollTop+y.deltaY;n.onWheelScroll(w),yw(w,b)&&y.preventDefault()}},onResize:()=>{p.current&&u.viewport&&h&&i({content:u.viewport.scrollHeight,viewport:u.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:Ku(h.paddingTop),paddingEnd:Ku(h.paddingBottom)}})}})}),[eM,fw]=iw(Pn),hw=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:u,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:y,onResize:b,...w}=n,j=En(Pn,r),[E,S]=v.useState(null),C=we(a,G=>S(G)),_=v.useRef(null),R=v.useRef(""),T=j.viewport,D=i.content-i.viewport,L=We(y),X=We(p),q=vc(b,10);function H(G){if(_.current){const te=G.clientX-_.current.left,ce=G.clientY-_.current.top;g({x:te,y:ce})}}return v.useEffect(()=>{const G=te=>{const ce=te.target;E!=null&&E.contains(ce)&&L(te,D)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[T,E,D,L]),v.useEffect(X,[i,X]),mi(E,q),mi(j.content,q),d.jsx(eM,{scope:r,scrollbar:E,hasThumb:s,onThumbChange:We(u),onThumbPointerUp:We(h),onThumbPositionChange:X,onThumbPointerDown:We(m),children:d.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(),R.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",j.viewport&&(j.viewport.style.scrollBehavior="auto"),H(G))}),onPointerMove:ae(n.onPointerMove,H),onPointerUp:ae(n.onPointerUp,G=>{const te=G.target;te.hasPointerCapture(G.pointerId)&&te.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=R.current,j.viewport&&(j.viewport.style.scrollBehavior=""),_.current=null})})})}),Vu="ScrollAreaThumb",mw=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=fw(Vu,n.__scopeScrollArea);return d.jsx(st,{present:r||s.hasThumb,children:d.jsx(tM,{ref:a,...i})})}),tM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...s}=n,u=En(Vu,r),h=fw(Vu,r),{onThumbPositionChange:m}=h,p=we(a,b=>h.onThumbChange(b)),g=v.useRef(void 0),y=vc(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const b=u.viewport;if(b){const w=()=>{if(y(),!g.current){const j=lM(b,m);g.current=j,m()}};return m(),b.addEventListener("scroll",w),()=>b.removeEventListener("scroll",w)}},[u.viewport,y,m]),d.jsx(se.div,{"data-state":h.hasThumb?"visible":"hidden",...s,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ae(n.onPointerDownCapture,b=>{const w=b.target.getBoundingClientRect(),j=b.clientX-w.left,E=b.clientY-w.top;h.onThumbPointerDown({x:j,y:E})}),onPointerUp:ae(n.onPointerUp,h.onThumbPointerUp)})});mw.displayName=Vu;var Tm="ScrollAreaCorner",pw=v.forwardRef((n,a)=>{const r=En(Tm,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?d.jsx(nM,{...n,ref:a}):null});pw.displayName=Tm;var nM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,s=En(Tm,r),[u,h]=v.useState(0),[m,p]=v.useState(0),g=!!(u&&m);return mi(s.scrollbarX,()=>{var y;const b=((y=s.scrollbarX)==null?void 0:y.offsetHeight)||0;s.onCornerHeightChange(b),p(b)}),mi(s.scrollbarY,()=>{var y;const b=((y=s.scrollbarY)==null?void 0:y.offsetWidth)||0;s.onCornerWidthChange(b),h(b)}),g?d.jsx(se.div,{...i,ref:a,style:{width:u,height:m,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function Ku(n){return n?parseInt(n,10):0}function vw(n,a){const r=n/a;return isNaN(r)?0:r}function pc(n){const a=vw(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 s=pc(r),u=s/2,h=a||u,m=s-h,p=r.scrollbar.paddingStart+h,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,y=r.content-r.viewport,b=i==="ltr"?[0,y]:[y*-1,0];return gw([p,g],b)(n)}function fb(n,a,r="ltr"){const i=pc(a),s=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,u=a.scrollbar.size-s,h=a.content-a.viewport,m=u-i,p=r==="ltr"?[0,h]:[h*-1,0],g=Kh(n,p);return gw([0,h],[0,m])(g)}function gw(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 yw(n,a){return n>0&&n<a}var lM=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const u={left:n.scrollLeft,top:n.scrollTop},h=r.left!==u.left,m=r.top!==u.top;(h||m)&&a(),r=u,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function vc(n,a){const r=We(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 mi(n,a){const r=We(a);et(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}var rM=ow,iM=uw,oM=pw;function bw({className:n,children:a,...r}){return d.jsxs(rM,{"data-slot":"scroll-area",className:oe("relative",n),...r,children:[d.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}),d.jsx(sM,{}),d.jsx(oM,{})]})}function sM({className:n,orientation:a="vertical",...r}){return d.jsx(cw,{"data-slot":"scroll-area-scrollbar",orientation:a,className:oe("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:d.jsx(mw,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var uM=px[" useInsertionEffect ".trim().toString()]||et;function Jn({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[s,u,h]=cM({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:s;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const b=y.current;b!==m&&console.warn(`${i} is changing from ${b?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=m},[m,i])}const g=v.useCallback(y=>{var b;if(m){const w=dM(y)?y(n):y;w!==n&&((b=h.current)==null||b.call(h,w))}else u(y)},[m,n,u,h]);return[p,g]}function cM({defaultProp:n,onChange:a}){const[r,i]=v.useState(n),s=v.useRef(r),u=v.useRef(a);return uM(()=>{u.current=a},[a]),v.useEffect(()=>{var h;s.current!==r&&((h=u.current)==null||h.call(u,r),s.current=r)},[r,s]),[r,i,u]}function dM(n){return typeof n=="function"}function Ei(n){const a=n+"CollectionProvider",[r,i]=ht(a),[s,u]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:C,children:_}=S,R=lt.useRef(null),T=lt.useRef(new Map).current;return d.jsx(s,{scope:C,itemMap:T,collectionRef:R,children:_})};h.displayName=a;const m=n+"CollectionSlot",p=er(m),g=lt.forwardRef((S,C)=>{const{scope:_,children:R}=S,T=u(m,_),D=we(C,T.collectionRef);return d.jsx(p,{ref:D,children:R})});g.displayName=m;const y=n+"CollectionItemSlot",b="data-radix-collection-item",w=er(y),j=lt.forwardRef((S,C)=>{const{scope:_,children:R,...T}=S,D=lt.useRef(null),L=we(C,D),X=u(y,_);return lt.useEffect(()=>(X.itemMap.set(D,{ref:D,...T}),()=>void X.itemMap.delete(D))),d.jsx(w,{[b]:"",ref:L,children:R})});j.displayName=y;function E(S){const C=u(n+"CollectionConsumer",S);return lt.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const R=Array.from(_.querySelectorAll(`[${b}]`));return Array.from(C.itemMap.values()).sort((T,D)=>R.indexOf(T.ref.current)-R.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:h,Slot:g,ItemSlot:j},E,i]}function fM(n,a=globalThis==null?void 0:globalThis.document){const r=We(n);v.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var hM="DismissableLayer",Xh="dismissableLayer.update",mM="dismissableLayer.pointerDownOutside",pM="dismissableLayer.focusOutside",hb,xw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ni=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:u,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(xw),[y,b]=v.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=v.useState({}),E=we(a,q=>b(q)),S=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),_=S.indexOf(C),R=y?S.indexOf(y):-1,T=g.layersWithOutsidePointerEventsDisabled.size>0,D=R>=_,L=yM(q=>{const H=q.target,G=[...g.branches].some(te=>te.contains(H));!D||G||(s==null||s(q),h==null||h(q),q.defaultPrevented||m==null||m())},w),X=bM(q=>{const H=q.target;[...g.branches].some(G=>G.contains(H))||(u==null||u(q),h==null||h(q),q.defaultPrevented||m==null||m())},w);return fM(q=>{R===g.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&m&&(q.preventDefault(),m()))},w),v.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(hb=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),mb(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=hb)}},[y,w,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),mb())},[y,g]),v.useEffect(()=>{const q=()=>j({});return document.addEventListener(Xh,q),()=>document.removeEventListener(Xh,q)},[]),d.jsx(se.div,{...p,ref:E,style:{pointerEvents:T?D?"auto":"none":void 0,...n.style},onFocusCapture:ae(n.onFocusCapture,X.onFocusCapture),onBlurCapture:ae(n.onBlurCapture,X.onBlurCapture),onPointerDownCapture:ae(n.onPointerDownCapture,L.onPointerDownCapture)})});Ni.displayName=hM;var vM="DismissableLayerBranch",gM=v.forwardRef((n,a)=>{const r=v.useContext(xw),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const u=i.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),d.jsx(se.div,{...n,ref:s})});gM.displayName=vM;function yM(n,a=globalThis==null?void 0:globalThis.document){const r=We(n),i=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const u=m=>{if(m.target&&!i.current){let p=function(){ww(mM,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",u),a.removeEventListener("click",s.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function bM(n,a=globalThis==null?void 0:globalThis.document){const r=We(n),i=v.useRef(!1);return v.useEffect(()=>{const s=u=>{u.target&&!i.current&&ww(pM,r,{originalEvent:u},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function mb(){const n=new CustomEvent(Xh);document.dispatchEvent(n)}function ww(n,a,r,{discrete:i}){const s=r.originalEvent.target,u=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&s.addEventListener(n,a,{once:!0}),i?Gu(s,u):s.dispatchEvent(u)}var fh=0;function Mm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??pb()),document.body.insertAdjacentElement("beforeend",n[1]??pb()),fh++,()=>{fh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),fh--}},[])}function pb(){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 hh="focusScope.autoFocusOnMount",mh="focusScope.autoFocusOnUnmount",vb={bubbles:!1,cancelable:!0},xM="FocusScope",gc=v.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:u,...h}=n,[m,p]=v.useState(null),g=We(s),y=We(u),b=v.useRef(null),w=we(a,S=>p(S)),j=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let S=function(T){if(j.paused||!m)return;const D=T.target;m.contains(D)?b.current=D:il(b.current,{select:!0})},C=function(T){if(j.paused||!m)return;const D=T.relatedTarget;D!==null&&(m.contains(D)||il(b.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const D of T)D.removedNodes.length>0&&il(m)};document.addEventListener("focusin",S),document.addEventListener("focusout",C);const R=new MutationObserver(_);return m&&R.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",C),R.disconnect()}}},[i,m,j.paused]),v.useEffect(()=>{if(m){yb.add(j);const S=document.activeElement;if(!m.contains(S)){const C=new CustomEvent(hh,vb);m.addEventListener(hh,g),m.dispatchEvent(C),C.defaultPrevented||(wM(CM(Sw(m)),{select:!0}),document.activeElement===S&&il(m))}return()=>{m.removeEventListener(hh,g),setTimeout(()=>{const C=new CustomEvent(mh,vb);m.addEventListener(mh,y),m.dispatchEvent(C),C.defaultPrevented||il(S??document.body,{select:!0}),m.removeEventListener(mh,y),yb.remove(j)},0)}}},[m,g,y,j]);const E=v.useCallback(S=>{if(!r&&!i||j.paused)return;const C=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,_=document.activeElement;if(C&&_){const R=S.currentTarget,[T,D]=SM(R);T&&D?!S.shiftKey&&_===D?(S.preventDefault(),r&&il(T,{select:!0})):S.shiftKey&&_===T&&(S.preventDefault(),r&&il(D,{select:!0})):_===R&&S.preventDefault()}},[r,i,j.paused]);return d.jsx(se.div,{tabIndex:-1,...h,ref:w,onKeyDown:E})});gc.displayName=xM;function wM(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(il(i,{select:a}),document.activeElement!==r)return}function SM(n){const a=Sw(n),r=gb(a,n),i=gb(a.reverse(),n);return[r,i]}function Sw(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function gb(n,a){for(const r of n)if(!jM(r,{upTo:a}))return r}function jM(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 il(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&EM(n)&&a&&n.select()}}var yb=NM();function NM(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=bb(n,a),n.unshift(a)},remove(a){var r;n=bb(n,a),(r=n[0])==null||r.resume()}}}function bb(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=px[" useId ".trim().toString()]||(()=>{}),RM=0;function wl(n){const[a,r]=v.useState(_M());return et(()=>{r(i=>i??String(RM++))},[n]),a?`radix-${a}`:""}const TM=["top","right","bottom","left"],bl=Math.min,sn=Math.max,Xu=Math.round,Cu=Math.floor,Zn=n=>({x:n,y:n}),MM={left:"right",right:"left",bottom:"top",top:"bottom"},AM={start:"end",end:"start"};function $h(n,a,r){return sn(n,bl(a,r))}function Ta(n,a){return typeof n=="function"?n(a):n}function Ma(n){return n.split("-")[0]}function Ci(n){return n.split("-")[1]}function Am(n){return n==="x"?"y":"x"}function km(n){return n==="y"?"height":"width"}const kM=new Set(["top","bottom"]);function $n(n){return kM.has(Ma(n))?"y":"x"}function Dm(n){return Am($n(n))}function DM(n,a,r){r===void 0&&(r=!1);const i=Ci(n),s=Dm(n),u=km(s);let h=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[u]>a.floating[u]&&(h=$u(h)),[h,$u(h)]}function OM(n){const a=$u(n);return[Zh(n),a,Zh(a)]}function Zh(n){return n.replace(/start|end/g,a=>AM[a])}const xb=["left","right"],wb=["right","left"],zM=["top","bottom"],LM=["bottom","top"];function UM(n,a,r){switch(n){case"top":case"bottom":return r?a?wb:xb:a?xb:wb;case"left":case"right":return a?zM:LM;default:return[]}}function HM(n,a,r,i){const s=Ci(n);let u=UM(Ma(n),r==="start",i);return s&&(u=u.map(h=>h+"-"+s),a&&(u=u.concat(u.map(Zh)))),u}function $u(n){return n.replace(/left|right|bottom|top/g,a=>MM[a])}function qM(n){return{top:0,right:0,bottom:0,left:0,...n}}function jw(n){return typeof n!="number"?qM(n):{top:n,right:n,bottom:n,left:n}}function Zu(n){const{x:a,y:r,width:i,height:s}=n;return{width:i,height:s,top:r,left:a,right:a+i,bottom:r+s,x:a,y:r}}function Sb(n,a,r){let{reference:i,floating:s}=n;const u=$n(a),h=Dm(a),m=km(h),p=Ma(a),g=u==="y",y=i.x+i.width/2-s.width/2,b=i.y+i.height/2-s.height/2,w=i[m]/2-s[m]/2;let j;switch(p){case"top":j={x:y,y:i.y-s.height};break;case"bottom":j={x:y,y:i.y+i.height};break;case"right":j={x:i.x+i.width,y:b};break;case"left":j={x:i.x-s.width,y:b};break;default:j={x:i.x,y:i.y}}switch(Ci(a)){case"start":j[h]-=w*(r&&g?-1:1);break;case"end":j[h]+=w*(r&&g?-1:1);break}return j}const BM=async(n,a,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:u=[],platform:h}=r,m=u.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(a));let g=await h.getElementRects({reference:n,floating:a,strategy:s}),{x:y,y:b}=Sb(g,i,p),w=i,j={},E=0;for(let S=0;S<m.length;S++){const{name:C,fn:_}=m[S],{x:R,y:T,data:D,reset:L}=await _({x:y,y:b,initialPlacement:i,placement:w,strategy:s,middlewareData:j,rects:g,platform:h,elements:{reference:n,floating:a}});y=R??y,b=T??b,j={...j,[C]:{...j[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:s}):L.rects),{x:y,y:b}=Sb(g,w,p)),S=-1)}return{x:y,y:b,placement:w,strategy:s,middlewareData:j}};async function Ho(n,a){var r;a===void 0&&(a={});const{x:i,y:s,platform:u,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:b="floating",altBoundary:w=!1,padding:j=0}=Ta(a,n),E=jw(j),S=m[w?b==="floating"?"reference":"floating":b],C=Zu(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(S)))==null||r?S:S.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(m.floating)),boundary:g,rootBoundary:y,strategy:p})),_=b==="floating"?{x:i,y:s,width:h.floating.width,height:h.floating.height}:h.reference,R=await(u.getOffsetParent==null?void 0:u.getOffsetParent(m.floating)),T=await(u.isElement==null?void 0:u.isElement(R))?await(u.getScale==null?void 0:u.getScale(R))||{x:1,y:1}:{x:1,y:1},D=Zu(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:R,strategy:p}):_);return{top:(C.top-D.top+E.top)/T.y,bottom:(D.bottom-C.bottom+E.bottom)/T.y,left:(C.left-D.left+E.left)/T.x,right:(D.right-C.right+E.right)/T.x}}const QM=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:s,rects:u,platform:h,elements:m,middlewareData:p}=a,{element:g,padding:y=0}=Ta(n,a)||{};if(g==null)return{};const b=jw(y),w={x:r,y:i},j=Dm(s),E=km(j),S=await h.getDimensions(g),C=j==="y",_=C?"top":"left",R=C?"bottom":"right",T=C?"clientHeight":"clientWidth",D=u.reference[E]+u.reference[j]-w[j]-u.floating[E],L=w[j]-u.reference[j],X=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let q=X?X[T]:0;(!q||!await(h.isElement==null?void 0:h.isElement(X)))&&(q=m.floating[T]||u.floating[E]);const H=D/2-L/2,G=q/2-S[E]/2-1,te=bl(b[_],G),ce=bl(b[R],G),de=te,I=q-S[E]-ce,ie=q/2-S[E]/2+H,re=$h(de,ie,I),U=!p.arrow&&Ci(s)!=null&&ie!==re&&u.reference[E]/2-(ie<de?te:ce)-S[E]/2<0,W=U?ie<de?ie-de:ie-I:0;return{[j]:w[j]+W,data:{[j]:re,centerOffset:ie-re-W,...U&&{alignmentOffset:W}},reset:U}}}),YM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:s,middlewareData:u,rects:h,initialPlacement:m,platform:p,elements:g}=a,{mainAxis:y=!0,crossAxis:b=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=Ta(n,a);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const _=Ma(s),R=$n(m),T=Ma(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(T||!S?[$u(m)]:OM(m)),X=E!=="none";!w&&X&&L.push(...HM(m,S,E,D));const q=[m,...L],H=await Ho(a,C),G=[];let te=((i=u.flip)==null?void 0:i.overflows)||[];if(y&&G.push(H[_]),b){const ie=DM(s,h,D);G.push(H[ie[0]],H[ie[1]])}if(te=[...te,{placement:s,overflows:G}],!G.every(ie=>ie<=0)){var ce,de;const ie=(((ce=u.flip)==null?void 0:ce.index)||0)+1,re=q[ie];if(re&&(!(b==="alignment"&&R!==$n(re))||te.every(W=>$n(W.placement)===R?W.overflows[0]>0:!0)))return{data:{index:ie,overflows:te},reset:{placement:re}};let U=(de=te.filter(W=>W.overflows[0]<=0).sort((W,V)=>W.overflows[1]-V.overflows[1])[0])==null?void 0:de.placement;if(!U)switch(j){case"bestFit":{var I;const W=(I=te.filter(V=>{if(X){const $=$n(V.placement);return $===R||$==="y"}return!0}).map(V=>[V.placement,V.overflows.filter($=>$>0).reduce(($,fe)=>$+fe,0)]).sort((V,$)=>V[1]-$[1])[0])==null?void 0:I[0];W&&(U=W);break}case"initialPlacement":U=m;break}if(s!==U)return{reset:{placement:U}}}return{}}}};function jb(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Eb(n){return TM.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",...s}=Ta(n,a);switch(i){case"referenceHidden":{const u=await Ho(a,{...s,elementContext:"reference"}),h=jb(u,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Eb(h)}}}case"escaped":{const u=await Ho(a,{...s,altBoundary:!0}),h=jb(u,r.floating);return{data:{escapedOffsets:h,escaped:Eb(h)}}}default:return{}}}}},Ew=new Set(["left","top"]);async function VM(n,a){const{placement:r,platform:i,elements:s}=n,u=await(i.isRTL==null?void 0:i.isRTL(s.floating)),h=Ma(r),m=Ci(r),p=$n(r)==="y",g=Ew.has(h)?-1:1,y=u&&p?-1:1,b=Ta(a,n);let{mainAxis:w,crossAxis:j,alignmentAxis:E}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof E=="number"&&(j=m==="end"?E*-1:E),p?{x:j*y,y:w*g}:{x:w*g,y:j*y}}const KM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:s,y:u,placement:h,middlewareData:m}=a,p=await VM(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:u+p.y,data:{...p,placement:h}}}}},XM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:s}=a,{mainAxis:u=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:_,y:R}=C;return{x:_,y:R}}},...p}=Ta(n,a),g={x:r,y:i},y=await Ho(a,p),b=$n(Ma(s)),w=Am(b);let j=g[w],E=g[b];if(u){const C=w==="y"?"top":"left",_=w==="y"?"bottom":"right",R=j+y[C],T=j-y[_];j=$h(R,j,T)}if(h){const C=b==="y"?"top":"left",_=b==="y"?"bottom":"right",R=E+y[C],T=E-y[_];E=$h(R,E,T)}const S=m.fn({...a,[w]:j,[b]:E});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:u,[b]:h}}}}}},$M=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:s,rects:u,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=Ta(n,a),y={x:r,y:i},b=$n(s),w=Am(b);let j=y[w],E=y[b];const S=Ta(m,a),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const T=w==="y"?"height":"width",D=u.reference[w]-u.floating[T]+C.mainAxis,L=u.reference[w]+u.reference[T]-C.mainAxis;j<D?j=D:j>L&&(j=L)}if(g){var _,R;const T=w==="y"?"width":"height",D=Ew.has(Ma(s)),L=u.reference[b]-u.floating[T]+(D&&((_=h.offset)==null?void 0:_[b])||0)+(D?0:C.crossAxis),X=u.reference[b]+u.reference[T]+(D?0:((R=h.offset)==null?void 0:R[b])||0)-(D?C.crossAxis:0);E<L?E=L:E>X&&(E=X)}return{[w]:j,[b]:E}}}},ZM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:s,rects:u,platform:h,elements:m}=a,{apply:p=()=>{},...g}=Ta(n,a),y=await Ho(a,g),b=Ma(s),w=Ci(s),j=$n(s)==="y",{width:E,height:S}=u.floating;let C,_;b==="top"||b==="bottom"?(C=b,_=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=b,C=w==="end"?"top":"bottom");const R=S-y.top-y.bottom,T=E-y.left-y.right,D=bl(S-y[C],R),L=bl(E-y[_],T),X=!a.middlewareData.shift;let q=D,H=L;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(H=T),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(q=R),X&&!w){const te=sn(y.left,0),ce=sn(y.right,0),de=sn(y.top,0),I=sn(y.bottom,0);j?H=E-2*(te!==0||ce!==0?te+ce:sn(y.left,y.right)):q=S-2*(de!==0||I!==0?de+I:sn(y.top,y.bottom))}await p({...a,availableWidth:H,availableHeight:q});const G=await h.getDimensions(m.floating);return E!==G.width||S!==G.height?{reset:{rects:!0}}:{}}}};function yc(){return typeof window<"u"}function _i(n){return Nw(n)?(n.nodeName||"").toLowerCase():"#document"}function un(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function Wn(n){var a;return(a=(Nw(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function Nw(n){return yc()?n instanceof Node||n instanceof un(n).Node:!1}function Dn(n){return yc()?n instanceof Element||n instanceof un(n).Element:!1}function Fn(n){return yc()?n instanceof HTMLElement||n instanceof un(n).HTMLElement:!1}function Nb(n){return!yc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof un(n).ShadowRoot}const FM=new Set(["inline","contents"]);function Po(n){const{overflow:a,overflowX:r,overflowY:i,display:s}=On(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!FM.has(s)}const PM=new Set(["table","td","th"]);function JM(n){return PM.has(_i(n))}const WM=[":popover-open",":modal"];function bc(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 Om(n){const a=zm(),r=Dn(n)?On(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=xl(n);for(;Fn(a)&&!pi(a);){if(Om(a))return a;if(bc(a))return null;a=xl(a)}return null}function zm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const aA=new Set(["html","body","#document"]);function pi(n){return aA.has(_i(n))}function On(n){return un(n).getComputedStyle(n)}function xc(n){return Dn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function xl(n){if(_i(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Nb(n)&&n.host||Wn(n);return Nb(a)?a.host:a}function Cw(n){const a=xl(n);return pi(a)?n.ownerDocument?n.ownerDocument.body:n.body:Fn(a)&&Po(a)?a:Cw(a)}function qo(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=Cw(n),u=s===((i=n.ownerDocument)==null?void 0:i.body),h=un(s);if(u){const m=Fh(h);return a.concat(h,h.visualViewport||[],Po(s)?s:[],m&&r?qo(m):[])}return a.concat(s,qo(s,[],r))}function Fh(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function _w(n){const a=On(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=Fn(n),u=s?n.offsetWidth:r,h=s?n.offsetHeight:i,m=Xu(r)!==u||Xu(i)!==h;return m&&(r=u,i=h),{width:r,height:i,$:m}}function Lm(n){return Dn(n)?n:n.contextElement}function Wr(n){const a=Lm(n);if(!Fn(a))return Zn(1);const r=a.getBoundingClientRect(),{width:i,height:s,$:u}=_w(a);let h=(u?Xu(r.width):r.width)/i,m=(u?Xu(r.height):r.height)/s;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const lA=Zn(0);function Rw(n){const a=un(n);return!zm()||!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!==un(n)?!1:a}function tr(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),u=Lm(n);let h=Zn(1);a&&(i?Dn(i)&&(h=Wr(i)):h=Wr(n));const m=rA(u,r,i)?Rw(u):Zn(0);let p=(s.left+m.x)/h.x,g=(s.top+m.y)/h.y,y=s.width/h.x,b=s.height/h.y;if(u){const w=un(u),j=i&&Dn(i)?un(i):i;let E=w,S=Fh(E);for(;S&&i&&j!==E;){const C=Wr(S),_=S.getBoundingClientRect(),R=On(S),T=_.left+(S.clientLeft+parseFloat(R.paddingLeft))*C.x,D=_.top+(S.clientTop+parseFloat(R.paddingTop))*C.y;p*=C.x,g*=C.y,y*=C.x,b*=C.y,p+=T,g+=D,E=un(S),S=Fh(E)}}return Zu({width:y,height:b,x:p,y:g})}function wc(n,a){const r=xc(n).scrollLeft;return a?a.left+r:tr(Wn(n)).left+r}function Tw(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-wc(n,r),s=r.top+a.scrollTop;return{x:i,y:s}}function iA(n){let{elements:a,rect:r,offsetParent:i,strategy:s}=n;const u=s==="fixed",h=Wn(i),m=a?bc(a.floating):!1;if(i===h||m&&u)return r;let p={scrollLeft:0,scrollTop:0},g=Zn(1);const y=Zn(0),b=Fn(i);if((b||!b&&!u)&&((_i(i)!=="body"||Po(h))&&(p=xc(i)),Fn(i))){const j=tr(i);g=Wr(i),y.x=j.x+i.clientLeft,y.y=j.y+i.clientTop}const w=h&&!b&&!u?Tw(h,p):Zn(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+y.x+w.x,y:r.y*g.y-p.scrollTop*g.y+y.y+w.y}}function oA(n){return Array.from(n.getClientRects())}function sA(n){const a=Wn(n),r=xc(n),i=n.ownerDocument.body,s=sn(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),u=sn(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+wc(n);const m=-r.scrollTop;return On(i).direction==="rtl"&&(h+=sn(a.clientWidth,i.clientWidth)-s),{width:s,height:u,x:h,y:m}}const Cb=25;function uA(n,a){const r=un(n),i=Wn(n),s=r.visualViewport;let u=i.clientWidth,h=i.clientHeight,m=0,p=0;if(s){u=s.width,h=s.height;const y=zm();(!y||y&&a==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const g=wc(i);if(g<=0){const y=i.ownerDocument,b=y.body,w=getComputedStyle(b),j=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(i.clientWidth-b.clientWidth-j);E<=Cb&&(u-=E)}else g<=Cb&&(u+=g);return{width:u,height:h,x:m,y:p}}const cA=new Set(["absolute","fixed"]);function dA(n,a){const r=tr(n,!0,a==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,u=Fn(n)?Wr(n):Zn(1),h=n.clientWidth*u.x,m=n.clientHeight*u.y,p=s*u.x,g=i*u.y;return{width:h,height:m,x:p,y:g}}function _b(n,a,r){let i;if(a==="viewport")i=uA(n,r);else if(a==="document")i=sA(Wn(n));else if(Dn(a))i=dA(a,r);else{const s=Rw(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return Zu(i)}function Mw(n,a){const r=xl(n);return r===a||!Dn(r)||pi(r)?!1:On(r).position==="fixed"||Mw(r,a)}function fA(n,a){const r=a.get(n);if(r)return r;let i=qo(n,[],!1).filter(m=>Dn(m)&&_i(m)!=="body"),s=null;const u=On(n).position==="fixed";let h=u?xl(n):n;for(;Dn(h)&&!pi(h);){const m=On(h),p=Om(h);!p&&m.position==="fixed"&&(s=null),(u?!p&&!s:!p&&m.position==="static"&&s&&cA.has(s.position)||Po(h)&&!p&&Mw(n,h))?i=i.filter(g=>g!==h):s=m,h=xl(h)}return a.set(n,i),i}function hA(n){let{element:a,boundary:r,rootBoundary:i,strategy:s}=n;const u=[...r==="clippingAncestors"?bc(a)?[]:fA(a,this._c):[].concat(r),i],h=u[0],m=u.reduce((p,g)=>{const y=_b(a,g,s);return p.top=sn(y.top,p.top),p.right=bl(y.right,p.right),p.bottom=bl(y.bottom,p.bottom),p.left=sn(y.left,p.left),p},_b(a,h,s));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}=_w(n);return{width:a,height:r}}function pA(n,a,r){const i=Fn(a),s=Wn(a),u=r==="fixed",h=tr(n,!0,u,a);let m={scrollLeft:0,scrollTop:0};const p=Zn(0);function g(){p.x=wc(s)}if(i||!i&&!u)if((_i(a)!=="body"||Po(s))&&(m=xc(a)),i){const j=tr(a,!0,u,a);p.x=j.x+a.clientLeft,p.y=j.y+a.clientTop}else s&&g();u&&!i&&s&&g();const y=s&&!i&&!u?Tw(s,m):Zn(0),b=h.left+m.scrollLeft-p.x-y.x,w=h.top+m.scrollTop-p.y-y.y;return{x:b,y:w,width:h.width,height:h.height}}function ph(n){return On(n).position==="static"}function Rb(n,a){if(!Fn(n)||On(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return Wn(n)===r&&(r=r.ownerDocument.body),r}function Aw(n,a){const r=un(n);if(bc(n))return r;if(!Fn(n)){let s=xl(n);for(;s&&!pi(s);){if(Dn(s)&&!ph(s))return s;s=xl(s)}return r}let i=Rb(n,a);for(;i&&JM(i)&&ph(i);)i=Rb(i,a);return i&&pi(i)&&ph(i)&&!Om(i)?r:i||nA(n)||r}const vA=async function(n){const a=this.getOffsetParent||Aw,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 On(n).direction==="rtl"}const yA={convertOffsetParentRelativeRectToViewportRelativeRect:iA,getDocumentElement:Wn,getClippingRect:hA,getOffsetParent:Aw,getElementRects:vA,getClientRects:oA,getDimensions:mA,getScale:Wr,isElement:Dn,isRTL:gA};function kw(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function bA(n,a){let r=null,i;const s=Wn(n);function u(){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),u();const g=n.getBoundingClientRect(),{left:y,top:b,width:w,height:j}=g;if(m||a(),!w||!j)return;const E=Cu(b),S=Cu(s.clientWidth-(y+w)),C=Cu(s.clientHeight-(b+j)),_=Cu(y),R={rootMargin:-E+"px "+-S+"px "+-C+"px "+-_+"px",threshold:sn(0,bl(1,p))||1};let T=!0;function D(L){const X=L[0].intersectionRatio;if(X!==p){if(!T)return h();X?h(!1,X):i=setTimeout(()=>{h(!1,1e-7)},1e3)}X===1&&!kw(g,n.getBoundingClientRect())&&h(),T=!1}try{r=new IntersectionObserver(D,{...R,root:s.ownerDocument})}catch{r=new IntersectionObserver(D,R)}r.observe(n)}return h(!0),u}function xA(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Lm(n),y=s||u?[...g?qo(g):[],...qo(a)]:[];y.forEach(_=>{s&&_.addEventListener("scroll",r,{passive:!0}),u&&_.addEventListener("resize",r)});const b=g&&m?bA(g,r):null;let w=-1,j=null;h&&(j=new ResizeObserver(_=>{let[R]=_;R&&R.target===g&&j&&(j.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var T;(T=j)==null||T.observe(a)})),r()}),g&&!p&&j.observe(g),j.observe(a));let E,S=p?tr(n):null;p&&C();function C(){const _=tr(n);S&&!kw(S,_)&&r(),S=_,E=requestAnimationFrame(C)}return r(),()=>{var _;y.forEach(R=>{s&&R.removeEventListener("scroll",r),u&&R.removeEventListener("resize",r)}),b==null||b(),(_=j)==null||_.disconnect(),j=null,p&&cancelAnimationFrame(E)}}const wA=KM,SA=XM,jA=YM,EA=ZM,NA=GM,Tb=QM,CA=$M,_A=(n,a,r)=>{const i=new Map,s={platform:yA,...r},u={...s.platform,_c:i};return BM(n,a,{...s,platform:u})};var RA=typeof document<"u",TA=function(){},Ou=RA?v.useLayoutEffect:TA;function Fu(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,i,s;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!Fu(n[i],a[i]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,s[i]))return!1;for(i=r;i--!==0;){const u=s[i];if(!(u==="_owner"&&n.$$typeof)&&!Fu(n[u],a[u]))return!1}return!0}return n!==n&&a!==a}function Dw(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Mb(n,a){const r=Dw(n);return Math.round(a*r)/r}function vh(n){const a=v.useRef(n);return Ou(()=>{a.current=n}),a}function MA(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:u,floating:h}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[y,b]=v.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[w,j]=v.useState(i);Fu(w,i)||j(i);const[E,S]=v.useState(null),[C,_]=v.useState(null),R=v.useCallback(V=>{V!==X.current&&(X.current=V,S(V))},[]),T=v.useCallback(V=>{V!==q.current&&(q.current=V,_(V))},[]),D=u||E,L=h||C,X=v.useRef(null),q=v.useRef(null),H=v.useRef(y),G=p!=null,te=vh(p),ce=vh(s),de=vh(g),I=v.useCallback(()=>{if(!X.current||!q.current)return;const V={placement:a,strategy:r,middleware:w};ce.current&&(V.platform=ce.current),_A(X.current,q.current,V).then($=>{const fe={...$,isPositioned:de.current!==!1};ie.current&&!Fu(H.current,fe)&&(H.current=fe,Zo.flushSync(()=>{b(fe)}))})},[w,a,r,ce,de]);Ou(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,b(V=>({...V,isPositioned:!1})))},[g]);const ie=v.useRef(!1);Ou(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Ou(()=>{if(D&&(X.current=D),L&&(q.current=L),D&&L){if(te.current)return te.current(D,L,I);I()}},[D,L,I,te,G]);const re=v.useMemo(()=>({reference:X,floating:q,setReference:R,setFloating:T}),[R,T]),U=v.useMemo(()=>({reference:D,floating:L}),[D,L]),W=v.useMemo(()=>{const V={position:r,left:0,top:0};if(!U.floating)return V;const $=Mb(U.floating,y.x),fe=Mb(U.floating,y.y);return m?{...V,transform:"translate("+$+"px, "+fe+"px)",...Dw(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:fe}},[r,m,U.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:I,refs:re,elements:U,floatingStyles:W}),[y,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:s}=typeof n=="function"?n(r):n;return i&&a(i)?i.current!=null?Tb({element:i.current,padding:s}).fn(r):{}:i?Tb({element:i,padding:s}).fn(r):{}}}},kA=(n,a)=>({...wA(n),options:[n,a]}),DA=(n,a)=>({...SA(n),options:[n,a]}),OA=(n,a)=>({...CA(n),options:[n,a]}),zA=(n,a)=>({...jA(n),options:[n,a]}),LA=(n,a)=>({...EA(n),options:[n,a]}),UA=(n,a)=>({...NA(n),options:[n,a]}),HA=(n,a)=>({...AA(n),options:[n,a]});var qA="Arrow",Ow=v.forwardRef((n,a)=>{const{children:r,width:i=10,height:s=5,...u}=n;return d.jsx(se.svg,{...u,ref:a,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ow.displayName=qA;var BA=Ow;function Sc(n){const[a,r]=v.useState(void 0);return et(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const u=s[0];let h,m;if("borderBoxSize"in u){const p=u.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 zw="Popper",[Lw,Ri]=ht(zw),[mz,Uw]=Lw(zw),Hw="PopperAnchor",qw=v.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...s}=n,u=Uw(Hw,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&&u.onAnchorChange(p.current)}),i?null:d.jsx(se.div,{...s,ref:m})});qw.displayName=Hw;var Um="PopperContent",[QA,YA]=Lw(Um),Bw=v.forwardRef((n,a)=>{var r,i,s,u,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:y=0,align:b="center",alignOffset:w=0,arrowPadding:j=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:_="partial",hideWhenDetached:R=!1,updatePositionStrategy:T="optimized",onPlaced:D,...L}=n,X=Uw(Um,p),[q,H]=v.useState(null),G=we(a,_t=>H(_t)),[te,ce]=v.useState(null),de=Sc(te),I=(de==null?void 0:de.width)??0,ie=(de==null?void 0:de.height)??0,re=g+(b!=="center"?"-"+b:""),U=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},W=Array.isArray(S)?S:[S],V=W.length>0,$={padding:U,boundary:W.filter(VA),altBoundary:V},{refs:fe,floatingStyles:A,placement:Z,isPositioned:ee,middlewareData:le}=MA({strategy:"fixed",placement:re,whileElementsMounted:(..._t)=>xA(..._t,{animationFrame:T==="always"}),elements:{reference:X.anchor},middleware:[kA({mainAxis:y+ie,alignmentAxis:w}),E&&DA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?OA():void 0,...$}),E&&zA({...$}),LA({...$,apply:({elements:_t,rects:Zt,availableWidth:ea,availableHeight:ta})=>{const{width:Uc,height:ts}=Zt.reference,ka=_t.floating.style;ka.setProperty("--radix-popper-available-width",`${ea}px`),ka.setProperty("--radix-popper-available-height",`${ta}px`),ka.setProperty("--radix-popper-anchor-width",`${Uc}px`),ka.setProperty("--radix-popper-anchor-height",`${ts}px`)}}),te&&HA({element:te,padding:j}),KA({arrowWidth:I,arrowHeight:ie}),R&&UA({strategy:"referenceHidden",...$})]}),[ve,je]=Gw(Z),ne=We(D);et(()=>{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=((s=le.arrow)==null?void 0:s.centerOffset)!==0,[Ue,Ye]=v.useState();return et(()=>{q&&Ye(window.getComputedStyle(q).zIndex)},[q]),d.jsx("div",{ref:fe.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:ee?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Ue,"--radix-popper-transform-origin":[(u=le.transformOrigin)==null?void 0:u.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:d.jsx(QA,{scope:p,placedSide:ve,onArrowChange:ce,arrowX:Ee,arrowY:ye,shouldHideArrow:Ne,children:d.jsx(se.div,{"data-side":ve,"data-align":je,...L,ref:G,style:{...L.style,animation:ee?void 0:"none"}})})})});Bw.displayName=Um;var Qw="PopperArrow",GA={top:"bottom",right:"left",bottom:"top",left:"right"},Yw=v.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,s=YA(Qw,r),u=GA[s.placedSide];return d.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:d.jsx(BA,{...i,ref:a,style:{...i.style,display:"block"}})})});Yw.displayName=Qw;function VA(n){return n!==null}var KA=n=>({name:"transformOrigin",options:n,fn(a){var r,i,s;const{placement:u,rects:h,middlewareData:m}=a,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,g=p?0:n.arrowWidth,y=p?0:n.arrowHeight,[b,w]=Gw(u),j={start:"0%",center:"50%",end:"100%"}[w],E=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,S=(((s=m.arrow)==null?void 0:s.y)??0)+y/2;let C="",_="";return b==="bottom"?(C=p?j:`${E}px`,_=`${-y}px`):b==="top"?(C=p?j:`${E}px`,_=`${h.floating.height+y}px`):b==="right"?(C=`${-y}px`,_=p?j:`${S}px`):b==="left"&&(C=`${h.floating.width+y}px`,_=p?j:`${S}px`),{data:{x:C,y:_}}}});function Gw(n){const[a,r="center"]=n.split("-");return[a,r]}var Hm=qw,qm=Bw,Bm=Yw,XA="Portal",Qm=v.forwardRef((n,a)=>{var r;const{container:i,...s}=n,[u,h]=v.useState(!1);et(()=>h(!0),[]);const m=i||u&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?zx.createPortal(d.jsx(se.div,{...s,ref:a}),m):null});Qm.displayName=XA;var gh="rovingFocusGroup.onEntryFocus",$A={bubbles:!1,cancelable:!0},Jo="RovingFocusGroup",[Ph,Vw,ZA]=Ei(Jo),[FA,Ti]=ht(Jo,[ZA]),[PA,JA]=FA(Jo),Kw=v.forwardRef((n,a)=>d.jsx(Ph.Provider,{scope:n.__scopeRovingFocusGroup,children:d.jsx(Ph.Slot,{scope:n.__scopeRovingFocusGroup,children:d.jsx(WA,{...n,ref:a})})}));Kw.displayName=Jo;var WA=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:u,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...b}=n,w=v.useRef(null),j=we(a,w),E=ji(u),[S,C]=Jn({prop:h,defaultProp:m??null,onChange:p,caller:Jo}),[_,R]=v.useState(!1),T=We(g),D=Vw(r),L=v.useRef(!1),[X,q]=v.useState(0);return v.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(gh,T),()=>H.removeEventListener(gh,T)},[T]),d.jsx(PA,{scope:r,orientation:i,dir:E,loop:s,currentTabStopId:S,onItemFocus:v.useCallback(H=>C(H),[C]),onItemShiftTab:v.useCallback(()=>R(!0),[]),onFocusableItemAdd:v.useCallback(()=>q(H=>H+1),[]),onFocusableItemRemove:v.useCallback(()=>q(H=>H-1),[]),children:d.jsx(se.div,{tabIndex:_||X===0?-1:0,"data-orientation":i,...b,ref:j,style:{outline:"none",...n.style},onMouseDown:ae(n.onMouseDown,()=>{L.current=!0}),onFocus:ae(n.onFocus,H=>{const G=!L.current;if(H.target===H.currentTarget&&G&&!_){const te=new CustomEvent(gh,$A);if(H.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ce=D().filter(re=>re.focusable),de=ce.find(re=>re.active),I=ce.find(re=>re.id===S),ie=[de,I,...ce].filter(Boolean).map(re=>re.ref.current);Zw(ie,y)}}L.current=!1}),onBlur:ae(n.onBlur,()=>R(!1))})})}),Xw="RovingFocusGroupItem",$w=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:u,children:h,...m}=n,p=wl(),g=u||p,y=JA(Xw,r),b=y.currentTabStopId===g,w=Vw(r),{onFocusableItemAdd:j,onFocusableItemRemove:E,currentTabStopId:S}=y;return v.useEffect(()=>{if(i)return j(),()=>E()},[i,j,E]),d.jsx(Ph.ItemSlot,{scope:r,id:g,focusable:i,active:s,children:d.jsx(se.span,{tabIndex:b?0:-1,"data-orientation":y.orientation,...m,ref:a,onMouseDown:ae(n.onMouseDown,C=>{i?y.onItemFocus(g):C.preventDefault()}),onFocus:ae(n.onFocus,()=>y.onItemFocus(g)),onKeyDown:ae(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){y.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const _=tk(C,y.orientation,y.dir);if(_!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let R=w().filter(T=>T.focusable).map(T=>T.ref.current);if(_==="last")R.reverse();else if(_==="prev"||_==="next"){_==="prev"&&R.reverse();const T=R.indexOf(C.currentTarget);R=y.loop?nk(R,T+1):R.slice(T+1)}setTimeout(()=>Zw(R))}}),children:typeof h=="function"?h({isCurrentTabStop:b,hasTabStop:S!=null}):h})})});$w.displayName=Xw;var IA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ek(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function tk(n,a,r){const i=ek(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return IA[i]}function Zw(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function nk(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var Ym=Kw,Gm=$w,ak=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},Zr=new WeakMap,_u=new WeakMap,Ru={},yh=0,Fw=function(n){return n&&(n.host||Fw(n.parentNode))},lk=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=Fw(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})},rk=function(n,a,r,i){var s=lk(a,Array.isArray(n)?n:[n]);Ru[r]||(Ru[r]=new WeakMap);var u=Ru[r],h=[],m=new Set,p=new Set(s),g=function(b){!b||m.has(b)||(m.add(b),g(b.parentNode))};s.forEach(g);var y=function(b){!b||p.has(b)||Array.prototype.forEach.call(b.children,function(w){if(m.has(w))y(w);else try{var j=w.getAttribute(i),E=j!==null&&j!=="false",S=(Zr.get(w)||0)+1,C=(u.get(w)||0)+1;Zr.set(w,S),u.set(w,C),h.push(w),S===1&&E&&_u.set(w,!0),C===1&&w.setAttribute(r,"true"),E||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return y(a),m.clear(),yh++,function(){h.forEach(function(b){var w=Zr.get(b)-1,j=u.get(b)-1;Zr.set(b,w),u.set(b,j),w||(_u.has(b)||b.removeAttribute(i),_u.delete(b)),j||b.removeAttribute(r)}),yh--,yh||(Zr=new WeakMap,Zr=new WeakMap,_u=new WeakMap,Ru={})}},Vm=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=ak(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),rk(i,s,r,"aria-hidden")):function(){return null}},Xn=function(){return Xn=Object.assign||function(n){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])}return n},Xn.apply(this,arguments)};function Pw(n,a){var r={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.indexOf(i)<0&&(r[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(n);s<i.length;s++)a.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(n,i[s])&&(r[i[s]]=n[i[s]]);return r}function ik(n,a,r){for(var i=0,s=a.length,u;i<s;i++)(u||!(i in a))&&(u||(u=Array.prototype.slice.call(a,0,i)),u[i]=a[i]);return n.concat(u||Array.prototype.slice.call(a))}var zu="right-scroll-bar-position",Lu="width-before-scroll-bar",ok="with-scroll-bars-hidden",sk="--removed-body-scroll-bar-size";function bh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function uk(n,a){var r=v.useState(function(){return{value:n,callback:a,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=a,r.facade}var ck=typeof window<"u"?v.useLayoutEffect:v.useEffect,Ab=new WeakMap;function dk(n,a){var r=uk(null,function(i){return n.forEach(function(s){return bh(s,i)})});return ck(function(){var i=Ab.get(r);if(i){var s=new Set(i),u=new Set(n),h=r.current;s.forEach(function(m){u.has(m)||bh(m,null)}),u.forEach(function(m){s.has(m)||bh(m,h)})}Ab.set(r,n)},[n]),r}function fk(n){return n}function hk(n,a){a===void 0&&(a=fk);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(u){var h=a(u,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(u){for(i=!0;r.length;){var h=r;r=[],h.forEach(u)}r={push:function(m){return u(m)},filter:function(){return r}}},assignMedium:function(u){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(u),h=r}var p=function(){var y=h;h=[],y.forEach(u)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(y){h.push(y),g()},filter:function(y){return h=h.filter(y),r}}}};return s}function mk(n){n===void 0&&(n={});var a=hk(null);return a.options=Xn({async:!0,ssr:!1},n),a}var Jw=function(n){var a=n.sideCar,r=Pw(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,Xn({},r))};Jw.isSideCarExport=!0;function pk(n,a){return n.useMedium(a),Jw}var Ww=mk(),xh=function(){},jc=v.forwardRef(function(n,a){var r=v.useRef(null),i=v.useState({onScrollCapture:xh,onWheelCapture:xh,onTouchMoveCapture:xh}),s=i[0],u=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,y=n.enabled,b=n.shards,w=n.sideCar,j=n.noRelative,E=n.noIsolation,S=n.inert,C=n.allowPinchZoom,_=n.as,R=_===void 0?"div":_,T=n.gapMode,D=Pw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,X=dk([r,a]),q=Xn(Xn({},D),s);return v.createElement(v.Fragment,null,y&&v.createElement(L,{sideCar:Ww,removeScrollBar:g,shards:b,noRelative:j,noIsolation:E,inert:S,setCallbacks:u,allowPinchZoom:!!C,lockRef:r,gapMode:T}),h?v.cloneElement(v.Children.only(m),Xn(Xn({},q),{ref:X})):v.createElement(R,Xn({},q,{className:p,ref:X}),m))});jc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};jc.classNames={fullWidth:Lu,zeroRight:zu};var vk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function gk(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=vk();return a&&n.setAttribute("nonce",a),n}function yk(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 xk=function(){var n=0,a=null;return{add:function(r){n==0&&(a=gk())&&(yk(a,r),bk(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},wk=function(){var n=xk();return function(a,r){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},Iw=function(){var n=wk(),a=function(r){var i=r.styles,s=r.dynamic;return n(i,s),null};return a},Sk={left:0,top:0,right:0,gap:0},wh=function(n){return parseInt(n||"",10)||0},jk=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],s=a[n==="padding"?"paddingRight":"marginRight"];return[wh(r),wh(i),wh(s)]},Ek=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return Sk;var a=jk(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])}},Nk=Iw(),Ir="data-scroll-locked",Ck=function(n,a,r,i){var s=n.left,u=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
257
- .`.concat(ok,` {
258
- overflow: hidden `).concat(i,`;
259
- padding-right: `).concat(m,"px ").concat(i,`;
260
- }
261
- body[`).concat(Ir,`] {
262
- overflow: hidden `).concat(i,`;
263
- overscroll-behavior: contain;
264
- `).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
265
- padding-left: `.concat(s,`px;
266
- padding-top: `).concat(u,`px;
267
- padding-right: `).concat(h,`px;
268
- margin-left:0;
269
- margin-top:0;
270
- margin-right: `).concat(m,"px ").concat(i,`;
271
- `),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
272
- }
273
-
274
- .`).concat(zu,` {
275
- right: `).concat(m,"px ").concat(i,`;
276
- }
277
-
278
- .`).concat(Lu,` {
279
- margin-right: `).concat(m,"px ").concat(i,`;
280
- }
281
-
282
- .`).concat(zu," .").concat(zu,` {
283
- right: 0 `).concat(i,`;
284
- }
285
-
286
- .`).concat(Lu," .").concat(Lu,` {
287
- margin-right: 0 `).concat(i,`;
288
- }
289
-
290
- body[`).concat(Ir,`] {
291
- `).concat(sk,": ").concat(m,`px;
292
- }
293
- `)},kb=function(){var n=parseInt(document.body.getAttribute(Ir)||"0",10);return isFinite(n)?n:0},_k=function(){v.useEffect(function(){return document.body.setAttribute(Ir,(kb()+1).toString()),function(){var n=kb()-1;n<=0?document.body.removeAttribute(Ir):document.body.setAttribute(Ir,n.toString())}},[])},Rk=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;_k();var u=v.useMemo(function(){return Ek(s)},[s]);return v.createElement(Nk,{styles:Ck(u,!a,s,r?"":"!important")})},Jh=!1;if(typeof window<"u")try{var Tu=Object.defineProperty({},"passive",{get:function(){return Jh=!0,!0}});window.addEventListener("test",Tu,Tu),window.removeEventListener("test",Tu,Tu)}catch{Jh=!1}var Fr=Jh?{passive:!1}:!1,Tk=function(n){return n.tagName==="TEXTAREA"},e1=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!Tk(n)&&r[a]==="visible")},Mk=function(n){return e1(n,"overflowY")},Ak=function(n){return e1(n,"overflowX")},Db=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=t1(n,i);if(s){var u=n1(n,i),h=u[1],m=u[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},kk=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},Dk=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},t1=function(n,a){return n==="v"?Mk(a):Ak(a)},n1=function(n,a){return n==="v"?kk(a):Dk(a)},Ok=function(n,a){return n==="h"&&a==="rtl"?-1:1},zk=function(n,a,r,i,s){var u=Ok(n,window.getComputedStyle(a).direction),h=u*i,m=r.target,p=a.contains(m),g=!1,y=h>0,b=0,w=0;do{if(!m)break;var j=n1(n,m),E=j[0],S=j[1],C=j[2],_=S-C-u*E;(E||_)&&t1(n,m)&&(b+=_,w+=E);var R=m.parentNode;m=R&&R.nodeType===Node.DOCUMENT_FRAGMENT_NODE?R.host:R}while(!p&&m!==document.body||p&&(a.contains(m)||a===m));return(y&&Math.abs(b)<1||!y&&Math.abs(w)<1)&&(g=!0),g},Mu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Ob=function(n){return[n.deltaX,n.deltaY]},zb=function(n){return n&&"current"in n?n.current:n},Lk=function(n,a){return n[0]===a[0]&&n[1]===a[1]},Uk=function(n){return`
294
- .block-interactivity-`.concat(n,` {pointer-events: none;}
295
- .allow-interactivity-`).concat(n,` {pointer-events: all;}
296
- `)},Hk=0,Pr=[];function qk(n){var a=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),s=v.useState(Hk++)[0],u=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(s));var S=ik([n.lockRef.current],(n.shards||[]).map(zb)).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=v.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var _=Mu(S),R=r.current,T="deltaX"in S?S.deltaX:R[0]-_[0],D="deltaY"in S?S.deltaY:R[1]-_[1],L,X=S.target,q=Math.abs(T)>Math.abs(D)?"h":"v";if("touches"in S&&q==="h"&&X.type==="range")return!1;var H=Db(q,X);if(!H)return!0;if(H?L=q:(L=q==="v"?"h":"v",H=Db(q,X)),!H)return!1;if(!i.current&&"changedTouches"in S&&(T||D)&&(i.current=L),!L)return!0;var G=i.current||L;return zk(G,C,S,G==="h"?T:D)},[]),p=v.useCallback(function(S){var C=S;if(!(!Pr.length||Pr[Pr.length-1]!==u)){var _="deltaY"in C?Ob(C):Mu(C),R=a.current.filter(function(L){return L.name===C.type&&(L.target===C.target||C.target===L.shadowParent)&&Lk(L.delta,_)})[0];if(R&&R.should){C.cancelable&&C.preventDefault();return}if(!R){var T=(h.current.shards||[]).map(zb).filter(Boolean).filter(function(L){return L.contains(C.target)}),D=T.length>0?m(C,T[0]):!h.current.noIsolation;D&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(S,C,_,R){var T={name:S,delta:C,target:_,should:R,shadowParent:Bk(_)};a.current.push(T),setTimeout(function(){a.current=a.current.filter(function(D){return D!==T})},1)},[]),y=v.useCallback(function(S){r.current=Mu(S),i.current=void 0},[]),b=v.useCallback(function(S){g(S.type,Ob(S),S.target,m(S,n.lockRef.current))},[]),w=v.useCallback(function(S){g(S.type,Mu(S),S.target,m(S,n.lockRef.current))},[]);v.useEffect(function(){return Pr.push(u),n.setCallbacks({onScrollCapture:b,onWheelCapture:b,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Fr),document.addEventListener("touchmove",p,Fr),document.addEventListener("touchstart",y,Fr),function(){Pr=Pr.filter(function(S){return S!==u}),document.removeEventListener("wheel",p,Fr),document.removeEventListener("touchmove",p,Fr),document.removeEventListener("touchstart",y,Fr)}},[]);var j=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(u,{styles:Uk(s)}):null,j?v.createElement(Rk,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function Bk(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const Qk=pk(Ww,qk);var Ec=v.forwardRef(function(n,a){return v.createElement(jc,Xn({},n,{ref:a,sideCar:Qk}))});Ec.classNames=jc.classNames;var Wh=["Enter"," "],Yk=["ArrowDown","PageUp","Home"],a1=["ArrowUp","PageDown","End"],Gk=[...Yk,...a1],Vk={ltr:[...Wh,"ArrowRight"],rtl:[...Wh,"ArrowLeft"]},Kk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nc="Menu",[Bo,Xk,$k]=Ei(Nc),[rr,l1]=ht(Nc,[$k,Ri,Ti]),Km=Ri(),r1=Ti(),[pz,ir]=rr(Nc),[vz,Wo]=rr(Nc),Zk="MenuAnchor",Xm=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=Km(r);return d.jsx(Hm,{...s,...i,ref:a})});Xm.displayName=Zk;var $m="MenuPortal",[Fk,i1]=rr($m,{forceMount:void 0}),o1=n=>{const{__scopeMenu:a,forceMount:r,children:i,container:s}=n,u=ir($m,a);return d.jsx(Fk,{scope:a,forceMount:r,children:d.jsx(st,{present:r||u.open,children:d.jsx(Qm,{asChild:!0,container:s,children:i})})})};o1.displayName=$m;var Sn="MenuContent",[Pk,Zm]=rr(Sn),s1=v.forwardRef((n,a)=>{const r=i1(Sn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,u=ir(Sn,n.__scopeMenu),h=Wo(Sn,n.__scopeMenu);return d.jsx(Bo.Provider,{scope:n.__scopeMenu,children:d.jsx(st,{present:i||u.open,children:d.jsx(Bo.Slot,{scope:n.__scopeMenu,children:h.modal?d.jsx(Jk,{...s,ref:a}):d.jsx(Wk,{...s,ref:a})})})})}),Jk=v.forwardRef((n,a)=>{const r=ir(Sn,n.__scopeMenu),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const u=i.current;if(u)return Vm(u)},[]),d.jsx(Fm,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ae(n.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Wk=v.forwardRef((n,a)=>{const r=ir(Sn,n.__scopeMenu);return d.jsx(Fm,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Ik=er("MenuContent.ScrollLock"),Fm=v.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:s,onOpenAutoFocus:u,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:j,disableOutsideScroll:E,...S}=n,C=ir(Sn,r),_=Wo(Sn,r),R=Km(r),T=r1(r),D=Xk(r),[L,X]=v.useState(null),q=v.useRef(null),H=we(a,q,C.onContentChange),G=v.useRef(0),te=v.useRef(""),ce=v.useRef(0),de=v.useRef(null),I=v.useRef("right"),ie=v.useRef(0),re=E?Ec:v.Fragment,U=E?{as:Ik,allowPinchZoom:!0}:void 0,W=$=>{var fe,A;const Z=te.current+$,ee=D().filter(ye=>!ye.disabled),le=document.activeElement,ve=(fe=ee.find(ye=>ye.ref.current===le))==null?void 0:fe.textValue,je=ee.map(ye=>ye.textValue),ne=dD(je,Z,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))})(Z),Ee&&setTimeout(()=>Ee.focus())};v.useEffect(()=>()=>window.clearTimeout(G.current),[]),Mm();const V=v.useCallback($=>{var fe,A;return I.current===((fe=de.current)==null?void 0:fe.side)&&hD($,(A=de.current)==null?void 0:A.area)},[]);return d.jsx(Pk,{scope:r,searchRef:te,onItemEnter:v.useCallback($=>{V($)&&$.preventDefault()},[V]),onItemLeave:v.useCallback($=>{var fe;V($)||((fe=q.current)==null||fe.focus(),X(null))},[V]),onTriggerLeave:v.useCallback($=>{V($)&&$.preventDefault()},[V]),pointerGraceTimerRef:ce,onPointerGraceIntentChange:v.useCallback($=>{de.current=$},[]),children:d.jsx(re,{...U,children:d.jsx(gc,{asChild:!0,trapped:s,onMountAutoFocus:ae(u,$=>{var fe;$.preventDefault(),(fe=q.current)==null||fe.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:d.jsx(Ni,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:b,onInteractOutside:w,onDismiss:j,children:d.jsx(Ym,{asChild:!0,...T,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:X,onEntryFocus:ae(p,$=>{_.isUsingKeyboardRef.current||$.preventDefault()}),preventScrollOnEntryFocus:!0,children:d.jsx(qm,{role:"menu","aria-orientation":"vertical","data-state":E1(C.open),"data-radix-menu-content":"",dir:_.dir,...R,...S,ref:H,style:{outline:"none",...S.style},onKeyDown:ae(S.onKeyDown,$=>{const fe=$.target.closest("[data-radix-menu-content]")===$.currentTarget,A=$.ctrlKey||$.altKey||$.metaKey,Z=$.key.length===1;fe&&($.key==="Tab"&&$.preventDefault(),!A&&Z&&W($.key));const ee=q.current;if($.target!==ee||!Gk.includes($.key))return;$.preventDefault();const le=D().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);a1.includes($.key)&&le.reverse(),uD(le)}),onBlur:ae(n.onBlur,$=>{$.currentTarget.contains($.target)||(window.clearTimeout(G.current),te.current="")}),onPointerMove:ae(n.onPointerMove,Qo($=>{const fe=$.target,A=ie.current!==$.clientX;if($.currentTarget.contains(fe)&&A){const Z=$.clientX>ie.current?"right":"left";I.current=Z,ie.current=$.clientX}}))})})})})})})});s1.displayName=Sn;var eD="MenuGroup",Pm=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return d.jsx(se.div,{role:"group",...i,ref:a})});Pm.displayName=eD;var tD="MenuLabel",u1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return d.jsx(se.div,{...i,ref:a})});u1.displayName=tD;var Pu="MenuItem",Lb="menu.itemSelect",Cc=v.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...s}=n,u=v.useRef(null),h=Wo(Pu,n.__scopeMenu),m=Zm(Pu,n.__scopeMenu),p=we(a,u),g=v.useRef(!1),y=()=>{const b=u.current;if(!r&&b){const w=new CustomEvent(Lb,{bubbles:!0,cancelable:!0});b.addEventListener(Lb,j=>i==null?void 0:i(j),{once:!0}),Gu(b,w),w.defaultPrevented?g.current=!1:h.onClose()}};return d.jsx(c1,{...s,ref:p,disabled:r,onClick:ae(n.onClick,y),onPointerDown:b=>{var w;(w=n.onPointerDown)==null||w.call(n,b),g.current=!0},onPointerUp:ae(n.onPointerUp,b=>{var w;g.current||(w=b.currentTarget)==null||w.click()}),onKeyDown:ae(n.onKeyDown,b=>{const w=m.searchRef.current!=="";r||w&&b.key===" "||Wh.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})});Cc.displayName=Pu;var c1=v.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:s,...u}=n,h=Zm(Pu,r),m=r1(r),p=v.useRef(null),g=we(a,p),[y,b]=v.useState(!1),[w,j]=v.useState("");return v.useEffect(()=>{const E=p.current;E&&j((E.textContent??"").trim())},[u.children]),d.jsx(Bo.ItemSlot,{scope:r,disabled:i,textValue:s??w,children:d.jsx(Gm,{asChild:!0,...m,focusable:!i,children:d.jsx(se.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...u,ref:g,onPointerMove:ae(n.onPointerMove,Qo(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ae(n.onPointerLeave,Qo(E=>h.onItemLeave(E))),onFocus:ae(n.onFocus,()=>b(!0)),onBlur:ae(n.onBlur,()=>b(!1))})})})}),nD="MenuCheckboxItem",d1=v.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...s}=n;return d.jsx(v1,{scope:n.__scopeMenu,checked:r,children:d.jsx(Cc,{role:"menuitemcheckbox","aria-checked":Ju(r)?"mixed":r,...s,ref:a,"data-state":Wm(r),onSelect:ae(s.onSelect,()=>i==null?void 0:i(Ju(r)?!0:!r),{checkForDefaultPrevented:!1})})})});d1.displayName=nD;var f1="MenuRadioGroup",[aD,lD]=rr(f1,{value:void 0,onValueChange:()=>{}}),h1=v.forwardRef((n,a)=>{const{value:r,onValueChange:i,...s}=n,u=We(i);return d.jsx(aD,{scope:n.__scopeMenu,value:r,onValueChange:u,children:d.jsx(Pm,{...s,ref:a})})});h1.displayName=f1;var m1="MenuRadioItem",p1=v.forwardRef((n,a)=>{const{value:r,...i}=n,s=lD(m1,n.__scopeMenu),u=r===s.value;return d.jsx(v1,{scope:n.__scopeMenu,checked:u,children:d.jsx(Cc,{role:"menuitemradio","aria-checked":u,...i,ref:a,"data-state":Wm(u),onSelect:ae(i.onSelect,()=>{var h;return(h=s.onValueChange)==null?void 0:h.call(s,r)},{checkForDefaultPrevented:!1})})})});p1.displayName=m1;var Jm="MenuItemIndicator",[v1,rD]=rr(Jm,{checked:!1}),g1=v.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...s}=n,u=rD(Jm,r);return d.jsx(st,{present:i||Ju(u.checked)||u.checked===!0,children:d.jsx(se.span,{...s,ref:a,"data-state":Wm(u.checked)})})});g1.displayName=Jm;var iD="MenuSeparator",y1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return d.jsx(se.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});y1.displayName=iD;var oD="MenuArrow",b1=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=Km(r);return d.jsx(Bm,{...s,...i,ref:a})});b1.displayName=oD;var sD="MenuSub",[gz,x1]=rr(sD),Mo="MenuSubTrigger",w1=v.forwardRef((n,a)=>{const r=ir(Mo,n.__scopeMenu),i=Wo(Mo,n.__scopeMenu),s=x1(Mo,n.__scopeMenu),u=Zm(Mo,n.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=u,g={__scopeMenu:n.__scopeMenu},y=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const b=m.current;return()=>{window.clearTimeout(b),p(null)}},[m,p]),d.jsx(Xm,{asChild:!0,...g,children:d.jsx(c1,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":E1(r.open),...n,ref:Fo(a,s.onTriggerChange),onClick:b=>{var w;(w=n.onClick)==null||w.call(n,b),!(n.disabled||b.defaultPrevented)&&(b.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ae(n.onPointerMove,Qo(b=>{u.onItemEnter(b),!b.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(u.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:ae(n.onPointerLeave,Qo(b=>{var w,j;y();const E=(w=r.content)==null?void 0:w.getBoundingClientRect();if(E){const S=(j=r.content)==null?void 0:j.dataset.side,C=S==="right",_=C?-5:5,R=E[C?"left":"right"],T=E[C?"right":"left"];u.onPointerGraceIntentChange({area:[{x:b.clientX+_,y:b.clientY},{x:R,y:E.top},{x:T,y:E.top},{x:T,y:E.bottom},{x:R,y:E.bottom}],side:S}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(b),b.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:ae(n.onKeyDown,b=>{var w;const j=u.searchRef.current!=="";n.disabled||j&&b.key===" "||Vk[i.dir].includes(b.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),b.preventDefault())})})})});w1.displayName=Mo;var S1="MenuSubContent",j1=v.forwardRef((n,a)=>{const r=i1(Sn,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,u=ir(Sn,n.__scopeMenu),h=Wo(Sn,n.__scopeMenu),m=x1(S1,n.__scopeMenu),p=v.useRef(null),g=we(a,p);return d.jsx(Bo.Provider,{scope:n.__scopeMenu,children:d.jsx(st,{present:i||u.open,children:d.jsx(Bo.Slot,{scope:n.__scopeMenu,children:d.jsx(Fm,{id:m.contentId,"aria-labelledby":m.triggerId,...s,ref:g,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var b;h.isUsingKeyboardRef.current&&((b=p.current)==null||b.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:ae(n.onFocusOutside,y=>{y.target!==m.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:ae(n.onEscapeKeyDown,y=>{h.onClose(),y.preventDefault()}),onKeyDown:ae(n.onKeyDown,y=>{var b;const w=y.currentTarget.contains(y.target),j=Kk[h.dir].includes(y.key);w&&j&&(u.onOpenChange(!1),(b=m.trigger)==null||b.focus(),y.preventDefault())})})})})})});j1.displayName=S1;function E1(n){return n?"open":"closed"}function Ju(n){return n==="indeterminate"}function Wm(n){return Ju(n)?"indeterminate":n?"checked":"unchecked"}function uD(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function cD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function dD(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let u=cD(n,Math.max(s,0));i.length===1&&(u=u.filter(m=>m!==r));const h=u.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function fD(n,a){const{x:r,y:i}=n;let s=!1;for(let u=0,h=a.length-1;u<a.length;h=u++){const m=a[u],p=a[h],g=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function hD(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return fD(r,a)}function Qo(n){return a=>a.pointerType==="mouse"?n(a):void 0}var mD=Xm,pD=o1,vD=s1,gD=Pm,yD=u1,bD=Cc,xD=d1,wD=h1,SD=p1,jD=g1,ED=y1,ND=b1,CD=w1,_D=j1,N1="DropdownMenu",[RD,yz]=ht(N1,[l1]),$t=l1(),[bz,C1]=RD(N1),_1="DropdownMenuTrigger",TD=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...s}=n,u=C1(_1,r),h=$t(r);return d.jsx(mD,{asChild:!0,...h,children:d.jsx(se.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:Fo(a,u.triggerRef),onPointerDown:ae(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(u.onOpenToggle(),u.open||m.preventDefault())}),onKeyDown:ae(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&u.onOpenToggle(),m.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});TD.displayName=_1;var MD="DropdownMenuPortal",R1=n=>{const{__scopeDropdownMenu:a,...r}=n,i=$t(a);return d.jsx(pD,{...i,...r})};R1.displayName=MD;var T1="DropdownMenuContent",M1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=C1(T1,r),u=$t(r),h=v.useRef(!1);return d.jsx(vD,{id:s.contentId,"aria-labelledby":s.triggerId,...u,...i,ref:a,onCloseAutoFocus:ae(n.onCloseAutoFocus,m=>{var p;h.current||(p=s.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,y=p.button===2||g;(!s.modal||y)&&(h.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});M1.displayName=T1;var AD="DropdownMenuGroup",kD=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(gD,{...s,...i,ref:a})});kD.displayName=AD;var DD="DropdownMenuLabel",A1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(yD,{...s,...i,ref:a})});A1.displayName=DD;var OD="DropdownMenuItem",k1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(bD,{...s,...i,ref:a})});k1.displayName=OD;var zD="DropdownMenuCheckboxItem",D1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(xD,{...s,...i,ref:a})});D1.displayName=zD;var LD="DropdownMenuRadioGroup",UD=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(wD,{...s,...i,ref:a})});UD.displayName=LD;var HD="DropdownMenuRadioItem",O1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(SD,{...s,...i,ref:a})});O1.displayName=HD;var qD="DropdownMenuItemIndicator",z1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(jD,{...s,...i,ref:a})});z1.displayName=qD;var BD="DropdownMenuSeparator",L1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(ED,{...s,...i,ref:a})});L1.displayName=BD;var QD="DropdownMenuArrow",YD=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(ND,{...s,...i,ref:a})});YD.displayName=QD;var GD="DropdownMenuSubTrigger",U1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(CD,{...s,...i,ref:a})});U1.displayName=GD;var VD="DropdownMenuSubContent",H1=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=$t(r);return d.jsx(_D,{...s,...i,ref:a,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});H1.displayName=VD;var KD=R1,q1=M1,B1=A1,Q1=k1,Y1=D1,G1=O1,V1=z1,K1=L1,X1=U1,$1=H1;const Z1=oe("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)]");oe("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",Z1,"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");oe("z-50 min-w-[8rem] p-1 rounded-xl",Z1,"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");oe("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");oe("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");oe("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");oe("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var F1="Dialog",[P1,J1]=ht(F1),[xz,In]=P1(F1),W1="DialogTrigger",I1=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(W1,r),u=we(a,s.triggerRef);return d.jsx(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ep(s.open),...i,ref:u,onClick:ae(n.onClick,s.onOpenToggle)})});I1.displayName=W1;var XD="DialogPortal",[wz,eS]=P1(XD,{forceMount:void 0}),Wu="DialogOverlay",tS=v.forwardRef((n,a)=>{const r=eS(Wu,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,u=In(Wu,n.__scopeDialog);return u.modal?d.jsx(st,{present:i||u.open,children:d.jsx(ZD,{...s,ref:a})}):null});tS.displayName=Wu;var $D=er("DialogOverlay.RemoveScroll"),ZD=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(Wu,r);return d.jsx(Ec,{as:$D,allowPinchZoom:!0,shards:[s.contentRef],children:d.jsx(se.div,{"data-state":ep(s.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),nr="DialogContent",nS=v.forwardRef((n,a)=>{const r=eS(nr,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,u=In(nr,n.__scopeDialog);return d.jsx(st,{present:i||u.open,children:u.modal?d.jsx(FD,{...s,ref:a}):d.jsx(PD,{...s,ref:a})})});nS.displayName=nr;var FD=v.forwardRef((n,a)=>{const r=In(nr,n.__scopeDialog),i=v.useRef(null),s=we(a,r.contentRef,i);return v.useEffect(()=>{const u=i.current;if(u)return Vm(u)},[]),d.jsx(aS,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(n.onCloseAutoFocus,u=>{var h;u.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ae(n.onPointerDownOutside,u=>{const h=u.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&u.preventDefault()}),onFocusOutside:ae(n.onFocusOutside,u=>u.preventDefault())})}),PD=v.forwardRef((n,a)=>{const r=In(nr,n.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return d.jsx(aS,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,u),u.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),u.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:u=>{var h,m;(h=n.onInteractOutside)==null||h.call(n,u),u.defaultPrevented||(i.current=!0,u.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const p=u.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&s.current&&u.preventDefault()}})}),aS=v.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:u,...h}=n,m=In(nr,r),p=v.useRef(null),g=we(a,p);return Mm(),d.jsxs(d.Fragment,{children:[d.jsx(gc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:u,children:d.jsx(Ni,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":ep(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(WD,{titleId:m.titleId}),d.jsx(e3,{contentRef:p,descriptionId:m.descriptionId})]})]})}),Im="DialogTitle",lS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(Im,r);return d.jsx(se.h2,{id:s.titleId,...i,ref:a})});lS.displayName=Im;var rS="DialogDescription",iS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(rS,r);return d.jsx(se.p,{id:s.descriptionId,...i,ref:a})});iS.displayName=rS;var oS="DialogClose",sS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=In(oS,r);return d.jsx(se.button,{type:"button",...i,ref:a,onClick:ae(n.onClick,()=>s.onOpenChange(!1))})});sS.displayName=oS;function ep(n){return n?"open":"closed"}var uS="DialogTitleWarning",[JD,cS]=KT(uS,{contentName:nr,titleName:Im,docsSlug:"dialog"}),WD=({titleId:n})=>{const a=cS(uS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
297
-
298
- If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
299
-
300
- 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},ID="DialogDescriptionWarning",e3=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${cS(ID).contentName}}.`;return v.useEffect(()=>{var i;const s=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");a&&s&&(document.getElementById(a)||console.warn(r))},[r,n,a]),null},t3=I1,n3=tS,a3=nS,l3=lS,r3=iS,dS=sS,i3="AlertDialog",[o3,Sz]=ht(i3,[J1]),or=J1(),s3="AlertDialogTrigger",u3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx(t3,{...s,...i,ref:a})});u3.displayName=s3;var c3="AlertDialogOverlay",d3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx(n3,{...s,...i,ref:a})});d3.displayName=c3;var ei="AlertDialogContent",[f3,h3]=o3(ei),m3=aw("AlertDialogContent"),p3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...s}=n,u=or(r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return d.jsx(JD,{contentName:ei,titleName:fS,docsSlug:"alert-dialog",children:d.jsx(f3,{scope:r,cancelRef:p,children:d.jsxs(a3,{role:"alertdialog",...u,...s,ref:m,onOpenAutoFocus:ae(s.onOpenAutoFocus,g=>{var y;g.preventDefault(),(y=p.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[d.jsx(m3,{children:i}),d.jsx(w3,{contentRef:h})]})})})});p3.displayName=ei;var fS="AlertDialogTitle",v3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx(l3,{...s,...i,ref:a})});v3.displayName=fS;var hS="AlertDialogDescription",g3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx(r3,{...s,...i,ref:a})});g3.displayName=hS;var y3="AlertDialogAction",b3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=or(r);return d.jsx(dS,{...s,...i,ref:a})});b3.displayName=y3;var mS="AlertDialogCancel",x3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:s}=h3(mS,r),u=or(r),h=we(a,s);return d.jsx(dS,{...u,...i,ref:h})});x3.displayName=mS;var w3=({contentRef:n})=>{const a=`\`${ei}\` requires a description for the component to be accessible for screen reader users.
301
-
302
- You can add a description to the \`${ei}\` by passing a \`${hS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
303
-
304
- 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 \`${ei}\`. 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.
305
-
306
- 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 Io(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 pS=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"}),S3="VisuallyHidden",vS=v.forwardRef((n,a)=>d.jsx(se.span,{...n,ref:a,style:{...pS,...n.style}}));vS.displayName=S3;var gS=vS,j3=[" ","Enter","ArrowUp","ArrowDown"],E3=[" ","Enter"],_c="Select",[tp,Rc,N3]=Ei(_c),[Mi,jz]=ht(_c,[N3,Ri]),np=Ri(),[Ez,Sl]=Mi(_c),[Nz,C3]=Mi(_c),yS="SelectTrigger",_3=v.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...s}=n,u=np(r),h=Sl(yS,r),m=h.disabled||i,p=we(a,h.onTriggerChange),g=Rc(r),y=v.useRef("touch"),[b,w,j]=TS(S=>{const C=g().filter(T=>!T.disabled),_=C.find(T=>T.value===h.value),R=MS(C,S,_);R!==void 0&&h.onValueChange(R.value)}),E=S=>{m||(h.onOpenChange(!0),j()),S&&(h.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return d.jsx(Hm,{asChild:!0,...u,children:d.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":RS(h.value)?"":void 0,...s,ref:p,onClick:ae(s.onClick,S=>{S.currentTarget.focus(),y.current!=="mouse"&&E(S)}),onPointerDown:ae(s.onPointerDown,S=>{y.current=S.pointerType;const C=S.target;C.hasPointerCapture(S.pointerId)&&C.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(E(S),S.preventDefault())}),onKeyDown:ae(s.onKeyDown,S=>{const C=b.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(C&&S.key===" ")&&j3.includes(S.key)&&(E(),S.preventDefault())})})})});_3.displayName=yS;var bS="SelectValue",R3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,children:u,placeholder:h="",...m}=n,p=Sl(bS,r),{onValueNodeHasChildrenChange:g}=p,y=u!==void 0,b=we(a,p.onValueNodeChange);return et(()=>{g(y)},[g,y]),d.jsx(se.span,{...m,ref:b,style:{pointerEvents:"none"},children:RS(p.value)?d.jsx(d.Fragment,{children:h}):u})});R3.displayName=bS;var T3="SelectIcon",M3=v.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...s}=n;return d.jsx(se.span,{"aria-hidden":!0,...s,ref:a,children:i||"▼"})});M3.displayName=T3;var ar="SelectContent",A3=v.forwardRef((n,a)=>{const r=Sl(ar,n.__scopeSelect),[i,s]=v.useState();if(et(()=>{s(new DocumentFragment)},[]),!r.open){const u=i;return u?Zo.createPortal(d.jsx(xS,{scope:n.__scopeSelect,children:d.jsx(tp.Slot,{scope:n.__scopeSelect,children:d.jsx("div",{children:n.children})})}),u):null}return d.jsx(wS,{...n,ref:a})});A3.displayName=ar;var Tn=10,[xS,jl]=Mi(ar),k3="SelectContentImpl",D3=er("SelectContent.RemoveScroll"),wS=v.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:u,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C,..._}=n,R=Sl(ar,r),[T,D]=v.useState(null),[L,X]=v.useState(null),q=we(a,ne=>D(ne)),[H,G]=v.useState(null),[te,ce]=v.useState(null),de=Rc(r),[I,ie]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(T)return Vm(T)},[T]),Mm();const U=v.useCallback(ne=>{const[Ee,...ye]=de().map(Ye=>Ye.ref.current),[Ne]=ye.slice(-1),Ue=document.activeElement;for(const Ye of ne)if(Ye===Ue||(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!==Ue))return},[de,L]),W=v.useCallback(()=>U([H,T]),[U,H,T]);v.useEffect(()=>{I&&W()},[I,W]);const{onOpenChange:V,triggerPointerDownPosRef:$}=R;v.useEffect(()=>{if(T){let ne={x:0,y:0};const Ee=Ne=>{var Ue,Ye;ne={x:Math.abs(Math.round(Ne.pageX)-(((Ue=$.current)==null?void 0:Ue.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ye=$.current)==null?void 0:Ye.y)??0))}},ye=Ne=>{ne.x<=10&&ne.y<=10?Ne.preventDefault():T.contains(Ne.target)||V(!1),document.removeEventListener("pointermove",Ee),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",ye,{capture:!0})}}},[T,V,$]),v.useEffect(()=>{const ne=()=>V(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[V]);const[fe,A]=TS(ne=>{const Ee=de().filter(Ue=>!Ue.disabled),ye=Ee.find(Ue=>Ue.ref.current===document.activeElement),Ne=MS(Ee,ne,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),Z=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(R.value!==void 0&&R.value===Ee||Ne)&&(G(ne),Ne&&(re.current=!0))},[R.value]),ee=v.useCallback(()=>T==null?void 0:T.focus(),[T]),le=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(R.value!==void 0&&R.value===Ee||Ne)&&ce(ne)},[R.value]),ve=i==="popper"?Ih:SS,je=ve===Ih?{side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:b,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C}:{};return d.jsx(xS,{scope:r,content:T,viewport:L,onViewportChange:X,itemRefCallback:Z,selectedItem:H,onItemLeave:ee,itemTextRefCallback:le,focusSelectedItem:W,selectedItemText:te,position:i,isPositioned:I,searchRef:fe,children:d.jsx(Ec,{as:D3,allowPinchZoom:!0,children:d.jsx(gc,{asChild:!0,trapped:R.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:ae(s,ne=>{var Ee;(Ee=R.trigger)==null||Ee.focus({preventScroll:!0}),ne.preventDefault()}),children:d.jsx(Ni,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:d.jsx(ve,{role:"listbox",id:R.contentId,"data-state":R.open?"open":"closed",dir:R.dir,onContextMenu:ne=>ne.preventDefault(),..._,...je,onPlaced:()=>ie(!0),ref:q,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=de().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,Ue=ye.indexOf(Ne);ye=ye.slice(Ue+1)}setTimeout(()=>U(ye)),ne.preventDefault()}})})})})})})});wS.displayName=k3;var O3="SelectItemAlignedPosition",SS=v.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...s}=n,u=Sl(ar,r),h=jl(ar,r),[m,p]=v.useState(null),[g,y]=v.useState(null),b=we(a,q=>y(q)),w=Rc(r),j=v.useRef(!1),E=v.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:_,focusSelectedItem:R}=h,T=v.useCallback(()=>{if(u.trigger&&u.valueNode&&m&&g&&S&&C&&_){const q=u.trigger.getBoundingClientRect(),H=g.getBoundingClientRect(),G=u.valueNode.getBoundingClientRect(),te=_.getBoundingClientRect();if(u.dir!=="rtl"){const Ne=te.left-H.left,Ue=G.left-Ne,Ye=q.left-Ue,_t=q.width+Ye,Zt=Math.max(_t,H.width),ea=window.innerWidth-Tn,ta=Kh(Ue,[Tn,Math.max(Tn,ea-Zt)]);m.style.minWidth=_t+"px",m.style.left=ta+"px"}else{const Ne=H.right-te.right,Ue=window.innerWidth-G.right-Ne,Ye=window.innerWidth-q.right-Ue,_t=q.width+Ye,Zt=Math.max(_t,H.width),ea=window.innerWidth-Tn,ta=Kh(Ue,[Tn,Math.max(Tn,ea-Zt)]);m.style.minWidth=_t+"px",m.style.right=ta+"px"}const ce=w(),de=window.innerHeight-Tn*2,I=S.scrollHeight,ie=window.getComputedStyle(g),re=parseInt(ie.borderTopWidth,10),U=parseInt(ie.paddingTop,10),W=parseInt(ie.borderBottomWidth,10),V=parseInt(ie.paddingBottom,10),$=re+U+I+V+W,fe=Math.min(C.offsetHeight*5,$),A=window.getComputedStyle(S),Z=parseInt(A.paddingTop,10),ee=parseInt(A.paddingBottom,10),le=q.top+q.height/2-Tn,ve=de-le,je=C.offsetHeight/2,ne=C.offsetTop+je,Ee=re+U+ne,ye=$-Ee;if(Ee<=le){const Ne=ce.length>0&&C===ce[ce.length-1].ref.current;m.style.bottom="0px";const Ue=g.clientHeight-S.offsetTop-S.offsetHeight,Ye=Math.max(ve,je+(Ne?ee:0)+Ue+W),_t=Ee+Ye;m.style.height=_t+"px"}else{const Ne=ce.length>0&&C===ce[0].ref.current;m.style.top="0px";const Ue=Math.max(le,re+S.offsetTop+(Ne?Z:0)+je)+ye;m.style.height=Ue+"px",S.scrollTop=Ee-le+S.offsetTop}m.style.margin=`${Tn}px 0`,m.style.minHeight=fe+"px",m.style.maxHeight=de+"px",i==null||i(),requestAnimationFrame(()=>j.current=!0)}},[w,u.trigger,u.valueNode,m,g,S,C,_,u.dir,i]);et(()=>T(),[T]);const[D,L]=v.useState();et(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const X=v.useCallback(q=>{q&&E.current===!0&&(T(),R==null||R(),E.current=!1)},[T,R]);return d.jsx(L3,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:j,onScrollButtonChange:X,children:d.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:d.jsx(se.div,{...s,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});SS.displayName=O3;var z3="SelectPopperPosition",Ih=v.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=Tn,...u}=n,h=np(r);return d.jsx(qm,{...h,...u,ref:a,align:i,collisionPadding:s,style:{boxSizing:"border-box",...u.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)"}})});Ih.displayName=z3;var[L3,ap]=Mi(ar,{}),em="SelectViewport",U3=v.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...s}=n,u=jl(em,r),h=ap(em,r),m=we(a,u.onViewportChange),p=v.useRef(0);return d.jsxs(d.Fragment,{children:[d.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}),d.jsx(tp.Slot,{scope:r,children:d.jsx(se.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ae(s.onScroll,g=>{const y=g.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:w}=h;if(w!=null&&w.current&&b){const j=Math.abs(p.current-y.scrollTop);if(j>0){const E=window.innerHeight-Tn*2,S=parseFloat(b.style.minHeight),C=parseFloat(b.style.height),_=Math.max(S,C);if(_<E){const R=_+j,T=Math.min(E,R),D=R-T;b.style.height=T+"px",b.style.bottom==="0px"&&(y.scrollTop=D>0?D:0,b.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});U3.displayName=em;var jS="SelectGroup",[H3,q3]=Mi(jS),B3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=wl();return d.jsx(H3,{scope:r,id:s,children:d.jsx(se.div,{role:"group","aria-labelledby":s,...i,ref:a})})});B3.displayName=jS;var ES="SelectLabel",Q3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=q3(ES,r);return d.jsx(se.div,{id:s.id,...i,ref:a})});Q3.displayName=ES;var Iu="SelectItem",[Y3,NS]=Mi(Iu),G3=v.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:u,...h}=n,m=Sl(Iu,r),p=jl(Iu,r),g=m.value===i,[y,b]=v.useState(u??""),[w,j]=v.useState(!1),E=we(a,R=>{var T;return(T=p.itemRefCallback)==null?void 0:T.call(p,R,i,s)}),S=wl(),C=v.useRef("touch"),_=()=>{s||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return d.jsx(Y3,{scope:r,value:i,disabled:s,textId:S,isSelected:g,onItemTextChange:v.useCallback(R=>{b(T=>T||((R==null?void 0:R.textContent)??"").trim())},[]),children:d.jsx(tp.ItemSlot,{scope:r,value:i,disabled:s,textValue:y,children:d.jsx(se.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...h,ref:E,onFocus:ae(h.onFocus,()=>j(!0)),onBlur:ae(h.onBlur,()=>j(!1)),onClick:ae(h.onClick,()=>{C.current!=="mouse"&&_()}),onPointerUp:ae(h.onPointerUp,()=>{C.current==="mouse"&&_()}),onPointerDown:ae(h.onPointerDown,R=>{C.current=R.pointerType}),onPointerMove:ae(h.onPointerMove,R=>{var T;C.current=R.pointerType,s?(T=p.onItemLeave)==null||T.call(p):C.current==="mouse"&&R.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ae(h.onPointerLeave,R=>{var T;R.currentTarget===document.activeElement&&((T=p.onItemLeave)==null||T.call(p))}),onKeyDown:ae(h.onKeyDown,R=>{var T;((T=p.searchRef)==null?void 0:T.current)!==""&&R.key===" "||(E3.includes(R.key)&&_(),R.key===" "&&R.preventDefault())})})})})});G3.displayName=Iu;var Ao="SelectItemText",V3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,...u}=n,h=Sl(Ao,r),m=jl(Ao,r),p=NS(Ao,r),g=C3(Ao,r),[y,b]=v.useState(null),w=we(a,_=>b(_),p.onItemTextChange,_=>{var R;return(R=m.itemTextRefCallback)==null?void 0:R.call(m,_,p.value,p.disabled)}),j=y==null?void 0:y.textContent,E=v.useMemo(()=>d.jsx("option",{value:p.value,disabled:p.disabled,children:j},p.value),[p.disabled,p.value,j]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=g;return et(()=>(S(E),()=>C(E)),[S,C,E]),d.jsxs(d.Fragment,{children:[d.jsx(se.span,{id:p.textId,...u,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?Zo.createPortal(u.children,h.valueNode):null]})});V3.displayName=Ao;var CS="SelectItemIndicator",K3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return NS(CS,r).isSelected?d.jsx(se.span,{"aria-hidden":!0,...i,ref:a}):null});K3.displayName=CS;var tm="SelectScrollUpButton",X3=v.forwardRef((n,a)=>{const r=jl(tm,n.__scopeSelect),i=ap(tm,n.__scopeSelect),[s,u]=v.useState(!1),h=we(a,i.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;u(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?d.jsx(_S,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});X3.displayName=tm;var nm="SelectScrollDownButton",$3=v.forwardRef((n,a)=>{const r=jl(nm,n.__scopeSelect),i=ap(nm,n.__scopeSelect),[s,u]=v.useState(!1),h=we(a,i.onScrollButtonChange);return et(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;u(y)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?d.jsx(_S,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});$3.displayName=nm;var _S=v.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=n,u=jl("SelectScrollButton",r),h=v.useRef(null),m=Rc(r),p=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),et(()=>{var g;const y=m().find(b=>b.ref.current===document.activeElement);(g=y==null?void 0:y.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),d.jsx(se.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:ae(s.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ae(s.onPointerMove,()=>{var g;(g=u.onItemLeave)==null||g.call(u),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ae(s.onPointerLeave,()=>{p()})})}),Z3="SelectSeparator",F3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return d.jsx(se.div,{"aria-hidden":!0,...i,ref:a})});F3.displayName=Z3;var am="SelectArrow",P3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=np(r),u=Sl(am,r),h=jl(am,r);return u.open&&h.position==="popper"?d.jsx(Bm,{...s,...i,ref:a}):null});P3.displayName=am;var J3="SelectBubbleInput",W3=v.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const s=v.useRef(null),u=we(i,s),h=Io(a);return v.useEffect(()=>{const m=s.current;if(!m)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==a&&g){const y=new Event("change",{bubbles:!0});g.call(m,a),m.dispatchEvent(y)}},[h,a]),d.jsx(se.select,{...r,style:{...pS,...r.style},ref:u,defaultValue:a})});W3.displayName=J3;function RS(n){return n===""||n===void 0}function TS(n){const a=We(n),r=v.useRef(""),i=v.useRef(0),s=v.useCallback(h=>{const m=r.current+h;a(m),(function p(g){r.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(m)},[a]),u=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,u]}function MS(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let u=I3(n,Math.max(s,0));i.length===1&&(u=u.filter(m=>m!==r));const h=u.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function I3(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[Tc,Cz]=ht("Tooltip",[Ri]),lp=Ri(),eO="TooltipProvider",Ub="tooltip.open",[_z,AS]=Tc(eO),kS="Tooltip",[Rz,es]=Tc(kS),lm="TooltipTrigger",tO=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=es(lm,r),u=AS(lm,r),h=lp(r),m=v.useRef(null),p=we(a,m,s.onTriggerChange),g=v.useRef(!1),y=v.useRef(!1),b=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),d.jsx(Hm,{asChild:!0,...h,children:d.jsx(se.button,{"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute,...i,ref:p,onPointerMove:ae(n.onPointerMove,w=>{w.pointerType!=="touch"&&!y.current&&!u.isPointerInTransitRef.current&&(s.onTriggerEnter(),y.current=!0)}),onPointerLeave:ae(n.onPointerLeave,()=>{s.onTriggerLeave(),y.current=!1}),onPointerDown:ae(n.onPointerDown,()=>{s.open&&s.onClose(),g.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:ae(n.onFocus,()=>{g.current||s.onOpen()}),onBlur:ae(n.onBlur,s.onClose),onClick:ae(n.onClick,s.onClose)})})});tO.displayName=lm;var rp="TooltipPortal",[nO,aO]=Tc(rp,{forceMount:void 0}),DS=n=>{const{__scopeTooltip:a,forceMount:r,children:i,container:s}=n,u=es(rp,a);return d.jsx(nO,{scope:a,forceMount:r,children:d.jsx(st,{present:r||u.open,children:d.jsx(Qm,{asChild:!0,container:s,children:i})})})};DS.displayName=rp;var vi="TooltipContent",OS=v.forwardRef((n,a)=>{const r=aO(vi,n.__scopeTooltip),{forceMount:i=r.forceMount,side:s="top",...u}=n,h=es(vi,n.__scopeTooltip);return d.jsx(st,{present:i||h.open,children:h.disableHoverableContent?d.jsx(zS,{side:s,...u,ref:a}):d.jsx(lO,{side:s,...u,ref:a})})}),lO=v.forwardRef((n,a)=>{const r=es(vi,n.__scopeTooltip),i=AS(vi,n.__scopeTooltip),s=v.useRef(null),u=we(a,s),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,y=s.current,{onPointerInTransitChange:b}=i,w=v.useCallback(()=>{m(null),b(!1)},[b]),j=v.useCallback((E,S)=>{const C=E.currentTarget,_={x:E.clientX,y:E.clientY},R=uO(_,C.getBoundingClientRect()),T=cO(_,R),D=dO(S.getBoundingClientRect()),L=hO([...T,...D]);m(L),b(!0)},[b]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&y){const E=C=>j(C,y),S=C=>j(C,p);return p.addEventListener("pointerleave",E),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",S)}}},[p,y,j,w]),v.useEffect(()=>{if(h){const E=S=>{const C=S.target,_={x:S.clientX,y:S.clientY},R=(p==null?void 0:p.contains(C))||(y==null?void 0:y.contains(C)),T=!fO(_,h);R?w():T&&(w(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,y,h,g,w]),d.jsx(zS,{...n,ref:u})}),[rO,iO]=Tc(kS,{isInside:!1}),oO=aw("TooltipContent"),zS=v.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:u,onPointerDownOutside:h,...m}=n,p=es(vi,r),g=lp(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Ub,y),()=>document.removeEventListener(Ub,y)),[y]),v.useEffect(()=>{if(p.trigger){const b=w=>{const j=w.target;j!=null&&j.contains(p.trigger)&&y()};return window.addEventListener("scroll",b,{capture:!0}),()=>window.removeEventListener("scroll",b,{capture:!0})}},[p.trigger,y]),d.jsx(Ni,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:h,onFocusOutside:b=>b.preventDefault(),onDismiss:y,children:d.jsxs(qm,{"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:[d.jsx(oO,{children:i}),d.jsx(rO,{scope:r,isInside:!0,children:d.jsx(gS,{id:p.contentId,role:"tooltip",children:s||i})})]})})});OS.displayName=vi;var LS="TooltipArrow",sO=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=lp(r);return iO(LS,r).isInside?null:d.jsx(Bm,{...s,...i,ref:a})});sO.displayName=LS;function uO(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),s=Math.abs(a.right-n.x),u=Math.abs(a.left-n.x);switch(Math.min(r,i,s,u)){case u:return"left";case s:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function cO(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 dO(n){const{top:a,right:r,bottom:i,left:s}=n;return[{x:s,y:a},{x:r,y:a},{x:r,y:i},{x:s,y:i}]}function fO(n,a){const{x:r,y:i}=n;let s=!1;for(let u=0,h=a.length-1;u<a.length;h=u++){const m=a[u],p=a[h],g=m.x,y=m.y,b=p.x,w=p.y;y>i!=w>i&&r<(b-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function hO(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),mO(a)}function mO(n){if(n.length<=1)return n.slice();const a=[];for(let i=0;i<n.length;i++){const s=n[i];for(;a.length>=2;){const u=a[a.length-1],h=a[a.length-2];if((u.x-h.x)*(s.y-h.y)>=(u.y-h.y)*(s.x-h.x))a.pop();else break}a.push(s)}a.pop();const r=[];for(let i=n.length-1;i>=0;i--){const s=n[i];for(;r.length>=2;){const u=r[r.length-1],h=r[r.length-2];if((u.x-h.x)*(s.y-h.y)>=(u.y-h.y)*(s.x-h.x))r.pop();else break}r.push(s)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var pO=DS,US=OS;const vO=v.forwardRef(({className:n,sideOffset:a=4,...r},i)=>d.jsx(pO,{children:d.jsx(US,{ref:i,sideOffset:a,className:oe("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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 origin-[--radix-tooltip-content-transform-origin]",n),...r})}));vO.displayName=US.displayName;var Mc="Checkbox",[gO,Tz]=ht(Mc),[yO,ip]=gO(Mc);function bO(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:s,disabled:u,form:h,name:m,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:b}=n,[w,j]=Jn({prop:r,defaultProp:s??!1,onChange:p,caller:Mc}),[E,S]=v.useState(null),[C,_]=v.useState(null),R=v.useRef(!1),T=E?!!h||!!E.closest("form"):!0,D={checked:w,disabled:u,setChecked:j,control:E,setControl:S,name:m,form:h,value:y,hasConsumerStoppedPropagationRef:R,required:g,defaultChecked:gl(s)?!1:s,isFormControl:T,bubbleInput:C,setBubbleInput:_};return d.jsx(yO,{scope:a,...D,children:SO(b)?b(D):i})}var HS="CheckboxTrigger",qS=v.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},s)=>{const{control:u,value:h,disabled:m,checked:p,required:g,setControl:y,setChecked:b,hasConsumerStoppedPropagationRef:w,isFormControl:j,bubbleInput:E}=ip(HS,n),S=we(s,y),C=v.useRef(p);return v.useEffect(()=>{const _=u==null?void 0:u.form;if(_){const R=()=>b(C.current);return _.addEventListener("reset",R),()=>_.removeEventListener("reset",R)}},[u,b]),d.jsx(se.button,{type:"button",role:"checkbox","aria-checked":gl(p)?"mixed":p,"aria-required":g,"data-state":GS(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:S,onKeyDown:ae(a,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ae(r,_=>{b(R=>gl(R)?!0:!R),E&&j&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});qS.displayName=HS;var xO=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:u,required:h,disabled:m,value:p,onCheckedChange:g,form:y,...b}=n;return d.jsx(bO,{__scopeCheckbox:r,checked:s,defaultChecked:u,disabled:m,required:h,onCheckedChange:g,name:i,form:y,value:p,internal_do_not_use_render:({isFormControl:w})=>d.jsxs(d.Fragment,{children:[d.jsx(qS,{...b,ref:a,__scopeCheckbox:r}),w&&d.jsx(YS,{__scopeCheckbox:r})]})})});xO.displayName=Mc;var BS="CheckboxIndicator",wO=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...s}=n,u=ip(BS,r);return d.jsx(st,{present:i||gl(u.checked)||u.checked===!0,children:d.jsx(se.span,{"data-state":GS(u.checked),"data-disabled":u.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...n.style}})})});wO.displayName=BS;var QS="CheckboxBubbleInput",YS=v.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:u,defaultChecked:h,required:m,disabled:p,name:g,value:y,form:b,bubbleInput:w,setBubbleInput:j}=ip(QS,n),E=we(r,j),S=Io(u),C=Sc(i);v.useEffect(()=>{const R=w;if(!R)return;const T=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(T,"checked").set,L=!s.current;if(S!==u&&D){const X=new Event("click",{bubbles:L});R.indeterminate=gl(u),D.call(R,gl(u)?!1:u),R.dispatchEvent(X)}},[w,S,u,s]);const _=v.useRef(gl(u)?!1:u);return d.jsx(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:g,value:y,form:b,...a,tabIndex:-1,ref:E,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});YS.displayName=QS;function SO(n){return typeof n=="function"}function gl(n){return n==="indeterminate"}function GS(n){return gl(n)?"indeterminate":n?"checked":"unchecked"}var op="Radio",[jO,VS]=ht(op),[EO,NO]=jO(op),KS=v.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:s=!1,required:u,disabled:h,value:m="on",onCheck:p,form:g,...y}=n,[b,w]=v.useState(null),j=we(a,C=>w(C)),E=v.useRef(!1),S=b?g||!!b.closest("form"):!0;return d.jsxs(EO,{scope:r,checked:s,disabled:h,children:[d.jsx(se.button,{type:"button",role:"radio","aria-checked":s,"data-state":FS(s),"data-disabled":h?"":void 0,disabled:h,value:m,...y,ref:j,onClick:ae(n.onClick,C=>{s||p==null||p(),S&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),S&&d.jsx(ZS,{control:b,bubbles:!E.current,name:i,value:m,checked:s,required:u,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});KS.displayName=op;var XS="RadioIndicator",$S=v.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...s}=n,u=NO(XS,r);return d.jsx(st,{present:i||u.checked,children:d.jsx(se.span,{"data-state":FS(u.checked),"data-disabled":u.disabled?"":void 0,...s,ref:a})})});$S.displayName=XS;var CO="RadioBubbleInput",ZS=v.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...s},u)=>{const h=v.useRef(null),m=we(h,u),p=Io(r),g=Sc(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),d.jsx(se.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ZS.displayName=CO;function FS(n){return n?"checked":"unchecked"}var _O=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ac="RadioGroup",[RO,Mz]=ht(Ac,[Ti,VS]),PS=Ti(),JS=VS(),[TO,MO]=RO(Ac),WS=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:s,value:u,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:y=!0,onValueChange:b,...w}=n,j=PS(r),E=ji(g),[S,C]=Jn({prop:u,defaultProp:s??null,onChange:b,caller:Ac});return d.jsx(TO,{scope:r,name:i,required:h,disabled:m,value:S,onValueChange:C,children:d.jsx(Ym,{asChild:!0,...j,orientation:p,dir:E,loop:y,children:d.jsx(se.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...w,ref:a})})})});WS.displayName=Ac;var IS="RadioGroupItem",ej=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...s}=n,u=MO(IS,r),h=u.disabled||i,m=PS(r),p=JS(r),g=v.useRef(null),y=we(a,g),b=u.value===s.value,w=v.useRef(!1);return v.useEffect(()=>{const j=S=>{_O.includes(S.key)&&(w.current=!0)},E=()=>w.current=!1;return document.addEventListener("keydown",j),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",j),document.removeEventListener("keyup",E)}},[]),d.jsx(Gm,{asChild:!0,...m,focusable:!h,active:b,children:d.jsx(KS,{disabled:h,required:u.required,checked:b,...p,...s,name:u.name,ref:y,onCheck:()=>u.onValueChange(s.value),onKeyDown:ae(j=>{j.key==="Enter"&&j.preventDefault()}),onFocus:ae(s.onFocus,()=>{var j;w.current&&((j=g.current)==null||j.click())})})})});ej.displayName=IS;var AO="RadioGroupIndicator",tj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,s=JS(r);return d.jsx($S,{...s,...i,ref:a})});tj.displayName=AO;var nj=WS,aj=ej,kO=tj;const DO=v.forwardRef(({className:n,...a},r)=>d.jsx(nj,{className:oe("grid gap-2",n),...a,ref:r}));DO.displayName=nj.displayName;const OO=v.forwardRef(({className:n,...a},r)=>d.jsx(aj,{ref:r,className:oe("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),...a,children:d.jsx(kO,{className:"flex items-center justify-center",children:d.jsx("div",{className:"h-2 w-2 rounded-full bg-current"})})}));OO.displayName=aj.displayName;var kc="Switch",[zO,Az]=ht(kc),[LO,UO]=zO(kc),lj=v.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:u,required:h,disabled:m,value:p="on",onCheckedChange:g,form:y,...b}=n,[w,j]=v.useState(null),E=we(a,T=>j(T)),S=v.useRef(!1),C=w?y||!!w.closest("form"):!0,[_,R]=Jn({prop:s,defaultProp:u??!1,onChange:g,caller:kc});return d.jsxs(LO,{scope:r,checked:_,disabled:m,children:[d.jsx(se.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":sj(_),"data-disabled":m?"":void 0,disabled:m,value:p,...b,ref:E,onClick:ae(n.onClick,T=>{R(D=>!D),C&&(S.current=T.isPropagationStopped(),S.current||T.stopPropagation())})}),C&&d.jsx(oj,{control:w,bubbles:!S.current,name:i,value:p,checked:_,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});lj.displayName=kc;var rj="SwitchThumb",ij=v.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,s=UO(rj,r);return d.jsx(se.span,{"data-state":sj(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a})});ij.displayName=rj;var HO="SwitchBubbleInput",oj=v.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...s},u)=>{const h=v.useRef(null),m=we(h,u),p=Io(r),g=Sc(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const b=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(b,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),d.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});oj.displayName=HO;function sj(n){return n?"checked":"unchecked"}var qO=lj,BO=ij;function Sh({className:n,...a}){return d.jsx(qO,{"data-slot":"switch",className:oe("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:d.jsx(BO,{"data-slot":"switch-thumb",className:oe("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 Dc="Tabs",[QO,kz]=ht(Dc,[Ti]),uj=Ti(),[YO,sp]=QO(Dc),cj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:u,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,y=ji(m),[b,w]=Jn({prop:i,onChange:s,defaultProp:u??"",caller:Dc});return d.jsx(YO,{scope:r,baseId:wl(),value:b,onValueChange:w,orientation:h,dir:y,activationMode:p,children:d.jsx(se.div,{dir:y,"data-orientation":h,...g,ref:a})})});cj.displayName=Dc;var dj="TabsList",fj=v.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...s}=n,u=sp(dj,r),h=uj(r);return d.jsx(Ym,{asChild:!0,...h,orientation:u.orientation,dir:u.dir,loop:i,children:d.jsx(se.div,{role:"tablist","aria-orientation":u.orientation,...s,ref:a})})});fj.displayName=dj;var hj="TabsTrigger",mj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...u}=n,h=sp(hj,r),m=uj(r),p=gj(h.baseId,i),g=yj(h.baseId,i),y=i===h.value;return d.jsx(Gm,{asChild:!0,...m,focusable:!s,active:y,children:d.jsx(se.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p,...u,ref:a,onMouseDown:ae(n.onMouseDown,b=>{!s&&b.button===0&&b.ctrlKey===!1?h.onValueChange(i):b.preventDefault()}),onKeyDown:ae(n.onKeyDown,b=>{[" ","Enter"].includes(b.key)&&h.onValueChange(i)}),onFocus:ae(n.onFocus,()=>{const b=h.activationMode!=="manual";!y&&!s&&b&&h.onValueChange(i)})})})});mj.displayName=hj;var pj="TabsContent",vj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:s,children:u,...h}=n,m=sp(pj,r),p=gj(m.baseId,i),g=yj(m.baseId,i),y=i===m.value,b=v.useRef(y);return v.useEffect(()=>{const w=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(w)},[]),d.jsx(st,{present:s||y,children:({present:w})=>d.jsx(se.div,{"data-state":y?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...h,ref:a,style:{...n.style,animationDuration:b.current?"0s":void 0},children:w&&u})})});vj.displayName=pj;function gj(n,a){return`${n}-trigger-${a}`}function yj(n,a){return`${n}-content-${a}`}var GO=cj,VO=fj,Hb=mj,KO=vj;const up=v.createContext("underline"),XO=Cm("flex",{variants:{variant:{underline:"border-b border-border",pill:"bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]"}},defaultVariants:{variant:"underline"}}),$O=oe("cursor-pointer data-[state=active]:bg-background dark:data-[state=active]:text-foreground","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring","dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30","text-foreground dark:text-muted-foreground","inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5","whitespace-nowrap rounded-md border border-transparent px-2 py-1 text-sm font-medium","transition-[color,box-shadow] focus-visible:outline-1 focus-visible:ring-[3px]","disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm","[&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0");function bj({className:n,variant:a="underline",...r}){return d.jsx(up.Provider,{value:a??"underline",children:d.jsx(GO,{"data-slot":"tabs",className:oe("flex flex-col gap-2",n),...r})})}function xj({className:n,...a}){const r=v.useContext(up);return d.jsx(VO,{"data-slot":"tabs-list",className:oe(XO({variant:r}),n),...a})}function Oo({className:n,children:a,...r}){return v.useContext(up)==="pill"?d.jsx(Hb,{"data-slot":"tabs-trigger",className:oe($O,n),...r,children:a}):d.jsx(Hb,{asChild:!0,...r,children:d.jsx(rw,{className:n,children:a})})}function zo({className:n,...a}){return d.jsx(KO,{"data-slot":"tabs-content",className:oe("flex-1 outline-none",n),...a})}function ZO(n){const a=FO(n),r=v.forwardRef((i,s)=>{const{children:u,...h}=i,m=v.Children.toArray(u),p=m.find(JO);if(p){const g=p.props.children,y=m.map(b=>b===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:b);return d.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return d.jsx(a,{...h,ref:s,children:u})});return r.displayName=`${n}.Slot`,r}function FO(n){const a=v.forwardRef((r,i)=>{const{children:s,...u}=r,h=v.isValidElement(s)?IO(s):void 0,m=we(h,i);if(v.isValidElement(s)){const p=WO(u,s.props);return s.type!==v.Fragment&&(p.ref=m),v.cloneElement(s,p)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var PO=Symbol("radix.slottable");function JO(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===PO}function WO(n,a){const r={...a};for(const i in a){const s=n[i],u=a[i];/^on[A-Z]/.test(i)?s&&u?r[i]=(...h)=>{const m=u(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...u}:i==="className"&&(r[i]=[s,u].filter(Boolean).join(" "))}return{...n,...r}}function IO(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?n.props.ref:n.props.ref||n.ref)}var e4=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],cp=e4.reduce((n,a)=>{const r=ZO(`Primitive.${a}`),i=v.forwardRef((s,u)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(p,{...m,ref:u})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{}),dp="Progress",fp=100,[t4,Dz]=ht(dp),[n4,a4]=t4(dp),l4=v.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:s,getValueLabel:u=i4,...h}=n;(s||s===0)&&!qb(s)&&console.error(o4(`${s}`,"Progress"));const m=qb(s)?s:fp;i!==null&&!Bb(i,m)&&console.error(s4(`${i}`,"Progress"));const p=Bb(i,m)?i:null,g=ec(p)?u(p,m):void 0;return d.jsx(n4,{scope:r,value:p,max:m,children:d.jsx(cp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":ec(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":Sj(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});l4.displayName=dp;var wj="ProgressIndicator",r4=v.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,s=a4(wj,r);return d.jsx(cp.div,{"data-state":Sj(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})});r4.displayName=wj;function i4(n,a){return`${Math.round(n/a*100)}%`}function Sj(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function ec(n){return typeof n=="number"}function qb(n){return ec(n)&&!isNaN(n)&&n>0}function Bb(n,a){return ec(n)&&!isNaN(n)&&n<=a&&n>=0}function o4(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${fp}\`.`}function s4(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
307
- - a positive number
308
- - less than the value passed to \`max\` (or ${fp} if no \`max\` prop is set)
309
- - \`null\` or \`undefined\` if the progress is indeterminate.
310
-
311
- Defaulting to \`null\`.`}var u4="Separator",Qb="horizontal",c4=["horizontal","vertical"],d4=v.forwardRef((n,a)=>{const{decorative:r,orientation:i=Qb,...s}=n,u=f4(i)?i:Qb,h=r?{role:"none"}:{"aria-orientation":u==="vertical"?u:void 0,role:"separator"};return d.jsx(cp.div,{"data-orientation":u,...h,...s,ref:a})});d4.displayName=u4;function f4(n){return c4.includes(n)}var h4="Label",jj=v.forwardRef((n,a)=>d.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())}}));jj.displayName=h4;var Ej=jj;const m4=Cm("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ko=v.forwardRef(({className:n,...a},r)=>d.jsx(Ej,{ref:r,className:oe(m4(),n),...a}));ko.displayName=Ej.displayName;var Oc="Collapsible",[p4,Nj]=ht(Oc),[v4,hp]=p4(Oc),Cj=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:s,disabled:u,onOpenChange:h,...m}=n,[p,g]=Jn({prop:i,defaultProp:s??!1,onChange:h,caller:Oc});return d.jsx(v4,{scope:r,disabled:u,contentId:wl(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:d.jsx(se.div,{"data-state":gp(p),"data-disabled":u?"":void 0,...m,ref:a})})});Cj.displayName=Oc;var _j="CollapsibleTrigger",mp=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,s=hp(_j,r);return d.jsx(se.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":gp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:a,onClick:ae(n.onClick,s.onOpenToggle)})});mp.displayName=_j;var pp="CollapsibleContent",vp=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=hp(pp,n.__scopeCollapsible);return d.jsx(st,{present:r||s.open,children:({present:u})=>d.jsx(g4,{...i,ref:a,present:u})})});vp.displayName=pp;var g4=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:s,...u}=n,h=hp(pp,r),[m,p]=v.useState(i),g=v.useRef(null),y=we(a,g),b=v.useRef(0),w=b.current,j=v.useRef(0),E=j.current,S=h.open||m,C=v.useRef(S),_=v.useRef(void 0);return v.useEffect(()=>{const R=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(R)},[]),et(()=>{const R=g.current;if(R){_.current=_.current||{transitionDuration:R.style.transitionDuration,animationName:R.style.animationName},R.style.transitionDuration="0s",R.style.animationName="none";const T=R.getBoundingClientRect();b.current=T.height,j.current=T.width,C.current||(R.style.transitionDuration=_.current.transitionDuration,R.style.animationName=_.current.animationName),p(i)}},[h.open,i]),d.jsx(se.div,{"data-state":gp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!S,...u,ref:y,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:S&&s})});function gp(n){return n?"open":"closed"}var Rj=Cj,y4=mp,b4=vp,Hn="Accordion",x4=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[yp,w4,S4]=Ei(Hn),[zc,Oz]=ht(Hn,[S4,Nj]),bp=Nj(),j4=lt.forwardRef((n,a)=>{const{type:r,...i}=n,s=i,u=i;return d.jsx(yp.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?d.jsx(_4,{...u,ref:a}):d.jsx(C4,{...s,ref:a})})});j4.displayName=Hn;var[Tj,E4]=zc(Hn),[Mj,N4]=zc(Hn,{collapsible:!1}),C4=lt.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},collapsible:u=!1,...h}=n,[m,p]=Jn({prop:r,defaultProp:i??"",onChange:s,caller:Hn});return d.jsx(Tj,{scope:n.__scopeAccordion,value:lt.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:lt.useCallback(()=>u&&p(""),[u,p]),children:d.jsx(Mj,{scope:n.__scopeAccordion,collapsible:u,children:d.jsx(Aj,{...h,ref:a})})})}),_4=lt.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},...u}=n,[h,m]=Jn({prop:r,defaultProp:i??[],onChange:s,caller:Hn}),p=lt.useCallback(y=>m((b=[])=>[...b,y]),[m]),g=lt.useCallback(y=>m((b=[])=>b.filter(w=>w!==y)),[m]);return d.jsx(Tj,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:d.jsx(Mj,{scope:n.__scopeAccordion,collapsible:!0,children:d.jsx(Aj,{...u,ref:a})})})}),[R4,Lc]=zc(Hn),Aj=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:s,orientation:u="vertical",...h}=n,m=lt.useRef(null),p=we(m,a),g=w4(r),y=ji(s)==="ltr",b=ae(n.onKeyDown,w=>{var j;if(!x4.includes(w.key))return;const E=w.target,S=g().filter(H=>{var G;return!((G=H.ref.current)!=null&&G.disabled)}),C=S.findIndex(H=>H.ref.current===E),_=S.length;if(C===-1)return;w.preventDefault();let R=C;const T=0,D=_-1,L=()=>{R=C+1,R>D&&(R=T)},X=()=>{R=C-1,R<T&&(R=D)};switch(w.key){case"Home":R=T;break;case"End":R=D;break;case"ArrowRight":u==="horizontal"&&(y?L():X());break;case"ArrowDown":u==="vertical"&&L();break;case"ArrowLeft":u==="horizontal"&&(y?X():L());break;case"ArrowUp":u==="vertical"&&X();break}const q=R%_;(j=S[q].ref.current)==null||j.focus()});return d.jsx(R4,{scope:r,disabled:i,direction:s,orientation:u,children:d.jsx(yp.Slot,{scope:r,children:d.jsx(se.div,{...h,"data-orientation":u,ref:p,onKeyDown:i?void 0:b})})})}),tc="AccordionItem",[T4,xp]=zc(tc),M4=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...s}=n,u=Lc(tc,r),h=E4(tc,r),m=bp(r),p=wl(),g=i&&h.value.includes(i)||!1,y=u.disabled||n.disabled;return d.jsx(T4,{scope:r,open:g,disabled:y,triggerId:p,children:d.jsx(Rj,{"data-orientation":u.orientation,"data-state":Oj(g),...m,...s,ref:a,disabled:y,open:g,onOpenChange:b=>{b?h.onItemOpen(i):h.onItemClose(i)}})})});M4.displayName=tc;var kj="AccordionHeader",A4=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Lc(Hn,r),u=xp(kj,r);return d.jsx(se.h3,{"data-orientation":s.orientation,"data-state":Oj(u.open),"data-disabled":u.disabled?"":void 0,...i,ref:a})});A4.displayName=kj;var rm="AccordionTrigger",k4=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Lc(Hn,r),u=xp(rm,r),h=N4(rm,r),m=bp(r);return d.jsx(yp.ItemSlot,{scope:r,children:d.jsx(y4,{"aria-disabled":u.open&&!h.collapsible||void 0,"data-orientation":s.orientation,id:u.triggerId,...m,...i,ref:a})})});k4.displayName=rm;var Dj="AccordionContent",D4=lt.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Lc(Hn,r),u=xp(Dj,r),h=bp(r);return d.jsx(b4,{role:"region","aria-labelledby":u.triggerId,"data-orientation":s.orientation,...h,...i,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});D4.displayName=Dj;function Oj(n){return n?"open":"closed"}const zj=Rj,Lj=mp,Uj=vp;var sr="NavigationMenu",[wp,Hj,O4]=Ei(sr),[im,z4,L4]=Ei(sr),[Sp,zz]=ht(sr,[O4,L4]),[U4,Nn]=Sp(sr),[H4,q4]=Sp(sr),B4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:u,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...y}=n,[b,w]=v.useState(null),j=we(a,G=>w(G)),E=ji(g),S=v.useRef(0),C=v.useRef(0),_=v.useRef(0),[R,T]=v.useState(!0),[D,L]=Jn({prop:i,onChange:G=>{const te=G!=="",ce=m>0;te?(window.clearTimeout(_.current),ce&&T(!1)):(window.clearTimeout(_.current),_.current=window.setTimeout(()=>T(!0),m)),s==null||s(G)},defaultProp:u??"",caller:sr}),X=v.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>L(""),150)},[L]),q=v.useCallback(G=>{window.clearTimeout(C.current),L(G)},[L]),H=v.useCallback(G=>{D===G?window.clearTimeout(C.current):S.current=window.setTimeout(()=>{window.clearTimeout(C.current),L(G)},h)},[D,L,h]);return v.useEffect(()=>()=>{window.clearTimeout(S.current),window.clearTimeout(C.current),window.clearTimeout(_.current)},[]),d.jsx(qj,{scope:r,isRootMenu:!0,value:D,dir:E,orientation:p,rootNavigationMenu:b,onTriggerEnter:G=>{window.clearTimeout(S.current),R?H(G):q(G)},onTriggerLeave:()=>{window.clearTimeout(S.current),X()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:X,onItemSelect:G=>{L(te=>te===G?"":G)},onItemDismiss:()=>L(""),children:d.jsx(se.nav,{"aria-label":"Main","data-orientation":p,dir:E,...y,ref:j})})});B4.displayName=sr;var om="NavigationMenuSub",Q4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:u,orientation:h="horizontal",...m}=n,p=Nn(om,r),[g,y]=Jn({prop:i,onChange:s,defaultProp:u??"",caller:om});return d.jsx(qj,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:b=>y(b),onItemSelect:b=>y(b),onItemDismiss:()=>y(""),children:d.jsx(se.div,{"data-orientation":h,...m,ref:a})})});Q4.displayName=om;var qj=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:s,orientation:u,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:y,onTriggerLeave:b,onContentEnter:w,onContentLeave:j}=n,[E,S]=v.useState(null),[C,_]=v.useState(new Map),[R,T]=v.useState(null);return d.jsx(U4,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:Io(m),baseId:wl(),dir:s,orientation:u,viewport:E,onViewportChange:S,indicatorTrack:R,onIndicatorTrackChange:T,onTriggerEnter:We(y),onTriggerLeave:We(b),onContentEnter:We(w),onContentLeave:We(j),onItemSelect:We(p),onItemDismiss:We(g),onViewportContentChange:v.useCallback((D,L)=>{_(X=>(X.set(D,L),new Map(X)))},[]),onViewportContentRemove:v.useCallback(D=>{_(L=>L.has(D)?(L.delete(D),new Map(L)):L)},[]),children:d.jsx(wp.Provider,{scope:a,children:d.jsx(H4,{scope:a,items:C,children:h})})})},Bj="NavigationMenuList",Y4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=Nn(Bj,r),u=d.jsx(se.ul,{"data-orientation":s.orientation,...i,ref:a});return d.jsx(se.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:d.jsx(wp.Slot,{scope:r,children:s.isRootMenu?d.jsx(Vj,{asChild:!0,children:u}):u})})});Y4.displayName=Bj;var Qj="NavigationMenuItem",[G4,Yj]=Sp(Qj),V4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...s}=n,u=wl(),h=i||u||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),y=v.useRef(()=>{}),b=v.useRef(!1),w=v.useCallback((E="start")=>{if(m.current){y.current();const S=um(m.current);S.length&&Np(E==="start"?S:S.reverse())}},[]),j=v.useCallback(()=>{if(m.current){const E=um(m.current);E.length&&(y.current=n5(E))}},[]);return d.jsx(G4,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:b,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:j,onContentFocusOutside:j,children:d.jsx(se.li,{...s,ref:a})})});V4.displayName=Qj;var sm="NavigationMenuTrigger",K4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...s}=n,u=Nn(sm,n.__scopeNavigationMenu),h=Yj(sm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,a),g=Xj(u.baseId,h.value),y=$j(u.baseId,h.value),b=v.useRef(!1),w=v.useRef(!1),j=h.value===u.value;return d.jsxs(d.Fragment,{children:[d.jsx(wp.ItemSlot,{scope:r,value:h.value,children:d.jsx(Kj,{asChild:!0,children:d.jsx(se.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":Cp(j),"aria-expanded":j,"aria-controls":y,...s,ref:p,onPointerEnter:ae(n.onPointerEnter,()=>{w.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:ae(n.onPointerMove,nc(()=>{i||w.current||h.wasEscapeCloseRef.current||b.current||(u.onTriggerEnter(h.value),b.current=!0)})),onPointerLeave:ae(n.onPointerLeave,nc(()=>{i||(u.onTriggerLeave(),b.current=!1)})),onClick:ae(n.onClick,()=>{u.onItemSelect(h.value),w.current=j}),onKeyDown:ae(n.onKeyDown,E=>{const S={horizontal:"ArrowDown",vertical:u.dir==="rtl"?"ArrowLeft":"ArrowRight"}[u.orientation];j&&E.key===S&&(h.onEntryKeyDown(),E.preventDefault())})})})}),j&&d.jsxs(d.Fragment,{children:[d.jsx(gS,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:E=>{const S=h.contentRef.current,C=E.relatedTarget,_=C===m.current,R=S==null?void 0:S.contains(C);(_||!R)&&h.onFocusProxyEnter(_?"start":"end")}}),u.viewport&&d.jsx("span",{"aria-owns":y})]})]})});K4.displayName=sm;var X4="NavigationMenuLink",Yb="navigationMenu.linkSelect",$4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:s,...u}=n;return d.jsx(Kj,{asChild:!0,children:d.jsx(se.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...u,ref:a,onClick:ae(n.onClick,h=>{const m=h.target,p=new CustomEvent(Yb,{bubbles:!0,cancelable:!0});if(m.addEventListener(Yb,g=>s==null?void 0:s(g),{once:!0}),Gu(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(Uu,{bubbles:!0,cancelable:!0});Gu(m,g)}},{checkForDefaultPrevented:!1})})})});$4.displayName=X4;var jp="NavigationMenuIndicator",Z4=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Nn(jp,n.__scopeNavigationMenu),u=!!s.value;return s.indicatorTrack?zx.createPortal(d.jsx(st,{present:r||u,children:d.jsx(F4,{...i,ref:a})}),s.indicatorTrack):null});Z4.displayName=jp;var F4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=Nn(jp,r),u=Hj(r),[h,m]=v.useState(null),[p,g]=v.useState(null),y=s.orientation==="horizontal",b=!!s.value;v.useEffect(()=>{var j;const E=(j=u().find(S=>S.value===s.value))==null?void 0:j.ref.current;E&&m(E)},[u,s.value]);const w=()=>{h&&g({size:y?h.offsetWidth:h.offsetHeight,offset:y?h.offsetLeft:h.offsetTop})};return cm(h,w),cm(s.indicatorTrack,w),p?d.jsx(se.div,{"aria-hidden":!0,"data-state":b?"visible":"hidden","data-orientation":s.orientation,...i,ref:a,style:{position:"absolute",...y?{left:0,width:p.size+"px",transform:`translateX(${p.offset}px)`}:{top:0,height:p.size+"px",transform:`translateY(${p.offset}px)`},...i.style}}):null}),gi="NavigationMenuContent",P4=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Nn(gi,n.__scopeNavigationMenu),u=Yj(gi,n.__scopeNavigationMenu),h=we(u.contentRef,a),m=u.value===s.value,p={value:u.value,triggerRef:u.triggerRef,focusProxyRef:u.focusProxyRef,wasEscapeCloseRef:u.wasEscapeCloseRef,onContentFocusOutside:u.onContentFocusOutside,onRootContentClose:u.onRootContentClose,...i};return s.viewport?d.jsx(J4,{forceMount:r,...p,ref:h}):d.jsx(st,{present:r||m,children:d.jsx(Gj,{"data-state":Cp(m),...p,ref:h,onPointerEnter:ae(n.onPointerEnter,s.onContentEnter),onPointerLeave:ae(n.onPointerLeave,nc(s.onContentLeave)),style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,...p.style}})})});P4.displayName=gi;var J4=v.forwardRef((n,a)=>{const r=Nn(gi,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:s}=r;return et(()=>{i(n.value,{ref:a,...n})},[n,a,i]),et(()=>()=>s(n.value),[n.value,s]),null}),Uu="navigationMenu.rootContentDismiss",Gj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:s,focusProxyRef:u,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,y=Nn(gi,r),b=v.useRef(null),w=we(b,a),j=Xj(y.baseId,i),E=$j(y.baseId,i),S=Hj(r),C=v.useRef(null),{onItemDismiss:_}=y;v.useEffect(()=>{const T=b.current;if(y.isRootMenu&&T){const D=()=>{var L;_(),m(),T.contains(document.activeElement)&&((L=s.current)==null||L.focus())};return T.addEventListener(Uu,D),()=>T.removeEventListener(Uu,D)}},[y.isRootMenu,n.value,s,_,m]);const R=v.useMemo(()=>{const T=S().map(G=>G.value);y.dir==="rtl"&&T.reverse();const D=T.indexOf(y.value),L=T.indexOf(y.previousValue),X=i===y.value,q=L===T.indexOf(i);if(!X&&!q)return C.current;const H=(()=>{if(D!==L){if(X&&L!==-1)return D>L?"from-end":"from-start";if(q&&D!==-1)return D>L?"to-start":"to-end"}return null})();return C.current=H,H},[y.previousValue,y.value,y.dir,S,i]);return d.jsx(Vj,{asChild:!0,children:d.jsx(Ni,{id:E,"aria-labelledby":j,"data-motion":R,"data-orientation":y.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var T;const D=new Event(Uu,{bubbles:!0,cancelable:!0});(T=b.current)==null||T.dispatchEvent(D)},onFocusOutside:ae(n.onFocusOutside,T=>{var D;p();const L=T.target;(D=y.rootNavigationMenu)!=null&&D.contains(L)&&T.preventDefault()}),onPointerDownOutside:ae(n.onPointerDownOutside,T=>{var D;const L=T.target,X=S().some(H=>{var G;return(G=H.ref.current)==null?void 0:G.contains(L)}),q=y.isRootMenu&&((D=y.viewport)==null?void 0:D.contains(L));(X||q||!y.isRootMenu)&&T.preventDefault()}),onKeyDown:ae(n.onKeyDown,T=>{var D;const L=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!L){const X=um(T.currentTarget),q=document.activeElement,H=X.findIndex(te=>te===q),G=T.shiftKey?X.slice(0,H).reverse():X.slice(H+1,X.length);Np(G)?T.preventDefault():(D=u.current)==null||D.focus()}}),onEscapeKeyDown:ae(n.onEscapeKeyDown,T=>{h.current=!0})})})}),Ep="NavigationMenuViewport",W4=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=!!Nn(Ep,n.__scopeNavigationMenu).value;return d.jsx(st,{present:r||s,children:d.jsx(I4,{...i,ref:a})})});W4.displayName=Ep;var I4=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...s}=n,u=Nn(Ep,r),h=we(a,u.onViewportChange),m=q4(gi,n.__scopeNavigationMenu),[p,g]=v.useState(null),[y,b]=v.useState(null),w=p?(p==null?void 0:p.width)+"px":void 0,j=p?(p==null?void 0:p.height)+"px":void 0,E=!!u.value,S=E?u.value:u.previousValue;return cm(y,()=>{y&&g({width:y.offsetWidth,height:y.offsetHeight})}),d.jsx(se.div,{"data-state":Cp(E),"data-orientation":u.orientation,...s,ref:h,style:{pointerEvents:!E&&u.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":j,...s.style},onPointerEnter:ae(n.onPointerEnter,u.onContentEnter),onPointerLeave:ae(n.onPointerLeave,nc(u.onContentLeave)),children:Array.from(m.items).map(([C,{ref:_,forceMount:R,...T}])=>{const D=S===C;return d.jsx(st,{present:R||D,children:d.jsx(Gj,{...T,ref:Fo(_,L=>{D&&L&&b(L)})})},C)})})}),e5="FocusGroup",Vj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=Nn(e5,r);return d.jsx(im.Provider,{scope:r,children:d.jsx(im.Slot,{scope:r,children:d.jsx(se.div,{dir:s.dir,...i,ref:a})})})}),Gb=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],t5="FocusGroupItem",Kj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=z4(r),u=Nn(t5,r);return d.jsx(im.ItemSlot,{scope:r,children:d.jsx(se.button,{...i,ref:a,onKeyDown:ae(n.onKeyDown,h=>{if(["Home","End",...Gb].includes(h.key)){let m=s().map(p=>p.ref.current);if([u.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Gb.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>Np(m)),h.preventDefault()}})})})});function um(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Np(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function n5(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 cm(n,a){const r=We(a);et(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}function Cp(n){return n?"open":"closed"}function Xj(n,a){return`${n}-trigger-${a}`}function $j(n,a){return`${n}-content-${a}`}function nc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Vb={exports:{}},jh={};/**
312
- * @license React
313
- * use-sync-external-store-shim.production.js
314
- *
315
- * Copyright (c) Meta Platforms, Inc. and affiliates.
316
- *
317
- * This source code is licensed under the MIT license found in the
318
- * LICENSE file in the root directory of this source tree.
319
- */var Kb;function a5(){if(Kb)return jh;Kb=1;var n=lt;function a(b,w){return b===w&&(b!==0||1/b===1/w)||b!==b&&w!==w}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,s=n.useEffect,u=n.useLayoutEffect,h=n.useDebugValue;function m(b,w){var j=w(),E=i({inst:{value:j,getSnapshot:w}}),S=E[0].inst,C=E[1];return u(function(){S.value=j,S.getSnapshot=w,p(S)&&C({inst:S})},[b,j,w]),s(function(){return p(S)&&C({inst:S}),b(function(){p(S)&&C({inst:S})})},[b]),h(j),j}function p(b){var w=b.getSnapshot;b=b.value;try{var j=w();return!r(b,j)}catch{return!0}}function g(b,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return jh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,jh}var Xb;function l5(){return Xb||(Xb=1,Vb.exports=a5()),Vb.exports}var r5=l5();function i5(){return r5.useSyncExternalStore(o5,()=>!0,()=>!1)}function o5(){return()=>{}}var _p="Avatar",[s5,Lz]=ht(_p),[u5,Zj]=s5(_p),Fj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[s,u]=v.useState("idle");return d.jsx(u5,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:u,children:d.jsx(se.span,{...i,ref:a})})});Fj.displayName=_p;var Pj="AvatarImage",Jj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...u}=n,h=Zj(Pj,r),m=c5(i,u),p=We(g=>{s(g),h.onImageLoadingStatusChange(g)});return et(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?d.jsx(se.img,{...u,ref:a,src:i}):null});Jj.displayName=Pj;var Wj="AvatarFallback",Ij=v.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...s}=n,u=Zj(Wj,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&&u.imageLoadingStatus!=="loaded"?d.jsx(se.span,{...s,ref:a}):null});Ij.displayName=Wj;function $b(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function c5(n,{referrerPolicy:a,crossOrigin:r}){const i=i5(),s=v.useRef(null),u=i?(s.current||(s.current=new window.Image),s.current):null,[h,m]=v.useState(()=>$b(u,n));return et(()=>{m($b(u,n))},[u,n]),et(()=>{const p=b=>()=>{m(b)};if(!u)return;const g=p("loaded"),y=p("error");return u.addEventListener("load",g),u.addEventListener("error",y),a&&(u.referrerPolicy=a),typeof r=="string"&&(u.crossOrigin=r),()=>{u.removeEventListener("load",g),u.removeEventListener("error",y)}},[u,r,a]),h}var e2=Fj,t2=Jj,n2=Ij;const d5=v.forwardRef(({className:n,...a},r)=>d.jsx(e2,{ref:r,className:oe("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",n),...a}));d5.displayName=e2.displayName;const f5=v.forwardRef(({className:n,...a},r)=>d.jsx(t2,{ref:r,className:oe("aspect-square h-full w-full",n),...a}));f5.displayName=t2.displayName;const h5=v.forwardRef(({className:n,...a},r)=>d.jsx(n2,{ref:r,className:oe("bg-muted flex h-full w-full items-center justify-center rounded-full",n),...a}));h5.displayName=n2.displayName;const m5=v.forwardRef(({className:n,inset:a,children:r,...i},s)=>d.jsxs(X1,{ref:s,className:oe("focus:bg-accent data-[state=open]:bg-accent flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",a&&"pl-8",n),...i,children:[r,d.jsx(Vh,{className:"ml-auto h-4 w-4"})]}));m5.displayName=X1.displayName;const p5=v.forwardRef(({className:n,...a},r)=>d.jsx($1,{ref:r,className:oe("bg-popover text-popover-foreground 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 z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-lg",n),...a}));p5.displayName=$1.displayName;const v5=v.forwardRef(({className:n,sideOffset:a=4,...r},i)=>d.jsx(KD,{children:d.jsx(q1,{ref:i,sideOffset:a,className:oe("bg-popover text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md","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",n),...r})}));v5.displayName=q1.displayName;const g5=v.forwardRef(({className:n,inset:a,...r},i)=>d.jsx(Q1,{ref:i,className:oe("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a&&"pl-8",n),...r}));g5.displayName=Q1.displayName;const y5=v.forwardRef(({className:n,children:a,checked:r,...i},s)=>d.jsxs(Y1,{ref:s,className:oe("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:r,...i,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(V1,{children:d.jsx(Nm,{className:"h-4 w-4"})})}),a]}));y5.displayName=Y1.displayName;const b5=v.forwardRef(({className:n,children:a,...r},i)=>d.jsxs(G1,{ref:i,className:oe("focus:bg-accent focus:text-accent-foreground relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...r,children:[d.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:d.jsx(V1,{children:d.jsx("div",{className:"h-2 w-2 rounded-full bg-current"})})}),a]}));b5.displayName=G1.displayName;const x5=v.forwardRef(({className:n,inset:a,...r},i)=>d.jsx(B1,{ref:i,className:oe("px-2 py-1.5 text-sm font-semibold",a&&"pl-8",n),...r}));x5.displayName=B1.displayName;const w5=v.forwardRef(({className:n,...a},r)=>d.jsx(K1,{ref:r,className:oe("bg-muted -mx-1 my-1 h-px",n),...a}));w5.displayName=K1.displayName;oe("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","rounded-2xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");const S5="";async function Lt(n,a){const r=await fetch(`${S5}${n}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const i=await r.text();throw new Error(i||`Request failed: ${r.status}`)}return r.json()}async function Rp(){return Lt("/api/config")}async function j5(n,a){return Lt(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function E5(n){return Lt(`/api/db/${n}/tables`)}async function N5(n,a,r,i){return Lt(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function C5(n){return Lt(`/api/db/${n}/schema`)}async function _5(n){return Lt(`/api/queue/${n}/metrics`)}async function R5(n,a=10){return Lt(`/api/queue/${n}/messages?limit=${a}`)}async function T5(n,a=20){return Lt(`/api/workflow/${n}/executions?limit=${a}`)}async function M5(n,a){return Lt(`/api/workflow/${n}/executions/${a}`)}async function A5(){return Lt("/api/auth/tables")}async function k5(n,a,r){return Lt(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function D5(){return Lt("/api/auth/schema")}async function O5(n){return Lt("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function z5(){return Lt("/api/auth/settings")}async function L5(n){return Lt("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}function U5({column:n,onInsertText:a}){return d.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?d.jsx(Qx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):d.jsx(qx,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),d.jsx("span",{className:"truncate font-mono",children:n.name}),d.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function H5({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return d.jsxs(zj,{open:r,onOpenChange:i,children:[d.jsxs(Lj,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?d.jsx(Ux,{className:"h-4 w-4 shrink-0"}):d.jsx(ic,{className:"h-4 w-4 shrink-0"}),d.jsx(dc,{className:"h-4 w-4 shrink-0 text-blue-500"}),d.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),d.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),d.jsx(Uj,{children:d.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>d.jsx(U5,{column:s,onInsertText:a},s.name))})})]})}function q5({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=Xt({queryKey:["auth-schema"],queryFn:D5,staleTime:3e4}),s=(a==null?void 0:a.tables)||[];return d.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[d.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),d.jsx(kt,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:d.jsx(cc,{className:oe("h-4 w-4",r&&"animate-spin")})})]}),d.jsx(bw,{className:"flex-1",children:d.jsx("div",{className:"p-2",children:r?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):s.length===0?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-0.5",children:s.map(u=>d.jsx(H5,{table:u,onInsertText:n},u.name))})})}),d.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function B5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function Q5(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 Y5({settings:n,onUpdate:a,isUpdating:r}){const[i,s]=v.useState(n.sessionTokenExpiry.toString()),[u,h]=v.useState(n.allowSignups),[m,p]=v.useState(n.requireEmailVerification),[g,y]=v.useState(n.requireName),b=()=>{a({sessionTokenExpiry:parseInt(i,10),allowSignups:u,requireEmailVerification:m,requireName:g})},w=parseInt(i,10)!==n.sessionTokenExpiry||u!==n.allowSignups||m!==n.requireEmailVerification||g!==n.requireName;return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{className:"space-y-2",children:[d.jsx(ko,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),d.jsx(BT,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:j=>s(j.target.value)}),d.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",Q5(parseInt(i,10)||0)," (min: 1 hour, max: 90 days)"]})]}),d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-0.5",children:[d.jsx(ko,{children:"Allow Signups"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),d.jsx(Sh,{checked:u,onCheckedChange:h})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-0.5",children:[d.jsx(ko,{children:"Require Email Verification"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Users must verify their email before accessing the app"})]}),d.jsx(Sh,{checked:m,onCheckedChange:p})]}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"space-y-0.5",children:[d.jsx(ko,{children:"Require Name"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),d.jsx(Sh,{checked:g,onCheckedChange:y})]})]}),d.jsx("div",{className:"flex justify-end",children:d.jsx(kt,{onClick:b,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function G5(){var I,ie,re,U,W,V;const n=vm(),[a,r]=v.useState("settings"),[i,s]=v.useState(""),[u,h]=v.useState(null),[m,p]=v.useState(null),[g,y]=v.useState(null),[b,w]=v.useState(0),j=50,S=((ie=(I=Xt({queryKey:["config"],queryFn:Rp,staleTime:6e4}).data)==null?void 0:I.auth)==null?void 0:ie.binding)||"AUTH",C=Xt({queryKey:["auth-settings"],queryFn:z5,staleTime:0}),_=Hh({mutationFn:L5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),R=$=>{_.mutate($)},T=v.useCallback($=>{s(fe=>fe+$)},[]),D=Hh({mutationFn:$=>O5($),onSuccess:$=>{h($),p(null)},onError:$=>{p($ instanceof Error?$.message:"Failed to execute query"),h(null)}}),L=()=>{i.trim()&&D.mutate(i)},X=Xt({queryKey:["auth-tables"],queryFn:A5,staleTime:0,gcTime:0}),q=Xt({queryKey:["auth-tableData",g,j,b],queryFn:()=>k5(g,j,b),staleTime:0,gcTime:0,enabled:!!g}),H=((re=X.data)==null?void 0:re.tables)||[],G=((U=q.data)==null?void 0:U.data)||[],te=((W=q.data)==null?void 0:W.columns)||[],ce=((V=q.data)==null?void 0:V.total)||0,de=$=>{y($),w(0)};return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",S]}),d.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[d.jsx(Bx,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),d.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."})]})]}),d.jsxs(bj,{value:a,onValueChange:r,children:[d.jsxs(xj,{children:[d.jsxs(Oo,{value:"settings",children:[d.jsx(pR,{className:"mr-2 h-4 w-4"}),"Settings"]}),d.jsx(Oo,{value:"query",children:"SQL Editor"}),d.jsx(Oo,{value:"tables",children:"Tables"})]}),d.jsx(zo,{value:"settings",className:"mt-4",children:d.jsxs(bt,{children:[d.jsxs(Mt,{children:[d.jsx(At,{children:"Auth Settings"}),d.jsx(Ca,{children:"Configure authentication settings for local development."})]}),d.jsx(xt,{children:C.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Ct,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?d.jsx(Y5,{settings:C.data,onUpdate:R,isUpdating:_.isPending}):d.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),d.jsx(zo,{value:"query",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsxs(bt,{children:[d.jsxs(Mt,{children:[d.jsx(At,{children:"SQL Query"}),d.jsx(Ca,{children:"Execute read-only SELECT queries against auth tables"})]}),d.jsxs(xt,{className:"space-y-4",children:[d.jsx("textarea",{value:i,onChange:$=>s($.target.value),onKeyDown:$=>{($.metaKey||$.ctrlKey)&&$.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"}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),d.jsxs(kt,{onClick:L,disabled:D.isPending||!i.trim(),children:[d.jsx(Yx,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&d.jsx(bt,{className:"border-destructive/50",children:d.jsx(xt,{className:"pt-6",children:d.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),u&&d.jsx(tw,{results:u.results,meta:u.meta,error:u.error})]}),d.jsx("div",{className:"hidden h-[500px] lg:block",children:d.jsx(q5,{onInsertText:T})})]})}),d.jsx(zo,{value:"tables",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[d.jsxs(bt,{className:"md:col-span-1",children:[d.jsxs(Mt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(At,{className:"text-base",children:"Tables"}),d.jsx(kt,{variant:"ghost",size:"icon",onClick:()=>X.refetch(),className:"h-8 w-8",children:d.jsx(cc,{className:"h-4 w-4"})})]}),d.jsx(xt,{children:X.isLoading?d.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):H.length===0?d.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-1",children:H.map($=>d.jsxs("button",{onClick:()=>de($.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===$.name?"bg-muted font-medium":""}`,children:[d.jsx(dc,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:$.name})]},$.name))})})]}),d.jsxs(bt,{className:"md:col-span-3",children:[d.jsxs(Mt,{children:[d.jsx(At,{children:g||"Select a Table"}),g&&d.jsxs(Ca,{children:[ce," total rows"]})]}),d.jsx(xt,{children:g?q.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Ct,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):G.length===0?d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"overflow-x-auto rounded-md border",children:d.jsxs(fc,{children:[d.jsx(hc,{children:d.jsx(yl,{children:te.map($=>d.jsx(rn,{className:"font-mono",children:$},$))})}),d.jsx(mc,{children:G.map(($,fe)=>d.jsx(yl,{children:te.map(A=>d.jsx(on,{className:"font-mono text-sm",children:B5($[A])},A))},fe))})]})}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",b+1," - ",Math.min(b+j,ce)," of ",ce]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(kt,{variant:"outline",size:"sm",disabled:b===0,onClick:()=>w(Math.max(0,b-j)),children:[d.jsx(Hx,{className:"mr-1 h-4 w-4"}),"Previous"]}),d.jsxs(kt,{variant:"outline",size:"sm",disabled:b+j>=ce,onClick:()=>w(b+j),children:["Next",d.jsx(ic,{className:"ml-1 h-4 w-4"})]})]})]})]}):d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function V5({column:n,onInsertText:a}){return d.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?d.jsx(Qx,{className:"h-3 w-3 shrink-0 text-yellow-500"}):d.jsx(qx,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),d.jsx("span",{className:"truncate font-mono",children:n.name}),d.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function K5({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return d.jsxs(zj,{open:r,onOpenChange:i,children:[d.jsxs(Lj,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?d.jsx(Ux,{className:"h-4 w-4 shrink-0"}):d.jsx(ic,{className:"h-4 w-4 shrink-0"}),d.jsx(dc,{className:"h-4 w-4 shrink-0 text-blue-500"}),d.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),d.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),d.jsx(Uj,{children:d.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>d.jsx(V5,{column:s,onInsertText:a},s.name))})})]})}function X5({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:s}=Xt({queryKey:["schema",n],queryFn:()=>C5(n),staleTime:3e4}),h=((r==null?void 0:r.tables)||[]).filter(m=>!m.name.startsWith("_litestream_"));return d.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[d.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[d.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),d.jsx(kt,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(),disabled:i,children:d.jsx(cc,{className:oe("h-4 w-4",i&&"animate-spin")})})]}),d.jsx(bw,{className:"flex-1",children:d.jsx("div",{className:"p-2",children:i?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):h.length===0?d.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-0.5",children:h.map(m=>d.jsx(K5,{table:m,onInsertText:a},m.name))})})}),d.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function $5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function Z5(){var G,te,ce,de;const{binding:n}=lc(),a=n||"",[r,i]=v.useState("query"),[s,u]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[y,b]=v.useState(null),[w,j]=v.useState(0),E=50,S=v.useCallback(I=>{u(ie=>ie+I)},[]),C=Hh({mutationFn:I=>j5(a,I),onSuccess:I=>{m(I),g(null)},onError:I=>{g(I instanceof Error?I.message:"Failed to execute query"),m(null)}}),_=()=>{s.trim()&&C.mutate(s)},R=Xt({queryKey:["tables",a],queryFn:()=>E5(a),staleTime:0,gcTime:0,enabled:!!a}),T=Xt({queryKey:["tableData",a,y,E,w],queryFn:()=>N5(a,y,E,w),staleTime:0,gcTime:0,enabled:!!a&&!!y}),D=((G=R.data)==null?void 0:G.tables)||[],L=((te=T.data)==null?void 0:te.data)||[],X=((ce=T.data)==null?void 0:ce.columns)||[],q=((de=T.data)==null?void 0:de.total)||0,H=I=>{b(I),j(0)};return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",a]}),d.jsxs(bj,{value:r,onValueChange:i,variant:"pill",children:[d.jsxs(xj,{children:[d.jsx(Oo,{value:"query",children:"SQL Editor"}),d.jsx(Oo,{value:"tables",children:"Tables"})]}),d.jsx(zo,{value:"query",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[d.jsxs("div",{className:"space-y-4",children:[d.jsxs(bt,{children:[d.jsxs(Mt,{children:[d.jsx(At,{children:"SQL Query"}),d.jsx(Ca,{children:"Execute SQL queries against your database"})]}),d.jsxs(xt,{className:"space-y-4",children:[d.jsx("textarea",{value:s,onChange:I=>u(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"}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),d.jsxs(kt,{onClick:_,disabled:C.isPending||!s.trim(),children:[d.jsx(Yx,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&d.jsx(bt,{className:"border-destructive/50",children:d.jsx(xt,{className:"pt-6",children:d.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&d.jsx(tw,{results:h.results,meta:h.meta,error:h.error})]}),d.jsx("div",{className:"hidden h-[500px] lg:block",children:d.jsx(X5,{bindingName:a,onInsertText:S})})]})}),d.jsx(zo,{value:"tables",className:"mt-4",children:d.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[d.jsxs(bt,{className:"md:col-span-1",children:[d.jsxs(Mt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(At,{className:"text-base",children:"Tables"}),d.jsx(kt,{variant:"ghost",size:"icon",onClick:()=>R.refetch(),className:"h-8 w-8",children:d.jsx(cc,{className:"h-4 w-4"})})]}),d.jsx(xt,{children:R.isLoading?d.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):D.length===0?d.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):d.jsx("div",{className:"space-y-1",children:D.map(I=>d.jsxs("button",{onClick:()=>H(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 ${y===I.name?"bg-muted font-medium":""}`,children:[d.jsx(dc,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{className:"truncate",children:I.name})]},I.name))})})]}),d.jsxs(bt,{className:"md:col-span-3",children:[d.jsxs(Mt,{children:[d.jsx(At,{children:y||"Select a Table"}),y&&d.jsxs(Ca,{children:[q," total rows"]})]}),d.jsx(xt,{children:y?T.isLoading?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Ct,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L.length===0?d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"overflow-x-auto rounded-md border",children:d.jsxs(fc,{children:[d.jsx(hc,{children:d.jsx(yl,{children:X.map(I=>d.jsx(rn,{className:"font-mono",children:I},I))})}),d.jsx(mc,{children:L.map((I,ie)=>d.jsx(yl,{children:X.map(re=>d.jsx(on,{className:"font-mono text-sm",children:$5(I[re])},re))},ie))})]})}),d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",w+1," - ",Math.min(w+E,q)," of ",q]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs(kt,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>j(Math.max(0,w-E)),children:[d.jsx(Hx,{className:"mr-1 h-4 w-4"}),"Previous"]}),d.jsxs(kt,{variant:"outline",size:"sm",disabled:w+E>=q,onClick:()=>j(w+E),children:["Next",d.jsx(ic,{className:"ml-1 h-4 w-4"})]})]})]})]}):d.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}const F5={PENDING:{variant:"default",icon:d.jsx(uc,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:d.jsx(Ct,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:d.jsx(oc,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:d.jsx(sc,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:d.jsx(K_,{className:"h-3 w-3"}),label:"Cancelled"}},P5={PENDING:{variant:"default",icon:d.jsx(uc,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:d.jsx(Ct,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:d.jsx(oc,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:d.jsx(sc,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:d.jsx(P_,{className:"h-3 w-3"}),label:"Dead Letter"}};function a2({status:n}){const a=F5[n];return a?d.jsx(Yu,{variant:a.variant,icon:a.icon,children:a.label}):d.jsx(Yu,{children:n})}function J5({status:n}){const a=P5[n];return a?d.jsx(Yu,{variant:a.variant,icon:a.icon,children:a.label}):d.jsx(Yu,{children:n})}function W5({metrics:n,isLoading:a}){return d.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[d.jsxs(bt,{children:[d.jsxs(Mt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(At,{className:"text-sm font-medium",children:"Pending"}),d.jsx(uc,{className:"h-4 w-4 text-muted-foreground"})]}),d.jsx(xt,{children:d.jsx("div",{className:"text-2xl font-bold",children:a?d.jsx(Ct,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.pending)??0})})]}),d.jsxs(bt,{children:[d.jsxs(Mt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(At,{className:"text-sm font-medium",children:"Processing"}),d.jsx(Ct,{className:"h-4 w-4 text-muted-foreground"})]}),d.jsx(xt,{children:d.jsx("div",{className:"text-2xl font-bold",children:a?d.jsx(Ct,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.processing)??0})})]}),d.jsxs(bt,{children:[d.jsxs(Mt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(At,{className:"text-sm font-medium",children:"Acknowledged"}),d.jsx(oc,{className:"h-4 w-4 text-green-500"})]}),d.jsx(xt,{children:d.jsx("div",{className:"text-2xl font-bold",children:a?d.jsx(Ct,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.acknowledged)??0})})]}),d.jsxs(bt,{children:[d.jsxs(Mt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(At,{className:"text-sm font-medium",children:"Failed"}),d.jsx(sc,{className:"h-4 w-4 text-red-500"})]}),d.jsx(xt,{children:d.jsx("div",{className:"text-2xl font-bold",children:a?d.jsx(Ct,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.failed)??0})})]}),d.jsxs(bt,{children:[d.jsxs(Mt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[d.jsx(At,{className:"text-sm font-medium",children:"Dead Letter"}),d.jsx(dR,{className:"h-4 w-4 text-orange-500"})]}),d.jsx(xt,{children:d.jsx("div",{className:"text-2xl font-bold",children:a?d.jsx(Ct,{className:"h-5 w-5 animate-spin"}):(n==null?void 0:n.deadLetter)??0})})]})]})}function I5({messages:n,isLoading:a}){return d.jsxs(bt,{children:[d.jsxs(Mt,{children:[d.jsx(At,{children:"Recent Messages"}),d.jsx(Ca,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),d.jsx(xt,{children:a?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Ct,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):n!=null&&n.length?d.jsxs(fc,{children:[d.jsx(hc,{children:d.jsxs(yl,{children:[d.jsx(rn,{children:"ID"}),d.jsx(rn,{children:"Status"}),d.jsx(rn,{children:"Payload"}),d.jsx(rn,{children:"Attempt"}),d.jsx(rn,{children:"Created"})]})}),d.jsx(mc,{children:n.map(r=>d.jsxs(yl,{children:[d.jsxs(on,{className:"font-mono text-xs",children:[r.id.slice(0,8),"..."]}),d.jsx(on,{children:d.jsx(J5,{status:r.status})}),d.jsx(on,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),d.jsx(on,{children:r.attempt}),d.jsx(on,{className:"text-xs text-muted-foreground",children:new Date(r.createdAt).toLocaleString()})]},r.id))})]}):d.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:"No messages in this queue"})})]})}function ez(){const{binding:n}=lc(),a=n||"",{data:r,isLoading:i}=Xt({queryKey:["queueMetrics",a],queryFn:()=>_5(a),enabled:!!a,refetchInterval:5e3}),{data:s,isLoading:u}=Xt({queryKey:["queueMessages",a],queryFn:()=>R5(a,10),enabled:!!a,refetchInterval:5e3});return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Queue: ",a]}),d.jsx(W5,{metrics:r==null?void 0:r.metrics,isLoading:i}),d.jsx(I5,{messages:s==null?void 0:s.messages,isLoading:u})]})})}function tz({status:n}){switch(n){case"COMPLETED":return d.jsx(oc,{className:"h-5 w-5 text-green-500"});case"RUNNING":return d.jsx(Ct,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return d.jsx(sc,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return d.jsx(uc,{className:"h-5 w-5 text-gray-400"})}}function nz(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 az({steps:n}){if(n.length===0)return d.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"No steps recorded for this execution"});const a=n.reduce((r,i)=>r+(i.durationMs||0),0);return d.jsxs("div",{className:"space-y-4",children:[a>0&&d.jsxs("div",{className:"mb-6",children:[d.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[d.jsx("span",{children:"Total Duration"}),d.jsx("span",{children:Do(a)})]}),d.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((r,i)=>{const s=r.durationMs?r.durationMs/a*100:0;return d.jsx("div",{className:oe(nz(r.status),"h-full transition-all",i>0&&"border-l border-background"),style:{width:`${s}%`},title:`${r.stepName}: ${Do(r.durationMs)}`},r.id)})})]}),d.jsx("div",{className:"relative",children:n.map((r,i)=>d.jsxs("div",{className:"relative pb-6 last:pb-0",children:[i<n.length-1&&d.jsx("div",{className:oe("absolute left-[9px] top-6 w-0.5 h-full -ml-px",r.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),d.jsxs("div",{className:"flex gap-4",children:[d.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:d.jsx(tz,{status:r.status})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("span",{className:"font-medium",children:r.stepName}),d.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",r.stepIndex+1,")"]})]}),d.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:Do(r.durationMs)})]}),r.errorMessage&&d.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"&&d.jsxs("details",{className:"mt-2",children:[d.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"View output"}),d.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r.output,null,2)})]}),d.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:new Date(r.createdAt).toLocaleString()})]})]})]},r.id))})]})}function lz(){const{binding:n,executionId:a}=lc(),r=n||"",i=a||"",{data:s,isLoading:u}=Xt({queryKey:["workflowExecution",r,i],queryFn:()=>M5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=s==null?void 0:s.execution,m=(s==null?void 0:s.steps)||[];return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsx(Ea,{to:`/workflows/${r}`,children:d.jsxs(kt,{variant:"ghost",size:"sm",children:[d.jsx(G_,{className:"mr-2 h-4 w-4"}),"Back"]})}),d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",i.slice(0,8),"..."]})]}),u?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Ct,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):h?d.jsxs(d.Fragment,{children:[d.jsxs(bt,{children:[d.jsx(Mt,{children:d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{children:[d.jsx(At,{children:"Execution Details"}),d.jsx(Ca,{children:h.startedAt?`Started ${new Date(h.startedAt).toLocaleString()}`:"Not started yet"})]}),d.jsx(a2,{status:h.status})]})}),d.jsxs(xt,{children:[d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),d.jsx("p",{className:"font-mono",children:Do(h.durationMs)})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),d.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),d.jsx("p",{className:"font-mono text-sm",children:new Date(h.createdAt).toLocaleString()})]}),h.completedAt&&d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),d.jsx("p",{className:"font-mono text-sm",children:new Date(h.completedAt).toLocaleString()})]})]}),h.errorMessage&&d.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})]})]}),d.jsxs(bt,{children:[d.jsxs(Mt,{children:[d.jsx(At,{children:"Steps"}),d.jsx(Ca,{children:"Workflow step execution timeline"})]}),d.jsx(xt,{children:d.jsx(az,{steps:m})})]})]}):d.jsx("div",{className:"text-center py-8 text-muted-foreground",children:"Execution not found"})]})})}function rz({executions:n,isLoading:a,bindingName:r}){return d.jsxs(bt,{children:[d.jsxs(Mt,{children:[d.jsx(At,{children:"Recent Executions"}),d.jsx(Ca,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),d.jsx(xt,{children:a?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Ct,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):n!=null&&n.length?d.jsxs(fc,{children:[d.jsx(hc,{children:d.jsxs(yl,{children:[d.jsx(rn,{children:"ID"}),d.jsx(rn,{children:"Status"}),d.jsx(rn,{children:"Steps"}),d.jsx(rn,{children:"Duration"}),d.jsx(rn,{children:"Started"}),d.jsx(rn,{})]})}),d.jsx(mc,{children:n.map(i=>d.jsxs(yl,{children:[d.jsxs(on,{className:"font-mono text-xs",children:[i.id.slice(0,8),"..."]}),d.jsx(on,{children:d.jsx(a2,{status:i.status})}),d.jsx(on,{children:d.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),d.jsx(on,{className:"text-sm",children:Do(i.durationMs)}),d.jsx(on,{className:"text-xs text-muted-foreground",children:i.startedAt?new Date(i.startedAt).toLocaleString():"-"}),d.jsx(on,{children:d.jsx(Ea,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):d.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:"No executions for this workflow"})})]})}function iz(){const{binding:n}=lc(),a=n||"",{data:r,isLoading:i}=Xt({queryKey:["workflowExecutions",a],queryFn:()=>T5(a,20),enabled:!!a,refetchInterval:5e3});return d.jsx("div",{className:"flex flex-col",children:d.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[d.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Workflow: ",a]}),d.jsx(rz,{executions:r==null?void 0:r.executions,isLoading:i,bindingName:a})]})})}function oz(){const n=Aa(),{data:a,isLoading:r}=Xt({queryKey:["config"],queryFn:Rp,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],s=a!=null&&a.queue?Object.keys(a.queue):[],u=a!=null&&a.workflow?Object.keys(a.workflow):[];return d.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[d.jsx("div",{className:"flex h-14 items-center border-b px-4",children:d.jsxs(Ea,{to:"/",className:"flex items-center gap-2 font-semibold",children:[d.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),d.jsx("span",{children:"Ploy Dev"})]})}),d.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?d.jsx("div",{className:"flex items-center justify-center py-8",children:d.jsx(Ct,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):d.jsxs("div",{className:"space-y-6",children:[i.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),d.jsx("div",{className:"space-y-1",children:i.map(h=>{const m=n.pathname===`/db/${h}`;return d.jsx(Ea,{to:`/db/${h}`,children:d.jsxs(kt,{variant:m?"secondary":"ghost",className:oe("w-full justify-start",m&&"bg-muted"),children:[d.jsx(nR,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),(a==null?void 0:a.auth)&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),d.jsx("div",{className:"space-y-1",children:d.jsx(Ea,{to:"/auth",children:d.jsxs(kt,{variant:n.pathname==="/auth"?"secondary":"ghost",className:oe("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[d.jsx(gR,{className:"mr-2 h-4 w-4"}),d.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),d.jsx(Bx,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),s.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),d.jsx("div",{className:"space-y-1",children:s.map(h=>{const m=n.pathname===`/queues/${h}`;return d.jsx(Ea,{to:`/queues/${h}`,children:d.jsxs(kt,{variant:m?"secondary":"ghost",className:oe("w-full justify-start",m&&"bg-muted"),children:[d.jsx(iR,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),u.length>0&&d.jsxs("div",{children:[d.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),d.jsx("div",{className:"space-y-1",children:u.map(h=>{const m=n.pathname.startsWith(`/workflows/${h}`);return d.jsx(Ea,{to:`/workflows/${h}`,children:d.jsxs(kt,{variant:m?"secondary":"ghost",className:oe("w-full justify-start",m&&"bg-muted"),children:[d.jsx(lR,{className:"mr-2 h-4 w-4"}),h]})},h)})})]}),i.length===0&&s.length===0&&u.length===0&&!(a!=null&&a.auth)&&d.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function sz(){const{data:n,isLoading:a}=Xt({queryKey:["config"],queryFn:Rp,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],s=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return d.jsx(wu,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return d.jsx(wu,{to:"/auth",replace:!0});if(i.length>0)return d.jsx(wu,{to:`/queues/${i[0]}`,replace:!0});if(s.length>0)return d.jsx(wu,{to:`/workflows/${s[0]}`,replace:!0})}return d.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[d.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),a?d.jsx(Ct,{className:"h-6 w-6 animate-spin text-muted-foreground"}):d.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function uz(){return d.jsxs("div",{className:"min-h-screen bg-background",children:[d.jsx(oz,{}),d.jsx("main",{className:"pl-64",children:d.jsx("div",{className:"container mx-auto px-6 py-4",children:d.jsxs(l_,{children:[d.jsx(Gl,{path:"/",element:d.jsx(sz,{})}),d.jsx(Gl,{path:"/db/:binding",element:d.jsx(Z5,{})}),d.jsx(Gl,{path:"/auth",element:d.jsx(G5,{})}),d.jsx(Gl,{path:"/queues/:binding",element:d.jsx(ez,{})}),d.jsx(Gl,{path:"/workflows/:binding",element:d.jsx(iz,{})}),d.jsx(Gl,{path:"/workflows/:binding/:executionId",element:d.jsx(lz,{})})]})})})]})}const cz=new VN({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});hC.createRoot(document.getElementById("root")).render(d.jsx(v.StrictMode,{children:d.jsx(PN,{client:cz,children:d.jsx(R_,{children:d.jsx(uz,{})})})}));