@meetploy/emulator 1.20.0 → 1.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai-binding.d.ts +2 -0
- package/dist/ai-binding.js +122 -0
- package/dist/ai-binding.js.map +1 -0
- package/dist/ai-binding.spec.d.ts +1 -0
- package/dist/ai-binding.spec.js +112 -0
- package/dist/ai-binding.spec.js.map +1 -0
- package/dist/bundler/bundler.js +11 -15
- package/dist/bundler/bundler.js.map +1 -1
- package/dist/dashboard-dist/assets/main-5M4qXaue.js +359 -0
- package/dist/dashboard-dist/index.html +1 -1
- package/dist/emulator.js +0 -3
- package/dist/emulator.js.map +1 -1
- package/dist/nextjs-dev.d.ts +1 -0
- package/dist/nextjs-dev.js +268 -13
- package/dist/nextjs-dev.js.map +1 -1
- package/dist/runtime/ai-runtime.d.ts +1 -0
- package/dist/runtime/ai-runtime.js +158 -0
- package/dist/runtime/ai-runtime.js.map +1 -0
- package/dist/runtime/db-runtime.spec.d.ts +1 -0
- package/dist/runtime/db-runtime.spec.js +147 -0
- package/dist/runtime/db-runtime.spec.js.map +1 -0
- package/dist/runtime/state-runtime.d.ts +1 -1
- package/dist/runtime/state-runtime.js +214 -5
- package/dist/runtime/state-runtime.js.map +1 -1
- package/dist/runtime/state-runtime.spec.d.ts +1 -0
- package/dist/runtime/state-runtime.spec.js +158 -0
- package/dist/runtime/state-runtime.spec.js.map +1 -0
- package/dist/services/dashboard-routes.js +0 -39
- package/dist/services/dashboard-routes.js.map +1 -1
- package/dist/services/db-service.d.ts +9 -0
- package/dist/services/db-service.js +23 -7
- package/dist/services/db-service.js.map +1 -1
- package/dist/services/db-service.spec.d.ts +1 -0
- package/dist/services/db-service.spec.js +69 -0
- package/dist/services/db-service.spec.js.map +1 -0
- package/dist/services/mock-server.js +2 -7
- package/dist/services/mock-server.js.map +1 -1
- package/dist/services/state-service.d.ts +25 -0
- package/dist/services/state-service.js +81 -6
- package/dist/services/state-service.js.map +1 -1
- package/dist/services/state-service.spec.d.ts +1 -0
- package/dist/services/state-service.spec.js +131 -0
- package/dist/services/state-service.spec.js.map +1 -0
- package/dist/utils/sqlite.js +19 -0
- package/dist/utils/sqlite.js.map +1 -1
- package/package.json +1 -1
- package/dist/dashboard-dist/assets/main-B6aGGsJM.js +0 -364
- package/dist/runtime/cache-runtime.d.ts +0 -1
- package/dist/runtime/cache-runtime.js +0 -54
- package/dist/runtime/cache-runtime.js.map +0 -1
- package/dist/services/cache-service.d.ts +0 -13
- package/dist/services/cache-service.js +0 -31
- package/dist/services/cache-service.js.map +0 -1
|
@@ -1,364 +0,0 @@
|
|
|
1
|
-
var z0=n=>{throw TypeError(n)};var dh=(n,a,r)=>a.has(n)||z0("Cannot "+r);var A=(n,a,r)=>(dh(n,a,"read from private field"),r?r.call(n):a.get(n)),be=(n,a,r)=>a.has(n)?z0("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(n):a.set(n,r),oe=(n,a,r,i)=>(dh(n,a,"write to private field"),i?i.call(n,r):a.set(n,r),r),ke=(n,a,r)=>(dh(n,a,"access private method"),r);var Hu=(n,a,r,i)=>({set _(o){oe(n,a,o,r)},get _(){return A(n,a,i)}});function vN(n,a){for(var r=0;r<a.length;r++){const i=a[r];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in n)){const c=Object.getOwnPropertyDescriptor(i,o);c&&Object.defineProperty(n,o,c.get?c:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))i(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const h of c.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&i(h)}).observe(document,{childList:!0,subtree:!0});function r(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function i(o){if(o.ep)return;o.ep=!0;const c=r(o);fetch(o.href,c)}})();function db(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var fh={exports:{}},Qs={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var L0;function gN(){if(L0)return Qs;L0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function r(i,o,c){var h=null;if(c!==void 0&&(h=""+c),o.key!==void 0&&(h=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:n,type:i,key:h,ref:o!==void 0?o:null,props:c}}return Qs.Fragment=a,Qs.jsx=r,Qs.jsxs=r,Qs}var U0;function yN(){return U0||(U0=1,fh.exports=gN()),fh.exports}var u=yN(),Oi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},dr=typeof window>"u"||"Deno"in globalThis;function Nn(){}function xN(n,a){return typeof n=="function"?n(a):n}function Uh(n){return typeof n=="number"&&n>=0&&n!==1/0}function fb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function fi(n,a){return typeof n=="function"?n(a):n}function Un(n,a){return typeof n=="function"?n(a):n}function q0(n,a){const{type:r="all",exact:i,fetchStatus:o,predicate:c,queryKey:h,stale:m}=n;if(h){if(i){if(a.queryHash!==Sm(h,a.options))return!1}else if(!eo(a.queryKey,h))return!1}if(r!=="all"){const p=a.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof m=="boolean"&&a.isStale()!==m||o&&o!==a.state.fetchStatus||c&&!c(a))}function H0(n,a){const{exact:r,status:i,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(r){if(fr(a.options.mutationKey)!==fr(c))return!1}else if(!eo(a.options.mutationKey,c))return!1}return!(i&&a.state.status!==i||o&&!o(a))}function Sm(n,a){return((a==null?void 0:a.queryKeyHashFn)||fr)(n)}function fr(n){return JSON.stringify(n,(a,r)=>qh(r)?Object.keys(r).sort().reduce((i,o)=>(i[o]=r[o],i),{}):r)}function eo(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(r=>eo(n[r],a[r])):!1}function hb(n,a){if(n===a)return n;const r=B0(n)&&B0(a);if(r||qh(n)&&qh(a)){const i=r?n:Object.keys(n),o=i.length,c=r?a:Object.keys(a),h=c.length,m=r?[]:{};let p=0;for(let g=0;g<h;g++){const x=r?g:c[g];(!r&&i.includes(x)||r)&&n[x]===void 0&&a[x]===void 0?(m[x]=void 0,p++):(m[x]=hb(n[x],a[x]),m[x]===n[x]&&n[x]!==void 0&&p++)}return o===h&&p===o?n:m}return a}function lc(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const r in n)if(n[r]!==a[r])return!1;return!0}function B0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function qh(n){if(!$0(n))return!1;const a=n.constructor;if(a===void 0)return!0;const r=a.prototype;return!(!$0(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function $0(n){return Object.prototype.toString.call(n)==="[object Object]"}function bN(n){return new Promise(a=>{setTimeout(a,n)})}function Hh(n,a,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,a):r.structuralSharing!==!1?hb(n,a):a}function wN(n,a,r=0){const i=[...n,a];return r&&i.length>r?i.slice(1):i}function jN(n,a,r=0){const i=[a,...n];return r&&i.length>r?i.slice(0,-1):i}var Em=Symbol();function mb(n,a){return!n.queryFn&&(a!=null&&a.initialPromise)?()=>a.initialPromise:!n.queryFn||n.queryFn===Em?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}var ar,yl,vi,tb,SN=(tb=class extends Oi{constructor(){super();be(this,ar);be(this,yl);be(this,vi);oe(this,vi,a=>{if(!dr&&window.addEventListener){const r=()=>a();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){A(this,yl)||this.setEventListener(A(this,vi))}onUnsubscribe(){var a;this.hasListeners()||((a=A(this,yl))==null||a.call(this),oe(this,yl,void 0))}setEventListener(a){var r;oe(this,vi,a),(r=A(this,yl))==null||r.call(this),oe(this,yl,a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()}))}setFocused(a){A(this,ar)!==a&&(oe(this,ar,a),this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(r=>{r(a)})}isFocused(){var a;return typeof A(this,ar)=="boolean"?A(this,ar):((a=globalThis.document)==null?void 0:a.visibilityState)!=="hidden"}},ar=new WeakMap,yl=new WeakMap,vi=new WeakMap,tb),Nm=new SN,gi,xl,yi,nb,EN=(nb=class extends Oi{constructor(){super();be(this,gi,!0);be(this,xl);be(this,yi);oe(this,yi,a=>{if(!dr&&window.addEventListener){const r=()=>a(!0),i=()=>a(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",i)}}})}onSubscribe(){A(this,xl)||this.setEventListener(A(this,yi))}onUnsubscribe(){var a;this.hasListeners()||((a=A(this,xl))==null||a.call(this),oe(this,xl,void 0))}setEventListener(a){var r;oe(this,yi,a),(r=A(this,xl))==null||r.call(this),oe(this,xl,a(this.setOnline.bind(this)))}setOnline(a){A(this,gi)!==a&&(oe(this,gi,a),this.listeners.forEach(i=>{i(a)}))}isOnline(){return A(this,gi)}},gi=new WeakMap,xl=new WeakMap,yi=new WeakMap,nb),rc=new EN;function Bh(){let n,a;const r=new Promise((o,c)=>{n=o,a=c});r.status="pending",r.catch(()=>{});function i(o){Object.assign(r,o),delete r.resolve,delete r.reject}return r.resolve=o=>{i({status:"fulfilled",value:o}),n(o)},r.reject=o=>{i({status:"rejected",reason:o}),a(o)},r}function NN(n){return Math.min(1e3*2**n,3e4)}function pb(n){return(n??"online")==="online"?rc.isOnline():!0}var vb=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function hh(n){return n instanceof vb}function gb(n){let a=!1,r=0,i=!1,o;const c=Bh(),h=j=>{var C;i||(w(new vb(j)),(C=n.abort)==null||C.call(n))},m=()=>{a=!0},p=()=>{a=!1},g=()=>Nm.isFocused()&&(n.networkMode==="always"||rc.isOnline())&&n.canRun(),x=()=>pb(n.networkMode)&&n.canRun(),y=j=>{var C;i||(i=!0,(C=n.onSuccess)==null||C.call(n,j),o==null||o(),c.resolve(j))},w=j=>{var C;i||(i=!0,(C=n.onError)==null||C.call(n,j),o==null||o(),c.reject(j))},S=()=>new Promise(j=>{var C;o=_=>{(i||g())&&j(_)},(C=n.onPause)==null||C.call(n)}).then(()=>{var j;o=void 0,i||(j=n.onContinue)==null||j.call(n)}),E=()=>{if(i)return;let j;const C=r===0?n.initialPromise:void 0;try{j=C??n.fn()}catch(_){j=Promise.reject(_)}Promise.resolve(j).then(y).catch(_=>{var K;if(i)return;const T=n.retry??(dr?0:3),R=n.retryDelay??NN,D=typeof R=="function"?R(r,_):R,L=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,_);if(a||!L){w(_);return}r++,(K=n.onFail)==null||K.call(n,r,_),bN(D).then(()=>g()?void 0:S()).then(()=>{a?w(_):E()})})};return{promise:c,cancel:h,continue:()=>(o==null||o(),c),cancelRetry:m,continueRetry:p,canStart:x,start:()=>(x()?E():S().then(E),c)}}var CN=n=>setTimeout(n,0);function _N(){let n=[],a=0,r=m=>{m()},i=m=>{m()},o=CN;const c=m=>{a?n.push(m):o(()=>{r(m)})},h=()=>{const m=n;n=[],m.length&&o(()=>{i(()=>{m.forEach(p=>{r(p)})})})};return{batch:m=>{let p;a++;try{p=m()}finally{a--,a||h()}return p},batchCalls:m=>(...p)=>{c(()=>{m(...p)})},schedule:c,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{i=m},setScheduler:m=>{o=m}}}var St=_N(),lr,ab,yb=(ab=class{constructor(){be(this,lr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Uh(this.gcTime)&&oe(this,lr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(dr?1/0:300*1e3))}clearGcTimeout(){A(this,lr)&&(clearTimeout(A(this,lr)),oe(this,lr,void 0))}},lr=new WeakMap,ab),xi,bi,En,rr,Lt,io,ir,zn,Aa,lb,TN=(lb=class extends yb{constructor(a){super();be(this,zn);be(this,xi);be(this,bi);be(this,En);be(this,rr);be(this,Lt);be(this,io);be(this,ir);oe(this,ir,!1),oe(this,io,a.defaultOptions),this.setOptions(a.options),this.observers=[],oe(this,rr,a.client),oe(this,En,A(this,rr).getQueryCache()),this.queryKey=a.queryKey,this.queryHash=a.queryHash,oe(this,xi,RN(this.options)),this.state=a.state??A(this,xi),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var a;return(a=A(this,Lt))==null?void 0:a.promise}setOptions(a){this.options={...A(this,io),...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&A(this,En).remove(this)}setData(a,r){const i=Hh(this.state.data,a,this.options);return ke(this,zn,Aa).call(this,{data:i,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),i}setState(a,r){ke(this,zn,Aa).call(this,{type:"setState",state:a,setStateOptions:r})}cancel(a){var i,o;const r=(i=A(this,Lt))==null?void 0:i.promise;return(o=A(this,Lt))==null||o.cancel(a),r?r.then(Nn).catch(Nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(A(this,xi))}isActive(){return this.observers.some(a=>Un(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Em||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(a=0){return this.state.isInvalidated||this.state.data===void 0||!fb(this.state.dataUpdatedAt,a)}onFocus(){var r;const a=this.observers.find(i=>i.shouldFetchOnWindowFocus());a==null||a.refetch({cancelRefetch:!1}),(r=A(this,Lt))==null||r.continue()}onOnline(){var r;const a=this.observers.find(i=>i.shouldFetchOnReconnect());a==null||a.refetch({cancelRefetch:!1}),(r=A(this,Lt))==null||r.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),A(this,En).notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(r=>r!==a),this.observers.length||(A(this,Lt)&&(A(this,ir)?A(this,Lt).cancel({revert:!0}):A(this,Lt).cancelRetry()),this.scheduleGc()),A(this,En).notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ke(this,zn,Aa).call(this,{type:"invalidate"})}fetch(a,r){var p,g,x;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(A(this,Lt))return A(this,Lt).continueRetry(),A(this,Lt).promise}if(a&&this.setOptions(a),!this.options.queryFn){const y=this.observers.find(w=>w.options.queryFn);y&&this.setOptions(y.options)}const i=new AbortController,o=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(oe(this,ir,!0),i.signal)})},c=()=>{const y=mb(this.options,r),w={client:A(this,rr),queryKey:this.queryKey,meta:this.meta};return o(w),oe(this,ir,!1),this.options.persister?this.options.persister(y,w,this):y(w)},h={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:A(this,rr),state:this.state,fetchFn:c};o(h),(p=this.options.behavior)==null||p.onFetch(h,this),oe(this,bi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=h.fetchOptions)==null?void 0:g.meta))&&ke(this,zn,Aa).call(this,{type:"fetch",meta:(x=h.fetchOptions)==null?void 0:x.meta});const m=y=>{var w,S,E,j;hh(y)&&y.silent||ke(this,zn,Aa).call(this,{type:"error",error:y}),hh(y)||((S=(w=A(this,En).config).onError)==null||S.call(w,y,this),(j=(E=A(this,En).config).onSettled)==null||j.call(E,this.state.data,y,this)),this.scheduleGc()};return oe(this,Lt,gb({initialPromise:r==null?void 0:r.initialPromise,fn:h.fetchFn,abort:i.abort.bind(i),onSuccess:y=>{var w,S,E,j;if(y===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(C){m(C);return}(S=(w=A(this,En).config).onSuccess)==null||S.call(w,y,this),(j=(E=A(this,En).config).onSettled)==null||j.call(E,y,this.state.error,this),this.scheduleGc()},onError:m,onFail:(y,w)=>{ke(this,zn,Aa).call(this,{type:"failed",failureCount:y,error:w})},onPause:()=>{ke(this,zn,Aa).call(this,{type:"pause"})},onContinue:()=>{ke(this,zn,Aa).call(this,{type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0})),A(this,Lt).start()}},xi=new WeakMap,bi=new WeakMap,En=new WeakMap,rr=new WeakMap,Lt=new WeakMap,io=new WeakMap,ir=new WeakMap,zn=new WeakSet,Aa=function(a){const r=i=>{switch(a.type){case"failed":return{...i,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...xb(i.data,this.options),fetchMeta:a.meta??null};case"success":return{...i,data:a.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=a.error;return hh(o)&&o.revert&&A(this,bi)?{...A(this,bi),fetchStatus:"idle"}:{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...a.state}}};this.state=r(this.state),St.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),A(this,En).notify({query:this,type:"updated",action:a})})},lb);function xb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:pb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function RN(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,r=a!==void 0,i=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:r?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Zn,rb,MN=(rb=class extends Oi{constructor(a={}){super();be(this,Zn);this.config=a,oe(this,Zn,new Map)}build(a,r,i){const o=r.queryKey,c=r.queryHash??Sm(o,r);let h=this.get(c);return h||(h=new TN({client:a,queryKey:o,queryHash:c,options:a.defaultQueryOptions(r),state:i,defaultOptions:a.getQueryDefaults(o)}),this.add(h)),h}add(a){A(this,Zn).has(a.queryHash)||(A(this,Zn).set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const r=A(this,Zn).get(a.queryHash);r&&(a.destroy(),r===a&&A(this,Zn).delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){St.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return A(this,Zn).get(a)}getAll(){return[...A(this,Zn).values()]}find(a){const r={exact:!0,...a};return this.getAll().find(i=>q0(r,i))}findAll(a={}){const r=this.getAll();return Object.keys(a).length>0?r.filter(i=>q0(a,i)):r}notify(a){St.batch(()=>{this.listeners.forEach(r=>{r(a)})})}onFocus(){St.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){St.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},Zn=new WeakMap,rb),Pn,qt,sr,Jn,vl,ib,kN=(ib=class extends yb{constructor(a){super();be(this,Jn);be(this,Pn);be(this,qt);be(this,sr);this.mutationId=a.mutationId,oe(this,qt,a.mutationCache),oe(this,Pn,[]),this.state=a.state||bb(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){A(this,Pn).includes(a)||(A(this,Pn).push(a),this.clearGcTimeout(),A(this,qt).notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){oe(this,Pn,A(this,Pn).filter(r=>r!==a)),this.scheduleGc(),A(this,qt).notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){A(this,Pn).length||(this.state.status==="pending"?this.scheduleGc():A(this,qt).remove(this))}continue(){var a;return((a=A(this,sr))==null?void 0:a.continue())??this.execute(this.state.variables)}async execute(a){var c,h,m,p,g,x,y,w,S,E,j,C,_,T,R,D,L,K,H,q;const r=()=>{ke(this,Jn,vl).call(this,{type:"continue"})};oe(this,sr,gb({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(G,te)=>{ke(this,Jn,vl).call(this,{type:"failed",failureCount:G,error:te})},onPause:()=>{ke(this,Jn,vl).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>A(this,qt).canRun(this)}));const i=this.state.status==="pending",o=!A(this,sr).canStart();try{if(i)r();else{ke(this,Jn,vl).call(this,{type:"pending",variables:a,isPaused:o}),await((h=(c=A(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&&ke(this,Jn,vl).call(this,{type:"pending",context:te,variables:a,isPaused:o})}const G=await A(this,sr).start();return await((x=(g=A(this,qt).config).onSuccess)==null?void 0:x.call(g,G,a,this.state.context,this)),await((w=(y=this.options).onSuccess)==null?void 0:w.call(y,G,a,this.state.context)),await((E=(S=A(this,qt).config).onSettled)==null?void 0:E.call(S,G,null,this.state.variables,this.state.context,this)),await((C=(j=this.options).onSettled)==null?void 0:C.call(j,G,null,a,this.state.context)),ke(this,Jn,vl).call(this,{type:"success",data:G}),G}catch(G){try{throw await((T=(_=A(this,qt).config).onError)==null?void 0:T.call(_,G,a,this.state.context,this)),await((D=(R=this.options).onError)==null?void 0:D.call(R,G,a,this.state.context)),await((K=(L=A(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{ke(this,Jn,vl).call(this,{type:"error",error:G})}}finally{A(this,qt).runNext(this)}}},Pn=new WeakMap,qt=new WeakMap,sr=new WeakMap,Jn=new WeakSet,vl=function(a){const r=i=>{switch(a.type){case"failed":return{...i,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...i,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:a.error,failureCount:i.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=r(this.state),St.batch(()=>{A(this,Pn).forEach(i=>{i.onMutationUpdate(a)}),A(this,qt).notify({mutation:this,type:"updated",action:a})})},ib);function bb(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Da,Ln,so,sb,AN=(sb=class extends Oi{constructor(a={}){super();be(this,Da);be(this,Ln);be(this,so);this.config=a,oe(this,Da,new Set),oe(this,Ln,new Map),oe(this,so,0)}build(a,r,i){const o=new kN({mutationCache:this,mutationId:++Hu(this,so)._,options:a.defaultMutationOptions(r),state:i});return this.add(o),o}add(a){A(this,Da).add(a);const r=Bu(a);if(typeof r=="string"){const i=A(this,Ln).get(r);i?i.push(a):A(this,Ln).set(r,[a])}this.notify({type:"added",mutation:a})}remove(a){if(A(this,Da).delete(a)){const r=Bu(a);if(typeof r=="string"){const i=A(this,Ln).get(r);if(i)if(i.length>1){const o=i.indexOf(a);o!==-1&&i.splice(o,1)}else i[0]===a&&A(this,Ln).delete(r)}}this.notify({type:"removed",mutation:a})}canRun(a){const r=Bu(a);if(typeof r=="string"){const i=A(this,Ln).get(r),o=i==null?void 0:i.find(c=>c.state.status==="pending");return!o||o===a}else return!0}runNext(a){var i;const r=Bu(a);if(typeof r=="string"){const o=(i=A(this,Ln).get(r))==null?void 0:i.find(c=>c!==a&&c.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){St.batch(()=>{A(this,Da).forEach(a=>{this.notify({type:"removed",mutation:a})}),A(this,Da).clear(),A(this,Ln).clear()})}getAll(){return Array.from(A(this,Da))}find(a){const r={exact:!0,...a};return this.getAll().find(i=>H0(r,i))}findAll(a={}){return this.getAll().filter(r=>H0(a,r))}notify(a){St.batch(()=>{this.listeners.forEach(r=>{r(a)})})}resumePausedMutations(){const a=this.getAll().filter(r=>r.state.isPaused);return St.batch(()=>Promise.all(a.map(r=>r.continue().catch(Nn))))}},Da=new WeakMap,Ln=new WeakMap,so=new WeakMap,sb);function Bu(n){var a;return(a=n.options.scope)==null?void 0:a.id}function Q0(n){return{onFetch:(a,r)=>{var x,y,w,S,E;const i=a.options,o=(w=(y=(x=a.fetchOptions)==null?void 0:x.meta)==null?void 0:y.fetchMore)==null?void 0:w.direction,c=((S=a.state.data)==null?void 0:S.pages)||[],h=((E=a.state.data)==null?void 0:E.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let j=!1;const C=R=>{Object.defineProperty(R,"signal",{enumerable:!0,get:()=>(a.signal.aborted?j=!0:a.signal.addEventListener("abort",()=>{j=!0}),a.signal)})},_=mb(a.options,a.fetchOptions),T=async(R,D,L)=>{if(j)return Promise.reject();if(D==null&&R.pages.length)return Promise.resolve(R);const K={client:a.client,queryKey:a.queryKey,pageParam:D,direction:L?"backward":"forward",meta:a.options.meta};C(K);const H=await _(K),{maxPages:q}=a.options,G=L?jN:wN;return{pages:G(R.pages,H,q),pageParams:G(R.pageParams,D,q)}};if(o&&c.length){const R=o==="backward",D=R?DN:G0,L={pages:c,pageParams:h},K=D(i,L);m=await T(L,K,R)}else{const R=n??c.length;do{const D=p===0?h[0]??i.initialPageParam:G0(i,m);if(p>0&&D==null)break;m=await T(m,D),p++}while(p<R)}return m};a.options.persister?a.fetchFn=()=>{var j,C;return(C=(j=a.options).persister)==null?void 0:C.call(j,g,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},r)}:a.fetchFn=g}}}function G0(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 DN(n,{pages:a,pageParams:r}){var i;return a.length>0?(i=n.getPreviousPageParam)==null?void 0:i.call(n,a[0],a,r[0],r):void 0}var st,bl,wl,wi,ji,jl,Si,Ei,ob,ON=(ob=class{constructor(n={}){be(this,st);be(this,bl);be(this,wl);be(this,wi);be(this,ji);be(this,jl);be(this,Si);be(this,Ei);oe(this,st,n.queryCache||new MN),oe(this,bl,n.mutationCache||new AN),oe(this,wl,n.defaultOptions||{}),oe(this,wi,new Map),oe(this,ji,new Map),oe(this,jl,0)}mount(){Hu(this,jl)._++,A(this,jl)===1&&(oe(this,Si,Nm.subscribe(async n=>{n&&(await this.resumePausedMutations(),A(this,st).onFocus())})),oe(this,Ei,rc.subscribe(async n=>{n&&(await this.resumePausedMutations(),A(this,st).onOnline())})))}unmount(){var n,a;Hu(this,jl)._--,A(this,jl)===0&&((n=A(this,Si))==null||n.call(this),oe(this,Si,void 0),(a=A(this,Ei))==null||a.call(this),oe(this,Ei,void 0))}isFetching(n){return A(this,st).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return A(this,bl).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=A(this,st).get(a.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),r=A(this,st).build(this,a),i=r.state.data;return i===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(fi(a.staleTime,r))&&this.prefetchQuery(a),Promise.resolve(i))}getQueriesData(n){return A(this,st).findAll(n).map(({queryKey:a,state:r})=>{const i=r.data;return[a,i]})}setQueryData(n,a,r){const i=this.defaultQueryOptions({queryKey:n}),o=A(this,st).get(i.queryHash),c=o==null?void 0:o.state.data,h=xN(a,c);if(h!==void 0)return A(this,st).build(this,i).setData(h,{...r,manual:!0})}setQueriesData(n,a,r){return St.batch(()=>A(this,st).findAll(n).map(({queryKey:i})=>[i,this.setQueryData(i,a,r)]))}getQueryState(n){var r;const a=this.defaultQueryOptions({queryKey:n});return(r=A(this,st).get(a.queryHash))==null?void 0:r.state}removeQueries(n){const a=A(this,st);St.batch(()=>{a.findAll(n).forEach(r=>{a.remove(r)})})}resetQueries(n,a){const r=A(this,st);return St.batch(()=>(r.findAll(n).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const r={revert:!0,...a},i=St.batch(()=>A(this,st).findAll(n).map(o=>o.cancel(r)));return Promise.all(i).then(Nn).catch(Nn)}invalidateQueries(n,a={}){return St.batch(()=>(A(this,st).findAll(n).forEach(r=>{r.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},a)))}refetchQueries(n,a={}){const r={...a,cancelRefetch:a.cancelRefetch??!0},i=St.batch(()=>A(this,st).findAll(n).filter(o=>!o.isDisabled()).map(o=>{let c=o.fetch(void 0,r);return r.throwOnError||(c=c.catch(Nn)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(i).then(Nn)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const r=A(this,st).build(this,a);return r.isStaleByTime(fi(a.staleTime,r))?r.fetch(a):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Nn).catch(Nn)}fetchInfiniteQuery(n){return n.behavior=Q0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Nn).catch(Nn)}ensureInfiniteQueryData(n){return n.behavior=Q0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return rc.isOnline()?A(this,bl).resumePausedMutations():Promise.resolve()}getQueryCache(){return A(this,st)}getMutationCache(){return A(this,bl)}getDefaultOptions(){return A(this,wl)}setDefaultOptions(n){oe(this,wl,n)}setQueryDefaults(n,a){A(this,wi).set(fr(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...A(this,wi).values()],r={};return a.forEach(i=>{eo(n,i.queryKey)&&Object.assign(r,i.defaultOptions)}),r}setMutationDefaults(n,a){A(this,ji).set(fr(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...A(this,ji).values()],r={};return a.forEach(i=>{eo(n,i.mutationKey)&&Object.assign(r,i.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const a={...A(this,wl).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=Sm(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===Em&&(a.enabled=!1),a}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...A(this,wl).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){A(this,st).clear(),A(this,bl).clear()}},st=new WeakMap,bl=new WeakMap,wl=new WeakMap,wi=new WeakMap,ji=new WeakMap,jl=new WeakMap,Si=new WeakMap,Ei=new WeakMap,ob),Ft,qe,oo,Ht,or,Ni,Sl,El,uo,Ci,_i,ur,cr,Nl,Ti,Ve,Xs,$h,Qh,Gh,Yh,Vh,Kh,Xh,wb,ub,zN=(ub=class extends Oi{constructor(a,r){super();be(this,Ve);be(this,Ft);be(this,qe);be(this,oo);be(this,Ht);be(this,or);be(this,Ni);be(this,Sl);be(this,El);be(this,uo);be(this,Ci);be(this,_i);be(this,ur);be(this,cr);be(this,Nl);be(this,Ti,new Set);this.options=r,oe(this,Ft,a),oe(this,El,null),oe(this,Sl,Bh()),this.options.experimental_prefetchInRender||A(this,Sl).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(A(this,qe).addObserver(this),Y0(A(this,qe),this.options)?ke(this,Ve,Xs).call(this):this.updateResult(),ke(this,Ve,Yh).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Fh(A(this,qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Fh(A(this,qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ke(this,Ve,Vh).call(this),ke(this,Ve,Kh).call(this),A(this,qe).removeObserver(this)}setOptions(a){const r=this.options,i=A(this,qe);if(this.options=A(this,Ft).defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Un(this.options.enabled,A(this,qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ke(this,Ve,Xh).call(this),A(this,qe).setOptions(this.options),r._defaulted&&!lc(this.options,r)&&A(this,Ft).getQueryCache().notify({type:"observerOptionsUpdated",query:A(this,qe),observer:this});const o=this.hasListeners();o&&V0(A(this,qe),i,this.options,r)&&ke(this,Ve,Xs).call(this),this.updateResult(),o&&(A(this,qe)!==i||Un(this.options.enabled,A(this,qe))!==Un(r.enabled,A(this,qe))||fi(this.options.staleTime,A(this,qe))!==fi(r.staleTime,A(this,qe)))&&ke(this,Ve,$h).call(this);const c=ke(this,Ve,Qh).call(this);o&&(A(this,qe)!==i||Un(this.options.enabled,A(this,qe))!==Un(r.enabled,A(this,qe))||c!==A(this,Nl))&&ke(this,Ve,Gh).call(this,c)}getOptimisticResult(a){const r=A(this,Ft).getQueryCache().build(A(this,Ft),a),i=this.createResult(r,a);return UN(this,i)&&(oe(this,Ht,i),oe(this,Ni,this.options),oe(this,or,A(this,qe).state)),i}getCurrentResult(){return A(this,Ht)}trackResult(a,r){const i={};return Object.keys(a).forEach(o=>{Object.defineProperty(i,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),r==null||r(o),a[o])})}),i}trackProp(a){A(this,Ti).add(a)}getCurrentQuery(){return A(this,qe)}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const r=A(this,Ft).defaultQueryOptions(a),i=A(this,Ft).getQueryCache().build(A(this,Ft),r);return i.fetch().then(()=>this.createResult(i,r))}fetch(a){return ke(this,Ve,Xs).call(this,{...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),A(this,Ht)))}createResult(a,r){var G;const i=A(this,qe),o=this.options,c=A(this,Ht),h=A(this,or),m=A(this,Ni),g=a!==i?a.state:A(this,oo),{state:x}=a;let y={...x},w=!1,S;if(r._optimisticResults){const te=this.hasListeners(),ue=!te&&Y0(a,r),ce=te&&V0(a,i,r,o);(ue||ce)&&(y={...y,...xb(x.data,a.options)}),r._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:j,status:C}=y;S=y.data;let _=!1;if(r.placeholderData!==void 0&&S===void 0&&C==="pending"){let te;c!=null&&c.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(te=c.data,_=!0):te=typeof r.placeholderData=="function"?r.placeholderData((G=A(this,_i))==null?void 0:G.state.data,A(this,_i)):r.placeholderData,te!==void 0&&(C="success",S=Hh(c==null?void 0:c.data,te,r),w=!0)}if(r.select&&S!==void 0&&!_)if(c&&S===(h==null?void 0:h.data)&&r.select===A(this,uo))S=A(this,Ci);else try{oe(this,uo,r.select),S=r.select(S),S=Hh(c==null?void 0:c.data,S,r),oe(this,Ci,S),oe(this,El,null)}catch(te){oe(this,El,te)}A(this,El)&&(E=A(this,El),S=A(this,Ci),j=Date.now(),C="error");const T=y.fetchStatus==="fetching",R=C==="pending",D=C==="error",L=R&&T,K=S!==void 0,q={status:C,fetchStatus:y.fetchStatus,isPending:R,isSuccess:C==="success",isError:D,isInitialLoading:L,isLoading:L,data:S,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:j,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>g.dataUpdateCount||y.errorUpdateCount>g.errorUpdateCount,isFetching:T,isRefetching:T&&!R,isLoadingError:D&&!K,isPaused:y.fetchStatus==="paused",isPlaceholderData:w,isRefetchError:D&&K,isStale:Cm(a,r),refetch:this.refetch,promise:A(this,Sl)};if(this.options.experimental_prefetchInRender){const te=W=>{q.status==="error"?W.reject(q.error):q.data!==void 0&&W.resolve(q.data)},ue=()=>{const W=oe(this,Sl,q.promise=Bh());te(W)},ce=A(this,Sl);switch(ce.status){case"pending":a.queryHash===i.queryHash&&te(ce);break;case"fulfilled":(q.status==="error"||q.data!==ce.value)&&ue();break;case"rejected":(q.status!=="error"||q.error!==ce.reason)&&ue();break}}return q}updateResult(){const a=A(this,Ht),r=this.createResult(A(this,qe),this.options);if(oe(this,or,A(this,qe).state),oe(this,Ni,this.options),A(this,or).data!==void 0&&oe(this,_i,A(this,qe)),lc(r,a))return;oe(this,Ht,r);const i=()=>{if(!a)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!A(this,Ti).size)return!0;const h=new Set(c??A(this,Ti));return this.options.throwOnError&&h.add("error"),Object.keys(A(this,Ht)).some(m=>{const p=m;return A(this,Ht)[p]!==a[p]&&h.has(p)})};ke(this,Ve,wb).call(this,{listeners:i()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ke(this,Ve,Yh).call(this)}},Ft=new WeakMap,qe=new WeakMap,oo=new WeakMap,Ht=new WeakMap,or=new WeakMap,Ni=new WeakMap,Sl=new WeakMap,El=new WeakMap,uo=new WeakMap,Ci=new WeakMap,_i=new WeakMap,ur=new WeakMap,cr=new WeakMap,Nl=new WeakMap,Ti=new WeakMap,Ve=new WeakSet,Xs=function(a){ke(this,Ve,Xh).call(this);let r=A(this,qe).fetch(this.options,a);return a!=null&&a.throwOnError||(r=r.catch(Nn)),r},$h=function(){ke(this,Ve,Vh).call(this);const a=fi(this.options.staleTime,A(this,qe));if(dr||A(this,Ht).isStale||!Uh(a))return;const i=fb(A(this,Ht).dataUpdatedAt,a)+1;oe(this,ur,setTimeout(()=>{A(this,Ht).isStale||this.updateResult()},i))},Qh=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(A(this,qe)):this.options.refetchInterval)??!1},Gh=function(a){ke(this,Ve,Kh).call(this),oe(this,Nl,a),!(dr||Un(this.options.enabled,A(this,qe))===!1||!Uh(A(this,Nl))||A(this,Nl)===0)&&oe(this,cr,setInterval(()=>{(this.options.refetchIntervalInBackground||Nm.isFocused())&&ke(this,Ve,Xs).call(this)},A(this,Nl)))},Yh=function(){ke(this,Ve,$h).call(this),ke(this,Ve,Gh).call(this,ke(this,Ve,Qh).call(this))},Vh=function(){A(this,ur)&&(clearTimeout(A(this,ur)),oe(this,ur,void 0))},Kh=function(){A(this,cr)&&(clearInterval(A(this,cr)),oe(this,cr,void 0))},Xh=function(){const a=A(this,Ft).getQueryCache().build(A(this,Ft),this.options);if(a===A(this,qe))return;const r=A(this,qe);oe(this,qe,a),oe(this,oo,a.state),this.hasListeners()&&(r==null||r.removeObserver(this),a.addObserver(this))},wb=function(a){St.batch(()=>{a.listeners&&this.listeners.forEach(r=>{r(A(this,Ht))}),A(this,Ft).getQueryCache().notify({query:A(this,qe),type:"observerResultsUpdated"})})},ub);function LN(n,a){return Un(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function Y0(n,a){return LN(n,a)||n.state.data!==void 0&&Fh(n,a,a.refetchOnMount)}function Fh(n,a,r){if(Un(a.enabled,n)!==!1){const i=typeof r=="function"?r(n):r;return i==="always"||i!==!1&&Cm(n,a)}return!1}function V0(n,a,r,i){return(n!==a||Un(i.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&Cm(n,r)}function Cm(n,a){return Un(a.enabled,n)!==!1&&n.isStaleByTime(fi(a.staleTime,n))}function UN(n,a){return!lc(n.getCurrentResult(),a)}var Cl,_l,Zt,Oa,La,Ju,Zh,cb,qN=(cb=class extends Oi{constructor(r,i){super();be(this,La);be(this,Cl);be(this,_l);be(this,Zt);be(this,Oa);oe(this,Cl,r),this.setOptions(i),this.bindMethods(),ke(this,La,Ju).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var o;const i=this.options;this.options=A(this,Cl).defaultMutationOptions(r),lc(this.options,i)||A(this,Cl).getMutationCache().notify({type:"observerOptionsUpdated",mutation:A(this,Zt),observer:this}),i!=null&&i.mutationKey&&this.options.mutationKey&&fr(i.mutationKey)!==fr(this.options.mutationKey)?this.reset():((o=A(this,Zt))==null?void 0:o.state.status)==="pending"&&A(this,Zt).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=A(this,Zt))==null||r.removeObserver(this)}onMutationUpdate(r){ke(this,La,Ju).call(this),ke(this,La,Zh).call(this,r)}getCurrentResult(){return A(this,_l)}reset(){var r;(r=A(this,Zt))==null||r.removeObserver(this),oe(this,Zt,void 0),ke(this,La,Ju).call(this),ke(this,La,Zh).call(this)}mutate(r,i){var o;return oe(this,Oa,i),(o=A(this,Zt))==null||o.removeObserver(this),oe(this,Zt,A(this,Cl).getMutationCache().build(A(this,Cl),this.options)),A(this,Zt).addObserver(this),A(this,Zt).execute(r)}},Cl=new WeakMap,_l=new WeakMap,Zt=new WeakMap,Oa=new WeakMap,La=new WeakSet,Ju=function(){var i;const r=((i=A(this,Zt))==null?void 0:i.state)??bb();oe(this,_l,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Zh=function(r){St.batch(()=>{var i,o,c,h,m,p,g,x;if(A(this,Oa)&&this.hasListeners()){const y=A(this,_l).variables,w=A(this,_l).context;(r==null?void 0:r.type)==="success"?((o=(i=A(this,Oa)).onSuccess)==null||o.call(i,r.data,y,w),(h=(c=A(this,Oa)).onSettled)==null||h.call(c,r.data,null,y,w)):(r==null?void 0:r.type)==="error"&&((p=(m=A(this,Oa)).onError)==null||p.call(m,r.error,y,w),(x=(g=A(this,Oa)).onSettled)==null||x.call(g,void 0,r.error,y,w))}this.listeners.forEach(y=>{y(A(this,_l))})})},cb),mh={exports:{}},Ce={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var K0;function HN(){if(K0)return Ce;K0=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),w=Symbol.iterator;function S(k){return k===null||typeof k!="object"?null:(k=w&&k[w]||k["@@iterator"],typeof k=="function"?k:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,C={};function _(k,F,ee){this.props=k,this.context=F,this.refs=C,this.updater=ee||E}_.prototype.isReactComponent={},_.prototype.setState=function(k,F){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,F,"setState")},_.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function T(){}T.prototype=_.prototype;function R(k,F,ee){this.props=k,this.context=F,this.refs=C,this.updater=ee||E}var D=R.prototype=new T;D.constructor=R,j(D,_.prototype),D.isPureReactComponent=!0;var L=Array.isArray;function K(){}var H={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function G(k,F,ee){var le=ee.ref;return{$$typeof:n,type:k,key:F,ref:le!==void 0?le:null,props:ee}}function te(k,F){return G(k.type,F,k.props)}function ue(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function ce(k){var F={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(ee){return F[ee]})}var W=/\/+/g;function ie(k,F){return typeof k=="object"&&k!==null&&k.key!=null?ce(""+k.key):F.toString(36)}function re(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(K,K):(k.status="pending",k.then(function(F){k.status==="pending"&&(k.status="fulfilled",k.value=F)},function(F){k.status==="pending"&&(k.status="rejected",k.reason=F)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function U(k,F,ee,le,ve){var Se=typeof k;(Se==="undefined"||Se==="boolean")&&(k=null);var ne=!1;if(k===null)ne=!0;else switch(Se){case"bigint":case"string":case"number":ne=!0;break;case"object":switch(k.$$typeof){case n:case a:ne=!0;break;case x:return ne=k._init,U(ne(k._payload),F,ee,le,ve)}}if(ne)return ve=ve(k),ne=le===""?"."+ie(k,0):le,L(ve)?(ee="",ne!=null&&(ee=ne.replace(W,"$&/")+"/"),U(ve,F,ee,"",function(Ne){return Ne})):ve!=null&&(ue(ve)&&(ve=te(ve,ee+(ve.key==null||k&&k.key===ve.key?"":(""+ve.key).replace(W,"$&/")+"/")+ne)),F.push(ve)),1;ne=0;var Ee=le===""?".":le+":";if(L(k))for(var ye=0;ye<k.length;ye++)le=k[ye],Se=Ee+ie(le,ye),ne+=U(le,F,ee,Se,ve);else if(ye=S(k),typeof ye=="function")for(k=ye.call(k),ye=0;!(le=k.next()).done;)le=le.value,Se=Ee+ie(le,ye++),ne+=U(le,F,ee,Se,ve);else if(Se==="object"){if(typeof k.then=="function")return U(re(k),F,ee,le,ve);throw F=String(k),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ne}function I(k,F,ee){if(k==null)return k;var le=[],ve=0;return U(k,le,"","",function(Se){return F.call(ee,Se,ve++)}),le}function Y(k){if(k._status===-1){var F=k._result;F=F(),F.then(function(ee){(k._status===0||k._status===-1)&&(k._status=1,k._result=ee)},function(ee){(k._status===0||k._status===-1)&&(k._status=2,k._result=ee)}),k._status===-1&&(k._status=0,k._result=F)}if(k._status===1)return k._result.default;throw k._result}var X=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},de={map:I,forEach:function(k,F,ee){I(k,function(){F.apply(this,arguments)},ee)},count:function(k){var F=0;return I(k,function(){F++}),F},toArray:function(k){return I(k,function(F){return F})||[]},only:function(k){if(!ue(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Ce.Activity=y,Ce.Children=de,Ce.Component=_,Ce.Fragment=r,Ce.Profiler=o,Ce.PureComponent=R,Ce.StrictMode=i,Ce.Suspense=p,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=H,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(k){return H.H.useMemoCache(k)}},Ce.cache=function(k){return function(){return k.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(k,F,ee){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var le=j({},k.props),ve=k.key;if(F!=null)for(Se in F.key!==void 0&&(ve=""+F.key),F)!q.call(F,Se)||Se==="key"||Se==="__self"||Se==="__source"||Se==="ref"&&F.ref===void 0||(le[Se]=F[Se]);var Se=arguments.length-2;if(Se===1)le.children=ee;else if(1<Se){for(var ne=Array(Se),Ee=0;Ee<Se;Ee++)ne[Ee]=arguments[Ee+2];le.children=ne}return G(k.type,ve,le)},Ce.createContext=function(k){return k={$$typeof:h,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:c,_context:k},k},Ce.createElement=function(k,F,ee){var le,ve={},Se=null;if(F!=null)for(le in F.key!==void 0&&(Se=""+F.key),F)q.call(F,le)&&le!=="key"&&le!=="__self"&&le!=="__source"&&(ve[le]=F[le]);var ne=arguments.length-2;if(ne===1)ve.children=ee;else if(1<ne){for(var Ee=Array(ne),ye=0;ye<ne;ye++)Ee[ye]=arguments[ye+2];ve.children=Ee}if(k&&k.defaultProps)for(le in ne=k.defaultProps,ne)ve[le]===void 0&&(ve[le]=ne[le]);return G(k,Se,ve)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(k){return{$$typeof:m,render:k}},Ce.isValidElement=ue,Ce.lazy=function(k){return{$$typeof:x,_payload:{_status:-1,_result:k},_init:Y}},Ce.memo=function(k,F){return{$$typeof:g,type:k,compare:F===void 0?null:F}},Ce.startTransition=function(k){var F=H.T,ee={};H.T=ee;try{var le=k(),ve=H.S;ve!==null&&ve(ee,le),typeof le=="object"&&le!==null&&typeof le.then=="function"&&le.then(K,X)}catch(Se){X(Se)}finally{F!==null&&ee.types!==null&&(F.types=ee.types),H.T=F}},Ce.unstable_useCacheRefresh=function(){return H.H.useCacheRefresh()},Ce.use=function(k){return H.H.use(k)},Ce.useActionState=function(k,F,ee){return H.H.useActionState(k,F,ee)},Ce.useCallback=function(k,F){return H.H.useCallback(k,F)},Ce.useContext=function(k){return H.H.useContext(k)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(k,F){return H.H.useDeferredValue(k,F)},Ce.useEffect=function(k,F){return H.H.useEffect(k,F)},Ce.useEffectEvent=function(k){return H.H.useEffectEvent(k)},Ce.useId=function(){return H.H.useId()},Ce.useImperativeHandle=function(k,F,ee){return H.H.useImperativeHandle(k,F,ee)},Ce.useInsertionEffect=function(k,F){return H.H.useInsertionEffect(k,F)},Ce.useLayoutEffect=function(k,F){return H.H.useLayoutEffect(k,F)},Ce.useMemo=function(k,F){return H.H.useMemo(k,F)},Ce.useOptimistic=function(k,F){return H.H.useOptimistic(k,F)},Ce.useReducer=function(k,F,ee){return H.H.useReducer(k,F,ee)},Ce.useRef=function(k){return H.H.useRef(k)},Ce.useState=function(k){return H.H.useState(k)},Ce.useSyncExternalStore=function(k,F,ee){return H.H.useSyncExternalStore(k,F,ee)},Ce.useTransition=function(){return H.H.useTransition()},Ce.version="19.2.3",Ce}var X0;function _m(){return X0||(X0=1,mh.exports=HN()),mh.exports}var v=_m();const ot=db(v),jb=vN({__proto__:null,default:ot},[v]);var Sb=v.createContext(void 0),Tm=n=>{const a=v.useContext(Sb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},BN=({client:n,children:a})=>(v.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),u.jsx(Sb.Provider,{value:n,children:a})),Eb=v.createContext(!1),$N=()=>v.useContext(Eb);Eb.Provider;function QN(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var GN=v.createContext(QN()),YN=()=>v.useContext(GN);function Nb(n,a){return typeof n=="function"?n(...a):!!n}function Ph(){}var VN=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},KN=n=>{v.useEffect(()=>{n.clearReset()},[n])},XN=({result:n,errorResetBoundary:a,throwOnError:r,query:i,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&i&&(o&&n.data===void 0||Nb(r,[n.error,i])),FN=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)))},ZN=(n,a)=>n.isLoading&&n.isFetching&&!a,PN=(n,a)=>(n==null?void 0:n.suspense)&&a.isPending,F0=(n,a,r)=>a.fetchOptimistic(n).catch(()=>{r.clearReset()});function JN(n,a,r){var y,w,S,E,j;const i=Tm(),o=$N(),c=YN(),h=i.defaultQueryOptions(n);(w=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_beforeQuery)==null||w.call(y,h),h._optimisticResults=o?"isRestoring":"optimistic",FN(h),VN(h,c),KN(c);const m=!i.getQueryCache().get(h.queryHash),[p]=v.useState(()=>new a(i,h)),g=p.getOptimisticResult(h),x=!o&&n.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(C=>{const _=x?p.subscribe(St.batchCalls(C)):Ph;return p.updateResult(),_},[p,x]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),v.useEffect(()=>{p.setOptions(h)},[h,p]),PN(h,g))throw F0(h,p,c);if(XN({result:g,errorResetBoundary:c,throwOnError:h.throwOnError,query:i.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw g.error;if((E=(S=i.getDefaultOptions().queries)==null?void 0:S._experimental_afterQuery)==null||E.call(S,h,g),h.experimental_prefetchInRender&&!dr&&ZN(g,o)){const C=m?F0(h,p,c):(j=i.getQueryCache().get(h.queryHash))==null?void 0:j.promise;C==null||C.catch(Ph).finally(()=>{p.updateResult()})}return h.notifyOnChangeProps?g:p.trackResult(g)}function ft(n,a){return JN(n,zN)}function Jh(n,a){const r=Tm(),[i]=v.useState(()=>new qN(r,n));v.useEffect(()=>{i.setOptions(n)},[i,n]);const o=v.useSyncExternalStore(v.useCallback(h=>i.subscribe(St.batchCalls(h)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),c=v.useCallback((h,m)=>{i.mutate(h,m).catch(Ph)},[i]);if(o.error&&Nb(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:c,mutateAsync:o.mutate}}var ph={exports:{}},Gs={},vh={exports:{}},gh={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var Z0;function IN(){return Z0||(Z0=1,(function(n){function a(U,I){var Y=U.length;U.push(I);e:for(;0<Y;){var X=Y-1>>>1,de=U[X];if(0<o(de,I))U[X]=I,U[Y]=de,Y=X;else break e}}function r(U){return U.length===0?null:U[0]}function i(U){if(U.length===0)return null;var I=U[0],Y=U.pop();if(Y!==I){U[0]=Y;e:for(var X=0,de=U.length,k=de>>>1;X<k;){var F=2*(X+1)-1,ee=U[F],le=F+1,ve=U[le];if(0>o(ee,Y))le<de&&0>o(ve,ee)?(U[X]=ve,U[le]=Y,X=le):(U[X]=ee,U[F]=Y,X=F);else if(le<de&&0>o(ve,Y))U[X]=ve,U[le]=Y,X=le;else break e}}return I}function o(U,I){var Y=U.sortIndex-I.sortIndex;return Y!==0?Y:U.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var h=Date,m=h.now();n.unstable_now=function(){return h.now()-m}}var p=[],g=[],x=1,y=null,w=3,S=!1,E=!1,j=!1,C=!1,_=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function D(U){for(var I=r(g);I!==null;){if(I.callback===null)i(g);else if(I.startTime<=U)i(g),I.sortIndex=I.expirationTime,a(p,I);else break;I=r(g)}}function L(U){if(j=!1,D(U),!E)if(r(p)!==null)E=!0,K||(K=!0,ce());else{var I=r(g);I!==null&&re(L,I.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 I=!0;try{e:{E=!1,j&&(j=!1,T(H),H=-1),S=!0;var Y=w;try{t:{for(D(U),y=r(p);y!==null&&!(y.expirationTime>U&&te());){var X=y.callback;if(typeof X=="function"){y.callback=null,w=y.priorityLevel;var de=X(y.expirationTime<=U);if(U=n.unstable_now(),typeof de=="function"){y.callback=de,D(U),I=!0;break t}y===r(p)&&i(p),D(U)}else i(p);y=r(p)}if(y!==null)I=!0;else{var k=r(g);k!==null&&re(L,k.startTime-U),I=!1}}break e}finally{y=null,w=Y,S=!1}I=void 0}}finally{I?ce():K=!1}}}var ce;if(typeof R=="function")ce=function(){R(ue)};else if(typeof MessageChannel<"u"){var W=new MessageChannel,ie=W.port2;W.port1.onmessage=ue,ce=function(){ie.postMessage(null)}}else ce=function(){_(ue,0)};function re(U,I){H=_(function(){U(n.unstable_now())},I)}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 I=3;break;default:I=w}var Y=w;w=I;try{return U()}finally{w=Y}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(U,I){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var Y=w;w=U;try{return I()}finally{w=Y}},n.unstable_scheduleCallback=function(U,I,Y){var X=n.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?X+Y:X):Y=X,U){case 1:var de=-1;break;case 2:de=250;break;case 5:de=1073741823;break;case 4:de=1e4;break;default:de=5e3}return de=Y+de,U={id:x++,callback:I,priorityLevel:U,startTime:Y,expirationTime:de,sortIndex:-1},Y>X?(U.sortIndex=Y,a(g,U),r(p)===null&&U===r(g)&&(j?(T(H),H=-1):j=!0,re(L,Y-X))):(U.sortIndex=de,a(p,U),E||S||(E=!0,K||(K=!0,ce()))),U},n.unstable_shouldYield=te,n.unstable_wrapCallback=function(U){var I=w;return function(){var Y=w;w=I;try{return U.apply(this,arguments)}finally{w=Y}}}})(gh)),gh}var P0;function WN(){return P0||(P0=1,vh.exports=IN()),vh.exports}var yh={exports:{}},zt={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var J0;function eC(){if(J0)return zt;J0=1;var n=_m();function a(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var i={d:{f:r,r:function(){throw Error(a(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(p,g,x){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:p,containerInfo:g,implementation:x}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,zt.createPortal=function(p,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(a(299));return c(p,g,null,x)},zt.flushSync=function(p){var g=h.T,x=i.p;try{if(h.T=null,i.p=2,p)return p()}finally{h.T=g,i.p=x,i.d.f()}},zt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(p,g))},zt.prefetchDNS=function(p){typeof p=="string"&&i.d.D(p)},zt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var x=g.as,y=m(x,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,S=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?i.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:w,fetchPriority:S}):x==="script"&&i.d.X(p,{crossOrigin:y,integrity:w,fetchPriority:S,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},zt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=m(g.as,g.crossOrigin);i.d.M(p,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(p)},zt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,y=m(x,g.crossOrigin);i.d.L(p,x,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},zt.preloadModule=function(p,g){if(typeof p=="string")if(g){var x=m(g.as,g.crossOrigin);i.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(p)},zt.requestFormReset=function(p){i.d.r(p)},zt.unstable_batchedUpdates=function(p,g){return p(g)},zt.useFormState=function(p,g,x){return h.H.useFormState(p,g,x)},zt.useFormStatus=function(){return h.H.useHostTransitionStatus()},zt.version="19.2.3",zt}var I0;function Cb(){if(I0)return yh.exports;I0=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),yh.exports=eC(),yh.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var W0;function tC(){if(W0)return Gs;W0=1;var n=WN(),a=_m(),r=Cb();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(c(e)!==e)throw Error(i(188))}function g(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(i(188));return t!==e?null:e}for(var l=e,s=t;;){var d=l.return;if(d===null)break;var f=d.alternate;if(f===null){if(s=d.return,s!==null){l=s;continue}break}if(d.child===f.child){for(f=d.child;f;){if(f===l)return p(d),e;if(f===s)return p(d),t;f=f.sibling}throw Error(i(188))}if(l.return!==s.return)l=d,s=f;else{for(var b=!1,N=d.child;N;){if(N===l){b=!0,l=d,s=f;break}if(N===s){b=!0,s=d,l=f;break}N=N.sibling}if(!b){for(N=f.child;N;){if(N===l){b=!0,l=f,s=d;break}if(N===s){b=!0,s=f,l=d;break}N=N.sibling}if(!b)throw Error(i(189))}}if(l.alternate!==s)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,w=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),R=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),te=Symbol.for("react.memo_cache_sentinel"),ue=Symbol.iterator;function ce(e){return e===null||typeof e!="object"?null:(e=ue&&e[ue]||e["@@iterator"],typeof e=="function"?e:null)}var W=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===W?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case _:return"Profiler";case C:return"StrictMode";case L:return"Suspense";case K:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case R:return e.displayName||"Context";case T:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case H:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case q:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var re=Array.isArray,U=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},X=[],de=-1;function k(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=k(null),ve=k(null),Se=k(null),ne=k(null);function Ee(e,t){switch(ee(Se,t),ee(ve,e),ee(le,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?l0(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=l0(t),e=r0(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}F(le),ee(le,e)}function ye(){F(le),F(ve),F(Se)}function Ne(e){e.memoizedState!==null&&ee(ne,e);var t=le.current,l=r0(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),qs._currentValue=Y)}var Ke,Ot;function Jt(e){if(Ke===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Ke=t&&t[1]||"",Ot=-1<l.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+Ke+e+Ot}var ca=!1;function da(e,t){if(!e||ca)return"";ca=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={DetermineComponentFrameRoot:function(){try{if(t){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(V){var Q=V}Reflect.construct(e,[],J)}else{try{J.call()}catch(V){Q=V}e.call(J.prototype)}}else{try{throw Error()}catch(V){Q=V}(J=e())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(V){if(V&&Q&&typeof V.stack=="string")return[V.stack,Q.stack]}return[null,null]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=s.DetermineComponentFrameRoot(),b=f[0],N=f[1];if(b&&N){var M=b.split(`
|
|
44
|
-
`),$=N.split(`
|
|
45
|
-
`);for(d=s=0;s<M.length&&!M[s].includes("DetermineComponentFrameRoot");)s++;for(;d<$.length&&!$[d].includes("DetermineComponentFrameRoot");)d++;if(s===M.length||d===$.length)for(s=M.length-1,d=$.length-1;1<=s&&0<=d&&M[s]!==$[d];)d--;for(;1<=s&&0<=d;s--,d--)if(M[s]!==$[d]){if(s!==1||d!==1)do if(s--,d--,0>d||M[s]!==$[d]){var Z=`
|
|
46
|
-
`+M[s].replace(" at new "," at ");return e.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",e.displayName)),Z}while(1<=s&&0<=d);break}}}finally{ca=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Jt(l):""}function Zc(e,t){switch(e.tag){case 26:case 27:case 5:return Jt(e.type);case 16:return Jt("Lazy");case 13:return e.child!==t&&t!==null?Jt("Suspense Fallback"):Jt("Suspense");case 19:return Jt("SuspenseList");case 0:case 15:return da(e.type,!1);case 11:return da(e.type.render,!1);case 1:return da(e.type,!0);case 31:return Jt("Activity");default:return""}}function wo(e){try{var t="",l=null;do t+=Zc(e,l),l=e,e=e.return;while(e);return t}catch(s){return`
|
|
47
|
-
Error generating stack: `+s.message+`
|
|
48
|
-
`+s.stack}}var Ga=Object.prototype.hasOwnProperty,Pc=n.unstable_scheduleCallback,Jc=n.unstable_cancelCallback,FS=n.unstable_shouldYield,ZS=n.unstable_requestPaint,It=n.unstable_now,PS=n.unstable_getCurrentPriorityLevel,Lp=n.unstable_ImmediatePriority,Up=n.unstable_UserBlockingPriority,jo=n.unstable_NormalPriority,JS=n.unstable_LowPriority,qp=n.unstable_IdlePriority,IS=n.log,WS=n.unstable_setDisableYieldValue,Pi=null,Wt=null;function Ya(e){if(typeof IS=="function"&&WS(e),Wt&&typeof Wt.setStrictMode=="function")try{Wt.setStrictMode(Pi,e)}catch{}}var en=Math.clz32?Math.clz32:n2,e2=Math.log,t2=Math.LN2;function n2(e){return e>>>=0,e===0?32:31-(e2(e)/t2|0)|0}var So=256,Eo=262144,No=4194304;function Ll(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Co(e,t,l){var s=e.pendingLanes;if(s===0)return 0;var d=0,f=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var N=s&134217727;return N!==0?(s=N&~f,s!==0?d=Ll(s):(b&=N,b!==0?d=Ll(b):l||(l=N&~e,l!==0&&(d=Ll(l))))):(N=s&~f,N!==0?d=Ll(N):b!==0?d=Ll(b):l||(l=s&~e,l!==0&&(d=Ll(l)))),d===0?0:t!==0&&t!==d&&(t&f)===0&&(f=d&-d,l=t&-t,f>=l||f===32&&(l&4194048)!==0)?t:d}function Ji(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function a2(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 Hp(){var e=No;return No<<=1,(No&62914560)===0&&(No=4194304),e}function Ic(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function Ii(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function l2(e,t,l,s,d,f){var b=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var N=e.entanglements,M=e.expirationTimes,$=e.hiddenUpdates;for(l=b&~l;0<l;){var Z=31-en(l),J=1<<Z;N[Z]=0,M[Z]=-1;var Q=$[Z];if(Q!==null)for($[Z]=null,Z=0;Z<Q.length;Z++){var V=Q[Z];V!==null&&(V.lane&=-536870913)}l&=~J}s!==0&&Bp(e,s,0),f!==0&&d===0&&e.tag!==0&&(e.suspendedLanes|=f&~(b&~t))}function Bp(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var s=31-en(t);e.entangledLanes|=t,e.entanglements[s]=e.entanglements[s]|1073741824|l&261930}function $p(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var s=31-en(l),d=1<<s;d&t|e[s]&t&&(e[s]|=t),l&=~d}}function Qp(e,t){var l=t&-t;return l=(l&42)!==0?1:Wc(l),(l&(e.suspendedLanes|t))!==0?0:l}function Wc(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 ed(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Gp(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:T0(e.type))}function Yp(e,t){var l=I.p;try{return I.p=e,t()}finally{I.p=l}}var Va=Math.random().toString(36).slice(2),Rt="__reactFiber$"+Va,$t="__reactProps$"+Va,Sr="__reactContainer$"+Va,td="__reactEvents$"+Va,r2="__reactListeners$"+Va,i2="__reactHandles$"+Va,Vp="__reactResources$"+Va,Wi="__reactMarker$"+Va;function nd(e){delete e[Rt],delete e[$t],delete e[td],delete e[r2],delete e[i2]}function Er(e){var t=e[Rt];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Sr]||l[Rt]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=f0(e);e!==null;){if(l=e[Rt])return l;e=f0(e)}return t}e=l,l=e.parentNode}return null}function Nr(e){if(e=e[Rt]||e[Sr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function es(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Cr(e){var t=e[Vp];return t||(t=e[Vp]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Nt(e){e[Wi]=!0}var Kp=new Set,Xp={};function Ul(e,t){_r(e,t),_r(e+"Capture",t)}function _r(e,t){for(Xp[e]=t,e=0;e<t.length;e++)Kp.add(t[e])}var s2=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Fp={},Zp={};function o2(e){return Ga.call(Zp,e)?!0:Ga.call(Fp,e)?!1:s2.test(e)?Zp[e]=!0:(Fp[e]=!0,!1)}function _o(e,t,l){if(o2(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var s=t.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function To(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function fa(e,t,l,s){if(s===null)e.removeAttribute(l);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+s)}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pp(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function u2(e,t,l){var s=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,f=s.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return d.call(this)},set:function(b){l=""+b,f.call(this,b)}}),Object.defineProperty(e,t,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(b){l=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ad(e){if(!e._valueTracker){var t=Pp(e)?"checked":"value";e._valueTracker=u2(e,t,""+e[t])}}function Jp(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),s="";return e&&(s=Pp(e)?e.checked?"true":"false":e.value),e=s,e!==l?(t.setValue(e),!0):!1}function Ro(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 c2=/[\n"\\]/g;function mn(e){return e.replace(c2,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ld(e,t,l,s,d,f,b,N){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+hn(t)):e.value!==""+hn(t)&&(e.value=""+hn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?rd(e,b,hn(t)):l!=null?rd(e,b,hn(l)):s!=null&&e.removeAttribute("value"),d==null&&f!=null&&(e.defaultChecked=!!f),d!=null&&(e.checked=d&&typeof d!="function"&&typeof d!="symbol"),N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"?e.name=""+hn(N):e.removeAttribute("name")}function Ip(e,t,l,s,d,f,b,N){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||l!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){ad(e);return}l=l!=null?""+hn(l):"",t=t!=null?""+hn(t):l,N||t===e.value||(e.value=t),e.defaultValue=t}s=s??d,s=typeof s!="function"&&typeof s!="symbol"&&!!s,e.checked=N?e.checked:!!s,e.defaultChecked=!!s,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),ad(e)}function rd(e,t,l){t==="number"&&Ro(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Tr(e,t,l,s){if(e=e.options,t){t={};for(var d=0;d<l.length;d++)t["$"+l[d]]=!0;for(l=0;l<e.length;l++)d=t.hasOwnProperty("$"+e[l].value),e[l].selected!==d&&(e[l].selected=d),d&&s&&(e[l].defaultSelected=!0)}else{for(l=""+hn(l),t=null,d=0;d<e.length;d++){if(e[d].value===l){e[d].selected=!0,s&&(e[d].defaultSelected=!0);return}t!==null||e[d].disabled||(t=e[d])}t!==null&&(t.selected=!0)}}function Wp(e,t,l){if(t!=null&&(t=""+hn(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+hn(l):""}function ev(e,t,l,s){if(t==null){if(s!=null){if(l!=null)throw Error(i(92));if(re(s)){if(1<s.length)throw Error(i(93));s=s[0]}l=s}l==null&&(l=""),t=l}l=hn(t),e.defaultValue=l,s=e.textContent,s===l&&s!==""&&s!==null&&(e.value=s),ad(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 d2=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function tv(e,t,l){var s=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?s?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":s?e.setProperty(t,l):typeof l!="number"||l===0||d2.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function nv(e,t,l){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,l!=null){for(var s in l)!l.hasOwnProperty(s)||t!=null&&t.hasOwnProperty(s)||(s.indexOf("--")===0?e.setProperty(s,""):s==="float"?e.cssFloat="":e[s]="");for(var d in t)s=t[d],t.hasOwnProperty(d)&&l[d]!==s&&tv(e,d,s)}else for(var f in t)t.hasOwnProperty(f)&&tv(e,f,t[f])}function id(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 f2=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"]]),h2=/^[\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 Mo(e){return h2.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ha(){}var sd=null;function od(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Mr=null,kr=null;function av(e){var t=Nr(e);if(t&&(e=t.stateNode)){var l=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(ld(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+mn(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var s=l[t];if(s!==e&&s.form===e.form){var d=s[$t]||null;if(!d)throw Error(i(90));ld(s,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(t=0;t<l.length;t++)s=l[t],s.form===e.form&&Jp(s)}break e;case"textarea":Wp(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Tr(e,!!l.multiple,t,!1)}}}var ud=!1;function lv(e,t,l){if(ud)return e(t,l);ud=!0;try{var s=e(t);return s}finally{if(ud=!1,(Mr!==null||kr!==null)&&(gu(),Mr&&(t=Mr,e=kr,kr=Mr=null,av(t),e)))for(t=0;t<e.length;t++)av(e[t])}}function ts(e,t){var l=e.stateNode;if(l===null)return null;var s=l[$t]||null;if(s===null)return null;l=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(i(231,t,typeof l));return l}var ma=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cd=!1;if(ma)try{var ns={};Object.defineProperty(ns,"passive",{get:function(){cd=!0}}),window.addEventListener("test",ns,ns),window.removeEventListener("test",ns,ns)}catch{cd=!1}var Ka=null,dd=null,ko=null;function rv(){if(ko)return ko;var e,t=dd,l=t.length,s,d="value"in Ka?Ka.value:Ka.textContent,f=d.length;for(e=0;e<l&&t[e]===d[e];e++);var b=l-e;for(s=1;s<=b&&t[l-s]===d[f-s];s++);return ko=d.slice(e,1<s?1-s:void 0)}function Ao(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 Do(){return!0}function iv(){return!1}function Qt(e){function t(l,s,d,f,b){this._reactName=l,this._targetInst=d,this.type=s,this.nativeEvent=f,this.target=b,this.currentTarget=null;for(var N in e)e.hasOwnProperty(N)&&(l=e[N],this[N]=l?l(f):f[N]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Do:iv,this.isPropagationStopped=iv,this}return y(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Do)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Do)},persist:function(){},isPersistent:Do}),t}var ql={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Oo=Qt(ql),as=y({},ql,{view:0,detail:0}),m2=Qt(as),fd,hd,ls,zo=y({},as,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pd,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!==ls&&(ls&&e.type==="mousemove"?(fd=e.screenX-ls.screenX,hd=e.screenY-ls.screenY):hd=fd=0,ls=e),fd)},movementY:function(e){return"movementY"in e?e.movementY:hd}}),sv=Qt(zo),p2=y({},zo,{dataTransfer:0}),v2=Qt(p2),g2=y({},as,{relatedTarget:0}),md=Qt(g2),y2=y({},ql,{animationName:0,elapsedTime:0,pseudoElement:0}),x2=Qt(y2),b2=y({},ql,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),w2=Qt(b2),j2=y({},ql,{data:0}),ov=Qt(j2),S2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},E2={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"},N2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function C2(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=N2[e])?!!t[e]:!1}function pd(){return C2}var _2=y({},as,{key:function(e){if(e.key){var t=S2[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ao(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?E2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pd,charCode:function(e){return e.type==="keypress"?Ao(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ao(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),T2=Qt(_2),R2=y({},zo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uv=Qt(R2),M2=y({},as,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pd}),k2=Qt(M2),A2=y({},ql,{propertyName:0,elapsedTime:0,pseudoElement:0}),D2=Qt(A2),O2=y({},zo,{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}),z2=Qt(O2),L2=y({},ql,{newState:0,oldState:0}),U2=Qt(L2),q2=[9,13,27,32],vd=ma&&"CompositionEvent"in window,rs=null;ma&&"documentMode"in document&&(rs=document.documentMode);var H2=ma&&"TextEvent"in window&&!rs,cv=ma&&(!vd||rs&&8<rs&&11>=rs),dv=" ",fv=!1;function hv(e,t){switch(e){case"keyup":return q2.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mv(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ar=!1;function B2(e,t){switch(e){case"compositionend":return mv(t);case"keypress":return t.which!==32?null:(fv=!0,dv);case"textInput":return e=t.data,e===dv&&fv?null:e;default:return null}}function $2(e,t){if(Ar)return e==="compositionend"||!vd&&hv(e,t)?(e=rv(),ko=dd=Ka=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 cv&&t.locale!=="ko"?null:t.data;default:return null}}var Q2={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pv(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Q2[e.type]:t==="textarea"}function vv(e,t,l,s){Mr?kr?kr.push(s):kr=[s]:Mr=s,t=Eu(t,"onChange"),0<t.length&&(l=new Oo("onChange","change",null,l,s),e.push({event:l,listeners:t}))}var is=null,ss=null;function G2(e){Iy(e,0)}function Lo(e){var t=es(e);if(Jp(t))return e}function gv(e,t){if(e==="change")return t}var yv=!1;if(ma){var gd;if(ma){var yd="oninput"in document;if(!yd){var xv=document.createElement("div");xv.setAttribute("oninput","return;"),yd=typeof xv.oninput=="function"}gd=yd}else gd=!1;yv=gd&&(!document.documentMode||9<document.documentMode)}function bv(){is&&(is.detachEvent("onpropertychange",wv),ss=is=null)}function wv(e){if(e.propertyName==="value"&&Lo(ss)){var t=[];vv(t,ss,e,od(e)),lv(G2,t)}}function Y2(e,t,l){e==="focusin"?(bv(),is=t,ss=l,is.attachEvent("onpropertychange",wv)):e==="focusout"&&bv()}function V2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lo(ss)}function K2(e,t){if(e==="click")return Lo(t)}function X2(e,t){if(e==="input"||e==="change")return Lo(t)}function F2(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var tn=typeof Object.is=="function"?Object.is:F2;function os(e,t){if(tn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),s=Object.keys(t);if(l.length!==s.length)return!1;for(s=0;s<l.length;s++){var d=l[s];if(!Ga.call(t,d)||!tn(e[d],t[d]))return!1}return!0}function jv(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Sv(e,t){var l=jv(e);e=0;for(var s;l;){if(l.nodeType===3){if(s=e+l.textContent.length,e<=t&&s>=t)return{node:l,offset:t-e};e=s}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=jv(l)}}function Ev(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ev(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nv(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Ro(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=Ro(e.document)}return t}function xd(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 Z2=ma&&"documentMode"in document&&11>=document.documentMode,Dr=null,bd=null,us=null,wd=!1;function Cv(e,t,l){var s=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;wd||Dr==null||Dr!==Ro(s)||(s=Dr,"selectionStart"in s&&xd(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),us&&os(us,s)||(us=s,s=Eu(bd,"onSelect"),0<s.length&&(t=new Oo("onSelect","select",null,t,l),e.push({event:t,listeners:s}),t.target=Dr)))}function Hl(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var Or={animationend:Hl("Animation","AnimationEnd"),animationiteration:Hl("Animation","AnimationIteration"),animationstart:Hl("Animation","AnimationStart"),transitionrun:Hl("Transition","TransitionRun"),transitionstart:Hl("Transition","TransitionStart"),transitioncancel:Hl("Transition","TransitionCancel"),transitionend:Hl("Transition","TransitionEnd")},jd={},_v={};ma&&(_v=document.createElement("div").style,"AnimationEvent"in window||(delete Or.animationend.animation,delete Or.animationiteration.animation,delete Or.animationstart.animation),"TransitionEvent"in window||delete Or.transitionend.transition);function Bl(e){if(jd[e])return jd[e];if(!Or[e])return e;var t=Or[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in _v)return jd[e]=t[l];return e}var Tv=Bl("animationend"),Rv=Bl("animationiteration"),Mv=Bl("animationstart"),P2=Bl("transitionrun"),J2=Bl("transitionstart"),I2=Bl("transitioncancel"),kv=Bl("transitionend"),Av=new Map,Sd="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(" ");Sd.push("scrollEnd");function kn(e,t){Av.set(e,t),Ul(t,[e])}var Uo=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},pn=[],zr=0,Ed=0;function qo(){for(var e=zr,t=Ed=zr=0;t<e;){var l=pn[t];pn[t++]=null;var s=pn[t];pn[t++]=null;var d=pn[t];pn[t++]=null;var f=pn[t];if(pn[t++]=null,s!==null&&d!==null){var b=s.pending;b===null?d.next=d:(d.next=b.next,b.next=d),s.pending=d}f!==0&&Dv(l,d,f)}}function Ho(e,t,l,s){pn[zr++]=e,pn[zr++]=t,pn[zr++]=l,pn[zr++]=s,Ed|=s,e.lanes|=s,e=e.alternate,e!==null&&(e.lanes|=s)}function Nd(e,t,l,s){return Ho(e,t,l,s),Bo(e)}function $l(e,t){return Ho(e,null,null,t),Bo(e)}function Dv(e,t,l){e.lanes|=l;var s=e.alternate;s!==null&&(s.lanes|=l);for(var d=!1,f=e.return;f!==null;)f.childLanes|=l,s=f.alternate,s!==null&&(s.childLanes|=l),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(d=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,d&&t!==null&&(d=31-en(l),e=f.hiddenUpdates,s=e[d],s===null?e[d]=[t]:s.push(t),t.lane=l|536870912),f):null}function Bo(e){if(50<ks)throw ks=0,zf=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Lr={};function W2(e,t,l,s){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function nn(e,t,l,s){return new W2(e,t,l,s)}function Cd(e){return e=e.prototype,!(!e||!e.isReactComponent)}function pa(e,t){var l=e.alternate;return l===null?(l=nn(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function Ov(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function $o(e,t,l,s,d,f){var b=0;if(s=e,typeof e=="function")Cd(e)&&(b=1);else if(typeof e=="string")b=lN(e,l,le.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case G:return e=nn(31,l,t,d),e.elementType=G,e.lanes=f,e;case j:return Ql(l.children,d,f,t);case C:b=8,d|=24;break;case _:return e=nn(12,l,t,d|2),e.elementType=_,e.lanes=f,e;case L:return e=nn(13,l,t,d),e.elementType=L,e.lanes=f,e;case K:return e=nn(19,l,t,d),e.elementType=K,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case R:b=10;break e;case T:b=9;break e;case D:b=11;break e;case H:b=14;break e;case q:b=16,s=null;break e}b=29,l=Error(i(130,e===null?"null":typeof e,"")),s=null}return t=nn(b,l,t,d),t.elementType=e,t.type=s,t.lanes=f,t}function Ql(e,t,l,s){return e=nn(7,e,s,t),e.lanes=l,e}function _d(e,t,l){return e=nn(6,e,null,t),e.lanes=l,e}function zv(e){var t=nn(18,null,null,0);return t.stateNode=e,t}function Td(e,t,l){return t=nn(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Lv=new WeakMap;function vn(e,t){if(typeof e=="object"&&e!==null){var l=Lv.get(e);return l!==void 0?l:(t={value:e,source:t,stack:wo(t)},Lv.set(e,t),t)}return{value:e,source:t,stack:wo(t)}}var Ur=[],qr=0,Qo=null,cs=0,gn=[],yn=0,Xa=null,Vn=1,Kn="";function va(e,t){Ur[qr++]=cs,Ur[qr++]=Qo,Qo=e,cs=t}function Uv(e,t,l){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Xa,Xa=e;var s=Vn;e=Kn;var d=32-en(s)-1;s&=~(1<<d),l+=1;var f=32-en(t)+d;if(30<f){var b=d-d%5;f=(s&(1<<b)-1).toString(32),s>>=b,d-=b,Vn=1<<32-en(t)+d|l<<d|s,Kn=f+e}else Vn=1<<f|l<<d|s,Kn=e}function Rd(e){e.return!==null&&(va(e,1),Uv(e,1,0))}function Md(e){for(;e===Qo;)Qo=Ur[--qr],Ur[qr]=null,cs=Ur[--qr],Ur[qr]=null;for(;e===Xa;)Xa=gn[--yn],gn[yn]=null,Kn=gn[--yn],gn[yn]=null,Vn=gn[--yn],gn[yn]=null}function qv(e,t){gn[yn++]=Vn,gn[yn++]=Kn,gn[yn++]=Xa,Vn=t.id,Kn=t.overflow,Xa=e}var Mt=null,We=null,Ue=!1,Fa=null,xn=!1,kd=Error(i(519));function Za(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ds(vn(t,e)),kd}function Hv(e){var t=e.stateNode,l=e.type,s=e.memoizedProps;switch(t[Rt]=e,t[$t]=s,l){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(l=0;l<Ds.length;l++)Oe(Ds[l],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),Ip(t,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),ev(t,s.value,s.defaultValue,s.children)}l=s.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||s.suppressHydrationWarning===!0||n0(t.textContent,l)?(s.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),s.onScroll!=null&&Oe("scroll",t),s.onScrollEnd!=null&&Oe("scrollend",t),s.onClick!=null&&(t.onclick=ha),t=!0):t=!1,t||Za(e,!0)}function Bv(e){for(Mt=e.return;Mt;)switch(Mt.tag){case 5:case 31:case 13:xn=!1;return;case 27:case 3:xn=!0;return;default:Mt=Mt.return}}function Hr(e){if(e!==Mt)return!1;if(!Ue)return Bv(e),Ue=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Pf(e.type,e.memoizedProps)),l=!l),l&&We&&Za(e),Bv(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=d0(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));We=d0(e)}else t===27?(t=We,ul(e.type)?(e=th,th=null,We=e):We=t):We=Mt?wn(e.stateNode.nextSibling):null;return!0}function Gl(){We=Mt=null,Ue=!1}function Ad(){var e=Fa;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),Fa=null),e}function ds(e){Fa===null?Fa=[e]:Fa.push(e)}var Dd=k(null),Yl=null,ga=null;function Pa(e,t,l){ee(Dd,t._currentValue),t._currentValue=l}function ya(e){e._currentValue=Dd.current,F(Dd)}function Od(e,t,l){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===l)break;e=e.return}}function zd(e,t,l,s){var d=e.child;for(d!==null&&(d.return=e);d!==null;){var f=d.dependencies;if(f!==null){var b=d.child;f=f.firstContext;e:for(;f!==null;){var N=f;f=d;for(var M=0;M<t.length;M++)if(N.context===t[M]){f.lanes|=l,N=f.alternate,N!==null&&(N.lanes|=l),Od(f.return,l,e),s||(b=null);break e}f=N.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(i(341));b.lanes|=l,f=b.alternate,f!==null&&(f.lanes|=l),Od(b,l,e),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===e){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function Br(e,t,l,s){e=null;for(var d=t,f=!1;d!==null;){if(!f){if((d.flags&524288)!==0)f=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var N=d.type;tn(d.pendingProps.value,b.value)||(e!==null?e.push(N):e=[N])}}else if(d===ne.current){if(b=d.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(e!==null?e.push(qs):e=[qs])}d=d.return}e!==null&&zd(t,e,l,s),t.flags|=262144}function Go(e){for(e=e.firstContext;e!==null;){if(!tn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Vl(e){Yl=e,ga=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function kt(e){return $v(Yl,e)}function Yo(e,t){return Yl===null&&Vl(e),$v(e,t)}function $v(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},ga===null){if(e===null)throw Error(i(308));ga=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ga=ga.next=t;return l}var eE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,s){e.push(s)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},tE=n.unstable_scheduleCallback,nE=n.unstable_NormalPriority,ht={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ld(){return{controller:new eE,data:new Map,refCount:0}}function fs(e){e.refCount--,e.refCount===0&&tE(nE,function(){e.controller.abort()})}var hs=null,Ud=0,$r=0,Qr=null;function aE(e,t){if(hs===null){var l=hs=[];Ud=0,$r=$f(),Qr={status:"pending",value:void 0,then:function(s){l.push(s)}}}return Ud++,t.then(Qv,Qv),t}function Qv(){if(--Ud===0&&hs!==null){Qr!==null&&(Qr.status="fulfilled");var e=hs;hs=null,$r=0,Qr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function lE(e,t){var l=[],s={status:"pending",value:null,reason:null,then:function(d){l.push(d)}};return e.then(function(){s.status="fulfilled",s.value=t;for(var d=0;d<l.length;d++)(0,l[d])(t)},function(d){for(s.status="rejected",s.reason=d,d=0;d<l.length;d++)(0,l[d])(void 0)}),s}var Gv=U.S;U.S=function(e,t){Cy=It(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&aE(e,t),Gv!==null&&Gv(e,t)};var Kl=k(null);function qd(){var e=Kl.current;return e!==null?e:Ie.pooledCache}function Vo(e,t){t===null?ee(Kl,Kl.current):ee(Kl,t.pool)}function Yv(){var e=qd();return e===null?null:{parent:ht._currentValue,pool:e}}var Gr=Error(i(460)),Hd=Error(i(474)),Ko=Error(i(542)),Xo={then:function(){}};function Vv(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kv(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(ha,ha),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fv(e),e;default:if(typeof t.status=="string")t.then(ha,ha);else{if(e=Ie,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(s){if(t.status==="pending"){var d=t;d.status="fulfilled",d.value=s}},function(s){if(t.status==="pending"){var d=t;d.status="rejected",d.reason=s}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Fv(e),e}throw Fl=t,Gr}}function Xl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Fl=l,Gr):l}}var Fl=null;function Xv(){if(Fl===null)throw Error(i(459));var e=Fl;return Fl=null,e}function Fv(e){if(e===Gr||e===Ko)throw Error(i(483))}var Yr=null,ms=0;function Fo(e){var t=ms;return ms+=1,Yr===null&&(Yr=[]),Kv(Yr,e,t)}function ps(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Zo(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Zv(e){function t(z,O){if(e){var B=z.deletions;B===null?(z.deletions=[O],z.flags|=16):B.push(O)}}function l(z,O){if(!e)return null;for(;O!==null;)t(z,O),O=O.sibling;return null}function s(z){for(var O=new Map;z!==null;)z.key!==null?O.set(z.key,z):O.set(z.index,z),z=z.sibling;return O}function d(z,O){return z=pa(z,O),z.index=0,z.sibling=null,z}function f(z,O,B){return z.index=B,e?(B=z.alternate,B!==null?(B=B.index,B<O?(z.flags|=67108866,O):B):(z.flags|=67108866,O)):(z.flags|=1048576,O)}function b(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function N(z,O,B,P){return O===null||O.tag!==6?(O=_d(B,z.mode,P),O.return=z,O):(O=d(O,B),O.return=z,O)}function M(z,O,B,P){var xe=B.type;return xe===j?Z(z,O,B.props.children,P,B.key):O!==null&&(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Xl(xe)===O.type)?(O=d(O,B.props),ps(O,B),O.return=z,O):(O=$o(B.type,B.key,B.props,null,z.mode,P),ps(O,B),O.return=z,O)}function $(z,O,B,P){return O===null||O.tag!==4||O.stateNode.containerInfo!==B.containerInfo||O.stateNode.implementation!==B.implementation?(O=Td(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=Ql(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=_d(""+O,z.mode,B),O.return=z,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case S:return B=$o(O.type,O.key,O.props,null,z.mode,B),ps(B,O),B.return=z,B;case E:return O=Td(O,z.mode,B),O.return=z,O;case q:return O=Xl(O),J(z,O,B)}if(re(O)||ce(O))return O=Ql(O,z.mode,B,null),O.return=z,O;if(typeof O.then=="function")return J(z,Fo(O),B);if(O.$$typeof===R)return J(z,Yo(z,O),B);Zo(z,O)}return null}function Q(z,O,B,P){var xe=O!==null?O.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return xe!==null?null:N(z,O,""+B,P);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return B.key===xe?M(z,O,B,P):null;case E:return B.key===xe?$(z,O,B,P):null;case q:return B=Xl(B),Q(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 Q(z,O,Fo(B),P);if(B.$$typeof===R)return Q(z,O,Yo(z,B),P);Zo(z,B)}return null}function V(z,O,B,P,xe){if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return z=z.get(B)||null,N(O,z,""+P,xe);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case S:return z=z.get(P.key===null?B:P.key)||null,M(O,z,P,xe);case E:return z=z.get(P.key===null?B:P.key)||null,$(O,z,P,xe);case q:return P=Xl(P),V(z,O,B,P,xe)}if(re(P)||ce(P))return z=z.get(B)||null,Z(O,z,P,xe,null);if(typeof P.then=="function")return V(z,O,B,Fo(P),xe);if(P.$$typeof===R)return V(z,O,B,Yo(O,P),xe);Zo(O,P)}return null}function fe(z,O,B,P){for(var xe=null,Be=null,ge=O,Te=O=0,Le=null;ge!==null&&Te<B.length;Te++){ge.index>Te?(Le=ge,ge=null):Le=ge.sibling;var $e=Q(z,ge,B[Te],P);if($e===null){ge===null&&(ge=Le);break}e&&ge&&$e.alternate===null&&t(z,ge),O=f($e,O,Te),Be===null?xe=$e:Be.sibling=$e,Be=$e,ge=Le}if(Te===B.length)return l(z,ge),Ue&&va(z,Te),xe;if(ge===null){for(;Te<B.length;Te++)ge=J(z,B[Te],P),ge!==null&&(O=f(ge,O,Te),Be===null?xe=ge:Be.sibling=ge,Be=ge);return Ue&&va(z,Te),xe}for(ge=s(ge);Te<B.length;Te++)Le=V(ge,z,Te,B[Te],P),Le!==null&&(e&&Le.alternate!==null&&ge.delete(Le.key===null?Te:Le.key),O=f(Le,O,Te),Be===null?xe=Le:Be.sibling=Le,Be=Le);return e&&ge.forEach(function(ml){return t(z,ml)}),Ue&&va(z,Te),xe}function je(z,O,B,P){if(B==null)throw Error(i(151));for(var xe=null,Be=null,ge=O,Te=O=0,Le=null,$e=B.next();ge!==null&&!$e.done;Te++,$e=B.next()){ge.index>Te?(Le=ge,ge=null):Le=ge.sibling;var ml=Q(z,ge,$e.value,P);if(ml===null){ge===null&&(ge=Le);break}e&&ge&&ml.alternate===null&&t(z,ge),O=f(ml,O,Te),Be===null?xe=ml:Be.sibling=ml,Be=ml,ge=Le}if($e.done)return l(z,ge),Ue&&va(z,Te),xe;if(ge===null){for(;!$e.done;Te++,$e=B.next())$e=J(z,$e.value,P),$e!==null&&(O=f($e,O,Te),Be===null?xe=$e:Be.sibling=$e,Be=$e);return Ue&&va(z,Te),xe}for(ge=s(ge);!$e.done;Te++,$e=B.next())$e=V(ge,z,Te,$e.value,P),$e!==null&&(e&&$e.alternate!==null&&ge.delete($e.key===null?Te:$e.key),O=f($e,O,Te),Be===null?xe=$e:Be.sibling=$e,Be=$e);return e&&ge.forEach(function(pN){return t(z,pN)}),Ue&&va(z,Te),xe}function Je(z,O,B,P){if(typeof B=="object"&&B!==null&&B.type===j&&B.key===null&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case S:e:{for(var xe=B.key;O!==null;){if(O.key===xe){if(xe=B.type,xe===j){if(O.tag===7){l(z,O.sibling),P=d(O,B.props.children),P.return=z,z=P;break e}}else if(O.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===q&&Xl(xe)===O.type){l(z,O.sibling),P=d(O,B.props),ps(P,B),P.return=z,z=P;break e}l(z,O);break}else t(z,O);O=O.sibling}B.type===j?(P=Ql(B.props.children,z.mode,P,B.key),P.return=z,z=P):(P=$o(B.type,B.key,B.props,null,z.mode,P),ps(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=Td(B,z.mode,P),P.return=z,z=P}return b(z);case q:return B=Xl(B),Je(z,O,B,P)}if(re(B))return fe(z,O,B,P);if(ce(B)){if(xe=ce(B),typeof xe!="function")throw Error(i(150));return B=xe.call(B),je(z,O,B,P)}if(typeof B.then=="function")return Je(z,O,Fo(B),P);if(B.$$typeof===R)return Je(z,O,Yo(z,B),P);Zo(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=_d(B,z.mode,P),P.return=z,z=P),b(z)):l(z,O)}return function(z,O,B,P){try{ms=0;var xe=Je(z,O,B,P);return Yr=null,xe}catch(ge){if(ge===Gr||ge===Ko)throw ge;var Be=nn(29,ge,null,z.mode);return Be.lanes=P,Be.return=z,Be}finally{}}}var Zl=Zv(!0),Pv=Zv(!1),Ja=!1;function Bd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function $d(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ia(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,l){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,(Qe&2)!==0){var d=s.pending;return d===null?t.next=t:(t.next=d.next,d.next=t),s.pending=t,t=Bo(e),Dv(e,null,l),t}return Ho(e,s,t,l),Bo(e)}function vs(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,$p(e,l)}}function Qd(e,t){var l=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,l===s)){var d=null,f=null;if(l=l.firstBaseUpdate,l!==null){do{var b={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};f===null?d=f=b:f=f.next=b,l=l.next}while(l!==null);f===null?d=f=t:f=f.next=t}else d=f=t;l={baseState:s.baseState,firstBaseUpdate:d,lastBaseUpdate:f,shared:s.shared,callbacks:s.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Gd=!1;function gs(){if(Gd){var e=Qr;if(e!==null)throw e}}function ys(e,t,l,s){Gd=!1;var d=e.updateQueue;Ja=!1;var f=d.firstBaseUpdate,b=d.lastBaseUpdate,N=d.shared.pending;if(N!==null){d.shared.pending=null;var M=N,$=M.next;M.next=null,b===null?f=$:b.next=$,b=M;var Z=e.alternate;Z!==null&&(Z=Z.updateQueue,N=Z.lastBaseUpdate,N!==b&&(N===null?Z.firstBaseUpdate=$:N.next=$,Z.lastBaseUpdate=M))}if(f!==null){var J=d.baseState;b=0,Z=$=M=null,N=f;do{var Q=N.lane&-536870913,V=Q!==N.lane;if(V?(ze&Q)===Q:(s&Q)===Q){Q!==0&&Q===$r&&(Gd=!0),Z!==null&&(Z=Z.next={lane:0,tag:N.tag,payload:N.payload,callback:null,next:null});e:{var fe=e,je=N;Q=t;var Je=l;switch(je.tag){case 1:if(fe=je.payload,typeof fe=="function"){J=fe.call(Je,J,Q);break e}J=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=je.payload,Q=typeof fe=="function"?fe.call(Je,J,Q):fe,Q==null)break e;J=y({},J,Q);break e;case 2:Ja=!0}}Q=N.callback,Q!==null&&(e.flags|=64,V&&(e.flags|=8192),V=d.callbacks,V===null?d.callbacks=[Q]:V.push(Q))}else V={lane:Q,tag:N.tag,payload:N.payload,callback:N.callback,next:null},Z===null?($=Z=V,M=J):Z=Z.next=V,b|=Q;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=$,d.lastBaseUpdate=Z,f===null&&(d.shared.lanes=0),ll|=b,e.lanes=b,e.memoizedState=J}}function Jv(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Iv(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Jv(l[e],t)}var Vr=k(null),Po=k(0);function Wv(e,t){e=_a,ee(Po,e),ee(Vr,t),_a=e|t.baseLanes}function Yd(){ee(Po,_a),ee(Vr,Vr.current)}function Vd(){_a=Po.current,F(Vr),F(Po)}var an=k(null),bn=null;function el(e){var t=e.alternate;ee(ct,ct.current&1),ee(an,e),bn===null&&(t===null||Vr.current!==null||t.memoizedState!==null)&&(bn=e)}function Kd(e){ee(ct,ct.current),ee(an,e),bn===null&&(bn=e)}function eg(e){e.tag===22?(ee(ct,ct.current),ee(an,e),bn===null&&(bn=e)):tl()}function tl(){ee(ct,ct.current),ee(an,an.current)}function ln(e){F(an),bn===e&&(bn=null),F(ct)}var ct=k(0);function Jo(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Wf(l)||eh(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var xa=0,_e=null,Ze=null,mt=null,Io=!1,Kr=!1,Pl=!1,Wo=0,xs=0,Xr=null,rE=0;function rt(){throw Error(i(321))}function Xd(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!tn(e[l],t[l]))return!1;return!0}function Fd(e,t,l,s,d,f){return xa=f,_e=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,U.H=e===null||e.memoizedState===null?Ug:cf,Pl=!1,f=l(s,d),Pl=!1,Kr&&(f=ng(t,l,s,d)),tg(e),f}function tg(e){U.H=js;var t=Ze!==null&&Ze.next!==null;if(xa=0,mt=Ze=_e=null,Io=!1,xs=0,Xr=null,t)throw Error(i(300));e===null||pt||(e=e.dependencies,e!==null&&Go(e)&&(pt=!0))}function ng(e,t,l,s){_e=e;var d=0;do{if(Kr&&(Xr=null),xs=0,Kr=!1,25<=d)throw Error(i(301));if(d+=1,mt=Ze=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}U.H=qg,f=t(l,s)}while(Kr);return f}function iE(){var e=U.H,t=e.useState()[0];return t=typeof t.then=="function"?bs(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(_e.flags|=1024),t}function Zd(){var e=Wo!==0;return Wo=0,e}function Pd(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Jd(e){if(Io){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Io=!1}xa=0,mt=Ze=_e=null,Kr=!1,xs=Wo=0,Xr=null}function Ut(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?_e.memoizedState=mt=e:mt=mt.next=e,mt}function dt(){if(Ze===null){var e=_e.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=mt===null?_e.memoizedState:mt.next;if(t!==null)mt=t,Ze=e;else{if(e===null)throw _e.alternate===null?Error(i(467)):Error(i(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},mt===null?_e.memoizedState=mt=e:mt=mt.next=e}return mt}function eu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bs(e){var t=xs;return xs+=1,Xr===null&&(Xr=[]),e=Kv(Xr,e,t),t=_e,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,U.H=t===null||t.memoizedState===null?Ug:cf),e}function tu(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return bs(e);if(e.$$typeof===R)return kt(e)}throw Error(i(438,String(e)))}function Id(e){var t=null,l=_e.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var s=_e.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(t={data:s.data.map(function(d){return d.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=eu(),_e.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),s=0;s<e;s++)l[s]=te;return t.index++,l}function ba(e,t){return typeof t=="function"?t(e):t}function nu(e){var t=dt();return Wd(t,Ze,e)}function Wd(e,t,l){var s=e.queue;if(s===null)throw Error(i(311));s.lastRenderedReducer=l;var d=e.baseQueue,f=s.pending;if(f!==null){if(d!==null){var b=d.next;d.next=f.next,f.next=b}t.baseQueue=d=f,s.pending=null}if(f=e.baseState,d===null)e.memoizedState=f;else{t=d.next;var N=b=null,M=null,$=t,Z=!1;do{var J=$.lane&-536870913;if(J!==$.lane?(ze&J)===J:(xa&J)===J){var Q=$.revertLane;if(Q===0)M!==null&&(M=M.next={lane:0,revertLane:0,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null}),J===$r&&(Z=!0);else if((xa&Q)===Q){$=$.next,Q===$r&&(Z=!0);continue}else J={lane:0,revertLane:$.revertLane,gesture:null,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(N=M=J,b=f):M=M.next=J,_e.lanes|=Q,ll|=Q;J=$.action,Pl&&l(f,J),f=$.hasEagerState?$.eagerState:l(f,J)}else Q={lane:J,revertLane:$.revertLane,gesture:$.gesture,action:$.action,hasEagerState:$.hasEagerState,eagerState:$.eagerState,next:null},M===null?(N=M=Q,b=f):M=M.next=Q,_e.lanes|=J,ll|=J;$=$.next}while($!==null&&$!==t);if(M===null?b=f:M.next=N,!tn(f,e.memoizedState)&&(pt=!0,Z&&(l=Qr,l!==null)))throw l;e.memoizedState=f,e.baseState=b,e.baseQueue=M,s.lastRenderedState=f}return d===null&&(s.lanes=0),[e.memoizedState,s.dispatch]}function ef(e){var t=dt(),l=t.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=e;var s=l.dispatch,d=l.pending,f=t.memoizedState;if(d!==null){l.pending=null;var b=d=d.next;do f=e(f,b.action),b=b.next;while(b!==d);tn(f,t.memoizedState)||(pt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),l.lastRenderedState=f}return[f,s]}function ag(e,t,l){var s=_e,d=dt(),f=Ue;if(f){if(l===void 0)throw Error(i(407));l=l()}else l=t();var b=!tn((Ze||d).memoizedState,l);if(b&&(d.memoizedState=l,pt=!0),d=d.queue,af(ig.bind(null,s,d,e),[e]),d.getSnapshot!==t||b||mt!==null&&mt.memoizedState.tag&1){if(s.flags|=2048,Fr(9,{destroy:void 0},rg.bind(null,s,d,l,t),null),Ie===null)throw Error(i(349));f||(xa&127)!==0||lg(s,t,l)}return l}function lg(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=_e.updateQueue,t===null?(t=eu(),_e.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function rg(e,t,l,s){t.value=l,t.getSnapshot=s,sg(t)&&og(e)}function ig(e,t,l){return l(function(){sg(t)&&og(e)})}function sg(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!tn(e,l)}catch{return!0}}function og(e){var t=$l(e,2);t!==null&&Xt(t,e,2)}function tf(e){var t=Ut();if(typeof e=="function"){var l=e;if(e=l(),Pl){Ya(!0);try{l()}finally{Ya(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:e},t}function ug(e,t,l,s){return e.baseState=l,Wd(e,Ze,typeof s=="function"?s:ba)}function sE(e,t,l,s,d){if(ru(e))throw Error(i(485));if(e=t.action,e!==null){var f={payload:d,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){f.listeners.push(b)}};U.T!==null?l(!0):f.isTransition=!1,s(f),l=t.pending,l===null?(f.next=t.pending=f,cg(t,f)):(f.next=l.next,t.pending=l.next=f)}}function cg(e,t){var l=t.action,s=t.payload,d=e.state;if(t.isTransition){var f=U.T,b={};U.T=b;try{var N=l(d,s),M=U.S;M!==null&&M(b,N),dg(e,t,N)}catch($){nf(e,t,$)}finally{f!==null&&b.types!==null&&(f.types=b.types),U.T=f}}else try{f=l(d,s),dg(e,t,f)}catch($){nf(e,t,$)}}function dg(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(s){fg(e,t,s)},function(s){return nf(e,t,s)}):fg(e,t,l)}function fg(e,t,l){t.status="fulfilled",t.value=l,hg(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,cg(e,l)))}function nf(e,t,l){var s=e.pending;if(e.pending=null,s!==null){s=s.next;do t.status="rejected",t.reason=l,hg(t),t=t.next;while(t!==s)}e.action=null}function hg(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mg(e,t){return t}function pg(e,t){if(Ue){var l=Ie.formState;if(l!==null){e:{var s=_e;if(Ue){if(We){t:{for(var d=We,f=xn;d.nodeType!==8;){if(!f){d=null;break t}if(d=wn(d.nextSibling),d===null){d=null;break t}}f=d.data,d=f==="F!"||f==="F"?d:null}if(d){We=wn(d.nextSibling),s=d.data==="F!";break e}}Za(s)}s=!1}s&&(t=l[0])}}return l=Ut(),l.memoizedState=l.baseState=t,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mg,lastRenderedState:t},l.queue=s,l=Og.bind(null,_e,s),s.dispatch=l,s=tf(!1),f=uf.bind(null,_e,!1,s.queue),s=Ut(),d={state:t,dispatch:null,action:e,pending:null},s.queue=d,l=sE.bind(null,_e,d,f,l),d.dispatch=l,s.memoizedState=e,[t,l,!1]}function vg(e){var t=dt();return gg(t,Ze,e)}function gg(e,t,l){if(t=Wd(e,t,mg)[0],e=nu(ba)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var s=bs(t)}catch(b){throw b===Gr?Ko:b}else s=t;t=dt();var d=t.queue,f=d.dispatch;return l!==t.memoizedState&&(_e.flags|=2048,Fr(9,{destroy:void 0},oE.bind(null,d,l),null)),[s,f,e]}function oE(e,t){e.action=t}function yg(e){var t=dt(),l=Ze;if(l!==null)return gg(t,l,e);dt(),t=t.memoizedState,l=dt();var s=l.queue.dispatch;return l.memoizedState=e,[t,s,!1]}function Fr(e,t,l,s){return e={tag:e,create:l,deps:s,inst:t,next:null},t=_e.updateQueue,t===null&&(t=eu(),_e.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(s=l.next,l.next=e,e.next=s,t.lastEffect=e),e}function xg(){return dt().memoizedState}function au(e,t,l,s){var d=Ut();_e.flags|=e,d.memoizedState=Fr(1|t,{destroy:void 0},l,s===void 0?null:s)}function lu(e,t,l,s){var d=dt();s=s===void 0?null:s;var f=d.memoizedState.inst;Ze!==null&&s!==null&&Xd(s,Ze.memoizedState.deps)?d.memoizedState=Fr(t,f,l,s):(_e.flags|=e,d.memoizedState=Fr(1|t,f,l,s))}function bg(e,t){au(8390656,8,e,t)}function af(e,t){lu(2048,8,e,t)}function uE(e){_e.flags|=4;var t=_e.updateQueue;if(t===null)t=eu(),_e.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function wg(e){var t=dt().memoizedState;return uE({ref:t,nextImpl:e}),function(){if((Qe&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function jg(e,t){return lu(4,2,e,t)}function Sg(e,t){return lu(4,4,e,t)}function Eg(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ng(e,t,l){l=l!=null?l.concat([e]):null,lu(4,4,Eg.bind(null,t,e),l)}function lf(){}function Cg(e,t){var l=dt();t=t===void 0?null:t;var s=l.memoizedState;return t!==null&&Xd(t,s[1])?s[0]:(l.memoizedState=[e,t],e)}function _g(e,t){var l=dt();t=t===void 0?null:t;var s=l.memoizedState;if(t!==null&&Xd(t,s[1]))return s[0];if(s=e(),Pl){Ya(!0);try{e()}finally{Ya(!1)}}return l.memoizedState=[s,t],s}function rf(e,t,l){return l===void 0||(xa&1073741824)!==0&&(ze&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Ty(),_e.lanes|=e,ll|=e,l)}function Tg(e,t,l,s){return tn(l,t)?l:Vr.current!==null?(e=rf(e,l,s),tn(e,t)||(pt=!0),e):(xa&42)===0||(xa&1073741824)!==0&&(ze&261930)===0?(pt=!0,e.memoizedState=l):(e=Ty(),_e.lanes|=e,ll|=e,t)}function Rg(e,t,l,s,d){var f=I.p;I.p=f!==0&&8>f?f:8;var b=U.T,N={};U.T=N,uf(e,!1,t,l);try{var M=d(),$=U.S;if($!==null&&$(N,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var Z=lE(M,s);ws(e,t,Z,on(e))}else ws(e,t,s,on(e))}catch(J){ws(e,t,{then:function(){},status:"rejected",reason:J},on())}finally{I.p=f,b!==null&&N.types!==null&&(b.types=N.types),U.T=b}}function cE(){}function sf(e,t,l,s){if(e.tag!==5)throw Error(i(476));var d=Mg(e).queue;Rg(e,d,t,Y,l===null?cE:function(){return kg(e),l(s)})}function Mg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:Y},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ba,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kg(e){var t=Mg(e);t.next===null&&(t=e.alternate.memoizedState),ws(e,t.next.queue,{},on())}function of(){return kt(qs)}function Ag(){return dt().memoizedState}function Dg(){return dt().memoizedState}function dE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=on();e=Ia(l);var s=Wa(t,e,l);s!==null&&(Xt(s,t,l),vs(s,t,l)),t={cache:Ld()},e.payload=t;return}t=t.return}}function fE(e,t,l){var s=on();l={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ru(e)?zg(t,l):(l=Nd(e,t,l,s),l!==null&&(Xt(l,e,s),Lg(l,t,s)))}function Og(e,t,l){var s=on();ws(e,t,l,s)}function ws(e,t,l,s){var d={lane:s,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(ru(e))zg(t,d);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var b=t.lastRenderedState,N=f(b,l);if(d.hasEagerState=!0,d.eagerState=N,tn(N,b))return Ho(e,t,d,0),Ie===null&&qo(),!1}catch{}finally{}if(l=Nd(e,t,d,s),l!==null)return Xt(l,e,s),Lg(l,t,s),!0}return!1}function uf(e,t,l,s){if(s={lane:2,revertLane:$f(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},ru(e)){if(t)throw Error(i(479))}else t=Nd(e,l,s,2),t!==null&&Xt(t,e,2)}function ru(e){var t=e.alternate;return e===_e||t!==null&&t===_e}function zg(e,t){Kr=Io=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Lg(e,t,l){if((l&4194048)!==0){var s=t.lanes;s&=e.pendingLanes,l|=s,t.lanes=l,$p(e,l)}}var js={readContext:kt,use:tu,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};js.useEffectEvent=rt;var Ug={readContext:kt,use:tu,useCallback:function(e,t){return Ut().memoizedState=[e,t===void 0?null:t],e},useContext:kt,useEffect:bg,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,au(4194308,4,Eg.bind(null,t,e),l)},useLayoutEffect:function(e,t){return au(4194308,4,e,t)},useInsertionEffect:function(e,t){au(4,2,e,t)},useMemo:function(e,t){var l=Ut();t=t===void 0?null:t;var s=e();if(Pl){Ya(!0);try{e()}finally{Ya(!1)}}return l.memoizedState=[s,t],s},useReducer:function(e,t,l){var s=Ut();if(l!==void 0){var d=l(t);if(Pl){Ya(!0);try{l(t)}finally{Ya(!1)}}}else d=t;return s.memoizedState=s.baseState=d,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:d},s.queue=e,e=e.dispatch=fE.bind(null,_e,e),[s.memoizedState,e]},useRef:function(e){var t=Ut();return e={current:e},t.memoizedState=e},useState:function(e){e=tf(e);var t=e.queue,l=Og.bind(null,_e,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:lf,useDeferredValue:function(e,t){var l=Ut();return rf(l,e,t)},useTransition:function(){var e=tf(!1);return e=Rg.bind(null,_e,e.queue,!0,!1),Ut().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var s=_e,d=Ut();if(Ue){if(l===void 0)throw Error(i(407));l=l()}else{if(l=t(),Ie===null)throw Error(i(349));(ze&127)!==0||lg(s,t,l)}d.memoizedState=l;var f={value:l,getSnapshot:t};return d.queue=f,bg(ig.bind(null,s,f,e),[e]),s.flags|=2048,Fr(9,{destroy:void 0},rg.bind(null,s,f,l,t),null),l},useId:function(){var e=Ut(),t=Ie.identifierPrefix;if(Ue){var l=Kn,s=Vn;l=(s&~(1<<32-en(s)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Wo++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=rE++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:of,useFormState:pg,useActionState:pg,useOptimistic:function(e){var t=Ut();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=uf.bind(null,_e,!0,l),l.dispatch=t,[e,t]},useMemoCache:Id,useCacheRefresh:function(){return Ut().memoizedState=dE.bind(null,_e)},useEffectEvent:function(e){var t=Ut(),l={impl:e};return t.memoizedState=l,function(){if((Qe&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},cf={readContext:kt,use:tu,useCallback:Cg,useContext:kt,useEffect:af,useImperativeHandle:Ng,useInsertionEffect:jg,useLayoutEffect:Sg,useMemo:_g,useReducer:nu,useRef:xg,useState:function(){return nu(ba)},useDebugValue:lf,useDeferredValue:function(e,t){var l=dt();return Tg(l,Ze.memoizedState,e,t)},useTransition:function(){var e=nu(ba)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:bs(e),t]},useSyncExternalStore:ag,useId:Ag,useHostTransitionStatus:of,useFormState:vg,useActionState:vg,useOptimistic:function(e,t){var l=dt();return ug(l,Ze,e,t)},useMemoCache:Id,useCacheRefresh:Dg};cf.useEffectEvent=wg;var qg={readContext:kt,use:tu,useCallback:Cg,useContext:kt,useEffect:af,useImperativeHandle:Ng,useInsertionEffect:jg,useLayoutEffect:Sg,useMemo:_g,useReducer:ef,useRef:xg,useState:function(){return ef(ba)},useDebugValue:lf,useDeferredValue:function(e,t){var l=dt();return Ze===null?rf(l,e,t):Tg(l,Ze.memoizedState,e,t)},useTransition:function(){var e=ef(ba)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:bs(e),t]},useSyncExternalStore:ag,useId:Ag,useHostTransitionStatus:of,useFormState:yg,useActionState:yg,useOptimistic:function(e,t){var l=dt();return Ze!==null?ug(l,Ze,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Id,useCacheRefresh:Dg};qg.useEffectEvent=wg;function df(e,t,l,s){t=e.memoizedState,l=l(s,t),l=l==null?t:y({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ff={enqueueSetState:function(e,t,l){e=e._reactInternals;var s=on(),d=Ia(s);d.payload=t,l!=null&&(d.callback=l),t=Wa(e,d,s),t!==null&&(Xt(t,e,s),vs(t,e,s))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var s=on(),d=Ia(s);d.tag=1,d.payload=t,l!=null&&(d.callback=l),t=Wa(e,d,s),t!==null&&(Xt(t,e,s),vs(t,e,s))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=on(),s=Ia(l);s.tag=2,t!=null&&(s.callback=t),t=Wa(e,s,l),t!==null&&(Xt(t,e,l),vs(t,e,l))}};function Hg(e,t,l,s,d,f,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,f,b):t.prototype&&t.prototype.isPureReactComponent?!os(l,s)||!os(d,f):!0}function Bg(e,t,l,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,s),t.state!==e&&ff.enqueueReplaceState(t,t.state,null)}function Jl(e,t){var l=t;if("ref"in t){l={};for(var s in t)s!=="ref"&&(l[s]=t[s])}if(e=e.defaultProps){l===t&&(l=y({},l));for(var d in e)l[d]===void 0&&(l[d]=e[d])}return l}function $g(e){Uo(e)}function Qg(e){console.error(e)}function Gg(e){Uo(e)}function iu(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(s){setTimeout(function(){throw s})}}function Yg(e,t,l){try{var s=e.onCaughtError;s(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function hf(e,t,l){return l=Ia(l),l.tag=3,l.payload={element:null},l.callback=function(){iu(e,t)},l}function Vg(e){return e=Ia(e),e.tag=3,e}function Kg(e,t,l,s){var d=l.type.getDerivedStateFromError;if(typeof d=="function"){var f=s.value;e.payload=function(){return d(f)},e.callback=function(){Yg(t,l,s)}}var b=l.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Yg(t,l,s),typeof d!="function"&&(rl===null?rl=new Set([this]):rl.add(this));var N=s.stack;this.componentDidCatch(s.value,{componentStack:N!==null?N:""})})}function hE(e,t,l,s,d){if(l.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(t=l.alternate,t!==null&&Br(t,l,d,!0),l=an.current,l!==null){switch(l.tag){case 31:case 13:return bn===null?yu():l.alternate===null&&it===0&&(it=3),l.flags&=-257,l.flags|=65536,l.lanes=d,s===Xo?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([s]):t.add(s),qf(e,s,d)),!1;case 22:return l.flags|=65536,s===Xo?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([s])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([s]):l.add(s)),qf(e,s,d)),!1}throw Error(i(435,l.tag))}return qf(e,s,d),yu(),!1}if(Ue)return t=an.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=d,s!==kd&&(e=Error(i(422),{cause:s}),ds(vn(e,l)))):(s!==kd&&(t=Error(i(423),{cause:s}),ds(vn(t,l))),e=e.current.alternate,e.flags|=65536,d&=-d,e.lanes|=d,s=vn(s,l),d=hf(e.stateNode,s,d),Qd(e,d),it!==4&&(it=2)),!1;var f=Error(i(520),{cause:s});if(f=vn(f,l),Ms===null?Ms=[f]:Ms.push(f),it!==4&&(it=2),t===null)return!0;s=vn(s,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=d&-d,l.lanes|=e,e=hf(l.stateNode,s,e),Qd(l,e),!1;case 1:if(t=l.type,f=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(rl===null||!rl.has(f))))return l.flags|=65536,d&=-d,l.lanes|=d,d=Vg(d),Kg(d,e,l,s),Qd(l,d),!1}l=l.return}while(l!==null);return!1}var mf=Error(i(461)),pt=!1;function At(e,t,l,s){t.child=e===null?Pv(t,null,l,s):Zl(t,e.child,l,s)}function Xg(e,t,l,s,d){l=l.render;var f=t.ref;if("ref"in s){var b={};for(var N in s)N!=="ref"&&(b[N]=s[N])}else b=s;return Vl(t),s=Fd(e,t,l,b,f,d),N=Zd(),e!==null&&!pt?(Pd(e,t,d),wa(e,t,d)):(Ue&&N&&Rd(t),t.flags|=1,At(e,t,s,d),t.child)}function Fg(e,t,l,s,d){if(e===null){var f=l.type;return typeof f=="function"&&!Cd(f)&&f.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=f,Zg(e,t,f,s,d)):(e=$o(l.type,null,s,t,t.mode,d),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!jf(e,d)){var b=f.memoizedProps;if(l=l.compare,l=l!==null?l:os,l(b,s)&&e.ref===t.ref)return wa(e,t,d)}return t.flags|=1,e=pa(f,s),e.ref=t.ref,e.return=t,t.child=e}function Zg(e,t,l,s,d){if(e!==null){var f=e.memoizedProps;if(os(f,s)&&e.ref===t.ref)if(pt=!1,t.pendingProps=s=f,jf(e,d))(e.flags&131072)!==0&&(pt=!0);else return t.lanes=e.lanes,wa(e,t,d)}return pf(e,t,l,s,d)}function Pg(e,t,l,s){var d=s.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|l:l,e!==null){for(s=t.child=e.child,d=0;s!==null;)d=d|s.lanes|s.childLanes,s=s.sibling;s=d&~f}else s=0,t.child=null;return Jg(e,t,f,l,s)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vo(t,f!==null?f.cachePool:null),f!==null?Wv(t,f):Yd(),eg(t);else return s=t.lanes=536870912,Jg(e,t,f!==null?f.baseLanes|l:l,l,s)}else f!==null?(Vo(t,f.cachePool),Wv(t,f),tl(),t.memoizedState=null):(e!==null&&Vo(t,null),Yd(),tl());return At(e,t,d,l),t.child}function Ss(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jg(e,t,l,s,d){var f=qd();return f=f===null?null:{parent:ht._currentValue,pool:f},t.memoizedState={baseLanes:l,cachePool:f},e!==null&&Vo(t,null),Yd(),eg(t),e!==null&&Br(e,t,s,!0),t.childLanes=d,null}function su(e,t){return t=uu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ig(e,t,l){return Zl(t,e.child,null,l),e=su(t,t.pendingProps),e.flags|=2,ln(t),t.memoizedState=null,e}function mE(e,t,l){var s=t.pendingProps,d=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ue){if(s.mode==="hidden")return e=su(t,s),t.lanes=536870912,Ss(null,e);if(Kd(t),(e=We)?(e=c0(e,xn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=zv(e),l.return=t,t.child=l,Mt=t,We=null)):e=null,e===null)throw Za(t);return t.lanes=536870912,null}return su(t,s)}var f=e.memoizedState;if(f!==null){var b=f.dehydrated;if(Kd(t),d)if(t.flags&256)t.flags&=-257,t=Ig(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(pt||Br(e,t,l,!1),d=(l&e.childLanes)!==0,pt||d){if(s=Ie,s!==null&&(b=Qp(s,l),b!==0&&b!==f.retryLane))throw f.retryLane=b,$l(e,b),Xt(s,e,b),mf;yu(),t=Ig(e,t,l)}else e=f.treeContext,We=wn(b.nextSibling),Mt=t,Ue=!0,Fa=null,xn=!1,e!==null&&qv(t,e),t=su(t,s),t.flags|=4096;return t}return e=pa(e.child,{mode:s.mode,children:s.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ou(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 pf(e,t,l,s,d){return Vl(t),l=Fd(e,t,l,s,void 0,d),s=Zd(),e!==null&&!pt?(Pd(e,t,d),wa(e,t,d)):(Ue&&s&&Rd(t),t.flags|=1,At(e,t,l,d),t.child)}function Wg(e,t,l,s,d,f){return Vl(t),t.updateQueue=null,l=ng(t,s,l,d),tg(e),s=Zd(),e!==null&&!pt?(Pd(e,t,f),wa(e,t,f)):(Ue&&s&&Rd(t),t.flags|=1,At(e,t,l,f),t.child)}function ey(e,t,l,s,d){if(Vl(t),t.stateNode===null){var f=Lr,b=l.contextType;typeof b=="object"&&b!==null&&(f=kt(b)),f=new l(s,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=ff,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=s,f.state=t.memoizedState,f.refs={},Bd(t),b=l.contextType,f.context=typeof b=="object"&&b!==null?kt(b):Lr,f.state=t.memoizedState,b=l.getDerivedStateFromProps,typeof b=="function"&&(df(t,l,b,s),f.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(b=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),b!==f.state&&ff.enqueueReplaceState(f,f.state,null),ys(t,s,f,d),gs(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!0}else if(e===null){f=t.stateNode;var N=t.memoizedProps,M=Jl(l,N);f.props=M;var $=f.context,Z=l.contextType;b=Lr,typeof Z=="object"&&Z!==null&&(b=kt(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||$!==b)&&Bg(t,f,s,b),Ja=!1;var Q=t.memoizedState;f.state=Q,ys(t,s,f,d),gs(),$=t.memoizedState,N||Q!==$||Ja?(typeof J=="function"&&(df(t,l,J,s),$=t.memoizedState),(M=Ja||Hg(t,l,M,s,Q,$,b))?(Z||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=$),f.props=s,f.state=$,f.context=b,s=M):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{f=t.stateNode,$d(e,t),b=t.memoizedProps,Z=Jl(l,b),f.props=Z,J=t.pendingProps,Q=f.context,$=l.contextType,M=Lr,typeof $=="object"&&$!==null&&(M=kt($)),N=l.getDerivedStateFromProps,($=typeof N=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(b!==J||Q!==M)&&Bg(t,f,s,M),Ja=!1,Q=t.memoizedState,f.state=Q,ys(t,s,f,d),gs();var V=t.memoizedState;b!==J||Q!==V||Ja||e!==null&&e.dependencies!==null&&Go(e.dependencies)?(typeof N=="function"&&(df(t,l,N,s),V=t.memoizedState),(Z=Ja||Hg(t,l,Z,s,Q,V,M)||e!==null&&e.dependencies!==null&&Go(e.dependencies))?($||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(s,V,M),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(s,V,M)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=V),f.props=s,f.state=V,f.context=M,s=Z):(typeof f.componentDidUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),s=!1)}return f=s,ou(e,t),s=(t.flags&128)!==0,f||s?(f=t.stateNode,l=s&&typeof l.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&s?(t.child=Zl(t,e.child,null,d),t.child=Zl(t,null,l,d)):At(e,t,l,d),t.memoizedState=f.state,e=t.child):e=wa(e,t,d),e}function ty(e,t,l,s){return Gl(),t.flags|=256,At(e,t,l,s),t.child}var vf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function gf(e){return{baseLanes:e,cachePool:Yv()}}function yf(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=sn),e}function ny(e,t,l){var s=t.pendingProps,d=!1,f=(t.flags&128)!==0,b;if((b=f)||(b=e!==null&&e.memoizedState===null?!1:(ct.current&2)!==0),b&&(d=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ue){if(d?el(t):tl(),(e=We)?(e=c0(e,xn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Xa!==null?{id:Vn,overflow:Kn}:null,retryLane:536870912,hydrationErrors:null},l=zv(e),l.return=t,t.child=l,Mt=t,We=null)):e=null,e===null)throw Za(t);return eh(e)?t.lanes=32:t.lanes=536870912,null}var N=s.children;return s=s.fallback,d?(tl(),d=t.mode,N=uu({mode:"hidden",children:N},d),s=Ql(s,d,l,null),N.return=t,s.return=t,N.sibling=s,t.child=N,s=t.child,s.memoizedState=gf(l),s.childLanes=yf(e,b,l),t.memoizedState=vf,Ss(null,s)):(el(t),xf(t,N))}var M=e.memoizedState;if(M!==null&&(N=M.dehydrated,N!==null)){if(f)t.flags&256?(el(t),t.flags&=-257,t=bf(e,t,l)):t.memoizedState!==null?(tl(),t.child=e.child,t.flags|=128,t=null):(tl(),N=s.fallback,d=t.mode,s=uu({mode:"visible",children:s.children},d),N=Ql(N,d,l,null),N.flags|=2,s.return=t,N.return=t,s.sibling=N,t.child=s,Zl(t,e.child,null,l),s=t.child,s.memoizedState=gf(l),s.childLanes=yf(e,b,l),t.memoizedState=vf,t=Ss(null,s));else if(el(t),eh(N)){if(b=N.nextSibling&&N.nextSibling.dataset,b)var $=b.dgst;b=$,s=Error(i(419)),s.stack="",s.digest=b,ds({value:s,source:null,stack:null}),t=bf(e,t,l)}else if(pt||Br(e,t,l,!1),b=(l&e.childLanes)!==0,pt||b){if(b=Ie,b!==null&&(s=Qp(b,l),s!==0&&s!==M.retryLane))throw M.retryLane=s,$l(e,s),Xt(b,e,s),mf;Wf(N)||yu(),t=bf(e,t,l)}else Wf(N)?(t.flags|=192,t.child=e.child,t=null):(e=M.treeContext,We=wn(N.nextSibling),Mt=t,Ue=!0,Fa=null,xn=!1,e!==null&&qv(t,e),t=xf(t,s.children),t.flags|=4096);return t}return d?(tl(),N=s.fallback,d=t.mode,M=e.child,$=M.sibling,s=pa(M,{mode:"hidden",children:s.children}),s.subtreeFlags=M.subtreeFlags&65011712,$!==null?N=pa($,N):(N=Ql(N,d,l,null),N.flags|=2),N.return=t,s.return=t,s.sibling=N,t.child=s,Ss(null,s),s=t.child,N=e.child.memoizedState,N===null?N=gf(l):(d=N.cachePool,d!==null?(M=ht._currentValue,d=d.parent!==M?{parent:M,pool:M}:d):d=Yv(),N={baseLanes:N.baseLanes|l,cachePool:d}),s.memoizedState=N,s.childLanes=yf(e,b,l),t.memoizedState=vf,Ss(e.child,s)):(el(t),l=e.child,e=l.sibling,l=pa(l,{mode:"visible",children:s.children}),l.return=t,l.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=l,t.memoizedState=null,l)}function xf(e,t){return t=uu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function uu(e,t){return e=nn(22,e,null,t),e.lanes=0,e}function bf(e,t,l){return Zl(t,e.child,null,l),e=xf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ay(e,t,l){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Od(e.return,t,l)}function wf(e,t,l,s,d,f){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:l,tailMode:d,treeForkCount:f}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=s,b.tail=l,b.tailMode=d,b.treeForkCount=f)}function ly(e,t,l){var s=t.pendingProps,d=s.revealOrder,f=s.tail;s=s.children;var b=ct.current,N=(b&2)!==0;if(N?(b=b&1|2,t.flags|=128):b&=1,ee(ct,b),At(e,t,s,l),s=Ue?cs:0,!N&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ay(e,l,t);else if(e.tag===19)ay(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(d){case"forwards":for(l=t.child,d=null;l!==null;)e=l.alternate,e!==null&&Jo(e)===null&&(d=l),l=l.sibling;l=d,l===null?(d=t.child,t.child=null):(d=l.sibling,l.sibling=null),wf(t,!1,d,l,f,s);break;case"backwards":case"unstable_legacy-backwards":for(l=null,d=t.child,t.child=null;d!==null;){if(e=d.alternate,e!==null&&Jo(e)===null){t.child=d;break}e=d.sibling,d.sibling=l,l=d,d=e}wf(t,!0,l,null,f,s);break;case"together":wf(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function wa(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),ll|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Br(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,l=pa(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=pa(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function jf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Go(e)))}function pE(e,t,l){switch(t.tag){case 3:Ee(t,t.stateNode.containerInfo),Pa(t,ht,e.memoizedState.cache),Gl();break;case 27:case 5:Ne(t);break;case 4:Ee(t,t.stateNode.containerInfo);break;case 10:Pa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Kd(t),null;break;case 13:var s=t.memoizedState;if(s!==null)return s.dehydrated!==null?(el(t),t.flags|=128,null):(l&t.child.childLanes)!==0?ny(e,t,l):(el(t),e=wa(e,t,l),e!==null?e.sibling:null);el(t);break;case 19:var d=(e.flags&128)!==0;if(s=(l&t.childLanes)!==0,s||(Br(e,t,l,!1),s=(l&t.childLanes)!==0),d){if(s)return ly(e,t,l);t.flags|=128}if(d=t.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ee(ct,ct.current),s)break;return null;case 22:return t.lanes=0,Pg(e,t,l,t.pendingProps);case 24:Pa(t,ht,e.memoizedState.cache)}return wa(e,t,l)}function ry(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)pt=!0;else{if(!jf(e,l)&&(t.flags&128)===0)return pt=!1,pE(e,t,l);pt=(e.flags&131072)!==0}else pt=!1,Ue&&(t.flags&1048576)!==0&&Uv(t,cs,t.index);switch(t.lanes=0,t.tag){case 16:e:{var s=t.pendingProps;if(e=Xl(t.elementType),t.type=e,typeof e=="function")Cd(e)?(s=Jl(e,s),t.tag=1,t=ey(null,t,e,s,l)):(t.tag=0,t=pf(null,t,e,s,l));else{if(e!=null){var d=e.$$typeof;if(d===D){t.tag=11,t=Xg(null,t,e,s,l);break e}else if(d===H){t.tag=14,t=Fg(null,t,e,s,l);break e}}throw t=ie(e)||e,Error(i(306,t,""))}}return t;case 0:return pf(e,t,t.type,t.pendingProps,l);case 1:return s=t.type,d=Jl(s,t.pendingProps),ey(e,t,s,d,l);case 3:e:{if(Ee(t,t.stateNode.containerInfo),e===null)throw Error(i(387));s=t.pendingProps;var f=t.memoizedState;d=f.element,$d(e,t),ys(t,s,null,l);var b=t.memoizedState;if(s=b.cache,Pa(t,ht,s),s!==f.cache&&zd(t,[ht],l,!0),gs(),s=b.element,f.isDehydrated)if(f={element:s,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=ty(e,t,s,l);break e}else if(s!==d){d=vn(Error(i(424)),t),ds(d),t=ty(e,t,s,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(We=wn(e.firstChild),Mt=t,Ue=!0,Fa=null,xn=!0,l=Pv(t,null,s,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Gl(),s===d){t=wa(e,t,l);break e}At(e,t,s,l)}t=t.child}return t;case 26:return ou(e,t),e===null?(l=v0(t.type,null,t.pendingProps,null))?t.memoizedState=l:Ue||(l=t.type,e=t.pendingProps,s=Nu(Se.current).createElement(l),s[Rt]=t,s[$t]=e,Dt(s,l,e),Nt(s),t.stateNode=s):t.memoizedState=v0(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ne(t),e===null&&Ue&&(s=t.stateNode=h0(t.type,t.pendingProps,Se.current),Mt=t,xn=!0,d=We,ul(t.type)?(th=d,We=wn(s.firstChild)):We=d),At(e,t,t.pendingProps.children,l),ou(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ue&&((d=s=We)&&(s=VE(s,t.type,t.pendingProps,xn),s!==null?(t.stateNode=s,Mt=t,We=wn(s.firstChild),xn=!1,d=!0):d=!1),d||Za(t)),Ne(t),d=t.type,f=t.pendingProps,b=e!==null?e.memoizedProps:null,s=f.children,Pf(d,f)?s=null:b!==null&&Pf(d,b)&&(t.flags|=32),t.memoizedState!==null&&(d=Fd(e,t,iE,null,null,l),qs._currentValue=d),ou(e,t),At(e,t,s,l),t.child;case 6:return e===null&&Ue&&((e=l=We)&&(l=KE(l,t.pendingProps,xn),l!==null?(t.stateNode=l,Mt=t,We=null,e=!0):e=!1),e||Za(t)),null;case 13:return ny(e,t,l);case 4:return Ee(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Zl(t,null,s,l):At(e,t,s,l),t.child;case 11:return Xg(e,t,t.type,t.pendingProps,l);case 7:return At(e,t,t.pendingProps,l),t.child;case 8:return At(e,t,t.pendingProps.children,l),t.child;case 12:return At(e,t,t.pendingProps.children,l),t.child;case 10:return s=t.pendingProps,Pa(t,t.type,s.value),At(e,t,s.children,l),t.child;case 9:return d=t.type._context,s=t.pendingProps.children,Vl(t),d=kt(d),s=s(d),t.flags|=1,At(e,t,s,l),t.child;case 14:return Fg(e,t,t.type,t.pendingProps,l);case 15:return Zg(e,t,t.type,t.pendingProps,l);case 19:return ly(e,t,l);case 31:return mE(e,t,l);case 22:return Pg(e,t,l,t.pendingProps);case 24:return Vl(t),s=kt(ht),e===null?(d=qd(),d===null&&(d=Ie,f=Ld(),d.pooledCache=f,f.refCount++,f!==null&&(d.pooledCacheLanes|=l),d=f),t.memoizedState={parent:s,cache:d},Bd(t),Pa(t,ht,d)):((e.lanes&l)!==0&&($d(e,t),ys(t,null,null,l),gs()),d=e.memoizedState,f=t.memoizedState,d.parent!==s?(d={parent:s,cache:s},t.memoizedState=d,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=d),Pa(t,ht,s)):(s=f.cache,Pa(t,ht,s),s!==d.cache&&zd(t,[ht],l,!0))),At(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ja(e){e.flags|=4}function Sf(e,t,l,s,d){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(d&335544128)===d)if(e.stateNode.complete)e.flags|=8192;else if(Ay())e.flags|=8192;else throw Fl=Xo,Hd}else e.flags&=-16777217}function iy(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!w0(t))if(Ay())e.flags|=8192;else throw Fl=Xo,Hd}function cu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Hp():536870912,e.lanes|=t,Ir|=t)}function Es(e,t){if(!Ue)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var s=null;l!==null;)l.alternate!==null&&(s=l),l=l.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,s=0;if(t)for(var d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags&65011712,s|=d.flags&65011712,d.return=e,d=d.sibling;else for(d=e.child;d!==null;)l|=d.lanes|d.childLanes,s|=d.subtreeFlags,s|=d.flags,d.return=e,d=d.sibling;return e.subtreeFlags|=s,e.childLanes=l,t}function vE(e,t,l){var s=t.pendingProps;switch(Md(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return et(t),null;case 3:return l=t.stateNode,s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),ya(ht),ye(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(Hr(t)?ja(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Ad())),et(t),null;case 26:var d=t.type,f=t.memoizedState;return e===null?(ja(t),f!==null?(et(t),iy(t,f)):(et(t),Sf(t,d,null,s,l))):f?f!==e.memoizedState?(ja(t),et(t),iy(t,f)):(et(t),t.flags&=-16777217):(e=e.memoizedProps,e!==s&&ja(t),et(t),Sf(t,d,e,s,l)),null;case 27:if(He(t),l=Se.current,d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ja(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return et(t),null}e=le.current,Hr(t)?Hv(t):(e=h0(d,s,l),t.stateNode=e,ja(t))}return et(t),null;case 5:if(He(t),d=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==s&&ja(t);else{if(!s){if(t.stateNode===null)throw Error(i(166));return et(t),null}if(f=le.current,Hr(t))Hv(t);else{var b=Nu(Se.current);switch(f){case 1:f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;default:switch(d){case"svg":f=b.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":f=b.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":f=b.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof s.is=="string"?b.createElement("select",{is:s.is}):b.createElement("select"),s.multiple?f.multiple=!0:s.size&&(f.size=s.size);break;default:f=typeof s.is=="string"?b.createElement(d,{is:s.is}):b.createElement(d)}}f[Rt]=t,f[$t]=s;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)f.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=f;e:switch(Dt(f,d,s),d){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&ja(t)}}return et(t),Sf(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==s&&ja(t);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(e=Se.current,Hr(t)){if(e=t.stateNode,l=t.memoizedProps,s=null,d=Mt,d!==null)switch(d.tag){case 27:case 5:s=d.memoizedProps}e[Rt]=t,e=!!(e.nodeValue===l||s!==null&&s.suppressHydrationWarning===!0||n0(e.nodeValue,l)),e||Za(t,!0)}else e=Nu(e).createTextNode(s),e[Rt]=t,t.stateNode=e}return et(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(s=Hr(t),l!==null){if(e===null){if(!s)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[Rt]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),e=!1}else l=Ad(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(ln(t),t):(ln(t),null);if((t.flags&128)!==0)throw Error(i(558))}return et(t),null;case 13:if(s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(d=Hr(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[Rt]=t}else Gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;et(t),d=!1}else d=Ad(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=d),d=!0;if(!d)return t.flags&256?(ln(t),t):(ln(t),null)}return ln(t),(t.flags&128)!==0?(t.lanes=l,t):(l=s!==null,e=e!==null&&e.memoizedState!==null,l&&(s=t.child,d=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(d=s.alternate.memoizedState.cachePool.pool),f=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(f=s.memoizedState.cachePool.pool),f!==d&&(s.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),cu(t,t.updateQueue),et(t),null);case 4:return ye(),e===null&&Vf(t.stateNode.containerInfo),et(t),null;case 10:return ya(t.type),et(t),null;case 19:if(F(ct),s=t.memoizedState,s===null)return et(t),null;if(d=(t.flags&128)!==0,f=s.rendering,f===null)if(d)Es(s,!1);else{if(it!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=Jo(e),f!==null){for(t.flags|=128,Es(s,!1),e=f.updateQueue,t.updateQueue=e,cu(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)Ov(l,e),l=l.sibling;return ee(ct,ct.current&1|2),Ue&&va(t,s.treeForkCount),t.child}e=e.sibling}s.tail!==null&&It()>pu&&(t.flags|=128,d=!0,Es(s,!1),t.lanes=4194304)}else{if(!d)if(e=Jo(f),e!==null){if(t.flags|=128,d=!0,e=e.updateQueue,t.updateQueue=e,cu(t,e),Es(s,!0),s.tail===null&&s.tailMode==="hidden"&&!f.alternate&&!Ue)return et(t),null}else 2*It()-s.renderingStartTime>pu&&l!==536870912&&(t.flags|=128,d=!0,Es(s,!1),t.lanes=4194304);s.isBackwards?(f.sibling=t.child,t.child=f):(e=s.last,e!==null?e.sibling=f:t.child=f,s.last=f)}return s.tail!==null?(e=s.tail,s.rendering=e,s.tail=e.sibling,s.renderingStartTime=It(),e.sibling=null,l=ct.current,ee(ct,d?l&1|2:l&1),Ue&&va(t,s.treeForkCount),e):(et(t),null);case 22:case 23:return ln(t),Vd(),s=t.memoizedState!==null,e!==null?e.memoizedState!==null!==s&&(t.flags|=8192):s&&(t.flags|=8192),s?(l&536870912)!==0&&(t.flags&128)===0&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),l=t.updateQueue,l!==null&&cu(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),s=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),s!==l&&(t.flags|=2048),e!==null&&F(Kl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ya(ht),et(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function gE(e,t){switch(Md(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ya(ht),ye(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return He(t),null;case 31:if(t.memoizedState!==null){if(ln(t),t.alternate===null)throw Error(i(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ln(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return F(ct),null;case 4:return ye(),null;case 10:return ya(t.type),null;case 22:case 23:return ln(t),Vd(),e!==null&&F(Kl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ya(ht),null;case 25:return null;default:return null}}function sy(e,t){switch(Md(t),t.tag){case 3:ya(ht),ye();break;case 26:case 27:case 5:He(t);break;case 4:ye();break;case 31:t.memoizedState!==null&&ln(t);break;case 13:ln(t);break;case 19:F(ct);break;case 10:ya(t.type);break;case 22:case 23:ln(t),Vd(),e!==null&&F(Kl);break;case 24:ya(ht)}}function Ns(e,t){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var d=s.next;l=d;do{if((l.tag&e)===e){s=void 0;var f=l.create,b=l.inst;s=f(),b.destroy=s}l=l.next}while(l!==d)}}catch(N){Fe(t,t.return,N)}}function nl(e,t,l){try{var s=t.updateQueue,d=s!==null?s.lastEffect:null;if(d!==null){var f=d.next;s=f;do{if((s.tag&e)===e){var b=s.inst,N=b.destroy;if(N!==void 0){b.destroy=void 0,d=t;var M=l,$=N;try{$()}catch(Z){Fe(d,M,Z)}}}s=s.next}while(s!==f)}}catch(Z){Fe(t,t.return,Z)}}function oy(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Iv(t,l)}catch(s){Fe(e,e.return,s)}}}function uy(e,t,l){l.props=Jl(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(s){Fe(e,t,s)}}function Cs(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var s=e.stateNode;break;case 30:s=e.stateNode;break;default:s=e.stateNode}typeof l=="function"?e.refCleanup=l(s):l.current=s}}catch(d){Fe(e,t,d)}}function Xn(e,t){var l=e.ref,s=e.refCleanup;if(l!==null)if(typeof s=="function")try{s()}catch(d){Fe(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){Fe(e,t,d)}else l.current=null}function cy(e){var t=e.type,l=e.memoizedProps,s=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&s.focus();break e;case"img":l.src?s.src=l.src:l.srcSet&&(s.srcset=l.srcSet)}}catch(d){Fe(e,e.return,d)}}function Ef(e,t,l){try{var s=e.stateNode;HE(s,e.type,l,t),s[$t]=t}catch(d){Fe(e,e.return,d)}}function dy(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ul(e.type)||e.tag===4}function Nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dy(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&ul(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Cf(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=ha));else if(s!==4&&(s===27&&ul(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(Cf(e,t,l),e=e.sibling;e!==null;)Cf(e,t,l),e=e.sibling}function du(e,t,l){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(s!==4&&(s===27&&ul(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(du(e,t,l),e=e.sibling;e!==null;)du(e,t,l),e=e.sibling}function fy(e){var t=e.stateNode,l=e.memoizedProps;try{for(var s=e.type,d=t.attributes;d.length;)t.removeAttributeNode(d[0]);Dt(t,s,l),t[Rt]=e,t[$t]=l}catch(f){Fe(e,e.return,f)}}var Sa=!1,vt=!1,_f=!1,hy=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function yE(e,t){if(e=e.containerInfo,Ff=Au,e=Nv(e),xd(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var s=l.getSelection&&l.getSelection();if(s&&s.rangeCount!==0){l=s.anchorNode;var d=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{l.nodeType,f.nodeType}catch{l=null;break e}var b=0,N=-1,M=-1,$=0,Z=0,J=e,Q=null;t:for(;;){for(var V;J!==l||d!==0&&J.nodeType!==3||(N=b+d),J!==f||s!==0&&J.nodeType!==3||(M=b+s),J.nodeType===3&&(b+=J.nodeValue.length),(V=J.firstChild)!==null;)Q=J,J=V;for(;;){if(J===e)break t;if(Q===l&&++$===d&&(N=b),Q===f&&++Z===s&&(M=b),(V=J.nextSibling)!==null)break;J=Q,Q=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(Zf={focusedElem:e,selectionRange:l},Au=!1,Ct=t;Ct!==null;)if(t=Ct,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ct=e;else for(;Ct!==null;){switch(t=Ct,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)d=e[l],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,l=t,d=f.memoizedProps,f=f.memoizedState,s=l.stateNode;try{var fe=Jl(l.type,d);e=s.getSnapshotBeforeUpdate(fe,f),s.__reactInternalSnapshotBeforeUpdate=e}catch(je){Fe(l,l.return,je)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)If(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":If(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Ct=e;break}Ct=t.return}}function my(e,t,l){var s=l.flags;switch(l.tag){case 0:case 11:case 15:Na(e,l),s&4&&Ns(5,l);break;case 1:if(Na(e,l),s&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(b){Fe(l,l.return,b)}else{var d=Jl(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(d,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Fe(l,l.return,b)}}s&64&&oy(l),s&512&&Cs(l,l.return);break;case 3:if(Na(e,l),s&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{Iv(e,t)}catch(b){Fe(l,l.return,b)}}break;case 27:t===null&&s&4&&fy(l);case 26:case 5:Na(e,l),t===null&&s&4&&cy(l),s&512&&Cs(l,l.return);break;case 12:Na(e,l);break;case 31:Na(e,l),s&4&&gy(e,l);break;case 13:Na(e,l),s&4&&yy(e,l),s&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=_E.bind(null,l),XE(e,l))));break;case 22:if(s=l.memoizedState!==null||Sa,!s){t=t!==null&&t.memoizedState!==null||vt,d=Sa;var f=vt;Sa=s,(vt=t)&&!f?Ca(e,l,(l.subtreeFlags&8772)!==0):Na(e,l),Sa=d,vt=f}break;case 30:break;default:Na(e,l)}}function py(e){var t=e.alternate;t!==null&&(e.alternate=null,py(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&nd(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var tt=null,Gt=!1;function Ea(e,t,l){for(l=l.child;l!==null;)vy(e,t,l),l=l.sibling}function vy(e,t,l){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Pi,l)}catch{}switch(l.tag){case 26:vt||Xn(l,t),Ea(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:vt||Xn(l,t);var s=tt,d=Gt;ul(l.type)&&(tt=l.stateNode,Gt=!1),Ea(e,t,l),zs(l.stateNode),tt=s,Gt=d;break;case 5:vt||Xn(l,t);case 6:if(s=tt,d=Gt,tt=null,Ea(e,t,l),tt=s,Gt=d,tt!==null)if(Gt)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(l.stateNode)}catch(f){Fe(l,t,f)}else try{tt.removeChild(l.stateNode)}catch(f){Fe(l,t,f)}break;case 18:tt!==null&&(Gt?(e=tt,o0(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),ii(e)):o0(tt,l.stateNode));break;case 4:s=tt,d=Gt,tt=l.stateNode.containerInfo,Gt=!0,Ea(e,t,l),tt=s,Gt=d;break;case 0:case 11:case 14:case 15:nl(2,l,t),vt||nl(4,l,t),Ea(e,t,l);break;case 1:vt||(Xn(l,t),s=l.stateNode,typeof s.componentWillUnmount=="function"&&uy(l,t,s)),Ea(e,t,l);break;case 21:Ea(e,t,l);break;case 22:vt=(s=vt)||l.memoizedState!==null,Ea(e,t,l),vt=s;break;default:Ea(e,t,l)}}function gy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ii(e)}catch(l){Fe(t,t.return,l)}}}function yy(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ii(e)}catch(l){Fe(t,t.return,l)}}function xE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hy),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hy),t;default:throw Error(i(435,e.tag))}}function fu(e,t){var l=xE(e);t.forEach(function(s){if(!l.has(s)){l.add(s);var d=TE.bind(null,e,s);s.then(d,d)}})}function Yt(e,t){var l=t.deletions;if(l!==null)for(var s=0;s<l.length;s++){var d=l[s],f=e,b=t,N=b;e:for(;N!==null;){switch(N.tag){case 27:if(ul(N.type)){tt=N.stateNode,Gt=!1;break e}break;case 5:tt=N.stateNode,Gt=!1;break e;case 3:case 4:tt=N.stateNode.containerInfo,Gt=!0;break e}N=N.return}if(tt===null)throw Error(i(160));vy(f,b,d),tt=null,Gt=!1,f=d.alternate,f!==null&&(f.return=null),d.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xy(t,e),t=t.sibling}var An=null;function xy(e,t){var l=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),Vt(e),s&4&&(nl(3,e,e.return),Ns(3,e),nl(5,e,e.return));break;case 1:Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),s&64&&Sa&&(e=e.updateQueue,e!==null&&(s=e.callbacks,s!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?s:l.concat(s))));break;case 26:var d=An;if(Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),s&4){var f=l!==null?l.memoizedState:null;if(s=e.memoizedState,l===null)if(s===null)if(e.stateNode===null){e:{s=e.type,l=e.memoizedProps,d=d.ownerDocument||d;t:switch(s){case"title":f=d.getElementsByTagName("title")[0],(!f||f[Wi]||f[Rt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=d.createElement(s),d.head.insertBefore(f,d.querySelector("head > title"))),Dt(f,s,l),f[Rt]=e,Nt(f),s=f;break e;case"link":var b=x0("link","href",d).get(s+(l.href||""));if(b){for(var N=0;N<b.length;N++)if(f=b[N],f.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&f.getAttribute("rel")===(l.rel==null?null:l.rel)&&f.getAttribute("title")===(l.title==null?null:l.title)&&f.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){b.splice(N,1);break t}}f=d.createElement(s),Dt(f,s,l),d.head.appendChild(f);break;case"meta":if(b=x0("meta","content",d).get(s+(l.content||""))){for(N=0;N<b.length;N++)if(f=b[N],f.getAttribute("content")===(l.content==null?null:""+l.content)&&f.getAttribute("name")===(l.name==null?null:l.name)&&f.getAttribute("property")===(l.property==null?null:l.property)&&f.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&f.getAttribute("charset")===(l.charSet==null?null:l.charSet)){b.splice(N,1);break t}}f=d.createElement(s),Dt(f,s,l),d.head.appendChild(f);break;default:throw Error(i(468,s))}f[Rt]=e,Nt(f),s=f}e.stateNode=s}else b0(d,e.type,e.stateNode);else e.stateNode=y0(d,s,e.memoizedProps);else f!==s?(f===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):f.count--,s===null?b0(d,e.type,e.stateNode):y0(d,s,e.memoizedProps)):s===null&&e.stateNode!==null&&Ef(e,e.memoizedProps,l.memoizedProps)}break;case 27:Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),l!==null&&s&4&&Ef(e,e.memoizedProps,l.memoizedProps);break;case 5:if(Yt(t,e),Vt(e),s&512&&(vt||l===null||Xn(l,l.return)),e.flags&32){d=e.stateNode;try{Rr(d,"")}catch(fe){Fe(e,e.return,fe)}}s&4&&e.stateNode!=null&&(d=e.memoizedProps,Ef(e,d,l!==null?l.memoizedProps:d)),s&1024&&(_f=!0);break;case 6:if(Yt(t,e),Vt(e),s&4){if(e.stateNode===null)throw Error(i(162));s=e.memoizedProps,l=e.stateNode;try{l.nodeValue=s}catch(fe){Fe(e,e.return,fe)}}break;case 3:if(Tu=null,d=An,An=Cu(t.containerInfo),Yt(t,e),An=d,Vt(e),s&4&&l!==null&&l.memoizedState.isDehydrated)try{ii(t.containerInfo)}catch(fe){Fe(e,e.return,fe)}_f&&(_f=!1,by(e));break;case 4:s=An,An=Cu(e.stateNode.containerInfo),Yt(t,e),Vt(e),An=s;break;case 12:Yt(t,e),Vt(e);break;case 31:Yt(t,e),Vt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,fu(e,s)));break;case 13:Yt(t,e),Vt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(mu=It()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,fu(e,s)));break;case 22:d=e.memoizedState!==null;var M=l!==null&&l.memoizedState!==null,$=Sa,Z=vt;if(Sa=$||d,vt=Z||M,Yt(t,e),vt=Z,Sa=$,Vt(e),s&8192)e:for(t=e.stateNode,t._visibility=d?t._visibility&-2:t._visibility|1,d&&(l===null||M||Sa||vt||Il(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,Q=J!=null&&J.hasOwnProperty("display")?J.display:null;N.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(fe){Fe(M,M.return,fe)}}}else if(t.tag===6){if(l===null){M=t;try{M.stateNode.nodeValue=d?"":M.memoizedProps}catch(fe){Fe(M,M.return,fe)}}}else if(t.tag===18){if(l===null){M=t;try{var V=M.stateNode;d?u0(V,!0):u0(M.stateNode,!1)}catch(fe){Fe(M,M.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(l=s.retryQueue,l!==null&&(s.retryQueue=null,fu(e,l))));break;case 19:Yt(t,e),Vt(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,fu(e,s)));break;case 30:break;case 21:break;default:Yt(t,e),Vt(e)}}function Vt(e){var t=e.flags;if(t&2){try{for(var l,s=e.return;s!==null;){if(dy(s)){l=s;break}s=s.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var d=l.stateNode,f=Nf(e);du(e,f,d);break;case 5:var b=l.stateNode;l.flags&32&&(Rr(b,""),l.flags&=-33);var N=Nf(e);du(e,N,b);break;case 3:case 4:var M=l.stateNode.containerInfo,$=Nf(e);Cf(e,$,M);break;default:throw Error(i(161))}}catch(Z){Fe(e,e.return,Z)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function by(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;by(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Na(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)my(e,t.alternate,t),t=t.sibling}function Il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:nl(4,t,t.return),Il(t);break;case 1:Xn(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&uy(t,t.return,l),Il(t);break;case 27:zs(t.stateNode);case 26:case 5:Xn(t,t.return),Il(t);break;case 22:t.memoizedState===null&&Il(t);break;case 30:Il(t);break;default:Il(t)}e=e.sibling}}function Ca(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var s=t.alternate,d=e,f=t,b=f.flags;switch(f.tag){case 0:case 11:case 15:Ca(d,f,l),Ns(4,f);break;case 1:if(Ca(d,f,l),s=f,d=s.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch($){Fe(s,s.return,$)}if(s=f,d=s.updateQueue,d!==null){var N=s.stateNode;try{var M=d.shared.hiddenCallbacks;if(M!==null)for(d.shared.hiddenCallbacks=null,d=0;d<M.length;d++)Jv(M[d],N)}catch($){Fe(s,s.return,$)}}l&&b&64&&oy(f),Cs(f,f.return);break;case 27:fy(f);case 26:case 5:Ca(d,f,l),l&&s===null&&b&4&&cy(f),Cs(f,f.return);break;case 12:Ca(d,f,l);break;case 31:Ca(d,f,l),l&&b&4&&gy(d,f);break;case 13:Ca(d,f,l),l&&b&4&&yy(d,f);break;case 22:f.memoizedState===null&&Ca(d,f,l),Cs(f,f.return);break;case 30:break;default:Ca(d,f,l)}t=t.sibling}}function Tf(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&&fs(l))}function Rf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fs(e))}function Dn(e,t,l,s){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wy(e,t,l,s),t=t.sibling}function wy(e,t,l,s){var d=t.flags;switch(t.tag){case 0:case 11:case 15:Dn(e,t,l,s),d&2048&&Ns(9,t);break;case 1:Dn(e,t,l,s);break;case 3:Dn(e,t,l,s),d&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fs(e)));break;case 12:if(d&2048){Dn(e,t,l,s),e=t.stateNode;try{var f=t.memoizedProps,b=f.id,N=f.onPostCommit;typeof N=="function"&&N(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(M){Fe(t,t.return,M)}}else Dn(e,t,l,s);break;case 31:Dn(e,t,l,s);break;case 13:Dn(e,t,l,s);break;case 23:break;case 22:f=t.stateNode,b=t.alternate,t.memoizedState!==null?f._visibility&2?Dn(e,t,l,s):_s(e,t):f._visibility&2?Dn(e,t,l,s):(f._visibility|=2,Zr(e,t,l,s,(t.subtreeFlags&10256)!==0||!1)),d&2048&&Tf(b,t);break;case 24:Dn(e,t,l,s),d&2048&&Rf(t.alternate,t);break;default:Dn(e,t,l,s)}}function Zr(e,t,l,s,d){for(d=d&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,b=t,N=l,M=s,$=b.flags;switch(b.tag){case 0:case 11:case 15:Zr(f,b,N,M,d),Ns(8,b);break;case 23:break;case 22:var Z=b.stateNode;b.memoizedState!==null?Z._visibility&2?Zr(f,b,N,M,d):_s(f,b):(Z._visibility|=2,Zr(f,b,N,M,d)),d&&$&2048&&Tf(b.alternate,b);break;case 24:Zr(f,b,N,M,d),d&&$&2048&&Rf(b.alternate,b);break;default:Zr(f,b,N,M,d)}t=t.sibling}}function _s(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,s=t,d=s.flags;switch(s.tag){case 22:_s(l,s),d&2048&&Tf(s.alternate,s);break;case 24:_s(l,s),d&2048&&Rf(s.alternate,s);break;default:_s(l,s)}t=t.sibling}}var Ts=8192;function Pr(e,t,l){if(e.subtreeFlags&Ts)for(e=e.child;e!==null;)jy(e,t,l),e=e.sibling}function jy(e,t,l){switch(e.tag){case 26:Pr(e,t,l),e.flags&Ts&&e.memoizedState!==null&&rN(l,An,e.memoizedState,e.memoizedProps);break;case 5:Pr(e,t,l);break;case 3:case 4:var s=An;An=Cu(e.stateNode.containerInfo),Pr(e,t,l),An=s;break;case 22:e.memoizedState===null&&(s=e.alternate,s!==null&&s.memoizedState!==null?(s=Ts,Ts=16777216,Pr(e,t,l),Ts=s):Pr(e,t,l));break;default:Pr(e,t,l)}}function Sy(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Rs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Ct=s,Ny(s,e)}Sy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ey(e),e=e.sibling}function Ey(e){switch(e.tag){case 0:case 11:case 15:Rs(e),e.flags&2048&&nl(9,e,e.return);break;case 3:Rs(e);break;case 12:Rs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,hu(e)):Rs(e);break;default:Rs(e)}}function hu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var s=t[l];Ct=s,Ny(s,e)}Sy(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:nl(8,t,t.return),hu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,hu(t));break;default:hu(t)}e=e.sibling}}function Ny(e,t){for(;Ct!==null;){var l=Ct;switch(l.tag){case 0:case 11:case 15:nl(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var s=l.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:fs(l.memoizedState.cache)}if(s=l.child,s!==null)s.return=l,Ct=s;else e:for(l=e;Ct!==null;){s=Ct;var d=s.sibling,f=s.return;if(py(s),s===l){Ct=null;break e}if(d!==null){d.return=f,Ct=d;break e}Ct=f}}}var bE={getCacheForType:function(e){var t=kt(ht),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return kt(ht).controller.signal}},wE=typeof WeakMap=="function"?WeakMap:Map,Qe=0,Ie=null,De=null,ze=0,Xe=0,rn=null,al=!1,Jr=!1,Mf=!1,_a=0,it=0,ll=0,Wl=0,kf=0,sn=0,Ir=0,Ms=null,Kt=null,Af=!1,mu=0,Cy=0,pu=1/0,vu=null,rl=null,wt=0,il=null,Wr=null,Ta=0,Df=0,Of=null,_y=null,ks=0,zf=null;function on(){return(Qe&2)!==0&&ze!==0?ze&-ze:U.T!==null?$f():Gp()}function Ty(){if(sn===0)if((ze&536870912)===0||Ue){var e=Eo;Eo<<=1,(Eo&3932160)===0&&(Eo=262144),sn=e}else sn=536870912;return e=an.current,e!==null&&(e.flags|=32),sn}function Xt(e,t,l){(e===Ie&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(ei(e,0),sl(e,ze,sn,!1)),Ii(e,l),((Qe&2)===0||e!==Ie)&&(e===Ie&&((Qe&2)===0&&(Wl|=l),it===4&&sl(e,ze,sn,!1)),Fn(e))}function Ry(e,t,l){if((Qe&6)!==0)throw Error(i(327));var s=!l&&(t&127)===0&&(t&e.expiredLanes)===0||Ji(e,t),d=s?EE(e,t):Uf(e,t,!0),f=s;do{if(d===0){Jr&&!s&&sl(e,t,0,!1);break}else{if(l=e.current.alternate,f&&!jE(l)){d=Uf(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=Ms;var M=N.current.memoizedState.isDehydrated;if(M&&(ei(N,b).flags|=256),b=Uf(N,b,!1),b!==2){if(Mf&&!M){N.errorRecoveryDisabledLanes|=f,Wl|=f,d=4;break e}f=Kt,Kt=d,f!==null&&(Kt===null?Kt=f:Kt.push.apply(Kt,f))}d=b}if(f=!1,d!==2)continue}}if(d===1){ei(e,0),sl(e,t,0,!0);break}e:{switch(s=e,f=d,f){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:sl(s,t,sn,!al);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(d=mu+300-It(),10<d)){if(sl(s,t,sn,!al),Co(s,0,!0)!==0)break e;Ta=t,s.timeoutHandle=i0(My.bind(null,s,l,Kt,vu,Af,t,sn,Wl,Ir,al,f,"Throttled",-0,0),d);break e}My(s,l,Kt,vu,Af,t,sn,Wl,Ir,al,f,null,-0,0)}}break}while(!0);Fn(e)}function My(e,t,l,s,d,f,b,N,M,$,Z,J,Q,V){if(e.timeoutHandle=-1,J=t.subtreeFlags,J&8192||(J&16785408)===16785408){J={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ha},jy(t,f,J);var fe=(f&62914560)===f?mu-It():(f&4194048)===f?Cy-It():0;if(fe=iN(J,fe),fe!==null){Ta=f,e.cancelPendingCommit=fe(qy.bind(null,e,t,f,l,s,d,b,N,M,Z,J,null,Q,V)),sl(e,f,b,!$);return}}qy(e,t,f,l,s,d,b,N,M)}function jE(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var s=0;s<l.length;s++){var d=l[s],f=d.getSnapshot;d=d.value;try{if(!tn(f(),d))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function sl(e,t,l,s){t&=~kf,t&=~Wl,e.suspendedLanes|=t,e.pingedLanes&=~t,s&&(e.warmLanes|=t),s=e.expirationTimes;for(var d=t;0<d;){var f=31-en(d),b=1<<f;s[f]=-1,d&=~b}l!==0&&Bp(e,l,t)}function gu(){return(Qe&6)===0?(As(0),!1):!0}function Lf(){if(De!==null){if(Xe===0)var e=De.return;else e=De,ga=Yl=null,Jd(e),Yr=null,ms=0,e=De;for(;e!==null;)sy(e.alternate,e),e=e.return;De=null}}function ei(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,QE(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ta=0,Lf(),Ie=e,De=l=pa(e.current,null),ze=t,Xe=0,rn=null,al=!1,Jr=Ji(e,t),Mf=!1,Ir=sn=kf=Wl=ll=it=0,Kt=Ms=null,Af=!1,(t&8)!==0&&(t|=t&32);var s=e.entangledLanes;if(s!==0)for(e=e.entanglements,s&=t;0<s;){var d=31-en(s),f=1<<d;t|=e[d],s&=~f}return _a=t,qo(),l}function ky(e,t){_e=null,U.H=js,t===Gr||t===Ko?(t=Xv(),Xe=3):t===Hd?(t=Xv(),Xe=4):Xe=t===mf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,De===null&&(it=1,iu(e,vn(t,e.current)))}function Ay(){var e=an.current;return e===null?!0:(ze&4194048)===ze?bn===null:(ze&62914560)===ze||(ze&536870912)!==0?e===bn:!1}function Dy(){var e=U.H;return U.H=js,e===null?js:e}function Oy(){var e=U.A;return U.A=bE,e}function yu(){it=4,al||(ze&4194048)!==ze&&an.current!==null||(Jr=!0),(ll&134217727)===0&&(Wl&134217727)===0||Ie===null||sl(Ie,ze,sn,!1)}function Uf(e,t,l){var s=Qe;Qe|=2;var d=Dy(),f=Oy();(Ie!==e||ze!==t)&&(vu=null,ei(e,t)),t=!1;var b=it;e:do try{if(Xe!==0&&De!==null){var N=De,M=rn;switch(Xe){case 8:Lf(),b=6;break e;case 3:case 2:case 9:case 6:an.current===null&&(t=!0);var $=Xe;if(Xe=0,rn=null,ti(e,N,M,$),l&&Jr){b=0;break e}break;default:$=Xe,Xe=0,rn=null,ti(e,N,M,$)}}SE(),b=it;break}catch(Z){ky(e,Z)}while(!0);return t&&e.shellSuspendCounter++,ga=Yl=null,Qe=s,U.H=d,U.A=f,De===null&&(Ie=null,ze=0,qo()),b}function SE(){for(;De!==null;)zy(De)}function EE(e,t){var l=Qe;Qe|=2;var s=Dy(),d=Oy();Ie!==e||ze!==t?(vu=null,pu=It()+500,ei(e,t)):Jr=Ji(e,t);e:do try{if(Xe!==0&&De!==null){t=De;var f=rn;t:switch(Xe){case 1:Xe=0,rn=null,ti(e,t,f,1);break;case 2:case 9:if(Vv(f)){Xe=0,rn=null,Ly(t);break}t=function(){Xe!==2&&Xe!==9||Ie!==e||(Xe=7),Fn(e)},f.then(t,t);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:Vv(f)?(Xe=0,rn=null,Ly(t)):(Xe=0,rn=null,ti(e,t,f,7));break;case 5:var b=null;switch(De.tag){case 26:b=De.memoizedState;case 5:case 27:var N=De;if(b?w0(b):N.stateNode.complete){Xe=0,rn=null;var M=N.sibling;if(M!==null)De=M;else{var $=N.return;$!==null?(De=$,xu($)):De=null}break t}}Xe=0,rn=null,ti(e,t,f,5);break;case 6:Xe=0,rn=null,ti(e,t,f,6);break;case 8:Lf(),it=6;break e;default:throw Error(i(462))}}NE();break}catch(Z){ky(e,Z)}while(!0);return ga=Yl=null,U.H=s,U.A=d,Qe=l,De!==null?0:(Ie=null,ze=0,qo(),it)}function NE(){for(;De!==null&&!FS();)zy(De)}function zy(e){var t=ry(e.alternate,e,_a);e.memoizedProps=e.pendingProps,t===null?xu(e):De=t}function Ly(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=Wg(l,t,t.pendingProps,t.type,void 0,ze);break;case 11:t=Wg(l,t,t.pendingProps,t.type.render,t.ref,ze);break;case 5:Jd(t);default:sy(l,t),t=De=Ov(t,_a),t=ry(l,t,_a)}e.memoizedProps=e.pendingProps,t===null?xu(e):De=t}function ti(e,t,l,s){ga=Yl=null,Jd(t),Yr=null,ms=0;var d=t.return;try{if(hE(e,d,t,l,ze)){it=1,iu(e,vn(l,e.current)),De=null;return}}catch(f){if(d!==null)throw De=d,f;it=1,iu(e,vn(l,e.current)),De=null;return}t.flags&32768?(Ue||s===1?e=!0:Jr||(ze&536870912)!==0?e=!1:(al=e=!0,(s===2||s===9||s===3||s===6)&&(s=an.current,s!==null&&s.tag===13&&(s.flags|=16384))),Uy(t,e)):xu(t)}function xu(e){var t=e;do{if((t.flags&32768)!==0){Uy(t,al);return}e=t.return;var l=vE(t.alternate,t,_a);if(l!==null){De=l;return}if(t=t.sibling,t!==null){De=t;return}De=t=e}while(t!==null);it===0&&(it=5)}function Uy(e,t){do{var l=gE(e.alternate,e);if(l!==null){l.flags&=32767,De=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){De=e;return}De=e=l}while(e!==null);it=6,De=null}function qy(e,t,l,s,d,f,b,N,M){e.cancelPendingCommit=null;do bu();while(wt!==0);if((Qe&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(f=t.lanes|t.childLanes,f|=Ed,l2(e,l,f,b,N,M),e===Ie&&(De=Ie=null,ze=0),Wr=t,il=e,Ta=l,Df=f,Of=d,_y=s,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,RE(jo,function(){return Gy(),null})):(e.callbackNode=null,e.callbackPriority=0),s=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||s){s=U.T,U.T=null,d=I.p,I.p=2,b=Qe,Qe|=4;try{yE(e,t,l)}finally{Qe=b,I.p=d,U.T=s}}wt=1,Hy(),By(),$y()}}function Hy(){if(wt===1){wt=0;var e=il,t=Wr,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=U.T,U.T=null;var s=I.p;I.p=2;var d=Qe;Qe|=4;try{xy(t,e);var f=Zf,b=Nv(e.containerInfo),N=f.focusedElem,M=f.selectionRange;if(b!==N&&N&&N.ownerDocument&&Ev(N.ownerDocument.documentElement,N)){if(M!==null&&xd(N)){var $=M.start,Z=M.end;if(Z===void 0&&(Z=$),"selectionStart"in N)N.selectionStart=$,N.selectionEnd=Math.min(Z,N.value.length);else{var J=N.ownerDocument||document,Q=J&&J.defaultView||window;if(Q.getSelection){var V=Q.getSelection(),fe=N.textContent.length,je=Math.min(M.start,fe),Je=M.end===void 0?je:Math.min(M.end,fe);!V.extend&&je>Je&&(b=Je,Je=je,je=b);var z=Sv(N,je),O=Sv(N,Je);if(z&&O&&(V.rangeCount!==1||V.anchorNode!==z.node||V.anchorOffset!==z.offset||V.focusNode!==O.node||V.focusOffset!==O.offset)){var B=J.createRange();B.setStart(z.node,z.offset),V.removeAllRanges(),je>Je?(V.addRange(B),V.extend(O.node,O.offset)):(B.setEnd(O.node,O.offset),V.addRange(B))}}}}for(J=[],V=N;V=V.parentNode;)V.nodeType===1&&J.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof N.focus=="function"&&N.focus(),N=0;N<J.length;N++){var P=J[N];P.element.scrollLeft=P.left,P.element.scrollTop=P.top}}Au=!!Ff,Zf=Ff=null}finally{Qe=d,I.p=s,U.T=l}}e.current=t,wt=2}}function By(){if(wt===2){wt=0;var e=il,t=Wr,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=U.T,U.T=null;var s=I.p;I.p=2;var d=Qe;Qe|=4;try{my(e,t.alternate,t)}finally{Qe=d,I.p=s,U.T=l}}wt=3}}function $y(){if(wt===4||wt===3){wt=0,ZS();var e=il,t=Wr,l=Ta,s=_y;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?wt=5:(wt=0,Wr=il=null,Qy(e,e.pendingLanes));var d=e.pendingLanes;if(d===0&&(rl=null),ed(l),t=t.stateNode,Wt&&typeof Wt.onCommitFiberRoot=="function")try{Wt.onCommitFiberRoot(Pi,t,void 0,(t.current.flags&128)===128)}catch{}if(s!==null){t=U.T,d=I.p,I.p=2,U.T=null;try{for(var f=e.onRecoverableError,b=0;b<s.length;b++){var N=s[b];f(N.value,{componentStack:N.stack})}}finally{U.T=t,I.p=d}}(Ta&3)!==0&&bu(),Fn(e),d=e.pendingLanes,(l&261930)!==0&&(d&42)!==0?e===zf?ks++:(ks=0,zf=e):ks=0,As(0)}}function Qy(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fs(t)))}function bu(){return Hy(),By(),$y(),Gy()}function Gy(){if(wt!==5)return!1;var e=il,t=Df;Df=0;var l=ed(Ta),s=U.T,d=I.p;try{I.p=32>l?32:l,U.T=null,l=Of,Of=null;var f=il,b=Ta;if(wt=0,Wr=il=null,Ta=0,(Qe&6)!==0)throw Error(i(331));var N=Qe;if(Qe|=4,Ey(f.current),wy(f,f.current,b,l),Qe=N,As(0,!1),Wt&&typeof Wt.onPostCommitFiberRoot=="function")try{Wt.onPostCommitFiberRoot(Pi,f)}catch{}return!0}finally{I.p=d,U.T=s,Qy(e,t)}}function Yy(e,t,l){t=vn(l,t),t=hf(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Ii(e,2),Fn(e))}function Fe(e,t,l){if(e.tag===3)Yy(e,e,l);else for(;t!==null;){if(t.tag===3){Yy(t,e,l);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(rl===null||!rl.has(s))){e=vn(l,e),l=Vg(2),s=Wa(t,l,2),s!==null&&(Kg(l,s,t,e),Ii(s,2),Fn(s));break}}t=t.return}}function qf(e,t,l){var s=e.pingCache;if(s===null){s=e.pingCache=new wE;var d=new Set;s.set(t,d)}else d=s.get(t),d===void 0&&(d=new Set,s.set(t,d));d.has(l)||(Mf=!0,d.add(l),e=CE.bind(null,e,t,l),t.then(e,e))}function CE(e,t,l){var s=e.pingCache;s!==null&&s.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Ie===e&&(ze&l)===l&&(it===4||it===3&&(ze&62914560)===ze&&300>It()-mu?(Qe&2)===0&&ei(e,0):kf|=l,Ir===ze&&(Ir=0)),Fn(e)}function Vy(e,t){t===0&&(t=Hp()),e=$l(e,t),e!==null&&(Ii(e,t),Fn(e))}function _E(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),Vy(e,l)}function TE(e,t){var l=0;switch(e.tag){case 31:case 13:var s=e.stateNode,d=e.memoizedState;d!==null&&(l=d.retryLane);break;case 19:s=e.stateNode;break;case 22:s=e.stateNode._retryCache;break;default:throw Error(i(314))}s!==null&&s.delete(t),Vy(e,l)}function RE(e,t){return Pc(e,t)}var wu=null,ni=null,Hf=!1,ju=!1,Bf=!1,ol=0;function Fn(e){e!==ni&&e.next===null&&(ni===null?wu=ni=e:ni=ni.next=e),ju=!0,Hf||(Hf=!0,kE())}function As(e,t){if(!Bf&&ju){Bf=!0;do for(var l=!1,s=wu;s!==null;){if(e!==0){var d=s.pendingLanes;if(d===0)var f=0;else{var b=s.suspendedLanes,N=s.pingedLanes;f=(1<<31-en(42|e)+1)-1,f&=d&~(b&~N),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(l=!0,Zy(s,f))}else f=ze,f=Co(s,s===Ie?f:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(f&3)===0||Ji(s,f)||(l=!0,Zy(s,f));s=s.next}while(l);Bf=!1}}function ME(){Ky()}function Ky(){ju=Hf=!1;var e=0;ol!==0&&$E()&&(e=ol);for(var t=It(),l=null,s=wu;s!==null;){var d=s.next,f=Xy(s,t);f===0?(s.next=null,l===null?wu=d:l.next=d,d===null&&(ni=l)):(l=s,(e!==0||(f&3)!==0)&&(ju=!0)),s=d}wt!==0&&wt!==5||As(e),ol!==0&&(ol=0)}function Xy(e,t){for(var l=e.suspendedLanes,s=e.pingedLanes,d=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var b=31-en(f),N=1<<b,M=d[b];M===-1?((N&l)===0||(N&s)!==0)&&(d[b]=a2(N,t)):M<=t&&(e.expiredLanes|=N),f&=~N}if(t=Ie,l=ze,l=Co(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s=e.callbackNode,l===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return s!==null&&s!==null&&Jc(s),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||Ji(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(s!==null&&Jc(s),ed(l)){case 2:case 8:l=Up;break;case 32:l=jo;break;case 268435456:l=qp;break;default:l=jo}return s=Fy.bind(null,e),l=Pc(l,s),e.callbackPriority=t,e.callbackNode=l,t}return s!==null&&s!==null&&Jc(s),e.callbackPriority=2,e.callbackNode=null,2}function Fy(e,t){if(wt!==0&&wt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(bu()&&e.callbackNode!==l)return null;var s=ze;return s=Co(e,e===Ie?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),s===0?null:(Ry(e,s,t),Xy(e,It()),e.callbackNode!=null&&e.callbackNode===l?Fy.bind(null,e):null)}function Zy(e,t){if(bu())return null;Ry(e,t,!0)}function kE(){GE(function(){(Qe&6)!==0?Pc(Lp,ME):Ky()})}function $f(){if(ol===0){var e=$r;e===0&&(e=So,So<<=1,(So&261888)===0&&(So=256)),ol=e}return ol}function Py(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Mo(""+e)}function Jy(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function AE(e,t,l,s,d){if(t==="submit"&&l&&l.stateNode===d){var f=Py((d[$t]||null).action),b=s.submitter;b&&(t=(t=b[$t]||null)?Py(t.formAction):b.getAttribute("formAction"),t!==null&&(f=t,b=null));var N=new Oo("action","action",null,s,d);e.push({event:N,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(ol!==0){var M=b?Jy(d,b):new FormData(d);sf(l,{pending:!0,data:M,method:d.method,action:f},null,M)}}else typeof f=="function"&&(N.preventDefault(),M=b?Jy(d,b):new FormData(d),sf(l,{pending:!0,data:M,method:d.method,action:f},f,M))},currentTarget:d}]})}}for(var Qf=0;Qf<Sd.length;Qf++){var Gf=Sd[Qf],DE=Gf.toLowerCase(),OE=Gf[0].toUpperCase()+Gf.slice(1);kn(DE,"on"+OE)}kn(Tv,"onAnimationEnd"),kn(Rv,"onAnimationIteration"),kn(Mv,"onAnimationStart"),kn("dblclick","onDoubleClick"),kn("focusin","onFocus"),kn("focusout","onBlur"),kn(P2,"onTransitionRun"),kn(J2,"onTransitionStart"),kn(I2,"onTransitionCancel"),kn(kv,"onTransitionEnd"),_r("onMouseEnter",["mouseout","mouseover"]),_r("onMouseLeave",["mouseout","mouseover"]),_r("onPointerEnter",["pointerout","pointerover"]),_r("onPointerLeave",["pointerout","pointerover"]),Ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="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(" "),zE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ds));function Iy(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var s=e[l],d=s.event;s=s.listeners;e:{var f=void 0;if(t)for(var b=s.length-1;0<=b;b--){var N=s[b],M=N.instance,$=N.currentTarget;if(N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=$;try{f(d)}catch(Z){Uo(Z)}d.currentTarget=null,f=M}else for(b=0;b<s.length;b++){if(N=s[b],M=N.instance,$=N.currentTarget,N=N.listener,M!==f&&d.isPropagationStopped())break e;f=N,d.currentTarget=$;try{f(d)}catch(Z){Uo(Z)}d.currentTarget=null,f=M}}}}function Oe(e,t){var l=t[td];l===void 0&&(l=t[td]=new Set);var s=e+"__bubble";l.has(s)||(Wy(t,e,2,!1),l.add(s))}function Yf(e,t,l){var s=0;t&&(s|=4),Wy(l,e,s,t)}var Su="_reactListening"+Math.random().toString(36).slice(2);function Vf(e){if(!e[Su]){e[Su]=!0,Kp.forEach(function(l){l!=="selectionchange"&&(zE.has(l)||Yf(l,!1,e),Yf(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Su]||(t[Su]=!0,Yf("selectionchange",!1,t))}}function Wy(e,t,l,s){switch(T0(t)){case 2:var d=uN;break;case 8:d=cN;break;default:d=ih}l=d.bind(null,t,l,e),d=void 0,!cd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(d=!0),s?d!==void 0?e.addEventListener(t,l,{capture:!0,passive:d}):e.addEventListener(t,l,!0):d!==void 0?e.addEventListener(t,l,{passive:d}):e.addEventListener(t,l,!1)}function Kf(e,t,l,s,d){var f=s;if((t&1)===0&&(t&2)===0&&s!==null)e:for(;;){if(s===null)return;var b=s.tag;if(b===3||b===4){var N=s.stateNode.containerInfo;if(N===d)break;if(b===4)for(b=s.return;b!==null;){var M=b.tag;if((M===3||M===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;N!==null;){if(b=Er(N),b===null)return;if(M=b.tag,M===5||M===6||M===26||M===27){s=f=b;continue e}N=N.parentNode}}s=s.return}lv(function(){var $=f,Z=od(l),J=[];e:{var Q=Av.get(e);if(Q!==void 0){var V=Oo,fe=e;switch(e){case"keypress":if(Ao(l)===0)break e;case"keydown":case"keyup":V=T2;break;case"focusin":fe="focus",V=md;break;case"focusout":fe="blur",V=md;break;case"beforeblur":case"afterblur":V=md;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=sv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=v2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=k2;break;case Tv:case Rv:case Mv:V=x2;break;case kv:V=D2;break;case"scroll":case"scrollend":V=m2;break;case"wheel":V=z2;break;case"copy":case"cut":case"paste":V=w2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=uv;break;case"toggle":case"beforetoggle":V=U2}var je=(t&4)!==0,Je=!je&&(e==="scroll"||e==="scrollend"),z=je?Q!==null?Q+"Capture":null:Q;je=[];for(var O=$,B;O!==null;){var P=O;if(B=P.stateNode,P=P.tag,P!==5&&P!==26&&P!==27||B===null||z===null||(P=ts(O,z),P!=null&&je.push(Os(O,P,B))),Je)break;O=O.return}0<je.length&&(Q=new V(Q,fe,null,l,Z),J.push({event:Q,listeners:je}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",V=e==="mouseout"||e==="pointerout",Q&&l!==sd&&(fe=l.relatedTarget||l.fromElement)&&(Er(fe)||fe[Sr]))break e;if((V||Q)&&(Q=Z.window===Z?Z:(Q=Z.ownerDocument)?Q.defaultView||Q.parentWindow:window,V?(fe=l.relatedTarget||l.toElement,V=$,fe=fe?Er(fe):null,fe!==null&&(Je=c(fe),je=fe.tag,fe!==Je||je!==5&&je!==27&&je!==6)&&(fe=null)):(V=null,fe=$),V!==fe)){if(je=sv,P="onMouseLeave",z="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(je=uv,P="onPointerLeave",z="onPointerEnter",O="pointer"),Je=V==null?Q:es(V),B=fe==null?Q:es(fe),Q=new je(P,O+"leave",V,l,Z),Q.target=Je,Q.relatedTarget=B,P=null,Er(Z)===$&&(je=new je(z,O+"enter",fe,l,Z),je.target=B,je.relatedTarget=Je,P=je),Je=P,V&&fe)t:{for(je=LE,z=V,O=fe,B=0,P=z;P;P=je(P))B++;P=0;for(var xe=O;xe;xe=je(xe))P++;for(;0<B-P;)z=je(z),B--;for(;0<P-B;)O=je(O),P--;for(;B--;){if(z===O||O!==null&&z===O.alternate){je=z;break t}z=je(z),O=je(O)}je=null}else je=null;V!==null&&e0(J,Q,V,je,!1),fe!==null&&Je!==null&&e0(J,Je,fe,je,!0)}}e:{if(Q=$?es($):window,V=Q.nodeName&&Q.nodeName.toLowerCase(),V==="select"||V==="input"&&Q.type==="file")var Be=gv;else if(pv(Q))if(yv)Be=X2;else{Be=V2;var ge=Y2}else V=Q.nodeName,!V||V.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?$&&id($.elementType)&&(Be=gv):Be=K2;if(Be&&(Be=Be(e,$))){vv(J,Be,l,Z);break e}ge&&ge(e,Q,$),e==="focusout"&&$&&Q.type==="number"&&$.memoizedProps.value!=null&&rd(Q,"number",Q.value)}switch(ge=$?es($):window,e){case"focusin":(pv(ge)||ge.contentEditable==="true")&&(Dr=ge,bd=$,us=null);break;case"focusout":us=bd=Dr=null;break;case"mousedown":wd=!0;break;case"contextmenu":case"mouseup":case"dragend":wd=!1,Cv(J,l,Z);break;case"selectionchange":if(Z2)break;case"keydown":case"keyup":Cv(J,l,Z)}var Te;if(vd)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Ar?hv(e,l)&&(Le="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(Le="onCompositionStart");Le&&(cv&&l.locale!=="ko"&&(Ar||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Ar&&(Te=rv()):(Ka=Z,dd="value"in Ka?Ka.value:Ka.textContent,Ar=!0)),ge=Eu($,Le),0<ge.length&&(Le=new ov(Le,e,null,l,Z),J.push({event:Le,listeners:ge}),Te?Le.data=Te:(Te=mv(l),Te!==null&&(Le.data=Te)))),(Te=H2?B2(e,l):$2(e,l))&&(Le=Eu($,"onBeforeInput"),0<Le.length&&(ge=new ov("onBeforeInput","beforeinput",null,l,Z),J.push({event:ge,listeners:Le}),ge.data=Te)),AE(J,e,$,l,Z)}Iy(J,t)})}function Os(e,t,l){return{instance:e,listener:t,currentTarget:l}}function Eu(e,t){for(var l=t+"Capture",s=[];e!==null;){var d=e,f=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||f===null||(d=ts(e,l),d!=null&&s.unshift(Os(e,d,f)),d=ts(e,t),d!=null&&s.push(Os(e,d,f))),e.tag===3)return s;e=e.return}return[]}function LE(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function e0(e,t,l,s,d){for(var f=t._reactName,b=[];l!==null&&l!==s;){var N=l,M=N.alternate,$=N.stateNode;if(N=N.tag,M!==null&&M===s)break;N!==5&&N!==26&&N!==27||$===null||(M=$,d?($=ts(l,f),$!=null&&b.unshift(Os(l,$,M))):d||($=ts(l,f),$!=null&&b.push(Os(l,$,M)))),l=l.return}b.length!==0&&e.push({event:t,listeners:b})}var UE=/\r\n?/g,qE=/\u0000|\uFFFD/g;function t0(e){return(typeof e=="string"?e:""+e).replace(UE,`
|
|
49
|
-
`).replace(qE,"")}function n0(e,t){return t=t0(t),t0(e)===t}function Pe(e,t,l,s,d,f){switch(l){case"children":typeof s=="string"?t==="body"||t==="textarea"&&s===""||Rr(e,s):(typeof s=="number"||typeof s=="bigint")&&t!=="body"&&Rr(e,""+s);break;case"className":To(e,"class",s);break;case"tabIndex":To(e,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":To(e,l,s);break;case"style":nv(e,s,f);break;case"data":if(t!=="object"){To(e,"data",s);break}case"src":case"href":if(s===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Mo(""+s),e.setAttribute(l,s);break;case"action":case"formAction":if(typeof s=="function"){e.setAttribute(l,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(l==="formAction"?(t!=="input"&&Pe(e,t,"name",d.name,d,null),Pe(e,t,"formEncType",d.formEncType,d,null),Pe(e,t,"formMethod",d.formMethod,d,null),Pe(e,t,"formTarget",d.formTarget,d,null)):(Pe(e,t,"encType",d.encType,d,null),Pe(e,t,"method",d.method,d,null),Pe(e,t,"target",d.target,d,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){e.removeAttribute(l);break}s=Mo(""+s),e.setAttribute(l,s);break;case"onClick":s!=null&&(e.onclick=ha);break;case"onScroll":s!=null&&Oe("scroll",e);break;case"onScrollEnd":s!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"multiple":e.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":e.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){e.removeAttribute("xlink:href");break}l=Mo(""+s),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""+s):e.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":s&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":s===!0?e.setAttribute(l,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?e.setAttribute(l,s):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?e.setAttribute(l,s):e.removeAttribute(l);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?e.removeAttribute(l):e.setAttribute(l,s);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),_o(e,"popover",s);break;case"xlinkActuate":fa(e,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":fa(e,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":fa(e,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":fa(e,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":fa(e,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":fa(e,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":fa(e,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":fa(e,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":fa(e,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":_o(e,"is",s);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=f2.get(l)||l,_o(e,l,s))}}function Xf(e,t,l,s,d,f){switch(l){case"style":nv(e,s,f);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(i(61));if(l=s.__html,l!=null){if(d.children!=null)throw Error(i(60));e.innerHTML=l}}break;case"children":typeof s=="string"?Rr(e,s):(typeof s=="number"||typeof s=="bigint")&&Rr(e,""+s);break;case"onScroll":s!=null&&Oe("scroll",e);break;case"onScrollEnd":s!=null&&Oe("scrollend",e);break;case"onClick":s!=null&&(e.onclick=ha);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xp.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(d=l.endsWith("Capture"),t=l.slice(2,d?l.length-7:void 0),f=e[$t]||null,f=f!=null?f[l]:null,typeof f=="function"&&e.removeEventListener(t,f,d),typeof s=="function")){typeof f!="function"&&f!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,s,d);break e}l in e?e[l]=s:s===!0?e.setAttribute(l,""):_o(e,l,s)}}}function Dt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var s=!1,d=!1,f;for(f in l)if(l.hasOwnProperty(f)){var b=l[f];if(b!=null)switch(f){case"src":s=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,f,b,l,null)}}d&&Pe(e,t,"srcSet",l.srcSet,l,null),s&&Pe(e,t,"src",l.src,l,null);return;case"input":Oe("invalid",e);var N=f=b=d=null,M=null,$=null;for(s in l)if(l.hasOwnProperty(s)){var Z=l[s];if(Z!=null)switch(s){case"name":d=Z;break;case"type":b=Z;break;case"checked":M=Z;break;case"defaultChecked":$=Z;break;case"value":f=Z;break;case"defaultValue":N=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(i(137,t));break;default:Pe(e,t,s,Z,l,null)}}Ip(e,f,N,M,$,b,d,!1);return;case"select":Oe("invalid",e),s=b=f=null;for(d in l)if(l.hasOwnProperty(d)&&(N=l[d],N!=null))switch(d){case"value":f=N;break;case"defaultValue":b=N;break;case"multiple":s=N;default:Pe(e,t,d,N,l,null)}t=f,l=b,e.multiple=!!s,t!=null?Tr(e,!!s,t,!1):l!=null&&Tr(e,!!s,l,!0);return;case"textarea":Oe("invalid",e),f=d=s=null;for(b in l)if(l.hasOwnProperty(b)&&(N=l[b],N!=null))switch(b){case"value":s=N;break;case"defaultValue":d=N;break;case"children":f=N;break;case"dangerouslySetInnerHTML":if(N!=null)throw Error(i(91));break;default:Pe(e,t,b,N,l,null)}ev(e,s,d,f);return;case"option":for(M in l)if(l.hasOwnProperty(M)&&(s=l[M],s!=null))switch(M){case"selected":e.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Pe(e,t,M,s,l,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(s=0;s<Ds.length;s++)Oe(Ds[s],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for($ in l)if(l.hasOwnProperty($)&&(s=l[$],s!=null))switch($){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Pe(e,t,$,s,l,null)}return;default:if(id(t)){for(Z in l)l.hasOwnProperty(Z)&&(s=l[Z],s!==void 0&&Xf(e,t,Z,s,l,void 0));return}}for(N in l)l.hasOwnProperty(N)&&(s=l[N],s!=null&&Pe(e,t,N,s,l,null))}function HE(e,t,l,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,f=null,b=null,N=null,M=null,$=null,Z=null;for(V in l){var J=l[V];if(l.hasOwnProperty(V)&&J!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":M=J;default:s.hasOwnProperty(V)||Pe(e,t,V,null,s,J)}}for(var Q in s){var V=s[Q];if(J=l[Q],s.hasOwnProperty(Q)&&(V!=null||J!=null))switch(Q){case"type":f=V;break;case"name":d=V;break;case"checked":$=V;break;case"defaultChecked":Z=V;break;case"value":b=V;break;case"defaultValue":N=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(i(137,t));break;default:V!==J&&Pe(e,t,Q,V,s,J)}}ld(e,b,N,M,$,Z,f,d);return;case"select":V=b=N=Q=null;for(f in l)if(M=l[f],l.hasOwnProperty(f)&&M!=null)switch(f){case"value":break;case"multiple":V=M;default:s.hasOwnProperty(f)||Pe(e,t,f,null,s,M)}for(d in s)if(f=s[d],M=l[d],s.hasOwnProperty(d)&&(f!=null||M!=null))switch(d){case"value":Q=f;break;case"defaultValue":N=f;break;case"multiple":b=f;default:f!==M&&Pe(e,t,d,f,s,M)}t=N,l=b,s=V,Q!=null?Tr(e,!!l,Q,!1):!!s!=!!l&&(t!=null?Tr(e,!!l,t,!0):Tr(e,!!l,l?[]:"",!1));return;case"textarea":V=Q=null;for(N in l)if(d=l[N],l.hasOwnProperty(N)&&d!=null&&!s.hasOwnProperty(N))switch(N){case"value":break;case"children":break;default:Pe(e,t,N,null,s,d)}for(b in s)if(d=s[b],f=l[b],s.hasOwnProperty(b)&&(d!=null||f!=null))switch(b){case"value":Q=d;break;case"defaultValue":V=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(i(91));break;default:d!==f&&Pe(e,t,b,d,s,f)}Wp(e,Q,V);return;case"option":for(var fe in l)if(Q=l[fe],l.hasOwnProperty(fe)&&Q!=null&&!s.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Pe(e,t,fe,null,s,Q)}for(M in s)if(Q=s[M],V=l[M],s.hasOwnProperty(M)&&Q!==V&&(Q!=null||V!=null))switch(M){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:Pe(e,t,M,Q,s,V)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var je in l)Q=l[je],l.hasOwnProperty(je)&&Q!=null&&!s.hasOwnProperty(je)&&Pe(e,t,je,null,s,Q);for($ in s)if(Q=s[$],V=l[$],s.hasOwnProperty($)&&Q!==V&&(Q!=null||V!=null))switch($){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Pe(e,t,$,Q,s,V)}return;default:if(id(t)){for(var Je in l)Q=l[Je],l.hasOwnProperty(Je)&&Q!==void 0&&!s.hasOwnProperty(Je)&&Xf(e,t,Je,void 0,s,Q);for(Z in s)Q=s[Z],V=l[Z],!s.hasOwnProperty(Z)||Q===V||Q===void 0&&V===void 0||Xf(e,t,Z,Q,s,V);return}}for(var z in l)Q=l[z],l.hasOwnProperty(z)&&Q!=null&&!s.hasOwnProperty(z)&&Pe(e,t,z,null,s,Q);for(J in s)Q=s[J],V=l[J],!s.hasOwnProperty(J)||Q===V||Q==null&&V==null||Pe(e,t,J,Q,s,V)}function a0(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function BE(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),s=0;s<l.length;s++){var d=l[s],f=d.transferSize,b=d.initiatorType,N=d.duration;if(f&&N&&a0(b)){for(b=0,N=d.responseEnd,s+=1;s<l.length;s++){var M=l[s],$=M.startTime;if($>N)break;var Z=M.transferSize,J=M.initiatorType;Z&&a0(J)&&(M=M.responseEnd,b+=Z*(M<N?1:(N-$)/(M-$)))}if(--s,t+=8*(f+b)/(d.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Ff=null,Zf=null;function Nu(e){return e.nodeType===9?e:e.ownerDocument}function l0(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function r0(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Pf(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 Jf=null;function $E(){var e=window.event;return e&&e.type==="popstate"?e===Jf?!1:(Jf=e,!0):(Jf=null,!1)}var i0=typeof setTimeout=="function"?setTimeout:void 0,QE=typeof clearTimeout=="function"?clearTimeout:void 0,s0=typeof Promise=="function"?Promise:void 0,GE=typeof queueMicrotask=="function"?queueMicrotask:typeof s0<"u"?function(e){return s0.resolve(null).then(e).catch(YE)}:i0;function YE(e){setTimeout(function(){throw e})}function ul(e){return e==="head"}function o0(e,t){var l=t,s=0;do{var d=l.nextSibling;if(e.removeChild(l),d&&d.nodeType===8)if(l=d.data,l==="/$"||l==="/&"){if(s===0){e.removeChild(d),ii(t);return}s--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")s++;else if(l==="html")zs(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,zs(l);for(var f=l.firstChild;f;){var b=f.nextSibling,N=f.nodeName;f[Wi]||N==="SCRIPT"||N==="STYLE"||N==="LINK"&&f.rel.toLowerCase()==="stylesheet"||l.removeChild(f),f=b}}else l==="body"&&zs(e.ownerDocument.body);l=d}while(l);ii(t)}function u0(e,t){var l=e;e=0;do{var s=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),s&&s.nodeType===8)if(l=s.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=s}while(l)}function If(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":If(l),nd(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function VE(e,t,l,s){for(;e.nodeType===1;){var d=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!s&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(s){if(!e[Wi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==d.rel||e.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||e.getAttribute("title")!==(d.title==null?null:d.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(d.src==null?null:d.src)||e.getAttribute("type")!==(d.type==null?null:d.type)||e.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=d.name==null?null:""+d.name;if(d.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=wn(e.nextSibling),e===null)break}return null}function KE(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=wn(e.nextSibling),e===null))return null;return e}function c0(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=wn(e.nextSibling),e===null))return null;return e}function Wf(e){return e.data==="$?"||e.data==="$~"}function eh(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function XE(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var s=function(){t(),l.removeEventListener("DOMContentLoaded",s)};l.addEventListener("DOMContentLoaded",s),e._reactRetry=s}}function wn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var th=null;function d0(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return wn(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function f0(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function h0(e,t,l){switch(t=Nu(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 zs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);nd(e)}var jn=new Map,m0=new Set;function Cu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Ra=I.d;I.d={f:FE,r:ZE,D:PE,C:JE,L:IE,m:WE,X:tN,S:eN,M:nN};function FE(){var e=Ra.f(),t=gu();return e||t}function ZE(e){var t=Nr(e);t!==null&&t.tag===5&&t.type==="form"?kg(t):Ra.r(e)}var ai=typeof document>"u"?null:document;function p0(e,t,l){var s=ai;if(s&&typeof t=="string"&&t){var d=mn(t);d='link[rel="'+e+'"][href="'+d+'"]',typeof l=="string"&&(d+='[crossorigin="'+l+'"]'),m0.has(d)||(m0.add(d),e={rel:e,crossOrigin:l,href:t},s.querySelector(d)===null&&(t=s.createElement("link"),Dt(t,"link",e),Nt(t),s.head.appendChild(t)))}}function PE(e){Ra.D(e),p0("dns-prefetch",e,null)}function JE(e,t){Ra.C(e,t),p0("preconnect",e,t)}function IE(e,t,l){Ra.L(e,t,l);var s=ai;if(s&&e&&t){var d='link[rel="preload"][as="'+mn(t)+'"]';t==="image"&&l&&l.imageSrcSet?(d+='[imagesrcset="'+mn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(d+='[imagesizes="'+mn(l.imageSizes)+'"]')):d+='[href="'+mn(e)+'"]';var f=d;switch(t){case"style":f=li(e);break;case"script":f=ri(e)}jn.has(f)||(e=y({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),jn.set(f,e),s.querySelector(d)!==null||t==="style"&&s.querySelector(Ls(f))||t==="script"&&s.querySelector(Us(f))||(t=s.createElement("link"),Dt(t,"link",e),Nt(t),s.head.appendChild(t)))}}function WE(e,t){Ra.m(e,t);var l=ai;if(l&&e){var s=t&&typeof t.as=="string"?t.as:"script",d='link[rel="modulepreload"][as="'+mn(s)+'"][href="'+mn(e)+'"]',f=d;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=ri(e)}if(!jn.has(f)&&(e=y({rel:"modulepreload",href:e},t),jn.set(f,e),l.querySelector(d)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Us(f)))return}s=l.createElement("link"),Dt(s,"link",e),Nt(s),l.head.appendChild(s)}}}function eN(e,t,l){Ra.S(e,t,l);var s=ai;if(s&&e){var d=Cr(s).hoistableStyles,f=li(e);t=t||"default";var b=d.get(f);if(!b){var N={loading:0,preload:null};if(b=s.querySelector(Ls(f)))N.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},l),(l=jn.get(f))&&nh(e,l);var M=b=s.createElement("link");Nt(M),Dt(M,"link",e),M._p=new Promise(function($,Z){M.onload=$,M.onerror=Z}),M.addEventListener("load",function(){N.loading|=1}),M.addEventListener("error",function(){N.loading|=2}),N.loading|=4,_u(b,t,s)}b={type:"stylesheet",instance:b,count:1,state:N},d.set(f,b)}}}function tN(e,t){Ra.X(e,t);var l=ai;if(l&&e){var s=Cr(l).hoistableScripts,d=ri(e),f=s.get(d);f||(f=l.querySelector(Us(d)),f||(e=y({src:e,async:!0},t),(t=jn.get(d))&&ah(e,t),f=l.createElement("script"),Nt(f),Dt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(d,f))}}function nN(e,t){Ra.M(e,t);var l=ai;if(l&&e){var s=Cr(l).hoistableScripts,d=ri(e),f=s.get(d);f||(f=l.querySelector(Us(d)),f||(e=y({src:e,async:!0,type:"module"},t),(t=jn.get(d))&&ah(e,t),f=l.createElement("script"),Nt(f),Dt(f,"link",e),l.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},s.set(d,f))}}function v0(e,t,l,s){var d=(d=Se.current)?Cu(d):null;if(!d)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=li(l.href),l=Cr(d).hoistableStyles,s=l.get(t),s||(s={type:"style",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=li(l.href);var f=Cr(d).hoistableStyles,b=f.get(e);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,b),(f=d.querySelector(Ls(e)))&&!f._p&&(b.instance=f,b.state.loading=5),jn.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},jn.set(e,l),f||aN(d,e,l,b.state))),t&&s===null)throw Error(i(528,""));return b}if(t&&s!==null)throw Error(i(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ri(l),l=Cr(d).hoistableScripts,s=l.get(t),s||(s={type:"script",instance:null,count:0,state:null},l.set(t,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function li(e){return'href="'+mn(e)+'"'}function Ls(e){return'link[rel="stylesheet"]['+e+"]"}function g0(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function aN(e,t,l,s){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?s.loading=1:(t=e.createElement("link"),s.preload=t,t.addEventListener("load",function(){return s.loading|=1}),t.addEventListener("error",function(){return s.loading|=2}),Dt(t,"link",l),Nt(t),e.head.appendChild(t))}function ri(e){return'[src="'+mn(e)+'"]'}function Us(e){return"script[async]"+e}function y0(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var s=e.querySelector('style[data-href~="'+mn(l.href)+'"]');if(s)return t.instance=s,Nt(s),s;var d=y({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return s=(e.ownerDocument||e).createElement("style"),Nt(s),Dt(s,"style",d),_u(s,l.precedence,e),t.instance=s;case"stylesheet":d=li(l.href);var f=e.querySelector(Ls(d));if(f)return t.state.loading|=4,t.instance=f,Nt(f),f;s=g0(l),(d=jn.get(d))&&nh(s,d),f=(e.ownerDocument||e).createElement("link"),Nt(f);var b=f;return b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),Dt(f,"link",s),t.state.loading|=4,_u(f,l.precedence,e),t.instance=f;case"script":return f=ri(l.src),(d=e.querySelector(Us(f)))?(t.instance=d,Nt(d),d):(s=l,(d=jn.get(f))&&(s=y({},l),ah(s,d)),e=e.ownerDocument||e,d=e.createElement("script"),Nt(d),Dt(d,"link",s),e.head.appendChild(d),t.instance=d);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(s=t.instance,t.state.loading|=4,_u(s,l.precedence,e));return t.instance}function _u(e,t,l){for(var s=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=s.length?s[s.length-1]:null,f=d,b=0;b<s.length;b++){var N=s[b];if(N.dataset.precedence===t)f=N;else if(f!==d)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function nh(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ah(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Tu=null;function x0(e,t,l){if(Tu===null){var s=new Map,d=Tu=new Map;d.set(l,s)}else d=Tu,s=d.get(l),s||(s=new Map,d.set(l,s));if(s.has(e))return s;for(s.set(e,null),l=l.getElementsByTagName(e),d=0;d<l.length;d++){var f=l[d];if(!(f[Wi]||f[Rt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var b=f.getAttribute(t)||"";b=e+b;var N=s.get(b);N?N.push(f):s.set(b,[f])}}return s}function b0(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function lN(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function w0(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function rN(e,t,l,s){if(l.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var d=li(s.href),f=t.querySelector(Ls(d));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ru.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=f,Nt(f);return}f=t.ownerDocument||t,s=g0(s),(d=jn.get(d))&&nh(s,d),f=f.createElement("link"),Nt(f);var b=f;b._p=new Promise(function(N,M){b.onload=N,b.onerror=M}),Dt(f,"link",s),l.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=Ru.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var lh=0;function iN(e,t){return e.stylesheets&&e.count===0&&ku(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var s=setTimeout(function(){if(e.stylesheets&&ku(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&lh===0&&(lh=62500*BE());var d=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ku(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>lh?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(s),clearTimeout(d)}}:null}function Ru(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ku(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Mu=null;function ku(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Mu=new Map,t.forEach(sN,e),Mu=null,Ru.call(e))}function sN(e,t){if(!(t.state.loading&4)){var l=Mu.get(e);if(l)var s=l.get(null);else{l=new Map,Mu.set(e,l);for(var d=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<d.length;f++){var b=d[f];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(l.set(b.dataset.precedence,b),s=b)}s&&l.set(null,s)}d=t.instance,b=d.getAttribute("data-precedence"),f=l.get(b)||s,f===s&&l.set(null,d),l.set(b,d),this.count++,s=Ru.bind(this),d.addEventListener("load",s),d.addEventListener("error",s),f?f.parentNode.insertBefore(d,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(d,e.firstChild)),t.state.loading|=4}}var qs={$$typeof:R,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function oN(e,t,l,s,d,f,b,N,M){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ic(0),this.hiddenUpdates=Ic(null),this.identifierPrefix=s,this.onUncaughtError=d,this.onCaughtError=f,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=M,this.incompleteTransitions=new Map}function j0(e,t,l,s,d,f,b,N,M,$,Z,J){return e=new oN(e,t,l,b,M,$,Z,J,N),t=1,f===!0&&(t|=24),f=nn(3,null,null,t),e.current=f,f.stateNode=e,t=Ld(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:s,isDehydrated:l,cache:t},Bd(f),e}function S0(e){return e?(e=Lr,e):Lr}function E0(e,t,l,s,d,f){d=S0(d),s.context===null?s.context=d:s.pendingContext=d,s=Ia(t),s.payload={element:l},f=f===void 0?null:f,f!==null&&(s.callback=f),l=Wa(e,s,t),l!==null&&(Xt(l,e,t),vs(l,e,t))}function N0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function rh(e,t){N0(e,t),(e=e.alternate)&&N0(e,t)}function C0(e){if(e.tag===13||e.tag===31){var t=$l(e,67108864);t!==null&&Xt(t,e,67108864),rh(e,67108864)}}function _0(e){if(e.tag===13||e.tag===31){var t=on();t=Wc(t);var l=$l(e,t);l!==null&&Xt(l,e,t),rh(e,t)}}var Au=!0;function uN(e,t,l,s){var d=U.T;U.T=null;var f=I.p;try{I.p=2,ih(e,t,l,s)}finally{I.p=f,U.T=d}}function cN(e,t,l,s){var d=U.T;U.T=null;var f=I.p;try{I.p=8,ih(e,t,l,s)}finally{I.p=f,U.T=d}}function ih(e,t,l,s){if(Au){var d=sh(s);if(d===null)Kf(e,t,s,Du,l),R0(e,s);else if(fN(d,e,t,l,s))s.stopPropagation();else if(R0(e,s),t&4&&-1<dN.indexOf(e)){for(;d!==null;){var f=Nr(d);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var b=Ll(f.pendingLanes);if(b!==0){var N=f;for(N.pendingLanes|=2,N.entangledLanes|=2;b;){var M=1<<31-en(b);N.entanglements[1]|=M,b&=~M}Fn(f),(Qe&6)===0&&(pu=It()+500,As(0))}}break;case 31:case 13:N=$l(f,2),N!==null&&Xt(N,f,2),gu(),rh(f,2)}if(f=sh(s),f===null&&Kf(e,t,s,Du,l),f===d)break;d=f}d!==null&&s.stopPropagation()}else Kf(e,t,s,null,l)}}function sh(e){return e=od(e),oh(e)}var Du=null;function oh(e){if(Du=null,e=Er(e),e!==null){var t=c(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=h(t),e!==null)return e;e=null}else if(l===31){if(e=m(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Du=e,null}function T0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(PS()){case Lp:return 2;case Up:return 8;case jo:case JS:return 32;case qp:return 268435456;default:return 32}default:return 32}}var uh=!1,cl=null,dl=null,fl=null,Hs=new Map,Bs=new Map,hl=[],dN="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function R0(e,t){switch(e){case"focusin":case"focusout":cl=null;break;case"dragenter":case"dragleave":dl=null;break;case"mouseover":case"mouseout":fl=null;break;case"pointerover":case"pointerout":Hs.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bs.delete(t.pointerId)}}function $s(e,t,l,s,d,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:l,eventSystemFlags:s,nativeEvent:f,targetContainers:[d]},t!==null&&(t=Nr(t),t!==null&&C0(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,d!==null&&t.indexOf(d)===-1&&t.push(d),e)}function fN(e,t,l,s,d){switch(t){case"focusin":return cl=$s(cl,e,t,l,s,d),!0;case"dragenter":return dl=$s(dl,e,t,l,s,d),!0;case"mouseover":return fl=$s(fl,e,t,l,s,d),!0;case"pointerover":var f=d.pointerId;return Hs.set(f,$s(Hs.get(f)||null,e,t,l,s,d)),!0;case"gotpointercapture":return f=d.pointerId,Bs.set(f,$s(Bs.get(f)||null,e,t,l,s,d)),!0}return!1}function M0(e){var t=Er(e.target);if(t!==null){var l=c(t);if(l!==null){if(t=l.tag,t===13){if(t=h(l),t!==null){e.blockedOn=t,Yp(e.priority,function(){_0(l)});return}}else if(t===31){if(t=m(l),t!==null){e.blockedOn=t,Yp(e.priority,function(){_0(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ou(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=sh(e.nativeEvent);if(l===null){l=e.nativeEvent;var s=new l.constructor(l.type,l);sd=s,l.target.dispatchEvent(s),sd=null}else return t=Nr(l),t!==null&&C0(t),e.blockedOn=l,!1;t.shift()}return!0}function k0(e,t,l){Ou(e)&&l.delete(t)}function hN(){uh=!1,cl!==null&&Ou(cl)&&(cl=null),dl!==null&&Ou(dl)&&(dl=null),fl!==null&&Ou(fl)&&(fl=null),Hs.forEach(k0),Bs.forEach(k0)}function zu(e,t){e.blockedOn===t&&(e.blockedOn=null,uh||(uh=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,hN)))}var Lu=null;function A0(e){Lu!==e&&(Lu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Lu===e&&(Lu=null);for(var t=0;t<e.length;t+=3){var l=e[t],s=e[t+1],d=e[t+2];if(typeof s!="function"){if(oh(s||l)===null)continue;break}var f=Nr(l);f!==null&&(e.splice(t,3),t-=3,sf(f,{pending:!0,data:d,method:l.method,action:s},s,d))}}))}function ii(e){function t(M){return zu(M,e)}cl!==null&&zu(cl,e),dl!==null&&zu(dl,e),fl!==null&&zu(fl,e),Hs.forEach(t),Bs.forEach(t);for(var l=0;l<hl.length;l++){var s=hl[l];s.blockedOn===e&&(s.blockedOn=null)}for(;0<hl.length&&(l=hl[0],l.blockedOn===null);)M0(l),l.blockedOn===null&&hl.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(s=0;s<l.length;s+=3){var d=l[s],f=l[s+1],b=d[$t]||null;if(typeof f=="function")b||A0(l);else if(b){var N=null;if(f&&f.hasAttribute("formAction")){if(d=f,b=f[$t]||null)N=b.formAction;else if(oh(d)!==null)continue}else N=b.action;typeof N=="function"?l[s+1]=N:(l.splice(s,3),s-=3),A0(l)}}}function D0(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(b){return d=b})},focusReset:"manual",scroll:"manual"})}function t(){d!==null&&(d(),d=null),s||setTimeout(l,20)}function l(){if(!s&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var s=!1,d=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){s=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),d!==null&&(d(),d=null)}}}function ch(e){this._internalRoot=e}Uu.prototype.render=ch.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var l=t.current,s=on();E0(l,s,e,t,null,null)},Uu.prototype.unmount=ch.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;E0(e.current,2,null,e,null,null),gu(),t[Sr]=null}};function Uu(e){this._internalRoot=e}Uu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gp();e={blockedOn:null,target:e,priority:t};for(var l=0;l<hl.length&&t!==0&&t<hl[l].priority;l++);hl.splice(l,0,e),l===0&&M0(e)}};var O0=a.version;if(O0!=="19.2.3")throw Error(i(527,O0,"19.2.3"));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var mN={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var qu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qu.isDisabled&&qu.supportsFiber)try{Pi=qu.inject(mN),Wt=qu}catch{}}return Gs.createRoot=function(e,t){if(!o(e))throw Error(i(299));var l=!1,s="",d=$g,f=Qg,b=Gg;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onUncaughtError!==void 0&&(d=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=j0(e,1,!1,null,null,l,s,null,d,f,b,D0),e[Sr]=t.current,Vf(e),new ch(t)},Gs.hydrateRoot=function(e,t,l){if(!o(e))throw Error(i(299));var s=!1,d="",f=$g,b=Qg,N=Gg,M=null;return l!=null&&(l.unstable_strictMode===!0&&(s=!0),l.identifierPrefix!==void 0&&(d=l.identifierPrefix),l.onUncaughtError!==void 0&&(f=l.onUncaughtError),l.onCaughtError!==void 0&&(b=l.onCaughtError),l.onRecoverableError!==void 0&&(N=l.onRecoverableError),l.formState!==void 0&&(M=l.formState)),t=j0(e,1,!0,t,l??null,s,d,M,f,b,N,D0),t.context=S0(null),l=t.current,s=on(),s=Wc(s),d=Ia(s),d.callback=null,Wa(l,d,s),l=s,t.current.lanes=l,Ii(t,l),Fn(t),e[Sr]=t.current,Vf(e),new Uu(t)},Gs.version="19.2.3",Gs}var ex;function nC(){if(ex)return ph.exports;ex=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),ph.exports=tC(),ph.exports}var aC=nC(),Ys={},tx;function lC(){if(tx)return Ys;tx=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.parse=h,Ys.serialize=g;const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,a=/^[\u0021-\u003A\u003C-\u007E]*$/,r=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,i=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,c=(()=>{const w=function(){};return w.prototype=Object.create(null),w})();function h(w,S){const E=new c,j=w.length;if(j<2)return E;const C=(S==null?void 0:S.decode)||x;let _=0;do{const T=w.indexOf("=",_);if(T===-1)break;const R=w.indexOf(";",_),D=R===-1?j:R;if(T>D){_=w.lastIndexOf(";",T-1)+1;continue}const L=m(w,_,T),K=p(w,T,L),H=w.slice(L,K);if(E[H]===void 0){let q=m(w,T+1,D),G=p(w,D,q);const te=C(w.slice(q,G));E[H]=te}_=D+1}while(_<j);return E}function m(w,S,E){do{const j=w.charCodeAt(S);if(j!==32&&j!==9)return S}while(++S<E);return E}function p(w,S,E){for(;S>E;){const j=w.charCodeAt(--S);if(j!==32&&j!==9)return S+1}return E}function g(w,S,E){const j=(E==null?void 0:E.encode)||encodeURIComponent;if(!n.test(w))throw new TypeError(`argument name is invalid: ${w}`);const C=j(S);if(!a.test(C))throw new TypeError(`argument val is invalid: ${S}`);let _=w+"="+C;if(!E)return _;if(E.maxAge!==void 0){if(!Number.isInteger(E.maxAge))throw new TypeError(`option maxAge is invalid: ${E.maxAge}`);_+="; Max-Age="+E.maxAge}if(E.domain){if(!r.test(E.domain))throw new TypeError(`option domain is invalid: ${E.domain}`);_+="; Domain="+E.domain}if(E.path){if(!i.test(E.path))throw new TypeError(`option path is invalid: ${E.path}`);_+="; Path="+E.path}if(E.expires){if(!y(E.expires)||!Number.isFinite(E.expires.valueOf()))throw new TypeError(`option expires is invalid: ${E.expires}`);_+="; Expires="+E.expires.toUTCString()}if(E.httpOnly&&(_+="; HttpOnly"),E.secure&&(_+="; Secure"),E.partitioned&&(_+="; Partitioned"),E.priority)switch(typeof E.priority=="string"?E.priority.toLowerCase():void 0){case"low":_+="; Priority=Low";break;case"medium":_+="; Priority=Medium";break;case"high":_+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${E.priority}`)}if(E.sameSite)switch(typeof E.sameSite=="string"?E.sameSite.toLowerCase():E.sameSite){case!0:case"strict":_+="; SameSite=Strict";break;case"lax":_+="; SameSite=Lax";break;case"none":_+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${E.sameSite}`)}return _}function x(w){if(w.indexOf("%")===-1)return w;try{return decodeURIComponent(w)}catch{return w}}function y(w){return o.call(w)==="[object Date]"}return Ys}lC();var nx="popstate";function rC(n={}){function a(o,c){let{pathname:h="/",search:m="",hash:p=""}=gr(o.location.hash.substring(1));return!h.startsWith("/")&&!h.startsWith(".")&&(h="/"+h),Ih("",{pathname:h,search:m,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default")}function r(o,c){let h=o.document.querySelector("base"),m="";if(h&&h.getAttribute("href")){let p=o.location.href,g=p.indexOf("#");m=g===-1?p:p.slice(0,g)}return m+"#"+(typeof c=="string"?c:to(c))}function i(o,c){Tn(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(c)})`)}return sC(a,r,i,n)}function at(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}function Tn(n,a){if(!n){typeof console<"u"&&console.warn(a);try{throw new Error(a)}catch{}}}function iC(){return Math.random().toString(36).substring(2,10)}function ax(n,a){return{usr:n.state,key:n.key,idx:a}}function Ih(n,a,r=null,i){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof a=="string"?gr(a):a,state:r,key:a&&a.key||i||iC()}}function to({pathname:n="/",search:a="",hash:r=""}){return a&&a!=="?"&&(n+=a.charAt(0)==="?"?a:"?"+a),r&&r!=="#"&&(n+=r.charAt(0)==="#"?r:"#"+r),n}function gr(n){let a={};if(n){let r=n.indexOf("#");r>=0&&(a.hash=n.substring(r),n=n.substring(0,r));let i=n.indexOf("?");i>=0&&(a.search=n.substring(i),n=n.substring(0,i)),n&&(a.pathname=n)}return a}function sC(n,a,r,i={}){let{window:o=document.defaultView,v5Compat:c=!1}=i,h=o.history,m="POP",p=null,g=x();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function x(){return(h.state||{idx:null}).idx}function y(){m="POP";let C=x(),_=C==null?null:C-g;g=C,p&&p({action:m,location:j.location,delta:_})}function w(C,_){m="PUSH";let T=Ih(j.location,C,_);r&&r(T,C),g=x()+1;let R=ax(T,g),D=j.createHref(T);try{h.pushState(R,"",D)}catch(L){if(L instanceof DOMException&&L.name==="DataCloneError")throw L;o.location.assign(D)}c&&p&&p({action:m,location:j.location,delta:1})}function S(C,_){m="REPLACE";let T=Ih(j.location,C,_);r&&r(T,C),g=x();let R=ax(T,g),D=j.createHref(T);h.replaceState(R,"",D),c&&p&&p({action:m,location:j.location,delta:0})}function E(C){return oC(C)}let j={get action(){return m},get location(){return n(o,h)},listen(C){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(nx,y),p=C,()=>{o.removeEventListener(nx,y),p=null}},createHref(C){return a(o,C)},createURL:E,encodeLocation(C){let _=E(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:w,replace:S,go(C){return h.go(C)}};return j}function oC(n,a=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),at(r,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:to(n);return i=i.replace(/ $/,"%20"),!a&&i.startsWith("//")&&(i=r+i),new URL(i,r)}function _b(n,a,r="/"){return uC(n,a,r,!1)}function uC(n,a,r,i){let o=typeof a=="string"?gr(a):a,c=Ua(o.pathname||"/",r);if(c==null)return null;let h=Tb(n);cC(h);let m=null;for(let p=0;m==null&&p<h.length;++p){let g=wC(c);m=xC(h[p],g,i)}return m}function Tb(n,a=[],r=[],i=""){let o=(c,h,m)=>{let p={relativePath:m===void 0?c.path||"":m,caseSensitive:c.caseSensitive===!0,childrenIndex:h,route:c};p.relativePath.startsWith("/")&&(at(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length));let g=za([i,p.relativePath]),x=r.concat(p);c.children&&c.children.length>0&&(at(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Tb(c.children,a,x,g)),!(c.path==null&&!c.index)&&a.push({path:g,score:gC(g,c.index),routesMeta:x})};return n.forEach((c,h)=>{var m;if(c.path===""||!((m=c.path)!=null&&m.includes("?")))o(c,h);else for(let p of Rb(c.path))o(c,h,p)}),a}function Rb(n){let a=n.split("/");if(a.length===0)return[];let[r,...i]=a,o=r.endsWith("?"),c=r.replace(/\?$/,"");if(i.length===0)return o?[c,""]:[c];let h=Rb(i.join("/")),m=[];return m.push(...h.map(p=>p===""?c:[c,p].join("/"))),o&&m.push(...h),m.map(p=>n.startsWith("/")&&p===""?"/":p)}function cC(n){n.sort((a,r)=>a.score!==r.score?r.score-a.score:yC(a.routesMeta.map(i=>i.childrenIndex),r.routesMeta.map(i=>i.childrenIndex)))}var dC=/^:[\w-]+$/,fC=3,hC=2,mC=1,pC=10,vC=-2,lx=n=>n==="*";function gC(n,a){let r=n.split("/"),i=r.length;return r.some(lx)&&(i+=vC),a&&(i+=hC),r.filter(o=>!lx(o)).reduce((o,c)=>o+(dC.test(c)?fC:c===""?mC:pC),i)}function yC(n,a){return n.length===a.length&&n.slice(0,-1).every((i,o)=>i===a[o])?n[n.length-1]-a[a.length-1]:0}function xC(n,a,r=!1){let{routesMeta:i}=n,o={},c="/",h=[];for(let m=0;m<i.length;++m){let p=i[m],g=m===i.length-1,x=c==="/"?a:a.slice(c.length)||"/",y=ic({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},x),w=p.route;if(!y&&g&&r&&!i[i.length-1].route.index&&(y=ic({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},x)),!y)return null;Object.assign(o,y.params),h.push({params:o,pathname:za([c,y.pathname]),pathnameBase:NC(za([c,y.pathnameBase])),route:w}),y.pathnameBase!=="/"&&(c=za([c,y.pathnameBase]))}return h}function ic(n,a){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[r,i]=bC(n.path,n.caseSensitive,n.end),o=a.match(r);if(!o)return null;let c=o[0],h=c.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:i.reduce((g,{paramName:x,isOptional:y},w)=>{if(x==="*"){let E=m[w]||"";h=c.slice(0,c.length-E.length).replace(/(.)\/+$/,"$1")}const S=m[w];return y&&!S?g[x]=void 0:g[x]=(S||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:h,pattern:n}}function bC(n,a=!1,r=!0){Tn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,m,p)=>(i.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(i.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,a?void 0:"i"),i]}function wC(n){try{return n.split("/").map(a=>decodeURIComponent(a).replace(/\//g,"%2F")).join("/")}catch(a){return Tn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${a}).`),n}}function Ua(n,a){if(a==="/")return n;if(!n.toLowerCase().startsWith(a.toLowerCase()))return null;let r=a.endsWith("/")?a.length-1:a.length,i=n.charAt(r);return i&&i!=="/"?null:n.slice(r)||"/"}function jC(n,a="/"){let{pathname:r,search:i="",hash:o=""}=typeof n=="string"?gr(n):n;return{pathname:r?r.startsWith("/")?r:SC(r,a):a,search:CC(i),hash:_C(o)}}function SC(n,a){let r=a.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function xh(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 EC(n){return n.filter((a,r)=>r===0||a.route.path&&a.route.path.length>0)}function Rm(n){let a=EC(n);return a.map((r,i)=>i===a.length-1?r.pathname:r.pathnameBase)}function Mm(n,a,r,i=!1){let o;typeof n=="string"?o=gr(n):(o={...n},at(!o.pathname||!o.pathname.includes("?"),xh("?","pathname","search",o)),at(!o.pathname||!o.pathname.includes("#"),xh("#","pathname","hash",o)),at(!o.search||!o.search.includes("#"),xh("#","search","hash",o)));let c=n===""||o.pathname==="",h=c?"/":o.pathname,m;if(h==null)m=r;else{let y=a.length-1;if(!i&&h.startsWith("..")){let w=h.split("/");for(;w[0]==="..";)w.shift(),y-=1;o.pathname=w.join("/")}m=y>=0?a[y]:"/"}let p=jC(o,m),g=h&&h!=="/"&&h.endsWith("/"),x=(c||h===".")&&r.endsWith("/");return!p.pathname.endsWith("/")&&(g||x)&&(p.pathname+="/"),p}var za=n=>n.join("/").replace(/\/\/+/g,"/"),NC=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),CC=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,_C=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function TC(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Mb=["POST","PUT","PATCH","DELETE"];new Set(Mb);var RC=["GET",...Mb];new Set(RC);var zi=v.createContext(null);zi.displayName="DataRouter";var Sc=v.createContext(null);Sc.displayName="DataRouterState";var kb=v.createContext({isTransitioning:!1});kb.displayName="ViewTransition";var MC=v.createContext(new Map);MC.displayName="Fetchers";var kC=v.createContext(null);kC.displayName="Await";var $n=v.createContext(null);$n.displayName="Navigation";var co=v.createContext(null);co.displayName="Location";var Qn=v.createContext({outlet:null,matches:[],isDataRoute:!1});Qn.displayName="Route";var km=v.createContext(null);km.displayName="RouteError";function AC(n,{relative:a}={}){at(Li(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:i}=v.useContext($n),{hash:o,pathname:c,search:h}=fo(n,{relative:a}),m=c;return r!=="/"&&(m=c==="/"?r:za([r,c])),i.createHref({pathname:m,search:h,hash:o})}function Li(){return v.useContext(co)!=null}function Ba(){return at(Li(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(co).location}var Ab="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Db(n){v.useContext($n).static||v.useLayoutEffect(n)}function Ob(){let{isDataRoute:n}=v.useContext(Qn);return n?VC():DC()}function DC(){at(Li(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(zi),{basename:a,navigator:r}=v.useContext($n),{matches:i}=v.useContext(Qn),{pathname:o}=Ba(),c=JSON.stringify(Rm(i)),h=v.useRef(!1);return Db(()=>{h.current=!0}),v.useCallback((p,g={})=>{if(Tn(h.current,Ab),!h.current)return;if(typeof p=="number"){r.go(p);return}let x=Mm(p,JSON.parse(c),o,g.relative==="path");n==null&&a!=="/"&&(x.pathname=x.pathname==="/"?a:za([a,x.pathname])),(g.replace?r.replace:r.push)(x,g.state,g)},[a,r,c,o,n])}v.createContext(null);function $a(){let{matches:n}=v.useContext(Qn),a=n[n.length-1];return a?a.params:{}}function fo(n,{relative:a}={}){let{matches:r}=v.useContext(Qn),{pathname:i}=Ba(),o=JSON.stringify(Rm(r));return v.useMemo(()=>Mm(n,JSON.parse(o),i,a==="path"),[n,o,i,a])}function OC(n,a){return zb(n,a)}function zb(n,a,r,i){var _;at(Li(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=v.useContext($n),{matches:c}=v.useContext(Qn),h=c[c.length-1],m=h?h.params:{},p=h?h.pathname:"/",g=h?h.pathnameBase:"/",x=h&&h.route;{let T=x&&x.path||"";Lb(p,!x||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
50
|
-
|
|
51
|
-
Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let y=Ba(),w;if(a){let T=typeof a=="string"?gr(a):a;at(g==="/"||((_=T.pathname)==null?void 0:_.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${T.pathname}" was given in the \`location\` prop.`),w=T}else w=y;let S=w.pathname||"/",E=S;if(g!=="/"){let T=g.replace(/^\//,"").split("/");E="/"+S.replace(/^\//,"").split("/").slice(T.length).join("/")}let j=_b(n,{pathname:E});Tn(x||j!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),Tn(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let C=HC(j&&j.map(T=>Object.assign({},T,{params:Object.assign({},m,T.params),pathname:za([g,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?g:za([g,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),c,r,i);return a&&C?v.createElement(co.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},C):C}function zC(){let n=YC(),a=TC(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),r=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},c={padding:"2px 4px",backgroundColor:i},h=null;return console.error("Error handled by React Router default ErrorBoundary:",n),h=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:c},"ErrorBoundary")," or"," ",v.createElement("code",{style:c},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},a),r?v.createElement("pre",{style:o},r):null,h)}var LC=v.createElement(zC,null),UC=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(km.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function qC({routeContext:n,match:a,children:r}){let i=v.useContext(zi);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 HC(n,a=[],r=null,i=null){if(n==null){if(!r)return null;if(r.errors)n=r.matches;else if(a.length===0&&!r.initialized&&r.matches.length>0)n=r.matches;else return null}let o=n,c=r==null?void 0:r.errors;if(c!=null){let p=o.findIndex(g=>g.route.id&&(c==null?void 0:c[g.route.id])!==void 0);at(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let h=!1,m=-1;if(r)for(let p=0;p<o.length;p++){let g=o[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:x,errors:y}=r,w=g.route.loader&&!x.hasOwnProperty(g.route.id)&&(!y||y[g.route.id]===void 0);if(g.route.lazy||w){h=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((p,g,x)=>{let y,w=!1,S=null,E=null;r&&(y=c&&g.route.id?c[g.route.id]:void 0,S=g.route.errorElement||LC,h&&(m<0&&x===0?(Lb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,E=null):m===x&&(w=!0,E=g.route.hydrateFallbackElement||null)));let j=a.concat(o.slice(0,x+1)),C=()=>{let _;return y?_=S:w?_=E:g.route.Component?_=v.createElement(g.route.Component,null):g.route.element?_=g.route.element:_=p,v.createElement(qC,{match:g,routeContext:{outlet:p,matches:j,isDataRoute:r!=null},children:_})};return r&&(g.route.ErrorBoundary||g.route.errorElement||x===0)?v.createElement(UC,{location:r.location,revalidation:r.revalidation,component:S,error:y,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):C()},null)}function Am(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function BC(n){let a=v.useContext(zi);return at(a,Am(n)),a}function $C(n){let a=v.useContext(Sc);return at(a,Am(n)),a}function QC(n){let a=v.useContext(Qn);return at(a,Am(n)),a}function Dm(n){let a=QC(n),r=a.matches[a.matches.length-1];return at(r.route.id,`${n} can only be used on routes that contain a unique "id"`),r.route.id}function GC(){return Dm("useRouteId")}function YC(){var i;let n=v.useContext(km),a=$C("useRouteError"),r=Dm("useRouteError");return n!==void 0?n:(i=a.errors)==null?void 0:i[r]}function VC(){let{router:n}=BC("useNavigate"),a=Dm("useNavigate"),r=v.useRef(!1);return Db(()=>{r.current=!0}),v.useCallback(async(o,c={})=>{Tn(r.current,Ab),r.current&&(typeof o=="number"?n.navigate(o):await n.navigate(o,{fromRouteId:a,...c}))},[n,a])}var rx={};function Lb(n,a,r){!a&&!rx[n]&&(rx[n]=!0,Tn(!1,r))}v.memo(KC);function KC({routes:n,future:a,state:r}){return zb(n,void 0,r,a)}function Ma({to:n,replace:a,state:r,relative:i}){at(Li(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=v.useContext($n);Tn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=v.useContext(Qn),{pathname:h}=Ba(),m=Ob(),p=Mm(n,Rm(c),h,i==="path"),g=JSON.stringify(p);return v.useEffect(()=>{m(JSON.parse(g),{replace:a,state:r,relative:i})},[m,g,i,a,r]),null}function Sn(n){at(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function XC({basename:n="/",children:a=null,location:r,navigationType:i="POP",navigator:o,static:c=!1}){at(!Li(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),m=v.useMemo(()=>({basename:h,navigator:o,static:c,future:{}}),[h,o,c]);typeof r=="string"&&(r=gr(r));let{pathname:p="/",search:g="",hash:x="",state:y=null,key:w="default"}=r,S=v.useMemo(()=>{let E=Ua(p,h);return E==null?null:{location:{pathname:E,search:g,hash:x,state:y,key:w},navigationType:i}},[h,p,g,x,y,w,i]);return Tn(S!=null,`<Router basename="${h}"> is not able to match the URL "${p}${g}${x}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:v.createElement($n.Provider,{value:m},v.createElement(co.Provider,{children:a,value:S}))}function FC({children:n,location:a}){return OC(Wh(n),a)}function Wh(n,a=[]){let r=[];return v.Children.forEach(n,(i,o)=>{if(!v.isValidElement(i))return;let c=[...a,o];if(i.type===v.Fragment){r.push.apply(r,Wh(i.props.children,c));return}at(i.type===Sn,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),at(!i.props.index||!i.props.children,"An index route cannot have child routes.");let h={id:i.props.id||c.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(h.children=Wh(i.props.children,c)),r.push(h)}),r}var Iu="get",Wu="application/x-www-form-urlencoded";function Ec(n){return n!=null&&typeof n.tagName=="string"}function ZC(n){return Ec(n)&&n.tagName.toLowerCase()==="button"}function PC(n){return Ec(n)&&n.tagName.toLowerCase()==="form"}function JC(n){return Ec(n)&&n.tagName.toLowerCase()==="input"}function IC(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function WC(n,a){return n.button===0&&(!a||a==="_self")&&!IC(n)}var $u=null;function e_(){if($u===null)try{new FormData(document.createElement("form"),0),$u=!1}catch{$u=!0}return $u}var t_=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bh(n){return n!=null&&!t_.has(n)?(Tn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wu}"`),null):n}function n_(n,a){let r,i,o,c,h;if(PC(n)){let m=n.getAttribute("action");i=m?Ua(m,a):null,r=n.getAttribute("method")||Iu,o=bh(n.getAttribute("enctype"))||Wu,c=new FormData(n)}else if(ZC(n)||JC(n)&&(n.type==="submit"||n.type==="image")){let m=n.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||m.getAttribute("action");if(i=p?Ua(p,a):null,r=n.getAttribute("formmethod")||m.getAttribute("method")||Iu,o=bh(n.getAttribute("formenctype"))||bh(m.getAttribute("enctype"))||Wu,c=new FormData(m,n),!e_()){let{name:g,type:x,value:y}=n;if(x==="image"){let w=g?`${g}.`:"";c.append(`${w}x`,"0"),c.append(`${w}y`,"0")}else g&&c.append(g,y)}}else{if(Ec(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=Iu,i=null,o=Wu,h=n}return c&&o==="text/plain"&&(h=c,c=void 0),{action:i,method:r.toLowerCase(),encType:o,formData:c,body:h}}function Om(n,a){if(n===!1||n===null||typeof n>"u")throw new Error(a)}async function a_(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 l_(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 r_(n,a,r){let i=await Promise.all(n.map(async o=>{let c=a.routes[o.route.id];if(c){let h=await a_(c,r);return h.links?h.links():[]}return[]}));return u_(i.flat(1).filter(l_).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function ix(n,a,r,i,o,c){let h=(p,g)=>r[g]?p.route.id!==r[g].route.id:!0,m=(p,g)=>{var x;return r[g].pathname!==p.pathname||((x=r[g].route.path)==null?void 0:x.endsWith("*"))&&r[g].params["*"]!==p.params["*"]};return c==="assets"?a.filter((p,g)=>h(p,g)||m(p,g)):c==="data"?a.filter((p,g)=>{var y;let x=i.routes[p.route.id];if(!x||!x.hasLoader)return!1;if(h(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let w=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((y=r[0])==null?void 0:y.params)||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function i_(n,a,{includeHydrateFallback:r}={}){return s_(n.map(i=>{let o=a.routes[i.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),r&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function s_(n){return[...new Set(n)]}function o_(n){let a={},r=Object.keys(n).sort();for(let i of r)a[i]=n[i];return a}function u_(n,a){let r=new Set;return new Set(a),n.reduce((i,o)=>{let c=JSON.stringify(o_(o));return r.has(c)||(r.add(c),i.push({key:c,link:o})),i},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var c_=new Set([100,101,204,205]);function d_(n,a){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname="_root.data":a&&Ua(r.pathname,a)==="/"?r.pathname=`${a.replace(/\/$/,"")}/_root.data`:r.pathname=`${r.pathname.replace(/\/$/,"")}.data`,r}function Ub(){let n=v.useContext(zi);return Om(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function f_(){let n=v.useContext(Sc);return Om(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var zm=v.createContext(void 0);zm.displayName="FrameworkContext";function qb(){let n=v.useContext(zm);return Om(n,"You must render this element inside a <HydratedRouter> element"),n}function h_(n,a){let r=v.useContext(zm),[i,o]=v.useState(!1),[c,h]=v.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:x,onTouchStart:y}=a,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&h(!0),n==="viewport"){let j=_=>{_.forEach(T=>{h(T.isIntersecting)})},C=new IntersectionObserver(j,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let j=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(j)}}},[i]);let S=()=>{o(!0)},E=()=>{o(!1),h(!1)};return r?n!=="intent"?[c,w,{}]:[c,w,{onFocus:Vs(m,S),onBlur:Vs(p,E),onMouseEnter:Vs(g,S),onMouseLeave:Vs(x,E),onTouchStart:Vs(y,S)}]:[!1,w,{}]}function Vs(n,a){return r=>{n&&n(r),r.defaultPrevented||a(r)}}function m_({page:n,...a}){let{router:r}=Ub(),i=v.useMemo(()=>_b(r.routes,n,r.basename),[r.routes,n,r.basename]);return i?v.createElement(v_,{page:n,matches:i,...a}):null}function p_(n){let{manifest:a,routeModules:r}=qb(),[i,o]=v.useState([]);return v.useEffect(()=>{let c=!1;return r_(n,a,r).then(h=>{c||o(h)}),()=>{c=!0}},[n,a,r]),i}function v_({page:n,matches:a,...r}){let i=Ba(),{manifest:o,routeModules:c}=qb(),{basename:h}=Ub(),{loaderData:m,matches:p}=f_(),g=v.useMemo(()=>ix(n,a,p,o,i,"data"),[n,a,p,o,i]),x=v.useMemo(()=>ix(n,a,p,o,i,"assets"),[n,a,p,o,i]),y=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,j=!1;if(a.forEach(_=>{var R;let T=o.routes[_.route.id];!T||!T.hasLoader||(!g.some(D=>D.route.id===_.route.id)&&_.route.id in m&&((R=c[_.route.id])!=null&&R.shouldRevalidate)||T.hasClientLoader?j=!0:E.add(_.route.id))}),E.size===0)return[];let C=d_(n,h);return j&&E.size>0&&C.searchParams.set("_routes",a.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[C.pathname+C.search]},[h,m,i,o,g,a,n,c]),w=v.useMemo(()=>i_(x,o),[x,o]),S=p_(x);return v.createElement(v.Fragment,null,y.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...r})),w.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...r})),S.map(({key:E,link:j})=>v.createElement("link",{key:E,...j})))}function g_(...n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a)})}}var Hb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Hb&&(window.__reactRouterVersion="7.6.1")}catch{}function y_({basename:n,children:a,window:r}){let i=v.useRef();i.current==null&&(i.current=rC({window:r,v5Compat:!0}));let o=i.current,[c,h]=v.useState({action:o.action,location:o.location}),m=v.useCallback(p=>{v.startTransition(()=>h(p))},[h]);return v.useLayoutEffect(()=>o.listen(m),[o,m]),v.createElement(XC,{basename:n,children:a,location:c.location,navigationType:c.action,navigator:o})}var Bb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pt=v.forwardRef(function({onClick:a,discover:r="render",prefetch:i="none",relative:o,reloadDocument:c,replace:h,state:m,target:p,to:g,preventScrollReset:x,viewTransition:y,...w},S){let{basename:E}=v.useContext($n),j=typeof g=="string"&&Bb.test(g),C,_=!1;if(typeof g=="string"&&j&&(C=g,Hb))try{let G=new URL(window.location.href),te=g.startsWith("//")?new URL(G.protocol+g):new URL(g),ue=Ua(te.pathname,E);te.origin===G.origin&&ue!=null?g=ue+te.search+te.hash:_=!0}catch{Tn(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=AC(g,{relative:o}),[R,D,L]=h_(i,w),K=j_(g,{replace:h,state:m,target:p,preventScrollReset:x,relative:o,viewTransition:y});function H(G){a&&a(G),G.defaultPrevented||K(G)}let q=v.createElement("a",{...w,...L,href:C||T,onClick:_||c?a:H,ref:g_(S,D),target:p,"data-discover":!j&&r==="render"?"true":void 0});return R&&!j?v.createElement(v.Fragment,null,q,v.createElement(m_,{page:T})):q});Pt.displayName="Link";var x_=v.forwardRef(function({"aria-current":a="page",caseSensitive:r=!1,className:i="",end:o=!1,style:c,to:h,viewTransition:m,children:p,...g},x){let y=fo(h,{relative:g.relative}),w=Ba(),S=v.useContext(Sc),{navigator:E,basename:j}=v.useContext($n),C=S!=null&&__(y)&&m===!0,_=E.encodeLocation?E.encodeLocation(y).pathname:y.pathname,T=w.pathname,R=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;r||(T=T.toLowerCase(),R=R?R.toLowerCase():null,_=_.toLowerCase()),R&&j&&(R=Ua(R,j)||R);const D=_!=="/"&&_.endsWith("/")?_.length-1:_.length;let L=T===_||!o&&T.startsWith(_)&&T.charAt(D)==="/",K=R!=null&&(R===_||!o&&R.startsWith(_)&&R.charAt(_.length)==="/"),H={isActive:L,isPending:K,isTransitioning:C},q=L?a:void 0,G;typeof i=="function"?G=i(H):G=[i,L?"active":null,K?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let te=typeof c=="function"?c(H):c;return v.createElement(Pt,{...g,"aria-current":q,className:G,ref:x,style:te,to:h,viewTransition:m},typeof p=="function"?p(H):p)});x_.displayName="NavLink";var b_=v.forwardRef(({discover:n="render",fetcherKey:a,navigate:r,reloadDocument:i,replace:o,state:c,method:h=Iu,action:m,onSubmit:p,relative:g,preventScrollReset:x,viewTransition:y,...w},S)=>{let E=N_(),j=C_(m,{relative:g}),C=h.toLowerCase()==="get"?"get":"post",_=typeof m=="string"&&Bb.test(m),T=R=>{if(p&&p(R),R.defaultPrevented)return;R.preventDefault();let D=R.nativeEvent.submitter,L=(D==null?void 0:D.getAttribute("formmethod"))||h;E(D||R.currentTarget,{fetcherKey:a,method:L,navigate:r,replace:o,state:c,relative:g,preventScrollReset:x,viewTransition:y})};return v.createElement("form",{ref:S,method:C,action:j,onSubmit:i?p:T,...w,"data-discover":!_&&n==="render"?"true":void 0})});b_.displayName="Form";function w_(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $b(n){let a=v.useContext(zi);return at(a,w_(n)),a}function j_(n,{target:a,replace:r,state:i,preventScrollReset:o,relative:c,viewTransition:h}={}){let m=Ob(),p=Ba(),g=fo(n,{relative:c});return v.useCallback(x=>{if(WC(x,a)){x.preventDefault();let y=r!==void 0?r:to(p)===to(g);m(n,{replace:y,state:i,preventScrollReset:o,relative:c,viewTransition:h})}},[p,m,g,r,i,a,n,o,c,h])}var S_=0,E_=()=>`__${String(++S_)}__`;function N_(){let{router:n}=$b("useSubmit"),{basename:a}=v.useContext($n),r=GC();return v.useCallback(async(i,o={})=>{let{action:c,method:h,encType:m,formData:p,body:g}=n_(i,a);if(o.navigate===!1){let x=o.fetcherKey||E_();await n.fetch(x,r,o.action||c,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||h,formEncType:o.encType||m,flushSync:o.flushSync})}else await n.navigate(o.action||c,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||h,formEncType:o.encType||m,replace:o.replace,state:o.state,fromRouteId:r,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,a,r])}function C_(n,{relative:a}={}){let{basename:r}=v.useContext($n),i=v.useContext(Qn);at(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),c={...fo(n||".",{relative:a})},h=Ba();if(n==null){c.search=h.search;let m=new URLSearchParams(c.search),p=m.getAll("index");if(p.some(x=>x==="")){m.delete("index"),p.filter(y=>y).forEach(y=>m.append("index",y));let x=m.toString();c.search=x?`?${x}`:""}}return(!n||n===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(c.pathname=c.pathname==="/"?r:za([r,c.pathname])),to(c)}function __(n,a={}){let r=v.useContext(kb);at(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=$b("useViewTransitionState"),o=fo(n,{relative:a.relative});if(!r.isTransitioning)return!1;let c=Ua(r.currentLocation.pathname,i)||r.currentLocation.pathname,h=Ua(r.nextLocation.pathname,i)||r.nextLocation.pathname;return ic(o.pathname,h)!=null||ic(o.pathname,c)!=null}[...c_];var ho=Cb();const Qb=db(ho);/**
|
|
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 T_=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),R_=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),sx=n=>{const a=R_(n);return a.charAt(0).toUpperCase()+a.slice(1)},Gb=(...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 M_={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 k_=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...M_,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:Gb("lucide",o),...m},[...h.map(([g,x])=>v.createElement(g,x)),...Array.isArray(c)?c:[c]]));/**
|
|
67
|
-
* @license lucide-react v0.488.0 - ISC
|
|
68
|
-
*
|
|
69
|
-
* This source code is licensed under the ISC license.
|
|
70
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
-
*/const Ge=(n,a)=>{const r=v.forwardRef(({className:i,...o},c)=>v.createElement(k_,{ref:c,iconNode:a,className:Gb(`lucide-${T_(sx(n))}`,`lucide-${n}`,i),...o}));return r.displayName=sx(n),r};/**
|
|
72
|
-
* @license lucide-react v0.488.0 - ISC
|
|
73
|
-
*
|
|
74
|
-
* This source code is licensed under the ISC license.
|
|
75
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
-
*/const A_=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],D_=Ge("archive",A_);/**
|
|
77
|
-
* @license lucide-react v0.488.0 - ISC
|
|
78
|
-
*
|
|
79
|
-
* This source code is licensed under the ISC license.
|
|
80
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
-
*/const O_=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],z_=Ge("arrow-left",O_);/**
|
|
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 L_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m4.9 4.9 14.2 14.2",key:"1m5liu"}]],U_=Ge("ban",L_);/**
|
|
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 q_=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],H_=Ge("bell",q_);/**
|
|
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 B_=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Yb=Ge("chevron-down",B_);/**
|
|
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 $_=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],mo=Ge("chevron-left",$_);/**
|
|
102
|
-
* @license lucide-react v0.488.0 - ISC
|
|
103
|
-
*
|
|
104
|
-
* This source code is licensed under the ISC license.
|
|
105
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
-
*/const Q_=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],yr=Ge("chevron-right",Q_);/**
|
|
107
|
-
* @license lucide-react v0.488.0 - ISC
|
|
108
|
-
*
|
|
109
|
-
* This source code is licensed under the ISC license.
|
|
110
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
-
*/const G_=[["path",{d:"m7 20 5-5 5 5",key:"13a0gw"}],["path",{d:"m7 4 5 5 5-5",key:"1kwcof"}]],Y_=Ge("chevrons-down-up",G_);/**
|
|
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 V_=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],K_=Ge("chevrons-up-down",V_);/**
|
|
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 X_=[["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"}]],F_=Ge("circle-alert",X_);/**
|
|
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 Z_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Rl=Ge("circle-check",Z_);/**
|
|
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 P_=[["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"}]],Ui=Ge("circle-x",P_);/**
|
|
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 J_=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],Al=Ge("clock",J_);/**
|
|
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 I_=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]],Vb=Ge("columns-3",I_);/**
|
|
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 W_=[["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"}]],eT=Ge("database",W_);/**
|
|
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 tT=[["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"}]],nT=Ge("folder-open",tT);/**
|
|
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 aT=[["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"}]],lT=Ge("git-branch",aT);/**
|
|
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 rT=[["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"}]],iT=Ge("hard-drive",rT);/**
|
|
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 sT=[["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"}]],oT=Ge("inbox",sT);/**
|
|
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 uT=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],Kb=Ge("info",uT);/**
|
|
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 cT=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],Xb=Ge("key",cT);/**
|
|
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 dT=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],qn=Ge("loader-circle",dT);/**
|
|
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 fT=[["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"}]],hT=Ge("mail-warning",fT);/**
|
|
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 mT=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Fb=Ge("play",mT);/**
|
|
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 pT=[["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"}]],po=Ge("refresh-cw",pT);/**
|
|
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 vT=[["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"}]],gT=Ge("repeat",vT);/**
|
|
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 yT=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],xT=Ge("search",yT);/**
|
|
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 bT=[["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"}]],wT=Ge("settings",bT);/**
|
|
212
|
-
* @license lucide-react v0.488.0 - ISC
|
|
213
|
-
*
|
|
214
|
-
* This source code is licensed under the ISC license.
|
|
215
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
-
*/const jT=[["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"}]],ST=Ge("shield",jT);/**
|
|
217
|
-
* @license lucide-react v0.488.0 - ISC
|
|
218
|
-
*
|
|
219
|
-
* This source code is licensed under the ISC license.
|
|
220
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
221
|
-
*/const ET=[["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"}]],Nc=Ge("table",ET);/**
|
|
222
|
-
* @license lucide-react v0.488.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 NT=[["line",{x1:"10",x2:"14",y1:"2",y2:"2",key:"14vaq8"}],["line",{x1:"12",x2:"15",y1:"14",y2:"11",key:"17fdiu"}],["circle",{cx:"12",cy:"14",r:"8",key:"1e1u0o"}]],CT=Ge("timer",NT);function Zb(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=Zb(n[a]))&&(i&&(i+=" "),i+=r);else for(a in n)n[a]&&(i&&(i+=" "),i+=a);return i}function _T(){for(var n,a,r=0,i="";r<arguments.length;)(n=arguments[r++])&&(a=Zb(n))&&(i&&(i+=" "),i+=a);return i}const Lm="-",TT=n=>{const a=MT(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:o=>{const c=o.split(Lm);return c[0]===""&&c.length!==1&&c.shift(),Pb(c,a)||RT(o)},getConflictingClassGroupIds:(o,c)=>{const h=r[o]||[];return c&&i[o]?[...h,...i[o]]:h}}},Pb=(n,a)=>{var r;if(n.length===0)return a.classGroupId;const i=n[0],o=a.nextPart.get(i),c=o?Pb(n.slice(1),o):void 0;if(c)return c;if(a.validators.length===0)return;const h=n.join(Lm);return(r=a.validators.find(({validator:m})=>m(h)))==null?void 0:r.classGroupId},ox=/^\[(.+)\]$/,RT=n=>{if(ox.test(n)){const a=ox.exec(n)[1],r=a==null?void 0:a.substring(0,a.indexOf(":"));if(r)return"arbitrary.."+r}},MT=n=>{const{theme:a,classGroups:r}=n,i={nextPart:new Map,validators:[]};for(const o in r)em(r[o],i,o,a);return i},em=(n,a,r,i)=>{n.forEach(o=>{if(typeof o=="string"){const c=o===""?a:ux(a,o);c.classGroupId=r;return}if(typeof o=="function"){if(kT(o)){em(o(i),a,r,i);return}a.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([c,h])=>{em(h,ux(a,c),r,i)})})},ux=(n,a)=>{let r=n;return a.split(Lm).forEach(i=>{r.nextPart.has(i)||r.nextPart.set(i,{nextPart:new Map,validators:[]}),r=r.nextPart.get(i)}),r},kT=n=>n.isThemeGetter,AT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,r=new Map,i=new Map;const o=(c,h)=>{r.set(c,h),a++,a>n&&(a=0,i=r,r=new Map)};return{get(c){let h=r.get(c);if(h!==void 0)return h;if((h=i.get(c))!==void 0)return o(c,h),h},set(c,h){r.has(c)?r.set(c,h):o(c,h)}}},tm="!",nm=":",DT=nm.length,OT=n=>{const{prefix:a,experimentalParseClassName:r}=n;let i=o=>{const c=[];let h=0,m=0,p=0,g;for(let E=0;E<o.length;E++){let j=o[E];if(h===0&&m===0){if(j===nm){c.push(o.slice(p,E)),p=E+DT;continue}if(j==="/"){g=E;continue}}j==="["?h++:j==="]"?h--:j==="("?m++:j===")"&&m--}const x=c.length===0?o:o.substring(p),y=zT(x),w=y!==x,S=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:y,maybePostfixModifierPosition:S}};if(a){const o=a+nm,c=i;i=h=>h.startsWith(o)?c(h.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:h,maybePostfixModifierPosition:void 0}}if(r){const o=i;i=c=>r({className:c,parseClassName:o})}return i},zT=n=>n.endsWith(tm)?n.substring(0,n.length-1):n.startsWith(tm)?n.substring(1):n,LT=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const i=[];let o=[];return r.forEach(c=>{c[0]==="["||a[c]?(i.push(...o.sort(),c),o=[]):o.push(c)}),i.push(...o.sort()),i}},UT=n=>({cache:AT(n.cacheSize),parseClassName:OT(n),sortModifiers:LT(n),...TT(n)}),qT=/\s+/,HT=(n,a)=>{const{parseClassName:r,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:c}=a,h=[],m=n.trim().split(qT);let p="";for(let g=m.length-1;g>=0;g-=1){const x=m[g],{isExternal:y,modifiers:w,hasImportantModifier:S,baseClassName:E,maybePostfixModifierPosition:j}=r(x);if(y){p=x+(p.length>0?" "+p:p);continue}let C=!!j,_=i(C?E.substring(0,j):E);if(!_){if(!C){p=x+(p.length>0?" "+p:p);continue}if(_=i(E),!_){p=x+(p.length>0?" "+p:p);continue}C=!1}const T=c(w).join(":"),R=S?T+tm:T,D=R+_;if(h.includes(D))continue;h.push(D);const L=o(_,C);for(let K=0;K<L.length;++K){const H=L[K];h.push(R+H)}p=x+(p.length>0?" "+p:p)}return p};function BT(){let n=0,a,r,i="";for(;n<arguments.length;)(a=arguments[n++])&&(r=Jb(a))&&(i&&(i+=" "),i+=r);return i}const Jb=n=>{if(typeof n=="string")return n;let a,r="";for(let i=0;i<n.length;i++)n[i]&&(a=Jb(n[i]))&&(r&&(r+=" "),r+=a);return r};function $T(n,...a){let r,i,o,c=h;function h(p){const g=a.reduce((x,y)=>y(x),n());return r=UT(g),i=r.cache.get,o=r.cache.set,c=m,m(p)}function m(p){const g=i(p);if(g)return g;const x=HT(p,r);return o(p,x),x}return function(){return c(BT.apply(null,arguments))}}const jt=n=>{const a=r=>r[n]||[];return a.isThemeGetter=!0,a},Ib=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,QT=/^\d+\/\d+$/,GT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,YT=/\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$/,VT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,KT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,XT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,si=n=>QT.test(n),Ae=n=>!!n&&!Number.isNaN(Number(n)),pl=n=>!!n&&Number.isInteger(Number(n)),wh=n=>n.endsWith("%")&&Ae(n.slice(0,-1)),ka=n=>GT.test(n),FT=()=>!0,ZT=n=>YT.test(n)&&!VT.test(n),e1=()=>!1,PT=n=>KT.test(n),JT=n=>XT.test(n),IT=n=>!he(n)&&!me(n),WT=n=>qi(n,a1,e1),he=n=>Ib.test(n),er=n=>qi(n,l1,ZT),jh=n=>qi(n,lR,Ae),cx=n=>qi(n,t1,e1),eR=n=>qi(n,n1,JT),Qu=n=>qi(n,r1,PT),me=n=>Wb.test(n),Ks=n=>Hi(n,l1),tR=n=>Hi(n,rR),dx=n=>Hi(n,t1),nR=n=>Hi(n,a1),aR=n=>Hi(n,n1),Gu=n=>Hi(n,r1,!0),qi=(n,a,r)=>{const i=Ib.exec(n);return i?i[1]?a(i[1]):r(i[2]):!1},Hi=(n,a,r=!1)=>{const i=Wb.exec(n);return i?i[1]?a(i[1]):r:!1},t1=n=>n==="position"||n==="percentage",n1=n=>n==="image"||n==="url",a1=n=>n==="length"||n==="size"||n==="bg-size",l1=n=>n==="length",lR=n=>n==="number",rR=n=>n==="family-name",r1=n=>n==="shadow",iR=()=>{const n=jt("color"),a=jt("font"),r=jt("text"),i=jt("font-weight"),o=jt("tracking"),c=jt("leading"),h=jt("breakpoint"),m=jt("container"),p=jt("spacing"),g=jt("radius"),x=jt("shadow"),y=jt("inset-shadow"),w=jt("text-shadow"),S=jt("drop-shadow"),E=jt("blur"),j=jt("perspective"),C=jt("aspect"),_=jt("ease"),T=jt("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...D(),me,he],K=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],q=()=>[me,he,p],G=()=>[si,"full","auto",...q()],te=()=>[pl,"none","subgrid",me,he],ue=()=>["auto",{span:["full",pl,me,he]},pl,me,he],ce=()=>[pl,"auto",me,he],W=()=>["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()],I=()=>[si,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...q()],Y=()=>[n,me,he],X=()=>[...D(),dx,cx,{position:[me,he]}],de=()=>["no-repeat",{repeat:["","x","y","space","round"]}],k=()=>["auto","cover","contain",nR,WT,{size:[me,he]}],F=()=>[wh,Ks,er],ee=()=>["","none","full",g,me,he],le=()=>["",Ae,Ks,er],ve=()=>["solid","dashed","dotted","double"],Se=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[Ae,wh,dx,cx],Ee=()=>["","none",E,me,he],ye=()=>["none",Ae,me,he],Ne=()=>["none",Ae,me,he],He=()=>[Ae,me,he],Ke=()=>[si,"full",...q()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ka],breakpoint:[ka],color:[FT],container:[ka],"drop-shadow":[ka],ease:["in","out","in-out"],font:[IT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ka],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ka],shadow:[ka],spacing:["px",Ae],text:[ka],"text-shadow":[ka],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",si,he,me,C]}],container:["container"],columns:[{columns:[Ae,he,me,m]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:K()}],"overflow-x":[{"overflow-x":K()}],"overflow-y":[{"overflow-y":K()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[pl,"auto",me,he]}],basis:[{basis:[si,"full","auto",m,...q()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,si,"auto","initial","none",he]}],grow:[{grow:["",Ae,me,he]}],shrink:[{shrink:["",Ae,me,he]}],order:[{order:[pl,"first","last","none",me,he]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:ue()}],"col-start":[{"col-start":ce()}],"col-end":[{"col-end":ce()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:ue()}],"row-start":[{"row-start":ce()}],"row-end":[{"row-end":ce()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":W()}],"auto-rows":[{"auto-rows":W()}],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:I()}],w:[{w:[m,"screen",...I()]}],"min-w":[{"min-w":[m,"screen","none",...I()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[h]},...I()]}],h:[{h:["screen",...I()]}],"min-h":[{"min-h":["screen","none",...I()]}],"max-h":[{"max-h":["screen",...I()]}],"font-size":[{text:["base",r,Ks,er]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,me,jh]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wh,he]}],"font-family":[{font:[tR,he,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,me,he]}],"line-clamp":[{"line-clamp":[Ae,"none",me,jh]}],leading:[{leading:[c,...q()]}],"list-image":[{"list-image":["none",me,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",me,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ve(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",me,er]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[Ae,"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:k()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pl,me,he],radial:["",me,he],conic:[pl,me,he]},aR,eR]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:le()}],"border-w-x":[{"border-x":le()}],"border-w-y":[{"border-y":le()}],"border-w-s":[{"border-s":le()}],"border-w-e":[{"border-e":le()}],"border-w-t":[{"border-t":le()}],"border-w-r":[{"border-r":le()}],"border-w-b":[{"border-b":le()}],"border-w-l":[{"border-l":le()}],"divide-x":[{"divide-x":le()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":le()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ve(),"hidden","none"]}],"divide-style":[{divide:[...ve(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ve(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,me,he]}],"outline-w":[{outline:["",Ae,Ks,er]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",x,Gu,Qu]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",y,Gu,Qu]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:le()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[Ae,er]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":le()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",w,Gu,Qu]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[Ae,me,he]}],"mix-blend":[{"mix-blend":[...Se(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Se()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[me,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":D()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:X()}],"mask-repeat":[{mask:de()}],"mask-size":[{mask:k()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",me,he]}],filter:[{filter:["","none",me,he]}],blur:[{blur:Ee()}],brightness:[{brightness:[Ae,me,he]}],contrast:[{contrast:[Ae,me,he]}],"drop-shadow":[{"drop-shadow":["","none",S,Gu,Qu]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",Ae,me,he]}],"hue-rotate":[{"hue-rotate":[Ae,me,he]}],invert:[{invert:["",Ae,me,he]}],saturate:[{saturate:[Ae,me,he]}],sepia:[{sepia:["",Ae,me,he]}],"backdrop-filter":[{"backdrop-filter":["","none",me,he]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,me,he]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,me,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,me,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,me,he]}],"backdrop-invert":[{"backdrop-invert":["",Ae,me,he]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,me,he]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,me,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,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:[Ae,"initial",me,he]}],ease:[{ease:["linear","initial",_,me,he]}],delay:[{delay:[Ae,me,he]}],animate:[{animate:["none",T,me,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[j,me,he]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Ne()}],"scale-x":[{"scale-x":Ne()}],"scale-y":[{"scale-y":Ne()}],"scale-z":[{"scale-z":Ne()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[me,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",me,he]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":q()}],"scroll-mx":[{"scroll-mx":q()}],"scroll-my":[{"scroll-my":q()}],"scroll-ms":[{"scroll-ms":q()}],"scroll-me":[{"scroll-me":q()}],"scroll-mt":[{"scroll-mt":q()}],"scroll-mr":[{"scroll-mr":q()}],"scroll-mb":[{"scroll-mb":q()}],"scroll-ml":[{"scroll-ml":q()}],"scroll-p":[{"scroll-p":q()}],"scroll-px":[{"scroll-px":q()}],"scroll-py":[{"scroll-py":q()}],"scroll-ps":[{"scroll-ps":q()}],"scroll-pe":[{"scroll-pe":q()}],"scroll-pt":[{"scroll-pt":q()}],"scroll-pr":[{"scroll-pr":q()}],"scroll-pb":[{"scroll-pb":q()}],"scroll-pl":[{"scroll-pl":q()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",me,he]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[Ae,Ks,er,jh]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},sR=$T(iR);function pe(...n){return sR(_T(n))}function di(n){return n===null?"-":n<1e3?`${String(n)}ms`:n<6e4?`${(n/1e3).toFixed(1)}s`:`${(n/6e4).toFixed(1)}m`}const oR={sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",xl:"rounded-xl","2xl":"rounded-2xl"},uR={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 sc({children:n,className:a,rounded:r="lg",shadow:i="md",...o}){return u.jsxs("div",{"data-slot":"glass-container",className:pe("relative","bg-card","backdrop-blur-xl","border border-border",oR[r],uR[i],a),...o,children:[u.jsx("div",{className:"absolute inset-0 pointer-events-none dark:block hidden",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 pointer-events-none block dark:hidden",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"relative z-10",children:n})]})}function gt({className:n,rounded:a="2xl",shadow:r="lg",children:i,...o}){return u.jsx(sc,{"data-slot":"card",rounded:a,shadow:r,className:pe("p-6",n),...o,children:i})}function _t({className:n,...a}){return u.jsx("div",{"data-slot":"card-header",className:pe("flex flex-row items-center justify-between space-y-0 pb-2",n),...a})}function Tt({className:n,...a}){return u.jsx("h3",{"data-slot":"card-title",className:pe("font-semibold text-sm leading-none text-card-foreground",n),...a})}function Bt({className:n,...a}){return u.jsx("p",{"data-slot":"card-description",className:pe("text-muted-foreground text-sm",n),...a})}function yt({className:n,...a}){return u.jsx("div",{"data-slot":"card-content",className:pe(n),...a})}/**
|
|
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 cR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),dR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,r,i)=>i?i.toUpperCase():r.toLowerCase()),fx=n=>{const a=dR(n);return a.charAt(0).toUpperCase()+a.slice(1)},i1=(...n)=>n.filter((a,r,i)=>!!a&&a.trim()!==""&&i.indexOf(a)===r).join(" ").trim(),fR=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
|
|
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
|
-
*/var hR={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"};/**
|
|
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 mR=v.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:o="",children:c,iconNode:h,...m},p)=>v.createElement("svg",{ref:p,...hR,width:a,height:a,stroke:n,strokeWidth:i?Number(r)*24/Number(a):r,className:i1("lucide",o),...!c&&!fR(m)&&{"aria-hidden":"true"},...m},[...h.map(([g,x])=>v.createElement(g,x)),...Array.isArray(c)?c:[c]]));/**
|
|
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 Gn=(n,a)=>{const r=v.forwardRef(({className:i,...o},c)=>v.createElement(mR,{ref:c,iconNode:a,className:i1(`lucide-${cR(fx(n))}`,`lucide-${n}`,i),...o}));return r.displayName=fx(n),r};/**
|
|
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 pR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],s1=Gn("check",pR);/**
|
|
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 vR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],gR=Gn("chevron-down",vR);/**
|
|
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 yR=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],hx=Gn("chevron-left",yR);/**
|
|
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 xR=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],mx=Gn("chevron-right",xR);/**
|
|
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 bR=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wR=Gn("chevron-up",bR);/**
|
|
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 jR=[["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"}]],SR=Gn("clipboard",jR);/**
|
|
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 ER=[["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"}]],NR=Gn("file-json",ER);/**
|
|
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 CR=[["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"}]],_R=Gn("file-spreadsheet",CR);/**
|
|
287
|
-
* @license lucide-react v0.511.0 - ISC
|
|
288
|
-
*
|
|
289
|
-
* This source code is licensed under the ISC license.
|
|
290
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
291
|
-
*/const TR=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],RR=Gn("loader-circle",TR);/**
|
|
292
|
-
* @license lucide-react v0.511.0 - ISC
|
|
293
|
-
*
|
|
294
|
-
* This source code is licensed under the ISC license.
|
|
295
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
296
|
-
*/const MR=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],kR=Gn("search",MR);/**
|
|
297
|
-
* @license lucide-react v0.511.0 - ISC
|
|
298
|
-
*
|
|
299
|
-
* This source code is licensed under the ISC license.
|
|
300
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
301
|
-
*/const AR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],DR=Gn("x",AR);function OR(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 Sh({value:n}){const[a,r]=v.useState(!1);return u.jsx("button",{onClick:i=>{i.stopPropagation(),navigator.clipboard.writeText(n).then(()=>{r(!0),setTimeout(()=>{r(!1)},2e3)}).catch(()=>{const o=document.createElement("textarea");o.value=n,document.body.appendChild(o),o.select();try{document.execCommand("copy")}catch{}document.body.removeChild(o),r(!0),setTimeout(()=>{r(!1)},2e3)})},className:pe("p-1 rounded transition-colors flex-shrink-0",a?"text-green-500":"text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"),title:a?"Copied!":"Copy to clipboard",children:a?u.jsx(s1,{className:"w-3 h-3"}):u.jsx(SR,{className:"w-3 h-3"})})}function cn({timestamp:n,className:a,rawValue:r,forceOpen:i=!1}){const[o,c]=v.useState(!1),[,h]=v.useState(0),m=i||o;if(v.useEffect(()=>{const w=setInterval(()=>{h(S=>S+1)},1e3);return()=>{clearInterval(w)}},[]),!n)return null;let p;typeof n=="number"?p=new Date(n<1e10?n*1e3:n):p=new Date(n);const g=p.toISOString(),x=p.toLocaleString(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"}),y=OR(p);return u.jsxs("div",{className:pe("relative inline-block",a),onMouseEnter:()=>{c(!0)},onMouseLeave:()=>{c(!1)},children:[u.jsx("time",{dateTime:g,className:"cursor-help border-b border-gray-400 dark:border-gray-400 text-gray-700 dark:text-gray-300",children:y}),u.jsx("div",{className:pe("absolute bottom-full left-1/2 -translate-x-1/2 mb-2 z-[9999] w-72","transition-all duration-200 ease-out origin-bottom",m?"opacity-100 scale-100 translate-y-0":"opacity-0 scale-95 translate-y-2 pointer-events-none"),children:u.jsx(sc,{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(Sh,{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(Sh,{value:g})]})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-[10px] uppercase tracking-wider text-gray-500 dark:text-gray-400 font-semibold mb-0.5",children:"Local Time"}),u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx("span",{className:"text-gray-700 dark:text-gray-200 leading-tight",children:x}),u.jsx(Sh,{value:x})]})]})]})})})]})}function zR(n){return n<1e3?`${n.toFixed(2)}ms`:`${(n/1e3).toFixed(2)}s`}function LR(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 UR(n){const a=n.toLowerCase();return!!(a.includes("created")||a.includes("date")||a.includes("updated")||n.endsWith("At")||a.endsWith("_at"))}function qR(n,a){for(const r of a){const i=r[n];if(i!=null)return typeof i=="boolean"?"bool":typeof i=="number"&&UR(n)?"date":typeof i=="number"?"number":LR(i)?"date":"string"}return"string"}function o1({results:n,meta:a,columns:r,error:i,title:o="Results",pageSize:c=25,onExportCsv:h,onExportJson:m,serverPagination:p}){const[g,x]=v.useState(""),[y,w]=v.useState(null),[S,E]=v.useState(new Set),[j,C]=v.useState(1),_=!!p,T=p?Math.floor(p.offset/p.limit)+1:1,R=p?Math.ceil(p.total/p.limit):1,D=v.useMemo(()=>r||(n.length===0?[]:Object.keys(n[0]).map(W=>({key:W,label:W,type:qR(W,n)}))),[r,n]),L=v.useMemo(()=>g?n.filter(W=>Object.values(W).some(ie=>String(ie).toLowerCase().includes(g.toLowerCase()))):n,[n,g]),K=v.useMemo(()=>y?[...L].sort((W,ie)=>{const re=W[y.key],U=ie[y.key];return re==null?1:U==null?-1:re<U?y.direction==="asc"?-1:1:re>U?y.direction==="asc"?1:-1:0}):L,[L,y]),H=Math.ceil(K.length/c),q=v.useMemo(()=>{const W=(j-1)*c;return K.slice(W,W+c)},[K,j,c]);v.useMemo(()=>{C(1)},[g,y]);const G=W=>{w(ie=>(ie==null?void 0:ie.key)===W?ie.direction==="asc"?{key:W,direction:"desc"}:null:{key:W,direction:"asc"})},te=()=>{S.size===q.length?E(new Set):E(new Set(q.map((W,ie)=>ie)))},ue=W=>{const ie=new Set(S);ie.has(W)?ie.delete(W):ie.add(W),E(ie)},ce=(W,ie)=>{const re=W[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(s1,{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(DR,{className:"w-3.5 h-3.5"})});case"date":return u.jsx(cn,{timestamp:re,rawValue:typeof re=="number"?re:void 0});case"number":return u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:typeof re=="number"?re.toLocaleString():JSON.stringify(re)});default:return typeof re=="object"?u.jsx("span",{className:"text-sm font-mono dark:text-gray-300 text-gray-700",children:JSON.stringify(re)}):u.jsx("span",{className:"text-sm dark:text-gray-300 text-gray-700",children:typeof re=="object"?JSON.stringify(re):String(re)})}};return i?u.jsxs(sc,{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(sc,{rounded:"2xl",shadow:"lg",className:"flex flex-col",children:[u.jsxs("div",{className:"p-5 border-b dark:border-white/[0.08] border-gray-200 flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("h2",{className:"text-lg font-semibold dark:text-white text-gray-900",children:o}),a&&u.jsx("span",{className:"px-2 py-0.5 rounded-full text-xs font-medium bg-green-500/10 text-green-600 dark:text-green-400 border border-green-500/20",children:zR(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(kR,{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:W=>{x(W.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(_R,{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(NR,{className:"w-4 h-4"})})]})]})]}),u.jsx("div",{className:"overflow-x-auto overflow-y-visible",children:u.jsxs("table",{className:"w-full text-left border-collapse font-mono",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"border-b dark:border-white/[0.08] border-gray-200 bg-gray-50/50 dark:bg-white/[0.02]",children:[u.jsx("th",{className:"p-4 w-12",children:u.jsx("input",{type:"checkbox",checked:S.size===q.length&&q.length>0,onChange:te,className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(W=>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(W.key)},children:u.jsxs("div",{className:"flex items-center gap-1",children:[W.label,u.jsxs("div",{className:pe("flex flex-col opacity-0 group-hover:opacity-50",(y==null?void 0:y.key)===W.key&&"opacity-100"),children:[u.jsx(wR,{className:pe("w-2 h-2",(y==null?void 0:y.key)===W.key&&y.direction==="asc"&&"text-blue-500")}),u.jsx(gR,{className:pe("w-2 h-2",(y==null?void 0:y.key)===W.key&&y.direction==="desc"&&"text-blue-500")})]})]})},W.key))]})}),u.jsx("tbody",{className:"divide-y dark:divide-white/[0.04] divide-gray-100",children:q.length>0?q.map((W,ie)=>u.jsxs("tr",{className:pe("group transition-colors",S.has(ie)?"bg-blue-50/50 dark:bg-blue-500/10":"hover:bg-gray-50 dark:hover:bg-white/[0.02]"),children:[u.jsx("td",{className:"p-4",children:u.jsx("input",{type:"checkbox",checked:S.has(ie),onChange:()=>{ue(ie)},className:"rounded border-gray-300 text-blue-600 focus:ring-blue-500 bg-transparent"})}),D.map(re=>u.jsx("td",{className:"p-4 whitespace-nowrap",children:ce(W,re)},`${String(ie)}-${re.key}`))]},ie)):u.jsx("tr",{children:u.jsx("td",{colSpan:D.length+1,className:"p-8 text-center text-gray-500 dark:text-gray-400",children:g?`No results found matching "${g}"`:"Query executed successfully. No rows returned."})})})]})}),u.jsxs("div",{className:"p-4 border-t dark:border-white/[0.08] border-gray-200 flex items-center justify-between text-xs text-gray-500 dark:text-gray-400",children:[u.jsxs("div",{children:[_?u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.offset+1}),"-",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:Math.min(p.offset+n.length,p.total)})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:p.total})," ","total"]}):u.jsxs(u.Fragment,{children:["Showing"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:q.length})," ","of"," ",u.jsx("span",{className:"font-medium dark:text-white text-gray-900",children:K.length})," ","results"]}),S.size>0&&u.jsxs("span",{className:"ml-3 text-blue-500 font-medium",children:[S.size," row",S.size!==1?"s":""," ","selected"]})]}),_&&R>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{p.onPageChange(Math.max(0,p.offset-p.limit))},disabled:T===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(hx,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(R,5)},(W,ie)=>{let re;return R<=5||T<=3?re=ie+1:T>=R-2?re=R-4+ie:re=T-2+ie,u.jsx("button",{onClick:()=>{p.onPageChange((re-1)*p.limit)},className:pe("px-2.5 py-1 rounded-lg font-medium transition-colors",T===re?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:re},re)})}),u.jsx("button",{onClick:()=>{p.onPageChange(p.offset+p.limit)},disabled:T===R,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(mx,{className:"w-4 h-4"})})]}),!_&&H>1&&u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("button",{onClick:()=>{C(W=>Math.max(1,W-1))},disabled:j===1,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(hx,{className:"w-4 h-4"})}),u.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(H,5)},(W,ie)=>{let re;return H<=5||j<=3?re=ie+1:j>=H-2?re=H-4+ie:re=j-2+ie,u.jsx("button",{onClick:()=>{C(re)},className:pe("px-2.5 py-1 rounded-lg font-medium transition-colors",j===re?"bg-blue-500/10 text-blue-600 dark:text-blue-400":"hover:bg-gray-100 dark:hover:bg-white/[0.06]"),children:re},re)})}),u.jsx("button",{onClick:()=>{C(W=>Math.min(H,W+1))},disabled:j===H,className:"p-1.5 rounded-lg hover:bg-gray-100 dark:hover:bg-white/[0.06] disabled:opacity-30 disabled:cursor-not-allowed transition-colors",children:u.jsx(mx,{className:"w-4 h-4"})})]})]})]})}function na({className:n,...a}){return u.jsx("table",{"data-slot":"table",className:pe("w-full caption-bottom text-sm",n),...a})}function aa({className:n,...a}){return u.jsx("thead",{"data-slot":"table-header",className:pe("[&_tr]:border-b",n),...a})}function la({className:n,...a}){return u.jsx("tbody",{"data-slot":"table-body",className:pe("[&_tr:last-child]:border-0",n),...a})}function xt({className:n,...a}){return u.jsx("tr",{"data-slot":"table-row",className:pe("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function Re({className:n,...a}){return u.jsx("th",{"data-slot":"table-head",className:pe("text-foreground h-10 whitespace-nowrap px-2 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function Me({className:n,...a}){return u.jsx("td",{"data-slot":"table-cell",className:pe("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function px(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function vo(...n){return a=>{let r=!1;const i=n.map(o=>{const c=px(o,a);return!r&&typeof c=="function"&&(r=!0),c});if(r)return()=>{for(let o=0;o<i.length;o++){const c=i[o];typeof c=="function"?c():px(n[o],null)}}}}function we(...n){return v.useCallback(vo(...n),n)}function hr(n){const a=HR(n),r=v.forwardRef((i,o)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(BR);if(p){const g=p.props.children,x=m.map(y=>y===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:y);return u.jsx(a,{...h,ref:o,children:v.isValidElement(g)?v.cloneElement(g,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:c})});return r.displayName=`${n}.Slot`,r}var vx=hr("Slot");function HR(n){const a=v.forwardRef((r,i)=>{const{children:o,...c}=r;if(v.isValidElement(o)){const h=QR(o),m=$R(c,o.props);return o.type!==v.Fragment&&(m.ref=i?vo(i,h):h),v.cloneElement(o,m)}return v.Children.count(o)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var u1=Symbol("radix.slottable");function c1(n){const a=({children:r})=>u.jsx(u.Fragment,{children:r});return a.displayName=`${n}.Slottable`,a.__radixId=u1,a}function BR(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===u1}function $R(n,a){const r={...a};for(const i in a){const o=n[i],c=a[i];/^on[A-Z]/.test(i)?o&&c?r[i]=(...h)=>{const m=c(...h);return o(...h),m}:o&&(r[i]=o):i==="style"?r[i]={...o,...c}:i==="className"&&(r[i]=[o,c].filter(Boolean).join(" "))}return{...n,...r}}function QR(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}function d1(n){var a,r,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;a++)n[a]&&(r=d1(n[a]))&&(i&&(i+=" "),i+=r)}else for(r in n)n[r]&&(i&&(i+=" "),i+=r);return i}function GR(){for(var n,a,r=0,i="",o=arguments.length;r<o;r++)(n=arguments[r])&&(a=d1(n))&&(i&&(i+=" "),i+=a);return i}const gx=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,yx=GR,f1=(n,a)=>r=>{var i;if((a==null?void 0:a.variants)==null)return yx(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:c}=a,h=Object.keys(o).map(g=>{const x=r==null?void 0:r[g],y=c==null?void 0:c[g];if(x===null)return null;const w=gx(x)||gx(y);return o[g][w]}),m=r&&Object.entries(r).reduce((g,x)=>{let[y,w]=x;return w===void 0||(g[y]=w),g},{}),p=a==null||(i=a.compoundVariants)===null||i===void 0?void 0:i.reduce((g,x)=>{let{class:y,className:w,...S}=x;return Object.entries(S).every(E=>{let[j,C]=E;return Array.isArray(C)?C.includes({...c,...m}[j]):{...c,...m}[j]===C})?[...g,y,w]:g},[]);return yx(n,h,p,r==null?void 0:r.class,r==null?void 0:r.className)},YR={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 Ri({className:n,icon:a,variant:r="default",children:i,...o}){return u.jsxs("div",{className:pe("inline-flex items-center gap-1.5 px-2.5 py-1.5 text-xs font-medium rounded-lg border [&_svg]:w-3 [&_svg]:h-3",YR[r],n),...o,children:[a&&u.jsx("span",{className:"flex-shrink-0",children:a}),u.jsx("span",{className:"leading-none",children:i})]})}const xx=f1("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"}}),VR=["primary","secondary","danger","success","icon"];function Ye({className:n,variant:a,size:r,asChild:i=!1,isLoading:o=!1,children:c,disabled:h,...m}){const p=i?vx:"button",g=a&&VR.includes(a);return i?u.jsx(vx,{"data-slot":"button",className:pe(xx({variant:a,size:r,className:n})),...m,children:c}):u.jsxs(p,{"data-slot":"button",className:pe(xx({variant:a,size:r,className:n})),disabled:h===!0||o,...m,children:[g&&u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),u.jsxs("span",{className:"relative z-10 flex items-center justify-center gap-2",children:[o&&u.jsx(RR,{className:"size-4 animate-spin"}),c]})]})}const h1=({ref:n,className:a,active:r=!1,icon:i,children:o,"data-state":c,...h})=>{const m=r||c==="active";return u.jsxs("button",{ref:n,"data-slot":"tab-button","data-state":c,className:pe("group relative flex items-center gap-2 px-4 py-2 text-sm font-medium transition-colors duration-200 cursor-pointer","dark:text-gray-400 text-gray-600 dark:hover:text-white hover:text-gray-900",m&&"dark:text-white text-gray-900",a),...h,children:[i&&u.jsx(i,{className:"size-4"}),o,u.jsx("span",{className:pe("absolute bottom-0 left-0 right-0 h-[2px]","bg-gradient-to-r from-transparent dark:via-white/60 via-black/60 to-transparent","transition-transform duration-300",m?"scale-x-100":"scale-x-0")})]})};h1.displayName="TabButton";const KR={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-5 text-base"};function m1({className:n,label:a,error:r,leftIcon:i,rightContent:o,inputSize:c="md",...h}){return u.jsxs("div",{className:"w-full",children:[a&&u.jsx("label",{className:"block text-sm font-medium dark:text-white text-gray-900 mb-2",children:a}),u.jsx("div",{className:"relative",children:u.jsxs("div",{className:pe("relative flex items-center overflow-hidden","border backdrop-blur-xl rounded-lg","dark:shadow-[0_4px_16px_rgba(0,0,0,0.3)] shadow-[0_1px_4px_rgba(0,0,0,0.04)]","dark:bg-[#1a1a1a] bg-white","dark:border-white/[0.08] border-gray-200","transition-all duration-200","focus-within:dark:border-white/[0.15] focus-within:border-gray-300",r&&"dark:border-red-500/[0.3] border-red-500",n),children:[u.jsxs("div",{className:"absolute inset-0 pointer-events-none z-0",children:[u.jsx("div",{className:"absolute inset-0 dark:opacity-0 opacity-100",style:{background:"radial-gradient(circle at top left, rgba(0, 0, 0, 0.06) 0%, transparent 50%)"}}),u.jsx("div",{className:"absolute inset-0 opacity-0 dark:opacity-100",style:{background:"radial-gradient(circle at top left, rgba(255, 255, 255, 0.08) 0%, transparent 50%)"}})]}),i&&u.jsx("div",{className:"relative z-10 pl-4",children:u.jsx(i,{className:"w-4 h-4 dark:text-gray-400 text-gray-600 flex-shrink-0"})}),u.jsx("input",{className:pe("relative z-10 flex-1 bg-transparent border-0 outline-none","dark:text-white text-gray-900","dark:placeholder:text-gray-500 placeholder:text-gray-400","disabled:opacity-50 disabled:cursor-not-allowed",KR[c],i&&"pl-2",o!==null&&"pr-2"),...h}),o&&u.jsx("div",{className:"relative z-10 pr-3",children:o})]})}),r&&u.jsx("p",{className:"mt-2 text-xs dark:text-red-400 text-red-600",children:r})]})}var XR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],se=XR.reduce((n,a)=>{const r=hr(`Primitive.${a}`),i=v.forwardRef((o,c)=>{const{asChild:h,...m}=o,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{});function oc(n,a){n&&ho.flushSync(()=>n.dispatchEvent(a))}var lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{};function FR(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Et=n=>{const{present:a,children:r}=n,i=ZR(a),o=typeof r=="function"?r({present:i.isPresent}):v.Children.only(r),c=we(i.ref,PR(o));return typeof r=="function"||i.isPresent?v.cloneElement(o,{ref:c}):null};Et.displayName="Presence";function ZR(n){const[a,r]=v.useState(),i=v.useRef(null),o=v.useRef(n),c=v.useRef("none"),h=n?"mounted":"unmounted",[m,p]=FR(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,x=o.current;if(x!==n){const y=c.current,w=Yu(g);n?p("MOUNT"):w==="none"||(g==null?void 0:g.display)==="none"?p("UNMOUNT"):p(x&&y!==w?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,p]),lt(()=>{if(a){let g;const x=a.ownerDocument.defaultView??window,y=S=>{const E=Yu(i.current).includes(CSS.escape(S.animationName));if(S.target===a&&E&&(p("ANIMATION_END"),!o.current)){const j=a.style.animationFillMode;a.style.animationFillMode="forwards",g=x.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=j)})}},w=S=>{S.target===a&&(c.current=Yu(i.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",y),a.addEventListener("animationend",y),()=>{x.clearTimeout(g),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",y),a.removeEventListener("animationend",y)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(g=>{i.current=g?getComputedStyle(g):null,r(g)},[])}}function Yu(n){return(n==null?void 0:n.animationName)||"none"}function PR(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}function JR(n,a){const r=v.createContext(a),i=c=>{const{children:h,...m}=c,p=v.useMemo(()=>m,Object.values(m));return u.jsx(r.Provider,{value:p,children:h})};i.displayName=n+"Provider";function o(c){const h=v.useContext(r);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[i,o]}function bt(n,a=[]){let r=[];function i(c,h){const m=v.createContext(h),p=r.length;r=[...r,h];const g=y=>{var w;const{scope:S,children:E,...j}=y,C=((w=S==null?void 0:S[n])==null?void 0:w[p])||m,_=v.useMemo(()=>j,Object.values(j));return u.jsx(C.Provider,{value:_,children:E})};g.displayName=c+"Provider";function x(y,w){var S;const E=((S=w==null?void 0:w[n])==null?void 0:S[p])||m,j=v.useContext(E);if(j)return j;if(h!==void 0)return h;throw new Error(`\`${y}\` must be used within \`${c}\``)}return[g,x]}const o=()=>{const c=r.map(h=>v.createContext(h));return function(h){const m=(h==null?void 0:h[n])||c;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:m}}),[h,m])}};return o.scopeName=n,[i,IR(o,...a)]}function IR(...n){const a=n[0];if(n.length===1)return a;const r=()=>{const i=n.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(o){const c=i.reduce((h,{useScope:m,scopeName:p})=>{const g=m(o)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${a.scopeName}`]:c}),[c])}};return r.scopeName=a.scopeName,r}function nt(n){const a=v.useRef(n);return v.useEffect(()=>{a.current=n}),v.useMemo(()=>(...r)=>{var i;return(i=a.current)==null?void 0:i.call(a,...r)},[])}var WR=v.createContext(void 0);function Bi(n){const a=v.useContext(WR);return n||a||"ltr"}function am(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 eM(n,a){return v.useReducer((r,i)=>a[r][i]??r,n)}var Um="ScrollArea",[p1,Yz]=bt(Um),[tM,Rn]=p1(Um),v1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,type:i="hover",dir:o,scrollHideDelay:c=600,...h}=n,[m,p]=v.useState(null),[g,x]=v.useState(null),[y,w]=v.useState(null),[S,E]=v.useState(null),[j,C]=v.useState(null),[_,T]=v.useState(0),[R,D]=v.useState(0),[L,K]=v.useState(!1),[H,q]=v.useState(!1),G=we(a,ue=>p(ue)),te=Bi(o);return u.jsx(tM,{scope:r,type:i,dir:te,scrollHideDelay:c,scrollArea:m,viewport:g,onViewportChange:x,content:y,onContentChange:w,scrollbarX:S,onScrollbarXChange:E,scrollbarXEnabled:L,onScrollbarXEnabledChange:K,scrollbarY:j,onScrollbarYChange:C,scrollbarYEnabled:H,onScrollbarYEnabledChange:q,onCornerWidthChange:T,onCornerHeightChange:D,children:u.jsx(se.div,{dir:te,...h,ref:G,style:{position:"relative","--radix-scroll-area-corner-width":_+"px","--radix-scroll-area-corner-height":R+"px",...n.style}})})});v1.displayName=Um;var g1="ScrollAreaViewport",y1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,children:i,nonce:o,...c}=n,h=Rn(g1,r),m=v.useRef(null),p=we(a,m,h.onViewportChange);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),u.jsx(se.div,{"data-radix-scroll-area-viewport":"",...c,ref:p,style:{overflowX:h.scrollbarXEnabled?"scroll":"hidden",overflowY:h.scrollbarYEnabled?"scroll":"hidden",...n.style},children:u.jsx("div",{ref:h.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});y1.displayName=g1;var ra="ScrollAreaScrollbar",x1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Rn(ra,n.__scopeScrollArea),{onScrollbarXEnabledChange:c,onScrollbarYEnabledChange:h}=o,m=n.orientation==="horizontal";return v.useEffect(()=>(m?c(!0):h(!0),()=>{m?c(!1):h(!1)}),[m,c,h]),o.type==="hover"?u.jsx(nM,{...i,ref:a,forceMount:r}):o.type==="scroll"?u.jsx(aM,{...i,ref:a,forceMount:r}):o.type==="auto"?u.jsx(b1,{...i,ref:a,forceMount:r}):o.type==="always"?u.jsx(qm,{...i,ref:a}):null});x1.displayName=ra;var nM=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Rn(ra,n.__scopeScrollArea),[c,h]=v.useState(!1);return v.useEffect(()=>{const m=o.scrollArea;let p=0;if(m){const g=()=>{window.clearTimeout(p),h(!0)},x=()=>{p=window.setTimeout(()=>h(!1),o.scrollHideDelay)};return m.addEventListener("pointerenter",g),m.addEventListener("pointerleave",x),()=>{window.clearTimeout(p),m.removeEventListener("pointerenter",g),m.removeEventListener("pointerleave",x)}}},[o.scrollArea,o.scrollHideDelay]),u.jsx(Et,{present:r||c,children:u.jsx(b1,{"data-state":c?"visible":"hidden",...i,ref:a})})}),aM=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Rn(ra,n.__scopeScrollArea),c=n.orientation==="horizontal",h=_c(()=>p("SCROLL_END"),100),[m,p]=eM("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return v.useEffect(()=>{if(m==="idle"){const g=window.setTimeout(()=>p("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(g)}},[m,o.scrollHideDelay,p]),v.useEffect(()=>{const g=o.viewport,x=c?"scrollLeft":"scrollTop";if(g){let y=g[x];const w=()=>{const S=g[x];y!==S&&(p("SCROLL"),h()),y=S};return g.addEventListener("scroll",w),()=>g.removeEventListener("scroll",w)}},[o.viewport,c,p,h]),u.jsx(Et,{present:r||m!=="hidden",children:u.jsx(qm,{"data-state":m==="hidden"?"hidden":"visible",...i,ref:a,onPointerEnter:ae(n.onPointerEnter,()=>p("POINTER_ENTER")),onPointerLeave:ae(n.onPointerLeave,()=>p("POINTER_LEAVE"))})})}),b1=v.forwardRef((n,a)=>{const r=Rn(ra,n.__scopeScrollArea),{forceMount:i,...o}=n,[c,h]=v.useState(!1),m=n.orientation==="horizontal",p=_c(()=>{if(r.viewport){const g=r.viewport.offsetWidth<r.viewport.scrollWidth,x=r.viewport.offsetHeight<r.viewport.scrollHeight;h(m?g:x)}},10);return Mi(r.viewport,p),Mi(r.content,p),u.jsx(Et,{present:i||c,children:u.jsx(qm,{"data-state":c?"visible":"hidden",...o,ref:a})})}),qm=v.forwardRef((n,a)=>{const{orientation:r="vertical",...i}=n,o=Rn(ra,n.__scopeScrollArea),c=v.useRef(null),h=v.useRef(0),[m,p]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),g=N1(m.viewport,m.content),x={...i,sizes:m,onSizesChange:p,hasThumb:g>0&&g<1,onThumbChange:w=>c.current=w,onThumbPointerUp:()=>h.current=0,onThumbPointerDown:w=>h.current=w};function y(w,S){return uM(w,h.current,m,S)}return r==="horizontal"?u.jsx(lM,{...x,ref:a,onThumbPositionChange:()=>{if(o.viewport&&c.current){const w=o.viewport.scrollLeft,S=bx(w,m,o.dir);c.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:w=>{o.viewport&&(o.viewport.scrollLeft=w)},onDragScroll:w=>{o.viewport&&(o.viewport.scrollLeft=y(w,o.dir))}}):r==="vertical"?u.jsx(rM,{...x,ref:a,onThumbPositionChange:()=>{if(o.viewport&&c.current){const w=o.viewport.scrollTop,S=bx(w,m);c.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:w=>{o.viewport&&(o.viewport.scrollTop=w)},onDragScroll:w=>{o.viewport&&(o.viewport.scrollTop=y(w))}}):null}),lM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...o}=n,c=Rn(ra,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarXChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(j1,{"data-orientation":"horizontal",...o,ref:g,sizes:r,style:{bottom:0,left:c.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:c.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Cc(r)+"px",...n.style},onThumbPointerDown:x=>n.onThumbPointerDown(x.x),onDragScroll:x=>n.onDragScroll(x.x),onWheelScroll:(x,y)=>{if(c.viewport){const w=c.viewport.scrollLeft+x.deltaX;n.onWheelScroll(w),_1(w,y)&&x.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollWidth,viewport:c.viewport.offsetWidth,scrollbar:{size:p.current.clientWidth,paddingStart:cc(h.paddingLeft),paddingEnd:cc(h.paddingRight)}})}})}),rM=v.forwardRef((n,a)=>{const{sizes:r,onSizesChange:i,...o}=n,c=Rn(ra,n.__scopeScrollArea),[h,m]=v.useState(),p=v.useRef(null),g=we(a,p,c.onScrollbarYChange);return v.useEffect(()=>{p.current&&m(getComputedStyle(p.current))},[p]),u.jsx(j1,{"data-orientation":"vertical",...o,ref:g,sizes:r,style:{top:0,right:c.dir==="ltr"?0:void 0,left:c.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Cc(r)+"px",...n.style},onThumbPointerDown:x=>n.onThumbPointerDown(x.y),onDragScroll:x=>n.onDragScroll(x.y),onWheelScroll:(x,y)=>{if(c.viewport){const w=c.viewport.scrollTop+x.deltaY;n.onWheelScroll(w),_1(w,y)&&x.preventDefault()}},onResize:()=>{p.current&&c.viewport&&h&&i({content:c.viewport.scrollHeight,viewport:c.viewport.offsetHeight,scrollbar:{size:p.current.clientHeight,paddingStart:cc(h.paddingTop),paddingEnd:cc(h.paddingBottom)}})}})}),[iM,w1]=p1(ra),j1=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,sizes:i,hasThumb:o,onThumbChange:c,onThumbPointerUp:h,onThumbPointerDown:m,onThumbPositionChange:p,onDragScroll:g,onWheelScroll:x,onResize:y,...w}=n,S=Rn(ra,r),[E,j]=v.useState(null),C=we(a,G=>j(G)),_=v.useRef(null),T=v.useRef(""),R=S.viewport,D=i.content-i.viewport,L=nt(x),K=nt(p),H=_c(y,10);function q(G){if(_.current){const te=G.clientX-_.current.left,ue=G.clientY-_.current.top;g({x:te,y:ue})}}return v.useEffect(()=>{const G=te=>{const ue=te.target;E!=null&&E.contains(ue)&&L(te,D)};return document.addEventListener("wheel",G,{passive:!1}),()=>document.removeEventListener("wheel",G,{passive:!1})},[R,E,D,L]),v.useEffect(K,[i,K]),Mi(E,H),Mi(S.content,H),u.jsx(iM,{scope:r,scrollbar:E,hasThumb:o,onThumbChange:nt(c),onThumbPointerUp:nt(h),onThumbPositionChange:K,onThumbPointerDown:nt(m),children:u.jsx(se.div,{...w,ref:C,style:{position:"absolute",...w.style},onPointerDown:ae(n.onPointerDown,G=>{G.button===0&&(G.target.setPointerCapture(G.pointerId),_.current=E.getBoundingClientRect(),T.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),q(G))}),onPointerMove:ae(n.onPointerMove,q),onPointerUp:ae(n.onPointerUp,G=>{const te=G.target;te.hasPointerCapture(G.pointerId)&&te.releasePointerCapture(G.pointerId),document.body.style.webkitUserSelect=T.current,S.viewport&&(S.viewport.style.scrollBehavior=""),_.current=null})})})}),uc="ScrollAreaThumb",S1=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=w1(uc,n.__scopeScrollArea);return u.jsx(Et,{present:r||o.hasThumb,children:u.jsx(sM,{ref:a,...i})})}),sM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,style:i,...o}=n,c=Rn(uc,r),h=w1(uc,r),{onThumbPositionChange:m}=h,p=we(a,y=>h.onThumbChange(y)),g=v.useRef(void 0),x=_c(()=>{g.current&&(g.current(),g.current=void 0)},100);return v.useEffect(()=>{const y=c.viewport;if(y){const w=()=>{if(x(),!g.current){const S=cM(y,m);g.current=S,m()}};return m(),y.addEventListener("scroll",w),()=>y.removeEventListener("scroll",w)}},[c.viewport,x,m]),u.jsx(se.div,{"data-state":h.hasThumb?"visible":"hidden",...o,ref:p,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:ae(n.onPointerDownCapture,y=>{const w=y.target.getBoundingClientRect(),S=y.clientX-w.left,E=y.clientY-w.top;h.onThumbPointerDown({x:S,y:E})}),onPointerUp:ae(n.onPointerUp,h.onThumbPointerUp)})});S1.displayName=uc;var Hm="ScrollAreaCorner",E1=v.forwardRef((n,a)=>{const r=Rn(Hm,n.__scopeScrollArea),i=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&i?u.jsx(oM,{...n,ref:a}):null});E1.displayName=Hm;var oM=v.forwardRef((n,a)=>{const{__scopeScrollArea:r,...i}=n,o=Rn(Hm,r),[c,h]=v.useState(0),[m,p]=v.useState(0),g=!!(c&&m);return Mi(o.scrollbarX,()=>{var x;const y=((x=o.scrollbarX)==null?void 0:x.offsetHeight)||0;o.onCornerHeightChange(y),p(y)}),Mi(o.scrollbarY,()=>{var x;const y=((x=o.scrollbarY)==null?void 0:x.offsetWidth)||0;o.onCornerWidthChange(y),h(y)}),g?u.jsx(se.div,{...i,ref:a,style:{width:c,height:m,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...n.style}}):null});function cc(n){return n?parseInt(n,10):0}function N1(n,a){const r=n/a;return isNaN(r)?0:r}function Cc(n){const a=N1(n.viewport,n.content),r=n.scrollbar.paddingStart+n.scrollbar.paddingEnd,i=(n.scrollbar.size-r)*a;return Math.max(i,18)}function uM(n,a,r,i="ltr"){const o=Cc(r),c=o/2,h=a||c,m=o-h,p=r.scrollbar.paddingStart+h,g=r.scrollbar.size-r.scrollbar.paddingEnd-m,x=r.content-r.viewport,y=i==="ltr"?[0,x]:[x*-1,0];return C1([p,g],y)(n)}function bx(n,a,r="ltr"){const i=Cc(a),o=a.scrollbar.paddingStart+a.scrollbar.paddingEnd,c=a.scrollbar.size-o,h=a.content-a.viewport,m=c-i,p=r==="ltr"?[0,h]:[h*-1,0],g=am(n,p);return C1([0,h],[0,m])(g)}function C1(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 _1(n,a){return n>0&&n<a}var cM=(n,a=()=>{})=>{let r={left:n.scrollLeft,top:n.scrollTop},i=0;return(function o(){const c={left:n.scrollLeft,top:n.scrollTop},h=r.left!==c.left,m=r.top!==c.top;(h||m)&&a(),r=c,i=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(i)};function _c(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 Mi(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(n),()=>{window.cancelAnimationFrame(i),o.unobserve(n)}}},[n,r])}var dM=v1,fM=y1,hM=E1;function T1({className:n,children:a,...r}){return u.jsxs(dM,{"data-slot":"scroll-area",className:pe("relative",n),...r,children:[u.jsx(fM,{"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(mM,{}),u.jsx(hM,{})]})}function mM({className:n,orientation:a="vertical",...r}){return u.jsx(x1,{"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(S1,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}var pM=jb[" useInsertionEffect ".trim().toString()]||lt;function ia({prop:n,defaultProp:a,onChange:r=()=>{},caller:i}){const[o,c,h]=vM({defaultProp:a,onChange:r}),m=n!==void 0,p=m?n:o;{const x=v.useRef(n!==void 0);v.useEffect(()=>{const y=x.current;y!==m&&console.warn(`${i} is changing from ${y?"controlled":"uncontrolled"} to ${m?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=m},[m,i])}const g=v.useCallback(x=>{var y;if(m){const w=gM(x)?x(n):x;w!==n&&((y=h.current)==null||y.call(h,w))}else c(x)},[m,n,c,h]);return[p,g]}function vM({defaultProp:n,onChange:a}){const[r,i]=v.useState(n),o=v.useRef(r),c=v.useRef(a);return pM(()=>{c.current=a},[a]),v.useEffect(()=>{var h;o.current!==r&&((h=c.current)==null||h.call(c,r),o.current=r)},[r,o]),[r,i,c]}function gM(n){return typeof n=="function"}function $i(n){const a=n+"CollectionProvider",[r,i]=bt(a),[o,c]=r(a,{collectionRef:{current:null},itemMap:new Map}),h=j=>{const{scope:C,children:_}=j,T=ot.useRef(null),R=ot.useRef(new Map).current;return u.jsx(o,{scope:C,itemMap:R,collectionRef:T,children:_})};h.displayName=a;const m=n+"CollectionSlot",p=hr(m),g=ot.forwardRef((j,C)=>{const{scope:_,children:T}=j,R=c(m,_),D=we(C,R.collectionRef);return u.jsx(p,{ref:D,children:T})});g.displayName=m;const x=n+"CollectionItemSlot",y="data-radix-collection-item",w=hr(x),S=ot.forwardRef((j,C)=>{const{scope:_,children:T,...R}=j,D=ot.useRef(null),L=we(C,D),K=c(x,_);return ot.useEffect(()=>(K.itemMap.set(D,{ref:D,...R}),()=>void K.itemMap.delete(D))),u.jsx(w,{[y]:"",ref:L,children:T})});S.displayName=x;function E(j){const C=c(n+"CollectionConsumer",j);return ot.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const T=Array.from(_.querySelectorAll(`[${y}]`));return Array.from(C.itemMap.values()).sort((R,D)=>T.indexOf(R.ref.current)-T.indexOf(D.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:h,Slot:g,ItemSlot:S},E,i]}function yM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n);v.useEffect(()=>{const i=o=>{o.key==="Escape"&&r(o)};return a.addEventListener("keydown",i,{capture:!0}),()=>a.removeEventListener("keydown",i,{capture:!0})},[r,a])}var xM="DismissableLayer",lm="dismissableLayer.update",bM="dismissableLayer.pointerDownOutside",wM="dismissableLayer.focusOutside",wx,R1=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qi=v.forwardRef((n,a)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:h,onDismiss:m,...p}=n,g=v.useContext(R1),[x,y]=v.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,S]=v.useState({}),E=we(a,H=>y(H)),j=Array.from(g.layers),[C]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),_=j.indexOf(C),T=x?j.indexOf(x):-1,R=g.layersWithOutsidePointerEventsDisabled.size>0,D=T>=_,L=EM(H=>{const q=H.target,G=[...g.branches].some(te=>te.contains(q));!D||G||(o==null||o(H),h==null||h(H),H.defaultPrevented||m==null||m())},w),K=NM(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 yM(H=>{T===g.layers.size-1&&(i==null||i(H),!H.defaultPrevented&&m&&(H.preventDefault(),m()))},w),v.useEffect(()=>{if(x)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(wx=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),jx(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=wx)}},[x,w,r,g]),v.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),jx())},[x,g]),v.useEffect(()=>{const H=()=>S({});return document.addEventListener(lm,H),()=>document.removeEventListener(lm,H)},[]),u.jsx(se.div,{...p,ref:E,style:{pointerEvents:R?D?"auto":"none":void 0,...n.style},onFocusCapture:ae(n.onFocusCapture,K.onFocusCapture),onBlurCapture:ae(n.onBlurCapture,K.onBlurCapture),onPointerDownCapture:ae(n.onPointerDownCapture,L.onPointerDownCapture)})});Qi.displayName=xM;var jM="DismissableLayerBranch",SM=v.forwardRef((n,a)=>{const r=v.useContext(R1),i=v.useRef(null),o=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return r.branches.add(c),()=>{r.branches.delete(c)}},[r.branches]),u.jsx(se.div,{...n,ref:o})});SM.displayName=jM;function EM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const c=m=>{if(m.target&&!i.current){let p=function(){M1(bM,r,g,{discrete:!0})};const g={originalEvent:m};m.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=p,a.addEventListener("click",o.current,{once:!0})):p()}else a.removeEventListener("click",o.current);i.current=!1},h=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(h),a.removeEventListener("pointerdown",c),a.removeEventListener("click",o.current)}},[a,r]),{onPointerDownCapture:()=>i.current=!0}}function NM(n,a=globalThis==null?void 0:globalThis.document){const r=nt(n),i=v.useRef(!1);return v.useEffect(()=>{const o=c=>{c.target&&!i.current&&M1(wM,r,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,r]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function jx(){const n=new CustomEvent(lm);document.dispatchEvent(n)}function M1(n,a,r,{discrete:i}){const o=r.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:r});a&&o.addEventListener(n,a,{once:!0}),i?oc(o,c):o.dispatchEvent(c)}var Eh=0;function Bm(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Sx()),document.body.insertAdjacentElement("beforeend",n[1]??Sx()),Eh++,()=>{Eh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),Eh--}},[])}function Sx(){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 Nh="focusScope.autoFocusOnMount",Ch="focusScope.autoFocusOnUnmount",Ex={bubbles:!1,cancelable:!0},CM="FocusScope",Tc=v.forwardRef((n,a)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...h}=n,[m,p]=v.useState(null),g=nt(o),x=nt(c),y=v.useRef(null),w=we(a,j=>p(j)),S=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let j=function(R){if(S.paused||!m)return;const D=R.target;m.contains(D)?y.current=D:gl(y.current,{select:!0})},C=function(R){if(S.paused||!m)return;const D=R.relatedTarget;D!==null&&(m.contains(D)||gl(y.current,{select:!0}))},_=function(R){if(document.activeElement===document.body)for(const D of R)D.removedNodes.length>0&&gl(m)};document.addEventListener("focusin",j),document.addEventListener("focusout",C);const T=new MutationObserver(_);return m&&T.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",j),document.removeEventListener("focusout",C),T.disconnect()}}},[i,m,S.paused]),v.useEffect(()=>{if(m){Cx.add(S);const j=document.activeElement;if(!m.contains(j)){const C=new CustomEvent(Nh,Ex);m.addEventListener(Nh,g),m.dispatchEvent(C),C.defaultPrevented||(_M(AM(k1(m)),{select:!0}),document.activeElement===j&&gl(m))}return()=>{m.removeEventListener(Nh,g),setTimeout(()=>{const C=new CustomEvent(Ch,Ex);m.addEventListener(Ch,x),m.dispatchEvent(C),C.defaultPrevented||gl(j??document.body,{select:!0}),m.removeEventListener(Ch,x),Cx.remove(S)},0)}}},[m,g,x,S]);const E=v.useCallback(j=>{if(!r&&!i||S.paused)return;const C=j.key==="Tab"&&!j.altKey&&!j.ctrlKey&&!j.metaKey,_=document.activeElement;if(C&&_){const T=j.currentTarget,[R,D]=TM(T);R&&D?!j.shiftKey&&_===D?(j.preventDefault(),r&&gl(R,{select:!0})):j.shiftKey&&_===R&&(j.preventDefault(),r&&gl(D,{select:!0})):_===T&&j.preventDefault()}},[r,i,S.paused]);return u.jsx(se.div,{tabIndex:-1,...h,ref:w,onKeyDown:E})});Tc.displayName=CM;function _M(n,{select:a=!1}={}){const r=document.activeElement;for(const i of n)if(gl(i,{select:a}),document.activeElement!==r)return}function TM(n){const a=k1(n),r=Nx(a,n),i=Nx(a.reverse(),n);return[r,i]}function k1(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function Nx(n,a){for(const r of n)if(!RM(r,{upTo:a}))return r}function RM(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 MM(n){return n instanceof HTMLInputElement&&"select"in n}function gl(n,{select:a=!1}={}){if(n&&n.focus){const r=document.activeElement;n.focus({preventScroll:!0}),n!==r&&MM(n)&&a&&n.select()}}var Cx=kM();function kM(){let n=[];return{add(a){const r=n[0];a!==r&&(r==null||r.pause()),n=_x(n,a),n.unshift(a)},remove(a){var r;n=_x(n,a),(r=n[0])==null||r.resume()}}}function _x(n,a){const r=[...n],i=r.indexOf(a);return i!==-1&&r.splice(i,1),r}function AM(n){return n.filter(a=>a.tagName!=="A")}var DM=jb[" useId ".trim().toString()]||(()=>{}),OM=0;function Dl(n){const[a,r]=v.useState(DM());return lt(()=>{r(i=>i??String(OM++))},[n]),a?`radix-${a}`:""}const zM=["top","right","bottom","left"],Ml=Math.min,un=Math.max,dc=Math.round,Vu=Math.floor,ea=n=>({x:n,y:n}),LM={left:"right",right:"left",bottom:"top",top:"bottom"},UM={start:"end",end:"start"};function rm(n,a,r){return un(n,Ml(a,r))}function qa(n,a){return typeof n=="function"?n(a):n}function Ha(n){return n.split("-")[0]}function Gi(n){return n.split("-")[1]}function $m(n){return n==="x"?"y":"x"}function Qm(n){return n==="y"?"height":"width"}const qM=new Set(["top","bottom"]);function Wn(n){return qM.has(Ha(n))?"y":"x"}function Gm(n){return $m(Wn(n))}function HM(n,a,r){r===void 0&&(r=!1);const i=Gi(n),o=Gm(n),c=Qm(o);let h=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(h=fc(h)),[h,fc(h)]}function BM(n){const a=fc(n);return[im(n),a,im(a)]}function im(n){return n.replace(/start|end/g,a=>UM[a])}const Tx=["left","right"],Rx=["right","left"],$M=["top","bottom"],QM=["bottom","top"];function GM(n,a,r){switch(n){case"top":case"bottom":return r?a?Rx:Tx:a?Tx:Rx;case"left":case"right":return a?$M:QM;default:return[]}}function YM(n,a,r,i){const o=Gi(n);let c=GM(Ha(n),r==="start",i);return o&&(c=c.map(h=>h+"-"+o),a&&(c=c.concat(c.map(im)))),c}function fc(n){return n.replace(/left|right|bottom|top/g,a=>LM[a])}function VM(n){return{top:0,right:0,bottom:0,left:0,...n}}function A1(n){return typeof n!="number"?VM(n):{top:n,right:n,bottom:n,left:n}}function hc(n){const{x:a,y:r,width:i,height:o}=n;return{width:i,height:o,top:r,left:a,right:a+i,bottom:r+o,x:a,y:r}}function Mx(n,a,r){let{reference:i,floating:o}=n;const c=Wn(a),h=Gm(a),m=Qm(h),p=Ha(a),g=c==="y",x=i.x+i.width/2-o.width/2,y=i.y+i.height/2-o.height/2,w=i[m]/2-o[m]/2;let S;switch(p){case"top":S={x,y:i.y-o.height};break;case"bottom":S={x,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y};break;case"left":S={x:i.x-o.width,y};break;default:S={x:i.x,y:i.y}}switch(Gi(a)){case"start":S[h]-=w*(r&&g?-1:1);break;case"end":S[h]+=w*(r&&g?-1:1);break}return S}const KM=async(n,a,r)=>{const{placement:i="bottom",strategy:o="absolute",middleware:c=[],platform:h}=r,m=c.filter(Boolean),p=await(h.isRTL==null?void 0:h.isRTL(a));let g=await h.getElementRects({reference:n,floating:a,strategy:o}),{x,y}=Mx(g,i,p),w=i,S={},E=0;for(let j=0;j<m.length;j++){const{name:C,fn:_}=m[j],{x:T,y:R,data:D,reset:L}=await _({x,y,initialPlacement:i,placement:w,strategy:o,middlewareData:S,rects:g,platform:h,elements:{reference:n,floating:a}});x=T??x,y=R??y,S={...S,[C]:{...S[C],...D}},L&&E<=50&&(E++,typeof L=="object"&&(L.placement&&(w=L.placement),L.rects&&(g=L.rects===!0?await h.getElementRects({reference:n,floating:a,strategy:o}):L.rects),{x,y}=Mx(g,w,p)),j=-1)}return{x,y,placement:w,strategy:o,middlewareData:S}};async function no(n,a){var r;a===void 0&&(a={});const{x:i,y:o,platform:c,rects:h,elements:m,strategy:p}=n,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:y="floating",altBoundary:w=!1,padding:S=0}=qa(a,n),E=A1(S),j=m[w?y==="floating"?"reference":"floating":y],C=hc(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(j)))==null||r?j:j.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(m.floating)),boundary:g,rootBoundary:x,strategy:p})),_=y==="floating"?{x:i,y:o,width:h.floating.width,height:h.floating.height}:h.reference,T=await(c.getOffsetParent==null?void 0:c.getOffsetParent(m.floating)),R=await(c.isElement==null?void 0:c.isElement(T))?await(c.getScale==null?void 0:c.getScale(T))||{x:1,y:1}:{x:1,y:1},D=hc(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:T,strategy:p}):_);return{top:(C.top-D.top+E.top)/R.y,bottom:(D.bottom-C.bottom+E.bottom)/R.y,left:(C.left-D.left+E.left)/R.x,right:(D.right-C.right+E.right)/R.x}}const XM=n=>({name:"arrow",options:n,async fn(a){const{x:r,y:i,placement:o,rects:c,platform:h,elements:m,middlewareData:p}=a,{element:g,padding:x=0}=qa(n,a)||{};if(g==null)return{};const y=A1(x),w={x:r,y:i},S=Gm(o),E=Qm(S),j=await h.getDimensions(g),C=S==="y",_=C?"top":"left",T=C?"bottom":"right",R=C?"clientHeight":"clientWidth",D=c.reference[E]+c.reference[S]-w[S]-c.floating[E],L=w[S]-c.reference[S],K=await(h.getOffsetParent==null?void 0:h.getOffsetParent(g));let H=K?K[R]:0;(!H||!await(h.isElement==null?void 0:h.isElement(K)))&&(H=m.floating[R]||c.floating[E]);const q=D/2-L/2,G=H/2-j[E]/2-1,te=Ml(y[_],G),ue=Ml(y[T],G),ce=te,W=H-j[E]-ue,ie=H/2-j[E]/2+q,re=rm(ce,ie,W),U=!p.arrow&&Gi(o)!=null&&ie!==re&&c.reference[E]/2-(ie<ce?te:ue)-j[E]/2<0,I=U?ie<ce?ie-ce:ie-W:0;return{[S]:w[S]+I,data:{[S]:re,centerOffset:ie-re-I,...U&&{alignmentOffset:I}},reset:U}}}),FM=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var r,i;const{placement:o,middlewareData:c,rects:h,initialPlacement:m,platform:p,elements:g}=a,{mainAxis:x=!0,crossAxis:y=!0,fallbackPlacements:w,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:j=!0,...C}=qa(n,a);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const _=Ha(o),T=Wn(m),R=Ha(m)===m,D=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(R||!j?[fc(m)]:BM(m)),K=E!=="none";!w&&K&&L.push(...YM(m,j,E,D));const H=[m,...L],q=await no(a,C),G=[];let te=((i=c.flip)==null?void 0:i.overflows)||[];if(x&&G.push(q[_]),y){const ie=HM(o,h,D);G.push(q[ie[0]],q[ie[1]])}if(te=[...te,{placement:o,overflows:G}],!G.every(ie=>ie<=0)){var ue,ce;const ie=(((ue=c.flip)==null?void 0:ue.index)||0)+1,re=H[ie];if(re&&(!(y==="alignment"&&T!==Wn(re))||te.every(I=>Wn(I.placement)===T?I.overflows[0]>0:!0)))return{data:{index:ie,overflows:te},reset:{placement:re}};let U=(ce=te.filter(I=>I.overflows[0]<=0).sort((I,Y)=>I.overflows[1]-Y.overflows[1])[0])==null?void 0:ce.placement;if(!U)switch(S){case"bestFit":{var W;const I=(W=te.filter(Y=>{if(K){const X=Wn(Y.placement);return X===T||X==="y"}return!0}).map(Y=>[Y.placement,Y.overflows.filter(X=>X>0).reduce((X,de)=>X+de,0)]).sort((Y,X)=>Y[1]-X[1])[0])==null?void 0:W[0];I&&(U=I);break}case"initialPlacement":U=m;break}if(o!==U)return{reset:{placement:U}}}return{}}}};function kx(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Ax(n){return zM.some(a=>n[a]>=0)}const ZM=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:r}=a,{strategy:i="referenceHidden",...o}=qa(n,a);switch(i){case"referenceHidden":{const c=await no(a,{...o,elementContext:"reference"}),h=kx(c,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Ax(h)}}}case"escaped":{const c=await no(a,{...o,altBoundary:!0}),h=kx(c,r.floating);return{data:{escapedOffsets:h,escaped:Ax(h)}}}default:return{}}}}},D1=new Set(["left","top"]);async function PM(n,a){const{placement:r,platform:i,elements:o}=n,c=await(i.isRTL==null?void 0:i.isRTL(o.floating)),h=Ha(r),m=Gi(r),p=Wn(r)==="y",g=D1.has(h)?-1:1,x=c&&p?-1:1,y=qa(a,n);let{mainAxis:w,crossAxis:S,alignmentAxis:E}=typeof y=="number"?{mainAxis:y,crossAxis:0,alignmentAxis:null}:{mainAxis:y.mainAxis||0,crossAxis:y.crossAxis||0,alignmentAxis:y.alignmentAxis};return m&&typeof E=="number"&&(S=m==="end"?E*-1:E),p?{x:S*x,y:w*g}:{x:w*g,y:S*x}}const JM=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var r,i;const{x:o,y:c,placement:h,middlewareData:m}=a,p=await PM(a,n);return h===((r=m.offset)==null?void 0:r.placement)&&(i=m.arrow)!=null&&i.alignmentOffset?{}:{x:o+p.x,y:c+p.y,data:{...p,placement:h}}}}},IM=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:r,y:i,placement:o}=a,{mainAxis:c=!0,crossAxis:h=!1,limiter:m={fn:C=>{let{x:_,y:T}=C;return{x:_,y:T}}},...p}=qa(n,a),g={x:r,y:i},x=await no(a,p),y=Wn(Ha(o)),w=$m(y);let S=g[w],E=g[y];if(c){const C=w==="y"?"top":"left",_=w==="y"?"bottom":"right",T=S+x[C],R=S-x[_];S=rm(T,S,R)}if(h){const C=y==="y"?"top":"left",_=y==="y"?"bottom":"right",T=E+x[C],R=E-x[_];E=rm(T,E,R)}const j=m.fn({...a,[w]:S,[y]:E});return{...j,data:{x:j.x-r,y:j.y-i,enabled:{[w]:c,[y]:h}}}}}},WM=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:r,y:i,placement:o,rects:c,middlewareData:h}=a,{offset:m=0,mainAxis:p=!0,crossAxis:g=!0}=qa(n,a),x={x:r,y:i},y=Wn(o),w=$m(y);let S=x[w],E=x[y];const j=qa(m,a),C=typeof j=="number"?{mainAxis:j,crossAxis:0}:{mainAxis:0,crossAxis:0,...j};if(p){const R=w==="y"?"height":"width",D=c.reference[w]-c.floating[R]+C.mainAxis,L=c.reference[w]+c.reference[R]-C.mainAxis;S<D?S=D:S>L&&(S=L)}if(g){var _,T;const R=w==="y"?"width":"height",D=D1.has(Ha(o)),L=c.reference[y]-c.floating[R]+(D&&((_=h.offset)==null?void 0:_[y])||0)+(D?0:C.crossAxis),K=c.reference[y]+c.reference[R]+(D?0:((T=h.offset)==null?void 0:T[y])||0)-(D?C.crossAxis:0);E<L?E=L:E>K&&(E=K)}return{[w]:S,[y]:E}}}},ek=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var r,i;const{placement:o,rects:c,platform:h,elements:m}=a,{apply:p=()=>{},...g}=qa(n,a),x=await no(a,g),y=Ha(o),w=Gi(o),S=Wn(o)==="y",{width:E,height:j}=c.floating;let C,_;y==="top"||y==="bottom"?(C=y,_=w===(await(h.isRTL==null?void 0:h.isRTL(m.floating))?"start":"end")?"left":"right"):(_=y,C=w==="end"?"top":"bottom");const T=j-x.top-x.bottom,R=E-x.left-x.right,D=Ml(j-x[C],T),L=Ml(E-x[_],R),K=!a.middlewareData.shift;let H=D,q=L;if((r=a.middlewareData.shift)!=null&&r.enabled.x&&(q=R),(i=a.middlewareData.shift)!=null&&i.enabled.y&&(H=T),K&&!w){const te=un(x.left,0),ue=un(x.right,0),ce=un(x.top,0),W=un(x.bottom,0);S?q=E-2*(te!==0||ue!==0?te+ue:un(x.left,x.right)):H=j-2*(ce!==0||W!==0?ce+W:un(x.top,x.bottom))}await p({...a,availableWidth:q,availableHeight:H});const G=await h.getDimensions(m.floating);return E!==G.width||j!==G.height?{reset:{rects:!0}}:{}}}};function Rc(){return typeof window<"u"}function Yi(n){return O1(n)?(n.nodeName||"").toLowerCase():"#document"}function dn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function sa(n){var a;return(a=(O1(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function O1(n){return Rc()?n instanceof Node||n instanceof dn(n).Node:!1}function Hn(n){return Rc()?n instanceof Element||n instanceof dn(n).Element:!1}function ta(n){return Rc()?n instanceof HTMLElement||n instanceof dn(n).HTMLElement:!1}function Dx(n){return!Rc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof dn(n).ShadowRoot}const tk=new Set(["inline","contents"]);function go(n){const{overflow:a,overflowX:r,overflowY:i,display:o}=Bn(n);return/auto|scroll|overlay|hidden|clip/.test(a+i+r)&&!tk.has(o)}const nk=new Set(["table","td","th"]);function ak(n){return nk.has(Yi(n))}const lk=[":popover-open",":modal"];function Mc(n){return lk.some(a=>{try{return n.matches(a)}catch{return!1}})}const rk=["transform","translate","scale","rotate","perspective"],ik=["transform","translate","scale","rotate","perspective","filter"],sk=["paint","layout","strict","content"];function Ym(n){const a=Vm(),r=Hn(n)?Bn(n):n;return rk.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)||ik.some(i=>(r.willChange||"").includes(i))||sk.some(i=>(r.contain||"").includes(i))}function ok(n){let a=kl(n);for(;ta(a)&&!ki(a);){if(Ym(a))return a;if(Mc(a))return null;a=kl(a)}return null}function Vm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const uk=new Set(["html","body","#document"]);function ki(n){return uk.has(Yi(n))}function Bn(n){return dn(n).getComputedStyle(n)}function kc(n){return Hn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function kl(n){if(Yi(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Dx(n)&&n.host||sa(n);return Dx(a)?a.host:a}function z1(n){const a=kl(n);return ki(a)?n.ownerDocument?n.ownerDocument.body:n.body:ta(a)&&go(a)?a:z1(a)}function ao(n,a,r){var i;a===void 0&&(a=[]),r===void 0&&(r=!0);const o=z1(n),c=o===((i=n.ownerDocument)==null?void 0:i.body),h=dn(o);if(c){const m=sm(h);return a.concat(h,h.visualViewport||[],go(o)?o:[],m&&r?ao(m):[])}return a.concat(o,ao(o,[],r))}function sm(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function L1(n){const a=Bn(n);let r=parseFloat(a.width)||0,i=parseFloat(a.height)||0;const o=ta(n),c=o?n.offsetWidth:r,h=o?n.offsetHeight:i,m=dc(r)!==c||dc(i)!==h;return m&&(r=c,i=h),{width:r,height:i,$:m}}function Km(n){return Hn(n)?n:n.contextElement}function hi(n){const a=Km(n);if(!ta(a))return ea(1);const r=a.getBoundingClientRect(),{width:i,height:o,$:c}=L1(a);let h=(c?dc(r.width):r.width)/i,m=(c?dc(r.height):r.height)/o;return(!h||!Number.isFinite(h))&&(h=1),(!m||!Number.isFinite(m))&&(m=1),{x:h,y:m}}const ck=ea(0);function U1(n){const a=dn(n);return!Vm()||!a.visualViewport?ck:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function dk(n,a,r){return a===void 0&&(a=!1),!r||a&&r!==dn(n)?!1:a}function mr(n,a,r,i){a===void 0&&(a=!1),r===void 0&&(r=!1);const o=n.getBoundingClientRect(),c=Km(n);let h=ea(1);a&&(i?Hn(i)&&(h=hi(i)):h=hi(n));const m=dk(c,r,i)?U1(c):ea(0);let p=(o.left+m.x)/h.x,g=(o.top+m.y)/h.y,x=o.width/h.x,y=o.height/h.y;if(c){const w=dn(c),S=i&&Hn(i)?dn(i):i;let E=w,j=sm(E);for(;j&&i&&S!==E;){const C=hi(j),_=j.getBoundingClientRect(),T=Bn(j),R=_.left+(j.clientLeft+parseFloat(T.paddingLeft))*C.x,D=_.top+(j.clientTop+parseFloat(T.paddingTop))*C.y;p*=C.x,g*=C.y,x*=C.x,y*=C.y,p+=R,g+=D,E=dn(j),j=sm(E)}}return hc({width:x,height:y,x:p,y:g})}function Ac(n,a){const r=kc(n).scrollLeft;return a?a.left+r:mr(sa(n)).left+r}function q1(n,a){const r=n.getBoundingClientRect(),i=r.left+a.scrollLeft-Ac(n,r),o=r.top+a.scrollTop;return{x:i,y:o}}function fk(n){let{elements:a,rect:r,offsetParent:i,strategy:o}=n;const c=o==="fixed",h=sa(i),m=a?Mc(a.floating):!1;if(i===h||m&&c)return r;let p={scrollLeft:0,scrollTop:0},g=ea(1);const x=ea(0),y=ta(i);if((y||!y&&!c)&&((Yi(i)!=="body"||go(h))&&(p=kc(i)),ta(i))){const S=mr(i);g=hi(i),x.x=S.x+i.clientLeft,x.y=S.y+i.clientTop}const w=h&&!y&&!c?q1(h,p):ea(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+x.x+w.x,y:r.y*g.y-p.scrollTop*g.y+x.y+w.y}}function hk(n){return Array.from(n.getClientRects())}function mk(n){const a=sa(n),r=kc(n),i=n.ownerDocument.body,o=un(a.scrollWidth,a.clientWidth,i.scrollWidth,i.clientWidth),c=un(a.scrollHeight,a.clientHeight,i.scrollHeight,i.clientHeight);let h=-r.scrollLeft+Ac(n);const m=-r.scrollTop;return Bn(i).direction==="rtl"&&(h+=un(a.clientWidth,i.clientWidth)-o),{width:o,height:c,x:h,y:m}}const Ox=25;function pk(n,a){const r=dn(n),i=sa(n),o=r.visualViewport;let c=i.clientWidth,h=i.clientHeight,m=0,p=0;if(o){c=o.width,h=o.height;const x=Vm();(!x||x&&a==="fixed")&&(m=o.offsetLeft,p=o.offsetTop)}const g=Ac(i);if(g<=0){const x=i.ownerDocument,y=x.body,w=getComputedStyle(y),S=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,E=Math.abs(i.clientWidth-y.clientWidth-S);E<=Ox&&(c-=E)}else g<=Ox&&(c+=g);return{width:c,height:h,x:m,y:p}}const vk=new Set(["absolute","fixed"]);function gk(n,a){const r=mr(n,!0,a==="fixed"),i=r.top+n.clientTop,o=r.left+n.clientLeft,c=ta(n)?hi(n):ea(1),h=n.clientWidth*c.x,m=n.clientHeight*c.y,p=o*c.x,g=i*c.y;return{width:h,height:m,x:p,y:g}}function zx(n,a,r){let i;if(a==="viewport")i=pk(n,r);else if(a==="document")i=mk(sa(n));else if(Hn(a))i=gk(a,r);else{const o=U1(n);i={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return hc(i)}function H1(n,a){const r=kl(n);return r===a||!Hn(r)||ki(r)?!1:Bn(r).position==="fixed"||H1(r,a)}function yk(n,a){const r=a.get(n);if(r)return r;let i=ao(n,[],!1).filter(m=>Hn(m)&&Yi(m)!=="body"),o=null;const c=Bn(n).position==="fixed";let h=c?kl(n):n;for(;Hn(h)&&!ki(h);){const m=Bn(h),p=Ym(h);!p&&m.position==="fixed"&&(o=null),(c?!p&&!o:!p&&m.position==="static"&&o&&vk.has(o.position)||go(h)&&!p&&H1(n,h))?i=i.filter(g=>g!==h):o=m,h=kl(h)}return a.set(n,i),i}function xk(n){let{element:a,boundary:r,rootBoundary:i,strategy:o}=n;const c=[...r==="clippingAncestors"?Mc(a)?[]:yk(a,this._c):[].concat(r),i],h=c[0],m=c.reduce((p,g)=>{const x=zx(a,g,o);return p.top=un(x.top,p.top),p.right=Ml(x.right,p.right),p.bottom=Ml(x.bottom,p.bottom),p.left=un(x.left,p.left),p},zx(a,h,o));return{width:m.right-m.left,height:m.bottom-m.top,x:m.left,y:m.top}}function bk(n){const{width:a,height:r}=L1(n);return{width:a,height:r}}function wk(n,a,r){const i=ta(a),o=sa(a),c=r==="fixed",h=mr(n,!0,c,a);let m={scrollLeft:0,scrollTop:0};const p=ea(0);function g(){p.x=Ac(o)}if(i||!i&&!c)if((Yi(a)!=="body"||go(o))&&(m=kc(a)),i){const S=mr(a,!0,c,a);p.x=S.x+a.clientLeft,p.y=S.y+a.clientTop}else o&&g();c&&!i&&o&&g();const x=o&&!i&&!c?q1(o,m):ea(0),y=h.left+m.scrollLeft-p.x-x.x,w=h.top+m.scrollTop-p.y-x.y;return{x:y,y:w,width:h.width,height:h.height}}function _h(n){return Bn(n).position==="static"}function Lx(n,a){if(!ta(n)||Bn(n).position==="fixed")return null;if(a)return a(n);let r=n.offsetParent;return sa(n)===r&&(r=r.ownerDocument.body),r}function B1(n,a){const r=dn(n);if(Mc(n))return r;if(!ta(n)){let o=kl(n);for(;o&&!ki(o);){if(Hn(o)&&!_h(o))return o;o=kl(o)}return r}let i=Lx(n,a);for(;i&&ak(i)&&_h(i);)i=Lx(i,a);return i&&ki(i)&&_h(i)&&!Ym(i)?r:i||ok(n)||r}const jk=async function(n){const a=this.getOffsetParent||B1,r=this.getDimensions,i=await r(n.floating);return{reference:wk(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Sk(n){return Bn(n).direction==="rtl"}const Ek={convertOffsetParentRelativeRectToViewportRelativeRect:fk,getDocumentElement:sa,getClippingRect:xk,getOffsetParent:B1,getElementRects:jk,getClientRects:hk,getDimensions:bk,getScale:hi,isElement:Hn,isRTL:Sk};function $1(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function Nk(n,a){let r=null,i;const o=sa(n);function c(){var m;clearTimeout(i),(m=r)==null||m.disconnect(),r=null}function h(m,p){m===void 0&&(m=!1),p===void 0&&(p=1),c();const g=n.getBoundingClientRect(),{left:x,top:y,width:w,height:S}=g;if(m||a(),!w||!S)return;const E=Vu(y),j=Vu(o.clientWidth-(x+w)),C=Vu(o.clientHeight-(y+S)),_=Vu(x),T={rootMargin:-E+"px "+-j+"px "+-C+"px "+-_+"px",threshold:un(0,Ml(1,p))||1};let R=!0;function D(L){const K=L[0].intersectionRatio;if(K!==p){if(!R)return h();K?h(!1,K):i=setTimeout(()=>{h(!1,1e-7)},1e3)}K===1&&!$1(g,n.getBoundingClientRect())&&h(),R=!1}try{r=new IntersectionObserver(D,{...T,root:o.ownerDocument})}catch{r=new IntersectionObserver(D,T)}r.observe(n)}return h(!0),c}function Ck(n,a,r,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:h=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:p=!1}=i,g=Km(n),x=o||c?[...g?ao(g):[],...ao(a)]:[];x.forEach(_=>{o&&_.addEventListener("scroll",r,{passive:!0}),c&&_.addEventListener("resize",r)});const y=g&&m?Nk(g,r):null;let w=-1,S=null;h&&(S=new ResizeObserver(_=>{let[T]=_;T&&T.target===g&&S&&(S.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var R;(R=S)==null||R.observe(a)})),r()}),g&&!p&&S.observe(g),S.observe(a));let E,j=p?mr(n):null;p&&C();function C(){const _=mr(n);j&&!$1(j,_)&&r(),j=_,E=requestAnimationFrame(C)}return r(),()=>{var _;x.forEach(T=>{o&&T.removeEventListener("scroll",r),c&&T.removeEventListener("resize",r)}),y==null||y(),(_=S)==null||_.disconnect(),S=null,p&&cancelAnimationFrame(E)}}const _k=JM,Tk=IM,Rk=FM,Mk=ek,kk=ZM,Ux=XM,Ak=WM,Dk=(n,a,r)=>{const i=new Map,o={platform:Ek,...r},c={...o.platform,_c:i};return KM(n,a,{...o,platform:c})};var Ok=typeof document<"u",zk=function(){},ec=Ok?v.useLayoutEffect:zk;function mc(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let r,i,o;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==a.length)return!1;for(i=r;i--!==0;)if(!mc(n[i],a[i]))return!1;return!0}if(o=Object.keys(n),r=o.length,r!==Object.keys(a).length)return!1;for(i=r;i--!==0;)if(!{}.hasOwnProperty.call(a,o[i]))return!1;for(i=r;i--!==0;){const c=o[i];if(!(c==="_owner"&&n.$$typeof)&&!mc(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 qx(n,a){const r=Q1(n);return Math.round(a*r)/r}function Th(n){const a=v.useRef(n);return ec(()=>{a.current=n}),a}function Lk(n){n===void 0&&(n={});const{placement:a="bottom",strategy:r="absolute",middleware:i=[],platform:o,elements:{reference:c,floating:h}={},transform:m=!0,whileElementsMounted:p,open:g}=n,[x,y]=v.useState({x:0,y:0,strategy:r,placement:a,middlewareData:{},isPositioned:!1}),[w,S]=v.useState(i);mc(w,i)||S(i);const[E,j]=v.useState(null),[C,_]=v.useState(null),T=v.useCallback(Y=>{Y!==K.current&&(K.current=Y,j(Y))},[]),R=v.useCallback(Y=>{Y!==H.current&&(H.current=Y,_(Y))},[]),D=c||E,L=h||C,K=v.useRef(null),H=v.useRef(null),q=v.useRef(x),G=p!=null,te=Th(p),ue=Th(o),ce=Th(g),W=v.useCallback(()=>{if(!K.current||!H.current)return;const Y={placement:a,strategy:r,middleware:w};ue.current&&(Y.platform=ue.current),Dk(K.current,H.current,Y).then(X=>{const de={...X,isPositioned:ce.current!==!1};ie.current&&!mc(q.current,de)&&(q.current=de,ho.flushSync(()=>{y(de)}))})},[w,a,r,ue,ce]);ec(()=>{g===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,y(Y=>({...Y,isPositioned:!1})))},[g]);const ie=v.useRef(!1);ec(()=>(ie.current=!0,()=>{ie.current=!1}),[]),ec(()=>{if(D&&(K.current=D),L&&(H.current=L),D&&L){if(te.current)return te.current(D,L,W);W()}},[D,L,W,te,G]);const re=v.useMemo(()=>({reference:K,floating:H,setReference:T,setFloating:R}),[T,R]),U=v.useMemo(()=>({reference:D,floating:L}),[D,L]),I=v.useMemo(()=>{const Y={position:r,left:0,top:0};if(!U.floating)return Y;const X=qx(U.floating,x.x),de=qx(U.floating,x.y);return m?{...Y,transform:"translate("+X+"px, "+de+"px)",...Q1(U.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:X,top:de}},[r,m,U.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:W,refs:re,elements:U,floatingStyles:I}),[x,W,re,U,I])}const Uk=n=>{function a(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:n,fn(r){const{element:i,padding:o}=typeof n=="function"?n(r):n;return i&&a(i)?i.current!=null?Ux({element:i.current,padding:o}).fn(r):{}:i?Ux({element:i,padding:o}).fn(r):{}}}},qk=(n,a)=>({..._k(n),options:[n,a]}),Hk=(n,a)=>({...Tk(n),options:[n,a]}),Bk=(n,a)=>({...Ak(n),options:[n,a]}),$k=(n,a)=>({...Rk(n),options:[n,a]}),Qk=(n,a)=>({...Mk(n),options:[n,a]}),Gk=(n,a)=>({...kk(n),options:[n,a]}),Yk=(n,a)=>({...Uk(n),options:[n,a]});var Vk="Arrow",G1=v.forwardRef((n,a)=>{const{children:r,width:i=10,height:o=5,...c}=n;return u.jsx(se.svg,{...c,ref:a,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?r:u.jsx("polygon",{points:"0,0 30,0 15,10"})})});G1.displayName=Vk;var Kk=G1;function Dc(n){const[a,r]=v.useState(void 0);return lt(()=>{if(n){r({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let h,m;if("borderBoxSize"in c){const p=c.borderBoxSize,g=Array.isArray(p)?p[0]:p;h=g.inlineSize,m=g.blockSize}else h=n.offsetWidth,m=n.offsetHeight;r({width:h,height:m})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else r(void 0)},[n]),a}var Y1="Popper",[V1,Vi]=bt(Y1),[Vz,K1]=V1(Y1),X1="PopperAnchor",F1=v.forwardRef((n,a)=>{const{__scopePopper:r,virtualRef:i,...o}=n,c=K1(X1,r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=(i==null?void 0:i.current)||h.current,g!==p.current&&c.onAnchorChange(p.current)}),i?null:u.jsx(se.div,{...o,ref:m})});F1.displayName=X1;var Xm="PopperContent",[Xk,Fk]=V1(Xm),Z1=v.forwardRef((n,a)=>{var r,i,o,c,h,m;const{__scopePopper:p,side:g="bottom",sideOffset:x=0,align:y="center",alignOffset:w=0,arrowPadding:S=0,avoidCollisions:E=!0,collisionBoundary:j=[],collisionPadding:C=0,sticky:_="partial",hideWhenDetached:T=!1,updatePositionStrategy:R="optimized",onPlaced:D,...L}=n,K=K1(Xm,p),[H,q]=v.useState(null),G=we(a,Ot=>q(Ot)),[te,ue]=v.useState(null),ce=Dc(te),W=(ce==null?void 0:ce.width)??0,ie=(ce==null?void 0:ce.height)??0,re=g+(y!=="center"?"-"+y:""),U=typeof C=="number"?C:{top:0,right:0,bottom:0,left:0,...C},I=Array.isArray(j)?j:[j],Y=I.length>0,X={padding:U,boundary:I.filter(Pk),altBoundary:Y},{refs:de,floatingStyles:k,placement:F,isPositioned:ee,middlewareData:le}=Lk({strategy:"fixed",placement:re,whileElementsMounted:(...Ot)=>Ck(...Ot,{animationFrame:R==="always"}),elements:{reference:K.anchor},middleware:[qk({mainAxis:x+ie,alignmentAxis:w}),E&&Hk({mainAxis:!0,crossAxis:!1,limiter:_==="partial"?Bk():void 0,...X}),E&&$k({...X}),Qk({...X,apply:({elements:Ot,rects:Jt,availableWidth:ca,availableHeight:da})=>{const{width:Zc,height:wo}=Jt.reference,Ga=Ot.floating.style;Ga.setProperty("--radix-popper-available-width",`${ca}px`),Ga.setProperty("--radix-popper-available-height",`${da}px`),Ga.setProperty("--radix-popper-anchor-width",`${Zc}px`),Ga.setProperty("--radix-popper-anchor-height",`${wo}px`)}}),te&&Yk({element:te,padding:S}),Jk({arrowWidth:W,arrowHeight:ie}),T&&Gk({strategy:"referenceHidden",...X})]}),[ve,Se]=I1(F),ne=nt(D);lt(()=>{ee&&(ne==null||ne())},[ee,ne]);const Ee=(r=le.arrow)==null?void 0:r.x,ye=(i=le.arrow)==null?void 0:i.y,Ne=((o=le.arrow)==null?void 0:o.centerOffset)!==0,[He,Ke]=v.useState();return lt(()=>{H&&Ke(window.getComputedStyle(H).zIndex)},[H]),u.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:ee?k.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(Xk,{scope:p,placedSide:ve,onArrowChange:ue,arrowX:Ee,arrowY:ye,shouldHideArrow:Ne,children:u.jsx(se.div,{"data-side":ve,"data-align":Se,...L,ref:G,style:{...L.style,animation:ee?void 0:"none"}})})})});Z1.displayName=Xm;var P1="PopperArrow",Zk={top:"bottom",right:"left",bottom:"top",left:"right"},J1=v.forwardRef(function(n,a){const{__scopePopper:r,...i}=n,o=Fk(P1,r),c=Zk[o.placedSide];return u.jsx("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[c]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:u.jsx(Kk,{...i,ref:a,style:{...i.style,display:"block"}})})});J1.displayName=P1;function Pk(n){return n!==null}var Jk=n=>({name:"transformOrigin",options:n,fn(a){var r,i,o;const{placement:c,rects:h,middlewareData:m}=a,p=((r=m.arrow)==null?void 0:r.centerOffset)!==0,g=p?0:n.arrowWidth,x=p?0:n.arrowHeight,[y,w]=I1(c),S={start:"0%",center:"50%",end:"100%"}[w],E=(((i=m.arrow)==null?void 0:i.x)??0)+g/2,j=(((o=m.arrow)==null?void 0:o.y)??0)+x/2;let C="",_="";return y==="bottom"?(C=p?S:`${E}px`,_=`${-x}px`):y==="top"?(C=p?S:`${E}px`,_=`${h.floating.height+x}px`):y==="right"?(C=`${-x}px`,_=p?S:`${j}px`):y==="left"&&(C=`${h.floating.width+x}px`,_=p?S:`${j}px`),{data:{x:C,y:_}}}});function I1(n){const[a,r="center"]=n.split("-");return[a,r]}var Fm=F1,Zm=Z1,Pm=J1,Ik="Portal",Wk=v.forwardRef((n,a)=>{var r;const{container:i,...o}=n,[c,h]=v.useState(!1);lt(()=>h(!0),[]);const m=i||c&&((r=globalThis==null?void 0:globalThis.document)==null?void 0:r.body);return m?Qb.createPortal(u.jsx(se.div,{...o,ref:a}),m):null});Wk.displayName=Ik;var Rh="rovingFocusGroup.onEntryFocus",eA={bubbles:!1,cancelable:!0},yo="RovingFocusGroup",[om,W1,tA]=$i(yo),[nA,Ki]=bt(yo,[tA]),[aA,lA]=nA(yo),ew=v.forwardRef((n,a)=>u.jsx(om.Provider,{scope:n.__scopeRovingFocusGroup,children:u.jsx(om.Slot,{scope:n.__scopeRovingFocusGroup,children:u.jsx(rA,{...n,ref:a})})}));ew.displayName=yo;var rA=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,orientation:i,loop:o=!1,dir:c,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...y}=n,w=v.useRef(null),S=we(a,w),E=Bi(c),[j,C]=ia({prop:h,defaultProp:m??null,onChange:p,caller:yo}),[_,T]=v.useState(!1),R=nt(g),D=W1(r),L=v.useRef(!1),[K,H]=v.useState(0);return v.useEffect(()=>{const q=w.current;if(q)return q.addEventListener(Rh,R),()=>q.removeEventListener(Rh,R)},[R]),u.jsx(aA,{scope:r,orientation:i,dir:E,loop:o,currentTabStopId:j,onItemFocus:v.useCallback(q=>C(q),[C]),onItemShiftTab:v.useCallback(()=>T(!0),[]),onFocusableItemAdd:v.useCallback(()=>H(q=>q+1),[]),onFocusableItemRemove:v.useCallback(()=>H(q=>q-1),[]),children:u.jsx(se.div,{tabIndex:_||K===0?-1:0,"data-orientation":i,...y,ref:S,style:{outline:"none",...n.style},onMouseDown:ae(n.onMouseDown,()=>{L.current=!0}),onFocus:ae(n.onFocus,q=>{const G=!L.current;if(q.target===q.currentTarget&&G&&!_){const te=new CustomEvent(Rh,eA);if(q.currentTarget.dispatchEvent(te),!te.defaultPrevented){const ue=D().filter(re=>re.focusable),ce=ue.find(re=>re.active),W=ue.find(re=>re.id===j),ie=[ce,W,...ue].filter(Boolean).map(re=>re.ref.current);aw(ie,x)}}L.current=!1}),onBlur:ae(n.onBlur,()=>T(!1))})})}),tw="RovingFocusGroupItem",nw=v.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:r,focusable:i=!0,active:o=!1,tabStopId:c,children:h,...m}=n,p=Dl(),g=c||p,x=lA(tw,r),y=x.currentTabStopId===g,w=W1(r),{onFocusableItemAdd:S,onFocusableItemRemove:E,currentTabStopId:j}=x;return v.useEffect(()=>{if(i)return S(),()=>E()},[i,S,E]),u.jsx(om.ItemSlot,{scope:r,id:g,focusable:i,active:o,children:u.jsx(se.span,{tabIndex:y?0:-1,"data-orientation":x.orientation,...m,ref:a,onMouseDown:ae(n.onMouseDown,C=>{i?x.onItemFocus(g):C.preventDefault()}),onFocus:ae(n.onFocus,()=>x.onItemFocus(g)),onKeyDown:ae(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){x.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const _=oA(C,x.orientation,x.dir);if(_!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let T=w().filter(R=>R.focusable).map(R=>R.ref.current);if(_==="last")T.reverse();else if(_==="prev"||_==="next"){_==="prev"&&T.reverse();const R=T.indexOf(C.currentTarget);T=x.loop?uA(T,R+1):T.slice(R+1)}setTimeout(()=>aw(T))}}),children:typeof h=="function"?h({isCurrentTabStop:y,hasTabStop:j!=null}):h})})});nw.displayName=tw;var iA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sA(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function oA(n,a,r){const i=sA(n.key,r);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return iA[i]}function aw(n,a=!1){const r=document.activeElement;for(const i of n)if(i===r||(i.focus({preventScroll:a}),document.activeElement!==r))return}function uA(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var Jm=ew,Im=nw,cA=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},oi=new WeakMap,Ku=new WeakMap,Xu={},Mh=0,lw=function(n){return n&&(n.host||lw(n.parentNode))},dA=function(n,a){return a.map(function(r){if(n.contains(r))return r;var i=lw(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})},fA=function(n,a,r,i){var o=dA(a,Array.isArray(n)?n:[n]);Xu[r]||(Xu[r]=new WeakMap);var c=Xu[r],h=[],m=new Set,p=new Set(o),g=function(y){!y||m.has(y)||(m.add(y),g(y.parentNode))};o.forEach(g);var x=function(y){!y||p.has(y)||Array.prototype.forEach.call(y.children,function(w){if(m.has(w))x(w);else try{var S=w.getAttribute(i),E=S!==null&&S!=="false",j=(oi.get(w)||0)+1,C=(c.get(w)||0)+1;oi.set(w,j),c.set(w,C),h.push(w),j===1&&E&&Ku.set(w,!0),C===1&&w.setAttribute(r,"true"),E||w.setAttribute(i,"true")}catch(_){console.error("aria-hidden: cannot operate on ",w,_)}})};return x(a),m.clear(),Mh++,function(){h.forEach(function(y){var w=oi.get(y)-1,S=c.get(y)-1;oi.set(y,w),c.set(y,S),w||(Ku.has(y)||y.removeAttribute(i),Ku.delete(y)),S||y.removeAttribute(r)}),Mh--,Mh||(oi=new WeakMap,oi=new WeakMap,Ku=new WeakMap,Xu={})}},Wm=function(n,a,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),o=cA(n);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),fA(i,o,r,"aria-hidden")):function(){return null}},In=function(){return In=Object.assign||function(n){for(var a,r=1,i=arguments.length;r<i;r++){a=arguments[r];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(n[o]=a[o])}return n},In.apply(this,arguments)};function rw(n,a){var r={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&a.indexOf(i)<0&&(r[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(n);o<i.length;o++)a.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(n,i[o])&&(r[i[o]]=n[i[o]]);return r}function hA(n,a,r){for(var i=0,o=a.length,c;i<o;i++)(c||!(i in a))&&(c||(c=Array.prototype.slice.call(a,0,i)),c[i]=a[i]);return n.concat(c||Array.prototype.slice.call(a))}var tc="right-scroll-bar-position",nc="width-before-scroll-bar",mA="with-scroll-bars-hidden",pA="--removed-body-scroll-bar-size";function kh(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function vA(n,a){var r=v.useState(function(){return{value:n,callback:a,facade:{get current(){return r.value},set current(i){var o=r.value;o!==i&&(r.value=i,r.callback(i,o))}}}})[0];return r.callback=a,r.facade}var gA=typeof window<"u"?v.useLayoutEffect:v.useEffect,Hx=new WeakMap;function yA(n,a){var r=vA(null,function(i){return n.forEach(function(o){return kh(o,i)})});return gA(function(){var i=Hx.get(r);if(i){var o=new Set(i),c=new Set(n),h=r.current;o.forEach(function(m){c.has(m)||kh(m,null)}),c.forEach(function(m){o.has(m)||kh(m,h)})}Hx.set(r,n)},[n]),r}function xA(n){return n}function bA(n,a){a===void 0&&(a=xA);var r=[],i=!1,o={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:n},useMedium:function(c){var h=a(c,i);return r.push(h),function(){r=r.filter(function(m){return m!==h})}},assignSyncMedium:function(c){for(i=!0;r.length;){var h=r;r=[],h.forEach(c)}r={push:function(m){return c(m)},filter:function(){return r}}},assignMedium:function(c){i=!0;var h=[];if(r.length){var m=r;r=[],m.forEach(c),h=r}var p=function(){var x=h;h=[],x.forEach(c)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(x){h.push(x),g()},filter:function(x){return h=h.filter(x),r}}}};return o}function wA(n){n===void 0&&(n={});var a=bA(null);return a.options=In({async:!0,ssr:!1},n),a}var iw=function(n){var a=n.sideCar,r=rw(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=a.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,In({},r))};iw.isSideCarExport=!0;function jA(n,a){return n.useMedium(a),iw}var sw=wA(),Ah=function(){},Oc=v.forwardRef(function(n,a){var r=v.useRef(null),i=v.useState({onScrollCapture:Ah,onWheelCapture:Ah,onTouchMoveCapture:Ah}),o=i[0],c=i[1],h=n.forwardProps,m=n.children,p=n.className,g=n.removeScrollBar,x=n.enabled,y=n.shards,w=n.sideCar,S=n.noRelative,E=n.noIsolation,j=n.inert,C=n.allowPinchZoom,_=n.as,T=_===void 0?"div":_,R=n.gapMode,D=rw(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,K=yA([r,a]),H=In(In({},D),o);return v.createElement(v.Fragment,null,x&&v.createElement(L,{sideCar:sw,removeScrollBar:g,shards:y,noRelative:S,noIsolation:E,inert:j,setCallbacks:c,allowPinchZoom:!!C,lockRef:r,gapMode:R}),h?v.cloneElement(v.Children.only(m),In(In({},H),{ref:K})):v.createElement(T,In({},H,{className:p,ref:K}),m))});Oc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Oc.classNames={fullWidth:nc,zeroRight:tc};var SA=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function EA(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=SA();return a&&n.setAttribute("nonce",a),n}function NA(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function CA(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var _A=function(){var n=0,a=null;return{add:function(r){n==0&&(a=EA())&&(NA(a,r),CA(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},TA=function(){var n=_A();return function(a,r){v.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&r])}},ow=function(){var n=TA(),a=function(r){var i=r.styles,o=r.dynamic;return n(i,o),null};return a},RA={left:0,top:0,right:0,gap:0},Dh=function(n){return parseInt(n||"",10)||0},MA=function(n){var a=window.getComputedStyle(document.body),r=a[n==="padding"?"paddingLeft":"marginLeft"],i=a[n==="padding"?"paddingTop":"marginTop"],o=a[n==="padding"?"paddingRight":"marginRight"];return[Dh(r),Dh(i),Dh(o)]},kA=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return RA;var a=MA(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])}},AA=ow(),mi="data-scroll-locked",DA=function(n,a,r,i){var o=n.left,c=n.top,h=n.right,m=n.gap;return r===void 0&&(r="margin"),`
|
|
302
|
-
.`.concat(mA,` {
|
|
303
|
-
overflow: hidden `).concat(i,`;
|
|
304
|
-
padding-right: `).concat(m,"px ").concat(i,`;
|
|
305
|
-
}
|
|
306
|
-
body[`).concat(mi,`] {
|
|
307
|
-
overflow: hidden `).concat(i,`;
|
|
308
|
-
overscroll-behavior: contain;
|
|
309
|
-
`).concat([a&&"position: relative ".concat(i,";"),r==="margin"&&`
|
|
310
|
-
padding-left: `.concat(o,`px;
|
|
311
|
-
padding-top: `).concat(c,`px;
|
|
312
|
-
padding-right: `).concat(h,`px;
|
|
313
|
-
margin-left:0;
|
|
314
|
-
margin-top:0;
|
|
315
|
-
margin-right: `).concat(m,"px ").concat(i,`;
|
|
316
|
-
`),r==="padding"&&"padding-right: ".concat(m,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.`).concat(tc,` {
|
|
320
|
-
right: `).concat(m,"px ").concat(i,`;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.`).concat(nc,` {
|
|
324
|
-
margin-right: `).concat(m,"px ").concat(i,`;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.`).concat(tc," .").concat(tc,` {
|
|
328
|
-
right: 0 `).concat(i,`;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.`).concat(nc," .").concat(nc,` {
|
|
332
|
-
margin-right: 0 `).concat(i,`;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
body[`).concat(mi,`] {
|
|
336
|
-
`).concat(pA,": ").concat(m,`px;
|
|
337
|
-
}
|
|
338
|
-
`)},Bx=function(){var n=parseInt(document.body.getAttribute(mi)||"0",10);return isFinite(n)?n:0},OA=function(){v.useEffect(function(){return document.body.setAttribute(mi,(Bx()+1).toString()),function(){var n=Bx()-1;n<=0?document.body.removeAttribute(mi):document.body.setAttribute(mi,n.toString())}},[])},zA=function(n){var a=n.noRelative,r=n.noImportant,i=n.gapMode,o=i===void 0?"margin":i;OA();var c=v.useMemo(function(){return kA(o)},[o]);return v.createElement(AA,{styles:DA(c,!a,o,r?"":"!important")})},um=!1;if(typeof window<"u")try{var Fu=Object.defineProperty({},"passive",{get:function(){return um=!0,!0}});window.addEventListener("test",Fu,Fu),window.removeEventListener("test",Fu,Fu)}catch{um=!1}var ui=um?{passive:!1}:!1,LA=function(n){return n.tagName==="TEXTAREA"},uw=function(n,a){if(!(n instanceof Element))return!1;var r=window.getComputedStyle(n);return r[a]!=="hidden"&&!(r.overflowY===r.overflowX&&!LA(n)&&r[a]==="visible")},UA=function(n){return uw(n,"overflowY")},qA=function(n){return uw(n,"overflowX")},$x=function(n,a){var r=a.ownerDocument,i=a;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=cw(n,i);if(o){var c=dw(n,i),h=c[1],m=c[2];if(h>m)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},HA=function(n){var a=n.scrollTop,r=n.scrollHeight,i=n.clientHeight;return[a,r,i]},BA=function(n){var a=n.scrollLeft,r=n.scrollWidth,i=n.clientWidth;return[a,r,i]},cw=function(n,a){return n==="v"?UA(a):qA(a)},dw=function(n,a){return n==="v"?HA(a):BA(a)},$A=function(n,a){return n==="h"&&a==="rtl"?-1:1},QA=function(n,a,r,i,o){var c=$A(n,window.getComputedStyle(a).direction),h=c*i,m=r.target,p=a.contains(m),g=!1,x=h>0,y=0,w=0;do{if(!m)break;var S=dw(n,m),E=S[0],j=S[1],C=S[2],_=j-C-c*E;(E||_)&&cw(n,m)&&(y+=_,w+=E);var T=m.parentNode;m=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!p&&m!==document.body||p&&(a.contains(m)||a===m));return(x&&Math.abs(y)<1||!x&&Math.abs(w)<1)&&(g=!0),g},Zu=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Qx=function(n){return[n.deltaX,n.deltaY]},Gx=function(n){return n&&"current"in n?n.current:n},GA=function(n,a){return n[0]===a[0]&&n[1]===a[1]},YA=function(n){return`
|
|
339
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
340
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
341
|
-
`)},VA=0,ci=[];function KA(n){var a=v.useRef([]),r=v.useRef([0,0]),i=v.useRef(),o=v.useState(VA++)[0],c=v.useState(ow)[0],h=v.useRef(n);v.useEffect(function(){h.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(o));var j=hA([n.lockRef.current],(n.shards||[]).map(Gx)).filter(Boolean);return j.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),j.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[n.inert,n.lockRef.current,n.shards]);var m=v.useCallback(function(j,C){if("touches"in j&&j.touches.length===2||j.type==="wheel"&&j.ctrlKey)return!h.current.allowPinchZoom;var _=Zu(j),T=r.current,R="deltaX"in j?j.deltaX:T[0]-_[0],D="deltaY"in j?j.deltaY:T[1]-_[1],L,K=j.target,H=Math.abs(R)>Math.abs(D)?"h":"v";if("touches"in j&&H==="h"&&K.type==="range")return!1;var q=$x(H,K);if(!q)return!0;if(q?L=H:(L=H==="v"?"h":"v",q=$x(H,K)),!q)return!1;if(!i.current&&"changedTouches"in j&&(R||D)&&(i.current=L),!L)return!0;var G=i.current||L;return QA(G,C,j,G==="h"?R:D)},[]),p=v.useCallback(function(j){var C=j;if(!(!ci.length||ci[ci.length-1]!==c)){var _="deltaY"in C?Qx(C):Zu(C),T=a.current.filter(function(L){return L.name===C.type&&(L.target===C.target||C.target===L.shadowParent)&&GA(L.delta,_)})[0];if(T&&T.should){C.cancelable&&C.preventDefault();return}if(!T){var R=(h.current.shards||[]).map(Gx).filter(Boolean).filter(function(L){return L.contains(C.target)}),D=R.length>0?m(C,R[0]):!h.current.noIsolation;D&&C.cancelable&&C.preventDefault()}}},[]),g=v.useCallback(function(j,C,_,T){var R={name:j,delta:C,target:_,should:T,shadowParent:XA(_)};a.current.push(R),setTimeout(function(){a.current=a.current.filter(function(D){return D!==R})},1)},[]),x=v.useCallback(function(j){r.current=Zu(j),i.current=void 0},[]),y=v.useCallback(function(j){g(j.type,Qx(j),j.target,m(j,n.lockRef.current))},[]),w=v.useCallback(function(j){g(j.type,Zu(j),j.target,m(j,n.lockRef.current))},[]);v.useEffect(function(){return ci.push(c),n.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:w}),document.addEventListener("wheel",p,ui),document.addEventListener("touchmove",p,ui),document.addEventListener("touchstart",x,ui),function(){ci=ci.filter(function(j){return j!==c}),document.removeEventListener("wheel",p,ui),document.removeEventListener("touchmove",p,ui),document.removeEventListener("touchstart",x,ui)}},[]);var S=n.removeScrollBar,E=n.inert;return v.createElement(v.Fragment,null,E?v.createElement(c,{styles:YA(o)}):null,S?v.createElement(zA,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function XA(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const FA=jA(sw,KA);var zc=v.forwardRef(function(n,a){return v.createElement(Oc,In({},n,{ref:a,sideCar:FA}))});zc.classNames=Oc.classNames;var cm=["Enter"," "],ZA=["ArrowDown","PageUp","Home"],fw=["ArrowUp","PageDown","End"],PA=[...ZA,...fw],JA={ltr:[...cm,"ArrowRight"],rtl:[...cm,"ArrowLeft"]},IA={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Lc="Menu",[lo,WA,e4]=$i(Lc),[xr,hw]=bt(Lc,[e4,Vi,Ki]),ep=Vi(),mw=Ki(),[Kz,Xi]=xr(Lc),[Xz,xo]=xr(Lc),t4="MenuAnchor",tp=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,o=ep(r);return u.jsx(Fm,{...o,...i,ref:a})});tp.displayName=t4;var n4="MenuPortal",[Fz,pw]=xr(n4,{forceMount:void 0}),_n="MenuContent",[a4,np]=xr(_n),vw=v.forwardRef((n,a)=>{const r=pw(_n,n.__scopeMenu),{forceMount:i=r.forceMount,...o}=n,c=Xi(_n,n.__scopeMenu),h=xo(_n,n.__scopeMenu);return u.jsx(lo.Provider,{scope:n.__scopeMenu,children:u.jsx(Et,{present:i||c.open,children:u.jsx(lo.Slot,{scope:n.__scopeMenu,children:h.modal?u.jsx(l4,{...o,ref:a}):u.jsx(r4,{...o,ref:a})})})})}),l4=v.forwardRef((n,a)=>{const r=Xi(_n,n.__scopeMenu),i=v.useRef(null),o=we(a,i);return v.useEffect(()=>{const c=i.current;if(c)return Wm(c)},[]),u.jsx(ap,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),r4=v.forwardRef((n,a)=>{const r=Xi(_n,n.__scopeMenu);return u.jsx(ap,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),i4=hr("MenuContent.ScrollLock"),ap=v.forwardRef((n,a)=>{const{__scopeMenu:r,loop:i=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:w,onDismiss:S,disableOutsideScroll:E,...j}=n,C=Xi(_n,r),_=xo(_n,r),T=ep(r),R=mw(r),D=WA(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),W=v.useRef("right"),ie=v.useRef(0),re=E?zc:v.Fragment,U=E?{as:i4,allowPinchZoom:!0}:void 0,I=X=>{var de,k;const F=te.current+X,ee=D().filter(ye=>!ye.disabled),le=document.activeElement,ve=(de=ee.find(ye=>ye.ref.current===le))==null?void 0:de.textValue,Se=ee.map(ye=>ye.textValue),ne=y4(Se,F,ve),Ee=(k=ee.find(ye=>ye.textValue===ne))==null?void 0:k.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),[]),Bm();const Y=v.useCallback(X=>{var de,k;return W.current===((de=ce.current)==null?void 0:de.side)&&b4(X,(k=ce.current)==null?void 0:k.area)},[]);return u.jsx(a4,{scope:r,searchRef:te,onItemEnter:v.useCallback(X=>{Y(X)&&X.preventDefault()},[Y]),onItemLeave:v.useCallback(X=>{var de;Y(X)||((de=H.current)==null||de.focus(),K(null))},[Y]),onTriggerLeave:v.useCallback(X=>{Y(X)&&X.preventDefault()},[Y]),pointerGraceTimerRef:ue,onPointerGraceIntentChange:v.useCallback(X=>{ce.current=X},[]),children:u.jsx(re,{...U,children:u.jsx(Tc,{asChild:!0,trapped:o,onMountAutoFocus:ae(c,X=>{var de;X.preventDefault(),(de=H.current)==null||de.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:g,onPointerDownOutside:x,onFocusOutside:y,onInteractOutside:w,onDismiss:S,children:u.jsx(Jm,{asChild:!0,...R,dir:_.dir,orientation:"vertical",loop:i,currentTabStopId:L,onCurrentTabStopIdChange:K,onEntryFocus:ae(p,X=>{_.isUsingKeyboardRef.current||X.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(Zm,{role:"menu","aria-orientation":"vertical","data-state":Aw(C.open),"data-radix-menu-content":"",dir:_.dir,...T,...j,ref:q,style:{outline:"none",...j.style},onKeyDown:ae(j.onKeyDown,X=>{const de=X.target.closest("[data-radix-menu-content]")===X.currentTarget,k=X.ctrlKey||X.altKey||X.metaKey,F=X.key.length===1;de&&(X.key==="Tab"&&X.preventDefault(),!k&&F&&I(X.key));const ee=H.current;if(X.target!==ee||!PA.includes(X.key))return;X.preventDefault();const le=D().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);fw.includes(X.key)&&le.reverse(),v4(le)}),onBlur:ae(n.onBlur,X=>{X.currentTarget.contains(X.target)||(window.clearTimeout(G.current),te.current="")}),onPointerMove:ae(n.onPointerMove,ro(X=>{const de=X.target,k=ie.current!==X.clientX;if(X.currentTarget.contains(de)&&k){const F=X.clientX>ie.current?"right":"left";W.current=F,ie.current=X.clientX}}))})})})})})})});vw.displayName=_n;var s4="MenuGroup",lp=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{role:"group",...i,ref:a})});lp.displayName=s4;var o4="MenuLabel",gw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{...i,ref:a})});gw.displayName=o4;var pc="MenuItem",Yx="menu.itemSelect",Uc=v.forwardRef((n,a)=>{const{disabled:r=!1,onSelect:i,...o}=n,c=v.useRef(null),h=xo(pc,n.__scopeMenu),m=np(pc,n.__scopeMenu),p=we(a,c),g=v.useRef(!1),x=()=>{const y=c.current;if(!r&&y){const w=new CustomEvent(Yx,{bubbles:!0,cancelable:!0});y.addEventListener(Yx,S=>i==null?void 0:i(S),{once:!0}),oc(y,w),w.defaultPrevented?g.current=!1:h.onClose()}};return u.jsx(yw,{...o,ref:p,disabled:r,onClick:ae(n.onClick,x),onPointerDown:y=>{var w;(w=n.onPointerDown)==null||w.call(n,y),g.current=!0},onPointerUp:ae(n.onPointerUp,y=>{var w;g.current||(w=y.currentTarget)==null||w.click()}),onKeyDown:ae(n.onKeyDown,y=>{const w=m.searchRef.current!=="";r||w&&y.key===" "||cm.includes(y.key)&&(y.currentTarget.click(),y.preventDefault())})})});Uc.displayName=pc;var yw=v.forwardRef((n,a)=>{const{__scopeMenu:r,disabled:i=!1,textValue:o,...c}=n,h=np(pc,r),m=mw(r),p=v.useRef(null),g=we(a,p),[x,y]=v.useState(!1),[w,S]=v.useState("");return v.useEffect(()=>{const E=p.current;E&&S((E.textContent??"").trim())},[c.children]),u.jsx(lo.ItemSlot,{scope:r,disabled:i,textValue:o??w,children:u.jsx(Im,{asChild:!0,...m,focusable:!i,children:u.jsx(se.div,{role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...c,ref:g,onPointerMove:ae(n.onPointerMove,ro(E=>{i?h.onItemLeave(E):(h.onItemEnter(E),E.defaultPrevented||E.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ae(n.onPointerLeave,ro(E=>h.onItemLeave(E))),onFocus:ae(n.onFocus,()=>y(!0)),onBlur:ae(n.onBlur,()=>y(!1))})})})}),u4="MenuCheckboxItem",xw=v.forwardRef((n,a)=>{const{checked:r=!1,onCheckedChange:i,...o}=n;return u.jsx(Ew,{scope:n.__scopeMenu,checked:r,children:u.jsx(Uc,{role:"menuitemcheckbox","aria-checked":vc(r)?"mixed":r,...o,ref:a,"data-state":ip(r),onSelect:ae(o.onSelect,()=>i==null?void 0:i(vc(r)?!0:!r),{checkForDefaultPrevented:!1})})})});xw.displayName=u4;var bw="MenuRadioGroup",[c4,d4]=xr(bw,{value:void 0,onValueChange:()=>{}}),ww=v.forwardRef((n,a)=>{const{value:r,onValueChange:i,...o}=n,c=nt(i);return u.jsx(c4,{scope:n.__scopeMenu,value:r,onValueChange:c,children:u.jsx(lp,{...o,ref:a})})});ww.displayName=bw;var jw="MenuRadioItem",Sw=v.forwardRef((n,a)=>{const{value:r,...i}=n,o=d4(jw,n.__scopeMenu),c=r===o.value;return u.jsx(Ew,{scope:n.__scopeMenu,checked:c,children:u.jsx(Uc,{role:"menuitemradio","aria-checked":c,...i,ref:a,"data-state":ip(c),onSelect:ae(i.onSelect,()=>{var h;return(h=o.onValueChange)==null?void 0:h.call(o,r)},{checkForDefaultPrevented:!1})})})});Sw.displayName=jw;var rp="MenuItemIndicator",[Ew,f4]=xr(rp,{checked:!1}),Nw=v.forwardRef((n,a)=>{const{__scopeMenu:r,forceMount:i,...o}=n,c=f4(rp,r);return u.jsx(Et,{present:i||vc(c.checked)||c.checked===!0,children:u.jsx(se.span,{...o,ref:a,"data-state":ip(c.checked)})})});Nw.displayName=rp;var h4="MenuSeparator",Cw=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n;return u.jsx(se.div,{role:"separator","aria-orientation":"horizontal",...i,ref:a})});Cw.displayName=h4;var m4="MenuArrow",_w=v.forwardRef((n,a)=>{const{__scopeMenu:r,...i}=n,o=ep(r);return u.jsx(Pm,{...o,...i,ref:a})});_w.displayName=m4;var p4="MenuSub",[Zz,Tw]=xr(p4),Fs="MenuSubTrigger",Rw=v.forwardRef((n,a)=>{const r=Xi(Fs,n.__scopeMenu),i=xo(Fs,n.__scopeMenu),o=Tw(Fs,n.__scopeMenu),c=np(Fs,n.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=c,g={__scopeMenu:n.__scopeMenu},x=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);return v.useEffect(()=>x,[x]),v.useEffect(()=>{const y=m.current;return()=>{window.clearTimeout(y),p(null)}},[m,p]),u.jsx(tp,{asChild:!0,...g,children:u.jsx(yw,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":o.contentId,"data-state":Aw(r.open),...n,ref:vo(a,o.onTriggerChange),onClick:y=>{var w;(w=n.onClick)==null||w.call(n,y),!(n.disabled||y.defaultPrevented)&&(y.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ae(n.onPointerMove,ro(y=>{c.onItemEnter(y),!y.defaultPrevented&&!n.disabled&&!r.open&&!h.current&&(c.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{r.onOpenChange(!0),x()},100))})),onPointerLeave:ae(n.onPointerLeave,ro(y=>{var w,S;x();const E=(w=r.content)==null?void 0:w.getBoundingClientRect();if(E){const j=(S=r.content)==null?void 0:S.dataset.side,C=j==="right",_=C?-5:5,T=E[C?"left":"right"],R=E[C?"right":"left"];c.onPointerGraceIntentChange({area:[{x:y.clientX+_,y:y.clientY},{x:T,y:E.top},{x:R,y:E.top},{x:R,y:E.bottom},{x:T,y:E.bottom}],side:j}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(y),y.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:ae(n.onKeyDown,y=>{var w;const S=c.searchRef.current!=="";n.disabled||S&&y.key===" "||JA[i.dir].includes(y.key)&&(r.onOpenChange(!0),(w=r.content)==null||w.focus(),y.preventDefault())})})})});Rw.displayName=Fs;var Mw="MenuSubContent",kw=v.forwardRef((n,a)=>{const r=pw(_n,n.__scopeMenu),{forceMount:i=r.forceMount,...o}=n,c=Xi(_n,n.__scopeMenu),h=xo(_n,n.__scopeMenu),m=Tw(Mw,n.__scopeMenu),p=v.useRef(null),g=we(a,p);return u.jsx(lo.Provider,{scope:n.__scopeMenu,children:u.jsx(Et,{present:i||c.open,children:u.jsx(lo.Slot,{scope:n.__scopeMenu,children:u.jsx(ap,{id:m.contentId,"aria-labelledby":m.triggerId,...o,ref:g,align:"start",side:h.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:x=>{var y;h.isUsingKeyboardRef.current&&((y=p.current)==null||y.focus()),x.preventDefault()},onCloseAutoFocus:x=>x.preventDefault(),onFocusOutside:ae(n.onFocusOutside,x=>{x.target!==m.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:ae(n.onEscapeKeyDown,x=>{h.onClose(),x.preventDefault()}),onKeyDown:ae(n.onKeyDown,x=>{var y;const w=x.currentTarget.contains(x.target),S=IA[h.dir].includes(x.key);w&&S&&(c.onOpenChange(!1),(y=m.trigger)==null||y.focus(),x.preventDefault())})})})})})});kw.displayName=Mw;function Aw(n){return n?"open":"closed"}function vc(n){return n==="indeterminate"}function ip(n){return vc(n)?"indeterminate":n?"checked":"unchecked"}function v4(n){const a=document.activeElement;for(const r of n)if(r===a||(r.focus(),document.activeElement!==a))return}function g4(n,a){return n.map((r,i)=>n[(a+i)%n.length])}function y4(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,o=r?n.indexOf(r):-1;let c=g4(n,Math.max(o,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function x4(n,a){const{x:r,y:i}=n;let o=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,x=m.y,y=p.x,w=p.y;x>i!=w>i&&r<(y-g)*(i-x)/(w-x)+g&&(o=!o)}return o}function b4(n,a){if(!a)return!1;const r={x:n.clientX,y:n.clientY};return x4(r,a)}function ro(n){return a=>a.pointerType==="mouse"?n(a):void 0}var w4=tp,j4=vw,S4=lp,E4=gw,N4=Uc,C4=xw,_4=ww,T4=Sw,R4=Nw,M4=Cw,k4=_w,A4=Rw,D4=kw,Dw="DropdownMenu",[O4,Pz]=bt(Dw,[hw]),fn=hw(),[Jz,Ow]=O4(Dw),zw="DropdownMenuTrigger",z4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,disabled:i=!1,...o}=n,c=Ow(zw,r),h=fn(r);return u.jsx(w4,{asChild:!0,...h,children:u.jsx(se.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...o,ref:vo(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())})})})});z4.displayName=zw;var Lw="DropdownMenuContent",Uw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=Ow(Lw,r),c=fn(r),h=v.useRef(!1);return u.jsx(j4,{id:o.contentId,"aria-labelledby":o.triggerId,...c,...i,ref:a,onCloseAutoFocus:ae(n.onCloseAutoFocus,m=>{var p;h.current||(p=o.triggerRef.current)==null||p.focus(),h.current=!1,m.preventDefault()}),onInteractOutside:ae(n.onInteractOutside,m=>{const p=m.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,x=p.button===2||g;(!o.modal||x)&&(h.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Uw.displayName=Lw;var L4="DropdownMenuGroup",U4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(S4,{...o,...i,ref:a})});U4.displayName=L4;var q4="DropdownMenuLabel",qw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(E4,{...o,...i,ref:a})});qw.displayName=q4;var H4="DropdownMenuItem",Hw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(N4,{...o,...i,ref:a})});Hw.displayName=H4;var B4="DropdownMenuCheckboxItem",Bw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(C4,{...o,...i,ref:a})});Bw.displayName=B4;var $4="DropdownMenuRadioGroup",Q4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(_4,{...o,...i,ref:a})});Q4.displayName=$4;var G4="DropdownMenuRadioItem",$w=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(T4,{...o,...i,ref:a})});$w.displayName=G4;var Y4="DropdownMenuItemIndicator",V4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(R4,{...o,...i,ref:a})});V4.displayName=Y4;var K4="DropdownMenuSeparator",Qw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(M4,{...o,...i,ref:a})});Qw.displayName=K4;var X4="DropdownMenuArrow",F4=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(k4,{...o,...i,ref:a})});F4.displayName=X4;var Z4="DropdownMenuSubTrigger",Gw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(A4,{...o,...i,ref:a})});Gw.displayName=Z4;var P4="DropdownMenuSubContent",Yw=v.forwardRef((n,a)=>{const{__scopeDropdownMenu:r,...i}=n,o=fn(r);return u.jsx(D4,{...o,...i,ref:a,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Yw.displayName=P4;var J4=Uw,I4=qw,W4=Hw,e3=Bw,t3=$w,n3=Qw,a3=Gw,l3=Yw;const Vw=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",Vw,"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",Vw,"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 Kw="Dialog",[Xw,Fw]=bt(Kw),[Iz,oa]=Xw(Kw),Zw="DialogTrigger",Pw=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(Zw,r),c=we(a,o.triggerRef);return u.jsx(se.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":op(o.open),...i,ref:c,onClick:ae(n.onClick,o.onOpenToggle)})});Pw.displayName=Zw;var r3="DialogPortal",[Wz,Jw]=Xw(r3,{forceMount:void 0}),gc="DialogOverlay",Iw=v.forwardRef((n,a)=>{const r=Jw(gc,n.__scopeDialog),{forceMount:i=r.forceMount,...o}=n,c=oa(gc,n.__scopeDialog);return c.modal?u.jsx(Et,{present:i||c.open,children:u.jsx(s3,{...o,ref:a})}):null});Iw.displayName=gc;var i3=hr("DialogOverlay.RemoveScroll"),s3=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(gc,r);return u.jsx(zc,{as:i3,allowPinchZoom:!0,shards:[o.contentRef],children:u.jsx(se.div,{"data-state":op(o.open),...i,ref:a,style:{pointerEvents:"auto",...i.style}})})}),pr="DialogContent",Ww=v.forwardRef((n,a)=>{const r=Jw(pr,n.__scopeDialog),{forceMount:i=r.forceMount,...o}=n,c=oa(pr,n.__scopeDialog);return u.jsx(Et,{present:i||c.open,children:c.modal?u.jsx(o3,{...o,ref:a}):u.jsx(u3,{...o,ref:a})})});Ww.displayName=pr;var o3=v.forwardRef((n,a)=>{const r=oa(pr,n.__scopeDialog),i=v.useRef(null),o=we(a,r.contentRef,i);return v.useEffect(()=>{const c=i.current;if(c)return Wm(c)},[]),u.jsx(ej,{...n,ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ae(n.onCloseAutoFocus,c=>{var h;c.preventDefault(),(h=r.triggerRef.current)==null||h.focus()}),onPointerDownOutside:ae(n.onPointerDownOutside,c=>{const h=c.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&c.preventDefault()}),onFocusOutside:ae(n.onFocusOutside,c=>c.preventDefault())})}),u3=v.forwardRef((n,a)=>{const r=oa(pr,n.__scopeDialog),i=v.useRef(!1),o=v.useRef(!1);return u.jsx(ej,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var h,m;(h=n.onCloseAutoFocus)==null||h.call(n,c),c.defaultPrevented||(i.current||(m=r.triggerRef.current)==null||m.focus(),c.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:c=>{var h,m;(h=n.onInteractOutside)==null||h.call(n,c),c.defaultPrevented||(i.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const p=c.target;(m=r.triggerRef.current)!=null&&m.contains(p)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),ej=v.forwardRef((n,a)=>{const{__scopeDialog:r,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:c,...h}=n,m=oa(pr,r),p=v.useRef(null),g=we(a,p);return Bm(),u.jsxs(u.Fragment,{children:[u.jsx(Tc,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:c,children:u.jsx(Qi,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionId,"aria-labelledby":m.titleId,"data-state":op(m.open),...h,ref:g,onDismiss:()=>m.onOpenChange(!1)})}),u.jsxs(u.Fragment,{children:[u.jsx(d3,{titleId:m.titleId}),u.jsx(h3,{contentRef:p,descriptionId:m.descriptionId})]})]})}),sp="DialogTitle",tj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(sp,r);return u.jsx(se.h2,{id:o.titleId,...i,ref:a})});tj.displayName=sp;var nj="DialogDescription",aj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(nj,r);return u.jsx(se.p,{id:o.descriptionId,...i,ref:a})});aj.displayName=nj;var lj="DialogClose",rj=v.forwardRef((n,a)=>{const{__scopeDialog:r,...i}=n,o=oa(lj,r);return u.jsx(se.button,{type:"button",...i,ref:a,onClick:ae(n.onClick,()=>o.onOpenChange(!1))})});rj.displayName=lj;function op(n){return n?"open":"closed"}var ij="DialogTitleWarning",[c3,sj]=JR(ij,{contentName:pr,titleName:sp,docsSlug:"dialog"}),d3=({titleId:n})=>{const a=sj(ij),r=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
|
|
342
|
-
|
|
343
|
-
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
344
|
-
|
|
345
|
-
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},f3="DialogDescriptionWarning",h3=({contentRef:n,descriptionId:a})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${sj(f3).contentName}}.`;return v.useEffect(()=>{var i;const o=(i=n.current)==null?void 0:i.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(r))},[r,n,a]),null},m3=Pw,p3=Iw,v3=Ww,g3=tj,y3=aj,oj=rj,x3="AlertDialog",[b3,e6]=bt(x3,[Fw]),br=Fw(),w3="AlertDialogTrigger",j3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(m3,{...o,...i,ref:a})});j3.displayName=w3;var S3="AlertDialogOverlay",E3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(p3,{...o,...i,ref:a})});E3.displayName=S3;var pi="AlertDialogContent",[N3,C3]=b3(pi),_3=c1("AlertDialogContent"),T3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,children:i,...o}=n,c=br(r),h=v.useRef(null),m=we(a,h),p=v.useRef(null);return u.jsx(c3,{contentName:pi,titleName:uj,docsSlug:"alert-dialog",children:u.jsx(N3,{scope:r,cancelRef:p,children:u.jsxs(v3,{role:"alertdialog",...c,...o,ref:m,onOpenAutoFocus:ae(o.onOpenAutoFocus,g=>{var x;g.preventDefault(),(x=p.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[u.jsx(_3,{children:i}),u.jsx(O3,{contentRef:h})]})})})});T3.displayName=pi;var uj="AlertDialogTitle",R3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(g3,{...o,...i,ref:a})});R3.displayName=uj;var cj="AlertDialogDescription",M3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(y3,{...o,...i,ref:a})});M3.displayName=cj;var k3="AlertDialogAction",A3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,o=br(r);return u.jsx(oj,{...o,...i,ref:a})});A3.displayName=k3;var dj="AlertDialogCancel",D3=v.forwardRef((n,a)=>{const{__scopeAlertDialog:r,...i}=n,{cancelRef:o}=C3(dj,r),c=br(r),h=we(a,o);return u.jsx(oj,{...c,...i,ref:h})});D3.displayName=dj;var O3=({contentRef:n})=>{const a=`\`${pi}\` requires a description for the component to be accessible for screen reader users.
|
|
346
|
-
|
|
347
|
-
You can add a description to the \`${pi}\` by passing a \`${cj}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
348
|
-
|
|
349
|
-
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 \`${pi}\`. 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.
|
|
350
|
-
|
|
351
|
-
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 bo(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 fj=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"}),z3="VisuallyHidden",hj=v.forwardRef((n,a)=>u.jsx(se.span,{...n,ref:a,style:{...fj,...n.style}}));hj.displayName=z3;var mj=hj,L3=[" ","Enter","ArrowUp","ArrowDown"],U3=[" ","Enter"],qc="Select",[up,Hc,q3]=$i(qc),[Fi,t6]=bt(qc,[q3,Vi]),cp=Vi(),[n6,Ol]=Fi(qc),[a6,H3]=Fi(qc),pj="SelectTrigger",B3=v.forwardRef((n,a)=>{const{__scopeSelect:r,disabled:i=!1,...o}=n,c=cp(r),h=Ol(pj,r),m=h.disabled||i,p=we(a,h.onTriggerChange),g=Hc(r),x=v.useRef("touch"),[y,w,S]=Cj(j=>{const C=g().filter(R=>!R.disabled),_=C.find(R=>R.value===h.value),T=_j(C,j,_);T!==void 0&&h.onValueChange(T.value)}),E=j=>{m||(h.onOpenChange(!0),S()),j&&(h.triggerPointerDownPosRef.current={x:Math.round(j.pageX),y:Math.round(j.pageY)})};return u.jsx(Fm,{asChild:!0,...c,children:u.jsx(se.button,{type:"button",role:"combobox","aria-controls":h.contentId,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":Nj(h.value)?"":void 0,...o,ref:p,onClick:ae(o.onClick,j=>{j.currentTarget.focus(),x.current!=="mouse"&&E(j)}),onPointerDown:ae(o.onPointerDown,j=>{x.current=j.pointerType;const C=j.target;C.hasPointerCapture(j.pointerId)&&C.releasePointerCapture(j.pointerId),j.button===0&&j.ctrlKey===!1&&j.pointerType==="mouse"&&(E(j),j.preventDefault())}),onKeyDown:ae(o.onKeyDown,j=>{const C=y.current!=="";!(j.ctrlKey||j.altKey||j.metaKey)&&j.key.length===1&&w(j.key),!(C&&j.key===" ")&&L3.includes(j.key)&&(E(),j.preventDefault())})})})});B3.displayName=pj;var vj="SelectValue",$3=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:o,children:c,placeholder:h="",...m}=n,p=Ol(vj,r),{onValueNodeHasChildrenChange:g}=p,x=c!==void 0,y=we(a,p.onValueNodeChange);return lt(()=>{g(x)},[g,x]),u.jsx(se.span,{...m,ref:y,style:{pointerEvents:"none"},children:Nj(p.value)?u.jsx(u.Fragment,{children:h}):c})});$3.displayName=vj;var Q3="SelectIcon",G3=v.forwardRef((n,a)=>{const{__scopeSelect:r,children:i,...o}=n;return u.jsx(se.span,{"aria-hidden":!0,...o,ref:a,children:i||"▼"})});G3.displayName=Q3;var vr="SelectContent",Y3=v.forwardRef((n,a)=>{const r=Ol(vr,n.__scopeSelect),[i,o]=v.useState();if(lt(()=>{o(new DocumentFragment)},[]),!r.open){const c=i;return c?ho.createPortal(u.jsx(gj,{scope:n.__scopeSelect,children:u.jsx(up.Slot,{scope:n.__scopeSelect,children:u.jsx("div",{children:n.children})})}),c):null}return u.jsx(yj,{...n,ref:a})});Y3.displayName=vr;var On=10,[gj,zl]=Fi(vr),V3="SelectContentImpl",K3=hr("SelectContent.RemoveScroll"),yj=v.forwardRef((n,a)=>{const{__scopeSelect:r,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:h,side:m,sideOffset:p,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:w,collisionPadding:S,sticky:E,hideWhenDetached:j,avoidCollisions:C,..._}=n,T=Ol(vr,r),[R,D]=v.useState(null),[L,K]=v.useState(null),H=we(a,ne=>D(ne)),[q,G]=v.useState(null),[te,ue]=v.useState(null),ce=Hc(r),[W,ie]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(R)return Wm(R)},[R]),Bm();const U=v.useCallback(ne=>{const[Ee,...ye]=ce().map(Ke=>Ke.ref.current),[Ne]=ye.slice(-1),He=document.activeElement;for(const Ke of ne)if(Ke===He||(Ke==null||Ke.scrollIntoView({block:"nearest"}),Ke===Ee&&L&&(L.scrollTop=0),Ke===Ne&&L&&(L.scrollTop=L.scrollHeight),Ke==null||Ke.focus(),document.activeElement!==He))return},[ce,L]),I=v.useCallback(()=>U([q,R]),[U,q,R]);v.useEffect(()=>{W&&I()},[W,I]);const{onOpenChange:Y,triggerPointerDownPosRef:X}=T;v.useEffect(()=>{if(R){let ne={x:0,y:0};const Ee=Ne=>{var He,Ke;ne={x:Math.abs(Math.round(Ne.pageX)-(((He=X.current)==null?void 0:He.x)??0)),y:Math.abs(Math.round(Ne.pageY)-(((Ke=X.current)==null?void 0:Ke.y)??0))}},ye=Ne=>{ne.x<=10&&ne.y<=10?Ne.preventDefault():R.contains(Ne.target)||Y(!1),document.removeEventListener("pointermove",Ee),X.current=null};return X.current!==null&&(document.addEventListener("pointermove",Ee),document.addEventListener("pointerup",ye,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ee),document.removeEventListener("pointerup",ye,{capture:!0})}}},[R,Y,X]),v.useEffect(()=>{const ne=()=>Y(!1);return window.addEventListener("blur",ne),window.addEventListener("resize",ne),()=>{window.removeEventListener("blur",ne),window.removeEventListener("resize",ne)}},[Y]);const[de,k]=Cj(ne=>{const Ee=ce().filter(He=>!He.disabled),ye=Ee.find(He=>He.ref.current===document.activeElement),Ne=_j(Ee,ne,ye);Ne&&setTimeout(()=>Ne.ref.current.focus())}),F=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&(G(ne),Ne&&(re.current=!0))},[T.value]),ee=v.useCallback(()=>R==null?void 0:R.focus(),[R]),le=v.useCallback((ne,Ee,ye)=>{const Ne=!re.current&&!ye;(T.value!==void 0&&T.value===Ee||Ne)&&ue(ne)},[T.value]),ve=i==="popper"?dm:xj,Se=ve===dm?{side:m,sideOffset:p,align:g,alignOffset:x,arrowPadding:y,collisionBoundary:w,collisionPadding:S,sticky:E,hideWhenDetached:j,avoidCollisions:C}:{};return u.jsx(gj,{scope:r,content:R,viewport:L,onViewportChange:K,itemRefCallback:F,selectedItem:q,onItemLeave:ee,itemTextRefCallback:le,focusSelectedItem:I,selectedItemText:te,position:i,isPositioned:W,searchRef:de,children:u.jsx(zc,{as:K3,allowPinchZoom:!0,children:u.jsx(Tc,{asChild:!0,trapped:T.open,onMountAutoFocus:ne=>{ne.preventDefault()},onUnmountAutoFocus:ae(o,ne=>{var Ee;(Ee=T.trigger)==null||Ee.focus({preventScroll:!0}),ne.preventDefault()}),children:u.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:ne=>ne.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:u.jsx(ve,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:ne=>ne.preventDefault(),..._,...Se,onPlaced:()=>ie(!0),ref:H,style:{display:"flex",flexDirection:"column",outline:"none",..._.style},onKeyDown:ae(_.onKeyDown,ne=>{const Ee=ne.ctrlKey||ne.altKey||ne.metaKey;if(ne.key==="Tab"&&ne.preventDefault(),!Ee&&ne.key.length===1&&k(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()}})})})})})})});yj.displayName=V3;var X3="SelectItemAlignedPosition",xj=v.forwardRef((n,a)=>{const{__scopeSelect:r,onPlaced:i,...o}=n,c=Ol(vr,r),h=zl(vr,r),[m,p]=v.useState(null),[g,x]=v.useState(null),y=we(a,H=>x(H)),w=Hc(r),S=v.useRef(!1),E=v.useRef(!0),{viewport:j,selectedItem:C,selectedItemText:_,focusSelectedItem:T}=h,R=v.useCallback(()=>{if(c.trigger&&c.valueNode&&m&&g&&j&&C&&_){const H=c.trigger.getBoundingClientRect(),q=g.getBoundingClientRect(),G=c.valueNode.getBoundingClientRect(),te=_.getBoundingClientRect();if(c.dir!=="rtl"){const Ne=te.left-q.left,He=G.left-Ne,Ke=H.left-He,Ot=H.width+Ke,Jt=Math.max(Ot,q.width),ca=window.innerWidth-On,da=am(He,[On,Math.max(On,ca-Jt)]);m.style.minWidth=Ot+"px",m.style.left=da+"px"}else{const Ne=q.right-te.right,He=window.innerWidth-G.right-Ne,Ke=window.innerWidth-H.right-He,Ot=H.width+Ke,Jt=Math.max(Ot,q.width),ca=window.innerWidth-On,da=am(He,[On,Math.max(On,ca-Jt)]);m.style.minWidth=Ot+"px",m.style.right=da+"px"}const ue=w(),ce=window.innerHeight-On*2,W=j.scrollHeight,ie=window.getComputedStyle(g),re=parseInt(ie.borderTopWidth,10),U=parseInt(ie.paddingTop,10),I=parseInt(ie.borderBottomWidth,10),Y=parseInt(ie.paddingBottom,10),X=re+U+W+Y+I,de=Math.min(C.offsetHeight*5,X),k=window.getComputedStyle(j),F=parseInt(k.paddingTop,10),ee=parseInt(k.paddingBottom,10),le=H.top+H.height/2-On,ve=ce-le,Se=C.offsetHeight/2,ne=C.offsetTop+Se,Ee=re+U+ne,ye=X-Ee;if(Ee<=le){const Ne=ue.length>0&&C===ue[ue.length-1].ref.current;m.style.bottom="0px";const He=g.clientHeight-j.offsetTop-j.offsetHeight,Ke=Math.max(ve,Se+(Ne?ee:0)+He+I),Ot=Ee+Ke;m.style.height=Ot+"px"}else{const Ne=ue.length>0&&C===ue[0].ref.current;m.style.top="0px";const He=Math.max(le,re+j.offsetTop+(Ne?F:0)+Se)+ye;m.style.height=He+"px",j.scrollTop=Ee-le+j.offsetTop}m.style.margin=`${On}px 0`,m.style.minHeight=de+"px",m.style.maxHeight=ce+"px",i==null||i(),requestAnimationFrame(()=>S.current=!0)}},[w,c.trigger,c.valueNode,m,g,j,C,_,c.dir,i]);lt(()=>R(),[R]);const[D,L]=v.useState();lt(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const K=v.useCallback(H=>{H&&E.current===!0&&(R(),T==null||T(),E.current=!1)},[R,T]);return u.jsx(Z3,{scope:r,contentWrapper:m,shouldExpandOnScrollRef:S,onScrollButtonChange:K,children:u.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:D},children:u.jsx(se.div,{...o,ref:y,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});xj.displayName=X3;var F3="SelectPopperPosition",dm=v.forwardRef((n,a)=>{const{__scopeSelect:r,align:i="start",collisionPadding:o=On,...c}=n,h=cp(r);return u.jsx(Zm,{...h,...c,ref:a,align:i,collisionPadding:o,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});dm.displayName=F3;var[Z3,dp]=Fi(vr,{}),fm="SelectViewport",P3=v.forwardRef((n,a)=>{const{__scopeSelect:r,nonce:i,...o}=n,c=zl(fm,r),h=dp(fm,r),m=we(a,c.onViewportChange),p=v.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),u.jsx(up.Slot,{scope:r,children:u.jsx(se.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:ae(o.onScroll,g=>{const x=g.currentTarget,{contentWrapper:y,shouldExpandOnScrollRef:w}=h;if(w!=null&&w.current&&y){const S=Math.abs(p.current-x.scrollTop);if(S>0){const E=window.innerHeight-On*2,j=parseFloat(y.style.minHeight),C=parseFloat(y.style.height),_=Math.max(j,C);if(_<E){const T=_+S,R=Math.min(E,T),D=T-R;y.style.height=R+"px",y.style.bottom==="0px"&&(x.scrollTop=D>0?D:0,y.style.justifyContent="flex-end")}}}p.current=x.scrollTop})})})]})});P3.displayName=fm;var bj="SelectGroup",[J3,I3]=Fi(bj),W3=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=Dl();return u.jsx(J3,{scope:r,id:o,children:u.jsx(se.div,{role:"group","aria-labelledby":o,...i,ref:a})})});W3.displayName=bj;var wj="SelectLabel",eD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=I3(wj,r);return u.jsx(se.div,{id:o.id,...i,ref:a})});eD.displayName=wj;var yc="SelectItem",[tD,jj]=Fi(yc),nD=v.forwardRef((n,a)=>{const{__scopeSelect:r,value:i,disabled:o=!1,textValue:c,...h}=n,m=Ol(yc,r),p=zl(yc,r),g=m.value===i,[x,y]=v.useState(c??""),[w,S]=v.useState(!1),E=we(a,T=>{var R;return(R=p.itemRefCallback)==null?void 0:R.call(p,T,i,o)}),j=Dl(),C=v.useRef("touch"),_=()=>{o||(m.onValueChange(i),m.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return u.jsx(tD,{scope:r,value:i,disabled:o,textId:j,isSelected:g,onItemTextChange:v.useCallback(T=>{y(R=>R||((T==null?void 0:T.textContent)??"").trim())},[]),children:u.jsx(up.ItemSlot,{scope:r,value:i,disabled:o,textValue:x,children:u.jsx(se.div,{role:"option","aria-labelledby":j,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...h,ref:E,onFocus:ae(h.onFocus,()=>S(!0)),onBlur:ae(h.onBlur,()=>S(!1)),onClick:ae(h.onClick,()=>{C.current!=="mouse"&&_()}),onPointerUp:ae(h.onPointerUp,()=>{C.current==="mouse"&&_()}),onPointerDown:ae(h.onPointerDown,T=>{C.current=T.pointerType}),onPointerMove:ae(h.onPointerMove,T=>{var R;C.current=T.pointerType,o?(R=p.onItemLeave)==null||R.call(p):C.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ae(h.onPointerLeave,T=>{var R;T.currentTarget===document.activeElement&&((R=p.onItemLeave)==null||R.call(p))}),onKeyDown:ae(h.onKeyDown,T=>{var R;((R=p.searchRef)==null?void 0:R.current)!==""&&T.key===" "||(U3.includes(T.key)&&_(),T.key===" "&&T.preventDefault())})})})})});nD.displayName=yc;var Zs="SelectItemText",aD=v.forwardRef((n,a)=>{const{__scopeSelect:r,className:i,style:o,...c}=n,h=Ol(Zs,r),m=zl(Zs,r),p=jj(Zs,r),g=H3(Zs,r),[x,y]=v.useState(null),w=we(a,_=>y(_),p.onItemTextChange,_=>{var T;return(T=m.itemTextRefCallback)==null?void 0:T.call(m,_,p.value,p.disabled)}),S=x==null?void 0:x.textContent,E=v.useMemo(()=>u.jsx("option",{value:p.value,disabled:p.disabled,children:S},p.value),[p.disabled,p.value,S]),{onNativeOptionAdd:j,onNativeOptionRemove:C}=g;return lt(()=>(j(E),()=>C(E)),[j,C,E]),u.jsxs(u.Fragment,{children:[u.jsx(se.span,{id:p.textId,...c,ref:w}),p.isSelected&&h.valueNode&&!h.valueNodeHasChildren?ho.createPortal(c.children,h.valueNode):null]})});aD.displayName=Zs;var Sj="SelectItemIndicator",lD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return jj(Sj,r).isSelected?u.jsx(se.span,{"aria-hidden":!0,...i,ref:a}):null});lD.displayName=Sj;var hm="SelectScrollUpButton",rD=v.forwardRef((n,a)=>{const r=zl(hm,n.__scopeSelect),i=dp(hm,n.__scopeSelect),[o,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollTop>0;c(g)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),o?u.jsx(Ej,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop-p.offsetHeight)}}):null});rD.displayName=hm;var mm="SelectScrollDownButton",iD=v.forwardRef((n,a)=>{const r=zl(mm,n.__scopeSelect),i=dp(mm,n.__scopeSelect),[o,c]=v.useState(!1),h=we(a,i.onScrollButtonChange);return lt(()=>{if(r.viewport&&r.isPositioned){let m=function(){const g=p.scrollHeight-p.clientHeight,x=Math.ceil(p.scrollTop)<g;c(x)};const p=r.viewport;return m(),p.addEventListener("scroll",m),()=>p.removeEventListener("scroll",m)}},[r.viewport,r.isPositioned]),o?u.jsx(Ej,{...n,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:p}=r;m&&p&&(m.scrollTop=m.scrollTop+p.offsetHeight)}}):null});iD.displayName=mm;var Ej=v.forwardRef((n,a)=>{const{__scopeSelect:r,onAutoScroll:i,...o}=n,c=zl("SelectScrollButton",r),h=v.useRef(null),m=Hc(r),p=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),lt(()=>{var g;const x=m().find(y=>y.ref.current===document.activeElement);(g=x==null?void 0:x.ref.current)==null||g.scrollIntoView({block:"nearest"})},[m]),u.jsx(se.div,{"aria-hidden":!0,...o,ref:a,style:{flexShrink:0,...o.style},onPointerDown:ae(o.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(i,50))}),onPointerMove:ae(o.onPointerMove,()=>{var g;(g=c.onItemLeave)==null||g.call(c),h.current===null&&(h.current=window.setInterval(i,50))}),onPointerLeave:ae(o.onPointerLeave,()=>{p()})})}),sD="SelectSeparator",oD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n;return u.jsx(se.div,{"aria-hidden":!0,...i,ref:a})});oD.displayName=sD;var pm="SelectArrow",uD=v.forwardRef((n,a)=>{const{__scopeSelect:r,...i}=n,o=cp(r),c=Ol(pm,r),h=zl(pm,r);return c.open&&h.position==="popper"?u.jsx(Pm,{...o,...i,ref:a}):null});uD.displayName=pm;var cD="SelectBubbleInput",dD=v.forwardRef(({__scopeSelect:n,value:a,...r},i)=>{const o=v.useRef(null),c=we(i,o),h=bo(a);return v.useEffect(()=>{const m=o.current;if(!m)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(h!==a&&g){const x=new Event("change",{bubbles:!0});g.call(m,a),m.dispatchEvent(x)}},[h,a]),u.jsx(se.select,{...r,style:{...fj,...r.style},ref:c,defaultValue:a})});dD.displayName=cD;function Nj(n){return n===""||n===void 0}function Cj(n){const a=nt(n),r=v.useRef(""),i=v.useRef(0),o=v.useCallback(h=>{const m=r.current+h;a(m),(function p(g){r.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>p(""),1e3))})(m)},[a]),c=v.useCallback(()=>{r.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[r,o,c]}function _j(n,a,r){const i=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,o=r?n.indexOf(r):-1;let c=fD(n,Math.max(o,0));i.length===1&&(c=c.filter(m=>m!==r));const h=c.find(m=>m.textValue.toLowerCase().startsWith(i.toLowerCase()));return h!==r?h:void 0}function fD(n,a){return n.map((r,i)=>n[(a+i)%n.length])}var[Bc,l6]=bt("Tooltip",[Vi]),fp=Vi(),hD="TooltipProvider",Vx="tooltip.open",[r6,Tj]=Bc(hD),Rj="Tooltip",[i6,$c]=Bc(Rj),vm="TooltipTrigger",mD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,o=$c(vm,r),c=Tj(vm,r),h=fp(r),m=v.useRef(null),p=we(a,m,o.onTriggerChange),g=v.useRef(!1),x=v.useRef(!1),y=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",y),[y]),u.jsx(Fm,{asChild:!0,...h,children:u.jsx(se.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...i,ref:p,onPointerMove:ae(n.onPointerMove,w=>{w.pointerType!=="touch"&&!x.current&&!c.isPointerInTransitRef.current&&(o.onTriggerEnter(),x.current=!0)}),onPointerLeave:ae(n.onPointerLeave,()=>{o.onTriggerLeave(),x.current=!1}),onPointerDown:ae(n.onPointerDown,()=>{o.open&&o.onClose(),g.current=!0,document.addEventListener("pointerup",y,{once:!0})}),onFocus:ae(n.onFocus,()=>{g.current||o.onOpen()}),onBlur:ae(n.onBlur,o.onClose),onClick:ae(n.onClick,o.onClose)})})});mD.displayName=vm;var pD="TooltipPortal",[s6,vD]=Bc(pD,{forceMount:void 0}),Ai="TooltipContent",Mj=v.forwardRef((n,a)=>{const r=vD(Ai,n.__scopeTooltip),{forceMount:i=r.forceMount,side:o="top",...c}=n,h=$c(Ai,n.__scopeTooltip);return u.jsx(Et,{present:i||h.open,children:h.disableHoverableContent?u.jsx(kj,{side:o,...c,ref:a}):u.jsx(gD,{side:o,...c,ref:a})})}),gD=v.forwardRef((n,a)=>{const r=$c(Ai,n.__scopeTooltip),i=Tj(Ai,n.__scopeTooltip),o=v.useRef(null),c=we(a,o),[h,m]=v.useState(null),{trigger:p,onClose:g}=r,x=o.current,{onPointerInTransitChange:y}=i,w=v.useCallback(()=>{m(null),y(!1)},[y]),S=v.useCallback((E,j)=>{const C=E.currentTarget,_={x:E.clientX,y:E.clientY},T=jD(_,C.getBoundingClientRect()),R=SD(_,T),D=ED(j.getBoundingClientRect()),L=CD([...R,...D]);m(L),y(!0)},[y]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&x){const E=C=>S(C,x),j=C=>S(C,p);return p.addEventListener("pointerleave",E),x.addEventListener("pointerleave",j),()=>{p.removeEventListener("pointerleave",E),x.removeEventListener("pointerleave",j)}}},[p,x,S,w]),v.useEffect(()=>{if(h){const E=j=>{const C=j.target,_={x:j.clientX,y:j.clientY},T=(p==null?void 0:p.contains(C))||(x==null?void 0:x.contains(C)),R=!ND(_,h);T?w():R&&(w(),g())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[p,x,h,g,w]),u.jsx(kj,{...n,ref:c})}),[yD,xD]=Bc(Rj,{isInside:!1}),bD=c1("TooltipContent"),kj=v.forwardRef((n,a)=>{const{__scopeTooltip:r,children:i,"aria-label":o,onEscapeKeyDown:c,onPointerDownOutside:h,...m}=n,p=$c(Ai,r),g=fp(r),{onClose:x}=p;return v.useEffect(()=>(document.addEventListener(Vx,x),()=>document.removeEventListener(Vx,x)),[x]),v.useEffect(()=>{if(p.trigger){const y=w=>{const S=w.target;S!=null&&S.contains(p.trigger)&&x()};return window.addEventListener("scroll",y,{capture:!0}),()=>window.removeEventListener("scroll",y,{capture:!0})}},[p.trigger,x]),u.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:y=>y.preventDefault(),onDismiss:x,children:u.jsxs(Zm,{"data-state":p.stateAttribute,...g,...m,ref:a,style:{...m.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(bD,{children:i}),u.jsx(yD,{scope:r,isInside:!0,children:u.jsx(mj,{id:p.contentId,role:"tooltip",children:o||i})})]})})});Mj.displayName=Ai;var Aj="TooltipArrow",wD=v.forwardRef((n,a)=>{const{__scopeTooltip:r,...i}=n,o=fp(r);return xD(Aj,r).isInside?null:u.jsx(Pm,{...o,...i,ref:a})});wD.displayName=Aj;function jD(n,a){const r=Math.abs(a.top-n.y),i=Math.abs(a.bottom-n.y),o=Math.abs(a.right-n.x),c=Math.abs(a.left-n.x);switch(Math.min(r,i,o,c)){case c:return"left";case o:return"right";case r:return"top";case i:return"bottom";default:throw new Error("unreachable")}}function SD(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 ED(n){const{top:a,right:r,bottom:i,left:o}=n;return[{x:o,y:a},{x:r,y:a},{x:r,y:i},{x:o,y:i}]}function ND(n,a){const{x:r,y:i}=n;let o=!1;for(let c=0,h=a.length-1;c<a.length;h=c++){const m=a[c],p=a[h],g=m.x,x=m.y,y=p.x,w=p.y;x>i!=w>i&&r<(y-g)*(i-x)/(w-x)+g&&(o=!o)}return o}function CD(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),_D(a)}function _D(n){if(n.length<=1)return n.slice();const a=[];for(let i=0;i<n.length;i++){const o=n[i];for(;a.length>=2;){const c=a[a.length-1],h=a[a.length-2];if((c.x-h.x)*(o.y-h.y)>=(c.y-h.y)*(o.x-h.x))a.pop();else break}a.push(o)}a.pop();const r=[];for(let i=n.length-1;i>=0;i--){const o=n[i];for(;r.length>=2;){const c=r[r.length-1],h=r[r.length-2];if((c.x-h.x)*(o.y-h.y)>=(c.y-h.y)*(o.x-h.x))r.pop();else break}r.push(o)}return r.pop(),a.length===1&&r.length===1&&a[0].x===r[0].x&&a[0].y===r[0].y?a:a.concat(r)}var TD=Mj;TD.displayName;var Qc="Checkbox",[RD,o6]=bt(Qc),[MD,hp]=RD(Qc);function kD(n){const{__scopeCheckbox:a,checked:r,children:i,defaultChecked:o,disabled:c,form:h,name:m,onCheckedChange:p,required:g,value:x="on",internal_do_not_use_render:y}=n,[w,S]=ia({prop:r,defaultProp:o??!1,onChange:p,caller:Qc}),[E,j]=v.useState(null),[C,_]=v.useState(null),T=v.useRef(!1),R=E?!!h||!!E.closest("form"):!0,D={checked:w,disabled:c,setChecked:S,control:E,setControl:j,name:m,form:h,value:x,hasConsumerStoppedPropagationRef:T,required:g,defaultChecked:Tl(o)?!1:o,isFormControl:R,bubbleInput:C,setBubbleInput:_};return u.jsx(MD,{scope:a,...D,children:OD(y)?y(D):i})}var Dj="CheckboxTrigger",Oj=v.forwardRef(({__scopeCheckbox:n,onKeyDown:a,onClick:r,...i},o)=>{const{control:c,value:h,disabled:m,checked:p,required:g,setControl:x,setChecked:y,hasConsumerStoppedPropagationRef:w,isFormControl:S,bubbleInput:E}=hp(Dj,n),j=we(o,x),C=v.useRef(p);return v.useEffect(()=>{const _=c==null?void 0:c.form;if(_){const T=()=>y(C.current);return _.addEventListener("reset",T),()=>_.removeEventListener("reset",T)}},[c,y]),u.jsx(se.button,{type:"button",role:"checkbox","aria-checked":Tl(p)?"mixed":p,"aria-required":g,"data-state":qj(p),"data-disabled":m?"":void 0,disabled:m,value:h,...i,ref:j,onKeyDown:ae(a,_=>{_.key==="Enter"&&_.preventDefault()}),onClick:ae(r,_=>{y(T=>Tl(T)?!0:!T),E&&S&&(w.current=_.isPropagationStopped(),w.current||_.stopPropagation())})})});Oj.displayName=Dj;var AD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,name:i,checked:o,defaultChecked:c,required:h,disabled:m,value:p,onCheckedChange:g,form:x,...y}=n;return u.jsx(kD,{__scopeCheckbox:r,checked:o,defaultChecked:c,disabled:m,required:h,onCheckedChange:g,name:i,form:x,value:p,internal_do_not_use_render:({isFormControl:w})=>u.jsxs(u.Fragment,{children:[u.jsx(Oj,{...y,ref:a,__scopeCheckbox:r}),w&&u.jsx(Uj,{__scopeCheckbox:r})]})})});AD.displayName=Qc;var zj="CheckboxIndicator",DD=v.forwardRef((n,a)=>{const{__scopeCheckbox:r,forceMount:i,...o}=n,c=hp(zj,r);return u.jsx(Et,{present:i||Tl(c.checked)||c.checked===!0,children:u.jsx(se.span,{"data-state":qj(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:a,style:{pointerEvents:"none",...n.style}})})});DD.displayName=zj;var Lj="CheckboxBubbleInput",Uj=v.forwardRef(({__scopeCheckbox:n,...a},r)=>{const{control:i,hasConsumerStoppedPropagationRef:o,checked:c,defaultChecked:h,required:m,disabled:p,name:g,value:x,form:y,bubbleInput:w,setBubbleInput:S}=hp(Lj,n),E=we(r,S),j=bo(c),C=Dc(i);v.useEffect(()=>{const T=w;if(!T)return;const R=window.HTMLInputElement.prototype,D=Object.getOwnPropertyDescriptor(R,"checked").set,L=!o.current;if(j!==c&&D){const K=new Event("click",{bubbles:L});T.indeterminate=Tl(c),D.call(T,Tl(c)?!1:c),T.dispatchEvent(K)}},[w,j,c,o]);const _=v.useRef(Tl(c)?!1:c);return u.jsx(se.input,{type:"checkbox","aria-hidden":!0,defaultChecked:h??_.current,required:m,disabled:p,name:g,value:x,form:y,...a,tabIndex:-1,ref:E,style:{...a.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Uj.displayName=Lj;function OD(n){return typeof n=="function"}function Tl(n){return n==="indeterminate"}function qj(n){return Tl(n)?"indeterminate":n?"checked":"unchecked"}var mp="Radio",[zD,Hj]=bt(mp),[LD,UD]=zD(mp),Bj=v.forwardRef((n,a)=>{const{__scopeRadio:r,name:i,checked:o=!1,required:c,disabled:h,value:m="on",onCheck:p,form:g,...x}=n,[y,w]=v.useState(null),S=we(a,C=>w(C)),E=v.useRef(!1),j=y?g||!!y.closest("form"):!0;return u.jsxs(LD,{scope:r,checked:o,disabled:h,children:[u.jsx(se.button,{type:"button",role:"radio","aria-checked":o,"data-state":Yj(o),"data-disabled":h?"":void 0,disabled:h,value:m,...x,ref:S,onClick:ae(n.onClick,C=>{o||p==null||p(),j&&(E.current=C.isPropagationStopped(),E.current||C.stopPropagation())})}),j&&u.jsx(Gj,{control:y,bubbles:!E.current,name:i,value:m,checked:o,required:c,disabled:h,form:g,style:{transform:"translateX(-100%)"}})]})});Bj.displayName=mp;var $j="RadioIndicator",Qj=v.forwardRef((n,a)=>{const{__scopeRadio:r,forceMount:i,...o}=n,c=UD($j,r);return u.jsx(Et,{present:i||c.checked,children:u.jsx(se.span,{"data-state":Yj(c.checked),"data-disabled":c.disabled?"":void 0,...o,ref:a})})});Qj.displayName=$j;var qD="RadioBubbleInput",Gj=v.forwardRef(({__scopeRadio:n,control:a,checked:r,bubbles:i=!0,...o},c)=>{const h=v.useRef(null),m=we(h,c),p=bo(r),g=Dc(a);return v.useEffect(()=>{const x=h.current;if(!x)return;const y=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&w){const S=new Event("click",{bubbles:i});w.call(x,r),x.dispatchEvent(S)}},[p,r,i]),u.jsx(se.input,{type:"radio","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:m,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Gj.displayName=qD;function Yj(n){return n?"checked":"unchecked"}var HD=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Gc="RadioGroup",[BD,u6]=bt(Gc,[Ki,Hj]),Vj=Ki(),Kj=Hj(),[$D,QD]=BD(Gc),Xj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,name:i,defaultValue:o,value:c,required:h=!1,disabled:m=!1,orientation:p,dir:g,loop:x=!0,onValueChange:y,...w}=n,S=Vj(r),E=Bi(g),[j,C]=ia({prop:c,defaultProp:o??null,onChange:y,caller:Gc});return u.jsx($D,{scope:r,name:i,required:h,disabled:m,value:j,onValueChange:C,children:u.jsx(Jm,{asChild:!0,...S,orientation:p,dir:E,loop:x,children:u.jsx(se.div,{role:"radiogroup","aria-required":h,"aria-orientation":p,"data-disabled":m?"":void 0,dir:E,...w,ref:a})})})});Xj.displayName=Gc;var Fj="RadioGroupItem",Zj=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,disabled:i,...o}=n,c=QD(Fj,r),h=c.disabled||i,m=Vj(r),p=Kj(r),g=v.useRef(null),x=we(a,g),y=c.value===o.value,w=v.useRef(!1);return v.useEffect(()=>{const S=j=>{HD.includes(j.key)&&(w.current=!0)},E=()=>w.current=!1;return document.addEventListener("keydown",S),document.addEventListener("keyup",E),()=>{document.removeEventListener("keydown",S),document.removeEventListener("keyup",E)}},[]),u.jsx(Im,{asChild:!0,...m,focusable:!h,active:y,children:u.jsx(Bj,{disabled:h,required:c.required,checked:y,...p,...o,name:c.name,ref:x,onCheck:()=>c.onValueChange(o.value),onKeyDown:ae(S=>{S.key==="Enter"&&S.preventDefault()}),onFocus:ae(o.onFocus,()=>{var S;w.current&&((S=g.current)==null||S.click())})})})});Zj.displayName=Fj;var GD="RadioGroupIndicator",YD=v.forwardRef((n,a)=>{const{__scopeRadioGroup:r,...i}=n,o=Kj(r);return u.jsx(Qj,{...o,...i,ref:a})});YD.displayName=GD;var VD=Xj,KD=Zj;VD.displayName;KD.displayName;var Yc="Switch",[XD,c6]=bt(Yc),[FD,ZD]=XD(Yc),Pj=v.forwardRef((n,a)=>{const{__scopeSwitch:r,name:i,checked:o,defaultChecked:c,required:h,disabled:m,value:p="on",onCheckedChange:g,form:x,...y}=n,[w,S]=v.useState(null),E=we(a,R=>S(R)),j=v.useRef(!1),C=w?x||!!w.closest("form"):!0,[_,T]=ia({prop:o,defaultProp:c??!1,onChange:g,caller:Yc});return u.jsxs(FD,{scope:r,checked:_,disabled:m,children:[u.jsx(se.button,{type:"button",role:"switch","aria-checked":_,"aria-required":h,"data-state":eS(_),"data-disabled":m?"":void 0,disabled:m,value:p,...y,ref:E,onClick:ae(n.onClick,R=>{T(D=>!D),C&&(j.current=R.isPropagationStopped(),j.current||R.stopPropagation())})}),C&&u.jsx(Wj,{control:w,bubbles:!j.current,name:i,value:p,checked:_,required:h,disabled:m,form:x,style:{transform:"translateX(-100%)"}})]})});Pj.displayName=Yc;var Jj="SwitchThumb",Ij=v.forwardRef((n,a)=>{const{__scopeSwitch:r,...i}=n,o=ZD(Jj,r);return u.jsx(se.span,{"data-state":eS(o.checked),"data-disabled":o.disabled?"":void 0,...i,ref:a})});Ij.displayName=Jj;var PD="SwitchBubbleInput",Wj=v.forwardRef(({__scopeSwitch:n,control:a,checked:r,bubbles:i=!0,...o},c)=>{const h=v.useRef(null),m=we(h,c),p=bo(r),g=Dc(a);return v.useEffect(()=>{const x=h.current;if(!x)return;const y=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&w){const S=new Event("click",{bubbles:i});w.call(x,r),x.dispatchEvent(S)}},[p,r,i]),u.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...o,tabIndex:-1,ref:m,style:{...o.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});Wj.displayName=PD;function eS(n){return n?"checked":"unchecked"}var JD=Pj,ID=Ij;function Oh({className:n,...a}){return u.jsx(JD,{"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(ID,{"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 Vc="Tabs",[WD,d6]=bt(Vc,[Ki]),tS=Ki(),[eO,pp]=WD(Vc),nS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,onValueChange:o,defaultValue:c,orientation:h="horizontal",dir:m,activationMode:p="automatic",...g}=n,x=Bi(m),[y,w]=ia({prop:i,onChange:o,defaultProp:c??"",caller:Vc});return u.jsx(eO,{scope:r,baseId:Dl(),value:y,onValueChange:w,orientation:h,dir:x,activationMode:p,children:u.jsx(se.div,{dir:x,"data-orientation":h,...g,ref:a})})});nS.displayName=Vc;var aS="TabsList",lS=v.forwardRef((n,a)=>{const{__scopeTabs:r,loop:i=!0,...o}=n,c=pp(aS,r),h=tS(r);return u.jsx(Jm,{asChild:!0,...h,orientation:c.orientation,dir:c.dir,loop:i,children:u.jsx(se.div,{role:"tablist","aria-orientation":c.orientation,...o,ref:a})})});lS.displayName=aS;var rS="TabsTrigger",iS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,disabled:o=!1,...c}=n,h=pp(rS,r),m=tS(r),p=uS(h.baseId,i),g=cS(h.baseId,i),x=i===h.value;return u.jsx(Im,{asChild:!0,...m,focusable:!o,active:x,children:u.jsx(se.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":g,"data-state":x?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:p,...c,ref:a,onMouseDown:ae(n.onMouseDown,y=>{!o&&y.button===0&&y.ctrlKey===!1?h.onValueChange(i):y.preventDefault()}),onKeyDown:ae(n.onKeyDown,y=>{[" ","Enter"].includes(y.key)&&h.onValueChange(i)}),onFocus:ae(n.onFocus,()=>{const y=h.activationMode!=="manual";!x&&!o&&y&&h.onValueChange(i)})})})});iS.displayName=rS;var sS="TabsContent",oS=v.forwardRef((n,a)=>{const{__scopeTabs:r,value:i,forceMount:o,children:c,...h}=n,m=pp(sS,r),p=uS(m.baseId,i),g=cS(m.baseId,i),x=i===m.value,y=v.useRef(x);return v.useEffect(()=>{const w=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(w)},[]),u.jsx(Et,{present:o||x,children:({present:w})=>u.jsx(se.div,{"data-state":x?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...h,ref:a,style:{...n.style,animationDuration:y.current?"0s":void 0},children:w&&c})})});oS.displayName=sS;function uS(n,a){return`${n}-trigger-${a}`}function cS(n,a){return`${n}-content-${a}`}var tO=nS,nO=lS,aO=iS,lO=oS;function dS({className:n,...a}){return u.jsx(tO,{"data-slot":"tabs",className:pe("flex flex-col gap-2",n),...a})}function fS({className:n,...a}){return u.jsx(nO,{"data-slot":"tabs-list",className:pe("flex border-b border-border",n),...a})}function Is({className:n,children:a,...r}){return u.jsx(aO,{asChild:!0,...r,children:u.jsx(h1,{className:n,children:a})})}function Ws({className:n,...a}){return u.jsx(lO,{"data-slot":"tabs-content",className:pe("flex-1 outline-none",n),...a})}function rO(n){const a=iO(n),r=v.forwardRef((i,o)=>{const{children:c,...h}=i,m=v.Children.toArray(c),p=m.find(oO);if(p){const g=p.props.children,x=m.map(y=>y===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:y);return u.jsx(a,{...h,ref:o,children:v.isValidElement(g)?v.cloneElement(g,void 0,x):null})}return u.jsx(a,{...h,ref:o,children:c})});return r.displayName=`${n}.Slot`,r}function iO(n){const a=v.forwardRef((r,i)=>{const{children:o,...c}=r,h=v.isValidElement(o)?cO(o):void 0,m=we(h,i);if(v.isValidElement(o)){const p=uO(c,o.props);return o.type!==v.Fragment&&(p.ref=m),v.cloneElement(o,p)}return v.Children.count(o)>1?v.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var sO=Symbol("radix.slottable");function oO(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===sO}function uO(n,a){const r={...a};for(const i in a){const o=n[i],c=a[i];/^on[A-Z]/.test(i)?o&&c?r[i]=(...h)=>{const m=c(...h);return o(...h),m}:o&&(r[i]=o):i==="style"?r[i]={...o,...c}:i==="className"&&(r[i]=[o,c].filter(Boolean).join(" "))}return{...n,...r}}function cO(n){var a,r;let i=(a=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:a.get,o=i&&"isReactWarning"in i&&i.isReactWarning;return o?n.ref:(i=(r=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:r.get,o=i&&"isReactWarning"in i&&i.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var dO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],vp=dO.reduce((n,a)=>{const r=rO(`Primitive.${a}`),i=v.forwardRef((o,c)=>{const{asChild:h,...m}=o,p=h?r:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(p,{...m,ref:c})});return i.displayName=`Primitive.${a}`,{...n,[a]:i}},{}),gp="Progress",yp=100,[fO,f6]=bt(gp),[hO,mO]=fO(gp),pO=v.forwardRef((n,a)=>{const{__scopeProgress:r,value:i=null,max:o,getValueLabel:c=gO,...h}=n;(o||o===0)&&!Kx(o)&&console.error(yO(`${o}`,"Progress"));const m=Kx(o)?o:yp;i!==null&&!Xx(i,m)&&console.error(xO(`${i}`,"Progress"));const p=Xx(i,m)?i:null,g=xc(p)?c(p,m):void 0;return u.jsx(hO,{scope:r,value:p,max:m,children:u.jsx(vp.div,{"aria-valuemax":m,"aria-valuemin":0,"aria-valuenow":xc(p)?p:void 0,"aria-valuetext":g,role:"progressbar","data-state":mS(p,m),"data-value":p??void 0,"data-max":m,...h,ref:a})})});pO.displayName=gp;var hS="ProgressIndicator",vO=v.forwardRef((n,a)=>{const{__scopeProgress:r,...i}=n,o=mO(hS,r);return u.jsx(vp.div,{"data-state":mS(o.value,o.max),"data-value":o.value??void 0,"data-max":o.max,...i,ref:a})});vO.displayName=hS;function gO(n,a){return`${Math.round(n/a*100)}%`}function mS(n,a){return n==null?"indeterminate":n===a?"complete":"loading"}function xc(n){return typeof n=="number"}function Kx(n){return xc(n)&&!isNaN(n)&&n>0}function Xx(n,a){return xc(n)&&!isNaN(n)&&n<=a&&n>=0}function yO(n,a){return`Invalid prop \`max\` of value \`${n}\` supplied to \`${a}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${yp}\`.`}function xO(n,a){return`Invalid prop \`value\` of value \`${n}\` supplied to \`${a}\`. The \`value\` prop must be:
|
|
352
|
-
- a positive number
|
|
353
|
-
- less than the value passed to \`max\` (or ${yp} if no \`max\` prop is set)
|
|
354
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
355
|
-
|
|
356
|
-
Defaulting to \`null\`.`}var bO="Separator",Fx="horizontal",wO=["horizontal","vertical"],jO=v.forwardRef((n,a)=>{const{decorative:r,orientation:i=Fx,...o}=n,c=SO(i)?i:Fx,h=r?{role:"none"}:{"aria-orientation":c==="vertical"?c:void 0,role:"separator"};return u.jsx(vp.div,{"data-orientation":c,...h,...o,ref:a})});jO.displayName=bO;function SO(n){return wO.includes(n)}var EO="Label",pS=v.forwardRef((n,a)=>u.jsx(se.label,{...n,ref:a,onMouseDown:r=>{var i;r.target.closest("button, input, select, textarea")||((i=n.onMouseDown)==null||i.call(n,r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));pS.displayName=EO;var vS=pS;const NO=f1("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ps=({ref:n,className:a,...r})=>u.jsx(vS,{ref:n,className:pe(NO(),a),...r});Ps.displayName=vS.displayName;var Kc="Collapsible",[CO,gS]=bt(Kc),[_O,xp]=CO(Kc),yS=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,open:i,defaultOpen:o,disabled:c,onOpenChange:h,...m}=n,[p,g]=ia({prop:i,defaultProp:o??!1,onChange:h,caller:Kc});return u.jsx(_O,{scope:r,disabled:c,contentId:Dl(),open:p,onOpenToggle:v.useCallback(()=>g(x=>!x),[g]),children:u.jsx(se.div,{"data-state":Sp(p),"data-disabled":c?"":void 0,...m,ref:a})})});yS.displayName=Kc;var xS="CollapsibleTrigger",bp=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,...i}=n,o=xp(xS,r);return u.jsx(se.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":Sp(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...i,ref:a,onClick:ae(n.onClick,o.onOpenToggle)})});bp.displayName=xS;var wp="CollapsibleContent",jp=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=xp(wp,n.__scopeCollapsible);return u.jsx(Et,{present:r||o.open,children:({present:c})=>u.jsx(TO,{...i,ref:a,present:c})})});jp.displayName=wp;var TO=v.forwardRef((n,a)=>{const{__scopeCollapsible:r,present:i,children:o,...c}=n,h=xp(wp,r),[m,p]=v.useState(i),g=v.useRef(null),x=we(a,g),y=v.useRef(0),w=y.current,S=v.useRef(0),E=S.current,j=h.open||m,C=v.useRef(j),_=v.useRef(void 0);return v.useEffect(()=>{const T=requestAnimationFrame(()=>C.current=!1);return()=>cancelAnimationFrame(T)},[]),lt(()=>{const T=g.current;if(T){_.current=_.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const R=T.getBoundingClientRect();y.current=R.height,S.current=R.width,C.current||(T.style.transitionDuration=_.current.transitionDuration,T.style.animationName=_.current.animationName),p(i)}},[h.open,i]),u.jsx(se.div,{"data-state":Sp(h.open),"data-disabled":h.disabled?"":void 0,id:h.contentId,hidden:!j,...c,ref:x,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...n.style},children:j&&o})});function Sp(n){return n?"open":"closed"}var bS=yS,RO=bp,MO=jp,Yn="Accordion",kO=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Ep,AO,DO]=$i(Yn),[Xc,h6]=bt(Yn,[DO,gS]),Np=gS(),OO=ot.forwardRef((n,a)=>{const{type:r,...i}=n,o=i,c=i;return u.jsx(Ep.Provider,{scope:n.__scopeAccordion,children:r==="multiple"?u.jsx(qO,{...c,ref:a}):u.jsx(UO,{...o,ref:a})})});OO.displayName=Yn;var[wS,zO]=Xc(Yn),[jS,LO]=Xc(Yn,{collapsible:!1}),UO=ot.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:o=()=>{},collapsible:c=!1,...h}=n,[m,p]=ia({prop:r,defaultProp:i??"",onChange:o,caller:Yn});return u.jsx(wS,{scope:n.__scopeAccordion,value:ot.useMemo(()=>m?[m]:[],[m]),onItemOpen:p,onItemClose:ot.useCallback(()=>c&&p(""),[c,p]),children:u.jsx(jS,{scope:n.__scopeAccordion,collapsible:c,children:u.jsx(SS,{...h,ref:a})})})}),qO=ot.forwardRef((n,a)=>{const{value:r,defaultValue:i,onValueChange:o=()=>{},...c}=n,[h,m]=ia({prop:r,defaultProp:i??[],onChange:o,caller:Yn}),p=ot.useCallback(x=>m((y=[])=>[...y,x]),[m]),g=ot.useCallback(x=>m((y=[])=>y.filter(w=>w!==x)),[m]);return u.jsx(wS,{scope:n.__scopeAccordion,value:h,onItemOpen:p,onItemClose:g,children:u.jsx(jS,{scope:n.__scopeAccordion,collapsible:!0,children:u.jsx(SS,{...c,ref:a})})})}),[HO,Fc]=Xc(Yn),SS=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,disabled:i,dir:o,orientation:c="vertical",...h}=n,m=ot.useRef(null),p=we(m,a),g=AO(r),x=Bi(o)==="ltr",y=ae(n.onKeyDown,w=>{var S;if(!kO.includes(w.key))return;const E=w.target,j=g().filter(q=>{var G;return!((G=q.ref.current)!=null&&G.disabled)}),C=j.findIndex(q=>q.ref.current===E),_=j.length;if(C===-1)return;w.preventDefault();let T=C;const R=0,D=_-1,L=()=>{T=C+1,T>D&&(T=R)},K=()=>{T=C-1,T<R&&(T=D)};switch(w.key){case"Home":T=R;break;case"End":T=D;break;case"ArrowRight":c==="horizontal"&&(x?L():K());break;case"ArrowDown":c==="vertical"&&L();break;case"ArrowLeft":c==="horizontal"&&(x?K():L());break;case"ArrowUp":c==="vertical"&&K();break}const H=T%_;(S=j[H].ref.current)==null||S.focus()});return u.jsx(HO,{scope:r,disabled:i,direction:o,orientation:c,children:u.jsx(Ep.Slot,{scope:r,children:u.jsx(se.div,{...h,"data-orientation":c,ref:p,onKeyDown:i?void 0:y})})})}),bc="AccordionItem",[BO,Cp]=Xc(bc),$O=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,value:i,...o}=n,c=Fc(bc,r),h=zO(bc,r),m=Np(r),p=Dl(),g=i&&h.value.includes(i)||!1,x=c.disabled||n.disabled;return u.jsx(BO,{scope:r,open:g,disabled:x,triggerId:p,children:u.jsx(bS,{"data-orientation":c.orientation,"data-state":CS(g),...m,...o,ref:a,disabled:x,open:g,onOpenChange:y=>{y?h.onItemOpen(i):h.onItemClose(i)}})})});$O.displayName=bc;var ES="AccordionHeader",QO=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Fc(Yn,r),c=Cp(ES,r);return u.jsx(se.h3,{"data-orientation":o.orientation,"data-state":CS(c.open),"data-disabled":c.disabled?"":void 0,...i,ref:a})});QO.displayName=ES;var gm="AccordionTrigger",GO=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Fc(Yn,r),c=Cp(gm,r),h=LO(gm,r),m=Np(r);return u.jsx(Ep.ItemSlot,{scope:r,children:u.jsx(RO,{"aria-disabled":c.open&&!h.collapsible||void 0,"data-orientation":o.orientation,id:c.triggerId,...m,...i,ref:a})})});GO.displayName=gm;var NS="AccordionContent",YO=ot.forwardRef((n,a)=>{const{__scopeAccordion:r,...i}=n,o=Fc(Yn,r),c=Cp(NS,r),h=Np(r);return u.jsx(MO,{role:"region","aria-labelledby":c.triggerId,"data-orientation":o.orientation,...h,...i,ref:a,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...n.style}})});YO.displayName=NS;function CS(n){return n?"open":"closed"}const _S=bS,TS=bp,RS=jp;var wr="NavigationMenu",[_p,MS,VO]=$i(wr),[ym,KO,XO]=$i(wr),[Tp,m6]=bt(wr,[VO,XO]),[FO,Mn]=Tp(wr),[ZO,PO]=Tp(wr),JO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:c,delayDuration:h=200,skipDelayDuration:m=300,orientation:p="horizontal",dir:g,...x}=n,[y,w]=v.useState(null),S=we(a,G=>w(G)),E=Bi(g),j=v.useRef(0),C=v.useRef(0),_=v.useRef(0),[T,R]=v.useState(!0),[D,L]=ia({prop:i,onChange:G=>{const te=G!=="",ue=m>0;te?(window.clearTimeout(_.current),ue&&R(!1)):(window.clearTimeout(_.current),_.current=window.setTimeout(()=>R(!0),m)),o==null||o(G)},defaultProp:c??"",caller:wr}),K=v.useCallback(()=>{window.clearTimeout(C.current),C.current=window.setTimeout(()=>L(""),150)},[L]),H=v.useCallback(G=>{window.clearTimeout(C.current),L(G)},[L]),q=v.useCallback(G=>{D===G?window.clearTimeout(C.current):j.current=window.setTimeout(()=>{window.clearTimeout(C.current),L(G)},h)},[D,L,h]);return v.useEffect(()=>()=>{window.clearTimeout(j.current),window.clearTimeout(C.current),window.clearTimeout(_.current)},[]),u.jsx(kS,{scope:r,isRootMenu:!0,value:D,dir:E,orientation:p,rootNavigationMenu:y,onTriggerEnter:G=>{window.clearTimeout(j.current),T?q(G):H(G)},onTriggerLeave:()=>{window.clearTimeout(j.current),K()},onContentEnter:()=>window.clearTimeout(C.current),onContentLeave:K,onItemSelect:G=>{L(te=>te===G?"":G)},onItemDismiss:()=>L(""),children:u.jsx(se.nav,{"aria-label":"Main","data-orientation":p,dir:E,...x,ref:S})})});JO.displayName=wr;var xm="NavigationMenuSub",IO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,onValueChange:o,defaultValue:c,orientation:h="horizontal",...m}=n,p=Mn(xm,r),[g,x]=ia({prop:i,onChange:o,defaultProp:c??"",caller:xm});return u.jsx(kS,{scope:r,isRootMenu:!1,value:g,dir:p.dir,orientation:h,rootNavigationMenu:p.rootNavigationMenu,onTriggerEnter:y=>x(y),onItemSelect:y=>x(y),onItemDismiss:()=>x(""),children:u.jsx(se.div,{"data-orientation":h,...m,ref:a})})});IO.displayName=xm;var kS=n=>{const{scope:a,isRootMenu:r,rootNavigationMenu:i,dir:o,orientation:c,children:h,value:m,onItemSelect:p,onItemDismiss:g,onTriggerEnter:x,onTriggerLeave:y,onContentEnter:w,onContentLeave:S}=n,[E,j]=v.useState(null),[C,_]=v.useState(new Map),[T,R]=v.useState(null);return u.jsx(FO,{scope:a,isRootMenu:r,rootNavigationMenu:i,value:m,previousValue:bo(m),baseId:Dl(),dir:o,orientation:c,viewport:E,onViewportChange:j,indicatorTrack:T,onIndicatorTrackChange:R,onTriggerEnter:nt(x),onTriggerLeave:nt(y),onContentEnter:nt(w),onContentLeave:nt(S),onItemSelect:nt(p),onItemDismiss:nt(g),onViewportContentChange:v.useCallback((D,L)=>{_(K=>(K.set(D,L),new Map(K)))},[]),onViewportContentRemove:v.useCallback(D=>{_(L=>L.has(D)?(L.delete(D),new Map(L)):L)},[]),children:u.jsx(_p.Provider,{scope:a,children:u.jsx(ZO,{scope:a,items:C,children:h})})})},AS="NavigationMenuList",WO=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=Mn(AS,r),c=u.jsx(se.ul,{"data-orientation":o.orientation,...i,ref:a});return u.jsx(se.div,{style:{position:"relative"},ref:o.onIndicatorTrackChange,children:u.jsx(_p.Slot,{scope:r,children:o.isRootMenu?u.jsx(LS,{asChild:!0,children:c}):c})})});WO.displayName=AS;var DS="NavigationMenuItem",[e5,OS]=Tp(DS),t5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,...o}=n,c=Dl(),h=i||c||"LEGACY_REACT_AUTO_VALUE",m=v.useRef(null),p=v.useRef(null),g=v.useRef(null),x=v.useRef(()=>{}),y=v.useRef(!1),w=v.useCallback((E="start")=>{if(m.current){x.current();const j=wm(m.current);j.length&&kp(E==="start"?j:j.reverse())}},[]),S=v.useCallback(()=>{if(m.current){const E=wm(m.current);E.length&&(x.current=h5(E))}},[]);return u.jsx(e5,{scope:r,value:h,triggerRef:p,contentRef:m,focusProxyRef:g,wasEscapeCloseRef:y,onEntryKeyDown:w,onFocusProxyEnter:w,onRootContentClose:S,onContentFocusOutside:S,children:u.jsx(se.li,{...o,ref:a})})});t5.displayName=DS;var bm="NavigationMenuTrigger",n5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,disabled:i,...o}=n,c=Mn(bm,n.__scopeNavigationMenu),h=OS(bm,n.__scopeNavigationMenu),m=v.useRef(null),p=we(m,h.triggerRef,a),g=qS(c.baseId,h.value),x=HS(c.baseId,h.value),y=v.useRef(!1),w=v.useRef(!1),S=h.value===c.value;return u.jsxs(u.Fragment,{children:[u.jsx(_p.ItemSlot,{scope:r,value:h.value,children:u.jsx(US,{asChild:!0,children:u.jsx(se.button,{id:g,disabled:i,"data-disabled":i?"":void 0,"data-state":Ap(S),"aria-expanded":S,"aria-controls":x,...o,ref:p,onPointerEnter:ae(n.onPointerEnter,()=>{w.current=!1,h.wasEscapeCloseRef.current=!1}),onPointerMove:ae(n.onPointerMove,wc(()=>{i||w.current||h.wasEscapeCloseRef.current||y.current||(c.onTriggerEnter(h.value),y.current=!0)})),onPointerLeave:ae(n.onPointerLeave,wc(()=>{i||(c.onTriggerLeave(),y.current=!1)})),onClick:ae(n.onClick,()=>{c.onItemSelect(h.value),w.current=S}),onKeyDown:ae(n.onKeyDown,E=>{const j={horizontal:"ArrowDown",vertical:c.dir==="rtl"?"ArrowLeft":"ArrowRight"}[c.orientation];S&&E.key===j&&(h.onEntryKeyDown(),E.preventDefault())})})})}),S&&u.jsxs(u.Fragment,{children:[u.jsx(mj,{"aria-hidden":!0,tabIndex:0,ref:h.focusProxyRef,onFocus:E=>{const j=h.contentRef.current,C=E.relatedTarget,_=C===m.current,T=j==null?void 0:j.contains(C);(_||!T)&&h.onFocusProxyEnter(_?"start":"end")}}),c.viewport&&u.jsx("span",{"aria-owns":x})]})]})});n5.displayName=bm;var a5="NavigationMenuLink",Zx="navigationMenu.linkSelect",l5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,active:i,onSelect:o,...c}=n;return u.jsx(US,{asChild:!0,children:u.jsx(se.a,{"data-active":i?"":void 0,"aria-current":i?"page":void 0,...c,ref:a,onClick:ae(n.onClick,h=>{const m=h.target,p=new CustomEvent(Zx,{bubbles:!0,cancelable:!0});if(m.addEventListener(Zx,g=>o==null?void 0:o(g),{once:!0}),oc(m,p),!p.defaultPrevented&&!h.metaKey){const g=new CustomEvent(ac,{bubbles:!0,cancelable:!0});oc(m,g)}},{checkForDefaultPrevented:!1})})})});l5.displayName=a5;var Rp="NavigationMenuIndicator",r5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Mn(Rp,n.__scopeNavigationMenu),c=!!o.value;return o.indicatorTrack?Qb.createPortal(u.jsx(Et,{present:r||c,children:u.jsx(i5,{...i,ref:a})}),o.indicatorTrack):null});r5.displayName=Rp;var i5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=Mn(Rp,r),c=MS(r),[h,m]=v.useState(null),[p,g]=v.useState(null),x=o.orientation==="horizontal",y=!!o.value;v.useEffect(()=>{var S;const E=(S=c().find(j=>j.value===o.value))==null?void 0:S.ref.current;E&&m(E)},[c,o.value]);const w=()=>{h&&g({size:x?h.offsetWidth:h.offsetHeight,offset:x?h.offsetLeft:h.offsetTop})};return jm(h,w),jm(o.indicatorTrack,w),p?u.jsx(se.div,{"aria-hidden":!0,"data-state":y?"visible":"hidden","data-orientation":o.orientation,...i,ref:a,style:{position:"absolute",...x?{left:0,width:p.size+"px",transform:`translateX(${p.offset}px)`}:{top:0,height:p.size+"px",transform:`translateY(${p.offset}px)`},...i.style}}):null}),Di="NavigationMenuContent",s5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=Mn(Di,n.__scopeNavigationMenu),c=OS(Di,n.__scopeNavigationMenu),h=we(c.contentRef,a),m=c.value===o.value,p={value:c.value,triggerRef:c.triggerRef,focusProxyRef:c.focusProxyRef,wasEscapeCloseRef:c.wasEscapeCloseRef,onContentFocusOutside:c.onContentFocusOutside,onRootContentClose:c.onRootContentClose,...i};return o.viewport?u.jsx(o5,{forceMount:r,...p,ref:h}):u.jsx(Et,{present:r||m,children:u.jsx(zS,{"data-state":Ap(m),...p,ref:h,onPointerEnter:ae(n.onPointerEnter,o.onContentEnter),onPointerLeave:ae(n.onPointerLeave,wc(o.onContentLeave)),style:{pointerEvents:!m&&o.isRootMenu?"none":void 0,...p.style}})})});s5.displayName=Di;var o5=v.forwardRef((n,a)=>{const r=Mn(Di,n.__scopeNavigationMenu),{onViewportContentChange:i,onViewportContentRemove:o}=r;return lt(()=>{i(n.value,{ref:a,...n})},[n,a,i]),lt(()=>()=>o(n.value),[n.value,o]),null}),ac="navigationMenu.rootContentDismiss",zS=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,value:i,triggerRef:o,focusProxyRef:c,wasEscapeCloseRef:h,onRootContentClose:m,onContentFocusOutside:p,...g}=n,x=Mn(Di,r),y=v.useRef(null),w=we(y,a),S=qS(x.baseId,i),E=HS(x.baseId,i),j=MS(r),C=v.useRef(null),{onItemDismiss:_}=x;v.useEffect(()=>{const R=y.current;if(x.isRootMenu&&R){const D=()=>{var L;_(),m(),R.contains(document.activeElement)&&((L=o.current)==null||L.focus())};return R.addEventListener(ac,D),()=>R.removeEventListener(ac,D)}},[x.isRootMenu,n.value,o,_,m]);const T=v.useMemo(()=>{const R=j().map(G=>G.value);x.dir==="rtl"&&R.reverse();const D=R.indexOf(x.value),L=R.indexOf(x.previousValue),K=i===x.value,H=L===R.indexOf(i);if(!K&&!H)return C.current;const q=(()=>{if(D!==L){if(K&&L!==-1)return D>L?"from-end":"from-start";if(H&&D!==-1)return D>L?"to-start":"to-end"}return null})();return C.current=q,q},[x.previousValue,x.value,x.dir,j,i]);return u.jsx(LS,{asChild:!0,children:u.jsx(Qi,{id:E,"aria-labelledby":S,"data-motion":T,"data-orientation":x.orientation,...g,ref:w,disableOutsidePointerEvents:!1,onDismiss:()=>{var R;const D=new Event(ac,{bubbles:!0,cancelable:!0});(R=y.current)==null||R.dispatchEvent(D)},onFocusOutside:ae(n.onFocusOutside,R=>{var D;p();const L=R.target;(D=x.rootNavigationMenu)!=null&&D.contains(L)&&R.preventDefault()}),onPointerDownOutside:ae(n.onPointerDownOutside,R=>{var D;const L=R.target,K=j().some(q=>{var G;return(G=q.ref.current)==null?void 0:G.contains(L)}),H=x.isRootMenu&&((D=x.viewport)==null?void 0:D.contains(L));(K||H||!x.isRootMenu)&&R.preventDefault()}),onKeyDown:ae(n.onKeyDown,R=>{var D;const L=R.altKey||R.ctrlKey||R.metaKey;if(R.key==="Tab"&&!L){const K=wm(R.currentTarget),H=document.activeElement,q=K.findIndex(te=>te===H),G=R.shiftKey?K.slice(0,q).reverse():K.slice(q+1,K.length);kp(G)?R.preventDefault():(D=c.current)==null||D.focus()}}),onEscapeKeyDown:ae(n.onEscapeKeyDown,R=>{h.current=!0})})})}),Mp="NavigationMenuViewport",u5=v.forwardRef((n,a)=>{const{forceMount:r,...i}=n,o=!!Mn(Mp,n.__scopeNavigationMenu).value;return u.jsx(Et,{present:r||o,children:u.jsx(c5,{...i,ref:a})})});u5.displayName=Mp;var c5=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,children:i,...o}=n,c=Mn(Mp,r),h=we(a,c.onViewportChange),m=PO(Di,n.__scopeNavigationMenu),[p,g]=v.useState(null),[x,y]=v.useState(null),w=p?(p==null?void 0:p.width)+"px":void 0,S=p?(p==null?void 0:p.height)+"px":void 0,E=!!c.value,j=E?c.value:c.previousValue;return jm(x,()=>{x&&g({width:x.offsetWidth,height:x.offsetHeight})}),u.jsx(se.div,{"data-state":Ap(E),"data-orientation":c.orientation,...o,ref:h,style:{pointerEvents:!E&&c.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":w,"--radix-navigation-menu-viewport-height":S,...o.style},onPointerEnter:ae(n.onPointerEnter,c.onContentEnter),onPointerLeave:ae(n.onPointerLeave,wc(c.onContentLeave)),children:Array.from(m.items).map(([C,{ref:_,forceMount:T,...R}])=>{const D=j===C;return u.jsx(Et,{present:T||D,children:u.jsx(zS,{...R,ref:vo(_,L=>{D&&L&&y(L)})})},C)})})}),d5="FocusGroup",LS=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=Mn(d5,r);return u.jsx(ym.Provider,{scope:r,children:u.jsx(ym.Slot,{scope:r,children:u.jsx(se.div,{dir:o.dir,...i,ref:a})})})}),Px=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],f5="FocusGroupItem",US=v.forwardRef((n,a)=>{const{__scopeNavigationMenu:r,...i}=n,o=KO(r),c=Mn(f5,r);return u.jsx(ym.ItemSlot,{scope:r,children:u.jsx(se.button,{...i,ref:a,onKeyDown:ae(n.onKeyDown,h=>{if(["Home","End",...Px].includes(h.key)){let m=o().map(p=>p.ref.current);if([c.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(h.key)&&m.reverse(),Px.includes(h.key)){const p=m.indexOf(h.currentTarget);m=m.slice(p+1)}setTimeout(()=>kp(m)),h.preventDefault()}})})})});function wm(n){const a=[],r=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)a.push(r.currentNode);return a}function kp(n){const a=document.activeElement;return n.some(r=>r===a?!0:(r.focus(),document.activeElement!==a))}function h5(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 jm(n,a){const r=nt(a);lt(()=>{let i=0;if(n){const o=new ResizeObserver(()=>{cancelAnimationFrame(i),i=window.requestAnimationFrame(r)});return o.observe(n),()=>{window.cancelAnimationFrame(i),o.unobserve(n)}}},[n,r])}function Ap(n){return n?"open":"closed"}function qS(n,a){return`${n}-trigger-${a}`}function HS(n,a){return`${n}-content-${a}`}function wc(n){return a=>a.pointerType==="mouse"?n(a):void 0}var Jx={exports:{}},zh={};/**
|
|
357
|
-
* @license React
|
|
358
|
-
* use-sync-external-store-shim.production.js
|
|
359
|
-
*
|
|
360
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
361
|
-
*
|
|
362
|
-
* This source code is licensed under the MIT license found in the
|
|
363
|
-
* LICENSE file in the root directory of this source tree.
|
|
364
|
-
*/var Ix;function m5(){if(Ix)return zh;Ix=1;var n=ot;function a(y,w){return y===w&&(y!==0||1/y===1/w)||y!==y&&w!==w}var r=typeof Object.is=="function"?Object.is:a,i=n.useState,o=n.useEffect,c=n.useLayoutEffect,h=n.useDebugValue;function m(y,w){var S=w(),E=i({inst:{value:S,getSnapshot:w}}),j=E[0].inst,C=E[1];return c(function(){j.value=S,j.getSnapshot=w,p(j)&&C({inst:j})},[y,S,w]),o(function(){return p(j)&&C({inst:j}),y(function(){p(j)&&C({inst:j})})},[y]),h(S),S}function p(y){var w=y.getSnapshot;y=y.value;try{var S=w();return!r(y,S)}catch{return!0}}function g(y,w){return w()}var x=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:m;return zh.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:x,zh}var Wx;function p5(){return Wx||(Wx=1,Jx.exports=m5()),Jx.exports}var v5=p5();function g5(){return v5.useSyncExternalStore(y5,()=>!0,()=>!1)}function y5(){return()=>{}}var Dp="Avatar",[x5,p6]=bt(Dp),[b5,BS]=x5(Dp),$S=v.forwardRef((n,a)=>{const{__scopeAvatar:r,...i}=n,[o,c]=v.useState("idle");return u.jsx(b5,{scope:r,imageLoadingStatus:o,onImageLoadingStatusChange:c,children:u.jsx(se.span,{...i,ref:a})})});$S.displayName=Dp;var QS="AvatarImage",GS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,src:i,onLoadingStatusChange:o=()=>{},...c}=n,h=BS(QS,r),m=w5(i,c),p=nt(g=>{o(g),h.onImageLoadingStatusChange(g)});return lt(()=>{m!=="idle"&&p(m)},[m,p]),m==="loaded"?u.jsx(se.img,{...c,ref:a,src:i}):null});GS.displayName=QS;var YS="AvatarFallback",VS=v.forwardRef((n,a)=>{const{__scopeAvatar:r,delayMs:i,...o}=n,c=BS(YS,r),[h,m]=v.useState(i===void 0);return v.useEffect(()=>{if(i!==void 0){const p=window.setTimeout(()=>m(!0),i);return()=>window.clearTimeout(p)}},[i]),h&&c.imageLoadingStatus!=="loaded"?u.jsx(se.span,{...o,ref:a}):null});VS.displayName=YS;function eb(n,a){return n?a?(n.src!==a&&(n.src=a),n.complete&&n.naturalWidth>0?"loaded":"loading"):"error":"idle"}function w5(n,{referrerPolicy:a,crossOrigin:r}){const i=g5(),o=v.useRef(null),c=i?(o.current||(o.current=new window.Image),o.current):null,[h,m]=v.useState(()=>eb(c,n));return lt(()=>{m(eb(c,n))},[c,n]),lt(()=>{const p=y=>()=>{m(y)};if(!c)return;const g=p("loaded"),x=p("error");return c.addEventListener("load",g),c.addEventListener("error",x),a&&(c.referrerPolicy=a),typeof r=="string"&&(c.crossOrigin=r),()=>{c.removeEventListener("load",g),c.removeEventListener("error",x)}},[c,r,a]),h}var j5=$S,S5=GS,E5=VS;j5.displayName;S5.displayName;E5.displayName;a3.displayName;l3.displayName;J4.displayName;W4.displayName;e3.displayName;t3.displayName;I4.displayName;n3.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 N5="";async function ut(n,a){const r=await fetch(`${N5}${n}`,{...a,headers:{"Content-Type":"application/json",...a==null?void 0:a.headers}});if(!r.ok){const i=await r.text();throw new Error(i||`Request failed: ${r.status}`)}return await r.json()}async function Op(){return await ut("/api/config")}async function C5(n,a){return await ut(`/api/db/${n}/query`,{method:"POST",body:JSON.stringify({query:a})})}async function _5(n){return await ut(`/api/db/${n}/tables`)}async function T5(n,a,r,i){return await ut(`/api/db/${n}/tables/${a}?limit=${r}&offset=${i}`)}async function R5(n){return await ut(`/api/db/${n}/schema`)}async function M5(n,a=20,r=0){return await ut(`/api/cache/${n}/entries?limit=${a}&offset=${r}`)}async function k5(n,a=20,r=0,i=""){const o=new URLSearchParams({limit:String(a),offset:String(r)});return i&&o.set("search",i),await ut(`/api/state/${n}/entries?${o.toString()}`)}async function A5(n){return await ut(`/api/queue/${n}/metrics`)}async function D5(n,a=10){return await ut(`/api/queue/${n}/messages?limit=${a}`)}async function O5(n,a=20,r=0,i,o){const c=new URLSearchParams({limit:String(a),offset:String(r)});return i&&c.set("status",i),o&&c.set("since",o),await ut(`/api/workflow/${n}/executions?${c.toString()}`)}async function z5(n,a){return await ut(`/api/workflow/${n}/executions/${a}`)}async function L5(n,a=20,r=0){return await ut(`/api/timer/${n}/entries?limit=${a}&offset=${r}`)}async function U5(n){return await ut(`/api/timer/${n}/metrics`)}async function q5(n,a=20){return await ut(`/api/timer/${n}/executions?limit=${a}`)}async function H5(n,a=20){return await ut(`/api/cron/${n}/executions?limit=${a}`)}async function B5(){return await ut("/api/auth/tables")}async function $5(n,a,r){return await ut(`/api/auth/tables/${n}?limit=${a}&offset=${r}`)}async function Q5(){return await ut("/api/auth/schema")}async function G5(n){return await ut("/api/auth/query",{method:"POST",body:JSON.stringify({query:n})})}async function Y5(){return await ut("/api/auth/settings")}async function V5(n){return await ut("/api/auth/settings",{method:"PATCH",body:JSON.stringify(n)})}async function K5(n,a=20,r=0){return await ut(`/api/fs/${n}/entries?limit=${a}&offset=${r}`)}function Qa(){return u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})})}function ua({children:n}){return u.jsx("div",{className:"flex items-center justify-center py-8 text-muted-foreground",children:n})}function Zi({id:n}){return u.jsxs("span",{className:"font-mono text-xs",children:[n.slice(0,8),"..."]})}function Cn({title:n,value:a,icon:r,isLoading:i}){return u.jsxs(gt,{children:[u.jsxs(_t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Tt,{className:"text-sm font-medium",children:n}),r]}),u.jsx(yt,{children:u.jsx("div",{className:"text-2xl font-bold",children:i?u.jsx(qn,{className:"h-5 w-5 animate-spin"}):a})})]})}function jr({title:n,children:a}){return u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("h2",{className:"text-3xl font-bold tracking-tight",children:n}),a]})}const X5={PENDING:{variant:"default",icon:u.jsx(Al,{className:"h-3 w-3"}),label:"Pending"},RUNNING:{variant:"blue",icon:u.jsx(qn,{className:"h-3 w-3 animate-spin"}),label:"Running"},COMPLETED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(Ui,{className:"h-3 w-3"}),label:"Failed"},CANCELLED:{variant:"default",icon:u.jsx(U_,{className:"h-3 w-3"}),label:"Cancelled"}},F5={PENDING:{variant:"default",icon:u.jsx(Al,{className:"h-3 w-3"}),label:"Pending"},PROCESSING:{variant:"blue",icon:u.jsx(qn,{className:"h-3 w-3 animate-spin"}),label:"Processing"},ACKNOWLEDGED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Acknowledged"},FAILED:{variant:"error",icon:u.jsx(Ui,{className:"h-3 w-3"}),label:"Failed"},DEAD_LETTER:{variant:"orange",icon:u.jsx(F_,{className:"h-3 w-3"}),label:"Dead Letter"}};function zp({status:n}){const a=X5[n];return a?u.jsx(Ri,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ri,{children:n})}const Z5={PENDING:{variant:"default",icon:u.jsx(Al,{className:"h-3 w-3"}),label:"Pending"},FIRED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Fired"},COMPLETED:{variant:"success",icon:u.jsx(Rl,{className:"h-3 w-3"}),label:"Completed"},FAILED:{variant:"error",icon:u.jsx(Ui,{className:"h-3 w-3"}),label:"Failed"}};function KS({status:n}){const a=Z5[n];return a?u.jsx(Ri,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ri,{children:n})}function P5({status:n}){const a=F5[n];return a?u.jsx(Ri,{variant:a.variant,icon:a.icon,children:a.label}):u.jsx(Ri,{children:n})}function J5(n){if(n<1e3)return`${n}ms`;const a=Math.floor(n/1e3);if(a<60)return`${a}s`;const r=Math.floor(a/60),i=a%60;if(r<60)return i===0?`${r}m`:`${r}m ${i}s`;const o=Math.floor(r/60),c=r%60;if(o<24)return c===0?`${o}h`:`${o}h ${c}m`;const h=Math.floor(o/24),m=o%24;return m===0?`${h}d`:`${h}d ${m}h`}function I5({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[u.jsx(Cn,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(Al,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Cn,{title:"Fired",value:(n==null?void 0:n.fired)??0,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:a})]})}function W5({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Scheduled Timers"}),u.jsx(Bt,{children:"Timer entries scheduled by your worker (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Scheduled Time"}),u.jsx(Re,{children:"Interval"}),u.jsx(Re,{children:"Payload"}),u.jsx(Re,{children:"Created"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Zi,{id:r.id})}),u.jsx(Me,{children:u.jsx(KS,{status:r.status})}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Me,{className:"text-xs",children:r.intervalMs!=null?u.jsxs("span",{className:"inline-flex items-center gap-1",children:[u.jsx(gT,{className:"h-3 w-3"}),J5(r.intervalMs)]}):"-"}),u.jsx(Me,{className:"max-w-[200px] truncate font-mono text-xs",children:r.payload!=null?JSON.stringify(r.payload):"-"}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(ua,{children:"No timers scheduled"})})]})}function ez({executions:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Execution History"}),u.jsx(Bt,{children:"Recent timer handler executions"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"Timer ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Scheduled Time"}),u.jsx(Re,{children:"Duration"}),u.jsx(Re,{children:"Error"}),u.jsx(Re,{children:"Executed"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Zi,{id:r.timerId})}),u.jsx(Me,{children:u.jsx(KS,{status:r.status})}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.scheduledTime})}),u.jsx(Me,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Me,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(ua,{children:"No timer executions yet"})})]})}function tz(){const{binding:n}=$a(),a=n||"",{data:r,isLoading:i}=ft({queryKey:["timerMetrics",a],queryFn:()=>U5(a),enabled:!!a,refetchInterval:5e3}),{data:o,isLoading:c}=ft({queryKey:["timerEntries",a],queryFn:()=>L5(a,20),enabled:!!a,refetchInterval:5e3}),{data:h,isLoading:m}=ft({queryKey:["timerExecutions",a],queryFn:()=>q5(a,20),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(jr,{title:`Timers: ${a}`}),u.jsx(I5,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(W5,{entries:o==null?void 0:o.entries,isLoading:c}),u.jsx(ez,{executions:h==null?void 0:h.executions,isLoading:m})]})})}function nz({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?u.jsx(Xb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Vb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function az({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(_S,{open:r,onOpenChange:i,children:[u.jsxs(TS,{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(Yb,{className:"h-4 w-4 shrink-0"}):u.jsx(yr,{className:"h-4 w-4 shrink-0"}),u.jsx(Nc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:o=>{o.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(RS,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(o=>u.jsx(nz,{column:o,onInsertText:a},o.name))})})]})}function lz({onInsertText:n}){const{data:a,isLoading:r,refetch:i}=ft({queryKey:["auth-schema"],queryFn:Q5,staleTime:3e4}),o=(a==null?void 0:a.tables)||[];return u.jsxs("div",{className:"flex h-full flex-col border-l bg-card",children:[u.jsxs("div",{className:"flex items-center justify-between border-b px-3 py-2",children:[u.jsx("h3",{className:"text-sm font-semibold",children:"Auth Tables"}),u.jsx(Ye,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>i(),disabled:r,children:u.jsx(po,{className:pe("h-4 w-4",r&&"animate-spin")})})]}),u.jsx(T1,{className:"flex-1",children:u.jsx("div",{className:"p-2",children:r?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"Loading schema..."}):o.length===0?u.jsx("p",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-0.5",children:o.map(c=>u.jsx(az,{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 rz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function iz(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 sz({settings:n,onUpdate:a,isUpdating:r}){const[i,o]=v.useState(n.sessionTokenExpiry.toString()),[c,h]=v.useState(n.allowSignups),[m,p]=v.useState(n.requireEmailVerification),[g,x]=v.useState(n.requireName),y=()=>{a({sessionTokenExpiry:parseInt(i,10),allowSignups:c,requireEmailVerification:m,requireName:g})},w=parseInt(i,10)!==n.sessionTokenExpiry||c!==n.allowSignups||m!==n.requireEmailVerification||g!==n.requireName;return u.jsxs("div",{className:"space-y-6",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Ps,{htmlFor:"sessionTokenExpiry",children:"Session Token Expiry (seconds)"}),u.jsx(m1,{id:"sessionTokenExpiry",type:"number",min:3600,max:7776e3,value:i,onChange:S=>o(S.target.value)}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Current: ",iz(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(Ps,{children:"Allow Signups"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Allow new users to create accounts"})]}),u.jsx(Oh,{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(Ps,{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(Oh,{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(Ps,{children:"Require Name"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Require users to enter their name during sign up"})]}),u.jsx(Oh,{checked:g,onCheckedChange:x})]})]}),u.jsx("div",{className:"flex justify-end",children:u.jsx(Ye,{onClick:y,disabled:!w||r,children:r?"Saving...":"Save Settings"})})]})}function oz(){var W,ie,re,U,I,Y;const n=Tm(),[a,r]=v.useState("settings"),[i,o]=v.useState(""),[c,h]=v.useState(null),[m,p]=v.useState(null),[g,x]=v.useState(null),[y,w]=v.useState(0),S=50,j=((ie=(W=ft({queryKey:["config"],queryFn:Op,staleTime:6e4}).data)==null?void 0:W.auth)==null?void 0:ie.binding)||"AUTH",C=ft({queryKey:["auth-settings"],queryFn:Y5,staleTime:0}),_=Jh({mutationFn:V5,onSuccess:()=>{n.invalidateQueries({queryKey:["auth-settings"]})}}),T=X=>{_.mutate(X)},R=v.useCallback(X=>{o(de=>de+X)},[]),D=Jh({mutationFn:X=>G5(X),onSuccess:X=>{h(X),p(null)},onError:X=>{p(X instanceof Error?X.message:"Failed to execute query"),h(null)}}),L=()=>{i.trim()&&D.mutate(i)},K=ft({queryKey:["auth-tables"],queryFn:B5,staleTime:0,gcTime:0}),H=ft({queryKey:["auth-tableData",g,S,y],queryFn:()=>$5(g,S,y),staleTime:0,gcTime:0,enabled:!!g}),q=((re=K.data)==null?void 0:re.tables)||[],G=((U=H.data)==null?void 0:U.data)||[],te=((I=H.data)==null?void 0:I.columns)||[],ue=((Y=H.data)==null?void 0:Y.total)||0,ce=X=>{x(X),w(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Auth: ",j]}),u.jsxs("div",{className:"flex items-start gap-3 rounded-lg border bg-muted/50 p-4",children:[u.jsx(Kb,{className:"h-5 w-5 mt-0.5 text-blue-500 shrink-0"}),u.jsxs("div",{children:[u.jsx("p",{className:"font-medium",children:"Ploy Auth Database"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"This is the Ploy Auth database containing user accounts and refresh tokens. Password hashes are hidden for security. Only SELECT queries are allowed."})]})]}),u.jsxs(dS,{value:a,onValueChange:r,children:[u.jsxs(fS,{children:[u.jsxs(Is,{value:"settings",children:[u.jsx(wT,{className:"mr-2 h-4 w-4"}),"Settings"]}),u.jsx(Is,{value:"query",children:"SQL Editor"}),u.jsx(Is,{value:"tables",children:"Tables"})]}),u.jsx(Ws,{value:"settings",className:"mt-4",children:u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Auth Settings"}),u.jsx(Bt,{children:"Configure authentication settings for local development."})]}),u.jsx(yt,{children:C.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):C.data?u.jsx(sz,{settings:C.data,onUpdate:T,isUpdating:_.isPending}):u.jsx("p",{className:"text-muted-foreground",children:"Failed to load settings"})})]})}),u.jsx(Ws,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"SQL Query"}),u.jsx(Bt,{children:"Execute read-only SELECT queries against auth tables"})]}),u.jsxs(yt,{className:"space-y-4",children:[u.jsx("textarea",{value:i,onChange:X=>o(X.target.value),onKeyDown:X=>{(X.metaKey||X.ctrlKey)&&X.key==="Enter"&&L()},placeholder:"SELECT * FROM auth_users LIMIT 10;",className:"w-full h-32 p-2 font-mono text-sm border rounded bg-background"}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"text-xs text-muted-foreground",children:"Press Cmd/Ctrl + Enter to execute (SELECT only)"}),u.jsxs(Ye,{onClick:L,disabled:D.isPending||!i.trim(),children:[u.jsx(Fb,{className:"mr-2 h-4 w-4"}),D.isPending?"Executing...":"Execute"]})]})]})]}),m&&u.jsx(gt,{className:"border-destructive/50",children:u.jsx(yt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:m})})}),c&&u.jsx(o1,{results:c.results,meta:c.meta,error:c.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(lz,{onInsertText:R})})]})}),u.jsx(Ws,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(gt,{className:"md:col-span-1",children:[u.jsxs(_t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Tt,{className:"text-base",children:"Tables"}),u.jsx(Ye,{variant:"ghost",size:"icon",onClick:()=>K.refetch(),className:"h-8 w-8",children:u.jsx(po,{className:"h-4 w-4"})})]}),u.jsx(yt,{children:K.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):q.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:q.map(X=>u.jsxs("button",{onClick:()=>ce(X.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${g===X.name?"bg-muted font-medium":""}`,children:[u.jsx(Nc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:X.name})]},X.name))})})]}),u.jsxs(gt,{className:"md:col-span-3",children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:g||"Select a Table"}),g&&u.jsxs(Bt,{children:[ue," total rows"]})]}),u.jsx(yt,{children:g?H.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):G.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(na,{children:[u.jsx(aa,{children:u.jsx(xt,{children:te.map(X=>u.jsx(Re,{className:"font-mono",children:X},X))})}),u.jsx(la,{children:G.map((X,de)=>u.jsx(xt,{children:te.map(k=>u.jsx(Me,{className:"font-mono text-sm",children:rz(X[k])},k))},de))})]})}),u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Showing ",y+1," -"," ",Math.min(y+S,ue)," of ",ue]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ye,{variant:"outline",size:"sm",disabled:y===0,onClick:()=>w(Math.max(0,y-S)),children:[u.jsx(mo,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Ye,{variant:"outline",size:"sm",disabled:y+S>=ue,onClick:()=>w(y+S),children:["Next",u.jsx(yr,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}const tr=20;function uz(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 cz({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Cache Entries"}),u.jsx(Bt,{children:"Active (non-expired) entries in this cache (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"Key"}),u.jsx(Re,{children:"Value"}),u.jsx(Re,{children:"TTL"}),u.jsx(Re,{children:"Expires At"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{className:"font-mono text-sm",children:r.key}),u.jsx(Me,{className:"max-w-[300px] truncate font-mono text-xs text-muted-foreground",children:r.value}),u.jsx(Me,{children:u.jsx("span",{className:"font-mono text-sm",children:uz(r.ttlSeconds)})}),u.jsx(Me,{className:"text-sm text-muted-foreground",children:new Date(r.expiresAt).toLocaleString()})]},r.key))})]}):u.jsx(ua,{children:"No active entries in this cache"})})]})}function dz(){const{binding:n}=$a(),a=n||"",[r,i]=v.useState(0),{data:o,isLoading:c}=ft({queryKey:["cacheEntries",a,r],queryFn:()=>M5(a,tr,r),enabled:!!a,refetchInterval:5e3}),h=(o==null?void 0:o.total)??0,m=Math.floor(r/tr)+1,p=Math.max(1,Math.ceil(h/tr));return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(jr,{title:`Cache: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2",children:u.jsx(Cn,{title:"Active Entries",value:h,icon:u.jsx(Al,{className:"h-4 w-4 text-muted-foreground"}),isLoading:c})}),u.jsx(cz,{entries:o==null?void 0:o.entries,isLoading:c}),h>tr&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p," (",h," total entries)"]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ye,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-tr)),disabled:r===0,children:[u.jsx(mo,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Ye,{variant:"outline",size:"sm",onClick:()=>i(r+tr),disabled:r+tr>=h,children:["Next",u.jsx(yr,{className:"h-4 w-4"})]})]})]})]})})}function fz({executions:n,cronExpression:a,isLoading:r}){const i=(n==null?void 0:n.filter(c=>c.status==="COMPLETED").length)??0,o=(n==null?void 0:n.filter(c=>c.status==="FAILED").length)??0;return u.jsxs("div",{className:"grid gap-4 md:grid-cols-3",children:[u.jsx(Cn,{title:"Schedule",value:a??"-",icon:u.jsx(Al,{className:"h-4 w-4 text-muted-foreground"}),isLoading:r}),u.jsx(Cn,{title:"Completed",value:i,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:r}),u.jsx(Cn,{title:"Failed",value:o,icon:u.jsx(Ui,{className:"h-4 w-4 text-red-500"}),isLoading:r})]})}function hz({executions:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Execution History"}),u.jsx(Bt,{children:"Recent cron handler executions (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Triggered"}),u.jsx(Re,{children:"Duration"}),u.jsx(Re,{children:"Error"}),u.jsx(Re,{children:"Completed"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Zi,{id:r.id})}),u.jsx(Me,{children:u.jsx(zp,{status:r.status})}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.triggeredAt})}),u.jsx(Me,{children:r.durationMs!=null?`${r.durationMs}ms`:"-"}),u.jsx(Me,{className:"max-w-[200px] truncate text-xs text-red-500",children:r.error??"-"}),u.jsx(Me,{children:r.completedAt?u.jsx(cn,{timestamp:r.completedAt}):"-"})]},r.id))})]}):u.jsx(ua,{children:"No cron executions yet"})})]})}function mz(){const{binding:n}=$a(),a=n||"",{data:r,isLoading:i}=ft({queryKey:["cronExecutions",a],queryFn:()=>H5(a,20),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(jr,{title:`Cron: ${a}`}),u.jsx(fz,{executions:r==null?void 0:r.executions,cronExpression:r==null?void 0:r.cronExpression,isLoading:i}),u.jsx(hz,{executions:r==null?void 0:r.executions,isLoading:i})]})})}const nr=20;function pz(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 vz({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Files"}),u.jsx(Bt,{children:"Stored files with metadata (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"Key"}),u.jsx(Re,{children:"Size"}),u.jsx(Re,{children:"Content Type"}),u.jsx(Re,{children:"Created At"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{className:"font-mono text-sm",children:r.key}),u.jsx(Me,{className:"text-sm text-muted-foreground",children:pz(r.size)}),u.jsx(Me,{className:"font-mono text-xs text-muted-foreground",children:r.contentType}),u.jsx(Me,{className:"text-sm text-muted-foreground",children:r.createdAt})]},r.key))})]}):u.jsx(ua,{children:"No files in this storage"})})]})}function gz(){const{binding:n}=$a(),a=n||"",[r,i]=v.useState(0),{data:o,isLoading:c}=ft({queryKey:["fileStorageEntries",a,r],queryFn:()=>K5(a,nr,r),enabled:!!a,refetchInterval:5e3}),h=(o==null?void 0:o.total)??0,m=Math.floor(r/nr)+1,p=Math.ceil(h/nr);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(jr,{title:`File Storage: ${a}`}),u.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:u.jsx(Cn,{title:"Total Files",value:h})}),u.jsx(vz,{entries:o==null?void 0:o.entries,isLoading:c}),h>nr&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",m," of ",p]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ye,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-nr)),disabled:r===0,children:[u.jsx(mo,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Ye,{variant:"outline",size:"sm",onClick:()=>i(r+nr),disabled:r+nr>=h,children:["Next",u.jsx(yr,{className:"h-4 w-4"})]})]})]})]})})}const Pu=20;function yz({entries:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"State Entries"}),u.jsx(Bt,{children:"Key-value entries in this state store (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"Key"}),u.jsx(Re,{children:"Value"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{className:"font-mono text-sm",children:r.key}),u.jsx(Me,{className:"max-w-[400px] truncate font-mono text-xs text-muted-foreground",children:r.value})]},r.key))})]}):u.jsx(ua,{children:"No entries in this state store"})})]})}function xz(){const{binding:n}=$a(),a=n||"",[r,i]=v.useState(0),[o,c]=v.useState(""),[h,m]=v.useState(""),{data:p,isLoading:g}=ft({queryKey:["stateEntries",a,r,o],queryFn:()=>k5(a,Pu,r,o),enabled:!!a,refetchInterval:5e3}),x=(p==null?void 0:p.hasMore)??!1,y=Math.floor(r/Pu)+1,w=S=>{S.preventDefault(),c(h),i(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(jr,{title:`State: ${a}`}),u.jsxs("form",{onSubmit:w,className:"flex gap-2",children:[u.jsx(m1,{placeholder:"Search by key...",value:h,onChange:S=>m(S.target.value),className:"max-w-sm"}),u.jsxs(Ye,{type:"submit",variant:"outline",size:"sm",children:[u.jsx(xT,{className:"h-4 w-4 mr-1"}),"Search"]}),o&&u.jsx(Ye,{type:"button",variant:"ghost",size:"sm",onClick:()=>{c(""),m(""),i(0)},children:"Clear"})]}),u.jsx(yz,{entries:p==null?void 0:p.entries,isLoading:g}),(r>0||x)&&u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("p",{className:"text-sm text-muted-foreground",children:["Page ",y]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsxs(Ye,{variant:"outline",size:"sm",onClick:()=>i(Math.max(0,r-Pu)),disabled:r===0,children:[u.jsx(mo,{className:"h-4 w-4"}),"Previous"]}),u.jsxs(Ye,{variant:"outline",size:"sm",onClick:()=>i(r+Pu),disabled:!x,children:["Next",u.jsx(yr,{className:"h-4 w-4"})]})]})]})]})})}function bz({column:n,onInsertText:a}){return u.jsxs("button",{onClick:()=>a==null?void 0:a(n.name),className:"flex w-full items-center gap-2 rounded px-2 py-1 text-left text-xs hover:bg-muted",title:`Click to insert "${n.name}"`,children:[n.primaryKey?u.jsx(Xb,{className:"h-3 w-3 shrink-0 text-yellow-500"}):u.jsx(Vb,{className:"h-3 w-3 shrink-0 text-muted-foreground"}),u.jsx("span",{className:"truncate font-mono",children:n.name}),u.jsxs("span",{className:"ml-auto truncate text-muted-foreground",children:[n.type,n.notNull&&!n.primaryKey&&" NOT NULL"]})]})}function wz({table:n,onInsertText:a}){const[r,i]=v.useState(!1);return u.jsxs(_S,{open:r,onOpenChange:i,children:[u.jsxs(TS,{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(Yb,{className:"h-4 w-4 shrink-0"}):u.jsx(yr,{className:"h-4 w-4 shrink-0"}),u.jsx(Nc,{className:"h-4 w-4 shrink-0 text-blue-500"}),u.jsx("span",{className:"truncate font-medium cursor-pointer",onClick:o=>{o.stopPropagation(),a==null||a(n.name)},title:`Click to insert "${n.name}"`,children:n.name}),u.jsxs("span",{className:"ml-auto text-xs text-muted-foreground",children:[n.columns.length," cols"]})]}),u.jsx(RS,{children:u.jsx("div",{className:"ml-4 border-l pl-2",children:n.columns.map(o=>u.jsx(bz,{column:o,onInsertText:a},o.name))})})]})}function jz({bindingName:n,onInsertText:a}){const{data:r,isLoading:i,refetch:o}=ft({queryKey:["schema",n],queryFn:()=>R5(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(Ye,{variant:"ghost",size:"icon",className:"h-7 w-7",onClick:()=>o(),disabled:i,children:u.jsx(po,{className:pe("h-4 w-4",i&&"animate-spin")})})]}),u.jsx(T1,{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(wz,{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 Sz(n){return n===null?"NULL":n===void 0?"":typeof n=="object"?JSON.stringify(n):String(n)}function Ez(){var G,te,ue,ce;const{binding:n}=$a(),a=n||"",[r,i]=v.useState("query"),[o,c]=v.useState(""),[h,m]=v.useState(null),[p,g]=v.useState(null),[x,y]=v.useState(null),[w,S]=v.useState(0),E=50,j=v.useCallback(W=>{c(ie=>ie+W)},[]),C=Jh({mutationFn:W=>C5(a,W),onSuccess:W=>{m(W),g(null)},onError:W=>{g(W instanceof Error?W.message:"Failed to execute query"),m(null)}}),_=()=>{o.trim()&&C.mutate(o)},T=ft({queryKey:["tables",a],queryFn:()=>_5(a),staleTime:0,gcTime:0,enabled:!!a}),R=ft({queryKey:["tableData",a,x,E,w],queryFn:()=>T5(a,x,E,w),staleTime:0,gcTime:0,enabled:!!a&&!!x}),D=((G=T.data)==null?void 0:G.tables)||[],L=((te=R.data)==null?void 0:te.data)||[],K=((ue=R.data)==null?void 0:ue.columns)||[],H=((ce=R.data)==null?void 0:ce.total)||0,q=W=>{y(W),S(0)};return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Database: ",a]}),u.jsxs(dS,{value:r,onValueChange:i,children:[u.jsxs(fS,{children:[u.jsx(Is,{value:"query",children:"SQL Editor"}),u.jsx(Is,{value:"tables",children:"Tables"})]}),u.jsx(Ws,{value:"query",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-0 lg:grid-cols-[1fr_280px]",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"SQL Query"}),u.jsx(Bt,{children:"Execute SQL queries against your database"})]}),u.jsxs(yt,{className:"space-y-4",children:[u.jsx("textarea",{value:o,onChange:W=>c(W.target.value),onKeyDown:W=>{(W.metaKey||W.ctrlKey)&&W.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(Ye,{onClick:_,disabled:C.isPending||!o.trim(),children:[u.jsx(Fb,{className:"mr-2 h-4 w-4"}),C.isPending?"Executing...":"Execute"]})]})]})]}),p&&u.jsx(gt,{className:"border-destructive/50",children:u.jsx(yt,{className:"pt-6",children:u.jsx("p",{className:"font-mono text-sm text-destructive",children:p})})}),h&&u.jsx(o1,{results:h.results,meta:h.meta,error:h.error})]}),u.jsx("div",{className:"hidden h-[500px] lg:block",children:u.jsx(jz,{bindingName:a,onInsertText:j})})]})}),u.jsx(Ws,{value:"tables",className:"mt-4",children:u.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-4",children:[u.jsxs(gt,{className:"md:col-span-1",children:[u.jsxs(_t,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[u.jsx(Tt,{className:"text-base",children:"Tables"}),u.jsx(Ye,{variant:"ghost",size:"icon",onClick:()=>T.refetch(),className:"h-8 w-8",children:u.jsx(po,{className:"h-4 w-4"})})]}),u.jsx(yt,{children:T.isLoading?u.jsx("p",{className:"text-sm text-muted-foreground",children:"Loading..."}):D.length===0?u.jsx("p",{className:"text-sm text-muted-foreground",children:"No tables found"}):u.jsx("div",{className:"space-y-1",children:D.map(W=>u.jsxs("button",{onClick:()=>q(W.name),className:`flex w-full items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors hover:bg-muted ${x===W.name?"bg-muted font-medium":""}`,children:[u.jsx(Nc,{className:"h-4 w-4 shrink-0"}),u.jsx("span",{className:"truncate",children:W.name})]},W.name))})})]}),u.jsxs(gt,{className:"md:col-span-3",children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:x||"Select a Table"}),x&&u.jsxs(Bt,{children:[H," total rows"]})]}),u.jsx(yt,{children:x?R.isLoading?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"})}):L.length===0?u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"No data in this table"}):u.jsxs("div",{className:"space-y-4",children:[u.jsx("div",{className:"overflow-x-auto rounded-md border",children:u.jsxs(na,{children:[u.jsx(aa,{children:u.jsx(xt,{children:K.map(W=>u.jsx(Re,{className:"font-mono",children:W},W))})}),u.jsx(la,{children:L.map((W,ie)=>u.jsx(xt,{children:K.map(re=>u.jsx(Me,{className:"font-mono text-sm",children:Sz(W[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(Ye,{variant:"outline",size:"sm",disabled:w===0,onClick:()=>S(Math.max(0,w-E)),children:[u.jsx(mo,{className:"mr-1 h-4 w-4"}),"Previous"]}),u.jsxs(Ye,{variant:"outline",size:"sm",disabled:w+E>=H,onClick:()=>S(w+E),children:["Next",u.jsx(yr,{className:"ml-1 h-4 w-4"})]})]})]})]}):u.jsx("p",{className:"py-8 text-center text-muted-foreground",children:"Select a table from the list to view its data"})})]})]})})]})]})})}function Nz({metrics:n,isLoading:a}){return u.jsxs("div",{className:"grid gap-4 md:grid-cols-5",children:[u.jsx(Cn,{title:"Pending",value:(n==null?void 0:n.pending)??0,icon:u.jsx(Al,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Cn,{title:"Processing",value:(n==null?void 0:n.processing)??0,icon:u.jsx(qn,{className:"h-4 w-4 text-muted-foreground"}),isLoading:a}),u.jsx(Cn,{title:"Acknowledged",value:(n==null?void 0:n.acknowledged)??0,icon:u.jsx(Rl,{className:"h-4 w-4 text-green-500"}),isLoading:a}),u.jsx(Cn,{title:"Failed",value:(n==null?void 0:n.failed)??0,icon:u.jsx(Ui,{className:"h-4 w-4 text-red-500"}),isLoading:a}),u.jsx(Cn,{title:"Dead Letter",value:(n==null?void 0:n.deadLetter)??0,icon:u.jsx(hT,{className:"h-4 w-4 text-orange-500"}),isLoading:a})]})}function Cz({messages:n,isLoading:a}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Recent Messages"}),u.jsx(Bt,{children:"Latest messages in this queue (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Payload"}),u.jsx(Re,{children:"Attempt"}),u.jsx(Re,{children:"Created"})]})}),u.jsx(la,{children:n.map(r=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Zi,{id:r.id})}),u.jsx(Me,{children:u.jsx(P5,{status:r.status})}),u.jsx(Me,{className:"max-w-[200px] truncate font-mono text-xs",children:JSON.stringify(r.payload)}),u.jsx(Me,{children:r.attempt}),u.jsx(Me,{children:u.jsx(cn,{timestamp:r.createdAt})})]},r.id))})]}):u.jsx(ua,{children:"No messages in this queue"})})]})}function _z(){const{binding:n}=$a(),a=n||"",{data:r,isLoading:i}=ft({queryKey:["queueMetrics",a],queryFn:()=>A5(a),enabled:!!a,refetchInterval:5e3}),{data:o,isLoading:c}=ft({queryKey:["queueMessages",a],queryFn:()=>D5(a,10),enabled:!!a,refetchInterval:5e3});return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(jr,{title:`Queue: ${a}`}),u.jsx(Nz,{metrics:r==null?void 0:r.metrics,isLoading:i}),u.jsx(Cz,{messages:o==null?void 0:o.messages,isLoading:c})]})})}function Js(n){return n!=null}function Tz(n,a){const r=[];n&&Js(n.input)&&r.push("execution-input"),n&&Js(n.output)&&r.push("execution-output");for(const i of a)Js(i.input)&&r.push(`${i.id}-input`),Js(i.output)&&r.push(`${i.id}-output`);return r}function jc({id:n,label:a,value:r,isOpen:i,onToggle:o}){return Js(r)?u.jsxs("details",{className:"mt-2",open:i,onToggle:c=>{o(n,c.currentTarget.open)},children:[u.jsx("summary",{className:"text-xs text-muted-foreground cursor-pointer hover:text-foreground",children:a}),u.jsx("pre",{className:"mt-1 p-2 rounded bg-muted text-xs font-mono overflow-x-auto",children:JSON.stringify(r,null,2)})]}):null}function Rz({status:n}){switch(n){case"COMPLETED":return u.jsx(Rl,{className:"h-5 w-5 text-green-500"});case"RUNNING":return u.jsx(qn,{className:"h-5 w-5 text-blue-500 animate-spin"});case"FAILED":return u.jsx(Ui,{className:"h-5 w-5 text-red-500"});case"PENDING":default:return u.jsx(Al,{className:"h-5 w-5 text-gray-400"})}}function Mz(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 kz(n){return n.attempt!==null&&n.attempt!==void 0&&n.maxRetries!==null&&n.maxRetries!==void 0&&(n.attempt>1||n.status!=="COMPLETED")}function Az({steps:n,openIoSectionIds:a,onToggleIoSection:r}){if(n.length===0)return u.jsx(ua,{children:"No steps recorded for this execution"});const i=n.reduce((o,c)=>o+(c.durationMs||0),0);return u.jsxs("div",{className:"space-y-4",children:[i>0&&u.jsxs("div",{className:"mb-6",children:[u.jsxs("div",{className:"flex items-center justify-between text-sm text-muted-foreground mb-2",children:[u.jsx("span",{children:"Total Duration"}),u.jsx("span",{children:di(i)})]}),u.jsx("div",{className:"h-3 bg-muted rounded-full overflow-hidden flex",children:n.map((o,c)=>{const h=o.durationMs?o.durationMs/i*100:0;return u.jsx("div",{className:pe(Mz(o.status),"h-full transition-all",c>0&&"border-l border-background"),style:{width:`${h}%`},title:`${o.stepName}: ${di(o.durationMs)}`},o.id)})})]}),u.jsx("div",{className:"relative",children:n.map((o,c)=>{const h=kz(o);return u.jsxs("div",{className:"relative pb-6 last:pb-0",children:[c<n.length-1&&u.jsx("div",{className:pe("absolute left-[9px] top-6 w-0.5 h-full -ml-px",o.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(Rz,{status:o.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:o.stepName}),u.jsxs("span",{className:"text-xs text-muted-foreground",children:["(Step ",o.stepIndex+1,")"]}),h&&u.jsxs("span",{className:pe("inline-flex items-center gap-1 text-xs px-1.5 py-0.5 rounded-full font-mono",o.attempt!==null&&o.attempt!==void 0&&o.attempt>1?o.status==="FAILED"?"bg-red-100 text-red-700 dark:bg-red-950 dark:text-red-300":"bg-yellow-100 text-yellow-700 dark:bg-yellow-950 dark:text-yellow-300":"bg-muted text-muted-foreground"),children:[u.jsx(po,{className:"h-3 w-3"}),o.attempt,"/",(o.maxRetries??0)+1]})]}),u.jsx("span",{className:"text-sm font-mono text-muted-foreground",children:di(o.durationMs)})]}),o.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:o.errorMessage}),o.retryAttempts&&o.retryAttempts.length>0&&u.jsxs("div",{className:"mt-2 space-y-2",children:[u.jsx("div",{className:"text-xs font-medium text-muted-foreground",children:"Previous failures"}),o.retryAttempts.map(m=>u.jsxs("div",{className:"rounded border border-yellow-200 bg-yellow-50 px-3 py-2 dark:border-yellow-900 dark:bg-yellow-950/40",children:[u.jsxs("div",{className:"mb-1 flex items-center justify-between gap-2 text-xs text-yellow-800 dark:text-yellow-200",children:[u.jsxs("span",{className:"font-medium",children:["Attempt ",m.attempt," failed"]}),u.jsx("span",{className:"font-mono",children:di(m.durationMs??null)})]}),u.jsx("pre",{className:"whitespace-pre-wrap text-xs font-mono text-yellow-900 dark:text-yellow-100",children:m.errorMessage})]},`${o.id}-${m.attempt}`))]}),u.jsx(jc,{id:`${o.id}-input`,label:"View input",value:o.input,isOpen:a.has(`${o.id}-input`),onToggle:r}),u.jsx(jc,{id:`${o.id}-output`,label:"View output",value:o.output,isOpen:a.has(`${o.id}-output`),onToggle:r}),u.jsx("div",{className:"mt-1 text-xs text-muted-foreground",children:u.jsx(cn,{timestamp:o.createdAt})})]})]})]},o.id)})})]})}function Dz(){const{binding:n,executionId:a}=$a(),r=n||"",i=a||"",{data:o,isLoading:c}=ft({queryKey:["workflowExecution",r,i],queryFn:()=>z5(r,i),enabled:!!r&&!!i,refetchInterval:5e3}),h=o==null?void 0:o.execution,m=(o==null?void 0:o.steps)||[],p=Tz(h??null,m),[g,x]=v.useState(()=>new Set),y=p.length>0&&p.every(E=>g.has(E));function w(E,j){x(C=>{const _=new Set(C);return j?_.add(E):_.delete(E),_})}function S(){x(()=>y?new Set:new Set(p))}return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsxs("div",{className:"flex items-start justify-between gap-4",children:[u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(Pt,{to:`/workflows/${r}`,children:u.jsxs(Ye,{variant:"ghost",size:"sm",children:[u.jsx(z_,{className:"mr-2 h-4 w-4"}),"Back"]})}),u.jsxs("h2",{className:"text-3xl font-bold tracking-tight",children:["Execution: ",u.jsx(Zi,{id:i})]})]}),p.length>0&&u.jsxs(Ye,{variant:"ghost",size:"sm",onClick:S,children:[y?u.jsx(Y_,{className:"h-4 w-4"}):u.jsx(K_,{className:"h-4 w-4"}),y?"Collapse All I/O":"Expand All I/O"]})]}),c?u.jsx(Qa,{}):h?u.jsxs(u.Fragment,{children:[u.jsxs(gt,{children:[u.jsx(_t,{children:u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx(Tt,{children:"Execution Details"}),u.jsx(Bt,{children:h.startedAt?u.jsxs(u.Fragment,{children:["Started ",u.jsx(cn,{timestamp:h.startedAt})]}):"Not started yet"})]}),u.jsx(zp,{status:h.status})]})}),u.jsxs(yt,{children:[u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Duration"}),u.jsx("p",{className:"font-mono",children:di(h.durationMs)})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Steps Completed"}),u.jsxs("p",{className:"font-mono",children:[h.stepsCompleted," / ",h.stepsCount]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Created"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(cn,{timestamp:h.createdAt})})]}),h.completedAt&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Completed"}),u.jsx("p",{className:"font-mono text-sm",children:u.jsx(cn,{timestamp:h.completedAt})})]})]}),h.errorMessage&&u.jsx("div",{className:"mt-4 p-3 rounded bg-red-50 dark:bg-red-950 text-red-700 dark:text-red-300 text-sm font-mono",children:h.errorMessage}),u.jsxs("div",{className:"mt-4 grid gap-3 md:grid-cols-2",children:[u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Input"}),u.jsx(jc,{id:"execution-input",label:"View execution input",value:h.input,isOpen:g.has("execution-input"),onToggle:w})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Execution Output"}),u.jsx(jc,{id:"execution-output",label:"View execution output",value:h.output,isOpen:g.has("execution-output"),onToggle:w})]})]})]})]}),u.jsxs(gt,{children:[u.jsx(_t,{children:u.jsxs("div",{children:[u.jsx(Tt,{children:"Steps"}),u.jsx(Bt,{children:"Workflow step execution timeline"})]})}),u.jsx(yt,{children:u.jsx(Az,{steps:m,openIoSectionIds:g,onToggleIoSection:w})})]})]}):u.jsx(ua,{children:"Execution not found"})]})})}const Lh=20,Oz=[{value:"",label:"All statuses"},{value:"pending",label:"Pending"},{value:"running",label:"Running"},{value:"completed",label:"Completed"},{value:"failed",label:"Failed"},{value:"cancelled",label:"Cancelled"}],zz=[{value:"",label:"All time"},{value:"1h",label:"Last hour"},{value:"24h",label:"Last 24 hours"},{value:"7d",label:"Last 7 days"},{value:"30d",label:"Last 30 days"}];function Lz({executions:n,isLoading:a,bindingName:r}){return u.jsxs(gt,{children:[u.jsxs(_t,{children:[u.jsx(Tt,{children:"Recent Executions"}),u.jsx(Bt,{children:"Workflow executions (auto-refreshes every 5 seconds)"})]}),u.jsx(yt,{children:a?u.jsx(Qa,{}):n!=null&&n.length?u.jsxs(na,{children:[u.jsx(aa,{children:u.jsxs(xt,{children:[u.jsx(Re,{children:"ID"}),u.jsx(Re,{children:"Status"}),u.jsx(Re,{children:"Steps"}),u.jsx(Re,{children:"Duration"}),u.jsx(Re,{children:"Started"}),u.jsx(Re,{})]})}),u.jsx(la,{children:n.map(i=>u.jsxs(xt,{children:[u.jsx(Me,{children:u.jsx(Zi,{id:i.id})}),u.jsx(Me,{children:u.jsx(zp,{status:i.status})}),u.jsx(Me,{children:u.jsxs("span",{className:"text-sm",children:[i.stepsCompleted,"/",i.stepsCount]})}),u.jsx(Me,{className:"text-sm",children:di(i.durationMs)}),u.jsx(Me,{children:i.startedAt?u.jsx(cn,{timestamp:i.startedAt}):"-"}),u.jsx(Me,{children:u.jsx(Pt,{to:`/workflows/${r}/${i.id}`,className:"flex items-center text-sm text-primary hover:underline",children:"View"})})]},i.id))})]}):u.jsx(ua,{children:"No executions for this workflow"})})]})}function Uz(){const{binding:n}=$a(),a=n||"",[r,i]=v.useState(""),[o,c]=v.useState(""),[h,m]=v.useState(0),p=h*Lh,{data:g,isLoading:x}=ft({queryKey:["workflowExecutions",a,r,o,h],queryFn:()=>O5(a,Lh,p,r||void 0,o||void 0),enabled:!!a,refetchInterval:5e3}),y=g?Math.ceil(g.total/Lh):0,w=()=>m(0);return u.jsx("div",{className:"flex flex-col",children:u.jsxs("div",{className:"flex-1 space-y-4 pt-6",children:[u.jsx(jr,{title:`Workflow: ${a}`}),u.jsxs("div",{className:"flex items-center gap-3 flex-wrap",children:[u.jsx("select",{value:r,onChange:S=>{i(S.target.value),w()},className:"text-sm border rounded px-2 py-1 bg-background",children:Oz.map(S=>u.jsx("option",{value:S.value,children:S.label},S.value))}),u.jsx("select",{value:o,onChange:S=>{c(S.target.value),w()},className:"text-sm border rounded px-2 py-1 bg-background",children:zz.map(S=>u.jsx("option",{value:S.value,children:S.label},S.value))}),g&&u.jsxs("span",{className:"text-sm text-muted-foreground",children:[g.total," total"]})]}),u.jsx(Lz,{executions:g==null?void 0:g.executions,isLoading:x,bindingName:a}),y>1&&u.jsxs("div",{className:"flex items-center justify-between pt-2",children:[u.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:h===0,onClick:()=>m(S=>S-1),children:"Previous"}),u.jsxs("span",{className:"text-sm text-muted-foreground",children:["Page ",h+1," of ",y]}),u.jsx("button",{className:"text-sm px-3 py-1 border rounded disabled:opacity-40",disabled:h>=y-1,onClick:()=>m(S=>S+1),children:"Next"})]})]})})}function qz(){const n=Ba(),{data:a,isLoading:r}=ft({queryKey:["config"],queryFn:Op,staleTime:6e4}),i=a!=null&&a.db?Object.keys(a.db):[],o=a!=null&&a.queue?Object.keys(a.queue):[],c=a!=null&&a.cache?Object.keys(a.cache):[],h=a!=null&&a.state?Object.keys(a.state):[],m=a!=null&&a.fs?Object.keys(a.fs):[],p=a!=null&&a.workflow?Object.keys(a.workflow):[],g=a!=null&&a.cron?Object.keys(a.cron):[],x=a!=null&&a.timer?Object.keys(a.timer):[];return u.jsxs("aside",{className:"fixed inset-y-0 left-0 z-10 w-64 flex flex-col border-r bg-background",children:[u.jsx("div",{className:"flex h-14 items-center border-b px-4",children:u.jsxs(Pt,{to:"/",className:"flex items-center gap-2 font-semibold",children:[u.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-md bg-primary text-primary-foreground",children:"P"}),u.jsx("span",{children:"Ploy Dev"})]})}),u.jsx("nav",{className:"flex-1 overflow-auto p-4",children:r?u.jsx("div",{className:"flex items-center justify-center py-8",children:u.jsx(qn,{className:"h-5 w-5 animate-spin text-muted-foreground"})}):u.jsxs("div",{className:"space-y-6",children:[i.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Database"}),u.jsx("div",{className:"space-y-1",children:i.map(y=>{const w=n.pathname===`/db/${y}`;return u.jsx(Pt,{to:`/db/${y}`,children:u.jsxs(Ye,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(eT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),(a==null?void 0:a.auth)&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Auth"}),u.jsx("div",{className:"space-y-1",children:u.jsx(Pt,{to:"/auth",children:u.jsxs(Ye,{variant:n.pathname==="/auth"?"secondary":"ghost",className:pe("w-full justify-start",n.pathname==="/auth"&&"bg-muted"),children:[u.jsx(ST,{className:"mr-2 h-4 w-4"}),u.jsx("span",{className:"flex-1 text-left",children:a.auth.binding}),u.jsx(Kb,{className:"h-3.5 w-3.5 text-muted-foreground",title:"Ploy Auth tables (users & sessions)"})]})})})]}),o.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Queues"}),u.jsx("div",{className:"space-y-1",children:o.map(y=>{const w=n.pathname===`/queues/${y}`;return u.jsx(Pt,{to:`/queues/${y}`,children:u.jsxs(Ye,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(oT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),c.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cache"}),u.jsx("div",{className:"space-y-1",children:c.map(y=>{const w=n.pathname===`/cache/${y}`;return u.jsx(Pt,{to:`/cache/${y}`,children:u.jsxs(Ye,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(iT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),h.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"State"}),u.jsx("div",{className:"space-y-1",children:h.map(y=>{const w=n.pathname===`/state/${y}`;return u.jsx(Pt,{to:`/state/${y}`,children:u.jsxs(Ye,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(D_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),m.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"File Storage"}),u.jsx("div",{className:"space-y-1",children:m.map(y=>{const w=n.pathname===`/fs/${y}`;return u.jsx(Pt,{to:`/fs/${y}`,children:u.jsxs(Ye,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(nT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),p.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Workflows"}),u.jsx("div",{className:"space-y-1",children:p.map(y=>{const w=n.pathname.startsWith(`/workflows/${y}`);return u.jsx(Pt,{to:`/workflows/${y}`,children:u.jsxs(Ye,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(lT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),g.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Cron"}),u.jsx("div",{className:"space-y-1",children:g.map(y=>{const w=n.pathname===`/cron/${y}`;return u.jsx(Pt,{to:`/cron/${y}`,children:u.jsxs(Ye,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(CT,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),x.length>0&&u.jsxs("div",{children:[u.jsx("h3",{className:"mb-2 px-2 text-xs font-semibold uppercase tracking-wider text-muted-foreground",children:"Timers"}),u.jsx("div",{className:"space-y-1",children:x.map(y=>{const w=n.pathname===`/timers/${y}`;return u.jsx(Pt,{to:`/timers/${y}`,children:u.jsxs(Ye,{variant:w?"secondary":"ghost",className:pe("w-full justify-start",w&&"bg-muted"),children:[u.jsx(H_,{className:"mr-2 h-4 w-4"}),y]})},y)})})]}),i.length===0&&o.length===0&&c.length===0&&h.length===0&&m.length===0&&p.length===0&&g.length===0&&x.length===0&&!(a!=null&&a.auth)&&u.jsx("div",{className:"px-2 py-4 text-center text-sm text-muted-foreground",children:"No bindings configured in ploy.yaml"})]})})]})}function Hz(){const{data:n,isLoading:a}=ft({queryKey:["config"],queryFn:Op,staleTime:6e4});if(!a&&n){const r=n.db?Object.keys(n.db):[],i=n.queue?Object.keys(n.queue):[],o=n.cache?Object.keys(n.cache):[],c=n.state?Object.keys(n.state):[],h=n.fs?Object.keys(n.fs):[],m=n.workflow?Object.keys(n.workflow):[];if(r.length>0)return u.jsx(Ma,{to:`/db/${r[0]}`,replace:!0});if(n.auth)return u.jsx(Ma,{to:"/auth",replace:!0});if(i.length>0)return u.jsx(Ma,{to:`/queues/${i[0]}`,replace:!0});if(o.length>0)return u.jsx(Ma,{to:`/cache/${o[0]}`,replace:!0});if(c.length>0)return u.jsx(Ma,{to:`/state/${c[0]}`,replace:!0});if(h.length>0)return u.jsx(Ma,{to:`/fs/${h[0]}`,replace:!0});if(m.length>0)return u.jsx(Ma,{to:`/workflows/${m[0]}`,replace:!0});const p=n.cron?Object.keys(n.cron):[];if(p.length>0)return u.jsx(Ma,{to:`/cron/${p[0]}`,replace:!0});const g=n.timer?Object.keys(n.timer):[];if(g.length>0)return u.jsx(Ma,{to:`/timers/${g[0]}`,replace:!0})}return u.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[u.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Ploy Dev Dashboard"}),a?u.jsx(qn,{className:"h-6 w-6 animate-spin text-muted-foreground"}):u.jsx("p",{className:"text-muted-foreground",children:"Configure database, queue, or workflow bindings in ploy.yaml to get started."})]})}function Bz(){return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(qz,{}),u.jsx("main",{className:"pl-64",children:u.jsx("div",{className:"container mx-auto px-6 py-4",children:u.jsxs(FC,{children:[u.jsx(Sn,{path:"/",element:u.jsx(Hz,{})}),u.jsx(Sn,{path:"/db/:binding",element:u.jsx(Ez,{})}),u.jsx(Sn,{path:"/auth",element:u.jsx(oz,{})}),u.jsx(Sn,{path:"/queues/:binding",element:u.jsx(_z,{})}),u.jsx(Sn,{path:"/cache/:binding",element:u.jsx(dz,{})}),u.jsx(Sn,{path:"/state/:binding",element:u.jsx(xz,{})}),u.jsx(Sn,{path:"/fs/:binding",element:u.jsx(gz,{})}),u.jsx(Sn,{path:"/cron/:binding",element:u.jsx(mz,{})}),u.jsx(Sn,{path:"/timers/:binding",element:u.jsx(tz,{})}),u.jsx(Sn,{path:"/workflows/:binding",element:u.jsx(Uz,{})}),u.jsx(Sn,{path:"/workflows/:binding/:executionId",element:u.jsx(Dz,{})})]})})})]})}function XS(){const n=window.matchMedia("(prefers-color-scheme: dark)").matches;document.documentElement.classList.toggle("dark",n)}XS();window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",XS);const $z=new ON({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:1}}});aC.createRoot(document.getElementById("root")).render(u.jsx(v.StrictMode,{children:u.jsx(BN,{client:$z,children:u.jsx(y_,{children:u.jsx(Bz,{})})})}));
|