@meetploy/emulator 1.10.0 → 1.10.1
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.
- package/dist/bundler/bundler.js +20 -20
- package/dist/bundler/bundler.js.map +1 -1
- package/dist/dashboard-dist/assets/{main-B-euJxpr.css → main-5Kt9I_hM.css} +1 -1
- package/dist/dashboard-dist/assets/main-BFhQn9QT.js +354 -0
- package/dist/dashboard-dist/index.html +2 -2
- package/dist/emulator.d.ts +1 -1
- package/dist/emulator.js +11 -11
- package/dist/emulator.js.map +1 -1
- package/dist/runtime/{alarm-runtime.d.ts → timer-runtime.d.ts} +1 -1
- package/dist/runtime/{alarm-runtime.js → timer-runtime.js} +13 -13
- package/dist/runtime/timer-runtime.js.map +1 -0
- package/dist/services/auth-service.d.ts +2 -2
- package/dist/services/auth-service.js.map +1 -1
- package/dist/services/cache-service.d.ts +2 -2
- package/dist/services/cache-service.js.map +1 -1
- package/dist/services/cron-service.d.ts +2 -2
- package/dist/services/cron-service.js.map +1 -1
- package/dist/services/dashboard-routes.js +26 -26
- package/dist/services/db-service.d.ts +2 -2
- package/dist/services/db-service.js +1 -1
- package/dist/services/db-service.js.map +1 -1
- package/dist/services/fs-service.d.ts +2 -2
- package/dist/services/fs-service.js.map +1 -1
- package/dist/services/mock-server.js +6 -6
- package/dist/services/mock-server.js.map +1 -1
- package/dist/services/queue-service.d.ts +3 -3
- package/dist/services/queue-service.js.map +1 -1
- package/dist/services/state-service.d.ts +2 -2
- package/dist/services/state-service.js.map +1 -1
- package/dist/services/{alarm-service.d.ts → timer-service.d.ts} +8 -8
- package/dist/services/{alarm-service.js → timer-service.js} +32 -32
- package/dist/services/{alarm-service.js.map → timer-service.js.map} +1 -1
- package/dist/services/workflow-service.d.ts +3 -3
- package/dist/services/workflow-service.js.map +1 -1
- package/dist/utils/sqlite-db.d.ts +18 -0
- package/dist/utils/sqlite-db.js +66 -0
- package/dist/utils/sqlite-db.js.map +1 -0
- package/dist/utils/sqlite.d.ts +3 -3
- package/dist/utils/sqlite.js +15 -15
- package/dist/utils/sqlite.js.map +1 -1
- package/package.json +2 -4
- package/dist/dashboard-dist/assets/main-ChnbLsIt.js +0 -349
- package/dist/runtime/alarm-runtime.js.map +0 -1
- package/dist/services/workflow-service.spec.d.ts +0 -1
- package/dist/services/workflow-service.spec.js +0 -259
- package/dist/services/workflow-service.spec.js.map +0 -1
|
@@ -1,349 +0,0 @@
|
|
|
1
|
-
var A0=n=>{throw TypeError(n)};var uh=(n,a,r)=>a.has(n)||A0("Cannot "+r);var k=(n,a,r)=>(uh(n,a,"read from private field"),r?r.call(n):a.get(n)),be=(n,a,r)=>a.has(n)?A0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),se=(n,a,r,i)=>(uh(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),Te=(n,a,r)=>(uh(n,a,"access private method"),r);var Uu=(n,a,r,i)=>({set _(s){se(n,a,s,r)},get _(){return k(n,a,i)}});function hN(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const s in i)if(s!=="default"&&!(s in n)){const c=Object.getOwnPropertyDescriptor(i,s);c&&Object.defineProperty(n,s,c.get?c:{enumerable:!0,get:()=>i[s]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const c of s)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(s){const c={};return s.integrity&&(c.integrity=s.integrity),s.referrerPolicy&&(c.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?c.credentials="include":s.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(s){if(s.ep)return;s.ep=!0;const c=r(s);fetch(s.href,c)}})();function ob(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var ch={exports:{}},Bo={};/**
|
|
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 k0;function mN(){if(k0)return Bo;k0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,s,c){var h=null;if(c!==void 0&&(h=""+c),s.key!==void 0&&(h=""+s.key),"key"in s){c={};for(var m in s)m!=="key"&&(c[m]=s[m])}else c=s;return s=c.ref,{$$typeof:n,type:i,key:h,ref:s!==void 0?s:null,props:c}}return Bo.Fragment=a,Bo.jsx=r,Bo.jsxs=r,Bo}var D0;function pN(){return D0||(D0=1,ch.exports=mN()),ch.exports}var u=pN(),ki=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ur=typeof window>"u"||"Deno"in globalThis;function jn(){}function vN(n,a){return typeof n=="function"?n(a):n}function Oh(n){return typeof n=="number"&&n>=0&&n!==1/0}function sb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function ci(n,a){return typeof n=="function"?n(a):n}function zn(n,a){return typeof n=="function"?n(a):n}function O0(n,a){const{type:r="all",exact:i,fetchStatus:s,predicate:c,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==bm(h,a.options))return!1}else if(!Wo(a.queryKey,h))return!1}if(r!=="all"){const p=a.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||s&&s!==a.state.fetchStatus||c&&!c(a))}function z0(n,a){const{exact:r,status:i,predicate:s,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(r){if(cr(a.options.mutationKey)!==cr(c))return!1}else if(!Wo(a.options.mutationKey,c))return!1}return!(i&&a.state.status!==i||s&&!s(a))}function bm(n,a){return((a==null?void 0:a.queryKeyHashFn)||cr)(n)}function cr(n){return JSON.stringify(n,(a,r)=>zh(r)?Object.keys(r).sort().reduce((i,s)=>(i[s]=r[s],i),{}):r)}function Wo(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>Wo(n[r],a[r])):!1}function ub(n,a){if(n===a)return n;const r=L0(n)&&L0(a);if(r||zh(n)&&zh(a)){const i=r?n:Object.keys(n),s=i.length,c=r?a:Object.keys(a),h=c.length,m=r?[]:{};let p=0;for(let g=0;g<h;g++){const y=r?g:c[g];(!r&&i.includes(y)||r)&&n[y]===void 0&&a[y]===void 0?(m[y]=void 0,p++):(m[y]=ub(n[y],a[y]),m[y]===n[y]&&n[y]!==void 0&&p++)}return s===h&&p===s?n:m}return a}function nc(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const r in n)if(n[r]!==a[r])return!1;return!0}function L0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function zh(n){if(!U0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!U0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function U0(n){return Object.prototype.toString.call(n)==="[object Object]"}function gN(n){return new Promise(a=>{setTimeout(a,n)})}function Lh(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?ub(n,a):a}function yN(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function xN(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var wm=Symbol();function cb(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===wm?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var tr,vl,mi,Jx,bN=(Jx=class extends ki{constructor(){super();be(this,tr);be(this,vl);be(this,mi);se(this,mi,a=>{if(!ur&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){k(this,vl)||this.setEventListener(k(this,mi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,vl))==null||a.call(this),se(this,vl,void 0))}setEventListener(a){var r;se(this,mi,a),(r=k(this,vl))==null||r.call(this),se(this,vl,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){k(this,tr)!==a&&(se(this,tr,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof k(this,tr)=="boolean"?k(this,tr):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},tr=new WeakMap,vl=new WeakMap,mi=new WeakMap,Jx),Sm=new bN,pi,gl,vi,Wx,wN=(Wx=class extends ki{constructor(){super();be(this,pi,!0);be(this,gl);be(this,vi);se(this,vi,a=>{if(!ur&&window.addEventListener){const r=()=>a(!0),i=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){k(this,gl)||this.setEventListener(k(this,vi))}onUnsubscribe(){var a;this.hasListeners()||((a=k(this,gl))==null||a.call(this),se(this,gl,void 0))}setEventListener(a){var r;se(this,vi,a),(r=k(this,gl))==null||r.call(this),se(this,gl,a(this.setOnline.bind(this)))}setOnline(a){k(this,pi)!==a&&(se(this,pi,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return k(this,pi)}},pi=new WeakMap,gl=new WeakMap,vi=new WeakMap,Wx),ac=new wN;function Uh(){let n,a;const r=new Promise((s,c)=>{n=s,a=c});r.status="pending",r.catch(()=>{});function i(s){Object.assign(r,s),delete r.resolve,delete r.reject}return r.resolve=s=>{i({status:"fulfilled",value:s}),n(s)},r.reject=s=>{i({status:"rejected",reason:s}),a(s)},r}function SN(n){return Math.min(1e3*2**n,3e4)}function db(n){return(n??"online")==="online"?ac.isOnline():!0}var fb=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function dh(n){return n instanceof fb}function hb(n){let a=!1,r=0,i=!1,s;const c=Uh(),h=S=>{var C;i||(w(new fb(S)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},g=()=>Sm.isFocused()&&(n.networkMode==="always"||ac.isOnline())&&n.canRun(),y=()=>db(n.networkMode)&&n.canRun(),x=S=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,S),s==null||s(),c.resolve(S))},w=S=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,S),s==null||s(),c.reject(S))},j=()=>new Promise(S=>{var C;s=_=>{(i||g())&&S(_)},(C=n.onPause)==null||C.call(n)}).then(()=>{var S;s=void 0,i||(S=n.onContinue)==null||S.call(n)}),E=()=>{if(i)return;let S;const C=r===0?n.initialPromise:void 0;try{S=C??n.fn()}catch(_){S=Promise.reject(_)}Promise.resolve(S).then(x).catch(_=>{var K;if(i)return;const R=n.retry??(ur?0:3),T=n.retryDelay??SN,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++,(K=n.onFail)==null||K.call(n,r,_),gN(D).then(()=>g()?void 0:j()).then(()=>{a?w(_):E()})})};return{promise:c,cancel:h,continue:()=>(s==null||s(),c),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?E():j().then(E),c)}}var jN=n=>setTimeout(n,0);function EN(){let n=[],a=0,r=m=>{m()},i=m=>{m()},s=jN;const c=m=>{a?n.push(m):s(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&s(()=>{i(()=>{m.forEach(p=>{r(p)})})})};return{batch:m=>{let p;a++;try{p=m()}finally{a--,a||h()}return p},batchCalls:m=>(...p)=>{c(()=>{m(...p)})},schedule:c,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{s=m}}}var bt=EN(),nr,Ix,mb=(Ix=class{constructor(){be(this,nr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oh(this.gcTime)&&se(this,nr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(ur?1/0:300*1e3))}clearGcTimeout(){k(this,nr)&&(clearTimeout(k(this,nr)),se(this,nr,void 0))}},nr=new WeakMap,Ix),gi,yi,Sn,ar,Lt,ls,lr,Dn,Ca,eb,NN=(eb=class extends mb{constructor(a){super();be(this,Dn);be(this,gi);be(this,yi);be(this,Sn);be(this,ar);be(this,Lt);be(this,ls);be(this,lr);se(this,lr,!1),se(this,ls,a.defaultOptions),this.setOptions(a.options),this.observers=[],se(this,ar,a.client),se(this,Sn,k(this,ar).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,se(this,gi,CN(this.options)),this.state=a.state??k(this,gi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=k(this,Lt))==null?void 0:a.promise}setOptions(a){this.options={...k(this,ls),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&k(this,Sn).remove(this)}setData(a,r){const i=Lh(this.state.data,a,this.options);return Te(this,Dn,Ca).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,Dn,Ca).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,s;const r=(i=k(this,Lt))==null?void 0:i.promise;return(s=k(this,Lt))==null||s.cancel(a),r?r.then(jn).catch(jn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(k(this,gi))}isActive(){return this.observers.some(a=>zn(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===wm||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||!sb(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Lt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=k(this,Lt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),k(this,Sn).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(k(this,Lt)&&(k(this,lr)?k(this,Lt).cancel({revert:!0}):k(this,Lt).cancelRetry()),this.scheduleGc()),k(this,Sn).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Te(this,Dn,Ca).call(this,{type:"invalidate"})}fetch(a,r){var p,g,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(k(this,Lt))return k(this,Lt).continueRetry(),k(this,Lt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const x=this.observers.find(w=>w.options.queryFn);x&&this.setOptions(x.options)}const i=new AbortController,s=x=>{Object.defineProperty(x,"signal",{enumerable:!0,get:()=>(se(this,lr,!0),i.signal)})},c=()=>{const x=cb(this.options,r),w={client:k(this,ar),queryKey:this.queryKey,meta:this.meta};return s(w),se(this,lr,!1),this.options.persister?this.options.persister(x,w,this):x(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:k(this,ar),state:this.state,fetchFn:c};s(h),(p=this.options.behavior)==null||p.onFetch(h,this),se(this,yi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&Te(this,Dn,Ca).call(this,{type:"fetch",meta:(y=h.fetchOptions)==null?void 0:y.meta});const m=x=>{var w,j,E,S;dh(x)&&x.silent||Te(this,Dn,Ca).call(this,{type:"error",error:x}),dh(x)||((j=(w=k(this,Sn).config).onError)==null||j.call(w,x,this),(S=(E=k(this,Sn).config).onSettled)==null||S.call(E,this.state.data,x,this)),this.scheduleGc()};return se(this,Lt,hb({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:x=>{var w,j,E,S;if(x===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(x)}catch(C){m(C);return}(j=(w=k(this,Sn).config).onSuccess)==null||j.call(w,x,this),(S=(E=k(this,Sn).config).onSettled)==null||S.call(E,x,this.state.error,this),this.scheduleGc()},onError:m,onFail:(x,w)=>{Te(this,Dn,Ca).call(this,{type:"failed",failureCount:x,error:w})},onPause:()=>{Te(this,Dn,Ca).call(this,{type:"pause"})},onContinue:()=>{Te(this,Dn,Ca).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),k(this,Lt).start()}},gi=new WeakMap,yi=new WeakMap,Sn=new WeakMap,ar=new WeakMap,Lt=new WeakMap,ls=new WeakMap,lr=new WeakMap,Dn=new WeakSet,Ca=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,...pb(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 dh(s)&&s.revert&&k(this,yi)?{...k(this,yi),fetchStatus:"idle"}:{...i,error:s,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),bt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),k(this,Sn).notify({query:this,type:"updated",action:a})})},eb);function pb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:db(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function CN(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 Fn,tb,_N=(tb=class extends ki{constructor(a={}){super();be(this,Fn);this.config=a,se(this,Fn,new Map)}build(a,r,i){const s=r.queryKey,c=r.queryHash??bm(s,r);let h=this.get(c);return h||(h=new NN({client:a,queryKey:s,queryHash:c,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(s)}),this.add(h)),h}add(a){k(this,Fn).has(a.queryHash)||(k(this,Fn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=k(this,Fn).get(a.queryHash);r&&(a.destroy(),r===a&&k(this,Fn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){bt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return k(this,Fn).get(a)}getAll(){return[...k(this,Fn).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>O0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>O0(a,i)):r}notify(a){bt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){bt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){bt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Fn=new WeakMap,tb),Zn,qt,rr,Pn,ml,nb,RN=(nb=class extends mb{constructor(a){super();be(this,Pn);be(this,Zn);be(this,qt);be(this,rr);this.mutationId=a.mutationId,se(this,qt,a.mutationCache),se(this,Zn,[]),this.state=a.state||vb(),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,Zn).includes(a)||(k(this,Zn).push(a),this.clearGcTimeout(),k(this,qt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){se(this,Zn,k(this,Zn).filter(r=>r!==a)),this.scheduleGc(),k(this,qt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){k(this,Zn).length||(this.state.status==="pending"?this.scheduleGc():k(this,qt).remove(this))}continue(){var a;return((a=k(this,rr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var c,h,m,p,g,y,x,w,j,E,S,C,_,R,T,D,L,K,H,q;const r=()=>{Te(this,Pn,ml).call(this,{type:"continue"})};se(this,rr,hb({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(G,te)=>{Te(this,Pn,ml).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{Te(this,Pn,ml).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>k(this,qt).canRun(this)}));const i=this.state.status==="pending",s=!k(this,rr).canStart();try{if(i)r();else{Te(this,Pn,ml).call(this,{type:"pending",variables:a,isPaused:s}),await((h=(c=k(this,qt).config).onMutate)==null?void 0:h.call(c,a,this));const te=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,a));te!==this.state.context&&Te(this,Pn,ml).call(this,{type:"pending",context:te,variables:a,isPaused:s})}const G=await k(this,rr).start();return await((y=(g=k(this,qt).config).onSuccess)==null?void 0:y.call(g,G,a,this.state.context,this)),await((w=(x=this.options).onSuccess)==null?void 0:w.call(x,G,a,this.state.context)),await((E=(j=k(this,qt).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,Pn,ml).call(this,{type:"success",data:G}),G}catch(G){try{throw await((R=(_=k(this,qt).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((K=(L=k(this,qt).config).onSettled)==null?void 0:K.call(L,void 0,G,this.state.variables,this.state.context,this)),await((q=(H=this.options).onSettled)==null?void 0:q.call(H,void 0,G,a,this.state.context)),G}finally{Te(this,Pn,ml).call(this,{type:"error",error:G})}}finally{k(this,qt).runNext(this)}}},Zn=new WeakMap,qt=new WeakMap,rr=new WeakMap,Pn=new WeakSet,ml=function(a){const r=i=>{switch(a.type){case"failed":return{...i,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...i,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:a.error,failureCount:i.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),bt.batch(()=>{k(this,Zn).forEach(i=>{i.onMutationUpdate(a)}),k(this,qt).notify({mutation:this,type:"updated",action:a})})},nb);function vb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _a,On,rs,ab,TN=(ab=class extends ki{constructor(a={}){super();be(this,_a);be(this,On);be(this,rs);this.config=a,se(this,_a,new Set),se(this,On,new Map),se(this,rs,0)}build(a,r,i){const s=new RN({mutationCache:this,mutationId:++Uu(this,rs)._,options:a.defaultMutationOptions(r),state:i});return this.add(s),s}add(a){k(this,_a).add(a);const r=qu(a);if(typeof r=="string"){const i=k(this,On).get(r);i?i.push(a):k(this,On).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(k(this,_a).delete(a)){const r=qu(a);if(typeof r=="string"){const i=k(this,On).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,On).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=qu(a);if(typeof r=="string"){const i=k(this,On).get(r),s=i==null?void 0:i.find(c=>c.state.status==="pending");return!s||s===a}else return!0}runNext(a){var i;const r=qu(a);if(typeof r=="string"){const s=(i=k(this,On).get(r))==null?void 0:i.find(c=>c!==a&&c.state.isPaused);return(s==null?void 0:s.continue())??Promise.resolve()}else return Promise.resolve()}clear(){bt.batch(()=>{k(this,_a).forEach(a=>{this.notify({type:"removed",mutation:a})}),k(this,_a).clear(),k(this,On).clear()})}getAll(){return Array.from(k(this,_a))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>z0(r,i))}findAll(a={}){return this.getAll().filter(r=>z0(a,r))}notify(a){bt.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return bt.batch(()=>Promise.all(a.map(r=>r.continue().catch(jn))))}},_a=new WeakMap,On=new WeakMap,rs=new WeakMap,ab);function qu(n){var a;return(a=n.options.scope)==null?void 0:a.id}function q0(n){return{onFetch:(a,r)=>{var y,x,w,j,E;const i=a.options,s=(w=(x=(y=a.fetchOptions)==null?void 0:y.meta)==null?void 0:x.fetchMore)==null?void 0:w.direction,c=((j=a.state.data)==null?void 0:j.pages)||[],h=((E=a.state.data)==null?void 0:E.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let S=!1;const C=T=>{Object.defineProperty(T,"signal",{enumerable:!0,get:()=>(a.signal.aborted?S=!0:a.signal.addEventListener("abort",()=>{S=!0}),a.signal)})},_=cb(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 K={client:a.client,queryKey:a.queryKey,pageParam:D,direction:L?"backward":"forward",meta:a.options.meta};C(K);const H=await _(K),{maxPages:q}=a.options,G=L?xN:yN;return{pages:G(T.pages,H,q),pageParams:G(T.pageParams,D,q)}};if(s&&c.length){const T=s==="backward",D=T?MN:H0,L={pages:c,pageParams:h},K=D(i,L);m=await R(L,K,T)}else{const T=n??c.length;do{const D=p===0?h[0]??i.initialPageParam:H0(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 H0(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 MN(n,{pages:a,pageParams:r}){var i;return a.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,a[0],a,r[0],r):void 0}var ot,yl,xl,xi,bi,bl,wi,Si,lb,AN=(lb=class{constructor(n={}){be(this,ot);be(this,yl);be(this,xl);be(this,xi);be(this,bi);be(this,bl);be(this,wi);be(this,Si);se(this,ot,n.queryCache||new _N),se(this,yl,n.mutationCache||new TN),se(this,xl,n.defaultOptions||{}),se(this,xi,new Map),se(this,bi,new Map),se(this,bl,0)}mount(){Uu(this,bl)._++,k(this,bl)===1&&(se(this,wi,Sm.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onFocus())})),se(this,Si,ac.subscribe(async n=>{n&&(await this.resumePausedMutations(),k(this,ot).onOnline())})))}unmount(){var n,a;Uu(this,bl)._--,k(this,bl)===0&&((n=k(this,wi))==null||n.call(this),se(this,wi,void 0),(a=k(this,Si))==null||a.call(this),se(this,Si,void 0))}isFetching(n){return k(this,ot).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return k(this,yl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=k(this,ot).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(ci(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return k(this,ot).findAll(n).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(n,a,r){const i=this.defaultQueryOptions({queryKey:n}),s=k(this,ot).get(i.queryHash),c=s==null?void 0:s.state.data,h=vN(a,c);if(h!==void 0)return k(this,ot).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return bt.batch(()=>k(this,ot).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=k(this,ot).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=k(this,ot);bt.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=k(this,ot);return bt.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=bt.batch(()=>k(this,ot).findAll(n).map(s=>s.cancel(r)));return Promise.all(i).then(jn).catch(jn)}invalidateQueries(n,a={}){return bt.batch(()=>(k(this,ot).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},a)))}refetchQueries(n,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=bt.batch(()=>k(this,ot).findAll(n).filter(s=>!s.isDisabled()).map(s=>{let c=s.fetch(void 0,r);return r.throwOnError||(c=c.catch(jn)),s.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(jn)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=k(this,ot).build(this,a);return r.isStaleByTime(ci(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(jn).catch(jn)}fetchInfiniteQuery(n){return n.behavior=q0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(jn).catch(jn)}ensureInfiniteQueryData(n){return n.behavior=q0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return ac.isOnline()?k(this,yl).resumePausedMutations():Promise.resolve()}getQueryCache(){return k(this,ot)}getMutationCache(){return k(this,yl)}getDefaultOptions(){return k(this,xl)}setDefaultOptions(n){se(this,xl,n)}setQueryDefaults(n,a){k(this,xi).set(cr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...k(this,xi).values()],r={};return a.forEach(i=>{Wo(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){k(this,bi).set(cr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...k(this,bi).values()],r={};return a.forEach(i=>{Wo(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...k(this,xl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=bm(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===wm&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...k(this,xl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){k(this,ot).clear(),k(this,yl).clear()}},ot=new WeakMap,yl=new WeakMap,xl=new WeakMap,xi=new WeakMap,bi=new WeakMap,bl=new WeakMap,wi=new WeakMap,Si=new WeakMap,lb),Xt,Le,is,Ht,ir,ji,wl,Sl,os,Ei,Ni,or,sr,jl,Ci,Ge,Vo,qh,Hh,Bh,Qh,Yh,Gh,$h,gb,rb,kN=(rb=class extends ki{constructor(a,r){super();be(this,Ge);be(this,Xt);be(this,Le);be(this,is);be(this,Ht);be(this,ir);be(this,ji);be(this,wl);be(this,Sl);be(this,os);be(this,Ei);be(this,Ni);be(this,or);be(this,sr);be(this,jl);be(this,Ci,new Set);this.options=r,se(this,Xt,a),se(this,Sl,null),se(this,wl,Uh()),this.options.experimental_prefetchInRender||k(this,wl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(k(this,Le).addObserver(this),B0(k(this,Le),this.options)?Te(this,Ge,Vo).call(this):this.updateResult(),Te(this,Ge,Qh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Vh(k(this,Le),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Vh(k(this,Le),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Te(this,Ge,Yh).call(this),Te(this,Ge,Gh).call(this),k(this,Le).removeObserver(this)}setOptions(a){const r=this.options,i=k(this,Le);if(this.options=k(this,Xt).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof zn(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,Ge,$h).call(this),k(this,Le).setOptions(this.options),r._defaulted&&!nc(this.options,r)&&k(this,Xt).getQueryCache().notify({type:"observerOptionsUpdated",query:k(this,Le),observer:this});const s=this.hasListeners();s&&Q0(k(this,Le),i,this.options,r)&&Te(this,Ge,Vo).call(this),this.updateResult(),s&&(k(this,Le)!==i||zn(this.options.enabled,k(this,Le))!==zn(r.enabled,k(this,Le))||ci(this.options.staleTime,k(this,Le))!==ci(r.staleTime,k(this,Le)))&&Te(this,Ge,qh).call(this);const c=Te(this,Ge,Hh).call(this);s&&(k(this,Le)!==i||zn(this.options.enabled,k(this,Le))!==zn(r.enabled,k(this,Le))||c!==k(this,jl))&&Te(this,Ge,Bh).call(this,c)}getOptimisticResult(a){const r=k(this,Xt).getQueryCache().build(k(this,Xt),a),i=this.createResult(r,a);return ON(this,i)&&(se(this,Ht,i),se(this,ji,this.options),se(this,ir,k(this,Le).state)),i}getCurrentResult(){return k(this,Ht)}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,Ci).add(a)}getCurrentQuery(){return k(this,Le)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=k(this,Xt).defaultQueryOptions(a),i=k(this,Xt).getQueryCache().build(k(this,Xt),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return Te(this,Ge,Vo).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),k(this,Ht)))}createResult(a,r){var G;const i=k(this,Le),s=this.options,c=k(this,Ht),h=k(this,ir),m=k(this,ji),g=a!==i?a.state:k(this,is),{state:y}=a;let x={...y},w=!1,j;if(r._optimisticResults){const te=this.hasListeners(),ue=!te&&B0(a,r),ce=te&&Q0(a,i,r,s);(ue||ce)&&(x={...x,...pb(y.data,a.options)}),r._optimisticResults==="isRestoring"&&(x.fetchStatus="idle")}let{error:E,errorUpdatedAt:S,status:C}=x;j=x.data;let _=!1;if(r.placeholderData!==void 0&&j===void 0&&C==="pending"){let te;c!=null&&c.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(te=c.data,_=!0):te=typeof r.placeholderData=="function"?r.placeholderData((G=k(this,Ni))==null?void 0:G.state.data,k(this,Ni)):r.placeholderData,te!==void 0&&(C="success",j=Lh(c==null?void 0:c.data,te,r),w=!0)}if(r.select&&j!==void 0&&!_)if(c&&j===(h==null?void 0:h.data)&&r.select===k(this,os))j=k(this,Ei);else try{se(this,os,r.select),j=r.select(j),j=Lh(c==null?void 0:c.data,j,r),se(this,Ei,j),se(this,Sl,null)}catch(te){se(this,Sl,te)}k(this,Sl)&&(E=k(this,Sl),j=k(this,Ei),S=Date.now(),C="error");const R=x.fetchStatus==="fetching",T=C==="pending",D=C==="error",L=T&&R,K=j!==void 0,q={status:C,fetchStatus:x.fetchStatus,isPending:T,isSuccess:C==="success",isError:D,isInitialLoading:L,isLoading:L,data:j,dataUpdatedAt:x.dataUpdatedAt,error:E,errorUpdatedAt:S,failureCount:x.fetchFailureCount,failureReason:x.fetchFailureReason,errorUpdateCount:x.errorUpdateCount,isFetched:x.dataUpdateCount>0||x.errorUpdateCount>0,isFetchedAfterMount:x.dataUpdateCount>g.dataUpdateCount||x.errorUpdateCount>g.errorUpdateCount,isFetching:R,isRefetching:R&&!T,isLoadingError:D&&!K,isPaused:x.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:D&&K,isStale:jm(a,r),refetch:this.refetch,promise:k(this,wl)};if(this.options.experimental_prefetchInRender){const te=I=>{q.status==="error"?I.reject(q.error):q.data!==void 0&&I.resolve(q.data)},ue=()=>{const I=se(this,wl,q.promise=Uh());te(I)},ce=k(this,wl);switch(ce.status){case"pending":a.queryHash===i.queryHash&&te(ce);break;case"fulfilled":(q.status==="error"||q.data!==ce.value)&&ue();break;case"rejected":(q.status!=="error"||q.error!==ce.reason)&&ue();break}}return q}updateResult(){const a=k(this,Ht),r=this.createResult(k(this,Le),this.options);if(se(this,ir,k(this,Le).state),se(this,ji,this.options),k(this,ir).data!==void 0&&se(this,Ni,k(this,Le)),nc(r,a))return;se(this,Ht,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:s}=this.options,c=typeof s=="function"?s():s;if(c==="all"||!c&&!k(this,Ci).size)return!0;const h=new Set(c??k(this,Ci));return this.options.throwOnError&&h.add("error"),Object.keys(k(this,Ht)).some(m=>{const p=m;return k(this,Ht)[p]!==a[p]&&h.has(p)})};Te(this,Ge,gb).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Te(this,Ge,Qh).call(this)}},Xt=new WeakMap,Le=new WeakMap,is=new WeakMap,Ht=new WeakMap,ir=new WeakMap,ji=new WeakMap,wl=new WeakMap,Sl=new WeakMap,os=new WeakMap,Ei=new WeakMap,Ni=new WeakMap,or=new WeakMap,sr=new WeakMap,jl=new WeakMap,Ci=new WeakMap,Ge=new WeakSet,Vo=function(a){Te(this,Ge,$h).call(this);let r=k(this,Le).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(jn)),r},qh=function(){Te(this,Ge,Yh).call(this);const a=ci(this.options.staleTime,k(this,Le));if(ur||k(this,Ht).isStale||!Oh(a))return;const i=sb(k(this,Ht).dataUpdatedAt,a)+1;se(this,or,setTimeout(()=>{k(this,Ht).isStale||this.updateResult()},i))},Hh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(k(this,Le)):this.options.refetchInterval)??!1},Bh=function(a){Te(this,Ge,Gh).call(this),se(this,jl,a),!(ur||zn(this.options.enabled,k(this,Le))===!1||!Oh(k(this,jl))||k(this,jl)===0)&&se(this,sr,setInterval(()=>{(this.options.refetchIntervalInBackground||Sm.isFocused())&&Te(this,Ge,Vo).call(this)},k(this,jl)))},Qh=function(){Te(this,Ge,qh).call(this),Te(this,Ge,Bh).call(this,Te(this,Ge,Hh).call(this))},Yh=function(){k(this,or)&&(clearTimeout(k(this,or)),se(this,or,void 0))},Gh=function(){k(this,sr)&&(clearInterval(k(this,sr)),se(this,sr,void 0))},$h=function(){const a=k(this,Xt).getQueryCache().build(k(this,Xt),this.options);if(a===k(this,Le))return;const r=k(this,Le);se(this,Le,a),se(this,is,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},gb=function(a){bt.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(k(this,Ht))}),k(this,Xt).getQueryCache().notify({query:k(this,Le),type:"observerResultsUpdated"})})},rb);function DN(n,a){return zn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function B0(n,a){return DN(n,a)||n.state.data!==void 0&&Vh(n,a,a.refetchOnMount)}function Vh(n,a,r){if(zn(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&jm(n,a)}return!1}function Q0(n,a,r,i){return(n!==a||zn(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&jm(n,r)}function jm(n,a){return zn(a.enabled,n)!==!1&&n.isStaleByTime(ci(a.staleTime,n))}function ON(n,a){return!nc(n.getCurrentResult(),a)}var El,Nl,Ft,Ra,Aa,Zu,Kh,ib,zN=(ib=class extends ki{constructor(r,i){super();be(this,Aa);be(this,El);be(this,Nl);be(this,Ft);be(this,Ra);se(this,El,r),this.setOptions(i),this.bindMethods(),Te(this,Aa,Zu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var s;const i=this.options;this.options=k(this,El).defaultMutationOptions(r),nc(this.options,i)||k(this,El).getMutationCache().notify({type:"observerOptionsUpdated",mutation:k(this,Ft),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&cr(i.mutationKey)!==cr(this.options.mutationKey)?this.reset():((s=k(this,Ft))==null?void 0:s.state.status)==="pending"&&k(this,Ft).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=k(this,Ft))==null||r.removeObserver(this)}onMutationUpdate(r){Te(this,Aa,Zu).call(this),Te(this,Aa,Kh).call(this,r)}getCurrentResult(){return k(this,Nl)}reset(){var r;(r=k(this,Ft))==null||r.removeObserver(this),se(this,Ft,void 0),Te(this,Aa,Zu).call(this),Te(this,Aa,Kh).call(this)}mutate(r,i){var s;return se(this,Ra,i),(s=k(this,Ft))==null||s.removeObserver(this),se(this,Ft,k(this,El).getMutationCache().build(k(this,El),this.options)),k(this,Ft).addObserver(this),k(this,Ft).execute(r)}},El=new WeakMap,Nl=new WeakMap,Ft=new WeakMap,Ra=new WeakMap,Aa=new WeakSet,Zu=function(){var i;const r=((i=k(this,Ft))==null?void 0:i.state)??vb();se(this,Nl,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Kh=function(r){bt.batch(()=>{var i,s,c,h,m,p,g,y;if(k(this,Ra)&&this.hasListeners()){const x=k(this,Nl).variables,w=k(this,Nl).context;(r==null?void 0:r.type)==="success"?((s=(i=k(this,Ra)).onSuccess)==null||s.call(i,r.data,x,w),(h=(c=k(this,Ra)).onSettled)==null||h.call(c,r.data,null,x,w)):(r==null?void 0:r.type)==="error"&&((p=(m=k(this,Ra)).onError)==null||p.call(m,r.error,x,w),(y=(g=k(this,Ra)).onSettled)==null||y.call(g,void 0,r.error,x,w))}this.listeners.forEach(x=>{x(k(this,Nl))})})},ib),fh={exports:{}},Ce={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var Y0;function LN(){if(Y0)return Ce;Y0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),w=Symbol.iterator;function j(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function _(A,F,ee){this.props=A,this.context=F,this.refs=C,this.updater=ee||E}_.prototype.isReactComponent={},_.prototype.setState=function(A,F){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,F,"setState")},_.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function R(){}R.prototype=_.prototype;function T(A,F,ee){this.props=A,this.context=F,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 K(){}var H={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function G(A,F,ee){var le=ee.ref;return{$$typeof:n,type:A,key:F,ref:le!==void 0?le:null,props:ee}}function te(A,F){return G(A.type,F,A.props)}function ue(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function ce(A){var F={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(ee){return F[ee]})}var I=/\/+/g;function ie(A,F){return typeof A=="object"&&A!==null&&A.key!=null?ce(""+A.key):F.toString(36)}function re(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(K,K):(A.status="pending",A.then(function(F){A.status==="pending"&&(A.status="fulfilled",A.value=F)},function(F){A.status==="pending"&&(A.status="rejected",A.reason=F)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function U(A,F,ee,le,ve){var 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),F,ee,le,ve)}}if(ne)return ve=ve(A),ne=le===""?"."+ie(A,0):le,L(ve)?(ee="",ne!=null&&(ee=ne.replace(I,"$&/")+"/"),U(ve,F,ee,"",function(Ne){return Ne})):ve!=null&&(ue(ve)&&(ve=te(ve,ee+(ve.key==null||A&&A.key===ve.key?"":(""+ve.key).replace(I,"$&/")+"/")+ne)),F.push(ve)),1;ne=0;var Ee=le===""?".":le+":";if(L(A))for(var ye=0;ye<A.length;ye++)le=A[ye],je=Ee+ie(le,ye),ne+=U(le,F,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,F,ee,je,ve);else if(je==="object"){if(typeof A.then=="function")return U(re(A),F,ee,le,ve);throw F=String(A),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ne}function W(A,F,ee){if(A==null)return A;var le=[],ve=0;return U(A,le,"","",function(je){return F.call(ee,je,ve++)}),le}function $(A){if(A._status===-1){var F=A._result;F=F(),F.then(function(ee){(A._status===0||A._status===-1)&&(A._status=1,A._result=ee)},function(ee){(A._status===0||A._status===-1)&&(A._status=2,A._result=ee)}),A._status===-1&&(A._status=0,A._result=F)}if(A._status===1)return A._result.default;throw A._result}var X=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},de={map:W,forEach:function(A,F,ee){W(A,function(){F.apply(this,arguments)},ee)},count:function(A){var F=0;return W(A,function(){F++}),F},toArray:function(A){return W(A,function(F){return F})||[]},only:function(A){if(!ue(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=x,Ce.Children=de,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=H,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return H.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,F,ee){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var le=S({},A.props),ve=A.key;if(F!=null)for(je in F.key!==void 0&&(ve=""+F.key),F)!q.call(F,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&F.ref===void 0||(le[je]=F[je]);var je=arguments.length-2;if(je===1)le.children=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:c,_context:A},A},Ce.createElement=function(A,F,ee){var le,ve={},je=null;if(F!=null)for(le in F.key!==void 0&&(je=""+F.key),F)q.call(F,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=F[le]);var ne=arguments.length-2;if(ne===1)ve.children=ee;else if(1<ne){for(var Ee=Array(ne),ye=0;ye<ne;ye++)Ee[ye]=arguments[ye+2];ve.children=Ee}if(A&&A.defaultProps)for(le in ne=A.defaultProps,ne)ve[le]===void 0&&(ve[le]=ne[le]);return G(A,je,ve)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:m,render:A}},Ce.isValidElement=ue,Ce.lazy=function(A){return{$$typeof:y,_payload:{_status:-1,_result:A},_init:$}},Ce.memo=function(A,F){return{$$typeof:g,type:A,compare:F===void 0?null:F}},Ce.startTransition=function(A){var F=H.T,ee={};H.T=ee;try{var le=A(),ve=H.S;ve!==null&&ve(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(K,X)}catch(je){X(je)}finally{F!==null&&ee.types!==null&&(F.types=ee.types),H.T=F}},Ce.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ce.use=function(A){return H.H.use(A)},Ce.useActionState=function(A,F,ee){return H.H.useActionState(A,F,ee)},Ce.useCallback=function(A,F){return H.H.useCallback(A,F)},Ce.useContext=function(A){return H.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,F){return H.H.useDeferredValue(A,F)},Ce.useEffect=function(A,F){return H.H.useEffect(A,F)},Ce.useEffectEvent=function(A){return H.H.useEffectEvent(A)},Ce.useId=function(){return H.H.useId()},Ce.useImperativeHandle=function(A,F,ee){return H.H.useImperativeHandle(A,F,ee)},Ce.useInsertionEffect=function(A,F){return H.H.useInsertionEffect(A,F)},Ce.useLayoutEffect=function(A,F){return H.H.useLayoutEffect(A,F)},Ce.useMemo=function(A,F){return H.H.useMemo(A,F)},Ce.useOptimistic=function(A,F){return H.H.useOptimistic(A,F)},Ce.useReducer=function(A,F,ee){return H.H.useReducer(A,F,ee)},Ce.useRef=function(A){return H.H.useRef(A)},Ce.useState=function(A){return H.H.useState(A)},Ce.useSyncExternalStore=function(A,F,ee){return H.H.useSyncExternalStore(A,F,ee)},Ce.useTransition=function(){return H.H.useTransition()},Ce.version="19.2.3",Ce}var G0;function Em(){return G0||(G0=1,fh.exports=LN()),fh.exports}var v=Em();const st=ob(v),yb=hN({__proto__:null,default:st},[v]);var xb=v.createContext(void 0),Nm=n=>{const a=v.useContext(xb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},UN=({client:n,children:a})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(xb.Provider,{value:n,children:a})),bb=v.createContext(!1),qN=()=>v.useContext(bb);bb.Provider;function HN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var BN=v.createContext(HN()),QN=()=>v.useContext(BN);function wb(n,a){return typeof n=="function"?n(...a):!!n}function Xh(){}var YN=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},GN=n=>{v.useEffect(()=>{n.clearReset()},[n])},$N=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:s})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(s&&n.data===void 0||wb(r,[n.error,i])),VN=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)))},KN=(n,a)=>n.isLoading&&n.isFetching&&!a,XN=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,$0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function FN(n,a,r){var x,w,j,E,S;const i=Nm(),s=qN(),c=QN(),h=i.defaultQueryOptions(n);(w=(x=i.getDefaultOptions().queries)==null?void 0:x._experimental_beforeQuery)==null||w.call(x,h),h._optimisticResults=s?"isRestoring":"optimistic",VN(h),YN(h,c),GN(c);const m=!i.getQueryCache().get(h.queryHash),[p]=v.useState(()=>new a(i,h)),g=p.getOptimisticResult(h),y=!s&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(C=>{const _=y?p.subscribe(bt.batchCalls(C)):Xh;return p.updateResult(),_},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),XN(h,g))throw $0(h,p,c);if($N({result:g,errorResetBoundary:c,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((E=(j=i.getDefaultOptions().queries)==null?void 0:j._experimental_afterQuery)==null||E.call(j,h,g),h.experimental_prefetchInRender&&!ur&&KN(g,s)){const C=m?$0(h,p,c):(S=i.getQueryCache().get(h.queryHash))==null?void 0:S.promise;C==null||C.catch(Xh).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function vt(n,a){return FN(n,kN)}function Fh(n,a){const r=Nm(),[i]=v.useState(()=>new zN(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const s=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(bt.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=v.useCallback((h,m)=>{i.mutate(h,m).catch(Xh)},[i]);if(s.error&&wb(i.options.throwOnError,[s.error]))throw s.error;return{...s,mutate:c,mutateAsync:s.mutate}}var hh={exports:{}},Qo={},mh={exports:{}},ph={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var V0;function ZN(){return V0||(V0=1,(function(n){function a(U,W){var $=U.length;U.push(W);e:for(;0<$;){var X=$-1>>>1,de=U[X];if(0<s(de,W))U[X]=W,U[$]=de,$=X;else break e}}function r(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var W=U[0],$=U.pop();if($!==W){U[0]=$;e:for(var X=0,de=U.length,A=de>>>1;X<A;){var F=2*(X+1)-1,ee=U[F],le=F+1,ve=U[le];if(0>s(ee,$))le<de&&0>s(ve,ee)?(U[X]=ve,U[le]=$,X=le):(U[X]=ee,U[F]=$,X=F);else if(le<de&&0>s(ve,$))U[X]=ve,U[le]=$,X=le;else break e}}return W}function s(U,W){var $=U.sortIndex-W.sortIndex;return $!==0?$:U.id-W.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],y=1,x=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,K||(K=!0,ce());else{var W=r(g);W!==null&&re(L,W.startTime-U)}}var K=!1,H=-1,q=5,G=-1;function te(){return C?!0:!(n.unstable_now()-G<q)}function ue(){if(C=!1,K){var U=n.unstable_now();G=U;var W=!0;try{e:{E=!1,S&&(S=!1,R(H),H=-1),j=!0;var $=w;try{t:{for(D(U),x=r(p);x!==null&&!(x.expirationTime>U&&te());){var X=x.callback;if(typeof X=="function"){x.callback=null,w=x.priorityLevel;var de=X(x.expirationTime<=U);if(U=n.unstable_now(),typeof de=="function"){x.callback=de,D(U),W=!0;break t}x===r(p)&&i(p),D(U)}else i(p);x=r(p)}if(x!==null)W=!0;else{var A=r(g);A!==null&&re(L,A.startTime-U),W=!1}}break e}finally{x=null,w=$,j=!1}W=void 0}}finally{W?ce():K=!1}}}var ce;if(typeof T=="function")ce=function(){T(ue)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,ie=I.port2;I.port1.onmessage=ue,ce=function(){ie.postMessage(null)}}else ce=function(){_(ue,0)};function re(U,W){H=_(function(){U(n.unstable_now())},W)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(U){U.callback=null},n.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<U?Math.floor(1e3/U):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(U){switch(w){case 1:case 2:case 3:var W=3;break;default:W=w}var $=w;w=W;try{return U()}finally{w=$}},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 $=w;w=U;try{return W()}finally{w=$}},n.unstable_scheduleCallback=function(U,W,$){var X=n.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?X+$:X):$=X,U){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=$+de,U={id:y++,callback:W,priorityLevel:U,startTime:$,expirationTime:de,sortIndex:-1},$>X?(U.sortIndex=$,a(g,U),r(p)===null&&U===r(g)&&(S?(R(H),H=-1):S=!0,re(L,$-X))):(U.sortIndex=de,a(p,U),E||j||(E=!0,K||(K=!0,ce()))),U},n.unstable_shouldYield=te,n.unstable_wrapCallback=function(U){var W=w;return function(){var $=w;w=W;try{return U.apply(this,arguments)}finally{w=$}}}})(ph)),ph}var K0;function PN(){return K0||(K0=1,mh.exports=ZN()),mh.exports}var vh={exports:{}},zt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var X0;function JN(){if(X0)return zt;X0=1;var n=Em();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},s=Symbol.for("react.portal");function c(p,g,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:x==null?null:""+x,children:p,containerInfo:g,implementation:y}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,zt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return c(p,g,null,y)},zt.flushSync=function(p){var g=h.T,y=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=g,i.p=y,i.d.f()}},zt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},zt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},zt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,x=m(y,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:w,fetchPriority:j}):y==="script"&&i.d.X(p,{crossOrigin:x,integrity:w,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},zt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},zt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,x=m(y,g.crossOrigin);i.d.L(p,y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},zt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},zt.requestFormReset=function(p){i.d.r(p)},zt.unstable_batchedUpdates=function(p,g){return p(g)},zt.useFormState=function(p,g,y){return h.H.useFormState(p,g,y)},zt.useFormStatus=function(){return h.H.useHostTransitionStatus()},zt.version="19.2.3",zt}var F0;function Sb(){if(F0)return vh.exports;F0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),vh.exports=JN(),vh.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var Z0;function WN(){if(Z0)return Qo;Z0=1;var n=PN(),a=Em(),r=Sb();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t!==e?null:e}for(var l=e,o=t;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(o=d.return,o!==null){l=o;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return p(d),e;if(f===o)return p(d),t;f=f.sibling}throw Error(i(188))}if(l.return!==o.return)l=d,o=f;else{for(var b=!1,N=d.child;N;){if(N===l){b=!0,l=d,o=f;break}if(N===o){b=!0,o=d,l=f;break}N=N.sibling}if(!b){for(N=f.child;N;){if(N===l){b=!0,l=f,o=d;break}if(N===o){b=!0,o=f,l=d;break}N=N.sibling}if(!b)throw Error(i(189))}}if(l.alternate!==o)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?e:t}function y(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=y(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,w=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),R=Symbol.for("react.consumer"),T=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var I=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===I?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case _:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case K:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case 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 H:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var re=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},X=[],de=-1;function A(e){return{current:e}}function F(e){0>de||(e.current=X[de],X[de]=null,de--)}function ee(e,t){de++,X[de]=e.current,e.current=t}var le=A(null),ve=A(null),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)?e0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=e0(t),e=t0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(le),ee(le,e)}function ye(){F(le),F(ve),F(je)}function Ne(e){e.memoizedState!==null&&ee(ne,e);var t=le.current,l=t0(t,e.type);t!==l&&(ee(ve,e),ee(le,l))}function He(e){ve.current===e&&(F(le),F(ve)),ne.current===e&&(F(ne),Lo._currentValue=$)}var $e,Ot;function Pt(e){if($e===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);$e=t&&t[1]||"",Ot=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+$e+e+Ot}var ra=!1;function ia(e,t){if(!e||ra)return"";ra=!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(V){var Y=V}Reflect.construct(e,[],J)}else{try{J.call()}catch(V){Y=V}e.call(J.prototype)}}else{try{throw Error()}catch(V){Y=V}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(V){if(V&&Y&&typeof V.stack=="string")return[V.stack,Y.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=o.DetermineComponentFrameRoot(),b=f[0],N=f[1];if(b&&N){var M=b.split(`
|
|
44
|
-
`),Q=N.split(`
|
|
45
|
-
`);for(d=o=0;o<M.length&&!M[o].includes("DetermineComponentFrameRoot");)o++;for(;d<Q.length&&!Q[d].includes("DetermineComponentFrameRoot");)d++;if(o===M.length||d===Q.length)for(o=M.length-1,d=Q.length-1;1<=o&&0<=d&&M[o]!==Q[d];)d--;for(;1<=o&&0<=d;o--,d--)if(M[o]!==Q[d]){if(o!==1||d!==1)do if(o--,d--,0>d||M[o]!==Q[d]){var Z=`
|
|
46
|
-
`+M[o].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=o&&0<=d);break}}}finally{ra=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Pt(l):""}function Xc(e,t){switch(e.tag){case 26:case 27:case 5:return Pt(e.type);case 16:return Pt("Lazy");case 13:return e.child!==t&&t!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return ia(e.type,!1);case 11:return ia(e.type.render,!1);case 1:return ia(e.type,!0);case 31:return Pt("Activity");default:return""}}function xs(e){try{var t="",l=null;do t+=Xc(e,l),l=e,e=e.return;while(e);return t}catch(o){return`
|
|
47
|
-
Error generating stack: `+o.message+`
|
|
48
|
-
`+o.stack}}var Ba=Object.prototype.hasOwnProperty,Fc=n.unstable_scheduleCallback,Zc=n.unstable_cancelCallback,Vj=n.unstable_shouldYield,Kj=n.unstable_requestPaint,Jt=n.unstable_now,Xj=n.unstable_getCurrentPriorityLevel,kp=n.unstable_ImmediatePriority,Dp=n.unstable_UserBlockingPriority,bs=n.unstable_NormalPriority,Fj=n.unstable_LowPriority,Op=n.unstable_IdlePriority,Zj=n.log,Pj=n.unstable_setDisableYieldValue,Xi=null,Wt=null;function Qa(e){if(typeof Zj=="function"&&Pj(e),Wt&&typeof Wt.setStrictMode=="function")try{Wt.setStrictMode(Xi,e)}catch{}}var It=Math.clz32?Math.clz32:Ij,Jj=Math.log,Wj=Math.LN2;function Ij(e){return e>>>=0,e===0?32:31-(Jj(e)/Wj|0)|0}var ws=256,Ss=262144,js=4194304;function Ol(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Es(e,t,l){var o=e.pendingLanes;if(o===0)return 0;var d=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var N=o&134217727;return N!==0?(o=N&~f,o!==0?d=Ol(o):(b&=N,b!==0?d=Ol(b):l||(l=N&~e,l!==0&&(d=Ol(l))))):(N=o&~f,N!==0?d=Ol(N):b!==0?d=Ol(b):l||(l=o&~e,l!==0&&(d=Ol(l)))),d===0?0:t!==0&&t!==d&&(t&f)===0&&(f=d&-d,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:d}function Fi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function e2(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 zp(){var e=js;return js<<=1,(js&62914560)===0&&(js=4194304),e}function Pc(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Zi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function t2(e,t,l,o,d,f){var b=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var N=e.entanglements,M=e.expirationTimes,Q=e.hiddenUpdates;for(l=b&~l;0<l;){var Z=31-It(l),J=1<<Z;N[Z]=0,M[Z]=-1;var Y=Q[Z];if(Y!==null)for(Q[Z]=null,Z=0;Z<Y.length;Z++){var V=Y[Z];V!==null&&(V.lane&=-536870913)}l&=~J}o!==0&&Lp(e,o,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(b&~t))}function Lp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-It(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|l&261930}function Up(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var o=31-It(l),d=1<<o;d&t|e[o]&t&&(e[o]|=t),l&=~d}}function qp(e,t){var l=t&-t;return l=(l&42)!==0?1:Jc(l),(l&(e.suspendedLanes|t))!==0?0:l}function Jc(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Wc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Hp(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:E0(e.type))}function Bp(e,t){var l=W.p;try{return W.p=e,t()}finally{W.p=l}}var Ya=Math.random().toString(36).slice(2),_t="__reactFiber$"+Ya,Bt="__reactProps$"+Ya,Sr="__reactContainer$"+Ya,Ic="__reactEvents$"+Ya,n2="__reactListeners$"+Ya,a2="__reactHandles$"+Ya,Qp="__reactResources$"+Ya,Pi="__reactMarker$"+Ya;function ed(e){delete e[_t],delete e[Bt],delete e[Ic],delete e[n2],delete e[a2]}function jr(e){var t=e[_t];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Sr]||l[_t]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=s0(e);e!==null;){if(l=e[_t])return l;e=s0(e)}return t}e=l,l=e.parentNode}return null}function Er(e){if(e=e[_t]||e[Sr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ji(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Nr(e){var t=e[Qp];return t||(t=e[Qp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Et(e){e[Pi]=!0}var Yp=new Set,Gp={};function zl(e,t){Cr(e,t),Cr(e+"Capture",t)}function Cr(e,t){for(Gp[e]=t,e=0;e<t.length;e++)Yp.add(t[e])}var l2=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]*$"),$p={},Vp={};function r2(e){return Ba.call(Vp,e)?!0:Ba.call($p,e)?!1:l2.test(e)?Vp[e]=!0:($p[e]=!0,!1)}function Ns(e,t,l){if(r2(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function Cs(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function oa(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 fn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function i2(e,t,l){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var d=o.get,f=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(b){l=""+b,f.call(this,b)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function td(e){if(!e._valueTracker){var t=Kp(e)?"checked":"value";e._valueTracker=i2(e,t,""+e[t])}}function Xp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),o="";return e&&(o=Kp(e)?e.checked?"true":"false":e.value),e=o,e!==l?(t.setValue(e),!0):!1}function _s(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var o2=/[\n"\\]/g;function hn(e){return e.replace(o2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function nd(e,t,l,o,d,f,b,N){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+fn(t)):e.value!==""+fn(t)&&(e.value=""+fn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?ad(e,b,fn(t)):l!=null?ad(e,b,fn(l)):o!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+fn(N):e.removeAttribute("name")}function Fp(e,t,l,o,d,f,b,N){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){td(e);return}l=l!=null?""+fn(l):"",t=t!=null?""+fn(t):l,N||t===e.value||(e.value=t),e.defaultValue=t}o=o??d,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=N?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),td(e)}function ad(e,t,l){t==="number"&&_s(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function _r(e,t,l,o){if(e=e.options,t){t={};for(var d=0;d<l.length;d++)t["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=t.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&o&&(e[l].defaultSelected=!0)}else{for(l=""+fn(l),t=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,o&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function Zp(e,t,l){if(t!=null&&(t=""+fn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+fn(l):""}function Pp(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=fn(t),e.defaultValue=l,o=e.textContent,o===l&&o!==""&&o!==null&&(e.value=o),td(e)}function Rr(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var s2=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 Jp(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||s2.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function Wp(e,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,l!=null){for(var o in l)!l.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var d in t)o=t[d],t.hasOwnProperty(d)&&l[d]!==o&&Jp(e,d,o)}else for(var f in t)t.hasOwnProperty(f)&&Jp(e,f,t[f])}function ld(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var u2=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"]]),c2=/^[\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 Rs(e){return c2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function sa(){}var rd=null;function id(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Tr=null,Mr=null;function Ip(e){var t=Er(e);if(t&&(e=t.stateNode)){var l=e[Bt]||null;e:switch(e=t.stateNode,t.type){case"input":if(nd(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+hn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var o=l[t];if(o!==e&&o.form===e.form){var d=o[Bt]||null;if(!d)throw Error(i(90));nd(o,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)o=l[t],o.form===e.form&&Xp(o)}break e;case"textarea":Zp(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&_r(e,!!l.multiple,t,!1)}}}var od=!1;function ev(e,t,l){if(od)return e(t,l);od=!0;try{var o=e(t);return o}finally{if(od=!1,(Tr!==null||Mr!==null)&&(pu(),Tr&&(t=Tr,e=Mr,Mr=Tr=null,Ip(t),e)))for(t=0;t<e.length;t++)Ip(e[t])}}function Wi(e,t){var l=e.stateNode;if(l===null)return null;var o=l[Bt]||null;if(o===null)return null;l=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sd=!1;if(ua)try{var Ii={};Object.defineProperty(Ii,"passive",{get:function(){sd=!0}}),window.addEventListener("test",Ii,Ii),window.removeEventListener("test",Ii,Ii)}catch{sd=!1}var Ga=null,ud=null,Ts=null;function tv(){if(Ts)return Ts;var e,t=ud,l=t.length,o,d="value"in Ga?Ga.value:Ga.textContent,f=d.length;for(e=0;e<l&&t[e]===d[e];e++);var b=l-e;for(o=1;o<=b&&t[l-o]===d[f-o];o++);return Ts=d.slice(e,1<o?1-o:void 0)}function Ms(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function As(){return!0}function nv(){return!1}function Qt(e){function t(l,o,d,f,b){this._reactName=l,this._targetInst=d,this.type=o,this.nativeEvent=f,this.target=b,this.currentTarget=null;for(var N in e)e.hasOwnProperty(N)&&(l=e[N],this[N]=l?l(f):f[N]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?As:nv,this.isPropagationStopped=nv,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=As)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=As)},persist:function(){},isPersistent:As}),t}var Ll={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ks=Qt(Ll),eo=x({},Ll,{view:0,detail:0}),d2=Qt(eo),cd,dd,to,Ds=x({},eo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hd,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==to&&(to&&e.type==="mousemove"?(cd=e.screenX-to.screenX,dd=e.screenY-to.screenY):dd=cd=0,to=e),cd)},movementY:function(e){return"movementY"in e?e.movementY:dd}}),av=Qt(Ds),f2=x({},Ds,{dataTransfer:0}),h2=Qt(f2),m2=x({},eo,{relatedTarget:0}),fd=Qt(m2),p2=x({},Ll,{animationName:0,elapsedTime:0,pseudoElement:0}),v2=Qt(p2),g2=x({},Ll,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),y2=Qt(g2),x2=x({},Ll,{data:0}),lv=Qt(x2),b2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w2={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},S2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=S2[e])?!!t[e]:!1}function hd(){return j2}var E2=x({},eo,{key:function(e){if(e.key){var t=b2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ms(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?w2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hd,charCode:function(e){return e.type==="keypress"?Ms(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ms(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),N2=Qt(E2),C2=x({},Ds,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rv=Qt(C2),_2=x({},eo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hd}),R2=Qt(_2),T2=x({},Ll,{propertyName:0,elapsedTime:0,pseudoElement:0}),M2=Qt(T2),A2=x({},Ds,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),k2=Qt(A2),D2=x({},Ll,{newState:0,oldState:0}),O2=Qt(D2),z2=[9,13,27,32],md=ua&&"CompositionEvent"in window,no=null;ua&&"documentMode"in document&&(no=document.documentMode);var L2=ua&&"TextEvent"in window&&!no,iv=ua&&(!md||no&&8<no&&11>=no),ov=" ",sv=!1;function uv(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 cv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ar=!1;function U2(e,t){switch(e){case"compositionend":return cv(t);case"keypress":return t.which!==32?null:(sv=!0,ov);case"textInput":return e=t.data,e===ov&&sv?null:e;default:return null}}function q2(e,t){if(Ar)return e==="compositionend"||!md&&uv(e,t)?(e=tv(),Ts=ud=Ga=null,Ar=!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 iv&&t.locale!=="ko"?null:t.data;default:return null}}var H2={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 dv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!H2[e.type]:t==="textarea"}function fv(e,t,l,o){Tr?Mr?Mr.push(o):Mr=[o]:Tr=o,t=Su(t,"onChange"),0<t.length&&(l=new ks("onChange","change",null,l,o),e.push({event:l,listeners:t}))}var ao=null,lo=null;function B2(e){Fy(e,0)}function Os(e){var t=Ji(e);if(Xp(t))return e}function hv(e,t){if(e==="change")return t}var mv=!1;if(ua){var pd;if(ua){var vd="oninput"in document;if(!vd){var pv=document.createElement("div");pv.setAttribute("oninput","return;"),vd=typeof pv.oninput=="function"}pd=vd}else pd=!1;mv=pd&&(!document.documentMode||9<document.documentMode)}function vv(){ao&&(ao.detachEvent("onpropertychange",gv),lo=ao=null)}function gv(e){if(e.propertyName==="value"&&Os(lo)){var t=[];fv(t,lo,e,id(e)),ev(B2,t)}}function Q2(e,t,l){e==="focusin"?(vv(),ao=t,lo=l,ao.attachEvent("onpropertychange",gv)):e==="focusout"&&vv()}function Y2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Os(lo)}function G2(e,t){if(e==="click")return Os(t)}function $2(e,t){if(e==="input"||e==="change")return Os(t)}function V2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:V2;function ro(e,t){if(en(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),o=Object.keys(t);if(l.length!==o.length)return!1;for(o=0;o<l.length;o++){var d=l[o];if(!Ba.call(t,d)||!en(e[d],t[d]))return!1}return!0}function yv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xv(e,t){var l=yv(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=yv(l)}}function bv(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?bv(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=_s(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=_s(e.document)}return t}function gd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var K2=ua&&"documentMode"in document&&11>=document.documentMode,kr=null,yd=null,io=null,xd=!1;function Sv(e,t,l){var o=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;xd||kr==null||kr!==_s(o)||(o=kr,"selectionStart"in o&&gd(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}),io&&ro(io,o)||(io=o,o=Su(yd,"onSelect"),0<o.length&&(t=new ks("onSelect","select",null,t,l),e.push({event:t,listeners:o}),t.target=kr)))}function Ul(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Dr={animationend:Ul("Animation","AnimationEnd"),animationiteration:Ul("Animation","AnimationIteration"),animationstart:Ul("Animation","AnimationStart"),transitionrun:Ul("Transition","TransitionRun"),transitionstart:Ul("Transition","TransitionStart"),transitioncancel:Ul("Transition","TransitionCancel"),transitionend:Ul("Transition","TransitionEnd")},bd={},jv={};ua&&(jv=document.createElement("div").style,"AnimationEvent"in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),"TransitionEvent"in window||delete Dr.transitionend.transition);function ql(e){if(bd[e])return bd[e];if(!Dr[e])return e;var t=Dr[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in jv)return bd[e]=t[l];return e}var Ev=ql("animationend"),Nv=ql("animationiteration"),Cv=ql("animationstart"),X2=ql("transitionrun"),F2=ql("transitionstart"),Z2=ql("transitioncancel"),_v=ql("transitionend"),Rv=new Map,wd="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");wd.push("scrollEnd");function Rn(e,t){Rv.set(e,t),zl(t,[e])}var zs=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},mn=[],Or=0,Sd=0;function Ls(){for(var e=Or,t=Sd=Or=0;t<e;){var l=mn[t];mn[t++]=null;var o=mn[t];mn[t++]=null;var d=mn[t];mn[t++]=null;var f=mn[t];if(mn[t++]=null,o!==null&&d!==null){var b=o.pending;b===null?d.next=d:(d.next=b.next,b.next=d),o.pending=d}f!==0&&Tv(l,d,f)}}function Us(e,t,l,o){mn[Or++]=e,mn[Or++]=t,mn[Or++]=l,mn[Or++]=o,Sd|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function jd(e,t,l,o){return Us(e,t,l,o),qs(e)}function Hl(e,t){return Us(e,null,null,t),qs(e)}function Tv(e,t,l){e.lanes|=l;var o=e.alternate;o!==null&&(o.lanes|=l);for(var d=!1,f=e.return;f!==null;)f.childLanes|=l,o=f.alternate,o!==null&&(o.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(d=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,d&&t!==null&&(d=31-It(l),e=f.hiddenUpdates,o=e[d],o===null?e[d]=[t]:o.push(t),t.lane=l|536870912),f):null}function qs(e){if(50<To)throw To=0,Df=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var zr={};function P2(e,t,l,o){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(e,t,l,o){return new P2(e,t,l,o)}function Ed(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ca(e,t){var l=e.alternate;return l===null?(l=tn(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Mv(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 Hs(e,t,l,o,d,f){var b=0;if(o=e,typeof e=="function")Ed(e)&&(b=1);else if(typeof e=="string")b=tN(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=tn(31,l,t,d),e.elementType=G,e.lanes=f,e;case S:return Bl(l.children,d,f,t);case C:b=8,d|=24;break;case _:return e=tn(12,l,t,d|2),e.elementType=_,e.lanes=f,e;case L:return e=tn(13,l,t,d),e.elementType=L,e.lanes=f,e;case K:return e=tn(19,l,t,d),e.elementType=K,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case T:b=10;break e;case R:b=9;break e;case D:b=11;break e;case H:b=14;break e;case q:b=16,o=null;break e}b=29,l=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=tn(b,l,t,d),t.elementType=e,t.type=o,t.lanes=f,t}function Bl(e,t,l,o){return e=tn(7,e,o,t),e.lanes=l,e}function Nd(e,t,l){return e=tn(6,e,null,t),e.lanes=l,e}function Av(e){var t=tn(18,null,null,0);return t.stateNode=e,t}function Cd(e,t,l){return t=tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var kv=new WeakMap;function pn(e,t){if(typeof e=="object"&&e!==null){var l=kv.get(e);return l!==void 0?l:(t={value:e,source:t,stack:xs(t)},kv.set(e,t),t)}return{value:e,source:t,stack:xs(t)}}var Lr=[],Ur=0,Bs=null,oo=0,vn=[],gn=0,$a=null,$n=1,Vn="";function da(e,t){Lr[Ur++]=oo,Lr[Ur++]=Bs,Bs=e,oo=t}function Dv(e,t,l){vn[gn++]=$n,vn[gn++]=Vn,vn[gn++]=$a,$a=e;var o=$n;e=Vn;var d=32-It(o)-1;o&=~(1<<d),l+=1;var f=32-It(t)+d;if(30<f){var b=d-d%5;f=(o&(1<<b)-1).toString(32),o>>=b,d-=b,$n=1<<32-It(t)+d|l<<d|o,Vn=f+e}else $n=1<<f|l<<d|o,Vn=e}function _d(e){e.return!==null&&(da(e,1),Dv(e,1,0))}function Rd(e){for(;e===Bs;)Bs=Lr[--Ur],Lr[Ur]=null,oo=Lr[--Ur],Lr[Ur]=null;for(;e===$a;)$a=vn[--gn],vn[gn]=null,Vn=vn[--gn],vn[gn]=null,$n=vn[--gn],vn[gn]=null}function Ov(e,t){vn[gn++]=$n,vn[gn++]=Vn,vn[gn++]=$a,$n=t.id,Vn=t.overflow,$a=e}var Rt=null,Ie=null,ze=!1,Va=null,yn=!1,Td=Error(i(519));function Ka(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw so(pn(t,e)),Td}function zv(e){var t=e.stateNode,l=e.type,o=e.memoizedProps;switch(t[_t]=e,t[Bt]=o,l){case"dialog":ke("cancel",t),ke("close",t);break;case"iframe":case"object":case"embed":ke("load",t);break;case"video":case"audio":for(l=0;l<Ao.length;l++)ke(Ao[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),Fp(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),Pp(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||Wy(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=sa),t=!0):t=!1,t||Ka(e,!0)}function Lv(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:yn=!1;return;case 27:case 3:yn=!0;return;default:Rt=Rt.return}}function qr(e){if(e!==Rt)return!1;if(!ze)return Lv(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")||Ff(e.type,e.memoizedProps)),l=!l),l&&Ie&&Ka(e),Lv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ie=o0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ie=o0(e)}else t===27?(t=Ie,il(e.type)?(e=If,If=null,Ie=e):Ie=t):Ie=Rt?bn(e.stateNode.nextSibling):null;return!0}function Ql(){Ie=Rt=null,ze=!1}function Md(){var e=Va;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),Va=null),e}function so(e){Va===null?Va=[e]:Va.push(e)}var Ad=A(null),Yl=null,fa=null;function Xa(e,t,l){ee(Ad,t._currentValue),t._currentValue=l}function ha(e){e._currentValue=Ad.current,F(Ad)}function kd(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 Dd(e,t,l,o){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var b=d.child;f=f.firstContext;e:for(;f!==null;){var N=f;f=d;for(var M=0;M<t.length;M++)if(N.context===t[M]){f.lanes|=l,N=f.alternate,N!==null&&(N.lanes|=l),kd(f.return,l,e),o||(b=null);break e}f=N.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(i(341));b.lanes|=l,f=b.alternate,f!==null&&(f.lanes|=l),kd(b,l,e),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===e){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function Hr(e,t,l,o){e=null;for(var d=t,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var N=d.type;en(d.pendingProps.value,b.value)||(e!==null?e.push(N):e=[N])}}else if(d===ne.current){if(b=d.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(Lo):e=[Lo])}d=d.return}e!==null&&Dd(t,e,l,o),t.flags|=262144}function Qs(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gl(e){Yl=e,fa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Tt(e){return Uv(Yl,e)}function Ys(e,t){return Yl===null&&Gl(e),Uv(e,t)}function Uv(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},fa===null){if(e===null)throw Error(i(308));fa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else fa=fa.next=t;return l}var J2=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()})}},W2=n.unstable_scheduleCallback,I2=n.unstable_NormalPriority,ft={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Od(){return{controller:new J2,data:new Map,refCount:0}}function uo(e){e.refCount--,e.refCount===0&&W2(I2,function(){e.controller.abort()})}var co=null,zd=0,Br=0,Qr=null;function eE(e,t){if(co===null){var l=co=[];zd=0,Br=Hf(),Qr={status:"pending",value:void 0,then:function(o){l.push(o)}}}return zd++,t.then(qv,qv),t}function qv(){if(--zd===0&&co!==null){Qr!==null&&(Qr.status="fulfilled");var e=co;co=null,Br=0,Qr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function tE(e,t){var l=[],o={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(o.status="rejected",o.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),o}var Hv=U.S;U.S=function(e,t){Sy=Jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&eE(e,t),Hv!==null&&Hv(e,t)};var $l=A(null);function Ld(){var e=$l.current;return e!==null?e:We.pooledCache}function Gs(e,t){t===null?ee($l,$l.current):ee($l,t.pool)}function Bv(){var e=Ld();return e===null?null:{parent:ft._currentValue,pool:e}}var Yr=Error(i(460)),Ud=Error(i(474)),$s=Error(i(542)),Vs={then:function(){}};function Qv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Yv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(sa,sa),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$v(e),e;default:if(typeof t.status=="string")t.then(sa,sa);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=o}},function(o){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,$v(e),e}throw Kl=t,Yr}}function Vl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Kl=l,Yr):l}}var Kl=null;function Gv(){if(Kl===null)throw Error(i(459));var e=Kl;return Kl=null,e}function $v(e){if(e===Yr||e===$s)throw Error(i(483))}var Gr=null,fo=0;function Ks(e){var t=fo;return fo+=1,Gr===null&&(Gr=[]),Yv(Gr,e,t)}function ho(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Xs(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Vv(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 d(z,O){return z=ca(z,O),z.index=0,z.sibling=null,z}function f(z,O,B){return z.index=B,e?(B=z.alternate,B!==null?(B=B.index,B<O?(z.flags|=67108866,O):B):(z.flags|=67108866,O)):(z.flags|=1048576,O)}function b(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function N(z,O,B,P){return O===null||O.tag!==6?(O=Nd(B,z.mode,P),O.return=z,O):(O=d(O,B),O.return=z,O)}function M(z,O,B,P){var xe=B.type;return xe===S?Z(z,O,B.props.children,P,B.key):O!==null&&(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Vl(xe)===O.type)?(O=d(O,B.props),ho(O,B),O.return=z,O):(O=Hs(B.type,B.key,B.props,null,z.mode,P),ho(O,B),O.return=z,O)}function Q(z,O,B,P){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Cd(B,z.mode,P),O.return=z,O):(O=d(O,B.children||[]),O.return=z,O)}function Z(z,O,B,P,xe){return O===null||O.tag!==7?(O=Bl(B,z.mode,P,xe),O.return=z,O):(O=d(O,B),O.return=z,O)}function J(z,O,B){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Nd(""+O,z.mode,B),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return B=Hs(O.type,O.key,O.props,null,z.mode,B),ho(B,O),B.return=z,B;case E:return O=Cd(O,z.mode,B),O.return=z,O;case q:return O=Vl(O),J(z,O,B)}if(re(O)||ce(O))return O=Bl(O,z.mode,B,null),O.return=z,O;if(typeof O.then=="function")return J(z,Ks(O),B);if(O.$$typeof===T)return J(z,Ys(z,O),B);Xs(z,O)}return null}function Y(z,O,B,P){var xe=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return xe!==null?null:N(z,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case j:return B.key===xe?M(z,O,B,P):null;case E:return B.key===xe?Q(z,O,B,P):null;case q:return B=Vl(B),Y(z,O,B,P)}if(re(B)||ce(B))return xe!==null?null:Z(z,O,B,P,null);if(typeof B.then=="function")return Y(z,O,Ks(B),P);if(B.$$typeof===T)return Y(z,O,Ys(z,B),P);Xs(z,B)}return null}function V(z,O,B,P,xe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return z=z.get(B)||null,N(O,z,""+P,xe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case j:return z=z.get(P.key===null?B:P.key)||null,M(O,z,P,xe);case E:return z=z.get(P.key===null?B:P.key)||null,Q(O,z,P,xe);case q:return P=Vl(P),V(z,O,B,P,xe)}if(re(P)||ce(P))return z=z.get(B)||null,Z(O,z,P,xe,null);if(typeof P.then=="function")return V(z,O,B,Ks(P),xe);if(P.$$typeof===T)return V(z,O,B,Ys(O,P),xe);Xs(O,P)}return null}function fe(z,O,B,P){for(var xe=null,Be=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),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe,ge=Oe}if(Re===B.length)return l(z,ge),ze&&da(z,Re),xe;if(ge===null){for(;Re<B.length;Re++)ge=J(z,B[Re],P),ge!==null&&(O=f(ge,O,Re),Be===null?xe=ge:Be.sibling=ge,Be=ge);return ze&&da(z,Re),xe}for(ge=o(ge);Re<B.length;Re++)Oe=V(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),Be===null?xe=Oe:Be.sibling=Oe,Be=Oe);return e&&ge.forEach(function(dl){return t(z,dl)}),ze&&da(z,Re),xe}function Se(z,O,B,P){if(B==null)throw Error(i(151));for(var xe=null,Be=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 dl=Y(z,ge,Qe.value,P);if(dl===null){ge===null&&(ge=Oe);break}e&&ge&&dl.alternate===null&&t(z,ge),O=f(dl,O,Re),Be===null?xe=dl:Be.sibling=dl,Be=dl,ge=Oe}if(Qe.done)return l(z,ge),ze&&da(z,Re),xe;if(ge===null){for(;!Qe.done;Re++,Qe=B.next())Qe=J(z,Qe.value,P),Qe!==null&&(O=f(Qe,O,Re),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe);return ze&&da(z,Re),xe}for(ge=o(ge);!Qe.done;Re++,Qe=B.next())Qe=V(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),Be===null?xe=Qe:Be.sibling=Qe,Be=Qe);return e&&ge.forEach(function(fN){return t(z,fN)}),ze&&da(z,Re),xe}function Ze(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 xe=B.key;O!==null;){if(O.key===xe){if(xe=B.type,xe===S){if(O.tag===7){l(z,O.sibling),P=d(O,B.props.children),P.return=z,z=P;break e}}else if(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Vl(xe)===O.type){l(z,O.sibling),P=d(O,B.props),ho(P,B),P.return=z,z=P;break e}l(z,O);break}else t(z,O);O=O.sibling}B.type===S?(P=Bl(B.props.children,z.mode,P,B.key),P.return=z,z=P):(P=Hs(B.type,B.key,B.props,null,z.mode,P),ho(P,B),P.return=z,z=P)}return b(z);case E:e:{for(xe=B.key;O!==null;){if(O.key===xe)if(O.tag===4&&O.stateNode.containerInfo===B.containerInfo&&O.stateNode.implementation===B.implementation){l(z,O.sibling),P=d(O,B.children||[]),P.return=z,z=P;break e}else{l(z,O);break}else t(z,O);O=O.sibling}P=Cd(B,z.mode,P),P.return=z,z=P}return b(z);case q:return B=Vl(B),Ze(z,O,B,P)}if(re(B))return fe(z,O,B,P);if(ce(B)){if(xe=ce(B),typeof xe!="function")throw Error(i(150));return B=xe.call(B),Se(z,O,B,P)}if(typeof B.then=="function")return Ze(z,O,Ks(B),P);if(B.$$typeof===T)return Ze(z,O,Ys(z,B),P);Xs(z,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,O!==null&&O.tag===6?(l(z,O.sibling),P=d(O,B),P.return=z,z=P):(l(z,O),P=Nd(B,z.mode,P),P.return=z,z=P),b(z)):l(z,O)}return function(z,O,B,P){try{fo=0;var xe=Ze(z,O,B,P);return Gr=null,xe}catch(ge){if(ge===Yr||ge===$s)throw ge;var Be=tn(29,ge,null,z.mode);return Be.lanes=P,Be.return=z,Be}finally{}}}var Xl=Vv(!0),Kv=Vv(!1),Fa=!1;function qd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hd(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Pa(e,t,l){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ye&2)!==0){var d=o.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),o.pending=t,t=qs(e),Tv(e,null,l),t}return Us(e,o,t,l),qs(e)}function mo(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,Up(e,l)}}function Bd(e,t){var l=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,l===o)){var d=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?d=f=b:f=f.next=b,l=l.next}while(l!==null);f===null?d=f=t:f=f.next=t}else d=f=t;l={baseState:o.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:o.shared,callbacks:o.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Qd=!1;function po(){if(Qd){var e=Qr;if(e!==null)throw e}}function vo(e,t,l,o){Qd=!1;var d=e.updateQueue;Fa=!1;var f=d.firstBaseUpdate,b=d.lastBaseUpdate,N=d.shared.pending;if(N!==null){d.shared.pending=null;var M=N,Q=M.next;M.next=null,b===null?f=Q:b.next=Q,b=M;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,N=Z.lastBaseUpdate,N!==b&&(N===null?Z.firstBaseUpdate=Q:N.next=Q,Z.lastBaseUpdate=M))}if(f!==null){var J=d.baseState;b=0,Z=Q=M=null,N=f;do{var Y=N.lane&-536870913,V=Y!==N.lane;if(V?(De&Y)===Y:(o&Y)===Y){Y!==0&&Y===Br&&(Qd=!0),Z!==null&&(Z=Z.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var fe=e,Se=N;Y=t;var Ze=l;switch(Se.tag){case 1:if(fe=Se.payload,typeof fe=="function"){J=fe.call(Ze,J,Y);break e}J=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=Se.payload,Y=typeof fe=="function"?fe.call(Ze,J,Y):fe,Y==null)break e;J=x({},J,Y);break e;case 2:Fa=!0}}Y=N.callback,Y!==null&&(e.flags|=64,V&&(e.flags|=8192),V=d.callbacks,V===null?d.callbacks=[Y]:V.push(Y))}else V={lane:Y,tag:N.tag,payload:N.payload,callback:N.callback,next:null},Z===null?(Q=Z=V,M=J):Z=Z.next=V,b|=Y;if(N=N.next,N===null){if(N=d.shared.pending,N===null)break;V=N,N=V.next,V.next=null,d.lastBaseUpdate=V,d.shared.pending=null}}while(!0);Z===null&&(M=J),d.baseState=M,d.firstBaseUpdate=Q,d.lastBaseUpdate=Z,f===null&&(d.shared.lanes=0),tl|=b,e.lanes=b,e.memoizedState=J}}function Xv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Fv(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Xv(l[e],t)}var $r=A(null),Fs=A(0);function Zv(e,t){e=Sa,ee(Fs,e),ee($r,t),Sa=e|t.baseLanes}function Yd(){ee(Fs,Sa),ee($r,$r.current)}function Gd(){Sa=Fs.current,F($r),F(Fs)}var nn=A(null),xn=null;function Ja(e){var t=e.alternate;ee(ut,ut.current&1),ee(nn,e),xn===null&&(t===null||$r.current!==null||t.memoizedState!==null)&&(xn=e)}function $d(e){ee(ut,ut.current),ee(nn,e),xn===null&&(xn=e)}function Pv(e){e.tag===22?(ee(ut,ut.current),ee(nn,e),xn===null&&(xn=e)):Wa()}function Wa(){ee(ut,ut.current),ee(nn,nn.current)}function an(e){F(nn),xn===e&&(xn=null),F(ut)}var ut=A(0);function Zs(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Jf(l)||Wf(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ma=0,_e=null,Xe=null,ht=null,Ps=!1,Vr=!1,Fl=!1,Js=0,go=0,Kr=null,nE=0;function rt(){throw Error(i(321))}function Vd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!en(e[l],t[l]))return!1;return!0}function Kd(e,t,l,o,d,f){return ma=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Dg:sf,Fl=!1,f=l(o,d),Fl=!1,Vr&&(f=Wv(t,l,o,d)),Jv(e),f}function Jv(e){U.H=bo;var t=Xe!==null&&Xe.next!==null;if(ma=0,ht=Xe=_e=null,Ps=!1,go=0,Kr=null,t)throw Error(i(300));e===null||mt||(e=e.dependencies,e!==null&&Qs(e)&&(mt=!0))}function Wv(e,t,l,o){_e=e;var d=0;do{if(Vr&&(Kr=null),go=0,Vr=!1,25<=d)throw Error(i(301));if(d+=1,ht=Xe=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=Og,f=t(l,o)}while(Vr);return f}function aE(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?yo(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(_e.flags|=1024),t}function Xd(){var e=Js!==0;return Js=0,e}function Fd(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Zd(e){if(Ps){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ps=!1}ma=0,ht=Xe=_e=null,Vr=!1,go=Js=0,Kr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?_e.memoizedState=ht=e:ht=ht.next=e,ht}function ct(){if(Xe===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=ht===null?_e.memoizedState:ht.next;if(t!==null)ht=t,Xe=e;else{if(e===null)throw _e.alternate===null?Error(i(467)):Error(i(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},ht===null?_e.memoizedState=ht=e:ht=ht.next=e}return ht}function Ws(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yo(e){var t=go;return go+=1,Kr===null&&(Kr=[]),e=Yv(Kr,e,t),t=_e,(ht===null?t.memoizedState:ht.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Dg:sf),e}function Is(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return yo(e);if(e.$$typeof===T)return Tt(e)}throw Error(i(438,String(e)))}function Pd(e){var t=null,l=_e.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var o=_e.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Ws(),_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 pa(e,t){return typeof t=="function"?t(e):t}function eu(e){var t=ct();return Jd(t,Xe,e)}function Jd(e,t,l){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=l;var d=e.baseQueue,f=o.pending;if(f!==null){if(d!==null){var b=d.next;d.next=f.next,f.next=b}t.baseQueue=d=f,o.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{t=d.next;var N=b=null,M=null,Q=t,Z=!1;do{var J=Q.lane&-536870913;if(J!==Q.lane?(De&J)===J:(ma&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===Br&&(Z=!0);else if((ma&Y)===Y){Q=Q.next,Y===Br&&(Z=!0);continue}else J={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},M===null?(N=M=J,b=f):M=M.next=J,_e.lanes|=Y,tl|=Y;J=Q.action,Fl&&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,b=f):M=M.next=Y,_e.lanes|=J,tl|=J;Q=Q.next}while(Q!==null&&Q!==t);if(M===null?b=f:M.next=N,!en(f,e.memoizedState)&&(mt=!0,Z&&(l=Qr,l!==null)))throw l;e.memoizedState=f,e.baseState=b,e.baseQueue=M,o.lastRenderedState=f}return d===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Wd(e){var t=ct(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var o=l.dispatch,d=l.pending,f=t.memoizedState;if(d!==null){l.pending=null;var b=d=d.next;do f=e(f,b.action),b=b.next;while(b!==d);en(f,t.memoizedState)||(mt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,o]}function Iv(e,t,l){var o=_e,d=ct(),f=ze;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var b=!en((Xe||d).memoizedState,l);if(b&&(d.memoizedState=l,mt=!0),d=d.queue,tf(ng.bind(null,o,d,e),[e]),d.getSnapshot!==t||b||ht!==null&&ht.memoizedState.tag&1){if(o.flags|=2048,Xr(9,{destroy:void 0},tg.bind(null,o,d,l,t),null),We===null)throw Error(i(349));f||(ma&127)!==0||eg(o,t,l)}return l}function eg(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=_e.updateQueue,t===null?(t=Ws(),_e.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function tg(e,t,l,o){t.value=l,t.getSnapshot=o,ag(t)&&lg(e)}function ng(e,t,l){return l(function(){ag(t)&&lg(e)})}function ag(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!en(e,l)}catch{return!0}}function lg(e){var t=Hl(e,2);t!==null&&Kt(t,e,2)}function Id(e){var t=Ut();if(typeof e=="function"){var l=e;if(e=l(),Fl){Qa(!0);try{l()}finally{Qa(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:e},t}function rg(e,t,l,o){return e.baseState=l,Jd(e,Xe,typeof o=="function"?o:pa)}function lE(e,t,l,o,d){if(au(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){f.listeners.push(b)}};U.T!==null?l(!0):f.isTransition=!1,o(f),l=t.pending,l===null?(f.next=t.pending=f,ig(t,f)):(f.next=l.next,t.pending=l.next=f)}}function ig(e,t){var l=t.action,o=t.payload,d=e.state;if(t.isTransition){var f=U.T,b={};U.T=b;try{var N=l(d,o),M=U.S;M!==null&&M(b,N),og(e,t,N)}catch(Q){ef(e,t,Q)}finally{f!==null&&b.types!==null&&(f.types=b.types),U.T=f}}else try{f=l(d,o),og(e,t,f)}catch(Q){ef(e,t,Q)}}function og(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(o){sg(e,t,o)},function(o){return ef(e,t,o)}):sg(e,t,l)}function sg(e,t,l){t.status="fulfilled",t.value=l,ug(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,ig(e,l)))}function ef(e,t,l){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=l,ug(t),t=t.next;while(t!==o)}e.action=null}function ug(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function cg(e,t){return t}function dg(e,t){if(ze){var l=We.formState;if(l!==null){e:{var o=_e;if(ze){if(Ie){t:{for(var d=Ie,f=yn;d.nodeType!==8;){if(!f){d=null;break t}if(d=bn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){Ie=bn(d.nextSibling),o=d.data==="F!";break e}}Ka(o)}o=!1}o&&(t=l[0])}}return l=Ut(),l.memoizedState=l.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cg,lastRenderedState:t},l.queue=o,l=Mg.bind(null,_e,o),o.dispatch=l,o=Id(!1),f=of.bind(null,_e,!1,o.queue),o=Ut(),d={state:t,dispatch:null,action:e,pending:null},o.queue=d,l=lE.bind(null,_e,d,f,l),d.dispatch=l,o.memoizedState=e,[t,l,!1]}function fg(e){var t=ct();return hg(t,Xe,e)}function hg(e,t,l){if(t=Jd(e,t,cg)[0],e=eu(pa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=yo(t)}catch(b){throw b===Yr?$s:b}else o=t;t=ct();var d=t.queue,f=d.dispatch;return l!==t.memoizedState&&(_e.flags|=2048,Xr(9,{destroy:void 0},rE.bind(null,d,l),null)),[o,f,e]}function rE(e,t){e.action=t}function mg(e){var t=ct(),l=Xe;if(l!==null)return hg(t,l,e);ct(),t=t.memoizedState,l=ct();var o=l.queue.dispatch;return l.memoizedState=e,[t,o,!1]}function Xr(e,t,l,o){return e={tag:e,create:l,deps:o,inst:t,next:null},t=_e.updateQueue,t===null&&(t=Ws(),_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 pg(){return ct().memoizedState}function tu(e,t,l,o){var d=Ut();_e.flags|=e,d.memoizedState=Xr(1|t,{destroy:void 0},l,o===void 0?null:o)}function nu(e,t,l,o){var d=ct();o=o===void 0?null:o;var f=d.memoizedState.inst;Xe!==null&&o!==null&&Vd(o,Xe.memoizedState.deps)?d.memoizedState=Xr(t,f,l,o):(_e.flags|=e,d.memoizedState=Xr(1|t,f,l,o))}function vg(e,t){tu(8390656,8,e,t)}function tf(e,t){nu(2048,8,e,t)}function iE(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=Ws(),_e.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function gg(e){var t=ct().memoizedState;return iE({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function yg(e,t){return nu(4,2,e,t)}function xg(e,t){return nu(4,4,e,t)}function bg(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 wg(e,t,l){l=l!=null?l.concat([e]):null,nu(4,4,bg.bind(null,t,e),l)}function nf(){}function Sg(e,t){var l=ct();t=t===void 0?null:t;var o=l.memoizedState;return t!==null&&Vd(t,o[1])?o[0]:(l.memoizedState=[e,t],e)}function jg(e,t){var l=ct();t=t===void 0?null:t;var o=l.memoizedState;if(t!==null&&Vd(t,o[1]))return o[0];if(o=e(),Fl){Qa(!0);try{e()}finally{Qa(!1)}}return l.memoizedState=[o,t],o}function af(e,t,l){return l===void 0||(ma&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ey(),_e.lanes|=e,tl|=e,l)}function Eg(e,t,l,o){return en(l,t)?l:$r.current!==null?(e=af(e,l,o),en(e,t)||(mt=!0),e):(ma&42)===0||(ma&1073741824)!==0&&(De&261930)===0?(mt=!0,e.memoizedState=l):(e=Ey(),_e.lanes|=e,tl|=e,t)}function Ng(e,t,l,o,d){var f=W.p;W.p=f!==0&&8>f?f:8;var b=U.T,N={};U.T=N,of(e,!1,t,l);try{var M=d(),Q=U.S;if(Q!==null&&Q(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Z=tE(M,o);xo(e,t,Z,on(e))}else xo(e,t,o,on(e))}catch(J){xo(e,t,{then:function(){},status:"rejected",reason:J},on())}finally{W.p=f,b!==null&&N.types!==null&&(b.types=N.types),U.T=b}}function oE(){}function lf(e,t,l,o){if(e.tag!==5)throw Error(i(476));var d=Cg(e).queue;Ng(e,d,t,$,l===null?oE:function(){return _g(e),l(o)})}function Cg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:$},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:pa,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function _g(e){var t=Cg(e);t.next===null&&(t=e.alternate.memoizedState),xo(e,t.next.queue,{},on())}function rf(){return Tt(Lo)}function Rg(){return ct().memoizedState}function Tg(){return ct().memoizedState}function sE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=on();e=Za(l);var o=Pa(t,e,l);o!==null&&(Kt(o,t,l),mo(o,t,l)),t={cache:Od()},e.payload=t;return}t=t.return}}function uE(e,t,l){var o=on();l={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},au(e)?Ag(t,l):(l=jd(e,t,l,o),l!==null&&(Kt(l,e,o),kg(l,t,o)))}function Mg(e,t,l){var o=on();xo(e,t,l,o)}function xo(e,t,l,o){var d={lane:o,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(au(e))Ag(t,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var b=t.lastRenderedState,N=f(b,l);if(d.hasEagerState=!0,d.eagerState=N,en(N,b))return Us(e,t,d,0),We===null&&Ls(),!1}catch{}finally{}if(l=jd(e,t,d,o),l!==null)return Kt(l,e,o),kg(l,t,o),!0}return!1}function of(e,t,l,o){if(o={lane:2,revertLane:Hf(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},au(e)){if(t)throw Error(i(479))}else t=jd(e,l,o,2),t!==null&&Kt(t,e,2)}function au(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function Ag(e,t){Vr=Ps=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function kg(e,t,l){if((l&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,l|=o,t.lanes=l,Up(e,l)}}var bo={readContext:Tt,use:Is,useCallback:rt,useContext:rt,useEffect:rt,useImperativeHandle:rt,useLayoutEffect:rt,useInsertionEffect:rt,useMemo:rt,useReducer:rt,useRef:rt,useState:rt,useDebugValue:rt,useDeferredValue:rt,useTransition:rt,useSyncExternalStore:rt,useId:rt,useHostTransitionStatus:rt,useFormState:rt,useActionState:rt,useOptimistic:rt,useMemoCache:rt,useCacheRefresh:rt};bo.useEffectEvent=rt;var Dg={readContext:Tt,use:Is,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:Tt,useEffect:vg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,tu(4194308,4,bg.bind(null,t,e),l)},useLayoutEffect:function(e,t){return tu(4194308,4,e,t)},useInsertionEffect:function(e,t){tu(4,2,e,t)},useMemo:function(e,t){var l=Ut();t=t===void 0?null:t;var o=e();if(Fl){Qa(!0);try{e()}finally{Qa(!1)}}return l.memoizedState=[o,t],o},useReducer:function(e,t,l){var o=Ut();if(l!==void 0){var d=l(t);if(Fl){Qa(!0);try{l(t)}finally{Qa(!1)}}}else d=t;return o.memoizedState=o.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},o.queue=e,e=e.dispatch=uE.bind(null,_e,e),[o.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=Id(e);var t=e.queue,l=Mg.bind(null,_e,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:nf,useDeferredValue:function(e,t){var l=Ut();return af(l,e,t)},useTransition:function(){var e=Id(!1);return e=Ng.bind(null,_e,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var o=_e,d=Ut();if(ze){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),We===null)throw Error(i(349));(De&127)!==0||eg(o,t,l)}d.memoizedState=l;var f={value:l,getSnapshot:t};return d.queue=f,vg(ng.bind(null,o,f,e),[e]),o.flags|=2048,Xr(9,{destroy:void 0},tg.bind(null,o,f,l,t),null),l},useId:function(){var e=Ut(),t=We.identifierPrefix;if(ze){var l=Vn,o=$n;l=(o&~(1<<32-It(o)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Js++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=nE++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:rf,useFormState:dg,useActionState:dg,useOptimistic:function(e){var t=Ut();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=of.bind(null,_e,!0,l),l.dispatch=t,[e,t]},useMemoCache:Pd,useCacheRefresh:function(){return Ut().memoizedState=sE.bind(null,_e)},useEffectEvent:function(e){var t=Ut(),l={impl:e};return t.memoizedState=l,function(){if((Ye&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},sf={readContext:Tt,use:Is,useCallback:Sg,useContext:Tt,useEffect:tf,useImperativeHandle:wg,useInsertionEffect:yg,useLayoutEffect:xg,useMemo:jg,useReducer:eu,useRef:pg,useState:function(){return eu(pa)},useDebugValue:nf,useDeferredValue:function(e,t){var l=ct();return Eg(l,Xe.memoizedState,e,t)},useTransition:function(){var e=eu(pa)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:yo(e),t]},useSyncExternalStore:Iv,useId:Rg,useHostTransitionStatus:rf,useFormState:fg,useActionState:fg,useOptimistic:function(e,t){var l=ct();return rg(l,Xe,e,t)},useMemoCache:Pd,useCacheRefresh:Tg};sf.useEffectEvent=gg;var Og={readContext:Tt,use:Is,useCallback:Sg,useContext:Tt,useEffect:tf,useImperativeHandle:wg,useInsertionEffect:yg,useLayoutEffect:xg,useMemo:jg,useReducer:Wd,useRef:pg,useState:function(){return Wd(pa)},useDebugValue:nf,useDeferredValue:function(e,t){var l=ct();return Xe===null?af(l,e,t):Eg(l,Xe.memoizedState,e,t)},useTransition:function(){var e=Wd(pa)[0],t=ct().memoizedState;return[typeof e=="boolean"?e:yo(e),t]},useSyncExternalStore:Iv,useId:Rg,useHostTransitionStatus:rf,useFormState:mg,useActionState:mg,useOptimistic:function(e,t){var l=ct();return Xe!==null?rg(l,Xe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Pd,useCacheRefresh:Tg};Og.useEffectEvent=gg;function uf(e,t,l,o){t=e.memoizedState,l=l(o,t),l=l==null?t:x({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var cf={enqueueSetState:function(e,t,l){e=e._reactInternals;var o=on(),d=Za(o);d.payload=t,l!=null&&(d.callback=l),t=Pa(e,d,o),t!==null&&(Kt(t,e,o),mo(t,e,o))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var o=on(),d=Za(o);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Pa(e,d,o),t!==null&&(Kt(t,e,o),mo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=on(),o=Za(l);o.tag=2,t!=null&&(o.callback=t),t=Pa(e,o,l),t!==null&&(Kt(t,e,l),mo(t,e,l))}};function zg(e,t,l,o,d,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,f,b):t.prototype&&t.prototype.isPureReactComponent?!ro(l,o)||!ro(d,f):!0}function Lg(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&&cf.enqueueReplaceState(t,t.state,null)}function Zl(e,t){var l=t;if("ref"in t){l={};for(var o in t)o!=="ref"&&(l[o]=t[o])}if(e=e.defaultProps){l===t&&(l=x({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function Ug(e){zs(e)}function qg(e){console.error(e)}function Hg(e){zs(e)}function lu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function Bg(e,t,l){try{var o=e.onCaughtError;o(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function df(e,t,l){return l=Za(l),l.tag=3,l.payload={element:null},l.callback=function(){lu(e,t)},l}function Qg(e){return e=Za(e),e.tag=3,e}function Yg(e,t,l,o){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var f=o.value;e.payload=function(){return d(f)},e.callback=function(){Bg(t,l,o)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Bg(t,l,o),typeof d!="function"&&(nl===null?nl=new Set([this]):nl.add(this));var N=o.stack;this.componentDidCatch(o.value,{componentStack:N!==null?N:""})})}function cE(e,t,l,o,d){if(l.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=l.alternate,t!==null&&Hr(t,l,d,!0),l=nn.current,l!==null){switch(l.tag){case 31:case 13:return xn===null?vu():l.alternate===null&&it===0&&(it=3),l.flags&=-257,l.flags|=65536,l.lanes=d,o===Vs?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([o]):t.add(o),Lf(e,o,d)),!1;case 22:return l.flags|=65536,o===Vs?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([o]):l.add(o)),Lf(e,o,d)),!1}throw Error(i(435,l.tag))}return Lf(e,o,d),vu(),!1}if(ze)return t=nn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,o!==Td&&(e=Error(i(422),{cause:o}),so(pn(e,l)))):(o!==Td&&(t=Error(i(423),{cause:o}),so(pn(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,o=pn(o,l),d=df(e.stateNode,o,d),Bd(e,d),it!==4&&(it=2)),!1;var f=Error(i(520),{cause:o});if(f=pn(f,l),Ro===null?Ro=[f]:Ro.push(f),it!==4&&(it=2),t===null)return!0;o=pn(o,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=df(l.stateNode,o,e),Bd(l,e),!1;case 1:if(t=l.type,f=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(nl===null||!nl.has(f))))return l.flags|=65536,d&=-d,l.lanes|=d,d=Qg(d),Yg(d,e,l,o),Bd(l,d),!1}l=l.return}while(l!==null);return!1}var ff=Error(i(461)),mt=!1;function Mt(e,t,l,o){t.child=e===null?Kv(t,null,l,o):Xl(t,e.child,l,o)}function Gg(e,t,l,o,d){l=l.render;var f=t.ref;if("ref"in o){var b={};for(var N in o)N!=="ref"&&(b[N]=o[N])}else b=o;return Gl(t),o=Kd(e,t,l,b,f,d),N=Xd(),e!==null&&!mt?(Fd(e,t,d),va(e,t,d)):(ze&&N&&_d(t),t.flags|=1,Mt(e,t,o,d),t.child)}function $g(e,t,l,o,d){if(e===null){var f=l.type;return typeof f=="function"&&!Ed(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Vg(e,t,f,o,d)):(e=Hs(l.type,null,o,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!bf(e,d)){var b=f.memoizedProps;if(l=l.compare,l=l!==null?l:ro,l(b,o)&&e.ref===t.ref)return va(e,t,d)}return t.flags|=1,e=ca(f,o),e.ref=t.ref,e.return=t,t.child=e}function Vg(e,t,l,o,d){if(e!==null){var f=e.memoizedProps;if(ro(f,o)&&e.ref===t.ref)if(mt=!1,t.pendingProps=o=f,bf(e,d))(e.flags&131072)!==0&&(mt=!0);else return t.lanes=e.lanes,va(e,t,d)}return hf(e,t,l,o,d)}function Kg(e,t,l,o){var d=o.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(o=t.child=e.child,d=0;o!==null;)d=d|o.lanes|o.childLanes,o=o.sibling;o=d&~f}else o=0,t.child=null;return Xg(e,t,f,l,o)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Gs(t,f!==null?f.cachePool:null),f!==null?Zv(t,f):Yd(),Pv(t);else return o=t.lanes=536870912,Xg(e,t,f!==null?f.baseLanes|l:l,l,o)}else f!==null?(Gs(t,f.cachePool),Zv(t,f),Wa(),t.memoizedState=null):(e!==null&&Gs(t,null),Yd(),Wa());return Mt(e,t,d,l),t.child}function wo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Xg(e,t,l,o,d){var f=Ld();return f=f===null?null:{parent:ft._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Gs(t,null),Yd(),Pv(t),e!==null&&Hr(e,t,o,!0),t.childLanes=d,null}function ru(e,t){return t=ou({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Fg(e,t,l){return Xl(t,e.child,null,l),e=ru(t,t.pendingProps),e.flags|=2,an(t),t.memoizedState=null,e}function dE(e,t,l){var o=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(o.mode==="hidden")return e=ru(t,o),t.lanes=536870912,wo(null,e);if($d(t),(e=Ie)?(e=i0(e,yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$a!==null?{id:$n,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},l=Av(e),l.return=t,t.child=l,Rt=t,Ie=null)):e=null,e===null)throw Ka(t);return t.lanes=536870912,null}return ru(t,o)}var f=e.memoizedState;if(f!==null){var b=f.dehydrated;if($d(t),d)if(t.flags&256)t.flags&=-257,t=Fg(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(mt||Hr(e,t,l,!1),d=(l&e.childLanes)!==0,mt||d){if(o=We,o!==null&&(b=qp(o,l),b!==0&&b!==f.retryLane))throw f.retryLane=b,Hl(e,b),Kt(o,e,b),ff;vu(),t=Fg(e,t,l)}else e=f.treeContext,Ie=bn(b.nextSibling),Rt=t,ze=!0,Va=null,yn=!1,e!==null&&Ov(t,e),t=ru(t,o),t.flags|=4096;return t}return e=ca(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function iu(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function hf(e,t,l,o,d){return Gl(t),l=Kd(e,t,l,o,void 0,d),o=Xd(),e!==null&&!mt?(Fd(e,t,d),va(e,t,d)):(ze&&o&&_d(t),t.flags|=1,Mt(e,t,l,d),t.child)}function Zg(e,t,l,o,d,f){return Gl(t),t.updateQueue=null,l=Wv(t,o,l,d),Jv(e),o=Xd(),e!==null&&!mt?(Fd(e,t,f),va(e,t,f)):(ze&&o&&_d(t),t.flags|=1,Mt(e,t,l,f),t.child)}function Pg(e,t,l,o,d){if(Gl(t),t.stateNode===null){var f=zr,b=l.contextType;typeof b=="object"&&b!==null&&(f=Tt(b)),f=new l(o,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=cf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=o,f.state=t.memoizedState,f.refs={},qd(t),b=l.contextType,f.context=typeof b=="object"&&b!==null?Tt(b):zr,f.state=t.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(uf(t,l,b,o),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(b=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),b!==f.state&&cf.enqueueReplaceState(f,f.state,null),vo(t,o,f,d),po(),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=Zl(l,N);f.props=M;var Q=f.context,Z=l.contextType;b=zr,typeof Z=="object"&&Z!==null&&(b=Tt(Z));var J=l.getDerivedStateFromProps;Z=typeof J=="function"||typeof f.getSnapshotBeforeUpdate=="function",N=t.pendingProps!==N,Z||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(N||Q!==b)&&Lg(t,f,o,b),Fa=!1;var Y=t.memoizedState;f.state=Y,vo(t,o,f,d),po(),Q=t.memoizedState,N||Y!==Q||Fa?(typeof J=="function"&&(uf(t,l,J,o),Q=t.memoizedState),(M=Fa||zg(t,l,M,o,Y,Q,b))?(Z||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=Q),f.props=o,f.state=Q,f.context=b,o=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{f=t.stateNode,Hd(e,t),b=t.memoizedProps,Z=Zl(l,b),f.props=Z,J=t.pendingProps,Y=f.context,Q=l.contextType,M=zr,typeof Q=="object"&&Q!==null&&(M=Tt(Q)),N=l.getDerivedStateFromProps,(Q=typeof N=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==J||Y!==M)&&Lg(t,f,o,M),Fa=!1,Y=t.memoizedState,f.state=Y,vo(t,o,f,d),po();var V=t.memoizedState;b!==J||Y!==V||Fa||e!==null&&e.dependencies!==null&&Qs(e.dependencies)?(typeof N=="function"&&(uf(t,l,N,o),V=t.memoizedState),(Z=Fa||zg(t,l,Z,o,Y,V,M)||e!==null&&e.dependencies!==null&&Qs(e.dependencies))?(Q||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(o,V,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(o,V,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=V),f.props=o,f.state=V,f.context=M,o=Z):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Y===e.memoizedState||(t.flags|=1024),o=!1)}return f=o,iu(e,t),o=(t.flags&128)!==0,f||o?(f=t.stateNode,l=o&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&o?(t.child=Xl(t,e.child,null,d),t.child=Xl(t,null,l,d)):Mt(e,t,l,d),t.memoizedState=f.state,e=t.child):e=va(e,t,d),e}function Jg(e,t,l,o){return Ql(),t.flags|=256,Mt(e,t,l,o),t.child}var mf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pf(e){return{baseLanes:e,cachePool:Bv()}}function vf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=rn),e}function Wg(e,t,l){var o=t.pendingProps,d=!1,f=(t.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(ut.current&2)!==0),b&&(d=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(d?Ja(t):Wa(),(e=Ie)?(e=i0(e,yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:$a!==null?{id:$n,overflow:Vn}:null,retryLane:536870912,hydrationErrors:null},l=Av(e),l.return=t,t.child=l,Rt=t,Ie=null)):e=null,e===null)throw Ka(t);return Wf(e)?t.lanes=32:t.lanes=536870912,null}var N=o.children;return o=o.fallback,d?(Wa(),d=t.mode,N=ou({mode:"hidden",children:N},d),o=Bl(o,d,l,null),N.return=t,o.return=t,N.sibling=o,t.child=N,o=t.child,o.memoizedState=pf(l),o.childLanes=vf(e,b,l),t.memoizedState=mf,wo(null,o)):(Ja(t),gf(t,N))}var M=e.memoizedState;if(M!==null&&(N=M.dehydrated,N!==null)){if(f)t.flags&256?(Ja(t),t.flags&=-257,t=yf(e,t,l)):t.memoizedState!==null?(Wa(),t.child=e.child,t.flags|=128,t=null):(Wa(),N=o.fallback,d=t.mode,o=ou({mode:"visible",children:o.children},d),N=Bl(N,d,l,null),N.flags|=2,o.return=t,N.return=t,o.sibling=N,t.child=o,Xl(t,e.child,null,l),o=t.child,o.memoizedState=pf(l),o.childLanes=vf(e,b,l),t.memoizedState=mf,t=wo(null,o));else if(Ja(t),Wf(N)){if(b=N.nextSibling&&N.nextSibling.dataset,b)var Q=b.dgst;b=Q,o=Error(i(419)),o.stack="",o.digest=b,so({value:o,source:null,stack:null}),t=yf(e,t,l)}else if(mt||Hr(e,t,l,!1),b=(l&e.childLanes)!==0,mt||b){if(b=We,b!==null&&(o=qp(b,l),o!==0&&o!==M.retryLane))throw M.retryLane=o,Hl(e,o),Kt(b,e,o),ff;Jf(N)||vu(),t=yf(e,t,l)}else Jf(N)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,Ie=bn(N.nextSibling),Rt=t,ze=!0,Va=null,yn=!1,e!==null&&Ov(t,e),t=gf(t,o.children),t.flags|=4096);return t}return d?(Wa(),N=o.fallback,d=t.mode,M=e.child,Q=M.sibling,o=ca(M,{mode:"hidden",children:o.children}),o.subtreeFlags=M.subtreeFlags&65011712,Q!==null?N=ca(Q,N):(N=Bl(N,d,l,null),N.flags|=2),N.return=t,o.return=t,o.sibling=N,t.child=o,wo(null,o),o=t.child,N=e.child.memoizedState,N===null?N=pf(l):(d=N.cachePool,d!==null?(M=ft._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=Bv(),N={baseLanes:N.baseLanes|l,cachePool:d}),o.memoizedState=N,o.childLanes=vf(e,b,l),t.memoizedState=mf,wo(e.child,o)):(Ja(t),l=e.child,e=l.sibling,l=ca(l,{mode:"visible",children:o.children}),l.return=t,l.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=l,t.memoizedState=null,l)}function gf(e,t){return t=ou({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ou(e,t){return e=tn(22,e,null,t),e.lanes=0,e}function yf(e,t,l){return Xl(t,e.child,null,l),e=gf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ig(e,t,l){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),kd(e.return,t,l)}function xf(e,t,l,o,d,f){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:l,tailMode:d,treeForkCount:f}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=o,b.tail=l,b.tailMode=d,b.treeForkCount=f)}function ey(e,t,l){var o=t.pendingProps,d=o.revealOrder,f=o.tail;o=o.children;var b=ut.current,N=(b&2)!==0;if(N?(b=b&1|2,t.flags|=128):b&=1,ee(ut,b),Mt(e,t,o,l),o=ze?oo:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ig(e,l,t);else if(e.tag===19)Ig(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(l=t.child,d=null;l!==null;)e=l.alternate,e!==null&&Zs(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),xf(t,!1,d,l,f,o);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&Zs(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}xf(t,!0,l,null,f,o);break;case"together":xf(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function va(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),tl|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Hr(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=ca(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ca(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function bf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Qs(e)))}function fE(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Xa(t,ft,e.memoizedState.cache),Ql();break;case 27:case 5:Ne(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Xa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,$d(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(Ja(t),t.flags|=128,null):(l&t.child.childLanes)!==0?Wg(e,t,l):(Ja(t),e=va(e,t,l),e!==null?e.sibling:null);Ja(t);break;case 19:var d=(e.flags&128)!==0;if(o=(l&t.childLanes)!==0,o||(Hr(e,t,l,!1),o=(l&t.childLanes)!==0),d){if(o)return ey(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ee(ut,ut.current),o)break;return null;case 22:return t.lanes=0,Kg(e,t,l,t.pendingProps);case 24:Xa(t,ft,e.memoizedState.cache)}return va(e,t,l)}function ty(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)mt=!0;else{if(!bf(e,l)&&(t.flags&128)===0)return mt=!1,fE(e,t,l);mt=(e.flags&131072)!==0}else mt=!1,ze&&(t.flags&1048576)!==0&&Dv(t,oo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=Vl(t.elementType),t.type=e,typeof e=="function")Ed(e)?(o=Zl(e,o),t.tag=1,t=Pg(null,t,e,o,l)):(t.tag=0,t=hf(null,t,e,o,l));else{if(e!=null){var d=e.$$typeof;if(d===D){t.tag=11,t=Gg(null,t,e,o,l);break e}else if(d===H){t.tag=14,t=$g(null,t,e,o,l);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return hf(e,t,t.type,t.pendingProps,l);case 1:return o=t.type,d=Zl(o,t.pendingProps),Pg(e,t,o,d,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var f=t.memoizedState;d=f.element,Hd(e,t),vo(t,o,null,l);var b=t.memoizedState;if(o=b.cache,Xa(t,ft,o),o!==f.cache&&Dd(t,[ft],l,!0),po(),o=b.element,f.isDehydrated)if(f={element:o,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=Jg(e,t,o,l);break e}else if(o!==d){d=pn(Error(i(424)),t),so(d),t=Jg(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(Ie=bn(e.firstChild),Rt=t,ze=!0,Va=null,yn=!0,l=Kv(t,null,o,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ql(),o===d){t=va(e,t,l);break e}Mt(e,t,o,l)}t=t.child}return t;case 26:return iu(e,t),e===null?(l=f0(t.type,null,t.pendingProps,null))?t.memoizedState=l:ze||(l=t.type,e=t.pendingProps,o=ju(je.current).createElement(l),o[_t]=t,o[Bt]=e,At(o,l,e),Et(o),t.stateNode=o):t.memoizedState=f0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&ze&&(o=t.stateNode=u0(t.type,t.pendingProps,je.current),Rt=t,yn=!0,d=Ie,il(t.type)?(If=d,Ie=bn(o.firstChild)):Ie=d),Mt(e,t,t.pendingProps.children,l),iu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((d=o=Ie)&&(o=YE(o,t.type,t.pendingProps,yn),o!==null?(t.stateNode=o,Rt=t,Ie=bn(o.firstChild),yn=!1,d=!0):d=!1),d||Ka(t)),Ne(t),d=t.type,f=t.pendingProps,b=e!==null?e.memoizedProps:null,o=f.children,Ff(d,f)?o=null:b!==null&&Ff(d,b)&&(t.flags|=32),t.memoizedState!==null&&(d=Kd(e,t,aE,null,null,l),Lo._currentValue=d),iu(e,t),Mt(e,t,o,l),t.child;case 6:return e===null&&ze&&((e=l=Ie)&&(l=GE(l,t.pendingProps,yn),l!==null?(t.stateNode=l,Rt=t,Ie=null,e=!0):e=!1),e||Ka(t)),null;case 13:return Wg(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Xl(t,null,o,l):Mt(e,t,o,l),t.child;case 11:return Gg(e,t,t.type,t.pendingProps,l);case 7:return Mt(e,t,t.pendingProps,l),t.child;case 8:return Mt(e,t,t.pendingProps.children,l),t.child;case 12:return Mt(e,t,t.pendingProps.children,l),t.child;case 10:return o=t.pendingProps,Xa(t,t.type,o.value),Mt(e,t,o.children,l),t.child;case 9:return d=t.type._context,o=t.pendingProps.children,Gl(t),d=Tt(d),o=o(d),t.flags|=1,Mt(e,t,o,l),t.child;case 14:return $g(e,t,t.type,t.pendingProps,l);case 15:return Vg(e,t,t.type,t.pendingProps,l);case 19:return ey(e,t,l);case 31:return dE(e,t,l);case 22:return Kg(e,t,l,t.pendingProps);case 24:return Gl(t),o=Tt(ft),e===null?(d=Ld(),d===null&&(d=We,f=Od(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=l),d=f),t.memoizedState={parent:o,cache:d},qd(t),Xa(t,ft,d)):((e.lanes&l)!==0&&(Hd(e,t),vo(t,null,null,l),po()),d=e.memoizedState,f=t.memoizedState,d.parent!==o?(d={parent:o,cache:o},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Xa(t,ft,o)):(o=f.cache,Xa(t,ft,o),o!==d.cache&&Dd(t,[ft],l,!0))),Mt(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ga(e){e.flags|=4}function wf(e,t,l,o,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(Ry())e.flags|=8192;else throw Kl=Vs,Ud}else e.flags&=-16777217}function ny(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!g0(t))if(Ry())e.flags|=8192;else throw Kl=Vs,Ud}function su(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?zp():536870912,e.lanes|=t,Jr|=t)}function So(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 et(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,o=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags&65011712,o|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,o|=d.subtreeFlags,o|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=o,e.childLanes=l,t}function hE(e,t,l){var o=t.pendingProps;switch(Rd(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return l=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ha(ft),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(qr(t)?ga(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Md())),et(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(ga(t),f!==null?(et(t),ny(t,f)):(et(t),wf(t,d,null,o,l))):f?f!==e.memoizedState?(ga(t),et(t),ny(t,f)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&ga(t),et(t),wf(t,d,e,o,l)),null;case 27:if(He(t),l=je.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ga(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return et(t),null}e=le.current,qr(t)?zv(t):(e=u0(d,o,l),t.stateNode=e,ga(t))}return et(t),null;case 5:if(He(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&ga(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return et(t),null}if(f=le.current,qr(t))zv(t);else{var b=ju(je.current);switch(f){case 1:f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=b.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof o.is=="string"?b.createElement("select",{is:o.is}):b.createElement("select"),o.multiple?f.multiple=!0:o.size&&(f.size=o.size);break;default:f=typeof o.is=="string"?b.createElement(d,{is:o.is}):b.createElement(d)}}f[_t]=t,f[Bt]=o;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)f.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=f;e:switch(At(f,d,o),d){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&ga(t)}}return et(t),wf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&ga(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=je.current,qr(t)){if(e=t.stateNode,l=t.memoizedProps,o=null,d=Rt,d!==null)switch(d.tag){case 27:case 5:o=d.memoizedProps}e[_t]=t,e=!!(e.nodeValue===l||o!==null&&o.suppressHydrationWarning===!0||Wy(e.nodeValue,l)),e||Ka(t,!0)}else e=ju(e).createTextNode(o),e[_t]=t,t.stateNode=e}return et(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(o=qr(t),l!==null){if(e===null){if(!o)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[_t]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else l=Md(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(an(t),t):(an(t),null);if((t.flags&128)!==0)throw Error(i(558))}return et(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=qr(t),o!==null&&o.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[_t]=t}else Ql(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),d=!1}else d=Md(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(an(t),t):(an(t),null)}return an(t),(t.flags&128)!==0?(t.lanes=l,t):(l=o!==null,e=e!==null&&e.memoizedState!==null,l&&(o=t.child,d=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(d=o.alternate.memoizedState.cachePool.pool),f=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(f=o.memoizedState.cachePool.pool),f!==d&&(o.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),su(t,t.updateQueue),et(t),null);case 4:return ye(),e===null&&Gf(t.stateNode.containerInfo),et(t),null;case 10:return ha(t.type),et(t),null;case 19:if(F(ut),o=t.memoizedState,o===null)return et(t),null;if(d=(t.flags&128)!==0,f=o.rendering,f===null)if(d)So(o,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Zs(e),f!==null){for(t.flags|=128,So(o,!1),e=f.updateQueue,t.updateQueue=e,su(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Mv(l,e),l=l.sibling;return ee(ut,ut.current&1|2),ze&&da(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Jt()>hu&&(t.flags|=128,d=!0,So(o,!1),t.lanes=4194304)}else{if(!d)if(e=Zs(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,su(t,e),So(o,!0),o.tail===null&&o.tailMode==="hidden"&&!f.alternate&&!ze)return et(t),null}else 2*Jt()-o.renderingStartTime>hu&&l!==536870912&&(t.flags|=128,d=!0,So(o,!1),t.lanes=4194304);o.isBackwards?(f.sibling=t.child,t.child=f):(e=o.last,e!==null?e.sibling=f:t.child=f,o.last=f)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Jt(),e.sibling=null,l=ut.current,ee(ut,d?l&1|2:l&1),ze&&da(t,o.treeForkCount),e):(et(t),null);case 22:case 23:return an(t),Gd(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(l&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),l=t.updateQueue,l!==null&&su(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==l&&(t.flags|=2048),e!==null&&F($l),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ha(ft),et(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function mE(e,t){switch(Rd(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ha(ft),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return He(t),null;case 31:if(t.memoizedState!==null){if(an(t),t.alternate===null)throw Error(i(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(an(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ql()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ut),null;case 4:return ye(),null;case 10:return ha(t.type),null;case 22:case 23:return an(t),Gd(),e!==null&&F($l),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ha(ft),null;case 25:return null;default:return null}}function ay(e,t){switch(Rd(t),t.tag){case 3:ha(ft),ye();break;case 26:case 27:case 5:He(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&an(t);break;case 13:an(t);break;case 19:F(ut);break;case 10:ha(t.type);break;case 22:case 23:an(t),Gd(),e!==null&&F($l);break;case 24:ha(ft)}}function jo(e,t){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var d=o.next;l=d;do{if((l.tag&e)===e){o=void 0;var f=l.create,b=l.inst;o=f(),b.destroy=o}l=l.next}while(l!==d)}}catch(N){Ke(t,t.return,N)}}function Ia(e,t,l){try{var o=t.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var f=d.next;o=f;do{if((o.tag&e)===e){var b=o.inst,N=b.destroy;if(N!==void 0){b.destroy=void 0,d=t;var M=l,Q=N;try{Q()}catch(Z){Ke(d,M,Z)}}}o=o.next}while(o!==f)}}catch(Z){Ke(t,t.return,Z)}}function ly(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Fv(t,l)}catch(o){Ke(e,e.return,o)}}}function ry(e,t,l){l.props=Zl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(o){Ke(e,t,o)}}function Eo(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof l=="function"?e.refCleanup=l(o):l.current=o}}catch(d){Ke(e,t,d)}}function Kn(e,t){var l=e.ref,o=e.refCleanup;if(l!==null)if(typeof o=="function")try{o()}catch(d){Ke(e,t,d)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(d){Ke(e,t,d)}else l.current=null}function iy(e){var t=e.type,l=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&o.focus();break e;case"img":l.src?o.src=l.src:l.srcSet&&(o.srcset=l.srcSet)}}catch(d){Ke(e,e.return,d)}}function Sf(e,t,l){try{var o=e.stateNode;LE(o,e.type,l,t),o[Bt]=t}catch(d){Ke(e,e.return,d)}}function oy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&il(e.type)||e.tag===4}function jf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&il(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ef(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=sa));else if(o!==4&&(o===27&&il(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Ef(e,t,l),e=e.sibling;e!==null;)Ef(e,t,l),e=e.sibling}function uu(e,t,l){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(o!==4&&(o===27&&il(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(uu(e,t,l),e=e.sibling;e!==null;)uu(e,t,l),e=e.sibling}function sy(e){var t=e.stateNode,l=e.memoizedProps;try{for(var o=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);At(t,o,l),t[_t]=e,t[Bt]=l}catch(f){Ke(e,e.return,f)}}var ya=!1,pt=!1,Nf=!1,uy=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function pE(e,t){if(e=e.containerInfo,Kf=Mu,e=wv(e),gd(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var o=l.getSelection&&l.getSelection();if(o&&o.rangeCount!==0){l=o.anchorNode;var d=o.anchorOffset,f=o.focusNode;o=o.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var b=0,N=-1,M=-1,Q=0,Z=0,J=e,Y=null;t:for(;;){for(var V;J!==l||d!==0&&J.nodeType!==3||(N=b+d),J!==f||o!==0&&J.nodeType!==3||(M=b+o),J.nodeType===3&&(b+=J.nodeValue.length),(V=J.firstChild)!==null;)Y=J,J=V;for(;;){if(J===e)break t;if(Y===l&&++Q===d&&(N=b),Y===f&&++Z===o&&(M=b),(V=J.nextSibling)!==null)break;J=Y,Y=J.parentNode}J=V}l=N===-1||M===-1?null:{start:N,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Xf={focusedElem:e,selectionRange:l},Mu=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,d=f.memoizedProps,f=f.memoizedState,o=l.stateNode;try{var fe=Zl(l.type,d);e=o.getSnapshotBeforeUpdate(fe,f),o.__reactInternalSnapshotBeforeUpdate=e}catch(Se){Ke(l,l.return,Se)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Pf(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Pf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function cy(e,t,l){var o=l.flags;switch(l.tag){case 0:case 11:case 15:ba(e,l),o&4&&jo(5,l);break;case 1:if(ba(e,l),o&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(b){Ke(l,l.return,b)}else{var d=Zl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ke(l,l.return,b)}}o&64&&ly(l),o&512&&Eo(l,l.return);break;case 3:if(ba(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{Fv(e,t)}catch(b){Ke(l,l.return,b)}}break;case 27:t===null&&o&4&&sy(l);case 26:case 5:ba(e,l),t===null&&o&4&&iy(l),o&512&&Eo(l,l.return);break;case 12:ba(e,l);break;case 31:ba(e,l),o&4&&hy(e,l);break;case 13:ba(e,l),o&4&&my(e,l),o&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=EE.bind(null,l),$E(e,l))));break;case 22:if(o=l.memoizedState!==null||ya,!o){t=t!==null&&t.memoizedState!==null||pt,d=ya;var f=pt;ya=o,(pt=t)&&!f?wa(e,l,(l.subtreeFlags&8772)!==0):ba(e,l),ya=d,pt=f}break;case 30:break;default:ba(e,l)}}function dy(e){var t=e.alternate;t!==null&&(e.alternate=null,dy(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ed(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var tt=null,Yt=!1;function xa(e,t,l){for(l=l.child;l!==null;)fy(e,t,l),l=l.sibling}function fy(e,t,l){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Xi,l)}catch{}switch(l.tag){case 26:pt||Kn(l,t),xa(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:pt||Kn(l,t);var o=tt,d=Yt;il(l.type)&&(tt=l.stateNode,Yt=!1),xa(e,t,l),Do(l.stateNode),tt=o,Yt=d;break;case 5:pt||Kn(l,t);case 6:if(o=tt,d=Yt,tt=null,xa(e,t,l),tt=o,Yt=d,tt!==null)if(Yt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(l.stateNode)}catch(f){Ke(l,t,f)}else try{tt.removeChild(l.stateNode)}catch(f){Ke(l,t,f)}break;case 18:tt!==null&&(Yt?(e=tt,l0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ri(e)):l0(tt,l.stateNode));break;case 4:o=tt,d=Yt,tt=l.stateNode.containerInfo,Yt=!0,xa(e,t,l),tt=o,Yt=d;break;case 0:case 11:case 14:case 15:Ia(2,l,t),pt||Ia(4,l,t),xa(e,t,l);break;case 1:pt||(Kn(l,t),o=l.stateNode,typeof o.componentWillUnmount=="function"&&ry(l,t,o)),xa(e,t,l);break;case 21:xa(e,t,l);break;case 22:pt=(o=pt)||l.memoizedState!==null,xa(e,t,l),pt=o;break;default:xa(e,t,l)}}function hy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ri(e)}catch(l){Ke(t,t.return,l)}}}function my(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ri(e)}catch(l){Ke(t,t.return,l)}}function vE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uy),t;default:throw Error(i(435,e.tag))}}function cu(e,t){var l=vE(e);t.forEach(function(o){if(!l.has(o)){l.add(o);var d=NE.bind(null,e,o);o.then(d,d)}})}function Gt(e,t){var l=t.deletions;if(l!==null)for(var o=0;o<l.length;o++){var d=l[o],f=e,b=t,N=b;e:for(;N!==null;){switch(N.tag){case 27:if(il(N.type)){tt=N.stateNode,Yt=!1;break e}break;case 5:tt=N.stateNode,Yt=!1;break e;case 3:case 4:tt=N.stateNode.containerInfo,Yt=!0;break e}N=N.return}if(tt===null)throw Error(i(160));fy(f,b,d),tt=null,Yt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)py(t,e),t=t.sibling}var Tn=null;function py(e,t){var l=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Gt(t,e),$t(e),o&4&&(Ia(3,e,e.return),jo(3,e),Ia(5,e,e.return));break;case 1:Gt(t,e),$t(e),o&512&&(pt||l===null||Kn(l,l.return)),o&64&&ya&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?o:l.concat(o))));break;case 26:var d=Tn;if(Gt(t,e),$t(e),o&512&&(pt||l===null||Kn(l,l.return)),o&4){var f=l!==null?l.memoizedState:null;if(o=e.memoizedState,l===null)if(o===null)if(e.stateNode===null){e:{o=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(o){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Pi]||f[_t]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(o),d.head.insertBefore(f,d.querySelector("head > title"))),At(f,o,l),f[_t]=e,Et(f),o=f;break e;case"link":var b=p0("link","href",d).get(o+(l.href||""));if(b){for(var N=0;N<b.length;N++)if(f=b[N],f.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&f.getAttribute("rel")===(l.rel==null?null:l.rel)&&f.getAttribute("title")===(l.title==null?null:l.title)&&f.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(N,1);break t}}f=d.createElement(o),At(f,o,l),d.head.appendChild(f);break;case"meta":if(b=p0("meta","content",d).get(o+(l.content||""))){for(N=0;N<b.length;N++)if(f=b[N],f.getAttribute("content")===(l.content==null?null:""+l.content)&&f.getAttribute("name")===(l.name==null?null:l.name)&&f.getAttribute("property")===(l.property==null?null:l.property)&&f.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&f.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(N,1);break t}}f=d.createElement(o),At(f,o,l),d.head.appendChild(f);break;default:throw Error(i(468,o))}f[_t]=e,Et(f),o=f}e.stateNode=o}else v0(d,e.type,e.stateNode);else e.stateNode=m0(d,o,e.memoizedProps);else f!==o?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,o===null?v0(d,e.type,e.stateNode):m0(d,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Sf(e,e.memoizedProps,l.memoizedProps)}break;case 27:Gt(t,e),$t(e),o&512&&(pt||l===null||Kn(l,l.return)),l!==null&&o&4&&Sf(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Gt(t,e),$t(e),o&512&&(pt||l===null||Kn(l,l.return)),e.flags&32){d=e.stateNode;try{Rr(d,"")}catch(fe){Ke(e,e.return,fe)}}o&4&&e.stateNode!=null&&(d=e.memoizedProps,Sf(e,d,l!==null?l.memoizedProps:d)),o&1024&&(Nf=!0);break;case 6:if(Gt(t,e),$t(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,l=e.stateNode;try{l.nodeValue=o}catch(fe){Ke(e,e.return,fe)}}break;case 3:if(Cu=null,d=Tn,Tn=Eu(t.containerInfo),Gt(t,e),Tn=d,$t(e),o&4&&l!==null&&l.memoizedState.isDehydrated)try{ri(t.containerInfo)}catch(fe){Ke(e,e.return,fe)}Nf&&(Nf=!1,vy(e));break;case 4:o=Tn,Tn=Eu(e.stateNode.containerInfo),Gt(t,e),$t(e),Tn=o;break;case 12:Gt(t,e),$t(e);break;case 31:Gt(t,e),$t(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cu(e,o)));break;case 13:Gt(t,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(fu=Jt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cu(e,o)));break;case 22:d=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,Q=ya,Z=pt;if(ya=Q||d,pt=Z||M,Gt(t,e),pt=Z,ya=Q,$t(e),o&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||M||ya||pt||Pl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){M=l=t;try{if(f=M.stateNode,d)b=f.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{N=M.stateNode;var J=M.memoizedProps.style,Y=J!=null&&J.hasOwnProperty("display")?J.display:null;N.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(fe){Ke(M,M.return,fe)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Ke(M,M.return,fe)}}}else if(t.tag===18){if(l===null){M=t;try{var V=M.stateNode;d?r0(V,!0):r0(M.stateNode,!1)}catch(fe){Ke(M,M.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(l=o.retryQueue,l!==null&&(o.retryQueue=null,cu(e,l))));break;case 19:Gt(t,e),$t(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cu(e,o)));break;case 30:break;case 21:break;default:Gt(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{for(var l,o=e.return;o!==null;){if(oy(o)){l=o;break}o=o.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var d=l.stateNode,f=jf(e);uu(e,f,d);break;case 5:var b=l.stateNode;l.flags&32&&(Rr(b,""),l.flags&=-33);var N=jf(e);uu(e,N,b);break;case 3:case 4:var M=l.stateNode.containerInfo,Q=jf(e);Ef(e,Q,M);break;default:throw Error(i(161))}}catch(Z){Ke(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vy(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vy(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ba(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)cy(e,t.alternate,t),t=t.sibling}function Pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ia(4,t,t.return),Pl(t);break;case 1:Kn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&ry(t,t.return,l),Pl(t);break;case 27:Do(t.stateNode);case 26:case 5:Kn(t,t.return),Pl(t);break;case 22:t.memoizedState===null&&Pl(t);break;case 30:Pl(t);break;default:Pl(t)}e=e.sibling}}function wa(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,d=e,f=t,b=f.flags;switch(f.tag){case 0:case 11:case 15:wa(d,f,l),jo(4,f);break;case 1:if(wa(d,f,l),o=f,d=o.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(Q){Ke(o,o.return,Q)}if(o=f,d=o.updateQueue,d!==null){var N=o.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Xv(M[d],N)}catch(Q){Ke(o,o.return,Q)}}l&&b&64&&ly(f),Eo(f,f.return);break;case 27:sy(f);case 26:case 5:wa(d,f,l),l&&o===null&&b&4&&iy(f),Eo(f,f.return);break;case 12:wa(d,f,l);break;case 31:wa(d,f,l),l&&b&4&&hy(d,f);break;case 13:wa(d,f,l),l&&b&4&&my(d,f);break;case 22:f.memoizedState===null&&wa(d,f,l),Eo(f,f.return);break;case 30:break;default:wa(d,f,l)}t=t.sibling}}function Cf(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&uo(l))}function _f(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&uo(e))}function Mn(e,t,l,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)gy(e,t,l,o),t=t.sibling}function gy(e,t,l,o){var d=t.flags;switch(t.tag){case 0:case 11:case 15:Mn(e,t,l,o),d&2048&&jo(9,t);break;case 1:Mn(e,t,l,o);break;case 3:Mn(e,t,l,o),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&uo(e)));break;case 12:if(d&2048){Mn(e,t,l,o),e=t.stateNode;try{var f=t.memoizedProps,b=f.id,N=f.onPostCommit;typeof N=="function"&&N(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Ke(t,t.return,M)}}else Mn(e,t,l,o);break;case 31:Mn(e,t,l,o);break;case 13:Mn(e,t,l,o);break;case 23:break;case 22:f=t.stateNode,b=t.alternate,t.memoizedState!==null?f._visibility&2?Mn(e,t,l,o):No(e,t):f._visibility&2?Mn(e,t,l,o):(f._visibility|=2,Fr(e,t,l,o,(t.subtreeFlags&10256)!==0||!1)),d&2048&&Cf(b,t);break;case 24:Mn(e,t,l,o),d&2048&&_f(t.alternate,t);break;default:Mn(e,t,l,o)}}function Fr(e,t,l,o,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,b=t,N=l,M=o,Q=b.flags;switch(b.tag){case 0:case 11:case 15:Fr(f,b,N,M,d),jo(8,b);break;case 23:break;case 22:var Z=b.stateNode;b.memoizedState!==null?Z._visibility&2?Fr(f,b,N,M,d):No(f,b):(Z._visibility|=2,Fr(f,b,N,M,d)),d&&Q&2048&&Cf(b.alternate,b);break;case 24:Fr(f,b,N,M,d),d&&Q&2048&&_f(b.alternate,b);break;default:Fr(f,b,N,M,d)}t=t.sibling}}function No(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,o=t,d=o.flags;switch(o.tag){case 22:No(l,o),d&2048&&Cf(o.alternate,o);break;case 24:No(l,o),d&2048&&_f(o.alternate,o);break;default:No(l,o)}t=t.sibling}}var Co=8192;function Zr(e,t,l){if(e.subtreeFlags&Co)for(e=e.child;e!==null;)yy(e,t,l),e=e.sibling}function yy(e,t,l){switch(e.tag){case 26:Zr(e,t,l),e.flags&Co&&e.memoizedState!==null&&nN(l,Tn,e.memoizedState,e.memoizedProps);break;case 5:Zr(e,t,l);break;case 3:case 4:var o=Tn;Tn=Eu(e.stateNode.containerInfo),Zr(e,t,l),Tn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Co,Co=16777216,Zr(e,t,l),Co=o):Zr(e,t,l));break;default:Zr(e,t,l)}}function xy(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 _o(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];Nt=o,wy(o,e)}xy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)by(e),e=e.sibling}function by(e){switch(e.tag){case 0:case 11:case 15:_o(e),e.flags&2048&&Ia(9,e,e.return);break;case 3:_o(e);break;case 12:_o(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,du(e)):_o(e);break;default:_o(e)}}function du(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var o=t[l];Nt=o,wy(o,e)}xy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ia(8,t,t.return),du(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,du(t));break;default:du(t)}e=e.sibling}}function wy(e,t){for(;Nt!==null;){var l=Nt;switch(l.tag){case 0:case 11:case 15:Ia(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:uo(l.memoizedState.cache)}if(o=l.child,o!==null)o.return=l,Nt=o;else e:for(l=e;Nt!==null;){o=Nt;var d=o.sibling,f=o.return;if(dy(o),o===l){Nt=null;break e}if(d!==null){d.return=f,Nt=d;break e}Nt=f}}}var gE={getCacheForType:function(e){var t=Tt(ft),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Tt(ft).controller.signal}},yE=typeof WeakMap=="function"?WeakMap:Map,Ye=0,We=null,Ae=null,De=0,Ve=0,ln=null,el=!1,Pr=!1,Rf=!1,Sa=0,it=0,tl=0,Jl=0,Tf=0,rn=0,Jr=0,Ro=null,Vt=null,Mf=!1,fu=0,Sy=0,hu=1/0,mu=null,nl=null,yt=0,al=null,Wr=null,ja=0,Af=0,kf=null,jy=null,To=0,Df=null;function on(){return(Ye&2)!==0&&De!==0?De&-De:U.T!==null?Hf():Hp()}function Ey(){if(rn===0)if((De&536870912)===0||ze){var e=Ss;Ss<<=1,(Ss&3932160)===0&&(Ss=262144),rn=e}else rn=536870912;return e=nn.current,e!==null&&(e.flags|=32),rn}function Kt(e,t,l){(e===We&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)&&(Ir(e,0),ll(e,De,rn,!1)),Zi(e,l),((Ye&2)===0||e!==We)&&(e===We&&((Ye&2)===0&&(Jl|=l),it===4&&ll(e,De,rn,!1)),Xn(e))}function Ny(e,t,l){if((Ye&6)!==0)throw Error(i(327));var o=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Fi(e,t),d=o?wE(e,t):zf(e,t,!0),f=o;do{if(d===0){Pr&&!o&&ll(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!xE(l)){d=zf(e,t,!1),f=!1;continue}if(d===2){if(f=t,e.errorRecoveryDisabledLanes&f)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var N=e;d=Ro;var M=N.current.memoizedState.isDehydrated;if(M&&(Ir(N,b).flags|=256),b=zf(N,b,!1),b!==2){if(Rf&&!M){N.errorRecoveryDisabledLanes|=f,Jl|=f,d=4;break e}f=Vt,Vt=d,f!==null&&(Vt===null?Vt=f:Vt.push.apply(Vt,f))}d=b}if(f=!1,d!==2)continue}}if(d===1){Ir(e,0),ll(e,t,0,!0);break}e:{switch(o=e,f=d,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:ll(o,t,rn,!el);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(d=fu+300-Jt(),10<d)){if(ll(o,t,rn,!el),Es(o,0,!0)!==0)break e;ja=t,o.timeoutHandle=n0(Cy.bind(null,o,l,Vt,mu,Mf,t,rn,Jl,Jr,el,f,"Throttled",-0,0),d);break e}Cy(o,l,Vt,mu,Mf,t,rn,Jl,Jr,el,f,null,-0,0)}}break}while(!0);Xn(e)}function Cy(e,t,l,o,d,f,b,N,M,Q,Z,J,Y,V){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:sa},yy(t,f,J);var fe=(f&62914560)===f?fu-Jt():(f&4194048)===f?Sy-Jt():0;if(fe=aN(J,fe),fe!==null){ja=f,e.cancelPendingCommit=fe(Oy.bind(null,e,t,f,l,o,d,b,N,M,Z,J,null,Y,V)),ll(e,f,b,!Q);return}}Oy(e,t,f,l,o,d,b,N,M)}function xE(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var o=0;o<l.length;o++){var d=l[o],f=d.getSnapshot;d=d.value;try{if(!en(f(),d))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ll(e,t,l,o){t&=~Tf,t&=~Jl,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var d=t;0<d;){var f=31-It(d),b=1<<f;o[f]=-1,d&=~b}l!==0&&Lp(e,l,t)}function pu(){return(Ye&6)===0?(Mo(0),!1):!0}function Of(){if(Ae!==null){if(Ve===0)var e=Ae.return;else e=Ae,fa=Yl=null,Zd(e),Gr=null,fo=0,e=Ae;for(;e!==null;)ay(e.alternate,e),e=e.return;Ae=null}}function Ir(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,HE(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),ja=0,Of(),We=e,Ae=l=ca(e.current,null),De=t,Ve=0,ln=null,el=!1,Pr=Fi(e,t),Rf=!1,Jr=rn=Tf=Jl=tl=it=0,Vt=Ro=null,Mf=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var d=31-It(o),f=1<<d;t|=e[d],o&=~f}return Sa=t,Ls(),l}function _y(e,t){_e=null,U.H=bo,t===Yr||t===$s?(t=Gv(),Ve=3):t===Ud?(t=Gv(),Ve=4):Ve=t===ff?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,ln=t,Ae===null&&(it=1,lu(e,pn(t,e.current)))}function Ry(){var e=nn.current;return e===null?!0:(De&4194048)===De?xn===null:(De&62914560)===De||(De&536870912)!==0?e===xn:!1}function Ty(){var e=U.H;return U.H=bo,e===null?bo:e}function My(){var e=U.A;return U.A=gE,e}function vu(){it=4,el||(De&4194048)!==De&&nn.current!==null||(Pr=!0),(tl&134217727)===0&&(Jl&134217727)===0||We===null||ll(We,De,rn,!1)}function zf(e,t,l){var o=Ye;Ye|=2;var d=Ty(),f=My();(We!==e||De!==t)&&(mu=null,Ir(e,t)),t=!1;var b=it;e:do try{if(Ve!==0&&Ae!==null){var N=Ae,M=ln;switch(Ve){case 8:Of(),b=6;break e;case 3:case 2:case 9:case 6:nn.current===null&&(t=!0);var Q=Ve;if(Ve=0,ln=null,ei(e,N,M,Q),l&&Pr){b=0;break e}break;default:Q=Ve,Ve=0,ln=null,ei(e,N,M,Q)}}bE(),b=it;break}catch(Z){_y(e,Z)}while(!0);return t&&e.shellSuspendCounter++,fa=Yl=null,Ye=o,U.H=d,U.A=f,Ae===null&&(We=null,De=0,Ls()),b}function bE(){for(;Ae!==null;)Ay(Ae)}function wE(e,t){var l=Ye;Ye|=2;var o=Ty(),d=My();We!==e||De!==t?(mu=null,hu=Jt()+500,Ir(e,t)):Pr=Fi(e,t);e:do try{if(Ve!==0&&Ae!==null){t=Ae;var f=ln;t:switch(Ve){case 1:Ve=0,ln=null,ei(e,t,f,1);break;case 2:case 9:if(Qv(f)){Ve=0,ln=null,ky(t);break}t=function(){Ve!==2&&Ve!==9||We!==e||(Ve=7),Xn(e)},f.then(t,t);break e;case 3:Ve=7;break e;case 4:Ve=5;break e;case 7:Qv(f)?(Ve=0,ln=null,ky(t)):(Ve=0,ln=null,ei(e,t,f,7));break;case 5:var b=null;switch(Ae.tag){case 26:b=Ae.memoizedState;case 5:case 27:var N=Ae;if(b?g0(b):N.stateNode.complete){Ve=0,ln=null;var M=N.sibling;if(M!==null)Ae=M;else{var Q=N.return;Q!==null?(Ae=Q,gu(Q)):Ae=null}break t}}Ve=0,ln=null,ei(e,t,f,5);break;case 6:Ve=0,ln=null,ei(e,t,f,6);break;case 8:Of(),it=6;break e;default:throw Error(i(462))}}SE();break}catch(Z){_y(e,Z)}while(!0);return fa=Yl=null,U.H=o,U.A=d,Ye=l,Ae!==null?0:(We=null,De=0,Ls(),it)}function SE(){for(;Ae!==null&&!Vj();)Ay(Ae)}function Ay(e){var t=ty(e.alternate,e,Sa);e.memoizedProps=e.pendingProps,t===null?gu(e):Ae=t}function ky(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Zg(l,t,t.pendingProps,t.type,void 0,De);break;case 11:t=Zg(l,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:Zd(t);default:ay(l,t),t=Ae=Mv(t,Sa),t=ty(l,t,Sa)}e.memoizedProps=e.pendingProps,t===null?gu(e):Ae=t}function ei(e,t,l,o){fa=Yl=null,Zd(t),Gr=null,fo=0;var d=t.return;try{if(cE(e,d,t,l,De)){it=1,lu(e,pn(l,e.current)),Ae=null;return}}catch(f){if(d!==null)throw Ae=d,f;it=1,lu(e,pn(l,e.current)),Ae=null;return}t.flags&32768?(ze||o===1?e=!0:Pr||(De&536870912)!==0?e=!1:(el=e=!0,(o===2||o===9||o===3||o===6)&&(o=nn.current,o!==null&&o.tag===13&&(o.flags|=16384))),Dy(t,e)):gu(t)}function gu(e){var t=e;do{if((t.flags&32768)!==0){Dy(t,el);return}e=t.return;var l=hE(t.alternate,t,Sa);if(l!==null){Ae=l;return}if(t=t.sibling,t!==null){Ae=t;return}Ae=t=e}while(t!==null);it===0&&(it=5)}function Dy(e,t){do{var l=mE(e.alternate,e);if(l!==null){l.flags&=32767,Ae=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){Ae=e;return}Ae=e=l}while(e!==null);it=6,Ae=null}function Oy(e,t,l,o,d,f,b,N,M){e.cancelPendingCommit=null;do yu();while(yt!==0);if((Ye&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=Sd,t2(e,l,f,b,N,M),e===We&&(Ae=We=null,De=0),Wr=t,al=e,ja=l,Af=f,kf=d,jy=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,CE(bs,function(){return Hy(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=U.T,U.T=null,d=W.p,W.p=2,b=Ye,Ye|=4;try{pE(e,t,l)}finally{Ye=b,W.p=d,U.T=o}}yt=1,zy(),Ly(),Uy()}}function zy(){if(yt===1){yt=0;var e=al,t=Wr,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 d=Ye;Ye|=4;try{py(t,e);var f=Xf,b=wv(e.containerInfo),N=f.focusedElem,M=f.selectionRange;if(b!==N&&N&&N.ownerDocument&&bv(N.ownerDocument.documentElement,N)){if(M!==null&&gd(N)){var Q=M.start,Z=M.end;if(Z===void 0&&(Z=Q),"selectionStart"in N)N.selectionStart=Q,N.selectionEnd=Math.min(Z,N.value.length);else{var J=N.ownerDocument||document,Y=J&&J.defaultView||window;if(Y.getSelection){var V=Y.getSelection(),fe=N.textContent.length,Se=Math.min(M.start,fe),Ze=M.end===void 0?Se:Math.min(M.end,fe);!V.extend&&Se>Ze&&(b=Ze,Ze=Se,Se=b);var z=xv(N,Se),O=xv(N,Ze);if(z&&O&&(V.rangeCount!==1||V.anchorNode!==z.node||V.anchorOffset!==z.offset||V.focusNode!==O.node||V.focusOffset!==O.offset)){var B=J.createRange();B.setStart(z.node,z.offset),V.removeAllRanges(),Se>Ze?(V.addRange(B),V.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),V.addRange(B))}}}}for(J=[],V=N;V=V.parentNode;)V.nodeType===1&&J.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<J.length;N++){var P=J[N];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Mu=!!Kf,Xf=Kf=null}finally{Ye=d,W.p=o,U.T=l}}e.current=t,yt=2}}function Ly(){if(yt===2){yt=0;var e=al,t=Wr,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 d=Ye;Ye|=4;try{cy(e,t.alternate,t)}finally{Ye=d,W.p=o,U.T=l}}yt=3}}function Uy(){if(yt===4||yt===3){yt=0,Kj();var e=al,t=Wr,l=ja,o=jy;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?yt=5:(yt=0,Wr=al=null,qy(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(nl=null),Wc(l),t=t.stateNode,Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(Xi,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=U.T,d=W.p,W.p=2,U.T=null;try{for(var f=e.onRecoverableError,b=0;b<o.length;b++){var N=o[b];f(N.value,{componentStack:N.stack})}}finally{U.T=t,W.p=d}}(ja&3)!==0&&yu(),Xn(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===Df?To++:(To=0,Df=e):To=0,Mo(0)}}function qy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,uo(t)))}function yu(){return zy(),Ly(),Uy(),Hy()}function Hy(){if(yt!==5)return!1;var e=al,t=Af;Af=0;var l=Wc(ja),o=U.T,d=W.p;try{W.p=32>l?32:l,U.T=null,l=kf,kf=null;var f=al,b=ja;if(yt=0,Wr=al=null,ja=0,(Ye&6)!==0)throw Error(i(331));var N=Ye;if(Ye|=4,by(f.current),gy(f,f.current,b,l),Ye=N,Mo(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(Xi,f)}catch{}return!0}finally{W.p=d,U.T=o,qy(e,t)}}function By(e,t,l){t=pn(l,t),t=df(e.stateNode,t,2),e=Pa(e,t,2),e!==null&&(Zi(e,2),Xn(e))}function Ke(e,t,l){if(e.tag===3)By(e,e,l);else for(;t!==null;){if(t.tag===3){By(t,e,l);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(nl===null||!nl.has(o))){e=pn(l,e),l=Qg(2),o=Pa(t,l,2),o!==null&&(Yg(l,o,t,e),Zi(o,2),Xn(o));break}}t=t.return}}function Lf(e,t,l){var o=e.pingCache;if(o===null){o=e.pingCache=new yE;var d=new Set;o.set(t,d)}else d=o.get(t),d===void 0&&(d=new Set,o.set(t,d));d.has(l)||(Rf=!0,d.add(l),e=jE.bind(null,e,t,l),t.then(e,e))}function jE(e,t,l){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,We===e&&(De&l)===l&&(it===4||it===3&&(De&62914560)===De&&300>Jt()-fu?(Ye&2)===0&&Ir(e,0):Tf|=l,Jr===De&&(Jr=0)),Xn(e)}function Qy(e,t){t===0&&(t=zp()),e=Hl(e,t),e!==null&&(Zi(e,t),Xn(e))}function EE(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Qy(e,l)}function NE(e,t){var l=0;switch(e.tag){case 31:case 13:var o=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),Qy(e,l)}function CE(e,t){return Fc(e,t)}var xu=null,ti=null,Uf=!1,bu=!1,qf=!1,rl=0;function Xn(e){e!==ti&&e.next===null&&(ti===null?xu=ti=e:ti=ti.next=e),bu=!0,Uf||(Uf=!0,RE())}function Mo(e,t){if(!qf&&bu){qf=!0;do for(var l=!1,o=xu;o!==null;){if(e!==0){var d=o.pendingLanes;if(d===0)var f=0;else{var b=o.suspendedLanes,N=o.pingedLanes;f=(1<<31-It(42|e)+1)-1,f&=d&~(b&~N),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Vy(o,f))}else f=De,f=Es(o,o===We?f:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(f&3)===0||Fi(o,f)||(l=!0,Vy(o,f));o=o.next}while(l);qf=!1}}function _E(){Yy()}function Yy(){bu=Uf=!1;var e=0;rl!==0&&qE()&&(e=rl);for(var t=Jt(),l=null,o=xu;o!==null;){var d=o.next,f=Gy(o,t);f===0?(o.next=null,l===null?xu=d:l.next=d,d===null&&(ti=l)):(l=o,(e!==0||(f&3)!==0)&&(bu=!0)),o=d}yt!==0&&yt!==5||Mo(e),rl!==0&&(rl=0)}function Gy(e,t){for(var l=e.suspendedLanes,o=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var b=31-It(f),N=1<<b,M=d[b];M===-1?((N&l)===0||(N&o)!==0)&&(d[b]=e2(N,t)):M<=t&&(e.expiredLanes|=N),f&=~N}if(t=We,l=De,l=Es(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,l===0||e===t&&(Ve===2||Ve===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&Zc(o),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Fi(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(o!==null&&Zc(o),Wc(l)){case 2:case 8:l=Dp;break;case 32:l=bs;break;case 268435456:l=Op;break;default:l=bs}return o=$y.bind(null,e),l=Fc(l,o),e.callbackPriority=t,e.callbackNode=l,t}return o!==null&&o!==null&&Zc(o),e.callbackPriority=2,e.callbackNode=null,2}function $y(e,t){if(yt!==0&&yt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(yu()&&e.callbackNode!==l)return null;var o=De;return o=Es(e,e===We?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(Ny(e,o,t),Gy(e,Jt()),e.callbackNode!=null&&e.callbackNode===l?$y.bind(null,e):null)}function Vy(e,t){if(yu())return null;Ny(e,t,!0)}function RE(){BE(function(){(Ye&6)!==0?Fc(kp,_E):Yy()})}function Hf(){if(rl===0){var e=Br;e===0&&(e=ws,ws<<=1,(ws&261888)===0&&(ws=256)),rl=e}return rl}function Ky(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Rs(""+e)}function Xy(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 TE(e,t,l,o,d){if(t==="submit"&&l&&l.stateNode===d){var f=Ky((d[Bt]||null).action),b=o.submitter;b&&(t=(t=b[Bt]||null)?Ky(t.formAction):b.getAttribute("formAction"),t!==null&&(f=t,b=null));var N=new ks("action","action",null,o,d);e.push({event:N,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(rl!==0){var M=b?Xy(d,b):new FormData(d);lf(l,{pending:!0,data:M,method:d.method,action:f},null,M)}}else typeof f=="function"&&(N.preventDefault(),M=b?Xy(d,b):new FormData(d),lf(l,{pending:!0,data:M,method:d.method,action:f},f,M))},currentTarget:d}]})}}for(var Bf=0;Bf<wd.length;Bf++){var Qf=wd[Bf],ME=Qf.toLowerCase(),AE=Qf[0].toUpperCase()+Qf.slice(1);Rn(ME,"on"+AE)}Rn(Ev,"onAnimationEnd"),Rn(Nv,"onAnimationIteration"),Rn(Cv,"onAnimationStart"),Rn("dblclick","onDoubleClick"),Rn("focusin","onFocus"),Rn("focusout","onBlur"),Rn(X2,"onTransitionRun"),Rn(F2,"onTransitionStart"),Rn(Z2,"onTransitionCancel"),Rn(_v,"onTransitionEnd"),Cr("onMouseEnter",["mouseout","mouseover"]),Cr("onMouseLeave",["mouseout","mouseover"]),Cr("onPointerEnter",["pointerout","pointerover"]),Cr("onPointerLeave",["pointerout","pointerover"]),zl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),zl("onBeforeInput",["compositionend","keypress","textInput","paste"]),zl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ao="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(Ao));function Fy(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var o=e[l],d=o.event;o=o.listeners;e:{var f=void 0;if(t)for(var b=o.length-1;0<=b;b--){var N=o[b],M=N.instance,Q=N.currentTarget;if(N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=Q;try{f(d)}catch(Z){zs(Z)}d.currentTarget=null,f=M}else for(b=0;b<o.length;b++){if(N=o[b],M=N.instance,Q=N.currentTarget,N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=Q;try{f(d)}catch(Z){zs(Z)}d.currentTarget=null,f=M}}}}function ke(e,t){var l=t[Ic];l===void 0&&(l=t[Ic]=new Set);var o=e+"__bubble";l.has(o)||(Zy(t,e,2,!1),l.add(o))}function Yf(e,t,l){var o=0;t&&(o|=4),Zy(l,e,o,t)}var wu="_reactListening"+Math.random().toString(36).slice(2);function Gf(e){if(!e[wu]){e[wu]=!0,Yp.forEach(function(l){l!=="selectionchange"&&(kE.has(l)||Yf(l,!1,e),Yf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[wu]||(t[wu]=!0,Yf("selectionchange",!1,t))}}function Zy(e,t,l,o){switch(E0(t)){case 2:var d=iN;break;case 8:d=oN;break;default:d=lh}l=d.bind(null,t,l,e),d=void 0,!sd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),o?d!==void 0?e.addEventListener(t,l,{capture:!0,passive:d}):e.addEventListener(t,l,!0):d!==void 0?e.addEventListener(t,l,{passive:d}):e.addEventListener(t,l,!1)}function $f(e,t,l,o,d){var f=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var N=o.stateNode.containerInfo;if(N===d)break;if(b===4)for(b=o.return;b!==null;){var M=b.tag;if((M===3||M===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;N!==null;){if(b=jr(N),b===null)return;if(M=b.tag,M===5||M===6||M===26||M===27){o=f=b;continue e}N=N.parentNode}}o=o.return}ev(function(){var Q=f,Z=id(l),J=[];e:{var Y=Rv.get(e);if(Y!==void 0){var V=ks,fe=e;switch(e){case"keypress":if(Ms(l)===0)break e;case"keydown":case"keyup":V=N2;break;case"focusin":fe="focus",V=fd;break;case"focusout":fe="blur",V=fd;break;case"beforeblur":case"afterblur":V=fd;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=av;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=h2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=R2;break;case Ev:case Nv:case Cv:V=v2;break;case _v:V=M2;break;case"scroll":case"scrollend":V=d2;break;case"wheel":V=k2;break;case"copy":case"cut":case"paste":V=y2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=rv;break;case"toggle":case"beforetoggle":V=O2}var Se=(t&4)!==0,Ze=!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=Wi(O,z),P!=null&&Se.push(ko(O,P,B))),Ze)break;O=O.return}0<Se.length&&(Y=new V(Y,fe,null,l,Z),J.push({event:Y,listeners:Se}))}}if((t&7)===0){e:{if(Y=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Y&&l!==rd&&(fe=l.relatedTarget||l.fromElement)&&(jr(fe)||fe[Sr]))break e;if((V||Y)&&(Y=Z.window===Z?Z:(Y=Z.ownerDocument)?Y.defaultView||Y.parentWindow:window,V?(fe=l.relatedTarget||l.toElement,V=Q,fe=fe?jr(fe):null,fe!==null&&(Ze=c(fe),Se=fe.tag,fe!==Ze||Se!==5&&Se!==27&&Se!==6)&&(fe=null)):(V=null,fe=Q),V!==fe)){if(Se=av,P="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(Se=rv,P="onPointerLeave",z="onPointerEnter",O="pointer"),Ze=V==null?Y:Ji(V),B=fe==null?Y:Ji(fe),Y=new Se(P,O+"leave",V,l,Z),Y.target=Ze,Y.relatedTarget=B,P=null,jr(Z)===Q&&(Se=new Se(z,O+"enter",fe,l,Z),Se.target=B,Se.relatedTarget=Ze,P=Se),Ze=P,V&&fe)t:{for(Se=DE,z=V,O=fe,B=0,P=z;P;P=Se(P))B++;P=0;for(var xe=O;xe;xe=Se(xe))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;V!==null&&Py(J,Y,V,Se,!1),fe!==null&&Ze!==null&&Py(J,Ze,fe,Se,!0)}}e:{if(Y=Q?Ji(Q):window,V=Y.nodeName&&Y.nodeName.toLowerCase(),V==="select"||V==="input"&&Y.type==="file")var Be=hv;else if(dv(Y))if(mv)Be=$2;else{Be=Y2;var ge=Q2}else V=Y.nodeName,!V||V.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?Q&&ld(Q.elementType)&&(Be=hv):Be=G2;if(Be&&(Be=Be(e,Q))){fv(J,Be,l,Z);break e}ge&&ge(e,Y,Q),e==="focusout"&&Q&&Y.type==="number"&&Q.memoizedProps.value!=null&&ad(Y,"number",Y.value)}switch(ge=Q?Ji(Q):window,e){case"focusin":(dv(ge)||ge.contentEditable==="true")&&(kr=ge,yd=Q,io=null);break;case"focusout":io=yd=kr=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,Sv(J,l,Z);break;case"selectionchange":if(K2)break;case"keydown":case"keyup":Sv(J,l,Z)}var Re;if(md)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 Ar?uv(e,l)&&(Oe="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Oe="onCompositionStart");Oe&&(iv&&l.locale!=="ko"&&(Ar||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&Ar&&(Re=tv()):(Ga=Z,ud="value"in Ga?Ga.value:Ga.textContent,Ar=!0)),ge=Su(Q,Oe),0<ge.length&&(Oe=new lv(Oe,e,null,l,Z),J.push({event:Oe,listeners:ge}),Re?Oe.data=Re:(Re=cv(l),Re!==null&&(Oe.data=Re)))),(Re=L2?U2(e,l):q2(e,l))&&(Oe=Su(Q,"onBeforeInput"),0<Oe.length&&(ge=new lv("onBeforeInput","beforeinput",null,l,Z),J.push({event:ge,listeners:Oe}),ge.data=Re)),TE(J,e,Q,l,Z)}Fy(J,t)})}function ko(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Su(e,t){for(var l=t+"Capture",o=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=Wi(e,l),d!=null&&o.unshift(ko(e,d,f)),d=Wi(e,t),d!=null&&o.push(ko(e,d,f))),e.tag===3)return o;e=e.return}return[]}function DE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Py(e,t,l,o,d){for(var f=t._reactName,b=[];l!==null&&l!==o;){var N=l,M=N.alternate,Q=N.stateNode;if(N=N.tag,M!==null&&M===o)break;N!==5&&N!==26&&N!==27||Q===null||(M=Q,d?(Q=Wi(l,f),Q!=null&&b.unshift(ko(l,Q,M))):d||(Q=Wi(l,f),Q!=null&&b.push(ko(l,Q,M)))),l=l.return}b.length!==0&&e.push({event:t,listeners:b})}var OE=/\r\n?/g,zE=/\u0000|\uFFFD/g;function Jy(e){return(typeof e=="string"?e:""+e).replace(OE,`
|
|
49
|
-
`).replace(zE,"")}function Wy(e,t){return t=Jy(t),Jy(e)===t}function Fe(e,t,l,o,d,f){switch(l){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Rr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Rr(e,""+o);break;case"className":Cs(e,"class",o);break;case"tabIndex":Cs(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Cs(e,l,o);break;case"style":Wp(e,o,f);break;case"data":if(t!=="object"){Cs(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Rs(""+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"&&Fe(e,t,"name",d.name,d,null),Fe(e,t,"formEncType",d.formEncType,d,null),Fe(e,t,"formMethod",d.formMethod,d,null),Fe(e,t,"formTarget",d.formTarget,d,null)):(Fe(e,t,"encType",d.encType,d,null),Fe(e,t,"method",d.method,d,null),Fe(e,t,"target",d.target,d,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(l);break}o=Rs(""+o),e.setAttribute(l,o);break;case"onClick":o!=null&&(e.onclick=sa);break;case"onScroll":o!=null&&ke("scroll",e);break;case"onScrollEnd":o!=null&&ke("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}l=Rs(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""+o):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":o===!0?e.setAttribute(l,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(l,o):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(l,o):e.removeAttribute(l);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(l):e.setAttribute(l,o);break;case"popover":ke("beforetoggle",e),ke("toggle",e),Ns(e,"popover",o);break;case"xlinkActuate":oa(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":oa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":oa(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":oa(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":oa(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":oa(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":oa(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":oa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":oa(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Ns(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=u2.get(l)||l,Ns(e,l,o))}}function Vf(e,t,l,o,d,f){switch(l){case"style":Wp(e,o,f);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(l=o.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof o=="string"?Rr(e,o):(typeof o=="number"||typeof o=="bigint")&&Rr(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=sa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gp.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),t=l.slice(2,d?l.length-7:void 0),f=e[Bt]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof o=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,o,d);break e}l in e?e[l]=o:o===!0?e.setAttribute(l,""):Ns(e,l,o)}}}function At(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ke("error",e),ke("load",e);var o=!1,d=!1,f;for(f in l)if(l.hasOwnProperty(f)){var b=l[f];if(b!=null)switch(f){case"src":o=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Fe(e,t,f,b,l,null)}}d&&Fe(e,t,"srcSet",l.srcSet,l,null),o&&Fe(e,t,"src",l.src,l,null);return;case"input":ke("invalid",e);var N=f=b=d=null,M=null,Q=null;for(o in l)if(l.hasOwnProperty(o)){var Z=l[o];if(Z!=null)switch(o){case"name":d=Z;break;case"type":b=Z;break;case"checked":M=Z;break;case"defaultChecked":Q=Z;break;case"value":f=Z;break;case"defaultValue":N=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Fe(e,t,o,Z,l,null)}}Fp(e,f,N,M,Q,b,d,!1);return;case"select":ke("invalid",e),o=b=f=null;for(d in l)if(l.hasOwnProperty(d)&&(N=l[d],N!=null))switch(d){case"value":f=N;break;case"defaultValue":b=N;break;case"multiple":o=N;default:Fe(e,t,d,N,l,null)}t=f,l=b,e.multiple=!!o,t!=null?_r(e,!!o,t,!1):l!=null&&_r(e,!!o,l,!0);return;case"textarea":ke("invalid",e),f=d=o=null;for(b in l)if(l.hasOwnProperty(b)&&(N=l[b],N!=null))switch(b){case"value":o=N;break;case"defaultValue":d=N;break;case"children":f=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Fe(e,t,b,N,l,null)}Pp(e,o,d,f);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(o=l[M],o!=null))switch(M){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Fe(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<Ao.length;o++)ke(Ao[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:Fe(e,t,Q,o,l,null)}return;default:if(ld(t)){for(Z in l)l.hasOwnProperty(Z)&&(o=l[Z],o!==void 0&&Vf(e,t,Z,o,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(o=l[N],o!=null&&Fe(e,t,N,o,l,null))}function LE(e,t,l,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,b=null,N=null,M=null,Q=null,Z=null;for(V in l){var J=l[V];if(l.hasOwnProperty(V)&&J!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":M=J;default:o.hasOwnProperty(V)||Fe(e,t,V,null,o,J)}}for(var Y in o){var V=o[Y];if(J=l[Y],o.hasOwnProperty(Y)&&(V!=null||J!=null))switch(Y){case"type":f=V;break;case"name":d=V;break;case"checked":Q=V;break;case"defaultChecked":Z=V;break;case"value":b=V;break;case"defaultValue":N=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:V!==J&&Fe(e,t,Y,V,o,J)}}nd(e,b,N,M,Q,Z,f,d);return;case"select":V=b=N=Y=null;for(f in l)if(M=l[f],l.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":V=M;default:o.hasOwnProperty(f)||Fe(e,t,f,null,o,M)}for(d in o)if(f=o[d],M=l[d],o.hasOwnProperty(d)&&(f!=null||M!=null))switch(d){case"value":Y=f;break;case"defaultValue":N=f;break;case"multiple":b=f;default:f!==M&&Fe(e,t,d,f,o,M)}t=N,l=b,o=V,Y!=null?_r(e,!!l,Y,!1):!!o!=!!l&&(t!=null?_r(e,!!l,t,!0):_r(e,!!l,l?[]:"",!1));return;case"textarea":V=Y=null;for(N in l)if(d=l[N],l.hasOwnProperty(N)&&d!=null&&!o.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Fe(e,t,N,null,o,d)}for(b in o)if(d=o[b],f=l[b],o.hasOwnProperty(b)&&(d!=null||f!=null))switch(b){case"value":Y=d;break;case"defaultValue":V=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==f&&Fe(e,t,b,d,o,f)}Zp(e,Y,V);return;case"option":for(var fe in l)if(Y=l[fe],l.hasOwnProperty(fe)&&Y!=null&&!o.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Fe(e,t,fe,null,o,Y)}for(M in o)if(Y=o[M],V=l[M],o.hasOwnProperty(M)&&Y!==V&&(Y!=null||V!=null))switch(M){case"selected":e.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:Fe(e,t,M,Y,o,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Se in l)Y=l[Se],l.hasOwnProperty(Se)&&Y!=null&&!o.hasOwnProperty(Se)&&Fe(e,t,Se,null,o,Y);for(Q in o)if(Y=o[Q],V=l[Q],o.hasOwnProperty(Q)&&Y!==V&&(Y!=null||V!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Fe(e,t,Q,Y,o,V)}return;default:if(ld(t)){for(var Ze in l)Y=l[Ze],l.hasOwnProperty(Ze)&&Y!==void 0&&!o.hasOwnProperty(Ze)&&Vf(e,t,Ze,void 0,o,Y);for(Z in o)Y=o[Z],V=l[Z],!o.hasOwnProperty(Z)||Y===V||Y===void 0&&V===void 0||Vf(e,t,Z,Y,o,V);return}}for(var z in l)Y=l[z],l.hasOwnProperty(z)&&Y!=null&&!o.hasOwnProperty(z)&&Fe(e,t,z,null,o,Y);for(J in o)Y=o[J],V=l[J],!o.hasOwnProperty(J)||Y===V||Y==null&&V==null||Fe(e,t,J,Y,o,V)}function Iy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function UE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),o=0;o<l.length;o++){var d=l[o],f=d.transferSize,b=d.initiatorType,N=d.duration;if(f&&N&&Iy(b)){for(b=0,N=d.responseEnd,o+=1;o<l.length;o++){var M=l[o],Q=M.startTime;if(Q>N)break;var Z=M.transferSize,J=M.initiatorType;Z&&Iy(J)&&(M=M.responseEnd,b+=Z*(M<N?1:(N-Q)/(M-Q)))}if(--o,t+=8*(f+b)/(d.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Kf=null,Xf=null;function ju(e){return e.nodeType===9?e:e.ownerDocument}function e0(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 t0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Ff(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zf=null;function qE(){var e=window.event;return e&&e.type==="popstate"?e===Zf?!1:(Zf=e,!0):(Zf=null,!1)}var n0=typeof setTimeout=="function"?setTimeout:void 0,HE=typeof clearTimeout=="function"?clearTimeout:void 0,a0=typeof Promise=="function"?Promise:void 0,BE=typeof queueMicrotask=="function"?queueMicrotask:typeof a0<"u"?function(e){return a0.resolve(null).then(e).catch(QE)}:n0;function QE(e){setTimeout(function(){throw e})}function il(e){return e==="head"}function l0(e,t){var l=t,o=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(o===0){e.removeChild(d),ri(t);return}o--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")o++;else if(l==="html")Do(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Do(l);for(var f=l.firstChild;f;){var b=f.nextSibling,N=f.nodeName;f[Pi]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=b}}else l==="body"&&Do(e.ownerDocument.body);l=d}while(l);ri(t)}function r0(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 Pf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Pf(l),ed(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function YE(e,t,l,o){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Pi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=bn(e.nextSibling),e===null)break}return null}function GE(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=bn(e.nextSibling),e===null))return null;return e}function i0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=bn(e.nextSibling),e===null))return null;return e}function Jf(e){return e.data==="$?"||e.data==="$~"}function Wf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function $E(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 bn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var If=null;function o0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return bn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function s0(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 u0(e,t,l){switch(t=ju(l),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Do(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ed(e)}var wn=new Map,c0=new Set;function Eu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ea=W.d;W.d={f:VE,r:KE,D:XE,C:FE,L:ZE,m:PE,X:WE,S:JE,M:IE};function VE(){var e=Ea.f(),t=pu();return e||t}function KE(e){var t=Er(e);t!==null&&t.tag===5&&t.type==="form"?_g(t):Ea.r(e)}var ni=typeof document>"u"?null:document;function d0(e,t,l){var o=ni;if(o&&typeof t=="string"&&t){var d=hn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),c0.has(d)||(c0.add(d),e={rel:e,crossOrigin:l,href:t},o.querySelector(d)===null&&(t=o.createElement("link"),At(t,"link",e),Et(t),o.head.appendChild(t)))}}function XE(e){Ea.D(e),d0("dns-prefetch",e,null)}function FE(e,t){Ea.C(e,t),d0("preconnect",e,t)}function ZE(e,t,l){Ea.L(e,t,l);var o=ni;if(o&&e&&t){var d='link[rel="preload"][as="'+hn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+hn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+hn(l.imageSizes)+'"]')):d+='[href="'+hn(e)+'"]';var f=d;switch(t){case"style":f=ai(e);break;case"script":f=li(e)}wn.has(f)||(e=x({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),wn.set(f,e),o.querySelector(d)!==null||t==="style"&&o.querySelector(Oo(f))||t==="script"&&o.querySelector(zo(f))||(t=o.createElement("link"),At(t,"link",e),Et(t),o.head.appendChild(t)))}}function PE(e,t){Ea.m(e,t);var l=ni;if(l&&e){var o=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+hn(o)+'"][href="'+hn(e)+'"]',f=d;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=li(e)}if(!wn.has(f)&&(e=x({rel:"modulepreload",href:e},t),wn.set(f,e),l.querySelector(d)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(zo(f)))return}o=l.createElement("link"),At(o,"link",e),Et(o),l.head.appendChild(o)}}}function JE(e,t,l){Ea.S(e,t,l);var o=ni;if(o&&e){var d=Nr(o).hoistableStyles,f=ai(e);t=t||"default";var b=d.get(f);if(!b){var N={loading:0,preload:null};if(b=o.querySelector(Oo(f)))N.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},l),(l=wn.get(f))&&eh(e,l);var M=b=o.createElement("link");Et(M),At(M,"link",e),M._p=new Promise(function(Q,Z){M.onload=Q,M.onerror=Z}),M.addEventListener("load",function(){N.loading|=1}),M.addEventListener("error",function(){N.loading|=2}),N.loading|=4,Nu(b,t,o)}b={type:"stylesheet",instance:b,count:1,state:N},d.set(f,b)}}}function WE(e,t){Ea.X(e,t);var l=ni;if(l&&e){var o=Nr(l).hoistableScripts,d=li(e),f=o.get(d);f||(f=l.querySelector(zo(d)),f||(e=x({src:e,async:!0},t),(t=wn.get(d))&&th(e,t),f=l.createElement("script"),Et(f),At(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function IE(e,t){Ea.M(e,t);var l=ni;if(l&&e){var o=Nr(l).hoistableScripts,d=li(e),f=o.get(d);f||(f=l.querySelector(zo(d)),f||(e=x({src:e,async:!0,type:"module"},t),(t=wn.get(d))&&th(e,t),f=l.createElement("script"),Et(f),At(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},o.set(d,f))}}function f0(e,t,l,o){var d=(d=je.current)?Eu(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=ai(l.href),l=Nr(d).hoistableStyles,o=l.get(t),o||(o={type:"style",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=ai(l.href);var f=Nr(d).hoistableStyles,b=f.get(e);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,b),(f=d.querySelector(Oo(e)))&&!f._p&&(b.instance=f,b.state.loading=5),wn.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},wn.set(e,l),f||eN(d,e,l,b.state))),t&&o===null)throw Error(i(528,""));return b}if(t&&o!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=li(l),l=Nr(d).hoistableScripts,o=l.get(t),o||(o={type:"script",instance:null,count:0,state:null},l.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function ai(e){return'href="'+hn(e)+'"'}function Oo(e){return'link[rel="stylesheet"]['+e+"]"}function h0(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function eN(e,t,l,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),At(t,"link",l),Et(t),e.head.appendChild(t))}function li(e){return'[src="'+hn(e)+'"]'}function zo(e){return"script[async]"+e}function m0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+hn(l.href)+'"]');if(o)return t.instance=o,Et(o),o;var d=x({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Et(o),At(o,"style",d),Nu(o,l.precedence,e),t.instance=o;case"stylesheet":d=ai(l.href);var f=e.querySelector(Oo(d));if(f)return t.state.loading|=4,t.instance=f,Et(f),f;o=h0(l),(d=wn.get(d))&&eh(o,d),f=(e.ownerDocument||e).createElement("link"),Et(f);var b=f;return b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),At(f,"link",o),t.state.loading|=4,Nu(f,l.precedence,e),t.instance=f;case"script":return f=li(l.src),(d=e.querySelector(zo(f)))?(t.instance=d,Et(d),d):(o=l,(d=wn.get(f))&&(o=x({},l),th(o,d)),e=e.ownerDocument||e,d=e.createElement("script"),Et(d),At(d,"link",o),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(o=t.instance,t.state.loading|=4,Nu(o,l.precedence,e));return t.instance}function Nu(e,t,l){for(var o=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=o.length?o[o.length-1]:null,f=d,b=0;b<o.length;b++){var N=o[b];if(N.dataset.precedence===t)f=N;else if(f!==d)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function eh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function th(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Cu=null;function p0(e,t,l){if(Cu===null){var o=new Map,d=Cu=new Map;d.set(l,o)}else d=Cu,o=d.get(l),o||(o=new Map,d.set(l,o));if(o.has(e))return o;for(o.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var f=l[d];if(!(f[Pi]||f[_t]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var b=f.getAttribute(t)||"";b=e+b;var N=o.get(b);N?N.push(f):o.set(b,[f])}}return o}function v0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function tN(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 g0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function nN(e,t,l,o){if(l.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=ai(o.href),f=t.querySelector(Oo(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=_u.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,Et(f);return}f=t.ownerDocument||t,o=h0(o),(d=wn.get(d))&&eh(o,d),f=f.createElement("link"),Et(f);var b=f;b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),At(f,"link",o),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=_u.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var nh=0;function aN(e,t){return e.stylesheets&&e.count===0&&Tu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var o=setTimeout(function(){if(e.stylesheets&&Tu(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&nh===0&&(nh=62500*UE());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Tu(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>nh?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(d)}}:null}function _u(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Tu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ru=null;function Tu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ru=new Map,t.forEach(lN,e),Ru=null,_u.call(e))}function lN(e,t){if(!(t.state.loading&4)){var l=Ru.get(e);if(l)var o=l.get(null);else{l=new Map,Ru.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var b=d[f];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),o=b)}o&&l.set(null,o)}d=t.instance,b=d.getAttribute("data-precedence"),f=l.get(b)||o,f===o&&l.set(null,d),l.set(b,d),this.count++,o=_u.bind(this),d.addEventListener("load",o),d.addEventListener("error",o),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var Lo={$$typeof:T,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function rN(e,t,l,o,d,f,b,N,M){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pc(0),this.hiddenUpdates=Pc(null),this.identifierPrefix=o,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function y0(e,t,l,o,d,f,b,N,M,Q,Z,J){return e=new rN(e,t,l,b,M,Q,Z,J,N),t=1,f===!0&&(t|=24),f=tn(3,null,null,t),e.current=f,f.stateNode=e,t=Od(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:o,isDehydrated:l,cache:t},qd(f),e}function x0(e){return e?(e=zr,e):zr}function b0(e,t,l,o,d,f){d=x0(d),o.context===null?o.context=d:o.pendingContext=d,o=Za(t),o.payload={element:l},f=f===void 0?null:f,f!==null&&(o.callback=f),l=Pa(e,o,t),l!==null&&(Kt(l,e,t),mo(l,e,t))}function w0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function ah(e,t){w0(e,t),(e=e.alternate)&&w0(e,t)}function S0(e){if(e.tag===13||e.tag===31){var t=Hl(e,67108864);t!==null&&Kt(t,e,67108864),ah(e,67108864)}}function j0(e){if(e.tag===13||e.tag===31){var t=on();t=Jc(t);var l=Hl(e,t);l!==null&&Kt(l,e,t),ah(e,t)}}var Mu=!0;function iN(e,t,l,o){var d=U.T;U.T=null;var f=W.p;try{W.p=2,lh(e,t,l,o)}finally{W.p=f,U.T=d}}function oN(e,t,l,o){var d=U.T;U.T=null;var f=W.p;try{W.p=8,lh(e,t,l,o)}finally{W.p=f,U.T=d}}function lh(e,t,l,o){if(Mu){var d=rh(o);if(d===null)$f(e,t,o,Au,l),N0(e,o);else if(uN(d,e,t,l,o))o.stopPropagation();else if(N0(e,o),t&4&&-1<sN.indexOf(e)){for(;d!==null;){var f=Er(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var b=Ol(f.pendingLanes);if(b!==0){var N=f;for(N.pendingLanes|=2,N.entangledLanes|=2;b;){var M=1<<31-It(b);N.entanglements[1]|=M,b&=~M}Xn(f),(Ye&6)===0&&(hu=Jt()+500,Mo(0))}}break;case 31:case 13:N=Hl(f,2),N!==null&&Kt(N,f,2),pu(),ah(f,2)}if(f=rh(o),f===null&&$f(e,t,o,Au,l),f===d)break;d=f}d!==null&&o.stopPropagation()}else $f(e,t,o,null,l)}}function rh(e){return e=id(e),ih(e)}var Au=null;function ih(e){if(Au=null,e=jr(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Au=e,null}function E0(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(Xj()){case kp:return 2;case Dp:return 8;case bs:case Fj:return 32;case Op:return 268435456;default:return 32}default:return 32}}var oh=!1,ol=null,sl=null,ul=null,Uo=new Map,qo=new Map,cl=[],sN="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 N0(e,t){switch(e){case"focusin":case"focusout":ol=null;break;case"dragenter":case"dragleave":sl=null;break;case"mouseover":case"mouseout":ul=null;break;case"pointerover":case"pointerout":Uo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":qo.delete(t.pointerId)}}function Ho(e,t,l,o,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:o,nativeEvent:f,targetContainers:[d]},t!==null&&(t=Er(t),t!==null&&S0(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function uN(e,t,l,o,d){switch(t){case"focusin":return ol=Ho(ol,e,t,l,o,d),!0;case"dragenter":return sl=Ho(sl,e,t,l,o,d),!0;case"mouseover":return ul=Ho(ul,e,t,l,o,d),!0;case"pointerover":var f=d.pointerId;return Uo.set(f,Ho(Uo.get(f)||null,e,t,l,o,d)),!0;case"gotpointercapture":return f=d.pointerId,qo.set(f,Ho(qo.get(f)||null,e,t,l,o,d)),!0}return!1}function C0(e){var t=jr(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Bp(e.priority,function(){j0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Bp(e.priority,function(){j0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ku(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=rh(e.nativeEvent);if(l===null){l=e.nativeEvent;var o=new l.constructor(l.type,l);rd=o,l.target.dispatchEvent(o),rd=null}else return t=Er(l),t!==null&&S0(t),e.blockedOn=l,!1;t.shift()}return!0}function _0(e,t,l){ku(e)&&l.delete(t)}function cN(){oh=!1,ol!==null&&ku(ol)&&(ol=null),sl!==null&&ku(sl)&&(sl=null),ul!==null&&ku(ul)&&(ul=null),Uo.forEach(_0),qo.forEach(_0)}function Du(e,t){e.blockedOn===t&&(e.blockedOn=null,oh||(oh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,cN)))}var Ou=null;function R0(e){Ou!==e&&(Ou=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ou===e&&(Ou=null);for(var t=0;t<e.length;t+=3){var l=e[t],o=e[t+1],d=e[t+2];if(typeof o!="function"){if(ih(o||l)===null)continue;break}var f=Er(l);f!==null&&(e.splice(t,3),t-=3,lf(f,{pending:!0,data:d,method:l.method,action:o},o,d))}}))}function ri(e){function t(M){return Du(M,e)}ol!==null&&Du(ol,e),sl!==null&&Du(sl,e),ul!==null&&Du(ul,e),Uo.forEach(t),qo.forEach(t);for(var l=0;l<cl.length;l++){var o=cl[l];o.blockedOn===e&&(o.blockedOn=null)}for(;0<cl.length&&(l=cl[0],l.blockedOn===null);)C0(l),l.blockedOn===null&&cl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(o=0;o<l.length;o+=3){var d=l[o],f=l[o+1],b=d[Bt]||null;if(typeof f=="function")b||R0(l);else if(b){var N=null;if(f&&f.hasAttribute("formAction")){if(d=f,b=f[Bt]||null)N=b.formAction;else if(ih(d)!==null)continue}else N=b.action;typeof N=="function"?l[o+1]=N:(l.splice(o,3),o-=3),R0(l)}}}function T0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(b){return d=b})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),o||setTimeout(l,20)}function l(){if(!o&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var o=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function sh(e){this._internalRoot=e}zu.prototype.render=sh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,o=on();b0(l,o,e,t,null,null)},zu.prototype.unmount=sh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;b0(e.current,2,null,e,null,null),pu(),t[Sr]=null}};function zu(e){this._internalRoot=e}zu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Hp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<cl.length&&t!==0&&t<cl[l].priority;l++);cl.splice(l,0,e),l===0&&C0(e)}};var M0=a.version;if(M0!=="19.2.3")throw Error(i(527,M0,"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 dN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Lu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Lu.isDisabled&&Lu.supportsFiber)try{Xi=Lu.inject(dN),Wt=Lu}catch{}}return Qo.createRoot=function(e,t){if(!s(e))throw Error(i(299));var l=!1,o="",d=Ug,f=qg,b=Hg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=y0(e,1,!1,null,null,l,o,null,d,f,b,T0),e[Sr]=t.current,Gf(e),new sh(t)},Qo.hydrateRoot=function(e,t,l){if(!s(e))throw Error(i(299));var o=!1,d="",f=Ug,b=qg,N=Hg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(o=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=y0(e,1,!0,t,l??null,o,d,M,f,b,N,T0),t.context=x0(null),l=t.current,o=on(),o=Jc(o),d=Za(o),d.callback=null,Pa(l,d,o),l=o,t.current.lanes=l,Zi(t,l),Xn(t),e[Sr]=t.current,Gf(e),new zu(t)},Qo.version="19.2.3",Qo}var P0;function IN(){if(P0)return hh.exports;P0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),hh.exports=WN(),hh.exports}var eC=IN(),Yo={},J0;function tC(){if(J0)return Yo;J0=1,Object.defineProperty(Yo,"__esModule",{value:!0}),Yo.parse=h,Yo.serialize=g;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,a=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,c=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,j){const E=new c,S=w.length;if(S<2)return E;const C=(j==null?void 0:j.decode)||y;let _=0;do{const 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),K=p(w,R,L),H=w.slice(L,K);if(E[H]===void 0){let q=m(w,R+1,D),G=p(w,D,q);const te=C(w.slice(q,G));E[H]=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(!x(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return _}function y(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function x(w){return s.call(w)==="[object Date]"}return Yo}tC();var W0="popstate";function nC(n={}){function a(s,c){let{pathname:h="/",search:m="",hash:p=""}=vr(s.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Zh("",{pathname:h,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(s,c){let h=s.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=s.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof c=="string"?c:Io(c))}function i(s,c){Nn(s.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return lC(a,r,i,n)}function at(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Nn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function aC(){return Math.random().toString(36).substring(2,10)}function I0(n,a){return{usr:n.state,key:n.key,idx:a}}function Zh(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?vr(a):a,state:r,key:a&&a.key||i||aC()}}function Io({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 vr(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 lC(n,a,r,i={}){let{window:s=document.defaultView,v5Compat:c=!1}=i,h=s.history,m="POP",p=null,g=y();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function y(){return(h.state||{idx:null}).idx}function x(){m="POP";let C=y(),_=C==null?null:C-g;g=C,p&&p({action:m,location:S.location,delta:_})}function w(C,_){m="PUSH";let R=Zh(S.location,C,_);r&&r(R,C),g=y()+1;let T=I0(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)}c&&p&&p({action:m,location:S.location,delta:1})}function j(C,_){m="REPLACE";let R=Zh(S.location,C,_);r&&r(R,C),g=y();let T=I0(R,g),D=S.createHref(R);h.replaceState(T,"",D),c&&p&&p({action:m,location:S.location,delta:0})}function E(C){return rC(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(W0,x),p=C,()=>{s.removeEventListener(W0,x),p=null}},createHref(C){return a(s,C)},createURL:E,encodeLocation(C){let _=E(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:j,go(C){return h.go(C)}};return S}function rC(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),at(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Io(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function jb(n,a,r="/"){return iC(n,a,r,!1)}function iC(n,a,r,i){let s=typeof a=="string"?vr(a):a,c=ka(s.pathname||"/",r);if(c==null)return null;let h=Eb(n);oC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=yC(c);m=vC(h[p],g,i)}return m}function Eb(n,a=[],r=[],i=""){let s=(c,h,m)=>{let p={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};p.relativePath.startsWith("/")&&(at(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let g=Ma([i,p.relativePath]),y=r.concat(p);c.children&&c.children.length>0&&(at(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Eb(c.children,a,y,g)),!(c.path==null&&!c.index)&&a.push({path:g,score:mC(g,c.index),routesMeta:y})};return n.forEach((c,h)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))s(c,h);else for(let p of Nb(c.path))s(c,h,p)}),a}function Nb(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,s=r.endsWith("?"),c=r.replace(/\?$/,"");if(i.length===0)return s?[c,""]:[c];let h=Nb(i.join("/")),m=[];return m.push(...h.map(p=>p===""?c:[c,p].join("/"))),s&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function oC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:pC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var sC=/^:[\w-]+$/,uC=3,cC=2,dC=1,fC=10,hC=-2,ex=n=>n==="*";function mC(n,a){let r=n.split("/"),i=r.length;return r.some(ex)&&(i+=hC),a&&(i+=cC),r.filter(s=>!ex(s)).reduce((s,c)=>s+(sC.test(c)?uC:c===""?dC:fC),i)}function pC(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 vC(n,a,r=!1){let{routesMeta:i}=n,s={},c="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,y=c==="/"?a:a.slice(c.length)||"/",x=lc({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),w=p.route;if(!x&&g&&r&&!i[i.length-1].route.index&&(x=lc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!x)return null;Object.assign(s,x.params),h.push({params:s,pathname:Ma([c,x.pathname]),pathnameBase:SC(Ma([c,x.pathnameBase])),route:w}),x.pathnameBase!=="/"&&(c=Ma([c,x.pathnameBase]))}return h}function lc(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=gC(n.path,n.caseSensitive,n.end),s=a.match(r);if(!s)return null;let c=s[0],h=c.replace(/(.)\/+$/,"$1"),m=s.slice(1);return{params:i.reduce((g,{paramName:y,isOptional:x},w)=>{if(y==="*"){let E=m[w]||"";h=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const j=m[w];return x&&!j?g[y]=void 0:g[y]=(j||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:h,pattern:n}}function gC(n,a=!1,r=!0){Nn(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 yC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Nn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function ka(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function xC(n,a="/"){let{pathname:r,search:i="",hash:s=""}=typeof n=="string"?vr(n):n;return{pathname:r?r.startsWith("/")?r:bC(r,a):a,search:jC(i),hash:EC(s)}}function bC(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 gh(n,a,r,i){return`Cannot include a '${n}' character in a manually specified \`to.${a}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wC(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Cm(n){let a=wC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function _m(n,a,r,i=!1){let s;typeof n=="string"?s=vr(n):(s={...n},at(!s.pathname||!s.pathname.includes("?"),gh("?","pathname","search",s)),at(!s.pathname||!s.pathname.includes("#"),gh("#","pathname","hash",s)),at(!s.search||!s.search.includes("#"),gh("#","search","hash",s)));let c=n===""||s.pathname==="",h=c?"/":s.pathname,m;if(h==null)m=r;else{let x=a.length-1;if(!i&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),x-=1;s.pathname=w.join("/")}m=x>=0?a[x]:"/"}let p=xC(s,m),g=h&&h!=="/"&&h.endsWith("/"),y=(c||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Ma=n=>n.join("/").replace(/\/\/+/g,"/"),SC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),jC=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,EC=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function NC(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Cb=["POST","PUT","PATCH","DELETE"];new Set(Cb);var CC=["GET",...Cb];new Set(CC);var Di=v.createContext(null);Di.displayName="DataRouter";var bc=v.createContext(null);bc.displayName="DataRouterState";var _b=v.createContext({isTransitioning:!1});_b.displayName="ViewTransition";var _C=v.createContext(new Map);_C.displayName="Fetchers";var RC=v.createContext(null);RC.displayName="Await";var Bn=v.createContext(null);Bn.displayName="Navigation";var ss=v.createContext(null);ss.displayName="Location";var Qn=v.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var Rm=v.createContext(null);Rm.displayName="RouteError";function TC(n,{relative:a}={}){at(Oi(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext(Bn),{hash:s,pathname:c,search:h}=us(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:Ma([r,c])),i.createHref({pathname:m,search:h,hash:s})}function Oi(){return v.useContext(ss)!=null}function za(){return at(Oi(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(ss).location}var Rb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Tb(n){v.useContext(Bn).static||v.useLayoutEffect(n)}function Mb(){let{isDataRoute:n}=v.useContext(Qn);return n?YC():MC()}function MC(){at(Oi(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(Di),{basename:a,navigator:r}=v.useContext(Bn),{matches:i}=v.useContext(Qn),{pathname:s}=za(),c=JSON.stringify(Cm(i)),h=v.useRef(!1);return Tb(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(Nn(h.current,Rb),!h.current)return;if(typeof p=="number"){r.go(p);return}let y=_m(p,JSON.parse(c),s,g.relative==="path");n==null&&a!=="/"&&(y.pathname=y.pathname==="/"?a:Ma([a,y.pathname])),(g.replace?r.replace:r.push)(y,g.state,g)},[a,r,c,s,n])}v.createContext(null);function Tl(){let{matches:n}=v.useContext(Qn),a=n[n.length-1];return a?a.params:{}}function us(n,{relative:a}={}){let{matches:r}=v.useContext(Qn),{pathname:i}=za(),s=JSON.stringify(Cm(r));return v.useMemo(()=>_m(n,JSON.parse(s),i,a==="path"),[n,s,i,a])}function AC(n,a){return Ab(n,a)}function Ab(n,a,r,i){var _;at(Oi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=v.useContext(Bn),{matches:c}=v.useContext(Qn),h=c[c.length-1],m=h?h.params:{},p=h?h.pathname:"/",g=h?h.pathnameBase:"/",y=h&&h.route;{let R=y&&y.path||"";kb(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 x=za(),w;if(a){let R=typeof a=="string"?vr(a):a;at(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=x;let j=w.pathname||"/",E=j;if(g!=="/"){let R=g.replace(/^\//,"").split("/");E="/"+j.replace(/^\//,"").split("/").slice(R.length).join("/")}let S=jb(n,{pathname:E});Nn(y||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Nn(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=LC(S&&S.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:Ma([g,s.encodeLocation?s.encodeLocation(R.pathname).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?g:Ma([g,s.encodeLocation?s.encodeLocation(R.pathnameBase).pathname:R.pathnameBase])})),c,r,i);return a&&C?v.createElement(ss.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},C):C}function kC(){let n=QC(),a=NC(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:c},"ErrorBoundary")," or"," ",v.createElement("code",{style:c},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},a),r?v.createElement("pre",{style:s},r):null,h)}var DC=v.createElement(kC,null),OC=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(Qn.Provider,{value:this.props.routeContext},v.createElement(Rm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zC({routeContext:n,match:a,children:r}){let i=v.useContext(Di);return i&&i.static&&i.staticContext&&(a.route.errorElement||a.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=a.route.id),v.createElement(Qn.Provider,{value:n},r)}function LC(n,a=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let s=n,c=r==null?void 0:r.errors;if(c!=null){let p=s.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);at(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,p+1))}let h=!1,m=-1;if(r)for(let p=0;p<s.length;p++){let g=s[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:y,errors:x}=r,w=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!x||x[g.route.id]===void 0);if(g.route.lazy||w){h=!0,m>=0?s=s.slice(0,m+1):s=[s[0]];break}}}return s.reduceRight((p,g,y)=>{let x,w=!1,j=null,E=null;r&&(x=c&&g.route.id?c[g.route.id]:void 0,j=g.route.errorElement||DC,h&&(m<0&&y===0?(kb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===y&&(w=!0,E=g.route.hydrateFallbackElement||null)));let S=a.concat(s.slice(0,y+1)),C=()=>{let _;return x?_=j:w?_=E:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(zC,{match:g,routeContext:{outlet:p,matches:S,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?v.createElement(OC,{location:r.location,revalidation:r.revalidation,component:j,error:x,children:C(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):C()},null)}function Tm(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function UC(n){let a=v.useContext(Di);return at(a,Tm(n)),a}function qC(n){let a=v.useContext(bc);return at(a,Tm(n)),a}function HC(n){let a=v.useContext(Qn);return at(a,Tm(n)),a}function Mm(n){let a=HC(n),r=a.matches[a.matches.length-1];return at(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function BC(){return Mm("useRouteId")}function QC(){var i;let n=v.useContext(Rm),a=qC("useRouteError"),r=Mm("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function YC(){let{router:n}=UC("useNavigate"),a=Mm("useNavigate"),r=v.useRef(!1);return Tb(()=>{r.current=!0}),v.useCallback(async(s,c={})=>{Nn(r.current,Rb),r.current&&(typeof s=="number"?n.navigate(s):await n.navigate(s,{fromRouteId:a,...c}))},[n,a])}var tx={};function kb(n,a,r){!a&&!tx[n]&&(tx[n]=!0,Nn(!1,r))}v.memo(GC);function GC({routes:n,future:a,state:r}){return Ab(n,void 0,r,a)}function fl({to:n,replace:a,state:r,relative:i}){at(Oi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=v.useContext(Bn);Nn(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext(Qn),{pathname:h}=za(),m=Mb(),p=_m(n,Cm(c),h,i==="path"),g=JSON.stringify(p);return v.useEffect(()=>{m(JSON.parse(g),{replace:a,state:r,relative:i})},[m,g,i,a,r]),null}function An(n){at(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function $C({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:s,static:c=!1}){at(!Oi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:h,navigator:s,static:c,future:{}}),[h,s,c]);typeof r=="string"&&(r=vr(r));let{pathname:p="/",search:g="",hash:y="",state:x=null,key:w="default"}=r,j=v.useMemo(()=>{let E=ka(p,h);return E==null?null:{location:{pathname:E,search:g,hash:y,state:x,key:w},navigationType:i}},[h,p,g,y,x,w,i]);return Nn(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(Bn.Provider,{value:m},v.createElement(ss.Provider,{children:a,value:j}))}function VC({children:n,location:a}){return AC(Ph(n),a)}function Ph(n,a=[]){let r=[];return v.Children.forEach(n,(i,s)=>{if(!v.isValidElement(i))return;let c=[...a,s];if(i.type===v.Fragment){r.push.apply(r,Ph(i.props.children,c));return}at(i.type===An,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),at(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(h.children=Ph(i.props.children,c)),r.push(h)}),r}var Pu="get",Ju="application/x-www-form-urlencoded";function wc(n){return n!=null&&typeof n.tagName=="string"}function KC(n){return wc(n)&&n.tagName.toLowerCase()==="button"}function XC(n){return wc(n)&&n.tagName.toLowerCase()==="form"}function FC(n){return wc(n)&&n.tagName.toLowerCase()==="input"}function ZC(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function PC(n,a){return n.button===0&&(!a||a==="_self")&&!ZC(n)}var Hu=null;function JC(){if(Hu===null)try{new FormData(document.createElement("form"),0),Hu=!1}catch{Hu=!0}return Hu}var WC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yh(n){return n!=null&&!WC.has(n)?(Nn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ju}"`),null):n}function IC(n,a){let r,i,s,c,h;if(XC(n)){let m=n.getAttribute("action");i=m?ka(m,a):null,r=n.getAttribute("method")||Pu,s=yh(n.getAttribute("enctype"))||Ju,c=new FormData(n)}else if(KC(n)||FC(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||m.getAttribute("action");if(i=p?ka(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Pu,s=yh(n.getAttribute("formenctype"))||yh(m.getAttribute("enctype"))||Ju,c=new FormData(m,n),!JC()){let{name:g,type:y,value:x}=n;if(y==="image"){let w=g?`${g}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else g&&c.append(g,x)}}else{if(wc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Pu,i=null,s=Ju,h=n}return c&&s==="text/plain"&&(h=c,c=void 0),{action:i,method:r.toLowerCase(),encType:s,formData:c,body:h}}function Am(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function e_(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 t_(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 n_(n,a,r){let i=await Promise.all(n.map(async s=>{let c=a.routes[s.route.id];if(c){let h=await e_(c,r);return h.links?h.links():[]}return[]}));return i_(i.flat(1).filter(t_).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function nx(n,a,r,i,s,c){let h=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,m=(p,g)=>{var y;return r[g].pathname!==p.pathname||((y=r[g].route.path)==null?void 0:y.endsWith("*"))&&r[g].params["*"]!==p.params["*"]};return c==="assets"?a.filter((p,g)=>h(p,g)||m(p,g)):c==="data"?a.filter((p,g)=>{var x;let y=i.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((x=r[0])==null?void 0:x.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function a_(n,a,{includeHydrateFallback:r}={}){return l_(n.map(i=>{let s=a.routes[i.route.id];if(!s)return[];let c=[s.module];return s.clientActionModule&&(c=c.concat(s.clientActionModule)),s.clientLoaderModule&&(c=c.concat(s.clientLoaderModule)),r&&s.hydrateFallbackModule&&(c=c.concat(s.hydrateFallbackModule)),s.imports&&(c=c.concat(s.imports)),c}).flat(1))}function l_(n){return[...new Set(n)]}function r_(n){let a={},r=Object.keys(n).sort();for(let i of r)a[i]=n[i];return a}function i_(n,a){let r=new Set;return new Set(a),n.reduce((i,s)=>{let c=JSON.stringify(r_(s));return r.has(c)||(r.add(c),i.push({key:c,link:s})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var o_=new Set([100,101,204,205]);function s_(n,a){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":a&&ka(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Db(){let n=v.useContext(Di);return Am(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function u_(){let n=v.useContext(bc);return Am(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var km=v.createContext(void 0);km.displayName="FrameworkContext";function Ob(){let n=v.useContext(km);return Am(n,"You must render this element inside a <HydratedRouter> element"),n}function c_(n,a){let r=v.useContext(km),[i,s]=v.useState(!1),[c,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:x}=a,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let S=_=>{_.forEach(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"?[c,w,{}]:[c,w,{onFocus:Go(m,j),onBlur:Go(p,E),onMouseEnter:Go(g,j),onMouseLeave:Go(y,E),onTouchStart:Go(x,j)}]:[!1,w,{}]}function Go(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function d_({page:n,...a}){let{router:r}=Db(),i=v.useMemo(()=>jb(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(h_,{page:n,matches:i,...a}):null}function f_(n){let{manifest:a,routeModules:r}=Ob(),[i,s]=v.useState([]);return v.useEffect(()=>{let c=!1;return n_(n,a,r).then(h=>{c||s(h)}),()=>{c=!0}},[n,a,r]),i}function h_({page:n,matches:a,...r}){let i=za(),{manifest:s,routeModules:c}=Ob(),{basename:h}=Db(),{loaderData:m,matches:p}=u_(),g=v.useMemo(()=>nx(n,a,p,s,i,"data"),[n,a,p,s,i]),y=v.useMemo(()=>nx(n,a,p,s,i,"assets"),[n,a,p,s,i]),x=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,S=!1;if(a.forEach(_=>{var T;let R=s.routes[_.route.id];!R||!R.hasLoader||(!g.some(D=>D.route.id===_.route.id)&&_.route.id in m&&((T=c[_.route.id])!=null&&T.shouldRevalidate)||R.hasClientLoader?S=!0:E.add(_.route.id))}),E.size===0)return[];let C=s_(n,h);return S&&E.size>0&&C.searchParams.set("_routes",a.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[h,m,i,s,g,a,n,c]),w=v.useMemo(()=>a_(y,s),[y,s]),j=f_(y);return v.createElement(v.Fragment,null,x.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),w.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),j.map(({key:E,link:S})=>v.createElement("link",{key:E,...S})))}function m_(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var zb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{zb&&(window.__reactRouterVersion="7.6.1")}catch{}function p_({basename:n,children:a,window:r}){let i=v.useRef();i.current==null&&(i.current=nC({window:r,v5Compat:!0}));let s=i.current,[c,h]=v.useState({action:s.action,location:s.location}),m=v.useCallback(p=>{v.startTransition(()=>h(p))},[h]);return v.useLayoutEffect(()=>s.listen(m),[s,m]),v.createElement($C,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:s})}var Lb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,sn=v.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:s,reloadDocument:c,replace:h,state:m,target:p,to:g,preventScrollReset:y,viewTransition:x,...w},j){let{basename:E}=v.useContext(Bn),S=typeof g=="string"&&Lb.test(g),C,_=!1;if(typeof g=="string"&&S&&(C=g,zb))try{let G=new URL(window.location.href),te=g.startsWith("//")?new URL(G.protocol+g):new URL(g),ue=ka(te.pathname,E);te.origin===G.origin&&ue!=null?g=ue+te.search+te.hash:_=!0}catch{Nn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let R=TC(g,{relative:s}),[T,D,L]=c_(i,w),K=x_(g,{replace:h,state:m,target:p,preventScrollReset:y,relative:s,viewTransition:x});function H(G){a&&a(G),G.defaultPrevented||K(G)}let q=v.createElement("a",{...w,...L,href:C||R,onClick:_||c?a:H,ref:m_(j,D),target:p,"data-discover":!S&&r==="render"?"true":void 0});return T&&!S?v.createElement(v.Fragment,null,q,v.createElement(d_,{page:R})):q});sn.displayName="Link";var v_=v.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:s=!1,style:c,to:h,viewTransition:m,children:p,...g},y){let x=us(h,{relative:g.relative}),w=za(),j=v.useContext(bc),{navigator:E,basename:S}=v.useContext(Bn),C=j!=null&&E_(x)&&m===!0,_=E.encodeLocation?E.encodeLocation(x).pathname:x.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=ka(T,S)||T);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=R===_||!s&&R.startsWith(_)&&R.charAt(D)==="/",K=T!=null&&(T===_||!s&&T.startsWith(_)&&T.charAt(_.length)==="/"),H={isActive:L,isPending:K,isTransitioning:C},q=L?a:void 0,G;typeof i=="function"?G=i(H):G=[i,L?"active":null,K?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof c=="function"?c(H):c;return v.createElement(sn,{...g,"aria-current":q,className:G,ref:y,style:te,to:h,viewTransition:m},typeof p=="function"?p(H):p)});v_.displayName="NavLink";var g_=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:s,state:c,method:h=Pu,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:x,...w},j)=>{let E=S_(),S=j_(m,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Lb.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:c,relative:g,preventScrollReset:y,viewTransition:x})};return v.createElement("form",{ref:j,method:C,action:S,onSubmit:i?p:R,...w,"data-discover":!_&&n==="render"?"true":void 0})});g_.displayName="Form";function y_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ub(n){let a=v.useContext(Di);return at(a,y_(n)),a}function x_(n,{target:a,replace:r,state:i,preventScrollReset:s,relative:c,viewTransition:h}={}){let m=Mb(),p=za(),g=us(n,{relative:c});return v.useCallback(y=>{if(PC(y,a)){y.preventDefault();let x=r!==void 0?r:Io(p)===Io(g);m(n,{replace:x,state:i,preventScrollReset:s,relative:c,viewTransition:h})}},[p,m,g,r,i,a,n,s,c,h])}var b_=0,w_=()=>`__${String(++b_)}__`;function S_(){let{router:n}=Ub("useSubmit"),{basename:a}=v.useContext(Bn),r=BC();return v.useCallback(async(i,s={})=>{let{action:c,method:h,encType:m,formData:p,body:g}=IC(i,a);if(s.navigate===!1){let y=s.fetcherKey||w_();await n.fetch(y,r,s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,flushSync:s.flushSync})}else await n.navigate(s.action||c,{preventScrollReset:s.preventScrollReset,formData:p,body:g,formMethod:s.method||h,formEncType:s.encType||m,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,a,r])}function j_(n,{relative:a}={}){let{basename:r}=v.useContext(Bn),i=v.useContext(Qn);at(i,"useFormAction must be used inside a RouteContext");let[s]=i.matches.slice(-1),c={...us(n||".",{relative:a})},h=za();if(n==null){c.search=h.search;let m=new URLSearchParams(c.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(x=>x).forEach(x=>m.append("index",x));let y=m.toString();c.search=y?`?${y}`:""}}return(!n||n===".")&&s.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:Ma([r,c.pathname])),Io(c)}function E_(n,a={}){let r=v.useContext(_b);at(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Ub("useViewTransitionState"),s=us(n,{relative:a.relative});if(!r.isTransitioning)return!1;let c=ka(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=ka(r.nextLocation.pathname,i)||r.nextLocation.pathname;return lc(s.pathname,h)!=null||lc(s.pathname,c)!=null}[...o_];var cs=Sb();const qb=ob(cs);/**
|
|
52
|
-
* @license lucide-react v0.488.0 - ISC
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the ISC license.
|
|
55
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/const N_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),C_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),ax=n=>{const a=C_(n);return a.charAt(0).toUpperCase()+a.slice(1)},Hb=(...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 __={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
62
|
-
* @license lucide-react v0.488.0 - ISC
|
|
63
|
-
*
|
|
64
|
-
* This source code is licensed under the ISC license.
|
|
65
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
-
*/const R_=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...__,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:Hb("lucide",s),...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
|
|
67
|
-
* @license lucide-react v0.488.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const Je=(n,a)=>{const r=v.forwardRef(({className:i,...s},c)=>v.createElement(R_,{ref:c,iconNode:a,className:Hb(`lucide-${N_(ax(n))}`,`lucide-${n}`,i),...s}));return r.displayName=ax(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 T_=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],M_=Je("archive",T_);/**
|
|
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 A_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],k_=Je("arrow-left",A_);/**
|
|
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 D_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],O_=Je("ban",D_);/**
|
|
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 z_=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],L_=Je("bell",z_);/**
|
|
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 U_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Bb=Je("chevron-down",U_);/**
|
|
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 q_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ds=Je("chevron-left",q_);/**
|
|
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 H_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],gr=Je("chevron-right",H_);/**
|
|
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 B_=[["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"}]],Q_=Je("circle-alert",B_);/**
|
|
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 Y_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],dr=Je("circle-check",Y_);/**
|
|
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 G_=[["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"}]],fs=Je("circle-x",G_);/**
|
|
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 $_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],yr=Je("clock",$_);/**
|
|
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 V_=[["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"}]],Qb=Je("columns-3",V_);/**
|
|
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 K_=[["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"}]],X_=Je("database",K_);/**
|
|
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 F_=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Z_=Je("folder-open",F_);/**
|
|
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 P_=[["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"}]],J_=Je("git-branch",P_);/**
|
|
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 W_=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],I_=Je("hard-drive",W_);/**
|
|
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 eR=[["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"}]],tR=Je("inbox",eR);/**
|
|
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 nR=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Yb=Je("info",nR);/**
|
|
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 aR=[["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"}]],Gb=Je("key",aR);/**
|
|
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 lR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Un=Je("loader-circle",lR);/**
|
|
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 rR=[["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"}]],iR=Je("mail-warning",rR);/**
|
|
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 oR=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],$b=Je("play",oR);/**
|
|
182
|
-
* @license lucide-react v0.488.0 - ISC
|
|
183
|
-
*
|
|
184
|
-
* This source code is licensed under the ISC license.
|
|
185
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
-
*/const sR=[["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"}]],Sc=Je("refresh-cw",sR);/**
|
|
187
|
-
* @license lucide-react v0.488.0 - ISC
|
|
188
|
-
*
|
|
189
|
-
* This source code is licensed under the ISC license.
|
|
190
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
-
*/const uR=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],cR=Je("repeat",uR);/**
|
|
192
|
-
* @license lucide-react v0.488.0 - ISC
|
|
193
|
-
*
|
|
194
|
-
* This source code is licensed under the ISC license.
|
|
195
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
-
*/const dR=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],fR=Je("search",dR);/**
|
|
197
|
-
* @license lucide-react v0.488.0 - ISC
|
|
198
|
-
*
|
|
199
|
-
* This source code is licensed under the ISC license.
|
|
200
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
-
*/const hR=[["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"}]],mR=Je("settings",hR);/**
|
|
202
|
-
* @license lucide-react v0.488.0 - ISC
|
|
203
|
-
*
|
|
204
|
-
* This source code is licensed under the ISC license.
|
|
205
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
-
*/const pR=[["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"}]],vR=Je("shield",pR);/**
|
|
207
|
-
* @license lucide-react v0.488.0 - ISC
|
|
208
|
-
*
|
|
209
|
-
* This source code is licensed under the ISC license.
|
|
210
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
-
*/const gR=[["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"}]],jc=Je("table",gR);function Vb(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=Vb(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function yR(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=Vb(n))&&(i&&(i+=" "),i+=a);return i}const Dm="-",xR=n=>{const a=wR(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:s=>{const c=s.split(Dm);return c[0]===""&&c.length!==1&&c.shift(),Kb(c,a)||bR(s)},getConflictingClassGroupIds:(s,c)=>{const h=r[s]||[];return c&&i[s]?[...h,...i[s]]:h}}},Kb=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],s=a.nextPart.get(i),c=s?Kb(n.slice(1),s):void 0;if(c)return c;if(a.validators.length===0)return;const h=n.join(Dm);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},lx=/^\[(.+)\]$/,bR=n=>{if(lx.test(n)){const a=lx.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},wR=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const s in r)Jh(r[s],i,s,a);return i},Jh=(n,a,r,i)=>{n.forEach(s=>{if(typeof s=="string"){const c=s===""?a:rx(a,s);c.classGroupId=r;return}if(typeof s=="function"){if(SR(s)){Jh(s(i),a,r,i);return}a.validators.push({validator:s,classGroupId:r});return}Object.entries(s).forEach(([c,h])=>{Jh(h,rx(a,c),r,i)})})},rx=(n,a)=>{let r=n;return a.split(Dm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},SR=n=>n.isThemeGetter,jR=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const s=(c,h)=>{r.set(c,h),a++,a>n&&(a=0,i=r,r=new Map)};return{get(c){let h=r.get(c);if(h!==void 0)return h;if((h=i.get(c))!==void 0)return s(c,h),h},set(c,h){r.has(c)?r.set(c,h):s(c,h)}}},Wh="!",Ih=":",ER=Ih.length,NR=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=s=>{const c=[];let h=0,m=0,p=0,g;for(let E=0;E<s.length;E++){let S=s[E];if(h===0&&m===0){if(S===Ih){c.push(s.slice(p,E)),p=E+ER;continue}if(S==="/"){g=E;continue}}S==="["?h++:S==="]"?h--:S==="("?m++:S===")"&&m--}const y=c.length===0?s:s.substring(p),x=CR(y),w=x!==y,j=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:x,maybePostfixModifierPosition:j}};if(a){const s=a+Ih,c=i;i=h=>h.startsWith(s)?c(h.substring(s.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const s=i;i=c=>r({className:c,parseClassName:s})}return i},CR=n=>n.endsWith(Wh)?n.substring(0,n.length-1):n.startsWith(Wh)?n.substring(1):n,_R=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let s=[];return r.forEach(c=>{c[0]==="["||a[c]?(i.push(...s.sort(),c),s=[]):s.push(c)}),i.push(...s.sort()),i}},RR=n=>({cache:jR(n.cacheSize),parseClassName:NR(n),sortModifiers:_R(n),...xR(n)}),TR=/\s+/,MR=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:s,sortModifiers:c}=a,h=[],m=n.trim().split(TR);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:x,modifiers:w,hasImportantModifier:j,baseClassName:E,maybePostfixModifierPosition:S}=r(y);if(x){p=y+(p.length>0?" "+p:p);continue}let C=!!S,_=i(C?E.substring(0,S):E);if(!_){if(!C){p=y+(p.length>0?" "+p:p);continue}if(_=i(E),!_){p=y+(p.length>0?" "+p:p);continue}C=!1}const R=c(w).join(":"),T=j?R+Wh:R,D=T+_;if(h.includes(D))continue;h.push(D);const L=s(_,C);for(let K=0;K<L.length;++K){const H=L[K];h.push(T+H)}p=y+(p.length>0?" "+p:p)}return p};function AR(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=Xb(a))&&(i&&(i+=" "),i+=r);return i}const Xb=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=Xb(n[i]))&&(r&&(r+=" "),r+=a);return r};function kR(n,...a){let r,i,s,c=h;function h(p){const g=a.reduce((y,x)=>x(y),n());return r=RR(g),i=r.cache.get,s=r.cache.set,c=m,m(p)}function m(p){const g=i(p);if(g)return g;const y=MR(p,r);return s(p,y),y}return function(){return c(AR.apply(null,arguments))}}const xt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},Fb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Zb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,DR=/^\d+\/\d+$/,OR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,zR=/\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$/,LR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,UR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ii=n=>DR.test(n),Me=n=>!!n&&!Number.isNaN(Number(n)),hl=n=>!!n&&Number.isInteger(Number(n)),xh=n=>n.endsWith("%")&&Me(n.slice(0,-1)),Na=n=>OR.test(n),HR=()=>!0,BR=n=>zR.test(n)&&!LR.test(n),Pb=()=>!1,QR=n=>UR.test(n),YR=n=>qR.test(n),GR=n=>!he(n)&&!me(n),$R=n=>zi(n,Ib,Pb),he=n=>Fb.test(n),Wl=n=>zi(n,e1,BR),bh=n=>zi(n,ZR,Me),ix=n=>zi(n,Jb,Pb),VR=n=>zi(n,Wb,YR),Bu=n=>zi(n,t1,QR),me=n=>Zb.test(n),$o=n=>Li(n,e1),KR=n=>Li(n,PR),ox=n=>Li(n,Jb),XR=n=>Li(n,Ib),FR=n=>Li(n,Wb),Qu=n=>Li(n,t1,!0),zi=(n,a,r)=>{const i=Fb.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},Li=(n,a,r=!1)=>{const i=Zb.exec(n);return i?i[1]?a(i[1]):r:!1},Jb=n=>n==="position"||n==="percentage",Wb=n=>n==="image"||n==="url",Ib=n=>n==="length"||n==="size"||n==="bg-size",e1=n=>n==="length",ZR=n=>n==="number",PR=n=>n==="family-name",t1=n=>n==="shadow",JR=()=>{const n=xt("color"),a=xt("font"),r=xt("text"),i=xt("font-weight"),s=xt("tracking"),c=xt("leading"),h=xt("breakpoint"),m=xt("container"),p=xt("spacing"),g=xt("radius"),y=xt("shadow"),x=xt("inset-shadow"),w=xt("text-shadow"),j=xt("drop-shadow"),E=xt("blur"),S=xt("perspective"),C=xt("aspect"),_=xt("ease"),R=xt("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(),me,he],K=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],q=()=>[me,he,p],G=()=>[ii,"full","auto",...q()],te=()=>[hl,"none","subgrid",me,he],ue=()=>["auto",{span:["full",hl,me,he]},hl,me,he],ce=()=>[hl,"auto",me,he],I=()=>["auto","min","max","fr",me,he],ie=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],U=()=>["auto",...q()],W=()=>[ii,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],$=()=>[n,me,he],X=()=>[...D(),ox,ix,{position:[me,he]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],A=()=>["auto","cover","contain",XR,$R,{size:[me,he]}],F=()=>[xh,$o,Wl],ee=()=>["","none","full",g,me,he],le=()=>["",Me,$o,Wl],ve=()=>["solid","dashed","dotted","double"],je=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Me,xh,ox,ix],Ee=()=>["","none",E,me,he],ye=()=>["none",Me,me,he],Ne=()=>["none",Me,me,he],He=()=>[Me,me,he],$e=()=>[ii,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Na],breakpoint:[Na],color:[HR],container:[Na],"drop-shadow":[Na],ease:["in","out","in-out"],font:[GR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Na],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Na],shadow:[Na],spacing:["px",Me],text:[Na],"text-shadow":[Na],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ii,he,me,C]}],container:["container"],columns:[{columns:[Me,he,me,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:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[hl,"auto",me,he]}],basis:[{basis:[ii,"full","auto",m,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,ii,"auto","initial","none",he]}],grow:[{grow:["",Me,me,he]}],shrink:[{shrink:["",Me,me,he]}],order:[{order:[hl,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":I()}],"auto-rows":[{"auto-rows":I()}],gap:[{gap:q()}],"gap-x":[{"gap-x":q()}],"gap-y":[{"gap-y":q()}],"justify-content":[{justify:[...ie(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...ie()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":ie()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:q()}],px:[{px:q()}],py:[{py:q()}],ps:[{ps:q()}],pe:[{pe:q()}],pt:[{pt:q()}],pr:[{pr:q()}],pb:[{pb:q()}],pl:[{pl:q()}],m:[{m:U()}],mx:[{mx:U()}],my:[{my:U()}],ms:[{ms:U()}],me:[{me:U()}],mt:[{mt:U()}],mr:[{mr:U()}],mb:[{mb:U()}],ml:[{ml:U()}],"space-x":[{"space-x":q()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":q()}],"space-y-reverse":["space-y-reverse"],size:[{size:W()}],w:[{w:[m,"screen",...W()]}],"min-w":[{"min-w":[m,"screen","none",...W()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...W()]}],h:[{h:["screen",...W()]}],"min-h":[{"min-h":["screen","none",...W()]}],"max-h":[{"max-h":["screen",...W()]}],"font-size":[{text:["base",r,$o,Wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,me,bh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",xh,he]}],"font-family":[{font:[KR,he,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,me,he]}],"line-clamp":[{"line-clamp":[Me,"none",me,bh]}],leading:[{leading:[c,...q()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",me,Wl]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Me,"auto",me,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:q()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",me,he]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",me,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:X()}],"bg-repeat":[{bg:de()}],"bg-size":[{bg:A()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},hl,me,he],radial:["",me,he],conic:[hl,me,he]},FR,VR]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],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:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,me,he]}],"outline-w":[{outline:["",Me,$o,Wl]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",y,Qu,Bu]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",x,Qu,Bu]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Me,Wl]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",w,Qu,Bu]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Me,me,he]}],"mix-blend":[{"mix-blend":[...je(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":je()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"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":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"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":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"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":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"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":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"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":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"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":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:A()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:Ee()}],brightness:[{brightness:[Me,me,he]}],contrast:[{contrast:[Me,me,he]}],"drop-shadow":[{"drop-shadow":["","none",j,Qu,Bu]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Me,me,he]}],"hue-rotate":[{"hue-rotate":[Me,me,he]}],invert:[{invert:["",Me,me,he]}],saturate:[{saturate:[Me,me,he]}],sepia:[{sepia:["",Me,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Me,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[Me,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,me,he]}],"backdrop-invert":[{"backdrop-invert":["",Me,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[Me,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[Me,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,me,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":q()}],"border-spacing-x":[{"border-spacing-x":q()}],"border-spacing-y":[{"border-spacing-y":q()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",me,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Me,"initial",me,he]}],ease:[{ease:["linear","initial",_,me,he]}],delay:[{delay:[Me,me,he]}],animate:[{animate:["none",R,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,me,he]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,he]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[Me,$o,Wl,bh]}],stroke:[{stroke:["none",...$()]}],"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"]}},WR=kR(JR);function pe(...n){return WR(yR(n))}function Zo(n){return n===null?"-":n<1e3?`${String(n)}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const IR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},eT={sm:"dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]",md:"dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]",lg:"dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]"};function rc({children:n,className:a,rounded:r="lg",shadow:i="md",...s}){return u.jsxs("div",{"data-slot":"glass-container",className:pe("relative","bg-card","backdrop-blur-xl","border border-border",IR[r],eT[i],a),...s,children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none dark:block hidden",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 pointer-events-none block dark:hidden",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"relative z-10",children:n})]})}function wt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...s}){return u.jsx(rc,{"data-slot":"card",rounded:a,shadow:r,className:pe("p-6",n),...s,children:i})}function kt({className:n,...a}){return u.jsx("div",{"data-slot":"card-header",className:pe("flex flex-row items-center justify-between space-y-0 pb-2",n),...a})}function Dt({className:n,...a}){return u.jsx("h3",{"data-slot":"card-title",className:pe("font-semibold text-sm leading-none text-card-foreground",n),...a})}function Zt({className:n,...a}){return u.jsx("p",{"data-slot":"card-description",className:pe("text-muted-foreground text-sm",n),...a})}function St({className:n,...a}){return u.jsx("div",{"data-slot":"card-content",className:pe(n),...a})}/**
|
|
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 tT=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),nT=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),sx=n=>{const a=nT(n);return a.charAt(0).toUpperCase()+a.slice(1)},n1=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),aT=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
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
|
-
*/var lT={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"};/**
|
|
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 rT=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:s="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...lT,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:n1("lucide",s),...!c&&!aT(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,y])=>v.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
|
|
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 Yn=(n,a)=>{const r=v.forwardRef(({className:i,...s},c)=>v.createElement(rT,{ref:c,iconNode:a,className:n1(`lucide-${tT(sx(n))}`,`lucide-${n}`,i),...s}));return r.displayName=sx(n),r};/**
|
|
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 iT=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],a1=Yn("check",iT);/**
|
|
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 oT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],sT=Yn("chevron-down",oT);/**
|
|
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 uT=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ux=Yn("chevron-left",uT);/**
|
|
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 cT=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],cx=Yn("chevron-right",cT);/**
|
|
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 dT=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],fT=Yn("chevron-up",dT);/**
|
|
257
|
-
* @license lucide-react v0.511.0 - ISC
|
|
258
|
-
*
|
|
259
|
-
* This source code is licensed under the ISC license.
|
|
260
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
261
|
-
*/const hT=[["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"}]],mT=Yn("clipboard",hT);/**
|
|
262
|
-
* @license lucide-react v0.511.0 - ISC
|
|
263
|
-
*
|
|
264
|
-
* This source code is licensed under the ISC license.
|
|
265
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
266
|
-
*/const pT=[["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"}]],vT=Yn("file-json",pT);/**
|
|
267
|
-
* @license lucide-react v0.511.0 - ISC
|
|
268
|
-
*
|
|
269
|
-
* This source code is licensed under the ISC license.
|
|
270
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
271
|
-
*/const gT=[["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"}]],yT=Yn("file-spreadsheet",gT);/**
|
|
272
|
-
* @license lucide-react v0.511.0 - ISC
|
|
273
|
-
*
|
|
274
|
-
* This source code is licensed under the ISC license.
|
|
275
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
276
|
-
*/const xT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],bT=Yn("loader-circle",xT);/**
|
|
277
|
-
* @license lucide-react v0.511.0 - ISC
|
|
278
|
-
*
|
|
279
|
-
* This source code is licensed under the ISC license.
|
|
280
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
281
|
-
*/const wT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ST=Yn("search",wT);/**
|
|
282
|
-
* @license lucide-react v0.511.0 - ISC
|
|
283
|
-
*
|
|
284
|
-
* This source code is licensed under the ISC license.
|
|
285
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
286
|
-
*/const jT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ET=Yn("x",jT);function NT(n){const a=Math.floor((new Date().getTime()-n.getTime())/1e3);return a<5?"just now":a<60?`${String(a)}s ago`:a<3600?`${String(Math.floor(a/60))}m ago`:a<86400?`${String(Math.floor(a/3600))}h ago`:a<604800?`${String(Math.floor(a/86400))}d ago`:n.toLocaleDateString()}function wh({value:n}){const[a,r]=v.useState(!1);return u.jsx("button",{onClick:i=>{i.stopPropagation(),navigator.clipboard.writeText(n).then(()=>{r(!0),setTimeout(()=>{r(!1)},2e3)}).catch(()=>{const s=document.createElement("textarea");s.value=n,document.body.appendChild(s),s.select();try{document.execCommand("copy")}catch{}document.body.removeChild(s),r(!0),setTimeout(()=>{r(!1)},2e3)})},className:pe("p-1 rounded transition-colors flex-shrink-0",a?"text-green-500":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"),title:a?"Copied!":"Copy to clipboard",children:a?u.jsx(a1,{className:"w-3 h-3"}):u.jsx(mT,{className:"w-3 h-3"})})}function Ln({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[s,c]=v.useState(!1),[,h]=v.useState(0),m=i||s;if(v.useEffect(()=>{const w=setInterval(()=>{h(j=>j+1)},1e3);return()=>{clearInterval(w)}},[]),!n)return null;let p;typeof n=="number"?p=new Date(n<1e10?n*1e3:n):p=new Date(n);const g=p.toISOString(),y=p.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),x=NT(p);return u.jsxs("div",{className:pe("relative inline-block",a),onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[u.jsx("time",{dateTime:g,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:x}),u.jsx("div",{className:pe("absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-[9999] w-72","transition-all duration-200 ease-out origin-bottom",m?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:u.jsx(rc,{rounded:"lg",shadow:"lg",className:"p-3 text-xs !bg-white dark:!bg-gray-900 !backdrop-blur-none",children:u.jsxs("div",{className:"space-y-2.5",children:[r!==void 0&&u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Raw Value"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:typeof r=="object"?JSON.stringify(r):String(r)}),u.jsx(wh,{value:typeof r=="object"?JSON.stringify(r):String(r)})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"UTC ISO"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"font-mono text-gray-700 dark:text-gray-200 break-all leading-tight",children:g}),u.jsx(wh,{value:g})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:y}),u.jsx(wh,{value:y})]})]})]})})})]})}function CT(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function _T(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 RT(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function TT(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&RT(n)?"date":typeof i=="number"?"number":_T(i)?"date":"string"}return"string"}function l1({results:n,meta:a,columns:r,error:i,title:s="Results",pageSize:c=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const[g,y]=v.useState(""),[x,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:TT(I,n)}))),[r,n]),L=v.useMemo(()=>g?n.filter(I=>Object.values(I).some(ie=>String(ie).toLowerCase().includes(g.toLowerCase()))):n,[n,g]),K=v.useMemo(()=>x?[...L].sort((I,ie)=>{const re=I[x.key],U=ie[x.key];return re==null?1:U==null?-1:re<U?x.direction==="asc"?-1:1:re>U?x.direction==="asc"?1:-1:0}):L,[L,x]),H=Math.ceil(K.length/c),q=v.useMemo(()=>{const I=(S-1)*c;return K.slice(I,I+c)},[K,S,c]);v.useMemo(()=>{C(1)},[g,x]);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===q.length?E(new Set):E(new Set(q.map((I,ie)=>ie)))},ue=I=>{const ie=new Set(j);ie.has(I)?ie.delete(I):ie.add(I),E(ie)},ce=(I,ie)=>{const re=I[ie.key];if(re==null)return u.jsx("span",{className:"text-xs italic dark:text-gray-600 text-gray-400",children:"NULL"});switch(ie.type??"string"){case"bool":return re===!0?u.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:u.jsx(a1,{className:"w-3.5 h-3.5"})}):u.jsx("div",{className:"flex items-center justify-center w-6 h-6 rounded-full dark:bg-white/[0.06] bg-black/[0.04] dark:text-gray-300 text-gray-700",children:u.jsx(ET,{className:"w-3.5 h-3.5"})});case"date":return u.jsx(Ln,{timestamp:re,rawValue:typeof re=="number"?re:void 0});case"number":return u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof re=="number"?re.toLocaleString():JSON.stringify(re)});default:return typeof re=="object"?u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(re)}):u.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:typeof re=="object"?JSON.stringify(re):String(re)})}};return i?u.jsxs(rc,{rounded:"2xl",shadow:"lg",className:"border-red-500/30 dark:border-red-500/20",children:[u.jsx("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200",children:u.jsx("h2",{className:"text-lg font-semibold text-red-500",children:"Query Error"})}),u.jsx("div",{className:"p-5",children:u.jsx("p",{className:"font-mono text-sm text-red-500",children:i})})]}):u.jsxs(rc,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[u.jsxs("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:s}),a&&u.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-green-500/10 text-green-600 dark:text-green-400 border border-green-500/20",children:CT(a.duration)}),u.jsxs("span",{className:"text-sm dark:text-gray-500 text-gray-500",children:[n.length," row",n.length!==1?"s":""]})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("div",{className:"relative group",children:[u.jsx(ST,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400 group-focus-within:text-blue-500 transition-colors"}),u.jsx("input",{type:"text",placeholder:"Search results...",value:g,onChange:I=>{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)&&u.jsxs("div",{className:"flex items-center gap-2 border-l dark:border-white/[0.08] border-gray-200 pl-3 ml-1",children:[h&&u.jsx("button",{onClick:h,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export CSV",children:u.jsx(yT,{className:"w-4 h-4"})}),m&&u.jsx("button",{onClick:m,className:"p-2 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] text-gray-500 dark:text-gray-400 transition-colors",title:"Export JSON",children:u.jsx(vT,{className:"w-4 h-4"})})]})]})]}),u.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:u.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[u.jsx("th",{className:"p-4 w-12",children:u.jsx("input",{type:"checkbox",checked:j.size===q.length&&q.length>0,onChange:te,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(I=>u.jsx("th",{className:"p-4 text-xs font-semibold uppercase tracking-wider text-gray-500 dark:text-gray-400 cursor-pointer hover:text-blue-500 dark:hover:text-blue-400 transition-colors select-none group",onClick:()=>{G(I.key)},children:u.jsxs("div",{className:"flex items-center gap-1",children:[I.label,u.jsxs("div",{className:pe("flex flex-col opacity-0 group-hover:opacity-50",(x==null?void 0:x.key)===I.key&&"opacity-100"),children:[u.jsx(fT,{className:pe("w-2 h-2",(x==null?void 0:x.key)===I.key&&x.direction==="asc"&&"text-blue-500")}),u.jsx(sT,{className:pe("w-2 h-2",(x==null?void 0:x.key)===I.key&&x.direction==="desc"&&"text-blue-500")})]})]})},I.key))]})}),u.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:q.length>0?q.map((I,ie)=>u.jsxs("tr",{className:pe("group transition-colors",j.has(ie)?"bg-blue-50/50 dark:bg-blue-500/10":"hover:bg-gray-50 dark:hover:bg-white/[0.02]"),children:[u.jsx("td",{className:"p-4",children:u.jsx("input",{type:"checkbox",checked:j.has(ie),onChange:()=>{ue(ie)},className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(re=>u.jsx("td",{className:"p-4 whitespace-nowrap",children:ce(I,re)},`${String(ie)}-${re.key}`))]},ie)):u.jsx("tr",{children:u.jsx("td",{colSpan:D.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:g?`No results found matching "${g}"`:"Query executed successfully. No rows returned."})})})]})}),u.jsxs("div",{className:"p-4 border-t dark:border-white/[0.08] border-gray-200 flex items-center justify-between text-xs text-gray-500 dark:text-gray-400",children:[u.jsxs("div",{children:[_?u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+n.length,p.total)})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:q.length})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:K.length})," ","results"]}),j.size>0&&u.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[j.size," row",j.size!==1?"s":""," ","selected"]})]}),_&&T>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{p.onPageChange(Math.max(0,p.offset-p.limit))},disabled:R===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(ux,{className:"w-4 h-4"})}),u.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,u.jsx("button",{onClick:()=>{p.onPageChange((re-1)*p.limit)},className:pe("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)})}),u.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:u.jsx(cx,{className:"w-4 h-4"})})]}),!_&&H>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{C(I=>Math.max(1,I-1))},disabled: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:u.jsx(ux,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(H,5)},(I,ie)=>{let re;return H<=5||S<=3?re=ie+1:S>=H-2?re=H-4+ie:re=S-2+ie,u.jsx("button",{onClick:()=>{C(re)},className:pe("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)})}),u.jsx("button",{onClick:()=>{C(I=>Math.min(H,I+1))},disabled:S===H,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(cx,{className:"w-4 h-4"})})]})]})]})}function La({className:n,...a}){return u.jsx("table",{"data-slot":"table",className:pe("w-full caption-bottom text-sm",n),...a})}function Ua({className:n,...a}){return u.jsx("thead",{"data-slot":"table-header",className:pe("[&_tr]:border-b",n),...a})}function qa({className:n,...a}){return u.jsx("tbody",{"data-slot":"table-body",className:pe("[&_tr:last-child]:border-0",n),...a})}function Ct({className:n,...a}){return u.jsx("tr",{"data-slot":"table-row",className:pe("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function Ue({className:n,...a}){return u.jsx("th",{"data-slot":"table-head",className:pe("text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function qe({className:n,...a}){return u.jsx("td",{"data-slot":"table-cell",className:pe("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function dx(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function hs(...n){return a=>{let r=!1;const i=n.map(s=>{const c=dx(s,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let s=0;s<i.length;s++){const c=i[s];typeof c=="function"?c():dx(n[s],null)}}}}function we(...n){return v.useCallback(hs(...n),n)}function fr(n){const a=MT(n),r=v.forwardRef((i,s)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(AT);if(p){const g=p.props.children,y=m.map(x=>x===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:x);return u.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return u.jsx(a,{...h,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}var fx=fr("Slot");function MT(n){const a=v.forwardRef((r,i)=>{const{children:s,...c}=r;if(v.isValidElement(s)){const h=DT(s),m=kT(c,s.props);return s.type!==v.Fragment&&(m.ref=i?hs(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 r1=Symbol("radix.slottable");function i1(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=r1,a}function AT(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===r1}function kT(n,a){const r={...a};for(const i in a){const s=n[i],c=a[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...h)=>{const m=c(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function DT(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 o1(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=o1(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function OT(){for(var n,a,r=0,i="",s=arguments.length;r<s;r++)(n=arguments[r])&&(a=o1(n))&&(i&&(i+=" "),i+=a);return i}const hx=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,mx=OT,s1=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return mx(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:s,defaultVariants:c}=a,h=Object.keys(s).map(g=>{const y=r==null?void 0:r[g],x=c==null?void 0:c[g];if(y===null)return null;const w=hx(y)||hx(x);return s[g][w]}),m=r&&Object.entries(r).reduce((g,y)=>{let[x,w]=y;return w===void 0||(g[x]=w),g},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,y)=>{let{class:x,className:w,...j}=y;return Object.entries(j).every(E=>{let[S,C]=E;return Array.isArray(C)?C.includes({...c,...m}[S]):{...c,...m}[S]===C})?[...g,x,w]:g},[]);return mx(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},zT={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 _i({className:n,icon:a,variant:r="default",children:i,...s}){return u.jsxs("div",{className:pe("inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg border [&_svg]:w-3 [&_svg]:h-3",zT[r],n),...s,children:[a&&u.jsx("span",{className:"flex-shrink-0",children:a}),u.jsx("span",{className:"leading-none",children:i})]})}const px=s1("relative inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all duration-200 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-offset-transparent dark:focus-visible:ring-white/20 focus-visible:ring-black/10 cursor-pointer overflow-hidden",{variants:{variant:{default:"rounded-md bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",primary:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-white/[0.08] bg-black/[0.05]","dark:border-white/[0.1] border-black/[0.1]","dark:text-white text-gray-900","dark:hover:bg-white/[0.15] hover:bg-black/[0.1]","dark:hover:border-white/[0.2] hover:border-black/[0.2]"),secondary:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.05] hover:bg-black/[0.04]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.15] hover:border-gray-300"),destructive:"rounded-md bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",danger:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-red-500/[0.1] bg-red-500/[0.05]","dark:border-red-500/[0.2] border-red-500/[0.2]","dark:text-red-400 text-red-600","dark:hover:bg-red-500/[0.2] hover:bg-red-500/[0.1]","dark:hover:border-red-500/[0.3] hover:border-red-500/[0.3]"),success:pe("rounded-lg border backdrop-blur-xl","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-emerald-500/[0.1] bg-emerald-500/[0.05]","dark:border-emerald-500/[0.2] border-emerald-500/[0.2]","dark:text-emerald-400 text-emerald-600","dark:hover:bg-emerald-500/[0.2] hover:bg-emerald-500/[0.1]","dark:hover:border-emerald-500/[0.3] hover:border-emerald-500/[0.3]"),outline:"rounded-md border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",ghost:pe("rounded-lg border border-transparent","dark:text-gray-400 text-gray-600","dark:hover:text-white hover:text-gray-900","dark:hover:bg-white/[0.08] hover:bg-black/[0.06]"),link:"text-primary underline-offset-4 hover:underline",icon:pe("rounded-full border backdrop-blur-xl","dark:shadow-[0_1px_4px_rgba(0,0,0,0.3)] shadow-[0_1px_2px_rgba(0,0,0,0.04)]","dark:bg-white/[0.06] bg-black/[0.04]","dark:border-white/[0.08] border-black/[0.08]","dark:text-gray-300 text-gray-700","dark:hover:bg-white/[0.12] hover:bg-black/[0.08]","dark:hover:text-white hover:text-gray-900","dark:hover:border-white/[0.2] hover:border-black/[0.15]")},size:{default:"h-9 px-4 py-2 text-sm has-[>svg]:px-3",sm:"h-8 px-3 text-xs has-[>svg]:px-2.5",md:"h-10 px-4 text-sm has-[>svg]:px-3",lg:"h-12 px-6 text-base has-[>svg]:px-4",icon:"size-8 p-0 [&_svg]:size-4","icon-sm":"size-8 p-0 [&_svg]:size-4","icon-md":"size-10 p-0 [&_svg]:size-5","icon-lg":"size-12 p-0 [&_svg]:size-6"}},defaultVariants:{variant:"default",size:"default"}}),LT=["primary","secondary","danger","success","icon"];function Pe({className:n,variant:a,size:r,asChild:i=!1,isLoading:s=!1,children:c,disabled:h,...m}){const p=i?fx:"button",g=a&<.includes(a);return i?u.jsx(fx,{"data-slot":"button",className:pe(px({variant:a,size:r,className:n})),...m,children:c}):u.jsxs(p,{"data-slot":"button",className:pe(px({variant:a,size:r,className:n})),disabled:h===!0||s,...m,children:[g&&u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),u.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[s&&u.jsx(bT,{className:"size-4 animate-spin"}),c]})]})}const u1=({ref:n,className:a,active:r=!1,icon:i,children:s,"data-state":c,...h})=>{const m=r||c==="active";return u.jsxs("button",{ref:n,"data-slot":"tab-button","data-state":c,className:pe("group relative flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors duration-200 cursor-pointer","dark:text-gray-400 text-gray-600 dark:hover:text-white hover:text-gray-900",m&&"dark:text-white text-gray-900",a),...h,children:[i&&u.jsx(i,{className:"size-4"}),s,u.jsx("span",{className:pe("absolute bottom-0 left-0 right-0 h-[2px]","bg-gradient-to-r from-transparent dark:via-white/60 via-black/60 to-transparent","transition-transform duration-300",m?"scale-x-100":"scale-x-0")})]})};u1.displayName="TabButton";const UT={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function c1({className:n,label:a,error:r,leftIcon:i,rightContent:s,inputSize:c="md",...h}){return u.jsxs("div",{className:"w-full",children:[a&&u.jsx("label",{className:"block text-sm font-medium dark:text-white text-gray-900 mb-2",children:a}),u.jsx("div",{className:"relative",children:u.jsxs("div",{className:pe("relative flex items-center overflow-hidden","border backdrop-blur-xl rounded-lg","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","transition-all duration-200","focus-within:dark:border-white/[0.15] focus-within:border-gray-300",r&&"dark:border-red-500/[0.3] border-red-500",n),children:[u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),i&&u.jsx("div",{className:"relative z-10 pl-4",children:u.jsx(i,{className:"w-4 h-4 dark:text-gray-400 text-gray-600 flex-shrink-0"})}),u.jsx("input",{className:pe("relative z-10 flex-1 bg-transparent border-0 outline-none","dark:text-white text-gray-900","dark:placeholder:text-gray-500 placeholder:text-gray-400","disabled:opacity-50 disabled:cursor-not-allowed",UT[c],i&&"pl-2",s!==null&&"pr-2"),...h}),s&&u.jsx("div",{className:"relative z-10 pr-3",children:s})]})}),r&&u.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var qT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],oe=qT.reduce((n,a)=>{const r=fr(`Primitive.${a}`),i=v.forwardRef((s,c)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function ic(n,a){n&&cs.flushSync(()=>n.dispatchEvent(a))}var lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function HT(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var jt=n=>{const{present:a,children:r}=n,i=BT(a),s=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),c=we(i.ref,QT(s));return typeof r=="function"||i.isPresent?v.cloneElement(s,{ref:c}):null};jt.displayName="Presence";function BT(n){const[a,r]=v.useState(),i=v.useRef(null),s=v.useRef(n),c=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=HT(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Yu(i.current);c.current=m==="mounted"?g:"none"},[m]),lt(()=>{const g=i.current,y=s.current;if(y!==n){const x=c.current,w=Yu(g);n?p("MOUNT"):w==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(y&&x!==w?"ANIMATION_OUT":"UNMOUNT"),s.current=n}},[n,p]),lt(()=>{if(a){let g;const y=a.ownerDocument.defaultView??window,x=j=>{const E=Yu(i.current).includes(CSS.escape(j.animationName));if(j.target===a&&E&&(p("ANIMATION_END"),!s.current)){const S=a.style.animationFillMode;a.style.animationFillMode="forwards",g=y.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=S)})}},w=j=>{j.target===a&&(c.current=Yu(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",x),a.addEventListener("animationend",x),()=>{y.clearTimeout(g),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",x),a.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function Yu(n){return(n==null?void 0:n.animationName)||"none"}function QT(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 YT(n,a){const r=v.createContext(a),i=c=>{const{children:h,...m}=c,p=v.useMemo(()=>m,Object.values(m));return u.jsx(r.Provider,{value:p,children:h})};i.displayName=n+"Provider";function s(c){const h=v.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[i,s]}function gt(n,a=[]){let r=[];function i(c,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=x=>{var w;const{scope:j,children:E,...S}=x,C=((w=j==null?void 0:j[n])==null?void 0:w[p])||m,_=v.useMemo(()=>S,Object.values(S));return u.jsx(C.Provider,{value:_,children:E})};g.displayName=c+"Provider";function y(x,w){var j;const E=((j=w==null?void 0:w[n])==null?void 0:j[p])||m,S=v.useContext(E);if(S)return S;if(h!==void 0)return h;throw new Error(`\`${x}\` must be used within \`${c}\``)}return[g,y]}const s=()=>{const c=r.map(h=>v.createContext(h));return function(h){const m=(h==null?void 0:h[n])||c;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:m}}),[h,m])}};return s.scopeName=n,[i,GT(s,...a)]}function GT(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const i=n.map(s=>({useScope:s(),scopeName:s.scopeName}));return function(s){const c=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(s)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function nt(n){const a=v.useRef(n);return v.useEffect(()=>{a.current=n}),v.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}var $T=v.createContext(void 0);function Ui(n){const a=v.useContext($T);return n||a||"ltr"}function em(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 VT(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Om="ScrollArea",[d1,_z]=gt(Om),[KT,Cn]=d1(Om),f1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:s,scrollHideDelay:c=600,...h}=n,[m,p]=v.useState(null),[g,y]=v.useState(null),[x,w]=v.useState(null),[j,E]=v.useState(null),[S,C]=v.useState(null),[_,R]=v.useState(0),[T,D]=v.useState(0),[L,K]=v.useState(!1),[H,q]=v.useState(!1),G=we(a,ue=>p(ue)),te=Ui(s);return u.jsx(KT,{scope:r,type:i,dir:te,scrollHideDelay:c,scrollArea:m,viewport:g,onViewportChange:y,content:x,onContentChange:w,scrollbarX:j,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:K,scrollbarY:S,onScrollbarYChange:C,scrollbarYEnabled:H,onScrollbarYEnabledChange:q,onCornerWidthChange:R,onCornerHeightChange:D,children:u.jsx(oe.div,{dir:te,...h,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":T+"px",...n.style}})})});f1.displayName=Om;var h1="ScrollAreaViewport",m1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:s,...c}=n,h=Cn(h1,r),m=v.useRef(null),p=we(a,m,h.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),u.jsx(oe.div,{"data-radix-scroll-area-viewport":"",...c,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...n.style},children:u.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});m1.displayName=h1;var ta="ScrollAreaScrollbar",p1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Cn(ta,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:h}=s,m=n.orientation==="horizontal";return v.useEffect(()=>(m?c(!0):h(!0),()=>{m?c(!1):h(!1)}),[m,c,h]),s.type==="hover"?u.jsx(XT,{...i,ref:a,forceMount:r}):s.type==="scroll"?u.jsx(FT,{...i,ref:a,forceMount:r}):s.type==="auto"?u.jsx(v1,{...i,ref:a,forceMount:r}):s.type==="always"?u.jsx(zm,{...i,ref:a}):null});p1.displayName=ta;var XT=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Cn(ta,n.__scopeScrollArea),[c,h]=v.useState(!1);return v.useEffect(()=>{const m=s.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},y=()=>{p=window.setTimeout(()=>h(!1),s.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",y),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",y)}}},[s.scrollArea,s.scrollHideDelay]),u.jsx(jt,{present:r||c,children:u.jsx(v1,{"data-state":c?"visible":"hidden",...i,ref:a})})}),FT=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=Cn(ta,n.__scopeScrollArea),c=n.orientation==="horizontal",h=Nc(()=>p("SCROLL_END"),100),[m,p]=VT("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>p("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,s.scrollHideDelay,p]),v.useEffect(()=>{const g=s.viewport,y=c?"scrollLeft":"scrollTop";if(g){let x=g[y];const w=()=>{const j=g[y];x!==j&&(p("SCROLL"),h()),x=j};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[s.viewport,c,p,h]),u.jsx(jt,{present:r||m!=="hidden",children:u.jsx(zm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ae(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ae(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),v1=v.forwardRef((n,a)=>{const r=Cn(ta,n.__scopeScrollArea),{forceMount:i,...s}=n,[c,h]=v.useState(!1),m=n.orientation==="horizontal",p=Nc(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,y=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:y)}},10);return Ri(r.viewport,p),Ri(r.content,p),u.jsx(jt,{present:i||c,children:u.jsx(zm,{"data-state":c?"visible":"hidden",...s,ref:a})})}),zm=v.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,s=Cn(ta,n.__scopeScrollArea),c=v.useRef(null),h=v.useRef(0),[m,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=w1(m.viewport,m.content),y={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:w=>c.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function x(w,j){return eM(w,h.current,m,j)}return r==="horizontal"?u.jsx(ZT,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollLeft,j=vx(w,m,s.dir);c.current.style.transform=`translate3d(${j}px, 0, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollLeft=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollLeft=x(w,s.dir))}}):r==="vertical"?u.jsx(PT,{...y,ref:a,onThumbPositionChange:()=>{if(s.viewport&&c.current){const w=s.viewport.scrollTop,j=vx(w,m);c.current.style.transform=`translate3d(0, ${j}px, 0)`}},onWheelScroll:w=>{s.viewport&&(s.viewport.scrollTop=w)},onDragScroll:w=>{s.viewport&&(s.viewport.scrollTop=x(w))}}):null}),ZT=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,c=Cn(ta,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarXChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(y1,{"data-orientation":"horizontal",...s,ref:g,sizes:r,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Ec(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.x),onDragScroll:y=>n.onDragScroll(y.x),onWheelScroll:(y,x)=>{if(c.viewport){const w=c.viewport.scrollLeft+y.deltaX;n.onWheelScroll(w),j1(w,x)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:sc(h.paddingLeft),paddingEnd:sc(h.paddingRight)}})}})}),PT=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...s}=n,c=Cn(ta,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarYChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(y1,{"data-orientation":"vertical",...s,ref:g,sizes:r,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Ec(r)+"px",...n.style},onThumbPointerDown:y=>n.onThumbPointerDown(y.y),onDragScroll:y=>n.onDragScroll(y.y),onWheelScroll:(y,x)=>{if(c.viewport){const w=c.viewport.scrollTop+y.deltaY;n.onWheelScroll(w),j1(w,x)&&y.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:sc(h.paddingTop),paddingEnd:sc(h.paddingBottom)}})}})}),[JT,g1]=d1(ta),y1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:s,onThumbChange:c,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:y,onResize:x,...w}=n,j=Cn(ta,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=nt(y),K=nt(p),H=Nc(x,10);function q(G){if(_.current){const te=G.clientX-_.current.left,ue=G.clientY-_.current.top;g({x:te,y:ue})}}return v.useEffect(()=>{const G=te=>{const ue=te.target;E!=null&&E.contains(ue)&&L(te,D)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[T,E,D,L]),v.useEffect(K,[i,K]),Ri(E,H),Ri(j.content,H),u.jsx(JT,{scope:r,scrollbar:E,hasThumb:s,onThumbChange:nt(c),onThumbPointerUp:nt(h),onThumbPositionChange:K,onThumbPointerDown:nt(m),children:u.jsx(oe.div,{...w,ref:C,style:{position:"absolute",...w.style},onPointerDown: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"),q(G))}),onPointerMove:ae(n.onPointerMove,q),onPointerUp:ae(n.onPointerUp,G=>{const te=G.target;te.hasPointerCapture(G.pointerId)&&te.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=R.current,j.viewport&&(j.viewport.style.scrollBehavior=""),_.current=null})})})}),oc="ScrollAreaThumb",x1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=g1(oc,n.__scopeScrollArea);return u.jsx(jt,{present:r||s.hasThumb,children:u.jsx(WT,{ref:a,...i})})}),WT=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...s}=n,c=Cn(oc,r),h=g1(oc,r),{onThumbPositionChange:m}=h,p=we(a,x=>h.onThumbChange(x)),g=v.useRef(void 0),y=Nc(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const x=c.viewport;if(x){const w=()=>{if(y(),!g.current){const j=tM(x,m);g.current=j,m()}};return m(),x.addEventListener("scroll",w),()=>x.removeEventListener("scroll",w)}},[c.viewport,y,m]),u.jsx(oe.div,{"data-state":h.hasThumb?"visible":"hidden",...s,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ae(n.onPointerDownCapture,x=>{const w=x.target.getBoundingClientRect(),j=x.clientX-w.left,E=x.clientY-w.top;h.onThumbPointerDown({x:j,y:E})}),onPointerUp:ae(n.onPointerUp,h.onThumbPointerUp)})});x1.displayName=oc;var Lm="ScrollAreaCorner",b1=v.forwardRef((n,a)=>{const r=Cn(Lm,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?u.jsx(IT,{...n,ref:a}):null});b1.displayName=Lm;var IT=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,s=Cn(Lm,r),[c,h]=v.useState(0),[m,p]=v.useState(0),g=!!(c&&m);return Ri(s.scrollbarX,()=>{var y;const x=((y=s.scrollbarX)==null?void 0:y.offsetHeight)||0;s.onCornerHeightChange(x),p(x)}),Ri(s.scrollbarY,()=>{var y;const x=((y=s.scrollbarY)==null?void 0:y.offsetWidth)||0;s.onCornerWidthChange(x),h(x)}),g?u.jsx(oe.div,{...i,ref:a,style:{width:c,height:m,position:"absolute",right:s.dir==="ltr"?0:void 0,left:s.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function sc(n){return n?parseInt(n,10):0}function w1(n,a){const r=n/a;return isNaN(r)?0:r}function Ec(n){const a=w1(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function eM(n,a,r,i="ltr"){const s=Ec(r),c=s/2,h=a||c,m=s-h,p=r.scrollbar.paddingStart+h,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,y=r.content-r.viewport,x=i==="ltr"?[0,y]:[y*-1,0];return S1([p,g],x)(n)}function vx(n,a,r="ltr"){const i=Ec(a),s=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,c=a.scrollbar.size-s,h=a.content-a.viewport,m=c-i,p=r==="ltr"?[0,h]:[h*-1,0],g=em(n,p);return S1([0,h],[0,m])(g)}function S1(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 j1(n,a){return n>0&&n<a}var tM=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function s(){const c={left:n.scrollLeft,top:n.scrollTop},h=r.left!==c.left,m=r.top!==c.top;(h||m)&&a(),r=c,i=window.requestAnimationFrame(s)})(),()=>window.cancelAnimationFrame(i)};function Nc(n,a){const r=nt(n),i=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),v.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(r,a)},[r,a])}function Ri(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}var nM=f1,aM=m1,lM=b1;function E1({className:n,children:a,...r}){return u.jsxs(nM,{"data-slot":"scroll-area",className:pe("relative",n),...r,children:[u.jsx(aM,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:a}),u.jsx(rM,{}),u.jsx(lM,{})]})}function rM({className:n,orientation:a="vertical",...r}){return u.jsx(p1,{"data-slot":"scroll-area-scrollbar",orientation:a,className:pe("flex touch-none p-px transition-colors select-none",a==="vertical"&&"h-full w-2.5 border-l border-l-transparent",a==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent",n),...r,children:u.jsx(x1,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var iM=yb[" useInsertionEffect ".trim().toString()]||lt;function na({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[s,c,h]=oM({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:s;{const y=v.useRef(n!==void 0);v.useEffect(()=>{const x=y.current;x!==m&&console.warn(`${i} is changing from ${x?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=m},[m,i])}const g=v.useCallback(y=>{var x;if(m){const w=sM(y)?y(n):y;w!==n&&((x=h.current)==null||x.call(h,w))}else c(y)},[m,n,c,h]);return[p,g]}function oM({defaultProp:n,onChange:a}){const[r,i]=v.useState(n),s=v.useRef(r),c=v.useRef(a);return iM(()=>{c.current=a},[a]),v.useEffect(()=>{var h;s.current!==r&&((h=c.current)==null||h.call(c,r),s.current=r)},[r,s]),[r,i,c]}function sM(n){return typeof n=="function"}function qi(n){const a=n+"CollectionProvider",[r,i]=gt(a),[s,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=S=>{const{scope:C,children:_}=S,R=st.useRef(null),T=st.useRef(new Map).current;return u.jsx(s,{scope:C,itemMap:T,collectionRef:R,children:_})};h.displayName=a;const m=n+"CollectionSlot",p=fr(m),g=st.forwardRef((S,C)=>{const{scope:_,children:R}=S,T=c(m,_),D=we(C,T.collectionRef);return u.jsx(p,{ref:D,children:R})});g.displayName=m;const y=n+"CollectionItemSlot",x="data-radix-collection-item",w=fr(y),j=st.forwardRef((S,C)=>{const{scope:_,children:R,...T}=S,D=st.useRef(null),L=we(C,D),K=c(y,_);return st.useEffect(()=>(K.itemMap.set(D,{ref:D,...T}),()=>void K.itemMap.delete(D))),u.jsx(w,{[x]:"",ref:L,children:R})});j.displayName=y;function E(S){const C=c(n+"CollectionConsumer",S);return st.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const R=Array.from(_.querySelectorAll(`[${x}]`));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 uM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n);v.useEffect(()=>{const i=s=>{s.key==="Escape"&&r(s)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var cM="DismissableLayer",tm="dismissableLayer.update",dM="dismissableLayer.pointerDownOutside",fM="dismissableLayer.focusOutside",gx,N1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Hi=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(N1),[y,x]=v.useState(null),w=(y==null?void 0:y.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,j]=v.useState({}),E=we(a,H=>x(H)),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=pM(H=>{const q=H.target,G=[...g.branches].some(te=>te.contains(q));!D||G||(s==null||s(H),h==null||h(H),H.defaultPrevented||m==null||m())},w),K=vM(H=>{const q=H.target;[...g.branches].some(G=>G.contains(q))||(c==null||c(H),h==null||h(H),H.defaultPrevented||m==null||m())},w);return uM(H=>{R===g.layers.size-1&&(i==null||i(H),!H.defaultPrevented&&m&&(H.preventDefault(),m()))},w),v.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(gx=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),yx(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=gx)}},[y,w,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),yx())},[y,g]),v.useEffect(()=>{const H=()=>j({});return document.addEventListener(tm,H),()=>document.removeEventListener(tm,H)},[]),u.jsx(oe.div,{...p,ref:E,style:{pointerEvents:T?D?"auto":"none":void 0,...n.style},onFocusCapture:ae(n.onFocusCapture,K.onFocusCapture),onBlurCapture:ae(n.onBlurCapture,K.onBlurCapture),onPointerDownCapture:ae(n.onPointerDownCapture,L.onPointerDownCapture)})});Hi.displayName=cM;var hM="DismissableLayerBranch",mM=v.forwardRef((n,a)=>{const r=v.useContext(N1),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),u.jsx(oe.div,{...n,ref:s})});mM.displayName=hM;function pM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1),s=v.useRef(()=>{});return v.useEffect(()=>{const c=m=>{if(m.target&&!i.current){let p=function(){C1(dM,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",s.current),s.current=p,a.addEventListener("click",s.current,{once:!0})):p()}else a.removeEventListener("click",s.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",c),a.removeEventListener("click",s.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function vM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1);return v.useEffect(()=>{const s=c=>{c.target&&!i.current&&C1(fM,r,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",s),()=>a.removeEventListener("focusin",s)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function yx(){const n=new CustomEvent(tm);document.dispatchEvent(n)}function C1(n,a,r,{discrete:i}){const s=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&s.addEventListener(n,a,{once:!0}),i?ic(s,c):s.dispatchEvent(c)}var Sh=0;function Um(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??xx()),document.body.insertAdjacentElement("beforeend",n[1]??xx()),Sh++,()=>{Sh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Sh--}},[])}function xx(){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 jh="focusScope.autoFocusOnMount",Eh="focusScope.autoFocusOnUnmount",bx={bubbles:!1,cancelable:!0},gM="FocusScope",Cc=v.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:c,...h}=n,[m,p]=v.useState(null),g=nt(s),y=nt(c),x=v.useRef(null),w=we(a,S=>p(S)),j=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let S=function(T){if(j.paused||!m)return;const D=T.target;m.contains(D)?x.current=D:pl(x.current,{select:!0})},C=function(T){if(j.paused||!m)return;const D=T.relatedTarget;D!==null&&(m.contains(D)||pl(x.current,{select:!0}))},_=function(T){if(document.activeElement===document.body)for(const D of T)D.removedNodes.length>0&&pl(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){Sx.add(j);const S=document.activeElement;if(!m.contains(S)){const C=new CustomEvent(jh,bx);m.addEventListener(jh,g),m.dispatchEvent(C),C.defaultPrevented||(yM(jM(_1(m)),{select:!0}),document.activeElement===S&&pl(m))}return()=>{m.removeEventListener(jh,g),setTimeout(()=>{const C=new CustomEvent(Eh,bx);m.addEventListener(Eh,y),m.dispatchEvent(C),C.defaultPrevented||pl(S??document.body,{select:!0}),m.removeEventListener(Eh,y),Sx.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]=xM(R);T&&D?!S.shiftKey&&_===D?(S.preventDefault(),r&&pl(T,{select:!0})):S.shiftKey&&_===T&&(S.preventDefault(),r&&pl(D,{select:!0})):_===R&&S.preventDefault()}},[r,i,j.paused]);return u.jsx(oe.div,{tabIndex:-1,...h,ref:w,onKeyDown:E})});Cc.displayName=gM;function yM(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(pl(i,{select:a}),document.activeElement!==r)return}function xM(n){const a=_1(n),r=wx(a,n),i=wx(a.reverse(),n);return[r,i]}function _1(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 wx(n,a){for(const r of n)if(!bM(r,{upTo:a}))return r}function bM(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 wM(n){return n instanceof HTMLInputElement&&"select"in n}function pl(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&wM(n)&&a&&n.select()}}var Sx=SM();function SM(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=jx(n,a),n.unshift(a)},remove(a){var r;n=jx(n,a),(r=n[0])==null||r.resume()}}}function jx(n,a){const r=[...n],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function jM(n){return n.filter(a=>a.tagName!=="A")}var EM=yb[" useId ".trim().toString()]||(()=>{}),NM=0;function Ml(n){const[a,r]=v.useState(EM());return lt(()=>{r(i=>i??String(NM++))},[n]),a?`radix-${a}`:""}const CM=["top","right","bottom","left"],_l=Math.min,un=Math.max,uc=Math.round,Gu=Math.floor,In=n=>({x:n,y:n}),_M={left:"right",right:"left",bottom:"top",top:"bottom"},RM={start:"end",end:"start"};function nm(n,a,r){return un(n,_l(a,r))}function Da(n,a){return typeof n=="function"?n(a):n}function Oa(n){return n.split("-")[0]}function Bi(n){return n.split("-")[1]}function qm(n){return n==="x"?"y":"x"}function Hm(n){return n==="y"?"height":"width"}const TM=new Set(["top","bottom"]);function Wn(n){return TM.has(Oa(n))?"y":"x"}function Bm(n){return qm(Wn(n))}function MM(n,a,r){r===void 0&&(r=!1);const i=Bi(n),s=Bm(n),c=Hm(s);let h=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(h=cc(h)),[h,cc(h)]}function AM(n){const a=cc(n);return[am(n),a,am(a)]}function am(n){return n.replace(/start|end/g,a=>RM[a])}const Ex=["left","right"],Nx=["right","left"],kM=["top","bottom"],DM=["bottom","top"];function OM(n,a,r){switch(n){case"top":case"bottom":return r?a?Nx:Ex:a?Ex:Nx;case"left":case"right":return a?kM:DM;default:return[]}}function zM(n,a,r,i){const s=Bi(n);let c=OM(Oa(n),r==="start",i);return s&&(c=c.map(h=>h+"-"+s),a&&(c=c.concat(c.map(am)))),c}function cc(n){return n.replace(/left|right|bottom|top/g,a=>_M[a])}function LM(n){return{top:0,right:0,bottom:0,left:0,...n}}function R1(n){return typeof n!="number"?LM(n):{top:n,right:n,bottom:n,left:n}}function dc(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 Cx(n,a,r){let{reference:i,floating:s}=n;const c=Wn(a),h=Bm(a),m=Hm(h),p=Oa(a),g=c==="y",y=i.x+i.width/2-s.width/2,x=i.y+i.height/2-s.height/2,w=i[m]/2-s[m]/2;let j;switch(p){case"top":j={x:y,y:i.y-s.height};break;case"bottom":j={x:y,y:i.y+i.height};break;case"right":j={x:i.x+i.width,y:x};break;case"left":j={x:i.x-s.width,y:x};break;default:j={x:i.x,y:i.y}}switch(Bi(a)){case"start":j[h]-=w*(r&&g?-1:1);break;case"end":j[h]+=w*(r&&g?-1:1);break}return j}const UM=async(n,a,r)=>{const{placement:i="bottom",strategy:s="absolute",middleware:c=[],platform:h}=r,m=c.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(a));let g=await h.getElementRects({reference:n,floating:a,strategy:s}),{x:y,y:x}=Cx(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:x,initialPlacement:i,placement:w,strategy:s,middlewareData:j,rects:g,platform:h,elements:{reference:n,floating:a}});y=R??y,x=T??x,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:x}=Cx(g,w,p)),S=-1)}return{x:y,y:x,placement:w,strategy:s,middlewareData:j}};async function es(n,a){var r;a===void 0&&(a={});const{x:i,y:s,platform:c,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:w=!1,padding:j=0}=Da(a,n),E=R1(j),S=m[w?x==="floating"?"reference":"floating":x],C=dc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(S)))==null||r?S:S.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(m.floating)),boundary:g,rootBoundary:y,strategy:p})),_=x==="floating"?{x:i,y:s,width:h.floating.width,height:h.floating.height}:h.reference,R=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m.floating)),T=await(c.isElement==null?void 0:c.isElement(R))?await(c.getScale==null?void 0:c.getScale(R))||{x:1,y:1}:{x:1,y:1},D=dc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.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:c,platform:h,elements:m,middlewareData:p}=a,{element:g,padding:y=0}=Da(n,a)||{};if(g==null)return{};const x=R1(y),w={x:r,y:i},j=Bm(s),E=Hm(j),S=await h.getDimensions(g),C=j==="y",_=C?"top":"left",R=C?"bottom":"right",T=C?"clientHeight":"clientWidth",D=c.reference[E]+c.reference[j]-w[j]-c.floating[E],L=w[j]-c.reference[j],K=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let H=K?K[T]:0;(!H||!await(h.isElement==null?void 0:h.isElement(K)))&&(H=m.floating[T]||c.floating[E]);const q=D/2-L/2,G=H/2-S[E]/2-1,te=_l(x[_],G),ue=_l(x[R],G),ce=te,I=H-S[E]-ue,ie=H/2-S[E]/2+q,re=nm(ce,ie,I),U=!p.arrow&&Bi(s)!=null&&ie!==re&&c.reference[E]/2-(ie<ce?te:ue)-S[E]/2<0,W=U?ie<ce?ie-ce:ie-I:0;return{[j]:w[j]+W,data:{[j]:re,centerOffset:ie-re-W,...U&&{alignmentOffset:W}},reset:U}}}),HM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:s,middlewareData:c,rects:h,initialPlacement:m,platform:p,elements:g}=a,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:j="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:S=!0,...C}=Da(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const _=Oa(s),R=Wn(m),T=Oa(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(T||!S?[cc(m)]:AM(m)),K=E!=="none";!w&&K&&L.push(...zM(m,S,E,D));const H=[m,...L],q=await es(a,C),G=[];let te=((i=c.flip)==null?void 0:i.overflows)||[];if(y&&G.push(q[_]),x){const ie=MM(s,h,D);G.push(q[ie[0]],q[ie[1]])}if(te=[...te,{placement:s,overflows:G}],!G.every(ie=>ie<=0)){var ue,ce;const ie=(((ue=c.flip)==null?void 0:ue.index)||0)+1,re=H[ie];if(re&&(!(x==="alignment"&&R!==Wn(re))||te.every(W=>Wn(W.placement)===R?W.overflows[0]>0:!0)))return{data:{index:ie,overflows:te},reset:{placement:re}};let U=(ce=te.filter(W=>W.overflows[0]<=0).sort((W,$)=>W.overflows[1]-$.overflows[1])[0])==null?void 0:ce.placement;if(!U)switch(j){case"bestFit":{var I;const W=(I=te.filter($=>{if(K){const X=Wn($.placement);return X===R||X==="y"}return!0}).map($=>[$.placement,$.overflows.filter(X=>X>0).reduce((X,de)=>X+de,0)]).sort(($,X)=>$[1]-X[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 _x(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Rx(n){return CM.some(a=>n[a]>=0)}const BM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:i="referenceHidden",...s}=Da(n,a);switch(i){case"referenceHidden":{const c=await es(a,{...s,elementContext:"reference"}),h=_x(c,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Rx(h)}}}case"escaped":{const c=await es(a,{...s,altBoundary:!0}),h=_x(c,r.floating);return{data:{escapedOffsets:h,escaped:Rx(h)}}}default:return{}}}}},T1=new Set(["left","top"]);async function QM(n,a){const{placement:r,platform:i,elements:s}=n,c=await(i.isRTL==null?void 0:i.isRTL(s.floating)),h=Oa(r),m=Bi(r),p=Wn(r)==="y",g=T1.has(h)?-1:1,y=c&&p?-1:1,x=Da(a,n);let{mainAxis:w,crossAxis:j,alignmentAxis:E}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return m&&typeof E=="number"&&(j=m==="end"?E*-1:E),p?{x:j*y,y:w*g}:{x:w*g,y:j*y}}const YM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:s,y:c,placement:h,middlewareData:m}=a,p=await QM(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:s+p.x,y:c+p.y,data:{...p,placement:h}}}}},GM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:s}=a,{mainAxis:c=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:_,y:R}=C;return{x:_,y:R}}},...p}=Da(n,a),g={x:r,y:i},y=await es(a,p),x=Wn(Oa(s)),w=qm(x);let j=g[w],E=g[x];if(c){const C=w==="y"?"top":"left",_=w==="y"?"bottom":"right",R=j+y[C],T=j-y[_];j=nm(R,j,T)}if(h){const C=x==="y"?"top":"left",_=x==="y"?"bottom":"right",R=E+y[C],T=E-y[_];E=nm(R,E,T)}const S=m.fn({...a,[w]:j,[x]:E});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[w]:c,[x]:h}}}}}},$M=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:s,rects:c,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=Da(n,a),y={x:r,y:i},x=Wn(s),w=qm(x);let j=y[w],E=y[x];const S=Da(m,a),C=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const T=w==="y"?"height":"width",D=c.reference[w]-c.floating[T]+C.mainAxis,L=c.reference[w]+c.reference[T]-C.mainAxis;j<D?j=D:j>L&&(j=L)}if(g){var _,R;const T=w==="y"?"width":"height",D=T1.has(Oa(s)),L=c.reference[x]-c.floating[T]+(D&&((_=h.offset)==null?void 0:_[x])||0)+(D?0:C.crossAxis),K=c.reference[x]+c.reference[T]+(D?0:((R=h.offset)==null?void 0:R[x])||0)-(D?C.crossAxis:0);E<L?E=L:E>K&&(E=K)}return{[w]:j,[x]:E}}}},VM=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:s,rects:c,platform:h,elements:m}=a,{apply:p=()=>{},...g}=Da(n,a),y=await es(a,g),x=Oa(s),w=Bi(s),j=Wn(s)==="y",{width:E,height:S}=c.floating;let C,_;x==="top"||x==="bottom"?(C=x,_=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=x,C=w==="end"?"top":"bottom");const R=S-y.top-y.bottom,T=E-y.left-y.right,D=_l(S-y[C],R),L=_l(E-y[_],T),K=!a.middlewareData.shift;let H=D,q=L;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(q=T),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(H=R),K&&!w){const te=un(y.left,0),ue=un(y.right,0),ce=un(y.top,0),I=un(y.bottom,0);j?q=E-2*(te!==0||ue!==0?te+ue:un(y.left,y.right)):H=S-2*(ce!==0||I!==0?ce+I:un(y.top,y.bottom))}await p({...a,availableWidth:q,availableHeight:H});const G=await h.getDimensions(m.floating);return E!==G.width||S!==G.height?{reset:{rects:!0}}:{}}}};function _c(){return typeof window<"u"}function Qi(n){return M1(n)?(n.nodeName||"").toLowerCase():"#document"}function cn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function aa(n){var a;return(a=(M1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function M1(n){return _c()?n instanceof Node||n instanceof cn(n).Node:!1}function qn(n){return _c()?n instanceof Element||n instanceof cn(n).Element:!1}function ea(n){return _c()?n instanceof HTMLElement||n instanceof cn(n).HTMLElement:!1}function Tx(n){return!_c()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof cn(n).ShadowRoot}const KM=new Set(["inline","contents"]);function ms(n){const{overflow:a,overflowX:r,overflowY:i,display:s}=Hn(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!KM.has(s)}const XM=new Set(["table","td","th"]);function FM(n){return XM.has(Qi(n))}const ZM=[":popover-open",":modal"];function Rc(n){return ZM.some(a=>{try{return n.matches(a)}catch{return!1}})}const PM=["transform","translate","scale","rotate","perspective"],JM=["transform","translate","scale","rotate","perspective","filter"],WM=["paint","layout","strict","content"];function Qm(n){const a=Ym(),r=qn(n)?Hn(n):n;return PM.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)||JM.some(i=>(r.willChange||"").includes(i))||WM.some(i=>(r.contain||"").includes(i))}function IM(n){let a=Rl(n);for(;ea(a)&&!Ti(a);){if(Qm(a))return a;if(Rc(a))return null;a=Rl(a)}return null}function Ym(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const eA=new Set(["html","body","#document"]);function Ti(n){return eA.has(Qi(n))}function Hn(n){return cn(n).getComputedStyle(n)}function Tc(n){return qn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Rl(n){if(Qi(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Tx(n)&&n.host||aa(n);return Tx(a)?a.host:a}function A1(n){const a=Rl(n);return Ti(a)?n.ownerDocument?n.ownerDocument.body:n.body:ea(a)&&ms(a)?a:A1(a)}function ts(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const s=A1(n),c=s===((i=n.ownerDocument)==null?void 0:i.body),h=cn(s);if(c){const m=lm(h);return a.concat(h,h.visualViewport||[],ms(s)?s:[],m&&r?ts(m):[])}return a.concat(s,ts(s,[],r))}function lm(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function k1(n){const a=Hn(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const s=ea(n),c=s?n.offsetWidth:r,h=s?n.offsetHeight:i,m=uc(r)!==c||uc(i)!==h;return m&&(r=c,i=h),{width:r,height:i,$:m}}function Gm(n){return qn(n)?n:n.contextElement}function di(n){const a=Gm(n);if(!ea(a))return In(1);const r=a.getBoundingClientRect(),{width:i,height:s,$:c}=k1(a);let h=(c?uc(r.width):r.width)/i,m=(c?uc(r.height):r.height)/s;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const tA=In(0);function D1(n){const a=cn(n);return!Ym()||!a.visualViewport?tA:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function nA(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==cn(n)?!1:a}function hr(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const s=n.getBoundingClientRect(),c=Gm(n);let h=In(1);a&&(i?qn(i)&&(h=di(i)):h=di(n));const m=nA(c,r,i)?D1(c):In(0);let p=(s.left+m.x)/h.x,g=(s.top+m.y)/h.y,y=s.width/h.x,x=s.height/h.y;if(c){const w=cn(c),j=i&&qn(i)?cn(i):i;let E=w,S=lm(E);for(;S&&i&&j!==E;){const C=di(S),_=S.getBoundingClientRect(),R=Hn(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,x*=C.y,p+=T,g+=D,E=cn(S),S=lm(E)}}return dc({width:y,height:x,x:p,y:g})}function Mc(n,a){const r=Tc(n).scrollLeft;return a?a.left+r:hr(aa(n)).left+r}function O1(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-Mc(n,r),s=r.top+a.scrollTop;return{x:i,y:s}}function aA(n){let{elements:a,rect:r,offsetParent:i,strategy:s}=n;const c=s==="fixed",h=aa(i),m=a?Rc(a.floating):!1;if(i===h||m&&c)return r;let p={scrollLeft:0,scrollTop:0},g=In(1);const y=In(0),x=ea(i);if((x||!x&&!c)&&((Qi(i)!=="body"||ms(h))&&(p=Tc(i)),ea(i))){const j=hr(i);g=di(i),y.x=j.x+i.clientLeft,y.y=j.y+i.clientTop}const w=h&&!x&&!c?O1(h,p):In(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 lA(n){return Array.from(n.getClientRects())}function rA(n){const a=aa(n),r=Tc(n),i=n.ownerDocument.body,s=un(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=un(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Mc(n);const m=-r.scrollTop;return Hn(i).direction==="rtl"&&(h+=un(a.clientWidth,i.clientWidth)-s),{width:s,height:c,x:h,y:m}}const Mx=25;function iA(n,a){const r=cn(n),i=aa(n),s=r.visualViewport;let c=i.clientWidth,h=i.clientHeight,m=0,p=0;if(s){c=s.width,h=s.height;const y=Ym();(!y||y&&a==="fixed")&&(m=s.offsetLeft,p=s.offsetTop)}const g=Mc(i);if(g<=0){const y=i.ownerDocument,x=y.body,w=getComputedStyle(x),j=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(i.clientWidth-x.clientWidth-j);E<=Mx&&(c-=E)}else g<=Mx&&(c+=g);return{width:c,height:h,x:m,y:p}}const oA=new Set(["absolute","fixed"]);function sA(n,a){const r=hr(n,!0,a==="fixed"),i=r.top+n.clientTop,s=r.left+n.clientLeft,c=ea(n)?di(n):In(1),h=n.clientWidth*c.x,m=n.clientHeight*c.y,p=s*c.x,g=i*c.y;return{width:h,height:m,x:p,y:g}}function Ax(n,a,r){let i;if(a==="viewport")i=iA(n,r);else if(a==="document")i=rA(aa(n));else if(qn(a))i=sA(a,r);else{const s=D1(n);i={x:a.x-s.x,y:a.y-s.y,width:a.width,height:a.height}}return dc(i)}function z1(n,a){const r=Rl(n);return r===a||!qn(r)||Ti(r)?!1:Hn(r).position==="fixed"||z1(r,a)}function uA(n,a){const r=a.get(n);if(r)return r;let i=ts(n,[],!1).filter(m=>qn(m)&&Qi(m)!=="body"),s=null;const c=Hn(n).position==="fixed";let h=c?Rl(n):n;for(;qn(h)&&!Ti(h);){const m=Hn(h),p=Qm(h);!p&&m.position==="fixed"&&(s=null),(c?!p&&!s:!p&&m.position==="static"&&s&&oA.has(s.position)||ms(h)&&!p&&z1(n,h))?i=i.filter(g=>g!==h):s=m,h=Rl(h)}return a.set(n,i),i}function cA(n){let{element:a,boundary:r,rootBoundary:i,strategy:s}=n;const c=[...r==="clippingAncestors"?Rc(a)?[]:uA(a,this._c):[].concat(r),i],h=c[0],m=c.reduce((p,g)=>{const y=Ax(a,g,s);return p.top=un(y.top,p.top),p.right=_l(y.right,p.right),p.bottom=_l(y.bottom,p.bottom),p.left=un(y.left,p.left),p},Ax(a,h,s));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function dA(n){const{width:a,height:r}=k1(n);return{width:a,height:r}}function fA(n,a,r){const i=ea(a),s=aa(a),c=r==="fixed",h=hr(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const p=In(0);function g(){p.x=Mc(s)}if(i||!i&&!c)if((Qi(a)!=="body"||ms(s))&&(m=Tc(a)),i){const j=hr(a,!0,c,a);p.x=j.x+a.clientLeft,p.y=j.y+a.clientTop}else s&&g();c&&!i&&s&&g();const y=s&&!i&&!c?O1(s,m):In(0),x=h.left+m.scrollLeft-p.x-y.x,w=h.top+m.scrollTop-p.y-y.y;return{x,y:w,width:h.width,height:h.height}}function Nh(n){return Hn(n).position==="static"}function kx(n,a){if(!ea(n)||Hn(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return aa(n)===r&&(r=r.ownerDocument.body),r}function L1(n,a){const r=cn(n);if(Rc(n))return r;if(!ea(n)){let s=Rl(n);for(;s&&!Ti(s);){if(qn(s)&&!Nh(s))return s;s=Rl(s)}return r}let i=kx(n,a);for(;i&&FM(i)&&Nh(i);)i=kx(i,a);return i&&Ti(i)&&Nh(i)&&!Qm(i)?r:i||IM(n)||r}const hA=async function(n){const a=this.getOffsetParent||L1,r=this.getDimensions,i=await r(n.floating);return{reference:fA(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function mA(n){return Hn(n).direction==="rtl"}const pA={convertOffsetParentRelativeRectToViewportRelativeRect:aA,getDocumentElement:aa,getClippingRect:cA,getOffsetParent:L1,getElementRects:hA,getClientRects:lA,getDimensions:dA,getScale:di,isElement:qn,isRTL:mA};function U1(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function vA(n,a){let r=null,i;const s=aa(n);function c(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function h(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),c();const g=n.getBoundingClientRect(),{left:y,top:x,width:w,height:j}=g;if(m||a(),!w||!j)return;const E=Gu(x),S=Gu(s.clientWidth-(y+w)),C=Gu(s.clientHeight-(x+j)),_=Gu(y),R={rootMargin:-E+"px "+-S+"px "+-C+"px "+-_+"px",threshold:un(0,_l(1,p))||1};let T=!0;function D(L){const K=L[0].intersectionRatio;if(K!==p){if(!T)return h();K?h(!1,K):i=setTimeout(()=>{h(!1,1e-7)},1e3)}K===1&&!U1(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),c}function gA(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:s=!0,ancestorResize:c=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Gm(n),y=s||c?[...g?ts(g):[],...ts(a)]:[];y.forEach(_=>{s&&_.addEventListener("scroll",r,{passive:!0}),c&&_.addEventListener("resize",r)});const x=g&&m?vA(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?hr(n):null;p&&C();function C(){const _=hr(n);S&&!U1(S,_)&&r(),S=_,E=requestAnimationFrame(C)}return r(),()=>{var _;y.forEach(R=>{s&&R.removeEventListener("scroll",r),c&&R.removeEventListener("resize",r)}),x==null||x(),(_=j)==null||_.disconnect(),j=null,p&&cancelAnimationFrame(E)}}const yA=YM,xA=GM,bA=HM,wA=VM,SA=BM,Dx=qM,jA=$M,EA=(n,a,r)=>{const i=new Map,s={platform:pA,...r},c={...s.platform,_c:i};return UM(n,a,{...s,platform:c})};var NA=typeof document<"u",CA=function(){},Wu=NA?v.useLayoutEffect:CA;function fc(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,i,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(!fc(n[i],a[i]))return!1;return!0}if(s=Object.keys(n),r=s.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,s[i]))return!1;for(i=r;i--!==0;){const c=s[i];if(!(c==="_owner"&&n.$$typeof)&&!fc(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function q1(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Ox(n,a){const r=q1(n);return Math.round(a*r)/r}function Ch(n){const a=v.useRef(n);return Wu(()=>{a.current=n}),a}function _A(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:s,elements:{reference:c,floating:h}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[y,x]=v.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[w,j]=v.useState(i);fc(w,i)||j(i);const[E,S]=v.useState(null),[C,_]=v.useState(null),R=v.useCallback($=>{$!==K.current&&(K.current=$,S($))},[]),T=v.useCallback($=>{$!==H.current&&(H.current=$,_($))},[]),D=c||E,L=h||C,K=v.useRef(null),H=v.useRef(null),q=v.useRef(y),G=p!=null,te=Ch(p),ue=Ch(s),ce=Ch(g),I=v.useCallback(()=>{if(!K.current||!H.current)return;const $={placement:a,strategy:r,middleware:w};ue.current&&($.platform=ue.current),EA(K.current,H.current,$).then(X=>{const de={...X,isPositioned:ce.current!==!1};ie.current&&!fc(q.current,de)&&(q.current=de,cs.flushSync(()=>{x(de)}))})},[w,a,r,ue,ce]);Wu(()=>{g===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,x($=>({...$,isPositioned:!1})))},[g]);const ie=v.useRef(!1);Wu(()=>(ie.current=!0,()=>{ie.current=!1}),[]),Wu(()=>{if(D&&(K.current=D),L&&(H.current=L),D&&L){if(te.current)return te.current(D,L,I);I()}},[D,L,I,te,G]);const re=v.useMemo(()=>({reference:K,floating:H,setReference:R,setFloating:T}),[R,T]),U=v.useMemo(()=>({reference:D,floating:L}),[D,L]),W=v.useMemo(()=>{const $={position:r,left:0,top:0};if(!U.floating)return $;const X=Ox(U.floating,y.x),de=Ox(U.floating,y.y);return m?{...$,transform:"translate("+X+"px, "+de+"px)",...q1(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:X,top:de}},[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 RA=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?Dx({element:i.current,padding:s}).fn(r):{}:i?Dx({element:i,padding:s}).fn(r):{}}}},TA=(n,a)=>({...yA(n),options:[n,a]}),MA=(n,a)=>({...xA(n),options:[n,a]}),AA=(n,a)=>({...jA(n),options:[n,a]}),kA=(n,a)=>({...bA(n),options:[n,a]}),DA=(n,a)=>({...wA(n),options:[n,a]}),OA=(n,a)=>({...SA(n),options:[n,a]}),zA=(n,a)=>({...RA(n),options:[n,a]});var LA="Arrow",H1=v.forwardRef((n,a)=>{const{children:r,width:i=10,height:s=5,...c}=n;return u.jsx(oe.svg,{...c,ref:a,width:i,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});H1.displayName=LA;var UA=H1;function Ac(n){const[a,r]=v.useState(void 0);return lt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(s=>{if(!Array.isArray(s)||!s.length)return;const c=s[0];let h,m;if("borderBoxSize"in c){const p=c.borderBoxSize,g=Array.isArray(p)?p[0]:p;h=g.inlineSize,m=g.blockSize}else h=n.offsetWidth,m=n.offsetHeight;r({width:h,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else r(void 0)},[n]),a}var B1="Popper",[Q1,Yi]=gt(B1),[Rz,Y1]=Q1(B1),G1="PopperAnchor",$1=v.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...s}=n,c=Y1(G1,r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=(i==null?void 0:i.current)||h.current,g!==p.current&&c.onAnchorChange(p.current)}),i?null:u.jsx(oe.div,{...s,ref:m})});$1.displayName=G1;var $m="PopperContent",[qA,HA]=Q1($m),V1=v.forwardRef((n,a)=>{var r,i,s,c,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:y=0,align:x="center",alignOffset:w=0,arrowPadding:j=0,avoidCollisions:E=!0,collisionBoundary:S=[],collisionPadding:C=0,sticky:_="partial",hideWhenDetached:R=!1,updatePositionStrategy:T="optimized",onPlaced:D,...L}=n,K=Y1($m,p),[H,q]=v.useState(null),G=we(a,Ot=>q(Ot)),[te,ue]=v.useState(null),ce=Ac(te),I=(ce==null?void 0:ce.width)??0,ie=(ce==null?void 0:ce.height)??0,re=g+(x!=="center"?"-"+x:""),U=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},W=Array.isArray(S)?S:[S],$=W.length>0,X={padding:U,boundary:W.filter(QA),altBoundary:$},{refs:de,floatingStyles:A,placement:F,isPositioned:ee,middlewareData:le}=_A({strategy:"fixed",placement:re,whileElementsMounted:(...Ot)=>gA(...Ot,{animationFrame:T==="always"}),elements:{reference:K.anchor},middleware:[TA({mainAxis:y+ie,alignmentAxis:w}),E&&MA({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?AA():void 0,...X}),E&&kA({...X}),DA({...X,apply:({elements:Ot,rects:Pt,availableWidth:ra,availableHeight:ia})=>{const{width:Xc,height:xs}=Pt.reference,Ba=Ot.floating.style;Ba.setProperty("--radix-popper-available-width",`${ra}px`),Ba.setProperty("--radix-popper-available-height",`${ia}px`),Ba.setProperty("--radix-popper-anchor-width",`${Xc}px`),Ba.setProperty("--radix-popper-anchor-height",`${xs}px`)}}),te&&zA({element:te,padding:j}),YA({arrowWidth:I,arrowHeight:ie}),R&&OA({strategy:"referenceHidden",...X})]}),[ve,je]=F1(F),ne=nt(D);lt(()=>{ee&&(ne==null||ne())},[ee,ne]);const Ee=(r=le.arrow)==null?void 0:r.x,ye=(i=le.arrow)==null?void 0:i.y,Ne=((s=le.arrow)==null?void 0:s.centerOffset)!==0,[He,$e]=v.useState();return lt(()=>{H&&$e(window.getComputedStyle(H).zIndex)},[H]),u.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...A,transform:ee?A.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:He,"--radix-popper-transform-origin":[(c=le.transformOrigin)==null?void 0:c.x,(h=le.transformOrigin)==null?void 0:h.y].join(" "),...((m=le.hide)==null?void 0:m.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:u.jsx(qA,{scope:p,placedSide:ve,onArrowChange:ue,arrowX:Ee,arrowY:ye,shouldHideArrow:Ne,children:u.jsx(oe.div,{"data-side":ve,"data-align":je,...L,ref:G,style:{...L.style,animation:ee?void 0:"none"}})})})});V1.displayName=$m;var K1="PopperArrow",BA={top:"bottom",right:"left",bottom:"top",left:"right"},X1=v.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,s=HA(K1,r),c=BA[s.placedSide];return u.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:u.jsx(UA,{...i,ref:a,style:{...i.style,display:"block"}})})});X1.displayName=K1;function QA(n){return n!==null}var YA=n=>({name:"transformOrigin",options:n,fn(a){var r,i,s;const{placement:c,rects:h,middlewareData:m}=a,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,g=p?0:n.arrowWidth,y=p?0:n.arrowHeight,[x,w]=F1(c),j={start:"0%",center:"50%",end:"100%"}[w],E=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,S=(((s=m.arrow)==null?void 0:s.y)??0)+y/2;let C="",_="";return x==="bottom"?(C=p?j:`${E}px`,_=`${-y}px`):x==="top"?(C=p?j:`${E}px`,_=`${h.floating.height+y}px`):x==="right"?(C=`${-y}px`,_=p?j:`${S}px`):x==="left"&&(C=`${h.floating.width+y}px`,_=p?j:`${S}px`),{data:{x:C,y:_}}}});function F1(n){const[a,r="center"]=n.split("-");return[a,r]}var Vm=$1,Km=V1,Xm=X1,GA="Portal",$A=v.forwardRef((n,a)=>{var r;const{container:i,...s}=n,[c,h]=v.useState(!1);lt(()=>h(!0),[]);const m=i||c&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?qb.createPortal(u.jsx(oe.div,{...s,ref:a}),m):null});$A.displayName=GA;var _h="rovingFocusGroup.onEntryFocus",VA={bubbles:!1,cancelable:!0},ps="RovingFocusGroup",[rm,Z1,KA]=qi(ps),[XA,Gi]=gt(ps,[KA]),[FA,ZA]=XA(ps),P1=v.forwardRef((n,a)=>u.jsx(rm.Provider,{scope:n.__scopeRovingFocusGroup,children:u.jsx(rm.Slot,{scope:n.__scopeRovingFocusGroup,children:u.jsx(PA,{...n,ref:a})})}));P1.displayName=ps;var PA=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:s=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...x}=n,w=v.useRef(null),j=we(a,w),E=Ui(c),[S,C]=na({prop:h,defaultProp:m??null,onChange:p,caller:ps}),[_,R]=v.useState(!1),T=nt(g),D=Z1(r),L=v.useRef(!1),[K,H]=v.useState(0);return v.useEffect(()=>{const q=w.current;if(q)return q.addEventListener(_h,T),()=>q.removeEventListener(_h,T)},[T]),u.jsx(FA,{scope:r,orientation:i,dir:E,loop:s,currentTabStopId:S,onItemFocus:v.useCallback(q=>C(q),[C]),onItemShiftTab:v.useCallback(()=>R(!0),[]),onFocusableItemAdd:v.useCallback(()=>H(q=>q+1),[]),onFocusableItemRemove:v.useCallback(()=>H(q=>q-1),[]),children:u.jsx(oe.div,{tabIndex:_||K===0?-1:0,"data-orientation":i,...x,ref:j,style:{outline:"none",...n.style},onMouseDown:ae(n.onMouseDown,()=>{L.current=!0}),onFocus:ae(n.onFocus,q=>{const G=!L.current;if(q.target===q.currentTarget&&G&&!_){const te=new CustomEvent(_h,VA);if(q.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ue=D().filter(re=>re.focusable),ce=ue.find(re=>re.active),I=ue.find(re=>re.id===S),ie=[ce,I,...ue].filter(Boolean).map(re=>re.ref.current);I1(ie,y)}}L.current=!1}),onBlur:ae(n.onBlur,()=>R(!1))})})}),J1="RovingFocusGroupItem",W1=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:s=!1,tabStopId:c,children:h,...m}=n,p=Ml(),g=c||p,y=ZA(J1,r),x=y.currentTabStopId===g,w=Z1(r),{onFocusableItemAdd:j,onFocusableItemRemove:E,currentTabStopId:S}=y;return v.useEffect(()=>{if(i)return j(),()=>E()},[i,j,E]),u.jsx(rm.ItemSlot,{scope:r,id:g,focusable:i,active:s,children:u.jsx(oe.span,{tabIndex:x?0:-1,"data-orientation":y.orientation,...m,ref:a,onMouseDown: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 _=IA(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?ek(R,T+1):R.slice(T+1)}setTimeout(()=>I1(R))}}),children:typeof h=="function"?h({isCurrentTabStop:x,hasTabStop:S!=null}):h})})});W1.displayName=J1;var JA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function WA(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function IA(n,a,r){const i=WA(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return JA[i]}function I1(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function ek(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var Fm=P1,Zm=W1,tk=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},oi=new WeakMap,$u=new WeakMap,Vu={},Rh=0,ew=function(n){return n&&(n.host||ew(n.parentNode))},nk=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=ew(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})},ak=function(n,a,r,i){var s=nk(a,Array.isArray(n)?n:[n]);Vu[r]||(Vu[r]=new WeakMap);var c=Vu[r],h=[],m=new Set,p=new Set(s),g=function(x){!x||m.has(x)||(m.add(x),g(x.parentNode))};s.forEach(g);var y=function(x){!x||p.has(x)||Array.prototype.forEach.call(x.children,function(w){if(m.has(w))y(w);else try{var j=w.getAttribute(i),E=j!==null&&j!=="false",S=(oi.get(w)||0)+1,C=(c.get(w)||0)+1;oi.set(w,S),c.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(),Rh++,function(){h.forEach(function(x){var w=oi.get(x)-1,j=c.get(x)-1;oi.set(x,w),c.set(x,j),w||($u.has(x)||x.removeAttribute(i),$u.delete(x)),j||x.removeAttribute(r)}),Rh--,Rh||(oi=new WeakMap,oi=new WeakMap,$u=new WeakMap,Vu={})}},Pm=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),s=tk(n);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),ak(i,s,r,"aria-hidden")):function(){return null}},Jn=function(){return Jn=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},Jn.apply(this,arguments)};function tw(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 lk(n,a,r){for(var i=0,s=a.length,c;i<s;i++)(c||!(i in a))&&(c||(c=Array.prototype.slice.call(a,0,i)),c[i]=a[i]);return n.concat(c||Array.prototype.slice.call(a))}var Iu="right-scroll-bar-position",ec="width-before-scroll-bar",rk="with-scroll-bars-hidden",ik="--removed-body-scroll-bar-size";function Th(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function ok(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 sk=typeof window<"u"?v.useLayoutEffect:v.useEffect,zx=new WeakMap;function uk(n,a){var r=ok(null,function(i){return n.forEach(function(s){return Th(s,i)})});return sk(function(){var i=zx.get(r);if(i){var s=new Set(i),c=new Set(n),h=r.current;s.forEach(function(m){c.has(m)||Th(m,null)}),c.forEach(function(m){s.has(m)||Th(m,h)})}zx.set(r,n)},[n]),r}function ck(n){return n}function dk(n,a){a===void 0&&(a=ck);var r=[],i=!1,s={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(c){var h=a(c,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(c){for(i=!0;r.length;){var h=r;r=[],h.forEach(c)}r={push:function(m){return c(m)},filter:function(){return r}}},assignMedium:function(c){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(c),h=r}var p=function(){var y=h;h=[],y.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(y){h.push(y),g()},filter:function(y){return h=h.filter(y),r}}}};return s}function fk(n){n===void 0&&(n={});var a=dk(null);return a.options=Jn({async:!0,ssr:!1},n),a}var nw=function(n){var a=n.sideCar,r=tw(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,Jn({},r))};nw.isSideCarExport=!0;function hk(n,a){return n.useMedium(a),nw}var aw=fk(),Mh=function(){},kc=v.forwardRef(function(n,a){var r=v.useRef(null),i=v.useState({onScrollCapture:Mh,onWheelCapture:Mh,onTouchMoveCapture:Mh}),s=i[0],c=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,y=n.enabled,x=n.shards,w=n.sideCar,j=n.noRelative,E=n.noIsolation,S=n.inert,C=n.allowPinchZoom,_=n.as,R=_===void 0?"div":_,T=n.gapMode,D=tw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,K=uk([r,a]),H=Jn(Jn({},D),s);return v.createElement(v.Fragment,null,y&&v.createElement(L,{sideCar:aw,removeScrollBar:g,shards:x,noRelative:j,noIsolation:E,inert:S,setCallbacks:c,allowPinchZoom:!!C,lockRef:r,gapMode:T}),h?v.cloneElement(v.Children.only(m),Jn(Jn({},H),{ref:K})):v.createElement(R,Jn({},H,{className:p,ref:K}),m))});kc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};kc.classNames={fullWidth:ec,zeroRight:Iu};var mk=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function pk(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=mk();return a&&n.setAttribute("nonce",a),n}function vk(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function gk(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var yk=function(){var n=0,a=null;return{add:function(r){n==0&&(a=pk())&&(vk(a,r),gk(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},xk=function(){var n=yk();return function(a,r){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},lw=function(){var n=xk(),a=function(r){var i=r.styles,s=r.dynamic;return n(i,s),null};return a},bk={left:0,top:0,right:0,gap:0},Ah=function(n){return parseInt(n||"",10)||0},wk=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[Ah(r),Ah(i),Ah(s)]},Sk=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return bk;var a=wk(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])}},jk=lw(),fi="data-scroll-locked",Ek=function(n,a,r,i){var s=n.left,c=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
|
|
287
|
-
.`.concat(rk,` {
|
|
288
|
-
overflow: hidden `).concat(i,`;
|
|
289
|
-
padding-right: `).concat(m,"px ").concat(i,`;
|
|
290
|
-
}
|
|
291
|
-
body[`).concat(fi,`] {
|
|
292
|
-
overflow: hidden `).concat(i,`;
|
|
293
|
-
overscroll-behavior: contain;
|
|
294
|
-
`).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
295
|
-
padding-left: `.concat(s,`px;
|
|
296
|
-
padding-top: `).concat(c,`px;
|
|
297
|
-
padding-right: `).concat(h,`px;
|
|
298
|
-
margin-left:0;
|
|
299
|
-
margin-top:0;
|
|
300
|
-
margin-right: `).concat(m,"px ").concat(i,`;
|
|
301
|
-
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
.`).concat(Iu,` {
|
|
305
|
-
right: `).concat(m,"px ").concat(i,`;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
.`).concat(ec,` {
|
|
309
|
-
margin-right: `).concat(m,"px ").concat(i,`;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.`).concat(Iu," .").concat(Iu,` {
|
|
313
|
-
right: 0 `).concat(i,`;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.`).concat(ec," .").concat(ec,` {
|
|
317
|
-
margin-right: 0 `).concat(i,`;
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
body[`).concat(fi,`] {
|
|
321
|
-
`).concat(ik,": ").concat(m,`px;
|
|
322
|
-
}
|
|
323
|
-
`)},Lx=function(){var n=parseInt(document.body.getAttribute(fi)||"0",10);return isFinite(n)?n:0},Nk=function(){v.useEffect(function(){return document.body.setAttribute(fi,(Lx()+1).toString()),function(){var n=Lx()-1;n<=0?document.body.removeAttribute(fi):document.body.setAttribute(fi,n.toString())}},[])},Ck=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,s=i===void 0?"margin":i;Nk();var c=v.useMemo(function(){return Sk(s)},[s]);return v.createElement(jk,{styles:Ek(c,!a,s,r?"":"!important")})},im=!1;if(typeof window<"u")try{var Ku=Object.defineProperty({},"passive",{get:function(){return im=!0,!0}});window.addEventListener("test",Ku,Ku),window.removeEventListener("test",Ku,Ku)}catch{im=!1}var si=im?{passive:!1}:!1,_k=function(n){return n.tagName==="TEXTAREA"},rw=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!_k(n)&&r[a]==="visible")},Rk=function(n){return rw(n,"overflowY")},Tk=function(n){return rw(n,"overflowX")},Ux=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=iw(n,i);if(s){var c=ow(n,i),h=c[1],m=c[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},Mk=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},Ak=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},iw=function(n,a){return n==="v"?Rk(a):Tk(a)},ow=function(n,a){return n==="v"?Mk(a):Ak(a)},kk=function(n,a){return n==="h"&&a==="rtl"?-1:1},Dk=function(n,a,r,i,s){var c=kk(n,window.getComputedStyle(a).direction),h=c*i,m=r.target,p=a.contains(m),g=!1,y=h>0,x=0,w=0;do{if(!m)break;var j=ow(n,m),E=j[0],S=j[1],C=j[2],_=S-C-c*E;(E||_)&&iw(n,m)&&(x+=_,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(x)<1||!y&&Math.abs(w)<1)&&(g=!0),g},Xu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},qx=function(n){return[n.deltaX,n.deltaY]},Hx=function(n){return n&&"current"in n?n.current:n},Ok=function(n,a){return n[0]===a[0]&&n[1]===a[1]},zk=function(n){return`
|
|
324
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
325
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
326
|
-
`)},Lk=0,ui=[];function Uk(n){var a=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),s=v.useState(Lk++)[0],c=v.useState(lw)[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=lk([n.lockRef.current],(n.shards||[]).map(Hx)).filter(Boolean);return S.forEach(function(C){return C.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),S.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(s))})}}},[n.inert,n.lockRef.current,n.shards]);var m=v.useCallback(function(S,C){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!h.current.allowPinchZoom;var _=Xu(S),R=r.current,T="deltaX"in S?S.deltaX:R[0]-_[0],D="deltaY"in S?S.deltaY:R[1]-_[1],L,K=S.target,H=Math.abs(T)>Math.abs(D)?"h":"v";if("touches"in S&&H==="h"&&K.type==="range")return!1;var q=Ux(H,K);if(!q)return!0;if(q?L=H:(L=H==="v"?"h":"v",q=Ux(H,K)),!q)return!1;if(!i.current&&"changedTouches"in S&&(T||D)&&(i.current=L),!L)return!0;var G=i.current||L;return Dk(G,C,S,G==="h"?T:D)},[]),p=v.useCallback(function(S){var C=S;if(!(!ui.length||ui[ui.length-1]!==c)){var _="deltaY"in C?qx(C):Xu(C),R=a.current.filter(function(L){return L.name===C.type&&(L.target===C.target||C.target===L.shadowParent)&&Ok(L.delta,_)})[0];if(R&&R.should){C.cancelable&&C.preventDefault();return}if(!R){var T=(h.current.shards||[]).map(Hx).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:qk(_)};a.current.push(T),setTimeout(function(){a.current=a.current.filter(function(D){return D!==T})},1)},[]),y=v.useCallback(function(S){r.current=Xu(S),i.current=void 0},[]),x=v.useCallback(function(S){g(S.type,qx(S),S.target,m(S,n.lockRef.current))},[]),w=v.useCallback(function(S){g(S.type,Xu(S),S.target,m(S,n.lockRef.current))},[]);v.useEffect(function(){return ui.push(c),n.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:w}),document.addEventListener("wheel",p,si),document.addEventListener("touchmove",p,si),document.addEventListener("touchstart",y,si),function(){ui=ui.filter(function(S){return S!==c}),document.removeEventListener("wheel",p,si),document.removeEventListener("touchmove",p,si),document.removeEventListener("touchstart",y,si)}},[]);var j=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(c,{styles:zk(s)}):null,j?v.createElement(Ck,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function qk(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const Hk=hk(aw,Uk);var Dc=v.forwardRef(function(n,a){return v.createElement(kc,Jn({},n,{ref:a,sideCar:Hk}))});Dc.classNames=kc.classNames;var om=["Enter"," "],Bk=["ArrowDown","PageUp","Home"],sw=["ArrowUp","PageDown","End"],Qk=[...Bk,...sw],Yk={ltr:[...om,"ArrowRight"],rtl:[...om,"ArrowLeft"]},Gk={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Oc="Menu",[ns,$k,Vk]=qi(Oc),[xr,uw]=gt(Oc,[Vk,Yi,Gi]),Jm=Yi(),cw=Gi(),[Tz,$i]=xr(Oc),[Mz,vs]=xr(Oc),Kk="MenuAnchor",Wm=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=Jm(r);return u.jsx(Vm,{...s,...i,ref:a})});Wm.displayName=Kk;var Xk="MenuPortal",[Az,dw]=xr(Xk,{forceMount:void 0}),En="MenuContent",[Fk,Im]=xr(En),fw=v.forwardRef((n,a)=>{const r=dw(En,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=$i(En,n.__scopeMenu),h=vs(En,n.__scopeMenu);return u.jsx(ns.Provider,{scope:n.__scopeMenu,children:u.jsx(jt,{present:i||c.open,children:u.jsx(ns.Slot,{scope:n.__scopeMenu,children:h.modal?u.jsx(Zk,{...s,ref:a}):u.jsx(Pk,{...s,ref:a})})})})}),Zk=v.forwardRef((n,a)=>{const r=$i(En,n.__scopeMenu),i=v.useRef(null),s=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return Pm(c)},[]),u.jsx(ep,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Pk=v.forwardRef((n,a)=>{const r=$i(En,n.__scopeMenu);return u.jsx(ep,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Jk=fr("MenuContent.ScrollLock"),ep=v.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:s,onOpenAutoFocus:c,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:w,onDismiss:j,disableOutsideScroll:E,...S}=n,C=$i(En,r),_=vs(En,r),R=Jm(r),T=cw(r),D=$k(r),[L,K]=v.useState(null),H=v.useRef(null),q=we(a,H,C.onContentChange),G=v.useRef(0),te=v.useRef(""),ue=v.useRef(0),ce=v.useRef(null),I=v.useRef("right"),ie=v.useRef(0),re=E?Dc:v.Fragment,U=E?{as:Jk,allowPinchZoom:!0}:void 0,W=X=>{var de,A;const F=te.current+X,ee=D().filter(ye=>!ye.disabled),le=document.activeElement,ve=(de=ee.find(ye=>ye.ref.current===le))==null?void 0:de.textValue,je=ee.map(ye=>ye.textValue),ne=u4(je,F,ve),Ee=(A=ee.find(ye=>ye.textValue===ne))==null?void 0:A.ref.current;(function ye(Ne){te.current=Ne,window.clearTimeout(G.current),Ne!==""&&(G.current=window.setTimeout(()=>ye(""),1e3))})(F),Ee&&setTimeout(()=>Ee.focus())};v.useEffect(()=>()=>window.clearTimeout(G.current),[]),Um();const $=v.useCallback(X=>{var de,A;return I.current===((de=ce.current)==null?void 0:de.side)&&d4(X,(A=ce.current)==null?void 0:A.area)},[]);return u.jsx(Fk,{scope:r,searchRef:te,onItemEnter:v.useCallback(X=>{$(X)&&X.preventDefault()},[$]),onItemLeave:v.useCallback(X=>{var de;$(X)||((de=H.current)==null||de.focus(),K(null))},[$]),onTriggerLeave:v.useCallback(X=>{$(X)&&X.preventDefault()},[$]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:v.useCallback(X=>{ce.current=X},[]),children:u.jsx(re,{...U,children:u.jsx(Cc,{asChild:!0,trapped:s,onMountAutoFocus:ae(c,X=>{var de;X.preventDefault(),(de=H.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx(Hi,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:w,onDismiss:j,children:u.jsx(Fm,{asChild:!0,...T,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:K,onEntryFocus:ae(p,X=>{_.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Km,{role:"menu","aria-orientation":"vertical","data-state":Rw(C.open),"data-radix-menu-content":"",dir:_.dir,...R,...S,ref:q,style:{outline:"none",...S.style},onKeyDown:ae(S.onKeyDown,X=>{const de=X.target.closest("[data-radix-menu-content]")===X.currentTarget,A=X.ctrlKey||X.altKey||X.metaKey,F=X.key.length===1;de&&(X.key==="Tab"&&X.preventDefault(),!A&&F&&W(X.key));const ee=H.current;if(X.target!==ee||!Qk.includes(X.key))return;X.preventDefault();const le=D().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);sw.includes(X.key)&&le.reverse(),o4(le)}),onBlur:ae(n.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(G.current),te.current="")}),onPointerMove:ae(n.onPointerMove,as(X=>{const de=X.target,A=ie.current!==X.clientX;if(X.currentTarget.contains(de)&&A){const F=X.clientX>ie.current?"right":"left";I.current=F,ie.current=X.clientX}}))})})})})})})});fw.displayName=En;var Wk="MenuGroup",tp=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{role:"group",...i,ref:a})});tp.displayName=Wk;var Ik="MenuLabel",hw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{...i,ref:a})});hw.displayName=Ik;var hc="MenuItem",Bx="menu.itemSelect",zc=v.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...s}=n,c=v.useRef(null),h=vs(hc,n.__scopeMenu),m=Im(hc,n.__scopeMenu),p=we(a,c),g=v.useRef(!1),y=()=>{const x=c.current;if(!r&&x){const w=new CustomEvent(Bx,{bubbles:!0,cancelable:!0});x.addEventListener(Bx,j=>i==null?void 0:i(j),{once:!0}),ic(x,w),w.defaultPrevented?g.current=!1:h.onClose()}};return u.jsx(mw,{...s,ref:p,disabled:r,onClick:ae(n.onClick,y),onPointerDown:x=>{var w;(w=n.onPointerDown)==null||w.call(n,x),g.current=!0},onPointerUp:ae(n.onPointerUp,x=>{var w;g.current||(w=x.currentTarget)==null||w.click()}),onKeyDown:ae(n.onKeyDown,x=>{const w=m.searchRef.current!=="";r||w&&x.key===" "||om.includes(x.key)&&(x.currentTarget.click(),x.preventDefault())})})});zc.displayName=hc;var mw=v.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:s,...c}=n,h=Im(hc,r),m=cw(r),p=v.useRef(null),g=we(a,p),[y,x]=v.useState(!1),[w,j]=v.useState("");return v.useEffect(()=>{const E=p.current;E&&j((E.textContent??"").trim())},[c.children]),u.jsx(ns.ItemSlot,{scope:r,disabled:i,textValue:s??w,children:u.jsx(Zm,{asChild:!0,...m,focusable:!i,children:u.jsx(oe.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:g,onPointerMove:ae(n.onPointerMove,as(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ae(n.onPointerLeave,as(E=>h.onItemLeave(E))),onFocus:ae(n.onFocus,()=>x(!0)),onBlur:ae(n.onBlur,()=>x(!1))})})})}),e4="MenuCheckboxItem",pw=v.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...s}=n;return u.jsx(bw,{scope:n.__scopeMenu,checked:r,children:u.jsx(zc,{role:"menuitemcheckbox","aria-checked":mc(r)?"mixed":r,...s,ref:a,"data-state":ap(r),onSelect:ae(s.onSelect,()=>i==null?void 0:i(mc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});pw.displayName=e4;var vw="MenuRadioGroup",[t4,n4]=xr(vw,{value:void 0,onValueChange:()=>{}}),gw=v.forwardRef((n,a)=>{const{value:r,onValueChange:i,...s}=n,c=nt(i);return u.jsx(t4,{scope:n.__scopeMenu,value:r,onValueChange:c,children:u.jsx(tp,{...s,ref:a})})});gw.displayName=vw;var yw="MenuRadioItem",xw=v.forwardRef((n,a)=>{const{value:r,...i}=n,s=n4(yw,n.__scopeMenu),c=r===s.value;return u.jsx(bw,{scope:n.__scopeMenu,checked:c,children:u.jsx(zc,{role:"menuitemradio","aria-checked":c,...i,ref:a,"data-state":ap(c),onSelect:ae(i.onSelect,()=>{var h;return(h=s.onValueChange)==null?void 0:h.call(s,r)},{checkForDefaultPrevented:!1})})})});xw.displayName=yw;var np="MenuItemIndicator",[bw,a4]=xr(np,{checked:!1}),ww=v.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...s}=n,c=a4(np,r);return u.jsx(jt,{present:i||mc(c.checked)||c.checked===!0,children:u.jsx(oe.span,{...s,ref:a,"data-state":ap(c.checked)})})});ww.displayName=np;var l4="MenuSeparator",Sw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(oe.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});Sw.displayName=l4;var r4="MenuArrow",jw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,s=Jm(r);return u.jsx(Xm,{...s,...i,ref:a})});jw.displayName=r4;var i4="MenuSub",[kz,Ew]=xr(i4),Ko="MenuSubTrigger",Nw=v.forwardRef((n,a)=>{const r=$i(Ko,n.__scopeMenu),i=vs(Ko,n.__scopeMenu),s=Ew(Ko,n.__scopeMenu),c=Im(Ko,n.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=c,g={__scopeMenu:n.__scopeMenu},y=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const x=m.current;return()=>{window.clearTimeout(x),p(null)}},[m,p]),u.jsx(Wm,{asChild:!0,...g,children:u.jsx(mw,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":Rw(r.open),...n,ref:hs(a,s.onTriggerChange),onClick:x=>{var w;(w=n.onClick)==null||w.call(n,x),!(n.disabled||x.defaultPrevented)&&(x.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ae(n.onPointerMove,as(x=>{c.onItemEnter(x),!x.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(c.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:ae(n.onPointerLeave,as(x=>{var w,j;y();const E=(w=r.content)==null?void 0:w.getBoundingClientRect();if(E){const S=(j=r.content)==null?void 0:j.dataset.side,C=S==="right",_=C?-5:5,R=E[C?"left":"right"],T=E[C?"right":"left"];c.onPointerGraceIntentChange({area:[{x:x.clientX+_,y:x.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(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(x),x.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:ae(n.onKeyDown,x=>{var w;const j=c.searchRef.current!=="";n.disabled||j&&x.key===" "||Yk[i.dir].includes(x.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),x.preventDefault())})})})});Nw.displayName=Ko;var Cw="MenuSubContent",_w=v.forwardRef((n,a)=>{const r=dw(En,n.__scopeMenu),{forceMount:i=r.forceMount,...s}=n,c=$i(En,n.__scopeMenu),h=vs(En,n.__scopeMenu),m=Ew(Cw,n.__scopeMenu),p=v.useRef(null),g=we(a,p);return u.jsx(ns.Provider,{scope:n.__scopeMenu,children:u.jsx(jt,{present:i||c.open,children:u.jsx(ns.Slot,{scope:n.__scopeMenu,children:u.jsx(ep,{id:m.contentId,"aria-labelledby":m.triggerId,...s,ref:g,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{var x;h.isUsingKeyboardRef.current&&((x=p.current)==null||x.focus()),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:ae(n.onFocusOutside,y=>{y.target!==m.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:ae(n.onEscapeKeyDown,y=>{h.onClose(),y.preventDefault()}),onKeyDown:ae(n.onKeyDown,y=>{var x;const w=y.currentTarget.contains(y.target),j=Gk[h.dir].includes(y.key);w&&j&&(c.onOpenChange(!1),(x=m.trigger)==null||x.focus(),y.preventDefault())})})})})})});_w.displayName=Cw;function Rw(n){return n?"open":"closed"}function mc(n){return n==="indeterminate"}function ap(n){return mc(n)?"indeterminate":n?"checked":"unchecked"}function o4(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function s4(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function u4(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let c=s4(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function c4(n,a){const{x:r,y:i}=n;let s=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,y=m.y,x=p.x,w=p.y;y>i!=w>i&&r<(x-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function d4(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return c4(r,a)}function as(n){return a=>a.pointerType==="mouse"?n(a):void 0}var f4=Wm,h4=fw,m4=tp,p4=hw,v4=zc,g4=pw,y4=gw,x4=xw,b4=ww,w4=Sw,S4=jw,j4=Nw,E4=_w,Tw="DropdownMenu",[N4,Dz]=gt(Tw,[uw]),dn=uw(),[Oz,Mw]=N4(Tw),Aw="DropdownMenuTrigger",C4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...s}=n,c=Mw(Aw,r),h=dn(r);return u.jsx(f4,{asChild:!0,...h,children:u.jsx(oe.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...s,ref:hs(a,c.triggerRef),onPointerDown:ae(n.onPointerDown,m=>{!i&&m.button===0&&m.ctrlKey===!1&&(c.onOpenToggle(),c.open||m.preventDefault())}),onKeyDown:ae(n.onKeyDown,m=>{i||(["Enter"," "].includes(m.key)&&c.onOpenToggle(),m.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(m.key)&&m.preventDefault())})})})});C4.displayName=Aw;var kw="DropdownMenuContent",Dw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=Mw(kw,r),c=dn(r),h=v.useRef(!1);return u.jsx(h4,{id:s.contentId,"aria-labelledby":s.triggerId,...c,...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)"}})});Dw.displayName=kw;var _4="DropdownMenuGroup",R4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(m4,{...s,...i,ref:a})});R4.displayName=_4;var T4="DropdownMenuLabel",Ow=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(p4,{...s,...i,ref:a})});Ow.displayName=T4;var M4="DropdownMenuItem",zw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(v4,{...s,...i,ref:a})});zw.displayName=M4;var A4="DropdownMenuCheckboxItem",Lw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(g4,{...s,...i,ref:a})});Lw.displayName=A4;var k4="DropdownMenuRadioGroup",D4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(y4,{...s,...i,ref:a})});D4.displayName=k4;var O4="DropdownMenuRadioItem",Uw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(x4,{...s,...i,ref:a})});Uw.displayName=O4;var z4="DropdownMenuItemIndicator",L4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(b4,{...s,...i,ref:a})});L4.displayName=z4;var U4="DropdownMenuSeparator",qw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(w4,{...s,...i,ref:a})});qw.displayName=U4;var q4="DropdownMenuArrow",H4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(S4,{...s,...i,ref:a})});H4.displayName=q4;var B4="DropdownMenuSubTrigger",Hw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(j4,{...s,...i,ref:a})});Hw.displayName=B4;var Q4="DropdownMenuSubContent",Bw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,s=dn(r);return u.jsx(E4,{...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)"}})});Bw.displayName=Q4;var Y4=Dw,G4=Ow,$4=zw,V4=Lw,K4=Uw,X4=qw,F4=Hw,Z4=Bw;const Qw=pe("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");pe("flex items-center justify-between gap-2","px-3 py-2 rounded-lg text-sm","transition-colors duration-200",Qw,"hover:dark:border-white/[0.15] hover:border-gray-300","focus:outline-none focus:ring-2 focus:ring-blue-500/20 focus:dark:border-white/[0.15] focus:border-gray-300","data-[state=open]:dark:border-white/[0.15] data-[state=open]:border-gray-300");pe("z-50 min-w-[8rem] p-1 rounded-xl",Qw,"data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95","data-[side=bottom]:slide-in-from-top-2","data-[side=left]:slide-in-from-right-2","data-[side=right]:slide-in-from-left-2","data-[side=top]:slide-in-from-bottom-2");pe("relative flex items-center gap-3","px-3 py-2 rounded-lg text-sm cursor-pointer","outline-none select-none","transition-colors duration-150","dark:text-gray-200 text-gray-700","dark:hover:bg-white/[0.06] hover:bg-gray-100","dark:focus:bg-white/[0.08] focus:bg-gray-100","data-[disabled]:opacity-50 data-[disabled]:pointer-events-none");pe("dark:text-red-400 text-red-600","dark:hover:bg-red-500/10 hover:bg-red-50","dark:focus:bg-red-500/15 focus:bg-red-100");pe("px-3 py-2 text-xs font-medium","dark:text-gray-500 text-gray-400","select-none");pe("h-px my-1 -mx-1","dark:bg-white/[0.08] bg-gray-200");var Yw="Dialog",[Gw,$w]=gt(Yw),[zz,la]=Gw(Yw),Vw="DialogTrigger",Kw=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=la(Vw,r),c=we(a,s.triggerRef);return u.jsx(oe.button,{type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":rp(s.open),...i,ref:c,onClick:ae(n.onClick,s.onOpenToggle)})});Kw.displayName=Vw;var P4="DialogPortal",[Lz,Xw]=Gw(P4,{forceMount:void 0}),pc="DialogOverlay",Fw=v.forwardRef((n,a)=>{const r=Xw(pc,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=la(pc,n.__scopeDialog);return c.modal?u.jsx(jt,{present:i||c.open,children:u.jsx(W4,{...s,ref:a})}):null});Fw.displayName=pc;var J4=fr("DialogOverlay.RemoveScroll"),W4=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=la(pc,r);return u.jsx(Dc,{as:J4,allowPinchZoom:!0,shards:[s.contentRef],children:u.jsx(oe.div,{"data-state":rp(s.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),mr="DialogContent",Zw=v.forwardRef((n,a)=>{const r=Xw(mr,n.__scopeDialog),{forceMount:i=r.forceMount,...s}=n,c=la(mr,n.__scopeDialog);return u.jsx(jt,{present:i||c.open,children:c.modal?u.jsx(I4,{...s,ref:a}):u.jsx(e3,{...s,ref:a})})});Zw.displayName=mr;var I4=v.forwardRef((n,a)=>{const r=la(mr,n.__scopeDialog),i=v.useRef(null),s=we(a,r.contentRef,i);return v.useEffect(()=>{const c=i.current;if(c)return Pm(c)},[]),u.jsx(Pw,{...n,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(n.onCloseAutoFocus,c=>{var h;c.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ae(n.onPointerDownOutside,c=>{const h=c.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&c.preventDefault()}),onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault())})}),e3=v.forwardRef((n,a)=>{const r=la(mr,n.__scopeDialog),i=v.useRef(!1),s=v.useRef(!1);return u.jsx(Pw,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,c),c.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),c.preventDefault()),i.current=!1,s.current=!1},onInteractOutside:c=>{var h,m;(h=n.onInteractOutside)==null||h.call(n,c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(s.current=!0));const p=c.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&s.current&&c.preventDefault()}})}),Pw=v.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:c,...h}=n,m=la(mr,r),p=v.useRef(null),g=we(a,p);return Um(),u.jsxs(u.Fragment,{children:[u.jsx(Cc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:c,children:u.jsx(Hi,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":rp(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(n3,{titleId:m.titleId}),u.jsx(l3,{contentRef:p,descriptionId:m.descriptionId})]})]})}),lp="DialogTitle",Jw=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=la(lp,r);return u.jsx(oe.h2,{id:s.titleId,...i,ref:a})});Jw.displayName=lp;var Ww="DialogDescription",Iw=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=la(Ww,r);return u.jsx(oe.p,{id:s.descriptionId,...i,ref:a})});Iw.displayName=Ww;var eS="DialogClose",tS=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,s=la(eS,r);return u.jsx(oe.button,{type:"button",...i,ref:a,onClick:ae(n.onClick,()=>s.onOpenChange(!1))})});tS.displayName=eS;function rp(n){return n?"open":"closed"}var nS="DialogTitleWarning",[t3,aS]=YT(nS,{contentName:mr,titleName:lp,docsSlug:"dialog"}),n3=({titleId:n})=>{const a=aS(nS),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
327
|
-
|
|
328
|
-
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
329
|
-
|
|
330
|
-
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},a3="DialogDescriptionWarning",l3=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${aS(a3).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},r3=Kw,i3=Fw,o3=Zw,s3=Jw,u3=Iw,lS=tS,c3="AlertDialog",[d3,Uz]=gt(c3,[$w]),br=$w(),f3="AlertDialogTrigger",h3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=br(r);return u.jsx(r3,{...s,...i,ref:a})});h3.displayName=f3;var m3="AlertDialogOverlay",p3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=br(r);return u.jsx(i3,{...s,...i,ref:a})});p3.displayName=m3;var hi="AlertDialogContent",[v3,g3]=d3(hi),y3=i1("AlertDialogContent"),x3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...s}=n,c=br(r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return u.jsx(t3,{contentName:hi,titleName:rS,docsSlug:"alert-dialog",children:u.jsx(v3,{scope:r,cancelRef:p,children:u.jsxs(o3,{role:"alertdialog",...c,...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:[u.jsx(y3,{children:i}),u.jsx(N3,{contentRef:h})]})})})});x3.displayName=hi;var rS="AlertDialogTitle",b3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=br(r);return u.jsx(s3,{...s,...i,ref:a})});b3.displayName=rS;var iS="AlertDialogDescription",w3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=br(r);return u.jsx(u3,{...s,...i,ref:a})});w3.displayName=iS;var S3="AlertDialogAction",j3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,s=br(r);return u.jsx(lS,{...s,...i,ref:a})});j3.displayName=S3;var oS="AlertDialogCancel",E3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:s}=g3(oS,r),c=br(r),h=we(a,s);return u.jsx(lS,{...c,...i,ref:h})});E3.displayName=oS;var N3=({contentRef:n})=>{const a=`\`${hi}\` requires a description for the component to be accessible for screen reader users.
|
|
331
|
-
|
|
332
|
-
You can add a description to the \`${hi}\` by passing a \`${iS}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
333
|
-
|
|
334
|
-
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 \`${hi}\`. 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.
|
|
335
|
-
|
|
336
|
-
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 gs(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 sS=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"}),C3="VisuallyHidden",uS=v.forwardRef((n,a)=>u.jsx(oe.span,{...n,ref:a,style:{...sS,...n.style}}));uS.displayName=C3;var cS=uS,_3=[" ","Enter","ArrowUp","ArrowDown"],R3=[" ","Enter"],Lc="Select",[ip,Uc,T3]=qi(Lc),[Vi,qz]=gt(Lc,[T3,Yi]),op=Yi(),[Hz,Al]=Vi(Lc),[Bz,M3]=Vi(Lc),dS="SelectTrigger",A3=v.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...s}=n,c=op(r),h=Al(dS,r),m=h.disabled||i,p=we(a,h.onTriggerChange),g=Uc(r),y=v.useRef("touch"),[x,w,j]=SS(S=>{const C=g().filter(T=>!T.disabled),_=C.find(T=>T.value===h.value),R=jS(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 u.jsx(Vm,{asChild:!0,...c,children:u.jsx(oe.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":wS(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=x.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&w(S.key),!(C&&S.key===" ")&&_3.includes(S.key)&&(E(),S.preventDefault())})})})});A3.displayName=dS;var fS="SelectValue",k3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,children:c,placeholder:h="",...m}=n,p=Al(fS,r),{onValueNodeHasChildrenChange:g}=p,y=c!==void 0,x=we(a,p.onValueNodeChange);return lt(()=>{g(y)},[g,y]),u.jsx(oe.span,{...m,ref:x,style:{pointerEvents:"none"},children:wS(p.value)?u.jsx(u.Fragment,{children:h}):c})});k3.displayName=fS;var D3="SelectIcon",O3=v.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...s}=n;return u.jsx(oe.span,{"aria-hidden":!0,...s,ref:a,children:i||"▼"})});O3.displayName=D3;var pr="SelectContent",z3=v.forwardRef((n,a)=>{const r=Al(pr,n.__scopeSelect),[i,s]=v.useState();if(lt(()=>{s(new DocumentFragment)},[]),!r.open){const c=i;return c?cs.createPortal(u.jsx(hS,{scope:n.__scopeSelect,children:u.jsx(ip.Slot,{scope:n.__scopeSelect,children:u.jsx("div",{children:n.children})})}),c):null}return u.jsx(mS,{...n,ref:a})});z3.displayName=pr;var kn=10,[hS,kl]=Vi(pr),L3="SelectContentImpl",U3=fr("SelectContent.RemoveScroll"),mS=v.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:s,onEscapeKeyDown:c,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C,..._}=n,R=Al(pr,r),[T,D]=v.useState(null),[L,K]=v.useState(null),H=we(a,ne=>D(ne)),[q,G]=v.useState(null),[te,ue]=v.useState(null),ce=Uc(r),[I,ie]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(T)return Pm(T)},[T]),Um();const U=v.useCallback(ne=>{const[Ee,...ye]=ce().map($e=>$e.ref.current),[Ne]=ye.slice(-1),He=document.activeElement;for(const $e of ne)if($e===He||($e==null||$e.scrollIntoView({block:"nearest"}),$e===Ee&&L&&(L.scrollTop=0),$e===Ne&&L&&(L.scrollTop=L.scrollHeight),$e==null||$e.focus(),document.activeElement!==He))return},[ce,L]),W=v.useCallback(()=>U([q,T]),[U,q,T]);v.useEffect(()=>{I&&W()},[I,W]);const{onOpenChange:$,triggerPointerDownPosRef:X}=R;v.useEffect(()=>{if(T){let ne={x:0,y:0};const Ee=Ne=>{var He,$e;ne={x:Math.abs(Math.round(Ne.pageX)-(((He=X.current)==null?void 0:He.x)??0)),y:Math.abs(Math.round(Ne.pageY)-((($e=X.current)==null?void 0:$e.y)??0))}},ye=Ne=>{ne.x<=10&&ne.y<=10?Ne.preventDefault():T.contains(Ne.target)||$(!1),document.removeEventListener("pointermove",Ee),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",ye,{capture:!0})}}},[T,$,X]),v.useEffect(()=>{const ne=()=>$(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[$]);const[de,A]=SS(ne=>{const Ee=ce().filter(He=>!He.disabled),ye=Ee.find(He=>He.ref.current===document.activeElement),Ne=jS(Ee,ne,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),F=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)&&ue(ne)},[R.value]),ve=i==="popper"?sm:pS,je=ve===sm?{side:m,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:w,collisionPadding:j,sticky:E,hideWhenDetached:S,avoidCollisions:C}:{};return u.jsx(hS,{scope:r,content:T,viewport:L,onViewportChange:K,itemRefCallback:F,selectedItem:q,onItemLeave:ee,itemTextRefCallback:le,focusSelectedItem:W,selectedItemText:te,position:i,isPositioned:I,searchRef:de,children:u.jsx(Dc,{as:U3,allowPinchZoom:!0,children:u.jsx(Cc,{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:u.jsx(Hi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>R.onOpenChange(!1),children:u.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:H,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ae(_.onKeyDown,ne=>{const Ee=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!Ee&&ne.key.length===1&&A(ne.key),["ArrowUp","ArrowDown","Home","End"].includes(ne.key)){let ye=ce().filter(Ne=>!Ne.disabled).map(Ne=>Ne.ref.current);if(["ArrowUp","End"].includes(ne.key)&&(ye=ye.slice().reverse()),["ArrowUp","ArrowDown"].includes(ne.key)){const Ne=ne.target,He=ye.indexOf(Ne);ye=ye.slice(He+1)}setTimeout(()=>U(ye)),ne.preventDefault()}})})})})})})});mS.displayName=L3;var q3="SelectItemAlignedPosition",pS=v.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...s}=n,c=Al(pr,r),h=kl(pr,r),[m,p]=v.useState(null),[g,y]=v.useState(null),x=we(a,H=>y(H)),w=Uc(r),j=v.useRef(!1),E=v.useRef(!0),{viewport:S,selectedItem:C,selectedItemText:_,focusSelectedItem:R}=h,T=v.useCallback(()=>{if(c.trigger&&c.valueNode&&m&&g&&S&&C&&_){const H=c.trigger.getBoundingClientRect(),q=g.getBoundingClientRect(),G=c.valueNode.getBoundingClientRect(),te=_.getBoundingClientRect();if(c.dir!=="rtl"){const Ne=te.left-q.left,He=G.left-Ne,$e=H.left-He,Ot=H.width+$e,Pt=Math.max(Ot,q.width),ra=window.innerWidth-kn,ia=em(He,[kn,Math.max(kn,ra-Pt)]);m.style.minWidth=Ot+"px",m.style.left=ia+"px"}else{const Ne=q.right-te.right,He=window.innerWidth-G.right-Ne,$e=window.innerWidth-H.right-He,Ot=H.width+$e,Pt=Math.max(Ot,q.width),ra=window.innerWidth-kn,ia=em(He,[kn,Math.max(kn,ra-Pt)]);m.style.minWidth=Ot+"px",m.style.right=ia+"px"}const ue=w(),ce=window.innerHeight-kn*2,I=S.scrollHeight,ie=window.getComputedStyle(g),re=parseInt(ie.borderTopWidth,10),U=parseInt(ie.paddingTop,10),W=parseInt(ie.borderBottomWidth,10),$=parseInt(ie.paddingBottom,10),X=re+U+I+$+W,de=Math.min(C.offsetHeight*5,X),A=window.getComputedStyle(S),F=parseInt(A.paddingTop,10),ee=parseInt(A.paddingBottom,10),le=H.top+H.height/2-kn,ve=ce-le,je=C.offsetHeight/2,ne=C.offsetTop+je,Ee=re+U+ne,ye=X-Ee;if(Ee<=le){const Ne=ue.length>0&&C===ue[ue.length-1].ref.current;m.style.bottom="0px";const He=g.clientHeight-S.offsetTop-S.offsetHeight,$e=Math.max(ve,je+(Ne?ee:0)+He+W),Ot=Ee+$e;m.style.height=Ot+"px"}else{const Ne=ue.length>0&&C===ue[0].ref.current;m.style.top="0px";const He=Math.max(le,re+S.offsetTop+(Ne?F:0)+je)+ye;m.style.height=He+"px",S.scrollTop=Ee-le+S.offsetTop}m.style.margin=`${kn}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>j.current=!0)}},[w,c.trigger,c.valueNode,m,g,S,C,_,c.dir,i]);lt(()=>T(),[T]);const[D,L]=v.useState();lt(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const K=v.useCallback(H=>{H&&E.current===!0&&(T(),R==null||R(),E.current=!1)},[T,R]);return u.jsx(B3,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:j,onScrollButtonChange:K,children:u.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:u.jsx(oe.div,{...s,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...s.style}})})})});pS.displayName=q3;var H3="SelectPopperPosition",sm=v.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:s=kn,...c}=n,h=op(r);return u.jsx(Km,{...h,...c,ref:a,align:i,collisionPadding:s,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});sm.displayName=H3;var[B3,sp]=Vi(pr,{}),um="SelectViewport",Q3=v.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...s}=n,c=kl(um,r),h=sp(um,r),m=we(a,c.onViewportChange),p=v.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),u.jsx(ip.Slot,{scope:r,children:u.jsx(oe.div,{"data-radix-select-viewport":"",role:"presentation",...s,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...s.style},onScroll:ae(s.onScroll,g=>{const y=g.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:w}=h;if(w!=null&&w.current&&x){const j=Math.abs(p.current-y.scrollTop);if(j>0){const E=window.innerHeight-kn*2,S=parseFloat(x.style.minHeight),C=parseFloat(x.style.height),_=Math.max(S,C);if(_<E){const R=_+j,T=Math.min(E,R),D=R-T;x.style.height=T+"px",x.style.bottom==="0px"&&(y.scrollTop=D>0?D:0,x.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});Q3.displayName=um;var vS="SelectGroup",[Y3,G3]=Vi(vS),$3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=Ml();return u.jsx(Y3,{scope:r,id:s,children:u.jsx(oe.div,{role:"group","aria-labelledby":s,...i,ref:a})})});$3.displayName=vS;var gS="SelectLabel",V3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=G3(gS,r);return u.jsx(oe.div,{id:s.id,...i,ref:a})});V3.displayName=gS;var vc="SelectItem",[K3,yS]=Vi(vc),X3=v.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:s=!1,textValue:c,...h}=n,m=Al(vc,r),p=kl(vc,r),g=m.value===i,[y,x]=v.useState(c??""),[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=Ml(),C=v.useRef("touch"),_=()=>{s||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(K3,{scope:r,value:i,disabled:s,textId:S,isSelected:g,onItemTextChange:v.useCallback(R=>{x(T=>T||((R==null?void 0:R.textContent)??"").trim())},[]),children:u.jsx(ip.ItemSlot,{scope:r,value:i,disabled:s,textValue:y,children:u.jsx(oe.div,{role:"option","aria-labelledby":S,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":s||void 0,"data-disabled":s?"":void 0,tabIndex:s?void 0:-1,...h,ref:E,onFocus: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===" "||(R3.includes(R.key)&&_(),R.key===" "&&R.preventDefault())})})})})});X3.displayName=vc;var Xo="SelectItemText",F3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:s,...c}=n,h=Al(Xo,r),m=kl(Xo,r),p=yS(Xo,r),g=M3(Xo,r),[y,x]=v.useState(null),w=we(a,_=>x(_),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(()=>u.jsx("option",{value:p.value,disabled:p.disabled,children:j},p.value),[p.disabled,p.value,j]),{onNativeOptionAdd:S,onNativeOptionRemove:C}=g;return lt(()=>(S(E),()=>C(E)),[S,C,E]),u.jsxs(u.Fragment,{children:[u.jsx(oe.span,{id:p.textId,...c,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?cs.createPortal(c.children,h.valueNode):null]})});F3.displayName=Xo;var xS="SelectItemIndicator",Z3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return yS(xS,r).isSelected?u.jsx(oe.span,{"aria-hidden":!0,...i,ref:a}):null});Z3.displayName=xS;var cm="SelectScrollUpButton",P3=v.forwardRef((n,a)=>{const r=kl(cm,n.__scopeSelect),i=sp(cm,n.__scopeSelect),[s,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;c(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?u.jsx(bS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});P3.displayName=cm;var dm="SelectScrollDownButton",J3=v.forwardRef((n,a)=>{const r=kl(dm,n.__scopeSelect),i=sp(dm,n.__scopeSelect),[s,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;c(y)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),s?u.jsx(bS,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});J3.displayName=dm;var bS=v.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...s}=n,c=kl("SelectScrollButton",r),h=v.useRef(null),m=Uc(r),p=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),lt(()=>{var g;const y=m().find(x=>x.ref.current===document.activeElement);(g=y==null?void 0:y.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),u.jsx(oe.div,{"aria-hidden":!0,...s,ref:a,style:{flexShrink:0,...s.style},onPointerDown:ae(s.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ae(s.onPointerMove,()=>{var g;(g=c.onItemLeave)==null||g.call(c),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ae(s.onPointerLeave,()=>{p()})})}),W3="SelectSeparator",I3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return u.jsx(oe.div,{"aria-hidden":!0,...i,ref:a})});I3.displayName=W3;var fm="SelectArrow",eD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,s=op(r),c=Al(fm,r),h=kl(fm,r);return c.open&&h.position==="popper"?u.jsx(Xm,{...s,...i,ref:a}):null});eD.displayName=fm;var tD="SelectBubbleInput",nD=v.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const s=v.useRef(null),c=we(i,s),h=gs(a);return v.useEffect(()=>{const m=s.current;if(!m)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==a&&g){const y=new Event("change",{bubbles:!0});g.call(m,a),m.dispatchEvent(y)}},[h,a]),u.jsx(oe.select,{...r,style:{...sS,...r.style},ref:c,defaultValue:a})});nD.displayName=tD;function wS(n){return n===""||n===void 0}function SS(n){const a=nt(n),r=v.useRef(""),i=v.useRef(0),s=v.useCallback(h=>{const m=r.current+h;a(m),(function p(g){r.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(m)},[a]),c=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,s,c]}function jS(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,s=r?n.indexOf(r):-1;let c=aD(n,Math.max(s,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function aD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[qc,Qz]=gt("Tooltip",[Yi]),up=Yi(),lD="TooltipProvider",Qx="tooltip.open",[Yz,ES]=qc(lD),NS="Tooltip",[Gz,Hc]=qc(NS),hm="TooltipTrigger",rD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=Hc(hm,r),c=ES(hm,r),h=up(r),m=v.useRef(null),p=we(a,m,s.onTriggerChange),g=v.useRef(!1),y=v.useRef(!1),x=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),u.jsx(Vm,{asChild:!0,...h,children:u.jsx(oe.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&&!c.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",x,{once:!0})}),onFocus:ae(n.onFocus,()=>{g.current||s.onOpen()}),onBlur:ae(n.onBlur,s.onClose),onClick:ae(n.onClick,s.onClose)})})});rD.displayName=hm;var iD="TooltipPortal",[$z,oD]=qc(iD,{forceMount:void 0}),Mi="TooltipContent",CS=v.forwardRef((n,a)=>{const r=oD(Mi,n.__scopeTooltip),{forceMount:i=r.forceMount,side:s="top",...c}=n,h=Hc(Mi,n.__scopeTooltip);return u.jsx(jt,{present:i||h.open,children:h.disableHoverableContent?u.jsx(_S,{side:s,...c,ref:a}):u.jsx(sD,{side:s,...c,ref:a})})}),sD=v.forwardRef((n,a)=>{const r=Hc(Mi,n.__scopeTooltip),i=ES(Mi,n.__scopeTooltip),s=v.useRef(null),c=we(a,s),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,y=s.current,{onPointerInTransitChange:x}=i,w=v.useCallback(()=>{m(null),x(!1)},[x]),j=v.useCallback((E,S)=>{const C=E.currentTarget,_={x:E.clientX,y:E.clientY},R=hD(_,C.getBoundingClientRect()),T=mD(_,R),D=pD(S.getBoundingClientRect()),L=gD([...T,...D]);m(L),x(!0)},[x]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&y){const E=C=>j(C,y),S=C=>j(C,p);return p.addEventListener("pointerleave",E),y.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",E),y.removeEventListener("pointerleave",S)}}},[p,y,j,w]),v.useEffect(()=>{if(h){const E=S=>{const C=S.target,_={x:S.clientX,y:S.clientY},R=(p==null?void 0:p.contains(C))||(y==null?void 0:y.contains(C)),T=!vD(_,h);R?w():T&&(w(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,y,h,g,w]),u.jsx(_S,{...n,ref:c})}),[uD,cD]=qc(NS,{isInside:!1}),dD=i1("TooltipContent"),_S=v.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":s,onEscapeKeyDown:c,onPointerDownOutside:h,...m}=n,p=Hc(Mi,r),g=up(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Qx,y),()=>document.removeEventListener(Qx,y)),[y]),v.useEffect(()=>{if(p.trigger){const x=w=>{const j=w.target;j!=null&&j.contains(p.trigger)&&y()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[p.trigger,y]),u.jsx(Hi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:x=>x.preventDefault(),onDismiss:y,children:u.jsxs(Km,{"data-state":p.stateAttribute,...g,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(dD,{children:i}),u.jsx(uD,{scope:r,isInside:!0,children:u.jsx(cS,{id:p.contentId,role:"tooltip",children:s||i})})]})})});CS.displayName=Mi;var RS="TooltipArrow",fD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,s=up(r);return cD(RS,r).isInside?null:u.jsx(Xm,{...s,...i,ref:a})});fD.displayName=RS;function hD(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),s=Math.abs(a.right-n.x),c=Math.abs(a.left-n.x);switch(Math.min(r,i,s,c)){case c:return"left";case s:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function mD(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 pD(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 vD(n,a){const{x:r,y:i}=n;let s=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,y=m.y,x=p.x,w=p.y;y>i!=w>i&&r<(x-g)*(i-y)/(w-y)+g&&(s=!s)}return s}function gD(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),yD(a)}function yD(n){if(n.length<=1)return n.slice();const a=[];for(let i=0;i<n.length;i++){const s=n[i];for(;a.length>=2;){const c=a[a.length-1],h=a[a.length-2];if((c.x-h.x)*(s.y-h.y)>=(c.y-h.y)*(s.x-h.x))a.pop();else break}a.push(s)}a.pop();const r=[];for(let i=n.length-1;i>=0;i--){const s=n[i];for(;r.length>=2;){const c=r[r.length-1],h=r[r.length-2];if((c.x-h.x)*(s.y-h.y)>=(c.y-h.y)*(s.x-h.x))r.pop();else break}r.push(s)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var xD=CS;xD.displayName;var Bc="Checkbox",[bD,Vz]=gt(Bc),[wD,cp]=bD(Bc);function SD(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:s,disabled:c,form:h,name:m,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:x}=n,[w,j]=na({prop:r,defaultProp:s??!1,onChange:p,caller:Bc}),[E,S]=v.useState(null),[C,_]=v.useState(null),R=v.useRef(!1),T=E?!!h||!!E.closest("form"):!0,D={checked:w,disabled:c,setChecked:j,control:E,setControl:S,name:m,form:h,value:y,hasConsumerStoppedPropagationRef:R,required:g,defaultChecked:Cl(s)?!1:s,isFormControl:T,bubbleInput:C,setBubbleInput:_};return u.jsx(wD,{scope:a,...D,children:ND(x)?x(D):i})}var TS="CheckboxTrigger",MS=v.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},s)=>{const{control:c,value:h,disabled:m,checked:p,required:g,setControl:y,setChecked:x,hasConsumerStoppedPropagationRef:w,isFormControl:j,bubbleInput:E}=cp(TS,n),S=we(s,y),C=v.useRef(p);return v.useEffect(()=>{const _=c==null?void 0:c.form;if(_){const R=()=>x(C.current);return _.addEventListener("reset",R),()=>_.removeEventListener("reset",R)}},[c,x]),u.jsx(oe.button,{type:"button",role:"checkbox","aria-checked":Cl(p)?"mixed":p,"aria-required":g,"data-state":OS(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:S,onKeyDown:ae(a,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ae(r,_=>{x(R=>Cl(R)?!0:!R),E&&j&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});MS.displayName=TS;var jD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:s,defaultChecked:c,required:h,disabled:m,value:p,onCheckedChange:g,form:y,...x}=n;return u.jsx(SD,{__scopeCheckbox:r,checked:s,defaultChecked:c,disabled:m,required:h,onCheckedChange:g,name:i,form:y,value:p,internal_do_not_use_render:({isFormControl:w})=>u.jsxs(u.Fragment,{children:[u.jsx(MS,{...x,ref:a,__scopeCheckbox:r}),w&&u.jsx(DS,{__scopeCheckbox:r})]})})});jD.displayName=Bc;var AS="CheckboxIndicator",ED=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...s}=n,c=cp(AS,r);return u.jsx(jt,{present:i||Cl(c.checked)||c.checked===!0,children:u.jsx(oe.span,{"data-state":OS(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:a,style:{pointerEvents:"none",...n.style}})})});ED.displayName=AS;var kS="CheckboxBubbleInput",DS=v.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:s,checked:c,defaultChecked:h,required:m,disabled:p,name:g,value:y,form:x,bubbleInput:w,setBubbleInput:j}=cp(kS,n),E=we(r,j),S=gs(c),C=Ac(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!==c&&D){const K=new Event("click",{bubbles:L});R.indeterminate=Cl(c),D.call(R,Cl(c)?!1:c),R.dispatchEvent(K)}},[w,S,c,s]);const _=v.useRef(Cl(c)?!1:c);return u.jsx(oe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:g,value:y,form:x,...a,tabIndex:-1,ref:E,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});DS.displayName=kS;function ND(n){return typeof n=="function"}function Cl(n){return n==="indeterminate"}function OS(n){return Cl(n)?"indeterminate":n?"checked":"unchecked"}var dp="Radio",[CD,zS]=gt(dp),[_D,RD]=CD(dp),LS=v.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:s=!1,required:c,disabled:h,value:m="on",onCheck:p,form:g,...y}=n,[x,w]=v.useState(null),j=we(a,C=>w(C)),E=v.useRef(!1),S=x?g||!!x.closest("form"):!0;return u.jsxs(_D,{scope:r,checked:s,disabled:h,children:[u.jsx(oe.button,{type:"button",role:"radio","aria-checked":s,"data-state":BS(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&&u.jsx(HS,{control:x,bubbles:!E.current,name:i,value:m,checked:s,required:c,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});LS.displayName=dp;var US="RadioIndicator",qS=v.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...s}=n,c=RD(US,r);return u.jsx(jt,{present:i||c.checked,children:u.jsx(oe.span,{"data-state":BS(c.checked),"data-disabled":c.disabled?"":void 0,...s,ref:a})})});qS.displayName=US;var TD="RadioBubbleInput",HS=v.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...s},c)=>{const h=v.useRef(null),m=we(h,c),p=gs(r),g=Ac(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const x=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(x,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),u.jsx(oe.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});HS.displayName=TD;function BS(n){return n?"checked":"unchecked"}var MD=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Qc="RadioGroup",[AD,Kz]=gt(Qc,[Gi,zS]),QS=Gi(),YS=zS(),[kD,DD]=AD(Qc),GS=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:s,value:c,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:y=!0,onValueChange:x,...w}=n,j=QS(r),E=Ui(g),[S,C]=na({prop:c,defaultProp:s??null,onChange:x,caller:Qc});return u.jsx(kD,{scope:r,name:i,required:h,disabled:m,value:S,onValueChange:C,children:u.jsx(Fm,{asChild:!0,...j,orientation:p,dir:E,loop:y,children:u.jsx(oe.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...w,ref:a})})})});GS.displayName=Qc;var $S="RadioGroupItem",VS=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...s}=n,c=DD($S,r),h=c.disabled||i,m=QS(r),p=YS(r),g=v.useRef(null),y=we(a,g),x=c.value===s.value,w=v.useRef(!1);return v.useEffect(()=>{const j=S=>{MD.includes(S.key)&&(w.current=!0)},E=()=>w.current=!1;return document.addEventListener("keydown",j),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",j),document.removeEventListener("keyup",E)}},[]),u.jsx(Zm,{asChild:!0,...m,focusable:!h,active:x,children:u.jsx(LS,{disabled:h,required:c.required,checked:x,...p,...s,name:c.name,ref:y,onCheck:()=>c.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())})})})});VS.displayName=$S;var OD="RadioGroupIndicator",zD=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,s=YS(r);return u.jsx(qS,{...s,...i,ref:a})});zD.displayName=OD;var LD=GS,UD=VS;LD.displayName;UD.displayName;var Yc="Switch",[qD,Xz]=gt(Yc),[HD,BD]=qD(Yc),KS=v.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:s,defaultChecked:c,required:h,disabled:m,value:p="on",onCheckedChange:g,form:y,...x}=n,[w,j]=v.useState(null),E=we(a,T=>j(T)),S=v.useRef(!1),C=w?y||!!w.closest("form"):!0,[_,R]=na({prop:s,defaultProp:c??!1,onChange:g,caller:Yc});return u.jsxs(HD,{scope:r,checked:_,disabled:m,children:[u.jsx(oe.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":PS(_),"data-disabled":m?"":void 0,disabled:m,value:p,...x,ref:E,onClick:ae(n.onClick,T=>{R(D=>!D),C&&(S.current=T.isPropagationStopped(),S.current||T.stopPropagation())})}),C&&u.jsx(ZS,{control:w,bubbles:!S.current,name:i,value:p,checked:_,required:h,disabled:m,form:y,style:{transform:"translateX(-100%)"}})]})});KS.displayName=Yc;var XS="SwitchThumb",FS=v.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,s=BD(XS,r);return u.jsx(oe.span,{"data-state":PS(s.checked),"data-disabled":s.disabled?"":void 0,...i,ref:a})});FS.displayName=XS;var QD="SwitchBubbleInput",ZS=v.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...s},c)=>{const h=v.useRef(null),m=we(h,c),p=gs(r),g=Ac(a);return v.useEffect(()=>{const y=h.current;if(!y)return;const x=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(x,"checked").set;if(p!==r&&w){const j=new Event("click",{bubbles:i});w.call(y,r),y.dispatchEvent(j)}},[p,r,i]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...s,tabIndex:-1,ref:m,style:{...s.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});ZS.displayName=QD;function PS(n){return n?"checked":"unchecked"}var YD=KS,GD=FS;function kh({className:n,...a}){return u.jsx(YD,{"data-slot":"switch",className:pe("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",n),...a,children:u.jsx(GD,{"data-slot":"switch-thumb",className:pe("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")})})}var Gc="Tabs",[$D,Fz]=gt(Gc,[Gi]),JS=Gi(),[VD,fp]=$D(Gc),WS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:s,defaultValue:c,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,y=Ui(m),[x,w]=na({prop:i,onChange:s,defaultProp:c??"",caller:Gc});return u.jsx(VD,{scope:r,baseId:Ml(),value:x,onValueChange:w,orientation:h,dir:y,activationMode:p,children:u.jsx(oe.div,{dir:y,"data-orientation":h,...g,ref:a})})});WS.displayName=Gc;var IS="TabsList",ej=v.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...s}=n,c=fp(IS,r),h=JS(r);return u.jsx(Fm,{asChild:!0,...h,orientation:c.orientation,dir:c.dir,loop:i,children:u.jsx(oe.div,{role:"tablist","aria-orientation":c.orientation,...s,ref:a})})});ej.displayName=IS;var tj="TabsTrigger",nj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:s=!1,...c}=n,h=fp(tj,r),m=JS(r),p=rj(h.baseId,i),g=ij(h.baseId,i),y=i===h.value;return u.jsx(Zm,{asChild:!0,...m,focusable:!s,active:y,children:u.jsx(oe.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:p,...c,ref:a,onMouseDown:ae(n.onMouseDown,x=>{!s&&x.button===0&&x.ctrlKey===!1?h.onValueChange(i):x.preventDefault()}),onKeyDown:ae(n.onKeyDown,x=>{[" ","Enter"].includes(x.key)&&h.onValueChange(i)}),onFocus:ae(n.onFocus,()=>{const x=h.activationMode!=="manual";!y&&!s&&x&&h.onValueChange(i)})})})});nj.displayName=tj;var aj="TabsContent",lj=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:s,children:c,...h}=n,m=fp(aj,r),p=rj(m.baseId,i),g=ij(m.baseId,i),y=i===m.value,x=v.useRef(y);return v.useEffect(()=>{const w=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(w)},[]),u.jsx(jt,{present:s||y,children:({present:w})=>u.jsx(oe.div,{"data-state":y?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...h,ref:a,style:{...n.style,animationDuration:x.current?"0s":void 0},children:w&&c})})});lj.displayName=aj;function rj(n,a){return`${n}-trigger-${a}`}function ij(n,a){return`${n}-content-${a}`}var KD=WS,XD=ej,FD=nj,ZD=lj;function oj({className:n,...a}){return u.jsx(KD,{"data-slot":"tabs",className:pe("flex flex-col gap-2",n),...a})}function sj({className:n,...a}){return u.jsx(XD,{"data-slot":"tabs-list",className:pe("flex border-b border-border",n),...a})}function Po({className:n,children:a,...r}){return u.jsx(FD,{asChild:!0,...r,children:u.jsx(u1,{className:n,children:a})})}function Jo({className:n,...a}){return u.jsx(ZD,{"data-slot":"tabs-content",className:pe("flex-1 outline-none",n),...a})}function PD(n){const a=JD(n),r=v.forwardRef((i,s)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(ID);if(p){const g=p.props.children,y=m.map(x=>x===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:x);return u.jsx(a,{...h,ref:s,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return u.jsx(a,{...h,ref:s,children:c})});return r.displayName=`${n}.Slot`,r}function JD(n){const a=v.forwardRef((r,i)=>{const{children:s,...c}=r,h=v.isValidElement(s)?tO(s):void 0,m=we(h,i);if(v.isValidElement(s)){const p=eO(c,s.props);return s.type!==v.Fragment&&(p.ref=m),v.cloneElement(s,p)}return v.Children.count(s)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var WD=Symbol("radix.slottable");function ID(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===WD}function eO(n,a){const r={...a};for(const i in a){const s=n[i],c=a[i];/^on[A-Z]/.test(i)?s&&c?r[i]=(...h)=>{const m=c(...h);return s(...h),m}:s&&(r[i]=s):i==="style"?r[i]={...s,...c}:i==="className"&&(r[i]=[s,c].filter(Boolean).join(" "))}return{...n,...r}}function tO(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 nO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],hp=nO.reduce((n,a)=>{const r=PD(`Primitive.${a}`),i=v.forwardRef((s,c)=>{const{asChild:h,...m}=s,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{}),mp="Progress",pp=100,[aO,Zz]=gt(mp),[lO,rO]=aO(mp),iO=v.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:s,getValueLabel:c=sO,...h}=n;(s||s===0)&&!Yx(s)&&console.error(uO(`${s}`,"Progress"));const m=Yx(s)?s:pp;i!==null&&!Gx(i,m)&&console.error(cO(`${i}`,"Progress"));const p=Gx(i,m)?i:null,g=gc(p)?c(p,m):void 0;return u.jsx(lO,{scope:r,value:p,max:m,children:u.jsx(hp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":gc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":cj(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});iO.displayName=mp;var uj="ProgressIndicator",oO=v.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,s=rO(uj,r);return u.jsx(hp.div,{"data-state":cj(s.value,s.max),"data-value":s.value??void 0,"data-max":s.max,...i,ref:a})});oO.displayName=uj;function sO(n,a){return`${Math.round(n/a*100)}%`}function cj(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function gc(n){return typeof n=="number"}function Yx(n){return gc(n)&&!isNaN(n)&&n>0}function Gx(n,a){return gc(n)&&!isNaN(n)&&n<=a&&n>=0}function uO(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${pp}\`.`}function cO(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
|
|
337
|
-
- a positive number
|
|
338
|
-
- less than the value passed to \`max\` (or ${pp} if no \`max\` prop is set)
|
|
339
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
340
|
-
|
|
341
|
-
Defaulting to \`null\`.`}var dO="Separator",$x="horizontal",fO=["horizontal","vertical"],hO=v.forwardRef((n,a)=>{const{decorative:r,orientation:i=$x,...s}=n,c=mO(i)?i:$x,h=r?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return u.jsx(hp.div,{"data-orientation":c,...h,...s,ref:a})});hO.displayName=dO;function mO(n){return fO.includes(n)}var pO="Label",dj=v.forwardRef((n,a)=>u.jsx(oe.label,{...n,ref:a,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=n.onMouseDown)==null||i.call(n,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));dj.displayName=pO;var fj=dj;const vO=s1("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Fo=({ref:n,className:a,...r})=>u.jsx(fj,{ref:n,className:pe(vO(),a),...r});Fo.displayName=fj.displayName;var $c="Collapsible",[gO,hj]=gt($c),[yO,vp]=gO($c),mj=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:s,disabled:c,onOpenChange:h,...m}=n,[p,g]=na({prop:i,defaultProp:s??!1,onChange:h,caller:$c});return u.jsx(yO,{scope:r,disabled:c,contentId:Ml(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:u.jsx(oe.div,{"data-state":bp(p),"data-disabled":c?"":void 0,...m,ref:a})})});mj.displayName=$c;var pj="CollapsibleTrigger",gp=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,s=vp(pj,r);return u.jsx(oe.button,{type:"button","aria-controls":s.contentId,"aria-expanded":s.open||!1,"data-state":bp(s.open),"data-disabled":s.disabled?"":void 0,disabled:s.disabled,...i,ref:a,onClick:ae(n.onClick,s.onOpenToggle)})});gp.displayName=pj;var yp="CollapsibleContent",xp=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=vp(yp,n.__scopeCollapsible);return u.jsx(jt,{present:r||s.open,children:({present:c})=>u.jsx(xO,{...i,ref:a,present:c})})});xp.displayName=yp;var xO=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:s,...c}=n,h=vp(yp,r),[m,p]=v.useState(i),g=v.useRef(null),y=we(a,g),x=v.useRef(0),w=x.current,j=v.useRef(0),E=j.current,S=h.open||m,C=v.useRef(S),_=v.useRef(void 0);return v.useEffect(()=>{const R=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(R)},[]),lt(()=>{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();x.current=T.height,j.current=T.width,C.current||(R.style.transitionDuration=_.current.transitionDuration,R.style.animationName=_.current.animationName),p(i)}},[h.open,i]),u.jsx(oe.div,{"data-state":bp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!S,...c,ref:y,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:S&&s})});function bp(n){return n?"open":"closed"}var vj=mj,bO=gp,wO=xp,Gn="Accordion",SO=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[wp,jO,EO]=qi(Gn),[Vc,Pz]=gt(Gn,[EO,hj]),Sp=hj(),NO=st.forwardRef((n,a)=>{const{type:r,...i}=n,s=i,c=i;return u.jsx(wp.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?u.jsx(TO,{...c,ref:a}):u.jsx(RO,{...s,ref:a})})});NO.displayName=Gn;var[gj,CO]=Vc(Gn),[yj,_O]=Vc(Gn,{collapsible:!1}),RO=st.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},collapsible:c=!1,...h}=n,[m,p]=na({prop:r,defaultProp:i??"",onChange:s,caller:Gn});return u.jsx(gj,{scope:n.__scopeAccordion,value:st.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:st.useCallback(()=>c&&p(""),[c,p]),children:u.jsx(yj,{scope:n.__scopeAccordion,collapsible:c,children:u.jsx(xj,{...h,ref:a})})})}),TO=st.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:s=()=>{},...c}=n,[h,m]=na({prop:r,defaultProp:i??[],onChange:s,caller:Gn}),p=st.useCallback(y=>m((x=[])=>[...x,y]),[m]),g=st.useCallback(y=>m((x=[])=>x.filter(w=>w!==y)),[m]);return u.jsx(gj,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:u.jsx(yj,{scope:n.__scopeAccordion,collapsible:!0,children:u.jsx(xj,{...c,ref:a})})})}),[MO,Kc]=Vc(Gn),xj=st.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:s,orientation:c="vertical",...h}=n,m=st.useRef(null),p=we(m,a),g=jO(r),y=Ui(s)==="ltr",x=ae(n.onKeyDown,w=>{var j;if(!SO.includes(w.key))return;const E=w.target,S=g().filter(q=>{var G;return!((G=q.ref.current)!=null&&G.disabled)}),C=S.findIndex(q=>q.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)},K=()=>{R=C-1,R<T&&(R=D)};switch(w.key){case"Home":R=T;break;case"End":R=D;break;case"ArrowRight":c==="horizontal"&&(y?L():K());break;case"ArrowDown":c==="vertical"&&L();break;case"ArrowLeft":c==="horizontal"&&(y?K():L());break;case"ArrowUp":c==="vertical"&&K();break}const H=R%_;(j=S[H].ref.current)==null||j.focus()});return u.jsx(MO,{scope:r,disabled:i,direction:s,orientation:c,children:u.jsx(wp.Slot,{scope:r,children:u.jsx(oe.div,{...h,"data-orientation":c,ref:p,onKeyDown:i?void 0:x})})})}),yc="AccordionItem",[AO,jp]=Vc(yc),kO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...s}=n,c=Kc(yc,r),h=CO(yc,r),m=Sp(r),p=Ml(),g=i&&h.value.includes(i)||!1,y=c.disabled||n.disabled;return u.jsx(AO,{scope:r,open:g,disabled:y,triggerId:p,children:u.jsx(vj,{"data-orientation":c.orientation,"data-state":Sj(g),...m,...s,ref:a,disabled:y,open:g,onOpenChange:x=>{x?h.onItemOpen(i):h.onItemClose(i)}})})});kO.displayName=yc;var bj="AccordionHeader",DO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Kc(Gn,r),c=jp(bj,r);return u.jsx(oe.h3,{"data-orientation":s.orientation,"data-state":Sj(c.open),"data-disabled":c.disabled?"":void 0,...i,ref:a})});DO.displayName=bj;var mm="AccordionTrigger",OO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Kc(Gn,r),c=jp(mm,r),h=_O(mm,r),m=Sp(r);return u.jsx(wp.ItemSlot,{scope:r,children:u.jsx(bO,{"aria-disabled":c.open&&!h.collapsible||void 0,"data-orientation":s.orientation,id:c.triggerId,...m,...i,ref:a})})});OO.displayName=mm;var wj="AccordionContent",zO=st.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,s=Kc(Gn,r),c=jp(wj,r),h=Sp(r);return u.jsx(wO,{role:"region","aria-labelledby":c.triggerId,"data-orientation":s.orientation,...h,...i,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});zO.displayName=wj;function Sj(n){return n?"open":"closed"}const jj=vj,Ej=gp,Nj=xp;var wr="NavigationMenu",[Ep,Cj,LO]=qi(wr),[pm,UO,qO]=qi(wr),[Np,Jz]=gt(wr,[LO,qO]),[HO,_n]=Np(wr),[BO,QO]=Np(wr),YO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...y}=n,[x,w]=v.useState(null),j=we(a,G=>w(G)),E=Ui(g),S=v.useRef(0),C=v.useRef(0),_=v.useRef(0),[R,T]=v.useState(!0),[D,L]=na({prop:i,onChange:G=>{const te=G!=="",ue=m>0;te?(window.clearTimeout(_.current),ue&&T(!1)):(window.clearTimeout(_.current),_.current=window.setTimeout(()=>T(!0),m)),s==null||s(G)},defaultProp:c??"",caller:wr}),K=v.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>L(""),150)},[L]),H=v.useCallback(G=>{window.clearTimeout(C.current),L(G)},[L]),q=v.useCallback(G=>{D===G?window.clearTimeout(C.current):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)},[]),u.jsx(_j,{scope:r,isRootMenu:!0,value:D,dir:E,orientation:p,rootNavigationMenu:x,onTriggerEnter:G=>{window.clearTimeout(S.current),R?q(G):H(G)},onTriggerLeave:()=>{window.clearTimeout(S.current),K()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:K,onItemSelect:G=>{L(te=>te===G?"":G)},onItemDismiss:()=>L(""),children:u.jsx(oe.nav,{"aria-label":"Main","data-orientation":p,dir:E,...y,ref:j})})});YO.displayName=wr;var vm="NavigationMenuSub",GO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:s,defaultValue:c,orientation:h="horizontal",...m}=n,p=_n(vm,r),[g,y]=na({prop:i,onChange:s,defaultProp:c??"",caller:vm});return u.jsx(_j,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:x=>y(x),onItemSelect:x=>y(x),onItemDismiss:()=>y(""),children:u.jsx(oe.div,{"data-orientation":h,...m,ref:a})})});GO.displayName=vm;var _j=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:s,orientation:c,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:y,onTriggerLeave:x,onContentEnter:w,onContentLeave:j}=n,[E,S]=v.useState(null),[C,_]=v.useState(new Map),[R,T]=v.useState(null);return u.jsx(HO,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:gs(m),baseId:Ml(),dir:s,orientation:c,viewport:E,onViewportChange:S,indicatorTrack:R,onIndicatorTrackChange:T,onTriggerEnter:nt(y),onTriggerLeave:nt(x),onContentEnter:nt(w),onContentLeave:nt(j),onItemSelect:nt(p),onItemDismiss:nt(g),onViewportContentChange:v.useCallback((D,L)=>{_(K=>(K.set(D,L),new Map(K)))},[]),onViewportContentRemove:v.useCallback(D=>{_(L=>L.has(D)?(L.delete(D),new Map(L)):L)},[]),children:u.jsx(Ep.Provider,{scope:a,children:u.jsx(BO,{scope:a,items:C,children:h})})})},Rj="NavigationMenuList",$O=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=_n(Rj,r),c=u.jsx(oe.ul,{"data-orientation":s.orientation,...i,ref:a});return u.jsx(oe.div,{style:{position:"relative"},ref:s.onIndicatorTrackChange,children:u.jsx(Ep.Slot,{scope:r,children:s.isRootMenu?u.jsx(kj,{asChild:!0,children:c}):c})})});$O.displayName=Rj;var Tj="NavigationMenuItem",[VO,Mj]=Np(Tj),KO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...s}=n,c=Ml(),h=i||c||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),y=v.useRef(()=>{}),x=v.useRef(!1),w=v.useCallback((E="start")=>{if(m.current){y.current();const S=ym(m.current);S.length&&Rp(E==="start"?S:S.reverse())}},[]),j=v.useCallback(()=>{if(m.current){const E=ym(m.current);E.length&&(y.current=l5(E))}},[]);return u.jsx(VO,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:x,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:j,onContentFocusOutside:j,children:u.jsx(oe.li,{...s,ref:a})})});KO.displayName=Tj;var gm="NavigationMenuTrigger",XO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...s}=n,c=_n(gm,n.__scopeNavigationMenu),h=Mj(gm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,a),g=Oj(c.baseId,h.value),y=zj(c.baseId,h.value),x=v.useRef(!1),w=v.useRef(!1),j=h.value===c.value;return u.jsxs(u.Fragment,{children:[u.jsx(Ep.ItemSlot,{scope:r,value:h.value,children:u.jsx(Dj,{asChild:!0,children:u.jsx(oe.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":Tp(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,xc(()=>{i||w.current||h.wasEscapeCloseRef.current||x.current||(c.onTriggerEnter(h.value),x.current=!0)})),onPointerLeave:ae(n.onPointerLeave,xc(()=>{i||(c.onTriggerLeave(),x.current=!1)})),onClick:ae(n.onClick,()=>{c.onItemSelect(h.value),w.current=j}),onKeyDown:ae(n.onKeyDown,E=>{const S={horizontal:"ArrowDown",vertical:c.dir==="rtl"?"ArrowLeft":"ArrowRight"}[c.orientation];j&&E.key===S&&(h.onEntryKeyDown(),E.preventDefault())})})})}),j&&u.jsxs(u.Fragment,{children:[u.jsx(cS,{"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")}}),c.viewport&&u.jsx("span",{"aria-owns":y})]})]})});XO.displayName=gm;var FO="NavigationMenuLink",Vx="navigationMenu.linkSelect",ZO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:s,...c}=n;return u.jsx(Dj,{asChild:!0,children:u.jsx(oe.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...c,ref:a,onClick:ae(n.onClick,h=>{const m=h.target,p=new CustomEvent(Vx,{bubbles:!0,cancelable:!0});if(m.addEventListener(Vx,g=>s==null?void 0:s(g),{once:!0}),ic(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(tc,{bubbles:!0,cancelable:!0});ic(m,g)}},{checkForDefaultPrevented:!1})})})});ZO.displayName=FO;var Cp="NavigationMenuIndicator",PO=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(Cp,n.__scopeNavigationMenu),c=!!s.value;return s.indicatorTrack?qb.createPortal(u.jsx(jt,{present:r||c,children:u.jsx(JO,{...i,ref:a})}),s.indicatorTrack):null});PO.displayName=Cp;var JO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=_n(Cp,r),c=Cj(r),[h,m]=v.useState(null),[p,g]=v.useState(null),y=s.orientation==="horizontal",x=!!s.value;v.useEffect(()=>{var j;const E=(j=c().find(S=>S.value===s.value))==null?void 0:j.ref.current;E&&m(E)},[c,s.value]);const w=()=>{h&&g({size:y?h.offsetWidth:h.offsetHeight,offset:y?h.offsetLeft:h.offsetTop})};return xm(h,w),xm(s.indicatorTrack,w),p?u.jsx(oe.div,{"aria-hidden":!0,"data-state":x?"visible":"hidden","data-orientation":s.orientation,...i,ref:a,style:{position:"absolute",...y?{left:0,width:p.size+"px",transform:`translateX(${p.offset}px)`}:{top:0,height:p.size+"px",transform:`translateY(${p.offset}px)`},...i.style}}):null}),Ai="NavigationMenuContent",WO=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=_n(Ai,n.__scopeNavigationMenu),c=Mj(Ai,n.__scopeNavigationMenu),h=we(c.contentRef,a),m=c.value===s.value,p={value:c.value,triggerRef:c.triggerRef,focusProxyRef:c.focusProxyRef,wasEscapeCloseRef:c.wasEscapeCloseRef,onContentFocusOutside:c.onContentFocusOutside,onRootContentClose:c.onRootContentClose,...i};return s.viewport?u.jsx(IO,{forceMount:r,...p,ref:h}):u.jsx(jt,{present:r||m,children:u.jsx(Aj,{"data-state":Tp(m),...p,ref:h,onPointerEnter:ae(n.onPointerEnter,s.onContentEnter),onPointerLeave:ae(n.onPointerLeave,xc(s.onContentLeave)),style:{pointerEvents:!m&&s.isRootMenu?"none":void 0,...p.style}})})});WO.displayName=Ai;var IO=v.forwardRef((n,a)=>{const r=_n(Ai,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:s}=r;return lt(()=>{i(n.value,{ref:a,...n})},[n,a,i]),lt(()=>()=>s(n.value),[n.value,s]),null}),tc="navigationMenu.rootContentDismiss",Aj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:s,focusProxyRef:c,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,y=_n(Ai,r),x=v.useRef(null),w=we(x,a),j=Oj(y.baseId,i),E=zj(y.baseId,i),S=Cj(r),C=v.useRef(null),{onItemDismiss:_}=y;v.useEffect(()=>{const T=x.current;if(y.isRootMenu&&T){const D=()=>{var L;_(),m(),T.contains(document.activeElement)&&((L=s.current)==null||L.focus())};return T.addEventListener(tc,D),()=>T.removeEventListener(tc,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),K=i===y.value,H=L===T.indexOf(i);if(!K&&!H)return C.current;const q=(()=>{if(D!==L){if(K&&L!==-1)return D>L?"from-end":"from-start";if(H&&D!==-1)return D>L?"to-start":"to-end"}return null})();return C.current=q,q},[y.previousValue,y.value,y.dir,S,i]);return u.jsx(kj,{asChild:!0,children:u.jsx(Hi,{id:E,"aria-labelledby":j,"data-motion":R,"data-orientation":y.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var T;const D=new Event(tc,{bubbles:!0,cancelable:!0});(T=x.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,K=S().some(q=>{var G;return(G=q.ref.current)==null?void 0:G.contains(L)}),H=y.isRootMenu&&((D=y.viewport)==null?void 0:D.contains(L));(K||H||!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 K=ym(T.currentTarget),H=document.activeElement,q=K.findIndex(te=>te===H),G=T.shiftKey?K.slice(0,q).reverse():K.slice(q+1,K.length);Rp(G)?T.preventDefault():(D=c.current)==null||D.focus()}}),onEscapeKeyDown:ae(n.onEscapeKeyDown,T=>{h.current=!0})})})}),_p="NavigationMenuViewport",e5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,s=!!_n(_p,n.__scopeNavigationMenu).value;return u.jsx(jt,{present:r||s,children:u.jsx(t5,{...i,ref:a})})});e5.displayName=_p;var t5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...s}=n,c=_n(_p,r),h=we(a,c.onViewportChange),m=QO(Ai,n.__scopeNavigationMenu),[p,g]=v.useState(null),[y,x]=v.useState(null),w=p?(p==null?void 0:p.width)+"px":void 0,j=p?(p==null?void 0:p.height)+"px":void 0,E=!!c.value,S=E?c.value:c.previousValue;return xm(y,()=>{y&&g({width:y.offsetWidth,height:y.offsetHeight})}),u.jsx(oe.div,{"data-state":Tp(E),"data-orientation":c.orientation,...s,ref:h,style:{pointerEvents:!E&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":j,...s.style},onPointerEnter:ae(n.onPointerEnter,c.onContentEnter),onPointerLeave:ae(n.onPointerLeave,xc(c.onContentLeave)),children:Array.from(m.items).map(([C,{ref:_,forceMount:R,...T}])=>{const D=S===C;return u.jsx(jt,{present:R||D,children:u.jsx(Aj,{...T,ref:hs(_,L=>{D&&L&&x(L)})})},C)})})}),n5="FocusGroup",kj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=_n(n5,r);return u.jsx(pm.Provider,{scope:r,children:u.jsx(pm.Slot,{scope:r,children:u.jsx(oe.div,{dir:s.dir,...i,ref:a})})})}),Kx=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],a5="FocusGroupItem",Dj=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,s=UO(r),c=_n(a5,r);return u.jsx(pm.ItemSlot,{scope:r,children:u.jsx(oe.button,{...i,ref:a,onKeyDown:ae(n.onKeyDown,h=>{if(["Home","End",...Kx].includes(h.key)){let m=s().map(p=>p.ref.current);if([c.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Kx.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>Rp(m)),h.preventDefault()}})})})});function ym(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 Rp(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function l5(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 xm(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const s=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return s.observe(n),()=>{window.cancelAnimationFrame(i),s.unobserve(n)}}},[n,r])}function Tp(n){return n?"open":"closed"}function Oj(n,a){return`${n}-trigger-${a}`}function zj(n,a){return`${n}-content-${a}`}function xc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Xx={exports:{}},Dh={};/**
|
|
342
|
-
* @license React
|
|
343
|
-
* use-sync-external-store-shim.production.js
|
|
344
|
-
*
|
|
345
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
346
|
-
*
|
|
347
|
-
* This source code is licensed under the MIT license found in the
|
|
348
|
-
* LICENSE file in the root directory of this source tree.
|
|
349
|
-
*/var Fx;function r5(){if(Fx)return Dh;Fx=1;var n=st;function a(x,w){return x===w&&(x!==0||1/x===1/w)||x!==x&&w!==w}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,s=n.useEffect,c=n.useLayoutEffect,h=n.useDebugValue;function m(x,w){var j=w(),E=i({inst:{value:j,getSnapshot:w}}),S=E[0].inst,C=E[1];return c(function(){S.value=j,S.getSnapshot=w,p(S)&&C({inst:S})},[x,j,w]),s(function(){return p(S)&&C({inst:S}),x(function(){p(S)&&C({inst:S})})},[x]),h(j),j}function p(x){var w=x.getSnapshot;x=x.value;try{var j=w();return!r(x,j)}catch{return!0}}function g(x,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return Dh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:y,Dh}var Zx;function i5(){return Zx||(Zx=1,Xx.exports=r5()),Xx.exports}var o5=i5();function s5(){return o5.useSyncExternalStore(u5,()=>!0,()=>!1)}function u5(){return()=>{}}var Mp="Avatar",[c5,Wz]=gt(Mp),[d5,Lj]=c5(Mp),Uj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[s,c]=v.useState("idle");return u.jsx(d5,{scope:r,imageLoadingStatus:s,onImageLoadingStatusChange:c,children:u.jsx(oe.span,{...i,ref:a})})});Uj.displayName=Mp;var qj="AvatarImage",Hj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:s=()=>{},...c}=n,h=Lj(qj,r),m=f5(i,c),p=nt(g=>{s(g),h.onImageLoadingStatusChange(g)});return lt(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?u.jsx(oe.img,{...c,ref:a,src:i}):null});Hj.displayName=qj;var Bj="AvatarFallback",Qj=v.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...s}=n,c=Lj(Bj,r),[h,m]=v.useState(i===void 0);return v.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>m(!0),i);return()=>window.clearTimeout(p)}},[i]),h&&c.imageLoadingStatus!=="loaded"?u.jsx(oe.span,{...s,ref:a}):null});Qj.displayName=Bj;function Px(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function f5(n,{referrerPolicy:a,crossOrigin:r}){const i=s5(),s=v.useRef(null),c=i?(s.current||(s.current=new window.Image),s.current):null,[h,m]=v.useState(()=>Px(c,n));return lt(()=>{m(Px(c,n))},[c,n]),lt(()=>{const p=x=>()=>{m(x)};if(!c)return;const g=p("loaded"),y=p("error");return c.addEventListener("load",g),c.addEventListener("error",y),a&&(c.referrerPolicy=a),typeof r=="string"&&(c.crossOrigin=r),()=>{c.removeEventListener("load",g),c.removeEventListener("error",y)}},[c,r,a]),h}var h5=Uj,m5=Hj,p5=Qj;h5.displayName;m5.displayName;p5.displayName;F4.displayName;Z4.displayName;Y4.displayName;$4.displayName;V4.displayName;K4.displayName;G4.displayName;X4.displayName;pe("relative overflow-hidden","dark:bg-[#1a1a1a] bg-white","border dark:border-white/[0.08] border-gray-200","backdrop-blur-xl","rounded-2xl","dark:shadow-[0_8px_32px_rgba(0,0,0,0.4)] shadow-[0_2px_8px_rgba(0,0,0,0.04)]");const v5="";async function dt(n,a){const r=await fetch(`${v5}${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 Ap(){return dt("/api/config")}async function g5(n,a){return dt(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function y5(n){return dt(`/api/db/${n}/tables`)}async function x5(n,a,r,i){return dt(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function b5(n){return dt(`/api/db/${n}/schema`)}async function w5(n,a=20,r=0){return dt(`/api/cache/${n}/entries?limit=${a}&offset=${r}`)}async function S5(n,a=20,r=0,i=""){const s=new URLSearchParams({limit:String(a),offset:String(r)});return i&&s.set("search",i),dt(`/api/state/${n}/entries?${s.toString()}`)}async function j5(n){return dt(`/api/queue/${n}/metrics`)}async function E5(n,a=10){return dt(`/api/queue/${n}/messages?limit=${a}`)}async function N5(n,a=20){return dt(`/api/workflow/${n}/executions?limit=${a}`)}async function C5(n,a){return dt(`/api/workflow/${n}/executions/${a}`)}async function _5(n,a=20,r=0){return dt(`/api/alarm/${n}/entries?limit=${a}&offset=${r}`)}async function R5(n){return dt(`/api/alarm/${n}/metrics`)}async function T5(n,a=20){return dt(`/api/alarm/${n}/executions?limit=${a}`)}async function M5(){return dt("/api/auth/tables")}async function A5(n,a,r){return dt(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function k5(){return dt("/api/auth/schema")}async function D5(n){return dt("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function O5(){return dt("/api/auth/settings")}async function z5(n){return dt("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}async function L5(n,a=20,r=0){return dt(`/api/fs/${n}/entries?limit=${a}&offset=${r}`)}function Dl(){return u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Un,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function Ha({children:n}){return u.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function ys({id:n}){return u.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Ta({title:n,value:a,icon:r,isLoading:i}){return u.jsxs(wt,{children:[u.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Dt,{className:"text-sm font-medium",children:n}),r]}),u.jsx(St,{children:u.jsx("div",{className:"text-2xl font-bold",children:i?u.jsx(Un,{className:"h-5 w-5 animate-spin"}):a})})]})}function Ki({title:n,children:a}){return u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:n}),a]})}const U5={PENDING:{variant:"default",icon:u.jsx(yr,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:u.jsx(Un,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:u.jsx(dr,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(fs,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:u.jsx(O_,{className:"h-3 w-3"}),label:"Cancelled"}},q5={PENDING:{variant:"default",icon:u.jsx(yr,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:u.jsx(Un,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:u.jsx(dr,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:u.jsx(fs,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:u.jsx(Q_,{className:"h-3 w-3"}),label:"Dead Letter"}};function Yj({status:n}){const a=U5[n];return a?u.jsx(_i,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(_i,{children:n})}const H5={PENDING:{variant:"default",icon:u.jsx(yr,{className:"h-3 w-3"}),label:"Pending"},FIRED:{variant:"success",icon:u.jsx(dr,{className:"h-3 w-3"}),label:"Fired"},COMPLETED:{variant:"success",icon:u.jsx(dr,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(fs,{className:"h-3 w-3"}),label:"Failed"}};function Gj({status:n}){const a=H5[n];return a?u.jsx(_i,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(_i,{children:n})}function B5({status:n}){const a=q5[n];return a?u.jsx(_i,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(_i,{children:n})}function Q5(n){if(n<1e3)return`${n}ms`;const a=Math.floor(n/1e3);if(a<60)return`${a}s`;const r=Math.floor(a/60),i=a%60;if(r<60)return i===0?`${r}m`:`${r}m ${i}s`;const s=Math.floor(r/60),c=r%60;if(s<24)return c===0?`${s}h`:`${s}h ${c}m`;const h=Math.floor(s/24),m=s%24;return m===0?`${h}d`:`${h}d ${m}h`}function Y5({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[u.jsx(Ta,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(yr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Ta,{title:"Fired",value:(n==null?void 0:n.fired)??0,icon:u.jsx(dr,{className:"h-4 w-4 text-green-500"}),isLoading:a})]})}function G5({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Scheduled Alarms"}),u.jsx(Zt,{children:"Alarm entries scheduled by your worker (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Dl,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(Ue,{children:"ID"}),u.jsx(Ue,{children:"Status"}),u.jsx(Ue,{children:"Scheduled Time"}),u.jsx(Ue,{children:"Interval"}),u.jsx(Ue,{children:"Payload"}),u.jsx(Ue,{children:"Created"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(qe,{children:u.jsx(ys,{id:r.id})}),u.jsx(qe,{children:u.jsx(Gj,{status:r.status})}),u.jsx(qe,{children:u.jsx(Ln,{timestamp:r.scheduledTime})}),u.jsx(qe,{className:"text-xs",children:r.intervalMs!=null?u.jsxs("span",{className:"inline-flex items-center gap-1",children:[u.jsx(cR,{className:"h-3 w-3"}),Q5(r.intervalMs)]}):"-"}),u.jsx(qe,{className:"max-w-[200px] truncate font-mono text-xs",children:r.payload!=null?JSON.stringify(r.payload):"-"}),u.jsx(qe,{children:u.jsx(Ln,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(Ha,{children:"No alarms scheduled"})})]})}function $5({executions:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Execution History"}),u.jsx(Zt,{children:"Recent alarm handler executions"})]}),u.jsx(St,{children:a?u.jsx(Dl,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(Ue,{children:"Alarm ID"}),u.jsx(Ue,{children:"Status"}),u.jsx(Ue,{children:"Scheduled Time"}),u.jsx(Ue,{children:"Duration"}),u.jsx(Ue,{children:"Error"}),u.jsx(Ue,{children:"Executed"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(qe,{children:u.jsx(ys,{id:r.alarmId})}),u.jsx(qe,{children:u.jsx(Gj,{status:r.status})}),u.jsx(qe,{children:u.jsx(Ln,{timestamp:r.scheduledTime})}),u.jsx(qe,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(qe,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(qe,{children:u.jsx(Ln,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(Ha,{children:"No alarm executions yet"})})]})}function V5(){const{binding:n}=Tl(),a=n||"",{data:r,isLoading:i}=vt({queryKey:["alarmMetrics",a],queryFn:()=>R5(a),enabled:!!a,refetchInterval:5e3}),{data:s,isLoading:c}=vt({queryKey:["alarmEntries",a],queryFn:()=>_5(a,20),enabled:!!a,refetchInterval:5e3}),{data:h,isLoading:m}=vt({queryKey:["alarmExecutions",a],queryFn:()=>T5(a,20),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Ki,{title:`Alarms: ${a}`}),u.jsx(Y5,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(G5,{entries:s==null?void 0:s.entries,isLoading:c}),u.jsx($5,{executions:h==null?void 0:h.executions,isLoading:m})]})})}function K5({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?u.jsx(Gb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Qb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function X5({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(jj,{open:r,onOpenChange:i,children:[u.jsxs(Ej,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx(Bb,{className:"h-4 w-4 shrink-0"}):u.jsx(gr,{className:"h-4 w-4 shrink-0"}),u.jsx(jc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(Nj,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>u.jsx(K5,{column:s,onInsertText:a},s.name))})})]})}function F5({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=vt({queryKey:["auth-schema"],queryFn:k5,staleTime:3e4}),s=(a==null?void 0:a.tables)||[];return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),u.jsx(Pe,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:u.jsx(Sc,{className:pe("h-4 w-4",r&&"animate-spin")})})]}),u.jsx(E1,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:r?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):s.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:s.map(c=>u.jsx(X5,{table:c,onInsertText:n},c.name))})})}),u.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function Z5(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function P5(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 J5({settings:n,onUpdate:a,isUpdating:r}){const[i,s]=v.useState(n.sessionTokenExpiry.toString()),[c,h]=v.useState(n.allowSignups),[m,p]=v.useState(n.requireEmailVerification),[g,y]=v.useState(n.requireName),x=()=>{a({sessionTokenExpiry:parseInt(i,10),allowSignups:c,requireEmailVerification:m,requireName:g})},w=parseInt(i,10)!==n.sessionTokenExpiry||c!==n.allowSignups||m!==n.requireEmailVerification||g!==n.requireName;return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Fo,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),u.jsx(c1,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:j=>s(j.target.value)}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",P5(parseInt(i,10)||0)," (min: 1 hour, max: 90 days)"]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Fo,{children:"Allow Signups"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),u.jsx(kh,{checked:c,onCheckedChange:h})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Fo,{children:"Require Email Verification"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Users must verify their email before accessing the app"})]}),u.jsx(kh,{checked:m,onCheckedChange:p})]}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"space-y-0.5",children:[u.jsx(Fo,{children:"Require Name"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),u.jsx(kh,{checked:g,onCheckedChange:y})]})]}),u.jsx("div",{className:"flex justify-end",children:u.jsx(Pe,{onClick:x,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function W5(){var I,ie,re,U,W,$;const n=Nm(),[a,r]=v.useState("settings"),[i,s]=v.useState(""),[c,h]=v.useState(null),[m,p]=v.useState(null),[g,y]=v.useState(null),[x,w]=v.useState(0),j=50,S=((ie=(I=vt({queryKey:["config"],queryFn:Ap,staleTime:6e4}).data)==null?void 0:I.auth)==null?void 0:ie.binding)||"AUTH",C=vt({queryKey:["auth-settings"],queryFn:O5,staleTime:0}),_=Fh({mutationFn:z5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),R=X=>{_.mutate(X)},T=v.useCallback(X=>{s(de=>de+X)},[]),D=Fh({mutationFn:X=>D5(X),onSuccess:X=>{h(X),p(null)},onError:X=>{p(X instanceof Error?X.message:"Failed to execute query"),h(null)}}),L=()=>{i.trim()&&D.mutate(i)},K=vt({queryKey:["auth-tables"],queryFn:M5,staleTime:0,gcTime:0}),H=vt({queryKey:["auth-tableData",g,j,x],queryFn:()=>A5(g,j,x),staleTime:0,gcTime:0,enabled:!!g}),q=((re=K.data)==null?void 0:re.tables)||[],G=((U=H.data)==null?void 0:U.data)||[],te=((W=H.data)==null?void 0:W.columns)||[],ue=(($=H.data)==null?void 0:$.total)||0,ce=X=>{y(X),w(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",S]}),u.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[u.jsx(Yb,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"This is the Ploy Auth database containing user accounts and refresh tokens. Password hashes are hidden for security. Only SELECT queries are allowed."})]})]}),u.jsxs(oj,{value:a,onValueChange:r,children:[u.jsxs(sj,{children:[u.jsxs(Po,{value:"settings",children:[u.jsx(mR,{className:"mr-2 h-4 w-4"}),"Settings"]}),u.jsx(Po,{value:"query",children:"SQL Editor"}),u.jsx(Po,{value:"tables",children:"Tables"})]}),u.jsx(Jo,{value:"settings",className:"mt-4",children:u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Auth Settings"}),u.jsx(Zt,{children:"Configure authentication settings for local development."})]}),u.jsx(St,{children:C.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Un,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?u.jsx(J5,{settings:C.data,onUpdate:R,isUpdating:_.isPending}):u.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),u.jsx(Jo,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"SQL Query"}),u.jsx(Zt,{children:"Execute read-only SELECT queries against auth tables"})]}),u.jsxs(St,{className:"space-y-4",children:[u.jsx("textarea",{value:i,onChange:X=>s(X.target.value),onKeyDown:X=>{(X.metaKey||X.ctrlKey)&&X.key==="Enter"&&L()},placeholder:"SELECT * FROM auth_users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),u.jsxs(Pe,{onClick:L,disabled:D.isPending||!i.trim(),children:[u.jsx($b,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&u.jsx(wt,{className:"border-destructive/50",children:u.jsx(St,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),c&&u.jsx(l1,{results:c.results,meta:c.meta,error:c.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(F5,{onInsertText:T})})]})}),u.jsx(Jo,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(wt,{className:"md:col-span-1",children:[u.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Dt,{className:"text-base",children:"Tables"}),u.jsx(Pe,{variant:"ghost",size:"icon",onClick:()=>K.refetch(),className:"h-8 w-8",children:u.jsx(Sc,{className:"h-4 w-4"})})]}),u.jsx(St,{children:K.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):q.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:q.map(X=>u.jsxs("button",{onClick:()=>ce(X.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${g===X.name?"bg-muted font-medium":""}`,children:[u.jsx(jc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:X.name})]},X.name))})})]}),u.jsxs(wt,{className:"md:col-span-3",children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:g||"Select a Table"}),g&&u.jsxs(Zt,{children:[ue," total rows"]})]}),u.jsx(St,{children:g?H.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Un,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):G.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsx(Ct,{children:te.map(X=>u.jsx(Ue,{className:"font-mono",children:X},X))})}),u.jsx(qa,{children:G.map((X,de)=>u.jsx(Ct,{children:te.map(A=>u.jsx(qe,{className:"font-mono text-sm",children:Z5(X[A])},A))},de))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",x+1," -"," ",Math.min(x+j,ue)," of ",ue]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Pe,{variant:"outline",size:"sm",disabled:x===0,onClick:()=>w(Math.max(0,x-j)),children:[u.jsx(ds,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Pe,{variant:"outline",size:"sm",disabled:x+j>=ue,onClick:()=>w(x+j),children:["Next",u.jsx(gr,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}const Il=20;function I5(n){if(n<=0)return"expired";if(n<60)return`${n}s`;if(n<3600)return`${Math.floor(n/60)}m ${n%60}s`;const a=Math.floor(n/3600),r=Math.floor(n%3600/60);return`${a}h ${r}m`}function ez({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Cache Entries"}),u.jsx(Zt,{children:"Active (non-expired) entries in this cache (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Dl,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(Ue,{children:"Key"}),u.jsx(Ue,{children:"Value"}),u.jsx(Ue,{children:"TTL"}),u.jsx(Ue,{children:"Expires At"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(qe,{className:"font-mono text-sm",children:r.key}),u.jsx(qe,{className:"max-w-[300px] truncate font-mono text-xs text-muted-foreground",children:r.value}),u.jsx(qe,{children:u.jsx("span",{className:"font-mono text-sm",children:I5(r.ttlSeconds)})}),u.jsx(qe,{className:"text-sm text-muted-foreground",children:new Date(r.expiresAt).toLocaleString()})]},r.key))})]}):u.jsx(Ha,{children:"No active entries in this cache"})})]})}function tz(){const{binding:n}=Tl(),a=n||"",[r,i]=v.useState(0),{data:s,isLoading:c}=vt({queryKey:["cacheEntries",a,r],queryFn:()=>w5(a,Il,r),enabled:!!a,refetchInterval:5e3}),h=(s==null?void 0:s.total)??0,m=Math.floor(r/Il)+1,p=Math.max(1,Math.ceil(h/Il));return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Ki,{title:`Cache: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.jsx(Ta,{title:"Active Entries",value:h,icon:u.jsx(yr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:c})}),u.jsx(ez,{entries:s==null?void 0:s.entries,isLoading:c}),h>Il&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p," (",h," total entries)"]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Pe,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Il)),disabled:r===0,children:[u.jsx(ds,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Pe,{variant:"outline",size:"sm",onClick:()=>i(r+Il),disabled:r+Il>=h,children:["Next",u.jsx(gr,{className:"h-4 w-4"})]})]})]})]})})}const er=20;function nz(n){return n<1024?`${n} B`:n<1024*1024?`${(n/1024).toFixed(1)} KB`:n<1024*1024*1024?`${(n/(1024*1024)).toFixed(1)} MB`:`${(n/(1024*1024*1024)).toFixed(1)} GB`}function az({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Files"}),u.jsx(Zt,{children:"Stored files with metadata (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Dl,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(Ue,{children:"Key"}),u.jsx(Ue,{children:"Size"}),u.jsx(Ue,{children:"Content Type"}),u.jsx(Ue,{children:"Created At"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(qe,{className:"font-mono text-sm",children:r.key}),u.jsx(qe,{className:"text-sm text-muted-foreground",children:nz(r.size)}),u.jsx(qe,{className:"font-mono text-xs text-muted-foreground",children:r.contentType}),u.jsx(qe,{className:"text-sm text-muted-foreground",children:r.createdAt})]},r.key))})]}):u.jsx(Ha,{children:"No files in this storage"})})]})}function lz(){const{binding:n}=Tl(),a=n||"",[r,i]=v.useState(0),{data:s,isLoading:c}=vt({queryKey:["fileStorageEntries",a,r],queryFn:()=>L5(a,er,r),enabled:!!a,refetchInterval:5e3}),h=(s==null?void 0:s.total)??0,m=Math.floor(r/er)+1,p=Math.ceil(h/er);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Ki,{title:`File Storage: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:u.jsx(Ta,{title:"Total Files",value:h})}),u.jsx(az,{entries:s==null?void 0:s.entries,isLoading:c}),h>er&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Pe,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-er)),disabled:r===0,children:[u.jsx(ds,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Pe,{variant:"outline",size:"sm",onClick:()=>i(r+er),disabled:r+er>=h,children:["Next",u.jsx(gr,{className:"h-4 w-4"})]})]})]})]})})}const Fu=20;function rz({entries:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"State Entries"}),u.jsx(Zt,{children:"Key-value entries in this state store (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Dl,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(Ue,{children:"Key"}),u.jsx(Ue,{children:"Value"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(qe,{className:"font-mono text-sm",children:r.key}),u.jsx(qe,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value})]},r.key))})]}):u.jsx(Ha,{children:"No entries in this state store"})})]})}function iz(){const{binding:n}=Tl(),a=n||"",[r,i]=v.useState(0),[s,c]=v.useState(""),[h,m]=v.useState(""),{data:p,isLoading:g}=vt({queryKey:["stateEntries",a,r,s],queryFn:()=>S5(a,Fu,r,s),enabled:!!a,refetchInterval:5e3}),y=(p==null?void 0:p.hasMore)??!1,x=Math.floor(r/Fu)+1,w=j=>{j.preventDefault(),c(h),i(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Ki,{title:`State: ${a}`}),u.jsxs("form",{onSubmit:w,className:"flex gap-2",children:[u.jsx(c1,{placeholder:"Search by key...",value:h,onChange:j=>m(j.target.value),className:"max-w-sm"}),u.jsxs(Pe,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(fR,{className:"h-4 w-4 mr-1"}),"Search"]}),s&&u.jsx(Pe,{type:"button",variant:"ghost",size:"sm",onClick:()=>{c(""),m(""),i(0)},children:"Clear"})]}),u.jsx(rz,{entries:p==null?void 0:p.entries,isLoading:g}),(r>0||y)&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",x]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Pe,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Fu)),disabled:r===0,children:[u.jsx(ds,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Pe,{variant:"outline",size:"sm",onClick:()=>i(r+Fu),disabled:!y,children:["Next",u.jsx(gr,{className:"h-4 w-4"})]})]})]})]})})}function oz({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?u.jsx(Gb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Qb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function sz({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(jj,{open:r,onOpenChange:i,children:[u.jsxs(Ej,{className:"flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm hover:bg-muted",children:[r?u.jsx(Bb,{className:"h-4 w-4 shrink-0"}):u.jsx(gr,{className:"h-4 w-4 shrink-0"}),u.jsx(jc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:s=>{s.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(Nj,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(s=>u.jsx(oz,{column:s,onInsertText:a},s.name))})})]})}function uz({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:s}=vt({queryKey:["schema",n],queryFn:()=>b5(n),staleTime:3e4}),h=((r==null?void 0:r.tables)||[]).filter(m=>!m.name.startsWith("_litestream_"));return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Tables"}),u.jsx(Pe,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>s(),disabled:i,children:u.jsx(Sc,{className:pe("h-4 w-4",i&&"animate-spin")})})]}),u.jsx(E1,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:i?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):h.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:h.map(m=>u.jsx(sz,{table:m,onInsertText:a},m.name))})})}),u.jsx("div",{className:"border-t px-3 py-2 text-xs text-muted-foreground",children:"Click table/column names to insert"})]})}function cz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function dz(){var G,te,ue,ce;const{binding:n}=Tl(),a=n||"",[r,i]=v.useState("query"),[s,c]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[y,x]=v.useState(null),[w,j]=v.useState(0),E=50,S=v.useCallback(I=>{c(ie=>ie+I)},[]),C=Fh({mutationFn:I=>g5(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=vt({queryKey:["tables",a],queryFn:()=>y5(a),staleTime:0,gcTime:0,enabled:!!a}),T=vt({queryKey:["tableData",a,y,E,w],queryFn:()=>x5(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)||[],K=((ue=T.data)==null?void 0:ue.columns)||[],H=((ce=T.data)==null?void 0:ce.total)||0,q=I=>{x(I),j(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",a]}),u.jsxs(oj,{value:r,onValueChange:i,children:[u.jsxs(sj,{children:[u.jsx(Po,{value:"query",children:"SQL Editor"}),u.jsx(Po,{value:"tables",children:"Tables"})]}),u.jsx(Jo,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"SQL Query"}),u.jsx(Zt,{children:"Execute SQL queries against your database"})]}),u.jsxs(St,{className:"space-y-4",children:[u.jsx("textarea",{value:s,onChange:I=>c(I.target.value),onKeyDown:I=>{(I.metaKey||I.ctrlKey)&&I.key==="Enter"&&_()},placeholder:"SELECT * FROM users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute"}),u.jsxs(Pe,{onClick:_,disabled:C.isPending||!s.trim(),children:[u.jsx($b,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&u.jsx(wt,{className:"border-destructive/50",children:u.jsx(St,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&u.jsx(l1,{results:h.results,meta:h.meta,error:h.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(uz,{bindingName:a,onInsertText:S})})]})}),u.jsx(Jo,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(wt,{className:"md:col-span-1",children:[u.jsxs(kt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Dt,{className:"text-base",children:"Tables"}),u.jsx(Pe,{variant:"ghost",size:"icon",onClick:()=>R.refetch(),className:"h-8 w-8",children:u.jsx(Sc,{className:"h-4 w-4"})})]}),u.jsx(St,{children:R.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):D.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:D.map(I=>u.jsxs("button",{onClick:()=>q(I.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${y===I.name?"bg-muted font-medium":""}`,children:[u.jsx(jc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:I.name})]},I.name))})})]}),u.jsxs(wt,{className:"md:col-span-3",children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:y||"Select a Table"}),y&&u.jsxs(Zt,{children:[H," total rows"]})]}),u.jsx(St,{children:y?T.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Un,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsx(Ct,{children:K.map(I=>u.jsx(Ue,{className:"font-mono",children:I},I))})}),u.jsx(qa,{children:L.map((I,ie)=>u.jsx(Ct,{children:K.map(re=>u.jsx(qe,{className:"font-mono text-sm",children:cz(I[re])},re))},ie))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",w+1," -"," ",Math.min(w+E,H)," of ",H]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Pe,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>j(Math.max(0,w-E)),children:[u.jsx(ds,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Pe,{variant:"outline",size:"sm",disabled:w+E>=H,onClick:()=>j(w+E),children:["Next",u.jsx(gr,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function fz({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[u.jsx(Ta,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(yr,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Ta,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:u.jsx(Un,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Ta,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:u.jsx(dr,{className:"h-4 w-4 text-green-500"}),isLoading:a}),u.jsx(Ta,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:u.jsx(fs,{className:"h-4 w-4 text-red-500"}),isLoading:a}),u.jsx(Ta,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:u.jsx(iR,{className:"h-4 w-4 text-orange-500"}),isLoading:a})]})}function hz({messages:n,isLoading:a}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Recent Messages"}),u.jsx(Zt,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Dl,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(Ue,{children:"ID"}),u.jsx(Ue,{children:"Status"}),u.jsx(Ue,{children:"Payload"}),u.jsx(Ue,{children:"Attempt"}),u.jsx(Ue,{children:"Created"})]})}),u.jsx(qa,{children:n.map(r=>u.jsxs(Ct,{children:[u.jsx(qe,{children:u.jsx(ys,{id:r.id})}),u.jsx(qe,{children:u.jsx(B5,{status:r.status})}),u.jsx(qe,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),u.jsx(qe,{children:r.attempt}),u.jsx(qe,{children:u.jsx(Ln,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(Ha,{children:"No messages in this queue"})})]})}function mz(){const{binding:n}=Tl(),a=n||"",{data:r,isLoading:i}=vt({queryKey:["queueMetrics",a],queryFn:()=>j5(a),enabled:!!a,refetchInterval:5e3}),{data:s,isLoading:c}=vt({queryKey:["queueMessages",a],queryFn:()=>E5(a,10),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Ki,{title:`Queue: ${a}`}),u.jsx(fz,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(hz,{messages:s==null?void 0:s.messages,isLoading:c})]})})}function pz({status:n}){switch(n){case"COMPLETED":return u.jsx(dr,{className:"h-5 w-5 text-green-500"});case"RUNNING":return u.jsx(Un,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return u.jsx(fs,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return u.jsx(yr,{className:"h-5 w-5 text-gray-400"})}}function vz(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 gz({steps:n}){if(n.length===0)return u.jsx(Ha,{children:"No steps recorded for this execution"});const a=n.reduce((r,i)=>r+(i.durationMs||0),0);return u.jsxs("div",{className:"space-y-4",children:[a>0&&u.jsxs("div",{className:"mb-6",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[u.jsx("span",{children:"Total Duration"}),u.jsx("span",{children:Zo(a)})]}),u.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 u.jsx("div",{className:pe(vz(r.status),"h-full transition-all",i>0&&"border-l border-background"),style:{width:`${s}%`},title:`${r.stepName}: ${Zo(r.durationMs)}`},r.id)})})]}),u.jsx("div",{className:"relative",children:n.map((r,i)=>u.jsxs("div",{className:"relative pb-6 last:pb-0",children:[i<n.length-1&&u.jsx("div",{className:pe("absolute left-[9px] top-6 w-0.5 h-full -ml-px",r.status==="COMPLETED"?"bg-green-200 dark:bg-green-900":"bg-muted")}),u.jsxs("div",{className:"flex gap-4",children:[u.jsx("div",{className:"flex-shrink-0 relative z-10 bg-background",children:u.jsx(pz,{status:r.status})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"font-medium",children:r.stepName}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",r.stepIndex+1,")"]})]}),u.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:Zo(r.durationMs)})]}),r.errorMessage&&u.jsx("div",{className:"mt-2 p-2 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:r.errorMessage}),r.output&&r.status==="COMPLETED"&&u.jsxs("details",{className:"mt-2",children:[u.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:"View output"}),u.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r.output,null,2)})]}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:u.jsx(Ln,{timestamp:r.createdAt})})]})]})]},r.id))})]})}function yz(){const{binding:n,executionId:a}=Tl(),r=n||"",i=a||"",{data:s,isLoading:c}=vt({queryKey:["workflowExecution",r,i],queryFn:()=>C5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=s==null?void 0:s.execution,m=(s==null?void 0:s.steps)||[];return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(sn,{to:`/workflows/${r}`,children:u.jsxs(Pe,{variant:"ghost",size:"sm",children:[u.jsx(k_,{className:"mr-2 h-4 w-4"}),"Back"]})}),u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",u.jsx(ys,{id:i})]})]}),c?u.jsx(Dl,{}):h?u.jsxs(u.Fragment,{children:[u.jsxs(wt,{children:[u.jsx(kt,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx(Dt,{children:"Execution Details"}),u.jsx(Zt,{children:h.startedAt?u.jsxs(u.Fragment,{children:["Started ",u.jsx(Ln,{timestamp:h.startedAt})]}):"Not started yet"})]}),u.jsx(Yj,{status:h.status})]})}),u.jsxs(St,{children:[u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),u.jsx("p",{className:"font-mono",children:Zo(h.durationMs)})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),u.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(Ln,{timestamp:h.createdAt})})]}),h.completedAt&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(Ln,{timestamp:h.completedAt})})]})]}),h.errorMessage&&u.jsx("div",{className:"mt-4 p-3 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:h.errorMessage})]})]}),u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Steps"}),u.jsx(Zt,{children:"Workflow step execution timeline"})]}),u.jsx(St,{children:u.jsx(gz,{steps:m})})]})]}):u.jsx(Ha,{children:"Execution not found"})]})})}function xz({executions:n,isLoading:a,bindingName:r}){return u.jsxs(wt,{children:[u.jsxs(kt,{children:[u.jsx(Dt,{children:"Recent Executions"}),u.jsx(Zt,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),u.jsx(St,{children:a?u.jsx(Dl,{}):n!=null&&n.length?u.jsxs(La,{children:[u.jsx(Ua,{children:u.jsxs(Ct,{children:[u.jsx(Ue,{children:"ID"}),u.jsx(Ue,{children:"Status"}),u.jsx(Ue,{children:"Steps"}),u.jsx(Ue,{children:"Duration"}),u.jsx(Ue,{children:"Started"}),u.jsx(Ue,{})]})}),u.jsx(qa,{children:n.map(i=>u.jsxs(Ct,{children:[u.jsx(qe,{children:u.jsx(ys,{id:i.id})}),u.jsx(qe,{children:u.jsx(Yj,{status:i.status})}),u.jsx(qe,{children:u.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),u.jsx(qe,{className:"text-sm",children:Zo(i.durationMs)}),u.jsx(qe,{children:i.startedAt?u.jsx(Ln,{timestamp:i.startedAt}):"-"}),u.jsx(qe,{children:u.jsx(sn,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):u.jsx(Ha,{children:"No executions for this workflow"})})]})}function bz(){const{binding:n}=Tl(),a=n||"",{data:r,isLoading:i}=vt({queryKey:["workflowExecutions",a],queryFn:()=>N5(a,20),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(Ki,{title:`Workflow: ${a}`}),u.jsx(xz,{executions:r==null?void 0:r.executions,isLoading:i,bindingName:a})]})})}function wz(){const n=za(),{data:a,isLoading:r}=vt({queryKey:["config"],queryFn:Ap,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],s=a!=null&&a.queue?Object.keys(a.queue):[],c=a!=null&&a.cache?Object.keys(a.cache):[],h=a!=null&&a.state?Object.keys(a.state):[],m=a!=null&&a.fs?Object.keys(a.fs):[],p=a!=null&&a.workflow?Object.keys(a.workflow):[],g=a!=null&&a.alarm?Object.keys(a.alarm):[];return u.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[u.jsx("div",{className:"flex h-14 items-center border-b px-4",children:u.jsxs(sn,{to:"/",className:"flex items-center gap-2 font-semibold",children:[u.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),u.jsx("span",{children:"Ploy Dev"})]})}),u.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(Un,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):u.jsxs("div",{className:"space-y-6",children:[i.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),u.jsx("div",{className:"space-y-1",children:i.map(y=>{const x=n.pathname===`/db/${y}`;return u.jsx(sn,{to:`/db/${y}`,children:u.jsxs(Pe,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(X_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),(a==null?void 0:a.auth)&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),u.jsx("div",{className:"space-y-1",children:u.jsx(sn,{to:"/auth",children:u.jsxs(Pe,{variant:n.pathname==="/auth"?"secondary":"ghost",className:pe("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[u.jsx(vR,{className:"mr-2 h-4 w-4"}),u.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),u.jsx(Yb,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),s.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),u.jsx("div",{className:"space-y-1",children:s.map(y=>{const x=n.pathname===`/queues/${y}`;return u.jsx(sn,{to:`/queues/${y}`,children:u.jsxs(Pe,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(tR,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),c.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cache"}),u.jsx("div",{className:"space-y-1",children:c.map(y=>{const x=n.pathname===`/cache/${y}`;return u.jsx(sn,{to:`/cache/${y}`,children:u.jsxs(Pe,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(I_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),h.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"State"}),u.jsx("div",{className:"space-y-1",children:h.map(y=>{const x=n.pathname===`/state/${y}`;return u.jsx(sn,{to:`/state/${y}`,children:u.jsxs(Pe,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(M_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),m.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"File Storage"}),u.jsx("div",{className:"space-y-1",children:m.map(y=>{const x=n.pathname===`/fs/${y}`;return u.jsx(sn,{to:`/fs/${y}`,children:u.jsxs(Pe,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(Z_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),p.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),u.jsx("div",{className:"space-y-1",children:p.map(y=>{const x=n.pathname.startsWith(`/workflows/${y}`);return u.jsx(sn,{to:`/workflows/${y}`,children:u.jsxs(Pe,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(J_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),g.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Alarms"}),u.jsx("div",{className:"space-y-1",children:g.map(y=>{const x=n.pathname===`/alarms/${y}`;return u.jsx(sn,{to:`/alarms/${y}`,children:u.jsxs(Pe,{variant:x?"secondary":"ghost",className:pe("w-full justify-start",x&&"bg-muted"),children:[u.jsx(L_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),i.length===0&&s.length===0&&c.length===0&&h.length===0&&m.length===0&&p.length===0&&g.length===0&&!(a!=null&&a.auth)&&u.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function Sz(){const{data:n,isLoading:a}=vt({queryKey:["config"],queryFn:Ap,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],s=n.cache?Object.keys(n.cache):[],c=n.state?Object.keys(n.state):[],h=n.fs?Object.keys(n.fs):[],m=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return u.jsx(fl,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return u.jsx(fl,{to:"/auth",replace:!0});if(i.length>0)return u.jsx(fl,{to:`/queues/${i[0]}`,replace:!0});if(s.length>0)return u.jsx(fl,{to:`/cache/${s[0]}`,replace:!0});if(c.length>0)return u.jsx(fl,{to:`/state/${c[0]}`,replace:!0});if(h.length>0)return u.jsx(fl,{to:`/fs/${h[0]}`,replace:!0});if(m.length>0)return u.jsx(fl,{to:`/workflows/${m[0]}`,replace:!0});const p=n.alarm?Object.keys(n.alarm):[];if(p.length>0)return u.jsx(fl,{to:`/alarms/${p[0]}`,replace:!0})}return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[u.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),a?u.jsx(Un,{className:"h-6 w-6 animate-spin text-muted-foreground"}):u.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function jz(){return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(wz,{}),u.jsx("main",{className:"pl-64",children:u.jsx("div",{className:"container mx-auto px-6 py-4",children:u.jsxs(VC,{children:[u.jsx(An,{path:"/",element:u.jsx(Sz,{})}),u.jsx(An,{path:"/db/:binding",element:u.jsx(dz,{})}),u.jsx(An,{path:"/auth",element:u.jsx(W5,{})}),u.jsx(An,{path:"/queues/:binding",element:u.jsx(mz,{})}),u.jsx(An,{path:"/cache/:binding",element:u.jsx(tz,{})}),u.jsx(An,{path:"/state/:binding",element:u.jsx(iz,{})}),u.jsx(An,{path:"/fs/:binding",element:u.jsx(lz,{})}),u.jsx(An,{path:"/alarms/:binding",element:u.jsx(V5,{})}),u.jsx(An,{path:"/workflows/:binding",element:u.jsx(bz,{})}),u.jsx(An,{path:"/workflows/:binding/:executionId",element:u.jsx(yz,{})})]})})})]})}function $j(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}$j();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",$j);const Ez=new AN({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});eC.createRoot(document.getElementById("root")).render(u.jsx(v.StrictMode,{children:u.jsx(UN,{client:Ez,children:u.jsx(p_,{children:u.jsx(jz,{})})})}));
|