chatroom-cli 1.97.5 → 1.98.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client/build/assets/index-Bf1pGWwt.js +115 -0
- package/dist/client/build/assets/index-DBieRJaU.css +1 -0
- package/dist/client/build/index.html +2 -2
- package/dist/index.js +26301 -22826
- package/dist/index.js.map +99 -61
- package/package.json +1 -1
- package/dist/client/build/assets/index-C3Kp4LqQ.js +0 -115
- package/dist/client/build/assets/index-DvCxOxT9.css +0 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
var Fx=Object.defineProperty;var Xy=n=>{throw TypeError(n)};var Zx=(n,i,r)=>i in n?Fx(n,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):n[i]=r;var et=(n,i,r)=>Zx(n,typeof i!="symbol"?i+"":i,r),yd=(n,i,r)=>i.has(n)||Xy("Cannot "+r);var D=(n,i,r)=>(yd(n,i,"read from private field"),r?r.call(n):i.get(n)),Te=(n,i,r)=>i.has(n)?Xy("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(n):i.set(n,r),he=(n,i,r,a)=>(yd(n,i,"write to private field"),a?a.call(n,r):i.set(n,r),r),Ye=(n,i,r)=>(yd(n,i,"access private method"),r);var yu=(n,i,r,a)=>({set _(u){he(n,i,u,r)},get _(){return D(n,i,a)}});function Px(n,i){for(var r=0;r<i.length;r++){const a=i[r];if(typeof a!="string"&&!Array.isArray(a)){for(const u in a)if(u!=="default"&&!(u in n)){const f=Object.getOwnPropertyDescriptor(a,u);f&&Object.defineProperty(n,u,f.get?f:{enumerable:!0,get:()=>a[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))a(u);new MutationObserver(u=>{for(const f of u)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function r(u){const f={};return u.integrity&&(f.integrity=u.integrity),u.referrerPolicy&&(f.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?f.credentials="include":u.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function a(u){if(u.ep)return;u.ep=!0;const f=r(u);fetch(u.href,f)}})();function Ix(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var vd={exports:{}},Ta={};/**
|
|
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 Ky;function Jx(){if(Ky)return Ta;Ky=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(a,u,f){var d=null;if(f!==void 0&&(d=""+f),u.key!==void 0&&(d=""+u.key),"key"in u){f={};for(var m in u)m!=="key"&&(f[m]=u[m])}else f=u;return u=f.ref,{$$typeof:n,type:a,key:d,ref:u!==void 0?u:null,props:f}}return Ta.Fragment=i,Ta.jsx=r,Ta.jsxs=r,Ta}var Fy;function Wx(){return Fy||(Fy=1,vd.exports=Jx()),vd.exports}var k=Wx(),Ka=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(){}},nr,vs,ol,gb,$x=(gb=class extends Ka{constructor(){super();Te(this,nr);Te(this,vs);Te(this,ol);he(this,ol,i=>{if(typeof window<"u"&&window.addEventListener){const r=()=>i();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){D(this,vs)||this.setEventListener(D(this,ol))}onUnsubscribe(){var i;this.hasListeners()||((i=D(this,vs))==null||i.call(this),he(this,vs,void 0))}setEventListener(i){var r;he(this,ol,i),(r=D(this,vs))==null||r.call(this),he(this,vs,i(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()}))}setFocused(i){D(this,nr)!==i&&(he(this,nr,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(r=>{r(i)})}isFocused(){var i;return typeof D(this,nr)=="boolean"?D(this,nr):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},nr=new WeakMap,vs=new WeakMap,ol=new WeakMap,gb),bh=new $x,e1={setTimeout:(n,i)=>setTimeout(n,i),clearTimeout:n=>clearTimeout(n),setInterval:(n,i)=>setInterval(n,i),clearInterval:n=>clearInterval(n)},bs,vh,yb,t1=(yb=class{constructor(){Te(this,bs,e1);Te(this,vh,!1)}setTimeoutProvider(n){he(this,bs,n)}setTimeout(n,i){return D(this,bs).setTimeout(n,i)}clearTimeout(n){D(this,bs).clearTimeout(n)}setInterval(n,i){return D(this,bs).setInterval(n,i)}clearInterval(n){D(this,bs).clearInterval(n)}},bs=new WeakMap,vh=new WeakMap,yb),tr=new t1;function n1(n){setTimeout(n,0)}var i1=typeof window>"u"||"Deno"in globalThis;function vn(){}function s1(n,i){return typeof n=="function"?n(i):n}function Gd(n){return typeof n=="number"&&n>=0&&n!==1/0}function Cb(n,i){return Math.max(n+(i||0)-Date.now(),0)}function Cs(n,i){return typeof n=="function"?n(i):n}function Dn(n,i){return typeof n=="function"?n(i):n}function Zy(n,i){const{type:r="all",exact:a,fetchStatus:u,predicate:f,queryKey:d,stale:m}=n;if(d){if(a){if(i.queryHash!==Sh(d,i.options))return!1}else if(!El(i.queryKey,d))return!1}if(r!=="all"){const g=i.isActive();if(r==="active"&&!g||r==="inactive"&&g)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||u&&u!==i.state.fetchStatus||f&&!f(i))}function Py(n,i){const{exact:r,status:a,predicate:u,mutationKey:f}=n;if(f){if(!i.options.mutationKey)return!1;if(r){if(za(i.options.mutationKey)!==za(f))return!1}else if(!El(i.options.mutationKey,f))return!1}return!(a&&i.state.status!==a||u&&!u(i))}function Sh(n,i){return((i==null?void 0:i.queryKeyHashFn)||za)(n)}function za(n){return JSON.stringify(n,(i,r)=>Xd(r)?Object.keys(r).sort().reduce((a,u)=>(a[u]=r[u],a),{}):r)}function El(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(n&&i&&typeof n=="object"&&typeof i=="object"){if(Array.isArray(n)&&Array.isArray(i)){for(let a=0;a<i.length;a++)if(!El(n[a],i[a]))return!1;return!0}const r=Object.keys(i);for(const a of r)if(!El(n[a],i[a]))return!1;return!0}return!1}var r1=Object.prototype.hasOwnProperty;function Ab(n,i,r=0){if(n===i)return n;if(r>500)return i;const a=Iy(n)&&Iy(i);if(!a&&!(Xd(n)&&Xd(i)))return i;const f=(a?n:Object.keys(n)).length,d=a?i:Object.keys(i),m=d.length,g=a?new Array(m):{};let p=0;for(let v=0;v<m;v++){const b=a?v:d[v],S=n[b],E=i[b];if(S===E){g[b]=S,(a?v<f:r1.call(n,b))&&p++;continue}if(S===null||E===null||typeof S!="object"||typeof E!="object"){g[b]=E;continue}const x=Ab(S,E,r+1);g[b]=x,x===S&&p++}return f===m&&p===f?n:g}function Qd(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const r in n)if(n[r]!==i[r])return!1;return!0}function Iy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Xd(n){if(!Jy(n))return!1;const i=n.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!Jy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Jy(n){return Object.prototype.toString.call(n)==="[object Object]"}function l1(n){return new Promise(i=>{tr.setTimeout(i,n)})}function Kd(n,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(n,i):r.structuralSharing!==!1?Ab(n,i):i}function a1(n,i,r=0){const a=[...n,i];return r&&a.length>r?a.slice(1):a}function o1(n,i,r=0){const a=[i,...n];return r&&a.length>r?a.slice(0,-1):a}var Eh=Symbol();function _b(n,i){return!n.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!n.queryFn||n.queryFn===Eh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Mb(n,i){return typeof n=="function"?n(...i):!!n}function u1(n,i,r){let a=!1,u;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(u??(u=i()),a||(a=!0,u.aborted?r():u.addEventListener("abort",r,{once:!0})),u)}),n}var Ua=(()=>{let n=()=>i1;return{isServer(){return n()},setIsServer(i){n=i}}})();function Fd(){let n,i;const r=new Promise((u,f)=>{n=u,i=f});r.status="pending",r.catch(()=>{});function a(u){Object.assign(r,u),delete r.resolve,delete r.reject}return r.resolve=u=>{a({status:"fulfilled",value:u}),n(u)},r.reject=u=>{a({status:"rejected",reason:u}),i(u)},r}var c1=n1;function f1(){let n=[],i=0,r=m=>{m()},a=m=>{m()},u=c1;const f=m=>{i?n.push(m):u(()=>{r(m)})},d=()=>{const m=n;n=[],m.length&&u(()=>{a(()=>{m.forEach(g=>{r(g)})})})};return{batch:m=>{let g;i++;try{g=m()}finally{i--,i||d()}return g},batchCalls:m=>(...g)=>{f(()=>{m(...g)})},schedule:f,setNotifyFunction:m=>{r=m},setBatchNotifyFunction:m=>{a=m},setScheduler:m=>{u=m}}}var It=f1(),ul,Ss,cl,vb,d1=(vb=class extends Ka{constructor(){super();Te(this,ul,!0);Te(this,Ss);Te(this,cl);he(this,cl,i=>{if(typeof window<"u"&&window.addEventListener){const r=()=>i(!0),a=()=>i(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",a,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",a)}}})}onSubscribe(){D(this,Ss)||this.setEventListener(D(this,cl))}onUnsubscribe(){var i;this.hasListeners()||((i=D(this,Ss))==null||i.call(this),he(this,Ss,void 0))}setEventListener(i){var r;he(this,cl,i),(r=D(this,Ss))==null||r.call(this),he(this,Ss,i(this.setOnline.bind(this)))}setOnline(i){D(this,ul)!==i&&(he(this,ul,i),this.listeners.forEach(a=>{a(i)}))}isOnline(){return D(this,ul)}},ul=new WeakMap,Ss=new WeakMap,cl=new WeakMap,vb),Hu=new d1;function h1(n){return Math.min(1e3*2**n,3e4)}function Nb(n){return(n??"online")==="online"?Hu.isOnline():!0}var Zd=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function Db(n){let i=!1,r=0,a;const u=Fd(),f=()=>u.status!=="pending",d=O=>{var C;if(!f()){const M=new Zd(O);S(M),(C=n.onCancel)==null||C.call(n,M)}},m=()=>{i=!0},g=()=>{i=!1},p=()=>bh.isFocused()&&(n.networkMode==="always"||Hu.isOnline())&&n.canRun(),v=()=>Nb(n.networkMode)&&n.canRun(),b=O=>{f()||(a==null||a(),u.resolve(O))},S=O=>{f()||(a==null||a(),u.reject(O))},E=()=>new Promise(O=>{var C;a=M=>{(f()||p())&&O(M)},(C=n.onPause)==null||C.call(n)}).then(()=>{var O;a=void 0,f()||(O=n.onContinue)==null||O.call(n)}),x=()=>{if(f())return;let O;const C=r===0?n.initialPromise:void 0;try{O=C??n.fn()}catch(M){O=Promise.reject(M)}Promise.resolve(O).then(b).catch(M=>{var X;if(f())return;const _=n.retry??(Ua.isServer()?0:3),j=n.retryDelay??h1,A=typeof j=="function"?j(r,M):j,Z=_===!0||typeof _=="number"&&r<_||typeof _=="function"&&_(r,M);if(i||!Z){S(M);return}r++,(X=n.onFail)==null||X.call(n,r,M),l1(A).then(()=>p()?void 0:E()).then(()=>{i?S(M):x()})})};return{promise:u,status:()=>u.status,cancel:d,continue:()=>(a==null||a(),u),cancelRetry:m,continueRetry:g,canStart:v,start:()=>(v()?x():E().then(x),u)}}var ir,bb,zb=(bb=class{constructor(){Te(this,ir)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Gd(this.gcTime)&&he(this,ir,tr.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ua.isServer()?1/0:5*60*1e3))}clearGcTimeout(){D(this,ir)!==void 0&&(tr.clearTimeout(D(this,ir)),he(this,ir,void 0))}},ir=new WeakMap,bb);function m1(n){return{onFetch:(i,r)=>{var v,b,S,E,x;const a=i.options,u=(S=(b=(v=i.fetchOptions)==null?void 0:v.meta)==null?void 0:b.fetchMore)==null?void 0:S.direction,f=((E=i.state.data)==null?void 0:E.pages)||[],d=((x=i.state.data)==null?void 0:x.pageParams)||[];let m={pages:[],pageParams:[]},g=0;const p=async()=>{let O=!1;const C=j=>{u1(j,()=>i.signal,()=>O=!0)},M=_b(i.options,i.fetchOptions),_=async(j,A,Z)=>{if(O)return Promise.reject(i.signal.reason);if(A==null&&j.pages.length)return Promise.resolve(j);const q=(()=>{const fe={client:i.client,queryKey:i.queryKey,pageParam:A,direction:Z?"backward":"forward",meta:i.options.meta};return C(fe),fe})(),U=await M(q),{maxPages:K}=i.options,re=Z?o1:a1;return{pages:re(j.pages,U,K),pageParams:re(j.pageParams,A,K)}};if(u&&f.length){const j=u==="backward",A=j?p1:Wy,Z={pages:f,pageParams:d},X=A(a,Z);m=await _(Z,X,j)}else{const j=n??f.length;do{const A=g===0?d[0]??a.initialPageParam:Wy(a,m);if(g>0&&A==null)break;m=await _(m,A),g++}while(g<j)}return m};i.options.persister?i.fetchFn=()=>{var O,C;return(C=(O=i.options).persister)==null?void 0:C.call(O,p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r)}:i.fetchFn=p}}}function Wy(n,{pages:i,pageParams:r}){const a=i.length-1;return i.length>0?n.getNextPageParam(i[a],i,r[a],r):void 0}function p1(n,{pages:i,pageParams:r}){var a;return i.length>0?(a=n.getPreviousPageParam)==null?void 0:a.call(n,i[0],i,r[0],r):void 0}var fl,sr,dl,Xn,rr,Gt,Ya,lr,Nn,Ub,ki,Sb,g1=(Sb=class extends zb{constructor(i){super();Te(this,Nn);Te(this,fl);Te(this,sr);Te(this,dl);Te(this,Xn);Te(this,rr);Te(this,Gt);Te(this,Ya);Te(this,lr);he(this,lr,!1),he(this,Ya,i.defaultOptions),this.setOptions(i.options),this.observers=[],he(this,rr,i.client),he(this,Xn,D(this,rr).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,he(this,sr,ev(this.options)),this.state=i.state??D(this,sr),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return D(this,fl)}get promise(){var i;return(i=D(this,Gt))==null?void 0:i.promise}setOptions(i){if(this.options={...D(this,Ya),...i},i!=null&&i._type&&he(this,fl,i._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=ev(this.options);r.data!==void 0&&(this.setState($y(r.data,r.dataUpdatedAt)),he(this,sr,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&D(this,Xn).remove(this)}setData(i,r){const a=Kd(this.state.data,i,this.options);return Ye(this,Nn,ki).call(this,{data:a,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),a}setState(i){Ye(this,Nn,ki).call(this,{type:"setState",state:i})}cancel(i){var a,u;const r=(a=D(this,Gt))==null?void 0:a.promise;return(u=D(this,Gt))==null||u.cancel(i),r?r.then(vn).catch(vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return D(this,sr)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(i=>Dn(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Eh||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>Cs(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!Cb(this.state.dataUpdatedAt,i)}onFocus(){var r;const i=this.observers.find(a=>a.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(r=D(this,Gt))==null||r.continue()}onOnline(){var r;const i=this.observers.find(a=>a.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(r=D(this,Gt))==null||r.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),D(this,Xn).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(r=>r!==i),this.observers.length||(D(this,Gt)&&(D(this,lr)||Ye(this,Nn,Ub).call(this)?D(this,Gt).cancel({revert:!0}):D(this,Gt).cancelRetry()),this.scheduleGc()),D(this,Xn).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ye(this,Nn,ki).call(this,{type:"invalidate"})}async fetch(i,r){var p,v,b,S,E,x,O,C,M,_,j;if(this.state.fetchStatus!=="idle"&&((p=D(this,Gt))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(D(this,Gt))return D(this,Gt).continueRetry(),D(this,Gt).promise}if(i&&this.setOptions(i),!this.options.queryFn){const A=this.observers.find(Z=>Z.options.queryFn);A&&this.setOptions(A.options)}const a=new AbortController,u=A=>{Object.defineProperty(A,"signal",{enumerable:!0,get:()=>(he(this,lr,!0),a.signal)})},f=()=>{const A=_b(this.options,r),X=(()=>{const q={client:D(this,rr),queryKey:this.queryKey,meta:this.meta};return u(q),q})();return he(this,lr,!1),this.options.persister?this.options.persister(A,X,this):A(X)},m=(()=>{const A={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:D(this,rr),state:this.state,fetchFn:f};return u(A),A})(),g=D(this,fl)==="infinite"?m1(this.options.pages):this.options.behavior;g==null||g.onFetch(m,this),he(this,dl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((v=m.fetchOptions)==null?void 0:v.meta))&&Ye(this,Nn,ki).call(this,{type:"fetch",meta:(b=m.fetchOptions)==null?void 0:b.meta}),he(this,Gt,Db({initialPromise:r==null?void 0:r.initialPromise,fn:m.fetchFn,onCancel:A=>{A instanceof Zd&&A.revert&&this.setState({...D(this,dl),fetchStatus:"idle"}),a.abort()},onFail:(A,Z)=>{Ye(this,Nn,ki).call(this,{type:"failed",failureCount:A,error:Z})},onPause:()=>{Ye(this,Nn,ki).call(this,{type:"pause"})},onContinue:()=>{Ye(this,Nn,ki).call(this,{type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}));try{const A=await D(this,Gt).start();if(A===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),(E=(S=D(this,Xn).config).onSuccess)==null||E.call(S,A,this),(O=(x=D(this,Xn).config).onSettled)==null||O.call(x,A,this.state.error,this),A}catch(A){if(A instanceof Zd){if(A.silent)return D(this,Gt).promise;if(A.revert){if(this.state.data===void 0)throw A;return this.state.data}}throw Ye(this,Nn,ki).call(this,{type:"error",error:A}),(M=(C=D(this,Xn).config).onError)==null||M.call(C,A,this),(j=(_=D(this,Xn).config).onSettled)==null||j.call(_,this.state.data,A,this),A}finally{this.scheduleGc()}}},fl=new WeakMap,sr=new WeakMap,dl=new WeakMap,Xn=new WeakMap,rr=new WeakMap,Gt=new WeakMap,Ya=new WeakMap,lr=new WeakMap,Nn=new WeakSet,Ub=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ki=function(i){const r=a=>{switch(i.type){case"failed":return{...a,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...a,fetchStatus:"paused"};case"continue":return{...a,fetchStatus:"fetching"};case"fetch":return{...a,...kb(a.data,this.options),fetchMeta:i.meta??null};case"success":const u={...a,...$y(i.data,i.dataUpdatedAt),dataUpdateCount:a.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return he(this,dl,i.manual?u:void 0),u;case"error":const f=i.error;return{...a,error:f,errorUpdateCount:a.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:a.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...a,isInvalidated:!0};case"setState":return{...a,...i.state}}};this.state=r(this.state),It.batch(()=>{this.observers.forEach(a=>{a.onQueryUpdate()}),D(this,Xn).notify({query:this,type:"updated",action:i})})},Sb);function kb(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Nb(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function $y(n,i){return{data:n,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ev(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,r=i!==void 0,a=r?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var yn,Qe,Va,an,ar,hl,Bi,Es,Ga,ml,pl,or,ur,xs,gl,tt,_a,Pd,Id,Jd,Wd,$d,eh,th,jb,Eb,y1=(Eb=class extends Ka{constructor(i,r){super();Te(this,tt);Te(this,yn);Te(this,Qe);Te(this,Va);Te(this,an);Te(this,ar);Te(this,hl);Te(this,Bi);Te(this,Es);Te(this,Ga);Te(this,ml);Te(this,pl);Te(this,or);Te(this,ur);Te(this,xs);Te(this,gl,new Set);this.options=r,he(this,yn,i),he(this,Es,null),he(this,Bi,Fd()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(D(this,Qe).addObserver(this),tv(D(this,Qe),this.options)?Ye(this,tt,_a).call(this):this.updateResult(),Ye(this,tt,Wd).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return nh(D(this,Qe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return nh(D(this,Qe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ye(this,tt,$d).call(this),Ye(this,tt,eh).call(this),D(this,Qe).removeObserver(this)}setOptions(i){const r=this.options,a=D(this,Qe);if(this.options=D(this,yn).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Dn(this.options.enabled,D(this,Qe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ye(this,tt,th).call(this),D(this,Qe).setOptions(this.options),r._defaulted&&!Qd(this.options,r)&&D(this,yn).getQueryCache().notify({type:"observerOptionsUpdated",query:D(this,Qe),observer:this});const u=this.hasListeners();u&&nv(D(this,Qe),a,this.options,r)&&Ye(this,tt,_a).call(this),this.updateResult(),u&&(D(this,Qe)!==a||Dn(this.options.enabled,D(this,Qe))!==Dn(r.enabled,D(this,Qe))||Cs(this.options.staleTime,D(this,Qe))!==Cs(r.staleTime,D(this,Qe)))&&Ye(this,tt,Pd).call(this);const f=Ye(this,tt,Id).call(this);u&&(D(this,Qe)!==a||Dn(this.options.enabled,D(this,Qe))!==Dn(r.enabled,D(this,Qe))||f!==D(this,xs))&&Ye(this,tt,Jd).call(this,f)}getOptimisticResult(i){const r=D(this,yn).getQueryCache().build(D(this,yn),i),a=this.createResult(r,i);return b1(this,a)&&(he(this,an,a),he(this,hl,this.options),he(this,ar,D(this,Qe).state)),a}getCurrentResult(){return D(this,an)}trackResult(i,r){return new Proxy(i,{get:(a,u)=>(this.trackProp(u),r==null||r(u),u==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&D(this,Bi).status==="pending"&&D(this,Bi).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(a,u))})}trackProp(i){D(this,gl).add(i)}getCurrentQuery(){return D(this,Qe)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const r=D(this,yn).defaultQueryOptions(i),a=D(this,yn).getQueryCache().build(D(this,yn),r);return a.fetch().then(()=>this.createResult(a,r))}fetch(i){return Ye(this,tt,_a).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),D(this,an)))}createResult(i,r){var K;const a=D(this,Qe),u=this.options,f=D(this,an),d=D(this,ar),m=D(this,hl),p=i!==a?i.state:D(this,Va),{state:v}=i;let b={...v},S=!1,E;if(r._optimisticResults){const re=this.hasListeners(),fe=!re&&tv(i,r),se=re&&nv(i,a,r,u);(fe||se)&&(b={...b,...kb(v.data,i.options)}),r._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:x,errorUpdatedAt:O,status:C}=b;E=b.data;let M=!1;if(r.placeholderData!==void 0&&E===void 0&&C==="pending"){let re;f!=null&&f.isPlaceholderData&&r.placeholderData===(m==null?void 0:m.placeholderData)?(re=f.data,M=!0):re=typeof r.placeholderData=="function"?r.placeholderData((K=D(this,pl))==null?void 0:K.state.data,D(this,pl)):r.placeholderData,re!==void 0&&(C="success",E=Kd(f==null?void 0:f.data,re,r),S=!0)}if(r.select&&E!==void 0&&!M)if(f&&E===(d==null?void 0:d.data)&&r.select===D(this,Ga))E=D(this,ml);else try{he(this,Ga,r.select),E=r.select(E),E=Kd(f==null?void 0:f.data,E,r),he(this,ml,E),he(this,Es,null)}catch(re){he(this,Es,re)}D(this,Es)&&(x=D(this,Es),E=D(this,ml),O=Date.now(),C="error");const _=b.fetchStatus==="fetching",j=C==="pending",A=C==="error",Z=j&&_,X=E!==void 0,U={status:C,fetchStatus:b.fetchStatus,isPending:j,isSuccess:C==="success",isError:A,isInitialLoading:Z,isLoading:Z,data:E,dataUpdatedAt:b.dataUpdatedAt,error:x,errorUpdatedAt:O,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:i.isFetched(),isFetchedAfterMount:b.dataUpdateCount>p.dataUpdateCount||b.errorUpdateCount>p.errorUpdateCount,isFetching:_,isRefetching:_&&!j,isLoadingError:A&&!X,isPaused:b.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:A&&X,isStale:xh(i,r),refetch:this.refetch,promise:D(this,Bi),isEnabled:Dn(r.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const re=U.data!==void 0,fe=U.status==="error"&&!re,se=ne=>{fe?ne.reject(U.error):re&&ne.resolve(U.data)},J=()=>{const ne=he(this,Bi,U.promise=Fd());se(ne)},oe=D(this,Bi);switch(oe.status){case"pending":i.queryHash===a.queryHash&&se(oe);break;case"fulfilled":(fe||U.data!==oe.value)&&J();break;case"rejected":(!fe||U.error!==oe.reason)&&J();break}}return U}updateResult(){const i=D(this,an),r=this.createResult(D(this,Qe),this.options);if(he(this,ar,D(this,Qe).state),he(this,hl,this.options),D(this,ar).data!==void 0&&he(this,pl,D(this,Qe)),Qd(r,i))return;he(this,an,r);const a=()=>{if(!i)return!0;const{notifyOnChangeProps:u}=this.options,f=typeof u=="function"?u():u;if(f==="all"||!f&&!D(this,gl).size)return!0;const d=new Set(f??D(this,gl));return this.options.throwOnError&&d.add("error"),Object.keys(D(this,an)).some(m=>{const g=m;return D(this,an)[g]!==i[g]&&d.has(g)})};Ye(this,tt,jb).call(this,{listeners:a()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ye(this,tt,Wd).call(this)}},yn=new WeakMap,Qe=new WeakMap,Va=new WeakMap,an=new WeakMap,ar=new WeakMap,hl=new WeakMap,Bi=new WeakMap,Es=new WeakMap,Ga=new WeakMap,ml=new WeakMap,pl=new WeakMap,or=new WeakMap,ur=new WeakMap,xs=new WeakMap,gl=new WeakMap,tt=new WeakSet,_a=function(i){Ye(this,tt,th).call(this);let r=D(this,Qe).fetch(this.options,i);return i!=null&&i.throwOnError||(r=r.catch(vn)),r},Pd=function(){Ye(this,tt,$d).call(this);const i=Cs(this.options.staleTime,D(this,Qe));if(Ua.isServer()||D(this,an).isStale||!Gd(i))return;const a=Cb(D(this,an).dataUpdatedAt,i)+1;he(this,or,tr.setTimeout(()=>{D(this,an).isStale||this.updateResult()},a))},Id=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(D(this,Qe)):this.options.refetchInterval)??!1},Jd=function(i){Ye(this,tt,eh).call(this),he(this,xs,i),!(Ua.isServer()||Dn(this.options.enabled,D(this,Qe))===!1||!Gd(D(this,xs))||D(this,xs)===0)&&he(this,ur,tr.setInterval(()=>{(this.options.refetchIntervalInBackground||bh.isFocused())&&Ye(this,tt,_a).call(this)},D(this,xs)))},Wd=function(){Ye(this,tt,Pd).call(this),Ye(this,tt,Jd).call(this,Ye(this,tt,Id).call(this))},$d=function(){D(this,or)!==void 0&&(tr.clearTimeout(D(this,or)),he(this,or,void 0))},eh=function(){D(this,ur)!==void 0&&(tr.clearInterval(D(this,ur)),he(this,ur,void 0))},th=function(){const i=D(this,yn).getQueryCache().build(D(this,yn),this.options);if(i===D(this,Qe))return;const r=D(this,Qe);he(this,Qe,i),he(this,Va,i.state),this.hasListeners()&&(r==null||r.removeObserver(this),i.addObserver(this))},jb=function(i){It.batch(()=>{i.listeners&&this.listeners.forEach(r=>{r(D(this,an))}),D(this,yn).getQueryCache().notify({query:D(this,Qe),type:"observerResultsUpdated"})})},Eb);function v1(n,i){return Dn(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&Dn(i.retryOnMount,n)===!1)}function tv(n,i){return v1(n,i)||n.state.data!==void 0&&nh(n,i,i.refetchOnMount)}function nh(n,i,r){if(Dn(i.enabled,n)!==!1&&Cs(i.staleTime,n)!=="static"){const a=typeof r=="function"?r(n):r;return a==="always"||a!==!1&&xh(n,i)}return!1}function nv(n,i,r,a){return(n!==i||Dn(a.enabled,n)===!1)&&(!r.suspense||n.state.status!=="error")&&xh(n,r)}function xh(n,i){return Dn(i.enabled,n)!==!1&&n.isStaleByTime(Cs(i.staleTime,n))}function b1(n,i){return!Qd(n.getCurrentResult(),i)}var Qa,ui,tn,cr,ci,ys,xb,S1=(xb=class extends zb{constructor(i){super();Te(this,ci);Te(this,Qa);Te(this,ui);Te(this,tn);Te(this,cr);he(this,Qa,i.client),this.mutationId=i.mutationId,he(this,tn,i.mutationCache),he(this,ui,[]),this.state=i.state||E1(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){D(this,ui).includes(i)||(D(this,ui).push(i),this.clearGcTimeout(),D(this,tn).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){he(this,ui,D(this,ui).filter(r=>r!==i)),this.scheduleGc(),D(this,tn).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){D(this,ui).length||(this.state.status==="pending"?this.scheduleGc():D(this,tn).remove(this))}continue(){var i;return((i=D(this,cr))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var d,m,g,p,v,b,S,E,x,O,C,M,_,j,A,Z,X,q;const r=()=>{Ye(this,ci,ys).call(this,{type:"continue"})},a={client:D(this,Qa),meta:this.options.meta,mutationKey:this.options.mutationKey};he(this,cr,Db({fn:()=>this.options.mutationFn?this.options.mutationFn(i,a):Promise.reject(new Error("No mutationFn found")),onFail:(U,K)=>{Ye(this,ci,ys).call(this,{type:"failed",failureCount:U,error:K})},onPause:()=>{Ye(this,ci,ys).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>D(this,tn).canRun(this)}));const u=this.state.status==="pending",f=!D(this,cr).canStart();try{if(u)r();else{Ye(this,ci,ys).call(this,{type:"pending",variables:i,isPaused:f}),D(this,tn).config.onMutate&&await D(this,tn).config.onMutate(i,this,a);const K=await((m=(d=this.options).onMutate)==null?void 0:m.call(d,i,a));K!==this.state.context&&Ye(this,ci,ys).call(this,{type:"pending",context:K,variables:i,isPaused:f})}const U=await D(this,cr).start();return await((p=(g=D(this,tn).config).onSuccess)==null?void 0:p.call(g,U,i,this.state.context,this,a)),await((b=(v=this.options).onSuccess)==null?void 0:b.call(v,U,i,this.state.context,a)),await((E=(S=D(this,tn).config).onSettled)==null?void 0:E.call(S,U,null,this.state.variables,this.state.context,this,a)),await((O=(x=this.options).onSettled)==null?void 0:O.call(x,U,null,i,this.state.context,a)),Ye(this,ci,ys).call(this,{type:"success",data:U}),U}catch(U){try{await((M=(C=D(this,tn).config).onError)==null?void 0:M.call(C,U,i,this.state.context,this,a))}catch(K){Promise.reject(K)}try{await((j=(_=this.options).onError)==null?void 0:j.call(_,U,i,this.state.context,a))}catch(K){Promise.reject(K)}try{await((Z=(A=D(this,tn).config).onSettled)==null?void 0:Z.call(A,void 0,U,this.state.variables,this.state.context,this,a))}catch(K){Promise.reject(K)}try{await((q=(X=this.options).onSettled)==null?void 0:q.call(X,void 0,U,i,this.state.context,a))}catch(K){Promise.reject(K)}throw Ye(this,ci,ys).call(this,{type:"error",error:U}),U}finally{D(this,tn).runNext(this)}}},Qa=new WeakMap,ui=new WeakMap,tn=new WeakMap,cr=new WeakMap,ci=new WeakSet,ys=function(i){const r=a=>{switch(i.type){case"failed":return{...a,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...a,isPaused:!0};case"continue":return{...a,isPaused:!1};case"pending":return{...a,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...a,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...a,data:void 0,error:i.error,failureCount:a.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=r(this.state),It.batch(()=>{D(this,ui).forEach(a=>{a.onMutationUpdate(i)}),D(this,tn).notify({mutation:this,type:"updated",action:i})})},xb);function E1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Hi,Jn,Xa,Tb,x1=(Tb=class extends Ka{constructor(i={}){super();Te(this,Hi);Te(this,Jn);Te(this,Xa);this.config=i,he(this,Hi,new Set),he(this,Jn,new Map),he(this,Xa,0)}build(i,r,a){const u=new S1({client:i,mutationCache:this,mutationId:++yu(this,Xa)._,options:i.defaultMutationOptions(r),state:a});return this.add(u),u}add(i){D(this,Hi).add(i);const r=vu(i);if(typeof r=="string"){const a=D(this,Jn).get(r);a?a.push(i):D(this,Jn).set(r,[i])}this.notify({type:"added",mutation:i})}remove(i){if(D(this,Hi).delete(i)){const r=vu(i);if(typeof r=="string"){const a=D(this,Jn).get(r);if(a)if(a.length>1){const u=a.indexOf(i);u!==-1&&a.splice(u,1)}else a[0]===i&&D(this,Jn).delete(r)}}this.notify({type:"removed",mutation:i})}canRun(i){const r=vu(i);if(typeof r=="string"){const a=D(this,Jn).get(r),u=a==null?void 0:a.find(f=>f.state.status==="pending");return!u||u===i}else return!0}runNext(i){var a;const r=vu(i);if(typeof r=="string"){const u=(a=D(this,Jn).get(r))==null?void 0:a.find(f=>f!==i&&f.state.isPaused);return(u==null?void 0:u.continue())??Promise.resolve()}else return Promise.resolve()}clear(){It.batch(()=>{D(this,Hi).forEach(i=>{this.notify({type:"removed",mutation:i})}),D(this,Hi).clear(),D(this,Jn).clear()})}getAll(){return Array.from(D(this,Hi))}find(i){const r={exact:!0,...i};return this.getAll().find(a=>Py(r,a))}findAll(i={}){return this.getAll().filter(r=>Py(i,r))}notify(i){It.batch(()=>{this.listeners.forEach(r=>{r(i)})})}resumePausedMutations(){const i=this.getAll().filter(r=>r.state.isPaused);return It.batch(()=>Promise.all(i.map(r=>r.continue().catch(vn))))}},Hi=new WeakMap,Jn=new WeakMap,Xa=new WeakMap,Tb);function vu(n){var i;return(i=n.options.scope)==null?void 0:i.id}var fi,Rb,T1=(Rb=class extends Ka{constructor(i={}){super();Te(this,fi);this.config=i,he(this,fi,new Map)}build(i,r,a){const u=r.queryKey,f=r.queryHash??Sh(u,r);let d=this.get(f);return d||(d=new g1({client:i,queryKey:u,queryHash:f,options:i.defaultQueryOptions(r),state:a,defaultOptions:i.getQueryDefaults(u)}),this.add(d)),d}add(i){D(this,fi).has(i.queryHash)||(D(this,fi).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const r=D(this,fi).get(i.queryHash);r&&(i.destroy(),r===i&&D(this,fi).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){It.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return D(this,fi).get(i)}getAll(){return[...D(this,fi).values()]}find(i){const r={exact:!0,...i};return this.getAll().find(a=>Zy(r,a))}findAll(i={}){const r=this.getAll();return Object.keys(i).length>0?r.filter(a=>Zy(i,a)):r}notify(i){It.batch(()=>{this.listeners.forEach(r=>{r(i)})})}onFocus(){It.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){It.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},fi=new WeakMap,Rb),Tt,Ts,Rs,yl,vl,Os,bl,Sl,Ob,R1=(Ob=class{constructor(n={}){Te(this,Tt);Te(this,Ts);Te(this,Rs);Te(this,yl);Te(this,vl);Te(this,Os);Te(this,bl);Te(this,Sl);he(this,Tt,n.queryCache||new T1),he(this,Ts,n.mutationCache||new x1),he(this,Rs,n.defaultOptions||{}),he(this,yl,new Map),he(this,vl,new Map),he(this,Os,0)}mount(){yu(this,Os)._++,D(this,Os)===1&&(he(this,bl,bh.subscribe(async n=>{n&&(await this.resumePausedMutations(),D(this,Tt).onFocus())})),he(this,Sl,Hu.subscribe(async n=>{n&&(await this.resumePausedMutations(),D(this,Tt).onOnline())})))}unmount(){var n,i;yu(this,Os)._--,D(this,Os)===0&&((n=D(this,bl))==null||n.call(this),he(this,bl,void 0),(i=D(this,Sl))==null||i.call(this),he(this,Sl,void 0))}isFetching(n){return D(this,Tt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return D(this,Ts).findAll({...n,status:"pending"}).length}getQueryData(n){var r;const i=this.defaultQueryOptions({queryKey:n});return(r=D(this,Tt).get(i.queryHash))==null?void 0:r.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),r=D(this,Tt).build(this,i),a=r.state.data;return a===void 0?this.fetchQuery(n):(n.revalidateIfStale&&r.isStaleByTime(Cs(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(a))}getQueriesData(n){return D(this,Tt).findAll(n).map(({queryKey:i,state:r})=>{const a=r.data;return[i,a]})}setQueryData(n,i,r){const a=this.defaultQueryOptions({queryKey:n}),u=D(this,Tt).get(a.queryHash),f=u==null?void 0:u.state.data,d=s1(i,f);if(d!==void 0)return D(this,Tt).build(this,a).setData(d,{...r,manual:!0})}setQueriesData(n,i,r){return It.batch(()=>D(this,Tt).findAll(n).map(({queryKey:a})=>[a,this.setQueryData(a,i,r)]))}getQueryState(n){var r;const i=this.defaultQueryOptions({queryKey:n});return(r=D(this,Tt).get(i.queryHash))==null?void 0:r.state}removeQueries(n){const i=D(this,Tt);It.batch(()=>{i.findAll(n).forEach(r=>{i.remove(r)})})}resetQueries(n,i){const r=D(this,Tt);return It.batch(()=>(r.findAll(n).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const r={revert:!0,...i},a=It.batch(()=>D(this,Tt).findAll(n).map(u=>u.cancel(r)));return Promise.all(a).then(vn).catch(vn)}invalidateQueries(n,i={}){return It.batch(()=>(D(this,Tt).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"},i)))}refetchQueries(n,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},a=It.batch(()=>D(this,Tt).findAll(n).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let f=u.fetch(void 0,r);return r.throwOnError||(f=f.catch(vn)),u.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(a).then(vn)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const r=D(this,Tt).build(this,i);return r.isStaleByTime(Cs(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(vn).catch(vn)}fetchInfiniteQuery(n){return n._type="infinite",this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(vn).catch(vn)}ensureInfiniteQueryData(n){return n._type="infinite",this.ensureQueryData(n)}resumePausedMutations(){return Hu.isOnline()?D(this,Ts).resumePausedMutations():Promise.resolve()}getQueryCache(){return D(this,Tt)}getMutationCache(){return D(this,Ts)}getDefaultOptions(){return D(this,Rs)}setDefaultOptions(n){he(this,Rs,n)}setQueryDefaults(n,i){D(this,yl).set(za(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...D(this,yl).values()],r={};return i.forEach(a=>{El(n,a.queryKey)&&Object.assign(r,a.defaultOptions)}),r}setMutationDefaults(n,i){D(this,vl).set(za(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...D(this,vl).values()],r={};return i.forEach(a=>{El(n,a.mutationKey)&&Object.assign(r,a.defaultOptions)}),r}defaultQueryOptions(n){if(n._defaulted)return n;const i={...D(this,Rs).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Sh(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Eh&&(i.enabled=!1),i}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...D(this,Rs).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){D(this,Tt).clear(),D(this,Ts).clear()}},Tt=new WeakMap,Ts=new WeakMap,Rs=new WeakMap,yl=new WeakMap,vl=new WeakMap,Os=new WeakMap,bl=new WeakMap,Sl=new WeakMap,Ob),bd={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 iv;function O1(){if(iv)return Ce;iv=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function E(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,C={};function M(T,B,te){this.props=T,this.context=B,this.refs=C,this.updater=te||x}M.prototype.isReactComponent={},M.prototype.setState=function(T,B){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,B,"setState")},M.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function _(){}_.prototype=M.prototype;function j(T,B,te){this.props=T,this.context=B,this.refs=C,this.updater=te||x}var A=j.prototype=new _;A.constructor=j,O(A,M.prototype),A.isPureReactComponent=!0;var Z=Array.isArray;function X(){}var q={H:null,A:null,T:null,S:null},U=Object.prototype.hasOwnProperty;function K(T,B,te){var ie=te.ref;return{$$typeof:n,type:T,key:B,ref:ie!==void 0?ie:null,props:te}}function re(T,B){return K(T.type,B,T.props)}function fe(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function se(T){var B={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(te){return B[te]})}var J=/\/+/g;function oe(T,B){return typeof T=="object"&&T!==null&&T.key!=null?se(""+T.key):B.toString(36)}function ne(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(X,X):(T.status="pending",T.then(function(B){T.status==="pending"&&(T.status="fulfilled",T.value=B)},function(B){T.status==="pending"&&(T.status="rejected",T.reason=B)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function z(T,B,te,ie,le){var ee=typeof T;(ee==="undefined"||ee==="boolean")&&(T=null);var ge=!1;if(T===null)ge=!0;else switch(ee){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(T.$$typeof){case n:case i:ge=!0;break;case v:return ge=T._init,z(ge(T._payload),B,te,ie,le)}}if(ge)return le=le(T),ge=ie===""?"."+oe(T,0):ie,Z(le)?(te="",ge!=null&&(te=ge.replace(J,"$&/")+"/"),z(le,B,te,"",function(Ze){return Ze})):le!=null&&(fe(le)&&(le=re(le,te+(le.key==null||T&&T.key===le.key?"":(""+le.key).replace(J,"$&/")+"/")+ge)),B.push(le)),1;ge=0;var ue=ie===""?".":ie+":";if(Z(T))for(var de=0;de<T.length;de++)ie=T[de],ee=ue+oe(ie,de),ge+=z(ie,B,te,ee,le);else if(de=E(T),typeof de=="function")for(T=de.call(T),de=0;!(ie=T.next()).done;)ie=ie.value,ee=ue+oe(ie,de++),ge+=z(ie,B,te,ee,le);else if(ee==="object"){if(typeof T.then=="function")return z(ne(T),B,te,ie,le);throw B=String(T),Error("Objects are not valid as a React child (found: "+(B==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":B)+"). If you meant to render a collection of children, use an array instead.")}return ge}function G(T,B,te){if(T==null)return T;var ie=[],le=0;return z(T,ie,"","",function(ee){return B.call(te,ee,le++)}),ie}function I(T){if(T._status===-1){var B=T._result;B=B(),B.then(function(te){(T._status===0||T._status===-1)&&(T._status=1,T._result=te)},function(te){(T._status===0||T._status===-1)&&(T._status=2,T._result=te)}),T._status===-1&&(T._status=0,T._result=B)}if(T._status===1)return T._result.default;throw T._result}var ae=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var B=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(B))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},H={map:G,forEach:function(T,B,te){G(T,function(){B.apply(this,arguments)},te)},count:function(T){var B=0;return G(T,function(){B++}),B},toArray:function(T){return G(T,function(B){return B})||[]},only:function(T){if(!fe(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return Ce.Activity=b,Ce.Children=H,Ce.Component=M,Ce.Fragment=r,Ce.Profiler=u,Ce.PureComponent=j,Ce.StrictMode=a,Ce.Suspense=g,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(T){return q.H.useMemoCache(T)}},Ce.cache=function(T){return function(){return T.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(T,B,te){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var ie=O({},T.props),le=T.key;if(B!=null)for(ee in B.key!==void 0&&(le=""+B.key),B)!U.call(B,ee)||ee==="key"||ee==="__self"||ee==="__source"||ee==="ref"&&B.ref===void 0||(ie[ee]=B[ee]);var ee=arguments.length-2;if(ee===1)ie.children=te;else if(1<ee){for(var ge=Array(ee),ue=0;ue<ee;ue++)ge[ue]=arguments[ue+2];ie.children=ge}return K(T.type,le,ie)},Ce.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},Ce.createElement=function(T,B,te){var ie,le={},ee=null;if(B!=null)for(ie in B.key!==void 0&&(ee=""+B.key),B)U.call(B,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(le[ie]=B[ie]);var ge=arguments.length-2;if(ge===1)le.children=te;else if(1<ge){for(var ue=Array(ge),de=0;de<ge;de++)ue[de]=arguments[de+2];le.children=ue}if(T&&T.defaultProps)for(ie in ge=T.defaultProps,ge)le[ie]===void 0&&(le[ie]=ge[ie]);return K(T,ee,le)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(T){return{$$typeof:m,render:T}},Ce.isValidElement=fe,Ce.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:I}},Ce.memo=function(T,B){return{$$typeof:p,type:T,compare:B===void 0?null:B}},Ce.startTransition=function(T){var B=q.T,te={};q.T=te;try{var ie=T(),le=q.S;le!==null&&le(te,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(X,ae)}catch(ee){ae(ee)}finally{B!==null&&te.types!==null&&(B.types=te.types),q.T=B}},Ce.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ce.use=function(T){return q.H.use(T)},Ce.useActionState=function(T,B,te){return q.H.useActionState(T,B,te)},Ce.useCallback=function(T,B){return q.H.useCallback(T,B)},Ce.useContext=function(T){return q.H.useContext(T)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(T,B){return q.H.useDeferredValue(T,B)},Ce.useEffect=function(T,B){return q.H.useEffect(T,B)},Ce.useEffectEvent=function(T){return q.H.useEffectEvent(T)},Ce.useId=function(){return q.H.useId()},Ce.useImperativeHandle=function(T,B,te){return q.H.useImperativeHandle(T,B,te)},Ce.useInsertionEffect=function(T,B){return q.H.useInsertionEffect(T,B)},Ce.useLayoutEffect=function(T,B){return q.H.useLayoutEffect(T,B)},Ce.useMemo=function(T,B){return q.H.useMemo(T,B)},Ce.useOptimistic=function(T,B){return q.H.useOptimistic(T,B)},Ce.useReducer=function(T,B,te){return q.H.useReducer(T,B,te)},Ce.useRef=function(T){return q.H.useRef(T)},Ce.useState=function(T){return q.H.useState(T)},Ce.useSyncExternalStore=function(T,B,te){return q.H.useSyncExternalStore(T,B,te)},Ce.useTransition=function(){return q.H.useTransition()},Ce.version="19.2.7",Ce}var sv;function Fa(){return sv||(sv=1,bd.exports=O1()),bd.exports}var w=Fa();const w1=Ix(w),C1=Px({__proto__:null,default:w1},[w]);var Lb=w.createContext(void 0),A1=n=>{const i=w.useContext(Lb);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},_1=({client:n,children:i})=>(w.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),k.jsx(Lb.Provider,{value:n,children:i})),Bb=w.createContext(!1),M1=()=>w.useContext(Bb);Bb.Provider;function N1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var D1=w.createContext(N1()),z1=()=>w.useContext(D1),U1=(n,i,r)=>{const a=r!=null&&r.state.error&&typeof n.throwOnError=="function"?Mb(n.throwOnError,[r.state.error,r]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||a)&&(i.isReset()||(n.retryOnMount=!1))},k1=n=>{w.useEffect(()=>{n.clearReset()},[n])},j1=({result:n,errorResetBoundary:i,throwOnError:r,query:a,suspense:u})=>n.isError&&!i.isReset()&&!n.isFetching&&a&&(u&&n.data===void 0||Mb(r,[n.error,a])),L1=n=>{if(n.suspense){const r=u=>u==="static"?u:Math.max(u??1e3,1e3),a=n.staleTime;n.staleTime=typeof a=="function"?(...u)=>r(a(...u)):r(a),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},B1=(n,i)=>n.isLoading&&n.isFetching&&!i,H1=(n,i)=>(n==null?void 0:n.suspense)&&i.isPending,rv=(n,i,r)=>i.fetchOptimistic(n).catch(()=>{r.clearReset()});function q1(n,i,r){var E,x,O,C;const a=M1(),u=z1(),f=A1(),d=f.defaultQueryOptions(n);(x=(E=f.getDefaultOptions().queries)==null?void 0:E._experimental_beforeQuery)==null||x.call(E,d);const m=f.getQueryCache().get(d.queryHash),g=n.subscribed!==!1;d._optimisticResults=a?"isRestoring":g?"optimistic":void 0,L1(d),U1(d,u,m),k1(u);const p=!f.getQueryCache().get(d.queryHash),[v]=w.useState(()=>new i(f,d)),b=v.getOptimisticResult(d),S=!a&&g;if(w.useSyncExternalStore(w.useCallback(M=>{const _=S?v.subscribe(It.batchCalls(M)):vn;return v.updateResult(),_},[v,S]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),w.useEffect(()=>{v.setOptions(d)},[d,v]),H1(d,b))throw rv(d,v,u);if(j1({result:b,errorResetBoundary:u,throwOnError:d.throwOnError,query:m,suspense:d.suspense}))throw b.error;if((C=(O=f.getDefaultOptions().queries)==null?void 0:O._experimental_afterQuery)==null||C.call(O,d,b),d.experimental_prefetchInRender&&!Ua.isServer()&&B1(b,a)){const M=p?rv(d,v,u):m==null?void 0:m.promise;M==null||M.catch(vn).finally(()=>{v.updateResult()})}return d.notifyOnChangeProps?b:v.trackResult(b)}function Hb(n,i){return q1(n,y1)}var Sd={exports:{}},Ra={},Ed={exports:{}},xd={};/**
|
|
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 lv;function Y1(){return lv||(lv=1,function(n){function i(z,G){var I=z.length;z.push(G);e:for(;0<I;){var ae=I-1>>>1,H=z[ae];if(0<u(H,G))z[ae]=G,z[I]=H,I=ae;else break e}}function r(z){return z.length===0?null:z[0]}function a(z){if(z.length===0)return null;var G=z[0],I=z.pop();if(I!==G){z[0]=I;e:for(var ae=0,H=z.length,T=H>>>1;ae<T;){var B=2*(ae+1)-1,te=z[B],ie=B+1,le=z[ie];if(0>u(te,I))ie<H&&0>u(le,te)?(z[ae]=le,z[ie]=I,ae=ie):(z[ae]=te,z[B]=I,ae=B);else if(ie<H&&0>u(le,I))z[ae]=le,z[ie]=I,ae=ie;else break e}}return G}function u(z,G){var I=z.sortIndex-G.sortIndex;return I!==0?I:z.id-G.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,m=d.now();n.unstable_now=function(){return d.now()-m}}var g=[],p=[],v=1,b=null,S=3,E=!1,x=!1,O=!1,C=!1,M=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;function A(z){for(var G=r(p);G!==null;){if(G.callback===null)a(p);else if(G.startTime<=z)a(p),G.sortIndex=G.expirationTime,i(g,G);else break;G=r(p)}}function Z(z){if(O=!1,A(z),!x)if(r(g)!==null)x=!0,X||(X=!0,se());else{var G=r(p);G!==null&&ne(Z,G.startTime-z)}}var X=!1,q=-1,U=5,K=-1;function re(){return C?!0:!(n.unstable_now()-K<U)}function fe(){if(C=!1,X){var z=n.unstable_now();K=z;var G=!0;try{e:{x=!1,O&&(O=!1,_(q),q=-1),E=!0;var I=S;try{t:{for(A(z),b=r(g);b!==null&&!(b.expirationTime>z&&re());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,S=b.priorityLevel;var H=ae(b.expirationTime<=z);if(z=n.unstable_now(),typeof H=="function"){b.callback=H,A(z),G=!0;break t}b===r(g)&&a(g),A(z)}else a(g);b=r(g)}if(b!==null)G=!0;else{var T=r(p);T!==null&&ne(Z,T.startTime-z),G=!1}}break e}finally{b=null,S=I,E=!1}G=void 0}}finally{G?se():X=!1}}}var se;if(typeof j=="function")se=function(){j(fe)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,oe=J.port2;J.port1.onmessage=fe,se=function(){oe.postMessage(null)}}else se=function(){M(fe,0)};function ne(z,G){q=M(function(){z(n.unstable_now())},G)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(z){z.callback=null},n.unstable_forceFrameRate=function(z){0>z||125<z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):U=0<z?Math.floor(1e3/z):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(z){switch(S){case 1:case 2:case 3:var G=3;break;default:G=S}var I=S;S=G;try{return z()}finally{S=I}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(z,G){switch(z){case 1:case 2:case 3:case 4:case 5:break;default:z=3}var I=S;S=z;try{return G()}finally{S=I}},n.unstable_scheduleCallback=function(z,G,I){var ae=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ae+I:ae):I=ae,z){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=I+H,z={id:v++,callback:G,priorityLevel:z,startTime:I,expirationTime:H,sortIndex:-1},I>ae?(z.sortIndex=I,i(p,z),r(g)===null&&z===r(p)&&(O?(_(q),q=-1):O=!0,ne(Z,I-ae))):(z.sortIndex=H,i(g,z),x||E||(x=!0,X||(X=!0,se()))),z},n.unstable_shouldYield=re,n.unstable_wrapCallback=function(z){var G=S;return function(){var I=S;S=G;try{return z.apply(this,arguments)}finally{S=I}}}}(xd)),xd}var av;function V1(){return av||(av=1,Ed.exports=Y1()),Ed.exports}var Td={exports:{}},en={};/**
|
|
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 ov;function G1(){if(ov)return en;ov=1;var n=Fa();function i(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)p+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var a={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},u=Symbol.for("react.portal");function f(g,p,v){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:b==null?null:""+b,children:g,containerInfo:p,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return en.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,en.createPortal=function(g,p){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return f(g,p,null,v)},en.flushSync=function(g){var p=d.T,v=a.p;try{if(d.T=null,a.p=2,g)return g()}finally{d.T=p,a.p=v,a.d.f()}},en.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,a.d.C(g,p))},en.prefetchDNS=function(g){typeof g=="string"&&a.d.D(g)},en.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var v=p.as,b=m(v,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;v==="style"?a.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:E}):v==="script"&&a.d.X(g,{crossOrigin:b,integrity:S,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},en.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var v=m(p.as,p.crossOrigin);a.d.M(g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&a.d.M(g)},en.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var v=p.as,b=m(v,p.crossOrigin);a.d.L(g,v,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},en.preloadModule=function(g,p){if(typeof g=="string")if(p){var v=m(p.as,p.crossOrigin);a.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else a.d.m(g)},en.requestFormReset=function(g){a.d.r(g)},en.unstable_batchedUpdates=function(g,p){return g(p)},en.useFormState=function(g,p,v){return d.H.useFormState(g,p,v)},en.useFormStatus=function(){return d.H.useHostTransitionStatus()},en.version="19.2.7",en}var uv;function qb(){if(uv)return Td.exports;uv=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(i){console.error(i)}}return n(),Td.exports=G1(),Td.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 cv;function Q1(){if(cv)return Ra;cv=1;var n=V1(),i=Fa(),r=qb();function a(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)t+="&args[]="+encodeURIComponent(arguments[s])}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 u(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,s=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(s=t.return),e=t.return;while(e)}return t.tag===3?s:null}function d(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 g(e){if(f(e)!==e)throw Error(a(188))}function p(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(a(188));return t!==e?null:e}for(var s=e,l=t;;){var o=s.return;if(o===null)break;var c=o.alternate;if(c===null){if(l=o.return,l!==null){s=l;continue}break}if(o.child===c.child){for(c=o.child;c;){if(c===s)return g(o),e;if(c===l)return g(o),t;c=c.sibling}throw Error(a(188))}if(s.return!==l.return)s=o,l=c;else{for(var h=!1,y=o.child;y;){if(y===s){h=!0,s=o,l=c;break}if(y===l){h=!0,l=o,s=c;break}y=y.sibling}if(!h){for(y=c.child;y;){if(y===s){h=!0,s=c,l=o;break}if(y===l){h=!0,l=c,s=o;break}y=y.sibling}if(!h)throw Error(a(189))}}if(s.alternate!==l)throw Error(a(190))}if(s.tag!==3)throw Error(a(188));return s.stateNode.current===s?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),j=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function se(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var J=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===J?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case M:return"Profiler";case C:return"StrictMode";case Z:return"Suspense";case X:return"SuspenseList";case K:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case j:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case A:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case U:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var ne=Array.isArray,z=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ae=[],H=-1;function T(e){return{current:e}}function B(e){0>H||(e.current=ae[H],ae[H]=null,H--)}function te(e,t){H++,ae[H]=e.current,e.current=t}var ie=T(null),le=T(null),ee=T(null),ge=T(null);function ue(e,t){switch(te(ee,t),te(le,e),te(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?my(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=my(t),e=py(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}B(ie),te(ie,e)}function de(){B(ie),B(le),B(ee)}function Ze(e){e.memoizedState!==null&&te(ge,e);var t=ie.current,s=py(t,e.type);t!==s&&(te(le,e),te(ie,s))}function nt(e){le.current===e&&(B(ie),B(le)),ge.current===e&&(B(ge),ba._currentValue=I)}var be,ze;function we(e){if(be===void 0)try{throw Error()}catch(s){var t=s.stack.trim().match(/\n( *(at )?)/);be=t&&t[1]||"",ze=-1<s.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+be+e+ze}var ft=!1;function bt(e,t){if(!e||ft)return"";ft=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(F){var Q=F}Reflect.construct(e,[],$)}else{try{$.call()}catch(F){Q=F}e.call($.prototype)}}else{try{throw Error()}catch(F){Q=F}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(F){if(F&&Q&&typeof F.stack=="string")return[F.stack,Q.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),h=c[0],y=c[1];if(h&&y){var R=h.split(`
|
|
44
|
+
`),V=y.split(`
|
|
45
|
+
`);for(o=l=0;l<R.length&&!R[l].includes("DetermineComponentFrameRoot");)l++;for(;o<V.length&&!V[o].includes("DetermineComponentFrameRoot");)o++;if(l===R.length||o===V.length)for(l=R.length-1,o=V.length-1;1<=l&&0<=o&&R[l]!==V[o];)o--;for(;1<=l&&0<=o;l--,o--)if(R[l]!==V[o]){if(l!==1||o!==1)do if(l--,o--,0>o||R[l]!==V[o]){var P=`
|
|
46
|
+
`+R[l].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=l&&0<=o);break}}}finally{ft=!1,Error.prepareStackTrace=s}return(s=e?e.displayName||e.name:"")?we(s):""}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return we(e.type);case 16:return we("Lazy");case 13:return e.child!==t&&t!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return bt(e.type,!1);case 11:return bt(e.type.render,!1);case 1:return bt(e.type,!0);case 31:return we("Activity");default:return""}}function Ue(e){try{var t="",s=null;do t+=Oe(e,s),s=e,e=e.return;while(e);return t}catch(l){return`
|
|
47
|
+
Error generating stack: `+l.message+`
|
|
48
|
+
`+l.stack}}var xe=Object.prototype.hasOwnProperty,mt=n.unstable_scheduleCallback,dt=n.unstable_cancelCallback,ke=n.unstable_shouldYield,St=n.unstable_requestPaint,ce=n.unstable_now,Ee=n.unstable_getCurrentPriorityLevel,ht=n.unstable_ImmediatePriority,Be=n.unstable_UserBlockingPriority,pt=n.unstable_NormalPriority,Ut=n.unstable_LowPriority,nn=n.unstable_IdlePriority,sn=n.log,ti=n.unstable_setDisableYieldValue,on=null,Bt=null;function xn(e){if(typeof sn=="function"&&ti(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(on,e)}catch{}}var Ht=Math.clz32?Math.clz32:yr,pr=Math.log,gr=Math.LN2;function yr(e){return e>>>=0,e===0?32:31-(pr(e)/gr|0)|0}var pi=256,Ke=262144,Ot=4194304;function qt(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 Xt(e,t,s){var l=e.pendingLanes;if(l===0)return 0;var o=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~c,l!==0?o=qt(l):(h&=y,h!==0?o=qt(h):s||(s=y&~e,s!==0&&(o=qt(s))))):(y=l&~c,y!==0?o=qt(y):h!==0?o=qt(h):s||(s=l&~e,s!==0&&(o=qt(s)))),o===0?0:t!==0&&t!==o&&(t&c)===0&&(c=o&-o,s=t&-t,c>=s||c===32&&(s&4194048)!==0)?t:o}function rn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Tn(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 ni(){var e=Ot;return Ot<<=1,(Ot&62914560)===0&&(Ot=4194304),e}function ii(e){for(var t=[],s=0;31>s;s++)t.push(e);return t}function un(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zl(e,t,s,l,o,c){var h=e.pendingLanes;e.pendingLanes=s,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=s,e.entangledLanes&=s,e.errorRecoveryDisabledLanes&=s,e.shellSuspendCounter=0;var y=e.entanglements,R=e.expirationTimes,V=e.hiddenUpdates;for(s=h&~s;0<s;){var P=31-Ht(s),$=1<<P;y[P]=0,R[P]=-1;var Q=V[P];if(Q!==null)for(V[P]=null,P=0;P<Q.length;P++){var F=Q[P];F!==null&&(F.lane&=-536870913)}s&=~$}l!==0&&vr(e,l,0),c!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function vr(e,t,s){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ht(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|s&261930}function br(e,t){var s=e.entangledLanes|=t;for(e=e.entanglements;s;){var l=31-Ht(s),o=1<<l;o&t|e[l]&t&&(e[l]|=t),s&=~o}}function $a(e,t){var s=t&-t;return s=(s&42)!==0?1:ks(s),(s&(e.suspendedLanes|t))!==0?0:s}function ks(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 Sr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function eo(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:By(e.type))}function to(e,t){var s=G.p;try{return G.p=e,t()}finally{G.p=s}}var cn=Math.random().toString(36).slice(2),kt="__reactFiber$"+cn,$t="__reactProps$"+cn,Ki="__reactContainer$"+cn,Er="__reactEvents$"+cn,no="__reactListeners$"+cn,io="__reactHandles$"+cn,tm="__reactResources$"+cn,Ul="__reactMarker$"+cn;function oc(e){delete e[kt],delete e[$t],delete e[Er],delete e[no],delete e[io]}function xr(e){var t=e[kt];if(t)return t;for(var s=e.parentNode;s;){if(t=s[Ki]||s[kt]){if(s=t.alternate,t.child!==null||s!==null&&s.child!==null)for(e=xy(e);e!==null;){if(s=e[kt])return s;e=xy(e)}return t}e=s,s=e.parentNode}return null}function Tr(e){if(e=e[kt]||e[Ki]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function kl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(a(33))}function Rr(e){var t=e[tm];return t||(t=e[tm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Yt(e){e[Ul]=!0}var nm=new Set,im={};function js(e,t){Or(e,t),Or(e+"Capture",t)}function Or(e,t){for(im[e]=t,e=0;e<t.length;e++)nm.add(t[e])}var BS=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]*$"),sm={},rm={};function HS(e){return xe.call(rm,e)?!0:xe.call(sm,e)?!1:BS.test(e)?rm[e]=!0:(sm[e]=!0,!1)}function so(e,t,s){if(HS(t))if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+s)}}function ro(e,t,s){if(s===null)e.removeAttribute(t);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+s)}}function gi(e,t,s,l){if(l===null)e.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(s);return}e.setAttributeNS(t,s,""+l)}}function kn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function lm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qS(e,t,s){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var o=l.get,c=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(h){s=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return s},setValue:function(h){s=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function uc(e){if(!e._valueTracker){var t=lm(e)?"checked":"value";e._valueTracker=qS(e,t,""+e[t])}}function am(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var s=t.getValue(),l="";return e&&(l=lm(e)?e.checked?"true":"false":e.value),e=l,e!==s?(t.setValue(e),!0):!1}function lo(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 YS=/[\n"\\]/g;function jn(e){return e.replace(YS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cc(e,t,s,l,o,c,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+kn(t)):e.value!==""+kn(t)&&(e.value=""+kn(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?fc(e,h,kn(t)):s!=null?fc(e,h,kn(s)):l!=null&&e.removeAttribute("value"),o==null&&c!=null&&(e.defaultChecked=!!c),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+kn(y):e.removeAttribute("name")}function om(e,t,s,l,o,c,h,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||s!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){uc(e);return}s=s!=null?""+kn(s):"",t=t!=null?""+kn(t):s,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),uc(e)}function fc(e,t,s){t==="number"&&lo(e.ownerDocument)===e||e.defaultValue===""+s||(e.defaultValue=""+s)}function wr(e,t,s,l){if(e=e.options,t){t={};for(var o=0;o<s.length;o++)t["$"+s[o]]=!0;for(s=0;s<e.length;s++)o=t.hasOwnProperty("$"+e[s].value),e[s].selected!==o&&(e[s].selected=o),o&&l&&(e[s].defaultSelected=!0)}else{for(s=""+kn(s),t=null,o=0;o<e.length;o++){if(e[o].value===s){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function um(e,t,s){if(t!=null&&(t=""+kn(t),t!==e.value&&(e.value=t),s==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=s!=null?""+kn(s):""}function cm(e,t,s,l){if(t==null){if(l!=null){if(s!=null)throw Error(a(92));if(ne(l)){if(1<l.length)throw Error(a(93));l=l[0]}s=l}s==null&&(s=""),t=s}s=kn(t),e.defaultValue=s,l=e.textContent,l===s&&l!==""&&l!==null&&(e.value=l),uc(e)}function Cr(e,t){if(t){var s=e.firstChild;if(s&&s===e.lastChild&&s.nodeType===3){s.nodeValue=t;return}}e.textContent=t}var VS=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 fm(e,t,s){var l=t.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,s):typeof s!="number"||s===0||VS.has(t)?t==="float"?e.cssFloat=s:e[t]=(""+s).trim():e[t]=s+"px"}function dm(e,t,s){if(t!=null&&typeof t!="object")throw Error(a(62));if(e=e.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&s[o]!==l&&fm(e,o,l)}else for(var c in t)t.hasOwnProperty(c)&&fm(e,c,t[c])}function dc(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 GS=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"]]),QS=/^[\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 ao(e){return QS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yi(){}var hc=null;function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ar=null,_r=null;function hm(e){var t=Tr(e);if(t&&(e=t.stateNode)){var s=e[$t]||null;e:switch(e=t.stateNode,t.type){case"input":if(cc(e,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),t=s.name,s.type==="radio"&&t!=null){for(s=e;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+jn(""+t)+'"][type="radio"]'),t=0;t<s.length;t++){var l=s[t];if(l!==e&&l.form===e.form){var o=l[$t]||null;if(!o)throw Error(a(90));cc(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<s.length;t++)l=s[t],l.form===e.form&&am(l)}break e;case"textarea":um(e,s.value,s.defaultValue);break e;case"select":t=s.value,t!=null&&wr(e,!!s.multiple,t,!1)}}}var pc=!1;function mm(e,t,s){if(pc)return e(t,s);pc=!0;try{var l=e(t);return l}finally{if(pc=!1,(Ar!==null||_r!==null)&&(Po(),Ar&&(t=Ar,e=_r,_r=Ar=null,hm(t),e)))for(t=0;t<e.length;t++)hm(e[t])}}function jl(e,t){var s=e.stateNode;if(s===null)return null;var l=s[$t]||null;if(l===null)return null;s=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(s&&typeof s!="function")throw Error(a(231,t,typeof s));return s}var vi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gc=!1;if(vi)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){gc=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{gc=!1}var Fi=null,yc=null,oo=null;function pm(){if(oo)return oo;var e,t=yc,s=t.length,l,o="value"in Fi?Fi.value:Fi.textContent,c=o.length;for(e=0;e<s&&t[e]===o[e];e++);var h=s-e;for(l=1;l<=h&&t[s-l]===o[c-l];l++);return oo=o.slice(e,1<l?1-l:void 0)}function uo(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 co(){return!0}function gm(){return!1}function fn(e){function t(s,l,o,c,h){this._reactName=s,this._targetInst=o,this.type=l,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(s=e[y],this[y]=s?s(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?co:gm,this.isPropagationStopped=gm,this}return b(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=co)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=co)},persist:function(){},isPersistent:co}),t}var Ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fo=fn(Ls),Bl=b({},Ls,{view:0,detail:0}),XS=fn(Bl),vc,bc,Hl,ho=b({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ec,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!==Hl&&(Hl&&e.type==="mousemove"?(vc=e.screenX-Hl.screenX,bc=e.screenY-Hl.screenY):bc=vc=0,Hl=e),vc)},movementY:function(e){return"movementY"in e?e.movementY:bc}}),ym=fn(ho),KS=b({},ho,{dataTransfer:0}),FS=fn(KS),ZS=b({},Bl,{relatedTarget:0}),Sc=fn(ZS),PS=b({},Ls,{animationName:0,elapsedTime:0,pseudoElement:0}),IS=fn(PS),JS=b({},Ls,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),WS=fn(JS),$S=b({},Ls,{data:0}),vm=fn($S),eE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tE={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"},nE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iE(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nE[e])?!!t[e]:!1}function Ec(){return iE}var sE=b({},Bl,{key:function(e){if(e.key){var t=eE[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=uo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tE[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ec,charCode:function(e){return e.type==="keypress"?uo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?uo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rE=fn(sE),lE=b({},ho,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bm=fn(lE),aE=b({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ec}),oE=fn(aE),uE=b({},Ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),cE=fn(uE),fE=b({},ho,{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}),dE=fn(fE),hE=b({},Ls,{newState:0,oldState:0}),mE=fn(hE),pE=[9,13,27,32],xc=vi&&"CompositionEvent"in window,ql=null;vi&&"documentMode"in document&&(ql=document.documentMode);var gE=vi&&"TextEvent"in window&&!ql,Sm=vi&&(!xc||ql&&8<ql&&11>=ql),Em=" ",xm=!1;function Tm(e,t){switch(e){case"keyup":return pE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mr=!1;function yE(e,t){switch(e){case"compositionend":return Rm(t);case"keypress":return t.which!==32?null:(xm=!0,Em);case"textInput":return e=t.data,e===Em&&xm?null:e;default:return null}}function vE(e,t){if(Mr)return e==="compositionend"||!xc&&Tm(e,t)?(e=pm(),oo=yc=Fi=null,Mr=!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 Sm&&t.locale!=="ko"?null:t.data;default:return null}}var bE={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 Om(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bE[e.type]:t==="textarea"}function wm(e,t,s,l){Ar?_r?_r.push(l):_r=[l]:Ar=l,t=nu(t,"onChange"),0<t.length&&(s=new fo("onChange","change",null,s,l),e.push({event:s,listeners:t}))}var Yl=null,Vl=null;function SE(e){oy(e,0)}function mo(e){var t=kl(e);if(am(t))return e}function Cm(e,t){if(e==="change")return t}var Am=!1;if(vi){var Tc;if(vi){var Rc="oninput"in document;if(!Rc){var _m=document.createElement("div");_m.setAttribute("oninput","return;"),Rc=typeof _m.oninput=="function"}Tc=Rc}else Tc=!1;Am=Tc&&(!document.documentMode||9<document.documentMode)}function Mm(){Yl&&(Yl.detachEvent("onpropertychange",Nm),Vl=Yl=null)}function Nm(e){if(e.propertyName==="value"&&mo(Vl)){var t=[];wm(t,Vl,e,mc(e)),mm(SE,t)}}function EE(e,t,s){e==="focusin"?(Mm(),Yl=t,Vl=s,Yl.attachEvent("onpropertychange",Nm)):e==="focusout"&&Mm()}function xE(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return mo(Vl)}function TE(e,t){if(e==="click")return mo(t)}function RE(e,t){if(e==="input"||e==="change")return mo(t)}function OE(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Rn=typeof Object.is=="function"?Object.is:OE;function Gl(e,t){if(Rn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var s=Object.keys(e),l=Object.keys(t);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var o=s[l];if(!xe.call(t,o)||!Rn(e[o],t[o]))return!1}return!0}function Dm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function zm(e,t){var s=Dm(e);e=0;for(var l;s;){if(s.nodeType===3){if(l=e+s.textContent.length,e<=t&&l>=t)return{node:s,offset:t-e};e=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Dm(s)}}function Um(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Um(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function km(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=lo(e.document);t instanceof e.HTMLIFrameElement;){try{var s=typeof t.contentWindow.location.href=="string"}catch{s=!1}if(s)e=t.contentWindow;else break;t=lo(e.document)}return t}function Oc(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 wE=vi&&"documentMode"in document&&11>=document.documentMode,Nr=null,wc=null,Ql=null,Cc=!1;function jm(e,t,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Cc||Nr==null||Nr!==lo(l)||(l=Nr,"selectionStart"in l&&Oc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Ql&&Gl(Ql,l)||(Ql=l,l=nu(wc,"onSelect"),0<l.length&&(t=new fo("onSelect","select",null,t,s),e.push({event:t,listeners:l}),t.target=Nr)))}function Bs(e,t){var s={};return s[e.toLowerCase()]=t.toLowerCase(),s["Webkit"+e]="webkit"+t,s["Moz"+e]="moz"+t,s}var Dr={animationend:Bs("Animation","AnimationEnd"),animationiteration:Bs("Animation","AnimationIteration"),animationstart:Bs("Animation","AnimationStart"),transitionrun:Bs("Transition","TransitionRun"),transitionstart:Bs("Transition","TransitionStart"),transitioncancel:Bs("Transition","TransitionCancel"),transitionend:Bs("Transition","TransitionEnd")},Ac={},Lm={};vi&&(Lm=document.createElement("div").style,"AnimationEvent"in window||(delete Dr.animationend.animation,delete Dr.animationiteration.animation,delete Dr.animationstart.animation),"TransitionEvent"in window||delete Dr.transitionend.transition);function Hs(e){if(Ac[e])return Ac[e];if(!Dr[e])return e;var t=Dr[e],s;for(s in t)if(t.hasOwnProperty(s)&&s in Lm)return Ac[e]=t[s];return e}var Bm=Hs("animationend"),Hm=Hs("animationiteration"),qm=Hs("animationstart"),CE=Hs("transitionrun"),AE=Hs("transitionstart"),_E=Hs("transitioncancel"),Ym=Hs("transitionend"),Vm=new Map,_c="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(" ");_c.push("scrollEnd");function Zn(e,t){Vm.set(e,t),js(t,[e])}var po=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)},Ln=[],zr=0,Mc=0;function go(){for(var e=zr,t=Mc=zr=0;t<e;){var s=Ln[t];Ln[t++]=null;var l=Ln[t];Ln[t++]=null;var o=Ln[t];Ln[t++]=null;var c=Ln[t];if(Ln[t++]=null,l!==null&&o!==null){var h=l.pending;h===null?o.next=o:(o.next=h.next,h.next=o),l.pending=o}c!==0&&Gm(s,o,c)}}function yo(e,t,s,l){Ln[zr++]=e,Ln[zr++]=t,Ln[zr++]=s,Ln[zr++]=l,Mc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Nc(e,t,s,l){return yo(e,t,s,l),vo(e)}function qs(e,t){return yo(e,null,null,t),vo(e)}function Gm(e,t,s){e.lanes|=s;var l=e.alternate;l!==null&&(l.lanes|=s);for(var o=!1,c=e.return;c!==null;)c.childLanes|=s,l=c.alternate,l!==null&&(l.childLanes|=s),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(o=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,o&&t!==null&&(o=31-Ht(s),e=c.hiddenUpdates,l=e[o],l===null?e[o]=[t]:l.push(t),t.lane=s|536870912),c):null}function vo(e){if(50<da)throw da=0,Yf=null,Error(a(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ur={};function ME(e,t,s,l){this.tag=e,this.key=s,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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(e,t,s,l){return new ME(e,t,s,l)}function Dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function bi(e,t){var s=e.alternate;return s===null?(s=On(e.tag,t,e.key,e.mode),s.elementType=e.elementType,s.type=e.type,s.stateNode=e.stateNode,s.alternate=e,e.alternate=s):(s.pendingProps=t,s.type=e.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=e.flags&65011712,s.childLanes=e.childLanes,s.lanes=e.lanes,s.child=e.child,s.memoizedProps=e.memoizedProps,s.memoizedState=e.memoizedState,s.updateQueue=e.updateQueue,t=e.dependencies,s.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},s.sibling=e.sibling,s.index=e.index,s.ref=e.ref,s.refCleanup=e.refCleanup,s}function Qm(e,t){e.flags&=65011714;var s=e.alternate;return s===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=s.childLanes,e.lanes=s.lanes,e.child=s.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=s.memoizedProps,e.memoizedState=s.memoizedState,e.updateQueue=s.updateQueue,e.type=s.type,t=s.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function bo(e,t,s,l,o,c){var h=0;if(l=e,typeof e=="function")Dc(e)&&(h=1);else if(typeof e=="string")h=kx(e,s,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case K:return e=On(31,s,t,o),e.elementType=K,e.lanes=c,e;case O:return Ys(s.children,o,c,t);case C:h=8,o|=24;break;case M:return e=On(12,s,t,o|2),e.elementType=M,e.lanes=c,e;case Z:return e=On(13,s,t,o),e.elementType=Z,e.lanes=c,e;case X:return e=On(19,s,t,o),e.elementType=X,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case j:h=10;break e;case _:h=9;break e;case A:h=11;break e;case q:h=14;break e;case U:h=16,l=null;break e}h=29,s=Error(a(130,e===null?"null":typeof e,"")),l=null}return t=On(h,s,t,o),t.elementType=e,t.type=l,t.lanes=c,t}function Ys(e,t,s,l){return e=On(7,e,l,t),e.lanes=s,e}function zc(e,t,s){return e=On(6,e,null,t),e.lanes=s,e}function Xm(e){var t=On(18,null,null,0);return t.stateNode=e,t}function Uc(e,t,s){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=s,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Km=new WeakMap;function Bn(e,t){if(typeof e=="object"&&e!==null){var s=Km.get(e);return s!==void 0?s:(t={value:e,source:t,stack:Ue(t)},Km.set(e,t),t)}return{value:e,source:t,stack:Ue(t)}}var kr=[],jr=0,So=null,Xl=0,Hn=[],qn=0,Zi=null,si=1,ri="";function Si(e,t){kr[jr++]=Xl,kr[jr++]=So,So=e,Xl=t}function Fm(e,t,s){Hn[qn++]=si,Hn[qn++]=ri,Hn[qn++]=Zi,Zi=e;var l=si;e=ri;var o=32-Ht(l)-1;l&=~(1<<o),s+=1;var c=32-Ht(t)+o;if(30<c){var h=o-o%5;c=(l&(1<<h)-1).toString(32),l>>=h,o-=h,si=1<<32-Ht(t)+o|s<<o|l,ri=c+e}else si=1<<c|s<<o|l,ri=e}function kc(e){e.return!==null&&(Si(e,1),Fm(e,1,0))}function jc(e){for(;e===So;)So=kr[--jr],kr[jr]=null,Xl=kr[--jr],kr[jr]=null;for(;e===Zi;)Zi=Hn[--qn],Hn[qn]=null,ri=Hn[--qn],Hn[qn]=null,si=Hn[--qn],Hn[qn]=null}function Zm(e,t){Hn[qn++]=si,Hn[qn++]=ri,Hn[qn++]=Zi,si=t.id,ri=t.overflow,Zi=e}var Kt=null,gt=null,Ge=!1,Pi=null,Yn=!1,Lc=Error(a(519));function Ii(e){var t=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Kl(Bn(t,e)),Lc}function Pm(e){var t=e.stateNode,s=e.type,l=e.memoizedProps;switch(t[kt]=e,t[$t]=l,s){case"dialog":Le("cancel",t),Le("close",t);break;case"iframe":case"object":case"embed":Le("load",t);break;case"video":case"audio":for(s=0;s<ma.length;s++)Le(ma[s],t);break;case"source":Le("error",t);break;case"img":case"image":case"link":Le("error",t),Le("load",t);break;case"details":Le("toggle",t);break;case"input":Le("invalid",t),om(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Le("invalid",t);break;case"textarea":Le("invalid",t),cm(t,l.value,l.defaultValue,l.children)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||t.textContent===""+s||l.suppressHydrationWarning===!0||dy(t.textContent,s)?(l.popover!=null&&(Le("beforetoggle",t),Le("toggle",t)),l.onScroll!=null&&Le("scroll",t),l.onScrollEnd!=null&&Le("scrollend",t),l.onClick!=null&&(t.onclick=yi),t=!0):t=!1,t||Ii(e,!0)}function Im(e){for(Kt=e.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:Kt=Kt.return}}function Lr(e){if(e!==Kt)return!1;if(!Ge)return Im(e),Ge=!0,!1;var t=e.tag,s;if((s=t!==3&&t!==27)&&((s=t===5)&&(s=e.type,s=!(s!=="form"&&s!=="button")||nd(e.type,e.memoizedProps)),s=!s),s&>&&Ii(e),Im(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));gt=Ey(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(317));gt=Ey(e)}else t===27?(t=gt,cs(e.type)?(e=ad,ad=null,gt=e):gt=t):gt=Kt?Gn(e.stateNode.nextSibling):null;return!0}function Vs(){gt=Kt=null,Ge=!1}function Bc(){var e=Pi;return e!==null&&(pn===null?pn=e:pn.push.apply(pn,e),Pi=null),e}function Kl(e){Pi===null?Pi=[e]:Pi.push(e)}var Hc=T(null),Gs=null,Ei=null;function Ji(e,t,s){te(Hc,t._currentValue),t._currentValue=s}function xi(e){e._currentValue=Hc.current,B(Hc)}function qc(e,t,s){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===s)break;e=e.return}}function Yc(e,t,s,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var c=o.dependencies;if(c!==null){var h=o.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=o;for(var R=0;R<t.length;R++)if(y.context===t[R]){c.lanes|=s,y=c.alternate,y!==null&&(y.lanes|=s),qc(c.return,s,e),l||(h=null);break e}c=y.next}}else if(o.tag===18){if(h=o.return,h===null)throw Error(a(341));h.lanes|=s,c=h.alternate,c!==null&&(c.lanes|=s),qc(h,s,e),h=null}else h=o.child;if(h!==null)h.return=o;else for(h=o;h!==null;){if(h===e){h=null;break}if(o=h.sibling,o!==null){o.return=h.return,h=o;break}h=h.return}o=h}}function Br(e,t,s,l){e=null;for(var o=t,c=!1;o!==null;){if(!c){if((o.flags&524288)!==0)c=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var h=o.alternate;if(h===null)throw Error(a(387));if(h=h.memoizedProps,h!==null){var y=o.type;Rn(o.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(o===ge.current){if(h=o.alternate,h===null)throw Error(a(387));h.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ba):e=[ba])}o=o.return}e!==null&&Yc(t,e,s,l),t.flags|=262144}function Eo(e){for(e=e.firstContext;e!==null;){if(!Rn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qs(e){Gs=e,Ei=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ft(e){return Jm(Gs,e)}function xo(e,t){return Gs===null&&Qs(e),Jm(e,t)}function Jm(e,t){var s=t._currentValue;if(t={context:t,memoizedValue:s,next:null},Ei===null){if(e===null)throw Error(a(308));Ei=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ei=Ei.next=t;return s}var NE=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(s,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(s){return s()})}},DE=n.unstable_scheduleCallback,zE=n.unstable_NormalPriority,At={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vc(){return{controller:new NE,data:new Map,refCount:0}}function Fl(e){e.refCount--,e.refCount===0&&DE(zE,function(){e.controller.abort()})}var Zl=null,Gc=0,Hr=0,qr=null;function UE(e,t){if(Zl===null){var s=Zl=[];Gc=0,Hr=Ff(),qr={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Gc++,t.then(Wm,Wm),t}function Wm(){if(--Gc===0&&Zl!==null){qr!==null&&(qr.status="fulfilled");var e=Zl;Zl=null,Hr=0,qr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function kE(e,t){var s=[],l={status:"pending",value:null,reason:null,then:function(o){s.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<s.length;o++)(0,s[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<s.length;o++)(0,s[o])(void 0)}),l}var $m=z.S;z.S=function(e,t){jg=ce(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&UE(e,t),$m!==null&&$m(e,t)};var Xs=T(null);function Qc(){var e=Xs.current;return e!==null?e:ut.pooledCache}function To(e,t){t===null?te(Xs,Xs.current):te(Xs,t.pool)}function ep(){var e=Qc();return e===null?null:{parent:At._currentValue,pool:e}}var Yr=Error(a(460)),Xc=Error(a(474)),Ro=Error(a(542)),Oo={then:function(){}};function tp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function np(e,t,s){switch(s=e[s],s===void 0?e.push(t):s!==t&&(t.then(yi,yi),t=s),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sp(e),e;default:if(typeof t.status=="string")t.then(yi,yi);else{if(e=ut,e!==null&&100<e.shellSuspendCounter)throw Error(a(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,sp(e),e}throw Fs=t,Yr}}function Ks(e){try{var t=e._init;return t(e._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Fs=s,Yr):s}}var Fs=null;function ip(){if(Fs===null)throw Error(a(459));var e=Fs;return Fs=null,e}function sp(e){if(e===Yr||e===Ro)throw Error(a(483))}var Vr=null,Pl=0;function wo(e){var t=Pl;return Pl+=1,Vr===null&&(Vr=[]),np(Vr,e,t)}function Il(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Co(e,t){throw t.$$typeof===S?Error(a(525)):(e=Object.prototype.toString.call(t),Error(a(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function rp(e){function t(L,N){if(e){var Y=L.deletions;Y===null?(L.deletions=[N],L.flags|=16):Y.push(N)}}function s(L,N){if(!e)return null;for(;N!==null;)t(L,N),N=N.sibling;return null}function l(L){for(var N=new Map;L!==null;)L.key!==null?N.set(L.key,L):N.set(L.index,L),L=L.sibling;return N}function o(L,N){return L=bi(L,N),L.index=0,L.sibling=null,L}function c(L,N,Y){return L.index=Y,e?(Y=L.alternate,Y!==null?(Y=Y.index,Y<N?(L.flags|=67108866,N):Y):(L.flags|=67108866,N)):(L.flags|=1048576,N)}function h(L){return e&&L.alternate===null&&(L.flags|=67108866),L}function y(L,N,Y,W){return N===null||N.tag!==6?(N=zc(Y,L.mode,W),N.return=L,N):(N=o(N,Y),N.return=L,N)}function R(L,N,Y,W){var Se=Y.type;return Se===O?P(L,N,Y.props.children,W,Y.key):N!==null&&(N.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===U&&Ks(Se)===N.type)?(N=o(N,Y.props),Il(N,Y),N.return=L,N):(N=bo(Y.type,Y.key,Y.props,null,L.mode,W),Il(N,Y),N.return=L,N)}function V(L,N,Y,W){return N===null||N.tag!==4||N.stateNode.containerInfo!==Y.containerInfo||N.stateNode.implementation!==Y.implementation?(N=Uc(Y,L.mode,W),N.return=L,N):(N=o(N,Y.children||[]),N.return=L,N)}function P(L,N,Y,W,Se){return N===null||N.tag!==7?(N=Ys(Y,L.mode,W,Se),N.return=L,N):(N=o(N,Y),N.return=L,N)}function $(L,N,Y){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return N=zc(""+N,L.mode,Y),N.return=L,N;if(typeof N=="object"&&N!==null){switch(N.$$typeof){case E:return Y=bo(N.type,N.key,N.props,null,L.mode,Y),Il(Y,N),Y.return=L,Y;case x:return N=Uc(N,L.mode,Y),N.return=L,N;case U:return N=Ks(N),$(L,N,Y)}if(ne(N)||se(N))return N=Ys(N,L.mode,Y,null),N.return=L,N;if(typeof N.then=="function")return $(L,wo(N),Y);if(N.$$typeof===j)return $(L,xo(L,N),Y);Co(L,N)}return null}function Q(L,N,Y,W){var Se=N!==null?N.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Se!==null?null:y(L,N,""+Y,W);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case E:return Y.key===Se?R(L,N,Y,W):null;case x:return Y.key===Se?V(L,N,Y,W):null;case U:return Y=Ks(Y),Q(L,N,Y,W)}if(ne(Y)||se(Y))return Se!==null?null:P(L,N,Y,W,null);if(typeof Y.then=="function")return Q(L,N,wo(Y),W);if(Y.$$typeof===j)return Q(L,N,xo(L,Y),W);Co(L,Y)}return null}function F(L,N,Y,W,Se){if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return L=L.get(Y)||null,y(N,L,""+W,Se);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case E:return L=L.get(W.key===null?Y:W.key)||null,R(N,L,W,Se);case x:return L=L.get(W.key===null?Y:W.key)||null,V(N,L,W,Se);case U:return W=Ks(W),F(L,N,Y,W,Se)}if(ne(W)||se(W))return L=L.get(Y)||null,P(N,L,W,Se,null);if(typeof W.then=="function")return F(L,N,Y,wo(W),Se);if(W.$$typeof===j)return F(L,N,Y,xo(N,W),Se);Co(N,W)}return null}function ye(L,N,Y,W){for(var Se=null,Pe=null,ve=N,_e=N=0,qe=null;ve!==null&&_e<Y.length;_e++){ve.index>_e?(qe=ve,ve=null):qe=ve.sibling;var Ie=Q(L,ve,Y[_e],W);if(Ie===null){ve===null&&(ve=qe);break}e&&ve&&Ie.alternate===null&&t(L,ve),N=c(Ie,N,_e),Pe===null?Se=Ie:Pe.sibling=Ie,Pe=Ie,ve=qe}if(_e===Y.length)return s(L,ve),Ge&&Si(L,_e),Se;if(ve===null){for(;_e<Y.length;_e++)ve=$(L,Y[_e],W),ve!==null&&(N=c(ve,N,_e),Pe===null?Se=ve:Pe.sibling=ve,Pe=ve);return Ge&&Si(L,_e),Se}for(ve=l(ve);_e<Y.length;_e++)qe=F(ve,L,_e,Y[_e],W),qe!==null&&(e&&qe.alternate!==null&&ve.delete(qe.key===null?_e:qe.key),N=c(qe,N,_e),Pe===null?Se=qe:Pe.sibling=qe,Pe=qe);return e&&ve.forEach(function(ps){return t(L,ps)}),Ge&&Si(L,_e),Se}function Re(L,N,Y,W){if(Y==null)throw Error(a(151));for(var Se=null,Pe=null,ve=N,_e=N=0,qe=null,Ie=Y.next();ve!==null&&!Ie.done;_e++,Ie=Y.next()){ve.index>_e?(qe=ve,ve=null):qe=ve.sibling;var ps=Q(L,ve,Ie.value,W);if(ps===null){ve===null&&(ve=qe);break}e&&ve&&ps.alternate===null&&t(L,ve),N=c(ps,N,_e),Pe===null?Se=ps:Pe.sibling=ps,Pe=ps,ve=qe}if(Ie.done)return s(L,ve),Ge&&Si(L,_e),Se;if(ve===null){for(;!Ie.done;_e++,Ie=Y.next())Ie=$(L,Ie.value,W),Ie!==null&&(N=c(Ie,N,_e),Pe===null?Se=Ie:Pe.sibling=Ie,Pe=Ie);return Ge&&Si(L,_e),Se}for(ve=l(ve);!Ie.done;_e++,Ie=Y.next())Ie=F(ve,L,_e,Ie.value,W),Ie!==null&&(e&&Ie.alternate!==null&&ve.delete(Ie.key===null?_e:Ie.key),N=c(Ie,N,_e),Pe===null?Se=Ie:Pe.sibling=Ie,Pe=Ie);return e&&ve.forEach(function(Kx){return t(L,Kx)}),Ge&&Si(L,_e),Se}function at(L,N,Y,W){if(typeof Y=="object"&&Y!==null&&Y.type===O&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case E:e:{for(var Se=Y.key;N!==null;){if(N.key===Se){if(Se=Y.type,Se===O){if(N.tag===7){s(L,N.sibling),W=o(N,Y.props.children),W.return=L,L=W;break e}}else if(N.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===U&&Ks(Se)===N.type){s(L,N.sibling),W=o(N,Y.props),Il(W,Y),W.return=L,L=W;break e}s(L,N);break}else t(L,N);N=N.sibling}Y.type===O?(W=Ys(Y.props.children,L.mode,W,Y.key),W.return=L,L=W):(W=bo(Y.type,Y.key,Y.props,null,L.mode,W),Il(W,Y),W.return=L,L=W)}return h(L);case x:e:{for(Se=Y.key;N!==null;){if(N.key===Se)if(N.tag===4&&N.stateNode.containerInfo===Y.containerInfo&&N.stateNode.implementation===Y.implementation){s(L,N.sibling),W=o(N,Y.children||[]),W.return=L,L=W;break e}else{s(L,N);break}else t(L,N);N=N.sibling}W=Uc(Y,L.mode,W),W.return=L,L=W}return h(L);case U:return Y=Ks(Y),at(L,N,Y,W)}if(ne(Y))return ye(L,N,Y,W);if(se(Y)){if(Se=se(Y),typeof Se!="function")throw Error(a(150));return Y=Se.call(Y),Re(L,N,Y,W)}if(typeof Y.then=="function")return at(L,N,wo(Y),W);if(Y.$$typeof===j)return at(L,N,xo(L,Y),W);Co(L,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,N!==null&&N.tag===6?(s(L,N.sibling),W=o(N,Y),W.return=L,L=W):(s(L,N),W=zc(Y,L.mode,W),W.return=L,L=W),h(L)):s(L,N)}return function(L,N,Y,W){try{Pl=0;var Se=at(L,N,Y,W);return Vr=null,Se}catch(ve){if(ve===Yr||ve===Ro)throw ve;var Pe=On(29,ve,null,L.mode);return Pe.lanes=W,Pe.return=L,Pe}finally{}}}var Zs=rp(!0),lp=rp(!1),Wi=!1;function Kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fc(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 $i(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function es(e,t,s){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(We&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=vo(e),Gm(e,null,s),t}return yo(e,l,t,s),vo(e)}function Jl(e,t,s){if(t=t.updateQueue,t!==null&&(t=t.shared,(s&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,s|=l,t.lanes=s,br(e,s)}}function Zc(e,t){var s=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var o=null,c=null;if(s=s.firstBaseUpdate,s!==null){do{var h={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};c===null?o=c=h:c=c.next=h,s=s.next}while(s!==null);c===null?o=c=t:c=c.next=t}else o=c=t;s={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},e.updateQueue=s;return}e=s.lastBaseUpdate,e===null?s.firstBaseUpdate=t:e.next=t,s.lastBaseUpdate=t}var Pc=!1;function Wl(){if(Pc){var e=qr;if(e!==null)throw e}}function $l(e,t,s,l){Pc=!1;var o=e.updateQueue;Wi=!1;var c=o.firstBaseUpdate,h=o.lastBaseUpdate,y=o.shared.pending;if(y!==null){o.shared.pending=null;var R=y,V=R.next;R.next=null,h===null?c=V:h.next=V,h=R;var P=e.alternate;P!==null&&(P=P.updateQueue,y=P.lastBaseUpdate,y!==h&&(y===null?P.firstBaseUpdate=V:y.next=V,P.lastBaseUpdate=R))}if(c!==null){var $=o.baseState;h=0,P=V=R=null,y=c;do{var Q=y.lane&-536870913,F=Q!==y.lane;if(F?(He&Q)===Q:(l&Q)===Q){Q!==0&&Q===Hr&&(Pc=!0),P!==null&&(P=P.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var ye=e,Re=y;Q=t;var at=s;switch(Re.tag){case 1:if(ye=Re.payload,typeof ye=="function"){$=ye.call(at,$,Q);break e}$=ye;break e;case 3:ye.flags=ye.flags&-65537|128;case 0:if(ye=Re.payload,Q=typeof ye=="function"?ye.call(at,$,Q):ye,Q==null)break e;$=b({},$,Q);break e;case 2:Wi=!0}}Q=y.callback,Q!==null&&(e.flags|=64,F&&(e.flags|=8192),F=o.callbacks,F===null?o.callbacks=[Q]:F.push(Q))}else F={lane:Q,tag:y.tag,payload:y.payload,callback:y.callback,next:null},P===null?(V=P=F,R=$):P=P.next=F,h|=Q;if(y=y.next,y===null){if(y=o.shared.pending,y===null)break;F=y,y=F.next,F.next=null,o.lastBaseUpdate=F,o.shared.pending=null}}while(!0);P===null&&(R=$),o.baseState=R,o.firstBaseUpdate=V,o.lastBaseUpdate=P,c===null&&(o.shared.lanes=0),rs|=h,e.lanes=h,e.memoizedState=$}}function ap(e,t){if(typeof e!="function")throw Error(a(191,e));e.call(t)}function op(e,t){var s=e.callbacks;if(s!==null)for(e.callbacks=null,e=0;e<s.length;e++)ap(s[e],t)}var Gr=T(null),Ao=T(0);function up(e,t){e=Ni,te(Ao,e),te(Gr,t),Ni=e|t.baseLanes}function Ic(){te(Ao,Ni),te(Gr,Gr.current)}function Jc(){Ni=Ao.current,B(Gr),B(Ao)}var wn=T(null),Vn=null;function ts(e){var t=e.alternate;te(wt,wt.current&1),te(wn,e),Vn===null&&(t===null||Gr.current!==null||t.memoizedState!==null)&&(Vn=e)}function Wc(e){te(wt,wt.current),te(wn,e),Vn===null&&(Vn=e)}function cp(e){e.tag===22?(te(wt,wt.current),te(wn,e),Vn===null&&(Vn=e)):ns()}function ns(){te(wt,wt.current),te(wn,wn.current)}function Cn(e){B(wn),Vn===e&&(Vn=null),B(wt)}var wt=T(0);function _o(e){for(var t=e;t!==null;){if(t.tag===13){var s=t.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||rd(s)||ld(s)))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 Ti=0,Ae=null,rt=null,_t=null,Mo=!1,Qr=!1,Ps=!1,No=0,ea=0,Xr=null,jE=0;function Et(){throw Error(a(321))}function $c(e,t){if(t===null)return!1;for(var s=0;s<t.length&&s<e.length;s++)if(!Rn(e[s],t[s]))return!1;return!0}function ef(e,t,s,l,o,c){return Ti=c,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?Fp:gf,Ps=!1,c=s(l,o),Ps=!1,Qr&&(c=dp(t,s,l,o)),fp(e),c}function fp(e){z.H=ia;var t=rt!==null&&rt.next!==null;if(Ti=0,_t=rt=Ae=null,Mo=!1,ea=0,Xr=null,t)throw Error(a(300));e===null||Mt||(e=e.dependencies,e!==null&&Eo(e)&&(Mt=!0))}function dp(e,t,s,l){Ae=e;var o=0;do{if(Qr&&(Xr=null),ea=0,Qr=!1,25<=o)throw Error(a(301));if(o+=1,_t=rt=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}z.H=Zp,c=t(s,l)}while(Qr);return c}function LE(){var e=z.H,t=e.useState()[0];return t=typeof t.then=="function"?ta(t):t,e=e.useState()[0],(rt!==null?rt.memoizedState:null)!==e&&(Ae.flags|=1024),t}function tf(){var e=No!==0;return No=0,e}function nf(e,t,s){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s}function sf(e){if(Mo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mo=!1}Ti=0,_t=rt=Ae=null,Qr=!1,ea=No=0,Xr=null}function ln(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return _t===null?Ae.memoizedState=_t=e:_t=_t.next=e,_t}function Ct(){if(rt===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=rt.next;var t=_t===null?Ae.memoizedState:_t.next;if(t!==null)_t=t,rt=e;else{if(e===null)throw Ae.alternate===null?Error(a(467)):Error(a(310));rt=e,e={memoizedState:rt.memoizedState,baseState:rt.baseState,baseQueue:rt.baseQueue,queue:rt.queue,next:null},_t===null?Ae.memoizedState=_t=e:_t=_t.next=e}return _t}function Do(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ta(e){var t=ea;return ea+=1,Xr===null&&(Xr=[]),e=np(Xr,e,t),t=Ae,(_t===null?t.memoizedState:_t.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?Fp:gf),e}function zo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ta(e);if(e.$$typeof===j)return Ft(e)}throw Error(a(438,String(e)))}function rf(e){var t=null,s=Ae.updateQueue;if(s!==null&&(t=s.memoCache),t==null){var l=Ae.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),s===null&&(s=Do(),Ae.updateQueue=s),s.memoCache=t,s=t.data[t.index],s===void 0)for(s=t.data[t.index]=Array(e),l=0;l<e;l++)s[l]=re;return t.index++,s}function Ri(e,t){return typeof t=="function"?t(e):t}function Uo(e){var t=Ct();return lf(t,rt,e)}function lf(e,t,s){var l=e.queue;if(l===null)throw Error(a(311));l.lastRenderedReducer=s;var o=e.baseQueue,c=l.pending;if(c!==null){if(o!==null){var h=o.next;o.next=c.next,c.next=h}t.baseQueue=o=c,l.pending=null}if(c=e.baseState,o===null)e.memoizedState=c;else{t=o.next;var y=h=null,R=null,V=t,P=!1;do{var $=V.lane&-536870913;if($!==V.lane?(He&$)===$:(Ti&$)===$){var Q=V.revertLane;if(Q===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),$===Hr&&(P=!0);else if((Ti&Q)===Q){V=V.next,Q===Hr&&(P=!0);continue}else $={lane:0,revertLane:V.revertLane,gesture:null,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},R===null?(y=R=$,h=c):R=R.next=$,Ae.lanes|=Q,rs|=Q;$=V.action,Ps&&s(c,$),c=V.hasEagerState?V.eagerState:s(c,$)}else Q={lane:$,revertLane:V.revertLane,gesture:V.gesture,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},R===null?(y=R=Q,h=c):R=R.next=Q,Ae.lanes|=$,rs|=$;V=V.next}while(V!==null&&V!==t);if(R===null?h=c:R.next=y,!Rn(c,e.memoizedState)&&(Mt=!0,P&&(s=qr,s!==null)))throw s;e.memoizedState=c,e.baseState=h,e.baseQueue=R,l.lastRenderedState=c}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function af(e){var t=Ct(),s=t.queue;if(s===null)throw Error(a(311));s.lastRenderedReducer=e;var l=s.dispatch,o=s.pending,c=t.memoizedState;if(o!==null){s.pending=null;var h=o=o.next;do c=e(c,h.action),h=h.next;while(h!==o);Rn(c,t.memoizedState)||(Mt=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),s.lastRenderedState=c}return[c,l]}function hp(e,t,s){var l=Ae,o=Ct(),c=Ge;if(c){if(s===void 0)throw Error(a(407));s=s()}else s=t();var h=!Rn((rt||o).memoizedState,s);if(h&&(o.memoizedState=s,Mt=!0),o=o.queue,cf(gp.bind(null,l,o,e),[e]),o.getSnapshot!==t||h||_t!==null&&_t.memoizedState.tag&1){if(l.flags|=2048,Kr(9,{destroy:void 0},pp.bind(null,l,o,s,t),null),ut===null)throw Error(a(349));c||(Ti&127)!==0||mp(l,t,s)}return s}function mp(e,t,s){e.flags|=16384,e={getSnapshot:t,value:s},t=Ae.updateQueue,t===null?(t=Do(),Ae.updateQueue=t,t.stores=[e]):(s=t.stores,s===null?t.stores=[e]:s.push(e))}function pp(e,t,s,l){t.value=s,t.getSnapshot=l,yp(t)&&vp(e)}function gp(e,t,s){return s(function(){yp(t)&&vp(e)})}function yp(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!Rn(e,s)}catch{return!0}}function vp(e){var t=qs(e,2);t!==null&&gn(t,e,2)}function of(e){var t=ln();if(typeof e=="function"){var s=e;if(e=s(),Ps){xn(!0);try{s()}finally{xn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:e},t}function bp(e,t,s,l){return e.baseState=s,lf(e,rt,typeof l=="function"?l:Ri)}function BE(e,t,s,l,o){if(Lo(e))throw Error(a(485));if(e=t.action,e!==null){var c={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};z.T!==null?s(!0):c.isTransition=!1,l(c),s=t.pending,s===null?(c.next=t.pending=c,Sp(t,c)):(c.next=s.next,t.pending=s.next=c)}}function Sp(e,t){var s=t.action,l=t.payload,o=e.state;if(t.isTransition){var c=z.T,h={};z.T=h;try{var y=s(o,l),R=z.S;R!==null&&R(h,y),Ep(e,t,y)}catch(V){uf(e,t,V)}finally{c!==null&&h.types!==null&&(c.types=h.types),z.T=c}}else try{c=s(o,l),Ep(e,t,c)}catch(V){uf(e,t,V)}}function Ep(e,t,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){xp(e,t,l)},function(l){return uf(e,t,l)}):xp(e,t,s)}function xp(e,t,s){t.status="fulfilled",t.value=s,Tp(t),e.state=s,t=e.pending,t!==null&&(s=t.next,s===t?e.pending=null:(s=s.next,t.next=s,Sp(e,s)))}function uf(e,t,s){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=s,Tp(t),t=t.next;while(t!==l)}e.action=null}function Tp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Rp(e,t){return t}function Op(e,t){if(Ge){var s=ut.formState;if(s!==null){e:{var l=Ae;if(Ge){if(gt){t:{for(var o=gt,c=Yn;o.nodeType!==8;){if(!c){o=null;break t}if(o=Gn(o.nextSibling),o===null){o=null;break t}}c=o.data,o=c==="F!"||c==="F"?o:null}if(o){gt=Gn(o.nextSibling),l=o.data==="F!";break e}}Ii(l)}l=!1}l&&(t=s[0])}}return s=ln(),s.memoizedState=s.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rp,lastRenderedState:t},s.queue=l,s=Qp.bind(null,Ae,l),l.dispatch=s,l=of(!1),c=pf.bind(null,Ae,!1,l.queue),l=ln(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,s=BE.bind(null,Ae,o,c,s),o.dispatch=s,l.memoizedState=e,[t,s,!1]}function wp(e){var t=Ct();return Cp(t,rt,e)}function Cp(e,t,s){if(t=lf(e,t,Rp)[0],e=Uo(Ri)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=ta(t)}catch(h){throw h===Yr?Ro:h}else l=t;t=Ct();var o=t.queue,c=o.dispatch;return s!==t.memoizedState&&(Ae.flags|=2048,Kr(9,{destroy:void 0},HE.bind(null,o,s),null)),[l,c,e]}function HE(e,t){e.action=t}function Ap(e){var t=Ct(),s=rt;if(s!==null)return Cp(t,s,e);Ct(),t=t.memoizedState,s=Ct();var l=s.queue.dispatch;return s.memoizedState=e,[t,l,!1]}function Kr(e,t,s,l){return e={tag:e,create:s,deps:l,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Do(),Ae.updateQueue=t),s=t.lastEffect,s===null?t.lastEffect=e.next=e:(l=s.next,s.next=e,e.next=l,t.lastEffect=e),e}function _p(){return Ct().memoizedState}function ko(e,t,s,l){var o=ln();Ae.flags|=e,o.memoizedState=Kr(1|t,{destroy:void 0},s,l===void 0?null:l)}function jo(e,t,s,l){var o=Ct();l=l===void 0?null:l;var c=o.memoizedState.inst;rt!==null&&l!==null&&$c(l,rt.memoizedState.deps)?o.memoizedState=Kr(t,c,s,l):(Ae.flags|=e,o.memoizedState=Kr(1|t,c,s,l))}function Mp(e,t){ko(8390656,8,e,t)}function cf(e,t){jo(2048,8,e,t)}function qE(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Do(),Ae.updateQueue=t,t.events=[e];else{var s=t.events;s===null?t.events=[e]:s.push(e)}}function Np(e){var t=Ct().memoizedState;return qE({ref:t,nextImpl:e}),function(){if((We&2)!==0)throw Error(a(440));return t.impl.apply(void 0,arguments)}}function Dp(e,t){return jo(4,2,e,t)}function zp(e,t){return jo(4,4,e,t)}function Up(e,t){if(typeof t=="function"){e=e();var s=t(e);return function(){typeof s=="function"?s():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kp(e,t,s){s=s!=null?s.concat([e]):null,jo(4,4,Up.bind(null,t,e),s)}function ff(){}function jp(e,t){var s=Ct();t=t===void 0?null:t;var l=s.memoizedState;return t!==null&&$c(t,l[1])?l[0]:(s.memoizedState=[e,t],e)}function Lp(e,t){var s=Ct();t=t===void 0?null:t;var l=s.memoizedState;if(t!==null&&$c(t,l[1]))return l[0];if(l=e(),Ps){xn(!0);try{e()}finally{xn(!1)}}return s.memoizedState=[l,t],l}function df(e,t,s){return s===void 0||(Ti&1073741824)!==0&&(He&261930)===0?e.memoizedState=t:(e.memoizedState=s,e=Bg(),Ae.lanes|=e,rs|=e,s)}function Bp(e,t,s,l){return Rn(s,t)?s:Gr.current!==null?(e=df(e,s,l),Rn(e,t)||(Mt=!0),e):(Ti&42)===0||(Ti&1073741824)!==0&&(He&261930)===0?(Mt=!0,e.memoizedState=s):(e=Bg(),Ae.lanes|=e,rs|=e,t)}function Hp(e,t,s,l,o){var c=G.p;G.p=c!==0&&8>c?c:8;var h=z.T,y={};z.T=y,pf(e,!1,t,s);try{var R=o(),V=z.S;if(V!==null&&V(y,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var P=kE(R,l);na(e,t,P,Mn(e))}else na(e,t,l,Mn(e))}catch($){na(e,t,{then:function(){},status:"rejected",reason:$},Mn())}finally{G.p=c,h!==null&&y.types!==null&&(h.types=y.types),z.T=h}}function YE(){}function hf(e,t,s,l){if(e.tag!==5)throw Error(a(476));var o=qp(e).queue;Hp(e,o,t,I,s===null?YE:function(){return Yp(e),s(l)})}function qp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:I},next:null};var s={};return t.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ri,lastRenderedState:s},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Yp(e){var t=qp(e);t.next===null&&(t=e.alternate.memoizedState),na(e,t.next.queue,{},Mn())}function mf(){return Ft(ba)}function Vp(){return Ct().memoizedState}function Gp(){return Ct().memoizedState}function VE(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var s=Mn();e=$i(s);var l=es(t,e,s);l!==null&&(gn(l,t,s),Jl(l,t,s)),t={cache:Vc()},e.payload=t;return}t=t.return}}function GE(e,t,s){var l=Mn();s={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Lo(e)?Xp(t,s):(s=Nc(e,t,s,l),s!==null&&(gn(s,e,l),Kp(s,t,l)))}function Qp(e,t,s){var l=Mn();na(e,t,s,l)}function na(e,t,s,l){var o={lane:l,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(Lo(e))Xp(t,o);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,y=c(h,s);if(o.hasEagerState=!0,o.eagerState=y,Rn(y,h))return yo(e,t,o,0),ut===null&&go(),!1}catch{}finally{}if(s=Nc(e,t,o,l),s!==null)return gn(s,e,l),Kp(s,t,l),!0}return!1}function pf(e,t,s,l){if(l={lane:2,revertLane:Ff(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Lo(e)){if(t)throw Error(a(479))}else t=Nc(e,s,l,2),t!==null&&gn(t,e,2)}function Lo(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Xp(e,t){Qr=Mo=!0;var s=e.pending;s===null?t.next=t:(t.next=s.next,s.next=t),e.pending=t}function Kp(e,t,s){if((s&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,s|=l,t.lanes=s,br(e,s)}}var ia={readContext:Ft,use:zo,useCallback:Et,useContext:Et,useEffect:Et,useImperativeHandle:Et,useLayoutEffect:Et,useInsertionEffect:Et,useMemo:Et,useReducer:Et,useRef:Et,useState:Et,useDebugValue:Et,useDeferredValue:Et,useTransition:Et,useSyncExternalStore:Et,useId:Et,useHostTransitionStatus:Et,useFormState:Et,useActionState:Et,useOptimistic:Et,useMemoCache:Et,useCacheRefresh:Et};ia.useEffectEvent=Et;var Fp={readContext:Ft,use:zo,useCallback:function(e,t){return ln().memoizedState=[e,t===void 0?null:t],e},useContext:Ft,useEffect:Mp,useImperativeHandle:function(e,t,s){s=s!=null?s.concat([e]):null,ko(4194308,4,Up.bind(null,t,e),s)},useLayoutEffect:function(e,t){return ko(4194308,4,e,t)},useInsertionEffect:function(e,t){ko(4,2,e,t)},useMemo:function(e,t){var s=ln();t=t===void 0?null:t;var l=e();if(Ps){xn(!0);try{e()}finally{xn(!1)}}return s.memoizedState=[l,t],l},useReducer:function(e,t,s){var l=ln();if(s!==void 0){var o=s(t);if(Ps){xn(!0);try{s(t)}finally{xn(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=GE.bind(null,Ae,e),[l.memoizedState,e]},useRef:function(e){var t=ln();return e={current:e},t.memoizedState=e},useState:function(e){e=of(e);var t=e.queue,s=Qp.bind(null,Ae,t);return t.dispatch=s,[e.memoizedState,s]},useDebugValue:ff,useDeferredValue:function(e,t){var s=ln();return df(s,e,t)},useTransition:function(){var e=of(!1);return e=Hp.bind(null,Ae,e.queue,!0,!1),ln().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,s){var l=Ae,o=ln();if(Ge){if(s===void 0)throw Error(a(407));s=s()}else{if(s=t(),ut===null)throw Error(a(349));(He&127)!==0||mp(l,t,s)}o.memoizedState=s;var c={value:s,getSnapshot:t};return o.queue=c,Mp(gp.bind(null,l,c,e),[e]),l.flags|=2048,Kr(9,{destroy:void 0},pp.bind(null,l,c,s,t),null),s},useId:function(){var e=ln(),t=ut.identifierPrefix;if(Ge){var s=ri,l=si;s=(l&~(1<<32-Ht(l)-1)).toString(32)+s,t="_"+t+"R_"+s,s=No++,0<s&&(t+="H"+s.toString(32)),t+="_"}else s=jE++,t="_"+t+"r_"+s.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:mf,useFormState:Op,useActionState:Op,useOptimistic:function(e){var t=ln();t.memoizedState=t.baseState=e;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=s,t=pf.bind(null,Ae,!0,s),s.dispatch=t,[e,t]},useMemoCache:rf,useCacheRefresh:function(){return ln().memoizedState=VE.bind(null,Ae)},useEffectEvent:function(e){var t=ln(),s={impl:e};return t.memoizedState=s,function(){if((We&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}},gf={readContext:Ft,use:zo,useCallback:jp,useContext:Ft,useEffect:cf,useImperativeHandle:kp,useInsertionEffect:Dp,useLayoutEffect:zp,useMemo:Lp,useReducer:Uo,useRef:_p,useState:function(){return Uo(Ri)},useDebugValue:ff,useDeferredValue:function(e,t){var s=Ct();return Bp(s,rt.memoizedState,e,t)},useTransition:function(){var e=Uo(Ri)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:ta(e),t]},useSyncExternalStore:hp,useId:Vp,useHostTransitionStatus:mf,useFormState:wp,useActionState:wp,useOptimistic:function(e,t){var s=Ct();return bp(s,rt,e,t)},useMemoCache:rf,useCacheRefresh:Gp};gf.useEffectEvent=Np;var Zp={readContext:Ft,use:zo,useCallback:jp,useContext:Ft,useEffect:cf,useImperativeHandle:kp,useInsertionEffect:Dp,useLayoutEffect:zp,useMemo:Lp,useReducer:af,useRef:_p,useState:function(){return af(Ri)},useDebugValue:ff,useDeferredValue:function(e,t){var s=Ct();return rt===null?df(s,e,t):Bp(s,rt.memoizedState,e,t)},useTransition:function(){var e=af(Ri)[0],t=Ct().memoizedState;return[typeof e=="boolean"?e:ta(e),t]},useSyncExternalStore:hp,useId:Vp,useHostTransitionStatus:mf,useFormState:Ap,useActionState:Ap,useOptimistic:function(e,t){var s=Ct();return rt!==null?bp(s,rt,e,t):(s.baseState=e,[e,s.queue.dispatch])},useMemoCache:rf,useCacheRefresh:Gp};Zp.useEffectEvent=Np;function yf(e,t,s,l){t=e.memoizedState,s=s(l,t),s=s==null?t:b({},t,s),e.memoizedState=s,e.lanes===0&&(e.updateQueue.baseState=s)}var vf={enqueueSetState:function(e,t,s){e=e._reactInternals;var l=Mn(),o=$i(l);o.payload=t,s!=null&&(o.callback=s),t=es(e,o,l),t!==null&&(gn(t,e,l),Jl(t,e,l))},enqueueReplaceState:function(e,t,s){e=e._reactInternals;var l=Mn(),o=$i(l);o.tag=1,o.payload=t,s!=null&&(o.callback=s),t=es(e,o,l),t!==null&&(gn(t,e,l),Jl(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var s=Mn(),l=$i(s);l.tag=2,t!=null&&(l.callback=t),t=es(e,l,s),t!==null&&(gn(t,e,s),Jl(t,e,s))}};function Pp(e,t,s,l,o,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,c,h):t.prototype&&t.prototype.isPureReactComponent?!Gl(s,l)||!Gl(o,c):!0}function Ip(e,t,s,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(s,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(s,l),t.state!==e&&vf.enqueueReplaceState(t,t.state,null)}function Is(e,t){var s=t;if("ref"in t){s={};for(var l in t)l!=="ref"&&(s[l]=t[l])}if(e=e.defaultProps){s===t&&(s=b({},s));for(var o in e)s[o]===void 0&&(s[o]=e[o])}return s}function Jp(e){po(e)}function Wp(e){console.error(e)}function $p(e){po(e)}function Bo(e,t){try{var s=e.onUncaughtError;s(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function eg(e,t,s){try{var l=e.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function bf(e,t,s){return s=$i(s),s.tag=3,s.payload={element:null},s.callback=function(){Bo(e,t)},s}function tg(e){return e=$i(e),e.tag=3,e}function ng(e,t,s,l){var o=s.type.getDerivedStateFromError;if(typeof o=="function"){var c=l.value;e.payload=function(){return o(c)},e.callback=function(){eg(t,s,l)}}var h=s.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){eg(t,s,l),typeof o!="function"&&(ls===null?ls=new Set([this]):ls.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function QE(e,t,s,l,o){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=s.alternate,t!==null&&Br(t,s,o,!0),s=wn.current,s!==null){switch(s.tag){case 31:case 13:return Vn===null?Io():s.alternate===null&&xt===0&&(xt=3),s.flags&=-257,s.flags|=65536,s.lanes=o,l===Oo?s.flags|=16384:(t=s.updateQueue,t===null?s.updateQueue=new Set([l]):t.add(l),Qf(e,l,o)),!1;case 22:return s.flags|=65536,l===Oo?s.flags|=16384:(t=s.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=t):(s=t.retryQueue,s===null?t.retryQueue=new Set([l]):s.add(l)),Qf(e,l,o)),!1}throw Error(a(435,s.tag))}return Qf(e,l,o),Io(),!1}if(Ge)return t=wn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Lc&&(e=Error(a(422),{cause:l}),Kl(Bn(e,s)))):(l!==Lc&&(t=Error(a(423),{cause:l}),Kl(Bn(t,s))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=Bn(l,s),o=bf(e.stateNode,l,o),Zc(e,o),xt!==4&&(xt=2)),!1;var c=Error(a(520),{cause:l});if(c=Bn(c,s),fa===null?fa=[c]:fa.push(c),xt!==4&&(xt=2),t===null)return!0;l=Bn(l,s),s=t;do{switch(s.tag){case 3:return s.flags|=65536,e=o&-o,s.lanes|=e,e=bf(s.stateNode,l,e),Zc(s,e),!1;case 1:if(t=s.type,c=s.stateNode,(s.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ls===null||!ls.has(c))))return s.flags|=65536,o&=-o,s.lanes|=o,o=tg(o),ng(o,e,s,l),Zc(s,o),!1}s=s.return}while(s!==null);return!1}var Sf=Error(a(461)),Mt=!1;function Zt(e,t,s,l){t.child=e===null?lp(t,null,s,l):Zs(t,e.child,s,l)}function ig(e,t,s,l,o){s=s.render;var c=t.ref;if("ref"in l){var h={};for(var y in l)y!=="ref"&&(h[y]=l[y])}else h=l;return Qs(t),l=ef(e,t,s,h,c,o),y=tf(),e!==null&&!Mt?(nf(e,t,o),Oi(e,t,o)):(Ge&&y&&kc(t),t.flags|=1,Zt(e,t,l,o),t.child)}function sg(e,t,s,l,o){if(e===null){var c=s.type;return typeof c=="function"&&!Dc(c)&&c.defaultProps===void 0&&s.compare===null?(t.tag=15,t.type=c,rg(e,t,c,l,o)):(e=bo(s.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Af(e,o)){var h=c.memoizedProps;if(s=s.compare,s=s!==null?s:Gl,s(h,l)&&e.ref===t.ref)return Oi(e,t,o)}return t.flags|=1,e=bi(c,l),e.ref=t.ref,e.return=t,t.child=e}function rg(e,t,s,l,o){if(e!==null){var c=e.memoizedProps;if(Gl(c,l)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=l=c,Af(e,o))(e.flags&131072)!==0&&(Mt=!0);else return t.lanes=e.lanes,Oi(e,t,o)}return Ef(e,t,s,l,o)}function lg(e,t,s,l){var o=l.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|s:s,e!==null){for(l=t.child=e.child,o=0;l!==null;)o=o|l.lanes|l.childLanes,l=l.sibling;l=o&~c}else l=0,t.child=null;return ag(e,t,c,s,l)}if((s&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&To(t,c!==null?c.cachePool:null),c!==null?up(t,c):Ic(),cp(t);else return l=t.lanes=536870912,ag(e,t,c!==null?c.baseLanes|s:s,s,l)}else c!==null?(To(t,c.cachePool),up(t,c),ns(),t.memoizedState=null):(e!==null&&To(t,null),Ic(),ns());return Zt(e,t,o,s),t.child}function sa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function ag(e,t,s,l,o){var c=Qc();return c=c===null?null:{parent:At._currentValue,pool:c},t.memoizedState={baseLanes:s,cachePool:c},e!==null&&To(t,null),Ic(),cp(t),e!==null&&Br(e,t,l,!0),t.childLanes=o,null}function Ho(e,t){return t=Yo({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function og(e,t,s){return Zs(t,e.child,null,s),e=Ho(t,t.pendingProps),e.flags|=2,Cn(t),t.memoizedState=null,e}function XE(e,t,s){var l=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ge){if(l.mode==="hidden")return e=Ho(t,l),t.lanes=536870912,sa(null,e);if(Wc(t),(e=gt)?(e=Sy(e,Yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:si,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},s=Xm(e),s.return=t,t.child=s,Kt=t,gt=null)):e=null,e===null)throw Ii(t);return t.lanes=536870912,null}return Ho(t,l)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Wc(t),o)if(t.flags&256)t.flags&=-257,t=og(e,t,s);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(a(558));else if(Mt||Br(e,t,s,!1),o=(s&e.childLanes)!==0,Mt||o){if(l=ut,l!==null&&(h=$a(l,s),h!==0&&h!==c.retryLane))throw c.retryLane=h,qs(e,h),gn(l,e,h),Sf;Io(),t=og(e,t,s)}else e=c.treeContext,gt=Gn(h.nextSibling),Kt=t,Ge=!0,Pi=null,Yn=!1,e!==null&&Zm(t,e),t=Ho(t,l),t.flags|=4096;return t}return e=bi(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qo(e,t){var s=t.ref;if(s===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(a(284));(e===null||e.ref!==s)&&(t.flags|=4194816)}}function Ef(e,t,s,l,o){return Qs(t),s=ef(e,t,s,l,void 0,o),l=tf(),e!==null&&!Mt?(nf(e,t,o),Oi(e,t,o)):(Ge&&l&&kc(t),t.flags|=1,Zt(e,t,s,o),t.child)}function ug(e,t,s,l,o,c){return Qs(t),t.updateQueue=null,s=dp(t,l,s,o),fp(e),l=tf(),e!==null&&!Mt?(nf(e,t,c),Oi(e,t,c)):(Ge&&l&&kc(t),t.flags|=1,Zt(e,t,s,c),t.child)}function cg(e,t,s,l,o){if(Qs(t),t.stateNode===null){var c=Ur,h=s.contextType;typeof h=="object"&&h!==null&&(c=Ft(h)),c=new s(l,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=vf,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=l,c.state=t.memoizedState,c.refs={},Kc(t),h=s.contextType,c.context=typeof h=="object"&&h!==null?Ft(h):Ur,c.state=t.memoizedState,h=s.getDerivedStateFromProps,typeof h=="function"&&(yf(t,s,h,l),c.state=t.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&vf.enqueueReplaceState(c,c.state,null),$l(t,l,c,o),Wl(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,R=Is(s,y);c.props=R;var V=c.context,P=s.contextType;h=Ur,typeof P=="object"&&P!==null&&(h=Ft(P));var $=s.getDerivedStateFromProps;P=typeof $=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,P||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||V!==h)&&Ip(t,c,l,h),Wi=!1;var Q=t.memoizedState;c.state=Q,$l(t,l,c,o),Wl(),V=t.memoizedState,y||Q!==V||Wi?(typeof $=="function"&&(yf(t,s,$,l),V=t.memoizedState),(R=Wi||Pp(t,s,R,l,Q,V,h))?(P||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=V),c.props=l,c.state=V,c.context=h,l=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{c=t.stateNode,Fc(e,t),h=t.memoizedProps,P=Is(s,h),c.props=P,$=t.pendingProps,Q=c.context,V=s.contextType,R=Ur,typeof V=="object"&&V!==null&&(R=Ft(V)),y=s.getDerivedStateFromProps,(V=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==$||Q!==R)&&Ip(t,c,l,R),Wi=!1,Q=t.memoizedState,c.state=Q,$l(t,l,c,o),Wl();var F=t.memoizedState;h!==$||Q!==F||Wi||e!==null&&e.dependencies!==null&&Eo(e.dependencies)?(typeof y=="function"&&(yf(t,s,y,l),F=t.memoizedState),(P=Wi||Pp(t,s,P,l,Q,F,R)||e!==null&&e.dependencies!==null&&Eo(e.dependencies))?(V||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,F,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,F,R)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=F),c.props=l,c.state=F,c.context=R,l=P):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&Q===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&Q===e.memoizedState||(t.flags|=1024),l=!1)}return c=l,qo(e,t),l=(t.flags&128)!==0,c||l?(c=t.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&l?(t.child=Zs(t,e.child,null,o),t.child=Zs(t,null,s,o)):Zt(e,t,s,o),t.memoizedState=c.state,e=t.child):e=Oi(e,t,o),e}function fg(e,t,s,l){return Vs(),t.flags|=256,Zt(e,t,s,l),t.child}var xf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Tf(e){return{baseLanes:e,cachePool:ep()}}function Rf(e,t,s){return e=e!==null?e.childLanes&~s:0,t&&(e|=_n),e}function dg(e,t,s){var l=t.pendingProps,o=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(wt.current&2)!==0),h&&(o=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ge){if(o?ts(t):ns(),(e=gt)?(e=Sy(e,Yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:si,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},s=Xm(e),s.return=t,t.child=s,Kt=t,gt=null)):e=null,e===null)throw Ii(t);return ld(e)?t.lanes=32:t.lanes=536870912,null}var y=l.children;return l=l.fallback,o?(ns(),o=t.mode,y=Yo({mode:"hidden",children:y},o),l=Ys(l,o,s,null),y.return=t,l.return=t,y.sibling=l,t.child=y,l=t.child,l.memoizedState=Tf(s),l.childLanes=Rf(e,h,s),t.memoizedState=xf,sa(null,l)):(ts(t),Of(t,y))}var R=e.memoizedState;if(R!==null&&(y=R.dehydrated,y!==null)){if(c)t.flags&256?(ts(t),t.flags&=-257,t=wf(e,t,s)):t.memoizedState!==null?(ns(),t.child=e.child,t.flags|=128,t=null):(ns(),y=l.fallback,o=t.mode,l=Yo({mode:"visible",children:l.children},o),y=Ys(y,o,s,null),y.flags|=2,l.return=t,y.return=t,l.sibling=y,t.child=l,Zs(t,e.child,null,s),l=t.child,l.memoizedState=Tf(s),l.childLanes=Rf(e,h,s),t.memoizedState=xf,t=sa(null,l));else if(ts(t),ld(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var V=h.dgst;h=V,l=Error(a(419)),l.stack="",l.digest=h,Kl({value:l,source:null,stack:null}),t=wf(e,t,s)}else if(Mt||Br(e,t,s,!1),h=(s&e.childLanes)!==0,Mt||h){if(h=ut,h!==null&&(l=$a(h,s),l!==0&&l!==R.retryLane))throw R.retryLane=l,qs(e,l),gn(h,e,l),Sf;rd(y)||Io(),t=wf(e,t,s)}else rd(y)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,gt=Gn(y.nextSibling),Kt=t,Ge=!0,Pi=null,Yn=!1,e!==null&&Zm(t,e),t=Of(t,l.children),t.flags|=4096);return t}return o?(ns(),y=l.fallback,o=t.mode,R=e.child,V=R.sibling,l=bi(R,{mode:"hidden",children:l.children}),l.subtreeFlags=R.subtreeFlags&65011712,V!==null?y=bi(V,y):(y=Ys(y,o,s,null),y.flags|=2),y.return=t,l.return=t,l.sibling=y,t.child=l,sa(null,l),l=t.child,y=e.child.memoizedState,y===null?y=Tf(s):(o=y.cachePool,o!==null?(R=At._currentValue,o=o.parent!==R?{parent:R,pool:R}:o):o=ep(),y={baseLanes:y.baseLanes|s,cachePool:o}),l.memoizedState=y,l.childLanes=Rf(e,h,s),t.memoizedState=xf,sa(e.child,l)):(ts(t),s=e.child,e=s.sibling,s=bi(s,{mode:"visible",children:l.children}),s.return=t,s.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=s,t.memoizedState=null,s)}function Of(e,t){return t=Yo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Yo(e,t){return e=On(22,e,null,t),e.lanes=0,e}function wf(e,t,s){return Zs(t,e.child,null,s),e=Of(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function hg(e,t,s){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),qc(e.return,t,s)}function Cf(e,t,s,l,o,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:o,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=s,h.tailMode=o,h.treeForkCount=c)}function mg(e,t,s){var l=t.pendingProps,o=l.revealOrder,c=l.tail;l=l.children;var h=wt.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,te(wt,h),Zt(e,t,l,s),l=Ge?Xl:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&hg(e,s,t);else if(e.tag===19)hg(e,s,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(o){case"forwards":for(s=t.child,o=null;s!==null;)e=s.alternate,e!==null&&_o(e)===null&&(o=s),s=s.sibling;s=o,s===null?(o=t.child,t.child=null):(o=s.sibling,s.sibling=null),Cf(t,!1,o,s,c,l);break;case"backwards":case"unstable_legacy-backwards":for(s=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&_o(e)===null){t.child=o;break}e=o.sibling,o.sibling=s,s=o,o=e}Cf(t,!0,s,null,c,l);break;case"together":Cf(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function Oi(e,t,s){if(e!==null&&(t.dependencies=e.dependencies),rs|=t.lanes,(s&t.childLanes)===0)if(e!==null){if(Br(e,t,s,!1),(s&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(a(153));if(t.child!==null){for(e=t.child,s=bi(e,e.pendingProps),t.child=s,s.return=t;e.sibling!==null;)e=e.sibling,s=s.sibling=bi(e,e.pendingProps),s.return=t;s.sibling=null}return t.child}function Af(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Eo(e)))}function KE(e,t,s){switch(t.tag){case 3:ue(t,t.stateNode.containerInfo),Ji(t,At,e.memoizedState.cache),Vs();break;case 27:case 5:Ze(t);break;case 4:ue(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Wc(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ts(t),t.flags|=128,null):(s&t.child.childLanes)!==0?dg(e,t,s):(ts(t),e=Oi(e,t,s),e!==null?e.sibling:null);ts(t);break;case 19:var o=(e.flags&128)!==0;if(l=(s&t.childLanes)!==0,l||(Br(e,t,s,!1),l=(s&t.childLanes)!==0),o){if(l)return mg(e,t,s);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),te(wt,wt.current),l)break;return null;case 22:return t.lanes=0,lg(e,t,s,t.pendingProps);case 24:Ji(t,At,e.memoizedState.cache)}return Oi(e,t,s)}function pg(e,t,s){if(e!==null)if(e.memoizedProps!==t.pendingProps)Mt=!0;else{if(!Af(e,s)&&(t.flags&128)===0)return Mt=!1,KE(e,t,s);Mt=(e.flags&131072)!==0}else Mt=!1,Ge&&(t.flags&1048576)!==0&&Fm(t,Xl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Ks(t.elementType),t.type=e,typeof e=="function")Dc(e)?(l=Is(e,l),t.tag=1,t=cg(null,t,e,l,s)):(t.tag=0,t=Ef(null,t,e,l,s));else{if(e!=null){var o=e.$$typeof;if(o===A){t.tag=11,t=ig(null,t,e,l,s);break e}else if(o===q){t.tag=14,t=sg(null,t,e,l,s);break e}}throw t=oe(e)||e,Error(a(306,t,""))}}return t;case 0:return Ef(e,t,t.type,t.pendingProps,s);case 1:return l=t.type,o=Is(l,t.pendingProps),cg(e,t,l,o,s);case 3:e:{if(ue(t,t.stateNode.containerInfo),e===null)throw Error(a(387));l=t.pendingProps;var c=t.memoizedState;o=c.element,Fc(e,t),$l(t,l,null,s);var h=t.memoizedState;if(l=h.cache,Ji(t,At,l),l!==c.cache&&Yc(t,[At],s,!0),Wl(),l=h.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=fg(e,t,l,s);break e}else if(l!==o){o=Bn(Error(a(424)),t),Kl(o),t=fg(e,t,l,s);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(gt=Gn(e.firstChild),Kt=t,Ge=!0,Pi=null,Yn=!0,s=lp(t,null,l,s),t.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(Vs(),l===o){t=Oi(e,t,s);break e}Zt(e,t,l,s)}t=t.child}return t;case 26:return qo(e,t),e===null?(s=wy(t.type,null,t.pendingProps,null))?t.memoizedState=s:Ge||(s=t.type,e=t.pendingProps,l=iu(ee.current).createElement(s),l[kt]=t,l[$t]=e,Pt(l,s,e),Yt(l),t.stateNode=l):t.memoizedState=wy(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ze(t),e===null&&Ge&&(l=t.stateNode=Ty(t.type,t.pendingProps,ee.current),Kt=t,Yn=!0,o=gt,cs(t.type)?(ad=o,gt=Gn(l.firstChild)):gt=o),Zt(e,t,t.pendingProps.children,s),qo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ge&&((o=l=gt)&&(l=xx(l,t.type,t.pendingProps,Yn),l!==null?(t.stateNode=l,Kt=t,gt=Gn(l.firstChild),Yn=!1,o=!0):o=!1),o||Ii(t)),Ze(t),o=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,l=c.children,nd(o,c)?l=null:h!==null&&nd(o,h)&&(t.flags|=32),t.memoizedState!==null&&(o=ef(e,t,LE,null,null,s),ba._currentValue=o),qo(e,t),Zt(e,t,l,s),t.child;case 6:return e===null&&Ge&&((e=s=gt)&&(s=Tx(s,t.pendingProps,Yn),s!==null?(t.stateNode=s,Kt=t,gt=null,e=!0):e=!1),e||Ii(t)),null;case 13:return dg(e,t,s);case 4:return ue(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Zs(t,null,l,s):Zt(e,t,l,s),t.child;case 11:return ig(e,t,t.type,t.pendingProps,s);case 7:return Zt(e,t,t.pendingProps,s),t.child;case 8:return Zt(e,t,t.pendingProps.children,s),t.child;case 12:return Zt(e,t,t.pendingProps.children,s),t.child;case 10:return l=t.pendingProps,Ji(t,t.type,l.value),Zt(e,t,l.children,s),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Qs(t),o=Ft(o),l=l(o),t.flags|=1,Zt(e,t,l,s),t.child;case 14:return sg(e,t,t.type,t.pendingProps,s);case 15:return rg(e,t,t.type,t.pendingProps,s);case 19:return mg(e,t,s);case 31:return XE(e,t,s);case 22:return lg(e,t,s,t.pendingProps);case 24:return Qs(t),l=Ft(At),e===null?(o=Qc(),o===null&&(o=ut,c=Vc(),o.pooledCache=c,c.refCount++,c!==null&&(o.pooledCacheLanes|=s),o=c),t.memoizedState={parent:l,cache:o},Kc(t),Ji(t,At,o)):((e.lanes&s)!==0&&(Fc(e,t),$l(t,null,null,s),Wl()),o=e.memoizedState,c=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Ji(t,At,l)):(l=c.cache,Ji(t,At,l),l!==o.cache&&Yc(t,[At],s,!0))),Zt(e,t,t.pendingProps.children,s),t.child;case 29:throw t.pendingProps}throw Error(a(156,t.tag))}function wi(e){e.flags|=4}function _f(e,t,s,l,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(Vg())e.flags|=8192;else throw Fs=Oo,Xc}else e.flags&=-16777217}function gg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ny(t))if(Vg())e.flags|=8192;else throw Fs=Oo,Xc}function Vo(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ni():536870912,e.lanes|=t,Ir|=t)}function ra(e,t){if(!Ge)switch(e.tailMode){case"hidden":t=e.tail;for(var s=null;t!==null;)t.alternate!==null&&(s=t),t=t.sibling;s===null?e.tail=null:s.sibling=null;break;case"collapsed":s=e.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function yt(e){var t=e.alternate!==null&&e.alternate.child===e.child,s=0,l=0;if(t)for(var o=e.child;o!==null;)s|=o.lanes|o.childLanes,l|=o.subtreeFlags&65011712,l|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)s|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=s,t}function FE(e,t,s){var l=t.pendingProps;switch(jc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(t),null;case 1:return yt(t),null;case 3:return s=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),xi(At),de(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Lr(t)?wi(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Bc())),yt(t),null;case 26:var o=t.type,c=t.memoizedState;return e===null?(wi(t),c!==null?(yt(t),gg(t,c)):(yt(t),_f(t,o,null,l,s))):c?c!==e.memoizedState?(wi(t),yt(t),gg(t,c)):(yt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&wi(t),yt(t),_f(t,o,e,l,s)),null;case 27:if(nt(t),s=ee.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wi(t);else{if(!l){if(t.stateNode===null)throw Error(a(166));return yt(t),null}e=ie.current,Lr(t)?Pm(t):(e=Ty(o,l,s),t.stateNode=e,wi(t))}return yt(t),null;case 5:if(nt(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&wi(t);else{if(!l){if(t.stateNode===null)throw Error(a(166));return yt(t),null}if(c=ie.current,Lr(t))Pm(t);else{var h=iu(ee.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?h.createElement("select",{is:l.is}):h.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?h.createElement(o,{is:l.is}):h.createElement(o)}}c[kt]=t,c[$t]=l;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(Pt(c,o,l),o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&wi(t)}}return yt(t),_f(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,s),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&wi(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(a(166));if(e=ee.current,Lr(t)){if(e=t.stateNode,s=t.memoizedProps,l=null,o=Kt,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[kt]=t,e=!!(e.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||dy(e.nodeValue,s)),e||Ii(t,!0)}else e=iu(e).createTextNode(l),e[kt]=t,t.stateNode=e}return yt(t),null;case 31:if(s=t.memoizedState,e===null||e.memoizedState!==null){if(l=Lr(t),s!==null){if(e===null){if(!l)throw Error(a(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(a(557));e[kt]=t}else Vs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yt(t),e=!1}else s=Bc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),e=!0;if(!e)return t.flags&256?(Cn(t),t):(Cn(t),null);if((t.flags&128)!==0)throw Error(a(558))}return yt(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Lr(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(a(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(a(317));o[kt]=t}else Vs(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;yt(t),o=!1}else o=Bc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Cn(t),t):(Cn(t),null)}return Cn(t),(t.flags&128)!==0?(t.lanes=s,t):(s=l!==null,e=e!==null&&e.memoizedState!==null,s&&(l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==o&&(l.flags|=2048)),s!==e&&s&&(t.child.flags|=8192),Vo(t,t.updateQueue),yt(t),null);case 4:return de(),e===null&&Jf(t.stateNode.containerInfo),yt(t),null;case 10:return xi(t.type),yt(t),null;case 19:if(B(wt),l=t.memoizedState,l===null)return yt(t),null;if(o=(t.flags&128)!==0,c=l.rendering,c===null)if(o)ra(l,!1);else{if(xt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=_o(e),c!==null){for(t.flags|=128,ra(l,!1),e=c.updateQueue,t.updateQueue=e,Vo(t,e),t.subtreeFlags=0,e=s,s=t.child;s!==null;)Qm(s,e),s=s.sibling;return te(wt,wt.current&1|2),Ge&&Si(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&ce()>Fo&&(t.flags|=128,o=!0,ra(l,!1),t.lanes=4194304)}else{if(!o)if(e=_o(c),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Vo(t,e),ra(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Ge)return yt(t),null}else 2*ce()-l.renderingStartTime>Fo&&s!==536870912&&(t.flags|=128,o=!0,ra(l,!1),t.lanes=4194304);l.isBackwards?(c.sibling=t.child,t.child=c):(e=l.last,e!==null?e.sibling=c:t.child=c,l.last=c)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=ce(),e.sibling=null,s=wt.current,te(wt,o?s&1|2:s&1),Ge&&Si(t,l.treeForkCount),e):(yt(t),null);case 22:case 23:return Cn(t),Jc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(s&536870912)!==0&&(t.flags&128)===0&&(yt(t),t.subtreeFlags&6&&(t.flags|=8192)):yt(t),s=t.updateQueue,s!==null&&Vo(t,s.retryQueue),s=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==s&&(t.flags|=2048),e!==null&&B(Xs),null;case 24:return s=null,e!==null&&(s=e.memoizedState.cache),t.memoizedState.cache!==s&&(t.flags|=2048),xi(At),yt(t),null;case 25:return null;case 30:return null}throw Error(a(156,t.tag))}function ZE(e,t){switch(jc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xi(At),de(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return nt(t),null;case 31:if(t.memoizedState!==null){if(Cn(t),t.alternate===null)throw Error(a(340));Vs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Cn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(a(340));Vs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(wt),null;case 4:return de(),null;case 10:return xi(t.type),null;case 22:case 23:return Cn(t),Jc(),e!==null&&B(Xs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xi(At),null;case 25:return null;default:return null}}function yg(e,t){switch(jc(t),t.tag){case 3:xi(At),de();break;case 26:case 27:case 5:nt(t);break;case 4:de();break;case 31:t.memoizedState!==null&&Cn(t);break;case 13:Cn(t);break;case 19:B(wt);break;case 10:xi(t.type);break;case 22:case 23:Cn(t),Jc(),e!==null&&B(Xs);break;case 24:xi(At)}}function la(e,t){try{var s=t.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var o=l.next;s=o;do{if((s.tag&e)===e){l=void 0;var c=s.create,h=s.inst;l=c(),h.destroy=l}s=s.next}while(s!==o)}}catch(y){st(t,t.return,y)}}function is(e,t,s){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var c=o.next;l=c;do{if((l.tag&e)===e){var h=l.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,o=t;var R=s,V=y;try{V()}catch(P){st(o,R,P)}}}l=l.next}while(l!==c)}}catch(P){st(t,t.return,P)}}function vg(e){var t=e.updateQueue;if(t!==null){var s=e.stateNode;try{op(t,s)}catch(l){st(e,e.return,l)}}}function bg(e,t,s){s.props=Is(e.type,e.memoizedProps),s.state=e.memoizedState;try{s.componentWillUnmount()}catch(l){st(e,t,l)}}function aa(e,t){try{var s=e.ref;if(s!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof s=="function"?e.refCleanup=s(l):s.current=l}}catch(o){st(e,t,o)}}function li(e,t){var s=e.ref,l=e.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(o){st(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(o){st(e,t,o)}else s.current=null}function Sg(e){var t=e.type,s=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(o){st(e,e.return,o)}}function Mf(e,t,s){try{var l=e.stateNode;gx(l,e.type,s,t),l[$t]=t}catch(o){st(e,e.return,o)}}function Eg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cs(e.type)||e.tag===4}function Nf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Eg(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&&cs(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 Df(e,t,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(e,t):(t=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,t.appendChild(e),s=s._reactRootContainer,s!=null||t.onclick!==null||(t.onclick=yi));else if(l!==4&&(l===27&&cs(e.type)&&(s=e.stateNode,t=null),e=e.child,e!==null))for(Df(e,t,s),e=e.sibling;e!==null;)Df(e,t,s),e=e.sibling}function Go(e,t,s){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?s.insertBefore(e,t):s.appendChild(e);else if(l!==4&&(l===27&&cs(e.type)&&(s=e.stateNode),e=e.child,e!==null))for(Go(e,t,s),e=e.sibling;e!==null;)Go(e,t,s),e=e.sibling}function xg(e){var t=e.stateNode,s=e.memoizedProps;try{for(var l=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);Pt(t,l,s),t[kt]=e,t[$t]=s}catch(c){st(e,e.return,c)}}var Ci=!1,Nt=!1,zf=!1,Tg=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function PE(e,t){if(e=e.containerInfo,ed=cu,e=km(e),Oc(e)){if("selectionStart"in e)var s={start:e.selectionStart,end:e.selectionEnd};else e:{s=(s=e.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var o=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{s.nodeType,c.nodeType}catch{s=null;break e}var h=0,y=-1,R=-1,V=0,P=0,$=e,Q=null;t:for(;;){for(var F;$!==s||o!==0&&$.nodeType!==3||(y=h+o),$!==c||l!==0&&$.nodeType!==3||(R=h+l),$.nodeType===3&&(h+=$.nodeValue.length),(F=$.firstChild)!==null;)Q=$,$=F;for(;;){if($===e)break t;if(Q===s&&++V===o&&(y=h),Q===c&&++P===l&&(R=h),(F=$.nextSibling)!==null)break;$=Q,Q=$.parentNode}$=F}s=y===-1||R===-1?null:{start:y,end:R}}else s=null}s=s||{start:0,end:0}}else s=null;for(td={focusedElem:e,selectionRange:s},cu=!1,Vt=t;Vt!==null;)if(t=Vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Vt=e;else for(;Vt!==null;){switch(t=Vt,c=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(s=0;s<e.length;s++)o=e[s],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,s=t,o=c.memoizedProps,c=c.memoizedState,l=s.stateNode;try{var ye=Is(s.type,o);e=l.getSnapshotBeforeUpdate(ye,c),l.__reactInternalSnapshotBeforeUpdate=e}catch(Re){st(s,s.return,Re)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,s=e.nodeType,s===9)sd(e);else if(s===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sd(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(a(163))}if(e=t.sibling,e!==null){e.return=t.return,Vt=e;break}Vt=t.return}}function Rg(e,t,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:_i(e,s),l&4&&la(5,s);break;case 1:if(_i(e,s),l&4)if(e=s.stateNode,t===null)try{e.componentDidMount()}catch(h){st(s,s.return,h)}else{var o=Is(s.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){st(s,s.return,h)}}l&64&&vg(s),l&512&&aa(s,s.return);break;case 3:if(_i(e,s),l&64&&(e=s.updateQueue,e!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{op(e,t)}catch(h){st(s,s.return,h)}}break;case 27:t===null&&l&4&&xg(s);case 26:case 5:_i(e,s),t===null&&l&4&&Sg(s),l&512&&aa(s,s.return);break;case 12:_i(e,s);break;case 31:_i(e,s),l&4&&Cg(e,s);break;case 13:_i(e,s),l&4&&Ag(e,s),l&64&&(e=s.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=sx.bind(null,s),Rx(e,s))));break;case 22:if(l=s.memoizedState!==null||Ci,!l){t=t!==null&&t.memoizedState!==null||Nt,o=Ci;var c=Nt;Ci=l,(Nt=t)&&!c?Mi(e,s,(s.subtreeFlags&8772)!==0):_i(e,s),Ci=o,Nt=c}break;case 30:break;default:_i(e,s)}}function Og(e){var t=e.alternate;t!==null&&(e.alternate=null,Og(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&oc(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 vt=null,dn=!1;function Ai(e,t,s){for(s=s.child;s!==null;)wg(e,t,s),s=s.sibling}function wg(e,t,s){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(on,s)}catch{}switch(s.tag){case 26:Nt||li(s,t),Ai(e,t,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Nt||li(s,t);var l=vt,o=dn;cs(s.type)&&(vt=s.stateNode,dn=!1),Ai(e,t,s),ga(s.stateNode),vt=l,dn=o;break;case 5:Nt||li(s,t);case 6:if(l=vt,o=dn,vt=null,Ai(e,t,s),vt=l,dn=o,vt!==null)if(dn)try{(vt.nodeType===9?vt.body:vt.nodeName==="HTML"?vt.ownerDocument.body:vt).removeChild(s.stateNode)}catch(c){st(s,t,c)}else try{vt.removeChild(s.stateNode)}catch(c){st(s,t,c)}break;case 18:vt!==null&&(dn?(e=vt,vy(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,s.stateNode),sl(e)):vy(vt,s.stateNode));break;case 4:l=vt,o=dn,vt=s.stateNode.containerInfo,dn=!0,Ai(e,t,s),vt=l,dn=o;break;case 0:case 11:case 14:case 15:is(2,s,t),Nt||is(4,s,t),Ai(e,t,s);break;case 1:Nt||(li(s,t),l=s.stateNode,typeof l.componentWillUnmount=="function"&&bg(s,t,l)),Ai(e,t,s);break;case 21:Ai(e,t,s);break;case 22:Nt=(l=Nt)||s.memoizedState!==null,Ai(e,t,s),Nt=l;break;default:Ai(e,t,s)}}function Cg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{sl(e)}catch(s){st(t,t.return,s)}}}function Ag(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{sl(e)}catch(s){st(t,t.return,s)}}function IE(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Tg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Tg),t;default:throw Error(a(435,e.tag))}}function Qo(e,t){var s=IE(e);t.forEach(function(l){if(!s.has(l)){s.add(l);var o=rx.bind(null,e,l);l.then(o,o)}})}function hn(e,t){var s=t.deletions;if(s!==null)for(var l=0;l<s.length;l++){var o=s[l],c=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(cs(y.type)){vt=y.stateNode,dn=!1;break e}break;case 5:vt=y.stateNode,dn=!1;break e;case 3:case 4:vt=y.stateNode.containerInfo,dn=!0;break e}y=y.return}if(vt===null)throw Error(a(160));wg(c,h,o),vt=null,dn=!1,c=o.alternate,c!==null&&(c.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_g(t,e),t=t.sibling}var Pn=null;function _g(e,t){var s=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hn(t,e),mn(e),l&4&&(is(3,e,e.return),la(3,e),is(5,e,e.return));break;case 1:hn(t,e),mn(e),l&512&&(Nt||s===null||li(s,s.return)),l&64&&Ci&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(s=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var o=Pn;if(hn(t,e),mn(e),l&512&&(Nt||s===null||li(s,s.return)),l&4){var c=s!==null?s.memoizedState:null;if(l=e.memoizedState,s===null)if(l===null)if(e.stateNode===null){e:{l=e.type,s=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":c=o.getElementsByTagName("title")[0],(!c||c[Ul]||c[kt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=o.createElement(l),o.head.insertBefore(c,o.querySelector("head > title"))),Pt(c,l,s),c[kt]=e,Yt(c),l=c;break e;case"link":var h=_y("link","href",o).get(l+(s.href||""));if(h){for(var y=0;y<h.length;y++)if(c=h[y],c.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&c.getAttribute("rel")===(s.rel==null?null:s.rel)&&c.getAttribute("title")===(s.title==null?null:s.title)&&c.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){h.splice(y,1);break t}}c=o.createElement(l),Pt(c,l,s),o.head.appendChild(c);break;case"meta":if(h=_y("meta","content",o).get(l+(s.content||""))){for(y=0;y<h.length;y++)if(c=h[y],c.getAttribute("content")===(s.content==null?null:""+s.content)&&c.getAttribute("name")===(s.name==null?null:s.name)&&c.getAttribute("property")===(s.property==null?null:s.property)&&c.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&c.getAttribute("charset")===(s.charSet==null?null:s.charSet)){h.splice(y,1);break t}}c=o.createElement(l),Pt(c,l,s),o.head.appendChild(c);break;default:throw Error(a(468,l))}c[kt]=e,Yt(c),l=c}e.stateNode=l}else My(o,e.type,e.stateNode);else e.stateNode=Ay(o,l,e.memoizedProps);else c!==l?(c===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):c.count--,l===null?My(o,e.type,e.stateNode):Ay(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Mf(e,e.memoizedProps,s.memoizedProps)}break;case 27:hn(t,e),mn(e),l&512&&(Nt||s===null||li(s,s.return)),s!==null&&l&4&&Mf(e,e.memoizedProps,s.memoizedProps);break;case 5:if(hn(t,e),mn(e),l&512&&(Nt||s===null||li(s,s.return)),e.flags&32){o=e.stateNode;try{Cr(o,"")}catch(ye){st(e,e.return,ye)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Mf(e,o,s!==null?s.memoizedProps:o)),l&1024&&(zf=!0);break;case 6:if(hn(t,e),mn(e),l&4){if(e.stateNode===null)throw Error(a(162));l=e.memoizedProps,s=e.stateNode;try{s.nodeValue=l}catch(ye){st(e,e.return,ye)}}break;case 3:if(lu=null,o=Pn,Pn=su(t.containerInfo),hn(t,e),Pn=o,mn(e),l&4&&s!==null&&s.memoizedState.isDehydrated)try{sl(t.containerInfo)}catch(ye){st(e,e.return,ye)}zf&&(zf=!1,Mg(e));break;case 4:l=Pn,Pn=su(e.stateNode.containerInfo),hn(t,e),mn(e),Pn=l;break;case 12:hn(t,e),mn(e);break;case 31:hn(t,e),mn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qo(e,l)));break;case 13:hn(t,e),mn(e),e.child.flags&8192&&e.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(Ko=ce()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qo(e,l)));break;case 22:o=e.memoizedState!==null;var R=s!==null&&s.memoizedState!==null,V=Ci,P=Nt;if(Ci=V||o,Nt=P||R,hn(t,e),Nt=P,Ci=V,mn(e),l&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(s===null||R||Ci||Nt||Js(e)),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){R=s=t;try{if(c=R.stateNode,o)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=R.stateNode;var $=R.memoizedProps.style,Q=$!=null&&$.hasOwnProperty("display")?$.display:null;y.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(ye){st(R,R.return,ye)}}}else if(t.tag===6){if(s===null){R=t;try{R.stateNode.nodeValue=o?"":R.memoizedProps}catch(ye){st(R,R.return,ye)}}}else if(t.tag===18){if(s===null){R=t;try{var F=R.stateNode;o?by(F,!0):by(R.stateNode,!1)}catch(ye){st(R,R.return,ye)}}}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;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Qo(e,s))));break;case 19:hn(t,e),mn(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Qo(e,l)));break;case 30:break;case 21:break;default:hn(t,e),mn(e)}}function mn(e){var t=e.flags;if(t&2){try{for(var s,l=e.return;l!==null;){if(Eg(l)){s=l;break}l=l.return}if(s==null)throw Error(a(160));switch(s.tag){case 27:var o=s.stateNode,c=Nf(e);Go(e,c,o);break;case 5:var h=s.stateNode;s.flags&32&&(Cr(h,""),s.flags&=-33);var y=Nf(e);Go(e,y,h);break;case 3:case 4:var R=s.stateNode.containerInfo,V=Nf(e);Df(e,V,R);break;default:throw Error(a(161))}}catch(P){st(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Mg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Mg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function _i(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rg(e,t.alternate,t),t=t.sibling}function Js(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:is(4,t,t.return),Js(t);break;case 1:li(t,t.return);var s=t.stateNode;typeof s.componentWillUnmount=="function"&&bg(t,t.return,s),Js(t);break;case 27:ga(t.stateNode);case 26:case 5:li(t,t.return),Js(t);break;case 22:t.memoizedState===null&&Js(t);break;case 30:Js(t);break;default:Js(t)}e=e.sibling}}function Mi(e,t,s){for(s=s&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:Mi(o,c,s),la(4,c);break;case 1:if(Mi(o,c,s),l=c,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(V){st(l,l.return,V)}if(l=c,o=l.updateQueue,o!==null){var y=l.stateNode;try{var R=o.shared.hiddenCallbacks;if(R!==null)for(o.shared.hiddenCallbacks=null,o=0;o<R.length;o++)ap(R[o],y)}catch(V){st(l,l.return,V)}}s&&h&64&&vg(c),aa(c,c.return);break;case 27:xg(c);case 26:case 5:Mi(o,c,s),s&&l===null&&h&4&&Sg(c),aa(c,c.return);break;case 12:Mi(o,c,s);break;case 31:Mi(o,c,s),s&&h&4&&Cg(o,c);break;case 13:Mi(o,c,s),s&&h&4&&Ag(o,c);break;case 22:c.memoizedState===null&&Mi(o,c,s),aa(c,c.return);break;case 30:break;default:Mi(o,c,s)}t=t.sibling}}function Uf(e,t){var s=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==s&&(e!=null&&e.refCount++,s!=null&&Fl(s))}function kf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fl(e))}function In(e,t,s,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ng(e,t,s,l),t=t.sibling}function Ng(e,t,s,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:In(e,t,s,l),o&2048&&la(9,t);break;case 1:In(e,t,s,l);break;case 3:In(e,t,s,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Fl(e)));break;case 12:if(o&2048){In(e,t,s,l),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,y=c.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(R){st(t,t.return,R)}}else In(e,t,s,l);break;case 31:In(e,t,s,l);break;case 13:In(e,t,s,l);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?In(e,t,s,l):oa(e,t):c._visibility&2?In(e,t,s,l):(c._visibility|=2,Fr(e,t,s,l,(t.subtreeFlags&10256)!==0||!1)),o&2048&&Uf(h,t);break;case 24:In(e,t,s,l),o&2048&&kf(t.alternate,t);break;default:In(e,t,s,l)}}function Fr(e,t,s,l,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,y=s,R=l,V=h.flags;switch(h.tag){case 0:case 11:case 15:Fr(c,h,y,R,o),la(8,h);break;case 23:break;case 22:var P=h.stateNode;h.memoizedState!==null?P._visibility&2?Fr(c,h,y,R,o):oa(c,h):(P._visibility|=2,Fr(c,h,y,R,o)),o&&V&2048&&Uf(h.alternate,h);break;case 24:Fr(c,h,y,R,o),o&&V&2048&&kf(h.alternate,h);break;default:Fr(c,h,y,R,o)}t=t.sibling}}function oa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var s=e,l=t,o=l.flags;switch(l.tag){case 22:oa(s,l),o&2048&&Uf(l.alternate,l);break;case 24:oa(s,l),o&2048&&kf(l.alternate,l);break;default:oa(s,l)}t=t.sibling}}var ua=8192;function Zr(e,t,s){if(e.subtreeFlags&ua)for(e=e.child;e!==null;)Dg(e,t,s),e=e.sibling}function Dg(e,t,s){switch(e.tag){case 26:Zr(e,t,s),e.flags&ua&&e.memoizedState!==null&&jx(s,Pn,e.memoizedState,e.memoizedProps);break;case 5:Zr(e,t,s);break;case 3:case 4:var l=Pn;Pn=su(e.stateNode.containerInfo),Zr(e,t,s),Pn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ua,ua=16777216,Zr(e,t,s),ua=l):Zr(e,t,s));break;default:Zr(e,t,s)}}function zg(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 ca(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var l=t[s];Vt=l,kg(l,e)}zg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ug(e),e=e.sibling}function Ug(e){switch(e.tag){case 0:case 11:case 15:ca(e),e.flags&2048&&is(9,e,e.return);break;case 3:ca(e);break;case 12:ca(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xo(e)):ca(e);break;default:ca(e)}}function Xo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var s=0;s<t.length;s++){var l=t[s];Vt=l,kg(l,e)}zg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:is(8,t,t.return),Xo(t);break;case 22:s=t.stateNode,s._visibility&2&&(s._visibility&=-3,Xo(t));break;default:Xo(t)}e=e.sibling}}function kg(e,t){for(;Vt!==null;){var s=Vt;switch(s.tag){case 0:case 11:case 15:is(8,s,t);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Fl(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Vt=l;else e:for(s=e;Vt!==null;){l=Vt;var o=l.sibling,c=l.return;if(Og(l),l===s){Vt=null;break e}if(o!==null){o.return=c,Vt=o;break e}Vt=c}}}var JE={getCacheForType:function(e){var t=Ft(At),s=t.data.get(e);return s===void 0&&(s=e(),t.data.set(e,s)),s},cacheSignal:function(){return Ft(At).controller.signal}},WE=typeof WeakMap=="function"?WeakMap:Map,We=0,ut=null,je=null,He=0,it=0,An=null,ss=!1,Pr=!1,jf=!1,Ni=0,xt=0,rs=0,Ws=0,Lf=0,_n=0,Ir=0,fa=null,pn=null,Bf=!1,Ko=0,jg=0,Fo=1/0,Zo=null,ls=null,jt=0,as=null,Jr=null,Di=0,Hf=0,qf=null,Lg=null,da=0,Yf=null;function Mn(){return(We&2)!==0&&He!==0?He&-He:z.T!==null?Ff():eo()}function Bg(){if(_n===0)if((He&536870912)===0||Ge){var e=Ke;Ke<<=1,(Ke&3932160)===0&&(Ke=262144),_n=e}else _n=536870912;return e=wn.current,e!==null&&(e.flags|=32),_n}function gn(e,t,s){(e===ut&&(it===2||it===9)||e.cancelPendingCommit!==null)&&(Wr(e,0),os(e,He,_n,!1)),un(e,s),((We&2)===0||e!==ut)&&(e===ut&&((We&2)===0&&(Ws|=s),xt===4&&os(e,He,_n,!1)),ai(e))}function Hg(e,t,s){if((We&6)!==0)throw Error(a(327));var l=!s&&(t&127)===0&&(t&e.expiredLanes)===0||rn(e,t),o=l?tx(e,t):Gf(e,t,!0),c=l;do{if(o===0){Pr&&!l&&os(e,t,0,!1);break}else{if(s=e.current.alternate,c&&!$E(s)){o=Gf(e,t,!1),c=!1;continue}if(o===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var y=e;o=fa;var R=y.current.memoizedState.isDehydrated;if(R&&(Wr(y,h).flags|=256),h=Gf(y,h,!1),h!==2){if(jf&&!R){y.errorRecoveryDisabledLanes|=c,Ws|=c,o=4;break e}c=pn,pn=o,c!==null&&(pn===null?pn=c:pn.push.apply(pn,c))}o=h}if(c=!1,o!==2)continue}}if(o===1){Wr(e,0),os(e,t,0,!0);break}e:{switch(l=e,c=o,c){case 0:case 1:throw Error(a(345));case 4:if((t&4194048)!==t)break;case 6:os(l,t,_n,!ss);break e;case 2:pn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((t&62914560)===t&&(o=Ko+300-ce(),10<o)){if(os(l,t,_n,!ss),Xt(l,0,!0)!==0)break e;Di=t,l.timeoutHandle=gy(qg.bind(null,l,s,pn,Zo,Bf,t,_n,Ws,Ir,ss,c,"Throttled",-0,0),o);break e}qg(l,s,pn,Zo,Bf,t,_n,Ws,Ir,ss,c,null,-0,0)}}break}while(!0);ai(e)}function qg(e,t,s,l,o,c,h,y,R,V,P,$,Q,F){if(e.timeoutHandle=-1,$=t.subtreeFlags,$&8192||($&16785408)===16785408){$={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yi},Dg(t,c,$);var ye=(c&62914560)===c?Ko-ce():(c&4194048)===c?jg-ce():0;if(ye=Lx($,ye),ye!==null){Di=c,e.cancelPendingCommit=ye(Zg.bind(null,e,t,c,s,l,o,h,y,R,P,$,null,Q,F)),os(e,c,h,!V);return}}Zg(e,t,c,s,l,o,h,y,R)}function $E(e){for(var t=e;;){var s=t.tag;if((s===0||s===11||s===15)&&t.flags&16384&&(s=t.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var o=s[l],c=o.getSnapshot;o=o.value;try{if(!Rn(c(),o))return!1}catch{return!1}}if(s=t.child,t.subtreeFlags&16384&&s!==null)s.return=t,t=s;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 os(e,t,s,l){t&=~Lf,t&=~Ws,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var c=31-Ht(o),h=1<<c;l[c]=-1,o&=~h}s!==0&&vr(e,s,t)}function Po(){return(We&6)===0?(ha(0),!1):!0}function Vf(){if(je!==null){if(it===0)var e=je.return;else e=je,Ei=Gs=null,sf(e),Vr=null,Pl=0,e=je;for(;e!==null;)yg(e.alternate,e),e=e.return;je=null}}function Wr(e,t){var s=e.timeoutHandle;s!==-1&&(e.timeoutHandle=-1,bx(s)),s=e.cancelPendingCommit,s!==null&&(e.cancelPendingCommit=null,s()),Di=0,Vf(),ut=e,je=s=bi(e.current,null),He=t,it=0,An=null,ss=!1,Pr=rn(e,t),jf=!1,Ir=_n=Lf=Ws=rs=xt=0,pn=fa=null,Bf=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Ht(l),c=1<<o;t|=e[o],l&=~c}return Ni=t,go(),s}function Yg(e,t){Ae=null,z.H=ia,t===Yr||t===Ro?(t=ip(),it=3):t===Xc?(t=ip(),it=4):it=t===Sf?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,An=t,je===null&&(xt=1,Bo(e,Bn(t,e.current)))}function Vg(){var e=wn.current;return e===null?!0:(He&4194048)===He?Vn===null:(He&62914560)===He||(He&536870912)!==0?e===Vn:!1}function Gg(){var e=z.H;return z.H=ia,e===null?ia:e}function Qg(){var e=z.A;return z.A=JE,e}function Io(){xt=4,ss||(He&4194048)!==He&&wn.current!==null||(Pr=!0),(rs&134217727)===0&&(Ws&134217727)===0||ut===null||os(ut,He,_n,!1)}function Gf(e,t,s){var l=We;We|=2;var o=Gg(),c=Qg();(ut!==e||He!==t)&&(Zo=null,Wr(e,t)),t=!1;var h=xt;e:do try{if(it!==0&&je!==null){var y=je,R=An;switch(it){case 8:Vf(),h=6;break e;case 3:case 2:case 9:case 6:wn.current===null&&(t=!0);var V=it;if(it=0,An=null,$r(e,y,R,V),s&&Pr){h=0;break e}break;default:V=it,it=0,An=null,$r(e,y,R,V)}}ex(),h=xt;break}catch(P){Yg(e,P)}while(!0);return t&&e.shellSuspendCounter++,Ei=Gs=null,We=l,z.H=o,z.A=c,je===null&&(ut=null,He=0,go()),h}function ex(){for(;je!==null;)Xg(je)}function tx(e,t){var s=We;We|=2;var l=Gg(),o=Qg();ut!==e||He!==t?(Zo=null,Fo=ce()+500,Wr(e,t)):Pr=rn(e,t);e:do try{if(it!==0&&je!==null){t=je;var c=An;t:switch(it){case 1:it=0,An=null,$r(e,t,c,1);break;case 2:case 9:if(tp(c)){it=0,An=null,Kg(t);break}t=function(){it!==2&&it!==9||ut!==e||(it=7),ai(e)},c.then(t,t);break e;case 3:it=7;break e;case 4:it=5;break e;case 7:tp(c)?(it=0,An=null,Kg(t)):(it=0,An=null,$r(e,t,c,7));break;case 5:var h=null;switch(je.tag){case 26:h=je.memoizedState;case 5:case 27:var y=je;if(h?Ny(h):y.stateNode.complete){it=0,An=null;var R=y.sibling;if(R!==null)je=R;else{var V=y.return;V!==null?(je=V,Jo(V)):je=null}break t}}it=0,An=null,$r(e,t,c,5);break;case 6:it=0,An=null,$r(e,t,c,6);break;case 8:Vf(),xt=6;break e;default:throw Error(a(462))}}nx();break}catch(P){Yg(e,P)}while(!0);return Ei=Gs=null,z.H=l,z.A=o,We=s,je!==null?0:(ut=null,He=0,go(),xt)}function nx(){for(;je!==null&&!ke();)Xg(je)}function Xg(e){var t=pg(e.alternate,e,Ni);e.memoizedProps=e.pendingProps,t===null?Jo(e):je=t}function Kg(e){var t=e,s=t.alternate;switch(t.tag){case 15:case 0:t=ug(s,t,t.pendingProps,t.type,void 0,He);break;case 11:t=ug(s,t,t.pendingProps,t.type.render,t.ref,He);break;case 5:sf(t);default:yg(s,t),t=je=Qm(t,Ni),t=pg(s,t,Ni)}e.memoizedProps=e.pendingProps,t===null?Jo(e):je=t}function $r(e,t,s,l){Ei=Gs=null,sf(t),Vr=null,Pl=0;var o=t.return;try{if(QE(e,o,t,s,He)){xt=1,Bo(e,Bn(s,e.current)),je=null;return}}catch(c){if(o!==null)throw je=o,c;xt=1,Bo(e,Bn(s,e.current)),je=null;return}t.flags&32768?(Ge||l===1?e=!0:Pr||(He&536870912)!==0?e=!1:(ss=e=!0,(l===2||l===9||l===3||l===6)&&(l=wn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Fg(t,e)):Jo(t)}function Jo(e){var t=e;do{if((t.flags&32768)!==0){Fg(t,ss);return}e=t.return;var s=FE(t.alternate,t,Ni);if(s!==null){je=s;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);xt===0&&(xt=5)}function Fg(e,t){do{var s=ZE(e.alternate,e);if(s!==null){s.flags&=32767,je=s;return}if(s=e.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=s}while(e!==null);xt=6,je=null}function Zg(e,t,s,l,o,c,h,y,R){e.cancelPendingCommit=null;do Wo();while(jt!==0);if((We&6)!==0)throw Error(a(327));if(t!==null){if(t===e.current)throw Error(a(177));if(c=t.lanes|t.childLanes,c|=Mc,zl(e,s,c,h,y,R),e===ut&&(je=ut=null,He=0),Jr=t,as=e,Di=s,Hf=c,qf=o,Lg=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,lx(pt,function(){return $g(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=z.T,z.T=null,o=G.p,G.p=2,h=We,We|=4;try{PE(e,t,s)}finally{We=h,G.p=o,z.T=l}}jt=1,Pg(),Ig(),Jg()}}function Pg(){if(jt===1){jt=0;var e=as,t=Jr,s=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||s){s=z.T,z.T=null;var l=G.p;G.p=2;var o=We;We|=4;try{_g(t,e);var c=td,h=km(e.containerInfo),y=c.focusedElem,R=c.selectionRange;if(h!==y&&y&&y.ownerDocument&&Um(y.ownerDocument.documentElement,y)){if(R!==null&&Oc(y)){var V=R.start,P=R.end;if(P===void 0&&(P=V),"selectionStart"in y)y.selectionStart=V,y.selectionEnd=Math.min(P,y.value.length);else{var $=y.ownerDocument||document,Q=$&&$.defaultView||window;if(Q.getSelection){var F=Q.getSelection(),ye=y.textContent.length,Re=Math.min(R.start,ye),at=R.end===void 0?Re:Math.min(R.end,ye);!F.extend&&Re>at&&(h=at,at=Re,Re=h);var L=zm(y,Re),N=zm(y,at);if(L&&N&&(F.rangeCount!==1||F.anchorNode!==L.node||F.anchorOffset!==L.offset||F.focusNode!==N.node||F.focusOffset!==N.offset)){var Y=$.createRange();Y.setStart(L.node,L.offset),F.removeAllRanges(),Re>at?(F.addRange(Y),F.extend(N.node,N.offset)):(Y.setEnd(N.node,N.offset),F.addRange(Y))}}}}for($=[],F=y;F=F.parentNode;)F.nodeType===1&&$.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<$.length;y++){var W=$[y];W.element.scrollLeft=W.left,W.element.scrollTop=W.top}}cu=!!ed,td=ed=null}finally{We=o,G.p=l,z.T=s}}e.current=t,jt=2}}function Ig(){if(jt===2){jt=0;var e=as,t=Jr,s=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||s){s=z.T,z.T=null;var l=G.p;G.p=2;var o=We;We|=4;try{Rg(e,t.alternate,t)}finally{We=o,G.p=l,z.T=s}}jt=3}}function Jg(){if(jt===4||jt===3){jt=0,St();var e=as,t=Jr,s=Di,l=Lg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?jt=5:(jt=0,Jr=as=null,Wg(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(ls=null),Sr(s),t=t.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(on,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=z.T,o=G.p,G.p=2,z.T=null;try{for(var c=e.onRecoverableError,h=0;h<l.length;h++){var y=l[h];c(y.value,{componentStack:y.stack})}}finally{z.T=t,G.p=o}}(Di&3)!==0&&Wo(),ai(e),o=e.pendingLanes,(s&261930)!==0&&(o&42)!==0?e===Yf?da++:(da=0,Yf=e):da=0,ha(0)}}function Wg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Fl(t)))}function Wo(){return Pg(),Ig(),Jg(),$g()}function $g(){if(jt!==5)return!1;var e=as,t=Hf;Hf=0;var s=Sr(Di),l=z.T,o=G.p;try{G.p=32>s?32:s,z.T=null,s=qf,qf=null;var c=as,h=Di;if(jt=0,Jr=as=null,Di=0,(We&6)!==0)throw Error(a(331));var y=We;if(We|=4,Ug(c.current),Ng(c,c.current,h,s),We=y,ha(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(on,c)}catch{}return!0}finally{G.p=o,z.T=l,Wg(e,t)}}function ey(e,t,s){t=Bn(s,t),t=bf(e.stateNode,t,2),e=es(e,t,2),e!==null&&(un(e,2),ai(e))}function st(e,t,s){if(e.tag===3)ey(e,e,s);else for(;t!==null;){if(t.tag===3){ey(t,e,s);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ls===null||!ls.has(l))){e=Bn(s,e),s=tg(2),l=es(t,s,2),l!==null&&(ng(s,l,t,e),un(l,2),ai(l));break}}t=t.return}}function Qf(e,t,s){var l=e.pingCache;if(l===null){l=e.pingCache=new WE;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(s)||(jf=!0,o.add(s),e=ix.bind(null,e,t,s),t.then(e,e))}function ix(e,t,s){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&s,e.warmLanes&=~s,ut===e&&(He&s)===s&&(xt===4||xt===3&&(He&62914560)===He&&300>ce()-Ko?(We&2)===0&&Wr(e,0):Lf|=s,Ir===He&&(Ir=0)),ai(e)}function ty(e,t){t===0&&(t=ni()),e=qs(e,t),e!==null&&(un(e,t),ai(e))}function sx(e){var t=e.memoizedState,s=0;t!==null&&(s=t.retryLane),ty(e,s)}function rx(e,t){var s=0;switch(e.tag){case 31:case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(s=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(a(314))}l!==null&&l.delete(t),ty(e,s)}function lx(e,t){return mt(e,t)}var $o=null,el=null,Xf=!1,eu=!1,Kf=!1,us=0;function ai(e){e!==el&&e.next===null&&(el===null?$o=el=e:el=el.next=e),eu=!0,Xf||(Xf=!0,ox())}function ha(e,t){if(!Kf&&eu){Kf=!0;do for(var s=!1,l=$o;l!==null;){if(e!==0){var o=l.pendingLanes;if(o===0)var c=0;else{var h=l.suspendedLanes,y=l.pingedLanes;c=(1<<31-Ht(42|e)+1)-1,c&=o&~(h&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(s=!0,ry(l,c))}else c=He,c=Xt(l,l===ut?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||rn(l,c)||(s=!0,ry(l,c));l=l.next}while(s);Kf=!1}}function ax(){ny()}function ny(){eu=Xf=!1;var e=0;us!==0&&vx()&&(e=us);for(var t=ce(),s=null,l=$o;l!==null;){var o=l.next,c=iy(l,t);c===0?(l.next=null,s===null?$o=o:s.next=o,o===null&&(el=s)):(s=l,(e!==0||(c&3)!==0)&&(eu=!0)),l=o}jt!==0&&jt!==5||ha(e),us!==0&&(us=0)}function iy(e,t){for(var s=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-Ht(c),y=1<<h,R=o[h];R===-1?((y&s)===0||(y&l)!==0)&&(o[h]=Tn(y,t)):R<=t&&(e.expiredLanes|=y),c&=~y}if(t=ut,s=He,s=Xt(e,e===t?s:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,s===0||e===t&&(it===2||it===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&dt(l),e.callbackNode=null,e.callbackPriority=0;if((s&3)===0||rn(e,s)){if(t=s&-s,t===e.callbackPriority)return t;switch(l!==null&&dt(l),Sr(s)){case 2:case 8:s=Be;break;case 32:s=pt;break;case 268435456:s=nn;break;default:s=pt}return l=sy.bind(null,e),s=mt(s,l),e.callbackPriority=t,e.callbackNode=s,t}return l!==null&&l!==null&&dt(l),e.callbackPriority=2,e.callbackNode=null,2}function sy(e,t){if(jt!==0&&jt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var s=e.callbackNode;if(Wo()&&e.callbackNode!==s)return null;var l=He;return l=Xt(e,e===ut?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Hg(e,l,t),iy(e,ce()),e.callbackNode!=null&&e.callbackNode===s?sy.bind(null,e):null)}function ry(e,t){if(Wo())return null;Hg(e,t,!0)}function ox(){Sx(function(){(We&6)!==0?mt(ht,ax):ny()})}function Ff(){if(us===0){var e=Hr;e===0&&(e=pi,pi<<=1,(pi&261888)===0&&(pi=256)),us=e}return us}function ly(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ao(""+e)}function ay(e,t){var s=t.ownerDocument.createElement("input");return s.name=t.name,s.value=t.value,e.id&&s.setAttribute("form",e.id),t.parentNode.insertBefore(s,t),e=new FormData(e),s.parentNode.removeChild(s),e}function ux(e,t,s,l,o){if(t==="submit"&&s&&s.stateNode===o){var c=ly((o[$t]||null).action),h=l.submitter;h&&(t=(t=h[$t]||null)?ly(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var y=new fo("action","action",null,l,o);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(us!==0){var R=h?ay(o,h):new FormData(o);hf(s,{pending:!0,data:R,method:o.method,action:c},null,R)}}else typeof c=="function"&&(y.preventDefault(),R=h?ay(o,h):new FormData(o),hf(s,{pending:!0,data:R,method:o.method,action:c},c,R))},currentTarget:o}]})}}for(var Zf=0;Zf<_c.length;Zf++){var Pf=_c[Zf],cx=Pf.toLowerCase(),fx=Pf[0].toUpperCase()+Pf.slice(1);Zn(cx,"on"+fx)}Zn(Bm,"onAnimationEnd"),Zn(Hm,"onAnimationIteration"),Zn(qm,"onAnimationStart"),Zn("dblclick","onDoubleClick"),Zn("focusin","onFocus"),Zn("focusout","onBlur"),Zn(CE,"onTransitionRun"),Zn(AE,"onTransitionStart"),Zn(_E,"onTransitionCancel"),Zn(Ym,"onTransitionEnd"),Or("onMouseEnter",["mouseout","mouseover"]),Or("onMouseLeave",["mouseout","mouseover"]),Or("onPointerEnter",["pointerout","pointerover"]),Or("onPointerLeave",["pointerout","pointerover"]),js("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),js("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),js("onBeforeInput",["compositionend","keypress","textInput","paste"]),js("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),js("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),js("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ma="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(" "),dx=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ma));function oy(e,t){t=(t&4)!==0;for(var s=0;s<e.length;s++){var l=e[s],o=l.event;l=l.listeners;e:{var c=void 0;if(t)for(var h=l.length-1;0<=h;h--){var y=l[h],R=y.instance,V=y.currentTarget;if(y=y.listener,R!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=V;try{c(o)}catch(P){po(P)}o.currentTarget=null,c=R}else for(h=0;h<l.length;h++){if(y=l[h],R=y.instance,V=y.currentTarget,y=y.listener,R!==c&&o.isPropagationStopped())break e;c=y,o.currentTarget=V;try{c(o)}catch(P){po(P)}o.currentTarget=null,c=R}}}}function Le(e,t){var s=t[Er];s===void 0&&(s=t[Er]=new Set);var l=e+"__bubble";s.has(l)||(uy(t,e,2,!1),s.add(l))}function If(e,t,s){var l=0;t&&(l|=4),uy(s,e,l,t)}var tu="_reactListening"+Math.random().toString(36).slice(2);function Jf(e){if(!e[tu]){e[tu]=!0,nm.forEach(function(s){s!=="selectionchange"&&(dx.has(s)||If(s,!1,e),If(s,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[tu]||(t[tu]=!0,If("selectionchange",!1,t))}}function uy(e,t,s,l){switch(By(t)){case 2:var o=qx;break;case 8:o=Yx;break;default:o=dd}s=o.bind(null,t,s,e),o=void 0,!gc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,s,{capture:!0,passive:o}):e.addEventListener(t,s,!0):o!==void 0?e.addEventListener(t,s,{passive:o}):e.addEventListener(t,s,!1)}function Wf(e,t,s,l,o){var c=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var h=l.tag;if(h===3||h===4){var y=l.stateNode.containerInfo;if(y===o)break;if(h===4)for(h=l.return;h!==null;){var R=h.tag;if((R===3||R===4)&&h.stateNode.containerInfo===o)return;h=h.return}for(;y!==null;){if(h=xr(y),h===null)return;if(R=h.tag,R===5||R===6||R===26||R===27){l=c=h;continue e}y=y.parentNode}}l=l.return}mm(function(){var V=c,P=mc(s),$=[];e:{var Q=Vm.get(e);if(Q!==void 0){var F=fo,ye=e;switch(e){case"keypress":if(uo(s)===0)break e;case"keydown":case"keyup":F=rE;break;case"focusin":ye="focus",F=Sc;break;case"focusout":ye="blur",F=Sc;break;case"beforeblur":case"afterblur":F=Sc;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=ym;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=FS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=oE;break;case Bm:case Hm:case qm:F=IS;break;case Ym:F=cE;break;case"scroll":case"scrollend":F=XS;break;case"wheel":F=dE;break;case"copy":case"cut":case"paste":F=WS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=bm;break;case"toggle":case"beforetoggle":F=mE}var Re=(t&4)!==0,at=!Re&&(e==="scroll"||e==="scrollend"),L=Re?Q!==null?Q+"Capture":null:Q;Re=[];for(var N=V,Y;N!==null;){var W=N;if(Y=W.stateNode,W=W.tag,W!==5&&W!==26&&W!==27||Y===null||L===null||(W=jl(N,L),W!=null&&Re.push(pa(N,W,Y))),at)break;N=N.return}0<Re.length&&(Q=new F(Q,ye,null,s,P),$.push({event:Q,listeners:Re}))}}if((t&7)===0){e:{if(Q=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",Q&&s!==hc&&(ye=s.relatedTarget||s.fromElement)&&(xr(ye)||ye[Ki]))break e;if((F||Q)&&(Q=P.window===P?P:(Q=P.ownerDocument)?Q.defaultView||Q.parentWindow:window,F?(ye=s.relatedTarget||s.toElement,F=V,ye=ye?xr(ye):null,ye!==null&&(at=f(ye),Re=ye.tag,ye!==at||Re!==5&&Re!==27&&Re!==6)&&(ye=null)):(F=null,ye=V),F!==ye)){if(Re=ym,W="onMouseLeave",L="onMouseEnter",N="mouse",(e==="pointerout"||e==="pointerover")&&(Re=bm,W="onPointerLeave",L="onPointerEnter",N="pointer"),at=F==null?Q:kl(F),Y=ye==null?Q:kl(ye),Q=new Re(W,N+"leave",F,s,P),Q.target=at,Q.relatedTarget=Y,W=null,xr(P)===V&&(Re=new Re(L,N+"enter",ye,s,P),Re.target=Y,Re.relatedTarget=at,W=Re),at=W,F&&ye)t:{for(Re=hx,L=F,N=ye,Y=0,W=L;W;W=Re(W))Y++;W=0;for(var Se=N;Se;Se=Re(Se))W++;for(;0<Y-W;)L=Re(L),Y--;for(;0<W-Y;)N=Re(N),W--;for(;Y--;){if(L===N||N!==null&&L===N.alternate){Re=L;break t}L=Re(L),N=Re(N)}Re=null}else Re=null;F!==null&&cy($,Q,F,Re,!1),ye!==null&&at!==null&&cy($,at,ye,Re,!0)}}e:{if(Q=V?kl(V):window,F=Q.nodeName&&Q.nodeName.toLowerCase(),F==="select"||F==="input"&&Q.type==="file")var Pe=Cm;else if(Om(Q))if(Am)Pe=RE;else{Pe=xE;var ve=EE}else F=Q.nodeName,!F||F.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?V&&dc(V.elementType)&&(Pe=Cm):Pe=TE;if(Pe&&(Pe=Pe(e,V))){wm($,Pe,s,P);break e}ve&&ve(e,Q,V),e==="focusout"&&V&&Q.type==="number"&&V.memoizedProps.value!=null&&fc(Q,"number",Q.value)}switch(ve=V?kl(V):window,e){case"focusin":(Om(ve)||ve.contentEditable==="true")&&(Nr=ve,wc=V,Ql=null);break;case"focusout":Ql=wc=Nr=null;break;case"mousedown":Cc=!0;break;case"contextmenu":case"mouseup":case"dragend":Cc=!1,jm($,s,P);break;case"selectionchange":if(wE)break;case"keydown":case"keyup":jm($,s,P)}var _e;if(xc)e:{switch(e){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else Mr?Tm(e,s)&&(qe="onCompositionEnd"):e==="keydown"&&s.keyCode===229&&(qe="onCompositionStart");qe&&(Sm&&s.locale!=="ko"&&(Mr||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&Mr&&(_e=pm()):(Fi=P,yc="value"in Fi?Fi.value:Fi.textContent,Mr=!0)),ve=nu(V,qe),0<ve.length&&(qe=new vm(qe,e,null,s,P),$.push({event:qe,listeners:ve}),_e?qe.data=_e:(_e=Rm(s),_e!==null&&(qe.data=_e)))),(_e=gE?yE(e,s):vE(e,s))&&(qe=nu(V,"onBeforeInput"),0<qe.length&&(ve=new vm("onBeforeInput","beforeinput",null,s,P),$.push({event:ve,listeners:qe}),ve.data=_e)),ux($,e,V,s,P)}oy($,t)})}function pa(e,t,s){return{instance:e,listener:t,currentTarget:s}}function nu(e,t){for(var s=t+"Capture",l=[];e!==null;){var o=e,c=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||c===null||(o=jl(e,s),o!=null&&l.unshift(pa(e,o,c)),o=jl(e,t),o!=null&&l.push(pa(e,o,c))),e.tag===3)return l;e=e.return}return[]}function hx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function cy(e,t,s,l,o){for(var c=t._reactName,h=[];s!==null&&s!==l;){var y=s,R=y.alternate,V=y.stateNode;if(y=y.tag,R!==null&&R===l)break;y!==5&&y!==26&&y!==27||V===null||(R=V,o?(V=jl(s,c),V!=null&&h.unshift(pa(s,V,R))):o||(V=jl(s,c),V!=null&&h.push(pa(s,V,R)))),s=s.return}h.length!==0&&e.push({event:t,listeners:h})}var mx=/\r\n?/g,px=/\u0000|\uFFFD/g;function fy(e){return(typeof e=="string"?e:""+e).replace(mx,`
|
|
49
|
+
`).replace(px,"")}function dy(e,t){return t=fy(t),fy(e)===t}function lt(e,t,s,l,o,c){switch(s){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Cr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Cr(e,""+l);break;case"className":ro(e,"class",l);break;case"tabIndex":ro(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ro(e,s,l);break;case"style":dm(e,l,c);break;case"data":if(t!=="object"){ro(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||s!=="href")){e.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=ao(""+l),e.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(s,"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 c=="function"&&(s==="formAction"?(t!=="input"&<(e,t,"name",o.name,o,null),lt(e,t,"formEncType",o.formEncType,o,null),lt(e,t,"formMethod",o.formMethod,o,null),lt(e,t,"formTarget",o.formTarget,o,null)):(lt(e,t,"encType",o.encType,o,null),lt(e,t,"method",o.method,o,null),lt(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(s);break}l=ao(""+l),e.setAttribute(s,l);break;case"onClick":l!=null&&(e.onclick=yi);break;case"onScroll":l!=null&&Le("scroll",e);break;case"onScrollEnd":l!=null&&Le("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(a(61));if(s=l.__html,s!=null){if(o.children!=null)throw Error(a(60));e.innerHTML=s}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}s=ao(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""+l):e.removeAttribute(s);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,""):e.removeAttribute(s);break;case"capture":case"download":l===!0?e.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(s,l):e.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(s,l):e.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(s):e.setAttribute(s,l);break;case"popover":Le("beforetoggle",e),Le("toggle",e),so(e,"popover",l);break;case"xlinkActuate":gi(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":gi(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":gi(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":gi(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":gi(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":gi(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":gi(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":gi(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":gi(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":so(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=GS.get(s)||s,so(e,s,l))}}function $f(e,t,s,l,o,c){switch(s){case"style":dm(e,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(a(61));if(s=l.__html,s!=null){if(o.children!=null)throw Error(a(60));e.innerHTML=s}}break;case"children":typeof l=="string"?Cr(e,l):(typeof l=="number"||typeof l=="bigint")&&Cr(e,""+l);break;case"onScroll":l!=null&&Le("scroll",e);break;case"onScrollEnd":l!=null&&Le("scrollend",e);break;case"onClick":l!=null&&(e.onclick=yi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!im.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(o=s.endsWith("Capture"),t=s.slice(2,o?s.length-7:void 0),c=e[$t]||null,c=c!=null?c[s]:null,typeof c=="function"&&e.removeEventListener(t,c,o),typeof l=="function")){typeof c!="function"&&c!==null&&(s in e?e[s]=null:e.hasAttribute(s)&&e.removeAttribute(s)),e.addEventListener(t,l,o);break e}s in e?e[s]=l:l===!0?e.setAttribute(s,""):so(e,s,l)}}}function Pt(e,t,s){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",e),Le("load",e);var l=!1,o=!1,c;for(c in s)if(s.hasOwnProperty(c)){var h=s[c];if(h!=null)switch(c){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:lt(e,t,c,h,s,null)}}o&<(e,t,"srcSet",s.srcSet,s,null),l&<(e,t,"src",s.src,s,null);return;case"input":Le("invalid",e);var y=c=h=o=null,R=null,V=null;for(l in s)if(s.hasOwnProperty(l)){var P=s[l];if(P!=null)switch(l){case"name":o=P;break;case"type":h=P;break;case"checked":R=P;break;case"defaultChecked":V=P;break;case"value":c=P;break;case"defaultValue":y=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(a(137,t));break;default:lt(e,t,l,P,s,null)}}om(e,c,y,R,V,h,o,!1);return;case"select":Le("invalid",e),l=h=c=null;for(o in s)if(s.hasOwnProperty(o)&&(y=s[o],y!=null))switch(o){case"value":c=y;break;case"defaultValue":h=y;break;case"multiple":l=y;default:lt(e,t,o,y,s,null)}t=c,s=h,e.multiple=!!l,t!=null?wr(e,!!l,t,!1):s!=null&&wr(e,!!l,s,!0);return;case"textarea":Le("invalid",e),c=o=l=null;for(h in s)if(s.hasOwnProperty(h)&&(y=s[h],y!=null))switch(h){case"value":l=y;break;case"defaultValue":o=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(a(91));break;default:lt(e,t,h,y,s,null)}cm(e,l,o,c);return;case"option":for(R in s)if(s.hasOwnProperty(R)&&(l=s[R],l!=null))switch(R){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:lt(e,t,R,l,s,null)}return;case"dialog":Le("beforetoggle",e),Le("toggle",e),Le("cancel",e),Le("close",e);break;case"iframe":case"object":Le("load",e);break;case"video":case"audio":for(l=0;l<ma.length;l++)Le(ma[l],e);break;case"image":Le("error",e),Le("load",e);break;case"details":Le("toggle",e);break;case"embed":case"source":case"link":Le("error",e),Le("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(V in s)if(s.hasOwnProperty(V)&&(l=s[V],l!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,t));default:lt(e,t,V,l,s,null)}return;default:if(dc(t)){for(P in s)s.hasOwnProperty(P)&&(l=s[P],l!==void 0&&$f(e,t,P,l,s,void 0));return}}for(y in s)s.hasOwnProperty(y)&&(l=s[y],l!=null&<(e,t,y,l,s,null))}function gx(e,t,s,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,c=null,h=null,y=null,R=null,V=null,P=null;for(F in s){var $=s[F];if(s.hasOwnProperty(F)&&$!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":R=$;default:l.hasOwnProperty(F)||lt(e,t,F,null,l,$)}}for(var Q in l){var F=l[Q];if($=s[Q],l.hasOwnProperty(Q)&&(F!=null||$!=null))switch(Q){case"type":c=F;break;case"name":o=F;break;case"checked":V=F;break;case"defaultChecked":P=F;break;case"value":h=F;break;case"defaultValue":y=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(a(137,t));break;default:F!==$&<(e,t,Q,F,l,$)}}cc(e,h,y,R,V,P,c,o);return;case"select":F=h=y=Q=null;for(c in s)if(R=s[c],s.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":F=R;default:l.hasOwnProperty(c)||lt(e,t,c,null,l,R)}for(o in l)if(c=l[o],R=s[o],l.hasOwnProperty(o)&&(c!=null||R!=null))switch(o){case"value":Q=c;break;case"defaultValue":y=c;break;case"multiple":h=c;default:c!==R&<(e,t,o,c,l,R)}t=y,s=h,l=F,Q!=null?wr(e,!!s,Q,!1):!!l!=!!s&&(t!=null?wr(e,!!s,t,!0):wr(e,!!s,s?[]:"",!1));return;case"textarea":F=Q=null;for(y in s)if(o=s[y],s.hasOwnProperty(y)&&o!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:lt(e,t,y,null,l,o)}for(h in l)if(o=l[h],c=s[h],l.hasOwnProperty(h)&&(o!=null||c!=null))switch(h){case"value":Q=o;break;case"defaultValue":F=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(a(91));break;default:o!==c&<(e,t,h,o,l,c)}um(e,Q,F);return;case"option":for(var ye in s)if(Q=s[ye],s.hasOwnProperty(ye)&&Q!=null&&!l.hasOwnProperty(ye))switch(ye){case"selected":e.selected=!1;break;default:lt(e,t,ye,null,l,Q)}for(R in l)if(Q=l[R],F=s[R],l.hasOwnProperty(R)&&Q!==F&&(Q!=null||F!=null))switch(R){case"selected":e.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:lt(e,t,R,Q,l,F)}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 Re in s)Q=s[Re],s.hasOwnProperty(Re)&&Q!=null&&!l.hasOwnProperty(Re)&<(e,t,Re,null,l,Q);for(V in l)if(Q=l[V],F=s[V],l.hasOwnProperty(V)&&Q!==F&&(Q!=null||F!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,t));break;default:lt(e,t,V,Q,l,F)}return;default:if(dc(t)){for(var at in s)Q=s[at],s.hasOwnProperty(at)&&Q!==void 0&&!l.hasOwnProperty(at)&&$f(e,t,at,void 0,l,Q);for(P in l)Q=l[P],F=s[P],!l.hasOwnProperty(P)||Q===F||Q===void 0&&F===void 0||$f(e,t,P,Q,l,F);return}}for(var L in s)Q=s[L],s.hasOwnProperty(L)&&Q!=null&&!l.hasOwnProperty(L)&<(e,t,L,null,l,Q);for($ in l)Q=l[$],F=s[$],!l.hasOwnProperty($)||Q===F||Q==null&&F==null||lt(e,t,$,Q,l,F)}function hy(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,s=performance.getEntriesByType("resource"),l=0;l<s.length;l++){var o=s[l],c=o.transferSize,h=o.initiatorType,y=o.duration;if(c&&y&&hy(h)){for(h=0,y=o.responseEnd,l+=1;l<s.length;l++){var R=s[l],V=R.startTime;if(V>y)break;var P=R.transferSize,$=R.initiatorType;P&&hy($)&&(R=R.responseEnd,h+=P*(R<y?1:(y-V)/(R-V)))}if(--l,t+=8*(c+h)/(o.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 ed=null,td=null;function iu(e){return e.nodeType===9?e:e.ownerDocument}function my(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 py(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 nd(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 id=null;function vx(){var e=window.event;return e&&e.type==="popstate"?e===id?!1:(id=e,!0):(id=null,!1)}var gy=typeof setTimeout=="function"?setTimeout:void 0,bx=typeof clearTimeout=="function"?clearTimeout:void 0,yy=typeof Promise=="function"?Promise:void 0,Sx=typeof queueMicrotask=="function"?queueMicrotask:typeof yy<"u"?function(e){return yy.resolve(null).then(e).catch(Ex)}:gy;function Ex(e){setTimeout(function(){throw e})}function cs(e){return e==="head"}function vy(e,t){var s=t,l=0;do{var o=s.nextSibling;if(e.removeChild(s),o&&o.nodeType===8)if(s=o.data,s==="/$"||s==="/&"){if(l===0){e.removeChild(o),sl(t);return}l--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")l++;else if(s==="html")ga(e.ownerDocument.documentElement);else if(s==="head"){s=e.ownerDocument.head,ga(s);for(var c=s.firstChild;c;){var h=c.nextSibling,y=c.nodeName;c[Ul]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||s.removeChild(c),c=h}}else s==="body"&&ga(e.ownerDocument.body);s=o}while(s);sl(t)}function by(e,t){var s=e;e=0;do{var l=s.nextSibling;if(s.nodeType===1?t?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(t?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),l&&l.nodeType===8)if(s=l.data,s==="/$"){if(e===0)break;e--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||e++;s=l}while(s)}function sd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var s=t;switch(t=t.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":sd(s),oc(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}e.removeChild(s)}}function xx(e,t,s,l){for(;e.nodeType===1;){var o=s;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Ul])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=Gn(e.nextSibling),e===null)break}return null}function Tx(e,t,s){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!s||(e=Gn(e.nextSibling),e===null))return null;return e}function Sy(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gn(e.nextSibling),e===null))return null;return e}function rd(e){return e.data==="$?"||e.data==="$~"}function ld(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Rx(e,t){var s=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||s.readyState!=="loading")t();else{var l=function(){t(),s.removeEventListener("DOMContentLoaded",l)};s.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Gn(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 ad=null;function Ey(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="/$"||s==="/&"){if(t===0)return Gn(e.nextSibling);t--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||t++}e=e.nextSibling}return null}function xy(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var s=e.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(t===0)return e;t--}else s!=="/$"&&s!=="/&"||t++}e=e.previousSibling}return null}function Ty(e,t,s){switch(t=iu(s),e){case"html":if(e=t.documentElement,!e)throw Error(a(452));return e;case"head":if(e=t.head,!e)throw Error(a(453));return e;case"body":if(e=t.body,!e)throw Error(a(454));return e;default:throw Error(a(451))}}function ga(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);oc(e)}var Qn=new Map,Ry=new Set;function su(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var zi=G.d;G.d={f:Ox,r:wx,D:Cx,C:Ax,L:_x,m:Mx,X:Dx,S:Nx,M:zx};function Ox(){var e=zi.f(),t=Po();return e||t}function wx(e){var t=Tr(e);t!==null&&t.tag===5&&t.type==="form"?Yp(t):zi.r(e)}var tl=typeof document>"u"?null:document;function Oy(e,t,s){var l=tl;if(l&&typeof t=="string"&&t){var o=jn(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof s=="string"&&(o+='[crossorigin="'+s+'"]'),Ry.has(o)||(Ry.add(o),e={rel:e,crossOrigin:s,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),Pt(t,"link",e),Yt(t),l.head.appendChild(t)))}}function Cx(e){zi.D(e),Oy("dns-prefetch",e,null)}function Ax(e,t){zi.C(e,t),Oy("preconnect",e,t)}function _x(e,t,s){zi.L(e,t,s);var l=tl;if(l&&e&&t){var o='link[rel="preload"][as="'+jn(t)+'"]';t==="image"&&s&&s.imageSrcSet?(o+='[imagesrcset="'+jn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(o+='[imagesizes="'+jn(s.imageSizes)+'"]')):o+='[href="'+jn(e)+'"]';var c=o;switch(t){case"style":c=nl(e);break;case"script":c=il(e)}Qn.has(c)||(e=b({rel:"preload",href:t==="image"&&s&&s.imageSrcSet?void 0:e,as:t},s),Qn.set(c,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(ya(c))||t==="script"&&l.querySelector(va(c))||(t=l.createElement("link"),Pt(t,"link",e),Yt(t),l.head.appendChild(t)))}}function Mx(e,t){zi.m(e,t);var s=tl;if(s&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+jn(l)+'"][href="'+jn(e)+'"]',c=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=il(e)}if(!Qn.has(c)&&(e=b({rel:"modulepreload",href:e},t),Qn.set(c,e),s.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(va(c)))return}l=s.createElement("link"),Pt(l,"link",e),Yt(l),s.head.appendChild(l)}}}function Nx(e,t,s){zi.S(e,t,s);var l=tl;if(l&&e){var o=Rr(l).hoistableStyles,c=nl(e);t=t||"default";var h=o.get(c);if(!h){var y={loading:0,preload:null};if(h=l.querySelector(ya(c)))y.loading=5;else{e=b({rel:"stylesheet",href:e,"data-precedence":t},s),(s=Qn.get(c))&&od(e,s);var R=h=l.createElement("link");Yt(R),Pt(R,"link",e),R._p=new Promise(function(V,P){R.onload=V,R.onerror=P}),R.addEventListener("load",function(){y.loading|=1}),R.addEventListener("error",function(){y.loading|=2}),y.loading|=4,ru(h,t,l)}h={type:"stylesheet",instance:h,count:1,state:y},o.set(c,h)}}}function Dx(e,t){zi.X(e,t);var s=tl;if(s&&e){var l=Rr(s).hoistableScripts,o=il(e),c=l.get(o);c||(c=s.querySelector(va(o)),c||(e=b({src:e,async:!0},t),(t=Qn.get(o))&&ud(e,t),c=s.createElement("script"),Yt(c),Pt(c,"link",e),s.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function zx(e,t){zi.M(e,t);var s=tl;if(s&&e){var l=Rr(s).hoistableScripts,o=il(e),c=l.get(o);c||(c=s.querySelector(va(o)),c||(e=b({src:e,async:!0,type:"module"},t),(t=Qn.get(o))&&ud(e,t),c=s.createElement("script"),Yt(c),Pt(c,"link",e),s.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(o,c))}}function wy(e,t,s,l){var o=(o=ee.current)?su(o):null;if(!o)throw Error(a(446));switch(e){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(t=nl(s.href),s=Rr(o).hoistableStyles,l=s.get(t),l||(l={type:"style",instance:null,count:0,state:null},s.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){e=nl(s.href);var c=Rr(o).hoistableStyles,h=c.get(e);if(h||(o=o.ownerDocument||o,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=o.querySelector(ya(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Qn.has(e)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Qn.set(e,s),c||Ux(o,e,s,h.state))),t&&l===null)throw Error(a(528,""));return h}if(t&&l!==null)throw Error(a(529,""));return null;case"script":return t=s.async,s=s.src,typeof s=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=il(s),s=Rr(o).hoistableScripts,l=s.get(t),l||(l={type:"script",instance:null,count:0,state:null},s.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,e))}}function nl(e){return'href="'+jn(e)+'"'}function ya(e){return'link[rel="stylesheet"]['+e+"]"}function Cy(e){return b({},e,{"data-precedence":e.precedence,precedence:null})}function Ux(e,t,s,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Pt(t,"link",s),Yt(t),e.head.appendChild(t))}function il(e){return'[src="'+jn(e)+'"]'}function va(e){return"script[async]"+e}function Ay(e,t,s){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+jn(s.href)+'"]');if(l)return t.instance=l,Yt(l),l;var o=b({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Yt(l),Pt(l,"style",o),ru(l,s.precedence,e),t.instance=l;case"stylesheet":o=nl(s.href);var c=e.querySelector(ya(o));if(c)return t.state.loading|=4,t.instance=c,Yt(c),c;l=Cy(s),(o=Qn.get(o))&&od(l,o),c=(e.ownerDocument||e).createElement("link"),Yt(c);var h=c;return h._p=new Promise(function(y,R){h.onload=y,h.onerror=R}),Pt(c,"link",l),t.state.loading|=4,ru(c,s.precedence,e),t.instance=c;case"script":return c=il(s.src),(o=e.querySelector(va(c)))?(t.instance=o,Yt(o),o):(l=s,(o=Qn.get(c))&&(l=b({},s),ud(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),Yt(o),Pt(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(a(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,ru(l,s.precedence,e));return t.instance}function ru(e,t,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,c=o,h=0;h<l.length;h++){var y=l[h];if(y.dataset.precedence===t)c=y;else if(c!==o)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=s.nodeType===9?s.head:s,t.insertBefore(e,t.firstChild))}function od(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ud(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var lu=null;function _y(e,t,s){if(lu===null){var l=new Map,o=lu=new Map;o.set(s,l)}else o=lu,l=o.get(s),l||(l=new Map,o.set(s,l));if(l.has(e))return l;for(l.set(e,null),s=s.getElementsByTagName(e),o=0;o<s.length;o++){var c=s[o];if(!(c[Ul]||c[kt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var y=l.get(h);y?y.push(c):l.set(h,[c])}}return l}function My(e,t,s){e=e.ownerDocument||e,e.head.insertBefore(s,t==="title"?e.querySelector("head > title"):null)}function kx(e,t,s){if(s===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 Ny(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function jx(e,t,s,l){if(s.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var o=nl(l.href),c=t.querySelector(ya(o));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=au.bind(e),t.then(e,e)),s.state.loading|=4,s.instance=c,Yt(c);return}c=t.ownerDocument||t,l=Cy(l),(o=Qn.get(o))&&od(l,o),c=c.createElement("link"),Yt(c);var h=c;h._p=new Promise(function(y,R){h.onload=y,h.onerror=R}),Pt(c,"link",l),s.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(s,t),(t=s.state.preload)&&(s.state.loading&3)===0&&(e.count++,s=au.bind(e),t.addEventListener("load",s),t.addEventListener("error",s))}}var cd=0;function Lx(e,t){return e.stylesheets&&e.count===0&&uu(e,e.stylesheets),0<e.count||0<e.imgCount?function(s){var l=setTimeout(function(){if(e.stylesheets&&uu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&cd===0&&(cd=62500*yx());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&uu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>cd?50:800)+t);return e.unsuspend=s,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(o)}}:null}function au(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)uu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ou=null;function uu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ou=new Map,t.forEach(Bx,e),ou=null,au.call(e))}function Bx(e,t){if(!(t.state.loading&4)){var s=ou.get(e);if(s)var l=s.get(null);else{s=new Map,ou.set(e,s);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<o.length;c++){var h=o[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(s.set(h.dataset.precedence,h),l=h)}l&&s.set(null,l)}o=t.instance,h=o.getAttribute("data-precedence"),c=s.get(h)||l,c===l&&s.set(null,o),s.set(h,o),this.count++,l=au.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),c?c.parentNode.insertBefore(o,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ba={$$typeof:j,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function Hx(e,t,s,l,o,c,h,y,R){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=ii(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ii(0),this.hiddenUpdates=ii(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Dy(e,t,s,l,o,c,h,y,R,V,P,$){return e=new Hx(e,t,s,h,R,V,P,$,y),t=1,c===!0&&(t|=24),c=On(3,null,null,t),e.current=c,c.stateNode=e,t=Vc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:l,isDehydrated:s,cache:t},Kc(c),e}function zy(e){return e?(e=Ur,e):Ur}function Uy(e,t,s,l,o,c){o=zy(o),l.context===null?l.context=o:l.pendingContext=o,l=$i(t),l.payload={element:s},c=c===void 0?null:c,c!==null&&(l.callback=c),s=es(e,l,t),s!==null&&(gn(s,e,t),Jl(s,e,t))}function ky(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var s=e.retryLane;e.retryLane=s!==0&&s<t?s:t}}function fd(e,t){ky(e,t),(e=e.alternate)&&ky(e,t)}function jy(e){if(e.tag===13||e.tag===31){var t=qs(e,67108864);t!==null&&gn(t,e,67108864),fd(e,67108864)}}function Ly(e){if(e.tag===13||e.tag===31){var t=Mn();t=ks(t);var s=qs(e,t);s!==null&&gn(s,e,t),fd(e,t)}}var cu=!0;function qx(e,t,s,l){var o=z.T;z.T=null;var c=G.p;try{G.p=2,dd(e,t,s,l)}finally{G.p=c,z.T=o}}function Yx(e,t,s,l){var o=z.T;z.T=null;var c=G.p;try{G.p=8,dd(e,t,s,l)}finally{G.p=c,z.T=o}}function dd(e,t,s,l){if(cu){var o=hd(l);if(o===null)Wf(e,t,l,fu,s),Hy(e,l);else if(Gx(o,e,t,s,l))l.stopPropagation();else if(Hy(e,l),t&4&&-1<Vx.indexOf(e)){for(;o!==null;){var c=Tr(o);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=qt(c.pendingLanes);if(h!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var R=1<<31-Ht(h);y.entanglements[1]|=R,h&=~R}ai(c),(We&6)===0&&(Fo=ce()+500,ha(0))}}break;case 31:case 13:y=qs(c,2),y!==null&&gn(y,c,2),Po(),fd(c,2)}if(c=hd(l),c===null&&Wf(e,t,l,fu,s),c===o)break;o=c}o!==null&&l.stopPropagation()}else Wf(e,t,l,null,s)}}function hd(e){return e=mc(e),md(e)}var fu=null;function md(e){if(fu=null,e=xr(e),e!==null){var t=f(e);if(t===null)e=null;else{var s=t.tag;if(s===13){if(e=d(t),e!==null)return e;e=null}else if(s===31){if(e=m(t),e!==null)return e;e=null}else if(s===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fu=e,null}function By(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(Ee()){case ht:return 2;case Be:return 8;case pt:case Ut:return 32;case nn:return 268435456;default:return 32}default:return 32}}var pd=!1,fs=null,ds=null,hs=null,Sa=new Map,Ea=new Map,ms=[],Vx="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 Hy(e,t){switch(e){case"focusin":case"focusout":fs=null;break;case"dragenter":case"dragleave":ds=null;break;case"mouseover":case"mouseout":hs=null;break;case"pointerover":case"pointerout":Sa.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ea.delete(t.pointerId)}}function xa(e,t,s,l,o,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:s,eventSystemFlags:l,nativeEvent:c,targetContainers:[o]},t!==null&&(t=Tr(t),t!==null&&jy(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function Gx(e,t,s,l,o){switch(t){case"focusin":return fs=xa(fs,e,t,s,l,o),!0;case"dragenter":return ds=xa(ds,e,t,s,l,o),!0;case"mouseover":return hs=xa(hs,e,t,s,l,o),!0;case"pointerover":var c=o.pointerId;return Sa.set(c,xa(Sa.get(c)||null,e,t,s,l,o)),!0;case"gotpointercapture":return c=o.pointerId,Ea.set(c,xa(Ea.get(c)||null,e,t,s,l,o)),!0}return!1}function qy(e){var t=xr(e.target);if(t!==null){var s=f(t);if(s!==null){if(t=s.tag,t===13){if(t=d(s),t!==null){e.blockedOn=t,to(e.priority,function(){Ly(s)});return}}else if(t===31){if(t=m(s),t!==null){e.blockedOn=t,to(e.priority,function(){Ly(s)});return}}else if(t===3&&s.stateNode.current.memoizedState.isDehydrated){e.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}e.blockedOn=null}function du(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var s=hd(e.nativeEvent);if(s===null){s=e.nativeEvent;var l=new s.constructor(s.type,s);hc=l,s.target.dispatchEvent(l),hc=null}else return t=Tr(s),t!==null&&jy(t),e.blockedOn=s,!1;t.shift()}return!0}function Yy(e,t,s){du(e)&&s.delete(t)}function Qx(){pd=!1,fs!==null&&du(fs)&&(fs=null),ds!==null&&du(ds)&&(ds=null),hs!==null&&du(hs)&&(hs=null),Sa.forEach(Yy),Ea.forEach(Yy)}function hu(e,t){e.blockedOn===t&&(e.blockedOn=null,pd||(pd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Qx)))}var mu=null;function Vy(e){mu!==e&&(mu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){mu===e&&(mu=null);for(var t=0;t<e.length;t+=3){var s=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(md(l||s)===null)continue;break}var c=Tr(s);c!==null&&(e.splice(t,3),t-=3,hf(c,{pending:!0,data:o,method:s.method,action:l},l,o))}}))}function sl(e){function t(R){return hu(R,e)}fs!==null&&hu(fs,e),ds!==null&&hu(ds,e),hs!==null&&hu(hs,e),Sa.forEach(t),Ea.forEach(t);for(var s=0;s<ms.length;s++){var l=ms[s];l.blockedOn===e&&(l.blockedOn=null)}for(;0<ms.length&&(s=ms[0],s.blockedOn===null);)qy(s),s.blockedOn===null&&ms.shift();if(s=(e.ownerDocument||e).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var o=s[l],c=s[l+1],h=o[$t]||null;if(typeof c=="function")h||Vy(s);else if(h){var y=null;if(c&&c.hasAttribute("formAction")){if(o=c,h=c[$t]||null)y=h.formAction;else if(md(o)!==null)continue}else y=h.action;typeof y=="function"?s[l+1]=y:(s.splice(l,3),l-=3),Vy(s)}}}function Gy(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return o=h})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),l||setTimeout(s,20)}function s(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(s,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function gd(e){this._internalRoot=e}pu.prototype.render=gd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(a(409));var s=t.current,l=Mn();Uy(s,l,e,t,null,null)},pu.prototype.unmount=gd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Uy(e.current,2,null,e,null,null),Po(),t[Ki]=null}};function pu(e){this._internalRoot=e}pu.prototype.unstable_scheduleHydration=function(e){if(e){var t=eo();e={blockedOn:null,target:e,priority:t};for(var s=0;s<ms.length&&t!==0&&t<ms[s].priority;s++);ms.splice(s,0,e),s===0&&qy(e)}};var Qy=i.version;if(Qy!=="19.2.7")throw Error(a(527,Qy,"19.2.7"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(a(188)):(e=Object.keys(e).join(","),Error(a(268,e)));return e=p(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Xx={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:z,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var gu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!gu.isDisabled&&gu.supportsFiber)try{on=gu.inject(Xx),Bt=gu}catch{}}return Ra.createRoot=function(e,t){if(!u(e))throw Error(a(299));var s=!1,l="",o=Jp,c=Wp,h=$p;return t!=null&&(t.unstable_strictMode===!0&&(s=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Dy(e,1,!1,null,null,s,l,null,o,c,h,Gy),e[Ki]=t.current,Jf(e),new gd(t)},Ra.hydrateRoot=function(e,t,s){if(!u(e))throw Error(a(299));var l=!1,o="",c=Jp,h=Wp,y=$p,R=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(o=s.identifierPrefix),s.onUncaughtError!==void 0&&(c=s.onUncaughtError),s.onCaughtError!==void 0&&(h=s.onCaughtError),s.onRecoverableError!==void 0&&(y=s.onRecoverableError),s.formState!==void 0&&(R=s.formState)),t=Dy(e,1,!0,t,s??null,l,o,R,c,h,y,Gy),t.context=zy(null),s=t.current,l=Mn(),l=ks(l),o=$i(l),o.callback=null,es(s,o,l),s=l,t.current.lanes=s,un(t,s),ai(t),e[Ki]=t.current,Jf(e),new pu(t)},Ra.version="19.2.7",Ra}var fv;function X1(){if(fv)return Sd.exports;fv=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(i){console.error(i)}}return n(),Sd.exports=Q1(),Sd.exports}var K1=X1();function ih(n,i){if(n&&!i)return n;if(!n&&i)return i;if(n||i)return{...n,...i}}const Th={};function Za(n,i,r,a,u){if(!r&&!a&&!n)return qu(i);let f=qu(n);return i&&(f=Nu(f,i)),r&&(f=Nu(f,r)),a&&(f=Nu(f,a)),f}function F1(n){if(n.length===0)return Th;if(n.length===1)return qu(n[0]);let i=qu(n[0]);for(let r=1;r<n.length;r+=1)i=Nu(i,n[r]);return i}function qu(n){return Rh(n)?{...Vb(n,Th)}:Z1(n)}function Nu(n,i){return Rh(i)?Vb(i,n):P1(n,i)}function Z1(n){const i={...n};for(const r in i){const a=i[r];Yb(r,a)&&(i[r]=Gb(a))}return i}function P1(n,i){if(!i)return n;for(const r in i){const a=i[r];switch(r){case"style":{n[r]=ih(n.style,a);break}case"className":{n[r]=Qb(n.className,a);break}default:Yb(r,a)?n[r]=I1(n[r],a):n[r]=a}}return n}function Yb(n,i){const r=n.charCodeAt(0),a=n.charCodeAt(1),u=n.charCodeAt(2);return r===111&&a===110&&u>=65&&u<=90&&(typeof i=="function"||typeof i>"u")}function Rh(n){return typeof n=="function"}function Vb(n,i){return Rh(n)?n(i):n??Th}function I1(n,i){return i?n?(...r)=>{const a=r[0];if(Xb(a)){const f=a;Yu(f);const d=i(...r);return f.baseUIHandlerPrevented||n==null||n(...r),d}const u=i(...r);return n==null||n(...r),u}:Gb(i):n}function Gb(n){return n&&((...i)=>{const r=i[0];return Xb(r)&&Yu(r),n(...i)})}function Yu(n){return n.preventBaseUIHandler=()=>{n.baseUIHandlerPrevented=!0},n}function Qb(n,i){return i?n?i+" "+n:i:n}function Xb(n){return n!=null&&typeof n=="object"&&"nativeEvent"in n}function J1(n,i){return function(a,...u){const f=new URL(n);return f.searchParams.set("code",a.toString()),u.forEach(d=>f.searchParams.append("args[]",d)),`${i} error #${a}; visit ${f} for the full message.`}}const dr=J1("https://base-ui.com/production-error","Base UI"),dv={};function Qi(n,i){const r=w.useRef(dv);return r.current===dv&&(r.current=n(i)),r}function Vu(n,i,r,a){const u=Qi(Kb).current;return $1(u,n,i,r,a)&&Fb(u,[n,i,r,a]),u.callback}function W1(n){const i=Qi(Kb).current;return eT(i,n)&&Fb(i,n),i.callback}function Kb(){return{callback:null,cleanup:null,refs:[]}}function $1(n,i,r,a,u){return n.refs[0]!==i||n.refs[1]!==r||n.refs[2]!==a||n.refs[3]!==u}function eT(n,i){return n.refs.length!==i.length||n.refs.some((r,a)=>r!==i[a])}function Fb(n,i){if(n.refs=i,i.every(r=>r==null)){n.callback=null;return}n.callback=r=>{if(n.cleanup&&(n.cleanup(),n.cleanup=null),r!=null){const a=Array(i.length).fill(null);for(let u=0;u<i.length;u+=1){const f=i[u];if(f!=null)switch(typeof f){case"function":{const d=f(r);typeof d=="function"&&(a[u]=d);break}case"object":{f.current=r;break}}}n.cleanup=()=>{for(let u=0;u<i.length;u+=1){const f=i[u];if(f!=null)switch(typeof f){case"function":{const d=a[u];typeof d=="function"?d():f(null);break}case"object":{f.current=null;break}}}}}}}const tT=parseInt(w.version,10);function Oh(n){return tT>=n}function hv(n){if(!w.isValidElement(n))return null;const i=n,r=i.props;return(Oh(19)?r==null?void 0:r.ref:i.ref)??null}function wh(){}const Jt=Object.freeze({});function nT(n,i){const r={};for(const a in n){const u=n[a];if(i!=null&&i.hasOwnProperty(a)){const f=i[a](u);f!=null&&Object.assign(r,f);continue}u===!0?r[`data-${a.toLowerCase()}`]="":u&&(r[`data-${a.toLowerCase()}`]=u.toString())}return r}function iT(n,i){return typeof n=="function"?n(i):n}function sT(n,i){return typeof n=="function"?n(i):n}function wl(n,i,r={}){const a=i.render,u=rT(i,r);if(r.enabled===!1)return null;const f=r.state??Jt;return oT(n,a,u,f)}function rT(n,i={}){const{className:r,style:a,render:u}=n,{state:f=Jt,ref:d,props:m,stateAttributesMapping:g,enabled:p=!0}=i,v=p?iT(r,f):void 0,b=p?sT(a,f):void 0,S=p?nT(f,g):Jt,E=p&&m?lT(m):void 0,x=p?ih(S,E)??{}:Jt;return typeof document<"u"&&(p?Array.isArray(d)?x.ref=W1([x.ref,hv(u),...d]):x.ref=Vu(x.ref,hv(u),d):Vu(null,null)),p?(v!==void 0&&(x.className=Qb(x.className,v)),b!==void 0&&(x.style=ih(x.style,b)),x):Jt}function lT(n){return Array.isArray(n)?F1(n):Za(void 0,n)}const aT=Symbol.for("react.lazy");function oT(n,i,r,a){if(i){if(typeof i=="function")return i(r,a);const u=Za(r,i.props);u.ref=r.ref;let f=i;return(f==null?void 0:f.$$typeof)===aT&&(f=w.Children.toArray(i)[0]),w.cloneElement(f,u)}if(n&&typeof n=="string")return uT(n,r);throw new Error(dr(8))}function uT(n,i){return n==="button"?w.createElement("button",{type:"button",...i,key:i.key}):n==="img"?w.createElement("img",{alt:"",...i,key:i.key}):w.createElement(n,i)}function cT(n){return wl(n.defaultTagName??"div",n,n)}function Zb(n){var i,r,a="";if(typeof n=="string"||typeof n=="number")a+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(i=0;i<u;i++)n[i]&&(r=Zb(n[i]))&&(a&&(a+=" "),a+=r)}else for(r in n)n[r]&&(a&&(a+=" "),a+=r);return a}function Pb(){for(var n,i,r=0,a="",u=arguments.length;r<u;r++)(n=arguments[r])&&(i=Zb(n))&&(a&&(a+=" "),a+=i);return a}const mv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,pv=Pb,Ib=(n,i)=>r=>{var a;if((i==null?void 0:i.variants)==null)return pv(n,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:u,defaultVariants:f}=i,d=Object.keys(u).map(p=>{const v=r==null?void 0:r[p],b=f==null?void 0:f[p];if(v===null)return null;const S=mv(v)||mv(b);return u[p][S]}),m=r&&Object.entries(r).reduce((p,v)=>{let[b,S]=v;return S===void 0||(p[b]=S),p},{}),g=i==null||(a=i.compoundVariants)===null||a===void 0?void 0:a.reduce((p,v)=>{let{class:b,className:S,...E}=v;return Object.entries(E).every(x=>{let[O,C]=x;return Array.isArray(C)?C.includes({...f,...m}[O]):{...f,...m}[O]===C})?[...p,b,S]:p},[]);return pv(n,d,g,r==null?void 0:r.class,r==null?void 0:r.className)},fT=(n,i)=>{const r=new Array(n.length+i.length);for(let a=0;a<n.length;a++)r[a]=n[a];for(let a=0;a<i.length;a++)r[n.length+a]=i[a];return r},dT=(n,i)=>({classGroupId:n,validator:i}),Jb=(n=new Map,i=null,r)=>({nextPart:n,validators:i,classGroupId:r}),Gu="-",gv=[],hT="arbitrary..",mT=n=>{const i=gT(n),{conflictingClassGroups:r,conflictingClassGroupModifiers:a}=n;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return pT(d);const m=d.split(Gu),g=m[0]===""&&m.length>1?1:0;return Wb(m,g,i)},getConflictingClassGroupIds:(d,m)=>{if(m){const g=a[d],p=r[d];return g?p?fT(p,g):g:p||gv}return r[d]||gv}}},Wb=(n,i,r)=>{if(n.length-i===0)return r.classGroupId;const u=n[i],f=r.nextPart.get(u);if(f){const p=Wb(n,i+1,f);if(p)return p}const d=r.validators;if(d===null)return;const m=i===0?n.join(Gu):n.slice(i).join(Gu),g=d.length;for(let p=0;p<g;p++){const v=d[p];if(v.validator(m))return v.classGroupId}},pT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=n.slice(1,-1),r=i.indexOf(":"),a=i.slice(0,r);return a?hT+a:void 0})(),gT=n=>{const{theme:i,classGroups:r}=n;return yT(r,i)},yT=(n,i)=>{const r=Jb();for(const a in n){const u=n[a];Ch(u,r,a,i)}return r},Ch=(n,i,r,a)=>{const u=n.length;for(let f=0;f<u;f++){const d=n[f];vT(d,i,r,a)}},vT=(n,i,r,a)=>{if(typeof n=="string"){bT(n,i,r);return}if(typeof n=="function"){ST(n,i,r,a);return}ET(n,i,r,a)},bT=(n,i,r)=>{const a=n===""?i:$b(i,n);a.classGroupId=r},ST=(n,i,r,a)=>{if(xT(n)){Ch(n(a),i,r,a);return}i.validators===null&&(i.validators=[]),i.validators.push(dT(r,n))},ET=(n,i,r,a)=>{const u=Object.entries(n),f=u.length;for(let d=0;d<f;d++){const[m,g]=u[d];Ch(g,$b(i,m),r,a)}},$b=(n,i)=>{let r=n;const a=i.split(Gu),u=a.length;for(let f=0;f<u;f++){const d=a[f];let m=r.nextPart.get(d);m||(m=Jb(),r.nextPart.set(d,m)),r=m}return r},xT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,TT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let i=0,r=Object.create(null),a=Object.create(null);const u=(f,d)=>{r[f]=d,i++,i>n&&(i=0,a=r,r=Object.create(null))};return{get(f){let d=r[f];if(d!==void 0)return d;if((d=a[f])!==void 0)return u(f,d),d},set(f,d){f in r?r[f]=d:u(f,d)}}},sh="!",yv=":",RT=[],vv=(n,i,r,a,u)=>({modifiers:n,hasImportantModifier:i,baseClassName:r,maybePostfixModifierPosition:a,isExternal:u}),OT=n=>{const{prefix:i,experimentalParseClassName:r}=n;let a=u=>{const f=[];let d=0,m=0,g=0,p;const v=u.length;for(let O=0;O<v;O++){const C=u[O];if(d===0&&m===0){if(C===yv){f.push(u.slice(g,O)),g=O+1;continue}if(C==="/"){p=O;continue}}C==="["?d++:C==="]"?d--:C==="("?m++:C===")"&&m--}const b=f.length===0?u:u.slice(g);let S=b,E=!1;b.endsWith(sh)?(S=b.slice(0,-1),E=!0):b.startsWith(sh)&&(S=b.slice(1),E=!0);const x=p&&p>g?p-g:void 0;return vv(f,E,S,x)};if(i){const u=i+yv,f=a;a=d=>d.startsWith(u)?f(d.slice(u.length)):vv(RT,!1,d,void 0,!0)}if(r){const u=a;a=f=>r({className:f,parseClassName:u})}return a},wT=n=>{const i=new Map;return n.orderSensitiveModifiers.forEach((r,a)=>{i.set(r,1e6+a)}),r=>{const a=[];let u=[];for(let f=0;f<r.length;f++){const d=r[f],m=d[0]==="[",g=i.has(d);m||g?(u.length>0&&(u.sort(),a.push(...u),u=[]),a.push(d)):u.push(d)}return u.length>0&&(u.sort(),a.push(...u)),a}},CT=n=>({cache:TT(n.cacheSize),parseClassName:OT(n),sortModifiers:wT(n),postfixLookupClassGroupIds:AT(n),...mT(n)}),AT=n=>{const i=Object.create(null),r=n.postfixLookupClassGroups;if(r)for(let a=0;a<r.length;a++)i[r[a]]=!0;return i},_T=/\s+/,MT=(n,i)=>{const{parseClassName:r,getClassGroupId:a,getConflictingClassGroupIds:u,sortModifiers:f,postfixLookupClassGroupIds:d}=i,m=[],g=n.trim().split(_T);let p="";for(let v=g.length-1;v>=0;v-=1){const b=g[v],{isExternal:S,modifiers:E,hasImportantModifier:x,baseClassName:O,maybePostfixModifierPosition:C}=r(b);if(S){p=b+(p.length>0?" "+p:p);continue}let M=!!C,_;if(M){const q=O.substring(0,C);_=a(q);const U=_&&d[_]?a(O):void 0;U&&U!==_&&(_=U,M=!1)}else _=a(O);if(!_){if(!M){p=b+(p.length>0?" "+p:p);continue}if(_=a(O),!_){p=b+(p.length>0?" "+p:p);continue}M=!1}const j=E.length===0?"":E.length===1?E[0]:f(E).join(":"),A=x?j+sh:j,Z=A+_;if(m.indexOf(Z)>-1)continue;m.push(Z);const X=u(_,M);for(let q=0;q<X.length;++q){const U=X[q];m.push(A+U)}p=b+(p.length>0?" "+p:p)}return p},NT=(...n)=>{let i=0,r,a,u="";for(;i<n.length;)(r=n[i++])&&(a=e0(r))&&(u&&(u+=" "),u+=a);return u},e0=n=>{if(typeof n=="string")return n;let i,r="";for(let a=0;a<n.length;a++)n[a]&&(i=e0(n[a]))&&(r&&(r+=" "),r+=i);return r},DT=(n,...i)=>{let r,a,u,f;const d=g=>{const p=i.reduce((v,b)=>b(v),n());return r=CT(p),a=r.cache.get,u=r.cache.set,f=m,m(g)},m=g=>{const p=a(g);if(p)return p;const v=MT(g,r);return u(g,v),v};return f=d,(...g)=>f(NT(...g))},zT=[],Lt=n=>{const i=r=>r[n]||zT;return i.isThemeGetter=!0,i},t0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,n0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,UT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,kT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jT=/\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$/,LT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,BT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,HT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,gs=n=>UT.test(n),De=n=>!!n&&!Number.isNaN(Number(n)),oi=n=>!!n&&Number.isInteger(Number(n)),Rd=n=>n.endsWith("%")&&De(n.slice(0,-1)),Ui=n=>kT.test(n),i0=()=>!0,qT=n=>jT.test(n)&&!LT.test(n),Ah=()=>!1,YT=n=>BT.test(n),VT=n=>HT.test(n),GT=n=>!me(n)&&!pe(n),QT=n=>n.startsWith("@container")&&(n[10]==="/"&&n[11]!==void 0||n[11]==="s"&&n[16]!==void 0&&n.startsWith("-size/",10)||n[11]==="n"&&n[18]!==void 0&&n.startsWith("-normal/",10)),XT=n=>zs(n,l0,Ah),me=n=>t0.test(n),$s=n=>zs(n,a0,qT),bv=n=>zs(n,$T,De),KT=n=>zs(n,u0,i0),FT=n=>zs(n,o0,Ah),Sv=n=>zs(n,s0,Ah),ZT=n=>zs(n,r0,VT),bu=n=>zs(n,c0,YT),pe=n=>n0.test(n),Oa=n=>hr(n,a0),PT=n=>hr(n,o0),Ev=n=>hr(n,s0),IT=n=>hr(n,l0),JT=n=>hr(n,r0),Su=n=>hr(n,c0,!0),WT=n=>hr(n,u0,!0),zs=(n,i,r)=>{const a=t0.exec(n);return a?a[1]?i(a[1]):r(a[2]):!1},hr=(n,i,r=!1)=>{const a=n0.exec(n);return a?a[1]?i(a[1]):r:!1},s0=n=>n==="position"||n==="percentage",r0=n=>n==="image"||n==="url",l0=n=>n==="length"||n==="size"||n==="bg-size",a0=n=>n==="length",$T=n=>n==="number",o0=n=>n==="family-name",u0=n=>n==="number"||n==="weight",c0=n=>n==="shadow",eR=()=>{const n=Lt("color"),i=Lt("font"),r=Lt("text"),a=Lt("font-weight"),u=Lt("tracking"),f=Lt("leading"),d=Lt("breakpoint"),m=Lt("container"),g=Lt("spacing"),p=Lt("radius"),v=Lt("shadow"),b=Lt("inset-shadow"),S=Lt("text-shadow"),E=Lt("drop-shadow"),x=Lt("blur"),O=Lt("perspective"),C=Lt("aspect"),M=Lt("ease"),_=Lt("animate"),j=()=>["auto","avoid","all","avoid-page","page","left","right","column"],A=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],Z=()=>[...A(),pe,me],X=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],U=()=>[pe,me,g],K=()=>[gs,"full","auto",...U()],re=()=>[oi,"none","subgrid",pe,me],fe=()=>["auto",{span:["full",oi,pe,me]},oi,pe,me],se=()=>[oi,"auto",pe,me],J=()=>["auto","min","max","fr",pe,me],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ne=()=>["start","end","center","stretch","center-safe","end-safe"],z=()=>["auto",...U()],G=()=>[gs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],I=()=>[gs,"screen","full","dvw","lvw","svw","min","max","fit",...U()],ae=()=>[gs,"screen","full","lh","dvh","lvh","svh","min","max","fit",...U()],H=()=>[n,pe,me],T=()=>[...A(),Ev,Sv,{position:[pe,me]}],B=()=>["no-repeat",{repeat:["","x","y","space","round"]}],te=()=>["auto","cover","contain",IT,XT,{size:[pe,me]}],ie=()=>[Rd,Oa,$s],le=()=>["","none","full",p,pe,me],ee=()=>["",De,Oa,$s],ge=()=>["solid","dashed","dotted","double"],ue=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],de=()=>[De,Rd,Ev,Sv],Ze=()=>["","none",x,pe,me],nt=()=>["none",De,pe,me],be=()=>["none",De,pe,me],ze=()=>[De,pe,me],we=()=>[gs,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ui],breakpoint:[Ui],color:[i0],container:[Ui],"drop-shadow":[Ui],ease:["in","out","in-out"],font:[GT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ui],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ui],shadow:[Ui],spacing:["px",De],text:[Ui],"text-shadow":[Ui],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",gs,me,pe,C]}],container:["container"],"container-type":[{"@container":["","normal","size",pe,me]}],"container-named":[QT],columns:[{columns:[De,me,pe,m]}],"break-after":[{"break-after":j()}],"break-before":[{"break-before":j()}],"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:Z()}],overflow:[{overflow:X()}],"overflow-x":[{"overflow-x":X()}],"overflow-y":[{"overflow-y":X()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:K()}],"inset-x":[{"inset-x":K()}],"inset-y":[{"inset-y":K()}],start:[{"inset-s":K(),start:K()}],end:[{"inset-e":K(),end:K()}],"inset-bs":[{"inset-bs":K()}],"inset-be":[{"inset-be":K()}],top:[{top:K()}],right:[{right:K()}],bottom:[{bottom:K()}],left:[{left:K()}],visibility:["visible","invisible","collapse"],z:[{z:[oi,"auto",pe,me]}],basis:[{basis:[gs,"full","auto",m,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,gs,"auto","initial","none",me]}],grow:[{grow:["",De,pe,me]}],shrink:[{shrink:["",De,pe,me]}],order:[{order:[oi,"first","last","none",pe,me]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":se()}],"col-end":[{"col-end":se()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":se()}],"row-end":[{"row-end":se()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":J()}],"auto-rows":[{"auto-rows":J()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ne(),"normal"]}],"justify-self":[{"justify-self":["auto",...ne()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ne(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ne(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ne(),"baseline"]}],"place-self":[{"place-self":["auto",...ne()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pbs:[{pbs:U()}],pbe:[{pbe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:z()}],mx:[{mx:z()}],my:[{my:z()}],ms:[{ms:z()}],me:[{me:z()}],mbs:[{mbs:z()}],mbe:[{mbe:z()}],mt:[{mt:z()}],mr:[{mr:z()}],mb:[{mb:z()}],ml:[{ml:z()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:G()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...ae()]}],"min-block-size":[{"min-block":["auto",...ae()]}],"max-block-size":[{"max-block":["none",...ae()]}],w:[{w:[m,"screen",...G()]}],"min-w":[{"min-w":[m,"screen","none",...G()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[d]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",r,Oa,$s]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,WT,KT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Rd,me]}],"font-family":[{font:[PT,FT,i]}],"font-features":[{"font-features":[me]}],"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:[u,pe,me]}],"line-clamp":[{"line-clamp":[De,"none",pe,bv]}],leading:[{leading:[f,...U()]}],"list-image":[{"list-image":["none",pe,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",pe,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:H()}],"text-color":[{text:H()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ge(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",pe,$s]}],"text-decoration-color":[{decoration:H()}],"underline-offset":[{"underline-offset":[De,"auto",pe,me]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"tab-size":[{tab:[oi,pe,me]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",pe,me]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",pe,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:T()}],"bg-repeat":[{bg:B()}],"bg-size":[{bg:te()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oi,pe,me],radial:["",pe,me],conic:[oi,pe,me]},JT,ZT]}],"bg-color":[{bg:H()}],"gradient-from-pos":[{from:ie()}],"gradient-via-pos":[{via:ie()}],"gradient-to-pos":[{to:ie()}],"gradient-from":[{from:H()}],"gradient-via":[{via:H()}],"gradient-to":[{to:H()}],rounded:[{rounded:le()}],"rounded-s":[{"rounded-s":le()}],"rounded-e":[{"rounded-e":le()}],"rounded-t":[{"rounded-t":le()}],"rounded-r":[{"rounded-r":le()}],"rounded-b":[{"rounded-b":le()}],"rounded-l":[{"rounded-l":le()}],"rounded-ss":[{"rounded-ss":le()}],"rounded-se":[{"rounded-se":le()}],"rounded-ee":[{"rounded-ee":le()}],"rounded-es":[{"rounded-es":le()}],"rounded-tl":[{"rounded-tl":le()}],"rounded-tr":[{"rounded-tr":le()}],"rounded-br":[{"rounded-br":le()}],"rounded-bl":[{"rounded-bl":le()}],"border-w":[{border:ee()}],"border-w-x":[{"border-x":ee()}],"border-w-y":[{"border-y":ee()}],"border-w-s":[{"border-s":ee()}],"border-w-e":[{"border-e":ee()}],"border-w-bs":[{"border-bs":ee()}],"border-w-be":[{"border-be":ee()}],"border-w-t":[{"border-t":ee()}],"border-w-r":[{"border-r":ee()}],"border-w-b":[{"border-b":ee()}],"border-w-l":[{"border-l":ee()}],"divide-x":[{"divide-x":ee()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ee()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ge(),"hidden","none"]}],"divide-style":[{divide:[...ge(),"hidden","none"]}],"border-color":[{border:H()}],"border-color-x":[{"border-x":H()}],"border-color-y":[{"border-y":H()}],"border-color-s":[{"border-s":H()}],"border-color-e":[{"border-e":H()}],"border-color-bs":[{"border-bs":H()}],"border-color-be":[{"border-be":H()}],"border-color-t":[{"border-t":H()}],"border-color-r":[{"border-r":H()}],"border-color-b":[{"border-b":H()}],"border-color-l":[{"border-l":H()}],"divide-color":[{divide:H()}],"outline-style":[{outline:[...ge(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,pe,me]}],"outline-w":[{outline:["",De,Oa,$s]}],"outline-color":[{outline:H()}],shadow:[{shadow:["","none",v,Su,bu]}],"shadow-color":[{shadow:H()}],"inset-shadow":[{"inset-shadow":["none",b,Su,bu]}],"inset-shadow-color":[{"inset-shadow":H()}],"ring-w":[{ring:ee()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:H()}],"ring-offset-w":[{"ring-offset":[De,$s]}],"ring-offset-color":[{"ring-offset":H()}],"inset-ring-w":[{"inset-ring":ee()}],"inset-ring-color":[{"inset-ring":H()}],"text-shadow":[{"text-shadow":["none",S,Su,bu]}],"text-shadow-color":[{"text-shadow":H()}],opacity:[{opacity:[De,pe,me]}],"mix-blend":[{"mix-blend":[...ue(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ue()}],"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":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":de()}],"mask-image-linear-to-pos":[{"mask-linear-to":de()}],"mask-image-linear-from-color":[{"mask-linear-from":H()}],"mask-image-linear-to-color":[{"mask-linear-to":H()}],"mask-image-t-from-pos":[{"mask-t-from":de()}],"mask-image-t-to-pos":[{"mask-t-to":de()}],"mask-image-t-from-color":[{"mask-t-from":H()}],"mask-image-t-to-color":[{"mask-t-to":H()}],"mask-image-r-from-pos":[{"mask-r-from":de()}],"mask-image-r-to-pos":[{"mask-r-to":de()}],"mask-image-r-from-color":[{"mask-r-from":H()}],"mask-image-r-to-color":[{"mask-r-to":H()}],"mask-image-b-from-pos":[{"mask-b-from":de()}],"mask-image-b-to-pos":[{"mask-b-to":de()}],"mask-image-b-from-color":[{"mask-b-from":H()}],"mask-image-b-to-color":[{"mask-b-to":H()}],"mask-image-l-from-pos":[{"mask-l-from":de()}],"mask-image-l-to-pos":[{"mask-l-to":de()}],"mask-image-l-from-color":[{"mask-l-from":H()}],"mask-image-l-to-color":[{"mask-l-to":H()}],"mask-image-x-from-pos":[{"mask-x-from":de()}],"mask-image-x-to-pos":[{"mask-x-to":de()}],"mask-image-x-from-color":[{"mask-x-from":H()}],"mask-image-x-to-color":[{"mask-x-to":H()}],"mask-image-y-from-pos":[{"mask-y-from":de()}],"mask-image-y-to-pos":[{"mask-y-to":de()}],"mask-image-y-from-color":[{"mask-y-from":H()}],"mask-image-y-to-color":[{"mask-y-to":H()}],"mask-image-radial":[{"mask-radial":[pe,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":de()}],"mask-image-radial-to-pos":[{"mask-radial-to":de()}],"mask-image-radial-from-color":[{"mask-radial-from":H()}],"mask-image-radial-to-color":[{"mask-radial-to":H()}],"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":A()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":de()}],"mask-image-conic-to-pos":[{"mask-conic-to":de()}],"mask-image-conic-from-color":[{"mask-conic-from":H()}],"mask-image-conic-to-color":[{"mask-conic-to":H()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:T()}],"mask-repeat":[{mask:B()}],"mask-size":[{mask:te()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",pe,me]}],filter:[{filter:["","none",pe,me]}],blur:[{blur:Ze()}],brightness:[{brightness:[De,pe,me]}],contrast:[{contrast:[De,pe,me]}],"drop-shadow":[{"drop-shadow":["","none",E,Su,bu]}],"drop-shadow-color":[{"drop-shadow":H()}],grayscale:[{grayscale:["",De,pe,me]}],"hue-rotate":[{"hue-rotate":[De,pe,me]}],invert:[{invert:["",De,pe,me]}],saturate:[{saturate:[De,pe,me]}],sepia:[{sepia:["",De,pe,me]}],"backdrop-filter":[{"backdrop-filter":["","none",pe,me]}],"backdrop-blur":[{"backdrop-blur":Ze()}],"backdrop-brightness":[{"backdrop-brightness":[De,pe,me]}],"backdrop-contrast":[{"backdrop-contrast":[De,pe,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,pe,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,pe,me]}],"backdrop-invert":[{"backdrop-invert":["",De,pe,me]}],"backdrop-opacity":[{"backdrop-opacity":[De,pe,me]}],"backdrop-saturate":[{"backdrop-saturate":[De,pe,me]}],"backdrop-sepia":[{"backdrop-sepia":["",De,pe,me]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",pe,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",pe,me]}],ease:[{ease:["linear","initial",M,pe,me]}],delay:[{delay:[De,pe,me]}],animate:[{animate:["none",_,pe,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[O,pe,me]}],"perspective-origin":[{"perspective-origin":Z()}],rotate:[{rotate:nt()}],"rotate-x":[{"rotate-x":nt()}],"rotate-y":[{"rotate-y":nt()}],"rotate-z":[{"rotate-z":nt()}],scale:[{scale:be()}],"scale-x":[{"scale-x":be()}],"scale-y":[{"scale-y":be()}],"scale-z":[{"scale-z":be()}],"scale-3d":["scale-3d"],skew:[{skew:ze()}],"skew-x":[{"skew-x":ze()}],"skew-y":[{"skew-y":ze()}],transform:[{transform:[pe,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:Z()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:we()}],"translate-x":[{"translate-x":we()}],"translate-y":[{"translate-y":we()}],"translate-z":[{"translate-z":we()}],"translate-none":["translate-none"],zoom:[{zoom:[oi,pe,me]}],accent:[{accent:H()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:H()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",pe,me]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":H()}],"scrollbar-track-color":[{"scrollbar-track":H()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mbs":[{"scroll-mbs":U()}],"scroll-mbe":[{"scroll-mbe":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pbs":[{"scroll-pbs":U()}],"scroll-pbe":[{"scroll-pbe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",pe,me]}],fill:[{fill:["none",...H()]}],"stroke-w":[{stroke:[De,Oa,$s,bv]}],stroke:[{stroke:["none",...H()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},tR=DT(eR);function En(...n){return tR(Pb(n))}const nR=Ib("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-4xl border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",{variants:{variant:{default:"bg-primary text-primary-foreground",secondary:"bg-secondary text-secondary-foreground",destructive:"bg-destructive/10 text-destructive",outline:"border-border text-foreground",ghost:"hover:bg-muted hover:text-muted-foreground",link:"text-primary underline-offset-4 hover:underline"}},defaultVariants:{variant:"default"}});function rl({className:n,variant:i="default",render:r,...a}){return cT({defaultTagName:"span",props:Za({className:En(nR({variant:i}),n)},a),render:r,state:{slot:"badge",variant:i}})}function Ma({className:n,...i}){return k.jsx("div",{"data-slot":"skeleton",className:En("animate-pulse rounded-md bg-muted",n),...i})}function iR({isLoading:n,isError:i,port:r,service:a}){return n?k.jsxs("div",{className:"flex min-w-[10rem] items-center gap-2","aria-live":"polite",children:[k.jsx(Ma,{className:"h-5 w-20"}),k.jsx("span",{className:"text-xs text-chatroom-text-muted",children:"Connecting…"})]}):i?k.jsx(rl,{variant:"destructive","aria-live":"polite",children:"Disconnected"}):k.jsxs("div",{className:"flex items-center gap-2 text-xs text-chatroom-text-muted","aria-live":"polite",children:[k.jsx(rl,{variant:"outline",className:"border-chatroom-status-success text-chatroom-status-success",children:"Connected"}),r!=null&&a!=null&&k.jsxs("span",{children:["Port ",r," · ",a]})]})}function sR({header:n,nav:i,children:r}){return k.jsxs("div",{className:"chatroom-root flex h-full min-h-screen flex-col bg-chatroom-bg-primary text-chatroom-text-primary",children:[n,i,k.jsx("main",{className:"flex min-h-0 flex-1 flex-col",children:r})]})}/**
|
|
50
|
+
* @license lucide-react v0.511.0 - ISC
|
|
51
|
+
*
|
|
52
|
+
* This source code is licensed under the ISC license.
|
|
53
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
+
*/const rR=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),lR=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,r,a)=>a?a.toUpperCase():r.toLowerCase()),xv=n=>{const i=lR(n);return i.charAt(0).toUpperCase()+i.slice(1)},f0=(...n)=>n.filter((i,r,a)=>!!i&&i.trim()!==""&&a.indexOf(i)===r).join(" ").trim(),aR=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0};/**
|
|
55
|
+
* @license lucide-react v0.511.0 - ISC
|
|
56
|
+
*
|
|
57
|
+
* This source code is licensed under the ISC license.
|
|
58
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
+
*/var oR={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"};/**
|
|
60
|
+
* @license lucide-react v0.511.0 - ISC
|
|
61
|
+
*
|
|
62
|
+
* This source code is licensed under the ISC license.
|
|
63
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
+
*/const uR=w.forwardRef(({color:n="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:u="",children:f,iconNode:d,...m},g)=>w.createElement("svg",{ref:g,...oR,width:i,height:i,stroke:n,strokeWidth:a?Number(r)*24/Number(i):r,className:f0("lucide",u),...!f&&!aR(m)&&{"aria-hidden":"true"},...m},[...d.map(([p,v])=>w.createElement(p,v)),...Array.isArray(f)?f:[f]]));/**
|
|
65
|
+
* @license lucide-react v0.511.0 - ISC
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the ISC license.
|
|
68
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/const Cl=(n,i)=>{const r=w.forwardRef(({className:a,...u},f)=>w.createElement(uR,{ref:f,iconNode:i,className:f0(`lucide-${rR(xv(n))}`,`lucide-${n}`,a),...u}));return r.displayName=xv(n),r};/**
|
|
70
|
+
* @license lucide-react v0.511.0 - ISC
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the ISC license.
|
|
73
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
+
*/const cR=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],fR=Cl("activity",cR);/**
|
|
75
|
+
* @license lucide-react v0.511.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const dR=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],hR=Cl("check",dR);/**
|
|
80
|
+
* @license lucide-react v0.511.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const mR=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],d0=Cl("chevron-down",mR);/**
|
|
85
|
+
* @license lucide-react v0.511.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const pR=[["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"}]],gR=Cl("circle-alert",pR);/**
|
|
90
|
+
* @license lucide-react v0.511.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const yR=[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]],vR=Cl("scroll-text",yR);/**
|
|
95
|
+
* @license lucide-react v0.511.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const bR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],SR=Cl("x",bR);function ER({status:n}){return k.jsxs("header",{className:"flex items-center justify-between border-b border-chatroom-border px-6 py-4",children:[k.jsxs("div",{className:"flex items-center gap-3",children:[k.jsx(fR,{className:"size-5 text-chatroom-text-muted","aria-hidden":!0}),k.jsx("h1",{className:"text-sm font-semibold uppercase tracking-widest",children:"Chatroom Daemon"})]}),n]})}function xR({children:n}){return k.jsx("nav",{className:"flex gap-1 border-b border-chatroom-border px-6 py-2",children:n})}function Tv({active:n=!1,children:i,onClick:r}){return k.jsx("span",{className:n?"bg-chatroom-bg-secondary px-3 py-1.5 text-xs font-medium uppercase tracking-wide":"px-3 py-1.5 text-xs font-medium uppercase tracking-wide text-chatroom-text-muted",onClick:r,role:r?"button":void 0,children:i})}const mi=Object.create(null);mi.open="0";mi.close="1";mi.ping="2";mi.pong="3";mi.message="4";mi.upgrade="5";mi.noop="6";const Du=Object.create(null);Object.keys(mi).forEach(n=>{Du[mi[n]]=n});const rh={type:"error",data:"parser error"},h0=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",m0=typeof ArrayBuffer=="function",p0=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n&&n.buffer instanceof ArrayBuffer,_h=({type:n,data:i},r,a)=>h0&&i instanceof Blob?r?a(i):Rv(i,a):m0&&(i instanceof ArrayBuffer||p0(i))?r?a(i):Rv(new Blob([i]),a):a(mi[n]+(i||"")),Rv=(n,i)=>{const r=new FileReader;return r.onload=function(){const a=r.result.split(",")[1];i("b"+(a||""))},r.readAsDataURL(n)};function Ov(n){return n instanceof Uint8Array?n:n instanceof ArrayBuffer?new Uint8Array(n):new Uint8Array(n.buffer,n.byteOffset,n.byteLength)}let Od;function TR(n,i){if(h0&&n.data instanceof Blob)return n.data.arrayBuffer().then(Ov).then(i);if(m0&&(n.data instanceof ArrayBuffer||p0(n.data)))return i(Ov(n.data));_h(n,!1,r=>{Od||(Od=new TextEncoder),i(Od.encode(r))})}const wv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Na=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let n=0;n<wv.length;n++)Na[wv.charCodeAt(n)]=n;const RR=n=>{let i=n.length*.75,r=n.length,a,u=0,f,d,m,g;n[n.length-1]==="="&&(i--,n[n.length-2]==="="&&i--);const p=new ArrayBuffer(i),v=new Uint8Array(p);for(a=0;a<r;a+=4)f=Na[n.charCodeAt(a)],d=Na[n.charCodeAt(a+1)],m=Na[n.charCodeAt(a+2)],g=Na[n.charCodeAt(a+3)],v[u++]=f<<2|d>>4,v[u++]=(d&15)<<4|m>>2,v[u++]=(m&3)<<6|g&63;return p},OR=typeof ArrayBuffer=="function",Mh=(n,i)=>{if(typeof n!="string")return{type:"message",data:g0(n,i)};const r=n.charAt(0);return r==="b"?{type:"message",data:wR(n.substring(1),i)}:Du[r]?n.length>1?{type:Du[r],data:n.substring(1)}:{type:Du[r]}:rh},wR=(n,i)=>{if(OR){const r=RR(n);return g0(r,i)}else return{base64:!0,data:n}},g0=(n,i)=>{switch(i){case"blob":return n instanceof Blob?n:new Blob([n]);case"arraybuffer":default:return n instanceof ArrayBuffer?n:n.buffer}},y0="",CR=(n,i)=>{const r=n.length,a=new Array(r);let u=0;n.forEach((f,d)=>{_h(f,!1,m=>{a[d]=m,++u===r&&i(a.join(y0))})})},AR=(n,i)=>{const r=n.split(y0),a=[];for(let u=0;u<r.length;u++){const f=Mh(r[u],i);if(a.push(f),f.type==="error")break}return a};function _R(){return new TransformStream({transform(n,i){TR(n,r=>{const a=r.length;let u;if(a<126)u=new Uint8Array(1),new DataView(u.buffer).setUint8(0,a);else if(a<65536){u=new Uint8Array(3);const f=new DataView(u.buffer);f.setUint8(0,126),f.setUint16(1,a)}else{u=new Uint8Array(9);const f=new DataView(u.buffer);f.setUint8(0,127),f.setBigUint64(1,BigInt(a))}n.data&&typeof n.data!="string"&&(u[0]|=128),i.enqueue(u),i.enqueue(r)})}})}let wd;function Eu(n){return n.reduce((i,r)=>i+r.length,0)}function xu(n,i){if(n[0].length===i)return n.shift();const r=new Uint8Array(i);let a=0;for(let u=0;u<i;u++)r[u]=n[0][a++],a===n[0].length&&(n.shift(),a=0);return n.length&&a<n[0].length&&(n[0]=n[0].slice(a)),r}function MR(n,i){wd||(wd=new TextDecoder);const r=[];let a=0,u=-1,f=!1;return new TransformStream({transform(d,m){for(r.push(d);;){if(a===0){if(Eu(r)<1)break;const g=xu(r,1);f=(g[0]&128)===128,u=g[0]&127,u<126?a=3:u===126?a=1:a=2}else if(a===1){if(Eu(r)<2)break;const g=xu(r,2);u=new DataView(g.buffer,g.byteOffset,g.length).getUint16(0),a=3}else if(a===2){if(Eu(r)<8)break;const g=xu(r,8),p=new DataView(g.buffer,g.byteOffset,g.length),v=p.getUint32(0);if(v>Math.pow(2,21)-1){m.enqueue(rh);break}u=v*Math.pow(2,32)+p.getUint32(4),a=3}else{if(Eu(r)<u)break;const g=xu(r,u);m.enqueue(Mh(f?g:wd.decode(g),i)),a=0}if(u===0||u>n){m.enqueue(rh);break}}}})}const v0=4;function Dt(n){if(n)return NR(n)}function NR(n){for(var i in Dt.prototype)n[i]=Dt.prototype[i];return n}Dt.prototype.on=Dt.prototype.addEventListener=function(n,i){return this._callbacks=this._callbacks||{},(this._callbacks["$"+n]=this._callbacks["$"+n]||[]).push(i),this};Dt.prototype.once=function(n,i){function r(){this.off(n,r),i.apply(this,arguments)}return r.fn=i,this.on(n,r),this};Dt.prototype.off=Dt.prototype.removeListener=Dt.prototype.removeAllListeners=Dt.prototype.removeEventListener=function(n,i){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+n];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+n],this;for(var a,u=0;u<r.length;u++)if(a=r[u],a===i||a.fn===i){r.splice(u,1);break}return r.length===0&&delete this._callbacks["$"+n],this};Dt.prototype.emit=function(n){this._callbacks=this._callbacks||{};for(var i=new Array(arguments.length-1),r=this._callbacks["$"+n],a=1;a<arguments.length;a++)i[a-1]=arguments[a];if(r){r=r.slice(0);for(var a=0,u=r.length;a<u;++a)r[a].apply(this,i)}return this};Dt.prototype.emitReserved=Dt.prototype.emit;Dt.prototype.listeners=function(n){return this._callbacks=this._callbacks||{},this._callbacks["$"+n]||[]};Dt.prototype.hasListeners=function(n){return!!this.listeners(n).length};const $u=typeof Promise=="function"&&typeof Promise.resolve=="function"?i=>Promise.resolve().then(i):(i,r)=>r(i,0),Kn=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),DR="arraybuffer";function b0(n,...i){return i.reduce((r,a)=>(n.hasOwnProperty(a)&&(r[a]=n[a]),r),{})}const zR=Kn.setTimeout,UR=Kn.clearTimeout;function ec(n,i){i.useNativeTimers?(n.setTimeoutFn=zR.bind(Kn),n.clearTimeoutFn=UR.bind(Kn)):(n.setTimeoutFn=Kn.setTimeout.bind(Kn),n.clearTimeoutFn=Kn.clearTimeout.bind(Kn))}const kR=1.33;function jR(n){return typeof n=="string"?LR(n):Math.ceil((n.byteLength||n.size)*kR)}function LR(n){let i=0,r=0;for(let a=0,u=n.length;a<u;a++)i=n.charCodeAt(a),i<128?r+=1:i<2048?r+=2:i<55296||i>=57344?r+=3:(a++,r+=4);return r}function S0(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function BR(n){let i="";for(let r in n)n.hasOwnProperty(r)&&(i.length&&(i+="&"),i+=encodeURIComponent(r)+"="+encodeURIComponent(n[r]));return i}function HR(n){let i={},r=n.split("&");for(let a=0,u=r.length;a<u;a++){let f=r[a].split("=");i[decodeURIComponent(f[0])]=decodeURIComponent(f[1])}return i}class qR extends Error{constructor(i,r,a){super(i),this.description=r,this.context=a,this.type="TransportError"}}class Nh extends Dt{constructor(i){super(),this.writable=!1,ec(this,i),this.opts=i,this.query=i.query,this.socket=i.socket,this.supportsBinary=!i.forceBase64}onError(i,r,a){return super.emitReserved("error",new qR(i,r,a)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(i){this.readyState==="open"&&this.write(i)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(i){const r=Mh(i,this.socket.binaryType);this.onPacket(r)}onPacket(i){super.emitReserved("packet",i)}onClose(i){this.readyState="closed",super.emitReserved("close",i)}pause(i){}createUri(i,r={}){return i+"://"+this._hostname()+this._port()+this.opts.path+this._query(r)}_hostname(){const i=this.opts.hostname;return i.indexOf(":")===-1?i:"["+i+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(i){const r=BR(i);return r.length?"?"+r:""}}class YR extends Nh{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(i){this.readyState="pausing";const r=()=>{this.readyState="paused",i()};if(this._polling||!this.writable){let a=0;this._polling&&(a++,this.once("pollComplete",function(){--a||r()})),this.writable||(a++,this.once("drain",function(){--a||r()}))}else r()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(i){const r=a=>{if(this.readyState==="opening"&&a.type==="open"&&this.onOpen(),a.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(a)};AR(i,this.socket.binaryType).forEach(r),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){const i=()=>{this.write([{type:"close"}])};this.readyState==="open"?i():this.once("open",i)}write(i){this.writable=!1,CR(i,r=>{this.doWrite(r,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const i=this.opts.secure?"https":"http",r=this.query||{};return this.opts.timestampRequests!==!1&&(r[this.opts.timestampParam]=S0()),!this.supportsBinary&&!r.sid&&(r.b64=1),this.createUri(i,r)}}let E0=!1;try{E0=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const VR=E0;function GR(){}class QR extends YR{constructor(i){if(super(i),typeof location<"u"){const r=location.protocol==="https:";let a=location.port;a||(a=r?"443":"80"),this.xd=typeof location<"u"&&i.hostname!==location.hostname||a!==i.port}}doWrite(i,r){const a=this.request({method:"POST",data:i});a.on("success",r),a.on("error",(u,f)=>{this.onError("xhr post error",u,f)})}doPoll(){const i=this.request();i.on("data",this.onData.bind(this)),i.on("error",(r,a)=>{this.onError("xhr poll error",r,a)}),this.pollXhr=i}}class hi extends Dt{constructor(i,r,a){super(),this.createRequest=i,ec(this,a),this._opts=a,this._method=a.method||"GET",this._uri=r,this._data=a.data!==void 0?a.data:null,this._create()}_create(){var i;const r=b0(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;const a=this._xhr=this.createRequest(r);try{a.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){a.setDisableHeaderCheck&&a.setDisableHeaderCheck(!0);for(let u in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(u)&&a.setRequestHeader(u,this._opts.extraHeaders[u])}}catch{}if(this._method==="POST")try{a.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{a.setRequestHeader("Accept","*/*")}catch{}(i=this._opts.cookieJar)===null||i===void 0||i.addCookies(a),"withCredentials"in a&&(a.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(a.timeout=this._opts.requestTimeout),a.onreadystatechange=()=>{var u;a.readyState===3&&((u=this._opts.cookieJar)===null||u===void 0||u.parseCookies(a.getResponseHeader("set-cookie"))),a.readyState===4&&(a.status===200||a.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof a.status=="number"?a.status:0)},0))},a.send(this._data)}catch(u){this.setTimeoutFn(()=>{this._onError(u)},0);return}typeof document<"u"&&(this._index=hi.requestsCount++,hi.requests[this._index]=this)}_onError(i){this.emitReserved("error",i,this._xhr),this._cleanup(!0)}_cleanup(i){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=GR,i)try{this._xhr.abort()}catch{}typeof document<"u"&&delete hi.requests[this._index],this._xhr=null}}_onLoad(){const i=this._xhr.responseText;i!==null&&(this.emitReserved("data",i),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}hi.requestsCount=0;hi.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Cv);else if(typeof addEventListener=="function"){const n="onpagehide"in Kn?"pagehide":"unload";addEventListener(n,Cv,!1)}}function Cv(){for(let n in hi.requests)hi.requests.hasOwnProperty(n)&&hi.requests[n].abort()}const XR=function(){const n=x0({xdomain:!1});return n&&n.responseType!==null}();class KR extends QR{constructor(i){super(i);const r=i&&i.forceBase64;this.supportsBinary=XR&&!r}request(i={}){return Object.assign(i,{xd:this.xd},this.opts),new hi(x0,this.uri(),i)}}function x0(n){const i=n.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!i||VR))return new XMLHttpRequest}catch{}if(!i)try{return new Kn[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}const T0=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class FR extends Nh{get name(){return"websocket"}doOpen(){const i=this.uri(),r=this.opts.protocols,a=T0?{}:b0(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(a.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(i,r,a)}catch(u){return this.emitReserved("error",u)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=i=>this.onClose({description:"websocket connection closed",context:i}),this.ws.onmessage=i=>this.onData(i.data),this.ws.onerror=i=>this.onError("websocket error",i)}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const a=i[r],u=r===i.length-1;_h(a,this.supportsBinary,f=>{try{this.doWrite(a,f)}catch{}u&&$u(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){const i=this.opts.secure?"wss":"ws",r=this.query||{};return this.opts.timestampRequests&&(r[this.opts.timestampParam]=S0()),this.supportsBinary||(r.b64=1),this.createUri(i,r)}}const Cd=Kn.WebSocket||Kn.MozWebSocket;class ZR extends FR{createSocket(i,r,a){return T0?new Cd(i,r,a):r?new Cd(i,r):new Cd(i)}doWrite(i,r){this.ws.send(r)}}class PR extends Nh{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(i){return this.emitReserved("error",i)}this._transport.closed.then(()=>{this.onClose()}).catch(i=>{this.onError("webtransport error",i)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(i=>{const r=MR(Number.MAX_SAFE_INTEGER,this.socket.binaryType),a=i.readable.pipeThrough(r).getReader(),u=_R();u.readable.pipeTo(i.writable),this._writer=u.writable.getWriter();const f=()=>{a.read().then(({done:m,value:g})=>{m||(this.onPacket(g),f())}).catch(m=>{})};f();const d={type:"open"};this.query.sid&&(d.data=`{"sid":"${this.query.sid}"}`),this._writer.write(d).then(()=>this.onOpen())})})}write(i){this.writable=!1;for(let r=0;r<i.length;r++){const a=i[r],u=r===i.length-1;this._writer.write(a).then(()=>{u&&$u(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var i;(i=this._transport)===null||i===void 0||i.close()}}const IR={websocket:ZR,webtransport:PR,polling:KR},JR=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,WR=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function lh(n){if(n.length>8e3)throw"URI too long";const i=n,r=n.indexOf("["),a=n.indexOf("]");r!=-1&&a!=-1&&(n=n.substring(0,r)+n.substring(r,a).replace(/:/g,";")+n.substring(a,n.length));let u=JR.exec(n||""),f={},d=14;for(;d--;)f[WR[d]]=u[d]||"";return r!=-1&&a!=-1&&(f.source=i,f.host=f.host.substring(1,f.host.length-1).replace(/;/g,":"),f.authority=f.authority.replace("[","").replace("]","").replace(/;/g,":"),f.ipv6uri=!0),f.pathNames=$R(f,f.path),f.queryKey=eO(f,f.query),f}function $R(n,i){const r=/\/{2,9}/g,a=i.replace(r,"/").split("/");return(i.slice(0,1)=="/"||i.length===0)&&a.splice(0,1),i.slice(-1)=="/"&&a.splice(a.length-1,1),a}function eO(n,i){const r={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(a,u,f){u&&(r[u]=f)}),r}const ah=typeof addEventListener=="function"&&typeof removeEventListener=="function",zu=[];ah&&addEventListener("offline",()=>{zu.forEach(n=>n())},!1);class As extends Dt{constructor(i,r){if(super(),this.binaryType=DR,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,i&&typeof i=="object"&&(r=i,i=null),i){const a=lh(i);r.hostname=a.host,r.secure=a.protocol==="https"||a.protocol==="wss",r.port=a.port,a.query&&(r.query=a.query)}else r.host&&(r.hostname=lh(r.host).host);ec(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(a=>{const u=a.prototype.name;this.transports.push(u),this._transportsByName[u]=a}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=HR(this.opts.query)),ah&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},zu.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(i){const r=Object.assign({},this.opts.query);r.EIO=v0,r.transport=i,this.id&&(r.sid=this.id);const a=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[i]);return new this._transportsByName[i](a)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}const i=this.opts.rememberUpgrade&&As.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";const r=this.createTransport(i);r.open(),this.setTransport(r)}setTransport(i){this.transport&&this.transport.removeAllListeners(),this.transport=i,i.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",As.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(i){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",i),this.emitReserved("heartbeat"),i.type){case"open":this.onHandshake(JSON.parse(i.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":const r=new Error("server error");r.code=i.data,this._onError(r);break;case"message":this.emitReserved("data",i.data),this.emitReserved("message",i.data);break}}onHandshake(i){this.emitReserved("handshake",i),this.id=i.sid,this.transport.query.sid=i.sid,this._pingInterval=i.pingInterval,this._pingTimeout=i.pingTimeout,this._maxPayload=i.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);const i=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+i,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},i),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const i=this._getWritablePackets();this.transport.send(i),this._prevBufferLen=i.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let r=1;for(let a=0;a<this.writeBuffer.length;a++){const u=this.writeBuffer[a].data;if(u&&(r+=jR(u)),a>0&&r>this._maxPayload)return this.writeBuffer.slice(0,a);r+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;const i=Date.now()>this._pingTimeoutTime;return i&&(this._pingTimeoutTime=0,$u(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),i}write(i,r,a){return this._sendPacket("message",i,r,a),this}send(i,r,a){return this._sendPacket("message",i,r,a),this}_sendPacket(i,r,a,u){if(typeof r=="function"&&(u=r,r=void 0),typeof a=="function"&&(u=a,a=null),this.readyState==="closing"||this.readyState==="closed")return;a=a||{},a.compress=a.compress!==!1;const f={type:i,data:r,options:a};this.emitReserved("packetCreate",f),this.writeBuffer.push(f),u&&this.once("flush",u),this.flush()}close(){const i=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),i()},a=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?a():i()}):this.upgrading?a():i()),this}_onError(i){if(As.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",i),this._onClose("transport error",i)}_onClose(i,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ah&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){const a=zu.indexOf(this._offlineEventListener);a!==-1&&zu.splice(a,1)}this.readyState="closed",this.id=null,this.emitReserved("close",i,r),this.writeBuffer=[],this._prevBufferLen=0}}}As.protocol=v0;class tO extends As{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let i=0;i<this._upgrades.length;i++)this._probe(this._upgrades[i])}_probe(i){let r=this.createTransport(i),a=!1;As.priorWebsocketSuccess=!1;const u=()=>{a||(r.send([{type:"ping",data:"probe"}]),r.once("packet",b=>{if(!a)if(b.type==="pong"&&b.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",r),!r)return;As.priorWebsocketSuccess=r.name==="websocket",this.transport.pause(()=>{a||this.readyState!=="closed"&&(v(),this.setTransport(r),r.send([{type:"upgrade"}]),this.emitReserved("upgrade",r),r=null,this.upgrading=!1,this.flush())})}else{const S=new Error("probe error");S.transport=r.name,this.emitReserved("upgradeError",S)}}))};function f(){a||(a=!0,v(),r.close(),r=null)}const d=b=>{const S=new Error("probe error: "+b);S.transport=r.name,f(),this.emitReserved("upgradeError",S)};function m(){d("transport closed")}function g(){d("socket closed")}function p(b){r&&b.name!==r.name&&f()}const v=()=>{r.removeListener("open",u),r.removeListener("error",d),r.removeListener("close",m),this.off("close",g),this.off("upgrading",p)};r.once("open",u),r.once("error",d),r.once("close",m),this.once("close",g),this.once("upgrading",p),this._upgrades.indexOf("webtransport")!==-1&&i!=="webtransport"?this.setTimeoutFn(()=>{a||r.open()},200):r.open()}onHandshake(i){this._upgrades=this._filterUpgrades(i.upgrades),super.onHandshake(i)}_filterUpgrades(i){const r=[];for(let a=0;a<i.length;a++)~this.transports.indexOf(i[a])&&r.push(i[a]);return r}}let nO=class extends tO{constructor(i,r={}){const a=typeof i=="object",u=a?{...i}:{...r};(!u.transports||u.transports&&typeof u.transports[0]=="string")&&(u.transports=(u.transports||["polling","websocket","webtransport"]).map(f=>IR[f]).filter(f=>!!f)),super(a?u:i,u)}};function iO(n,i="",r){let a=n;r=r||typeof location<"u"&&location,n==null&&(n=r.protocol+"//"+r.host),typeof n=="string"&&(n.charAt(0)==="/"&&(n.charAt(1)==="/"?n=r.protocol+n:n=r.host+n),/^(https?|wss?):\/\//.test(n)||(typeof r<"u"?n=r.protocol+"//"+n:n="https://"+n),a=lh(n)),a.port||(/^(http|ws)$/.test(a.protocol)?a.port="80":/^(http|ws)s$/.test(a.protocol)&&(a.port="443")),a.path=a.path||"/";const f=a.host.indexOf(":")!==-1?"["+a.host+"]":a.host;return a.id=a.protocol+"://"+f+":"+a.port+i,a.href=a.protocol+"://"+f+(r&&r.port===a.port?"":":"+a.port),a}const sO=typeof ArrayBuffer=="function",rO=n=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(n):n.buffer instanceof ArrayBuffer,R0=Object.prototype.toString,lO=typeof Blob=="function"||typeof Blob<"u"&&R0.call(Blob)==="[object BlobConstructor]",aO=typeof File=="function"||typeof File<"u"&&R0.call(File)==="[object FileConstructor]";function Dh(n){return sO&&(n instanceof ArrayBuffer||rO(n))||lO&&n instanceof Blob||aO&&n instanceof File}function Uu(n,i){if(!n||typeof n!="object")return!1;if(Array.isArray(n)){for(let r=0,a=n.length;r<a;r++)if(Uu(n[r]))return!0;return!1}if(Dh(n))return!0;if(n.toJSON&&typeof n.toJSON=="function"&&arguments.length===1)return Uu(n.toJSON(),!0);for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)&&Uu(n[r]))return!0;return!1}function oO(n){const i=[],r=n.data,a=n;return a.data=ku(r,i),a.attachments=i.length,{packet:a,buffers:i}}function ku(n,i,r){if(!n)return n;if(Dh(n)){const a={_placeholder:!0,num:i.length};return i.push(n),a}else if(Array.isArray(n)){const a=new Array(n.length);for(let u=0;u<n.length;u++)a[u]=ku(n[u],i);return a}else if(typeof n=="object"&&!(n instanceof Date)){if(n.toJSON&&typeof n.toJSON=="function"&&!r)return ku(n.toJSON(),i,!0);const a={};for(const u in n)Object.prototype.hasOwnProperty.call(n,u)&&(a[u]=ku(n[u],i));return a}return n}function uO(n,i){return n.data=oh(n.data,i),delete n.attachments,n}function oh(n,i){if(!n)return n;if(n&&n._placeholder===!0){if(typeof n.num=="number"&&n.num>=0&&n.num<i.length)return i[n.num];throw new Error("illegal attachments")}else if(Array.isArray(n))for(let r=0;r<n.length;r++)n[r]=oh(n[r],i);else if(typeof n=="object")for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(n[r]=oh(n[r],i));return n}const O0=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],cO=5;var Ne;(function(n){n[n.CONNECT=0]="CONNECT",n[n.DISCONNECT=1]="DISCONNECT",n[n.EVENT=2]="EVENT",n[n.ACK=3]="ACK",n[n.CONNECT_ERROR=4]="CONNECT_ERROR",n[n.BINARY_EVENT=5]="BINARY_EVENT",n[n.BINARY_ACK=6]="BINARY_ACK"})(Ne||(Ne={}));class fO{constructor(i){this.replacer=i}encode(i){return(i.type===Ne.EVENT||i.type===Ne.ACK)&&Uu(i)?this.encodeAsBinary({type:i.type===Ne.EVENT?Ne.BINARY_EVENT:Ne.BINARY_ACK,nsp:i.nsp,data:i.data,id:i.id}):[this.encodeAsString(i)]}encodeAsString(i){let r=""+i.type;return(i.type===Ne.BINARY_EVENT||i.type===Ne.BINARY_ACK)&&(r+=i.attachments+"-"),i.nsp&&i.nsp!=="/"&&(r+=i.nsp+","),i.id!=null&&(r+=i.id),i.data!=null&&(r+=JSON.stringify(i.data,this.replacer)),r}encodeAsBinary(i){const r=oO(i),a=this.encodeAsString(r.packet),u=r.buffers;return u.unshift(a),u}}class zh extends Dt{constructor(i){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof i=="function"?{reviver:i}:i)}add(i){let r;if(typeof i=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(i);const a=r.type===Ne.BINARY_EVENT;a||r.type===Ne.BINARY_ACK?(r.type=a?Ne.EVENT:Ne.ACK,this.reconstructor=new dO(r)):super.emitReserved("decoded",r)}else if(Dh(i)||i.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(i),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+i)}decodeString(i){let r=0;const a={type:Number(i.charAt(0))};if(Ne[a.type]===void 0)throw new Error("unknown packet type "+a.type);if(a.type===Ne.BINARY_EVENT||a.type===Ne.BINARY_ACK){const f=r+1;for(;i.charAt(++r)!=="-"&&r!=i.length;);const d=i.substring(f,r);if(d!=Number(d)||i.charAt(r)!=="-")throw new Error("Illegal attachments");const m=Number(d);if(!w0(m)||m<1)throw new Error("Illegal attachments");if(m>this.opts.maxAttachments)throw new Error("too many attachments");a.attachments=m}if(i.charAt(r+1)==="/"){const f=r+1;for(;++r&&!(i.charAt(r)===","||r===i.length););a.nsp=i.substring(f,r)}else a.nsp="/";const u=i.charAt(r+1);if(u!==""&&Number(u)==u){const f=r+1;for(;++r;){const d=i.charAt(r);if(d==null||Number(d)!=d){--r;break}if(r===i.length)break}a.id=Number(i.substring(f,r+1))}if(i.charAt(++r)){const f=this.tryParse(i.substr(r));if(zh.isPayloadValid(a.type,f))a.data=f;else throw new Error("invalid payload")}return a}tryParse(i){try{return JSON.parse(i,this.opts.reviver)}catch{return!1}}static isPayloadValid(i,r){switch(i){case Ne.CONNECT:return Qu(r);case Ne.DISCONNECT:return r===void 0;case Ne.CONNECT_ERROR:return typeof r=="string"||Qu(r);case Ne.EVENT:case Ne.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&O0.indexOf(r[0])===-1);case Ne.ACK:case Ne.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class dO{constructor(i){this.packet=i,this.buffers=[],this.reconPack=i}takeBinaryData(i){if(this.buffers.push(i),this.buffers.length===this.reconPack.attachments){const r=uO(this.reconPack,this.buffers);return this.finishedReconstruction(),r}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function hO(n){return typeof n=="string"}const w0=Number.isInteger||function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n};function mO(n){return n===void 0||w0(n)}function Qu(n){return Object.prototype.toString.call(n)==="[object Object]"}function pO(n,i){switch(n){case Ne.CONNECT:return i===void 0||Qu(i);case Ne.DISCONNECT:return i===void 0;case Ne.EVENT:return Array.isArray(i)&&(typeof i[0]=="number"||typeof i[0]=="string"&&O0.indexOf(i[0])===-1);case Ne.ACK:return Array.isArray(i);case Ne.CONNECT_ERROR:return typeof i=="string"||Qu(i);default:return!1}}function gO(n){return hO(n.nsp)&&mO(n.id)&&pO(n.type,n.data)}const yO=Object.freeze(Object.defineProperty({__proto__:null,Decoder:zh,Encoder:fO,get PacketType(){return Ne},isPacketValid:gO,protocol:cO},Symbol.toStringTag,{value:"Module"}));function Wn(n,i,r){return n.on(i,r),function(){n.off(i,r)}}const vO=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class C0 extends Dt{constructor(i,r,a){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=i,this.nsp=r,a&&a.auth&&(this.auth=a.auth),this._opts=Object.assign({},a),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const i=this.io;this.subs=[Wn(i,"open",this.onopen.bind(this)),Wn(i,"packet",this.onpacket.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...i){return i.unshift("message"),this.emit.apply(this,i),this}emit(i,...r){var a,u,f;if(vO.hasOwnProperty(i))throw new Error('"'+i.toString()+'" is a reserved event name');if(r.unshift(i),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(r),this;const d={type:Ne.EVENT,data:r};if(d.options={},d.options.compress=this.flags.compress!==!1,typeof r[r.length-1]=="function"){const v=this.ids++,b=r.pop();this._registerAckCallback(v,b),d.id=v}const m=(u=(a=this.io.engine)===null||a===void 0?void 0:a.transport)===null||u===void 0?void 0:u.writable,g=this.connected&&!(!((f=this.io.engine)===null||f===void 0)&&f._hasPingExpired());return this.flags.volatile&&!m||(g?(this.notifyOutgoingListeners(d),this.packet(d)):this.sendBuffer.push(d)),this.flags={},this}_registerAckCallback(i,r){var a;const u=(a=this.flags.timeout)!==null&&a!==void 0?a:this._opts.ackTimeout;if(u===void 0){this.acks[i]=r;return}const f=this.io.setTimeoutFn(()=>{delete this.acks[i];for(let m=0;m<this.sendBuffer.length;m++)this.sendBuffer[m].id===i&&this.sendBuffer.splice(m,1);r.call(this,new Error("operation has timed out"))},u),d=(...m)=>{this.io.clearTimeoutFn(f),r.apply(this,m)};d.withError=!0,this.acks[i]=d}emitWithAck(i,...r){return new Promise((a,u)=>{const f=(d,m)=>d?u(d):a(m);f.withError=!0,r.push(f),this.emit(i,...r)})}_addToQueue(i){let r;typeof i[i.length-1]=="function"&&(r=i.pop());const a={id:this._queueSeq++,tryCount:0,pending:!1,args:i,flags:Object.assign({fromQueue:!0},this.flags)};i.push((u,...f)=>(this._queue[0],u!==null?a.tryCount>this._opts.retries&&(this._queue.shift(),r&&r(u)):(this._queue.shift(),r&&r(null,...f)),a.pending=!1,this._drainQueue())),this._queue.push(a),this._drainQueue()}_drainQueue(i=!1){if(!this.connected||this._queue.length===0)return;const r=this._queue[0];r.pending&&!i||(r.pending=!0,r.tryCount++,this.flags=r.flags,this.emit.apply(this,r.args))}packet(i){i.nsp=this.nsp,this.io._packet(i)}onopen(){typeof this.auth=="function"?this.auth(i=>{this._sendConnectPacket(i)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(i){this.packet({type:Ne.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},i):i})}onerror(i){this.connected||this.emitReserved("connect_error",i)}onclose(i,r){this.connected=!1,delete this.id,this.emitReserved("disconnect",i,r),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(i=>{if(!this.sendBuffer.some(a=>String(a.id)===i)){const a=this.acks[i];delete this.acks[i],a.withError&&a.call(this,new Error("socket has been disconnected"))}})}onpacket(i){if(i.nsp===this.nsp)switch(i.type){case Ne.CONNECT:i.data&&i.data.sid?this.onconnect(i.data.sid,i.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case Ne.EVENT:case Ne.BINARY_EVENT:this.onevent(i);break;case Ne.ACK:case Ne.BINARY_ACK:this.onack(i);break;case Ne.DISCONNECT:this.ondisconnect();break;case Ne.CONNECT_ERROR:this.destroy();const a=new Error(i.data.message);a.data=i.data.data,this.emitReserved("connect_error",a);break}}onevent(i){const r=i.data||[];i.id!=null&&r.push(this.ack(i.id)),this.connected?this.emitEvent(r):this.receiveBuffer.push(Object.freeze(r))}emitEvent(i){if(this._anyListeners&&this._anyListeners.length){const r=this._anyListeners.slice();for(const a of r)a.apply(this,i)}super.emit.apply(this,i),this._pid&&i.length&&typeof i[i.length-1]=="string"&&(this._lastOffset=i[i.length-1])}ack(i){const r=this;let a=!1;return function(...u){a||(a=!0,r.packet({type:Ne.ACK,id:i,data:u}))}}onack(i){const r=this.acks[i.id];typeof r=="function"&&(delete this.acks[i.id],r.withError&&i.data.unshift(null),r.apply(this,i.data))}onconnect(i,r){this.id=i,this.recovered=r&&this._pid===r,this._pid=r,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(i=>this.emitEvent(i)),this.receiveBuffer=[],this.sendBuffer.forEach(i=>{this.notifyOutgoingListeners(i),this.packet(i)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(i=>i()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:Ne.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(i){return this.flags.compress=i,this}get volatile(){return this.flags.volatile=!0,this}timeout(i){return this.flags.timeout=i,this}onAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(i),this}prependAny(i){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(i),this}offAny(i){if(!this._anyListeners)return this;if(i){const r=this._anyListeners;for(let a=0;a<r.length;a++)if(i===r[a])return r.splice(a,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(i),this}prependAnyOutgoing(i){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(i),this}offAnyOutgoing(i){if(!this._anyOutgoingListeners)return this;if(i){const r=this._anyOutgoingListeners;for(let a=0;a<r.length;a++)if(i===r[a])return r.splice(a,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(i){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const r=this._anyOutgoingListeners.slice();for(const a of r)a.apply(this,i.data)}}}function Al(n){n=n||{},this.ms=n.min||100,this.max=n.max||1e4,this.factor=n.factor||2,this.jitter=n.jitter>0&&n.jitter<=1?n.jitter:0,this.attempts=0}Al.prototype.duration=function(){var n=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var i=Math.random(),r=Math.floor(i*this.jitter*n);n=(Math.floor(i*10)&1)==0?n-r:n+r}return Math.min(n,this.max)|0};Al.prototype.reset=function(){this.attempts=0};Al.prototype.setMin=function(n){this.ms=n};Al.prototype.setMax=function(n){this.max=n};Al.prototype.setJitter=function(n){this.jitter=n};class uh extends Dt{constructor(i,r){var a;super(),this.nsps={},this.subs=[],i&&typeof i=="object"&&(r=i,i=void 0),r=r||{},r.path=r.path||"/socket.io",this.opts=r,ec(this,r),this.reconnection(r.reconnection!==!1),this.reconnectionAttempts(r.reconnectionAttempts||1/0),this.reconnectionDelay(r.reconnectionDelay||1e3),this.reconnectionDelayMax(r.reconnectionDelayMax||5e3),this.randomizationFactor((a=r.randomizationFactor)!==null&&a!==void 0?a:.5),this.backoff=new Al({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(r.timeout==null?2e4:r.timeout),this._readyState="closed",this.uri=i;const u=r.parser||yO;this.encoder=new u.Encoder,this.decoder=new u.Decoder,this._autoConnect=r.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(i){return arguments.length?(this._reconnection=!!i,i||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(i){return i===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=i,this)}reconnectionDelay(i){var r;return i===void 0?this._reconnectionDelay:(this._reconnectionDelay=i,(r=this.backoff)===null||r===void 0||r.setMin(i),this)}randomizationFactor(i){var r;return i===void 0?this._randomizationFactor:(this._randomizationFactor=i,(r=this.backoff)===null||r===void 0||r.setJitter(i),this)}reconnectionDelayMax(i){var r;return i===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=i,(r=this.backoff)===null||r===void 0||r.setMax(i),this)}timeout(i){return arguments.length?(this._timeout=i,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(i){if(~this._readyState.indexOf("open"))return this;this.engine=new nO(this.uri,this.opts);const r=this.engine,a=this;this._readyState="opening",this.skipReconnect=!1;const u=Wn(r,"open",function(){a.onopen(),i&&i()}),f=m=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",m),i?i(m):this.maybeReconnectOnOpen()},d=Wn(r,"error",f);if(this._timeout!==!1){const m=this._timeout,g=this.setTimeoutFn(()=>{u(),f(new Error("timeout")),r.close()},m);this.opts.autoUnref&&g.unref(),this.subs.push(()=>{this.clearTimeoutFn(g)})}return this.subs.push(u),this.subs.push(d),this}connect(i){return this.open(i)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const i=this.engine;this.subs.push(Wn(i,"ping",this.onping.bind(this)),Wn(i,"data",this.ondata.bind(this)),Wn(i,"error",this.onerror.bind(this)),Wn(i,"close",this.onclose.bind(this)),Wn(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(i){try{this.decoder.add(i)}catch(r){this.onclose("parse error",r)}}ondecoded(i){$u(()=>{this.emitReserved("packet",i)},this.setTimeoutFn)}onerror(i){this.emitReserved("error",i)}socket(i,r){let a=this.nsps[i];return a?this._autoConnect&&!a.active&&a.connect():(a=new C0(this,i,r),this.nsps[i]=a),a}_destroy(i){const r=Object.keys(this.nsps);for(const a of r)if(this.nsps[a].active)return;this._close()}_packet(i){const r=this.encoder.encode(i);for(let a=0;a<r.length;a++)this.engine.write(r[a],i.options)}cleanup(){this.subs.forEach(i=>i()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(i,r){var a;this.cleanup(),(a=this.engine)===null||a===void 0||a.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",i,r),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const i=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const r=this.backoff.duration();this._reconnecting=!0;const a=this.setTimeoutFn(()=>{i.skipReconnect||(this.emitReserved("reconnect_attempt",i.backoff.attempts),!i.skipReconnect&&i.open(u=>{u?(i._reconnecting=!1,i.reconnect(),this.emitReserved("reconnect_error",u)):i.onreconnect()}))},r);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}}onreconnect(){const i=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",i)}}const wa={};function ju(n,i){typeof n=="object"&&(i=n,n=void 0),i=i||{};const r=iO(n,i.path||"/socket.io"),a=r.source,u=r.id,f=r.path,d=wa[u]&&f in wa[u].nsps,m=i.forceNew||i["force new connection"]||i.multiplex===!1||d;let g;return m?g=new uh(a,i):(wa[u]||(wa[u]=new uh(a,i)),g=wa[u]),r.query&&!i.query&&(i.query=r.queryKey),g.socket(r.path,i)}Object.assign(ju,{Manager:uh,Socket:C0,io:ju,connect:ju});let Ad=null;function _l(){return Ad||(Ad=ju({transports:["websocket"],autoConnect:!0})),Ad}async function bO(){const n=_l();return await Pa(n),n.emitWithAck("health.get")}async function Pa(n){n.connected||await new Promise((i,r)=>{const a=()=>{f(),i()},u=d=>{f(),r(d)},f=()=>{n.off("connect",a),n.off("connect_error",u)};n.on("connect",a),n.on("connect_error",u),n.connect()})}async function SO(n){const i=_l();return await Pa(i),i.emitWithAck("logs.history",n??{})}async function EO(n){const i=_l();return await Pa(i),i.emitWithAck("logs.dimensions",{limit:n})}async function xO(){const n=_l();return await Pa(n),n.emitWithAck("chatrooms.list")}async function TO(n){const i=_l();return await Pa(i),i.emitWithAck("eventStream.history",n??{})}function RO(n){const i=_l();return i.connect(),i.emit("logs.stream.subscribe"),i.on("logs.stream",n),()=>i.off("logs.stream",n)}function OO(){return Hb({queryKey:["daemon","health"],queryFn:async()=>{const n=await bO();if(!n.ok)throw new Error(n.error.message);return n.data},retry:2})}function Uh(n){var r;const i=(r=n.metadata)==null?void 0:r.harness;return typeof i=="string"?i:n.source.startsWith("harness:")?n.source.slice(8):void 0}function kh(n){var r;const i=(r=n.metadata)==null?void 0:r.chatroomId;return typeof i=="string"?i:void 0}function A0(n){var r;const i=(r=n.metadata)==null?void 0:r.role;return typeof i=="string"?i:void 0}function _0({line:n,chatroomName:i}){const r=kh(n),a=A0(n),u=Uh(n);return!r&&!a&&!u?null:k.jsxs("div",{className:"flex shrink-0 flex-wrap gap-1",children:[r&&k.jsx(rl,{variant:"outline",className:"text-chatroom-text-secondary",children:i??r}),a&&k.jsx(rl,{variant:"outline",className:"text-chatroom-status-info",children:a}),u&&k.jsx(rl,{variant:"outline",className:"text-chatroom-text-secondary",children:u})]})}const wO={debug:"text-chatroom-text-muted border-chatroom-border",info:"text-chatroom-status-info border-chatroom-status-info/40",warn:"text-chatroom-status-warning border-chatroom-status-warning/40",error:"text-chatroom-status-error border-chatroom-status-error/40"};function M0({level:n}){return k.jsx(rl,{variant:"outline",className:En("font-mono uppercase",wO[n]),children:n})}function tc(){return typeof window<"u"}function Wt(n){return jh(n)?(n.nodeName||"").toLowerCase():"#document"}function zt(n){var i;return(n==null||(i=n.ownerDocument)==null?void 0:i.defaultView)||window}function Xi(n){var i;return(i=(jh(n)?n.ownerDocument:n.document)||window.document)==null?void 0:i.documentElement}function jh(n){return tc()?n instanceof Node||n instanceof zt(n).Node:!1}function Je(n){return tc()?n instanceof Element||n instanceof zt(n).Element:!1}function Rt(n){return tc()?n instanceof HTMLElement||n instanceof zt(n).HTMLElement:!1}function xl(n){return!tc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof zt(n).ShadowRoot}function mr(n){const{overflow:i,overflowX:r,overflowY:a,display:u}=Un(n);return/auto|scroll|overlay|hidden|clip/.test(i+a+r)&&u!=="inline"&&u!=="contents"}function CO(n){return/^(table|td|th)$/.test(Wt(n))}function nc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const AO=/transform|translate|scale|rotate|perspective|filter/,_O=/paint|layout|strict|content/,er=n=>!!n&&n!=="none";let _d;function Lh(n){const i=Je(n)?Un(n):n;return er(i.transform)||er(i.translate)||er(i.scale)||er(i.rotate)||er(i.perspective)||!Bh()&&(er(i.backdropFilter)||er(i.filter))||AO.test(i.willChange||"")||_O.test(i.contain||"")}function MO(n){let i=Ms(n);for(;Rt(i)&&!_s(i);){if(Lh(i))return i;if(nc(i))return null;i=Ms(i)}return null}function Bh(){return _d==null&&(_d=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_d}function _s(n){return/^(html|body|#document)$/.test(Wt(n))}function Un(n){return zt(n).getComputedStyle(n)}function ic(n){return Je(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ms(n){if(Wt(n)==="html")return n;const i=n.assignedSlot||n.parentNode||xl(n)&&n.host||Xi(n);return xl(i)?i.host:i}function N0(n){const i=Ms(n);return _s(i)?(n.ownerDocument||n).body:Rt(i)&&mr(i)?i:N0(i)}function ka(n,i,r){var a;i===void 0&&(i=[]),r===void 0&&(r=!0);const u=N0(n),f=u===((a=n.ownerDocument)==null?void 0:a.body),d=zt(u);if(f){const m=ch(d);return i.concat(d,d.visualViewport||[],mr(u)?u:[],m&&r?ka(m):[])}else return i.concat(u,ka(u,[],r))}function ch(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}const Hh={...C1},Md=Hh.useInsertionEffect,NO=Md&&Md!==Hh.useLayoutEffect?Md:n=>n();function $e(n){const i=Qi(DO).current;return i.next=n,NO(i.effect),i.trampoline}function DO(){const n={next:void 0,callback:zO,trampoline:(...i)=>{var r;return(r=n.callback)==null?void 0:r.call(n,...i)},effect:()=>{n.callback=n.next}};return n}function zO(){}const UO=()=>{},Xe=typeof document<"u"?w.useLayoutEffect:UO,kO=w.createContext(void 0);function jO(n=!1){const i=w.useContext(kO);if(i===void 0&&!n)throw new Error(dr(16));return i}function LO(n){const{focusableWhenDisabled:i,disabled:r,composite:a=!1,tabIndex:u=0,isNativeButton:f}=n,d=a&&i!==!1,m=a&&i===!1;return{props:w.useMemo(()=>{const p={onKeyDown(v){r&&i&&v.key!=="Tab"&&v.preventDefault()}};return a||(p.tabIndex=u,!f&&r&&(p.tabIndex=i?u:-1)),(f&&(i||d)||!f&&r)&&(p["aria-disabled"]=r),f&&(!i||m)&&(p.disabled=r),p},[a,r,i,d,m,f,u])}}function D0(n={}){const{disabled:i=!1,focusableWhenDisabled:r,tabIndex:a=0,native:u=!0,composite:f}=n,d=w.useRef(null),m=jO(!0),g=f??m!==void 0,{props:p}=LO({focusableWhenDisabled:r,disabled:i,composite:g,tabIndex:a,isNativeButton:u}),v=w.useCallback(()=>{const E=d.current;Nd(E)&&g&&i&&p.disabled===void 0&&E.disabled&&(E.disabled=!1)},[i,p.disabled,g]);Xe(v,[v]);const b=w.useCallback((E={})=>{const{onClick:x,onMouseDown:O,onKeyUp:C,onKeyDown:M,onPointerDown:_,...j}=E;return Za({onClick(A){if(i){A.preventDefault();return}x==null||x(A)},onMouseDown(A){i||O==null||O(A)},onKeyDown(A){if(i||(Yu(A),M==null||M(A),A.baseUIHandlerPrevented))return;const Z=A.target===A.currentTarget,X=A.currentTarget,q=Nd(X),U=!u&&BO(X),K=Z&&(u?q:!U),re=A.key==="Enter",fe=A.key===" ",se=X.getAttribute("role"),J=(se==null?void 0:se.startsWith("menuitem"))||se==="option"||se==="gridcell";if(Z&&g&&fe){if(A.defaultPrevented&&J)return;A.preventDefault(),U||u&&q?(X.click(),A.preventBaseUIHandler()):K&&(x==null||x(A),A.preventBaseUIHandler());return}K&&(!u&&(fe||re)&&A.preventDefault(),!u&&re&&(x==null||x(A)))},onKeyUp(A){if(!i){if(Yu(A),C==null||C(A),A.target===A.currentTarget&&u&&g&&Nd(A.currentTarget)&&A.key===" "){A.preventDefault();return}A.baseUIHandlerPrevented||A.target===A.currentTarget&&!u&&!g&&A.key===" "&&(x==null||x(A))}},onPointerDown(A){if(i){A.preventDefault();return}_==null||_(A)}},u?{type:"button"}:{role:"button"},p,j)},[i,p,g,u]),S=$e(E=>{d.current=E,v()});return{getButtonProps:b,buttonRef:S}}function Nd(n){return Rt(n)&&n.tagName==="BUTTON"}function BO(n){return!!((n==null?void 0:n.tagName)==="A"&&(n!=null&&n.href))}const HO=w.forwardRef(function(i,r){const{render:a,className:u,disabled:f=!1,focusableWhenDisabled:d=!1,nativeButton:m=!0,style:g,...p}=i,{getButtonProps:v,buttonRef:b}=D0({disabled:f,focusableWhenDisabled:d,native:m});return wl("button",i,{state:{disabled:f},ref:[r,b],props:[p,v]})}),qO=Ib("inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-none text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input",ghost:"hover:bg-accent hover:text-accent-foreground"},size:{default:"h-9 px-4 py-2",sm:"h-8 px-3"}},defaultVariants:{variant:"default",size:"default"}});function YO({className:n,variant:i="default",size:r="default",...a}){return k.jsx(HO,{"data-slot":"button",className:En(qO({variant:i,size:r,className:n})),...a})}function VO({line:n,chatroomName:i,onClose:r}){return k.jsxs("aside",{className:"flex w-96 max-w-[40%] shrink-0 flex-col border-l border-chatroom-border bg-chatroom-bg-primary",role:"dialog","aria-modal":"true","aria-label":"Log detail",children:[k.jsxs("div",{className:"flex items-center justify-between border-b border-chatroom-border px-4 py-3",children:[k.jsx("h3",{className:"text-sm font-medium",children:"Log detail"}),k.jsx(YO,{variant:"ghost",size:"sm",onClick:r,"aria-label":"Close detail panel",children:k.jsx(SR,{className:"size-4"})})]}),k.jsxs("div",{className:"flex min-h-0 flex-1 flex-col gap-3 overflow-auto p-4 text-xs",children:[k.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[k.jsx(M0,{level:n.level}),k.jsx("span",{className:"text-chatroom-text-muted",children:new Date(n.timestamp).toISOString()})]}),k.jsx(_0,{line:n,chatroomName:i}),k.jsxs("div",{className:"text-chatroom-text-muted",children:["Source: ",k.jsx("span",{className:"text-chatroom-text-primary",children:n.source}),n.stream&&k.jsxs(k.Fragment,{children:[" · Stream: ",n.stream]}),n.id!=null&&k.jsxs(k.Fragment,{children:[" · ID: ",n.id]})]}),k.jsx("pre",{className:"whitespace-pre-wrap font-mono text-xs",children:n.message}),n.metadata&&Object.keys(n.metadata).length>0&&k.jsxs("div",{children:[k.jsx("p",{className:"mb-1 text-chatroom-text-muted",children:"Metadata"}),k.jsx("pre",{className:"whitespace-pre-wrap border border-chatroom-border bg-chatroom-bg-secondary p-2 font-mono text-[11px]",children:JSON.stringify(n.metadata,null,2)})]})]})]})}const GO=[];function qh(n){w.useEffect(n,GO)}const Ca=0;class ei{constructor(){et(this,"currentId",Ca);et(this,"clear",()=>{this.currentId!==Ca&&(clearTimeout(this.currentId),this.currentId=Ca)});et(this,"disposeEffect",()=>this.clear)}static create(){return new ei}start(i,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Ca,r()},i)}isStarted(){return this.currentId!==Ca}}function Tl(){const n=Qi(ei.create).current;return qh(n.disposeEffect),n}function QO(){return typeof navigator>"u"?{userAgent:"",platform:"",maxTouchPoints:0}:{userAgent:navigator.userAgent,platform:navigator.platform??"",maxTouchPoints:navigator.maxTouchPoints??0}}const{userAgent:XO,platform:KO,maxTouchPoints:FO}=QO(),sc=XO.toLowerCase(),ja=KO.toLowerCase(),rc=/^i(os$|p)/.test(ja)||ja==="macintel"&&FO>1,Av="android",fh=ja===Av||sc.includes(Av),ZO=!rc&&ja.startsWith("mac");ja.startsWith("win");const PO=ZO||rc;var wb;const Ml=typeof CSS<"u"&&!!((wb=CSS.supports)!=null&&wb.call(CSS,"-webkit-backdrop-filter:none"));!Ml&&sc.includes("firefox");!Ml&&sc.includes("chrom");const IO=PO,JO=/jsdom|happydom/.test(sc);function WO(n){n.preventDefault(),n.stopPropagation()}function $O(n){return"nativeEvent"in n}function ew(n){return n.pointerType===""&&n.isTrusted?!0:fh&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function tw(n){return JO?!1:!fh&&n.width===0&&n.height===0||fh&&n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType==="mouse"||n.width<1&&n.height<1&&n.pressure===0&&n.detail===0&&n.pointerType==="touch"}function La(n,i){const r=["mouse","pen"];return i||r.push("",void 0),r.includes(n)}function nw(n){const i=n.type;return i==="click"||i==="mousedown"||i==="keydown"||i==="keyup"}const dh="data-base-ui-focusable",z0="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function ji(n){var r;let i=n.activeElement;for(;((r=i==null?void 0:i.shadowRoot)==null?void 0:r.activeElement)!=null;)i=i.shadowRoot.activeElement;return i}function Me(n,i){var a;if(!n||!i)return!1;const r=(a=i.getRootNode)==null?void 0:a.call(i);if(n.contains(i))return!0;if(r&&xl(r)){let u=i;for(;u;){if(n===u)return!0;u=u.parentNode||u.host}}return!1}function $n(n){return"composedPath"in n?n.composedPath()[0]:n.target}function U0(n,i){if(!Je(n))return!1;const r=n;if(i.hasElement(r))return!r.hasAttribute("data-trigger-disabled");for(const[,a]of i.entries())if(Me(a,r))return!a.hasAttribute("data-trigger-disabled");return!1}function Dd(n,i){if(i==null)return!1;if("composedPath"in n)return n.composedPath().includes(i);const r=n;return r.target!=null&&i.contains(r.target)}function iw(n){return n.matches("html,body")}function Yh(n){return Rt(n)&&n.matches(z0)}function sw(n){return(n==null?void 0:n.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${z0}`))!=null}function _v(n){return n?n.getAttribute("role")==="combobox"&&Yh(n):!1}function Mv(n){return n?n.hasAttribute(dh)?n:n.querySelector(`[${dh}]`)||n:null}function rw(n,i){return i!=null&&!La(i)?0:typeof n=="function"?n():n}function hh(n,i,r){const a=rw(n,r);return typeof a=="number"?a:a==null?void 0:a[i]}function Nv(n){return typeof n=="function"?n():n}function k0(n,i){return i||n==="click"||n==="mousedown"}function lw(n){return(n==null?void 0:n.includes("mouse"))&&n!=="mousedown"}const aw="none",Ba="trigger-press",bn="trigger-hover",j0="outside-press",ow="close-press",Ha="focus-out",L0="escape-key",uw="imperative-action";function Qt(n,i,r,a){let u=!1,f=!1;const d=Jt;return{reason:n,event:i??new Event("base-ui"),cancel(){u=!0},allowPropagation(){f=!0},get isCanceled(){return u},get isPropagationAllowed(){return f},trigger:r,...d}}function Fe(n,i,r,a){return n.addEventListener(i,r,a),()=>{n.removeEventListener(i,r,a)}}function qi(...n){return()=>{for(let i=0;i<n.length;i+=1){const r=n[i];r&&r()}}}function Sn(n){const i=Qi(cw,n).current;return i.next=n,Xe(i.effect),i}function cw(n){const i={current:n,next:n,effect:()=>{i.current=i.next}};return i}const Tu=null;class fw{constructor(){et(this,"callbacks",[]);et(this,"callbacksCount",0);et(this,"nextId",1);et(this,"startId",1);et(this,"isScheduled",!1);et(this,"tick",i=>{var u;this.isScheduled=!1;const r=this.callbacks,a=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,a>0)for(let f=0;f<r.length;f+=1)(u=r[f])==null||u.call(r,i)})}request(i){const r=this.nextId;return this.nextId+=1,this.callbacks.push(i),this.callbacksCount+=1,(!this.isScheduled||!1)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),r}cancel(i){const r=i-this.startId;r<0||r>=this.callbacks.length||(this.callbacks[r]=null,this.callbacksCount-=1)}}const Ru=new fw;class di{constructor(){et(this,"currentId",Tu);et(this,"cancel",()=>{this.currentId!==Tu&&(Ru.cancel(this.currentId),this.currentId=Tu)});et(this,"disposeEffect",()=>this.cancel)}static create(){return new di}static request(i){return Ru.request(i)}static cancel(i){return Ru.cancel(i)}request(i){this.cancel(),this.currentId=Ru.request(()=>{this.currentId=Tu,i()})}}function Vh(){const n=Qi(di.create).current;return qh(n.disposeEffect),n}function ct(n){return(n==null?void 0:n.ownerDocument)||document}const dw={clipPath:"inset(50%)",overflow:"hidden",whiteSpace:"nowrap",border:0,padding:0,width:1,height:1,margin:-1},hw={...dw,position:"fixed",top:0,left:0},Rl=w.forwardRef(function(i,r){const[a,u]=w.useState();Xe(()=>{IO&&Ml&&u("button")},[]);const f={tabIndex:0,role:a};return k.jsx("span",{...i,ref:r,style:hw,"aria-hidden":a?void 0:!0,...f,"data-base-ui-focus-guard":""})}),mw=["top","right","bottom","left"],Ol=Math.min,Yi=Math.max,Xu=Math.round,Ou=Math.floor,Vi=n=>({x:n,y:n}),pw={left:"right",right:"left",bottom:"top",top:"bottom"};function B0(n,i,r){return Yi(n,Ol(i,r))}function Gi(n,i){return typeof n=="function"?n(i):n}function zn(n){return n.split("-")[0]}function Us(n){return n.split("-")[1]}function Gh(n){return n==="x"?"y":"x"}function Qh(n){return n==="y"?"height":"width"}function Fn(n){const i=n[0];return i==="t"||i==="b"?"y":"x"}function Xh(n){return Gh(Fn(n))}function gw(n,i,r){r===void 0&&(r=!1);const a=Us(n),u=Xh(n),f=Qh(u);let d=u==="x"?a===(r?"end":"start")?"right":"left":a==="start"?"bottom":"top";return i.reference[f]>i.floating[f]&&(d=Ku(d)),[d,Ku(d)]}function yw(n){const i=Ku(n);return[mh(n),i,mh(i)]}function mh(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Dv=["left","right"],zv=["right","left"],vw=["top","bottom"],bw=["bottom","top"];function Sw(n,i,r){switch(n){case"top":case"bottom":return r?i?zv:Dv:i?Dv:zv;case"left":case"right":return i?vw:bw;default:return[]}}function Ew(n,i,r,a){const u=Us(n);let f=Sw(zn(n),r==="start",a);return u&&(f=f.map(d=>d+"-"+u),i&&(f=f.concat(f.map(mh)))),f}function Ku(n){const i=zn(n);return pw[i]+n.slice(i.length)}function xw(n){var i,r,a,u;return{top:(i=n.top)!=null?i:0,right:(r=n.right)!=null?r:0,bottom:(a=n.bottom)!=null?a:0,left:(u=n.left)!=null?u:0}}function H0(n){return typeof n!="number"?xw(n):{top:n,right:n,bottom:n,left:n}}function Fu(n){const{x:i,y:r,width:a,height:u}=n;return{width:a,height:u,top:r,left:i,right:i+a,bottom:r+u,x:i,y:r}}function Tw(n){return n.visibility==="hidden"||n.visibility==="collapse"}function q0(n,i=n?Un(n):null){return!n||!n.isConnected||!i||Tw(i)?!1:typeof n.checkVisibility=="function"?n.checkVisibility():i.display!=="none"&&i.display!=="contents"}const Rw='a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]';function Ow(n){const i=n.assignedSlot;if(i)return i;if(n.parentElement)return n.parentElement;const r=n.getRootNode();return xl(r)?r.host:null}function ph(n){for(const i of Array.from(n.children))if(Wt(i)==="summary")return i;return null}function ww(n,i){const r=ph(i);return!!r&&(n===r||Me(r,n))}function Y0(n){const i=n?Wt(n):"";return n!=null&&n.matches(Rw)&&(i!=="summary"||n.parentElement!=null&&Wt(n.parentElement)==="details"&&ph(n.parentElement)===n)&&(i!=="details"||ph(n)==null)&&(i!=="input"||n.type!=="hidden")}function V0(n){if(!Y0(n)||!n.isConnected||n.matches(":disabled"))return!1;for(let i=n;i;i=Ow(i)){const r=i!==n,a=Wt(i)==="slot";if(i.hasAttribute("inert")||r&&Wt(i)==="details"&&!i.open&&!ww(n,i)||i.hasAttribute("hidden")||!a&&!Cw(i,r))return!1}return!0}function Cw(n,i){const r=Un(n);return i?r.display!=="none":q0(n,r)}function G0(n){const i=n.tabIndex;if(i<0){const r=Wt(n);if(r==="details"||r==="audio"||r==="video"||Rt(n)&&n.isContentEditable)return 0}return i}function zd(n){if(Wt(n)!=="input")return null;const i=n;return i.type==="radio"&&i.name!==""?i:null}function Aw(n,i){const r=zd(n);if(!r)return!0;const a=i.find(u=>{const f=zd(u);return(f==null?void 0:f.name)===r.name&&f.form===r.form&&f.checked});return a?a===r:i.find(u=>{const f=zd(u);return(f==null?void 0:f.name)===r.name&&f.form===r.form})===r}function Q0(n){if(Rt(n)&&Wt(n)==="slot"){const i=n.assignedElements({flatten:!0});if(i.length>0)return i}return Rt(n)&&n.shadowRoot?Array.from(n.shadowRoot.children):Array.from(n.children)}function X0(n,i){Q0(n).forEach(r=>{Y0(r)&&i.push(r),X0(r,i)})}function K0(n,i,r){Q0(n).forEach(a=>{Rt(a)&&a.matches(i)&&r.push(a),K0(a,i,r)})}function Kh(n){return V0(n)&&G0(n)>=0}function F0(n){const i=[];return X0(n,i),i.filter(V0)}function Ia(n){const i=F0(n);return i.filter(r=>G0(r)>=0&&Aw(r,i))}function Z0(n,i){const r=Ia(n),a=r.length;if(a===0)return;const u=ji(ct(n)),f=r.indexOf(u),d=f===-1?i===1?0:a-1:f+i;return r[d]}function Fh(n){return Z0(ct(n).body,1)||n}function P0(n){return Z0(ct(n).body,-1)||n}function I0(n,i){if(!n)return null;const r=Ia(ct(n).body),a=r.length;if(a===0)return null;const u=r.indexOf(n);if(u===-1)return null;const f=(u+i+a)%a;return r[f]}function _w(n){return I0(n,1)}function Mw(n){return I0(n,-1)}function ll(n,i){const r=i||n.currentTarget,a=n.relatedTarget;return!a||!Me(r,a)}function Nw(n){Ia(n).forEach(r=>{r.dataset.tabindex=r.getAttribute("tabindex")||"",r.setAttribute("tabindex","-1")})}function Uv(n){const i=[];K0(n,"[data-tabindex]",i),i.forEach(r=>{const a=r.dataset.tabindex;delete r.dataset.tabindex,a?r.setAttribute("tabindex",a):r.removeAttribute("tabindex")})}function Ns(n,i,r=!0){return n.filter(u=>u.parentId===i).flatMap(u=>{var f;return[...!r||(f=u.context)!=null&&f.open?[u]:[],...Ns(n,u.id,r)]})}function kv(n,i){var u;let r=[],a=(u=n.find(f=>f.id===i))==null?void 0:u.parentId;for(;a;){const f=n.find(d=>d.id===a);a=f==null?void 0:f.parentId,f&&(r=r.concat(f))}return r}function Zu(n){return`data-base-ui-${n}`}let wu=0;function Ud(n,i={}){const{preventScroll:r=!1,sync:a=!1,shouldFocus:u}=i;cancelAnimationFrame(wu);function f(){u&&!u()||n==null||n.focus({preventScroll:r})}if(a)return f(),wh;const d=requestAnimationFrame(f);return wu=d,()=>{wu===d&&(cancelAnimationFrame(d),wu=0)}}const kd={inert:new WeakMap,"aria-hidden":new WeakMap},jv="data-base-ui-inert",gh={inert:new WeakSet,"aria-hidden":new WeakSet};let Aa=new WeakMap,jd=0;function Dw(n){return gh[n]}function J0(n){return n?xl(n)?n.host:J0(n.parentNode):null}const Lv=(n,i)=>i.map(r=>{if(n.contains(r))return r;const a=J0(r);return n.contains(a)?a:null}).filter(r=>r!=null),Bv=n=>{const i=new Set;return n.forEach(r=>{let a=r;for(;a&&!i.has(a);)i.add(a),a=a.parentNode}),i},Hv=(n,i,r)=>{const a=[],u=f=>{!f||r.has(f)||Array.from(f.children).forEach(d=>{Wt(d)!=="script"&&(i.has(d)?u(d):a.push(d))})};return u(n),a};function zw(n,i,r,a,{mark:u=!0}){let f=null;a?f="inert":r&&(f="aria-hidden");let d=null,m=null;const g=Lv(i,n),p=u?Hv(i,Bv(g),new Set(g)):[],v=[],b=[];if(f){const S=kd[f],E=Dw(f);m=E,d=S;const x=Lv(i,Array.from(i.querySelectorAll("[aria-live]"))),O=g.concat(x);Hv(i,Bv(O),new Set(O)).forEach(M=>{const _=M.getAttribute(f),j=_!==null&&_!=="false",A=(S.get(M)||0)+1;S.set(M,A),v.push(M),A===1&&j&&E.add(M),j||M.setAttribute(f,f==="inert"?"":"true")})}return u&&p.forEach(S=>{const E=(Aa.get(S)||0)+1;Aa.set(S,E),b.push(S),E===1&&S.setAttribute(jv,"")}),jd+=1,()=>{d&&v.forEach(S=>{const x=(d.get(S)||0)-1;d.set(S,x),x||(!(m!=null&&m.has(S))&&f&&S.removeAttribute(f),m==null||m.delete(S))}),u&&b.forEach(S=>{const E=(Aa.get(S)||0)-1;Aa.set(S,E),E||S.removeAttribute(jv)}),jd-=1,jd||(kd.inert=new WeakMap,kd["aria-hidden"]=new WeakMap,gh.inert=new WeakSet,gh["aria-hidden"]=new WeakSet,Aa=new WeakMap)}}function qv(n,i={}){const{ariaHidden:r=!1,inert:a=!1,mark:u=!0}=i,f=ct(n[0]).body;return zw(n,f,r,a,{mark:u})}var Ds=qb();let Yv=0;function Uw(n,i="mui"){const[r,a]=w.useState(n),u=n||r;return w.useEffect(()=>{r==null&&(Yv+=1,a(`${i}-${Yv}`))},[r,i]),u}const Vv=Hh.useId;function Ja(n,i){if(Vv!==void 0){const r=Vv();return n??(i?`${i}-${r}`:r)}return Uw(n,i)}const kw=500,jw={style:{transition:"none"}},W0="data-base-ui-click-trigger",Lw={fallbackAxisSide:"end"},Bw={clipPath:"inset(50%)",position:"fixed",top:0,left:0},$0=w.createContext(null),eS=()=>w.useContext($0),Hw=Zu("portal");function qw(n={}){const{ref:i,container:r,componentProps:a=Jt,elementProps:u}=n,f=Ja(),d=eS(),m=d==null?void 0:d.portalNode,[g,p]=w.useState(null),[v,b]=w.useState(null),S=$e(C=>{C!==null&&b(C)}),E=w.useRef(null);Xe(()=>{if(r===null){E.current&&(E.current=null,b(null),p(null));return}if(f==null)return;const C=(r&&(jh(r)?r:r.current))??m??document.body;if(C==null){E.current&&(E.current=null,b(null),p(null));return}E.current!==C&&(E.current=C,b(null),p(C))},[r,m,f]);const x=wl("div",a,{ref:[i,S],props:[{id:f,[Hw]:""},u]});return{portalNode:v,portalSubtree:g&&x?Ds.createPortal(x,g):null}}const Yw=w.forwardRef(function(i,r){const{render:a,className:u,style:f,children:d,container:m,renderGuards:g,...p}=i,{portalNode:v,portalSubtree:b}=qw({container:m,ref:r,componentProps:i,elementProps:p}),S=w.useRef(null),E=w.useRef(null),x=w.useRef(null),O=w.useRef(null),[C,M]=w.useState(null),_=w.useRef(!1),j=C==null?void 0:C.modal,A=C==null?void 0:C.open,Z=typeof g=="boolean"?g:!!C&&!C.modal&&C.open&&!!v;w.useEffect(()=>{if(!v||j)return;function q(U){v&&U.relatedTarget&&ll(U)&&(U.type==="focusin"?_.current&&(Uv(v),_.current=!1):(Nw(v),_.current=!0))}return qi(Fe(v,"focusin",q,!0),Fe(v,"focusout",q,!0))},[v,j]),Xe(()=>{!v||A!==!0||!_.current||(Uv(v),_.current=!1)},[A,v]);const X=w.useMemo(()=>({beforeOutsideRef:S,afterOutsideRef:E,beforeInsideRef:x,afterInsideRef:O,portalNode:v,setFocusManagerState:M}),[v]);return k.jsxs(w.Fragment,{children:[b,k.jsxs($0.Provider,{value:X,children:[Z&&v&&k.jsx(Rl,{"data-type":"outside",ref:S,onFocus:q=>{var U;if(ll(q,v))(U=x.current)==null||U.focus();else{const K=C?C.domReference:null,re=P0(K);re==null||re.focus()}}}),Z&&v&&k.jsx("span",{"aria-owns":v.id,style:Bw}),v&&Ds.createPortal(d,v),Z&&v&&k.jsx(Rl,{"data-type":"outside",ref:E,onFocus:q=>{var U;if(ll(q,v))(U=O.current)==null||U.focus();else{const K=C?C.domReference:null,re=Fh(K);re==null||re.focus(),C!=null&&C.closeOnFocusOut&&(C==null||C.onOpenChange(!1,Qt(Ha,q.nativeEvent)))}}})]})]})});function tS(){const n=new Map;return{emit(i,r){var a;(a=n.get(i))==null||a.forEach(u=>u(r))},on(i,r){n.has(i)||n.set(i,new Set),n.get(i).add(r)},off(i,r){var a;(a=n.get(i))==null||a.delete(r)}}}class Vw{constructor(){et(this,"nodesRef",{current:[]});et(this,"events",tS())}addNode(i){this.nodesRef.current.push(i)}removeNode(i){const r=this.nodesRef.current.findIndex(a=>a===i);r!==-1&&this.nodesRef.current.splice(r,1)}}const nS=w.createContext(null),iS=w.createContext(null),Nl=()=>{var n;return((n=w.useContext(nS))==null?void 0:n.id)||null},Dl=n=>{const i=w.useContext(iS);return n??i};function Gw(n){const i=Ja(),r=Dl(n),a=Nl();return Xe(()=>{if(!i)return;const u={id:i,parentId:a};return r==null||r.addNode(u),()=>{r==null||r.removeNode(u)}},[r,i,a]),i}function Qw(n){const{children:i,id:r}=n,a=Nl();return k.jsx(nS.Provider,{value:w.useMemo(()=>({id:r,parentId:a}),[r,a]),children:i})}function Xw(n){const{children:i,externalTree:r}=n,a=Qi(()=>r??new Vw).current;return k.jsx(iS.Provider,{value:a,children:i})}function Li(n){return n==null?n:"current"in n?n.current:n}function Kw(n,i){const r=zt($n(n));return n instanceof r.KeyboardEvent?"keyboard":n instanceof r.FocusEvent?i||"keyboard":"pointerType"in n?n.pointerType||"keyboard":"touches"in n?"touch":n instanceof r.MouseEvent?i||(n.detail===0?"keyboard":"mouse"):""}const Fw=20;let ws=[];function Zh(){ws=ws.filter(n=>{var i;return(i=n.deref())==null?void 0:i.isConnected})}function Gv(n){Zh(),n&&Wt(n)!=="body"&&(ws.push(new WeakRef(n)),ws.length>Fw&&(ws=ws.slice(-20)))}function Qv(){var n;return Zh(),(n=ws[ws.length-1])==null?void 0:n.deref()}function Zw(n){return n?Kh(n)?n:Ia(n)[0]||n:null}function Xv(n){var u;if(n.hasAttribute("tabindex")&&!n.hasAttribute("data-tabindex")||!((u=n.getAttribute("role"))!=null&&u.includes("dialog")))return;const r=F0(n).filter(f=>{const d=f.getAttribute("data-tabindex")||"";return Kh(f)||f.hasAttribute("data-tabindex")&&!d.startsWith("-")}),a=n.getAttribute("tabindex");r.length===0?a!=="0"&&(n.setAttribute("tabindex","0"),n.setAttribute("data-tabindex","0")):(a!=="-1"||n.hasAttribute("data-tabindex")&&n.getAttribute("data-tabindex")!=="-1")&&(n.setAttribute("tabindex","-1"),n.setAttribute("data-tabindex","-1"))}function Pw(n){const{context:i,children:r,disabled:a=!1,initialFocus:u=!0,returnFocus:f=!0,restoreFocus:d=!1,modal:m=!0,closeOnFocusOut:g=!0,openInteractionType:p="",nextFocusableElement:v,previousFocusableElement:b,beforeContentFocusGuardRef:S,externalTree:E,getInsideElements:x}=n,O="rootStore"in i?i.rootStore:i,C=O.useState("open"),M=O.useState("domReferenceElement"),_=O.useState("floatingElement"),{events:j,dataRef:A}=O.context,Z=$e(()=>{var be;return(be=A.current.floatingContext)==null?void 0:be.nodeId}),X=u===!1,q=_v(M)&&X,U=Sn(u),K=Sn(f),re=Sn(p),fe=Sn(C),se=Dl(E),J=eS(),oe=w.useRef(!1),ne=w.useRef(!1),z=w.useRef(!1),G=w.useRef(null),I=w.useRef(""),ae=w.useRef(""),H=w.useRef(null),T=w.useRef(null),B=Vu(H,S,J==null?void 0:J.beforeInsideRef),te=Vu(T,J==null?void 0:J.afterInsideRef),ie=Tl(),le=Tl(),ee=Vh(),ge=J!=null,ue=Mv(_),de=$e((be=ue)=>be?Ia(be):[]),Ze=$e(()=>(x==null?void 0:x().filter(be=>be!=null))??[]);w.useEffect(()=>{if(a||!m)return;function be(we){we.key==="Tab"&&Me(ue,ji(ct(ue)))&&de().length===0&&!q&&WO(we)}const ze=ct(ue);return Fe(ze,"keydown",be)},[a,ue,m,q,de]),w.useEffect(()=>{if(a||!C)return;const be=ct(ue);function ze(){z.current=!1}function we(bt){const Oe=$n(bt),Ue=Ze(),xe=Me(_,Oe)||Me(M,Oe)||Me(J==null?void 0:J.portalNode,Oe)||Ue.some(mt=>mt===Oe||Me(mt,Oe));z.current=!xe,ae.current=bt.pointerType||"keyboard",Oe!=null&&Oe.closest(`[${W0}]`)&&(ne.current=!0,le.start(0,()=>{ne.current=!1}))}function ft(){ae.current="keyboard"}return qi(Fe(be,"pointerdown",we,!0),Fe(be,"pointerup",ze,!0),Fe(be,"pointercancel",ze,!0),Fe(be,"keydown",ft,!0),ze)},[a,_,M,ue,C,J,le,Ze]),w.useEffect(()=>{if(a||!g)return;const be=ct(ue);function ze(){ne.current=!0,le.start(0,()=>{ne.current=!1})}function we(Ue){const xe=$n(Ue);Kh(xe)&&(G.current=xe)}function ft(Ue){const xe=Ue.relatedTarget,mt=Ue.currentTarget,dt=$n(Ue);m&&xe==null&&dt!=null&&Me(_,dt)&&Gv(dt),queueMicrotask(()=>{const ke=Z(),St=O.context.triggerElements,ce=Ze(),Ee=(xe==null?void 0:xe.hasAttribute(Zu("focus-guard")))&&[H.current,T.current,J==null?void 0:J.beforeInsideRef.current,J==null?void 0:J.afterInsideRef.current,J==null?void 0:J.beforeOutsideRef.current,J==null?void 0:J.afterOutsideRef.current,Li(b),Li(v)].includes(xe),ht=!(Me(M,xe)||Me(_,xe)||Me(xe,_)||Me(J==null?void 0:J.portalNode,xe)||ce.some(Be=>Be===xe||Me(Be,xe))||xe!=null&&St.hasElement(xe)||St.hasMatchingElement(Be=>Me(Be,xe))||Ee||se&&(Ns(se.nodesRef.current,ke).find(Be=>{var pt,Ut;return Me((pt=Be.context)==null?void 0:pt.elements.floating,xe)||Me((Ut=Be.context)==null?void 0:Ut.elements.domReference,xe)})||kv(se.nodesRef.current,ke).find(Be=>{var pt,Ut,nn;return[(pt=Be.context)==null?void 0:pt.elements.floating,Mv((Ut=Be.context)==null?void 0:Ut.elements.floating)].includes(xe)||((nn=Be.context)==null?void 0:nn.elements.domReference)===xe})));if(mt===M&&ue&&Xv(ue),d&&mt!==M&&!q0(dt)&&ji(be)===be.body){if(Rt(ue)&&(ue.focus(),d==="popup")){ee.request(()=>{ue.focus()});return}const Be=de(),pt=G.current,Ut=(pt&&Be.includes(pt)?pt:null)||Be[Be.length-1]||ue;Rt(Ut)&&Ut.focus()}if(A.current.insideReactTree){A.current.insideReactTree=!1;return}(q||!m)&&xe&&ht&&!ne.current&&(q||xe!==Qv())&&(oe.current=!0,O.setOpen(!1,Qt(Ha,Ue)))})}function bt(){z.current||(A.current.insideReactTree=!0,ie.start(0,()=>{A.current.insideReactTree=!1}))}const Oe=Rt(M)?M:null;if(!(!_&&!Oe))return qi(Oe&&Fe(Oe,"focusout",ft),Oe&&Fe(Oe,"pointerdown",ze),_&&Fe(_,"focusin",we),_&&Fe(_,"focusout",ft),_&&J&&Fe(_,"focusout",bt,!0))},[a,M,_,ue,m,se,J,O,g,d,de,q,Z,A,ie,le,ee,v,b,Ze]),w.useEffect(()=>{var mt,dt,ke;if(a||!_||!C)return;const be=Array.from(((mt=J==null?void 0:J.portalNode)==null?void 0:mt.querySelectorAll(`[${Zu("portal")}]`))||[]),we=(ke=(dt=(se?kv(se.nodesRef.current,Z()):[]).find(St=>{var ce;return _v(((ce=St.context)==null?void 0:ce.elements.domReference)||null)}))==null?void 0:dt.context)==null?void 0:ke.elements.domReference,bt=[...[_,...be,H.current,T.current,J==null?void 0:J.beforeOutsideRef.current,J==null?void 0:J.afterOutsideRef.current,...Ze()],we,Li(b),Li(v),q?M:null].filter(St=>St!=null),Oe=qv(bt,{ariaHidden:m||q,mark:!1}),Ue=[_,...be].filter(St=>St!=null),xe=qv(Ue);return()=>{xe(),Oe()}},[C,a,M,_,m,J,q,se,Z,v,b,Ze]),Xe(()=>{if(!C||a||!Rt(ue))return;const be=ct(ue),ze=ji(be);queueMicrotask(()=>{const we=U.current,ft=typeof we=="function"?we(re.current||""):we;if(ft===void 0||ft===!1||Me(ue,ze))return;let Oe=null;const Ue=()=>(Oe==null&&(Oe=de(ue)),Oe[0]||ue);let xe;ft===!0||ft===null?xe=Ue():xe=Li(ft),xe=xe||Ue();const mt=Me(ue,ji(be));Ud(xe,{preventScroll:xe===ue,shouldFocus(){if(!fe.current)return!1;if(mt)return!0;const dt=ji(be);return!(dt!==xe&&Me(ue,dt))}})})},[a,C,ue,de,U,re,fe]),Xe(()=>{if(a||!ue)return;const be=ct(ue),ze=ji(be),we=re.current==null;Gv(ze);function ft(Oe){if(Oe.open||(I.current=Kw(Oe.nativeEvent,ae.current)),Oe.reason===bn&&Oe.nativeEvent.type==="mouseleave"&&(oe.current=!0),Oe.reason===j0)if(Oe.nested)oe.current=!1;else if(ew(Oe.nativeEvent)||tw(Oe.nativeEvent))oe.current=!1;else{let Ue=!1;ct(ue).createElement("div").focus({get preventScroll(){return Ue=!0,!1}}),Ue?oe.current=!1:oe.current=!0}}j.on("openchange",ft);function bt(){const Oe=K.current;let Ue=typeof Oe=="function"?Oe(I.current):Oe;if(Ue===void 0||Ue===!1)return null;Ue===null&&(Ue=!0);const xe=M!=null&&M.isConnected?M:null,mt=ze!=null&&ze.isConnected&&Wt(ze)!=="body"?ze:null;let dt=we?mt||xe:xe||mt;return dt||(dt=Qv()||null),typeof Ue=="boolean"?dt:Li(Ue)||dt||null}return()=>{j.off("openchange",ft);const Oe=ji(be),Ue=Ze(),xe=Me(_,Oe)||Ue.some(ke=>ke===Oe||Me(ke,Oe))||se&&Ns(se.nodesRef.current,Z(),!1).some(ke=>{var St;return Me((St=ke.context)==null?void 0:St.elements.floating,Oe)}),mt=K.current,dt=bt();queueMicrotask(()=>{const ke=Zw(dt),St=typeof mt!="boolean";mt&&!oe.current&&Rt(ke)&&(!(!St&&ke!==Oe&&Oe!==be.body)||xe)&&ke.focus({preventScroll:!0}),oe.current=!1})}},[a,_,ue,K,re,j,se,M,Z,Ze]),Xe(()=>{if(!Ml||C||!_)return;const be=ji(ct(_));!Rt(be)||!Yh(be)||Me(_,be)&&be.blur()},[C,_]),Xe(()=>{if(!(a||!J))return J.setFocusManagerState({modal:m,closeOnFocusOut:g,open:C,onOpenChange:O.setOpen,domReference:M}),()=>{J.setFocusManagerState(null)}},[a,J,m,C,O,g,M]),Xe(()=>{if(!(a||!ue))return Xv(ue),()=>{queueMicrotask(Zh)}},[a,ue]);const nt=!a&&(m?!q:!0)&&(ge||m);return k.jsxs(w.Fragment,{children:[nt&&k.jsx(Rl,{"data-type":"inside",ref:B,onFocus:be=>{var ze;if(m){const we=de();Ud(we[we.length-1])}else if(J!=null&&J.portalNode)if(oe.current=!1,ll(be,J.portalNode)){const we=Fh(M);we==null||we.focus()}else(ze=Li(b??J.beforeOutsideRef))==null||ze.focus()}}),r,nt&&k.jsx(Rl,{"data-type":"inside",ref:te,onFocus:be=>{var ze;if(m)Ud(de()[0]);else if(J!=null&&J.portalNode)if(g&&(oe.current=!0),ll(be,J.portalNode)){const we=P0(M);we==null||we.focus()}else(ze=Li(v??J.afterOutsideRef))==null||ze.focus()}})]})}function Iw(n,i={}){const{enabled:r=!0,event:a="click",toggle:u=!0,ignoreMouse:f=!1,stickIfOpen:d=!0,touchOpenDelay:m=0,reason:g=Ba}=i,p="rootStore"in n?n.rootStore:n,v=p.context.dataRef,b=w.useRef(void 0),S=Vh(),E=Tl(),x=w.useMemo(()=>{function O(M,_,j,A){const Z=Qt(g,_,j);M&&A==="touch"&&m>0?E.start(m,()=>{p.setOpen(!0,Z)}):p.setOpen(M,Z)}function C(M,_,j){const A=v.current.openEvent,Z=p.select("domReferenceElement")!==_;return M&&Z||!M||!u?!0:A&&d?!j(A.type):!1}return{onPointerDown(M){b.current=M.pointerType},onMouseDown(M){const _=b.current,j=M.nativeEvent,A=p.select("open");if(M.button!==0||a==="click"||La(_,!0)&&f)return;const Z=C(A,M.currentTarget,U=>U==="click"||U==="mousedown"),X=$n(j);if(Yh(X)){O(Z,j,X,_);return}const q=M.currentTarget;S.request(()=>{O(Z,j,q,_)})},onClick(M){if(a==="mousedown-only")return;const _=b.current;if(a==="mousedown"&&_){b.current=void 0;return}if(La(_,!0)&&f)return;const j=p.select("open"),A=C(j,M.currentTarget,Z=>Z==="click"||Z==="mousedown"||Z==="keydown"||Z==="keyup");O(A,M.nativeEvent,M.currentTarget,_)},onKeyDown(){b.current=void 0}}},[v,a,f,g,p,d,u,S,E,m]);return w.useMemo(()=>r?{reference:x}:Jt,[r,x])}function Jw(){return!1}function Ww(n){return{escapeKey:typeof n=="boolean"?n:(n==null?void 0:n.escapeKey)??!1,outsidePress:typeof n=="boolean"?n:(n==null?void 0:n.outsidePress)??!0}}function $w(n,i={}){const{enabled:r=!0,escapeKey:a=!0,outsidePress:u=!0,outsidePressEvent:f="sloppy",referencePress:d=Jw,bubbles:m,externalTree:g}=i,p="rootStore"in n?n.rootStore:n,v=p.useState("open"),b=p.useState("floatingElement"),{dataRef:S}=p.context,E=Dl(g),x=$e(typeof u=="function"?u:()=>!1),O=typeof u=="function"?x:u,C=O!==!1,M=$e(()=>f),{escapeKey:_,outsidePress:j}=Ww(m),A=w.useRef(!1),Z=w.useRef(!1),X=w.useRef(!1),q=w.useRef(!1),U=w.useRef(""),K=w.useRef(null),re=Tl(),fe=Tl(),se=$e(()=>{fe.clear(),S.current.insideReactTree=!1}),J=$e(B=>{var le;const te=(le=S.current.floatingContext)==null?void 0:le.nodeId;return(E?Ns(E.nodesRef.current,te):[]).some(ee=>{var ge;return((ge=ee.context)==null?void 0:ge.open)&&!ee.context.dataRef.current[B]})}),oe=$e(B=>Dd(B,p.select("floatingElement"))||Dd(B,p.select("domReferenceElement"))),ne=$e(B=>{d()&&p.setOpen(!1,Qt(Ba,B.nativeEvent))}),z=$e(B=>{if(!v||!r||!a||B.key!=="Escape"||q.current||!_&&J("__escapeKeyBubbles"))return;const te=$O(B)?B.nativeEvent:B,ie=Qt(L0,te);p.setOpen(!1,ie),ie.isCanceled||B.preventDefault(),!_&&!ie.isPropagationAllowed&&B.stopPropagation()}),G=$e(()=>{S.current.insideReactTree=!0,fe.start(0,se)}),I=$e(B=>{if(!v||!r||B.button!==0)return;const te=$n(B.nativeEvent);Me(p.select("floatingElement"),te)&&(A.current||(A.current=!0,Z.current=!1))}),ae=$e(B=>{!v||!r||(B.defaultPrevented||B.nativeEvent.defaultPrevented)&&A.current&&(Z.current=!0)});w.useEffect(()=>{if(!v||!r)return;S.current.__escapeKeyBubbles=_,S.current.__outsidePressBubbles=j;const B=new ei,te=new ei;function ie(){B.clear(),q.current=!0}function le(){B.start(Ml?5:0,()=>{q.current=!1})}function ee(){X.current=!0,te.start(0,()=>{X.current=!1})}function ge(){A.current=!1,Z.current=!1}function ue(){const ce=U.current,Ee=ce==="pen"||!ce?"mouse":ce,ht=M(),Be=typeof ht=="function"?ht():ht;return typeof Be=="string"?Be:Be[Ee]}function de(ce){const Ee=ue();return Ee==="intentional"&&ce.type!=="click"||Ee==="sloppy"&&ce.type==="click"}function Ze(ce){var Be;const Ee=(Be=S.current.floatingContext)==null?void 0:Be.nodeId,ht=E&&Ns(E.nodesRef.current,Ee).some(pt=>{var Ut;return Dd(ce,(Ut=pt.context)==null?void 0:Ut.elements.floating)});return oe(ce)||ht}function nt(ce){if(de(ce)){ce.type!=="click"&&!oe(ce)&&(te.clear(),X.current=!1),se();return}if(S.current.insideReactTree){se();return}const Ee=$n(ce),ht=`[${Zu("inert")}]`,Be=Je(Ee)?Ee.getRootNode():null,pt=Array.from((xl(Be)?Be:ct(p.select("floatingElement"))).querySelectorAll(ht)),Ut=p.context.triggerElements;if(Ee&&(Ut.hasElement(Ee)||Ut.hasMatchingElement(sn=>Me(sn,Ee))))return;let nn=Je(Ee)?Ee:null;for(;nn&&!_s(nn);){const sn=Ms(nn);if(_s(sn)||!Je(sn))break;nn=sn}if(!(pt.length&&Je(Ee)&&!iw(Ee)&&!Me(Ee,p.select("floatingElement"))&&pt.every(sn=>!Me(nn,sn)))){if(Rt(Ee)&&!("touches"in ce)){const sn=_s(Ee),ti=Un(Ee),on=/auto|scroll/,Bt=sn||on.test(ti.overflowX),xn=sn||on.test(ti.overflowY),Ht=Bt&&Ee.clientWidth>0&&Ee.scrollWidth>Ee.clientWidth,pr=xn&&Ee.clientHeight>0&&Ee.scrollHeight>Ee.clientHeight,gr=ti.direction==="rtl",yr=pr&&(gr?ce.offsetX<=Ee.offsetWidth-Ee.clientWidth:ce.offsetX>Ee.clientWidth),pi=Ht&&ce.offsetY>Ee.clientHeight;if(yr||pi)return}if(!Ze(ce)){if(ue()==="intentional"&&X.current){te.clear(),X.current=!1;return}typeof O=="function"&&!O(ce)||J("__outsidePressBubbles")||(p.setOpen(!1,Qt(j0,ce)),se())}}}function be(ce){ue()!=="sloppy"||ce.pointerType==="touch"||!p.select("open")||!r||oe(ce)||nt(ce)}function ze(ce){if(ue()!=="sloppy"||!p.select("open")||!r||oe(ce))return;const Ee=ce.touches[0];Ee&&(K.current={startTime:Date.now(),startX:Ee.clientX,startY:Ee.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},re.start(1e3,()=>{K.current&&(K.current.dismissOnTouchEnd=!1,K.current.dismissOnMouseDown=!1)}))}function we(ce,Ee){const ht=$n(ce);if(!ht)return;const Be=Fe(ht,ce.type,()=>{Ee(ce),Be()})}function ft(ce){U.current="touch",we(ce,ze)}function bt(ce){re.clear(),ce.type==="pointerdown"&&(U.current=ce.pointerType),!(ce.type==="mousedown"&&K.current&&!K.current.dismissOnMouseDown)&&we(ce,Ee=>{Ee.type==="pointerdown"?be(Ee):nt(Ee)})}function Oe(ce){if(!A.current)return;const Ee=Z.current;if(ge(),ue()==="intentional"){if(ce.type==="pointercancel"){Ee&&ee();return}if(!Ze(ce)){if(Ee){ee();return}typeof O=="function"&&!O(ce)||(te.clear(),X.current=!0,se())}}}function Ue(ce){if(ue()!=="sloppy"||!K.current||oe(ce))return;const Ee=ce.touches[0];if(!Ee)return;const ht=Math.abs(Ee.clientX-K.current.startX),Be=Math.abs(Ee.clientY-K.current.startY),pt=Math.sqrt(ht*ht+Be*Be);pt>5&&(K.current.dismissOnTouchEnd=!0),pt>10&&(nt(ce),re.clear(),K.current=null)}function xe(ce){we(ce,Ue)}function mt(ce){ue()!=="sloppy"||!K.current||oe(ce)||(K.current.dismissOnTouchEnd&&nt(ce),re.clear(),K.current=null)}function dt(ce){we(ce,mt)}const ke=ct(b),St=qi(a&&qi(Fe(ke,"keydown",z),Fe(ke,"compositionstart",ie),Fe(ke,"compositionend",le)),C&&qi(Fe(ke,"click",bt,!0),Fe(ke,"pointerdown",bt,!0),Fe(ke,"pointerup",Oe,!0),Fe(ke,"pointercancel",Oe,!0),Fe(ke,"mousedown",bt,!0),Fe(ke,"mouseup",Oe,!0),Fe(ke,"touchstart",ft,!0),Fe(ke,"touchmove",xe,!0),Fe(ke,"touchend",dt,!0)));return()=>{St(),B.clear(),te.clear(),ge(),X.current=!1}},[S,b,a,C,O,v,r,_,j,z,se,M,J,oe,E,p,re]),w.useEffect(se,[O,se]);const H=w.useMemo(()=>({onKeyDown:z,onPointerDown:ne,onClick:ne}),[z,ne]),T=w.useMemo(()=>({onKeyDown:z,onPointerDown:ae,onMouseDown:ae,onClickCapture:G,onMouseDownCapture(B){G(),I(B)},onPointerDownCapture(B){G(),I(B)},onMouseUpCapture:G,onTouchEndCapture:G,onTouchMoveCapture:G}),[z,G,I,ae]);return w.useMemo(()=>r?{reference:H,floating:T,trigger:H}:{},[r,H,T])}function Kv(n,i,r){let{reference:a,floating:u}=n;const f=Fn(i),d=Xh(i),m=Qh(d),g=zn(i),p=f==="y",v=a.x+a.width/2-u.width/2,b=a.y+a.height/2-u.height/2,S=a[m]/2-u[m]/2;let E;switch(g){case"top":E={x:v,y:a.y-u.height};break;case"bottom":E={x:v,y:a.y+a.height};break;case"right":E={x:a.x+a.width,y:b};break;case"left":E={x:a.x-u.width,y:b};break;default:E={x:a.x,y:a.y}}const x=Us(i);return x&&(E[d]+=S*(x==="end"?1:-1)*(r&&p?-1:1)),E}async function eC(n,i){var r;i===void 0&&(i={});const{x:a,y:u,platform:f,rects:d,elements:m,strategy:g}=n,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:b="floating",altBoundary:S=!1,padding:E=0}=Gi(i,n),x=H0(E),C=m[S?b==="floating"?"reference":"floating":b],M=Fu(await f.getClippingRect({element:(r=await(f.isElement==null?void 0:f.isElement(C)))==null||r?C:C.contextElement||await(f.getDocumentElement==null?void 0:f.getDocumentElement(m.floating)),boundary:p,rootBoundary:v,strategy:g})),_=b==="floating"?{x:a,y:u,width:d.floating.width,height:d.floating.height}:d.reference,j=await(f.getOffsetParent==null?void 0:f.getOffsetParent(m.floating)),A=await(f.isElement==null?void 0:f.isElement(j))&&await(f.getScale==null?void 0:f.getScale(j))||{x:1,y:1},Z=Fu(f.convertOffsetParentRelativeRectToViewportRelativeRect?await f.convertOffsetParentRelativeRectToViewportRelativeRect({elements:m,rect:_,offsetParent:j,strategy:g}):_);return{top:(M.top-Z.top+x.top)/A.y,bottom:(Z.bottom-M.bottom+x.bottom)/A.y,left:(M.left-Z.left+x.left)/A.x,right:(Z.right-M.right+x.right)/A.x}}const tC=50,nC=async(n,i,r)=>{const{placement:a="bottom",strategy:u="absolute",middleware:f=[],platform:d}=r,m=d.detectOverflow?d:{...d,detectOverflow:eC},g=await(d.isRTL==null?void 0:d.isRTL(i));let p=await d.getElementRects({reference:n,floating:i,strategy:u}),{x:v,y:b}=Kv(p,a,g),S=a,E=0;const x={};for(let O=0;O<f.length;O++){const C=f[O];if(!C)continue;const{name:M,fn:_}=C,{x:j,y:A,data:Z,reset:X}=await _({x:v,y:b,initialPlacement:a,placement:S,strategy:u,middlewareData:x,rects:p,platform:m,elements:{reference:n,floating:i}});v=j??v,b=A??b,x[M]={...x[M],...Z},X&&E<tC&&(E++,typeof X=="object"&&(X.placement&&(S=X.placement),X.rects&&(p=X.rects===!0?await d.getElementRects({reference:n,floating:i,strategy:u}):X.rects),{x:v,y:b}=Kv(p,S,g)),O=-1)}return{x:v,y:b,placement:S,strategy:u,middlewareData:x}},iC=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(i){var r,a;const{placement:u,middlewareData:f,rects:d,initialPlacement:m,platform:g,elements:p}=i,{mainAxis:v=!0,crossAxis:b=!0,fallbackPlacements:S,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:O=!0,...C}=Gi(n,i);if((r=f.arrow)!=null&&r.alignmentOffset)return{};const M=zn(u),_=Fn(m),j=zn(m)===m,A=await(g.isRTL==null?void 0:g.isRTL(p.floating)),Z=S||(j||!O?[Ku(m)]:yw(m)),X=x!=="none";!S&&X&&Z.push(...Ew(m,O,x,A));const q=[m,...Z],U=await g.detectOverflow(i,C),K=[];let re=((a=f.flip)==null?void 0:a.overflows)||[];if(v&&K.push(U[M]),b){const oe=gw(u,d,A);K.push(U[oe[0]],U[oe[1]])}if(re=[...re,{placement:u,overflows:K}],!K.every(oe=>oe<=0)){var fe,se;const oe=(((fe=f.flip)==null?void 0:fe.index)||0)+1,ne=q[oe];if(ne&&(!(b==="alignment"?_!==Fn(ne):!1)||re.every(I=>Fn(I.placement)===_?I.overflows[0]>0:!0)))return{data:{index:oe,overflows:re},reset:{placement:ne}};let z=(se=re.filter(G=>G.overflows[0]<=0).sort((G,I)=>G.overflows[1]-I.overflows[1])[0])==null?void 0:se.placement;if(!z)switch(E){case"bestFit":{var J;const G=(J=re.filter(I=>{if(X){const ae=Fn(I.placement);return ae===_||ae==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(ae=>ae>0).reduce((ae,H)=>ae+H,0)]).sort((I,ae)=>I[1]-ae[1])[0])==null?void 0:J[0];G&&(z=G);break}case"initialPlacement":z=m;break}if(u!==z)return{reset:{placement:z}}}return{}}}};function Fv(n,i){return{top:n.top-i.height,right:n.right-i.width,bottom:n.bottom-i.height,left:n.left-i.width}}function Zv(n){return mw.some(i=>n[i]>=0)}const sC=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(i){const{rects:r,platform:a}=i,{strategy:u="referenceHidden",...f}=Gi(n,i);switch(u){case"referenceHidden":{const d=await a.detectOverflow(i,{...f,elementContext:"reference"}),m=Fv(d,r.reference);return{data:{referenceHiddenOffsets:m,referenceHidden:Zv(m)}}}case"escaped":{const d=await a.detectOverflow(i,{...f,altBoundary:!0}),m=Fv(d,r.floating);return{data:{escapedOffsets:m,escaped:Zv(m)}}}default:return{}}}}},sS=new Set(["left","top"]);async function rC(n,i){const{placement:r,platform:a,elements:u}=n,f=await(a.isRTL==null?void 0:a.isRTL(u.floating)),d=zn(r),m=Us(r),g=Fn(r)==="y",p=sS.has(d)?-1:1,v=f&&g?-1:1,b=Gi(i,n);let{mainAxis:S,crossAxis:E,alignmentAxis:x}=typeof b=="number"?{mainAxis:b,crossAxis:0,alignmentAxis:null}:{mainAxis:b.mainAxis||0,crossAxis:b.crossAxis||0,alignmentAxis:b.alignmentAxis};return m&&typeof x=="number"&&(E=m==="end"?x*-1:x),g?{x:E*v,y:S*p}:{x:S*p,y:E*v}}const lC=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(i){var r,a;const{x:u,y:f,placement:d,middlewareData:m}=i,g=await rC(i,n);return d===((r=m.offset)==null?void 0:r.placement)&&(a=m.arrow)!=null&&a.alignmentOffset?{}:{x:u+g.x,y:f+g.y,data:{...g,placement:d}}}}},aC=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(i){const{x:r,y:a,placement:u,platform:f}=i,{mainAxis:d=!0,crossAxis:m=!1,limiter:g={fn:_=>{let{x:j,y:A}=_;return{x:j,y:A}}},...p}=Gi(n,i),v={x:r,y:a},b=await f.detectOverflow(i,p),S=Fn(u),E=Gh(S);let x=v[E],O=v[S];const C=(_,j)=>B0(j+b[_==="y"?"top":"left"],j,j-b[_==="y"?"bottom":"right"]);d&&(x=C(E,x)),m&&(O=C(S,O));const M=g.fn({...i,[E]:x,[S]:O});return{...M,data:{x:M.x-r,y:M.y-a,enabled:{[E]:d,[S]:m}}}}}},oC=function(n){return n===void 0&&(n={}),{options:n,fn(i){var r,a;const{x:u,y:f,placement:d,rects:m,middlewareData:g}=i,{offset:p=0,mainAxis:v=!0,crossAxis:b=!0}=Gi(n,i),S={x:u,y:f},E=Fn(d),x=Gh(E);let O=S[x],C=S[E];const M=Gi(p,i),_=typeof M=="number"?{mainAxis:M,crossAxis:0}:{mainAxis:(r=M.mainAxis)!=null?r:0,crossAxis:(a=M.crossAxis)!=null?a:0};if(v){const Z=x==="y"?"height":"width",X=m.reference[x]-m.floating[Z]+_.mainAxis,q=m.reference[x]+m.reference[Z]-_.mainAxis;O<X?O=X:O>q&&(O=q)}if(b){var j,A;const Z=x==="y"?"width":"height",X=sS.has(zn(d)),q=m.reference[E]-m.floating[Z]+(X&&((j=g.offset)==null?void 0:j[E])||0)+(X?0:_.crossAxis),U=m.reference[E]+m.reference[Z]+(X?0:((A=g.offset)==null?void 0:A[E])||0)-(X?_.crossAxis:0);C<q?C=q:C>U&&(C=U)}return{[x]:O,[E]:C}}}},uC=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(i){const{placement:r,rects:a,platform:u,elements:f}=i,{apply:d=()=>{},...m}=Gi(n,i),g=await u.detectOverflow(i,m),p=zn(r),v=Us(r),b=Fn(r)==="y",{width:S,height:E}=a.floating;let x,O;p==="top"||p==="bottom"?(x=p,O=v===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(O=p,x=v==="end"?"top":"bottom");const C=E-g.top-g.bottom,M=S-g.left-g.right,_=Ol(E-g[x],C),j=Ol(S-g[O],M),A=i.middlewareData.shift,Z=!A;let X=_,q=j;A!=null&&A.enabled.x&&(q=M),A!=null&&A.enabled.y&&(X=C),Z&&!v&&(b?q=S-2*Yi(g.left,g.right):X=E-2*Yi(g.top,g.bottom)),await d({...i,availableWidth:q,availableHeight:X});const U=await u.getDimensions(f.floating);return S!==U.width||E!==U.height?{reset:{rects:!0}}:{}}}};function rS(n){const i=Un(n);let r=parseFloat(i.width)||0,a=parseFloat(i.height)||0;const u=Rt(n),f=u?n.offsetWidth:r,d=u?n.offsetHeight:a,m=Xu(r)!==f||Xu(a)!==d;return m&&(r=f,a=d),{width:r,height:a,$:m}}function Ph(n){return Je(n)?n:n.contextElement}function al(n){const i=Ph(n);if(!Rt(i))return Vi(1);const r=i.getBoundingClientRect(),{width:a,height:u,$:f}=rS(i);let d=(f?Xu(r.width):r.width)/a,m=(f?Xu(r.height):r.height)/u;return(!d||!Number.isFinite(d))&&(d=1),(!m||!Number.isFinite(m))&&(m=1),{x:d,y:m}}const cC=Vi(0);function lS(n){const i=zt(n);return!Bh()||!i.visualViewport?cC:{x:i.visualViewport.offsetLeft,y:i.visualViewport.offsetTop}}function fC(n,i,r){return i===void 0&&(i=!1),!!r&&i&&r===zt(n)}function fr(n,i,r,a){i===void 0&&(i=!1),r===void 0&&(r=!1);const u=n.getBoundingClientRect(),f=Ph(n);let d=Vi(1);i&&(a?Je(a)&&(d=al(a)):d=al(n));const m=fC(f,r,a)?lS(f):Vi(0);let g=(u.left+m.x)/d.x,p=(u.top+m.y)/d.y,v=u.width/d.x,b=u.height/d.y;if(f&&a){const S=zt(f),E=Je(a)?zt(a):a;let x=S,O=ch(x);for(;O&&E!==x;){const C=al(O),M=O.getBoundingClientRect(),_=Un(O),j=M.left+(O.clientLeft+parseFloat(_.paddingLeft))*C.x,A=M.top+(O.clientTop+parseFloat(_.paddingTop))*C.y;g*=C.x,p*=C.y,v*=C.x,b*=C.y,g+=j,p+=A,x=zt(O),O=ch(x)}}return Fu({width:v,height:b,x:g,y:p})}function lc(n,i){const r=ic(n).scrollLeft;return i?i.left+r:fr(Xi(n)).left+r}function aS(n,i){const r=n.getBoundingClientRect(),a=r.left+i.scrollLeft-lc(n,r),u=r.top+i.scrollTop;return{x:a,y:u}}function dC(n){let{elements:i,rect:r,offsetParent:a,strategy:u}=n;const f=u==="fixed",d=Xi(a),m=i?nc(i.floating):!1;if(a===d||m&&f)return r;let g={scrollLeft:0,scrollTop:0},p=Vi(1);const v=Vi(0),b=Rt(a);if((b||!f)&&((Wt(a)!=="body"||mr(d))&&(g=ic(a)),b)){const E=fr(a);p=al(a),v.x=E.x+a.clientLeft,v.y=E.y+a.clientTop}const S=d&&!b&&!f?aS(d,g):Vi(0);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-g.scrollLeft*p.x+v.x+S.x,y:r.y*p.y-g.scrollTop*p.y+v.y+S.y}}function hC(n){return n.getClientRects?Array.from(n.getClientRects()):[]}function mC(n){const i=ic(n),r=n.ownerDocument.body,a=Yi(n.scrollWidth,n.clientWidth,r.scrollWidth,r.clientWidth),u=Yi(n.scrollHeight,n.clientHeight,r.scrollHeight,r.clientHeight);let f=-i.scrollLeft+lc(n);const d=-i.scrollTop;return Un(r).direction==="rtl"&&(f+=Yi(n.clientWidth,r.clientWidth)-a),{width:a,height:u,x:f,y:d}}const pC=25;function gC(n,i,r){r===void 0&&(r="viewport");const a=r==="layoutViewport",u=zt(n),f=Xi(n),d=u.visualViewport;let m=f.clientWidth,g=f.clientHeight,p=0,v=0;if(d){const S=!Bh()||i==="fixed";a?S||(p=-d.offsetLeft,v=-d.offsetTop):(m=d.width,g=d.height,S&&(p=d.offsetLeft,v=d.offsetTop))}if(lc(f)<=0){const S=f.ownerDocument,E=S.body,x=getComputedStyle(E),O=S.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,C=Math.abs(f.clientWidth-E.clientWidth-O),M=getComputedStyle(f).scrollbarGutter==="stable both-edges"?C/2:C;M<=pC&&(m-=M)}return{width:m,height:g,x:p,y:v}}function yC(n,i){const r=fr(n,!0,i==="fixed"),a=r.top+n.clientTop,u=r.left+n.clientLeft,f=al(n),d=n.clientWidth*f.x,m=n.clientHeight*f.y,g=u*f.x,p=a*f.y;return{width:d,height:m,x:g,y:p}}function Pv(n,i,r){let a;if(i==="viewport"||i==="layoutViewport")a=gC(n,r,i);else if(i==="document")a=mC(Xi(n));else if(Je(i))a=yC(i,r);else{const u=lS(n);a={x:i.x-u.x,y:i.y-u.y,width:i.width,height:i.height}}return Fu(a)}function vC(n,i){const r=i.get(n);if(r)return r;let a=ka(n,[],!1).filter(m=>Je(m)&&Wt(m)!=="body"),u=null;const f=Un(n).position==="fixed";let d=f?Ms(n):n;for(;Je(d)&&!_s(d);){const m=Un(d),g=Lh(d),p=u?u.position:f?"fixed":"";!g&&(p==="fixed"||p==="absolute"&&m.position==="static")?a=a.filter(b=>b!==d):u=m,d=Ms(d)}return i.set(n,a),a}function bC(n){let{element:i,boundary:r,rootBoundary:a,strategy:u}=n;const d=[...r==="clippingAncestors"?nc(i)?[]:vC(i,this._c):[].concat(r),a],m=Pv(i,d[0],u);let g=m.top,p=m.right,v=m.bottom,b=m.left;for(let S=1;S<d.length;S++){const E=Pv(i,d[S],u);g=Yi(E.top,g),p=Ol(E.right,p),v=Ol(E.bottom,v),b=Yi(E.left,b)}return{width:p-b,height:v-g,x:b,y:g}}function SC(n){const{width:i,height:r}=rS(n);return{width:i,height:r}}function EC(n,i,r){const a=Rt(i),u=Xi(i),f=r==="fixed",d=fr(n,!0,f,i);let m={scrollLeft:0,scrollTop:0};const g=Vi(0);if((a||!f)&&((Wt(i)!=="body"||mr(u))&&(m=ic(i)),a)){const S=fr(i,!0,f,i);g.x=S.x+i.clientLeft,g.y=S.y+i.clientTop}!a&&u&&(g.x=lc(u));const p=u&&!a&&!f?aS(u,m):Vi(0),v=d.left+m.scrollLeft-g.x-p.x,b=d.top+m.scrollTop-g.y-p.y;return{x:v,y:b,width:d.width,height:d.height}}function Ld(n){return Un(n).position==="static"}function Iv(n,i){if(!Rt(n)||Un(n).position==="fixed")return null;if(i)return i(n);let r=n.offsetParent;return Xi(n)===r&&(r=r.ownerDocument.body),r}function oS(n,i){const r=zt(n);if(nc(n))return r;if(!Rt(n)){let u=Ms(n);for(;u&&!_s(u);){if(Je(u)&&!Ld(u))return u;u=Ms(u)}return r}let a=Iv(n,i);for(;a&&CO(a)&&Ld(a);)a=Iv(a,i);return a&&_s(a)&&Ld(a)&&!Lh(a)?r:a||MO(n)||r}const xC=async function(n){const i=this.getOffsetParent||oS,r=this.getDimensions,a=await r(n.floating);return{reference:EC(n.reference,await i(n.floating),n.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function TC(n){return Un(n).direction==="rtl"}const RC={convertOffsetParentRelativeRectToViewportRelativeRect:dC,getDocumentElement:Xi,getClippingRect:bC,getOffsetParent:oS,getElementRects:xC,getClientRects:hC,getDimensions:SC,getScale:al,isElement:Je,isRTL:TC};function uS(n,i){return n.x===i.x&&n.y===i.y&&n.width===i.width&&n.height===i.height}function OC(n,i,r){let a=null,u;const f=Xi(n);function d(){var v;clearTimeout(u),(v=a)==null||v.disconnect(),a=null}function m(v,b){v===void 0&&(v=!1),b===void 0&&(b=1),d();const S=n.getBoundingClientRect(),{left:E,top:x,width:O,height:C}=S;if(v||i(),!O||!C)return;const M=Ou(x),_=Ou(f.clientWidth-(E+O)),j=Ou(f.clientHeight-(x+C)),A=Ou(E),X={rootMargin:-M+"px "+-_+"px "+-j+"px "+-A+"px",threshold:Yi(0,Ol(1,b))||1};let q=!0;function U(K){const re=K[0].intersectionRatio;if(!uS(S,n.getBoundingClientRect()))return m();if(re!==b){if(!q)return m();re?m(!1,re):u=setTimeout(()=>{m(!1,1e-7)},1e3)}q=!1}try{a=new IntersectionObserver(U,{...X,root:f.ownerDocument})}catch{a=new IntersectionObserver(U,X)}a.observe(n)}const g=zt(n),p=()=>m(r);return g.addEventListener("resize",p),m(!0),()=>{g.removeEventListener("resize",p),d()}}function Jv(n,i,r,a){a===void 0&&(a={});const{ancestorScroll:u=!0,ancestorResize:f=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:m=typeof IntersectionObserver=="function",animationFrame:g=!1}=a,p=Ph(n),v=u||f?[...p?ka(p):[],...i?ka(i):[]]:[];v.forEach(M=>{u&&M.addEventListener("scroll",r),f&&M.addEventListener("resize",r)});const b=p&&m?OC(p,r,f):null;let S=-1,E=null;d&&(E=new ResizeObserver(M=>{let[_]=M;_&&_.target===p&&E&&i&&(E.unobserve(i),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var j;(j=E)==null||j.observe(i)})),r()}),p&&!g&&E.observe(p),i&&E.observe(i));let x,O=g?fr(n):null;g&&C();function C(){const M=fr(n);O&&!uS(O,M)&&r(),O=M,x=requestAnimationFrame(C)}return r(),()=>{var M;v.forEach(_=>{u&&_.removeEventListener("scroll",r),f&&_.removeEventListener("resize",r)}),b==null||b(),(M=E)==null||M.disconnect(),E=null,g&&cancelAnimationFrame(x)}}const wC=lC,CC=aC,AC=iC,_C=uC,MC=sC,NC=oC,DC=(n,i,r)=>{const a=new Map,u=r??{},f={...RC,...u.platform,_c:a};return nC(n,i,{...u,platform:f})};var zC=typeof document<"u",UC=function(){},Lu=zC?w.useLayoutEffect:UC;function Pu(n,i){if(n===i)return!0;if(typeof n!=typeof i)return!1;if(typeof n=="function"&&n.toString()===i.toString())return!0;let r,a,u;if(n&&i&&typeof n=="object"){if(Array.isArray(n)){if(r=n.length,r!==i.length)return!1;for(a=r;a--!==0;)if(!Pu(n[a],i[a]))return!1;return!0}if(u=Object.keys(n),r=u.length,r!==Object.keys(i).length)return!1;for(a=r;a--!==0;)if(!{}.hasOwnProperty.call(i,u[a]))return!1;for(a=r;a--!==0;){const f=u[a];if(!(f==="_owner"&&n.$$typeof)&&!Pu(n[f],i[f]))return!1}return!0}return n!==n&&i!==i}function cS(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Wv(n,i){const r=cS(n);return Math.round(i*r)/r}function Bd(n){const i=w.useRef(n);return Lu(()=>{i.current=n}),i}function kC(n){n===void 0&&(n={});const{placement:i="bottom",strategy:r="absolute",middleware:a=[],platform:u,elements:{reference:f,floating:d}={},transform:m=!0,whileElementsMounted:g,open:p}=n,[v,b]=w.useState({x:0,y:0,strategy:r,placement:i,middlewareData:{},isPositioned:!1}),[S,E]=w.useState(a);Pu(S,a)||E(a);const[x,O]=w.useState(null),[C,M]=w.useState(null),_=w.useCallback(I=>{I!==X.current&&(X.current=I,O(I))},[]),j=w.useCallback(I=>{I!==q.current&&(q.current=I,M(I))},[]),A=f||x,Z=d||C,X=w.useRef(null),q=w.useRef(null),U=w.useRef(v),K=g!=null,re=Bd(g),fe=Bd(u),se=Bd(p),J=w.useCallback(()=>{if(!X.current||!q.current)return;const I={placement:i,strategy:r,middleware:S};fe.current&&(I.platform=fe.current),DC(X.current,q.current,I).then(ae=>{const H={...ae,isPositioned:se.current!==!1};oe.current&&!Pu(U.current,H)&&(U.current=H,Ds.flushSync(()=>{b(H)}))})},[S,i,r,fe,se]);Lu(()=>{p===!1&&U.current.isPositioned&&(U.current.isPositioned=!1,b(I=>({...I,isPositioned:!1})))},[p]);const oe=w.useRef(!1);Lu(()=>(oe.current=!0,()=>{oe.current=!1}),[]),Lu(()=>{if(A&&(X.current=A),Z&&(q.current=Z),A&&Z){if(re.current)return re.current(A,Z,J);J()}},[A,Z,J,re,K]);const ne=w.useMemo(()=>({reference:X,floating:q,setReference:_,setFloating:j}),[_,j]),z=w.useMemo(()=>({reference:A,floating:Z}),[A,Z]),G=w.useMemo(()=>{const I={position:r,left:0,top:0};if(!z.floating)return I;const ae=Wv(z.floating,v.x),H=Wv(z.floating,v.y);return m?{...I,transform:"translate("+ae+"px, "+H+"px)",...cS(z.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:ae,top:H}},[r,m,z.floating,v.x,v.y]);return w.useMemo(()=>({...v,update:J,refs:ne,elements:z,floatingStyles:G}),[v,J,ne,z,G])}const jC=(n,i)=>{const r=wC(n);return{name:r.name,fn:r.fn,options:[n,i]}},LC=(n,i)=>{const r=CC(n);return{name:r.name,fn:r.fn,options:[n,i]}},BC=(n,i)=>({fn:NC(n).fn,options:[n,i]}),HC=(n,i)=>{const r=AC(n);return{name:r.name,fn:r.fn,options:[n,i]}},qC=(n,i)=>{const r=_C(n);return{name:r.name,fn:r.fn,options:[n,i]}},YC=(n,i)=>{const r=MC(n);return{name:r.name,fn:r.fn,options:[n,i]}};function VC(n){const i=w.useRef(!0);i.current&&(i.current=!1,n())}const Ve=(n,i,r,a,u,f,...d)=>{if(d.length>0)throw new Error(dr(1));let m;if(n)m=n;else throw new Error("Missing arguments");return m};var Hd={exports:{}},qd={};/**
|
|
100
|
+
* @license React
|
|
101
|
+
* use-sync-external-store-shim.production.js
|
|
102
|
+
*
|
|
103
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
104
|
+
*
|
|
105
|
+
* This source code is licensed under the MIT license found in the
|
|
106
|
+
* LICENSE file in the root directory of this source tree.
|
|
107
|
+
*/var $v;function GC(){if($v)return qd;$v=1;var n=Fa();function i(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}var r=typeof Object.is=="function"?Object.is:i,a=n.useState,u=n.useEffect,f=n.useLayoutEffect,d=n.useDebugValue;function m(b,S){var E=S(),x=a({inst:{value:E,getSnapshot:S}}),O=x[0].inst,C=x[1];return f(function(){O.value=E,O.getSnapshot=S,g(O)&&C({inst:O})},[b,E,S]),u(function(){return g(O)&&C({inst:O}),b(function(){g(O)&&C({inst:O})})},[b]),d(E),E}function g(b){var S=b.getSnapshot;b=b.value;try{var E=S();return!r(b,E)}catch{return!0}}function p(b,S){return S()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return qd.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:v,qd}var eb;function fS(){return eb||(eb=1,Hd.exports=GC()),Hd.exports}var QC=fS(),Yd={exports:{}},Vd={};/**
|
|
108
|
+
* @license React
|
|
109
|
+
* use-sync-external-store-shim/with-selector.production.js
|
|
110
|
+
*
|
|
111
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the MIT license found in the
|
|
114
|
+
* LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/var tb;function XC(){if(tb)return Vd;tb=1;var n=Fa(),i=fS();function r(p,v){return p===v&&(p!==0||1/p===1/v)||p!==p&&v!==v}var a=typeof Object.is=="function"?Object.is:r,u=i.useSyncExternalStore,f=n.useRef,d=n.useEffect,m=n.useMemo,g=n.useDebugValue;return Vd.useSyncExternalStoreWithSelector=function(p,v,b,S,E){var x=f(null);if(x.current===null){var O={hasValue:!1,value:null};x.current=O}else O=x.current;x=m(function(){function M(X){if(!_){if(_=!0,j=X,X=S(X),E!==void 0&&O.hasValue){var q=O.value;if(E(q,X))return A=q}return A=X}if(q=A,a(j,X))return q;var U=S(X);return E!==void 0&&E(q,U)?(j=X,q):(j=X,A=U)}var _=!1,j,A,Z=b===void 0?null:b;return[function(){return M(v())},Z===null?void 0:function(){return M(Z())}]},[v,b,S,E]);var C=u(p,x[0],x[1]);return d(function(){O.hasValue=!0,O.value=C},[C]),g(C),C},Vd}var nb;function KC(){return nb||(nb=1,Yd.exports=XC()),Yd.exports}var FC=KC();const ZC=Oh(19),PC=ZC?JC:WC;function dS(n,i,r,a,u){return PC(n,i,r,a,u)}function IC(n,i,r,a,u){const f=w.useCallback(()=>i(n.getSnapshot(),r,a,u),[n,i,r,a,u]);return QC.useSyncExternalStore(n.subscribe,f,f)}function JC(n,i,r,a,u){return IC(n,i,r,a,u)}function WC(n,i,r,a,u){return FC.useSyncExternalStoreWithSelector(n.subscribe,n.getSnapshot,n.getSnapshot,f=>i(f,r,a,u))}class $C{constructor(i){et(this,"subscribe",i=>(this.listeners.add(i),()=>{this.listeners.delete(i)}));et(this,"getSnapshot",()=>this.state);this.state=i,this.listeners=new Set,this.updateTick=0}setState(i){if(this.state===i)return;this.state=i,this.updateTick+=1;const r=this.updateTick;for(const a of this.listeners){if(r!==this.updateTick)return;a(i)}}update(i){for(const r in i)if(!Object.is(this.state[r],i[r])){this.setState({...this.state,...i});return}}set(i,r){Object.is(this.state[i],r)||this.setState({...this.state,[i]:r})}notifyAll(){const i={...this.state};this.setState(i)}use(i,r,a,u){return dS(this,i,r,a,u)}}class hS extends $C{constructor(i,r={},a){super(i),this.context=r,this.selectors=a}useSyncedValue(i,r){w.useDebugValue(i);const a=this;Xe(()=>{a.state[i]!==r&&a.set(i,r)},[a,i,r])}useSyncedValueWithCleanup(i,r){const a=this;Xe(()=>(a.state[i]!==r&&a.set(i,r),()=>{a.set(i,void 0)}),[a,i,r])}useSyncedValues(i){const r=this,a=Object.values(i);Xe(()=>{r.update(i)},[r,...a])}useControlledProp(i,r){w.useDebugValue(i);const a=this,u=r!==void 0;Xe(()=>{u&&!Object.is(a.state[i],r)&&a.setState({...a.state,[i]:r})},[a,i,r,u])}select(i,r,a,u){const f=this.selectors[i];return f(this.state,r,a,u)}useState(i,r,a,u){return w.useDebugValue(i),dS(this,this.selectors[i],r,a,u)}useContextCallback(i,r){w.useDebugValue(i);const a=$e(r??wh);this.context[i]=a}useStateSetter(i){const r=w.useRef(void 0);return r.current===void 0&&(r.current=a=>{this.set(i,a)}),r.current}observe(i,r){let a;typeof i=="function"?a=i:a=this.selectors[i];let u=a(this.state);return r(u,u,this),this.subscribe(f=>{const d=a(f);if(!Object.is(u,d)){const m=u;u=d,r(d,m,this)}})}}const eA={open:Ve(n=>n.open),transitionStatus:Ve(n=>n.transitionStatus),domReferenceElement:Ve(n=>n.domReferenceElement),referenceElement:Ve(n=>n.positionReference??n.referenceElement),floatingElement:Ve(n=>n.floatingElement),floatingId:Ve(n=>n.floatingId)};class ac extends hS{constructor(r){const{syncOnly:a,nested:u,onOpenChange:f,triggerElements:d,...m}=r;super({...m,positionReference:m.referenceElement,domReferenceElement:m.referenceElement},{onOpenChange:f,dataRef:{current:{}},events:tS(),nested:u,triggerElements:d},eA);et(this,"syncOpenEvent",(r,a)=>{(!r||!this.state.open||a!=null&&nw(a))&&(this.context.dataRef.current.openEvent=r?a:void 0)});et(this,"dispatchOpenChange",(r,a)=>{this.syncOpenEvent(r,a.event);const u={open:r,reason:a.reason,nativeEvent:a.event,nested:this.context.nested,triggerElement:a.trigger};this.context.events.emit("openchange",u)});et(this,"setOpen",(r,a)=>{var u,f,d,m;if(this.syncOnly){(f=(u=this.context).onOpenChange)==null||f.call(u,r,a);return}this.dispatchOpenChange(r,a),(m=(d=this.context).onOpenChange)==null||m.call(d,r,a)});this.syncOnly=a}}function tA(n){const{popupStore:i,treatPopupAsFloatingElement:r=!1,floatingRootContext:a,floatingId:u,nested:f,onOpenChange:d}=n,m=i.useState("open"),g=i.useState("activeTriggerElement"),p=i.useState(r?"popupElement":"positionerElement"),v=i.context.triggerElements,b=d,S=w.useRef(null);a===void 0&&S.current===null&&(S.current=new ac({open:m,transitionStatus:void 0,referenceElement:g,floatingElement:p,triggerElements:v,onOpenChange:b,floatingId:u,syncOnly:!0,nested:f}));const E=a??S.current;return i.useSyncedValue("floatingId",u),Xe(()=>{const x={open:m,floatingId:u,referenceElement:g,floatingElement:p};Je(g)&&(x.domReferenceElement=g),E.state.positionReference===E.state.referenceElement&&(x.positionReference=g),E.update(x)},[m,u,g,p,E]),E.context.onOpenChange=b,E.context.nested=f,E}function nA(n,i=!1,r=!1){const[a,u]=w.useState(n&&i?"idle":void 0),[f,d]=w.useState(n);return n&&!f&&(d(!0),u("starting")),!n&&f&&a!=="ending"&&!r&&u("ending"),!n&&!f&&a==="ending"&&u(void 0),Xe(()=>{if(!n&&f&&a!=="ending"&&r){const m=di.request(()=>{u("ending")});return()=>{di.cancel(m)}}},[n,f,a,r]),Xe(()=>{if(!n||i)return;const m=di.request(()=>{u(void 0)});return()=>{di.cancel(m)}},[i,n]),Xe(()=>{if(!n||!i)return;n&&f&&a!=="idle"&&u("starting");const m=di.request(()=>{u("idle")});return()=>{di.cancel(m)}},[i,n,f,a]),{mounted:f,setMounted:d,transitionStatus:a}}let qa=function(n){return n.startingStyle="data-starting-style",n.endingStyle="data-ending-style",n}({});const iA={[qa.startingStyle]:""},sA={[qa.endingStyle]:""},rA={transitionStatus(n){return n==="starting"?iA:n==="ending"?sA:null}};function mS(n,i=!1,r=!0){const a=Vh();return $e((u,f=null)=>{a.cancel();const d=Li(n);if(d==null)return;const m=d,g=()=>{Ds.flushSync(u)};if(typeof m.getAnimations!="function"||globalThis.BASE_UI_ANIMATIONS_DISABLED){u();return}function p(){Promise.all(m.getAnimations().map(v=>v.finished)).then(()=>{f!=null&&f.aborted||g()}).catch(()=>{if(r){f!=null&&f.aborted||g();return}const v=m.getAnimations();!(f!=null&&f.aborted)&&v.length>0&&v.some(b=>b.pending||b.playState!=="finished")&&p()})}if(i){const v=qa.startingStyle;if(!m.hasAttribute(v)){a.request(p);return}const b=new MutationObserver(()=>{m.hasAttribute(v)||(b.disconnect(),p())});b.observe(m,{attributes:!0,attributeFilter:[v]}),f==null||f.addEventListener("abort",()=>b.disconnect(),{once:!0});return}a.request(p)})}function pS(n){const{enabled:i=!0,open:r,ref:a,onComplete:u}=n,f=$e(u),d=mS(a,r,!1);w.useEffect(()=>{if(!i)return;const m=new AbortController;return d(f,m.signal),()=>{m.abort()}},[i,r,f,d])}const gS={tabIndex:-1,[dh]:""};function lA(n){return i=>i==="touch"?n.current:!0}function aA(n,i,r=!1){const a=Ja(),u=Nl()!=null,f=w.useRef(null);n===void 0&&f.current===null&&(f.current=i(a,u));const d=n??f.current;return tA({popupStore:d,treatPopupAsFloatingElement:r,floatingRootContext:d.state.floatingRootContext,floatingId:a,nested:u,onOpenChange:d.setOpen}),{store:d,internalStore:f.current}}function oA(n,i){const r=w.useRef(null),a=w.useRef(null);return w.useCallback(u=>{if(n===void 0)return;let f=!1;if(r.current!==null){const d=r.current,m=a.current,g=i.context.triggerElements.getById(d);m&&g===m&&(i.context.triggerElements.delete(d),f=!0),r.current=null,a.current=null}if(u!==null&&(r.current=n,a.current=u,i.context.triggerElements.add(n,u),f=!0),f){const d=i.context.triggerElements.size;i.select("open")&&i.state.triggerCount!==d&&i.set("triggerCount",d)}},[i,n])}function uA(n,i,r,a=!1){i?n.preventUnmountingOnClose=!1:a&&(n.preventUnmountingOnClose=!0);const u=(r==null?void 0:r.id)??null;(u||i)&&(n.activeTriggerId=u,n.activeTriggerElement=r??null)}function cA(n){let i=!1;return n.preventUnmountOnClose=()=>{i=!0},()=>i}function fA(n,i,r,a){VC(()=>{i===void 0&&n.state.open===!1&&r&&(n.state={...n.state,open:!0,activeTriggerId:a,preventUnmountingOnClose:!1})})}function dA(n,i,r,a){const u=r.useState("isMountedByTrigger",n),f=oA(n,r),d=$e(m=>{if(f(m),!m)return;const g=r.select("open"),p=r.select("activeTriggerId");if(p===n){r.update({activeTriggerElement:m,...g?a:null});return}p==null&&g&&r.update({activeTriggerId:n,activeTriggerElement:m,...a})});return Xe(()=>{u&&r.update({activeTriggerElement:i.current,...a})},[u,r,i,...Object.values(a)]),{registerTrigger:d,isMountedByThisTrigger:u}}function hA(n,i={}){const{closeOnActiveTriggerUnmount:r=!1}=i,a=n.useState("open"),u=n.useState("triggerCount");Xe(()=>{if(!a){n.state.triggerCount!==0&&n.set("triggerCount",0);return}const f=n.context.triggerElements.size,d={};n.state.triggerCount!==f&&(d.triggerCount=f);const m=n.select("activeTriggerId");let g=null;if(m){const p=n.context.triggerElements.getById(m);p?p!==n.state.activeTriggerElement&&(d.activeTriggerElement=p):g=m}if(!g&&!m&&f===1){const p=n.context.triggerElements.entries().next();if(!p.done){const[v,b]=p.value;d.activeTriggerId=v,d.activeTriggerElement=b}}(d.triggerCount!==void 0||d.activeTriggerId!==void 0||d.activeTriggerElement!==void 0)&&n.update(d),g&&r&&queueMicrotask(()=>{if(n.select("open")&&n.select("activeTriggerId")===g&&!n.context.triggerElements.getById(g)){const p=Qt(aw);n.setOpen(!1,p),p.isCanceled||n.update({activeTriggerId:null,activeTriggerElement:null})}})},[a,n,u,r])}function mA(n,i,r){const{mounted:a,setMounted:u,transitionStatus:f}=nA(n),d=i.useState("preventUnmountingOnClose"),m=n?!1:d;i.useSyncedValues({mounted:a,transitionStatus:f,preventUnmountingOnClose:m});const g=$e(()=>{var p,v;u(!1),i.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),r==null||r(),(v=(p=i.context).onOpenChangeComplete)==null||v.call(p,!1)});return pS({enabled:a&&!n&&!m,open:n,ref:i.context.popupRef,onComplete(){n||g()}}),{forceUnmount:g,transitionStatus:f}}function pA(n,i){n.useSyncedValues(i),Xe(()=>()=>{n.update({activeTriggerProps:Jt,inactiveTriggerProps:Jt,popupProps:Jt})},[n])}function gA(n,i){Xe(()=>{!i&&n.state.openMethod!==null&&n.set("openMethod",null)},[i,n]),Xe(()=>()=>{n.state.openMethod!==null&&n.set("openMethod",null)},[n])}class Ih{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(i,r){const a=this.idMap.get(i);a!==r&&(a!==void 0&&this.elementsSet.delete(a),this.elementsSet.add(r),this.idMap.set(i,r))}delete(i){const r=this.idMap.get(i);r&&(this.elementsSet.delete(r),this.idMap.delete(i))}hasElement(i){return this.elementsSet.has(i)}hasMatchingElement(i){for(const r of this.elementsSet)if(i(r))return!0;return!1}getById(i){return this.idMap.get(i)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}}function yA(){return new ac({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Ih,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function vA(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:yA(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Jt,inactiveTriggerProps:Jt,popupProps:Jt}}function bA(n,i,r=!1){return new ac({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:n,floatingId:i,syncOnly:!0,nested:r,onOpenChange:void 0})}const Da=Ve(n=>n.triggerIdProp??n.activeTriggerId),Jh=Ve(n=>n.openProp??n.open),ib=Ve(n=>{var r;return(((r=n.popupElement)==null?void 0:r.id)??n.floatingId)||void 0});function yS(n,i){return i!==void 0&&Jh(n)&&Da(n)===i}function SA(n,i){return yS(n,i)?!0:i!==void 0&&Jh(n)&&Da(n)==null&&n.triggerCount===1}const EA={open:Jh,mounted:Ve(n=>n.mounted),transitionStatus:Ve(n=>n.transitionStatus),floatingRootContext:Ve(n=>n.floatingRootContext),triggerCount:Ve(n=>n.triggerCount),preventUnmountingOnClose:Ve(n=>n.preventUnmountingOnClose),payload:Ve(n=>n.payload),activeTriggerId:Da,activeTriggerElement:Ve(n=>n.mounted?n.activeTriggerElement:null),popupId:ib,isTriggerActive:Ve((n,i)=>i!==void 0&&Da(n)===i),isOpenedByTrigger:Ve((n,i)=>yS(n,i)),isMountedByTrigger:Ve((n,i)=>i!==void 0&&Da(n)===i&&n.mounted),triggerProps:Ve((n,i)=>i?n.activeTriggerProps:n.inactiveTriggerProps),triggerPopupId:Ve((n,i)=>SA(n,i)?ib(n):void 0),popupProps:Ve(n=>n.popupProps),popupElement:Ve(n=>n.popupElement),positionerElement:Ve(n=>n.positionerElement)};function xA(n){const{open:i=!1,onOpenChange:r,elements:a={}}=n,u=Ja(),f=Nl()!=null,d=Qi(()=>new ac({open:i,transitionStatus:void 0,onOpenChange:r,referenceElement:a.reference??null,floatingElement:a.floating??null,triggerElements:new Ih,floatingId:u,syncOnly:!1,nested:f})).current;return Xe(()=>{const m={open:i,floatingId:u};a.reference!==void 0&&(m.referenceElement=a.reference,m.domReferenceElement=Je(a.reference)?a.reference:null),a.floating!==void 0&&(m.floatingElement=a.floating),d.update(m)},[i,u,a.reference,a.floating,d]),d.context.onOpenChange=r,d.context.nested=f,d}function TA(n={}){const{nodeId:i,externalTree:r}=n,a=xA(n),u=n.rootContext||a,f=u.useState("referenceElement"),d=u.useState("floatingElement"),m=u.useState("domReferenceElement"),g=u.useState("open"),p=u.useState("floatingId"),[v,b]=w.useState(null),[S,E]=w.useState(void 0),[x,O]=w.useState(void 0),C=w.useRef(null),M=Dl(r),_=w.useMemo(()=>({reference:f,floating:d,domReference:m}),[f,d,m]),j=kC({...n,elements:{..._,...v&&{reference:v}}}),A=Je(S)?S:null,Z=x===void 0?u.state.floatingElement:x;u.useSyncedValue("referenceElement",S??null),u.useSyncedValue("domReferenceElement",S===void 0?m:A),u.useSyncedValue("floatingElement",Z);const X=w.useCallback(se=>{const J=Je(se)?{getBoundingClientRect:()=>se.getBoundingClientRect(),getClientRects:()=>se.getClientRects(),contextElement:se}:se;b(J),j.refs.setReference(J)},[j.refs]),q=w.useCallback(se=>{(Je(se)||se===null)&&(C.current=se,E(se)),(Je(j.refs.reference.current)||j.refs.reference.current===null||se!==null&&!Je(se))&&j.refs.setReference(se)},[j.refs,E]),U=w.useCallback(se=>{O(se),j.refs.setFloating(se)},[j.refs]),K=w.useMemo(()=>({...j.refs,setReference:q,setFloating:U,setPositionReference:X,domReference:C}),[j.refs,q,U,X]),re=w.useMemo(()=>({...j.elements,domReference:m}),[j.elements,m]),fe=w.useMemo(()=>({...j,dataRef:u.context.dataRef,open:g,onOpenChange:u.setOpen,events:u.context.events,floatingId:p,refs:K,elements:re,nodeId:i,rootStore:u}),[j,K,re,i,u,g,p]);return Xe(()=>{m&&(C.current=m)},[m]),Xe(()=>{u.context.dataRef.current.floatingContext=fe;const se=M==null?void 0:M.nodesRef.current.find(J=>J.id===i);se&&(se.context=fe)}),w.useMemo(()=>({...j,context:fe,refs:K,elements:re,rootStore:u}),[j,K,re,fe,u])}class Wh{constructor(){et(this,"dispose",()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()});et(this,"disposeEffect",()=>this.dispose);this.pointerType=void 0,this.interactedInside=!1,this.handler=void 0,this.blockMouseMove=!0,this.performedPointerEventsMutation=!1,this.pointerEventsScopeElement=null,this.pointerEventsReferenceElement=null,this.pointerEventsFloatingElement=null,this.restTimeoutPending=!1,this.openChangeTimeout=new ei,this.restTimeout=new ei,this.handleCloseOptions=void 0}static create(){return new Wh}}const Iu=new WeakMap;function Ju(n){var r,a,u;if(!n.performedPointerEventsMutation)return;const i=n.pointerEventsScopeElement;i&&Iu.get(i)===n&&((r=n.pointerEventsScopeElement)==null||r.style.removeProperty("pointer-events"),(a=n.pointerEventsReferenceElement)==null||a.style.removeProperty("pointer-events"),(u=n.pointerEventsFloatingElement)==null||u.style.removeProperty("pointer-events"),Iu.delete(i)),n.performedPointerEventsMutation=!1,n.pointerEventsScopeElement=null,n.pointerEventsReferenceElement=null,n.pointerEventsFloatingElement=null}function vS(n,i){const{scopeElement:r,referenceElement:a,floatingElement:u}=i,f=Iu.get(r);f&&f!==n&&Ju(f),Ju(n),n.performedPointerEventsMutation=!0,n.pointerEventsScopeElement=r,n.pointerEventsReferenceElement=a,n.pointerEventsFloatingElement=u,Iu.set(r,n),r.style.pointerEvents="none",a.style.pointerEvents="auto",u.style.pointerEvents="auto"}function bS(n){const i=n.context.dataRef.current,r=Qi(()=>i.hoverInteractionState??Wh.create()).current;return i.hoverInteractionState||(i.hoverInteractionState=r),qh(i.hoverInteractionState.disposeEffect),i.hoverInteractionState}function RA(n,i={}){const{enabled:r=!0,closeDelay:a=0,nodeId:u}=i,f="rootStore"in n?n.rootStore:n,d=f.useState("open"),m=f.useState("floatingElement"),g=f.useState("domReferenceElement"),{dataRef:p}=f.context,v=Dl(),b=Nl(),S=bS(f),E=Tl(),x=$e(()=>{var M;return k0((M=p.current.openEvent)==null?void 0:M.type,S.interactedInside)}),O=$e(()=>{var M;return lw((M=p.current.openEvent)==null?void 0:M.type)}),C=$e(()=>{Ju(S)});Xe(()=>{d||(S.pointerType=void 0,S.restTimeoutPending=!1,S.interactedInside=!1,C())},[d,S,C]),w.useEffect(()=>C,[C]),Xe(()=>{var M,_,j,A,Z;if(r&&d&&(M=S.handleCloseOptions)!=null&&M.blockPointerEvents&&O()&&Je(g)&&m){const X=g,q=m,U=ct(m),K=(j=(_=v==null?void 0:v.nodesRef.current.find(J=>J.id===b))==null?void 0:_.context)==null?void 0:j.elements.floating;K&&(K.style.pointerEvents="");const re=S.pointerEventsScopeElement!==q?S.pointerEventsScopeElement:null,fe=K!==q?K:null,se=((Z=(A=S.handleCloseOptions)==null?void 0:A.getScope)==null?void 0:Z.call(A))??re??fe??X.closest("[data-rootownerid]")??U.body;return vS(S,{scopeElement:se,referenceElement:X,floatingElement:q}),()=>{C()}}},[r,d,g,m,S,O,v,b,C]),w.useEffect(()=>{if(!r)return;function M(){return!!(v&&b&&Ns(v.nodesRef.current,b).length>0)}function _(U){const K=hh(a,"close",S.pointerType),re=()=>{f.setOpen(!1,Qt(bn,U)),v==null||v.events.emit("floating.closed",U)};K?S.openChangeTimeout.start(K,re):(S.openChangeTimeout.clear(),re())}function j(U){const K=$n(U);if(!sw(K)){S.interactedInside=!1;return}S.interactedInside=(K==null?void 0:K.closest("[aria-haspopup]"))!=null}function A(){S.openChangeTimeout.clear(),E.clear(),v==null||v.events.off("floating.closed",X),C()}function Z(U){var se;if(M()&&v){v.events.on("floating.closed",X);return}if(U0(U.relatedTarget,f.context.triggerElements))return;const K=((se=p.current.floatingContext)==null?void 0:se.nodeId)??u,re=U.relatedTarget;if(!(v&&K&&Je(re)&&Ns(v.nodesRef.current,K,!1).some(J=>{var oe;return Me((oe=J.context)==null?void 0:oe.elements.floating,re)}))){if(S.handler){S.handler(U);return}C(),O()&&!x()&&_(U)}}function X(U){!v||!b||M()||E.start(0,()=>{v.events.off("floating.closed",X),f.setOpen(!1,Qt(bn,U)),v.events.emit("floating.closed",U)})}const q=m;return qi(q&&Fe(q,"mouseenter",A),q&&Fe(q,"mouseleave",Z),q&&Fe(q,"pointerdown",j,!0),()=>{v==null||v.events.off("floating.closed",X)})},[r,m,f,p,a,u,O,x,C,S,v,b,E])}const OA={current:null};function wA(n,i={}){var ne;const{enabled:r=!0,delay:a=0,handleClose:u=null,mouseOnly:f=!1,restMs:d=0,move:m=!0,triggerElementRef:g=OA,externalTree:p,isActiveTrigger:v=!0,getHandleCloseContext:b,isClosing:S,shouldOpen:E}=i,x="rootStore"in n?n.rootStore:n,{dataRef:O,events:C}=x.context,M=Dl(p),_=bS(x),j=w.useRef(!1),A=Sn(u),Z=Sn(a),X=Sn(d),q=Sn(r),U=Sn(E),K=Sn(S),re=$e(()=>{var z;return k0((z=O.current.openEvent)==null?void 0:z.type,_.interactedInside)}),fe=$e(()=>{var z;return((z=U.current)==null?void 0:z.call(U))!==!1}),se=$e((z,G,I)=>{const ae=x.context.triggerElements;if(ae.hasElement(G))return!z||!Me(z,G);if(!Je(I))return!1;const H=I;return ae.hasMatchingElement(T=>Me(T,H))&&(!z||!Me(z,H))}),J=$e(()=>{if(!_.handler)return;ct(x.select("domReferenceElement")).removeEventListener("mousemove",_.handler),_.handler=void 0}),oe=$e(()=>{Ju(_)});return v&&(_.handleCloseOptions=(ne=A.current)==null?void 0:ne.__options),w.useEffect(()=>J,[J]),w.useEffect(()=>{if(!r)return;function z(G){G.open?j.current=!1:(j.current=G.reason===bn,J(),_.openChangeTimeout.clear(),_.restTimeout.clear(),_.blockMouseMove=!0,_.restTimeoutPending=!1)}return C.on("openchange",z),()=>{C.off("openchange",z)}},[r,C,_,J]),w.useEffect(()=>{if(!r)return;function z(H,T=!0){const B=hh(Z.current,"close",_.pointerType);B?_.openChangeTimeout.start(B,()=>{x.setOpen(!1,Qt(bn,H)),M==null||M.events.emit("floating.closed",H)}):T&&(_.openChangeTimeout.clear(),x.setOpen(!1,Qt(bn,H)),M==null||M.events.emit("floating.closed",H))}const G=g.current??(v?x.select("domReferenceElement"):null);if(!Je(G))return;function I(H){var ft;if(_.openChangeTimeout.clear(),_.blockMouseMove=!1,f&&!La(_.pointerType))return;const T=Nv(X.current),B=hh(Z.current,"open",_.pointerType),te=$n(H),ie=H.currentTarget??null,le=x.select("domReferenceElement");let ee=ie;if(Je(te)&&!x.context.triggerElements.hasElement(te)){for(const bt of x.context.triggerElements.elements())if(Me(bt,te)){ee=bt;break}}Je(ie)&&Je(le)&&!x.context.triggerElements.hasElement(ie)&&Me(ie,le)&&(ee=le);const ge=ee==null?!1:se(le,ee,te),ue=x.select("open"),de=((ft=K.current)==null?void 0:ft.call(K))??x.select("transitionStatus")==="ending",Ze=!ue&&de&&j.current,nt=!ge&&Je(ee)&&Je(le)&&Me(le,ee)&&Ze,be=T>0&&!B,ze=ge&&(ue||Ze)||nt,we=!ue||ge;if(ze){fe()&&x.setOpen(!0,Qt(bn,H,ee));return}be||(B?_.openChangeTimeout.start(B,()=>{we&&fe()&&x.setOpen(!0,Qt(bn,H,ee))}):we&&fe()&&x.setOpen(!0,Qt(bn,H,ee)))}function ae(H){if(re()){oe();return}J();const T=x.select("domReferenceElement"),B=ct(T);_.restTimeout.clear(),_.restTimeoutPending=!1;const te=O.current.floatingContext??(b==null?void 0:b());if(U0(H.relatedTarget,x.context.triggerElements))return;if(A.current&&te){x.select("open")||_.openChangeTimeout.clear();const le=g.current;_.handler=A.current({...te,tree:M,x:H.clientX,y:H.clientY,onClose(){oe(),J(),q.current&&!re()&&le===x.select("domReferenceElement")&&z(H,!0)}}),B.addEventListener("mousemove",_.handler),_.handler(H);return}(_.pointerType==="touch"?!Me(x.select("floatingElement"),H.relatedTarget):!0)&&z(H)}return m?qi(Fe(G,"mousemove",I,{once:!0}),Fe(G,"mouseenter",I),Fe(G,"mouseleave",ae)):qi(Fe(G,"mouseenter",I),Fe(G,"mouseleave",ae))},[J,oe,O,Z,x,r,A,_,v,se,re,f,m,X,g,M,q,b,K,fe]),w.useMemo(()=>{if(!r)return;function z(G){_.pointerType=G.pointerType}return{onPointerDown:z,onPointerEnter:z,onMouseMove(G){var le,ee,ge;const{nativeEvent:I}=G,ae=G.currentTarget,H=x.select("domReferenceElement"),T=x.select("open"),B=se(H,ae,G.target);if(f&&!La(_.pointerType))return;if(T&&B&&((le=_.handleCloseOptions)!=null&&le.blockPointerEvents)){const ue=x.select("floatingElement");if(ue){const de=((ge=(ee=_.handleCloseOptions)==null?void 0:ee.getScope)==null?void 0:ge.call(ee))??ae.ownerDocument.body;vS(_,{scopeElement:de,referenceElement:ae,floatingElement:ue})}}const te=Nv(X.current);if(T&&!B||te===0||!B&&_.restTimeoutPending&&G.movementX**2+G.movementY**2<2)return;_.restTimeout.clear();function ie(){if(_.restTimeoutPending=!1,re())return;const ue=x.select("open");!_.blockMouseMove&&(!ue||B)&&fe()&&x.setOpen(!0,Qt(bn,I,ae))}_.pointerType==="touch"?Ds.flushSync(()=>{ie()}):B&&T?ie():(_.restTimeoutPending=!0,_.restTimeout.start(te,ie))}}},[r,_,re,se,f,x,X,fe])}const sb=.1,CA=sb*sb,ot=.5;function Cu(n,i,r,a,u,f){return a>=i!=f>=i&&n<=(u-r)*(i-a)/(f-a)+r}function Au(n,i,r,a,u,f,d,m,g,p){let v=!1;return Cu(n,i,r,a,u,f)&&(v=!v),Cu(n,i,u,f,d,m)&&(v=!v),Cu(n,i,d,m,g,p)&&(v=!v),Cu(n,i,g,p,r,a)&&(v=!v),v}function AA(n,i,r){return n>=r.x&&n<=r.x+r.width&&i>=r.y&&i<=r.y+r.height}function _u(n,i,r,a,u,f){const d=Math.min(r,u),m=Math.max(r,u),g=Math.min(a,f),p=Math.max(a,f);return n>=d&&n<=m&&i>=g&&i<=p}function _A(n={}){const{blockPointerEvents:i=!1}=n,r=new ei,a=({x:u,y:f,placement:d,elements:m,onClose:g,nodeId:p,tree:v})=>{const b=d==null?void 0:d.split("-")[0];let S=!1,E=null,x=null,O=typeof performance<"u"?performance.now():0;function C(_,j){const A=performance.now(),Z=A-O;if(E===null||x===null||Z===0)return E=_,x=j,O=A,!1;const X=_-E,q=j-x,U=X*X+q*q,K=Z*Z*CA;return E=_,x=j,O=A,U<K}function M(){r.clear(),g()}return function(j){r.clear();const A=m.domReference,Z=m.floating;if(!A||!Z||b==null||u==null||f==null)return;const{clientX:X,clientY:q}=j,U=$n(j),K=j.type==="mouseleave",re=Me(Z,U),fe=Me(A,U);if(re&&(S=!0,!K))return;if(fe&&(S=!1,!K)){S=!0;return}if(K&&Je(j.relatedTarget)&&Me(Z,j.relatedTarget))return;function se(){return!!(v&&Ns(v.nodesRef.current,p).length>0)}function J(){se()||M()}if(se())return;const oe=A.getBoundingClientRect(),ne=Z.getBoundingClientRect(),z=u>ne.right-ne.width/2,G=f>ne.bottom-ne.height/2,I=ne.width>oe.width,ae=ne.height>oe.height,H=(I?oe:ne).left,T=(I?oe:ne).right,B=(ae?oe:ne).top,te=(ae?oe:ne).bottom;if(b==="top"&&f>=oe.bottom-1||b==="bottom"&&f<=oe.top+1||b==="left"&&u>=oe.right-1||b==="right"&&u<=oe.left+1){J();return}let ie=!1;switch(b){case"top":ie=_u(X,q,H,oe.top+1,T,ne.bottom-1);break;case"bottom":ie=_u(X,q,H,ne.top+1,T,oe.bottom-1);break;case"left":ie=_u(X,q,ne.right-1,te,oe.left+1,B);break;case"right":ie=_u(X,q,oe.right-1,te,ne.left+1,B);break}if(ie)return;if(S&&!AA(X,q,oe)){J();return}if(!K&&C(X,q)){J();return}let le=!1;switch(b){case"top":{const ee=I?ot/2:ot*4,ge=I||z?u+ee:u-ee,ue=I?u-ee:z?u+ee:u-ee,de=f+ot+1,Ze=z||I?ne.bottom-ot:ne.top,nt=z?I?ne.bottom-ot:ne.top:ne.bottom-ot;le=Au(X,q,ge,de,ue,de,ne.left,Ze,ne.right,nt);break}case"bottom":{const ee=I?ot/2:ot*4,ge=I||z?u+ee:u-ee,ue=I?u-ee:z?u+ee:u-ee,de=f-ot,Ze=z||I?ne.top+ot:ne.bottom,nt=z?I?ne.top+ot:ne.bottom:ne.top+ot;le=Au(X,q,ge,de,ue,de,ne.left,Ze,ne.right,nt);break}case"left":{const ee=ae?ot/2:ot*4,ge=ae||G?f+ee:f-ee,ue=ae?f-ee:G?f+ee:f-ee,de=u+ot+1,Ze=G||ae?ne.right-ot:ne.left,nt=G?ae?ne.right-ot:ne.left:ne.right-ot;le=Au(X,q,Ze,ne.top,nt,ne.bottom,de,ge,de,ue);break}case"right":{const ee=ae?ot/2:ot*4,ge=ae||G?f+ee:f-ee,ue=ae?f-ee:G?f+ee:f-ee,de=u-ot,Ze=G||ae?ne.left+ot:ne.right,nt=G?ae?ne.left+ot:ne.right:ne.left+ot;le=Au(X,q,de,ge,de,ue,Ze,ne.top,nt,ne.bottom);break}}le?S||r.start(40,J):J()}};return a.__options={...n,blockPointerEvents:i},a}const SS=w.createContext(void 0);function Wa(n){const i=w.useContext(SS);if(i===void 0&&!n)throw new Error(dr(47));return i}function MA(){return{...vA(),disabled:!1,modal:!1,focusManagerModal:!1,instantType:void 0,openMethod:null,openChangeReason:null,titleElementId:void 0,descriptionElementId:void 0,stickIfOpen:!0,nested:!1,openOnHover:!1,closeDelay:0,hasViewport:!1}}const NA={...EA,disabled:Ve(n=>n.disabled),instantType:Ve(n=>n.instantType),openMethod:Ve(n=>n.openMethod),openChangeReason:Ve(n=>n.openChangeReason),modal:Ve(n=>n.modal),focusManagerModal:Ve(n=>n.focusManagerModal),stickIfOpen:Ve(n=>n.stickIfOpen),titleElementId:Ve(n=>n.titleElementId),descriptionElementId:Ve(n=>n.descriptionElementId),openOnHover:Ve(n=>n.openOnHover),closeDelay:Ve(n=>n.closeDelay),hasViewport:Ve(n=>n.hasViewport)};class $h extends hS{constructor(r,a,u=!1){const f={...MA(),...r},d=new Ih;f.open&&(r==null?void 0:r.mounted)===void 0&&(f.mounted=!0),f.floatingRootContext=bA(d,a,u);super(f,{popupRef:w.createRef(),backdropRef:w.createRef(),internalBackdropRef:w.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerFocusTargetRef:w.createRef(),beforeContentFocusGuardRef:w.createRef(),stickIfOpenTimeout:new ei,triggerElements:d},NA);et(this,"setOpen",(r,a)=>{var v,b;const u=a.reason===bn,f=a.reason===Ba&&a.event.detail===0,d=!r&&(a.reason===L0||a.reason==null),m=cA(a),g=this.select("activeTriggerId");if(!r&&a.reason===ow&&a.trigger==null&&g!=null&&(a.trigger=this.context.triggerElements.getById(g)??this.select("activeTriggerElement")??void 0),(b=(v=this.context).onOpenChange)==null||b.call(v,r,a),a.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(r,a);const p=()=>{const S={open:r,openChangeReason:a.reason};uA(S,r,a.trigger,m()),this.update(S)};u?(this.set("stickIfOpen",!0),this.context.stickIfOpenTimeout.start(kw,()=>{this.set("stickIfOpen",!1)}),Ds.flushSync(p)):p(),f||d?this.set("instantType",f?"click":"dismiss"):a.reason===Ha?this.set("instantType","focus"):this.set("instantType",void 0)});et(this,"disposeEffect",()=>this.context.stickIfOpenTimeout.disposeEffect())}static useStore(r,a){const{store:u,internalStore:f}=aA(r,(d,m)=>new $h(a,d,m));return w.useEffect(()=>f==null?void 0:f.disposeEffect(),[f]),u}}function rb({props:n}){const{children:i,open:r,defaultOpen:a=!1,onOpenChange:u,onOpenChangeComplete:f,modal:d=!1,handle:m,triggerId:g,defaultTriggerId:p=null}=n,v=$h.useStore(m==null?void 0:m.store,{modal:d,open:a,openProp:r,activeTriggerId:p,triggerIdProp:g});fA(v,r,a,p),v.useControlledProp("openProp",r),v.useControlledProp("triggerIdProp",g);const b=v.useState("open"),S=v.useState("mounted"),E=v.useState("payload"),x=Nl()!=null;v.useContextCallback("onOpenChange",u),v.useContextCallback("onOpenChangeComplete",f),gA(v,b),hA(v);const{forceUnmount:O}=mA(b,v,()=>{v.update({stickIfOpen:!0,openChangeReason:null})});v.useSyncedValues({modal:d,nested:x}),w.useEffect(()=>{b||v.context.stickIfOpenTimeout.clear()},[v,b]);const C=w.useCallback(()=>{v.setOpen(!1,Qt(uw))},[v]);w.useImperativeHandle(n.actionsRef,()=>({unmount:O,close:C}),[O,C]);const M=b||S,_=w.useMemo(()=>({store:v}),[v]);return k.jsxs(SS.Provider,{value:_,children:[M&&k.jsx(zA,{store:v,modal:d}),typeof i=="function"?i({payload:E}):i]})}function DA(n){return Wa(!0)?k.jsx(rb,{props:n}):k.jsx(Xw,{children:k.jsx(rb,{props:n})})}function zA({store:n,modal:i}){const r=n.useState("floatingRootContext"),a=$w(r,{outsidePressEvent:{mouse:i==="trap-focus"?"sloppy":"intentional",touch:"sloppy"}}),u=a.reference??Jt,f=a.trigger??Jt,d=w.useMemo(()=>Za(gS,a.floating),[a.floating]);return pA(n,{activeTriggerProps:u,inactiveTriggerProps:f,popupProps:d}),null}let em=function(n){return n.open="data-open",n.closed="data-closed",n[n.startingStyle=qa.startingStyle]="startingStyle",n[n.endingStyle=qa.endingStyle]="endingStyle",n.anchorHidden="data-anchor-hidden",n.side="data-side",n.align="data-align",n}({}),yh=function(n){return n.popupOpen="data-popup-open",n.pressed="data-pressed",n}({});const UA={[yh.popupOpen]:""},kA={[yh.popupOpen]:"",[yh.pressed]:""},jA={[em.open]:""},LA={[em.closed]:""},BA={[em.anchorHidden]:""},HA={open(n){return n?UA:null}},qA={open(n){return n?kA:null}},ES={open(n){return n?jA:LA},anchorHidden(n){return n?BA:null}},YA=300;function VA(n){return Ja(n,"base-ui")}function GA(n,i){const r=w.useRef(null);function a(f){Ds.flushSync(()=>{n.setOpen(!1,Qt(Ha,f.nativeEvent,f.currentTarget))});const d=Mw(r.current);d==null||d.focus()}function u(f){var m;const d=n.select("positionerElement");if(d&&ll(f,d))(m=n.context.beforeContentFocusGuardRef.current)==null||m.focus();else{Ds.flushSync(()=>{n.setOpen(!1,Qt(Ha,f.nativeEvent,f.currentTarget))});let g=_w(n.context.triggerFocusTargetRef.current||i.current);for(;g!==null&&Me(d,g);){const p=g;if(g=Fh(g),g===p)break}g==null||g.focus()}}return{preFocusGuardRef:r,handlePreFocusGuardFocus:a,handleFocusTargetFocus:u}}function QA(n){const i=w.useRef(""),r=w.useCallback(u=>{u.defaultPrevented||(i.current=u.pointerType,n(u,u.pointerType))},[n]);return{onClick:w.useCallback(u=>{if(u.detail===0){n(u,"keyboard");return}"pointerType"in u?n(u,u.pointerType):n(u,i.current),i.current=""},[n]),onPointerDown:r}}function XA(n,i){const r=$e((f,d)=>{(typeof n=="function"?n():n)||i(d||(rc?"touch":""))}),{onClick:a,onPointerDown:u}=QA(r);return w.useMemo(()=>({onClick:a,onPointerDown:u}),[a,u])}const KA=w.forwardRef(function(i,r){const{render:a,className:u,style:f,disabled:d=!1,nativeButton:m=!0,handle:g,payload:p,openOnHover:v=!1,delay:b=YA,closeDelay:S=0,id:E,...x}=i,O=Wa(!0),C=(g==null?void 0:g.store)??(O==null?void 0:O.store);if(!C)throw new Error(dr(74));const M=VA(E),_=C.useState("isTriggerActive",M),j=C.useState("floatingRootContext"),A=C.useState("isOpenedByTrigger",M),Z=C.useState("triggerPopupId",M),X=w.useRef(null),{registerTrigger:q,isMountedByThisTrigger:U}=dA(M,X,C,{payload:p,disabled:d,openOnHover:v,closeDelay:S}),K=C.useState("openChangeReason"),re=C.useState("stickIfOpen"),fe=C.useState("openMethod"),se=C.useState("focusManagerModal"),J=wA(j,{enabled:!d&&j!=null&&v&&(fe!=="touch"||K!==Ba),mouseOnly:!0,move:!1,handleClose:_A(),restMs:b,delay:{close:S},triggerElementRef:X,isActiveTrigger:_,isClosing:()=>C.select("transitionStatus")==="ending"}),oe=Iw(j,{enabled:j!=null,stickIfOpen:re}),ne=XA(()=>C.select("open"),le=>{C.set("openMethod",le)}),z=C.useState("triggerProps",U),{getButtonProps:G,buttonRef:I}=D0({disabled:d,native:m}),ae={open(le){return le&&K===Ba?qA.open(le):HA.open(le)}},{preFocusGuardRef:H,handlePreFocusGuardFocus:T,handleFocusTargetFocus:B}=GA(C,X),ie=wl("button",i,{state:{disabled:d,open:A},ref:[I,r,q,X],props:[oe.reference,J,z,ne,{[W0]:"",id:M,"aria-haspopup":"dialog","aria-expanded":A,"aria-controls":Z},x,G],stateAttributesMapping:ae});return U&&!se?k.jsxs(w.Fragment,{children:[k.jsx(Rl,{ref:H,onFocus:T}),k.jsx(w.Fragment,{children:ie},M),k.jsx(Rl,{ref:C.context.triggerFocusTargetRef,onFocus:B})]}):k.jsx(w.Fragment,{children:ie},M)}),xS=w.createContext(void 0);function FA(){const n=w.useContext(xS);if(n===void 0)throw new Error(dr(45));return n}const ZA=w.forwardRef(function(i,r){const{keepMounted:a=!1,...u}=i,{store:f}=Wa();return f.useState("mounted")||a?k.jsx(xS.Provider,{value:a,children:k.jsx(Yw,{ref:r,...u})}):null});function PA(n){return Oh(19)?n:n?"true":void 0}const TS=w.createContext(void 0);function IA(){const n=w.useContext(TS);if(!n)throw new Error(dr(46));return n}const JA=w.createContext(void 0);function WA(){const n=w.useContext(JA);return(n==null?void 0:n.direction)??"ltr"}const $A=n=>({name:"arrow",options:n,async fn(i){var ae,H;const{x:r,y:a,placement:u,rects:f,platform:d,elements:m,middlewareData:g}=i,{element:p,padding:v=0,offsetParent:b="real"}=Gi(n,i)||{};if(p==null)return{};const S=H0(v),E={x:r,y:a},x=Xh(u),O=Qh(x),C=await d.getDimensions(p),M=x==="y",_=M?"top":"left",j=M?"bottom":"right",A=M?"clientHeight":"clientWidth",Z=f.reference[O]+f.reference[x]-E[x]-f.floating[O],X=E[x]-f.reference[x],q=b==="real"?await((ae=d.getOffsetParent)==null?void 0:ae.call(d,p)):m.floating;let U=m.floating[A]||f.floating[O];(!U||!await((H=d.isElement)==null?void 0:H.call(d,q)))&&(U=m.floating[A]||f.floating[O]);const K=Z/2-X/2,re=U/2-C[O]/2-1,fe=Math.min(S[_],re),se=Math.min(S[j],re),J=fe,oe=U-C[O]-se,ne=U/2-C[O]/2+K,z=B0(J,ne,oe),G=!g.arrow&&Us(u)!=null&&ne!==z&&f.reference[O]/2-(ne<J?fe:se)-C[O]/2<0,I=G?ne<J?ne-J:ne-oe:0;return{[x]:E[x]+I,data:{[x]:z,centerOffset:ne-z-I,...G&&{alignmentOffset:I}},reset:G}}}),e2=(n,i)=>({...$A(n),options:[n,i]}),t2=YC().fn,n2={name:"hide",async fn(n){var m;const{width:i,height:r,x:a,y:u}=n.rects.reference,f=i===0&&r===0&&a===0&&u===0;return{data:{referenceHidden:((m=(await t2(n)).data)==null?void 0:m.referenceHidden)||f}}}},Bu={sideX:"left",sideY:"top"},i2={name:"adaptiveOrigin",async fn(n){var _,j;const{x:i,y:r,rects:{floating:a},elements:{floating:u},platform:f,strategy:d,placement:m}=n,g=zt(u),p=g.getComputedStyle(u);if(!(p.transitionDuration!=="0s"&&p.transitionDuration!==""))return{x:i,y:r,data:Bu};const b=await((_=f.getOffsetParent)==null?void 0:_.call(f,u));let S={width:0,height:0};if(d==="fixed"&&(g!=null&&g.visualViewport))S={width:g.visualViewport.width,height:g.visualViewport.height};else if(b===g){const A=ct(u);S={width:A.documentElement.clientWidth,height:A.documentElement.clientHeight}}else await((j=f.isElement)==null?void 0:j.call(f,b))&&(S=await f.getDimensions(b));const E=zn(m);let x=i,O=r;E==="left"&&(x=S.width-(i+a.width)),E==="top"&&(O=S.height-(r+a.height));const C=E==="left"?"right":Bu.sideX,M=E==="top"?"bottom":Bu.sideY;return{x,y:O,data:{sideX:C,sideY:M}}}};function RS(n,i,r){const a=n==="inline-start"||n==="inline-end";return{top:"top",right:a?r?"inline-start":"inline-end":"right",bottom:"bottom",left:a?r?"inline-end":"inline-start":"left"}[i]}function lb(n,i,r){const{rects:a,placement:u}=n;return{side:RS(i,zn(u),r),align:Us(u)||"center",anchor:{width:a.reference.width,height:a.reference.height},positioner:{width:a.floating.width,height:a.floating.height}}}function s2(n){var yr,pi;const{anchor:i,positionMethod:r="absolute",side:a="bottom",sideOffset:u=0,align:f="center",alignOffset:d=0,collisionBoundary:m,collisionPadding:g=5,sticky:p=!1,arrowPadding:v=5,disableAnchorTracking:b=!1,inline:S,keepMounted:E=!1,floatingRootContext:x,mounted:O,collisionAvoidance:C,shiftCrossAxis:M=!1,nodeId:_,adaptiveOrigin:j,lazyFlip:A=!1,externalTree:Z}=n,[X,q]=w.useState(null);!O&&X!==null&&q(null);const U=C.side||"flip",K=C.align||"flip",re=C.fallbackAxisSide||"end",fe=typeof i=="function"?i:void 0,se=$e(fe),J=fe?se:i,oe=Sn(i),ne=Sn(O),G=WA()==="rtl",I=X||{top:"top",right:"right",bottom:"bottom",left:"left","inline-end":G?"left":"right","inline-start":G?"right":"left"}[a],ae=f==="center"?I:`${I}-${f}`;let H=g;const T=1,B=a==="bottom"?T:0,te=a==="top"?T:0,ie=a==="right"?T:0,le=a==="left"?T:0;typeof H=="number"?H={top:H+B,right:H+le,bottom:H+te,left:H+ie}:H&&(H={top:(H.top||0)+B,right:(H.right||0)+le,bottom:(H.bottom||0)+te,left:(H.left||0)+ie});const ee={boundary:m==="clipping-ancestors"?"clippingAncestors":m,padding:H},ge=w.useRef(null),ue=Sn(u),de=Sn(d),Ze=typeof u!="function"?u:0,nt=typeof d!="function"?d:0,be=[];S&&be.push(S),be.push(jC(Ke=>{const Ot=lb(Ke,a,G),qt=typeof ue.current=="function"?ue.current(Ot):ue.current,Xt=typeof de.current=="function"?de.current(Ot):de.current;return{mainAxis:qt,crossAxis:Xt,alignmentAxis:Xt}},[Ze,nt,G,a]));const ze=K==="none"&&U!=="shift",we=!ze&&(p||M||U==="shift"),ft=U==="none"?null:HC({...ee,padding:{top:H.top+T,right:H.right+T,bottom:H.bottom+T,left:H.left+T},mainAxis:!M&&U==="flip",crossAxis:K==="flip"?"alignment":!1,fallbackAxisSideDirection:re}),bt=ze?null:LC(Ke=>{const Ot=ct(Ke.elements.floating).documentElement;return{...ee,rootBoundary:M?{x:0,y:0,width:Ot.clientWidth,height:Ot.clientHeight}:void 0,mainAxis:K!=="none",crossAxis:we,limiter:p||M?void 0:BC(qt=>{if(!ge.current)return{};const{width:Xt,height:rn}=ge.current.getBoundingClientRect(),Tn=Fn(zn(qt.placement)),ni=Tn==="y"?Xt:rn,ii=Tn==="y"?H.left+H.right:H.top+H.bottom;return{offset:ni/2+ii/2}})}},[ee,p,M,H,K]);U==="shift"||K==="shift"||f==="center"?be.push(bt,ft):be.push(ft,bt),be.push(qC({...ee,apply({elements:{floating:Ke},availableWidth:Ot,availableHeight:qt,rects:Xt}){if(!ne.current)return;const rn=Ke.style;rn.setProperty("--available-width",`${Ot}px`),rn.setProperty("--available-height",`${qt}px`);const Tn=zt(Ke).devicePixelRatio||1,{x:ni,y:ii,width:un,height:zl}=Xt.reference,vr=(Math.round((ni+un)*Tn)-Math.round(ni*Tn))/Tn,br=(Math.round((ii+zl)*Tn)-Math.round(ii*Tn))/Tn;rn.setProperty("--anchor-width",`${vr}px`),rn.setProperty("--anchor-height",`${br}px`)}}),e2(Ke=>({element:ge.current||ct(Ke.elements.floating).createElement("div"),padding:v,offsetParent:"floating"}),[v]),{name:"transformOrigin",fn(Ke){var Er,no,io;const{elements:Ot,middlewareData:qt,placement:Xt,rects:rn,y:Tn}=Ke,ni=zn(Xt),ii=Fn(ni),un=ge.current,zl=((Er=qt.arrow)==null?void 0:Er.x)||0,vr=((no=qt.arrow)==null?void 0:no.y)||0,br=(un==null?void 0:un.clientWidth)||0,$a=(un==null?void 0:un.clientHeight)||0,ks=zl+br/2,Sr=vr+$a/2,eo=Math.abs(((io=qt.shift)==null?void 0:io.y)||0),to=rn.reference.height/2,cn=typeof u=="function"?u(lb(Ke,a,G)):u,kt=eo>cn,$t={top:`${ks}px calc(100% + ${cn}px)`,bottom:`${ks}px ${-cn}px`,left:`calc(100% + ${cn}px) ${Sr}px`,right:`${-cn}px ${Sr}px`}[ni],Ki=`${ks}px ${rn.reference.y+to-Tn}px`;return Ot.floating.style.setProperty("--transform-origin",we&&ii==="y"&&kt?Ki:$t),{}}},n2,j),Xe(()=>{!O&&x&&x.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[O,x]);const Oe=w.useMemo(()=>({elementResize:!b&&typeof ResizeObserver<"u",layoutShift:!b&&typeof IntersectionObserver<"u"}),[b]),{refs:Ue,elements:xe,x:mt,y:dt,middlewareData:ke,update:St,placement:ce,context:Ee,isPositioned:ht,floatingStyles:Be}=TA({rootContext:x,open:E?O:void 0,placement:ae,middleware:be,strategy:r,whileElementsMounted:E?void 0:(...Ke)=>Jv(...Ke,Oe),nodeId:_,externalTree:Z}),{sideX:pt,sideY:Ut}=ke.adaptiveOrigin||Bu,nn=ht?r:"fixed",sn=w.useMemo(()=>{const Ke=j?{position:nn,[pt]:mt,[Ut]:dt}:{position:nn,...Be};return ht||(Ke.opacity=0),Ke},[j,nn,pt,mt,Ut,dt,Be,ht]),ti=w.useRef(null);Xe(()=>{if(!O)return;const Ke=oe.current,Ot=typeof Ke=="function"?Ke():Ke,Xt=(ab(Ot)?Ot.current:Ot)||null||null;Xt!==ti.current&&(Ue.setPositionReference(Xt),ti.current=Xt)},[O,Ue,J,oe]),w.useEffect(()=>{if(!O)return;const Ke=oe.current;typeof Ke!="function"&&ab(Ke)&&Ke.current!==ti.current&&(Ue.setPositionReference(Ke.current),ti.current=Ke.current)},[O,Ue,J,oe]),w.useEffect(()=>{if(E&&O&&xe.reference&&xe.floating)return Jv(xe.reference,xe.floating,St,Oe)},[E,O,xe,St,Oe]);const on=zn(ce),Bt=RS(a,on,G),xn=Us(ce)||"center",Ht=!!((yr=ke.hide)!=null&&yr.referenceHidden);Xe(()=>{A&&O&&ht&&q(on)},[A,O,ht,on]);const pr=w.useMemo(()=>{var Ke,Ot;return{position:"absolute",top:(Ke=ke.arrow)==null?void 0:Ke.y,left:(Ot=ke.arrow)==null?void 0:Ot.x}},[ke.arrow]),gr=((pi=ke.arrow)==null?void 0:pi.centerOffset)!==0;return w.useMemo(()=>({positionerStyles:sn,arrowStyles:pr,arrowRef:ge,arrowUncentered:gr,side:Bt,align:xn,physicalSide:on,anchorHidden:Ht,refs:Ue,context:Ee,isPositioned:ht,update:St}),[sn,pr,ge,gr,Bt,xn,on,Ht,Ue,Ee,ht,St])}function ab(n){return n!=null&&"current"in n}const r2=w.forwardRef(function(i,r){const{cutout:a,...u}=i;let f;if(a){const d=a.getBoundingClientRect();f=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${d.left}px ${d.top}px,${d.left}px ${d.bottom}px,${d.right}px ${d.bottom}px,${d.right}px ${d.top}px,${d.left}px ${d.top}px)`}return k.jsx("div",{ref:r,role:"presentation","data-base-ui-inert":"",...u,style:{position:"fixed",inset:0,userSelect:"none",WebkitUserSelect:"none",clipPath:f}})});function OS(n){return n==="starting"?jw:Jt}function l2(n,i,{styles:r,transitionStatus:a,props:u,refs:f,hidden:d,inert:m=!1}){const g={...r};return m&&(g.pointerEvents="none"),wl("div",n,{state:i,ref:f,props:[{role:"presentation",hidden:d,style:g},OS(a),u],stateAttributesMapping:ES})}let ob={},ub={},cb="";function a2(n){if(typeof document>"u")return!1;const i=ct(n);return zt(i).innerWidth-i.documentElement.clientWidth>0}function o2(n){if(!(typeof CSS<"u"&&CSS.supports&&CSS.supports("scrollbar-gutter","stable"))||typeof document>"u")return!1;const r=ct(n),a=r.documentElement,u=r.body,f=mr(a)?a:u,d=f.style.overflowY,m=a.style.scrollbarGutter;a.style.scrollbarGutter="stable",f.style.overflowY="scroll";const g=f.offsetWidth;f.style.overflowY="hidden";const p=f.offsetWidth;return f.style.overflowY=d,a.style.scrollbarGutter=m,g===p}function u2(n){const i=ct(n),r=i.documentElement,a=i.body,u=mr(r)?r:a,f={overflowY:u.style.overflowY,overflowX:u.style.overflowX};return Object.assign(u.style,{overflowY:"hidden",overflowX:"hidden"}),()=>{Object.assign(u.style,f)}}function c2(n){var E;const i=ct(n),r=i.documentElement,a=i.body,u=zt(r);let f=0,d=0,m=!1;const g=di.create();if(Ml&&(((E=u.visualViewport)==null?void 0:E.scale)??1)!==1)return()=>{};function p(){const x=u.getComputedStyle(r),O=u.getComputedStyle(a),_=(x.scrollbarGutter||"").includes("both-edges")?"stable both-edges":"stable";f=r.scrollTop,d=r.scrollLeft,ob={scrollbarGutter:r.style.scrollbarGutter,overflowY:r.style.overflowY,overflowX:r.style.overflowX},cb=r.style.scrollBehavior,ub={position:a.style.position,height:a.style.height,width:a.style.width,boxSizing:a.style.boxSizing,overflowY:a.style.overflowY,overflowX:a.style.overflowX,scrollBehavior:a.style.scrollBehavior};const j=r.scrollHeight>r.clientHeight,A=r.scrollWidth>r.clientWidth,Z=x.overflowY==="scroll"||O.overflowY==="scroll",X=x.overflowX==="scroll"||O.overflowX==="scroll",q=Math.max(0,u.innerWidth-a.clientWidth),U=Math.max(0,u.innerHeight-a.clientHeight),K=parseFloat(O.marginTop)+parseFloat(O.marginBottom),re=parseFloat(O.marginLeft)+parseFloat(O.marginRight),fe=mr(r)?r:a;if(m=o2(n),m){r.style.scrollbarGutter=_,fe.style.overflowY="hidden",fe.style.overflowX="hidden";return}Object.assign(r.style,{scrollbarGutter:_,overflowY:"hidden",overflowX:"hidden"}),(j||Z)&&(r.style.overflowY="scroll"),(A||X)&&(r.style.overflowX="scroll"),Object.assign(a.style,{position:"relative",height:K||U?`calc(100dvh - ${K+U}px)`:"100dvh",width:re||q?`calc(100vw - ${re+q}px)`:"100vw",boxSizing:"border-box",overflow:"hidden",scrollBehavior:"unset"}),a.scrollTop=f,a.scrollLeft=d,r.setAttribute("data-base-ui-scroll-locked",""),r.style.scrollBehavior="unset"}function v(){Object.assign(r.style,ob),Object.assign(a.style,ub),m||(r.scrollTop=f,r.scrollLeft=d,r.removeAttribute("data-base-ui-scroll-locked"),r.style.scrollBehavior=cb)}function b(){v(),g.request(p)}p();const S=Fe(u,"resize",b);return()=>{g.cancel(),v(),typeof u.removeEventListener=="function"&&S()}}class f2{constructor(){et(this,"lockCount",0);et(this,"restore",null);et(this,"timeoutLock",ei.create());et(this,"timeoutUnlock",ei.create());et(this,"release",()=>{this.lockCount-=1,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)});et(this,"unlock",()=>{var i;this.lockCount===0&&this.restore&&((i=this.restore)==null||i.call(this),this.restore=null)})}acquire(i){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(i)),this.release}lock(i){if(this.lockCount===0||this.restore!==null)return;const a=ct(i).documentElement,u=zt(a).getComputedStyle(a).overflowY;if(u==="hidden"||u==="clip"){this.restore=wh;return}const f=rc||!a2(i);this.restore=f?u2(i):c2(i)}}const d2=new f2;function h2(n=!0,i=null){Xe(()=>{if(n)return d2.acquire(i)},[n,i])}const m2=20;function p2(n,i,r,a){const[u,f]=w.useState(!1);Xe(()=>{if(!n||!i||r==null){f(!1);return}const d=ct(r).documentElement.clientWidth,m=r.offsetWidth;f(d>0&&m>0&&m>=d-m2)},[n,i,r]),h2(n&&(!i||u),a)}const g2=w.forwardRef(function(i,r){const{render:a,className:u,style:f,anchor:d,positionMethod:m="absolute",side:g="bottom",align:p="center",sideOffset:v=0,alignOffset:b=0,collisionBoundary:S="clipping-ancestors",collisionPadding:E=5,arrowPadding:x=5,sticky:O=!1,disableAnchorTracking:C=!1,collisionAvoidance:M=Lw,..._}=i,{store:j}=Wa(),A=FA(),Z=Gw(),X=j.useState("floatingRootContext"),q=j.useState("mounted"),U=j.useState("open"),K=j.useState("openChangeReason"),re=j.useState("activeTriggerElement"),fe=j.useState("modal"),se=j.useState("openMethod"),J=j.useState("positionerElement"),oe=j.useState("instantType"),ne=j.useState("transitionStatus"),z=j.useState("hasViewport"),G=w.useRef(null),I=mS(J,!1,!1),ae=s2({anchor:d,floatingRootContext:X,positionMethod:m,mounted:q,side:g,sideOffset:v,align:p,alignOffset:b,arrowPadding:x,collisionBoundary:S,collisionPadding:E,sticky:O,disableAnchorTracking:C,keepMounted:A,nodeId:Z,collisionAvoidance:M,adaptiveOrigin:z?i2:void 0}),H=X.useState("domReferenceElement");Xe(()=>{const ie=H,le=G.current;if(ie&&(G.current=ie),le&&ie&&ie!==le){j.set("instantType",void 0);const ee=new AbortController;return I(()=>{j.set("instantType","trigger-change")},ee.signal),()=>{ee.abort()}}},[H,I,j]),p2(U&&fe===!0&&K!==bn,se==="touch",J,re);const T=w.useCallback(ie=>{j.set("positionerElement",ie)},[j]),B={open:U,side:ae.side,align:ae.align,anchorHidden:ae.anchorHidden,instant:oe},te=l2(i,B,{styles:ae.positionerStyles,transitionStatus:ne,props:_,refs:[r,T],hidden:!q,inert:!U});return k.jsxs(TS.Provider,{value:ae,children:[q&&fe===!0&&K!==bn&&k.jsx(r2,{ref:j.context.internalBackdropRef,inert:PA(!U),cutout:re}),k.jsx(Qw,{id:Z,children:te})]})}),y2="ArrowUp",v2="ArrowDown",b2="ArrowLeft",S2="ArrowRight",E2="Home",x2="End",T2=new Set([b2,S2]),R2=new Set([y2,v2]),O2=new Set([...T2,...R2]),w2=new Set([...O2,E2,x2]),C2=w.createContext(void 0);function A2(n){return w.useContext(C2)}const _2=w.createContext(void 0);function M2(){const[n,i]=w.useState(0),r=$e(()=>(i(u=>u+1),()=>{i(u=>Math.max(0,u-1))}));return{context:w.useMemo(()=>({register:r}),[r]),hasClosePart:n>0}}function N2(n){const{value:i,children:r}=n;return k.jsx(_2.Provider,{value:i,children:r})}const D2={...ES,...rA},z2=w.forwardRef(function(i,r){const{render:a,className:u,style:f,initialFocus:d,finalFocus:m,...g}=i,{store:p}=Wa(),v=IA(),b=A2()!=null,{context:S,hasClosePart:E}=M2(),x=p.useState("open"),O=p.useState("openMethod"),C=p.useState("instantType"),M=p.useState("transitionStatus"),_=p.useState("popupProps"),j=p.useState("titleElementId"),A=p.useState("descriptionElementId"),Z=p.useState("modal"),X=p.useState("mounted"),q=p.useState("openChangeReason"),U=p.useState("activeTriggerElement"),K=p.useState("floatingRootContext"),re=K.useState("floatingId"),fe=p.useState("disabled"),se=p.useState("openOnHover"),J=p.useState("closeDelay"),oe=g.id??re;pS({open:x,ref:p.context.popupRef,onComplete(){var H,T;x&&((T=(H=p.context).onOpenChangeComplete)==null||T.call(H,!0))}}),RA(K,{enabled:se&&!fe,closeDelay:J});const ne=d===void 0?lA(p.context.popupRef):d,z=Z!==!1&&E;p.useSyncedValue("focusManagerModal",z);const G=w.useCallback(H=>{p.set("popupElement",H)},[p]),I={open:x,side:v.side,align:v.align,instant:C,transitionStatus:M},ae=wl("div",i,{state:I,ref:[r,p.context.popupRef,G],props:[_,{id:oe,role:"dialog",...gS,"aria-labelledby":j,"aria-describedby":A,onKeyDown(H){b&&w2.has(H.key)&&H.stopPropagation()}},OS(M),g],stateAttributesMapping:D2});return k.jsx(Pw,{context:K,openInteractionType:O,modal:z,disabled:!X||q===bn,initialFocus:ne,returnFocus:m,restoreFocus:"popup",previousFocusableElement:Rt(U)?U:void 0,nextFocusableElement:p.context.triggerFocusTargetRef,beforeContentFocusGuardRef:p.context.beforeContentFocusGuardRef,children:k.jsx(N2,{value:S,children:ae})})}),U2="bg-chatroom-bg-primary text-chatroom-text-primary border border-chatroom-border rounded-none shadow-md",k2=`z-50 pointer-events-auto outline-none ${U2}`;function wS({modal:n=!1,...i}){return k.jsx(DA,{"data-slot":"popover",modal:n,...i})}function CS(n){return k.jsx(KA,{"data-slot":"popover-trigger",...n})}function AS({className:n,align:i="start",side:r="bottom",sideOffset:a=4,...u}){return k.jsx(ZA,{children:k.jsx(g2,{align:i,side:r,sideOffset:a,className:"isolate z-50",children:k.jsx(z2,{className:En("w-72 origin-(--transform-origin) overflow-hidden p-0 data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95",k2,n),...u})})})}function j2(n,i,r){const a=i.trim().toLowerCase();return a?n.filter(u=>r(u).toLowerCase().includes(a)):[...n]}function Wu({children:n,selected:i,onSelect:r,disabled:a,className:u,endAdornment:f,trailingActions:d,multiline:m=!1}){const g=En("min-w-0 px-3 py-2 text-xs text-left flex justify-between gap-2",m?"items-start":"items-center","cursor-pointer hover:bg-chatroom-bg-hover transition-colors","outline-none focus-visible:outline-none focus-visible:bg-chatroom-bg-hover","disabled:opacity-50 disabled:cursor-not-allowed",i&&"bg-chatroom-bg-hover",d?"flex-1 rounded-none":"w-full",!d&&u),p=k.jsxs("button",{type:"button",role:"option","aria-selected":i??!1,disabled:a,onClick:r,className:g,children:[k.jsx("span",{className:En("min-w-0 flex-1",m?"overflow-hidden":"truncate"),children:n}),f,i&&!d?k.jsx(hR,{size:12,className:"shrink-0 text-chatroom-accent"}):null]});return d?k.jsxs("div",{className:En("flex items-center w-full min-w-0",u),children:[p,d]}):p}function L2({children:n,className:i,maxHeightClassName:r="max-h-[60vh]"}){return k.jsx("div",{"data-picker-scroll-body":!0,className:En("min-h-0 overflow-y-auto overscroll-contain",r,i),children:n})}function B2({value:n,onChange:i,placeholder:r="Search…",autoFocus:a,className:u}){const f=a??!0;return k.jsx("div",{className:En("px-3 py-1.5 border-b border-chatroom-border shrink-0",u),"data-vaul-no-drag":"",onPointerDown:d=>d.stopPropagation(),onClick:d=>{const m=d.currentTarget.querySelector("input");m==null||m.focus()},children:k.jsx("input",{type:"search",enterKeyHint:"search",value:n,onChange:d=>i(d.target.value),placeholder:r,autoFocus:f,"data-vaul-no-drag":"",onPointerDown:d=>d.stopPropagation(),className:"w-full bg-chatroom-bg-tertiary border border-chatroom-border px-2 py-1 text-[11px] text-chatroom-text-primary placeholder:text-chatroom-text-muted focus:outline-none focus:border-chatroom-accent rounded-none"})})}function H2(n){const[i,r]=w.useState(""),a=w.useCallback(u=>{u||r(""),n(u)},[n]);return{searchTerm:i,setSearchTerm:r,handleOpenChange:a}}const _S="min-w-[8rem] max-w-[14rem] border border-chatroom-border bg-chatroom-bg-secondary text-xs text-chatroom-text-primary px-2 py-1.5 h-[28px] cursor-pointer hover:border-chatroom-border-strong focus:outline-none focus:border-chatroom-accent disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-between gap-1",MS="shrink-0 text-chatroom-text-muted";function NS({options:n,value:i,onChange:r,disabled:a,isLoading:u,isError:f,placeholder:d="Select…",allLabel:m="All",searchPlaceholder:g="Search…",emptyLabel:p="No results",ariaLabel:v,triggerClassName:b,contentClassName:S,allowClear:E=!0}){var U;const[x,O]=w.useState(!1),{searchTerm:C,setSearchTerm:M,handleOpenChange:_}=H2(O),j=(U=n.find(K=>K.value===i))==null?void 0:U.label,A=u?"Loading…":f?"Failed to load":j??d,Z=w.useMemo(()=>j2(n,C,K=>`${K.label} ${K.value}`),[n,C]),X=a||u||f,q=k.jsxs("button",{type:"button",disabled:X,className:En(_S,b),"aria-label":v,"aria-busy":u,children:[k.jsx("span",{className:"truncate",children:A}),k.jsx(d0,{size:12,className:MS})]});return k.jsxs(wS,{open:x,onOpenChange:_,children:[k.jsx(CS,{render:q}),k.jsxs(AS,{className:En("w-64",S),children:[k.jsx(B2,{value:C,onChange:M,placeholder:g}),k.jsxs(L2,{maxHeightClassName:"max-h-60",children:[E&&k.jsx(Wu,{selected:!i,onSelect:()=>{r(void 0),_(!1)},children:m}),Z.map(K=>k.jsx(Wu,{selected:i===K.value,onSelect:()=>{r(K.value),_(!1)},children:K.label},K.value)),!Z.length&&k.jsx("div",{className:"px-3 py-2 text-xs text-chatroom-text-muted",children:p})]})]})]})}function DS({chatrooms:n,value:i,onChange:r,disabled:a,isLoading:u,isError:f,allowAll:d=!0}){return k.jsxs("label",{className:"flex items-center gap-2 text-xs",children:[k.jsx("span",{className:"text-chatroom-text-muted",children:"Chatroom"}),k.jsx(NS,{options:n.map(m=>({value:m.id,label:m.displayName})),value:i,onChange:r,disabled:a,isLoading:u,isError:f,placeholder:d?"All chatrooms":"Select chatroom",allLabel:d?"All chatrooms":void 0,searchPlaceholder:"Search chatrooms…",ariaLabel:"Filter by chatroom",triggerClassName:"min-w-[10rem]"})]})}function fb({label:n,options:i,value:r,onChange:a,disabled:u,allLabel:f="All"}){return k.jsxs("label",{className:"flex items-center gap-2 text-xs",children:[k.jsx("span",{className:"text-chatroom-text-muted",children:n}),k.jsx(NS,{options:i.map(d=>({value:d,label:d})),value:r,onChange:a,disabled:u,placeholder:f,allLabel:f,searchPlaceholder:`Search ${n.toLowerCase()}…`,ariaLabel:n})]})}const zS="1h",US={"1h":"Last 1 hour","3h":"Last 3 hours","1d":"Last 1 day"},kS={"1h":36e5,"3h":108e5,"1d":864e5};function jS(n,i=Date.now()){return n.timeRange==="custom"&&n.fromMs!==void 0&&n.toMs!==void 0?{fromMs:n.fromMs,toMs:n.toMs}:{fromMs:i-(kS[n.timeRange]??36e5),toMs:i}}function q2(n){const i=n.timeRange??"1h";return i!=="custom"?US[i]:n.fromMs!==void 0&&n.toMs!==void 0?`${new Date(n.fromMs).toLocaleString()} – ${new Date(n.toMs).toLocaleString()}`:"Custom range"}const Mu=n=>{const i=new Date(n),r=a=>String(a).padStart(2,"0");return`${i.getFullYear()}-${r(i.getMonth()+1)}-${r(i.getDate())}T${r(i.getHours())}:${r(i.getMinutes())}`},db=n=>{const i=new Date(n).getTime();return Number.isFinite(i)?i:void 0},Y2=["1h","3h","1d"];function V2({value:n,onChange:i,disabled:r}){const[a,u]=w.useState(!1),[f,d]=w.useState(""),[m,g]=w.useState(""),p=n.timeRange??zS;w.useEffect(()=>{p==="custom"&&n.fromMs!==void 0&&n.toMs!==void 0&&(d(Mu(n.fromMs)),g(Mu(n.toMs)))},[p,n.fromMs,n.toMs]);const v=()=>{const S=Date.now(),E=n.fromMs??S-kS["1h"],x=n.toMs??S;d(Mu(E)),g(Mu(x)),i({timeRange:"custom",fromMs:E,toMs:x})},b=()=>{const S=db(f),E=db(m);S===void 0||E===void 0||S>E||(i({timeRange:"custom",fromMs:S,toMs:E}),u(!1))};return k.jsxs("label",{className:"flex items-center gap-2 text-xs",children:[k.jsx("span",{className:"text-chatroom-text-muted",children:"Time"}),k.jsxs(wS,{open:a,onOpenChange:u,children:[k.jsx(CS,{render:k.jsxs("button",{type:"button",disabled:r,className:En(_S,"min-w-[10rem]"),"aria-label":"Filter by time range",children:[k.jsx("span",{className:"truncate",children:q2(n)}),k.jsx(d0,{size:12,className:MS})]})}),k.jsxs(AS,{className:"w-72 p-0",align:"start",children:[Y2.map(S=>k.jsx(Wu,{selected:p===S,onSelect:()=>{i({timeRange:S,fromMs:void 0,toMs:void 0}),u(!1)},children:US[S]},S)),k.jsx(Wu,{selected:p==="custom",onSelect:v,children:"Custom range…"}),p==="custom"&&k.jsxs("div",{className:"space-y-2 border-t border-chatroom-border px-3 py-2",children:[k.jsxs("label",{className:"flex flex-col gap-1 text-[11px] text-chatroom-text-muted",children:["Start",k.jsx("input",{type:"datetime-local",value:f,onChange:S=>d(S.target.value),className:"rounded-none border border-chatroom-border bg-chatroom-bg-secondary px-2 py-1 text-xs text-chatroom-text-primary"})]}),k.jsxs("label",{className:"flex flex-col gap-1 text-[11px] text-chatroom-text-muted",children:["End",k.jsx("input",{type:"datetime-local",value:m,onChange:S=>g(S.target.value),className:"rounded-none border border-chatroom-border bg-chatroom-bg-secondary px-2 py-1 text-xs text-chatroom-text-primary"})]}),k.jsx("button",{type:"button",onClick:b,className:"w-full border border-chatroom-border bg-chatroom-bg-tertiary px-2 py-1.5 text-xs hover:bg-chatroom-bg-hover",children:"Apply"})]})]})]})]})}function G2({chatrooms:n,chatroomsLoading:i,chatroomsError:r,roles:a,harnesses:u,values:f,onChange:d,disabled:m}){return k.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[k.jsx(V2,{value:{timeRange:f.timeRange,fromMs:f.fromMs,toMs:f.toMs},onChange:g=>d({...f,...g}),disabled:m}),k.jsx(DS,{chatrooms:n,value:f.chatroomId,onChange:g=>d({...f,chatroomId:g}),disabled:m,isLoading:i,isError:r}),k.jsx(fb,{label:"Role",options:a,value:f.role,onChange:g=>d({...f,role:g}),disabled:m,allLabel:"All roles"}),k.jsx(fb,{label:"Harness",options:u,value:f.harness,onChange:g=>d({...f,harness:g}),disabled:m,allLabel:"All harnesses"})]})}function Q2({actions:n}){return k.jsxs("div",{className:"flex items-center justify-between gap-4",children:[k.jsx("h2",{className:"text-lg font-medium tracking-tight",children:"Session logs"}),n]})}function X2(){return k.jsxs("div",{className:"flex min-h-[400px] flex-1 flex-col items-center justify-center gap-2 border border-chatroom-border bg-chatroom-bg-secondary p-6 text-center",role:"status",children:[k.jsx(vR,{className:"size-8 text-chatroom-text-muted","aria-hidden":!0}),k.jsx("p",{className:"text-sm text-chatroom-text-secondary",children:"No logs yet"}),k.jsx("p",{className:"text-xs text-chatroom-text-muted",children:"Start an agent session to see output here"})]})}function K2({message:n}){return k.jsxs("div",{className:"flex min-h-[400px] flex-1 flex-col items-center justify-center gap-2 border border-chatroom-status-error/30 bg-chatroom-bg-secondary p-6 text-center",role:"alert",children:[k.jsx(gR,{className:"size-8 text-chatroom-status-error","aria-hidden":!0}),k.jsx("p",{className:"text-sm text-chatroom-status-error",children:"Failed to load logs"}),k.jsx("p",{className:"text-xs text-chatroom-text-muted",children:n})]})}function F2({line:n,chatroomName:i,selected:r,onSelect:a}){const u=new Date(n.timestamp).toISOString().slice(11,19),d=!Uh(n)||!n.source.startsWith("harness:"),m=()=>a==null?void 0:a(n);return k.jsxs("div",{className:En("flex gap-3 rounded-none px-1 py-1.5 -mx-1",a&&"cursor-pointer hover:bg-chatroom-bg-hover",r&&"bg-chatroom-bg-hover"),role:a?"button":void 0,tabIndex:a?0:void 0,onClick:a?m:void 0,onKeyDown:a?g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),m())}:void 0,children:[k.jsx("span",{className:"shrink-0 text-chatroom-text-muted",children:u}),k.jsx(M0,{level:n.level}),k.jsx(_0,{line:n,chatroomName:i}),d&&k.jsx("span",{className:"shrink-0 text-chatroom-text-muted",children:n.source}),k.jsx("span",{className:"min-w-0 flex-1 line-clamp-2",children:n.message})]})}function Z2({rows:n=8}){return k.jsx("div",{className:"flex flex-col gap-1 p-3","aria-busy":"true","aria-label":"Loading logs",children:Array.from({length:n},(i,r)=>k.jsxs("div",{className:"flex gap-3 py-1",children:[k.jsx(Ma,{className:"h-4 w-16 shrink-0"}),k.jsx(Ma,{className:"h-4 w-12 shrink-0"}),k.jsx(Ma,{className:"h-4 w-24 shrink-0"}),k.jsx(Ma,{className:"h-4 min-w-0 flex-1"})]},r))})}function P2({lines:n,isLoading:i,error:r,autoScroll:a=!0,selectedLine:u,onSelectLine:f,getChatroomName:d}){const m=w.useRef(null);if(w.useEffect(()=>{var p;a&&!i&&!r&&n.length>0&&((p=m.current)==null||p.scrollIntoView({behavior:"smooth"}))},[n.length,i,r,a]),i)return k.jsx("div",{className:"min-h-[400px] flex-1 border border-chatroom-border bg-chatroom-bg-secondary",children:k.jsx(Z2,{})});if(r)return k.jsx(K2,{message:r});if(n.length===0)return k.jsx(X2,{});const g=u?u.id??`${u.timestamp}-${u.message.slice(0,32)}`:null;return k.jsxs("div",{className:"min-h-[400px] flex-1 overflow-auto border border-chatroom-border bg-chatroom-bg-secondary p-3 font-mono text-xs",children:[n.map((p,v)=>{var x;const b=p.id??`${p.timestamp}-${v}`,S=p.id??`${p.timestamp}-${p.message.slice(0,32)}`,E=(x=p.metadata)==null?void 0:x.chatroomId;return k.jsx(F2,{line:p,chatroomName:typeof E=="string"?d==null?void 0:d(E):void 0,selected:g===S,onSelect:f},b)}),k.jsx("div",{ref:m})]})}function LS(){return Hb({queryKey:["daemon","chatrooms"],queryFn:async()=>{const n=await xO();if(!n.ok)throw new Error(n.error.message);return n.data.chatrooms},staleTime:6e4})}function hb(n,i){const r=jS(i);return n.timestamp>=r.fromMs&&n.timestamp<=r.toMs&&(!i.chatroomId||kh(n)===i.chatroomId)&&(!i.role||A0(n)===i.role)&&(!i.harness||Uh(n)===i.harness)}function I2(n){const[i,r]=w.useState([]),[a,u]=w.useState({chatroomIds:[],roles:[],harnesses:[]}),[f,d]=w.useState(!0),[m,g]=w.useState(null);return w.useEffect(()=>{let p;return(async()=>{try{const v=await EO();v.ok&&u(v.data);const b=jS(n),S=await SO({...n,fromTimestamp:b.fromMs,toTimestamp:b.toMs,limit:500});if(!S.ok)throw new Error(S.error.message);r(S.data.entries.filter(E=>hb(E,n))),p=RO(E=>{hb(E,n)&&r(x=>[...x,E])})}catch(v){g(v instanceof Error?v.message:"Failed to load logs")}finally{d(!1)}})(),()=>p==null?void 0:p()},[n.chatroomId,n.role,n.harness,n.timeRange,n.fromMs,n.toMs]),{lines:i,dimensions:a,isLoading:f,error:m}}function J2(n={}){return I2(n)}const W2=n=>n&&["1h","3h","1d","custom"].includes(n)?n:void 0;function mb(n){const i=new URLSearchParams(n.startsWith("?")?n.slice(1):n),r=W2(i.get("timeRange")),a=Number(i.get("from")),u=Number(i.get("to"));return{...i.get("chatroomId")?{chatroomId:i.get("chatroomId")}:{},...i.get("role")?{role:i.get("role")}:{},...i.get("harness")?{harness:i.get("harness")}:{},...r?{timeRange:r}:{},...Number.isFinite(a)&&i.get("from")?{fromMs:a}:{},...Number.isFinite(u)&&i.get("to")?{toMs:u}:{}}}function $2(n){const i=new URLSearchParams;n.chatroomId&&i.set("chatroomId",n.chatroomId),n.role&&i.set("role",n.role),n.harness&&i.set("harness",n.harness);const r=n.timeRange??zS;return i.set("timeRange",r),r==="custom"&&n.fromMs!==void 0&&n.toMs!==void 0&&(i.set("from",String(n.fromMs)),i.set("to",String(n.toMs))),i.toString()}function e_(n){const i=$2(n);window.history.replaceState(null,"",`${window.location.pathname}${i?`?${i}`:""}`)}function t_(){const[n,i]=w.useState(()=>mb(window.location.search)),r=w.useCallback(a=>{i(a),e_(a)},[]);return w.useEffect(()=>{const a=()=>i(mb(window.location.search));return window.addEventListener("popstate",a),()=>window.removeEventListener("popstate",a)},[]),{filters:n,setFilters:r}}function n_(){const{filters:n,setFilters:i}=t_(),[r,a]=w.useState(null),u=LS(),f=u.data??[],d=w.useMemo(()=>new Map(f.map(E=>[E.id,E.displayName])),[f]),{lines:m,dimensions:g,isLoading:p,error:v}=J2(n),b=E=>d.get(E),S=r?b(kh(r)??""):void 0;return k.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-3 p-6",children:[k.jsx(Q2,{actions:k.jsx(G2,{chatrooms:f,chatroomsLoading:u.isLoading,chatroomsError:u.isError,roles:g.roles,harnesses:g.harnesses,values:n,onChange:i,disabled:p})}),k.jsxs("div",{className:"flex min-h-0 flex-1 gap-0",children:[k.jsx("div",{className:"flex min-w-0 flex-1 flex-col",children:k.jsx(P2,{lines:m,isLoading:p,error:v,autoScroll:!r,selectedLine:r,onSelectLine:a,getChatroomName:b})}),r&&k.jsx(VO,{line:r,chatroomName:S,onClose:()=>a(null)})]})]})}function i_(n){const[i,r]=w.useState([]),[a,u]=w.useState(!1),[f,d]=w.useState(null);return w.useEffect(()=>{if(!n){r([]),u(!1),d(null);return}u(!0),d(null);let m=!0;return(async()=>{try{const g=await TO({chatroomId:n,limit:500});if(!g.ok)throw new Error(g.error.message);m&&r(g.data.entries)}catch(g){m&&d(g instanceof Error?g.message:"Failed to load event stream")}finally{m&&u(!1)}})(),()=>{m=!1}},[n]),{entries:i,isLoading:a,error:f}}function s_(n){return new Date(n).toISOString()}function r_(){const[n,i]=w.useState(),r=LS(),{entries:a,isLoading:u,error:f}=i_(n);return k.jsxs("section",{className:"flex min-h-0 flex-1 flex-col gap-3 p-6",children:[k.jsxs("div",{className:"flex items-center justify-between gap-4",children:[k.jsxs("div",{children:[k.jsx("h2",{className:"text-lg font-medium tracking-tight",children:"Event Stream"}),k.jsx("p",{className:"text-xs text-chatroom-text-muted",children:"Migrated chatroom events captured by the daemon."})]}),k.jsx(DS,{chatrooms:r.data??[],isLoading:r.isLoading,isError:r.isError,value:n,onChange:i,allowAll:!1,disabled:u}),n&&!u&&!f&&k.jsxs("span",{className:"text-xs text-chatroom-text-muted",children:[a.length," events"]})]}),k.jsxs("div",{className:"min-h-[400px] flex-1 overflow-auto border border-chatroom-border bg-chatroom-bg-secondary font-mono text-xs",children:[u&&k.jsx("p",{className:"p-4 text-chatroom-text-muted",children:"Loading event stream…"}),f&&k.jsx("p",{className:"p-4 text-chatroom-status-error",children:f}),!n&&k.jsx("p",{className:"p-4 text-chatroom-text-muted",children:"Select a chatroom to view events."}),n&&!u&&!f&&a.length===0&&k.jsx("p",{className:"p-4 text-chatroom-text-muted",children:"No migrated events yet."}),!u&&!f&&a.length>0&&k.jsxs("table",{className:"w-full border-collapse",children:[k.jsx("thead",{className:"sticky top-0 bg-chatroom-bg-primary text-left text-chatroom-text-muted",children:k.jsxs("tr",{children:[k.jsx("th",{className:"border-b border-chatroom-border px-3 py-2 font-medium",children:"Time"}),k.jsx("th",{className:"border-b border-chatroom-border px-3 py-2 font-medium",children:"Type"}),k.jsx("th",{className:"border-b border-chatroom-border px-3 py-2 font-medium",children:"Payload"})]})}),k.jsx("tbody",{children:a.map(d=>k.jsxs("tr",{className:"border-b border-chatroom-border align-top",children:[k.jsx("td",{className:"whitespace-nowrap px-3 py-2 text-chatroom-text-muted",children:s_(d.timestamp)}),k.jsx("td",{className:"whitespace-nowrap px-3 py-2 text-chatroom-text-primary",children:d.type}),k.jsx("td",{className:"whitespace-pre-wrap break-all px-3 py-2 text-chatroom-text-secondary",children:JSON.stringify(d.payload,null,2)})]},d.id))})]})]})]})}function l_(){var a,u;const[n,i]=w.useState("logs"),r=OO();return k.jsx(sR,{header:k.jsx(ER,{status:k.jsx(iR,{isLoading:r.isLoading,isError:r.isError,port:(a=r.data)==null?void 0:a.port,service:(u=r.data)==null?void 0:u.service})}),nav:k.jsxs(xR,{children:[k.jsx(Tv,{active:n==="logs",onClick:()=>i("logs"),children:"Logs"}),k.jsx(Tv,{active:n==="event-stream",onClick:()=>i("event-stream"),children:"Event Stream"})]}),children:n==="logs"?k.jsx(n_,{}):k.jsx(r_,{})})}const a_=new R1({defaultOptions:{queries:{staleTime:3e4,refetchOnWindowFocus:!1}}}),pb=document.getElementById("root");pb&&K1.createRoot(pb).render(k.jsx(w.StrictMode,{children:k.jsx(_1,{client:a_,children:k.jsx(l_,{})})}));
|