@deepagents/devtool 0.0.0-stage → 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,273 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./chat-BGxkfkmM.js","./chunk-YOKDWASO-DZenLjDt.js"])))=>i.map(i=>d[i]);
2
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,a)=>(a=n==null?{}:e(i(n)),l(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e),f=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var p=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},m=new class extends p{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},h={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},g=new class{#e=h;#t=!1;setTimeoutProvider(e){this.#t&&e!==this.#e&&console.error(`[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.`,{previous:this.#e,provider:e}),this.#e=e,this.#t=!1}setTimeout(e,t){return this.#t=!0,this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#t=!0,this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function _(e){setTimeout(e,0)}var v=typeof window>`u`||`Deno`in globalThis;function y(){}function b(e,t){return typeof e==`function`?e(t):e}function x(e){return typeof e==`number`&&e>=0&&e!==1/0}function S(e,t){return Math.max(e+(t||0)-Date.now(),0)}function C(e,t){return typeof e==`function`?e(t):e}function w(e,t){return typeof e==`function`?e(t):e}function T(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==D(o,t.options))return!1}else if(!k(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function E(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(O(t.options.mutationKey)!==O(a))return!1}else if(!k(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function D(e,t){return(t?.queryKeyHashFn||O)(e)}function O(e){return JSON.stringify(e,(e,t)=>P(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function k(e,t){return e===t?!0:typeof e==typeof t&&e&&t&&typeof e==`object`&&typeof t==`object`?Object.keys(t).every(n=>k(e[n],t[n])):!1}var A=Object.prototype.hasOwnProperty;function j(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=N(e)&&N(t);if(!r&&!(P(e)&&P(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:A.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=j(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function M(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function N(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function P(e){if(!F(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!F(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function F(e){return Object.prototype.toString.call(e)===`[object Object]`}function I(e){return new Promise(t=>{g.setTimeout(t,e)})}function L(e,t,n){if(typeof n.structuralSharing==`function`)return n.structuralSharing(e,t);if(n.structuralSharing!==!1){try{return j(e,t)}catch(e){throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`),e}return j(e,t)}return t}function R(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ee(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var te=Symbol();function z(e,t){return e.queryFn===te&&console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`),!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===te?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ne(e,t){return typeof e==`function`?e(...t):!!e}function re(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var B=(()=>{let e=()=>v;return{isServer(){return e()},setIsServer(t){e=t}}})();function ie(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var ae=_;function oe(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ae,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var V=oe(),se=new class extends p{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function ce(e){return Math.min(1e3*2**e,3e4)}function le(e){return(e??`online`)!==`online`||se.isOnline()}var ue=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function de(e){let t=!1,n=0,r,i=ie(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new ue(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>m.isFocused()&&(e.networkMode===`always`||se.isOnline())&&e.canRun(),u=()=>le(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),h=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(B.isServer()?0:3),o=e.retryDelay??ce,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),I(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):h()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?h():p().then(h),i)}}var fe=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),x(this.gcTime)&&(this.#e=g.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(B.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(g.clearTimeout(this.#e),this.#e=void 0)}};function pe(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{re(e,()=>t.signal,()=>n=!0)},u=z(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?ee:R;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?he:me,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:me(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=l}}}function me(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function he(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var ge=class extends fe{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=ye(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=ye(this.options);e.data!==void 0&&(this.setState(ve(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=L(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(y).catch(y):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>w(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===te||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>C(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!S(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}Array.isArray(this.options.queryKey)||console.error(`As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']`);let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=z(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?pe(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=de({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ue&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof ue){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,..._e(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...ve(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),V.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function _e(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:le(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function ve(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function ye(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var be=class extends p{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=ie(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Se(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ce(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ce(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof w(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!M(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&we(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||w(this.options.enabled,this.#t)!==w(t.enabled,this.#t)||C(this.options.staleTime,this.#t)!==C(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||w(this.options.enabled,this.#t)!==w(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Ee(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(y)),t}#g(){this.#b();let e=C(this.options.staleTime,this.#t);if(B.isServer()||this.#r.isStale||!x(e))return;let t=S(this.#r.dataUpdatedAt,e)+1;this.#d=g.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(B.isServer()||w(this.options.enabled,this.#t)===!1||!x(this.#p)||this.#p===0)&&(this.#f=g.setInterval(()=>{(this.options.refetchIntervalInBackground||m.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(g.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(g.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Se(e,t),o=i&&we(e,n,t,r);(a||o)&&(l={...l,..._e(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=L(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h)if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=L(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Te(e,t),refetch:this.refetch,promise:this.#o,isEnabled:w(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=ie();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a();break}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!M(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){V.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function xe(e,t){return w(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status===`error`&&w(t.retryOnMount,e)===!1)}function Se(e,t){return xe(e,t)||e.state.data!==void 0&&Ce(e,t,t.refetchOnMount)}function Ce(e,t,n){if(w(t.enabled,e)!==!1&&C(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Te(e,t)}return!1}function we(e,t,n,r){return(e!==t||w(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Te(e,n)}function Te(e,t){return w(t.enabled,e)!==!1&&e.isStaleByTime(C(t.staleTime,e))}function Ee(e,t){return!M(e.getCurrentResult(),t)}var De=class extends fe{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Oe(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=de({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),V.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Oe(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var ke=class extends p{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new De({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Ae(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Ae(e);if(typeof t==`string`){let n=this.#t.get(t);if(n)if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Ae(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}else return!0}runNext(e){let t=Ae(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){V.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>E(t,e))}findAll(e={}){return this.getAll().filter(t=>E(e,t))}notify(e){V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return V.batch(()=>Promise.all(e.map(e=>e.continue().catch(y))))}};function Ae(e){return e.options.scope?.id}var je=class extends p{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),M(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&O(t.mutationKey)!==O(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Oe();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){V.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Me=class extends p{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??D(r,t),a=this.get(i);return a||(a=new ge({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>T(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>T(e,t)):t}notify(e){V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Ne=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Me,this.#t=e.mutationCache||new ke,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=m.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=se.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(C(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=b(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return V.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=V.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(y).catch(y)}invalidateQueries(e,t={}){return V.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=V.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(y)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(y)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(C(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(y).catch(y)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(y).catch(y)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return se.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(O(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{k(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(O(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{k(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=D(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===te&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Pe=s(((e,t)=>{(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=V&&e[V]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;se[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),se[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=ue,this.updater=n||ce}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=ue,this.updater=n||ce}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case L:return`Fragment`;case ee:return`Profiler`;case R:return`StrictMode`;case re:return`Suspense`;case B:return`SuspenseList`;case oe:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case I:return`Portal`;case z:return e.displayName||`Context`;case te:return(e._context.displayName||`Context`)+`.Consumer`;case ne:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ie:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case ae:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===L)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===ae)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=me.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(he.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){_e||(_e=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function _(){var e=d(this.type);return ye[e]||(ye[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:F,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){x(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===ae&&(e._payload.status===`fulfilled`?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e==`object`&&!!e&&e.$$typeof===F}function S(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function C(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),S(``+e.key)):t.toString(36)}function w(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(c,c):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function T(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case F:case I:s=!0;break;case ae:return s=e._init,T(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+C(s,0):i;return fe(a)?(n=``,c!=null&&(n=c.replace(Ce,`$&/`)+`/`),T(a,t,n,``,function(e){return e})):a!=null&&(x(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(Ce,`$&/`)+`/`)+c),i!==``&&s!=null&&x(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,fe(e))for(var l=0;l<e.length;l++)i=e[l],o=c+C(i,l),s+=T(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(Se||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Se=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+C(i,l++),s+=T(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return T(w(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function E(e,t,n){if(e==null)return e;var r=[],i=0;return T(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
3
+
4
+ Your code should look like:
5
+ const MyComponent = lazy(() => import('./MyComponent'))
6
+
7
+ Did you accidentally put curly braces around the import?`,t),`default`in t||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
8
+
9
+ Your code should look like:
10
+ const MyComponent = lazy(() => import('./MyComponent'))`,t),t.default;throw e._result}function O(){var e=me.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
11
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
12
+ 2. You might be breaking the Rules of Hooks
13
+ 3. You might have more than one copy of React in the same app
14
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function k(){me.asyncTransitions--}function A(e){if(Ee===null)try{var n=(`require`+Math.random()).slice(0,7);Ee=(t&&t[n]).call(t,`timers`).setImmediate}catch{Ee=function(e){!1===Te&&(Te=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Ee(e)}function j(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function M(e,t){t!==De-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),De=t}function N(e,t,n){var r=me.actQueue;if(r!==null)if(r.length!==0)try{P(r),A(function(){return N(e,t,n)});return}catch(e){me.thrownErrors.push(e)}else me.actQueue=null;0<me.thrownErrors.length?(r=j(me.thrownErrors),me.thrownErrors.length=0,n(r)):t(e)}function P(e){if(!ke){ke=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{me.didUsePromise=!1;var r=n(!1);if(r!==null){if(me.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),me.thrownErrors.push(n)}finally{ke=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var F=Symbol.for(`react.transitional.element`),I=Symbol.for(`react.portal`),L=Symbol.for(`react.fragment`),R=Symbol.for(`react.strict_mode`),ee=Symbol.for(`react.profiler`),te=Symbol.for(`react.consumer`),z=Symbol.for(`react.context`),ne=Symbol.for(`react.forward_ref`),re=Symbol.for(`react.suspense`),B=Symbol.for(`react.suspense_list`),ie=Symbol.for(`react.memo`),ae=Symbol.for(`react.lazy`),oe=Symbol.for(`react.activity`),V=Symbol.iterator,se={},ce={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},le=Object.assign,ue={};Object.freeze(ue),a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=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,e,t,`setState`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var de={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for(je in de)de.hasOwnProperty(je)&&n(je,de[je]);o.prototype=a.prototype,de=s.prototype=new o,de.constructor=s,le(de,a.prototype),de.isPureReactComponent=!0;var fe=Array.isArray,pe=Symbol.for(`react.client.reference`),me={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},he=Object.prototype.hasOwnProperty,ge=console.createTask?console.createTask:function(){return null};de={react_stack_bottom_frame:function(e){return e()}};var _e,ve,ye={},be=de.react_stack_bottom_frame.bind(de,m)(),xe=ge(f(m)),Se=!1,Ce=/\/+/g,we=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&&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)},Te=!1,Ee=null,De=0,Oe=!1,ke=!1,Ae=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:A;de=Object.freeze({__proto__:null,c:function(e){return O().useMemoCache(e)}});var je={map:E,forEach:function(e,t,n){E(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return E(e,function(){t++}),t},toArray:function(e){return E(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=oe,e.Children=je,e.Component=a,e.Fragment=L,e.Profiler=ee,e.PureComponent=s,e.StrictMode=R,e.Suspense=re,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=me,e.__COMPILER_RUNTIME=de,e.act=function(e){var t=me.actQueue,n=De;De++;var r=me.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){me.thrownErrors.push(e)}if(0<me.thrownErrors.length)throw M(t,n),e=j(me.thrownErrors),me.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return Ae(function(){i||Oe||(Oe=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(M(t,n),n===0){try{P(r),A(function(){return N(i,e,a)})}catch(e){me.thrownErrors.push(e)}if(0<me.thrownErrors.length){var o=j(me.thrownErrors);me.thrownErrors.length=0,a(o)}}else e(i)},function(e){M(t,n),0<me.thrownErrors.length?(e=j(me.thrownErrors),me.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(M(t,n),n===0&&(P(r),r.length!==0&&Ae(function(){i||Oe||(Oe=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),me.actQueue=null),0<me.thrownErrors.length)throw e=j(me.thrownErrors),me.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(me.actQueue=r,A(function(){return N(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=me.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=le({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(he.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!he.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:z,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:te,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in ve||!(`__self`in t)||`key`in t||(ve=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)he.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>me.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):be,c?ge(f(e)):xe)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===ie?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:ne,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=x,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:ae,_payload:e,_init:D},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:ie,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=me.T,n={};n._updatedFibers=new Set,me.T=n;try{var r=e(),i=me.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(me.asyncTransitions++,r.then(k,k),r.then(c,we))}catch(e){we(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),me.T=t}},e.unstable_useCacheRefresh=function(){return O().useCacheRefresh()},e.use=function(e){return O().use(e)},e.useActionState=function(e,t,n){return O().useActionState(e,t,n)},e.useCallback=function(e,t){return O().useCallback(e,t)},e.useContext=function(e){var t=O();return e.$$typeof===te&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return O().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return O().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useEffect(e,t)},e.useEffectEvent=function(e){return O().useEffectEvent(e)},e.useId=function(){return O().useId()},e.useImperativeHandle=function(e,t,n){return O().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),O().useLayoutEffect(e,t)},e.useMemo=function(e,t){return O().useMemo(e,t)},e.useOptimistic=function(e,t){return O().useOptimistic(e,t)},e.useReducer=function(e,t,n){return O().useReducer(e,t,n)},e.useRef=function(e){return O().useRef(e)},e.useState=function(e){return O().useState(e)},e.useSyncExternalStore=function(e,t,n){return O().useSyncExternalStore(e,t,n)},e.useTransition=function(){return O().useTransition()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),Fe=s(((e,t)=>{t.exports=Pe()})),Ie=s((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
15
+ let props = %s;
16
+ <%s {...props} />
17
+ React keys must be passed directly to JSX without using spread:
18
+ let props = %s;
19
+ <%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=Fe(),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsx=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!1,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)},e.jsxs=function(e,t,n){var r=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,!0,r?Error(`react-stack-top-frame`):F,r?M(i(e)):I)}})()})),Le=s(((e,t)=>{t.exports=Ie()})),H=u(Fe(),1),U=Le(),Re=H.createContext(void 0),ze=e=>{let t=H.useContext(Re);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Be=({client:e,children:t})=>(H.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,U.jsx)(Re.Provider,{value:e,children:t})),Ve=H.createContext(!1),He=()=>H.useContext(Ve);Ve.Provider;function Ue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var We=H.createContext(Ue()),Ge=()=>H.useContext(We),Ke=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?ne(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},qe=e=>{H.useEffect(()=>{e.clearReset()},[e])},Je=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||ne(n,[e.error,r])),Ye=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Xe=(e,t)=>e.isLoading&&e.isFetching&&!t,Ze=(e,t)=>e?.suspense&&t.isPending,Qe=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function $e(e,t,n){if(typeof e!=`object`||Array.isArray(e))throw Error(`Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object`);let r=He(),i=Ge(),a=ze(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash);o.queryFn||console.error(`[${o.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`);let c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ye(o),Ke(o,i,s),qe(i);let l=!a.getQueryCache().get(o.queryHash),[u]=H.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(H.useSyncExternalStore(H.useCallback(e=>{let t=f?u.subscribe(V.batchCalls(e)):y;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),H.useEffect(()=>{u.setOptions(o)},[o,u]),Ze(o,d))throw Qe(o,u,i);if(Je({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!B.isServer()&&Xe(d,r)&&(l?Qe(o,u,i):s?.promise)?.catch(y).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function et(e,t){return $e(e,be,t)}function tt(e,t){let n=ze(t),[r]=H.useState(()=>new je(n,e));H.useEffect(()=>{r.setOptions(e)},[r,e]);let i=H.useSyncExternalStore(H.useCallback(e=>r.subscribe(V.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=H.useCallback((e,t)=>{r.mutate(e,t).catch(y)},[r]);if(i.error&&ne(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var nt=s((e=>{(function(){function t(){if(x=!1,T){var t=e.unstable_now();O=t;var n=!0;try{a:{y=!1,b&&(b=!1,C(E),E=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?k():T=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(b=!1,o(e),!y)if(r(p)!==null)y=!0,T||(T=!0,k());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}function c(){return x?!0:!(e.unstable_now()-O<D)}function l(t,n){E=S(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,b=!1,x=!1,S=typeof setTimeout==`function`?setTimeout:null,C=typeof clearTimeout==`function`?clearTimeout:null,w=typeof setImmediate<`u`?setImmediate:null,T=!1,E=-1,D=5,O=-1;if(typeof w==`function`)var k=function(){w(t)};else if(typeof MessageChannel<`u`){var A=new MessageChannel,j=A.port2;A.port1.onmessage=t,k=function(){j.postMessage(null)}}else k=function(){S(t,0)};e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):D=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){x=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(b?(C(E),E=-1):b=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,T||(T=!0,k()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),rt=s(((e,t)=>{t.exports=nt()})),it=s((e=>{(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(i);var a=!1}catch{a=!0}return a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),{$$typeof:u,key:i==null?null:``+i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=d.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
20
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
21
+ 2. You might be breaking the Rules of Hooks
22
+ 3. You might have more than one copy of React in the same app
23
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=Fe(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),d=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=d.T,n=l.p;try{if(d.T=null,l.p=2,e)return e()}finally{d.T=t,l.p=n,l.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),at=s(((e,t)=>{t.exports=it()})),ot=s((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=zf(e)?e.slice():xf({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=zf(e)?e.slice():xf({},e);return r+1===t.length?(o[n[r]]=o[a],zf(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=zf(e)?e.slice():xf({},e);return n+1===t.length?(zf(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function l(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function u(){}function d(){}function f(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function p(e,t,n,r){return new cr(e,t,n,r)}function m(e,t){e.context===Og&&(Gd(e.current,2,t,e,null,null),Zc())}function h(e,t){if(kg!==null){var n=t.staleFamilies;t=t.updatedFamilies,Cl(),sr(e.current,t,n),Zc()}}function g(e){kg=e}function _(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function v(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function y(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 b(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 x(e){if(v(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function S(e){var t=e.alternate;if(!t){if(t=v(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return x(i),e;if(a===r)return x(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function C(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=C(e),t!==null)return t;e=e.sibling}return null}function w(e){return typeof e!=`object`||!e?null:(e=Lf&&e[Lf]||e[`@@iterator`],typeof e==`function`?e:null)}function T(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Rf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case Tf:return`Fragment`;case Df:return`Profiler`;case Ef:return`StrictMode`;case jf:return`Suspense`;case Mf:return`SuspenseList`;case Ff:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case wf:return`Portal`;case kf:return e.displayName||`Context`;case Of:return(e._context.displayName||`Context`)+`.Consumer`;case Af:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Nf:return t=e.displayName||null,t===null?T(e.type)||`Memo`:t;case Pf:t=e._payload,e=e._init;try{return T(e(t))}catch{}}return null}function E(e){return typeof e.tag==`number`?D(e):typeof e.name==`string`?e.name:null}function D(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return T(t);case 8:return t===Ef?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return D(e.return)}return null}function O(e){return{current:e}}function k(e,t){0>Wf?console.error(`Unexpected pop.`):(t!==Uf[Wf]&&console.error(`Unexpected Fiber popped.`),e.current=Hf[Wf],Hf[Wf]=null,Uf[Wf]=null,Wf--)}function A(e,t,n){Wf++,Hf[Wf]=e.current,Uf[Wf]=n,e.current=t}function j(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function M(e,t){A(qf,t,e),A(Kf,e,e),A(Gf,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Mu(t):KS;break;default:if(n=t.tagName,t=t.namespaceURI)t=Mu(t),t=Nu(t,n);else switch(n){case`svg`:t=qS;break;case`math`:t=JS;break;default:t=KS}}n=n.toLowerCase(),n=At(null,n),n={context:t,ancestorInfo:n},k(Gf,e),A(Gf,n,e)}function N(e){k(Gf,e),k(Kf,e),k(qf,e)}function P(){return j(Gf.current)}function F(e){e.memoizedState!==null&&A(Jf,e,e);var t=j(Gf.current),n=e.type,r=Nu(t.context,n);n=At(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(A(Kf,e,e),A(Gf,r,e))}function I(e){Kf.current===e&&(k(Gf,e),k(Kf,e)),Jf.current===e&&(k(Jf,e),SC._currentValue=xC)}function L(){}function R(){if(Yf===0){Xf=console.log,Zf=console.info,Qf=console.warn,$f=console.error,ep=console.group,tp=console.groupCollapsed,np=console.groupEnd;var e={configurable:!0,enumerable:!0,value:L,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Yf++}function ee(){if(Yf--,Yf===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xf({},e,{value:Xf}),info:xf({},e,{value:Zf}),warn:xf({},e,{value:Qf}),error:xf({},e,{value:$f}),group:xf({},e,{value:ep}),groupCollapsed:xf({},e,{value:tp}),groupEnd:xf({},e,{value:np})})}0>Yf&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function te(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
24
+ `)&&(e=e.slice(29)),t=e.indexOf(`
25
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
26
+ `,t)),t!==-1)e=e.slice(0,t);else return``;return e}function z(e){if(rp===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);rp=t&&t[1]||``,ip=-1<e.stack.indexOf(`
27
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
28
+ `+rp+e+ip}function ne(e,t){if(!e||ap)return``;var n=op.get(e);if(n!==void 0)return n;ap=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=Y.H,Y.H=null,R();try{var i={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
29
+ `),u=c.split(`
30
+ `);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
31
+ `+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&op.set(e,d),d}while(1<=a&&0<=o);break}}}finally{ap=!1,Y.H=r,ee(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?z(l):``,typeof e==`function`&&op.set(e,l),l}function re(e,t){switch(e.tag){case 26:case 27:case 5:return z(e.type);case 16:return z(`Lazy`);case 13:return e.child!==t&&t!==null?z(`Suspense Fallback`):z(`Suspense`);case 19:return z(`SuspenseList`);case 0:case 15:return ne(e.type,!1);case 11:return ne(e.type.render,!1);case 1:return ne(e.type,!0);case 31:return z(`Activity`);default:return``}}function B(e){try{var t=``,n=null;do{t+=re(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=te(l),d=u.lastIndexOf(`
32
+ `),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
33
+ `+f;break a}}p=z(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
34
+ Error generating stack: `+e.message+`
35
+ `+e.stack}}function ie(e){return(e=e?e.displayName||e.name:``)?z(e):``}function ae(){if(sp===null)return null;var e=sp._debugOwner;return e==null?null:E(e)}function oe(){if(sp===null)return``;var e=sp;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=z(e.type);break;case 13:t+=z(`Suspense`);break;case 19:t+=z(`SuspenseList`);break;case 31:t+=z(`Activity`);break;case 30:case 0:case 15:case 1:e._debugOwner||t!==``||(t+=ie(e.type));break;case 11:e._debugOwner||t!==``||(t+=ie(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=te(r);i!==``&&(t+=`
36
+ `+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
37
+ `+te(a))}else break;var o=t}catch(e){o=`
38
+ Error generating stack: `+e.message+`
39
+ `+e.stack}return o}function V(e,t,n,r,i,a,o){var s=sp;se(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{se(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function se(e){Y.getCurrentStack=e===null?null:oe,cp=!1,sp=e}function ce(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function le(e){try{return ue(e),!1}catch{return!0}}function ue(e){return``+e}function de(e,t){if(le(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,ce(e)),ue(e)}function fe(e,t){if(le(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,ce(e)),ue(e)}function pe(e){if(le(e))return console.error(`Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.`,ce(e)),ue(e)}function me(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Cp=t.inject(e),wp=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function he(e){if(typeof xp==`function`&&Sp(e),wp&&typeof wp.setStrictMode==`function`)try{wp.setStrictMode(Cp,e)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function ge(e){return e>>>=0,e===0?32:31-(Op(e)/kp|0)|0}function _e(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 console.error(`Should have found matching lanes. This is a bug in React.`),e}}function ve(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=_e(n))):i=_e(o):i=_e(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=_e(n))):i=_e(o)):i=_e(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function ye(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function be(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 console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function xe(){var e=Mp;return Mp<<=1,!(Mp&62914560)&&(Mp=4194304),e}function Se(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ce(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function we(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Dp(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&Te(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function Te(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Dp(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ee(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Dp(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function De(e,t){var n=t&-t;return n=n&42?1:Oe(n),(n&(e.suspendedLanes|t))===0?n:0}function Oe(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 ke(e,t,n){if(Ep)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Dp(n),i=1<<r;e[r].add(t),n&=~i}}function Ae(e,t){if(Ep)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Dp(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function je(e){return e&=-e,Np!==0&&Np<e?Pp!==0&&Pp<e?e&134217727?Fp:Ip:Pp:Np}function Me(){var e=Bf.p;return e===0?(e=window.event,e===void 0?Fp:nf(e.type)):e}function Ne(e,t){var n=Bf.p;try{return Bf.p=e,t()}finally{Bf.p=n}}function Pe(e){delete e[Rp],delete e[zp],delete e[Vp],delete e[Hp],delete e[Up]}function Ie(e){var t=e[Rp];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Bp]||n[Rp]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=fd(e);e!==null;){if(n=e[Rp])return n;e=fd(e)}return t}e=n,n=e.parentNode}return null}function Le(e){if(e=e[Rp]||e[Bp]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function H(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function U(e){var t=e[Wp];return t||=e[Wp]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Re(e){e[Gp]=!0}function ze(e,t){Be(e,t),Be(e+`Capture`,t)}function Be(e,t){qp[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),qp[e]=t;var n=e.toLowerCase();for(Jp[n]=e,e===`onDoubleClick`&&(Jp.ondblclick=e),e=0;e<t.length;e++)Kp.add(t[e])}function Ve(e,t){Yp[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function He(e){return lp.call(Qp,e)?!0:lp.call(Zp,e)?!1:Xp.test(e)?Qp[e]=!0:(Zp[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function Ue(e,t,n){if(He(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===``&&!0===n?!0:(de(n,t),e===``+n?n:e)}}function We(e,t,n){if(He(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}de(n,t),e.setAttribute(t,``+n)}}function Ge(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}de(n,t),e.setAttribute(t,``+n)}}function Ke(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}de(r,n),e.setAttributeNS(t,n,``+r)}}function qe(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return pe(e),e;default:return``}}function Je(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Ye(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){pe(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){pe(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Xe(e){if(!e._valueTracker){var t=Je(e)?`checked`:`value`;e._valueTracker=Ye(e,t,``+e[t])}}function Ze(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Je(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function Qe(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function $e(e){return e.replace($p,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function et(e,t){t.checked===void 0||t.defaultChecked===void 0||tm||(console.error(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,ae()||`A component`,t.type),tm=!0),t.value===void 0||t.defaultValue===void 0||em||(console.error(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,ae()||`A component`,t.type),em=!0)}function tt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(de(o,`type`),e.type=o):e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+qe(t)):e.value!==``+qe(t)&&(e.value=``+qe(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):it(e,o,qe(n)):it(e,o,qe(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?(de(s,`name`),e.name=``+qe(s)):e.removeAttribute(`name`)}function nt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(de(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Xe(e);return}n=n==null?``:``+qe(n),t=t==null?n:``+qe(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(de(o,`name`),e.name=o),Xe(e)}function it(e,t,n){t===`number`&&Qe(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function ot(e,t){t.value??(typeof t.children==`object`&&t.children!==null?yf.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||rm||(rm=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||im||(im=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||nm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),nm=!0)}function st(){var e=ae();return e?`
40
+
41
+ Check the render method of \``+e+"`.":``}function ct(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+qe(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function lt(e,t){for(e=0;e<om.length;e++){var n=om[e];if(t[n]!=null){var r=zf(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,st()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,st())}}t.value===void 0||t.defaultValue===void 0||am||(console.error(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components`),am=!0)}function ut(e,t){t.value===void 0||t.defaultValue===void 0||sm||(console.error(`%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components`,ae()||`A component`),sm=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function dt(e,t,n){if(t!=null&&(t=``+qe(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+qe(n)}function ft(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(zf(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=qe(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Xe(e)}function pt(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?pt(e.children[0],t):e}function mt(e){return` `+` `.repeat(e)}function ht(e){return`+ `+` `.repeat(e)}function gt(e){return`- `+` `.repeat(e)}function _t(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function vt(e,t){return cm.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function yt(e,t,n){var r=120-2*n;if(t===null)return ht(n)+vt(e,r)+`
42
+ `;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),ht(n)+vt(e,r)+`
43
+ `+gt(n)+vt(t,r)+`
44
+ `}return mt(n)+vt(e,r)+`
45
+ `}function bt(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function xt(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(zf(e))return`[...]`;if(e.$$typeof===Cf)return(t=T(e.type))?`<`+t+`>`:`<...>`;var n=bt(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=xt(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function St(e,t){return typeof e!=`string`||cm.test(e)?`{`+xt(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function Ct(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=St(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
46
+ `:0<r?n+`<`+e+` `+i.join(` `)+`>
47
+ `:n+`<`+e+`
48
+ `+n+` `+i.join(`
49
+ `+n+` `)+`
50
+ `+n+`>
51
+ `}function wt(e,t,n){var r=``,i=xf({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=xt(e[a],o);t.hasOwnProperty(a)?(o=xt(t[a],o),r+=ht(n)+a+`: `+s+`
52
+ `,r+=gt(n)+a+`: `+o+`
53
+ `):r+=ht(n)+a+`: `+s+`
54
+ `}for(var c in i)i.hasOwnProperty(c)&&(e=xt(i[c],120-2*n-c.length-2),r+=gt(n)+c+`: `+e+`
55
+ `);return r}function Tt(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=Ct(e,t,mt(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=St(l,s);s=St(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&bt(l)===`Object`&&bt(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=mt(r+1)+o+`={{
56
+ `+wt(l,c,r+2)+mt(r+1)+`}}
57
+ `:(i+=ht(r+1)+o+`=`+u+`
58
+ `,i+=gt(r+1)+o+`=`+s+`
59
+ `)}else i+=mt(r+1)+o+`=`+St(t[o],s)+`
60
+ `}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=gt(r+1)+e+`=`+St(n[e],t)+`
61
+ `}}),i=i===``?mt(r)+`<`+e+`>
62
+ `:mt(r)+`<`+e+`
63
+ `+i+mt(r)+`>
64
+ `}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=yt(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+yt(``+t,null,r+1):i+yt(``+t,void 0,r+1)),i}function Et(e,t){var n=_t(e);if(n===null){for(n=``,e=e.child;e;)n+=Et(e,t),e=e.sibling;return n}return mt(t)+`<`+n+`>
65
+ `}function Dt(e,t){var n=pt(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return mt(t)+`...
66
+ `+Dt(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=mt(t)+`<`+a+`>
67
+ `,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=yt(i,e.serverProps,t),t++;else if(a=_t(e.fiber),a!==null)if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=St(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=mt(r)+`<`+a+s+`>
68
+ `,t++}else e.serverProps===null?(r=Ct(a,i,ht(t)),t++):typeof e.serverProps==`string`?console.error(`Should not have matched a non HostText fiber to a Text node. This is a bug in React.`):(r=Tt(a,i,e.serverProps,t),t++);var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=Dt(o,t),a++):l+=Et(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=mt(t)+`...
69
+ `),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(gt(t)+vt(a,120-2*t)+`
70
+ `):l+Ct(a.type,a.props,gt(t));return n+r+l}function Ot(e){try{return`
71
+
72
+ `+Dt(e,0)}catch{return``}}function kt(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:Ot(i).replaceAll(/^[+-]/gm,`>`)}function At(e,t){var n=xf({},e||pm),r={tag:t};return um.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),dm.indexOf(t)!==-1&&(n.pTagInButtonScope=null),lm.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function jt(e,t,n){switch(t){case`select`:return e===`hr`||e===`option`||e===`optgroup`||e===`script`||e===`template`||e===`#text`;case`optgroup`:return e===`option`||e===`#text`;case`option`:return e===`#text`;case`tr`:return e===`th`||e===`td`||e===`style`||e===`script`||e===`template`;case`tbody`:case`thead`:case`tfoot`:return e===`tr`||e===`style`||e===`script`||e===`template`;case`colgroup`:return e===`col`||e===`template`;case`table`:return e===`caption`||e===`colgroup`||e===`tbody`||e===`tfoot`||e===`thead`||e===`style`||e===`script`||e===`template`;case`head`:return e===`base`||e===`basefont`||e===`bgsound`||e===`link`||e===`meta`||e===`title`||e===`noscript`||e===`noframes`||e===`style`||e===`script`||e===`template`;case`html`:if(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)return e===`html`}switch(e){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`;case`rp`:case`rt`:return fm.indexOf(t)===-1;case`caption`:case`col`:case`colgroup`:case`frameset`:case`frame`:case`tbody`:case`td`:case`tfoot`:case`th`:case`thead`:case`tr`:return t==null;case`head`:return n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function Mt(e,t){switch(e){case`address`:case`article`:case`aside`:case`blockquote`:case`center`:case`details`:case`dialog`:case`dir`:case`div`:case`dl`:case`fieldset`:case`figcaption`:case`figure`:case`footer`:case`header`:case`hgroup`:case`main`:case`menu`:case`nav`:case`ol`:case`p`:case`section`:case`summary`:case`ul`:case`pre`:case`listing`:case`table`:case`hr`:case`xmp`:case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t.pTagInButtonScope;case`form`:return t.formTag||t.pTagInButtonScope;case`li`:return t.listItemTagAutoclosing;case`dd`:case`dt`:return t.dlItemTagAutoclosing;case`button`:return t.buttonTagInScope;case`a`:return t.aTagInScope;case`nobr`:return t.nobrTagInScope}return null}function Nt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Pt(e,t){t||=pm;var n=t.current;if(t=(n=jt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:Mt(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,mm[t])return!1;mm[t]=!0;var i=(t=sp)?Nt(t.return,r):null,a=t!==null&&i!==null?kt(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.`),console.error(`In HTML, %s cannot be a child of <%s>.%s
73
+ This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
74
+ This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||V(i,function(){console.error(`<%s> cannot contain a nested %s.
75
+ See this log for the ancestor stack trace.`,r,o)})),!1}function Ft(e,t,n){if(n||jt(`#text`,t,!1))return!0;if(n=`#text|`+t,mm[n])return!1;mm[n]=!0;var r=(n=sp)?Nt(n,t):null;return n=n!==null&&r!==null?kt(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
76
+ This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
77
+ This will cause a hydration error.%s`,t,n),!1}function It(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}function Lt(e){return e.replace(bm,function(e,t){return t.toUpperCase()})}function Rt(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?Sm.hasOwnProperty(t)&&Sm[t]||(Sm[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,Lt(t.replace(ym,`ms-`)))):vm.test(t)?Sm.hasOwnProperty(t)&&Sm[t]||(Sm[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!xm.test(n)||Cm.hasOwnProperty(n)&&Cm[n]||(Cm[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(xm,``))),typeof n==`number`&&(isNaN(n)?wm||(wm=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Tm||(Tm=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Em.has(t)?t===`float`?e.cssFloat=n:(fe(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function zt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=hm[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=hm[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=hm[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&Rt(e,f,l)}else for(r in t)t.hasOwnProperty(r)&&Rt(e,r,t[r])}function Bt(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}}function Vt(e){return km.get(e)||e}function Ht(e,t){if(lp.call(Mm,t)&&Mm[t])return!0;if(Pm.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=jm.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Mm[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Mm[t]=!0}if(Nm.test(t)){if(e=t.toLowerCase(),e=jm.hasOwnProperty(e)?e:null,e==null)return Mm[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Mm[t]=!0)}return!0}function Ut(e,t){var n=[],r;for(r in t)Ht(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function Wt(e,t,n,r){if(lp.call(Im,t)&&Im[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return console.error(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),Im[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Im[t]=!0;if(Lm.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Im[t]=!0}else if(Lm.test(t))return Rm.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Im[t]=!0;if(zm.test(t)||Bm.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Im[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Im[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Im[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Im[t]=!0;if(Am.hasOwnProperty(i)){if(i=Am[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Im[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Im[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`: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`:case`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
78
+
79
+ If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
80
+
81
+ If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Im[t]=!0)}case`function`:case`symbol`:return Im[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`: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`:case`inert`:break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Im[t]=!0}}return!0}function Gt(e,t,n){var r=[],i;for(i in t)Wt(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.length===1?console.error(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e):1<r.length&&console.error(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e)}function Kt(e){return Vm.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function qt(){}function Jt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function Yt(e){var t=Le(e);if(t&&(e=t.stateNode)){var n=e[zp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(tt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(de(t,`name`),n=n.querySelectorAll(`input[name="`+$e(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[zp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");tt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Ze(r)}break a;case`textarea`:dt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&ct(e,!!n.multiple,t,!1)}}}function Xt(e,t,n){if(Gm)return e(t,n);Gm=!0;try{return e(t)}finally{if(Gm=!1,(Um!==null||Wm!==null)&&(Zc(),Um&&(t=Um,e=Wm,Wm=Um=null,Yt(t),e)))for(t=0;t<e.length;t++)Yt(e[t])}}function Zt(e,t){var n=e.stateNode;if(n===null)return null;var r=n[zp]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=!(e===`button`||e===`input`||e===`select`||e===`textarea`)),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function Qt(){if(Zm)return Zm;var e,t=Xm,n=t.length,r,i=`value`in Ym?Ym.value:Ym.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Zm=i.slice(e,1<r?1-r:void 0)}function $t(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 en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?en:tn,this.isPropagationStopped=tn,this}return xf(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}function rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hh[e])?!!t[e]:!1}function an(){return rn}function on(e,t){switch(e){case`keyup`:return Sh.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==Ch;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function sn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function cn(e,t){switch(e){case`compositionend`:return sn(t);case`keypress`:return t.which===Oh?(Ah=!0,kh):null;case`textInput`:return e=t.data,e===kh&&Ah?null:e;default:return null}}function ln(e,t){if(jh)return e===`compositionend`||!wh&&on(e,t)?(e=Qt(),Zm=Xm=Ym=null,jh=!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 Dh&&t.locale!==`ko`?null:t.data;default:return null}}function un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Mh[e.type]:t===`textarea`}function dn(e){if(!Km)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function fn(e,t,n,r){Um?Wm?Wm.push(r):Wm=[r]:Um=r,t=q(t,`onChange`),0<t.length&&(n=new $m(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function pn(e){$l(e,0)}function mn(e){if(Ze(H(e)))return e}function hn(e,t){if(e===`change`)return t}function gn(){Nh&&(Nh.detachEvent(`onpropertychange`,_n),Ph=Nh=null)}function _n(e){if(e.propertyName===`value`&&mn(Ph)){var t=[];fn(t,Ph,e,Jt(e)),Xt(pn,t)}}function vn(e,t,n){e===`focusin`?(gn(),Nh=t,Ph=n,Nh.attachEvent(`onpropertychange`,_n)):e===`focusout`&&gn()}function yn(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return mn(Ph)}function bn(e,t){if(e===`click`)return mn(t)}function xn(e,t){if(e===`input`||e===`change`)return mn(t)}function Sn(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function Cn(e,t){if(Ih(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!lp.call(t,i)||!Ih(e[i],t[i]))return!1}return!0}function wn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tn(e,t){var n=wn(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wn(n)}}function En(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?En(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dn(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qe(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qe(e.document)}return t}function On(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`)}function kn(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vh||Rh==null||Rh!==Qe(r)||(r=Rh,`selectionStart`in r&&On(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Bh&&Cn(Bh,r)||(Bh=r,r=q(zh,`onSelect`),0<r.length&&(t=new $m(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Rh)))}function An(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function jn(e){if(Uh[e])return Uh[e];if(!Hh[e])return e;var t=Hh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Wh)return Uh[e]=t[n];return e}function Mn(e,t){Qh.set(e,t),ze(t,[e])}function Nn(e){for(var t=og,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r)if(zf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==og&&t!==lg)return sg;t=lg}else return sg;else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==og&&t!==cg)return sg;t=cg}}return t}function Pn(e,t,n,r){for(var i in e)lp.call(e,i)&&i[0]!==`_`&&Fn(i,e[i],t,n,r)}function Fn(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}else{if(t.$$typeof===Cf){var a=T(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&Fn(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!zf(t.children)||0<t.children.length)&&(e=!0):lp.call(t,l)&&l[0]!==`_`&&Fn(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=Nn(t),l===cg||l===og){t=JSON.stringify(t);break}else if(l===lg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],Fn(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,Fn(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,Fn(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&Pn(t,n,r+1,i);return}case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===ag?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function In(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([ug+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([ug+i,`…`],[dg+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof)if(s.$$typeof===Cf){if(o.type===s.type&&o.key===s.key){o=T(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([ug+i,o],[dg+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[fg+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,In(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([fg+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}Fn(a,o,n,r,ug),Fn(a,s,n,r,dg)}i=!1}}else n.push([dg+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function Ln(e){gg=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function Rn(e,t,n,r){pg&&(yg.start=t,yg.end=n,vg.color=`warning`,vg.tooltipText=r,vg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,yg)):performance.measure(r,yg))}function zn(e,t,n){Rn(e,t,n,`Reconnect`)}function Bn(e,t,n,r,i){var a=D(e);if(a!==null&&pg){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[bg],l=In(o.memoizedProps,l,c,0),1<c.length&&(l&&!_g&&(o.lanes&i)===0&&100<e.actualDuration?(_g=!0,c[0]=Sg,vg.color=`warning`,vg.tooltipText=xg):(vg.color=r,vg.tooltipText=a),vg.properties=c,yg.start=t,yg.end=n,s==null?performance.measure(`​`+a,yg):s.run(performance.measure.bind(performance,`​`+a,yg)))):s==null?console.timeStamp(a,t,n,mg,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,mg,void 0,r))}}function Vn(e,t,n,r){if(pg){var i=D(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&Fn(`key`,e.key,o,0,``),e.memoizedProps!==null&&Pn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:mg,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,`​`+i,e)):performance.measure(`​`+i,e)}}}function Hn(e,t,n,r,i){if(i!==null){if(pg){var a=D(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&Fn(`key`,e.key,r,0,``),e.memoizedProps!==null&&Pn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:mg,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,`​`+a,t)):performance.measure(`​`+a,t)}}}else a=D(e),a!==null&&pg&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,mg,void 0,i)):console.timeStamp(a,t,n,mg,void 0,i))}function Un(e,t,n,r){if(pg&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,gg,hg,i)):console.timeStamp(n,e,t,gg,hg,i)}}function Wn(e,t,n,r){!pg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,gg,hg,n)):console.timeStamp(`Prewarm`,e,t,gg,hg,n))}function Gn(e,t,n,r){!pg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,gg,hg,n)):console.timeStamp(`Suspended`,e,t,gg,hg,n))}function Kn(e,t,n,r,i,a){if(pg&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:gg,trackGroup:hg,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function qn(e,t,n,r){!pg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,gg,hg,`error`)):console.timeStamp(`Errored`,e,t,gg,hg,`error`))}function Jn(e,t,n,r){!pg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,gg,hg,`secondary-light`)):console.timeStamp(n,e,t,gg,hg,`secondary-light`))}function Yn(e,t,n,r,i){if(pg&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:gg,trackGroup:hg,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function Xn(e,t,n){!pg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,gg,hg,`secondary-dark`)):console.timeStamp(`Animating`,e,t,gg,hg,`secondary-dark`))}function Zn(){for(var e=Eg,t=Dg=Eg=0;t<e;){var n=Tg[t];Tg[t++]=null;var r=Tg[t];Tg[t++]=null;var i=Tg[t];Tg[t++]=null;var a=Tg[t];if(Tg[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&tr(n,i,a)}}function Qn(e,t,n,r){Tg[Eg++]=e,Tg[Eg++]=t,Tg[Eg++]=n,Tg[Eg++]=r,Dg|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function $n(e,t,n,r){return Qn(e,t,n,r),nr(e)}function er(e,t){return Qn(e,null,null,t),nr(e)}function tr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&Cg||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Dp(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function nr(e){if(Yx>Jx)throw eS=Yx=0,tS=Xx=null,Error(`Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.`);eS>$x&&(eS=0,tS=null,console.error(`Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.`)),e.alternate===null&&e.flags&4098&&Fl(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Fl(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function rr(e){if(kg===null)return e;var t=kg(e);return t===void 0?e:t.current}function ir(e){if(kg===null)return e;var t=kg(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=rr(e.render),e.render!==t)?(t={$$typeof:Af,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function ar(e,t){if(kg===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===Pf)&&(r=!0);break;case 11:(i===Af||i===Pf)&&(r=!0);break;case 14:case 15:(i===Nf||i===Pf)&&(r=!0);break;default:return!1}return!!(r&&(e=kg(n),e!==void 0&&e===kg(t)))}function or(e){kg!==null&&typeof WeakSet==`function`&&(Ag===null&&(Ag=new WeakSet),Ag.add(e))}function sr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if(kg===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=kg(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Ag!==null&&(Ag.has(e)||i!==null&&Ag.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=er(e,2),i!==null&&Kc(i,e,2)),a===null||r||sr(a,t,n),o===null)break;e=o}while(1)}function cr(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Lg||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function lr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ur(e,t){var n=e.alternate;switch(n===null?(n=p(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=rr(e.type);break;case 1:n.type=rr(e.type);break;case 11:n.type=ir(e.type)}return n}function dr(e,t){e.flags&=65011714;var n=e.alternate;return n===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.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function fr(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)lr(e)&&(o=1),s=rr(s);else if(typeof e==`string`)o=P(),o=Fd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Ff:return t=p(31,n,t,i),t.elementType=Ff,t.lanes=a,t;case Tf:return mr(n.children,i,a,t);case Ef:o=8,i|=Pg,i|=Fg;break;case Df:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=p(12,e,t,r|Ng),t.elementType=Df,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case jf:return t=p(13,n,t,i),t.elementType=jf,t.lanes=a,t;case Mf:return t=p(19,n,t,i),t.elementType=Mf,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case kf:o=10;break a;case Of:o=9;break a;case Af:o=11,s=ir(s);break a;case Nf:o=14;break a;case Pf:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?n=`null`:zf(e)?n=`array`:e!==void 0&&e.$$typeof===Cf?(n=`<`+(T(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?E(r):null)&&(s+=`
82
+
83
+ Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=p(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function pr(e,t,n){return t=fr(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function mr(e,t,n,r){return e=p(7,e,r,t),e.lanes=n,e}function hr(e,t,n){return e=p(6,e,null,t),e.lanes=n,e}function gr(e){var t=p(18,null,null,jg);return t.stateNode=e,t}function _r(e,t,n){return t=p(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vr(e,t){if(typeof e==`object`&&e){var n=Rg.get(e);return n===void 0?(t={value:e,source:t,stack:B(t)},Rg.set(e,t),t):n}return{value:e,source:t,stack:B(t)}}function yr(e,t){Tr(),zg[Bg++]=Hg,zg[Bg++]=Vg,Vg=e,Hg=t}function br(e,t,n){Tr(),Ug[Wg++]=Kg,Ug[Wg++]=qg,Ug[Wg++]=Gg,Gg=e;var r=Kg;e=qg;var i=32-Dp(r)-1;r&=~(1<<i),n+=1;var a=32-Dp(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Kg=1<<32-Dp(t)+i|n<<i|r,qg=a+e}else Kg=1<<a|n<<i|r,qg=e}function xr(e){Tr(),e.return!==null&&(yr(e,1),br(e,1,0))}function Sr(e){for(;e===Vg;)Vg=zg[--Bg],zg[Bg]=null,Hg=zg[--Bg],zg[Bg]=null;for(;e===Gg;)Gg=Ug[--Wg],Ug[Wg]=null,qg=Ug[--Wg],Ug[Wg]=null,Kg=Ug[--Wg],Ug[Wg]=null}function Cr(){return Tr(),Gg===null?null:{id:Kg,overflow:qg}}function wr(e,t){Tr(),Ug[Wg++]=Kg,Ug[Wg++]=qg,Ug[Wg++]=Gg,Kg=t.id,qg=t.overflow,Gg=e}function Tr(){Xg||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Er(e,t){if(e.return===null){if(Qg===null)Qg={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Qg.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);Qg.distanceFromLeaf>t&&(Qg.distanceFromLeaf=t)}return Qg}var n=Er(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function Dr(){Xg&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function Or(e,t){Zg||(e=Er(e,0),e.serverProps=null,t!==null&&(t=ld(t),e.serverTail.push(t)))}function kr(e){var t=1<arguments.length&&arguments[1]!==void 0&&arguments[1],n=``,r=Qg;throw r!==null&&(Qg=null,n=Ot(r)),Fr(vr(Error(`Hydration failed because the server rendered `+(t?`text`:`HTML`)+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
84
+
85
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
86
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
87
+ - Date formatting in a user's locale which doesn't match the server.
88
+ - External changing data without sending a snapshot of it along with the HTML.
89
+ - Invalid HTML tag nesting.
90
+
91
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
+
93
+ https://react.dev/link/hydration-mismatch`+n),e)),t_}function Ar(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Rp]=e,t[zp]=r,cu(n,r),n){case`dialog`:eu(`cancel`,t),eu(`close`,t);break;case`iframe`:case`object`:case`embed`:eu(`load`,t);break;case`video`:case`audio`:for(n=0;n<hS.length;n++)eu(hS[n],t);break;case`source`:eu(`error`,t);break;case`img`:case`image`:case`link`:eu(`error`,t),eu(`load`,t);break;case`details`:eu(`toggle`,t);break;case`input`:Ve(`input`,r),eu(`invalid`,t),et(t,r),nt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:ot(t,r);break;case`select`:Ve(`select`,r),eu(`invalid`,t),lt(t,r);break;case`textarea`:Ve(`textarea`,r),eu(`invalid`,t),ut(t,r),ft(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||mu(t.textContent,n)?(r.popover!=null&&(eu(`beforetoggle`,t),eu(`toggle`,t)),r.onScroll!=null&&eu(`scroll`,t),r.onScrollEnd!=null&&eu(`scrollend`,t),r.onClick!=null&&(t.onclick=qt),t=!0):t=!1,t||kr(e,!0)}function jr(e){for(Jg=e.return;Jg;)switch(Jg.tag){case 5:case 31:case 13:e_=!1;return;case 27:case 3:e_=!0;return;default:Jg=Jg.return}}function Mr(e){if(e!==Jg)return!1;if(!Xg)return jr(e),Xg=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Pu(e.type,e.memoizedProps)),n=!n),n&&Yg){for(n=Yg;n;){var r=Er(e,0),i=ld(n);r.serverTail.push(i),n=i.type===`Suspense`?dd(n):J(n.nextSibling)}kr(e)}if(jr(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Yg=dd(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);Yg=dd(e)}else t===27?(t=Yg,Gu(e.type)?(e=aC,aC=null,Yg=e):Yg=t):Yg=Jg?J(e.stateNode.nextSibling):null;return!0}function Nr(){Yg=Jg=null,Zg=Xg=!1}function Pr(){var e=$g;return e!==null&&(_x===null?_x=e:_x.push.apply(_x,e),$g=null),e}function Fr(e){$g===null?$g=[e]:$g.push(e)}function Ir(){var e=Qg;if(e!==null){Qg=null;for(var t=Ot(e);0<e.children.length;)e=e.children[0];V(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
94
+
95
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
96
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
97
+ - Date formatting in a user's locale which doesn't match the server.
98
+ - External changing data without sending a snapshot of it along with the HTML.
99
+ - Invalid HTML tag nesting.
100
+
101
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
102
+
103
+ %s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Lr(){o_=a_=null,s_=!1}function Rr(e,t,n){A(n_,t._currentValue,e),t._currentValue=n,A(r_,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==i_&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=i_}function zr(e,t){e._currentValue=n_.current;var n=r_.current;k(r_,t),e._currentRenderer=n,k(n_,t)}function Br(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function Vr(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),Br(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Br(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function Hr(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;Ih(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===Jf.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[SC]:e.push(SC))}i=i.return}e!==null&&Vr(t,e,n,r),t.flags|=262144}function Ur(e){for(e=e.firstContext;e!==null;){if(!Ih(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wr(e){a_=e,o_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Gr(e){return s_&&console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),qr(a_,e)}function Kr(e,t){return a_===null&&Wr(e),qr(e,t)}function qr(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},o_===null){if(e===null)throw Error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`);o_=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else o_=o_.next=t;return n}function Jr(){return{controller:new c_,data:new Map,refCount:0}}function Yr(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function Xr(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&l_(u_,function(){e.controller.abort()})}function Zr(e,t,n){e&127?0>O_&&(O_=f_(),k_=p_(t),j_=t,n!=null&&(M_=D(n)),(Wb&(Fb|Ib))!==Pb&&(E_=!0,A_=m_),e=Lu(),t=Iu(),e!==F_||t!==P_?F_=-1.1:t!==null&&(A_=m_),N_=e,P_=t):e&4194048&&0>z_&&(z_=f_(),V_=p_(t),H_=t,n!=null&&(U_=D(n)),0>R_)&&(e=Lu(),t=Iu(),(e!==K_||t!==G_)&&(K_=-1.1),W_=e,G_=t)}function Qr(e){if(0>O_){O_=f_(),k_=e._debugTask==null?null:e._debugTask,(Wb&(Fb|Ib))!==Pb&&(A_=m_);var t=Lu(),n=Iu();t!==F_||n!==P_?F_=-1.1:n!==null&&(A_=m_),N_=t,P_=n}0>z_&&(z_=f_(),V_=e._debugTask==null?null:e._debugTask,0>R_)&&(e=Lu(),t=Iu(),(e!==K_||t!==G_)&&(K_=-1.1),W_=e,G_=t)}function $r(){var e=x_;return x_=0,e}function ei(e){var t=x_;return x_=e,t}function ti(e){var t=x_;return x_+=e,t}function ni(){w_=C_=-1.1}function ri(){var e=C_;return C_=-1.1,e}function ii(e){0<=e&&(C_=e)}function ai(){var e=S_;return S_=-0,e}function oi(e){0<=e&&(S_=e)}function si(){var e=T_;return T_=null,e}function ci(){var e=E_;return E_=!1,e}function li(e){b_=f_(),0>e.actualStartTime&&(e.actualStartTime=b_)}function ui(e){if(0<=b_){var t=f_()-b_;e.actualDuration+=t,e.selfBaseDuration=t,b_=-1}}function di(e){if(0<=b_){var t=f_()-b_;e.actualDuration+=t,b_=-1}}function fi(){if(0<=b_){var e=f_(),t=e-b_;b_=-1,x_+=t,S_+=t,w_=e}}function pi(e){T_===null&&(T_=[]),T_.push(e),y_===null&&(y_=[]),y_.push(e)}function mi(){b_=f_(),0>C_&&(C_=b_)}function hi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function gi(e,t){if(nv===null){var n=nv=[];rv=0,iv=Jl(),av={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return rv++,t.then(_i,_i),t}function _i(){if(--rv===0&&(-1<z_||(R_=-1.1),nv!==null)){av!==null&&(av.status=`fulfilled`);var e=nv;nv=null,iv=0,av=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function vi(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}function yi(){var e=sv.current;return e===null?Gb.pooledCache:e}function bi(e,t){t===null?A(sv,sv.current,e):A(sv,t.pool,e)}function xi(){var e=yi();return e===null?null:{parent:d_._currentValue,pool:e}}function Si(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Ci(e){return e=e.status,e===`fulfilled`||e===`rejected`}function wi(e,t,n){Y.actQueue!==null&&(Y.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(qt,qt),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Di(e),e;default:if(typeof t.status==`string`)t.then(qt,qt);else{if(e=Gb,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Di(e),e}throw Bv=t,Vv=!0,Iv}}function Ti(e){try{return Fv(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Bv=e,Vv=!0,Iv):e}}function Ei(){if(Bv===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Bv;return Bv=null,Vv=!1,e}function Di(e){if(e===Iv||e===Rv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Oi(e){var t=Wv;return e!=null&&(Wv=t===null?e:t.concat(e)),t}function ki(){var e=Wv;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function Ai(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=pr(e,n.mode,0),t._debugInfo=Wv,t.return=n),V(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function ji(e){var t=Uv;return Uv+=1,Hv===null&&(Hv=Si()),wi(Hv,e,t)}function Mi(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ni(e,t){throw t.$$typeof===Sf?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
104
+ - Multiple copies of the "react" package is used.
105
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
106
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function Pi(e,t){var n=ki();n===null?Ni(e,t):n.run(Ni.bind(null,e,t))}function Fi(e,t){var n=D(e)||`Component`;Jv[n]||(Jv[n]=!0,t=t.displayName||t.name||`Component`,e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
107
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
108
+ <%s>{%s}</%s>`,t,t,n,t,n))}function Ii(e,t){var n=ki();n===null?Fi(e,t):n.run(Fi.bind(null,e,t))}function Li(e,t){var n=D(e)||`Component`;Yv[n]||(Yv[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
109
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
110
+ <%s>%s</%s>`,n,t,n))}function Ri(e,t){var n=ki();n===null?Li(e,t):n.run(Li.bind(null,e,t))}function zi(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function i(e,t){return e=ur(e,t),e.index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=hr(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Wv,t):(t=i(t,n),t.return=e,t._debugInfo=Wv,t)}function c(e,t,n,r){var a=n.type;return a===Tf?(t=u(e,t,n.props.children,r,n.key),Ai(n,t,e),t):t!==null&&(t.elementType===a||ar(t,n)||typeof a==`object`&&a&&a.$$typeof===Pf&&Ti(a)===t.type)?(t=i(t,n.props),Mi(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=Wv,t):(t=pr(n,e.mode,r),Mi(t,n),t.return=e,t._debugInfo=Wv,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=_r(n,e.mode,r),t.return=e,t._debugInfo=Wv,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=Wv,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=mr(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Wv,t):(t=i(t,n),t.return=e,t._debugInfo=Wv,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=hr(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=Wv,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Cf:return n=pr(t,e.mode,n),Mi(n,t),n.return=e,e=Oi(t._debugInfo),n._debugInfo=Wv,Wv=e,n;case wf:return t=_r(t,e.mode,n),t.return=e,t._debugInfo=Wv,t;case Pf:var r=Oi(t._debugInfo);return t=Ti(t),e=f(e,t,n),Wv=r,e}if(zf(t)||w(t))return n=mr(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Oi(t._debugInfo),n._debugInfo=Wv,Wv=e,n;if(typeof t.then==`function`)return r=Oi(t._debugInfo),e=f(e,ji(t),n),Wv=r,e;if(t.$$typeof===kf)return f(e,Kr(e,t),n);Pi(e,t)}return typeof t==`function`&&Ii(e,t),typeof t==`symbol`&&Ri(e,t),null}function m(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Cf:return n.key===i?(i=Oi(n._debugInfo),e=c(e,t,n,r),Wv=i,e):null;case wf:return n.key===i?l(e,t,n,r):null;case Pf:return i=Oi(n._debugInfo),n=Ti(n),e=m(e,t,n,r),Wv=i,e}if(zf(n)||w(n))return i===null?(i=Oi(n._debugInfo),e=u(e,t,n,r,null),Wv=i,e):null;if(typeof n.then==`function`)return i=Oi(n._debugInfo),e=m(e,t,ji(n),r),Wv=i,e;if(n.$$typeof===kf)return m(e,t,Kr(e,n),r);Pi(e,n)}return typeof n==`function`&&Ii(e,n),typeof n==`symbol`&&Ri(e,n),null}function h(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Cf:return n=e.get(r.key===null?n:r.key)||null,e=Oi(r._debugInfo),t=c(t,n,r,i),Wv=e,t;case wf:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case Pf:var a=Oi(r._debugInfo);return r=Ti(r),t=h(e,t,n,r,i),Wv=a,t}if(zf(r)||w(r))return n=e.get(n)||null,e=Oi(r._debugInfo),t=u(t,n,r,i,null),Wv=e,t;if(typeof r.then==`function`)return a=Oi(r._debugInfo),t=h(e,t,n,ji(r),i),Wv=a,t;if(r.$$typeof===kf)return h(e,t,n,Kr(t,r),i);Pi(t,r)}return typeof r==`function`&&Ii(t,r),typeof r==`symbol`&&Ri(t,r),null}function g(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Cf:case wf:d(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}V(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",i)});break;case Pf:n=Ti(n),g(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,d=null,p=o,_=o=0,v=null;p!==null&&_<s.length;_++){p.index>_?(v=p,p=null):v=p.sibling;var y=m(i,p,s[_],c);if(y===null){p===null&&(p=v);break}l=g(i,y,s[_],l),e&&p&&y.alternate===null&&t(i,p),o=a(y,o,_),d===null?u=y:d.sibling=y,d=y,p=v}if(_===s.length)return n(i,p),Xg&&yr(i,_),u;if(p===null){for(;_<s.length;_++)p=f(i,s[_],c),p!==null&&(l=g(i,p,s[_],l),o=a(p,o,_),d===null?u=p:d.sibling=p,d=p);return Xg&&yr(i,_),u}for(p=r(p);_<s.length;_++)v=h(p,i,_,s[_],c),v!==null&&(l=g(i,v,s[_],l),e&&v.alternate!==null&&p.delete(v.key===null?_:v.key),o=a(v,o,_),d===null?u=v:d.sibling=v,d=v);return e&&p.forEach(function(e){return t(i,e)}),Xg&&yr(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,d=o,p=o=0,_=null,v=null,y=s.next();d!==null&&!y.done;p++,y=s.next()){d.index>p?(_=d,d=null):_=d.sibling;var b=m(i,d,y.value,c);if(b===null){d===null&&(d=_);break}v=g(i,b,y.value,v),e&&d&&b.alternate===null&&t(i,d),o=a(b,o,p),u===null?l=b:u.sibling=b,u=b,d=_}if(y.done)return n(i,d),Xg&&yr(i,p),l;if(d===null){for(;!y.done;p++,y=s.next())d=f(i,y.value,c),d!==null&&(v=g(i,d,y.value,v),o=a(d,o,p),u===null?l=d:u.sibling=d,u=d);return Xg&&yr(i,p),l}for(d=r(d);!y.done;p++,y=s.next())_=h(d,i,p,y.value,c),_!==null&&(v=g(i,_,y.value,v),e&&_.alternate!==null&&d.delete(_.key===null?p:_.key),o=a(_,o,p),u===null?l=_:u.sibling=_,u=_);return e&&d.forEach(function(e){return t(i,e)}),Xg&&yr(i,p),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===Tf&&a.key===null&&(Ai(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Cf:var c=Oi(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===Tf){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=Wv,Ai(a,s,e),e=s;break a}}else if(r.elementType===l||ar(r,a)||typeof l==`object`&&l&&l.$$typeof===Pf&&Ti(l)===r.type){n(e,r.sibling),s=i(r,a.props),Mi(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=Wv,e=s;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===Tf?(s=mr(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Wv,Ai(a,s,e),e=s):(s=pr(a,e.mode,s),Mi(s,a),s.return=e,s._debugInfo=Wv,e=s)}return e=o(e),Wv=c,e;case wf:a:{for(c=a,a=c.key;r!==null;){if(r.key===a)if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}else{n(e,r);break}else t(e,r);r=r.sibling}s=_r(c,e.mode,s),s.return=e,e=s}return o(e);case Pf:return c=Oi(a._debugInfo),a=Ti(a),e=y(e,r,a,s),Wv=c,e}if(zf(a))return c=Oi(a._debugInfo),e=_(e,r,a,s),Wv=c,e;if(w(a)){if(c=Oi(a._debugInfo),l=w(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(Kv||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Kv=!0):a.entries!==l||Gv||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Gv=!0),e=v(e,r,u,s),Wv=c,e}if(typeof a.then==`function`)return c=Oi(a._debugInfo),e=y(e,r,ji(a),s),Wv=c,e;if(a.$$typeof===kf)return y(e,r,Kr(e,a),s);Pi(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=hr(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=Wv,e=s),o(e)):(typeof a==`function`&&Ii(e,a),typeof a==`symbol`&&Ri(e,a),n(e,r))}return function(e,t,n,r){var i=Wv;Wv=null;try{Uv=0;var a=y(e,t,n,r);return Hv=null,a}catch(t){if(t===Iv||t===Rv)throw t;var o=p(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=Wv;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{Wv=i}}}function Bi(e,t){var n=zf(e);return e=!n&&typeof w(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function Vi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hi(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 Ui(e){return{lane:e,tag:Qv,payload:null,callback:null,next:null}}function Wi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,iy===r&&!ry){var i=D(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
111
+
112
+ Please update the following component: %s`,i),ry=!0}return(Wb&Fb)===Pb?(Qn(e,r,t,n),nr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=nr(e),tr(e,null,n),t)}function Gi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ee(e,n)}}function Ki(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function qi(){if(ay){var e=av;if(e!==null)throw e}}function Ji(e,t,n,r){ay=!1;var i=e.updateQueue;ny=!1,iy=i.shared;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(qb&f)===f:(r&f)===f){f!==0&&f===iv&&(ay=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case $v:if(m=m.payload,typeof m==`function`){s_=!0;var _=m.call(g,d,h);if(f.mode&Pg){he(!0);try{m.call(g,d,h)}finally{he(!1)}}s_=!1,d=_;break a}d=m;break a;case ty:f.flags=f.flags&-65537|128;case Qv:if(_=m.payload,typeof _==`function`){if(s_=!0,m=_.call(g,d,h),f.mode&Pg){he(!0);try{_.call(g,d,h)}finally{he(!1)}}s_=!1}else m=_;if(m==null)break a;d=xf({},d,m);break a;case ey:ny=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),dx|=o,e.lanes=o,e.memoizedState=d}iy=null}function Yi(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function Xi(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)Yi(n[e],t)}function Zi(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Yi(n[e],t)}function Qi(e,t){var n=lx;A(sy,n,e),A(oy,t,e),lx=n|t.baseLanes}function $i(e){A(sy,lx,e),A(oy,oy.current,e)}function ea(e){lx=sy.current,k(oy,e),k(sy,e)}function ta(e){var t=e.alternate;A(fy,fy.current&uy,e),A(cy,e,e),ly===null&&(t===null||oy.current!==null||t.memoizedState!==null)&&(ly=e)}function na(e){A(fy,fy.current,e),A(cy,e,e),ly===null&&(ly=e)}function ra(e){e.tag===22?(A(fy,fy.current,e),A(cy,e,e),ly===null&&(ly=e)):ia(e)}function ia(e){A(fy,fy.current,e),A(cy,cy.current,e)}function aa(e){k(cy,e),ly===e&&(ly=null),k(fy,e)}function oa(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||od(n)||sd(n)))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)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}function sa(){var e=X;Fy===null?Fy=[e]:Fy.push(e)}function W(){var e=X;if(Fy!==null&&(Iy++,Fy[Iy]!==e)){var t=D(wy);if(!yy.has(t)&&(yy.add(t),Fy!==null)){for(var n=``,r=0;r<=Iy;r++){var i=Fy[r],a=r===Iy?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
113
+ `,n+=i}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
114
+
115
+ Previous render Next render
116
+ ------------------------------------------------------
117
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
118
+ `,t,n)}}}function ca(e){e==null||zf(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",X,typeof e)}function la(){var e=D(wy);Sy.has(e)||(Sy.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function ua(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
119
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
120
+ 2. You might be breaking the Rules of Hooks
121
+ 3. You might have more than one copy of React in the same app
122
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function da(e,t){if(Ly)return!1;if(t===null)return console.error(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,X),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
123
+
124
+ Previous: %s
125
+ Incoming: %s`,X,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!Ih(e[n],t[n]))return!1;return!0}function fa(e,t,n,r,i,a){Cy=a,wy=t,Fy=e===null?null:e._debugHookTypes,Iy=-1,Ly=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=D(wy),xy.has(a)||(xy.add(a),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,Y.H=e!==null&&e.memoizedState!==null?Vy:Fy===null?zy:By,ky=a=(t.mode&Pg)!==jg;var o=yv(n,r,i);if(ky=!1,Oy&&(o=ma(t,n,r,i)),a){he(!0);try{o=ma(t,n,r,i)}finally{he(!1)}}return pa(e,t),o}function pa(e,t){t._debugHookTypes=Fy,t.dependencies===null?My!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:My}):t.dependencies._debugThenableState=My,Y.H=Ry;var n=Ty!==null&&Ty.next!==null;if(Cy=0,Fy=X=Ey=Ty=wy=null,Iy=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),Dy=!1,jy=0,My=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||sb||(e=e.dependencies,e!==null&&Ur(e)&&(sb=!0)),Vv?(Vv=!1,e=!0):e=!1,e&&(t=D(t)||`Unknown`,by.has(t)||xy.has(t)||(by.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function ma(e,t,n,r){wy=e;var i=0;do{if(Oy&&(My=null),jy=0,Oy=!1,i>=Py)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Ly=!1,Ey=Ty=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Iy=-1,Y.H=Hy,a=yv(t,n,r)}while(Oy);return a}function ha(){var e=Y.H,t=e.useState()[0];return t=typeof t.then==`function`?Sa(t):t,e=e.useState()[0],(Ty===null?null:Ty.memoizedState)!==e&&(wy.flags|=1024),t}function ga(){var e=Ay!==0;return Ay=0,e}function _a(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Fg)===jg?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function va(e){if(Dy){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Dy=!1}Cy=0,Fy=Ey=Ty=wy=null,Iy=-1,X=null,Oy=!1,jy=Ay=0,My=null}function ya(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ey===null?wy.memoizedState=Ey=e:Ey=Ey.next=e,Ey}function ba(){if(Ty===null){var e=wy.alternate;e=e===null?null:e.memoizedState}else e=Ty.next;var t=Ey===null?wy.memoizedState:Ey.next;if(t!==null)Ey=t,Ty=e;else{if(e===null)throw wy.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);Ty=e,e={memoizedState:Ty.memoizedState,baseState:Ty.baseState,baseQueue:Ty.baseQueue,queue:Ty.queue,next:null},Ey===null?wy.memoizedState=Ey=e:Ey=Ey.next=e}return Ey}function xa(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sa(e){var t=jy;return jy+=1,My===null&&(My=Si()),e=wi(My,e,t),t=wy,(Ey===null?t.memoizedState:Ey.next)===null&&(t=t.alternate,Y.H=t!==null&&t.memoizedState!==null?Vy:zy),e}function Ca(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Sa(e);if(e.$$typeof===kf)return Gr(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function wa(e){var t=null,n=wy.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=wy.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=xa(),wy.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Ly)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=If;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function Ta(e,t){return typeof t==`function`?t(e):t}function Ea(e,t,n){var r=ya();if(n!==void 0){var i=n(t);if(ky){he(!0);try{n(t)}finally{he(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Fo.bind(null,wy,e),[r.memoizedState,e]}function Da(e){return Oa(ba(),Ty,e)}function Oa(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(Cy&d)===d:(qb&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===iv&&(u=!0);else if((Cy&f)===f){l=l.next,f===iv&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,wy.lanes|=f,dx|=f;d=l.action,ky&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,wy.lanes|=d,dx|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!Ih(a,e.memoizedState)&&(sb=!0,u&&(n=av,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ka(e){var t=ba(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Ih(a,t.memoizedState)||(sb=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Aa(e,t,n){var r=wy,i=ya();if(Xg){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();vy||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),vy=!0)}else{if(a=t(),vy||(n=t(),Ih(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),vy=!0)),Gb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);qb&127||Ma(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,ao(Pa.bind(null,r,n,e),[e]),r.flags|=2048,to(my|_y,{destroy:void 0},Na.bind(null,r,n,a,t),null),a}function ja(e,t,n){var r=wy,i=ba(),a=Xg;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!vy){var o=t();Ih(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),vy=!0)}if((o=!Ih((Ty||i).memoizedState,n))&&(i.memoizedState=n,sb=!0),i=i.queue,io(2048,_y,Pa.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||Ey!==null&&Ey.memoizedState.tag&my){if(r.flags|=2048,to(my|_y,{destroy:void 0},Na.bind(null,r,i,n,t),null),Gb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||Cy&127||Ma(r,t,n)}return n}function Ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=wy.updateQueue,t===null?(t=xa(),wy.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Na(e,t,n,r){t.value=n,t.getSnapshot=r,Fa(t)&&Ia(e)}function Pa(e,t,n){return n(function(){Fa(t)&&(Zr(2,`updateSyncExternalStore()`,e),Ia(e))})}function Fa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ih(e,n)}catch{return!0}}function Ia(e){var t=er(e,2);t!==null&&Kc(t,e,2)}function La(e){var t=ya();if(typeof e==`function`){var n=e;if(e=n(),ky){he(!0);try{n()}finally{he(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:e},t}function Ra(e){e=La(e);var t=e.queue,n=Io.bind(null,wy,t);return t.dispatch=n,[e.memoizedState,n]}function za(e){var t=ya();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ro.bind(null,wy,!0,n),n.dispatch=t,[e,t]}function Ba(e,t){return Va(ba(),Ty,e,t)}function Va(e,t,n,r){return e.baseState=n,Oa(e,Ty,typeof r==`function`?r:Ta)}function Ha(e,t){var n=ba();return Ty===null?(n.baseState=e,[e,n.queue.dispatch]):Va(n,Ty,e,t)}function Ua(e,t,n,r,i){if(zo(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};Y.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Wa(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Wa(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=Y.T,o={};o._updatedFibers=new Set,Y.T=o;try{var s=n(i,r),c=Y.S;c!==null&&c(o,s),Ga(e,t,s)}catch(n){qa(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),a.types=o.types),Y.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),Ga(e,t,o)}catch(n){qa(e,t,n)}}function Ga(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(Y.asyncTransitions++,n.then(Co,Co),n.then(function(n){Ka(e,t,n)},function(n){return qa(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Ka(e,t,n)}function Ka(e,t,n){t.status=`fulfilled`,t.value=n,Ja(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Wa(e,n)))}function qa(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ja(t),t=t.next;while(t!==r)}e.action=null}function Ja(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ya(e,t){return t}function Xa(e,t){if(Xg){var n=Gb.formState;if(n!==null){a:{var r=wy;if(Xg){if(Yg){b:{for(var i=Yg,a=e_;i.nodeType!==8;){if(!a){i=null;break b}if(i=J(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===HS||a===US?i:null}if(i){Yg=J(i.nextSibling),r=i.data===HS;break a}}kr(r)}r=!1}r&&(t=n[0])}}return n=ya(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ya,lastRenderedState:t},n.queue=r,n=Io.bind(null,wy,r),r.dispatch=n,r=La(!1),a=Ro.bind(null,wy,!1,r.queue),r=ya(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ua.bind(null,wy,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Za(e){return Qa(ba(),Ty,e)}function Qa(e,t,n){if(t=Oa(e,t,Ya)[0],e=Da(Ta)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Sa(t)}catch(e){throw e===Iv?Rv:e}else r=t;t=ba();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(wy.flags|=2048,to(my|_y,{destroy:void 0},$a.bind(null,i,n),null)),[r,a,e]}function $a(e,t){e.action=t}function eo(e){var t=ba(),n=Ty;if(n!==null)return Qa(t,n,e);ba(),t=t.memoizedState,n=ba();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function to(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=wy.updateQueue,t===null&&(t=xa(),wy.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function no(e){var t=ya();return e={current:e},t.memoizedState=e}function ro(e,t,n,r){var i=ya();wy.flags|=e,i.memoizedState=to(my|t,{destroy:void 0},n,r===void 0?null:r)}function io(e,t,n,r){var i=ba();r=r===void 0?null:r;var a=i.memoizedState.inst;Ty!==null&&r!==null&&da(r,Ty.memoizedState.deps)?i.memoizedState=to(t,a,n,r):(wy.flags|=e,i.memoizedState=to(my|t,a,n,r))}function ao(e,t){(wy.mode&Fg)===jg?ro(8390656,_y,e,t):ro(276826112,_y,e,t)}function oo(e){wy.flags|=4;var t=wy.updateQueue;if(t===null)t=xa(),wy.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function so(e){var t=ya(),n={impl:e};return t.memoizedState=n,function(){if((Wb&Fb)!==Pb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function co(e){var t=ba().memoizedState;return oo({ref:t,nextImpl:e}),function(){if((Wb&Fb)!==Pb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function lo(e,t){var n=4194308;return(wy.mode&Fg)!==jg&&(n|=134217728),ro(n,gy,e,t)}function uo(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function fo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(wy.mode&Fg)!==jg&&(r|=134217728),ro(r,gy,uo.bind(null,t,e),n)}function po(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),io(4,gy,uo.bind(null,t,e),n)}function mo(e,t){return ya().memoizedState=[e,t===void 0?null:t],e}function ho(e,t){var n=ba();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&da(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function go(e,t){var n=ya();t=t===void 0?null:t;var r=e();if(ky){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r}function _o(e,t){var n=ba();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&da(t,r[1]))return r[0];if(r=e(),ky){he(!0);try{e()}finally{he(!1)}}return n.memoizedState=[r,t],r}function vo(e,t){return xo(ya(),e,t)}function yo(e,t){return So(ba(),Ty.memoizedState,e,t)}function bo(e,t){var n=ba();return Ty===null?xo(n,e,t):So(n,Ty.memoizedState,e,t)}function xo(e,t,n){return n===void 0||Cy&1073741824&&!(qb&261930)?e.memoizedState=t:(e.memoizedState=n,e=Gc(),wy.lanes|=e,dx|=e,n)}function So(e,t,n,r){return Ih(n,t)?n:oy.current===null?!(Cy&42)||Cy&1073741824&&!(qb&261930)?(sb=!0,e.memoizedState=n):(e=Gc(),wy.lanes|=e,dx|=e,t):(e=xo(e,n,r),Ih(e,t)||(sb=!0),e)}function Co(){Y.asyncTransitions--}function wo(e,t,n,r,i){var a=Bf.p;Bf.p=a!==0&&a<Pp?a:Pp;var o=Y.T,s={};s._updatedFibers=new Set,Y.T=s,Ro(e,!1,t,n);try{var c=i(),l=Y.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){Y.asyncTransitions++,c.then(Co,Co);var u=vi(c,r);Lo(e,t,u,Wc(e))}else Lo(e,t,r,Wc(e))}catch(n){Lo(e,t,{then:function(){},status:`rejected`,reason:n},Wc(e))}finally{Bf.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),Y.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function To(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=Eo(e).queue;Qr(e),wo(e,i,t,xC,n===null?u:function(){return Do(e),n(r)})}function Eo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:xC,baseState:xC,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:xC},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ta,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Do(e){Y.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=Eo(e);t.next===null&&(t=e.alternate.memoizedState),Lo(e,t.next.queue,{},Wc(e))}function Oo(){var e=La(!1);return e=wo.bind(null,wy,e.queue,!0,!1),ya().memoizedState=e,[!1,e]}function ko(){var e=Da(Ta)[0],t=ba().memoizedState;return[typeof e==`boolean`?e:Sa(e),t]}function Ao(){var e=ka(Ta)[0],t=ba().memoizedState;return[typeof e==`boolean`?e:Sa(e),t]}function jo(){return Gr(SC)}function Mo(){var e=ya(),t=Gb.identifierPrefix;if(Xg){var n=qg,r=Kg;n=(r&~(1<<32-Dp(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Ay++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Ny++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function No(){return ya().memoizedState=Po.bind(null,wy)}function Po(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=Wc(n),i=Ui(r),a=Wi(n,i,r);a!==null&&(Zr(r,`refresh()`,e),Kc(a,n,r),Gi(a,n,r)),e=Jr(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function Fo(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=Wc(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};zo(e)?Bo(t,i):(i=$n(e,t,i,r),i!==null&&(Zr(r,`dispatch()`,e),Kc(i,e,r),Vo(i,t,r)))}function Io(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=Wc(e),Lo(e,t,n,r)&&Zr(r,`setState()`,e)}function Lo(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(zo(e))Bo(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=Y.H;Y.H=Wy;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,Ih(c,s))return Qn(e,t,i,0),Gb===null&&Zn(),!1}catch{}finally{Y.H=o}}if(n=$n(e,t,i,r),n!==null)return Kc(n,e,r),Vo(n,t,r),!0}return!1}function Ro(e,t,n,r){if(Y.T===null&&iv===0&&console.error(`An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.`),r={lane:2,revertLane:Jl(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},zo(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=$n(e,n,r,2),t!==null&&(Zr(2,`setOptimistic()`,e),Kc(t,e,2))}function zo(e){var t=e.alternate;return e===wy||t!==null&&t===wy}function Bo(e,t){Oy=Dy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Vo(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ee(e,n)}}function Ho(e){if(e!==null&&typeof e!=`function`){var t=String(e);nb.has(t)||(nb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Uo(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Pg){he(!0);try{a=n(r,i)}finally{he(!1)}}a===void 0&&(t=T(t)||`Component`,Qy.has(t)||(Qy.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:xf({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function Wo(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&Pg){he(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{he(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,T(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!Cn(n,r)||!Cn(i,a):!0}function Go(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=D(e)||`Component`,qy.has(e)||(qy.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),rb.enqueueReplaceState(t,t.state,null))}function Ko(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=xf({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function qo(e){ig(e),console.warn(`%s
126
+
127
+ %s
128
+ `,ib?`An error occurred in the <`+ib+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
129
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Jo(e){var t=ib?`The above error occurred in the <`+ib+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((ab||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
130
+
131
+ %s
132
+
133
+ %s
134
+ `,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,CC+` `+e[0],wC,EC+r+EC,TC):e.splice(0,0,CC,wC,EC+r+EC,TC),e.unshift(console),r=DC.apply(console.error,e),r()}else console.error(`%o
135
+
136
+ %s
137
+
138
+ %s
139
+ `,e,t,n)}function Yo(e){ig(e)}function Xo(e,t){try{ib=t.source?D(t.source):null,ab=null;var n=t.value;if(Y.actQueue!==null)Y.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function Zo(e,t,n){try{ib=n.source?D(n.source):null,ab=D(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Qo(e,t,n){return n=Ui(n),n.tag=ty,n.payload={element:null},n.callback=function(){V(t.source,Xo,e,t)},n}function $o(e){return e=Ui(e),e.tag=ty,e}function es(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){or(n),V(r.source,Zo,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){or(n),V(r.source,Zo,t,n,r),typeof i!=`function`&&(Ex===null?Ex=new Set([this]):Ex.add(this)),Dv(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,D(n)||`Unknown`)})}function ts(e,t,n,r,i){if(n.flags|=32768,Ep&&Il(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Hr(t,n,i,!0),Xg&&(Zg=!0),n=cy.current,n!==null){switch(n.tag){case 31:case 13:return ly===null?ol():n.alternate===null&&ux===Lb&&(ux=Bb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===zv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Dl(e,r,i)),!1;case 22:return n.flags|=65536,r===zv?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Dl(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Dl(e,r,i),ol(),!1}if(Xg)return Zg=!0,t=cy.current,t===null?(r!==t_&&Fr(vr(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=vr(r,n),i=Qo(e.stateNode,r,i),Ki(e,i),ux!==Vb&&(ux=zb)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==t_&&Fr(vr(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=vr(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(gx===null?gx=[a]:gx.push(a),ux!==Vb&&(ux=zb),t===null)return!0;r=vr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Qo(n.stateNode,r,e),Ki(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Ex===null||!Ex.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=$o(i),es(i,e,n,r),Ki(n,i),!1}n=n.return}while(n!==null);return!1}function ns(e,t,n,r){t.child=e===null?Zv(t,null,n,r):Xv(t,e.child,n,r)}function rs(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Wr(t),r=fa(e,t,n,o,a,i),s=ga(),e!==null&&!sb?(_a(e,t,i),G(e,t,i)):(Xg&&s&&xr(t),t.flags|=1,ns(e,t,r,i),t.child)}function is(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!lr(a)&&a.defaultProps===void 0&&n.compare===null?(n=rr(a),t.tag=15,t.type=n,_s(t,a),as(e,t,n,r,i)):(e=fr(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Ds(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cn:n,n(o,r)&&e.ref===t.ref)return G(e,t,i)}return t.flags|=1,e=ur(a,r),e.ref=t.ref,e.return=t,t.child=e}function as(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cn(a,r)&&e.ref===t.ref&&t.type===e.type)if(sb=!1,t.pendingProps=r=a,Ds(e,i))e.flags&131072&&(sb=!0);else return t.lanes=e.lanes,G(e,t,i)}return ps(e,t,n,r,i)}function os(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Cg,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return cs(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bi(t,a===null?null:a.cachePool),a===null?$i(t):Qi(t,a),ra(t);else return r=t.lanes=536870912,cs(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&bi(t,null),$i(t),ia(t)):(bi(t,a.cachePool),Qi(t,a),ia(t),t.memoizedState=null);return ns(e,t,i,n),t.child}function ss(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Cg,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cs(e,t,n,r,i){var a=yi();return a=a===null?null:{parent:d_._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&bi(t,null),$i(t),ra(t),e!==null&&Hr(e,t,r,!0),t.childLanes=i,null}function ls(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
140
+ - <Activity %s>
141
+ + <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Ss({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function us(e,t,n){return Xv(t,e.child,null,n),e=ls(t,t.pendingProps),e.flags|=2,aa(t),t.memoizedState=null,e}function ds(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(Xg){if(r.mode===`hidden`)return e=ls(t,r),t.lanes=536870912,ss(null,e);if(na(t),(e=Yg)?(n=ad(e,e_),n=n!==null&&n.data===MS?n:null,n!==null&&(r={dehydrated:n,treeContext:Cr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=gr(n),r.return=t,t.child=r,Jg=t,Yg=null)):n=null,n===null)throw Or(t,e),kr(t);return t.lanes=536870912,null}return ls(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(na(t),i)if(t.flags&256)t.flags&=-257,t=us(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`);else if(Dr(),n&536870912&&al(t),sb||Hr(e,t,n,!1),i=(n&e.childLanes)!==0,sb||i){if(r=Gb,r!==null&&(o=De(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,er(e,o),Kc(r,e,o),ob;ol(),t=us(e,t,n)}else e=a.treeContext,Yg=J(o.nextSibling),Jg=t,Xg=!0,$g=null,Zg=!1,Qg=null,e_=!1,e!==null&&wr(t,e),t=ls(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&al(t),e=ur(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function fs(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function ps(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=T(n)||`Unknown`;cb[a]||(console.error(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,a,a),cb[a]=!0)}return t.mode&Pg&&cv.recordLegacyContextWarning(t,null),e===null&&(_s(t,t.type),n.contextTypes&&(a=T(n)||`Unknown`,ub[a]||(ub[a]=!0,console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)`,a)))),Wr(t),n=fa(e,t,n,r,void 0,i),r=ga(),e!==null&&!sb?(_a(e,t,i),G(e,t,i)):(Xg&&r&&xr(t),t.flags|=1,ns(e,t,n,i),t.child)}function ms(e,t,n,r,i,a){return Wr(t),Iy=-1,Ly=e!==null&&e.type!==t.type,t.updateQueue=null,n=ma(t,r,n,i),pa(e,t),r=ga(),e!==null&&!sb?(_a(e,t,a),G(e,t,a)):(Xg&&r&&xr(t),t.flags|=1,ns(e,t,n,a),t.child)}function hs(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=Gb,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=$o(c),es(c,o,t,vr(a,t)),Ki(t,c)}if(Wr(t),t.stateNode===null){if(o=Og,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==kf)&&!tb.has(n)&&(tb.add(n),c=a===void 0?` However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.`:typeof a==`object`?a.$$typeof===Of?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,T(n)||`Component`,c)),typeof a==`object`&&a&&(o=Gr(a)),a=new n(r,o),t.mode&Pg){he(!0);try{a=new n(r,o)}finally{he(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=rb,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=Ky,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=T(n)||`Component`,Jy.has(o)||(Jy.add(o),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=T(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;Xy.has(a)||(Xy.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
142
+
143
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
144
+
145
+ The above lifecycles should be removed. Learn more about this warning here:
146
+ https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
147
+ `+o,c===null?``:`
148
+ `+c,l===null?``:`
149
+ `+l))}}a=t.stateNode,o=T(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.state||console.error(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,o),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&console.error(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!eb.has(n)&&(eb.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!$y.has(n)&&($y.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.componentShouldUpdate==`function`&&console.error(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&console.error(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,T(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.componentDidReceiveProps==`function`&&console.error(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.defaultProps&&console.error(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||Yy.has(n)||(Yy.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,T(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||zf(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Vi(t),o=n.contextType,a.context=typeof o==`object`&&o?Gr(o):Og,a.state===r&&(o=T(n)||`Component`,Zy.has(o)||(Zy.add(o),console.error(`%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.`,o))),t.mode&Pg&&cv.recordLegacyContextWarning(t,a),cv.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Uo(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,D(t)||`Component`),rb.enqueueReplaceState(a,a.state,null)),Ji(t,r,a,i),qi(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Fg)!==jg&&(t.flags|=134217728),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=Ko(n,d),a.props=c;var f=a.context;l=n.contextType,o=Og,typeof l==`object`&&l&&(o=Gr(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&Go(t,a,r,o),ny=!1;var p=t.memoizedState;a.state=p,Ji(t,r,a,i),qi(),f=t.memoizedState,d||p!==f||ny?(typeof u==`function`&&(Uo(t,n,u,r),f=t.memoizedState),(c=ny||Wo(t,n,c,r,p,f,o))?(l||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Fg)!==jg&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Fg)!==jg&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Fg)!==jg&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,Hi(e,t),o=t.memoizedProps,l=Ko(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=Og,typeof f==`object`&&f&&(c=Gr(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&Go(t,a,r,c),ny=!1,p=t.memoizedState,a.state=p,Ji(t,r,a,i),qi();var m=t.memoizedState;o!==u||p!==m||ny||e!==null&&e.dependencies!==null&&Ur(e.dependencies)?(typeof d==`function`&&(Uo(t,n,d,r),m=t.memoizedState),(l=ny||Wo(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&Ur(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,fs(e,t),o=(t.flags&128)!=0,c||o){if(c=t.stateNode,se(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,b_=-1;else if(n=xv(c),t.mode&Pg){he(!0);try{xv(c)}finally{he(!1)}}t.flags|=1,e!==null&&o?(t.child=Xv(t,e.child,null,i),t.child=Xv(t,null,n,i)):ns(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=G(e,t,i);return i=t.stateNode,a&&i.props!==r&&(fb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",D(t)||`a component`),fb=!0),e}function gs(e,t,n,r){return Nr(),t.flags|=256,ns(e,t,n,r),t.child}function _s(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
150
+ %s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=T(t)||`Unknown`,db[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),db[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=T(t)||`Unknown`,lb[t]||(console.error(`%s: Function components do not support contextType.`,t),lb[t]=!0))}function vs(e){return{baseLanes:e,cachePool:xi()}}function ys(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=mx),e}function bs(e,t,n){var r,i=t.pendingProps;o(t)&&(t.flags|=128);var a=!1,s=(t.flags&128)!=0;if((r=s)||(r=e!==null&&e.memoizedState===null?!1:(fy.current&dy)!==0),r&&(a=!0,t.flags&=-129),r=(t.flags&32)!=0,t.flags&=-33,e===null){if(Xg){if(a?ta(t):ia(t),(e=Yg)?(n=ad(e,e_),n=n!==null&&n.data!==MS?n:null,n!==null&&(r={dehydrated:n,treeContext:Cr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=gr(n),r.return=t,t.child=r,Jg=t,Yg=null)):n=null,n===null)throw Or(t,e),kr(t);return sd(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){ia(t);var l=t.mode;return c=Ss({mode:`hidden`,children:c},l),i=mr(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=vs(n),i.childLanes=ys(e,r,n),t.memoizedState=hb,ss(null,i)}return ta(t),xs(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(ta(t),t.flags&=-257,t=Cs(e,t,n)):t.memoizedState===null?(ia(t),c=i.fallback,l=t.mode,i=Ss({mode:`visible`,children:i.children},l),c=mr(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Xv(t,e.child,null,n),i=t.child,i.memoizedState=vs(n),i.childLanes=ys(e,r,n),t.memoizedState=hb,t=ss(null,i)):(ia(t),t.child=e.child,t.flags|=128,t=null);else if(ta(t),Dr(),n&536870912&&al(t),sd(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r){c=r.dgst;var f=r.msg;l=r.stck;var p=r.cstck}a=f,r=c,i=l,d=p,c=a,l=d,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=i||``,c.digest=r,r=l===void 0?null:l,i={value:c,source:null,stack:r},typeof r==`string`&&Rg.set(c,i),Fr(i),t=Cs(e,t,n)}else if(sb||Hr(e,t,n,!1),r=(n&e.childLanes)!==0,sb||r){if(r=Gb,r!==null&&(i=De(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,er(e,i),Kc(r,e,i),ob;od(d)||ol(),t=Cs(e,t,n)}else od(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,Yg=J(d.nextSibling),Jg=t,Xg=!0,$g=null,Zg=!1,Qg=null,e_=!1,e!==null&&wr(t,e),t=xs(t,i.children),t.flags|=4096);return t}}return a?(ia(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=ur(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=mr(c,l,n,null),c.flags|=2):c=ur(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,ss(null,i),i=t.child,c=e.child.memoizedState,c===null?c=vs(n):(l=c.cachePool,l===null?l=xi():(p=d_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=ys(e,r,n),t.memoizedState=hb,ss(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&al(t),ta(t),n=e.child,e=n.sibling,n=ur(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function xs(e,t){return t=Ss({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ss(e,t){return e=p(22,e,null,t),e.lanes=0,e}function Cs(e,t,n){return Xv(t,e.child,null,n),e=xs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ws(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Br(e.return,t,n)}function Ts(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Es(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=fy.current;if((r=(s&dy)!==0)?(s=s&uy|dy,t.flags|=128):s&=uy,A(fy,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!pb[s])if(pb[s]=!0,i==null)console.error(`The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".`);else if(i===`backwards`)console.error(`The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.`);else if(typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i);s=a??`null`,mb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(mb[s]=!0,console.error(`The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(mb[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(mb[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o)if(zf(o)){for(s=0;s<o.length;s++)if(!Bi(o[s],s))break a}else if(s=w(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!Bi(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i);if(ns(e,t,o,n),Xg?(Tr(),o=Hg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ws(e,n,t);else if(e.tag===19)ws(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&oa(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Ts(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&oa(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Ts(t,!0,n,null,a,o);break;case`together`:Ts(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function G(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),b_=-1,dx|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Hr(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=ur(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ur(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Ds(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Ur(e))):!0}function Os(e,t,n){switch(t.tag){case 3:M(t,t.stateNode.containerInfo),Rr(t,d_,e.memoizedState.cache),Nr();break;case 27:case 5:F(t);break;case 4:M(t,t.stateNode.containerInfo);break;case 10:Rr(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,na(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ta(t),e=G(e,t,n),e===null?null:e.sibling):bs(e,t,n):(ta(t),t.flags|=128,null);ta(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Hr(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Es(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),A(fy,fy.current,t),r)break;return null;case 22:return t.lanes=0,os(e,t,n,t.pendingProps);case 24:Rr(t,d_,e.memoizedState.cache)}return G(e,t,n)}function ks(e,t,n){if(t._debugNeedsRemount&&e!==null){n=fr(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)sb=!0;else{if(!Ds(e,n)&&!(t.flags&128))return sb=!1,Os(e,t,n);sb=!!(e.flags&131072)}else sb=!1,(r=Xg)&&(Tr(),r=(t.flags&1048576)!=0),r&&(r=t.index,Tr(),br(t,Hg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=Ti(t.elementType),t.type=e,typeof e==`function`)lr(e)?(r=Ko(e,r),t.tag=1,t.type=e=rr(e),t=hs(null,t,e,r,n)):(t.tag=0,_s(t,e),t.type=e=rr(e),t=ps(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Af){t.tag=11,t.type=e=ir(e),t=rs(null,t,e,r,n);break a}else if(i===Nf){t.tag=14,t=is(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Pf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=T(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return ps(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ko(r,t.pendingProps),hs(e,t,r,i,n);case 3:a:{if(M(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,Hi(e,t),Ji(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Rr(t,d_,r),r!==a.cache&&Vr(t,[d_],n,!0),qi(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=gs(e,t,r,n);break a}else if(r!==i){i=vr(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Fr(i),t=gs(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Yg=J(e.firstChild),Jg=t,Xg=!0,$g=null,Zg=!1,Qg=null,e_=!0,n=Zv(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Nr(),r===i){t=G(e,t,n);break a}ns(e,t,r,n)}t=t.child}return t;case 26:return fs(e,t),e===null?(n=xd(t.type,null,t.pendingProps,null))?t.memoizedState=n:Xg||(n=t.type,e=t.pendingProps,r=j(qf.current),r=ju(r).createElement(n),r[Rp]=t,r[zp]=e,_u(r,n,e),Re(r),t.stateNode=r):t.memoizedState=xd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return F(t),e===null&&Xg&&(r=j(qf.current),i=P(),r=t.stateNode=gd(t.type,t.pendingProps,r,i,!1),Zg||(i=Du(r,t.type,t.pendingProps,i),i!==null&&(Er(t,0).serverProps=i)),Jg=t,e_=!0,i=Yg,Gu(t.type)?(aC=i,Yg=J(r.firstChild)):Yg=i),ns(e,t,t.pendingProps.children,n),fs(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Xg&&(a=P(),r=Pt(t.type,a.ancestorInfo),i=Yg,(o=!i)||(o=rd(i,t.type,t.pendingProps,e_),o===null?a=!1:(t.stateNode=o,Zg||(a=Du(o,t.type,t.pendingProps,a),a!==null&&(Er(t,0).serverProps=a)),Jg=t,Yg=J(o.firstChild),e_=!1,a=!0),o=!a),o&&(r&&Or(t,i),kr(t))),F(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Pu(i,a)?r=null:o!==null&&Pu(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=fa(e,t,ha,null,null,n),SC._currentValue=i),fs(e,t),ns(e,t,r,n),t.child;case 6:return e===null&&Xg&&(n=t.pendingProps,e=P(),r=e.ancestorInfo.current,n=r==null||Ft(n,r.tag,e.ancestorInfo.implicitRootScope),e=Yg,(r=!e)||(r=id(e,t.pendingProps,e_),r===null?r=!1:(t.stateNode=r,Jg=t,Yg=null,r=!0),r=!r),r&&(n&&Or(t,e),kr(t))),null;case 13:return bs(e,t,n);case 4:return M(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xv(t,null,r,n):ns(e,t,r,n),t.child;case 11:return rs(e,t,t.type,t.pendingProps,n);case 7:return ns(e,t,t.pendingProps,n),t.child;case 8:return ns(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,ns(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||gb||(gb=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Rr(t,r,a),ns(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),Wr(t),i=Gr(i),r=yv(r,i,void 0),t.flags|=1,ns(e,t,r,n),t.child;case 14:return is(e,t,t.type,t.pendingProps,n);case 15:return as(e,t,t.type,t.pendingProps,n);case 19:return Es(e,t,n);case 31:return ds(e,t,n);case 22:return os(e,t,n,t.pendingProps);case 24:return Wr(t),r=Gr(d_),e===null?(i=yi(),i===null&&(i=Gb,a=Jr(),i.pooledCache=a,Yr(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},Vi(t),Rr(t,d_,i)):((e.lanes&n)!==0&&(Hi(e,t),Ji(t,null,null,n),qi()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Rr(t,d_,r),r!==i.cache&&Vr(t,[d_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Rr(t,d_,r))),ns(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function As(e){e.flags|=4}function K(e,t,n,r,i){if((t=(e.mode&Ig)!==jg)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(nl())e.flags|=8192;else throw Bv=zv,Lv}else e.flags&=-16777217}function js(e,t){if(t.type!==`stylesheet`||(t.state.loading&uC)!==oC)e.flags&=-16777217;else if(e.flags|=16777216,!Id(t))if(nl())e.flags|=8192;else throw Bv=zv,Lv}function Ms(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:xe(),e.lanes|=t,hx|=t)}function Ns(e,t){if(!Xg)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ps(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&Ng)!==jg){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else if((e.mode&Ng)!==jg){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Fs(e,t,n){var r=t.pendingProps;switch(Sr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ps(t),null;case 1:return Ps(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),zr(d_,t),N(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Mr(t)?(Ir(),As(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Pr())),Ps(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(As(t),a===null?(Ps(t),K(t,i,null,r,n)):(Ps(t),js(t,a))):a?a===e.memoizedState?(Ps(t),t.flags&=-16777217):(As(t),Ps(t),js(t,a)):(e=e.memoizedProps,e!==r&&As(t),Ps(t),K(t,i,e,r,n)),null;case 27:if(I(t),n=j(qf.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&As(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ps(t),null}e=P(),Mr(t)?Ar(t,e):(e=gd(i,r,n,e,!0),t.stateNode=e,As(t))}return Ps(t),null;case 5:if(I(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&As(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ps(t),null}var o=P();if(Mr(t))Ar(t,o);else{switch(a=j(qf.current),Pt(i,o.ancestorInfo),o=o.context,a=ju(a),o){case qS:a=a.createElementNS(Om,i);break;case JS:a=a.createElementNS(Dm,i);break;default:switch(i){case`svg`:a=a.createElementNS(Om,i);break;case`math`:a=a.createElementNS(Dm,i);break;case`script`:a=a.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||lp.call(ZS,i)||(ZS[i]=!0,console.error(`The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.`,i)))}}a[Rp]=t,a[zp]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(_u(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&As(t)}}return Ps(t),K(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&As(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=j(qf.current),n=P(),Mr(t)){if(e=t.stateNode,n=t.memoizedProps,i=!Zg,r=null,a=Jg,a!==null)switch(a.tag){case 3:i&&(i=ud(e,n,r),i!==null&&(Er(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=ud(e,n,r),i!==null&&(Er(t,0).serverProps=i))}e[Rp]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||mu(e.nodeValue,n)),e||kr(t,!0)}else i=n.ancestorInfo.current,i!=null&&Ft(r,i.tag,n.ancestorInfo.implicitRootScope),e=ju(e).createTextNode(r),e[Rp]=t,t.stateNode=e}return Ps(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Mr(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[Rp]=t,Ps(t),(t.mode&Ng)!==jg&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Ir(),Nr(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Ps(t),(t.mode&Ng)!==jg&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Pr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(aa(t),t):(aa(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Ps(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=Mr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[Rp]=t,Ps(t),(t.mode&Ng)!==jg&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Ir(),Nr(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Ps(t),(t.mode&Ng)!==jg&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Pr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(aa(t),t):(aa(t),null)}return aa(t),t.flags&128?(t.lanes=n,(t.mode&Ng)!==jg&&hi(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ms(t,t.updateQueue),Ps(t),(t.mode&Ng)!==jg&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return N(t),e===null&&nu(t.stateNode.containerInfo),Ps(t),null;case 10:return zr(t.type,t),Ps(t),null;case 19:if(k(fy,t),r=t.memoizedState,r===null)return Ps(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Ns(r,!1);else{if(ux!==Lb||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=oa(e),a!==null){for(t.flags|=128,Ns(r,!1),e=a.updateQueue,t.updateQueue=e,Ms(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)dr(n,e),n=n.sibling;return A(fy,fy.current&uy|dy,t),Xg&&yr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&mp()>Sx&&(t.flags|=128,i=!0,Ns(r,!1),t.lanes=4194304)}else{if(!i)if(e=oa(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ms(t,e),Ns(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!Xg)return Ps(t),null}else 2*mp()-r.renderingStartTime>Sx&&n!==536870912&&(t.flags|=128,i=!0,Ns(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Ps(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=mp(),e.sibling=null,n=fy.current,n=i?n&uy|dy:n&uy,A(fy,n,t),Xg&&yr(t,r.treeForkCount),e);case 22:case 23:return aa(t),ea(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ps(t),t.subtreeFlags&6&&(t.flags|=8192)):Ps(t),n=t.updateQueue,n!==null&&Ms(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&k(sv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),zr(d_,t),Ps(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Is(e,t){switch(Sr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ng)!==jg&&hi(t),t):null;case 3:return zr(d_,t),N(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return I(t),null;case 31:if(t.memoizedState!==null){if(aa(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ng)!==jg&&hi(t),t):null;case 13:if(aa(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);Nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ng)!==jg&&hi(t),t):null;case 19:return k(fy,t),null;case 4:return N(t),null;case 10:return zr(t.type,t),null;case 22:case 23:return aa(t),ea(t),e!==null&&k(sv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&Ng)!==jg&&hi(t),t):null;case 24:return zr(d_,t),null;case 25:return null;default:return null}}function Ls(e,t){switch(Sr(t),t.tag){case 3:zr(d_,t),N(t);break;case 26:case 27:case 5:I(t);break;case 4:N(t);break;case 31:t.memoizedState!==null&&aa(t);break;case 13:aa(t);break;case 19:k(fy,t);break;case 10:zr(t.type,t);break;case 22:case 23:aa(t),ea(t),e!==null&&k(sv,t);break;case 24:zr(d_,t)}}function Rs(e){return(e.mode&Ng)!==jg}function zs(e,t){Rs(e)?(mi(),Vs(t,e),fi()):Vs(t,e)}function Bs(e,t,n){Rs(e)?(mi(),Hs(n,e,t),fi()):Hs(n,e,t)}function Vs(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e&&(r=void 0,(e&hy)!==py&&(nS=!0),r=V(t,jv,n),(e&hy)!==py&&(nS=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&gy)===0?(n.tag&hy)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
151
+
152
+ It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
153
+
154
+ `+a+`(() => {
155
+ async function fetchData() {
156
+ // You can await here
157
+ const response = await MyAPI.getData(someId);
158
+ // ...
159
+ }
160
+ fetchData();
161
+ }, [someId]); // Or [] if effect doesn't need props or state
162
+
163
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,V(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){El(t,t.return,e)}}function Hs(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;s!==void 0&&(o.destroy=void 0,(e&hy)!==py&&(nS=!0),i=t,V(i,Nv,i,n,s),(e&hy)!==py&&(nS=!1))}r=r.next}while(r!==a)}}catch(e){El(t,t.return,e)}}function Us(e,t){Rs(e)?(mi(),Vs(t,e),fi()):Vs(t,e)}function Ws(e,t,n){Rs(e)?(mi(),Hs(n,e,t),fi()):Hs(n,e,t)}function Gs(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||fb||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",D(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",D(e)||`instance`));try{V(e,Zi,t,n)}catch(t){El(e,e.return,t)}}}function Ks(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function qs(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||fb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",D(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",D(e)||`instance`));try{var i=Ko(e.type,n),a=V(e,Ks,t,i,r);n=_b,a!==void 0||n.has(e.type)||(n.add(e.type),V(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,D(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){El(e,e.return,t)}}function Js(e,t,n){n.props=Ko(e.type,e.memoizedProps),n.state=e.memoizedState,Rs(e)?(mi(),V(e,kv,e,t,n),fi()):V(e,kv,e,t,n)}function Ys(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`)if(Rs(e))try{mi(),e.refCleanup=t(n)}finally{fi()}else e.refCleanup=t(n);else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,D(e)),t.current=n}}function Xs(e,t){try{V(e,Ys,e)}catch(n){El(e,t,n)}}function Zs(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{if(Rs(e))try{mi(),V(e,r)}finally{fi(e)}else V(e,r)}catch(n){El(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Rs(e))try{mi(),V(e,n,null)}finally{fi(e)}else V(e,n,null)}catch(n){El(e,t,n)}else n.current=null}function Qs(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,ev&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function $s(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,ev&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function ec(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{V(e,zu,r,t,n,e)}catch(t){El(e,e.return,t)}}function tc(e,t,n){try{V(e,Vu,e.stateNode,e.type,n,t,e)}catch(t){El(e,e.return,t)}}function nc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Gu(e.type)||e.tag===4}function rc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||nc(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&&Gu(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ic(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(Wu(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(Wu(n),t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qt));else if(r!==4&&(r===27&&Gu(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(ic(e,t,n),e=e.sibling;e!==null;)ic(e,t,n),e=e.sibling}function ac(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Gu(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ac(e,t,n),e=e.sibling;e!==null;)ac(e,t,n),e=e.sibling}function oc(e){for(var t,n=e.return;n!==null;){if(nc(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=rc(e),ac(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&(Hu(n),t.flags&=-33),t=rc(e),ac(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=rc(e),ic(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function sc(e){var t=e.stateNode,n=e.memoizedProps;try{V(e,_d,e.type,n,t,e)}catch(t){El(e,e.return,t)}}function cc(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3&&e.memoizedState.isDehydrated&&(t.flags&256)==0}function lc(e,t){if(e=e.containerInfo,YS=zC,e=Dn(e),On(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(XS={focusedElem:e,selectionRange:n},zC=!1,Sb=t;Sb!==null;)if(t=Sb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Sb=e;else for(;Sb!==null;){switch(e=t=Sb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&qs(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)nd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:nd(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(e=t.sibling,e!==null){e.return=t.return,Sb=e;break}Sb=t.return}}function uc(e,t,n){var r=ri(),i=ai(),a=si(),o=ci(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Sc(e,n),s&4&&zs(n,gy|my);break;case 1:if(Sc(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||fb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",D(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",D(n)||`instance`)),Rs(n)?(mi(),V(n,Cv,n,e),fi()):V(n,Cv,n,e);else{var c=Ko(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||fb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",D(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",D(n)||`instance`)),Rs(n)?(mi(),V(n,Tv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),fi()):V(n,Tv,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&Gs(n),s&512&&Xs(n,n.return);break;case 3:if(t=$r(),Sc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{V(n,Zi,s,c)}catch(e){El(n,n.return,e)}}e.effectDuration+=ei(t);break;case 27:t===null&&s&4&&sc(n);case 26:case 5:if(Sc(e,n),t===null){if(s&4)ec(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{V(n,Bu,c,e,t,n)}catch(e){El(n,n.return,e)}}}s&512&&Xs(n,n.return);break;case 12:if(s&4){s=$r(),Sc(e,n),e=n.stateNode,e.effectDuration+=ti(s);try{V(n,Qs,n,t,__,e.effectDuration)}catch(e){El(n,n.return,e)}}else Sc(e,n);break;case 31:Sc(e,n),s&4&&mc(e,n);break;case 13:Sc(e,n),s&4&&hc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Al.bind(null,n),cd(e,s))));break;case 22:if(s=n.memoizedState!==null||vb,!s){t=t!==null&&t.memoizedState!==null||yb,c=vb;var l=yb;vb=s,(yb=t)&&!l?(Ec(e,n,(n.subtreeFlags&8772)!=0),(n.mode&Ng)!==jg&&0<=C_&&0<=w_&&.05<w_-C_&&zn(n,C_,w_)):Sc(e,n),vb=c,yb=l}break;case 30:break;default:Sc(e,n)}(n.mode&Ng)!==jg&&0<=C_&&0<=w_&&((E_||.05<S_)&&Hn(n,C_,w_,S_,T_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<w_-C_&&(cc(n.return.alternate,n.return)||Rn(n,C_,w_,`Mount`))),ii(r),oi(i),T_=a,E_=o}function dc(e){var t=e.alternate;t!==null&&(e.alternate=null,dc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Pe(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fc(e,t,n){for(n=n.child;n!==null;)pc(e,t,n),n=n.sibling}function pc(e,t,n){if(wp&&typeof wp.onCommitFiberUnmount==`function`)try{wp.onCommitFiberUnmount(Cp,n)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=ri(),i=ai(),a=si(),o=ci();switch(n.tag){case 26:yb||Zs(n,t),fc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:yb||Zs(n,t);var s=Tb,c=Eb;Gu(n.type)&&(Tb=n.stateNode,Eb=!1),fc(e,t,n),V(n,vd,n.stateNode),Tb=s,Eb=c;break;case 5:yb||Zs(n,t);case 6:if(s=Tb,c=Eb,Tb=null,fc(e,t,n),Tb=s,Eb=c,Tb!==null)if(Eb)try{V(n,qu,Tb,n.stateNode)}catch(e){El(n,t,e)}else try{V(n,Ku,Tb,n.stateNode)}catch(e){El(n,t,e)}break;case 18:Tb!==null&&(Eb?(e=Tb,Ju(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),pf(e)):Ju(Tb,n.stateNode));break;case 4:s=Tb,c=Eb,Tb=n.stateNode.containerInfo,Eb=!0,fc(e,t,n),Tb=s,Eb=c;break;case 0:case 11:case 14:case 15:Hs(hy,n,t),yb||Bs(n,t,gy),fc(e,t,n);break;case 1:yb||(Zs(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&Js(n,t,s)),fc(e,t,n);break;case 21:fc(e,t,n);break;case 22:yb=(s=yb)||n.memoizedState!==null,fc(e,t,n),yb=s;break;default:fc(e,t,n)}(n.mode&Ng)!==jg&&0<=C_&&0<=w_&&(E_||.05<S_)&&Hn(n,C_,w_,S_,T_),ii(r),oi(i),T_=a,E_=o}function mc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{V(t,md,e)}catch(e){El(t,t.return,e)}}}function hc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{V(t,hd,e)}catch(e){El(t,t.return,e)}}function gc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new xb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new xb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function _c(e,t){var n=gc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Ep)if(Cb!==null&&wb!==null)Il(wb,Cb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`);var r=jl.bind(null,e,t);t.then(r,r)}})}function vc(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=ri(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(Gu(c.type)){Tb=c.stateNode,Eb=!1;break a}break;case 5:Tb=c.stateNode,Eb=!1;break a;case 3:case 4:Tb=c.stateNode.containerInfo,Eb=!0;break a}c=c.return}if(Tb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);pc(i,a,o),Tb=null,Eb=!1,(o.mode&Ng)!==jg&&0<=C_&&0<=w_&&.05<w_-C_&&Rn(o,C_,w_,`Unmount`),ii(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)yc(t,e),t=t.sibling}function yc(e,t){var n=ri(),r=ai(),i=si(),a=ci(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vc(t,e),bc(e),s&4&&(Hs(hy|my,e,e.return),Vs(hy|my,e),Bs(e,e.return,gy|my));break;case 1:if(vc(t,e),bc(e),s&512&&(yb||o===null||Zs(o,o.return)),s&64&&vb&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=Db,vc(t,e),bc(e),s&512&&(yb||o===null||Zs(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null)if(s===null)if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[Gp]||l[Rp]||l.namespaceURI===Om||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),_u(l,s,o),l[Rp]=e,Re(l),s=l;break a;case`link`:var u=Nd(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),_u(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Nd(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],de(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),_u(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[Rp]=e,Re(l),s=l}e.stateNode=s}else Pd(c,e.type,e.stateNode);else e.stateNode=kd(c,s,e.memoizedProps);else l===s?s===null&&e.stateNode!==null&&tc(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Pd(c,e.type,e.stateNode):kd(c,s,e.memoizedProps))}break;case 27:vc(t,e),bc(e),s&512&&(yb||o===null||Zs(o,o.return)),o!==null&&s&4&&tc(e,e.memoizedProps,o.memoizedProps);break;case 5:if(vc(t,e),bc(e),s&512&&(yb||o===null||Zs(o,o.return)),e.flags&32){c=e.stateNode;try{V(e,Hu,c)}catch(t){El(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,tc(e,c,o===null?c:o.memoizedProps)),s&1024&&(bb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(vc(t,e),bc(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{V(e,Uu,c,o,s)}catch(t){El(e,e.return,t)}}break;case 3:if(c=$r(),mC=null,l=Db,Db=yd(t.containerInfo),vc(t,e),Db=l,bc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{V(e,pd,t.containerInfo)}catch(t){El(e,e.return,t)}bb&&(bb=!1,xc(e)),t.effectDuration+=ei(c);break;case 4:s=Db,Db=yd(e.stateNode.containerInfo),vc(t,e),bc(e),Db=s;break;case 12:s=$r(),vc(t,e),bc(e),e.stateNode.effectDuration+=ti(s);break;case 31:vc(t,e),bc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,_c(e,s)));break;case 13:vc(t,e),bc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(yx=mp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,_c(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=vb,m=yb;if(vb=p||c,yb=m||f,vc(t,e),yb=m,vb=p,f&&!c&&!p&&!m&&(e.mode&Ng)!==jg&&0<=C_&&0<=w_&&.05<w_-C_&&zn(e,C_,w_),bc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~Cg:t._visibility|Cg,!c||o===null||f||vb||yb||(wc(e),(e.mode&Ng)!==jg&&0<=C_&&0<=w_&&.05<w_-C_&&Rn(e,C_,w_,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?V(f,Zu,l):V(f,ed,f.stateNode,f.memoizedProps)}catch(e){El(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?V(f,Qu,u):V(f,td,u,f.memoizedProps)}catch(e){El(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?V(f,Xu,d):V(f,$u,f.stateNode)}catch(e){El(f,f.return,e)}}}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 a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,_c(e,o))));break;case 19:vc(t,e),bc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,_c(e,s)));break;case 30:break;case 21:break;default:vc(t,e),bc(e)}(e.mode&Ng)!==jg&&0<=C_&&0<=w_&&((E_||.05<S_)&&Hn(e,C_,w_,S_,T_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<w_-C_&&(cc(e.return.alternate,e.return)||Rn(e,C_,w_,`Mount`))),ii(n),oi(r),T_=i,E_=a}function bc(e){var t=e.flags;if(t&2){try{V(e,oc,e)}catch(t){El(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xc(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)uc(e,t.alternate,t),t=t.sibling}function Cc(e){var t=ri(),n=ai(),r=si(),i=ci();switch(e.tag){case 0:case 11:case 14:case 15:Bs(e,e.return,gy),wc(e);break;case 1:Zs(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&Js(e,e.return,a),wc(e);break;case 27:V(e,vd,e.stateNode);case 26:case 5:Zs(e,e.return),wc(e);break;case 22:e.memoizedState===null&&wc(e);break;case 30:wc(e);break;default:wc(e)}(e.mode&Ng)!==jg&&0<=C_&&0<=w_&&(E_||.05<S_)&&Hn(e,C_,w_,S_,T_),ii(t),oi(n),T_=r,E_=i}function wc(e){for(e=e.child;e!==null;)Cc(e),e=e.sibling}function Tc(e,t,n,r){var i=ri(),a=ai(),o=si(),s=ci(),c=n.flags;switch(n.tag){case 0:case 11:case 15:Ec(e,n,r),zs(n,gy);break;case 1:if(Ec(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&V(n,Cv,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{V(n,Xi,t,e)}catch(e){El(n,n.return,e)}}r&&c&64&&Gs(n),Xs(n,n.return);break;case 27:sc(n);case 26:case 5:Ec(e,n,r),r&&t===null&&c&4&&ec(n),Xs(n,n.return);break;case 12:if(r&&c&4){c=$r(),Ec(e,n,r),r=n.stateNode,r.effectDuration+=ti(c);try{V(n,Qs,n,t,__,r.effectDuration)}catch(e){El(n,n.return,e)}}else Ec(e,n,r);break;case 31:Ec(e,n,r),r&&c&4&&mc(e,n);break;case 13:Ec(e,n,r),r&&c&4&&hc(e,n);break;case 22:n.memoizedState===null&&Ec(e,n,r),Xs(n,n.return);break;case 30:break;default:Ec(e,n,r)}(n.mode&Ng)!==jg&&0<=C_&&0<=w_&&(E_||.05<S_)&&Hn(n,C_,w_,S_,T_),ii(i),oi(a),T_=o,E_=s}function Ec(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;)Tc(e,t.alternate,t,n),t=t.sibling}function Dc(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&Yr(e),n!=null&&Xr(n))}function Oc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(Yr(t),e!=null&&Xr(e))}function kc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Ac(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Ac(e,t,n,r,i){var a=ri(),o=ai(),s=si(),c=ci(),l=_g,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&Ng)!==jg&&0<t.actualStartTime&&t.flags&1&&Bn(t,t.actualStartTime,i,Ob,n),kc(e,t,n,r,i),u&2048&&Us(t,_y|my);break;case 1:(t.mode&Ng)!==jg&&0<t.actualStartTime&&(t.flags&128?Vn(t,t.actualStartTime,i,[]):t.flags&1&&Bn(t,t.actualStartTime,i,Ob,n)),kc(e,t,n,r,i);break;case 3:var d=$r(),f=Ob;Ob=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)==0,kc(e,t,n,r,i),Ob=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(Yr(r),n!=null&&Xr(n))),e.passiveEffectDuration+=ei(d);break;case 12:if(u&2048){u=$r(),kc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=ti(u);try{V(t,$s,t,t.alternate,__,e.passiveEffectDuration)}catch(e){El(t,t.return,e)}}else kc(e,t,n,r,i);break;case 31:u=Ob,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Ob=!1,d=d.hydrationErrors,d!==null&&Vn(t,t.actualStartTime,i,d)):Ob=!0):Ob=!1,kc(e,t,n,r,i),Ob=u;break;case 13:u=Ob,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?Ob=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(Ob=!1,d=d.hydrationErrors,d!==null&&Vn(t,t.actualStartTime,i,d)):Ob=!0),kc(e,t,n,r,i),Ob=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&wg?kc(e,t,n,r,i):(f._visibility|=wg,jc(e,t,n,r,(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&Ng)===jg||Ob||(e=t.actualStartTime,0<=e&&.05<i-e&&zn(t,e,i),0<=C_&&0<=w_&&.05<w_-C_&&zn(t,C_,w_))):f._visibility&wg?kc(e,t,n,r,i):Nc(e,t,n,r,i),u&2048&&Dc(d,t);break;case 24:kc(e,t,n,r,i),u&2048&&Oc(t.alternate,t);break;default:kc(e,t,n,r,i)}(t.mode&Ng)!==jg&&((e=!Ob&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&Rn(t,n,i,`Mount`)),0<=C_&&0<=w_&&((E_||.05<S_)&&Hn(t,C_,w_,S_,T_),e&&.05<w_-C_&&Rn(t,C_,w_,`Mount`))),ii(a),oi(o),T_=s,E_=c,_g=l}function jc(e,t,n,r,i,a){for(i&&=(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Mc(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Mc(e,t,n,r,i,a){var o=ri(),s=ai(),c=si(),l=ci(),u=_g;i&&(t.mode&Ng)!==jg&&0<t.actualStartTime&&t.flags&1&&Bn(t,t.actualStartTime,a,Ob,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:jc(e,t,n,r,i,a),Us(t,_y);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=wg,jc(e,t,n,r,i,a)):f._visibility&wg?jc(e,t,n,r,i,a):Nc(e,t,n,r,a),i&&d&2048&&Dc(t.alternate,t);break;case 24:jc(e,t,n,r,i,a),i&&d&2048&&Oc(t.alternate,t);break;default:jc(e,t,n,r,i,a)}(t.mode&Ng)!==jg&&0<=C_&&0<=w_&&(E_||.05<S_)&&Hn(t,C_,w_,S_,T_),ii(o),oi(s),T_=c,E_=l,_g=u}function Nc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=_g;(a.mode&Ng)!==jg&&0<a.actualStartTime&&a.flags&1&&Bn(a,a.actualStartTime,l,Ob,s);var d=a.flags;switch(a.tag){case 22:Nc(o,a,s,c,l),d&2048&&Dc(a.alternate,a);break;case 24:Nc(o,a,s,c,l),d&2048&&Oc(a.alternate,a);break;default:Nc(o,a,s,c,l)}_g=u,a=t}}function Pc(e,t,n){if(e.subtreeFlags&kb)for(e=e.child;e!==null;)Fc(e,t,n),e=e.sibling}function Fc(e,t,n){switch(e.tag){case 26:Pc(e,t,n),e.flags&kb&&e.memoizedState!==null&&Ld(n,Db,e.memoizedState,e.memoizedProps);break;case 5:Pc(e,t,n);break;case 3:case 4:var r=Db;Db=yd(e.stateNode.containerInfo),Pc(e,t,n),Db=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kb,kb=16777216,Pc(e,t,n),kb=r):Pc(e,t,n));break;default:Pc(e,t,n)}}function Ic(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 Lc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ri();Sb=r,Vc(r,e),(r.mode&Ng)!==jg&&0<=C_&&0<=w_&&.05<w_-C_&&Rn(r,C_,w_,`Unmount`),ii(i)}Ic(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Rc(e),e=e.sibling}function Rc(e){var t=ri(),n=ai(),r=si(),i=ci();switch(e.tag){case 0:case 11:case 15:Lc(e),e.flags&2048&&Ws(e,e.return,_y|my);break;case 3:var a=$r();Lc(e),e.stateNode.passiveEffectDuration+=ei(a);break;case 12:a=$r(),Lc(e),e.stateNode.passiveEffectDuration+=ti(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&wg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~wg,zc(e),(e.mode&Ng)!==jg&&0<=C_&&0<=w_&&.05<w_-C_&&Rn(e,C_,w_,`Disconnect`)):Lc(e);break;default:Lc(e)}(e.mode&Ng)!==jg&&0<=C_&&0<=w_&&(E_||.05<S_)&&Hn(e,C_,w_,S_,T_),ii(t),oi(n),E_=i,T_=r}function zc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=ri();Sb=r,Vc(r,e),(r.mode&Ng)!==jg&&0<=C_&&0<=w_&&.05<w_-C_&&Rn(r,C_,w_,`Unmount`),ii(i)}Ic(e)}for(e=e.child;e!==null;)Bc(e),e=e.sibling}function Bc(e){var t=ri(),n=ai(),r=si(),i=ci();switch(e.tag){case 0:case 11:case 15:Ws(e,e.return,_y),zc(e);break;case 22:var a=e.stateNode;a._visibility&wg&&(a._visibility&=~wg,zc(e));break;default:zc(e)}(e.mode&Ng)!==jg&&0<=C_&&0<=w_&&(E_||.05<S_)&&Hn(e,C_,w_,S_,T_),ii(t),oi(n),E_=i,T_=r}function Vc(e,t){for(;Sb!==null;){var n=Sb,r=n,i=t,a=ri(),o=ai(),s=si(),c=ci();switch(r.tag){case 0:case 11:case 15:Ws(r,i,_y);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&Yr(i));break;case 24:Xr(r.memoizedState.cache)}if((r.mode&Ng)!==jg&&0<=C_&&0<=w_&&(E_||.05<S_)&&Hn(r,C_,w_,S_,T_),ii(a),oi(o),E_=c,T_=s,r=n.child,r!==null)r.return=n,Sb=r;else a:for(n=e;Sb!==null;){if(r=Sb,a=r.sibling,o=r.return,dc(r),r===n){Sb=null;break a}if(a!==null){a.return=o,Sb=a;break a}Sb=o}}}function Hc(){Mb.forEach(function(e){return e()})}function Uc(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||Y.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function Wc(e){if((Wb&Fb)!==Pb&&qb!==0)return qb&-qb;var t=Y.T;return t===null?Me():(t._updatedFibers||=new Set,t._updatedFibers.add(e),Jl())}function Gc(){if(mx===0)if(!(qb&536870912)||Xg){var e=jp;jp<<=1,!(jp&3932160)&&(jp=262144),mx=e}else mx=536870912;return e=cy.current,e!==null&&(e.flags|=32),mx}function Kc(e,t,n){if(nS&&console.error(`useInsertionEffect must not schedule updates.`),Zx&&(Qx=!0),(e===Gb&&(ix===Xb||ix===rx)||e.cancelPendingCommit!==null)&&(el(e,0),Xc(e,qb,mx,!1)),Ce(e,n),(Wb&Fb)!==Pb&&e===Gb){if(cp)switch(t.tag){case 0:case 11:case 15:e=Kb&&D(Kb)||`Unknown`,aS.has(e)||(aS.add(e),t=D(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:iS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Ep&&ke(e,t,n),Rl(t),e===Gb&&((Wb&Fb)===Pb&&(fx|=n),ux===Vb&&Xc(e,qb,mx,!1)),zl(e)}function qc(e,t,n){if((Wb&(Fb|Ib))!==Pb)throw Error(`Should not already be working.`);if(qb!==0&&Kb!==null){var r=Kb,i=mp();switch(Q_){case Zb:case Xb:var a=$_;pg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,mg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,mg,void 0,`primary-light`));break;case rx:a=$_,pg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,mg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,mg,void 0,`primary-light`));break;default:pg&&(r=i-$_,3>r||console.timeStamp(`Blocked`,$_,i,mg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&(t&127)==0&&(t&e.expiredLanes)===0||ye(e,t))?ll(e,t):sl(e,t,!0);var o=n;do{if(a===Lb){sx&&!n&&Xc(e,t,0,!1),t=ix,$_=f_(),Q_=t;break}else{if(r=mp(),i=e.current.alternate,o&&!Yc(i)){Ln(t),i=g_,a=r,!pg||a<=i||(Tx?Tx.run(console.timeStamp.bind(console,`Teared Render`,i,a,gg,hg,`error`)):console.timeStamp(`Teared Render`,i,a,gg,hg,`error`)),$c(t,r),a=sl(e,t,!1),o=!1;continue}if(a===zb){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){Ln(t),qn(g_,r,t,Tx),$c(t,r),t=s;a:{r=e,a=o,o=gx;var c=r.current.memoizedState.isDehydrated;if(c&&(el(r,s).flags|=256),s=sl(r,s,!1),s!==zb){if(cx&&!c){r.errorRecoveryDisabledLanes|=a,fx|=a,a=Vb;break a}r=_x,_x=o,r!==null&&(_x===null?_x=r:_x.push.apply(_x,r))}a=s}if(o=!1,a!==zb)continue;r=mp()}}if(a===Rb){Ln(t),qn(g_,r,t,Tx),$c(t,r),el(e,0),Xc(e,t,0,!0);break}a:{switch(n=e,a){case Lb:case Rb:throw Error(`Root did not complete. This is a bug in React.`);case Vb:if((t&4194048)!==t)break;case Hb:Ln(t),Wn(g_,r,t,Tx),$c(t,r),i=t,i&127?I_=r:i&4194048&&(q_=r),Xc(n,t,mx,!ox);break a;case zb:_x=null;break;case Bb:case Ub:break;default:throw Error(`Unknown root exit status.`)}if(Y.actQueue!==null)_l(n,i,t,_x,wx,vx,mx,fx,hx,a,null,null,g_,r);else{if((t&62914560)===t&&(o=yx+xx-mp(),10<o)){if(Xc(n,t,mx,!ox),ve(n,0,!0)!==0)break a;Bx=t,n.timeoutHandle=eC(Jc.bind(null,n,i,_x,wx,vx,t,mx,fx,hx,ox,a,`Throttled`,g_,r),o);break a}Jc(n,i,_x,wx,vx,t,mx,fx,hx,ox,a,null,g_,r)}}}break}while(1);zl(e)}function Jc(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=nC;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qt},Fc(t,a,h),m=(a&62914560)===a?yx-mp():(a&4194048)===a?bx-mp():0,m=Rd(h,m),m!==null)){Bx=a,e.cancelPendingCommit=m(_l.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),Xc(e,a,o,!l);return}_l(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function Yc(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Ih(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 Xc(e,t,n,r){t&=~px,t&=~fx,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Dp(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&Te(e,n,t)}function Zc(){return(Wb&(Fb|Ib))===Pb?(Bl(0,!1),!1):!0}function Qc(){if(Kb!==null){if(ix===Jb)var e=Kb.return;else e=Kb,Lr(),va(e),Hv=null,Uv=0,e=Kb;for(;e!==null;)Ls(e.alternate,e),e=e.return;Kb=null}}function $c(e,t){e&127&&(D_=t),e&4194048&&(L_=t),e&62914560&&(J_=t),e&2080374784&&(Y_=t)}function el(e,t){pg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,hg,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,hg,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,hg,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,hg,`primary-light`));var n=g_;if(g_=f_(),qb!==0&&0<n){if(Ln(qb),ux===Bb||ux===Vb)Wn(n,g_,t,Tx);else{var r=g_,i=Tx;if(pg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,gg,hg,a)):console.timeStamp(o,n,r,gg,hg,a)}}$c(qb,g_)}if(n=Tx,Tx=null,t&127){Tx=k_,i=0<=O_&&O_<D_?D_:O_,r=0<=N_&&N_<D_?D_:N_,a=0<=r?r:0<=i?i:g_,0<=I_?(Ln(2),Gn(I_,a,t,n)):X_&127&&(Ln(2),Xn(D_,a,Z_)),n=i;var s=r,c=P_,l=0<F_,u=A_===m_,d=A_===h_;if(i=g_,r=k_,a=j_,o=M_,pg){if(gg=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,gg,hg,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,gg,hg,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:gg,trackGroup:hg,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}O_=-1.1,A_=0,M_=j_=null,I_=-1.1,F_=N_,N_=-1.1,D_=f_()}if(t&4194048&&(Tx=V_,i=0<=R_&&R_<L_?L_:R_,n=0<=z_&&z_<L_?L_:z_,r=0<=W_&&W_<L_?L_:W_,a=0<=r?r:0<=n?n:g_,0<=q_?(Ln(256),Gn(q_,a,t,Tx)):X_&4194048&&(Ln(256),Xn(L_,a,Z_)),d=r,s=G_,c=0<K_,l=B_===h_,a=g_,r=V_,o=H_,u=U_,pg&&(gg=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,gg,hg,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,gg,hg,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,gg,hg,`primary-dark`)):console.timeStamp(`Action`,i,n,gg,hg,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:gg,trackGroup:hg,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),z_=R_=-1.1,B_=0,q_=-1.1,K_=W_,W_=-1.1,L_=f_()),t&62914560&&X_&62914560&&(Ln(4194304),Xn(J_,g_,Z_)),t&2080374784&&X_&2080374784&&(Ln(268435456),Xn(Y_,g_,Z_)),n=e.timeoutHandle,n!==nC&&(e.timeoutHandle=nC,tC(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Bx=0,Qc(),Gb=e,Kb=n=ur(e.current,null),qb=t,ix=Jb,ax=null,ox=!1,sx=ye(e,t),cx=!1,ux=Lb,hx=mx=px=fx=dx=0,_x=gx=null,vx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Dp(r),a=1<<i,t|=e[i],r&=~a;return lx=t,Zn(),e=ng(),1e3<e-eg&&(Y.recentlyCreatedOwnerStacks=0,eg=e),cv.discardPendingWarnings(),n}function tl(e,t){wy=null,Y.H=Ry,Y.getCurrentStack=null,cp=!1,sp=null,t===Iv||t===Rv?(t=Ei(),ix=Zb):t===Lv?(t=Ei(),ix=Qb):ix=t===ob?nx:typeof t==`object`&&t&&typeof t.then==`function`?ex:Yb,ax=t;var n=Kb;n===null?(ux=Rb,Xo(e,vr(t,e.current))):n.mode&Ng&&ui(n)}function nl(){var e=cy.current;return e===null?!0:(qb&4194048)===qb?ly===null:(qb&62914560)===qb||qb&536870912?e===ly:!1}function rl(){var e=Y.H;return Y.H=Ry,e===null?Ry:e}function il(){var e=Y.A;return Y.A=Ab,e}function al(e){Tx===null&&(Tx=e._debugTask==null?null:e._debugTask)}function ol(){ux=Vb,ox||(qb&4194048)!==qb&&cy.current!==null||(sx=!0),!(dx&134217727)&&!(fx&134217727)||Gb===null||Xc(Gb,qb,mx,!1)}function sl(e,t,n){var r=Wb;Wb|=Fb;var i=rl(),a=il();if(Gb!==e||qb!==t){if(Ep){var o=e.memoizedUpdaters;0<o.size&&(Il(e,qb),o.clear()),Ae(e,t)}wx=null,el(e,t)}t=!1,o=ux;a:do try{if(ix!==Jb&&Kb!==null){var s=Kb,c=ax;switch(ix){case nx:Qc(),o=Hb;break a;case Zb:case Xb:case rx:case ex:cy.current===null&&(t=!0);var l=ix;if(ix=Jb,ax=null,ml(e,s,c,l),n&&sx){o=Lb;break a}break;default:l=ix,ix=Jb,ax=null,ml(e,s,c,l)}}cl(),o=ux;break}catch(t){tl(e,t)}while(1);return t&&e.shellSuspendCounter++,Lr(),Wb=r,Y.H=i,Y.A=a,Kb===null&&(Gb=null,qb=0,Zn()),o}function cl(){for(;Kb!==null;)dl(Kb)}function ll(e,t){var n=Wb;Wb|=Fb;var r=rl(),i=il();if(Gb!==e||qb!==t){if(Ep){var a=e.memoizedUpdaters;0<a.size&&(Il(e,qb),a.clear()),Ae(e,t)}wx=null,Sx=mp()+Cx,el(e,t)}else sx=ye(e,t);a:do try{if(ix!==Jb&&Kb!==null)b:switch(t=Kb,a=ax,ix){case Yb:ix=Jb,ax=null,ml(e,t,a,Yb);break;case Xb:case rx:if(Ci(a)){ix=Jb,ax=null,fl(t);break}t=function(){ix!==Xb&&ix!==rx||Gb!==e||(ix=tx),zl(e)},a.then(t,t);break a;case Zb:ix=tx;break a;case Qb:ix=$b;break a;case tx:Ci(a)?(ix=Jb,ax=null,fl(t)):(ix=Jb,ax=null,ml(e,t,a,tx));break;case $b:var o=null;switch(Kb.tag){case 26:o=Kb.memoizedState;case 5:case 27:var s=Kb;if(o?Id(o):s.stateNode.complete){ix=Jb,ax=null;var c=s.sibling;if(c!==null)Kb=c;else{var l=s.return;l===null?Kb=null:(Kb=l,hl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}ix=Jb,ax=null,ml(e,t,a,$b);break;case ex:ix=Jb,ax=null,ml(e,t,a,ex);break;case nx:Qc(),ux=Hb;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}Y.actQueue===null?ul():cl();break}catch(t){tl(e,t)}while(1);return Lr(),Y.H=r,Y.A=i,Wb=n,Kb===null?(Gb=null,qb=0,Zn(),ux):Lb}function ul(){for(;Kb!==null&&!fp();)dl(Kb)}function dl(e){var t=e.alternate;(e.mode&Ng)===jg?t=V(e,ks,t,e,lx):(li(e),t=V(e,ks,t,e,lx),ui(e)),e.memoizedProps=e.pendingProps,t===null?hl(e):Kb=t}function fl(e){var t=V(e,pl,e);e.memoizedProps=e.pendingProps,t===null?hl(e):Kb=t}function pl(e){var t=e.alternate,n=(e.mode&Ng)!==jg;switch(n&&li(e),e.tag){case 15:case 0:t=ms(t,e,e.pendingProps,e.type,void 0,qb);break;case 11:t=ms(t,e,e.pendingProps,e.type.render,e.ref,qb);break;case 5:va(e);default:Ls(t,e),e=Kb=dr(e,lx),t=ks(t,e,lx)}return n&&ui(e),t}function ml(e,t,n,r){Lr(),va(t),Hv=null,Uv=0;var i=t.return;try{if(ts(e,i,t,n,qb)){ux=Rb,Xo(e,vr(n,e.current)),Kb=null;return}}catch(t){if(i!==null)throw Kb=i,t;ux=Rb,Xo(e,vr(n,e.current)),Kb=null;return}t.flags&32768?(Xg||r===Yb?e=!0:sx||qb&536870912?e=!1:(ox=e=!0,(r===Xb||r===rx||r===Zb||r===ex)&&(r=cy.current,r!==null&&r.tag===13&&(r.flags|=16384))),gl(t,e)):hl(t)}function hl(e){var t=e;do{if(t.flags&32768){gl(t,ox);return}var n=t.alternate;if(e=t.return,li(t),n=V(t,Fs,n,t,lx),(t.mode&Ng)!==jg&&di(t),n!==null){Kb=n;return}if(t=t.sibling,t!==null){Kb=t;return}Kb=t=e}while(t!==null);ux===Lb&&(ux=Ub)}function gl(e,t){do{var n=Is(e.alternate,e);if(n!==null){n.flags&=32767,Kb=n;return}if((e.mode&Ng)!==jg){di(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Kb=e;return}Kb=e=n}while(e!==null);ux=Hb,Kb=null}function _l(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do Cl();while(Lx!==jx);if(cv.flushLegacyContextWarning(),cv.flushPendingUnsafeLifecycleWarnings(),(Wb&(Fb|Ib))!==Pb)throw Error(`Should not already be working.`);if(Ln(n),l===zb?qn(f,p,n,Tx):r===null?Un(f,p,n,Tx):Kn(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!=0,Tx),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Dg,we(e,n,a,o,s,c),e===Gb&&(Kb=Gb=null,qb=0),zx=t,Rx=e,Bx=n,Vx=a,Ux=i,Wx=r,Hx=p,Gx=d,Kx=Dx,qx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Ll(vp,function(){return $S=window.event,Kx===Dx&&(Kx=kx),wl(),null})):(e.callbackNode=null,e.callbackPriority=0),y_=null,__=f_(),d!==null&&Jn(p,__,d,Tx),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=Y.T,Y.T=null,i=Bf.p,Bf.p=Np,o=Wb,Wb|=Ib;try{lc(e,t,n)}finally{Wb=o,Bf.p=i,Y.T=r}}Lx=Mx,vl(),yl(),bl()}}function vl(){if(Lx===Mx){Lx=jx;var e=Rx,t=zx,n=Bx,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=Y.T,Y.T=null;var i=Bf.p;Bf.p=Np;var a=Wb;Wb|=Ib;try{Cb=n,wb=e,ni(),yc(t,e),wb=Cb=null,n=XS;var o=Dn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&En(s.ownerDocument.documentElement,s)){if(c!==null&&On(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Tn(s,h),v=Tn(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}zC=!!YS,XS=YS=null}finally{Wb=a,Bf.p=i,Y.T=r}}e.current=t,Lx=Nx}}function yl(){if(Lx===Nx){Lx=jx;var e=qx;if(e!==null){__=f_();var t=v_,n=__;!pg||n<=t||(Z_?Z_.run(console.timeStamp.bind(console,e,t,n,gg,hg,`secondary-light`)):console.timeStamp(e,t,n,gg,hg,`secondary-light`))}e=Rx,t=zx,n=Bx;var r=(t.flags&8772)!=0;if(t.subtreeFlags&8772||r){r=Y.T,Y.T=null;var i=Bf.p;Bf.p=Np;var a=Wb;Wb|=Ib;try{Cb=n,wb=e,ni(),uc(e,t.alternate,t),wb=Cb=null}finally{Wb=a,Bf.p=i,Y.T=r}}e=Hx,t=Gx,v_=f_(),e=t===null?e:__,t=v_,n=Kx===Ox,r=Tx,y_===null?!pg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,gg,hg,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,gg,hg,n?`error`:`secondary-dark`)):Yn(e,t,y_,!1,r),Lx=Px}}function bl(){if(Lx===Fx||Lx===Px){if(Lx===Fx){var e=v_;v_=f_();var t=v_,n=Kx===Ox;!pg||t<=e||(Z_?Z_.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,gg,hg,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,gg,hg,n?` error`:`secondary-light`)),Kx!==Ox&&(Kx=Ax)}Lx=jx,pp(),e=Rx;var r=zx;t=Bx,n=Wx;var i=r.actualDuration!==0||(r.subtreeFlags&10256)!=0||(r.flags&10256)!=0;i?Lx=Ix:(Lx=jx,zx=Rx=null,Sl(e,e.pendingLanes),eS=0,tS=null);var a=e.pendingLanes;if(a===0&&(Ex=null),i||Pl(e),a=je(t),r=r.stateNode,wp&&typeof wp.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Np:var s=gp;break;case Pp:s=_p;break;case Fp:s=vp;break;case Ip:s=bp;break;default:s=vp}wp.onCommitFiberRoot(Cp,r,s,o)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Ep&&e.memoizedUpdaters.clear(),Hc(),n!==null){o=Y.T,s=Bf.p,Bf.p=Np,Y.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=xl(l.stack);V(l.source,c,l.value,u)}}finally{Y.T=o,Bf.p=s}}Bx&3&&Cl(),zl(e),a=e.pendingLanes,t&261930&&a&42?(tv=!0,e===Xx?Yx++:(Yx=0,Xx=e)):Yx=0,i||$c(t,v_),Bl(0,!1)}}function xl(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function Sl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Xr(t)))}function Cl(){return vl(),yl(),bl(),wl()}function wl(){if(Lx!==Ix)return!1;var e=Rx,t=Vx;Vx=0;var n=je(Bx),r=Fp===0||Fp>n?Fp:n;n=Y.T;var i=Bf.p;try{Bf.p=r,Y.T=null;var a=Ux;Ux=null,r=Rx;var o=Bx;if(Lx=jx,zx=Rx=null,Bx=0,(Wb&(Fb|Ib))!==Pb)throw Error(`Cannot flush passive effects while already rendering.`);Ln(o),Zx=!0,Qx=!1;var s=0;if(y_=null,s=mp(),Kx===Ax)Xn(v_,s,Z_);else{var c=v_,l=s,u=Kx===kx;!pg||l<=c||(Tx?Tx.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,gg,hg,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,gg,hg,`secondary-light`))}c=Wb,Wb|=Ib;var d=r.current;ni(),Rc(d);var f=r.current;d=Hx,ni(),Ac(r,f,o,a,d),Pl(r),Wb=c;var p=mp();if(f=s,d=Tx,y_===null?!pg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,gg,hg,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,gg,hg,`secondary-dark`)):Yn(f,p,y_,!0,d),$c(o,p),Bl(0,!1),Qx?r===tS?eS++:(eS=0,tS=r):eS=0,Qx=Zx=!1,wp&&typeof wp.onPostCommitFiberRoot==`function`)try{wp.onPostCommitFiberRoot(Cp,r)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{Bf.p=i,Y.T=n,Sl(e,t)}}function Tl(e,t,n){t=vr(n,t),pi(t),t=Qo(e.stateNode,t,2),e=Wi(e,t,2),e!==null&&(Ce(e,2),zl(e))}function El(e,t,n){if(nS=!1,e.tag===3)Tl(e,e,n);else{for(;t!==null;){if(t.tag===3){Tl(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Ex===null||!Ex.has(r))){e=vr(n,e),pi(e),n=$o(2),r=Wi(t,n,2),r!==null&&(es(n,r,t,e),Ce(r,2),zl(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
164
+
165
+ Error message:
166
+
167
+ %s`,n)}}function Dl(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Nb;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(cx=!0,i.add(n),r=Ol.bind(null,e,t,n),Ep&&Il(e,n),t.then(r,r))}function Ol(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>O_&&(D_=O_=f_(),k_=p_(`Promise Resolved`),A_=h_):n&4194048&&0>z_&&(L_=z_=f_(),V_=p_(`Promise Resolved`),B_=h_),Uc()&&Y.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
168
+
169
+ When testing, code that resolves suspended data should be wrapped into act(...):
170
+
171
+ act(() => {
172
+ /* finish loading suspended data */
173
+ });
174
+ /* assert on the output */
175
+
176
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Gb===e&&(qb&n)===n&&(ux===Vb||ux===Bb&&(qb&62914560)===qb&&mp()-yx<xx?(Wb&Fb)===Pb&&el(e,0):px|=n,hx===qb&&(hx=0)),zl(e)}function kl(e,t){t===0&&(t=xe()),e=er(e,t),e!==null&&(Ce(e,t),zl(e))}function Al(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),kl(e,n)}function jl(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),kl(e,n)}function Ml(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===Ef;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&8192?V(i,Nl,r,i):i.subtreeFlags&67108864&&V(i,Ml,r,i,a)):i.flags&67108864?a&&V(i,Nl,r,i):Ml(r,i,a),t=t.sibling}}function Nl(e,t){he(!0);try{Cc(t),Bc(t),Tc(e,t.alternate,t,!1),Mc(e,t,0,null,!1,0)}finally{he(!1)}}function Pl(e){var t=!0;e.current.mode&(Pg|Fg)||(t=!1),Ml(e,e.current,t)}function Fl(e){if((Wb&Fb)===Pb){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=D(e)||`ReactComponent`,rS!==null){if(rS.has(t))return;rS.add(t)}else rS=new Set([t]);V(e,function(){console.error(`Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.`)})}}}function Il(e,t){Ep&&e.memoizedUpdaters.forEach(function(n){ke(e,n,t)})}function Ll(e,t){var n=Y.actQueue;return n===null?up(e,t):(n.push(t),oS)}function Rl(e){Uc()&&Y.actQueue===null&&V(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
177
+
178
+ When testing, code that causes React state updates should be wrapped into act(...):
179
+
180
+ act(() => {
181
+ /* fire events that update state */
182
+ });
183
+ /* assert on the output */
184
+
185
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,D(e))})}function zl(e){e!==cS&&e.next===null&&(cS===null?sS=cS=e:cS=cS.next=e),dS=!0,Y.actQueue===null?lS||(lS=!0,ql()):uS||(uS=!0,ql())}function Bl(e,t){if(!fS&&dS){fS=!0;do for(var n=!1,r=sS;r!==null;){if(!t)if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Dp(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Gl(r,a))}else a=qb,a=ve(r,r===Gb?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==nC),!(a&3)||ye(r,a)||(n=!0,Gl(r,a));r=r.next}while(n);fS=!1}}function Vl(){$S=window.event,Hl()}function Hl(){dS=uS=lS=!1;var e=0;pS!==0&&Fu()&&(e=pS);for(var t=mp(),n=null,r=sS;r!==null;){var i=r.next,a=Ul(r,t);a===0?(r.next=null,n===null?sS=i:n.next=i,i===null&&(cS=n)):(n=r,(e!==0||a&3)&&(dS=!0)),r=i}Lx!==jx&&Lx!==Ix||Bl(e,!1),pS!==0&&(pS=0)}function Ul(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Dp(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=be(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Gb,n=qb,n=ve(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==nC),r=e.callbackNode,n===0||e===t&&(ix===Xb||ix===rx)||e.cancelPendingCommit!==null)return r!==null&&Kl(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||ye(e,n)){if(t=n&-n,t!==e.callbackPriority||Y.actQueue!==null&&r!==mS)Kl(r);else return t;switch(je(n)){case Np:case Pp:n=_p;break;case Fp:n=vp;break;case Ip:n=bp;break;default:n=vp}return r=Wl.bind(null,e),Y.actQueue===null?n=up(n,r):(Y.actQueue.push(r),n=mS),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&Kl(r),e.callbackPriority=2,e.callbackNode=null,2}function Wl(e,t){if(tv=ev=!1,$S=window.event,Lx!==jx&&Lx!==Ix)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Kx===Dx&&(Kx=kx),Cl()&&e.callbackNode!==n)return null;var r=qb;return r=ve(e,e===Gb?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==nC),r===0?null:(qc(e,r,t),Ul(e,mp()),e.callbackNode!=null&&e.callbackNode===n?Wl.bind(null,e):null)}function Gl(e,t){if(Cl())return null;ev=tv,tv=!1,qc(e,t,!0)}function Kl(e){e!==mS&&e!==null&&dp(e)}function ql(){Y.actQueue!==null&&Y.actQueue.push(function(){return Hl(),null}),iC(function(){(Wb&(Fb|Ib))===Pb?Hl():up(gp,Vl)})}function Jl(){if(pS===0){var e=iv;e===0&&(e=Ap,Ap<<=1,!(Ap&261888)&&(Ap=256)),pS=e}return pS}function Yl(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(de(e,`action`),Kt(``+e))}function Xl(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Zl(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Yl((i[zp]||null).action),o=r.submitter;o&&(t=(t=o[zp]||null)?Yl(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new $m(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(pS!==0){var e=o?Xl(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),To(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?Xl(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),To(n,t,a,e))},currentTarget:i}]})}}function Ql(e,t,n){e.currentTarget=n;try{t(e)}catch(e){ig(e)}e.currentTarget=null}function $l(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?Ql(a,s,l):V(c,Ql,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?Ql(a,s,l):V(c,Ql,a,s,l),i=c}}}}function eu(e,t){gS.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Vp];n===void 0&&(n=t[Vp]=new Set);var r=e+`__bubble`;n.has(r)||(ru(t,e,2,!1),n.add(r))}function tu(e,t,n){gS.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),ru(n,e,r,t)}function nu(e){if(!e[_S]){e[_S]=!0,Kp.forEach(function(t){t!==`selectionchange`&&(gS.has(t)||tu(t,!1,e),tu(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_S]||(t[_S]=!0,tu(`selectionchange`,!1,t))}}function ru(e,t,n,r){switch(nf(t)){case Np:var i=Zd;break;case Pp:i=Qd;break;default:i=$d}n=i.bind(null,t,n,e),i=void 0,!qm||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function iu(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Ie(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}Xt(function(){var r=a,i=Jt(n),o=[];a:{var s=Qh.get(e);if(s!==void 0){var c=$m,l=e;switch(e){case`keypress`:if($t(n)===0)break a;case`keydown`:case`keyup`:c=gh;break;case`focusin`:l=`focus`,c=ch;break;case`focusout`:l=`blur`,c=ch;break;case`beforeblur`:case`afterblur`:c=ch;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=oh;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=sh;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=vh;break;case Gh:case Kh:case qh:c=lh;break;case Zh:c=yh;break;case`scroll`:case`scrollend`:c=th;break;case`wheel`:c=bh;break;case`copy`:case`cut`:case`paste`:c=uh;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=_h;break;case`toggle`:case`beforetoggle`:c=xh}var u=(t&4)!=0,d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=Zt(p,f),h!=null&&u.push(au(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Hm&&(l=n.relatedTarget||n.fromElement)&&(Ie(l)||l[Bp]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ie(l):null,l!==null&&(d=v(l),u=l.tag,l!==d||u!==5&&u!==27&&u!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=oh,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=_h,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:H(c),m=l==null?s:H(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ie(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=ou,f=c,p=l,m=0,h=f;h;h=u(h))m++;h=0;for(var g=p;g;g=u(g))h++;for(;0<m-h;)f=u(f),m--;for(;0<h-m;)p=u(p),h--;for(;m--;){if(f===p||p!==null&&f===p.alternate){u=f;break b}f=u(f),p=u(p)}u=null}else u=null;c!==null&&su(o,s,c,u,!1),l!==null&&d!==null&&su(o,d,l,u,!0)}}a:{if(s=r?H(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=hn;else if(un(s))if(Fh)_=xn;else{_=yn;var y=vn}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Bt(r.elementType)&&(_=hn):_=bn;if(_&&=_(e,r)){fn(o,_,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&it(s,`number`,s.value)}switch(y=r?H(r):window,e){case`focusin`:(un(y)||y.contentEditable===`true`)&&(Rh=y,zh=r,Bh=null);break;case`focusout`:Bh=zh=Rh=null;break;case`mousedown`:Vh=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Vh=!1,kn(o,n,i);break;case`selectionchange`:if(Lh)break;case`keydown`:case`keyup`:kn(o,n,i)}var b;if(wh)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else jh?on(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===Ch&&(x=`onCompositionStart`);x&&(Dh&&n.locale!==`ko`&&(jh||x!==`onCompositionStart`?x===`onCompositionEnd`&&jh&&(b=Qt()):(Ym=i,Xm=`value`in Ym?Ym.value:Ym.textContent,jh=!0)),y=q(r,x),0<y.length&&(x=new dh(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=sn(n),b!==null&&(x.data=b)))),(b=Eh?cn(e,n):ln(e,n))&&(x=q(r,`onBeforeInput`),0<x.length&&(y=new fh(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),Zl(o,e,r,n,i)}$l(o,t)})}function au(e,t,n){return{instance:e,listener:t,currentTarget:n}}function q(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Zt(e,n),i!=null&&r.unshift(au(e,i,a)),i=Zt(e,t),i!=null&&r.push(au(e,i,a))),e.tag===3)return r;e=e.return}return[]}function ou(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function su(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Zt(n,a),l!=null&&o.unshift(au(n,l,c))):i||(l=Zt(n,a),l!=null&&o.push(au(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function cu(e,t){Ut(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Fm||(Fm=!0,e===`select`&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:qp,possibleRegistrationNames:Jp};Bt(e)||typeof t.is==`string`||Gt(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function lu(e,t,n,r){t!==n&&(n=pu(n),pu(t)!==n&&(r[e]=t))}function uu(e,t,n){t.forEach(function(t){n[yu(t)]=t===`style`?bu(e):e.getAttribute(t)})}function du(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function fu(e,t){return e=e.namespaceURI===Dm||e.namespaceURI===Om?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function pu(e){return le(e)&&(console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,ce(e)),ue(e)),(typeof e==`string`?e:``+e).replace(ES,`
186
+ `).replace(DS,``)}function mu(e,t){return t=pu(t),pu(e)===t}function hu(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(Ft(r,t,!1),t===`body`||t===`textarea`&&r===``||It(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(Ft(``+r,t,!1),t!==`body`&&It(e,``+r));break;case`className`:Ge(e,`class`,r);break;case`tabIndex`:Ge(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ge(e,n,r);break;case`style`:zt(e,r,a);break;case`data`:if(t!==`object`){Ge(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}de(r,n),r=Kt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||CS||(CS=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),i.target==null||SS||(SS=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||bS?t!==`button`||i.type==null||i.type===`submit`||bS?typeof r==`function`&&(i.name==null||xS||(xS=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i.formEncType==null&&i.formMethod==null||CS||(CS=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),i.formTarget==null||SS||(SS=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`))):(bS=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(bS=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),typeof r==`function`){e.setAttribute(n,`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 a==`function`&&(n===`formAction`?(t!==`input`&&hu(e,t,`name`,i.name,i,null),hu(e,t,`formEncType`,i.formEncType,i,null),hu(e,t,`formMethod`,i.formMethod,i,null),hu(e,t,`formTarget`,i.formTarget,i,null)):(hu(e,t,`encType`,i.encType,i,null),hu(e,t,`method`,i.method,i,null),hu(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}de(r,n),r=Kt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&du(n,r),e.onclick=qt);break;case`onScroll`:r!=null&&(typeof r!=`function`&&du(n,r),eu(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&du(n,r),eu(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}de(r,n),n=Kt(``+r),e.setAttributeNS(OS,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(de(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||TS[n]||(TS[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));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`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?(de(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?(de(r,n),e.setAttribute(n,r)):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):(de(r,n),e.setAttribute(n,r));break;case`popover`:eu(`beforetoggle`,e),eu(`toggle`,e),We(e,`popover`,r);break;case`xlinkActuate`:Ke(e,OS,`xlink:actuate`,r);break;case`xlinkArcrole`:Ke(e,OS,`xlink:arcrole`,r);break;case`xlinkRole`:Ke(e,OS,`xlink:role`,r);break;case`xlinkShow`:Ke(e,OS,`xlink:show`,r);break;case`xlinkTitle`:Ke(e,OS,`xlink:title`,r);break;case`xlinkType`:Ke(e,OS,`xlink:type`,r);break;case`xmlBase`:Ke(e,kS,`xml:base`,r);break;case`xmlLang`:Ke(e,kS,`xml:lang`,r);break;case`xmlSpace`:Ke(e,kS,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),We(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:wS||typeof r!=`object`||!r||(wS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=Vt(n),We(e,n,r)):qp.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&du(n,r)}}function gu(e,t,n,r,i,a){switch(n){case`style`:zt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=n}}break;case`children`:typeof r==`string`?It(e,r):(typeof r==`number`||typeof r==`bigint`)&&It(e,``+r);break;case`onScroll`:r!=null&&(typeof r!=`function`&&du(n,r),eu(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&du(n,r),eu(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&du(n,r),e.onclick=qt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(qp.hasOwnProperty(n))r!=null&&typeof r!=`function`&&du(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[zp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):We(e,n,r)}}}function _u(e,t,n){switch(cu(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:eu(`error`,e),eu(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:hu(e,t,a,o,n,null)}}i&&hu(e,t,`srcSet`,n.srcSet,n,null),r&&hu(e,t,`src`,n.src,n,null);return;case`input`:Ve(`input`,n),eu(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:hu(e,t,r,u,n,null)}}et(e,n),nt(e,a,s,c,l,o,i,!1);return;case`select`:for(i in Ve(`select`,n),eu(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:hu(e,t,i,s,n,null)}lt(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&ct(e,!!r,n,!0):ct(e,!!r,t,!1);return;case`textarea`:for(o in Ve(`textarea`,n),eu(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:hu(e,t,o,s,n,null)}ut(e,n),ft(e,r,i,a);return;case`option`:for(c in ot(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:hu(e,t,c,r,n,null)}return;case`dialog`:eu(`beforetoggle`,e),eu(`toggle`,e),eu(`cancel`,e),eu(`close`,e);break;case`iframe`:case`object`:eu(`load`,e);break;case`video`:case`audio`:for(r=0;r<hS.length;r++)eu(hS[r],e);break;case`image`:eu(`error`,e),eu(`load`,e);break;case`details`:eu(`toggle`,e);break;case`embed`:case`source`:case`link`:eu(`error`,e),eu(`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(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:hu(e,t,l,r,n,null)}return;default:if(Bt(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&gu(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&hu(e,t,s,r,n,null))}function vu(e,t,n,r){switch(cu(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||hu(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&hu(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||yS||(console.error(`A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),yS=!0),!t||r||vS||(console.error(`A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),vS=!0),tt(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||hu(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&hu(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?ct(e,!!t,t?[]:``,!1):ct(e,!!t,r,!0)):ct(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:hu(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&hu(e,t,o,i,r,a)}dt(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:hu(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:hu(e,t,c,f,r,p)}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 h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&hu(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:hu(e,t,l,f,r,p)}return;default:if(Bt(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&gu(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||gu(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&hu(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||hu(e,t,d,f,r,p)}function yu(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function bu(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function xu(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(fe(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||Em.has(a)?(fe(o,a),r+=i+a.replace(gm,`-$1`).toLowerCase().replace(_m,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(gm,`-$1`).toLowerCase().replace(_m,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=pu(r),pu(t)!==r&&(n.style=bu(e)))}}function Su(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(de(r,t),e===``+r)return}lu(t,e,r,a)}function Cu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}lu(t,e,r,a)}function wu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(de(r,n),e===``+r)return}lu(t,e,r,a)}function Tu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(de(r,t),e===``+r))return}lu(t,e,r,a)}function Eu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(de(r,t),n=Kt(``+r),e===n)return}lu(t,e,r,a)}function Du(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if(Bt(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(qp.hasOwnProperty(c))typeof l!=`function`&&du(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||lu(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=fu(e,l),lu(c,o,l,i));continue;case`style`:a.delete(c),xu(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=Ue(e,`class`,l),lu(`className`,o,l,i);continue;default:r.context===KS&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=Ue(e,c,l),lu(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(qp.hasOwnProperty(l))typeof c!=`function`&&du(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||lu(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=fu(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:Su(e,l,`class`,c,a,i);continue;case`tabIndex`:Su(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),xu(e,c,i);continue;case`multiple`:a.delete(l),lu(l,e.multiple,c,i);continue;case`muted`:a.delete(l),lu(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),lu(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),lu(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}Eu(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}else if(o===AS){a.delete(l.toLowerCase()),lu(l,`function`,c,i);continue}Eu(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Eu(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:wu(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:wu(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:wu(e,l,l,c,a,i);continue;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`:Cu(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(de(c,o),s===``+c)break a}lu(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(de(c,o),s===``+c))break a}lu(o,s,c,d)}continue;case`rowSpan`:Tu(e,l,`rowspan`,c,a,i);continue;case`start`:Tu(e,l,l,c,a,i);continue;case`xHeight`:Su(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:Su(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:Su(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:Su(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:Su(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:Su(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:Su(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:Su(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:Su(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:Su(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||TS[l]||(TS[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),Cu(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=Vt(l),o=!1,r.context===KS&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Am.hasOwnProperty(u)&&Am[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,He(d))if(u.hasAttribute(d))u=u.getAttribute(d),de(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}else s=void 0;o||lu(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&uu(e,a,i),Object.keys(i).length===0?null:i}function Ou(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function ku(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Au(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&ku(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&ku(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.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}function ju(e){return e.nodeType===9?e:e.ownerDocument}function Mu(e){switch(e){case Om:return qS;case Dm:return JS;default:return KS}}function Nu(e,t){if(e===KS)switch(t){case`svg`:return qS;case`math`:return JS;default:return KS}return e===qS&&t===`foreignObject`?KS:e}function Pu(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}function Fu(){var e=window.event;return e&&e.type===`popstate`?e===QS?!1:(QS=e,!0):(QS=null,!1)}function Iu(){var e=window.event;return e&&e!==$S?e.type:null}function Lu(){var e=window.event;return e&&e!==$S?e.timeStamp:-1.1}function Ru(e){setTimeout(function(){throw e})}function zu(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function Bu(){}function Vu(e,t,n,r){vu(e,t,n,r),e[zp]=r}function Hu(e){It(e,``)}function Uu(e,t,n){e.nodeValue=n}function Wu(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[zp]||null;if(t!==null){var n=Le(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,V(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,V(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function Gu(e){return e===`head`}function Ku(e,t){e.removeChild(t)}function qu(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function Ju(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===FS||n===NS){if(r===0){e.removeChild(i),pf(t);return}r--}else if(n===PS||n===IS||n===LS||n===RS||n===MS)r++;else if(n===zS)vd(e.ownerDocument.documentElement);else if(n===VS){n=e.ownerDocument.head,vd(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Gp]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===BS&&vd(e.ownerDocument.body);n=i}while(n);pf(t)}function Yu(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===FS){if(e===0)break;e--}else n!==PS&&n!==IS&&n!==LS&&n!==RS||e++;n=r}while(n)}function Xu(e){Yu(e,!0)}function Zu(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function Qu(e){e.nodeValue=``}function $u(e){Yu(e,!1)}function ed(e,t){t=t[GS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function td(e,t){e.nodeValue=t}function nd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:nd(n),Pe(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function rd(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){de(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[Gp])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=J(e.nextSibling),e===null)break}return null}function id(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=J(e.nextSibling),e===null))return null;return e}function ad(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=J(e.nextSibling),e===null))return null;return e}function od(e){return e.data===IS||e.data===LS}function sd(e){return e.data===RS||e.data===IS&&e.ownerDocument.readyState!==WS}function cd(e,t){var n=e.ownerDocument;if(e.data===LS)e._reactRetry=t;else if(e.data!==IS||n.readyState!==WS)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function J(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===PS||t===RS||t===IS||t===LS||t===MS||t===HS||t===US)break;if(t===FS||t===NS)return null}}return e}function ld(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[yu(a.name)]=a.name.toLowerCase()===`style`?bu(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===MS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function ud(e,t,n){return n===null||!0!==n[jS]?(e.nodeValue===t?e=null:(t=pu(t),e=pu(e.nodeValue)===t?null:e.nodeValue),e):null}function dd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===FS||n===NS){if(t===0)return J(e.nextSibling);t--}else n!==PS&&n!==RS&&n!==IS&&n!==LS&&n!==MS||t++}e=e.nextSibling}return null}function fd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===PS||n===RS||n===IS||n===LS||n===MS){if(t===0)return e;t--}else n!==FS&&n!==NS||t++}e=e.previousSibling}return null}function pd(e){pf(e)}function md(e){pf(e)}function hd(e){pf(e)}function gd(e,t,n,r,i){switch(i&&Pt(e,r.ancestorInfo),t=ju(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function _d(e,t,n,r){if(!n[Bp]&&Le(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);_u(n,e,t),n[Rp]=r,n[zp]=t}function vd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Pe(e)}function yd(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function bd(e,t,n){var r=pC;if(r&&typeof t==`string`&&t){var i=$e(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),fC.has(i)||(fC.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),_u(t,`link`,e),Re(t),r.head.appendChild(t)))}}function xd(e,t,n,r){var i=(i=qf.current)?yd(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Cd(n.href),t=U(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Cd(n.href);var a=U(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:oC,preload:null}},a.set(e,o),(a=i.querySelector(wd(e)))&&!a._p&&(o.instance=a,o.state.loading=sC|uC),!dC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};dC.set(e,s),a||Ed(i,e,s,o.state)}if(t&&r===null)throw n=`
187
+
188
+ - `+Sd(t)+`
189
+ + `+Sd(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return o}if(t&&r!==null)throw n=`
190
+
191
+ - `+Sd(t)+`
192
+ + `+Sd(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=Dd(n),t=U(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function Sd(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):lp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):lp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):lp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Cd(e){return`href="`+$e(e)+`"`}function wd(e){return`link[rel="stylesheet"][`+e+`]`}function Td(e){return xf({},e,{"data-precedence":e.precedence,precedence:null})}function Ed(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=sC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=sC}),t.addEventListener(`error`,function(){return r.loading|=cC}),_u(t,`link`,n),Re(t),e.head.appendChild(t))}function Dd(e){return`[src="`+$e(e)+`"]`}function Od(e){return`script[async]`+e}function kd(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+$e(n.href)+`"]`);if(r)return t.instance=r,Re(r),r;var i=xf({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Re(r),_u(r,`style`,i),Ad(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Cd(n.href);var a=e.querySelector(wd(i));if(a)return t.state.loading|=uC,t.instance=a,Re(a),a;r=Td(n),(i=dC.get(i))&&jd(r,i),a=(e.ownerDocument||e).createElement(`link`),Re(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),_u(a,`link`,r),t.state.loading|=uC,Ad(a,n.precedence,e),t.instance=a;case`script`:return a=Dd(n.src),(i=e.querySelector(Od(a)))?(t.instance=i,Re(i),i):(r=n,(i=dC.get(a))&&(r=xf({},n),Md(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),Re(i),_u(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&uC)===oC&&(r=t.instance,t.state.loading|=uC,Ad(r,n.precedence,e));return t.instance}function Ad(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function jd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Md(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Nd(e,t,n){if(mC===null){var r=new Map,i=mC=new Map;i.set(n,r)}else i=mC,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Gp]||a[Rp]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Om){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Pd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Fd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===qS||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=Ou(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Id(e){return!(e.type===`stylesheet`&&(e.state.loading&lC)===oC)}function Ld(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&uC)===oC){if(n.instance===null){var i=Cd(r.href),a=t.querySelector(wd(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=zd.bind(e),t.then(e,e)),n.state.loading|=uC,n.instance=a,Re(a);return}a=t.ownerDocument||t,r=Td(r),(i=dC.get(i))&&jd(r,i),a=a.createElement(`link`),Re(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),_u(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&lC)===oC&&(e.count++,n=zd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Rd(e,t){return e.stylesheets&&e.count===0&&Bd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Bd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},hC+t);0<e.imgBytes&&vC===0&&(vC=125*Au()*_C);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Bd(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>vC?50:gC)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function zd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Bd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Bd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,bC=new Map,t.forEach(Vd,e),bC=null,zd.call(e))}function Vd(e,t){if(!(t.state.loading&uC)){var n=bC.get(e);if(n)var r=n.get(yC);else{n=new Map,bC.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(yC,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(yC,i),n.set(o,i),this.count++,r=zd.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=uC}}function Hd(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=nC,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Se(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Se(0),this.hiddenUpdates=Se(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function Ud(e,t,n,r,i,a,o,s,c,l,u,d){return e=new Hd(e,t,n,o,c,l,u,d,s),t=Mg,!0===a&&(t|=Pg|Fg),t|=Ng,a=p(3,null,null,t),e.current=a,a.stateNode=e,t=Jr(),Yr(t),e.pooledCache=t,Yr(t),a.memoizedState={element:r,isDehydrated:n,cache:t},Vi(a),e}function Wd(e){return e?(e=Og,e):Og}function Gd(e,t,n,r,i,a){if(wp&&typeof wp.onScheduleFiberRoot==`function`)try{wp.onScheduleFiberRoot(Cp,r,n)}catch(e){Tp||(Tp=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=Wd(i),r.context===null?r.context=i:r.pendingContext=i,cp&&sp!==null&&!OC&&(OC=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
193
+
194
+ Check the render method of %s.`,D(sp)||`Unknown`)),r=Ui(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=Wi(e,r,t),n!==null&&(Zr(t,`root.render()`,null),Kc(n,e,t),Gi(n,e,t))}function Kd(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function qd(e,t){Kd(e,t),(e=e.alternate)&&Kd(e,t)}function Jd(e){if(e.tag===13||e.tag===31){var t=er(e,67108864);t!==null&&Kc(t,e,67108864),qd(e,67108864)}}function Yd(e){if(e.tag===13||e.tag===31){var t=Wc(e);t=Oe(t);var n=er(e,t);n!==null&&Kc(n,e,t),qd(e,t)}}function Xd(){return sp}function Zd(e,t,n,r){var i=Y.T;Y.T=null;var a=Bf.p;try{Bf.p=Np,$d(e,t,n,r)}finally{Bf.p=a,Y.T=i}}function Qd(e,t,n,r){var i=Y.T;Y.T=null;var a=Bf.p;try{Bf.p=Pp,$d(e,t,n,r)}finally{Bf.p=a,Y.T=i}}function $d(e,t,n,r){if(zC){var i=ef(r);if(i===null)iu(e,t,r,BC,n),rf(e,r);else if(of(i,e,t,n,r))r.stopPropagation();else if(rf(e,r),t&4&&-1<JC.indexOf(e)){for(;i!==null;){var a=Le(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=_e(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Dp(o);s.entanglements[1]|=c,o&=~c}zl(a),(Wb&(Fb|Ib))===Pb&&(Sx=mp()+Cx,Bl(0,!1))}}break;case 31:case 13:s=er(a,2),s!==null&&Kc(s,a,2),Zc(),qd(a,2)}if(a=ef(r),a===null&&iu(e,t,r,BC,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else iu(e,t,r,null,n)}}function ef(e){return e=Jt(e),tf(e)}function tf(e){if(BC=null,e=Ie(e),e!==null){var t=v(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=y(t),e!==null)return e;e=null}else if(n===31){if(e=b(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return BC=e,null}function nf(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 Np;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 Pp;case`message`:switch(hp()){case gp:return Np;case _p:return Pp;case vp:case yp:return Fp;case bp:return Ip;default:return Fp}default:return Fp}}function rf(e,t){switch(e){case`focusin`:case`focusout`:HC=null;break;case`dragenter`:case`dragleave`:UC=null;break;case`mouseover`:case`mouseout`:WC=null;break;case`pointerover`:case`pointerout`:GC.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:KC.delete(t.pointerId)}}function af(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Le(t),t!==null&&Jd(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function of(e,t,n,r,i){switch(t){case`focusin`:return HC=af(HC,e,t,n,r,i),!0;case`dragenter`:return UC=af(UC,e,t,n,r,i),!0;case`mouseover`:return WC=af(WC,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return GC.set(a,af(GC.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,KC.set(a,af(KC.get(a)||null,e,t,n,r,i)),!0}return!1}function sf(e){var t=Ie(e.target);if(t!==null){var n=v(t);if(n!==null){if(t=n.tag,t===13){if(t=y(n),t!==null){e.blockedOn=t,Ne(e.priority,function(){Yd(n)});return}}else if(t===31){if(t=b(n),t!==null){e.blockedOn=t,Ne(e.priority,function(){Yd(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function cf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ef(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;Hm!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),Hm=i,n.target.dispatchEvent(r),Hm===null&&console.error(`Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.`),Hm=null}else return t=Le(n),t!==null&&Jd(t),e.blockedOn=n,!1;t.shift()}return!0}function lf(e,t,n){cf(e)&&n.delete(t)}function uf(){VC=!1,HC!==null&&cf(HC)&&(HC=null),UC!==null&&cf(UC)&&(UC=null),WC!==null&&cf(WC)&&(WC=null),GC.forEach(lf),KC.forEach(lf)}function df(e,t){e.blockedOn===t&&(e.blockedOn=null,VC||(VC=!0,vf.unstable_scheduleCallback(vf.unstable_NormalPriority,uf)))}function ff(e){YC!==e&&(YC=e,vf.unstable_scheduleCallback(vf.unstable_NormalPriority,function(){YC===e&&(YC=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(tf(r||n)===null)continue;break}var a=Le(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),To(a,n,r,i))}}))}function pf(e){function t(t){return df(t,e)}HC!==null&&df(HC,e),UC!==null&&df(UC,e),WC!==null&&df(WC,e),GC.forEach(t),KC.forEach(t);for(var n=0;n<qC.length;n++){var r=qC[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<qC.length&&(n=qC[0],n.blockedOn===null);)sf(n),n.blockedOn===null&&qC.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[zp]||null;if(typeof a==`function`)o||ff(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[zp]||null)s=o.formAction;else if(tf(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),ff(n)}}}function mf(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function hf(e){this._internalRoot=e}function gf(e){this._internalRoot=e}function _f(e){e[Bp]&&(e._reactRootContainer?console.error(`You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.`):console.error(`You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.`))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var vf=rt(),yf=Fe(),bf=at(),xf=Object.assign,Sf=Symbol.for(`react.element`),Cf=Symbol.for(`react.transitional.element`),wf=Symbol.for(`react.portal`),Tf=Symbol.for(`react.fragment`),Ef=Symbol.for(`react.strict_mode`),Df=Symbol.for(`react.profiler`),Of=Symbol.for(`react.consumer`),kf=Symbol.for(`react.context`),Af=Symbol.for(`react.forward_ref`),jf=Symbol.for(`react.suspense`),Mf=Symbol.for(`react.suspense_list`),Nf=Symbol.for(`react.memo`),Pf=Symbol.for(`react.lazy`),Ff=Symbol.for(`react.activity`),If=Symbol.for(`react.memo_cache_sentinel`),Lf=Symbol.iterator,Rf=Symbol.for(`react.client.reference`),zf=Array.isArray,Y=yf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Bf=bf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Vf=Object.freeze({pending:!1,data:null,method:null,action:null}),Hf=[],Uf=[],Wf=-1,Gf=O(null),Kf=O(null),qf=O(null),Jf=O(null),Yf=0,Xf,Zf,Qf,$f,ep,tp,np;L.__reactDisabledLog=!0;var rp,ip,ap=!1,op=new(typeof WeakMap==`function`?WeakMap:Map),sp=null,cp=!1,lp=Object.prototype.hasOwnProperty,up=vf.unstable_scheduleCallback,dp=vf.unstable_cancelCallback,fp=vf.unstable_shouldYield,pp=vf.unstable_requestPaint,mp=vf.unstable_now,hp=vf.unstable_getCurrentPriorityLevel,gp=vf.unstable_ImmediatePriority,_p=vf.unstable_UserBlockingPriority,vp=vf.unstable_NormalPriority,yp=vf.unstable_LowPriority,bp=vf.unstable_IdlePriority,xp=vf.log,Sp=vf.unstable_setDisableYieldValue,Cp=null,wp=null,Tp=!1,Ep=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Dp=Math.clz32?Math.clz32:ge,Op=Math.log,kp=Math.LN2,Ap=256,jp=262144,Mp=4194304,Np=2,Pp=8,Fp=32,Ip=268435456,Lp=Math.random().toString(36).slice(2),Rp=`__reactFiber$`+Lp,zp=`__reactProps$`+Lp,Bp=`__reactContainer$`+Lp,Vp=`__reactEvents$`+Lp,Hp=`__reactListeners$`+Lp,Up=`__reactHandles$`+Lp,Wp=`__reactResources$`+Lp,Gp=`__reactMarker$`+Lp,Kp=new Set,qp={},Jp={},Yp={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},Xp=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]*$`),Zp={},Qp={},$p=/[\n"\\]/g,em=!1,tm=!1,nm=!1,rm=!1,im=!1,am=!1,om=[`value`,`defaultValue`],sm=!1,cm=/["'&<>\n\t]|^\s|\s$/,lm=`address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp`.split(` `),um=`applet caption html table td th marquee object template foreignObject desc title`.split(` `),dm=um.concat([`button`]),fm=`dd dt li option optgroup p rp rt`.split(` `),pm={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},mm={},hm={animation:`animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction`.split(` `),background:`backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize`.split(` `),backgroundPosition:[`backgroundPositionX`,`backgroundPositionY`],border:`borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth`.split(` `),borderBlockEnd:[`borderBlockEndColor`,`borderBlockEndStyle`,`borderBlockEndWidth`],borderBlockStart:[`borderBlockStartColor`,`borderBlockStartStyle`,`borderBlockStartWidth`],borderBottom:[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`],borderColor:[`borderBottomColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`],borderImage:[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`],borderInlineEnd:[`borderInlineEndColor`,`borderInlineEndStyle`,`borderInlineEndWidth`],borderInlineStart:[`borderInlineStartColor`,`borderInlineStartStyle`,`borderInlineStartWidth`],borderLeft:[`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`],borderRadius:[`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopLeftRadius`,`borderTopRightRadius`],borderRight:[`borderRightColor`,`borderRightStyle`,`borderRightWidth`],borderStyle:[`borderBottomStyle`,`borderLeftStyle`,`borderRightStyle`,`borderTopStyle`],borderTop:[`borderTopColor`,`borderTopStyle`,`borderTopWidth`],borderWidth:[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`],columnRule:[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`],columns:[`columnCount`,`columnWidth`],flex:[`flexBasis`,`flexGrow`,`flexShrink`],flexFlow:[`flexDirection`,`flexWrap`],font:`fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight`.split(` `),fontVariant:`fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition`.split(` `),gap:[`columnGap`,`rowGap`],grid:`gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows`.split(` `),gridArea:[`gridColumnEnd`,`gridColumnStart`,`gridRowEnd`,`gridRowStart`],gridColumn:[`gridColumnEnd`,`gridColumnStart`],gridColumnGap:[`columnGap`],gridGap:[`columnGap`,`rowGap`],gridRow:[`gridRowEnd`,`gridRowStart`],gridRowGap:[`rowGap`],gridTemplate:[`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`],listStyle:[`listStyleImage`,`listStylePosition`,`listStyleType`],margin:[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`],marker:[`markerEnd`,`markerMid`,`markerStart`],mask:`maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize`.split(` `),maskPosition:[`maskPositionX`,`maskPositionY`],outline:[`outlineColor`,`outlineStyle`,`outlineWidth`],overflow:[`overflowX`,`overflowY`],padding:[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`],placeContent:[`alignContent`,`justifyContent`],placeItems:[`alignItems`,`justifyItems`],placeSelf:[`alignSelf`,`justifySelf`],textDecoration:[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`],textEmphasis:[`textEmphasisColor`,`textEmphasisStyle`],transition:[`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`],wordWrap:[`overflowWrap`]},gm=/([A-Z])/g,_m=/^ms-/,vm=/^(?:webkit|moz|o)[A-Z]/,ym=/^-ms-/,bm=/-(.)/g,xm=/;\s*$/,Sm={},Cm={},wm=!1,Tm=!1,Em=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(` `)),Dm=`http://www.w3.org/1998/Math/MathML`,Om=`http://www.w3.org/2000/svg`,km=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`]]),Am={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},jm={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Mm={},Nm=RegExp(`^(aria)-[: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]*$`),Pm=RegExp(`^(aria)[A-Z][: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]*$`),Fm=!1,Im={},Lm=/^on./,Rm=/^on[^A-Z]/,zm=RegExp(`^(aria)-[: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]*$`),Bm=RegExp(`^(aria)[A-Z][: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]*$`),Vm=/^[\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,Hm=null,Um=null,Wm=null,Gm=!1,Km=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),qm=!1;if(Km)try{var Jm={};Object.defineProperty(Jm,"passive",{get:function(){qm=!0}}),window.addEventListener(`test`,Jm,Jm),window.removeEventListener(`test`,Jm,Jm)}catch{qm=!1}var Ym=null,Xm=null,Zm=null,Qm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$m=nn(Qm),eh=xf({},Qm,{view:0,detail:0}),th=nn(eh),nh,rh,ih,ah=xf({},eh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:an,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!==ih&&(ih&&e.type===`mousemove`?(nh=e.screenX-ih.screenX,rh=e.screenY-ih.screenY):rh=nh=0,ih=e),nh)},movementY:function(e){return`movementY`in e?e.movementY:rh}}),oh=nn(ah),sh=nn(xf({},ah,{dataTransfer:0})),ch=nn(xf({},eh,{relatedTarget:0})),lh=nn(xf({},Qm,{animationName:0,elapsedTime:0,pseudoElement:0})),uh=nn(xf({},Qm,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),dh=nn(xf({},Qm,{data:0})),fh=dh,ph={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},mh={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`},hh={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},gh=nn(xf({},eh,{key:function(e){if(e.key){var t=ph[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=$t(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?mh[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:an,charCode:function(e){return e.type===`keypress`?$t(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?$t(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),_h=nn(xf({},ah,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),vh=nn(xf({},eh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:an})),yh=nn(xf({},Qm,{propertyName:0,elapsedTime:0,pseudoElement:0})),bh=nn(xf({},ah,{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})),xh=nn(xf({},Qm,{newState:0,oldState:0})),Sh=[9,13,27,32],Ch=229,wh=Km&&`CompositionEvent`in window,Th=null;Km&&`documentMode`in document&&(Th=document.documentMode);var Eh=Km&&`TextEvent`in window&&!Th,Dh=Km&&(!wh||Th&&8<Th&&11>=Th),Oh=32,kh=String.fromCharCode(Oh),Ah=!1,jh=!1,Mh={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},Nh=null,Ph=null,Fh=!1;Km&&(Fh=dn(`input`)&&(!document.documentMode||9<document.documentMode));var Ih=typeof Object.is==`function`?Object.is:Sn,Lh=Km&&`documentMode`in document&&11>=document.documentMode,Rh=null,zh=null,Bh=null,Vh=!1,Hh={animationend:An(`Animation`,`AnimationEnd`),animationiteration:An(`Animation`,`AnimationIteration`),animationstart:An(`Animation`,`AnimationStart`),transitionrun:An(`Transition`,`TransitionRun`),transitionstart:An(`Transition`,`TransitionStart`),transitioncancel:An(`Transition`,`TransitionCancel`),transitionend:An(`Transition`,`TransitionEnd`)},Uh={},Wh={};Km&&(Wh=document.createElement(`div`).style,`AnimationEvent`in window||(delete Hh.animationend.animation,delete Hh.animationiteration.animation,delete Hh.animationstart.animation),`TransitionEvent`in window||delete Hh.transitionend.transition);var Gh=jn(`animationend`),Kh=jn(`animationiteration`),qh=jn(`animationstart`),Jh=jn(`transitionrun`),Yh=jn(`transitionstart`),Xh=jn(`transitioncancel`),Zh=jn(`transitionend`),Qh=new Map,$h=`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(` `);$h.push(`scrollEnd`);var eg=0;if(typeof performance==`object`&&typeof performance.now==`function`)var tg=performance,ng=function(){return tg.now()};else{var rg=Date;ng=function(){return rg.now()}}var ig=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&&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)},ag=`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`,og=0,sg=1,cg=2,lg=3,ug=`–\xA0`,dg=`+\xA0`,fg=` \xA0`,pg=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,mg=`Components ⚛`,hg=`Scheduler ⚛`,gg=`Blocking`,_g=!1,vg={color:`primary`,properties:null,tooltipText:``,track:mg},yg={start:-0,end:-0,detail:{devtools:vg}},bg=[`Changed Props`,``],xg=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Sg=[`Changed Props`,xg],Cg=1,wg=2,Tg=[],Eg=0,Dg=0,Og={};Object.freeze(Og);var kg=null,Ag=null,jg=0,Mg=1,Ng=2,Pg=8,Fg=16,Ig=32,Lg=!1;try{Object.preventExtensions({})}catch{Lg=!0}var Rg=new WeakMap,zg=[],Bg=0,Vg=null,Hg=0,Ug=[],Wg=0,Gg=null,Kg=1,qg=``,Jg=null,Yg=null,Xg=!1,Zg=!1,Qg=null,$g=null,e_=!1,t_=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),n_=O(null),r_=O(null),i_={},a_=null,o_=null,s_=!1,c_=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},l_=vf.unstable_scheduleCallback,u_=vf.unstable_NormalPriority,d_={$$typeof:kf,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},f_=vf.unstable_now,p_=console.createTask?console.createTask:function(){return null},m_=1,h_=2,g_=-0,__=-0,v_=-0,y_=null,b_=-1.1,x_=-0,S_=-0,C_=-1.1,w_=-1.1,T_=null,E_=!1,D_=-0,O_=-1.1,k_=null,A_=0,j_=null,M_=null,N_=-1.1,P_=null,F_=-1.1,I_=-1.1,L_=-0,R_=-1.1,z_=-1.1,B_=0,V_=null,H_=null,U_=null,W_=-1.1,G_=null,K_=-1.1,q_=-1.1,J_=-0,Y_=-0,X_=0,Z_=null,Q_=0,$_=-1.1,ev=!1,tv=!1,nv=null,rv=0,iv=0,av=null,ov=Y.S;Y.S=function(e,t){if(bx=mp(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>R_&&0>z_){R_=f_();var n=Lu(),r=Iu();(n!==K_||r!==G_)&&(K_=-1.1),W_=n,G_=r}gi(e,t)}ov!==null&&ov(e,t)};var sv=O(null),cv={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},lv=[],uv=[],dv=[],fv=[],pv=[],mv=[],hv=new Set;cv.recordUnsafeLifecycleWarnings=function(e,t){hv.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&lv.push(e),e.mode&Pg&&typeof t.UNSAFE_componentWillMount==`function`&&uv.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&dv.push(e),e.mode&Pg&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&fv.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&pv.push(e),e.mode&Pg&&typeof t.UNSAFE_componentWillUpdate==`function`&&mv.push(e))},cv.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<lv.length&&(lv.forEach(function(t){e.add(D(t)||`Component`),hv.add(t.type)}),lv=[]);var t=new Set;0<uv.length&&(uv.forEach(function(e){t.add(D(e)||`Component`),hv.add(e.type)}),uv=[]);var n=new Set;0<dv.length&&(dv.forEach(function(e){n.add(D(e)||`Component`),hv.add(e.type)}),dv=[]);var r=new Set;0<fv.length&&(fv.forEach(function(e){r.add(D(e)||`Component`),hv.add(e.type)}),fv=[]);var i=new Set;0<pv.length&&(pv.forEach(function(e){i.add(D(e)||`Component`),hv.add(e.type)}),pv=[]);var a=new Set;if(0<mv.length&&(mv.forEach(function(e){a.add(D(e)||`Component`),hv.add(e.type)}),mv=[]),0<t.size){var o=f(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
195
+
196
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
197
+
198
+ Please update the following components: %s`,o)}0<r.size&&(o=f(r),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
199
+
200
+ * Move data fetching code or side effects to componentDidUpdate.
201
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
202
+
203
+ Please update the following components: %s`,o)),0<a.size&&(o=f(a),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
204
+
205
+ * Move data fetching code or side effects to componentDidUpdate.
206
+
207
+ Please update the following components: %s`,o)),0<e.size&&(o=f(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
208
+
209
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
210
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
211
+
212
+ Please update the following components: %s`,o)),0<n.size&&(o=f(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
213
+
214
+ * Move data fetching code or side effects to componentDidUpdate.
215
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
216
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
217
+
218
+ Please update the following components: %s`,o)),0<i.size&&(o=f(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
219
+
220
+ * Move data fetching code or side effects to componentDidUpdate.
221
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
222
+
223
+ Please update the following components: %s`,o))};var gv=new Map,_v=new Set;cv.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&Pg&&(n=r),r=r.return;n===null?console.error(`Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.`):!_v.has(e.type)&&(r=gv.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],gv.set(n,r)),r.push(e))},cv.flushLegacyContextWarning=function(){gv.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(D(e)||`Component`),_v.add(e.type)});var r=f(n);V(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
224
+
225
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
226
+
227
+ Please update the following components: %s
228
+
229
+ Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},cv.discardPendingWarnings=function(){lv=[],uv=[],dv=[],fv=[],pv=[],mv=[],gv=new Map};var vv={react_stack_bottom_frame:function(e,t,n){var r=cp;cp=!0;try{return e(t,n)}finally{cp=r}}},yv=vv.react_stack_bottom_frame.bind(vv),bv={react_stack_bottom_frame:function(e){var t=cp;cp=!0;try{return e.render()}finally{cp=t}}},xv=bv.react_stack_bottom_frame.bind(bv),Sv={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){El(e,e.return,t)}}},Cv=Sv.react_stack_bottom_frame.bind(Sv),wv={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){El(e,e.return,t)}}},Tv=wv.react_stack_bottom_frame.bind(wv),Ev={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},Dv=Ev.react_stack_bottom_frame.bind(Ev),Ov={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){El(e,t,n)}}},kv=Ov.react_stack_bottom_frame.bind(Ov),Av={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},jv=Av.react_stack_bottom_frame.bind(Av),Mv={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){El(e,t,n)}}},Nv=Mv.react_stack_bottom_frame.bind(Mv),Pv={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},Fv=Pv.react_stack_bottom_frame.bind(Pv),Iv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Lv=Error(`Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),Rv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),zv={then:function(){console.error(`Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.`)}},Bv=null,Vv=!1,Hv=null,Uv=0,Wv=null,Gv,Kv=Gv=!1,qv={},Jv={},Yv={};d=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=`object`)throw Error(`React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.`);n._store.validated=1;var r=D(e),i=r||`null`;if(!qv[i]){qv[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=D(e))&&(a=`
230
+
231
+ Check the render method of \``+i+"`."),a||r&&(a=`
232
+
233
+ Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=D(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),V(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var Xv=zi(!0),Zv=zi(!1),Qv=0,$v=1,ey=2,ty=3,ny=!1,ry=!1,iy=null,ay=!1,oy=O(null),sy=O(0),cy=O(null),ly=null,uy=1,dy=2,fy=O(0),py=0,my=1,hy=2,gy=4,_y=8,vy,yy=new Set,by=new Set,xy=new Set,Sy=new Set,Cy=0,wy=null,Ty=null,Ey=null,Dy=!1,Oy=!1,ky=!1,Ay=0,jy=0,My=null,Ny=0,Py=25,X=null,Fy=null,Iy=-1,Ly=!1,Ry={readContext:Gr,use:Ca,useCallback:ua,useContext:ua,useEffect:ua,useImperativeHandle:ua,useLayoutEffect:ua,useInsertionEffect:ua,useMemo:ua,useReducer:ua,useRef:ua,useState:ua,useDebugValue:ua,useDeferredValue:ua,useTransition:ua,useSyncExternalStore:ua,useId:ua,useHostTransitionStatus:ua,useFormState:ua,useActionState:ua,useOptimistic:ua,useMemoCache:ua,useCacheRefresh:ua};Ry.useEffectEvent=ua;var zy=null,By=null,Vy=null,Hy=null,Uy=null,Wy=null,Gy=null;zy={readContext:function(e){return Gr(e)},use:Ca,useCallback:function(e,t){return X=`useCallback`,sa(),ca(t),mo(e,t)},useContext:function(e){return X=`useContext`,sa(),Gr(e)},useEffect:function(e,t){return X=`useEffect`,sa(),ca(t),ao(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,sa(),ca(n),fo(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,sa(),ca(t),ro(4,hy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,sa(),ca(t),lo(e,t)},useMemo:function(e,t){X=`useMemo`,sa(),ca(t);var n=Y.H;Y.H=Uy;try{return go(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,sa();var r=Y.H;Y.H=Uy;try{return Ea(e,t,n)}finally{Y.H=r}},useRef:function(e){return X=`useRef`,sa(),no(e)},useState:function(e){X=`useState`,sa();var t=Y.H;Y.H=Uy;try{return Ra(e)}finally{Y.H=t}},useDebugValue:function(){X=`useDebugValue`,sa()},useDeferredValue:function(e,t){return X=`useDeferredValue`,sa(),vo(e,t)},useTransition:function(){return X=`useTransition`,sa(),Oo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,sa(),Aa(e,t,n)},useId:function(){return X=`useId`,sa(),Mo()},useFormState:function(e,t){return X=`useFormState`,sa(),la(),Xa(e,t)},useActionState:function(e,t){return X=`useActionState`,sa(),Xa(e,t)},useOptimistic:function(e){return X=`useOptimistic`,sa(),za(e)},useHostTransitionStatus:jo,useMemoCache:wa,useCacheRefresh:function(){return X=`useCacheRefresh`,sa(),No()},useEffectEvent:function(e){return X=`useEffectEvent`,sa(),so(e)}},By={readContext:function(e){return Gr(e)},use:Ca,useCallback:function(e,t){return X=`useCallback`,W(),mo(e,t)},useContext:function(e){return X=`useContext`,W(),Gr(e)},useEffect:function(e,t){return X=`useEffect`,W(),ao(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,W(),fo(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,W(),ro(4,hy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,W(),lo(e,t)},useMemo:function(e,t){X=`useMemo`,W();var n=Y.H;Y.H=Uy;try{return go(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,W();var r=Y.H;Y.H=Uy;try{return Ea(e,t,n)}finally{Y.H=r}},useRef:function(e){return X=`useRef`,W(),no(e)},useState:function(e){X=`useState`,W();var t=Y.H;Y.H=Uy;try{return Ra(e)}finally{Y.H=t}},useDebugValue:function(){X=`useDebugValue`,W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,W(),vo(e,t)},useTransition:function(){return X=`useTransition`,W(),Oo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,W(),Aa(e,t,n)},useId:function(){return X=`useId`,W(),Mo()},useActionState:function(e,t){return X=`useActionState`,W(),Xa(e,t)},useFormState:function(e,t){return X=`useFormState`,W(),la(),Xa(e,t)},useOptimistic:function(e){return X=`useOptimistic`,W(),za(e)},useHostTransitionStatus:jo,useMemoCache:wa,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),No()},useEffectEvent:function(e){return X=`useEffectEvent`,W(),so(e)}},Vy={readContext:function(e){return Gr(e)},use:Ca,useCallback:function(e,t){return X=`useCallback`,W(),ho(e,t)},useContext:function(e){return X=`useContext`,W(),Gr(e)},useEffect:function(e,t){X=`useEffect`,W(),io(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,W(),po(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,W(),io(4,hy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,W(),io(4,gy,e,t)},useMemo:function(e,t){X=`useMemo`,W();var n=Y.H;Y.H=Wy;try{return _o(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,W();var r=Y.H;Y.H=Wy;try{return Da(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,W(),ba().memoizedState},useState:function(){X=`useState`,W();var e=Y.H;Y.H=Wy;try{return Da(Ta)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,W(),yo(e,t)},useTransition:function(){return X=`useTransition`,W(),ko()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,W(),ja(e,t,n)},useId:function(){return X=`useId`,W(),ba().memoizedState},useFormState:function(e){return X=`useFormState`,W(),la(),Za(e)},useActionState:function(e){return X=`useActionState`,W(),Za(e)},useOptimistic:function(e,t){return X=`useOptimistic`,W(),Ba(e,t)},useHostTransitionStatus:jo,useMemoCache:wa,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),ba().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,W(),co(e)}},Hy={readContext:function(e){return Gr(e)},use:Ca,useCallback:function(e,t){return X=`useCallback`,W(),ho(e,t)},useContext:function(e){return X=`useContext`,W(),Gr(e)},useEffect:function(e,t){X=`useEffect`,W(),io(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,W(),po(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,W(),io(4,hy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,W(),io(4,gy,e,t)},useMemo:function(e,t){X=`useMemo`,W();var n=Y.H;Y.H=Gy;try{return _o(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,W();var r=Y.H;Y.H=Gy;try{return ka(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,W(),ba().memoizedState},useState:function(){X=`useState`,W();var e=Y.H;Y.H=Gy;try{return ka(Ta)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,W(),bo(e,t)},useTransition:function(){return X=`useTransition`,W(),Ao()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,W(),ja(e,t,n)},useId:function(){return X=`useId`,W(),ba().memoizedState},useFormState:function(e){return X=`useFormState`,W(),la(),eo(e)},useActionState:function(e){return X=`useActionState`,W(),eo(e)},useOptimistic:function(e,t){return X=`useOptimistic`,W(),Ha(e,t)},useHostTransitionStatus:jo,useMemoCache:wa,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),ba().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,W(),co(e)}},Uy={readContext:function(e){return l(),Gr(e)},use:function(e){return c(),Ca(e)},useCallback:function(e,t){return X=`useCallback`,c(),sa(),mo(e,t)},useContext:function(e){return X=`useContext`,c(),sa(),Gr(e)},useEffect:function(e,t){return X=`useEffect`,c(),sa(),ao(e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),sa(),fo(e,t,n)},useInsertionEffect:function(e,t){X=`useInsertionEffect`,c(),sa(),ro(4,hy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),sa(),lo(e,t)},useMemo:function(e,t){X=`useMemo`,c(),sa();var n=Y.H;Y.H=Uy;try{return go(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),sa();var r=Y.H;Y.H=Uy;try{return Ea(e,t,n)}finally{Y.H=r}},useRef:function(e){return X=`useRef`,c(),sa(),no(e)},useState:function(e){X=`useState`,c(),sa();var t=Y.H;Y.H=Uy;try{return Ra(e)}finally{Y.H=t}},useDebugValue:function(){X=`useDebugValue`,c(),sa()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),sa(),vo(e,t)},useTransition:function(){return X=`useTransition`,c(),sa(),Oo()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),sa(),Aa(e,t,n)},useId:function(){return X=`useId`,c(),sa(),Mo()},useFormState:function(e,t){return X=`useFormState`,c(),sa(),Xa(e,t)},useActionState:function(e,t){return X=`useActionState`,c(),sa(),Xa(e,t)},useOptimistic:function(e){return X=`useOptimistic`,c(),sa(),za(e)},useMemoCache:function(e){return c(),wa(e)},useHostTransitionStatus:jo,useCacheRefresh:function(){return X=`useCacheRefresh`,sa(),No()},useEffectEvent:function(e){return X=`useEffectEvent`,c(),sa(),so(e)}},Wy={readContext:function(e){return l(),Gr(e)},use:function(e){return c(),Ca(e)},useCallback:function(e,t){return X=`useCallback`,c(),W(),ho(e,t)},useContext:function(e){return X=`useContext`,c(),W(),Gr(e)},useEffect:function(e,t){X=`useEffect`,c(),W(),io(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),W(),po(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,c(),W(),io(4,hy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),W(),io(4,gy,e,t)},useMemo:function(e,t){X=`useMemo`,c(),W();var n=Y.H;Y.H=Wy;try{return _o(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),W();var r=Y.H;Y.H=Wy;try{return Da(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,c(),W(),ba().memoizedState},useState:function(){X=`useState`,c(),W();var e=Y.H;Y.H=Wy;try{return Da(Ta)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,c(),W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),W(),yo(e,t)},useTransition:function(){return X=`useTransition`,c(),W(),ko()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),W(),ja(e,t,n)},useId:function(){return X=`useId`,c(),W(),ba().memoizedState},useFormState:function(e){return X=`useFormState`,c(),W(),Za(e)},useActionState:function(e){return X=`useActionState`,c(),W(),Za(e)},useOptimistic:function(e,t){return X=`useOptimistic`,c(),W(),Ba(e,t)},useMemoCache:function(e){return c(),wa(e)},useHostTransitionStatus:jo,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),ba().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,c(),W(),co(e)}},Gy={readContext:function(e){return l(),Gr(e)},use:function(e){return c(),Ca(e)},useCallback:function(e,t){return X=`useCallback`,c(),W(),ho(e,t)},useContext:function(e){return X=`useContext`,c(),W(),Gr(e)},useEffect:function(e,t){X=`useEffect`,c(),W(),io(2048,_y,e,t)},useImperativeHandle:function(e,t,n){return X=`useImperativeHandle`,c(),W(),po(e,t,n)},useInsertionEffect:function(e,t){return X=`useInsertionEffect`,c(),W(),io(4,hy,e,t)},useLayoutEffect:function(e,t){return X=`useLayoutEffect`,c(),W(),io(4,gy,e,t)},useMemo:function(e,t){X=`useMemo`,c(),W();var n=Y.H;Y.H=Wy;try{return _o(e,t)}finally{Y.H=n}},useReducer:function(e,t,n){X=`useReducer`,c(),W();var r=Y.H;Y.H=Wy;try{return ka(e,t,n)}finally{Y.H=r}},useRef:function(){return X=`useRef`,c(),W(),ba().memoizedState},useState:function(){X=`useState`,c(),W();var e=Y.H;Y.H=Wy;try{return ka(Ta)}finally{Y.H=e}},useDebugValue:function(){X=`useDebugValue`,c(),W()},useDeferredValue:function(e,t){return X=`useDeferredValue`,c(),W(),bo(e,t)},useTransition:function(){return X=`useTransition`,c(),W(),Ao()},useSyncExternalStore:function(e,t,n){return X=`useSyncExternalStore`,c(),W(),ja(e,t,n)},useId:function(){return X=`useId`,c(),W(),ba().memoizedState},useFormState:function(e){return X=`useFormState`,c(),W(),eo(e)},useActionState:function(e){return X=`useActionState`,c(),W(),eo(e)},useOptimistic:function(e,t){return X=`useOptimistic`,c(),W(),Ha(e,t)},useMemoCache:function(e){return c(),wa(e)},useHostTransitionStatus:jo,useCacheRefresh:function(){return X=`useCacheRefresh`,W(),ba().memoizedState},useEffectEvent:function(e){return X=`useEffectEvent`,c(),W(),co(e)}};var Ky={},qy=new Set,Jy=new Set,Yy=new Set,Xy=new Set,Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set,nb=new Set;Object.freeze(Ky);var rb={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Wc(e),i=Ui(r);i.payload=t,n!=null&&(Ho(n),i.callback=n),t=Wi(e,i,r),t!==null&&(Zr(r,`this.setState()`,e),Kc(t,e,r),Gi(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Wc(e),i=Ui(r);i.tag=$v,i.payload=t,n!=null&&(Ho(n),i.callback=n),t=Wi(e,i,r),t!==null&&(Zr(r,`this.replaceState()`,e),Kc(t,e,r),Gi(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Wc(e),r=Ui(n);r.tag=ey,t!=null&&(Ho(t),r.callback=t),t=Wi(e,r,n),t!==null&&(Zr(n,`this.forceUpdate()`,e),Kc(t,e,n),Gi(t,e,n))}},ib=null,ab=null,ob=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),sb=!1,cb={},lb={},ub={},db={},fb=!1,pb={},mb={},hb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},gb=!1,_b=null;_b=new Set;var vb=!1,yb=!1,bb=!1,xb=typeof WeakSet==`function`?WeakSet:Set,Sb=null,Cb=null,wb=null,Tb=null,Eb=!1,Db=null,Ob=!1,kb=8192,Ab={getCacheForType:function(e){var t=Gr(d_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Gr(d_).controller.signal},getOwner:function(){return sp}};if(typeof Symbol==`function`&&Symbol.for){var jb=Symbol.for;jb(`selector.component`),jb(`selector.has_pseudo_class`),jb(`selector.role`),jb(`selector.test_id`),jb(`selector.text`)}var Mb=[],Nb=typeof WeakMap==`function`?WeakMap:Map,Pb=0,Fb=2,Ib=4,Lb=0,Rb=1,zb=2,Bb=3,Vb=4,Hb=6,Ub=5,Wb=Pb,Gb=null,Kb=null,qb=0,Jb=0,Yb=1,Xb=2,Zb=3,Qb=4,$b=5,ex=6,tx=7,nx=8,rx=9,ix=Jb,ax=null,ox=!1,sx=!1,cx=!1,lx=0,ux=Lb,dx=0,fx=0,px=0,mx=0,hx=0,gx=null,_x=null,vx=!1,yx=0,bx=0,xx=300,Sx=1/0,Cx=500,wx=null,Tx=null,Ex=null,Dx=0,Ox=1,kx=2,Ax=3,jx=0,Mx=1,Nx=2,Px=3,Fx=4,Ix=5,Lx=0,Rx=null,zx=null,Bx=0,Vx=0,Hx=-0,Ux=null,Wx=null,Gx=null,Kx=Dx,qx=null,Jx=50,Yx=0,Xx=null,Zx=!1,Qx=!1,$x=50,eS=0,tS=null,nS=!1,rS=null,iS=!1,aS=new Set,oS={},sS=null,cS=null,lS=!1,uS=!1,dS=!1,fS=!1,pS=0,mS={};(function(){for(var e=0;e<$h.length;e++){var t=$h[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),Mn(n,`on`+t)}Mn(Gh,`onAnimationEnd`),Mn(Kh,`onAnimationIteration`),Mn(qh,`onAnimationStart`),Mn(`dblclick`,`onDoubleClick`),Mn(`focusin`,`onFocus`),Mn(`focusout`,`onBlur`),Mn(Jh,`onTransitionRun`),Mn(Yh,`onTransitionStart`),Mn(Xh,`onTransitionCancel`),Mn(Zh,`onTransitionEnd`)})(),Be(`onMouseEnter`,[`mouseout`,`mouseover`]),Be(`onMouseLeave`,[`mouseout`,`mouseover`]),Be(`onPointerEnter`,[`pointerout`,`pointerover`]),Be(`onPointerLeave`,[`pointerout`,`pointerover`]),ze(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),ze(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),ze(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),ze(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),ze(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),ze(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var hS=`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(` `),gS=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(hS)),_S=`_reactListening`+Math.random().toString(36).slice(2),vS=!1,yS=!1,bS=!1,xS=!1,SS=!1,CS=!1,wS=!1,TS={},ES=/\r\n?/g,DS=/\u0000|\uFFFD/g,OS=`http://www.w3.org/1999/xlink`,kS=`http://www.w3.org/XML/1998/namespace`,AS=`javascript:throw new Error('React form unexpectedly submitted.')`,jS=`suppressHydrationWarning`,MS=`&`,NS=`/&`,PS=`$`,FS=`/$`,IS=`$?`,LS=`$~`,RS=`$!`,zS=`html`,BS=`body`,VS=`head`,HS=`F!`,US=`F`,WS=`loading`,GS=`style`,KS=0,qS=1,JS=2,YS=null,XS=null,ZS={dialog:!0,webview:!0},QS=null,$S=void 0,eC=typeof setTimeout==`function`?setTimeout:void 0,tC=typeof clearTimeout==`function`?clearTimeout:void 0,nC=-1,rC=typeof Promise==`function`?Promise:void 0,iC=typeof queueMicrotask==`function`?queueMicrotask:rC===void 0?eC:function(e){return rC.resolve(null).then(e).catch(Ru)},aC=null,oC=0,sC=1,cC=2,lC=3,uC=4,dC=new Map,fC=new Set,Z=Bf.d;Bf.d={f:function(){var e=Z.f(),t=Zc();return e||t},r:function(e){var t=Le(e);t!==null&&t.tag===5&&t.type===`form`?Do(t):Z.r(e)},D:function(e){Z.D(e),bd(`dns-prefetch`,e,null)},C:function(e,t){Z.C(e,t),bd(`preconnect`,e,t)},L:function(e,t,n){Z.L(e,t,n);var r=pC;if(r&&e&&t){var i=`link[rel="preload"][as="`+$e(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+$e(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+$e(n.imageSizes)+`"]`)):i+=`[href="`+$e(e)+`"]`;var a=i;switch(t){case`style`:a=Cd(e);break;case`script`:a=Dd(e)}dC.has(a)||(e=xf({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),dC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(wd(a))||t===`script`&&r.querySelector(Od(a))||(t=r.createElement(`link`),_u(t,`link`,e),Re(t),r.head.appendChild(t)))}},m:function(e,t){Z.m(e,t);var n=pC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+$e(r)+`"][href="`+$e(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Dd(e)}if(!dC.has(a)&&(e=xf({rel:`modulepreload`,href:e},t),dC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Od(a)))return}r=n.createElement(`link`),_u(r,`link`,e),Re(r),n.head.appendChild(r)}}},X:function(e,t){Z.X(e,t);var n=pC;if(n&&e){var r=U(n).hoistableScripts,i=Dd(e),a=r.get(i);a||(a=n.querySelector(Od(i)),a||(e=xf({src:e,async:!0},t),(t=dC.get(i))&&Md(e,t),a=n.createElement(`script`),Re(a),_u(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){Z.S(e,t,n);var r=pC;if(r&&e){var i=U(r).hoistableStyles,a=Cd(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:oC,preload:null};if(o=r.querySelector(wd(a)))s.loading=sC|uC;else{e=xf({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=dC.get(a))&&jd(e,n);var c=o=r.createElement(`link`);Re(c),_u(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=sC}),c.addEventListener(`error`,function(){s.loading|=cC}),s.loading|=uC,Ad(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){Z.M(e,t);var n=pC;if(n&&e){var r=U(n).hoistableScripts,i=Dd(e),a=r.get(i);a||(a=n.querySelector(Od(i)),a||(e=xf({src:e,async:!0,type:`module`},t),(t=dC.get(i))&&Md(e,t),a=n.createElement(`script`),Re(a),_u(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var pC=typeof document>`u`?null:document,mC=null,hC=6e4,gC=800,_C=500,vC=0,yC=null,bC=null,xC=Vf,SC={$$typeof:kf,Provider:null,Consumer:null,_currentValue:xC,_currentValue2:xC,_threadCount:0},CC=`%c%s%c`,wC=`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,TC=``,EC=` `,DC=Function.prototype.bind,OC=!1,kC=null,AC=null,jC=null,MC=null,NC=null,PC=null,FC=null,IC=null,LC=null,RC=null;kC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=xf({},e.memoizedProps),i=er(e,2),i!==null&&Kc(i,e,2))},AC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=xf({},e.memoizedProps),r=er(e,2),r!==null&&Kc(r,e,2))},jC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=xf({},e.memoizedProps),i=er(e,2),i!==null&&Kc(i,e,2))},MC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=er(e,2),t!==null&&Kc(t,e,2)},NC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=er(e,2),t!==null&&Kc(t,e,2)},PC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=er(e,2),t!==null&&Kc(t,e,2)},FC=function(e){var t=er(e,2);t!==null&&Kc(t,e,2)},IC=function(e){var t=xe(),n=er(e,t);n!==null&&Kc(n,e,t)},LC=function(e){s=e},RC=function(e){o=e};var zC=!0,BC=null,VC=!1,HC=null,UC=null,WC=null,GC=new Map,KC=new Map,qC=[],JC=`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(` `),YC=null;if(gf.prototype.render=hf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):_(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;Gd(r,Wc(r),n,t,null,null)},gf.prototype.unmount=hf.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(Wb&(Fb|Ib))!==Pb&&console.error(`Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.`),Gd(e.current,2,null,e,null,null),Zc(),t[Bp]=null}},gf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Me();e={blockedOn:null,target:e,priority:t};for(var n=0;n<qC.length&&t!==0&&t<qC[n].priority;n++);qC.splice(n,0,e),n===0&&sf(e)}},(function(){var e=yf.version;if(e!==`19.2.8`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
234
+ - react: `+(e+`
235
+ - react-dom: 19.2.8
236
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills`),Bf.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=S(t),e=e===null?null:C(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:Y,reconcilerVersion:`19.2.8`};return e.overrideHookState=kC,e.overrideHookStateDeletePath=AC,e.overrideHookStateRenamePath=jC,e.overrideProps=MC,e.overridePropsDeletePath=NC,e.overridePropsRenamePath=PC,e.scheduleUpdate=FC,e.scheduleRetry=IC,e.setErrorHandler=LC,e.setSuspenseHandler=RC,e.scheduleRefresh=h,e.scheduleRoot=m,e.setRefreshHandler=g,e.getCurrentFiber=Xd,me(e)})()&&Km&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var XC=window.location.protocol;/^(https?|file):$/.test(XC)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(XC===`file:`?`
237
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!_(e))throw Error(`Target container is not a DOM element.`);_f(e);var n=!1,r=``,i=qo,a=Jo,o=Yo;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===Cf&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
238
+
239
+ let root = createRoot(domContainer);
240
+ root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=Ud(e,1,!1,null,null,n,r,null,i,a,o,mf),e[Bp]=t.current,nu(e),new hf(t)},e.hydrateRoot=function(e,t,n){if(!_(e))throw Error(`Target container is not a DOM element.`);_f(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=qo,o=Jo,s=Yo,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=Ud(e,1,!0,t,n??null,r,i,c,a,o,s,mf),t.context=Wd(null),n=t.current,r=Wc(n),r=Oe(r),i=Ui(r),i.callback=null,Wi(n,i,r),Zr(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,Ce(t,n),zl(t),e[Bp]=t.current,nu(e),new gf(t)},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),st=s(((e,t)=>{t.exports=ot()})),ct=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,lt=/^[\\/]{2}/;function ut(e,t){return t+e.replace(/\\/g,`/`)}var dt=`popstate`;function ft(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function pt(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return vt(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:yt(t)}return xt(t,n,null,e)}function mt(e,t){if(e===!1||e==null)throw Error(t)}function ht(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function gt(){return Math.random().toString(36).substring(2,10)}function _t(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function vt(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?bt(t):t,state:n,key:t&&t.key||r||gt(),mask:i}}function yt({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function bt(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function xt(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=ft(e)?e:vt(h.location,e,t);n&&n(r,e),l=u()+1;let d=_t(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=ft(e)?e:vt(h.location,e,t);n&&n(r,e),l=u();let i=_t(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return St(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(dt,d),c=e,()=>{i.removeEventListener(dt,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function St(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),mt(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:yt(t);return i=i.replace(/ $/,`%20`),!n&&lt.test(i)&&(i=r+i),new URL(i,r)}var Ct=class{#e=new Map;constructor(e){if(e)for(let[t,n]of e)this.set(t,n)}get(e){if(this.#e.has(e))return this.#e.get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw Error(`No value found for context`)}set(e,t){this.#e.set(e,t)}},wt=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function Tt(e){return wt.has(e)}var Et=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`middleware`,`children`]);function Dt(e){return Et.has(e)}function Ot(e){return e.index===!0}function kt(e){let t={};return e.Component&&(e.element&&ht(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:H.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&ht(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:H.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&ht(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:H.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}function At(e,t=kt,n=[],r={},i=!1){return e.map((e,a)=>{let o=[...n,String(a)],s=typeof e.id==`string`?e.id:o.join(`-`);if(mt(e.index!==!0||!e.children,`Cannot specify children on an index route`),mt(i||!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),Ot(e)){let n={...e,id:s};return r[s]=jt(n,t(n)),n}else{let n={...e,id:s,children:void 0};return r[s]=jt(n,t(n)),e.children&&(n.children=At(e.children,t,o,r,i)),n}})}function jt(e,t){return Object.assign(e,{...t,...typeof t.lazy==`object`&&t.lazy!=null?{lazy:{...e.lazy,...t.lazy}}:{}})}function Mt(e,t,n=`/`){return Nt(e,t,n,!1)}function Nt(e,t,n,r,i){let a=nn((typeof t==`string`?bt(t):t).pathname||`/`,n);if(a==null)return null;let o=i??Ft(e),s=null,c=tn(a);for(let e=0;s==null&&e<o.length;++e)s=Xt(o[e],c,r);return s}function Pt(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,loaderData:t[n.id],handle:n.handle}}function Ft(e){let t=It(e);return Rt(t),t}function It(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;mt(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=pn([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(mt(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),It(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:Jt(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=en(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Lt(e.path))a(e,t,!0,n)}),t}function Lt(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Lt(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function Rt(e){e.sort((e,t)=>e.score===t.score?Yt(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var zt=/^:[\w-]+$/,Bt=/^:[\w-]+/,Vt=3.5,Ht=3,Ut=2,Wt=1,Gt=10,Kt=-2,qt=e=>e===`*`;function Jt(e,t){let n=e.split(`/`),r=n.length;return n.some(qt)&&(r+=Kt),t&&(r+=Ut),n.filter(e=>!qt(e)).reduce((e,t)=>e+(zt.test(t)?Ht:Bt.test(t)?Vt:t===``?Wt:Gt),r)}function Yt(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Xt(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?$t(u,l,s.matcher,s.compiledParams):Qt(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Qt({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:pn([a,d.pathname]),pathnameBase:hn(pn([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=pn([a,d.pathnameBase]))}return o}function Zt(e,t={}){let n=e;n.endsWith(`*`)&&n!==`*`&&!n.endsWith(`/*`)&&(ht(!1,`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,`/*`)}".`),n=n.replace(/\*$/,`/*`));let r=n.startsWith(`/`)?`/`:``,i=e=>e==null?``:typeof e==`string`?e:String(e);return r+n.split(/\/+/).map((e,n,r)=>{if(n===r.length-1&&e===`*`)return i(t[`*`]);let a=e.match(/^:([\w-]+)(\??)(.*)/);if(a){let[,e,n,r]=a,o=t[e];return mt(n===`?`||o!=null,`Missing ":${e}" param`),encodeURIComponent(i(o))+r}return e.replace(/\?$/g,``)}).filter(e=>!!e).join(`/`)}function Qt(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=en(e.path,e.caseSensitive,e.end);return $t(e,t,n,r)}function $t(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let i=s[r];return n&&!i?e[t]=void 0:e[t]=(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function en(e,t=!1,n=!0){ht(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(?=\/|$|\()/g,`(?:/$1)?`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function tn(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return ht(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function nn(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function rn({basename:e,pathname:t}){return t===`/`?e:pn([e,t])}var an=e=>ct.test(e);function on(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?bt(e):e,a;return n?(n=fn(n),a=n.startsWith(`/`)?sn(n.substring(1),`/`):sn(n,t)):a=t,{pathname:a,search:gn(r),hash:_n(i)}}function sn(e,t){let n=mn(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function cn(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function ln(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function un(e){let t=ln(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function dn(e,t,n,r=!1){let i;typeof e==`string`?i=bt(e):(i={...e},mt(!i.pathname||!i.pathname.includes(`?`),cn(`?`,`pathname`,`search`,i)),mt(!i.pathname||!i.pathname.includes(`#`),cn(`#`,`pathname`,`hash`,i)),mt(!i.search||!i.search.includes(`#`),cn(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=on(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var fn=e=>e.replace(/[\\/]{2,}/g,`/`),pn=e=>fn(e.join(`/`)),mn=e=>e.replace(/\/+$/,``),hn=e=>mn(e).replace(/^\/*/,`/`),gn=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,_n=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,vn=(e,t=302)=>{let n=t;typeof n==`number`?n={status:n}:n.status===void 0&&(n.status=302);let r=new Headers(n.headers);return r.set(`Location`,e),new Response(null,{...n,headers:r})},yn=[`EvalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`],bn=class{status;statusText;data;error;internal;constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function xn(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Sn(e){return pn(e.map(e=>e.route.path).filter(Boolean))||`/`}function Cn(e,t){let n=new URL(typeof e==`string`||e instanceof URL?e:e.url),r=typeof t==`string`?bt(t):t;if(n.pathname=r.pathname||`/`,r.search){let e=new URLSearchParams(r.search),t=e.getAll(`index`);e.delete(`index`);for(let n of t.filter(Boolean))e.append(`index`,n);let i=e.toString();n.search=i?`?${i}`:``}else n.search=``;return n.hash=r.hash||``,n}var wn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function Tn(e,t){let n=e;if(typeof n!=`string`||!ct.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(wn)try{let e=new URL(window.location.href),r=lt.test(n)?new URL(ut(n,e.protocol)):new URL(n),a=nn(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{ht(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}var En=Symbol(`Uninstrumented`),Dn=new WeakMap;function On(e,t){let n={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(e=>e({id:t.id,index:t.index,path:t.path,instrument(e){e.lazy!=null&&n.lazy.push(e.lazy),e[`lazy.loader`]!=null&&n[`lazy.loader`].push(e[`lazy.loader`]),e[`lazy.action`]!=null&&n[`lazy.action`].push(e[`lazy.action`]),e[`lazy.middleware`]!=null&&n[`lazy.middleware`].push(e[`lazy.middleware`]),e.middleware!=null&&n.middleware.push(e.middleware),e.loader!=null&&n.loader.push(e.loader),e.action!=null&&n.action.push(e.action)}}));let r={};if(typeof t.lazy==`function`&&n.lazy.length>0){let e=t.lazy;r.lazy=async(...t)=>Pn(await Fn(n.lazy,void 0,()=>e(...t),In))}if(typeof t.lazy==`object`){let e=t.lazy;if(typeof e.middleware==`function`&&n[`lazy.middleware`].length>0){let t=e.middleware;r.lazy=Object.assign(r.lazy||{},{middleware:async(...e)=>Pn(await Fn(n[`lazy.middleware`],void 0,()=>t(...e),In))})}if(typeof e.loader==`function`&&n[`lazy.loader`].length>0){let t=e.loader;r.lazy=Object.assign(r.lazy||{},{loader:async(...e)=>Pn(await Fn(n[`lazy.loader`],void 0,()=>t(...e),In))})}if(typeof e.action==`function`&&n[`lazy.action`].length>0){let t=e.action;r.lazy=Object.assign(r.lazy||{},{action:async(...e)=>Pn(await Fn(n[`lazy.action`],void 0,()=>t(...e),In))})}}if(typeof t.loader==`function`&&n.loader.length>0){let e=An(t.loader),i=async(...t)=>Pn(await Fn(n.loader,Ln(t[0]),()=>e(...t),In));e.hydrate===!0&&(i.hydrate=!0),jn(i,e),r.loader=i}if(typeof t.action==`function`&&n.action.length>0){let e=An(t.action),i=async(...t)=>Pn(await Fn(n.action,Ln(t[0]),()=>e(...t),In));jn(i,e),r.action=i}return t.middleware&&t.middleware.length>0&&n.middleware.length>0&&(r.middleware=t.middleware.map(e=>{let t=An(e),r=async(...e)=>Pn(await Fn(n.middleware,Ln(e[0]),()=>t(...e),In));return jn(r,t),r})),r}function kn(e,t){let n={navigate:[],fetch:[]};if(t.forEach(e=>e({instrument(e){e.navigate!=null&&n.navigate.push(e.navigate),e.fetch!=null&&n.fetch.push(e.fetch)}})),n.navigate.length>0){let t=An(e.navigate),r=async(...r)=>{let[i,a]=r,o,s={to:typeof i==`number`||typeof i==`string`?i:i?yt(i):`.`,...Rn(e,a??{})};return Pn(await Fn(n.navigate,s,async()=>{if(typeof i==`number`)return await t(...r);let n=Mn(e,e=>{o=e});try{return await t(...r)}finally{n()}},e=>({...In(e),meta:o})))};jn(r,t),e.navigate=r}if(n.fetch.length>0){let t=An(e.fetch),r=async(...r)=>{let[i,a,o,s]=r,c;return Pn(await Fn(n.fetch,{href:o??`.`,fetcherKey:i,...Rn(e,s??{})},async()=>{let n=Mn(e,e=>{c=e});try{return await t(...r)}finally{n()}},e=>({...In(e),meta:c})))};jn(r,t),e.fetch=r}return e}function An(e){return e[En]??e}function jn(e,t){e[En]=t}function Mn(e,t){return Dn.set(e,t),()=>{Dn.get(e)===t&&Dn.delete(e)}}function Nn(e){let t=Dn.get(e);return Dn.delete(e),t}function Pn(e){if(e.type===`error`)throw e.value;return e.value}async function Fn(e,t,n,r,i={result:null,innerResult:null},a=e.length-1){let o=e[a];if(o){let s,c=async()=>(s?console.error(`You cannot call instrumented handlers more than once`):s=Fn(e,t,n,r,i,a-1),await s,mt(i.innerResult,`Expected an inner result`),i.innerResult);try{await o(c,t)}catch(e){console.error(`An instrumentation function threw an error:`,e)}s||await c(),await s}else{try{i.result={type:`success`,value:await n()}}catch(e){i.result={type:`error`,value:e}}i.innerResult=r(i.result,t)}return i.result?i.result:(i.result={type:`error`,value:Error(`No result assigned in instrumentation chain.`)},i.innerResult=r(i.result,t),i.result)}function In(e){return e.type===`error`&&e.value instanceof Error?{status:`error`,error:e.value}:{status:`success`,error:void 0}}function Ln(e){let{request:t,context:n,params:r}=e;return{...e,request:zn(t),params:{...r},context:Bn(n)}}function Rn(e,t){return{currentUrl:yt(e.state.location),...`formMethod`in t?{formMethod:t.formMethod}:{},...`formEncType`in t?{formEncType:t.formEncType}:{},...`formData`in t?{formData:t.formData}:{},...`body`in t?{body:t.body}:{}}}function zn(e){return{method:e.method,url:e.url,headers:{get:(...t)=>e.headers.get(...t)}}}function Bn(e){return{get:t=>e.get(t)}}var Vn=[`POST`,`PUT`,`PATCH`,`DELETE`],Hn=new Set(Vn),Un=[`GET`,...Vn],Wn=new Set(Un),Gn=new Set([301,302,303,307,308]),Kn=new Set([307,308]),qn={state:`idle`,location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Jn={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Yn={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},Xn=`remix-router-transitions`,Zn=Symbol(`ResetLoaderData`),Qn=class{#e;#t;#n;#r;constructor(e){this.#e=e,this.#t=Ft(e)}get stableRoutes(){return this.#e}get activeRoutes(){return this.#n??this.#e}get branches(){return this.#r??this.#t}get hasHMRRoutes(){return this.#n!=null}setRoutes(e){this.#e=e,this.#t=Ft(e)}setHmrRoutes(e){this.#n=e,this.#r=Ft(e)}commitHmrRoutes(){this.#n&&(this.#e=this.#n,this.#t=this.#r,this.#n=void 0,this.#r=void 0)}};function $n(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0;mt(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let r=e.hydrationRouteProperties||[],i=e.mapRouteProperties,a=i||(()=>({}));if(e.instrumentations){let t=e.instrumentations;a=e=>({...i?.(e),...On(t.map(e=>e.route).filter(Boolean),e)})}let o={},s=new Qn(At(e.routes,a,void 0,o)),c=e.basename||`/`;c.startsWith(`/`)||(c=`/${c}`);let l=e.dataStrategy||gr,u={...e.future},d=null,f=new Set,p=null,m=null,h=null,g=null,_=e.hydrationData!=null,v=Nt(s.activeRoutes,e.history.location,c,!1,s.branches),y=!1,b=null,x,S;if(v==null&&!e.patchRoutesOnNavigation){let t=Br(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=zr(s.activeRoutes);x=!0,S=!x,v=n,b={[r.id]:t}}else if(v&&!e.hydrationData&&Be(v,s.activeRoutes,e.history.location.pathname).active&&(v=null),!v){x=!1,S=!x,v=[];let t=Be(null,s.activeRoutes,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}else if(v.some(e=>e.route.lazy))x=!1,S=!x;else if(!v.some(e=>ir(e.route)))x=!0,S=!x;else{let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null,r=v;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);r=r.slice(0,e+1)}S=!1,x=!0,r.forEach(e=>{let r=ar(e.route,t,n);S||=r.renderFallback,x&&=!r.shouldLoad})}let C,w={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,renderFallback:S,navigation:qn,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},T=`POP`,E=null,D=!1,O,k=!1,A=new Map,j=null,M=!1,N=!1,P=new Set,F=new Map,I=0,L=-1,R=new Map,ee=new Set,te=new Map,z=new Map,ne=new Set,re=new Map,B,ie=null;function ae(){if(d=e.history.listen(({action:t,location:n,delta:r})=>{if(B){B(),B=void 0;return}ht(re.size===0||r!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let i=Ie({currentLocation:w.location,nextLocation:n,historyAction:t});if(i&&r!=null){let t=new Promise(e=>{B=e});e.history.go(r*-1),Fe(i,{state:`blocked`,location:n,proceed(){Fe(i,{state:`proceeding`,proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(r))},reset(){let e=new Map(w.blockers);e.set(i,Yn),se({blockers:e})}}),E?.resolve(),E=null;return}return de(t,n)}),n){di(t,A);let e=()=>fi(t,A);t.addEventListener(`pagehide`,e),j=()=>t.removeEventListener(`pagehide`,e)}return w.initialized||de(`POP`,w.location,{initialHydration:!0}),C}function oe(){d&&d(),j&&j(),f.clear(),O&&O.abort(),w.fetchers.forEach((e,t)=>De(w.fetchers,t)),w.blockers.forEach((e,t)=>Pe(t))}function V(e){if(f.add(e),p){let{newErrors:t}=p;p=null,e(w,{deletedFetchers:[],newErrors:t,viewTransitionOpts:void 0,flushSync:!1})}return()=>f.delete(e)}function se(e,t={}){e.matches&&=e.matches.map(e=>{let t=o[e.route.id],n=e.route;return n.element!==t.element||n.errorElement!==t.errorElement||n.hydrateFallbackElement!==t.hydrateFallbackElement?{...e,route:t}:e}),w={...w,...e};let n=[],r=[];w.fetchers.forEach((e,t)=>{e.state===`idle`&&(ne.has(t)?n.push(t):r.push(t))}),ne.forEach(e=>{!w.fetchers.has(e)&&!F.has(e)&&n.push(e)}),f.size===0&&(p={newErrors:e.errors??null}),[...f].forEach(r=>r(w,{deletedFetchers:n,newErrors:e.errors??null,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),n.forEach(e=>De(w.fetchers,e)),r.forEach(e=>w.fetchers.delete(e))}function ce(t,n,{flushSync:r}={}){let i=w.actionData!=null&&w.navigation.formMethod!=null&&ti(w.navigation.formMethod)&&w.navigation.state===`loading`&&t.state?._isRedirect!==!0,a;a=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:i?w.actionData:null;let o=n.loaderData?Ir(w.loaderData,n.loaderData,n.matches||[],n.errors):w.loaderData,c=w.blockers;c.size>0&&!M&&(c=new Map(c),c.forEach((e,t)=>c.set(t,Yn)));let l=!M&&ze(t,n.matches||w.matches),u=D===!0||w.navigation.formMethod!=null&&ti(w.navigation.formMethod)&&t.state?._isRedirect!==!0;s.commitHmrRoutes(),M||T===`POP`||(T===`PUSH`?e.history.push(t,t.state):T===`REPLACE`&&e.history.replace(t,t.state));let d;if(T===`POP`){let e=A.get(w.location.pathname);e&&e.has(t.pathname)?d={currentLocation:w.location,nextLocation:t}:A.has(t.pathname)&&(d={currentLocation:t,nextLocation:w.location})}else if(k){let e=A.get(w.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),A.set(w.location.pathname,e)),d={currentLocation:w.location,nextLocation:t}}se({...n,actionData:a,loaderData:o,historyAction:T,location:t,initialized:!0,renderFallback:!1,navigation:qn,revalidation:`idle`,restoreScrollPosition:l,preventScrollReset:u,blockers:c},{viewTransitionOpts:d,flushSync:r===!0}),T=`POP`,D=!1,k=!1,M=!1,N=!1,E?.resolve(),E=null,ie?.resolve(),ie=null}async function le(t,n){if(E?.resolve(),E=null,typeof t==`number`){E||=pi();let n=E.promise;return e.history.go(t),n}let r=Nn(C),{path:i,submission:a,error:o}=nr(!1,tr(w.location,w.matches,c,t,n?.fromRouteId,n?.relative),n),s;n?.mask&&(s={pathname:``,search:``,hash:``,...typeof n.mask==`string`?bt(n.mask):{...w.location.mask,...n.mask}});let l=w.location,u=vt(l,i,n&&n.state,void 0,s);u={...u,...e.history.encodeLocation(u)};let d=n&&n.replace!=null?n.replace:void 0,f=`PUSH`;d===!0?f=`REPLACE`:d===!1||a!=null&&ti(a.formMethod)&&a.formAction===w.location.pathname+w.location.search&&(f=`REPLACE`);let p=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,m=(n&&n.flushSync)===!0,h=Ie({currentLocation:l,nextLocation:u,historyAction:f});if(h){Fe(h,{state:`blocked`,location:u,proceed(){Fe(h,{state:`proceeding`,proceed:void 0,reset:void 0,location:u}),le(t,n)},reset(){let e=new Map(w.blockers);e.set(h,Yn),se({blockers:e})}});return}await de(f,u,{submission:a,pendingError:o,preventScrollReset:p,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m,callSiteDefaultShouldRevalidate:n&&n.defaultShouldRevalidate,instrumentationNavigateMetaReceiver:r})}function ue(){ie||=pi(),Se(),se({revalidation:`loading`});let e=ie.promise;return w.navigation.state===`submitting`?e:w.navigation.state===`idle`?(de(w.historyAction,w.location,{startUninterruptedRevalidation:!0}),e):(de(T||w.historyAction,w.navigation.location,{overrideNavigation:w.navigation,enableViewTransition:k===!0}),e)}async function de(t,n,r){O&&O.abort(),O=null,T=t,M=(r&&r.startUninterruptedRevalidation)===!0,Re(w.location,w.matches),D=(r&&r.preventScrollReset)===!0,k=(r&&r.enableViewTransition)===!0;let i=s.activeRoutes,a=r?.initialHydration&&w.matches&&w.matches.length>0&&!y?w.matches:Nt(i,n,c,!1,s.branches),o=(r&&r.flushSync)===!0;if(a&&w.initialized&&!N&&Ur(w.location,n)&&!(r&&r.submission&&ti(r.submission.formMethod))){ce(n,{matches:a},{flushSync:o});return}let l=Be(a,i,n.pathname);if(l.active&&l.matches&&(a=l.matches),r?.instrumentationNavigateMetaReceiver){let t=ii(e.history,n,a);r.instrumentationNavigateMetaReceiver(t)}if(!a){let{error:e,notFoundMatches:t,route:r}=Le(n.pathname);ce(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:o});return}let u=r&&r.overrideNavigation?{...r.overrideNavigation,matches:a,historyAction:t}:void 0;O=new AbortController;let d=jr(e.history,n,O.signal,r&&r.submission),f=e.getContext?await e.getContext():new Ct,p;if(r&&r.pendingError)p=[Rr(a).route.id,{type:`error`,error:r.pendingError}];else if(r&&r.submission&&ti(r.submission.formMethod)){let i=await fe(d,n,r.submission,a,t,f,l.active,r&&r.initialHydration===!0,{replace:r.replace,flushSync:o});if(i.shortCircuited)return;if(i.pendingActionResult){let[e,t]=i.pendingActionResult;if(Jr(t)&&xn(t.error)&&t.error.status===404){O=null,ce(n,{matches:i.matches,loaderData:{},errors:{[e]:t.error}});return}}a=i.matches||a,p=i.pendingActionResult,u=oi(n,a,t,r.submission),o=!1,l.active=!1,d=jr(e.history,d.url,d.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_,workingFetchers:v}=await pe(d,n,a,t,f,l.active,u,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,o,p,r&&r.callSiteDefaultShouldRevalidate);m||(O=null,ce(n,{matches:h||a,...Lr(p),loaderData:g,errors:_,...v?{fetchers:v}:{}}))}async function fe(t,n,i,l,u,d,f,p,m={}){if(Se(),se({navigation:si(n,l,u,i)},{flushSync:m.flushSync===!0}),f){let e=await Ve(l,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=zr(s.activeRoutes);return{matches:t,pendingActionResult:[n.id,{type:`error`,error:e.error}]}}let t=Rr(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:`error`,error:e.error}]}}else if(e.matches)l=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Le(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:`error`,error:t}]}}}let h,g=ri(l,n);if(!g.route.action&&!g.route.lazy)h={type:`error`,error:Br(405,{method:t.method,pathname:n.pathname,routeId:g.route.id})};else{let e=await be(t,n,Sr(a,o,t,n,l,g,p?[]:r,d),d,null);if(h=e[g.route.id],!h){for(let t of l)if(e[t.route.id]){h=e[t.route.id];break}}if(t.signal.aborted)return{shortCircuited:!0}}if(Yr(h)){let n;return n=m&&m.replace!=null?m.replace:Ar(h.response.headers.get(`Location`),new URL(t.url),c,e.history)===w.location.pathname+w.location.search,await ye(t,h,!0,{submission:i,replace:n}),{shortCircuited:!0}}if(Jr(h)){let e=Rr(l,g.route.id);return(m&&m.replace)!==!0&&(T=`PUSH`),{matches:l,pendingActionResult:[e.route.id,h,g.route.id]}}return{matches:l,pendingActionResult:[g.route.id,h]}}async function pe(t,n,i,l,u,d,f,p,m,h,g,_,v,y){let b=f||oi(n,i,l,p),x=p||m||ai(b),S=!M&&!g;if(d){if(S){let e=me(v);se({navigation:b,...e===void 0?{}:{actionData:e}},{flushSync:_})}let e=await Ve(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){if(e.partialMatches.length===0){let{matches:t,route:n}=zr(s.activeRoutes);return{matches:t,loaderData:{},errors:{[n.id]:e.error}}}let t=Rr(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}else if(e.matches)i=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Le(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let C=s.activeRoutes,{dsMatches:T,revalidatingFetchers:E}=rr(t,u,a,o,e.history,w,i,x,n,g?[]:r,g===!0,N,P,ne,te,ee,C,c,e.patchRoutesOnNavigation!=null,s.branches,v,y);if(L=++I,!e.dataStrategy&&!T.some(e=>e.shouldLoad)&&!T.some(e=>e.route.middleware&&e.route.middleware.length>0)&&E.length===0){let e=new Map(w.fetchers),t=je(e);return ce(n,{matches:i,loaderData:{},errors:v&&Jr(v[1])?{[v[0]]:v[1].error}:null,...Lr(v),...t?{fetchers:e}:{}},{flushSync:_}),{shortCircuited:!0}}if(S){let e={};if(!d){e.navigation=b;let t=me(v);t!==void 0&&(e.actionData=t)}E.length>0&&(e.fetchers=he(E)),se(e,{flushSync:_})}E.forEach(e=>{ke(e.key),e.controller&&F.set(e.key,e.controller)});let D=()=>E.forEach(e=>ke(e.key));O&&O.signal.addEventListener(`abort`,D);let{loaderResults:k,fetcherResults:A}=await xe(T,E,t,n,u);if(t.signal.aborted)return{shortCircuited:!0};O&&O.signal.removeEventListener(`abort`,D),E.forEach(e=>F.delete(e.key));let j=Vr(k);if(j)return await ye(t,j.result,!0,{replace:h}),{shortCircuited:!0};if(j=Vr(A),j)return ee.add(j.key),await ye(t,j.result,!0,{replace:h}),{shortCircuited:!0};let R=new Map(w.fetchers),{loaderData:z,errors:re}=Fr(w,i,k,v,E,A,R);g&&w.errors&&(re={...w.errors,...re});let B=je(R),ie=Me(L,R),ae=B||ie||E.length>0;return{matches:i,loaderData:z,errors:re,...ae?{workingFetchers:R}:{}}}function me(e){if(e&&!Jr(e[1]))return{[e[0]]:e[1].data};if(w.actionData)return Object.keys(w.actionData).length===0?null:w.actionData}function he(e){let t=new Map(w.fetchers);return e.forEach(e=>{let n=t.get(e.key),r=ci(void 0,n?n.data:void 0);t.set(e.key,r)}),t}async function ge(t,n,r,i){ke(t);let a=(i&&i.flushSync)===!0,o=Nn(C),l=s.activeRoutes,u=tr(w.location,w.matches,c,r,n,i?.relative),d=Nt(l,u,c,!1,s.branches),f=Be(d,l,u);if(f.active&&f.matches&&(d=f.matches),o&&o(ii(e.history,u,d)),!d){we(t,n,Br(404,{pathname:u}),{flushSync:a});return}let{path:p,submission:m,error:h}=nr(!0,u,i);if(h){we(t,n,h,{flushSync:a});return}let g=e.getContext?await e.getContext():new Ct,_=(i&&i.preventScrollReset)===!0;if(m&&ti(m.formMethod)){await _e(t,n,p,d,g,f.active,a,_,m,i&&i.defaultShouldRevalidate);return}te.set(t,{routeId:n,path:p}),await ve(t,n,p,d,g,f.active,a,_,m)}async function _e(t,n,i,l,u,d,f,p,m,h){Se(),te.delete(t),Ce(t,li(m,w.fetchers.get(t)),{flushSync:f});let g=new AbortController,_=jr(e.history,i,g.signal,m);if(d){let e=await Ve(l,new URL(_.url).pathname,_.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){we(t,n,e.error,{flushSync:f});return}else if(e.matches)l=e.matches;else{we(t,n,Br(404,{pathname:i}),{flushSync:f});return}}let v=ri(l,i);if(!v.route.action&&!v.route.lazy){we(t,n,Br(405,{method:m.formMethod,pathname:i,routeId:n}),{flushSync:f});return}F.set(t,g);let y=I,b=Sr(a,o,_,i,l,v,r,u),x=await be(_,i,b,u,t),S=x[v.route.id];if(!S){for(let e of b)if(x[e.route.id]){S=x[e.route.id];break}}if(_.signal.aborted){F.get(t)===g&&F.delete(t);return}if(ne.has(t)){if(Yr(S)||Jr(S)){Ce(t,ui(void 0));return}}else{if(Yr(S))if(F.delete(t),L>y){Ce(t,ui(void 0));return}else return ee.add(t),Ce(t,ci(m)),ye(_,S,!1,{fetcherSubmission:m,preventScrollReset:p});if(Jr(S)){we(t,n,S.error);return}}let C=w.navigation.location||w.location,E=jr(e.history,C,g.signal),D=s.activeRoutes,k=w.navigation.state===`idle`?w.matches:Nt(D,w.navigation.location,c,!1,s.branches);mt(k,`Didn't find any matches after fetcher action`);let A=++I;R.set(t,A);let{dsMatches:j,revalidatingFetchers:M}=rr(E,u,a,o,e.history,w,k,m,C,r,!1,N,P,ne,te,ee,D,c,e.patchRoutesOnNavigation!=null,s.branches,[v.route.id,S],h),z=ci(m,S.data),re=new Map(w.fetchers);re.set(t,z),M.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=re.get(t),r=ci(void 0,n?n.data:void 0);re.set(t,r),ke(t),e.controller&&F.set(t,e.controller)}),se({fetchers:re});let B=()=>M.forEach(e=>ke(e.key));g.signal.addEventListener(`abort`,B);let{loaderResults:ie,fetcherResults:ae}=await xe(j,M,E,C,u);if(g.signal.aborted)return;g.signal.removeEventListener(`abort`,B),R.delete(t),F.delete(t),M.forEach(e=>F.delete(e.key));let oe=w.fetchers.has(t),V=e=>{if(!oe)return e;let n=new Map(e.fetchers);return n.set(t,ui(S.data)),{...e,fetchers:n}},le=Vr(ie);if(le)return w=V(w),ye(E,le.result,!1,{preventScrollReset:p});if(le=Vr(ae),le)return ee.add(le.key),w=V(w),ye(E,le.result,!1,{preventScrollReset:p});let ue=new Map(w.fetchers);oe&&ue.set(t,ui(S.data));let{loaderData:de,errors:fe}=Fr(w,k,ie,void 0,M,ae,ue);Me(A,ue),w.navigation.state===`loading`&&A>L?(mt(T,`Expected pending action`),O&&O.abort(),ce(w.navigation.location,{matches:k,loaderData:de,errors:fe,fetchers:ue})):(se({errors:fe,loaderData:Ir(w.loaderData,de,k,fe),fetchers:ue}),N=!1)}async function ve(t,n,i,s,c,l,u,d,f){let p=w.fetchers.get(t);Ce(t,ci(f,p?p.data:void 0),{flushSync:u});let m=new AbortController,h=jr(e.history,i,m.signal);if(l){let e=await Ve(s,new URL(h.url).pathname,h.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){we(t,n,e.error,{flushSync:u});return}else if(e.matches)s=e.matches;else{we(t,n,Br(404,{pathname:i}),{flushSync:u});return}}let g=ri(s,i);F.set(t,m);let _=I,v=await be(h,i,Sr(a,o,h,i,s,g,r,c),c,t),y=v[g.route.id];if(!y){for(let e of s)if(v[e.route.id]){y=v[e.route.id];break}}if(F.get(t)===m&&F.delete(t),!h.signal.aborted){if(ne.has(t)){Ce(t,ui(void 0));return}if(Yr(y))if(L>_){Ce(t,ui(void 0));return}else{ee.add(t),await ye(h,y,!1,{preventScrollReset:d});return}if(Jr(y)){we(t,n,y.error);return}Ce(t,ui(y.data))}}async function ye(r,i,a,{submission:o,fetcherSubmission:s,preventScrollReset:l,replace:u}={}){a||(E?.resolve(),E=null),i.response.headers.has(`X-Remix-Revalidate`)&&(N=!0);let d=i.response.headers.get(`Location`);mt(d,`Expected a Location header on the redirect Response`),d=Ar(d,new URL(r.url),c,e.history);let f=vt(w.location,d,{_isRedirect:!0});if(n){let e=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))e=!0;else if(an(d)){let n=St(t,d,!0);e=n.origin!==t.location.origin||nn(n.pathname,c)==null}if(e){u?t.location.replace(d):t.location.assign(d);return}}O=null;let p=u===!0||i.response.headers.has(`X-Remix-Replace`)?`REPLACE`:`PUSH`,{formMethod:m,formAction:h,formEncType:g}=w.navigation;!o&&!s&&m&&h&&g&&(o=ai(w.navigation));let _=o||s;Kn.has(i.response.status)&&_&&ti(_.formMethod)?await de(p,f,{submission:{..._,formAction:d},preventScrollReset:l||D,enableViewTransition:a?k:void 0}):await de(p,f,{overrideNavigation:oi(f,[],p,o),fetcherSubmission:s,preventScrollReset:l||D,enableViewTransition:a?k:void 0})}async function be(e,t,n,r,i){let a,o={};try{a=await Cr(l,e,t,n,i,r,!1)}catch(e){return n.filter(e=>e.shouldLoad).forEach(t=>{o[t.route.id]={type:`error`,error:e}}),o}if(e.signal.aborted)return o;if(!ti(e.method))for(let e of n){if(a[e.route.id]?.type===`error`)break;!a.hasOwnProperty(e.route.id)&&!w.loaderData.hasOwnProperty(e.route.id)&&(!w.errors||!w.errors.hasOwnProperty(e.route.id))&&e.shouldCallHandler()&&(a[e.route.id]={type:`error`,result:Error(`No result returned from dataStrategy for route ${e.route.id}`)})}for(let[t,r]of Object.entries(a))if(qr(r)){let i=r.result;o[t]={type:`redirect`,response:Dr(i,e,t,n,c)}}else o[t]=await Er(r);return o}async function xe(e,t,n,r,i){let a=be(n,r,e,i,null),o=Promise.all(t.map(async e=>{if(e.matches&&e.match&&e.request&&e.controller){let t=(await be(e.request,e.path,e.matches,i,e.key))[e.match.route.id];return{[e.key]:t}}else return Promise.resolve({[e.key]:{type:`error`,error:Br(404,{pathname:e.path})}})}));return{loaderResults:await a,fetcherResults:(await o).reduce((e,t)=>Object.assign(e,t),{})}}function Se(){N=!0,te.forEach((e,t)=>{F.has(t)&&P.add(t),ke(t)})}function Ce(e,t,n={}){let r=new Map(w.fetchers);r.set(e,t),se({fetchers:r},{flushSync:(n&&n.flushSync)===!0})}function we(e,t,n,r={}){let i=Rr(w.matches,t),a=new Map(w.fetchers);De(a,e),se({errors:{[i.route.id]:n},fetchers:a},{flushSync:(r&&r.flushSync)===!0})}function Te(e){return z.set(e,(z.get(e)||0)+1),ne.has(e)&&ne.delete(e),w.fetchers.get(e)||Jn}function Ee(e,t){ke(e,t?.reason),Ce(e,ui(null))}function De(e,t){let n=w.fetchers.get(t);F.has(t)&&!(n&&n.state===`loading`&&R.has(t))&&ke(t),te.delete(t),R.delete(t),ee.delete(t),ne.delete(t),P.delete(t),e.delete(t)}function Oe(e){let t=(z.get(e)||0)-1;t<=0?(z.delete(e),ne.add(e)):z.set(e,t),se({fetchers:new Map(w.fetchers)})}function ke(e,t){let n=F.get(e);n&&(n.abort(t),F.delete(e))}function Ae(e,t){for(let n of e){let e=t.get(n);mt(e,`Expected fetcher: ${n}`);let r=ui(e.data);t.set(n,r)}}function je(e){let t=[],n=!1;for(let r of ee){let i=e.get(r);mt(i,`Expected fetcher: ${r}`),i.state===`loading`&&(ee.delete(r),t.push(r),n=!0)}return Ae(t,e),n}function Me(e,t){let n=[];for(let[r,i]of R)if(i<e){let e=t.get(r);mt(e,`Expected fetcher: ${r}`),e.state===`loading`&&(ke(r),R.delete(r),n.push(r))}return Ae(n,t),n.length>0}function Ne(e,t){let n=w.blockers.get(e)||Yn;return re.get(e)!==t&&re.set(e,t),n}function Pe(e){w.blockers.delete(e),re.delete(e)}function Fe(e,t){let n=w.blockers.get(e)||Yn;mt(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: ${n.state} -> ${t.state}`);let r=new Map(w.blockers);r.set(e,t),se({blockers:r})}function Ie({currentLocation:e,nextLocation:t,historyAction:n}){if(re.size===0)return;re.size>1&&ht(!1,`A router only supports one blocker at a time`);let r=Array.from(re.entries()),[i,a]=r[r.length-1],o=w.blockers.get(i);if(!(o&&o.state===`proceeding`)&&a({currentLocation:e,nextLocation:t,historyAction:n}))return i}function Le(e){let t=Br(404,{pathname:e}),n=s.activeRoutes,{matches:r,route:i}=zr(n);return{notFoundMatches:r,route:i,error:t}}function H(e,t,n){if(m=e,g=t,h=n||null,!_&&w.navigation===qn){_=!0;let e=ze(w.location,w.matches);e!=null&&se({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function U(e,t){return h&&h(e,t.map(e=>Pt(e,w.loaderData)))||e.key}function Re(e,t){if(m&&g){let n=U(e,t);m[n]=g()}}function ze(e,t){if(m){let n=U(e,t),r=m[n];if(typeof r==`number`)return r}return null}function Be(t,n,r){if(e.patchRoutesOnNavigation){let e=s.branches;if(!t)return{active:!0,matches:Nt(n,r,c,!0,e)||[]};if(Object.keys(t[0].params).length>0)return{active:!0,matches:Nt(n,r,c,!0,e)}}return{active:!1,matches:null}}async function Ve(t,n,r,i){if(!e.patchRoutesOnNavigation)return{type:`success`,matches:t};let l=t;for(;;){let t=o;try{await e.patchRoutesOnNavigation({signal:r,path:n,matches:l,fetcherKey:i,patch:(e,n)=>{r.aborted||lr(e,n,s,t,a,!1)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}if(r.aborted)return{type:`aborted`};let u=s.branches,d=Nt(s.activeRoutes,n,c,!1,u),f=null;if(d&&(Object.keys(d[0].params).length===0||(f=Nt(s.activeRoutes,n,c,!0,u),!(f&&l.length<f.length&&He(l,f.slice(0,l.length))))))return{type:`success`,matches:d};if(f||=Nt(s.activeRoutes,n,c,!0,u),!f||He(l,f))return{type:`success`,matches:null};l=f}}function He(e,t){return e.length===t.length&&e.every((e,n)=>e.route.id===t[n].route.id)}function Ue(e){o={},s.setHmrRoutes(At(e,a,void 0,o))}function We(e,t,n=!1){lr(e,t,s,o,a,n),s.hasHMRRoutes||se({})}return C={get basename(){return c},get future(){return u},get state(){return w},get routes(){return s.stableRoutes},get branches(){return s.branches},get manifest(){return o},get window(){return t},initialize:ae,subscribe:V,enableScrollRestoration:H,navigate:le,fetch:ge,revalidate:ue,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Te,resetFetcher:Ee,deleteFetcher:Oe,dispose:oe,getBlocker:Ne,deleteBlocker:Pe,patchRoutes:We,_internalFetchControllers:F,_internalSetRoutes:Ue,_internalSetStateDoNotUseOrYouWillBreakYourApp(e){se(e)}},e.instrumentations&&(C=kn(C,e.instrumentations.map(e=>e.router).filter(Boolean))),C}function er(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function tr(e,t,n,r,i,a){let o,s;if(i){o=[];for(let e of t)if(o.push(e),e.route.id===i){s=e;break}}else o=t,s=t[t.length-1];let c=dn(r||`.`,un(o),nn(e.pathname,n)||e.pathname,a===`path`);if(r??(c.search=e.search,c.hash=e.hash),(r==null||r===``||r===`.`)&&s){let e=ni(c.search);if(s.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,`?index&`):`?index`;else if(!s.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();c.search=n?`?${n}`:``}}return n!==`/`&&(c.pathname=rn({basename:n,pathname:c.pathname})),yt(c)}function nr(e,t,n){if(!n||!er(n))return{path:t};if(n.formMethod&&!ei(n.formMethod))return{path:t,error:Br(405,{method:n.formMethod})};let r=()=>({path:t,error:Br(400,{type:`invalid-body`})}),i=(n.formMethod||`get`).toUpperCase(),a=Hr(t);if(n.body!==void 0){if(n.formEncType===`text/plain`){if(!ti(i))return r();let e=typeof n.body==`string`?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,[t,n])=>`${e}${t}=${n}\n`,``):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if(n.formEncType===`application/json`){if(!ti(i))return r();try{let e=typeof n.body==`string`?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch{return r()}}}mt(typeof FormData==`function`,`FormData is not available in this environment`);let o,s;if(n.formData)o=Mr(n.formData),s=n.formData;else if(n.body instanceof FormData)o=Mr(n.body),s=n.body;else if(n.body instanceof URLSearchParams)o=n.body,s=Nr(o);else if(n.body==null)o=new URLSearchParams,s=new FormData;else try{o=new URLSearchParams(n.body),s=Nr(o)}catch{return r()}let c={formMethod:i,formAction:a,formEncType:n&&n.formEncType||`application/x-www-form-urlencoded`,formData:s,json:void 0,text:void 0};if(ti(c.formMethod))return{path:t,submission:c};let l=bt(t);return e&&l.search&&ni(l.search)&&o.append(`index`,``),l.search=`?${o}`,{path:yt(l),submission:c}}function rr(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x){let S=b?Jr(b[1])?b[1].error:b[1].data:void 0,C=i.createURL(a.location),w=i.createURL(c),T;if(u&&a.errors){let e=Object.keys(a.errors)[0];T=o.findIndex(t=>t.route.id===e)}else if(b&&Jr(b[1])){let e=b[0];T=o.findIndex(t=>t.route.id===e)-1}let E=b?b[1].statusCode:void 0,D=E&&E>=400,O={currentUrl:C,currentParams:a.matches[0]?.params||{},nextUrl:w,nextParams:o[0].params,...s,actionResult:S,actionStatus:E},k=Sn(o),A=o.map((i,o)=>{let{route:s}=i,f=null;if(T!=null&&o>T)f=!1;else if(s.lazy)f=!0;else if(!ir(s))f=!1;else if(u){let{shouldLoad:e}=ar(s,a.loaderData,a.errors);f=e}else or(a.loaderData,a.matches[o],i)&&(f=!0);if(f!==null)return xr(n,r,e,c,k,i,l,t,f);let p=!1;typeof x==`boolean`?p=x:D?p=!1:d||C.pathname+C.search===w.pathname+w.search?p=!0:C.search===w.search?sr(a.matches[o],i)&&(p=!0):p=!0;let m={...O,defaultShouldRevalidate:p};return xr(n,r,e,c,k,i,l,t,cr(i,m),m,x)}),j=[];return m.forEach((e,s)=>{if(u||!o.some(t=>t.route.id===e.routeId)||p.has(s))return;let c=a.fetchers.get(s),m=c&&c.state!==`idle`&&c.data===void 0,b=Nt(g,e.path,_??`/`,!1,y);if(!b){if(v&&m)return;j.push({key:s,routeId:e.routeId,path:e.path,matches:null,match:null,request:null,controller:null});return}if(h.has(s))return;let S=ri(b,e.path),C=new AbortController,w=jr(i,e.path,C.signal),T=null;if(f.has(s))f.delete(s),T=Sr(n,r,w,e.path,b,S,l,t);else if(m)d&&(T=Sr(n,r,w,e.path,b,S,l,t));else{let i;i=typeof x==`boolean`?x:!D&&d;let a={...O,defaultShouldRevalidate:i};cr(S,a)&&(T=Sr(n,r,w,e.path,b,S,l,t,a))}T&&j.push({key:s,routeId:e.routeId,path:e.path,matches:T,match:S,request:w,controller:C})}),{dsMatches:A,revalidatingFetchers:j}}function ir(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function ar(e,t,n){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!ir(e))return{shouldLoad:!1,renderFallback:!1};let r=t!=null&&e.id in t,i=n!=null&&n[e.id]!==void 0;if(!r&&i)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader==`function`&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!r};let a=!r&&!i;return{shouldLoad:a,renderFallback:a}}function or(e,t,n){let r=!t||n.route.id!==t.route.id,i=!e.hasOwnProperty(n.route.id);return r||i}function sr(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function cr(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function lr(e,t,n,r,i,a){let o;if(e){let t=r[e];mt(t,`No route found to patch children into: routeId = ${e}`),t.children||=[],o=t.children}else o=n.activeRoutes;let s=[],c=[];if(t.forEach(e=>{let t=o.find(t=>ur(e,t));t?c.push({existingRoute:t,newRoute:e}):s.push(e)}),s.length>0){let t=At(s,i,[e||`_`,`patch`,String(o?.length||`0`)],r);o.push(...t)}if(a&&c.length>0)for(let e=0;e<c.length;e++){let{existingRoute:t,newRoute:n}=c[e],r=t,[a]=At([n],i,[],{},!0);Object.assign(r,{element:a.element?a.element:r.element,errorElement:a.errorElement?a.errorElement:r.errorElement,hydrateFallbackElement:a.hydrateFallbackElement?a.hydrateFallbackElement:r.hydrateFallbackElement})}n.hasHMRRoutes||n.setRoutes([...n.activeRoutes])}function ur(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children?.every((e,n)=>t.children?.some(t=>ur(e,t)))??!1:!1}var dr=new WeakMap,fr=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let i=n[t.id];if(mt(i,`No route found in manifest`),!i.lazy||typeof i.lazy!=`object`)return;let a=i.lazy[e];if(!a)return;let o=dr.get(i);o||(o={},dr.set(i,o));let s=o[e];if(s)return s;let c=(async()=>{let t=Tt(e),n=i[e]!==void 0;if(t)ht(!t,`Route property `+e+` is not a supported lazy route property. This property will be ignored.`),o[e]=Promise.resolve();else if(n)ht(!1,`Route "${i.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let t=await a();t!=null&&(Object.assign(i,{[e]:t}),Object.assign(i,r(i)))}typeof i.lazy==`object`&&(i.lazy[e]=void 0,Object.values(i.lazy).every(e=>e===void 0)&&(i.lazy=void 0))})();return o[e]=c,c},pr=new WeakMap;function mr(e,t,n,r,i){let a=n[e.id];if(mt(a,`No route found in manifest`),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy==`function`){let t=pr.get(a);if(t)return{lazyRoutePromise:t,lazyHandlerPromise:t};let n=(async()=>{mt(typeof e.lazy==`function`,`No lazy route function found`);let t=await e.lazy(),n={};for(let e in t){let r=t[e];if(r===void 0)continue;let i=Dt(e),o=a[e]!==void 0;i?ht(!i,`Route property `+e+` is not a supported property to be returned from a lazy route function. This property will be ignored.`):o?ht(!o,`Route "${a.id}" has a static property "${e}" defined but its lazy function is also returning a value for this property. The lazy route property "${e}" will be ignored.`):n[e]=r}Object.assign(a,n),Object.assign(a,{...r(a),lazy:void 0})})();return pr.set(a,n),n.catch(()=>{}),{lazyRoutePromise:n,lazyHandlerPromise:n}}let o=Object.keys(e.lazy),s=[],c;for(let a of o){if(i&&i.includes(a))continue;let o=fr({key:a,route:e,manifest:n,mapRouteProperties:r});o&&(s.push(o),a===t&&(c=o))}let l=s.length>0?Promise.all(s).then(()=>{}):void 0;return l?.catch(()=>{}),c?.catch(()=>{}),{lazyRoutePromise:l,lazyHandlerPromise:c}}async function hr(e){let t=e.matches.filter(e=>e.shouldLoad),n={};return(await Promise.all(t.map(e=>e.resolve()))).forEach((e,r)=>{n[t[r].route.id]=e}),n}async function gr(e){return e.matches.some(e=>e.route.middleware)?_r(e,()=>hr(e)):hr(e)}function _r(e,t){return vr(e,t,e=>{if($r(e))throw e;return e},Gr,n);async function n(t,n,r){if(r)return Object.assign(r.value,{[n]:{type:`error`,result:t}});{let{matches:r}=e,i=Math.min(Math.max(r.findIndex(e=>e.route.id===n),0),Math.max(r.findIndex(e=>e.shouldCallHandler()),0)),a=r[i].route.id;for(let e of r.slice(0,i+1))try{await e._lazyPromises?.route}catch{a=e.route.id;break}return{[Rr(r,a).route.id]:{type:`error`,result:t}}}}}async function vr(e,t,n,r,i){let{matches:a,...o}=e;return await yr(o,a.flatMap(e=>e.route.middleware?e.route.middleware.map(t=>[e.route.id,t]):[]),t,n,r,i)}async function yr(e,t,n,r,i,a,o=0){let{request:s}=e;if(s.signal.aborted)throw s.signal.reason??Error(`Request aborted: ${s.method} ${s.url}`);let c=t[o];if(!c)return await n();let[l,u]=c,d,f=async()=>{if(d)throw Error("You may only call `next()` once per middleware");try{return d={value:await yr(e,t,n,r,i,a,o+1)},d.value}catch(e){return d={value:await a(e,l,d)},d.value}};try{let t=await u(e,f),n=t==null?void 0:r(t);return i(n)?n:d?n??d.value:(d={value:await f()},d.value)}catch(e){return await a(e,l,d)}}function br(e,t,n,r,i){let a=fr({key:`middleware`,route:r.route,manifest:t,mapRouteProperties:e}),o=mr(r.route,ti(n.method)?`action`:`loader`,t,e,i);return{middleware:a,route:o.lazyRoutePromise,handler:o.lazyHandlerPromise}}function xr(e,t,n,r,i,a,o,s,c,l=null,u){let d=!1,f=br(e,t,n,a,o);return{...a,_lazyPromises:f,shouldLoad:c,shouldRevalidateArgs:l,shouldCallHandler(e){return d=!0,l?typeof u==`boolean`?cr(a,{...l,defaultShouldRevalidate:u}):typeof e==`boolean`?cr(a,{...l,defaultShouldRevalidate:e}):cr(a,l):c},resolve(e){let{lazy:t,loader:o,middleware:l}=a.route,u=d||c||e&&!ti(n.method)&&(t||o),p=l&&l.length>0&&!o&&!t;return u&&(ti(n.method)||!p)?wr({request:n,path:r,pattern:i,match:a,lazyHandlerPromise:f?.handler,lazyRoutePromise:f?.route,handlerOverride:e,scopedContext:s}):Promise.resolve({type:`data`,result:void 0})}}}function Sr(e,t,n,r,i,a,o,s,c=null){return i.map(l=>l.route.id===a.route.id?xr(e,t,n,r,Sn(i),l,o,s,!0,c):{...l,shouldLoad:!1,shouldRevalidateArgs:c,shouldCallHandler:()=>!1,_lazyPromises:br(e,t,n,l,o),resolve:()=>Promise.resolve({type:`data`,result:void 0})})}async function Cr(e,t,n,r,i,a,o){r.some(e=>e._lazyPromises?.middleware)&&await Promise.all(r.map(e=>e._lazyPromises?.middleware));let s={request:t,url:Cn(t,n),pattern:Sn(r),params:r[0].params,context:a,matches:r},c=o?()=>{throw Error("You cannot call `runClientMiddleware()` from a static handler `dataStrategy`. Middleware is run outside of `dataStrategy` during SSR in order to bubble up the Response. You can enable middleware via the `respond` API in `query`/`queryRoute`")}:e=>{let t=s;return _r(t,()=>e({...t,fetcherKey:i,runClientMiddleware:()=>{throw Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))},l=await e({...s,fetcherKey:i,runClientMiddleware:c});try{await Promise.all(r.flatMap(e=>[e._lazyPromises?.handler,e._lazyPromises?.route]))}catch{}return l}async function wr({request:e,path:t,pattern:n,match:r,lazyHandlerPromise:i,lazyRoutePromise:a,handlerOverride:o,scopedContext:s}){let c,l,u=ti(e.method),d=u?`action`:`loader`,f=i=>{let a,c=new Promise((e,t)=>a=t);l=()=>a(),e.signal.addEventListener(`abort`,l);let u=a=>typeof i==`function`?i({request:e,url:Cn(e,t),pattern:n,params:r.params,context:s},...a===void 0?[]:[a]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${r.route.id}]`)),f=(async()=>{try{return{type:`data`,result:await(o?o(e=>u(e)):u())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([f,c])};try{let t=u?r.route.action:r.route.loader;if(i||a)if(t){let e,[n]=await Promise.all([f(t).catch(t=>{e=t}),i,a]);if(e!==void 0)throw e;c=n}else{await i;let t=u?r.route.action:r.route.loader;if(t)[c]=await Promise.all([f(t),a]);else if(d===`action`){let t=new URL(e.url),n=t.pathname+t.search;throw Br(405,{method:e.method,pathname:n,routeId:r.route.id})}else return{type:`data`,result:void 0}}else if(t)c=await f(t);else{let t=new URL(e.url);throw Br(404,{pathname:t.pathname+t.search})}}catch(e){return{type:`error`,result:e}}finally{l&&e.signal.removeEventListener(`abort`,l)}return c}async function Tr(e){let t=e.headers.get(`Content-Type`);return t&&/\bapplication\/json\b/.test(t)?e.body==null?null:e.json():e.text()}async function Er(e){let{result:t,type:n}=e;if(Zr(t)){let e;try{e=await Tr(t)}catch(e){return{type:`error`,error:e}}return n===`error`?{type:`error`,error:new bn(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:`data`,data:e,statusCode:t.status,headers:t.headers}}return n===`error`?Xr(t)?t.data instanceof Error?{type:`error`,error:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:Wr(t),statusCode:xn(t)?t.status:void 0,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`error`,error:t,statusCode:xn(t)?t.status:void 0}:Xr(t)?{type:`data`,data:t.data,statusCode:t.init?.status,headers:t.init?.headers?new Headers(t.init.headers):void 0}:{type:`data`,data:t}}function Dr(e,t,n,r,i){let a=e.headers.get(`Location`);if(mt(a,`Redirects returned/thrown from loaders/actions must have a Location header`),!an(a)){let o=r.slice(0,r.findIndex(e=>e.route.id===n)+1);a=tr(new URL(t.url),o,i,a),e.headers.set(`Location`,a)}return e}var Or=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function kr(e){try{return Or.includes(new URL(e).protocol)}catch{return!1}}function Ar(e,t,n,r){if(an(e)){let r=e,i=lt.test(r)?new URL(ut(r,t.protocol)):new URL(r);if(kr(i.toString()))throw Error(`Invalid redirect location`);let a=nn(i.pathname,n)!=null;if(i.origin===t.origin&&a)return fn(i.pathname)+i.search+i.hash}try{if(kr(r.createURL(e).toString()))throw Error(`Invalid redirect location`)}catch{}return e}function jr(e,t,n,r){let i=e.createURL(Hr(t)).toString(),a={signal:n};if(r&&ti(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):t===`text/plain`?a.body=r.text:t===`application/x-www-form-urlencoded`&&r.formData?a.body=Mr(r.formData):a.body=r.formData}return new Request(i,a)}function Mr(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function Nr(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Pr(e,t,n,r=!1,i=!1){let a={},o=null,s,c=!1,l={},u=n&&Jr(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(mt(!Yr(f),`Cannot handle redirect results in processLoaderData`),Jr(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=Rr(e,d);o[n.route.id]??(o[n.route.id]=t)}r||(a[d]=Zn),c||(c=!0,s=xn(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)}),u!==void 0&&n&&(o={[n[0]]:u},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function Fr(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=Pr(t,n,r);return i.filter(e=>!e.matches||e.matches.some(e=>e.shouldLoad)).forEach(t=>{let{key:n,match:r,controller:i}=t;if(i&&i.signal.aborted)return;let s=a[n];if(mt(s,`Did not find corresponding fetcher result`),Jr(s)){let t=Rr(e.matches,r?.route.id);c&&c[t.route.id]||(c={...c,[t.route.id]:s.error}),o.delete(n)}else if(Yr(s))mt(!1,`Unhandled fetcher revalidation redirect`);else{let e=ui(s.data);o.set(n,e)}}),{loaderData:s,errors:c}}function Ir(e,t,n,r){let i=Object.entries(t).filter(([,e])=>e!==Zn).reduce((e,[t,n])=>(e[t]=n,e),{});for(let a of n){let n=a.route.id;if(!t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function Lr(e){return e?Jr(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Rr(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.ErrorBoundary!=null||e.route.errorElement!=null)||e[0]}function zr(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function Br(e,{pathname:t,routeId:n,method:r,type:i,message:a}={}){let o=`Unknown Server Error`,s=`Unknown @remix-run/router error`;return e===400?(o=`Bad Request`,r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:i===`invalid-body`&&(s=`Unable to encode submission body`)):e===403?(o=`Forbidden`,s=`Route "${n}" does not match URL "${t}"`):e===404?(o=`Not Found`,s=`No route matches URL "${t}"`):e===405&&(o=`Method Not Allowed`,r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new bn(e||500,o,Error(s),!0)}function Vr(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(Yr(r))return{key:n,result:r}}}function Hr(e){return yt({...typeof e==`string`?bt(e):e,hash:``})}function Ur(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function Wr(e){return new bn(e.init?.status??500,e.init?.statusText??`Internal Server Error`,e.data)}function Gr(e){return typeof e==`object`&&!!e&&Object.entries(e).every(([e,t])=>typeof e==`string`&&Kr(t))}function Kr(e){return typeof e==`object`&&!!e&&`type`in e&&`result`in e&&(e.type===`data`||e.type===`error`)}function qr(e){return Zr(e.result)&&Gn.has(e.result.status)}function Jr(e){return e.type===`error`}function Yr(e){return(e&&e.type)===`redirect`}function Xr(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function Zr(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function Qr(e){return Gn.has(e)}function $r(e){return Zr(e)&&Qr(e.status)&&e.headers.has(`Location`)}function ei(e){return Wn.has(e.toUpperCase())}function ti(e){return Hn.has(e.toUpperCase())}function ni(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function ri(e,t){let n=typeof t==`string`?bt(t).search:t.search;if(e[e.length-1].route.index&&ni(n||``))return e[e.length-1];let r=ln(e);return r[r.length-1]}function ii(e,t,n){return{url:Cn(e.createURL(t),t),pattern:n?Sn(n):``,params:n?.[0]?.params?{...n[0].params}:{}}}function ai(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function oi(e,t,n,r){return r?{state:`loading`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}:{state:`loading`,location:e,matches:t,historyAction:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function si(e,t,n,r){return{state:`submitting`,location:e,matches:t,historyAction:n,formMethod:r.formMethod,formAction:r.formAction,formEncType:r.formEncType,formData:r.formData,json:r.json,text:r.text}}function ci(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function li(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ui(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function di(e,t){try{let n=e.sessionStorage.getItem(Xn);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function fi(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(Xn,JSON.stringify(n))}catch(e){ht(!1,`Failed to save applied view transitions in sessionStorage (${e}).`)}}}function pi(){let e,t,n=new Promise((r,i)=>{e=async e=>{r(e);try{await n}catch{}},t=async e=>{i(e);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var mi=H.createContext(null);mi.displayName=`DataRouter`;var hi=H.createContext(null);hi.displayName=`DataRouterState`;var gi=H.createContext(!1);function _i(){return H.useContext(gi)}var vi=H.createContext({isTransitioning:!1});vi.displayName=`ViewTransition`;var yi=H.createContext(new Map);yi.displayName=`Fetchers`;var bi=H.createContext(null);bi.displayName=`Await`;var xi=H.createContext(null);xi.displayName=`Navigation`;var Si=H.createContext(null);Si.displayName=`Location`;var Ci=H.createContext({outlet:null,matches:[],isDataRoute:!1});Ci.displayName=`Route`;var wi=H.createContext(null);wi.displayName=`RouteError`;var Ti=`REACT_ROUTER_ERROR`,Ei=`REDIRECT`,Di=`ROUTE_ERROR_RESPONSE`;function Oi(e){if(e.startsWith(`${Ti}:${Ei}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function ki(e){if(e.startsWith(`${Ti}:${Di}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new bn(t.status,t.statusText,t.data)}catch{}}function Ai(e,{relative:t}={}){mt(ji(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=H.useContext(xi),{hash:i,pathname:a,search:o}=zi(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:pn([n,a])),r.createHref({pathname:s,search:o,hash:i})}function ji(){return H.useContext(Si)!=null}function Mi(){return mt(ji(),`useLocation() may be used only in the context of a <Router> component.`),H.useContext(Si).location}var Ni=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function Pi(){let{isDataRoute:e}=H.useContext(Ci);return e?aa():Fi()}function Fi(){mt(ji(),`useNavigate() may be used only in the context of a <Router> component.`);let e=H.useContext(mi),{basename:t,navigator:n}=H.useContext(xi),{matches:r}=H.useContext(Ci),{pathname:i}=Mi(),a=JSON.stringify(un(r)),o=H.useRef(!1);return H.useLayoutEffect(()=>{o.current=!0}),H.useCallback((r,s={})=>{if(ht(o.current,Ni),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=dn(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:pn([t,c.pathname])),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Ii=H.createContext(null);function Li(e){let t=H.useContext(Ci).outlet;return H.useMemo(()=>t&&H.createElement(Ii.Provider,{value:e},t),[t,e])}function Ri(){let{matches:e}=H.useContext(Ci);return e[e.length-1]?.params??{}}function zi(e,{relative:t}={}){let{matches:n}=H.useContext(Ci),{pathname:r}=Mi(),i=JSON.stringify(un(n));return H.useMemo(()=>dn(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Bi(e,t,n){mt(ji(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=H.useContext(xi),{matches:i}=H.useContext(Ci),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;sa(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Mi(),d;if(t){let e=typeof t==`string`?bt(t):t;mt(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):Mt(e,{pathname:p});ht(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),ht(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=qi(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:pn([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:pn([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?H.createElement(Si.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function Vi(){let e=ia(),t=xn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=H.createElement(H.Fragment,null,H.createElement(`p`,null,`💿 Hey developer 👋`),H.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,H.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,H.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),H.createElement(H.Fragment,null,H.createElement(`h2`,null,`Unexpected Application Error!`),H.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?H.createElement(`pre`,{style:i},n):null,o)}var Hi=H.createElement(Vi,null),Ui=class extends H.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static contextType=gi;static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=ki(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:H.createElement(Ci.Provider,{value:this.props.routeContext},H.createElement(wi.Provider,{value:e,children:this.props.component}));return this.context?H.createElement(Gi,{error:e},t):t}},Wi=new WeakMap;function Gi({children:e,error:t}){let{basename:n}=H.useContext(xi);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Oi(t.digest);if(e){let r=Wi.get(t);if(r)throw r;let i=Tn(e.location,n),a=i.absoluteURL||i.to;if(kr(a))throw Error(`Invalid redirect location`);if(wn&&!Wi.get(t))if(i.isExternal||e.reloadDocument)window.location.href=a;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:e.replace}));throw Wi.set(t,n),n}return H.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${a}`})}}return e}function Ki({routeContext:e,match:t,children:n}){let r=H.useContext(mi);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),H.createElement(Ci.Provider,{value:e},n)}function qi(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);mt(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Sn(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Hi,o&&(s<0&&c===0?(sa(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?H.createElement(n.route.Component,null):n.route.element?n.route.element:e,H.createElement(Ki,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?H.createElement(Ui,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Ji(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Yi(e){let t=H.useContext(mi);return mt(t,Ji(e)),t}function Xi(e){let t=H.useContext(hi);return mt(t,Ji(e)),t}function Zi(e){let t=H.useContext(Ci);return mt(t,Ji(e)),t}function Qi(e){let t=Zi(e),n=t.matches[t.matches.length-1];return mt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function $i(){return Qi(`useRouteId`)}function ea(){let e=Xi(`useNavigation`);return H.useMemo(()=>{let{matches:t,historyAction:n,...r}=e.navigation;return r},[e.navigation])}function ta(){let e=Yi(`useRevalidator`),t=Xi(`useRevalidator`),n=H.useCallback(async()=>{await e.router.revalidate()},[e.router]);return H.useMemo(()=>({revalidate:n,state:t.revalidation}),[n,t.revalidation])}function na(){let{matches:e,loaderData:t}=Xi(`useMatches`);return H.useMemo(()=>e.map(e=>Pt(e,t)),[e,t])}function ra(){let e=Xi(`useLoaderData`),t=Qi(`useLoaderData`);return e.loaderData[t]}function ia(){let e=H.useContext(wi),t=Xi(`useRouteError`),n=Qi(`useRouteError`);return e===void 0?t.errors?.[n]:e}function aa(){let{router:e}=Yi(`useNavigate`),t=Qi(`useNavigate`),n=H.useRef(!1);return H.useLayoutEffect(()=>{n.current=!0}),H.useCallback(async(r,i={})=>{ht(n.current,Ni),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var oa={};function sa(e,t,n){!t&&!oa[e]&&(oa[e]=!0,ht(!1,n))}var W={};function ca(e,t){!e&&!W[t]&&(W[t]=!0,console.warn(t))}var la=[`HydrateFallback`,`hydrateFallbackElement`],ua=class{status=`pending`;promise;resolve;reject;constructor(){this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function da({router:e,flushSync:t,onError:n,useTransitions:r}){r=_i()||r;let[i,a]=H.useState(e.state),[o,s]=(0,H.useOptimistic)(i),[c,l]=H.useState(),[u,d]=H.useState({isTransitioning:!1}),[f,p]=H.useState(),[m,h]=H.useState(),[g,_]=H.useState(),v=H.useRef(new Map),y=H.useCallback((i,{deletedFetchers:o,newErrors:c,flushSync:u,viewTransitionOpts:g})=>{c&&n&&Object.values(c).forEach(e=>n(e,{location:i.location,params:i.matches[0]?.params??{},pattern:Sn(i.matches)})),i.fetchers.forEach((e,t)=>{e.data!==void 0&&v.current.set(t,e.data)}),o.forEach(e=>v.current.delete(e)),ca(u===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let y=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition==`function`;if(ca(g==null||y,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!g||!y){t&&u?t(()=>a(i)):r===!1?a(i):H.startTransition(()=>{r===!0&&s(e=>fa(e,i)),a(i)});return}if(t&&u){t(()=>{m&&(f?.resolve(),m.skipTransition()),d({isTransitioning:!0,flushSync:!0,currentLocation:g.currentLocation,nextLocation:g.nextLocation})});let n=e.window.document.startViewTransition(()=>{t(()=>a(i))});n.finished.finally(()=>{t(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})})}),t(()=>h(n));return}m?(f?.resolve(),m.skipTransition(),_({state:i,currentLocation:g.currentLocation,nextLocation:g.nextLocation})):(l(i),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}))},[e.window,t,m,f,r,s,n]);H.useLayoutEffect(()=>e.subscribe(y),[e,y]),H.useEffect(()=>{u.isTransitioning&&!u.flushSync&&p(new ua)},[u]),H.useEffect(()=>{if(f&&c&&e.window){let t=c,n=f.promise,i=e.window.document.startViewTransition(async()=>{r===!1?a(t):H.startTransition(()=>{r===!0&&s(e=>fa(e,t)),a(t)}),await n});i.finished.finally(()=>{p(void 0),h(void 0),l(void 0),d({isTransitioning:!1})}),h(i)}},[c,f,e.window,r,s]),H.useEffect(()=>{f&&c&&o.location.key===c.location.key&&f.resolve()},[f,m,o.location,c]),H.useEffect(()=>{!u.isTransitioning&&g&&(l(g.state),d({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),_(void 0))},[u.isTransitioning,g]);let b=H.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:t=>e.navigate(t),push:(t,n,r)=>e.navigate(t,{state:n,preventScrollReset:r?.preventScrollReset}),replace:(t,n,r)=>e.navigate(t,{replace:!0,state:n,preventScrollReset:r?.preventScrollReset})}),[e]),x=e.basename||`/`,S=H.useMemo(()=>({router:e,navigator:b,static:!1,basename:x,onError:n}),[e,b,x,n]);return H.createElement(H.Fragment,null,H.createElement(mi.Provider,{value:S},H.createElement(hi.Provider,{value:o},H.createElement(yi.Provider,{value:v.current},H.createElement(vi.Provider,{value:u},H.createElement(ga,{basename:x,location:o.location,navigationType:o.historyAction,navigator:b,useTransitions:r},H.createElement(pa,{routes:e.routes,manifest:e.manifest,future:e.future,state:o,isStatic:!1,onError:n})))))),null)}function fa(e,t){return{...e,navigation:t.navigation.state===`idle`?e.navigation:t.navigation,revalidation:t.revalidation===`idle`?e.revalidation:t.revalidation,actionData:t.navigation.state===`submitting`?e.actionData:t.actionData,fetchers:t.fetchers}}var pa=H.memo(ma);function ma({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Bi(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function ha(e){return Li(e.context)}function ga({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){mt(!ji(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=H.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=bt(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=H.useMemo(()=>{let e=nn(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return ht(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:H.createElement(xi.Provider,{value:c},H.createElement(Si.Provider,{children:t,value:h}))}H.Component;var _a=`application/x-www-form-urlencoded`;function va(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function ya(e){return va(e)&&e.tagName.toLowerCase()===`button`}function ba(e){return va(e)&&e.tagName.toLowerCase()===`form`}function xa(e){return va(e)&&e.tagName.toLowerCase()===`input`}function Sa(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ca(e,t){return e.button===0&&(!t||t===`_self`)&&!Sa(e)}var wa=null;function Ta(){if(wa===null)try{new FormData(document.createElement(`form`),0),wa=!1}catch{wa=!0}return wa}var Ea=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function Da(e){return e!=null&&!Ea.has(e)?(ht(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_a}"`),null):e}function Oa(e,t){let n,r,i,a,o;if(ba(e)){let o=e.getAttribute(`action`);r=o?nn(o,t):null,n=e.getAttribute(`method`)||`get`,i=Da(e.getAttribute(`enctype`))||_a,a=new FormData(e)}else if(ya(e)||xa(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?nn(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||`get`,i=Da(e.getAttribute(`formenctype`))||Da(o.getAttribute(`enctype`))||_a,a=new FormData(o,e),!Ta()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(va(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=`get`,r=null,i=_a,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function ka(e,t){if(e===!1||e==null)throw Error(t)}var Aa={"&":`\\u0026`,">":`\\u003e`,"<":`\\u003c`,"\u2028":`\\u2028`,"\u2029":`\\u2029`},ja=/[&><\u2028\u2029]/g;function Ma(e){return e.replace(ja,e=>Aa[e])}function Na(e,t){let n=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return n.pathname.endsWith(`/`)?n.pathname=`${n.pathname}_.${t}`:n.pathname=`${n.pathname}.${t}`,n}var Pa=st(),Fa=`modulepreload`,Ia=function(e,t){return new URL(e,t).href},La={},Ra=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=Ia(t,n),t=s(t),t in La)return;La[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Fa,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};async function za(e,t){if(e.id in t)return t[e.id];try{let n=await Ra(()=>import(e.module),[],import.meta.url);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ba(e){return e!=null&&typeof e.page==`string`}function Va(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Ha(e,t,n){return qa((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await za(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Va).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Ua(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function Wa(e,t,{includeHydrateFallback:n}={}){return Ga(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Ga(e){return[...new Set(e)]}function Ka(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function qa(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ba(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(Ka(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Ja(){let e=H.useContext(mi);return ka(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Ya(){let e=H.useContext(hi);return ka(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Xa=H.createContext(void 0);Xa.displayName=`FrameworkContext`;function Za(){let e=H.useContext(Xa);return ka(e,`You must render this element inside a <HydratedRouter> element`),e}function Qa(e,t){let n=H.useContext(Xa),[r,i]=H.useState(!1),[a,o]=H.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=H.useRef(null);H.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),H.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:$a(s,p),onBlur:$a(c,m),onMouseEnter:$a(l,p),onMouseLeave:$a(u,m),onTouchStart:$a(d,p)}]:[a,f,{}]:[!1,f,{}]}function $a(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function eo({page:e,...t}){let n=_i(),{nonce:r}=Za(),{router:i}=Ja(),a=H.useMemo(()=>Mt(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?H.createElement(no,{page:e,matches:a,...t}):H.createElement(ro,{page:e,matches:a,...t})):null}function to(e){let{manifest:t,routeModules:n}=Za(),[r,i]=H.useState([]);return H.useEffect(()=>{let r=!1;return Ha(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function no({page:e,matches:t,...n}){let r=Mi(),i=H.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Na(e,`rsc`),i=!1,a=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?i=!0:a.push(e.route.id);return i&&a.length>0&&n.searchParams.set(`_routes`,a.join(`,`)),[n.pathname+n.search]},[e,r,t]);return H.createElement(H.Fragment,null,i.map(e=>H.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function ro({page:e,matches:t,...n}){let r=Mi(),{manifest:i,routeModules:a}=Za(),{loaderData:o,matches:s}=Ya(),c=H.useMemo(()=>Ua(e,t,s,i,r,`data`),[e,t,s,i,r]),l=H.useMemo(()=>Ua(e,t,s,i,r,`assets`),[e,t,s,i,r]),u=H.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,s=!1;if(t.forEach(e=>{let t=i.routes[e.route.id];!t||!t.hasLoader||(!c.some(t=>t.route.id===e.route.id)&&e.route.id in o&&a[e.route.id]?.shouldRevalidate||t.hasClientLoader?s=!0:n.add(e.route.id))}),n.size===0)return[];let l=Na(e,`data`);return s&&n.size>0&&l.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[l.pathname+l.search]},[o,r,i,c,t,e,a]),d=H.useMemo(()=>Wa(l,i),[l,i]),f=to(l);return H.createElement(H.Fragment,null,u.map(e=>H.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),d.map(e=>H.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),f.map(({key:e,link:t})=>H.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function io(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}var ao=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{ao&&(window.__reactRouterVersion=`8.2.0`)}catch{}function oo(e,t){return $n({basename:t?.basename,getContext:t?.getContext,future:t?.future,history:pt({window:t?.window}),hydrationData:t?.hydrationData||so(),routes:e,mapRouteProperties:kt,hydrationRouteProperties:la,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window,instrumentations:t?.instrumentations}).initialize()}function so(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:co(e.errors)}),e}function co(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new bn(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(typeof r.__subType==`string`&&yn.includes(r.__subType)){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}function lo({basename:e,children:t,history:n,useTransitions:r}){let[i,a]=H.useState({action:n.action,location:n.location}),o=H.useCallback(e=>{r===!1?a(e):H.startTransition(()=>a(e))},[r]);return H.useLayoutEffect(()=>n.listen(o),[n,o]),H.createElement(ga,{basename:e,children:t,location:i.location,navigationType:i.action,navigator:n,useTransitions:r})}lo.displayName=`unstable_HistoryRouter`;var uo=H.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=H.useContext(xi),v=typeof l==`string`&&ct.test(l),y=Tn(l,h);l=y.to;let b=Ai(l,{relative:r}),x=Mi(),S=null;if(o){let e=dn(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:pn([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=Qa(n,p),E=vo(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function D(t){e&&e(t),t.defaultPrevented||E(t)}let O=!(y.isExternal||i),k=H.createElement(`a`,{...p,...T,href:(O?S:void 0)||y.absoluteURL||b,onClick:O?D:e,ref:io(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?H.createElement(H.Fragment,null,k,H.createElement(eo,{page:b})):k});uo.displayName=`Link`;var fo=H.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=zi(a,{relative:c.relative}),d=Mi(),f=H.useContext(hi),{navigator:p,basename:m}=H.useContext(xi),h=f!=null&&Oo(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=nn(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return H.createElement(uo,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});fo.displayName=`NavLink`;var po=H.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=`get`,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=H.useContext(xi),g=xo(),_=So(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&ct.test(s);return H.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?H.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});po.displayName=`Form`;function mo({getKey:e,storageKey:t,...n}){let r=H.useContext(Xa),{basename:i}=H.useContext(xi),a=Mi(),o=na();Eo({getKey:e,storageKey:t});let s=H.useMemo(()=>{if(!r||!e)return null;let t=To(a,o,i,e);return t===a.key?null:t},[]);if(!r||r.isSpaMode)return null;let c=((e,t)=>{if(!window.history.state||!window.history.state.key){let e=Math.random().toString(32).slice(2);window.history.replaceState({key:e},``)}try{let n=JSON.parse(sessionStorage.getItem(e)||`{}`)[t||window.history.state.key];typeof n==`number`&&window.scrollTo(0,n)}catch(t){console.error(t),sessionStorage.removeItem(e)}}).toString();return n.nonce==null&&r?.nonce&&(n.nonce=r.nonce),H.createElement(`script`,{...n,suppressHydrationWarning:!0,dangerouslySetInnerHTML:{__html:`(${c})(${Ma(JSON.stringify(t||Co))}, ${Ma(JSON.stringify(s))})`}})}mo.displayName=`ScrollRestoration`;function ho(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function go(e){let t=H.useContext(mi);return mt(t,ho(e)),t}function _o(e){let t=H.useContext(hi);return mt(t,ho(e)),t}function vo(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Pi(),d=Mi(),f=zi(e,{relative:o});return H.useCallback(p=>{if(Ca(p,t)){p.preventDefault();let t=n===void 0?yt(d)===yt(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?H.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var yo=0,bo=()=>`__${String(++yo)}__`;function xo(){let{router:e}=go(`useSubmit`),{basename:t}=H.useContext(xi),n=$i(),r=e.fetch,i=e.navigate;return H.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=Oa(e,t);a.navigate===!1?await r(a.fetcherKey||bo(),n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync}):await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function So(e,{relative:t}={}){let{basename:n}=H.useContext(xi),r=H.useContext(Ci);mt(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...zi(e||`.`,{relative:t})},o=Mi();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:pn([n,a.pathname])),yt(a)}var Co=`react-router-scroll-positions`,wo={};function To(e,t,n,r){let i=null;return r&&(i=r(n===`/`?e:{...e,pathname:nn(e.pathname,n)||e.pathname},t)),i??=e.key,i}function Eo({getKey:e,storageKey:t}={}){let{router:n}=go(`useScrollRestoration`),{restoreScrollPosition:r,preventScrollReset:i}=_o(`useScrollRestoration`),{basename:a}=H.useContext(xi),o=Mi(),s=na(),c=ea();H.useEffect(()=>(window.history.scrollRestoration=`manual`,()=>{window.history.scrollRestoration=`auto`}),[]),Do(H.useCallback(()=>{if(c.state===`idle`){let t=To(o,s,a,e);wo[t]=window.scrollY}try{sessionStorage.setItem(t||Co,JSON.stringify(wo))}catch(e){ht(!1,`Failed to save scroll positions in sessionStorage, <ScrollRestoration /> will not work properly (${e}).`)}window.history.scrollRestoration=`auto`},[c.state,e,a,o,s,t])),typeof document<`u`&&(H.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(t||Co);e&&(wo=JSON.parse(e))}catch{}},[t]),H.useLayoutEffect(()=>{let t=n?.enableScrollRestoration(wo,()=>window.scrollY,e?(t,n)=>To(t,n,a,e):void 0);return()=>t&&t()},[n,a,e]),H.useLayoutEffect(()=>{if(r!==!1){if(typeof r==`number`){window.scrollTo(0,r);return}try{if(o.hash){let e=document.getElementById(decodeURIComponent(o.hash.slice(1)));if(e){e.scrollIntoView();return}}}catch{ht(!1,`"${o.hash.slice(1)}" is not a decodable element ID. The view will not scroll to it.`)}i!==!0&&window.scrollTo(0,0)}},[o,r,i]))}function Do(e,t){let{capture:n}=t||{};H.useEffect(()=>{let t=n==null?void 0:{capture:n};return window.addEventListener(`pagehide`,e,t),()=>{window.removeEventListener(`pagehide`,e,t)}},[e,n])}function Oo(e,{relative:t}={}){let n=H.useContext(vi);mt(n!=null,"`useViewTransitionState` must be used within `react-router/dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=go(`useViewTransitionState`),i=zi(e,{relative:t});if(!n.isTransitioning)return!1;let a=nn(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=nn(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Qt(i.pathname,o)!=null||Qt(i.pathname,a)!=null}var ko=new Ne({defaultOptions:{queries:{refetchOnWindowFocus:!1,retry:!1}}});async function Ao(e){let t=document.querySelector(`meta[name="deepagents-zukhruf-info"]`)?.content;if(!t)throw Error(`DevTool host did not configure the Zukhruf protocol path`);let n;try{let r=await ko.fetchQuery({queryKey:[`runtime`,`discovery`,t],queryFn:()=>jo(t,e),staleTime:1/0});n=r;let i=await ko.fetchQuery({queryKey:[`runtime`,`history`,r.capabilities.history.href],queryFn:()=>jo(r.capabilities.history.href,e)});return{discovery:n,history:i,historyError:!1}}catch{return{discovery:n,history:[],historyError:!0}}}async function jo(e,t){let n=await fetch(e,{signal:t});if(!n.ok)throw Error(`Request failed: ${n.status}`);return n.json()}var Mo=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),No=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Po=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),Fo=e=>{let t=Po(e);return t.charAt(0).toUpperCase()+t.slice(1)},Io={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`},Lo=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Ro=(0,H.createContext)({}),zo=()=>(0,H.useContext)(Ro),Bo=(0,H.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=zo()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,H.createElement)(`svg`,{ref:c,...Io,width:t??l??Io.width,height:t??l??Io.height,stroke:e??f,strokeWidth:m,className:Mo(`lucide`,p,i),...!a&&!Lo(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,H.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),Vo=(e,t)=>{let n=(0,H.forwardRef)(({className:n,...r},i)=>(0,H.createElement)(Bo,{ref:i,iconNode:t,className:Mo(`lucide-${No(Fo(e))}`,`lucide-${e}`,n),...r}));return n.displayName=Fo(e),n},Ho=Vo(`archive`,[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]),Uo=Vo(`ban`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]),Wo=Vo(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Go=Vo(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),Ko=Vo(`calendar-clock`,[[`path`,{d:`M16 14v2.2l1.6 1`,key:`fo4ql5`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`path`,{d:`M21 7.338V5a2 2 0 00-2-2H5a2 2 0 00-2 2v14a2 2 0 002 2h2.338`,key:`7hb8p4`}],[`path`,{d:`M3 9h5.859`,key:`numkqi`}],[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`circle`,{cx:`16`,cy:`16`,r:`6`,key:`qoo3c4`}]]),qo=Vo(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),Jo=Vo(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),Yo=Vo(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),Xo=Vo(`circle-alert`,[[`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`}]]),Zo=Vo(`circle-dot`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}]]),Qo=Vo(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),$o=Vo(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),es=Vo(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),ts=Vo(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),ns=Vo(`file-clock`,[[`path`,{d:`M16 22h2a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v2.85`,key:`ryk6xj`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M8 14v2.2l1.6 1`,key:`6m4bie`}],[`circle`,{cx:`8`,cy:`16`,r:`6`,key:`10v15b`}]]),rs=Vo(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),is=Vo(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),as=Vo(`message-circle-question-mark`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),os=Vo(`message-square`,[[`path`,{d:`M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z`,key:`18887p`}]]),ss=Vo(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),cs=Vo(`pause`,[[`rect`,{x:`14`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`kaeet6`}],[`rect`,{x:`5`,y:`3`,width:`5`,height:`18`,rx:`1`,key:`1wsw3u`}]]),ls=Vo(`play`,[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]),us=Vo(`rotate-ccw-clock`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}],[`path`,{d:`M12 7v5l4 2`,key:`1fdv2h`}]]),ds=Vo(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),fs=Vo(`square-function`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`path`,{d:`M9 17c2 0 2.8-1 2.8-2.8V10c0-2 1-3.3 3.2-3`,key:`m1af9g`}],[`path`,{d:`M9 11.2h5.7`,key:`3zgcl2`}]]),ps=Vo(`square-pen`,[[`path`,{d:`M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7`,key:`1m0v6g`}],[`path`,{d:`M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z`,key:`ohrbg2`}]]),ms=Vo(`trash-2`,[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),hs=Vo(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),gs=s((e=>{(function(){var t=Fe().__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;e.c=function(e){var n=t.H;return n===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
241
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
242
+ 2. You might be breaking the Rules of Hooks
243
+ 3. You might have more than one copy of React in the same app
244
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),n.useMemoCache(e)}})()})),_s=s(((e,t)=>{t.exports=gs()})),vs=new Set;function ys(...e){{let t=e.join(` `);vs.has(t)||(vs.add(t),console.error(`Base UI: ${t}`))}}function bs({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=H.useRef(e!==void 0),[a,o]=H.useState(t),s=i?e:a;{H.useEffect(()=>{i!==(e!==void 0)&&ys([`A component is changing the ${i?``:`un`}controlled ${r} state of ${n} to be ${i?`un`:``}controlled.`,`Elements should not switch from uncontrolled to controlled (or vice versa).`,`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",`More info: https://fb.me/react-controlled-components`].join(`
245
+ `))},[r,n,e]);let{current:a}=H.useRef(t);H.useEffect(()=>{!i&&xs(a)!==xs(t)&&ys([`A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
246
+ `))},[t])}return[s,H.useCallback(e=>{i||o(e)},[])]}function xs(e){let t=0,n=new WeakMap;try{return JSON.stringify(e,function(e,r){if(!(e===`_owner`&&this!=null&&typeof this==`object`&&`$$typeof`in this)){if(typeof r==`bigint`)return`__bigint__:${r}`;if(typeof r==`object`&&r){let e=n.get(r);if(e!==void 0)return`__object__:${e}`;n.set(r,t),t+=1}return r}})??`__top__:${typeof e}`}catch{return`__unserializable__`}}var Ss={...H},Cs={};function ws(e,t){let n=H.useRef(Cs);return n.current===Cs&&(n.current=e(t)),n}var Ts=Ss.useInsertionEffect,Es=Ts&&Ts!==Ss.useLayoutEffect?Ts:e=>e();function G(e){let t=ws(Ds).current;return t.next=e,Es(t.effect),t.trampoline}function Ds(){let e={next:void 0,callback:Os,trampoline:(...t)=>e.callback?.(...t),effect:()=>{e.callback=e.next}};return e}function Os(){throw Error(`Base UI: Cannot call an event handler while rendering.`)}var ks=new Set;function As(...e){{let t=e.join(` `);ks.has(t)||(ks.add(t),console.warn(`Base UI: ${t}`))}}var K=typeof document<`u`?H.useLayoutEffect:()=>{},js=H.createContext({register:()=>{},unregister:()=>{},subscribeMapChange:()=>()=>{},nextIndexRef:{current:0}});js.displayName=`CompositeListContext`;function Ms(){return H.useContext(js)}function Ns(e){let{children:t,elementsRef:n,labelsRef:r,onMapChange:i}=e,a=G(i),[,o]=H.useState(!1),s=ws(Fs).current,c=ws(Ps).current,l=H.useRef(0),u=H.useRef(!0),d=H.useRef([]),f=H.useRef(null),p=G(()=>{u.current||(u.current=!0,o(e=>!e))}),m=G((e,t)=>{c.set(e,t),p()}),h=G(e=>{c.delete(e),p()}),g=G(e=>{let t=new Map;return n.current.length=0,r&&(r.current.length=0),e.forEach(e=>{t.set(e.element,{...e.registration.metadata??{},index:e.index}),n.current[e.index]=e.element,r&&(r.current[e.index]=e.registration.label===void 0?e.registration.textRef?.current?.textContent??e.element.textContent:e.registration.label)}),l.current=n.current.length,t});function _(e){if(f.current?.disconnect(),f.current=null,typeof MutationObserver!=`function`||e.length<2)return;let t=new MutationObserver(n=>{if(!Rs(n))return;let r=null;for(let n of e)if(n.isConnected){if(r&&zs(r,n)>0){t.disconnect(),p();return}r=n}});f.current=t;let n=new Set;for(let t=1;t<e.length;t+=1){let r=Ls(e[t-1],e[t]);r&&n.add(r)}n.forEach(e=>t.observe(e,{childList:!0}))}let v=G(()=>{let[e,t]=Is(c),n=g(e);_(t),d.current=e,u.current=!1,s.forEach(e=>e(n)),a(n)});K(()=>(u.current||g(d.current),()=>{n.current=[],r&&(r.current=[])}),[n,r,g]),K(()=>{u.current&&v()}),K(()=>()=>{f.current?.disconnect(),u.current=!0},[]);let y=G(e=>(s.add(e),()=>{s.delete(e)})),b=H.useMemo(()=>({register:m,unregister:h,subscribeMapChange:y,nextIndexRef:l}),[m,h,y,l]);return(0,U.jsx)(js.Provider,{value:b,children:t})}function Ps(){return new Map}function Fs(){return new Set}function Is(e){let t=new Set,n=[],r=[];e.forEach((e,i)=>{if(!i.isConnected)return;let a=e.index,o={index:a??-1,element:i,registration:e};a===null?r.push(o):a>=0&&(t.add(a),n.push(o))});let i=0;return r.sort((e,t)=>zs(e.element,t.element)),r.forEach(e=>{for(;t.has(i);)i+=1;e.index=i,n.push(e),i+=1}),t.size>0&&n.sort((e,t)=>e.index-t.index),[n,r.map(e=>e.element)]}function Ls(e,t){let n=e.parentElement;for(;n&&!n.contains(t);)n=n.parentElement;return n}function Rs(e){for(let t of e)for(let e=0;e<t.removedNodes.length;e+=1)if(t.removedNodes[e].isConnected)return!0;return!1}function zs(e,t){return e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1}function Bs(e,t,n,r){let i=ws(Hs).current;return Us(i,e,t,n,r)&&Gs(i,[e,t,n,r]),i.callback}function Vs(e){let t=ws(Hs).current;return Ws(t,e)&&Gs(t,e),t.callback}function Hs(){return{callback:null,cleanup:null,refs:[]}}function Us(e,t,n,r,i){return e.refs[0]!==t||e.refs[1]!==n||e.refs[2]!==r||e.refs[3]!==i}function Ws(e,t){return e.refs.length!==t.length||e.refs.some((e,n)=>e!==t[n])}function Gs(e,t){if(e.refs=t,t.every(e=>e==null)){e.callback=null;return}e.callback=n=>{if(e.cleanup&&=(e.cleanup(),null),n!=null){let r=Array(t.length).fill(null);for(let e=0;e<t.length;e+=1){let i=t[e];if(i!=null)switch(typeof i){case`function`:{let t=i(n);typeof t==`function`&&(r[e]=t);break}case`object`:i.current=n;break;default:}}e.cleanup=()=>{for(let e=0;e<t.length;e+=1){let n=t[e];if(n!=null)switch(typeof n){case`function`:{let t=r[e];typeof t==`function`?t():n(null);break}case`object`:n.current=null;break;default:}}}}}}var Ks=19;function qs(e){return Ks>=e}function Js(e){if(!H.isValidElement(e))return null;let t=e,n=t.props;return(qs(19)?n?.ref:t.ref)??null}function Ys(e,t){if(e&&!t)return e;if(!e&&t)return t;if(e||t)return{...e,...t}}function Xs(){}var Zs=Object.freeze([]),Qs=Object.freeze({});function $s(e,t){let n={};for(let r in e){let i=e[r];if(t?.hasOwnProperty(r)){let e=t[r](i);e!=null&&Object.assign(n,e);continue}i===!0?n[`data-${r.toLowerCase()}`]=``:i&&(n[`data-${r.toLowerCase()}`]=i.toString())}return n}function ec(e,t){return typeof e==`function`?e(t):e}function tc(e,t){return typeof e==`function`?e(t):e}var nc={};function rc(e,t,n,r,i){if(!n&&!r&&!i&&!e)return ac(t);let a=ac(e);return t&&(a=oc(a,t)),n&&(a=oc(a,n)),r&&(a=oc(a,r)),i&&(a=oc(a,i)),a}function ic(e){if(e.length===0)return nc;if(e.length===1)return ac(e[0]);let t=ac(e[0]);for(let n=1;n<e.length;n+=1)t=oc(t,e[n]);return t}function ac(e){return uc(e)?{...dc(e,nc)}:sc(e)}function oc(e,t){return uc(t)?dc(t,e):cc(e,t)}function sc(e){let t={...e};for(let e in t){let n=t[e];lc(e,n)&&(t[e]=pc(n))}return t}function cc(e,t){if(!t)return e;for(let n in t){let r=t[n];switch(n){case`style`:e[n]=Ys(e.style,r);break;case`className`:e[n]=hc(e.className,r);break;default:lc(n,r)?e[n]=fc(e[n],r):e[n]=r}}return e}function lc(e,t){let n=e.charCodeAt(0),r=e.charCodeAt(1),i=e.charCodeAt(2);return n===111&&r===110&&i>=65&&i<=90&&(typeof t==`function`||t===void 0)}function uc(e){return typeof e==`function`}function dc(e,t){return uc(e)?e(t):e??nc}function fc(e,t){return t?e?(...n)=>{let r=n[0];if(gc(r)){let i=r;mc(i);let a=t(...n);return i.baseUIHandlerPrevented||e?.(...n),a}let i=t(...n);return e?.(...n),i}:pc(t):e}function pc(e){return e&&((...t)=>{let n=t[0];return gc(n)&&mc(n),e(...t)})}function mc(e){return e.preventBaseUIHandler=()=>{e.baseUIHandlerPrevented=!0},e}function hc(e,t){return t?e?t+` `+e:t:e}function gc(e){return typeof e==`object`&&!!e&&`nativeEvent`in e}function _c(e,t,n={}){let r=t.render,i=vc(t,n);return n.enabled===!1?null:Cc(e,r,i,n.state??Qs)}function vc(e,t={}){let{className:n,style:r,render:i}=e,{state:a=Qs,ref:o,props:s,stateAttributesMapping:c,enabled:l=!0}=t,u=l?ec(n,a):void 0,d=l?tc(r,a):void 0,f=l?$s(a,c):Qs,p=l&&s?yc(s):void 0,m=l?Ys(f,p)??{}:Qs;return typeof document<`u`&&(l?Array.isArray(o)?m.ref=Vs([m.ref,Js(i),...o]):m.ref=Bs(m.ref,Js(i),o):Bs(null,null)),l?(u!==void 0&&(m.className=hc(m.className,u)),d!==void 0&&(m.style=Ys(m.style,d)),m):Qs}function yc(e){return Array.isArray(e)?ic(e):rc(void 0,e)}var bc=Symbol.for(`react.lazy`),xc=/^[A-Z][A-Za-z0-9$]*$/,Sc=/[a-z]/;function Cc(e,t,n,r){if(t){if(typeof t==`function`)return wc(t),t(n,r);let e=rc(n,t.props);e.ref=n.ref;let i=t;if(i?.$$typeof===bc&&(i=H.Children.toArray(t)[0]),!H.isValidElement(i))throw Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.","A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.",`https://base-ui.com/r/invalid-render-prop`].join(`
247
+ `));return H.cloneElement(i,e)}if(e&&typeof e==`string`)return Tc(e,n);throw Error(`Base UI: Render element or function are not defined.`)}function wc(e){let t=e.name;t.length!==0&&xc.test(t)&&Sc.test(t)&&As(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`,"This usually means a React component was passed directly as `render={Component}`.","Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.",`If this is an intentional render callback, rename it to start with a lowercase letter.`,"Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.",`https://base-ui.com/r/invalid-render-prop`)}function Tc(e,t){return e===`button`?(0,H.createElement)(`button`,{type:`button`,...t,key:t.key}):e===`img`?(0,H.createElement)(`img`,{alt:``,...t,key:t.key}):H.createElement(e,t)}var Ec=0;function Dc(e,t=`mui`){let[n,r]=H.useState(e),i=e||n;return H.useEffect(()=>{n??(Ec+=1,r(`${t}-${Ec}`))},[n,t]),i}var Oc=Ss.useId;function kc(e,t){if(Oc!==void 0){let n=Oc();return e??(t?`${t}-${n}`:n)}return Dc(e,t)}function Ac(e){return kc(e,`base-ui`)}var jc=`none`,Mc=`trigger-press`,Nc=`trigger-hover`,Pc=`trigger-focus`,Fc=`outside-press`,Ic=`item-press`,Lc=`close-press`,Rc=`focus-out`,zc=`escape-key`,Bc=`list-navigation`,Vc=`cancel-open`,Hc=`sibling-open`,Uc=`disabled`,Wc=`imperative-action`;function Gc(e,t,n,r){let i=!1,a=!1,o=r??Qs;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}function Kc(e){H.useEffect(e,Zs)}var qc=null,Jc=globalThis.requestAnimationFrame,Yc=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1;let n=Jc!==requestAnimationFrame&&(Jc=requestAnimationFrame,!0);return(!this.isScheduled||n)&&(requestAnimationFrame(this.tick),this.isScheduled=!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},Xc=class e{static create(){return new e}static request(e){return Yc.request(e)}static cancel(e){return Yc.cancel(e)}currentId=qc;request(e){this.cancel(),this.currentId=Yc.request(()=>{this.currentId=qc,e()})}cancel=()=>{this.currentId!==qc&&(Yc.cancel(this.currentId),this.currentId=qc)};disposeEffect=()=>this.cancel};function Zc(){let e=ws(Xc.create).current;return Kc(e.disposeEffect),e}function Qc(e,t=!1,n=!1){let[r,i]=H.useState(e&&t?`idle`:void 0),[a,o]=H.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),K(()=>{if(!e&&a&&r!==`ending`&&n){let e=Xc.request(()=>{i(`ending`)});return()=>{Xc.cancel(e)}}},[e,a,r,n]),K(()=>{if(!e||t)return;let n=Xc.request(()=>{i(void 0)});return()=>{Xc.cancel(n)}},[t,e]),K(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=Xc.request(()=>{i(`idle`)});return()=>{Xc.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function $c(e){let{open:t,defaultOpen:n,onOpenChange:r,disabled:i}=e,[a,o]=bs({controlled:t,default:n,name:`Collapsible`,state:`open`}),{mounted:s,setMounted:c,transitionStatus:l}=Qc(a,!0,!0),u=Ac(),[d,f]=H.useState(),p=d===null?void 0:d??u,m=G(e=>{let t=!a,n=Gc(Mc,e.nativeEvent);r(t,n),!n.isCanceled&&o(t)});return H.useMemo(()=>({defaultPanelId:u,disabled:i,handleTrigger:m,mounted:s,open:a,panelId:p,setMounted:c,setOpen:o,setPanelIdState:f,transitionStatus:l}),[u,i,m,s,a,p,c,o,f,l])}var el=H.createContext(void 0);el.displayName=`CollapsibleRootContext`;function tl(){let e=H.useContext(el);if(e===void 0)throw Error(`Base UI: CollapsibleRootContext is missing. Collapsible parts must be placed within <Collapsible.Root>.`);return e}function nl(e={}){let{guess:t,label:n,metadata:r,textRef:i,index:a}=e,{register:o,unregister:s,subscribeMapChange:c,nextIndexRef:l}=Ms(),u=H.useRef(-1),[d,f]=H.useState(a==null&&t?()=>{if(u.current===-1){let e=l.current;l.current+=1,u.current=e}return u.current}:-1),p=a??d,m=H.useRef(null),h=H.useCallback(e=>{let t=m.current;t&&s(t),m.current=e,e&&o(e,{metadata:r??null,index:a??null,label:n,textRef:i})},[a,o,s,r,n,i]);return K(()=>{if(a==null)return c(e=>{let t=m.current?e.get(m.current)?.index:null;t!=null&&f(t)})},[a,c]),{ref:h,index:p}}var rl=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),il={"data-starting-style":``},al={"data-ending-style":``},ol={transitionStatus(e){return e===`starting`?il:e===`ending`?al:null}},sl=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=rl.startingStyle]=`startingStyle`,e[e.endingStyle=rl.endingStyle]=`endingStyle`,e}({}),cl=function(e){return e.panelOpen=`data-panel-open`,e}({}),ll={[sl.open]:``},ul={[sl.closed]:``},dl={open(e){return e?{[cl.panelOpen]:``}:null}},fl={open(e){return e?ll:ul}};function pl(){return typeof window<`u`}function ml(e){return _l(e)?(e.nodeName||``).toLowerCase():`#document`}function hl(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function gl(e){return((_l(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function _l(e){return pl()?e instanceof Node||e instanceof hl(e).Node:!1}function vl(e){return pl()?e instanceof Element||e instanceof hl(e).Element:!1}function yl(e){return pl()?e instanceof HTMLElement||e instanceof hl(e).HTMLElement:!1}function bl(e){return!pl()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof hl(e).ShadowRoot}function xl(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Ml(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Sl(e){return/^(table|td|th)$/.test(ml(e))}function Cl(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var wl=/transform|translate|scale|rotate|perspective|filter/,Tl=/paint|layout|strict|content/,El=e=>!!e&&e!==`none`,Dl;function Ol(e){let t=vl(e)?Ml(e):e;return El(t.transform)||El(t.translate)||El(t.scale)||El(t.rotate)||El(t.perspective)||!Al()&&(El(t.backdropFilter)||El(t.filter))||wl.test(t.willChange||``)||Tl.test(t.contain||``)}function kl(e){let t=Pl(e);for(;yl(t)&&!jl(t);){if(Ol(t))return t;if(Cl(t))return null;t=Pl(t)}return null}function Al(){return Dl??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Dl}function jl(e){return/^(html|body|#document)$/.test(ml(e))}function Ml(e){return hl(e).getComputedStyle(e)}function Nl(e){return vl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Pl(e){if(ml(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||bl(e)&&e.host||gl(e);return bl(t)?t.host:t}function Fl(e){let t=Pl(e);return jl(t)?(e.ownerDocument||e).body:yl(t)&&xl(t)?t:Fl(t)}function Il(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=Fl(e),i=r===e.ownerDocument?.body,a=hl(r);if(i){let e=Ll(a);return t.concat(a,a.visualViewport||[],xl(r)?r:[],e&&n?Il(e):[])}else return t.concat(r,Il(r,[],n))}function Ll(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var Rl=H.createContext(void 0);Rl.displayName=`CompositeRootContext`;function zl(e=!1){let t=H.useContext(Rl);if(t===void 0&&!e)throw Error(`Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.`);return t}function Bl(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return{props:H.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}}function Vl(e){return e?.ownerDocument||document}function Hl(e,t,{detail:n=0}={}){e.dispatchEvent(new(hl(e)).PointerEvent(`click`,{bubbles:!0,cancelable:!0,composed:!0,detail:n,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,altKey:t.altKey,metaKey:t.metaKey}))}function Ul(e={}){let{disabled:t=!1,focusableWhenDisabled:n,tabIndex:r=0,native:i=!0,composite:a}=e,o=H.useRef(null),s=zl(!0),c=a??s!==void 0,{props:l}=Bl({focusableWhenDisabled:n,disabled:t,composite:c,tabIndex:r,isNativeButton:i});H.useEffect(()=>{if(!o.current)return;let e=Wl(o.current);i?e||ys(`A component that acts as a button expected a native <button> because the \`nativeButton\` prop is true. Rendering a non-<button> removes native button semantics, which can impact forms and accessibility. Use a real <button> in the \`render\` prop, or set \`nativeButton\` to \`false\`.${Ss.captureOwnerStack?.()||``}`):e&&ys(`A component that acts as a button expected a non-<button> because the \`nativeButton\` prop is false. Rendering a <button> keeps native behavior while Base UI applies non-native attributes and handlers, which can add unintended extra attributes (such as \`role\` or \`aria-disabled\`). Use a non-<button> in the \`render\` prop, or set \`nativeButton\` to \`true\`.${Ss.captureOwnerStack?.()||``}`)},[i]);let u=H.useCallback(()=>{let e=o.current;Wl(e)&&c&&t&&l.disabled===void 0&&e.disabled&&(e.disabled=!1)},[t,l.disabled,c]);return K(u,[u]),{getButtonProps:H.useCallback((e={})=>{let{onClick:n,onMouseDown:r,onKeyUp:a,onKeyDown:o,onPointerDown:s,...u}=e;return rc({onClick(e){if(t){e.preventDefault();return}n?.(e)},onMouseDown(e){t||r?.(e)},onKeyDown(e){if(t||(mc(e),o?.(e),e.baseUIHandlerPrevented))return;let n=e.target===e.currentTarget,r=e.currentTarget,a=Wl(r),s=!i&&Gl(r),l=n&&(i?a:!s),u=e.key===`Enter`,d=e.key===` `,f=r.getAttribute(`role`),p=f?.startsWith(`menuitem`)||f===`option`||f===`gridcell`;if(n&&c&&d){if(e.defaultPrevented&&p)return;e.preventDefault(),(!i||a)&&(e.preventBaseUIHandler(),Hl(r,e));return}if(!l||i||!d&&!u){n&&s&&d&&e.preventDefault();return}e.defaultPrevented||(e.preventDefault(),u&&(e.preventBaseUIHandler(),Hl(r,e)))},onKeyUp(e){if(!t){if(mc(e),a?.(e),e.target===e.currentTarget&&i&&c&&Wl(e.currentTarget)&&e.key===` `){e.preventDefault();return}e.baseUIHandlerPrevented||e.target===e.currentTarget&&!i&&!c&&!e.defaultPrevented&&e.key===` `&&(e.preventBaseUIHandler(),Hl(e.currentTarget,e))}},onPointerDown(e){if(t){e.preventDefault();return}s?.(e)}},i?{type:`button`}:{role:`button`},l,u)},[t,l,c,i]),buttonRef:G(e=>{o.current=e,u()})}}function Wl(e){return yl(e)&&e.tagName===`BUTTON`}function Gl(e){return yl(e)&&e.tagName===`A`&&!!e.href}function Kl(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function ql(e){let t=ws(Jl,e).current;return t.next=e,K(t.effect),t}function Jl(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}function Yl(e){return e==null?e:`current`in e?e.current:e}var Xl=u(at(),1);function Zl(e,t=!1){let n=Zc();return G((r,i=null)=>{n.cancel();let a=Yl(e);if(a==null)return;let o=a,s=()=>{Xl.flushSync(r)};if(typeof o.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){r();return}function c(){Promise.all(o.getAnimations().map(e=>e.finished)).then(()=>{i?.aborted||s()},()=>{if(!i?.aborted){if(o.getAnimations().some(e=>e.pending||e.playState!==`finished`)){c();return}s()}})}if(t){let e=`data-starting-style`;if(!o.hasAttribute(e)){n.request(c);return}let t=new MutationObserver(()=>{o.hasAttribute(e)||(t.disconnect(),c())});t.observe(o,{attributes:!0,attributeFilter:[e]}),i?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}n.request(c)})}function Ql(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=G(i),o=Zl(r,n);H.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}var $l={height:void 0,width:void 0};function eu(e){let{externalRef:t,hiddenUntilFound:n,id:r,keepMounted:i,mounted:a,onOpenChange:o,open:s,setMounted:c,setOpen:l,transitionStatus:u}=e,d=H.useRef(null),f=H.useRef(null),[p,m]=H.useState($l),h=H.useRef($l),g=H.useRef(!1),_=H.useRef(s),v=H.useRef(!1),[y,b]=H.useState(!1),x=H.useRef(null),S=Bs(t,d),C=ql(s),w=Zl(d),T=!s&&!a,E=y?`idle`:u,D=s&&(_.current||v.current),O=!s&&a&&f.current===`css-animation`&&p.height===void 0&&p.width===void 0?h.current:p,k=n&&T&&f.current!==`css-animation`,A=G((e,t=!0)=>{t&&(h.current=e),m(e)}),j=G(()=>{x.current?.(),x.current=null}),M=G(e=>{j(),x.current=()=>{x.current=null,e()}}),N=G(()=>{s&&a&&f.current===`css-animation`&&(v.current=!0)});K(()=>{!y||u===`starting`||b(!1)},[y,u]),H.useEffect(()=>()=>{N(),j()},[N,j]),K(()=>{let e=d.current;if(!e)return;!s&&x.current&&j();let t=nu(e,D);if(f.current=t,s&&u===`idle`&&_.current&&t===`css-animation`){h.current=tu(e);return}if(s&&u===`starting`){let n=g.current;if(g.current=!1,t===`none`){A(tu(e)),b(!0);return}if(t===`css-transition`){let t=au(e);if(A(tu(e)),!n)return t;let r=iu(e,`transition-duration`,`0s`);return M(r),b(!0),t}A(tu(e));let r=iu(e,`animation-name`,`none`);if(!n){r();return}let i=iu(e,`animation-duration`,`0s`);r(),M(i),b(!0);return}if(!s&&a&&(u===`idle`||u===`starting`)){if(_.current=!1,v.current=!1,t===`none`){A($l,!1),c(!1);return}A(tu(e));return}if(u!==`ending`)return;if(t===`none`){c(!1);return}let n=tu(e);if(!(n.height>0||n.width>0)){c(!1);return}A(n),t===`css-animation`&&iu(e,`animation-name`,`none`)()},[a,s,j,A,c,M,D,u]),Ql({enabled:s&&a&&E===`idle`,open:!0,ref:d,onComplete(){s&&A($l,!1)}}),H.useEffect(()=>{if(s||!a||E!==`ending`||!d.current)return;let e=new AbortController,t=-1;function n(){C.current||(c(!1),A($l,!1))}return t=Xc.request(()=>{w(n,e.signal)}),()=>{Xc.cancel(t),e.abort()}},[C,a,s,E,w,A,c]),K(()=>{let e=d.current;!e||!n||!T||e.setAttribute(`hidden`,`until-found`)},[T,n]),H.useEffect(function(){let e=d.current;if(!e)return;function t(e){let t=Gc(jc,e);o(!0,t),!t.isCanceled&&(g.current=!0,l(!0))}return Kl(e,`beforematch`,t)},[o,l]);let P=i||n||a||s;return{height:O.height,props:{...k?{[sl.startingStyle]:``}:void 0,hidden:T,id:r},ref:S,shouldPreventOpenAnimation:D,shouldRender:P,transitionStatus:E,width:O.width}}function tu(e){return{height:e.scrollHeight,width:e.scrollWidth}}function nu(e,t){let n=hl(e).getComputedStyle(e),r=(n.animationName.split(`,`).map(e=>e.trim()).some(e=>e!==``&&e!==`none`)||t)&&ru(n.animationDuration),i=ru(n.transitionDuration);return r&&i?(As(`CSS transitions and CSS animations both detected on Collapsible or Accordion panel.`,`Only one of either animation type should be used.`),`css-transition`):i?`css-transition`:r?`css-animation`:`none`}function ru(e){return e.split(`,`).map(e=>e.trim()).some(e=>e!==``&&Number.parseFloat(e)>0)}function iu(e,t,n){let r=e.style.getPropertyValue(t),i=e.style.getPropertyPriority(t);return e.style.setProperty(t,n),()=>{if(r===``){e.style.removeProperty(t);return}e.style.setProperty(t,r,i)}}function au(e){let t={"justify-content":e.style.justifyContent,"align-items":e.style.alignItems,"align-content":e.style.alignContent,"justify-items":e.style.justifyItems};Object.keys(t).forEach(t=>{e.style.setProperty(t,`initial`,`important`)});function n(){Object.entries(t).forEach(([t,n])=>{if(n===``){e.style.removeProperty(t);return}e.style.setProperty(t,n)})}let r=Xc.request(n);return()=>{Xc.cancel(r),n()}}var q=_s();function ou(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ou(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function su(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ou(e))&&(r&&(r+=` `),r+=t);return r}var cu=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},lu=(e,t)=>({classGroupId:e,validator:t}),uu=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),du=`-`,fu=[],pu=`arbitrary..`,mu=e=>{let t=_u(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return gu(e);let n=e.split(du);return hu(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?cu(i,t):t:i||fu}return n[e]||fu}}},hu=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=hu(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(du):e.slice(t).join(du),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},gu=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?pu+r:void 0})(),_u=e=>{let{theme:t,classGroups:n}=e;return vu(n,t)},vu=(e,t)=>{let n=uu();for(let r in e){let i=e[r];yu(i,n,r,t)}return n},yu=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];bu(i,t,n,r)}},bu=(e,t,n,r)=>{if(typeof e==`string`){xu(e,t,n);return}if(typeof e==`function`){Su(e,t,n,r);return}Cu(e,t,n,r)},xu=(e,t,n)=>{let r=e===``?t:wu(t,e);r.classGroupId=n},Su=(e,t,n,r)=>{if(Tu(e)){yu(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(lu(n,e))},Cu=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];yu(o,wu(t,a),n,r)}},wu=(e,t)=>{let n=e,r=t.split(du),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=uu(),n.nextPart.set(t,i)),n=i}return n},Tu=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,Eu=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},Du=`!`,Ou=`:`,ku=[],Au=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ju=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===Ou){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(Du)?(c=s.slice(0,-1),l=!0):s.startsWith(Du)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return Au(t,l,c,u)};if(t){let e=t+Ou,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):Au(ku,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},Mu=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},Nu=e=>({cache:Eu(e.cacheSize),parseClassName:ju(e),sortModifiers:Mu(e),postfixLookupClassGroupIds:Pu(e),...mu(e)}),Pu=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},Fu=/\s+/,Iu=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(Fu),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+Du:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},Lu=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=Ru(n))&&(i&&(i+=` `),i+=r);return i},Ru=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=Ru(e[r]))&&(n&&(n+=` `),n+=t);return n},zu=(e,...t)=>{let n,r,i,a,o=o=>(n=Nu(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=Iu(e,n);return i(e,a),a};return a=o,(...e)=>a(Lu(...e))},Bu=[],Vu=e=>{let t=t=>t[e]||Bu;return t.isThemeGetter=!0,t},Hu=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Uu=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Wu=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Gu=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ku=/\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$/,qu=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ju=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Yu=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xu=e=>Wu.test(e),Zu=e=>!!e&&!Number.isNaN(Number(e)),Qu=e=>!!e&&Number.isInteger(Number(e)),$u=e=>e.endsWith(`%`)&&Zu(e.slice(0,-1)),ed=e=>Gu.test(e),td=()=>!0,nd=e=>Ku.test(e)&&!qu.test(e),rd=()=>!1,id=e=>Ju.test(e),ad=e=>Yu.test(e),od=e=>!J(e)&&!gd(e),sd=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),cd=e=>wd(e,Od,rd),J=e=>Hu.test(e),ld=e=>wd(e,kd,nd),ud=e=>wd(e,Ad,Zu),dd=e=>wd(e,Md,td),fd=e=>wd(e,jd,rd),pd=e=>wd(e,Ed,rd),md=e=>wd(e,Dd,ad),hd=e=>wd(e,Nd,id),gd=e=>Uu.test(e),_d=e=>Td(e,kd),vd=e=>Td(e,jd),yd=e=>Td(e,Ed),bd=e=>Td(e,Od),xd=e=>Td(e,Dd),Sd=e=>Td(e,Nd,!0),Cd=e=>Td(e,Md,!0),wd=(e,t,n)=>{let r=Hu.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Td=(e,t,n=!1)=>{let r=Uu.exec(e);return r?r[1]?t(r[1]):n:!1},Ed=e=>e===`position`||e===`percentage`,Dd=e=>e===`image`||e===`url`,Od=e=>e===`length`||e===`size`||e===`bg-size`,kd=e=>e===`length`,Ad=e=>e===`number`,jd=e=>e===`family-name`,Md=e=>e===`number`||e===`weight`,Nd=e=>e===`shadow`,Pd=zu(()=>{let e=Vu(`color`),t=Vu(`font`),n=Vu(`text`),r=Vu(`font-weight`),i=Vu(`tracking`),a=Vu(`leading`),o=Vu(`breakpoint`),s=Vu(`container`),c=Vu(`spacing`),l=Vu(`radius`),u=Vu(`shadow`),d=Vu(`inset-shadow`),f=Vu(`text-shadow`),p=Vu(`drop-shadow`),m=Vu(`blur`),h=Vu(`perspective`),g=Vu(`aspect`),_=Vu(`ease`),v=Vu(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),gd,J],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[gd,J,c],T=()=>[Xu,`full`,`auto`,...w()],E=()=>[Qu,`none`,`subgrid`,gd,J],D=()=>[`auto`,{span:[`full`,Qu,gd,J]},Qu,gd,J],O=()=>[Qu,`auto`,gd,J],k=()=>[`auto`,`min`,`max`,`fr`,gd,J],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[Xu,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[Xu,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[Xu,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,gd,J],L=()=>[...b(),yd,pd,{position:[gd,J]}],R=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ee=()=>[`auto`,`cover`,`contain`,bd,cd,{size:[gd,J]}],te=()=>[$u,_d,ld],z=()=>[``,`none`,`full`,l,gd,J],ne=()=>[``,Zu,_d,ld],re=()=>[`solid`,`dashed`,`dotted`,`double`],B=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],ie=()=>[Zu,$u,yd,pd],ae=()=>[``,`none`,m,gd,J],oe=()=>[`none`,Zu,gd,J],V=()=>[`none`,Zu,gd,J],se=()=>[Zu,gd,J],ce=()=>[Xu,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[ed],breakpoint:[ed],color:[td],container:[ed],"drop-shadow":[ed],ease:[`in`,`out`,`in-out`],font:[od],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[ed],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[ed],shadow:[ed],spacing:[`px`,Zu],text:[ed],"text-shadow":[ed],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Xu,J,gd,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,gd,J]}],"container-named":[sd],columns:[{columns:[Zu,J,gd,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Qu,`auto`,gd,J]}],basis:[{basis:[Xu,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[Zu,Xu,`auto`,`initial`,`none`,J]}],grow:[{grow:[``,Zu,gd,J]}],shrink:[{shrink:[``,Zu,gd,J]}],order:[{order:[Qu,`first`,`last`,`none`,gd,J]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,_d,ld]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Cd,dd]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,$u,J]}],"font-family":[{font:[vd,fd,t]}],"font-features":[{"font-features":[J]}],"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:[i,gd,J]}],"line-clamp":[{"line-clamp":[Zu,`none`,gd,ud]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,gd,J]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,gd,J]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...re(),`wavy`]}],"text-decoration-thickness":[{decoration:[Zu,`from-font`,`auto`,gd,ld]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[Zu,`auto`,gd,J]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[Qu,gd,J]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,gd,J]}],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`,gd,J]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Qu,gd,J],radial:[``,gd,J],conic:[Qu,gd,J]},xd,md]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-bs":[{"border-bs":ne()}],"border-w-be":[{"border-be":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...re(),`hidden`,`none`]}],"divide-style":[{divide:[...re(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...re(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[Zu,gd,J]}],"outline-w":[{outline:[``,Zu,_d,ld]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,Sd,hd]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,Sd,hd]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:ne()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[Zu,ld]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,Sd,hd]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[Zu,gd,J]}],"mix-blend":[{"mix-blend":[...B(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":B()}],"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":[Zu]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[gd,J]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"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":b()}],"mask-image-conic-pos":[{"mask-conic":[Zu]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,gd,J]}],filter:[{filter:[``,`none`,gd,J]}],blur:[{blur:ae()}],brightness:[{brightness:[Zu,gd,J]}],contrast:[{contrast:[Zu,gd,J]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Sd,hd]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,Zu,gd,J]}],"hue-rotate":[{"hue-rotate":[Zu,gd,J]}],invert:[{invert:[``,Zu,gd,J]}],saturate:[{saturate:[Zu,gd,J]}],sepia:[{sepia:[``,Zu,gd,J]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,gd,J]}],"backdrop-blur":[{"backdrop-blur":ae()}],"backdrop-brightness":[{"backdrop-brightness":[Zu,gd,J]}],"backdrop-contrast":[{"backdrop-contrast":[Zu,gd,J]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,Zu,gd,J]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Zu,gd,J]}],"backdrop-invert":[{"backdrop-invert":[``,Zu,gd,J]}],"backdrop-opacity":[{"backdrop-opacity":[Zu,gd,J]}],"backdrop-saturate":[{"backdrop-saturate":[Zu,gd,J]}],"backdrop-sepia":[{"backdrop-sepia":[``,Zu,gd,J]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,gd,J]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[Zu,`initial`,gd,J]}],ease:[{ease:[`linear`,`initial`,_,gd,J]}],delay:[{delay:[Zu,gd,J]}],animate:[{animate:[`none`,v,gd,J]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,gd,J]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:V()}],"scale-x":[{"scale-x":V()}],"scale-y":[{"scale-y":V()}],"scale-z":[{"scale-z":V()}],"scale-3d":[`scale-3d`],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[gd,J,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":[`translate-none`],zoom:[{zoom:[Qu,gd,J]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"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`,gd,J]}],"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":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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`,gd,J]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[Zu,_d,ld,ud]}],stroke:[{stroke:[`none`,...I()]}],"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`]}});function Fd(){if(typeof navigator>`u`)return{userAgent:``,platform:``,maxTouchPoints:0};{let e=navigator.userAgentData;if(e&&Array.isArray(e.brands))return{userAgent:e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `),platform:e.platform??navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}return{userAgent:navigator.userAgent,platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??0}}var{userAgent:Id,platform:Ld,maxTouchPoints:Rd}=Fd(),zd=Id.toLowerCase(),Bd=Ld.toLowerCase(),Vd=/^i(os$|p)/.test(Bd)||Bd===`macintel`&&Rd>1,Hd=`android`,Ud=Bd===Hd||zd.includes(Hd),Wd=!Vd&&Bd.startsWith(`mac`);Bd.startsWith(`win`),!Ud&&/^(linux|chrome os)/.test(Bd);var Gd=Wd||Vd,Kd=typeof CSS<`u`&&!!CSS.supports?.(`-webkit-backdrop-filter:none`);!Kd&&zd.includes(`firefox`),!Kd&&zd.includes(`chrom`);var qd=Gd,Jd=/jsdom|happydom/.test(zd),Yd=0,Xd=class e{static create(){return new e}currentId=Yd;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=Yd,t()},e)}isStarted(){return this.currentId!==Yd}clear=()=>{this.currentId!==Yd&&(clearTimeout(this.currentId),this.currentId=Yd)};disposeEffect=()=>this.clear};function Zd(){let e=ws(Xd.create).current;return Kc(e.disposeEffect),e}var Qd={},$d={},ef=``;function tf(e,t){return xl(e)?e:t}function nf(e,t,n){return/hidden|clip/.test(e.getComputedStyle(tf(t,n)).overflowY)}function rf(e){if(typeof document>`u`)return!1;let t=Vl(e);return hl(t).innerWidth-t.documentElement.clientWidth>0}function af(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=Vl(e),n=t.documentElement,r=t.body,i=tf(n,r),a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function of(e){let t=Vl(e),n=t.documentElement,r=t.body,i=tf(n,r),a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function sf(e){let t=Vl(e),n=t.documentElement,r=t.body,i=hl(n),a=0,o=0,s=!1,c=Xc.create();if(Kd&&(i.visualViewport?.scale??1)!==1)return()=>{};function l(){let t=i.getComputedStyle(n),c=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;a=n.scrollTop,o=n.scrollLeft,Qd={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},ef=n.style.scrollBehavior,$d={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||c.overflowY===`scroll`,p=t.overflowX===`scroll`||c.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(c.marginTop)+parseFloat(c.marginBottom),_=parseFloat(c.marginLeft)+parseFloat(c.marginRight),v=tf(n,r);if(s=af(e),s){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflowY:`hidden`,overflowX:`hidden`,scrollBehavior:`unset`}),r.scrollTop=a,r.scrollLeft=o,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function u(){Object.assign(n.style,Qd),Object.assign(r.style,$d),s||(n.scrollTop=a,n.scrollLeft=o,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=ef)}function d(){u(),c.request(l)}l();let f=Kl(i,`resize`,d);return()=>{c.cancel(),u(),typeof i.removeEventListener==`function`&&f()}}var cf=new class{lockCount=0;restore=null;timeoutLock=Xd.create();timeoutUnlock=Xd.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=Vl(e),n=t.documentElement,r=t.body,i=hl(n);if(nf(i,n,r)){let t=new i.MutationObserver(()=>{nf(i,n,r)||(t.disconnect(),this.restore=null,this.lock(e))}),a={attributes:!0};t.observe(n,a),t.observe(r,a),this.restore=()=>t.disconnect();return}let a=Vd||!rf(e);this.restore=a?of(e):sf(e)}};function lf(e=!0,t=null){K(()=>{if(e)return cf.acquire(t)},[e,t])}function uf(e){e.preventDefault(),e.stopPropagation()}function df(e){return`nativeEvent`in e}function ff(e){return e.pointerType===``&&e.isTrusted?!0:Ud&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function pf(e){return Jd?!1:!Ud&&e.width===0&&e.height===0||Ud&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function mf(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function hf(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var gf=`data-base-ui-focusable`,_f=`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`,vf=`ArrowLeft`,yf=`ArrowRight`,bf=`ArrowUp`,xf=`ArrowDown`;function Sf(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function Cf(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&bl(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function wf(e){return`composedPath`in e?e.composedPath()[0]:e.target}function Tf(e,t){if(!vl(e))return!1;let n=e;if(t.hasElement(n))return!n.hasAttribute(`data-trigger-disabled`);for(let[,e]of t.entries())if(Cf(e,n))return!e.hasAttribute(`data-trigger-disabled`);return!1}function Ef(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Df(e){return e.matches(`html,body`)}function Of(e){return yl(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function kf(e){return e?.closest(`button,a[href],[role="button"],select,[tabindex]:not([tabindex="-1"]),${_f}`)!=null}function Af(e){return e?e.getAttribute(`role`)===`combobox`&&Of(e):!1}function jf(e){if(!e||Jd)return!0;try{return e.matches(`:focus-visible`)}catch{return!0}}function Mf(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Nf(e,t){return t!=null&&!mf(t)?0:typeof e==`function`?e():e}function Pf(e,t,n){let r=Nf(e,n);return typeof r==`number`?r:r?.[t]}function Ff(e){return typeof e==`function`?e():e}function If(e,t){return t||e===`click`||e===`mousedown`}function Lf(e){return e?.includes(`mouse`)&&e!==`mousedown`}var Rf=H.createContext({hasProvider:!1,timeoutMs:0,delayRef:{current:0},initialDelayRef:{current:0},timeout:new Xd,currentIdRef:{current:null},currentContextRef:{current:null}});Rf.displayName=`FloatingDelayGroupContext`;function zf(e,t){e.current=t.current}function Y(e,t={open:!1}){let{open:n}=t,r=`rootStore`in e?e.rootStore:e,i=r.useState(`floatingId`),{currentIdRef:a,delayRef:o,timeoutMs:s,initialDelayRef:c,currentContextRef:l,hasProvider:u,timeout:d}=H.useContext(Rf),[f,p]=H.useState(!1),m=H.useRef(n);return K(()=>{m.current=n},[n]),K(()=>{function e(){l.current?.setIsInstantPhase(!1),a.current=null,l.current=null,o.current=c.current,d.clear()}if(a.current&&!n&&a.current===i){if(p(!1),s){let t=i;return d.start(s,()=>{r.select(`open`)||a.current&&a.current!==t||e()}),()=>{(m.current||a.current!==t)&&d.clear()}}e()}},[n,i,a,o,s,c,l,d,r]),K(()=>{if(!n)return;let e=l.current,t=a.current;d.clear(),l.current={onOpenChange:r.setOpen,setIsInstantPhase:p},a.current=i,o.current={open:0,close:Pf(c.current,`close`)},t!==null&&t!==i?(p(!0),e?.setIsInstantPhase(!0),e?.onOpenChange(!1,Gc(jc))):(p(!1),e?.setIsInstantPhase(!1))},[n,i,r,a,o,c,l,d]),K(()=>()=>{if(a.current===i){if(l.current=null,!m.current)return;a.current=null,zf(o,c),d.clear()}},[l,a,o,i,c,d]),H.useMemo(()=>({hasProvider:u,delayRef:o,isInstantPhase:f}),[u,o,f])}function Bf(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Vf={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Hf={...Vf,position:`fixed`,top:0,left:0},Uf={...Vf,position:`absolute`},Wf=H.forwardRef(function(e,t){let[n,r]=H.useState();K(()=>{qd&&Kd&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,U.jsx)(`span`,{...e,ref:t,style:Hf,"aria-hidden":!n||void 0,...i,"data-base-ui-focus-guard":``})});Wf.displayName=`FocusGuard`;var Gf=Math.min,Kf=Math.max,qf=Math.round,Jf=Math.floor,Yf=e=>({x:e,y:e}),Xf={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Zf(e,t,n){return Kf(e,Gf(t,n))}function Qf(e,t){return typeof e==`function`?e(t):e}function $f(e){return e.split(`-`)[0]}function ep(e){return e.split(`-`)[1]}function tp(e){return e===`x`?`y`:`x`}function np(e){return e===`y`?`height`:`width`}function rp(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function ip(e){return tp(rp(e))}function ap(e,t,n){n===void 0&&(n=!1);let r=ep(e),i=ip(e),a=np(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=mp(o)),[o,mp(o)]}function op(e){let t=mp(e);return[sp(e),t,sp(t)]}function sp(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var cp=[`left`,`right`],lp=[`right`,`left`],up=[`top`,`bottom`],dp=[`bottom`,`top`];function fp(e,t,n){switch(e){case`top`:case`bottom`:return n?t?lp:cp:t?cp:lp;case`left`:case`right`:return t?up:dp;default:return[]}}function pp(e,t,n,r){let i=ep(e),a=fp($f(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(sp)))),a}function mp(e){let t=$f(e);return Xf[t]+e.slice(t.length)}function hp(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function gp(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:hp(e)}function _p(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function vp(e,t){return t<0||t>=e.length}function yp(e,t){return xp(e.current,{disabledIndices:t})}function bp(e,t){return xp(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function xp(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Sp(e,a,r));return a}function Sp(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?!wp(r)||r.matches(`:disabled`)?!0:!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!1}function Cp(e){return e.visibility===`hidden`||e.visibility===`collapse`}function wp(e,t=e?Ml(e):null){return!e||!e.isConnected||!t||Cp(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var Tp=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function Ep(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return bl(n)?n.host:null}function Dp(e){for(let t of Array.from(e.children))if(ml(t)===`summary`)return t;return null}function Op(e,t){let n=Dp(t);return!!n&&(e===n||Cf(n,e))}function kp(e){let t=e?ml(e):``;return e!=null&&e.matches(Tp)&&(t!==`summary`||e.parentElement!=null&&ml(e.parentElement)===`details`&&Dp(e.parentElement)===e)&&(t!==`details`||Dp(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Ap(e){if(!kp(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=Ep(t)){let n=t!==e,r=ml(t)===`slot`;if(t.hasAttribute(`inert`)||n&&ml(t)===`details`&&!t.open&&!Op(e,t)||t.hasAttribute(`hidden`)||!r&&!jp(t,n))return!1}return!0}function jp(e,t){let n=Ml(e);return t?n.display!==`none`:wp(e,n)}function Mp(e){let t=e.tabIndex;if(t<0){let t=ml(e);if(t===`details`||t===`audio`||t===`video`||yl(e)&&e.isContentEditable)return 0}return t}function Np(e){if(ml(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Pp(e,t){let n=Np(e);if(!n)return!0;let r=t.find(e=>{let t=Np(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Np(e);return t?.name===n.name&&t.form===n.form})===n}function Fp(e){if(yl(e)&&ml(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return yl(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Ip(e,t){Fp(e).forEach(e=>{kp(e)&&t.push(e),Ip(e,t)})}function Lp(e,t,n){Fp(e).forEach(e=>{yl(e)&&e.matches(t)&&n.push(e),Lp(e,t,n)})}function Rp(e){return Ap(e)&&Mp(e)>=0}function zp(e){let t=[];return Ip(e,t),t.filter(Ap)}function Bp(e){let t=zp(e);return t.filter(e=>Mp(e)>=0&&Pp(e,t))}function Vp(e,t){let n=Bp(e),r=n.length;if(r===0)return;let i=Sf(Vl(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Hp(e){return Vp(Vl(e).body,1)||e}function Up(e){return Vp(Vl(e).body,-1)||e}function Wp(e,t){if(!e)return null;let n=Bp(Vl(e).body),r=n.length;if(r===0)return null;let i=n.indexOf(e);return i===-1?null:n[(i+t+r)%r]}function Gp(e){return Wp(e,1)}function Kp(e){return Wp(e,-1)}function qp(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!Cf(n,r)}function Jp(e){Bp(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Yp(e){let t=[];Lp(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}function Xp(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Xp(e,t.id,n)])}function Zp(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Qp(e){return`data-base-ui-${e}`}var $p=0;function em(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame($p);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),Xs;let o=requestAnimationFrame(a);return $p=o,()=>{$p===o&&(cancelAnimationFrame(o),$p=0)}}var tm={inert:new WeakMap,"aria-hidden":new WeakMap},nm=`data-base-ui-inert`,rm={inert:new WeakSet,"aria-hidden":new WeakSet},im=new WeakMap,am=0;function om(e){return rm[e]}function sm(e){return e?bl(e)?e.host:sm(e.parentNode):null}var cm=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=sm(t);return e.contains(n)?n:null}).filter(e=>e!=null),lm=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},um=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{ml(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function dm(e,t,n,r,{mark:i=!0}){let a=null;r?a=`inert`:n&&(a=`aria-hidden`);let o=null,s=null,c=cm(t,e),l=i?um(t,lm(c),new Set(c)):[],u=[],d=[];if(a){let e=tm[a],n=om(a);s=n,o=e;let r=cm(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=c.concat(r);um(t,lm(i),new Set(i)).forEach(t=>{let r=t.getAttribute(a),i=r!==null&&r!==`false`,o=(e.get(t)||0)+1;e.set(t,o),u.push(t),o===1&&i&&n.add(t),i||t.setAttribute(a,a===`inert`?``:`true`)})}return i&&l.forEach(e=>{let t=(im.get(e)||0)+1;im.set(e,t),d.push(e),t===1&&e.setAttribute(nm,``)}),am+=1,()=>{o&&u.forEach(e=>{let t=(o.get(e)||0)-1;o.set(e,t),t||(!s?.has(e)&&a&&e.removeAttribute(a),s?.delete(e))}),i&&d.forEach(e=>{let t=(im.get(e)||0)-1;im.set(e,t),t||e.removeAttribute(nm)}),--am,am||(tm.inert=new WeakMap,tm[`aria-hidden`]=new WeakMap,rm.inert=new WeakSet,rm[`aria-hidden`]=new WeakSet,im=new WeakMap)}}function fm(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0}=t,a=Vl(e[0]).body;return dm(e,a,n,r,{mark:i})}var pm={style:{transition:`none`}},mm={fallbackAxisSide:`none`},hm={fallbackAxisSide:`end`},gm={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},_m=H.createContext(null);_m.displayName=`PortalContext`;var vm=()=>H.useContext(_m),ym=Qp(`portal`);function bm(e={}){let{ref:t,container:n,componentProps:r=Qs,elementProps:i}=e,a=kc(),o=vm()?.portalNode,[s,c]=H.useState(null),[l,u]=H.useState(null),d=G(e=>{e!==null&&u(e)}),f=H.useRef(null);K(()=>{if(n===null){f.current&&(f.current=null,u(null),c(null));return}let e=(n&&(_l(n)?n:n.current))??o??document.body;if(e==null){f.current&&(f.current=null,u(null),c(null));return}f.current!==e&&(f.current=e,u(null),c(e))},[n,o]);let p=_c(`div`,r,{ref:[t,d],props:[{id:a,[ym]:``},i]}),m=s&&p?Xl.createPortal(p,s):null;return{node:l,nodeId:H.isValidElement(p)?p.props.id:void 0,subtree:m}}var xm=H.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,...s}=e,{node:c,nodeId:l,subtree:u}=bm({container:o,ref:t,componentProps:e,elementProps:s}),d=H.useRef(null),f=H.useRef(null),p=H.useRef(null),m=H.useRef(null),[h,g]=H.useState(null),_=H.useRef(!1),v=h?.modal,y=h?.open,b=!!h&&!h.modal&&h.open&&!!c;H.useEffect(()=>{if(!c||v)return;function e(e){c&&e.relatedTarget&&qp(e)&&(e.type===`focusin`?_.current&&=(Yp(c),!1):(Jp(c),_.current=!0))}return Bf(Kl(c,`focusin`,e,!0),Kl(c,`focusout`,e,!0))},[c,v]),K(()=>{!c||y!==!0||!_.current||(Yp(c),_.current=!1)},[y,c]);let x=H.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:c,setFocusManagerState:g}),[c]);return(0,U.jsxs)(H.Fragment,{children:[u,(0,U.jsxs)(_m.Provider,{value:x,children:[b&&c&&(0,U.jsx)(Wf,{"data-type":`outside`,ref:d,onFocus:e=>{qp(e,c)?p.current?.focus():Up(h?h.domReference:null)?.focus()}}),b&&c&&(0,U.jsx)(`span`,{"aria-owns":l,style:gm}),c&&Xl.createPortal(a,c),b&&c&&(0,U.jsx)(Wf,{"data-type":`outside`,ref:f,onFocus:e=>{qp(e,c)?m.current?.focus():(Hp(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Gc(`focus-out`,e.nativeEvent)))}})]})]})});xm.displayName=`FloatingPortal`;function Sm(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var Cm=class{nodesRef={current:[]};events=Sm();addNode(e){this.nodesRef.current.push(e)}removeNode(e){let t=this.nodesRef.current.findIndex(t=>t===e);t!==-1&&this.nodesRef.current.splice(t,1)}},wm=H.createContext(null);wm.displayName=`FloatingNodeContext`;var Tm=H.createContext(null);Tm.displayName=`FloatingTreeContext`;var Em=()=>H.useContext(wm)?.id||null,Dm=e=>{let t=H.useContext(Tm);return e??t};function Om(e){let t=kc(),n=Dm(e),r=Em();return K(()=>{if(!t)return;let e={id:t,parentId:r};return n?.addNode(e),()=>{n?.removeNode(e)}},[n,t,r]),t}function km(e){let{children:t,id:n}=e,r=Em();return(0,U.jsx)(wm.Provider,{value:H.useMemo(()=>({id:n,parentId:r}),[n,r]),children:t})}function Am(e){let{children:t,externalTree:n}=e,r=ws(()=>n??new Cm).current;return(0,U.jsx)(Tm.Provider,{value:r,children:t})}function jm(e,t){let n=hl(wf(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var Mm=20,Nm=[];function Pm(){Nm=Nm.filter(e=>e.deref()?.isConnected)}function Fm(e){Pm(),e&&ml(e)!==`body`&&(Nm.push(new WeakRef(e)),Nm.length>Mm&&(Nm=Nm.slice(-20)))}function Im(){return Pm(),Nm[Nm.length-1]?.deref()}function Lm(e){return e?Rp(e)?e:Bp(e)[0]||e:null}function Rm(e){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!e.getAttribute(`role`)?.includes(`dialog`))return;let t=zp(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Rp(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),n=e.getAttribute(`tabindex`);t.length===0?n!==`0`&&(e.setAttribute(`tabindex`,`0`),e.setAttribute(`data-tabindex`,`0`)):(n!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function zm(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:s=!0,closeOnFocusOut:c=!0,openInteractionType:l=``,nextFocusableElement:u,previousFocusableElement:d,beforeContentFocusGuardRef:f,externalTree:p,getInsideElements:m}=e,h=`rootStore`in t?t.rootStore:t,g=h.useState(`open`),_=h.useState(`domReferenceElement`),v=h.useState(`floatingElement`),{events:y,dataRef:b}=h.context,x=G(()=>b.current.floatingContext?.nodeId),S=i===!1,C=Af(_)&&S,w=ql(i),T=ql(a),E=ql(l),D=ql(g),O=Dm(p),k=vm(),A=H.useRef(!1),j=H.useRef(!1),M=H.useRef(!1),N=H.useRef(null),P=H.useRef(``),F=H.useRef(``),I=H.useRef(null),L=H.useRef(null),R=Bs(I,f,k?.beforeInsideRef),ee=Bs(L,k?.afterInsideRef),te=Zd(),z=Zd(),ne=Zc(),re=k!=null,B=Mf(v),ie=G((e=B)=>e?Bp(e):[]),ae=G(()=>m?.().filter(e=>e!=null)??[]);H.useEffect(()=>{if(r||!s)return;function e(e){e.key===`Tab`&&Cf(B,Sf(Vl(B)))&&ie().length===0&&!C&&uf(e)}return Kl(Vl(B),`keydown`,e)},[r,B,s,C,ie]),H.useEffect(()=>{if(r||!g)return;let e=Vl(B);function t(){M.current=!1}function n(e){let t=wf(e),n=ae(),r=Cf(v,t)||Cf(_,t)||Cf(k?.portalNode,t)||n.some(e=>e===t||Cf(e,t));M.current=!r,F.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(j.current=!0,z.start(0,()=>{j.current=!1}))}function i(){F.current=`keyboard`}return Bf(Kl(e,`pointerdown`,n,!0),Kl(e,`pointerup`,t,!0),Kl(e,`pointercancel`,t,!0),Kl(e,`keydown`,i,!0),t)},[r,v,_,B,g,k,z,ae]),H.useEffect(()=>{if(r||!c)return;let e=Vl(B);function t(){j.current=!0,z.start(0,()=>{j.current=!1})}function n(e){let t=wf(e);Rp(t)&&(N.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=wf(t);s&&n==null&&i!=null&&Cf(v,i)&&Fm(i),queueMicrotask(()=>{let a=x(),c=h.context.triggerElements,l=ae(),f=n?.hasAttribute(Qp(`focus-guard`))&&[I.current,L.current,k?.beforeInsideRef.current,k?.afterInsideRef.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,Yl(d),Yl(u)].includes(n),p=!(Cf(_,n)||Cf(v,n)||Cf(n,v)||Cf(k?.portalNode,n)||l.some(e=>e===n||Cf(e,n))||c.hasMatchingElement(e=>Cf(e,n))||f||O&&(Xp(O.nodesRef.current,a).find(e=>Cf(e.context?.elements.floating,n)||Cf(e.context?.elements.domReference,n))||Zp(O.nodesRef.current,a).find(e=>[e.context?.elements.floating,Mf(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===_&&B&&Rm(B),o&&r!==_&&!wp(i)&&Sf(e)===e.body){if(yl(B)&&(B.focus(),o===`popup`)){ne.request(()=>{B.focus()});return}let e=ie(),t=N.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||B;yl(n)&&n.focus()}if(b.current.insideReactTree){b.current.insideReactTree=!1;return}(C||!s)&&n&&p&&!j.current&&(C||n!==Im())&&(A.current=!0,h.setOpen(!1,Gc(Rc,t)))})}function a(){M.current||(b.current.insideReactTree=!0,te.start(0,()=>{b.current.insideReactTree=!1}))}let l=yl(_)?_:null;if(!(!v&&!l))return Bf(l&&Kl(l,`focusout`,i),l&&Kl(l,`pointerdown`,t),v&&Kl(v,`focusin`,n),v&&Kl(v,`focusout`,i),v&&k&&Kl(v,`focusout`,a,!0))},[r,_,v,B,s,O,k,h,c,o,ie,C,x,b,te,z,ne,u,d,ae]),H.useEffect(()=>{if(r||!v||!g)return;let e=Array.from(k?.portalNode?.querySelectorAll(`[${Qp(`portal`)}]`)||[]),t=(O?Zp(O.nodesRef.current,x()):[]).find(e=>Af(e.context?.elements.domReference||null))?.context?.elements.domReference,n=fm([v,...e,I.current,L.current,k?.beforeOutsideRef.current,k?.afterOutsideRef.current,...ae(),t,Yl(d),Yl(u),C?_:null].filter(e=>e!=null),{ariaHidden:s||C,mark:!1}),i=fm([v,...e].filter(e=>e!=null));return()=>{i(),n()}},[g,r,_,v,s,k,C,O,x,u,d,ae]),K(()=>{if(!g||r||!yl(B))return;P.current=``,F.current=``;let e=Vl(B),t=Sf(e);queueMicrotask(()=>{let n=w.current,r=typeof n==`function`?n(E.current||``):n;if(r===void 0||r===!1||Cf(B,t))return;let i=null,a=()=>(i??=ie(B),i[0]||B),o;o=r===!0||r===null?a():Yl(r),o||=a();let s=Cf(B,Sf(e));em(o,{preventScroll:o===B,shouldFocus(){if(!D.current)return!1;if(s)return!0;let t=Sf(e);return!(t!==o&&Cf(B,t))}})})},[r,g,B,ie,w,E,D]),K(()=>{if(r||!B)return;let e=Vl(B),t=Sf(e),n=E.current==null;Fm(t);function i(e){if(e.open||(P.current=jm(e.nativeEvent,F.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(A.current=!0),e.reason===`outside-press`)if(e.nested)A.current=!1;else if(ff(e.nativeEvent)||pf(e.nativeEvent))A.current=!1;else{let e=!1;Vl(B).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?A.current=!1:A.current=!0}}y.on(`openchange`,i);function a(e){let r=T.current,i=typeof r==`function`?r(e):r;if(i===void 0||i===!1)return null;i===null&&(i=!0);let a=_?.isConnected?_:null,o=t?.isConnected&&ml(t)!==`body`?t:null,s=n?o||a:a||o;return s||=Im()||null,typeof i==`boolean`?s:Yl(i)||s||null}return()=>{y.off(`openchange`,i);let t=Sf(e),n=ae(),r=Cf(v,t)||n.some(e=>e===t||Cf(e,t))||O&&Xp(O.nodesRef.current,x(),!1).some(e=>Cf(e.context?.elements.floating,t)),o=T.current,s=P.current,c=a(s);queueMicrotask(()=>{let n=Lm(c),i=typeof o!=`boolean`;if(o&&!A.current&&yl(n)&&(!(!i&&n!==t&&t!==e.body)||r)){let e={preventScroll:!0};s===`keyboard`&&(e.focusVisible=!0),n.focus(e)}A.current=!1})}},[r,v,B,T,E,y,O,_,x,ae]),K(()=>{if(!Kd||g||!v)return;let e=Sf(Vl(v));!yl(e)||!Of(e)||Cf(v,e)&&e.blur()},[g,v]),K(()=>{if(!(r||!k))return k.setFocusManagerState({modal:s,closeOnFocusOut:c,open:g,onOpenChange:h.setOpen,domReference:_}),()=>{k.setFocusManagerState(null)}},[r,k,s,g,h,c,_]),K(()=>{if(!(r||!B))return Rm(B),()=>{queueMicrotask(Pm)}},[r,B]);let oe=!r&&(!s||!C)&&(re||s);return(0,U.jsxs)(H.Fragment,{children:[oe&&(0,U.jsx)(Wf,{"data-type":`inside`,ref:R,onFocus:e=>{if(s){let e=ie();em(e[e.length-1])}else k?.portalNode&&(A.current=!1,qp(e,k.portalNode)?Hp(_)?.focus():Yl(d??k.beforeOutsideRef)?.focus())}}),n,oe&&(0,U.jsx)(Wf,{"data-type":`inside`,ref:ee,onFocus:e=>{s?em(ie()[0]):k?.portalNode&&(c&&(A.current=!0),qp(e,k.portalNode)?Up(_)?.focus():Yl(u??k.afterOutsideRef)?.focus())}})]})}function Bm(e,t={}){let{enabled:n=!0,event:r=`click`,toggle:i=!0,ignoreMouse:a=!1,stickIfOpen:o=!0,touchOpenDelay:s=0,reason:c=Mc}=t,l=`rootStore`in e?e.rootStore:e,u=l.context.dataRef,d=H.useRef(void 0),f=Zc(),p=Zd(),m=H.useMemo(()=>{function e(e,t,n,r){let i=Gc(c,t,n);e&&r===`touch`&&s>0?p.start(s,()=>{l.setOpen(!0,i)}):l.setOpen(e,i)}function t(e,t,n){let r=u.current.openEvent,a=l.select(`domReferenceElement`)!==t;return e&&a||!e||!i?!0:r&&o?!n(r.type):!1}return{onPointerDown(e){d.current=mf(e.pointerType,!0)&&pf(e.nativeEvent)?`virtual`:e.pointerType},onMouseDown(n){let i=d.current,o=n.nativeEvent,s=l.select(`open`);if(n.button!==0||r===`click`||mf(i,!0)&&a)return;let c=t(s,n.currentTarget,e=>e===`click`||e===`mousedown`),u=wf(o);if(Of(u)){e(c,o,u,i);return}let p=n.currentTarget;f.request(()=>{e(c,o,p,i)})},onClick(n){if(r===`mousedown-only`)return;let i=d.current;if(r===`mousedown`&&i){d.current=void 0;return}mf(i,!0)&&a||e(t(l.select(`open`),n.currentTarget,e=>e===`click`||e===`mousedown`||e===`keydown`||e===`keyup`),n.nativeEvent,n.currentTarget,i)},onKeyDown(){d.current=void 0}}},[u,r,a,c,l,o,i,f,p,s]);return H.useMemo(()=>n?{reference:m}:Qs,[n,m])}function Vm(e,t){let n=null,r=null,i=!1;return{contextElement:e||void 0,getBoundingClientRect(){let a=e?.getBoundingClientRect()||{width:0,height:0,x:0,y:0},o=t.axis===`x`||t.axis===`both`,s=t.axis===`y`||t.axis===`both`,c=[`mouseenter`,`mousemove`].includes(t.dataRef.current.openEvent?.type||``)&&t.pointerType!==`touch`,l=a.width,u=a.height,d=a.x,f=a.y;return n==null&&t.x&&o&&(n=a.x-t.x),r==null&&t.y&&s&&(r=a.y-t.y),d-=n||0,f-=r||0,l=0,u=0,!i||c?(l=t.axis===`y`?a.width:0,u=t.axis===`x`?a.height:0,d=o&&t.x!=null?t.x:d,f=s&&t.y!=null?t.y:f):i&&!c&&(u=t.axis===`x`?a.height:u,l=t.axis===`y`?a.width:l),i=!0,{width:l,height:u,x:d,y:f,top:f,right:d+l,bottom:f+u,left:d}}}}function Hm(e){return e!=null&&e.clientX!=null}function Um(e,t={}){let{enabled:n=!0,axis:r=`both`}=t,i=`rootStore`in e?e.rootStore:e,a=i.useState(`open`),o=i.useState(`floatingElement`),s=i.useState(`domReferenceElement`),c=i.context.dataRef,l=H.useRef(!1),u=H.useRef(null),[d,f]=H.useState(),[p,m]=H.useState([]),h=G(e=>{i.set(`positionReference`,e)}),g=G((e,t,n)=>{l.current||c.current.openEvent&&!Hm(c.current.openEvent)||i.set(`positionReference`,Vm(n??s,{x:e,y:t,axis:r,dataRef:c,pointerType:d}))}),_=G(e=>{a?u.current||(g(e.clientX,e.clientY,e.currentTarget),m([])):g(e.clientX,e.clientY,e.currentTarget)}),v=mf(d)?o:a;H.useEffect(()=>{if(!n){h(s);return}if(!v)return;function e(){u.current?.(),u.current=null}let t=hl(o);function r(t){let n=wf(t);Cf(o,n)?e():g(t.clientX,t.clientY)}return!c.current.openEvent||Hm(c.current.openEvent)?u.current=Kl(t,`mousemove`,r):h(s),e},[v,n,o,c,s,i,g,h,p]),H.useEffect(()=>()=>{i.set(`positionReference`,null)},[i]),H.useEffect(()=>{n&&!o&&(l.current=!1)},[n,o]),H.useEffect(()=>{!n&&a&&(l.current=!0)},[n,a]);let y=H.useMemo(()=>{function e(e){f(e.pointerType)}return{onPointerDown:e,onPointerEnter:e,onMouseMove:_,onMouseEnter:_}},[_]);return H.useMemo(()=>n?{reference:y,trigger:y}:{},[n,y])}function Wm(){return!1}function Gm(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Km(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:i=!0,outsidePressEvent:a=`sloppy`,referencePress:o=Wm,bubbles:s,externalTree:c}=t,l=`rootStore`in e?e.rootStore:e,u=l.useState(`open`),d=l.useState(`floatingElement`),{dataRef:f}=l.context,p=Dm(c),m=G(typeof i==`function`?i:()=>!1),h=typeof i==`function`?m:i,g=h!==!1,_=G(()=>a),{escapeKey:v,outsidePress:y}=Gm(s),b=H.useRef(!1),x=H.useRef(!1),S=H.useRef(!1),C=H.useRef(!1),w=H.useRef(``),T=H.useRef(null),E=Zd(),D=Zd(),O=G(()=>{D.clear(),f.current.insideReactTree=!1}),k=G(e=>{let t=f.current.floatingContext?.nodeId;return(p?Xp(p.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),A=G(e=>Ef(e,l.select(`floatingElement`))||Ef(e,l.select(`domReferenceElement`))),j=G(e=>{o()&&l.setOpen(!1,Gc(Mc,e.nativeEvent))}),M=G(e=>{if(!u||!n||!r||e.key!==`Escape`||C.current||!v&&k(`__escapeKeyBubbles`))return;let t=Gc(zc,df(e)?e.nativeEvent:e);l.setOpen(!1,t),t.isCanceled||e.preventDefault(),!v&&!t.isPropagationAllowed&&e.stopPropagation()}),N=G(()=>{f.current.insideReactTree=!0,D.start(0,O)}),P=G(e=>{if(!u||!n||e.button!==0)return;let t=wf(e.nativeEvent);Cf(l.select(`floatingElement`),t)&&(b.current||(b.current=!0,x.current=!1))}),F=G(e=>{!u||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&b.current&&(x.current=!0)});H.useEffect(()=>{if(!u||!n)return O;f.current.__escapeKeyBubbles=v,f.current.__outsidePressBubbles=y;let e=new Xd,t=new Xd;function i(){e.clear(),C.current=!0}function a(){e.start(Kd?5:0,()=>{C.current=!1})}function o(){S.current=!0,t.start(0,()=>{S.current=!1})}function s(){b.current=!1,x.current=!1}function c(){let e=w.current,t=e===`pen`||!e?`mouse`:e,n=_(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function m(e){let t=c();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function D(e){let t=f.current.floatingContext?.nodeId,n=p&&Xp(p.nodesRef.current,t).some(t=>Ef(e,t.context?.elements.floating));return A(e)||n}function j(e){if(m(e)){e.type!==`click`&&!A(e)&&(t.clear(),S.current=!1),O();return}if(f.current.insideReactTree){O();return}let n=wf(e),r=`[${Qp(`inert`)}]`,i=vl(n)?n.getRootNode():null,a=Array.from((bl(i)?i:Vl(l.select(`floatingElement`))).querySelectorAll(r)),o=l.context.triggerElements;if(n&&(o.hasElement(n)||o.hasMatchingElement(e=>Cf(e,n))))return;let s=vl(n)?n:null;for(;s&&!jl(s);){let e=Pl(s);if(jl(e)||!vl(e))break;s=e}if(!(a.length&&vl(n)&&!Df(n)&&!Cf(n,l.select(`floatingElement`))&&a.every(e=>!Cf(s,e)))){if(yl(n)&&!(`touches`in e)){let t=jl(n),r=Ml(n),i=/auto|scroll/,a=t||i.test(r.overflowX),o=t||i.test(r.overflowY),s=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,c=o&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,l=r.direction===`rtl`,u=c&&(l?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),d=s&&e.offsetY>n.clientHeight;if(u||d)return}if(!D(e)){if(c()===`intentional`&&S.current){t.clear(),S.current=!1;return}typeof h==`function`&&!h(e)||k(`__outsidePressBubbles`)||(l.setOpen(!1,Gc(Fc,e)),O())}}}function N(e){c()!==`sloppy`||e.pointerType===`touch`||!l.select(`open`)||!n||A(e)||j(e)}function P(e){if(c()!==`sloppy`||!l.select(`open`)||!n||A(e))return;let t=e.touches[0];t&&(T.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},E.start(1e3,()=>{T.current&&(T.current.dismissOnTouchEnd=!1,T.current.dismissOnMouseDown=!1)}))}function F(e,t){let n=wf(e);if(!n)return;let r=Kl(n,e.type,()=>{t(e),r()})}function I(e){w.current=`touch`,F(e,P)}function L(e){E.clear(),e.type===`pointerdown`&&(w.current=e.pointerType),!(e.type===`mousedown`&&T.current&&!T.current.dismissOnMouseDown)&&F(e,e=>{e.type===`pointerdown`?N(e):j(e)})}function R(e){if(!b.current)return;let n=x.current;if(s(),c()===`intentional`){if(e.type===`pointercancel`){n&&o();return}if(!D(e)){if(n){o();return}typeof h==`function`&&!h(e)||(t.clear(),S.current=!0,O())}}}function ee(e){if(c()!==`sloppy`||!T.current||A(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-T.current.startX),r=Math.abs(t.clientY-T.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(T.current.dismissOnTouchEnd=!0),i>10&&(j(e),E.clear(),T.current=null)}function te(e){F(e,ee)}function z(e){c()!==`sloppy`||!T.current||A(e)||(T.current.dismissOnTouchEnd&&j(e),E.clear(),T.current=null)}function ne(e){F(e,z)}let re=Vl(d),B=Bf(r&&Bf(Kl(re,`keydown`,M),Kl(re,`compositionstart`,i),Kl(re,`compositionend`,a)),g&&Bf(Kl(re,`click`,L,!0),Kl(re,`pointerdown`,L,!0),Kl(re,`pointerup`,R,!0),Kl(re,`pointercancel`,R,!0),Kl(re,`mousedown`,L,!0),Kl(re,`mouseup`,R,!0),Kl(re,`touchstart`,I,!0),Kl(re,`touchmove`,te,!0),Kl(re,`touchend`,ne,!0)));return()=>{B(),e.clear(),t.clear(),s(),S.current=!1,O()}},[f,d,r,g,h,u,n,v,y,M,O,_,k,A,p,l,E]);let I=H.useMemo(()=>({onKeyDown:M,onPointerDown:j,onClick:j}),[M,j]),L=H.useMemo(()=>({onKeyDown:M,onPointerDown:F,onMouseDown:F,onClickCapture:N,onMouseDownCapture(e){N(),P(e)},onPointerDownCapture(e){N(),P(e)},onMouseUpCapture:N,onTouchEndCapture:N,onTouchMoveCapture:N}),[M,N,P,F]);return H.useMemo(()=>n?{reference:I,floating:L,trigger:I}:{},[n,I,L])}function qm(e,t,n){let{reference:r,floating:i}=e,a=rp(t),o=ip(t),s=np(o),c=$f(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=ep(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function Jm(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=Qf(t,e),p=gp(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=_p(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=_p(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ym=50,Xm=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:Jm},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=qm(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<Ym&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=qm(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Zm=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=Qf(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=$f(r),_=rp(o),v=$f(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[mp(o)]:op(o)),x=p!==`none`;!d&&x&&b.push(...pp(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ap(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(!(u===`alignment`&&_!==rp(t))||T.every(e=>rp(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=rp(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}},Qm=new Set([`left`,`top`]);async function $m(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=$f(n),s=ep(n),c=rp(n)===`y`,l=Qm.has(o)?-1:1,u=a&&c?-1:1,d=Qf(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var eh=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await $m(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},th=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Qf(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=rp(i),p=tp(f),m=u[p],h=u[f],g=(e,t)=>Zf(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},nh=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=Qf(e,t),u={x:n,y:r},d=rp(i),f=tp(d),p=u[f],m=u[d],h=Qf(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Qm.has($f(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},rh=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=Qf(e,t),c=await i.detectOverflow(t,s),l=$f(n),u=ep(n),d=rp(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Gf(p-c[m],g),y=Gf(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*Kf(c.left,c.right):S=p-2*Kf(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function ih(e){let t=Ml(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=yl(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=qf(n)!==a||qf(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ah(e){return vl(e)?e:e.contextElement}function oh(e){let t=ah(e);if(!yl(t))return Yf(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=ih(t),o=(a?qf(n.width):n.width)/r,s=(a?qf(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var sh=Yf(0);function ch(e){let t=hl(e);return!Al()||!t.visualViewport?sh:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lh(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===hl(e)}function uh(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ah(e),o=Yf(1);t&&(r?vl(r)&&(o=oh(r)):o=oh(e));let s=lh(a,n,r)?ch(a):Yf(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=hl(a),t=vl(r)?hl(r):r,n=e,i=Ll(n);for(;i&&t!==n;){let e=oh(i),t=i.getBoundingClientRect(),r=Ml(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=hl(i),i=Ll(n)}}return _p({width:u,height:d,x:c,y:l})}function dh(e,t){let n=Nl(e).scrollLeft;return t?t.left+n:uh(gl(e)).left+n}function fh(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-dh(e,n),y:n.top+t.scrollTop}}function ph(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=gl(r),s=t?Cl(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Yf(1),u=Yf(0),d=yl(r);if((d||!a)&&((ml(r)!==`body`||xl(o))&&(c=Nl(r)),d)){let e=uh(r);l=oh(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?fh(o,c):Yf(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function mh(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function hh(e){let t=Nl(e),n=e.ownerDocument.body,r=Kf(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Kf(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+dh(e),o=-t.scrollTop;return Ml(n).direction===`rtl`&&(a+=Kf(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var gh=25;function _h(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=hl(e),a=gl(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Al()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(dh(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=gh&&(s-=o)}return{width:s,height:c,x:l,y:u}}function vh(e,t){let n=uh(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=oh(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function yh(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=_h(e,n,t);else if(t===`document`)r=hh(gl(e));else if(vl(t))r=vh(t,n);else{let n=ch(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return _p(r)}function bh(e,t){let n=t.get(e);if(n)return n;let r=Il(e,[],!1).filter(e=>vl(e)&&ml(e)!==`body`),i=null,a=Ml(e).position===`fixed`,o=a?Pl(e):e;for(;vl(o)&&!jl(o);){let e=Ml(o),t=Ol(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=Pl(o)}return t.set(e,r),r}function xh(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Cl(t)?[]:bh(t,this._c):[].concat(n),r],o=yh(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=yh(t,a[e],i);s=Kf(n.top,s),c=Gf(n.right,c),l=Gf(n.bottom,l),u=Kf(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Sh(e){let{width:t,height:n}=ih(e);return{width:t,height:n}}function Ch(e,t,n){let r=yl(t),i=gl(t),a=n===`fixed`,o=uh(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Yf(0);if((r||!a)&&((ml(t)!==`body`||xl(i))&&(s=Nl(t)),r)){let e=uh(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=dh(i));let l=i&&!r&&!a?fh(i,s):Yf(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function wh(e){return Ml(e).position===`static`}function Th(e,t){if(!yl(e)||Ml(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return gl(e)===n&&(n=n.ownerDocument.body),n}function Eh(e,t){let n=hl(e);if(Cl(e))return n;if(!yl(e)){let t=Pl(e);for(;t&&!jl(t);){if(vl(t)&&!wh(t))return t;t=Pl(t)}return n}let r=Th(e,t);for(;r&&Sl(r)&&wh(r);)r=Th(r,t);return r&&jl(r)&&wh(r)&&!Ol(r)?n:r||kl(e)||n}var Dh=async function(e){let t=this.getOffsetParent||Eh,n=this.getDimensions,r=await n(e.floating);return{reference:Ch(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Oh(e){return Ml(e).direction===`rtl`}var kh={convertOffsetParentRelativeRectToViewportRelativeRect:ph,getDocumentElement:gl,getClippingRect:xh,getOffsetParent:Eh,getElementRects:Dh,getClientRects:mh,getDimensions:Sh,getScale:oh,isElement:vl,isRTL:Oh};function Ah(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function jh(e,t,n){let r=null,i,a=gl(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Jf(d),h=Jf(a.clientWidth-(u+f)),g=Jf(a.clientHeight-(d+p)),_=Jf(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Kf(0,Gf(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Ah(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=hl(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Mh(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ah(e),u=i||a?[...l?Il(l):[],...t?Il(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?jh(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?uh(e):null;c&&g();function g(){let t=uh(e);h&&!Ah(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Nh=eh,Ph=th,Fh=Zm,Ih=rh,Lh=nh,Rh=(e,t,n)=>{let r=new Map,i=n??{},a={...kh,...i.platform,_c:r};return Xm(e,t,{...i,platform:a})},zh=typeof document<`u`?H.useLayoutEffect:function(){};function Bh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Bh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Bh(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Vh(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hh(e,t){let n=Vh(e);return Math.round(t*n)/n}function Uh(e){let t=H.useRef(e);return zh(()=>{t.current=e}),t}function Wh(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);Bh(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=Uh(c),D=Uh(i),O=Uh(l),k=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Rh(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Bh(w.current,t)&&(w.current=t,Xl.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);zh(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=H.useRef(!1);zh(()=>(A.current=!0,()=>{A.current=!1}),[]),zh(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=H.useMemo(()=>({reference:b,floating:x}),[b,x]),N=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Hh(M.floating,u.x),r=Hh(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Vh(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Gh=(e,t)=>{let n=Nh(e);return{name:n.name,fn:n.fn,options:[e,t]}},Kh=(e,t)=>{let n=Ph(e);return{name:n.name,fn:n.fn,options:[e,t]}},qh=(e,t)=>({fn:Lh(e).fn,options:[e,t]}),Jh=(e,t)=>{let n=Fh(e);return{name:n.name,fn:n.fn,options:[e,t]}},Yh=(e,t)=>{let n=Ih(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xh=s((e=>{(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function n(e,t){d||a.startTransition===void 0||(d=!0,console.error(`You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release.`));var n=t();if(!f){var i=t();o(n,i)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),f=!0)}i=s({inst:{value:n,getSnapshot:t}});var p=i[0].inst,m=i[1];return l(function(){p.value=n,p.getSnapshot=t,r(p)&&m({inst:p})},[e,n,t]),c(function(){return r(p)&&m({inst:p}),e(function(){r(p)&&m({inst:p})})},[e]),u(n),n}function r(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!o(e,n)}catch{return!0}}function i(e,t){return t()}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var a=Fe(),o=typeof Object.is==`function`?Object.is:t,s=a.useState,c=a.useEffect,l=a.useLayoutEffect,u=a.useDebugValue,d=!1,f=!1,p=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?i:n;e.useSyncExternalStore=a.useSyncExternalStore===void 0?p:a.useSyncExternalStore,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),Zh=s(((e,t)=>{t.exports=Xh()})),Qh=s((e=>{(function(){function t(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=Fe(),r=Zh(),i=typeof Object.is==`function`?Object.is:t,a=r.useSyncExternalStore,o=n.useRef,s=n.useEffect,c=n.useMemo,l=n.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),$h=s(((e,t)=>{t.exports=Qh()})),eg=[],tg=void 0;function ng(){return tg}function rg(e){eg.push(e)}function ig(e){let t=(t,n)=>{let r=ws(og).current,i;try{tg=r;for(let e of eg)e.before(r);i=e(t,n);for(let e of eg)e.after(r);r.didInitialize=!0}finally{tg=void 0}return i};return t.displayName=e.displayName||e.name,t}function ag(e){return H.forwardRef(ig(e))}function og(){return{didInitialize:!1}}var sg=Zh(),cg=$h(),lg=qs(19)?fg:pg;function ug(e,t,n,r,i){return lg(e,t,n,r,i)}function dg(e,t,n,r,i){let a=H.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,sg.useSyncExternalStore)(e.subscribe,a,a)}rg({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);Object.is(r.value,i)||(t=!0,r.value=i)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,sg.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function fg(e,t,n,r,i){let a=ng();if(!a)return dg(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.value=t(e.getSnapshot(),n,r,i))):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i)},a.syncHooks.push(s)),s.value}function pg(e,t,n,r,i){return(0,cg.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var mg=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return ug(this,e,t,n,r)}},hg=class extends mg{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){H.useDebugValue(e);let n=this;K(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;K(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;{H.useDebugValue(e,e=>Object.keys(e));let t=H.useRef(Object.keys(e)).current,n=Object.keys(e);(t.length!==n.length||t.some((e,t)=>e!==n[t]))&&console.error(`ReactStore.useSyncedValues expects the same prop keys on every render. Keys should be stable.`)}K(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){H.useDebugValue(e);let n=this,r=t!==void 0;K(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r]);{let t=this.controlledValues??=new Map;t.has(e)||t.set(e,r);let n=t.get(e);n!==void 0&&n!==r&&console.error(`A component is changing the ${r?``:`un`}controlled state of ${e.toString()} to be ${r?`un`:``}controlled. Elements should not switch from uncontrolled to controlled (or vice versa).`)}}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return H.useDebugValue(e),ug(this,this.selectors[e],t,n,r)}useContextCallback(e,t){H.useDebugValue(e);let n=G(t??Xs);this.context[e]=n}useStateSetter(e){let t=H.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}},gg={open:e=>e.open,transitionStatus:e=>e.transitionStatus,domReferenceElement:e=>e.domReferenceElement,referenceElement:e=>e.positionReference??e.referenceElement,floatingElement:e=>e.floatingElement,floatingId:e=>e.floatingId},_g=class extends hg{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:Sm(),nested:n,triggerElements:i},gg),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&hf(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function vg(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=H.useRef(null);r===void 0&&f.current===null&&(f.current=new _g({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let p=r??f.current;return t.useSyncedValue(`floatingId`,i),K(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};vl(c)&&(e.domReferenceElement=c),p.state.positionReference===p.state.referenceElement&&(e.positionReference=c),p.update(e)},[s,i,c,l,p]),p.context.onOpenChange=d,p.context.nested=a,p}var yg={tabIndex:-1,[gf]:``};function bg(e){return t=>t!==`touch`||e.current}function xg(e,t=!1){let n=kc(),r=Em()!=null,i=ws(()=>e(n,r)).current;return vg({popupStore:i,treatPopupAsFloatingElement:t,floatingRootContext:i.state.floatingRootContext,floatingId:n,nested:r,onOpenChange:i.setOpen}),i}function Sg({handle:e,store:t}){return K(()=>e.attachStore(t),[e,t]),null}function Cg(e,t){let n=H.useRef(null),r=H.useRef(null);return H.useCallback(i=>{if(e===void 0)return;let a=!1;if(n.current!==null){let e=n.current,i=r.current,o=t.context.triggerElements.getById(e);i&&o===i&&(t.context.triggerElements.delete(e),a=!0),n.current=null,r.current=null}if(i!==null&&(n.current=e,r.current=i,t.context.triggerElements.add(e,i),a=!0),a){let e=t.context.triggerElements.size;t.select(`open`)&&t.state.triggerCount!==e&&t.set(`triggerCount`,e)}},[t,e])}function wg(e,t,n,r=!1){t?e.preventUnmountingOnClose=!1:r&&(e.preventUnmountingOnClose=!0);let i=n?.id??null;(i||t)&&(e.activeTriggerId=i,e.activeTriggerElement=n??null)}function Tg(e){let t=!1;return e.preventUnmountOnClose=()=>{t=!0},()=>t}function Eg(e,t,n,r={}){let i=n.reason,a=i===Nc,o=t&&i===`trigger-focus`,s=!t&&(i===`trigger-press`||i===`escape-key`),c=Tg(n);if(e.context.onOpenChange?.(t,n),n.isCanceled)return;r.onBeforeDispatch?.(),e.state.floatingRootContext.dispatchOpenChange(t,n);let l=()=>{let i={...r.extraState,open:t};o?i.instantType=`focus`:s?i.instantType=`dismiss`:a&&(i.instantType=void 0),wg(i,t,n.trigger,c()),e.update(i)};a?Xl.flushSync(l):l()}function Dg(e,t,n,r){let i=n.useState(`isMountedByTrigger`,e),a=Cg(e,n),o=G(t=>{let i=n.select(`open`),a=n.select(`activeTriggerId`);if(a===e){n.update({activeTriggerElement:t,...i?r:null});return}a==null&&i&&n.update({activeTriggerId:e,activeTriggerElement:t,...r})}),s=H.useCallback(e=>{a(e),e&&o(e)},[a,o]);return K(()=>{i&&n.update({activeTriggerElement:t.current,...r})},[i,n,t,...Object.values(r)]),{registerTrigger:s,isMountedByThisTrigger:i}}function Og(e,t={}){let{closeOnActiveTriggerUnmount:n=!1}=t,r=H.useRef(null),i=e.useState(`open`);K(()=>{if(!i){r.current=null,e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let t=e.context.triggerElements.size,a={};e.state.triggerCount!==t&&(a.triggerCount=t);let o=e.select(`activeTriggerId`),s=null;if(o){let t=e.context.triggerElements.getById(o);if(t)r.current=o,t!==e.state.activeTriggerElement&&(a.activeTriggerElement=t);else{for(let[t,n]of e.context.triggerElements.entries())if(n===e.state.activeTriggerElement){a.activeTriggerId=t,a.activeTriggerElement=n,r.current=t;break}a.activeTriggerId===void 0&&(r.current===o?s=o:r.current=null)}}else r.current=null;if(!s&&!o&&t===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;a.activeTriggerId=e,a.activeTriggerElement=n,r.current=e}}(a.triggerCount!==void 0||a.activeTriggerId!==void 0||a.activeTriggerElement!==void 0)&&e.update(a),s&&n&&queueMicrotask(()=>{if(e.select(`open`)&&e.select(`activeTriggerId`)===s&&!e.context.triggerElements.getById(s)){let t=Gc(jc);e.setOpen(!1,t),t.isCanceled||e.update({activeTriggerId:null,activeTriggerElement:null})}})},[i,e,e.useState(`triggerCount`),e.useState(`activeTriggerId`),e.useState(`activeTriggerElement`),n])}function kg(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=Qc(e),o=t.useState(`preventUnmountingOnClose`),s=!e&&o;t.useSyncedValues({mounted:r,transitionStatus:a,preventUnmountingOnClose:s});let c=G(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)});return Ql({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||c()}}),{forceUnmount:c,transitionStatus:a}}function Ag(e,t){e.useSyncedValues(t),K(()=>()=>{e.update({activeTriggerProps:Qs,inactiveTriggerProps:Qs,popupProps:Qs})},[e])}function jg(e,t){K(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),K(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Mg;function Ng(e){Mg??=new WeakMap;let t=Mg.get(e);return t||(t=new WeakMap,Mg.set(e,t)),t}var Pg=class{constructor(){this.idMap=new Map}add(e,t){{let n=Ng(this),r=n.get(t);if(r!==void 0&&r!==e)throw Error(`Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.`);let i=this.idMap.get(e);i!==void 0&&i!==t&&n.delete(i),n.set(t,e)}this.idMap.set(e,t)}delete(e){{let t=this.idMap.get(e);t!==void 0&&Mg?.get(this)?.delete(t)}this.idMap.delete(e)}hasElement(e){for(let t of this.idMap.values())if(t===e)return!0;return!1}hasMatchingElement(e){for(let t of this.idMap.values())if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.idMap.values()}get size(){return this.idMap.size}};function Fg(){return new _g({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new Pg,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Ig(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:Fg(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:Qs,inactiveTriggerProps:Qs,popupProps:Qs}}function Lg(e,t,n=!1){return new _g({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var Rg=e=>e.triggerIdProp??e.activeTriggerId,zg=e=>e.openProp??e.open,Bg=e=>(e.popupElement?.id??e.floatingId)||void 0;function Vg(e,t){return t!==void 0&&zg(e)&&Rg(e)===t}function Hg(e,t){return Vg(e,t)?!0:t!==void 0&&zg(e)&&Rg(e)==null&&e.triggerCount===1}var Ug={open:zg,mounted:e=>e.mounted,transitionStatus:e=>e.transitionStatus,floatingRootContext:e=>e.floatingRootContext,triggerCount:e=>e.triggerCount,preventUnmountingOnClose:e=>e.preventUnmountingOnClose,payload:e=>e.payload,activeTriggerId:Rg,activeTriggerElement:e=>e.mounted?e.activeTriggerElement:null,popupId:Bg,isTriggerActive:(e,t)=>t!==void 0&&Rg(e)===t,isOpenedByTrigger:(e,t)=>Vg(e,t),isMountedByTrigger:(e,t)=>t!==void 0&&Rg(e)===t&&e.mounted,triggerProps:(e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps,triggerPopupId:(e,t)=>Hg(e,t)?Bg(e):void 0,popupProps:e=>e.popupProps,popupElement:e=>e.popupElement,positionerElement:e=>e.positionerElement};function Wg(e){return(0,sg.useSyncExternalStore)(H.useCallback(t=>e===void 0?Xs:e.subscribeStore(t),[e]),H.useCallback(()=>e===void 0?void 0:e.store,[e]),()=>e?.serverStore)}function Gg(e){return Kg(e,e.rootContext)}function Kg(e,t){let{nodeId:n,externalTree:r}=e,i=t.useState(`referenceElement`),a=t.useState(`floatingElement`),o=t.useState(`domReferenceElement`),s=t.useState(`open`),c=t.useState(`floatingId`),[l,u]=H.useState(null),[d,f]=H.useState(void 0),[p,m]=H.useState(void 0),h=H.useRef(null),g=Dm(r),_=H.useMemo(()=>({reference:i,floating:a,domReference:o}),[i,a,o]),v=Wh({...e,elements:{..._,...l&&{reference:l}}}),y=vl(d)?d:null,b=p===void 0?t.state.floatingElement:p;t.useSyncedValue(`referenceElement`,d??null),t.useSyncedValue(`domReferenceElement`,d===void 0?o:y),t.useSyncedValue(`floatingElement`,b);let x=H.useCallback(e=>{let t=vl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),getClientRects:()=>e.getClientRects(),contextElement:e}:e;u(t),v.refs.setReference(t)},[v.refs]),S=H.useCallback(e=>{(vl(e)||e===null)&&(h.current=e,f(e)),(vl(v.refs.reference.current)||v.refs.reference.current===null||e!==null&&!vl(e))&&v.refs.setReference(e)},[v.refs,f]),C=H.useCallback(e=>{m(e),v.refs.setFloating(e)},[v.refs]),w=H.useMemo(()=>({...v.refs,setReference:S,setFloating:C,setPositionReference:x,domReference:h}),[v.refs,S,C,x]),T=H.useMemo(()=>({...v.elements,domReference:o}),[v.elements,o]),E=H.useMemo(()=>({...v,dataRef:t.context.dataRef,open:s,onOpenChange:t.setOpen,events:t.context.events,floatingId:c,refs:w,elements:T,nodeId:n,rootStore:t}),[v,w,T,n,t,s,c]);return K(()=>{o&&(h.current=o)},[o]),K(()=>{t.context.dataRef.current.floatingContext=E;let e=g?.nodesRef.current.find(e=>e.id===n);e&&(e.context=E)}),H.useMemo(()=>({...v,context:E,refs:w,elements:T,rootStore:t}),[v,w,T,E,t])}var qg=Wd&&Kd;function Jg(e,t={}){let{enabled:n=!0,delay:r}=t,i=`rootStore`in e?e.rootStore:e,{events:a,dataRef:o}=i.context,s=H.useRef(!1),c=H.useRef(null),l=H.useRef(!0),u=Zd();H.useEffect(()=>{let e=i.select(`domReferenceElement`);if(!n)return;let t=hl(e);function r(){let e=i.select(`domReferenceElement`);!i.select(`open`)&&yl(e)&&e===Sf(Vl(e))&&(s.current=!0)}function a(){l.current=!0}function o(){l.current=!1}return Bf(Kl(t,`blur`,r),qg&&Kl(t,`keydown`,a,!0),qg&&Kl(t,`pointerdown`,o,!0))},[i,n]),H.useEffect(()=>{if(!n)return;function e(e){if(e.reason===`trigger-press`||e.reason===`escape-key`){let e=i.select(`domReferenceElement`);vl(e)&&(c.current=e,s.current=!0)}}return a.on(`openchange`,e),()=>{a.off(`openchange`,e)}},[a,n,i]);let d=H.useMemo(()=>{function e(){s.current=!1,c.current=null}return{onMouseLeave(){e()},onFocus(t){let n=t.currentTarget;if(s.current){if(c.current===n)return;e()}let a=wf(t.nativeEvent);if(vl(a)){if(qg&&!t.relatedTarget){if(!l.current&&!Of(a))return}else if(!jf(a))return}let o=Tf(t.relatedTarget,i.context.triggerElements),{nativeEvent:d,currentTarget:f}=t,p=typeof r==`function`?r():r;if(i.select(`open`)&&o||p===0||p===void 0){i.setOpen(!0,Gc(Pc,d,f));return}u.start(p,()=>{s.current||i.setOpen(!0,Gc(Pc,d,f))})},onBlur(t){e();let n=t.relatedTarget,r=t.nativeEvent,a=vl(n)&&n.hasAttribute(Qp(`focus-guard`))&&n.getAttribute(`data-type`)===`outside`;u.start(0,()=>{let e=i.select(`domReferenceElement`),t=Sf(Vl(e));!n&&t===e||Cf(o.current.floatingContext?.refs.floating.current,t)||Cf(e,t)||a||Tf(n??t,i.context.triggerElements)||i.setOpen(!1,Gc(Pc,r))})}}},[o,r,i,u]);return H.useMemo(()=>n?{reference:d,trigger:d}:{},[n,d])}var Yg=class e{constructor(){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 Xd,this.restTimeout=new Xd,this.handleCloseOptions=void 0}static create(){return new e}dispose=()=>{this.openChangeTimeout.clear(),this.restTimeout.clear()};disposeEffect=()=>this.dispose},Xg=new WeakMap;function Zg(e){if(!e.performedPointerEventsMutation)return;let t=e.pointerEventsScopeElement;t&&Xg.get(t)===e&&(e.pointerEventsScopeElement?.style.removeProperty(`pointer-events`),e.pointerEventsReferenceElement?.style.removeProperty(`pointer-events`),e.pointerEventsFloatingElement?.style.removeProperty(`pointer-events`),Xg.delete(t)),e.performedPointerEventsMutation=!1,e.pointerEventsScopeElement=null,e.pointerEventsReferenceElement=null,e.pointerEventsFloatingElement=null}function Qg(e,t){let{scopeElement:n,referenceElement:r,floatingElement:i}=t,a=Xg.get(n);a&&a!==e&&Zg(a),Zg(e),e.performedPointerEventsMutation=!0,e.pointerEventsScopeElement=n,e.pointerEventsReferenceElement=r,e.pointerEventsFloatingElement=i,Xg.set(n,e),n.style.pointerEvents=`none`,r.style.pointerEvents=`auto`,i.style.pointerEvents=`auto`}function $g(e){let t=e.context.dataRef.current,n=ws(()=>t.hoverInteractionState??Yg.create()).current;return t.hoverInteractionState||=n,Kc(t.hoverInteractionState.disposeEffect),t.hoverInteractionState}function e_(e,t={}){let{enabled:n=!0,closeDelay:r=0,nodeId:i}=t,a=`rootStore`in e?e.rootStore:e,o=a.useState(`open`),s=a.useState(`floatingElement`),c=a.useState(`domReferenceElement`),{dataRef:l}=a.context,u=Dm(),d=Em(),f=$g(a),p=Zd(),m=G(()=>If(l.current.openEvent?.type,f.interactedInside)),h=G(()=>Lf(l.current.openEvent?.type)),g=G(()=>{Zg(f)});K(()=>{o||(f.pointerType=void 0,f.restTimeoutPending=!1,f.interactedInside=!1,g())},[o,f,g]),H.useEffect(()=>g,[g]),K(()=>{if(n&&o&&f.handleCloseOptions?.blockPointerEvents&&h()&&vl(c)&&s){let e=c,t=s,n=Vl(s),r=u?.nodesRef.current.find(e=>e.id===d)?.context?.elements.floating;r&&(r.style.pointerEvents=``);let i=f.pointerEventsScopeElement===t?null:f.pointerEventsScopeElement,a=r===t?null:r,o=f.handleCloseOptions?.getScope?.()??i??a??e.closest(`[data-rootownerid]`)??n.body;return Qg(f,{scopeElement:o,referenceElement:e,floatingElement:t}),()=>{g()}}},[n,o,c,s,f,h,u,d,g]),H.useEffect(()=>{if(!n)return;function e(){return!!(u&&d&&Xp(u.nodesRef.current,d).length>0)}function t(e){let t=Pf(r,`close`,f.pointerType),n=()=>{a.setOpen(!1,Gc(Nc,e)),u?.events.emit(`floating.closed`,e)};t?f.openChangeTimeout.start(t,n):(f.openChangeTimeout.clear(),n())}function o(e){let t=wf(e);if(!kf(t)){f.interactedInside=!1;return}f.interactedInside=t?.closest(`[aria-haspopup]`)!=null}function c(){f.openChangeTimeout.clear(),p.clear(),u?.events.off(`floating.closed`,v),g()}function _(n){if(e()&&u){u.events.on(`floating.closed`,v);return}if(Tf(n.relatedTarget,a.context.triggerElements))return;let r=l.current.floatingContext?.nodeId??i,o=n.relatedTarget;if(!(u&&r&&vl(o)&&Xp(u.nodesRef.current,r,!1).some(e=>Cf(e.context?.elements.floating,o)))){if(f.handler){f.handler(n);return}g(),h()&&!m()&&t(n)}}function v(t){!u||!d||e()||p.start(0,()=>{u.events.off(`floating.closed`,v),a.setOpen(!1,Gc(Nc,t)),u.events.emit(`floating.closed`,t)})}let y=s;return Bf(y&&Kl(y,`mouseenter`,c),y&&Kl(y,`mouseleave`,_),y&&Kl(y,`pointerdown`,o,!0),()=>{u?.events.off(`floating.closed`,v)})},[n,s,a,l,r,i,h,m,g,f,u,d,p])}var t_={current:null};function n_(e,t={}){let{enabled:n=!0,delay:r=0,handleClose:i=null,mouseOnly:a=!1,restMs:o=0,move:s=!0,triggerElementRef:c=t_,externalTree:l,isActiveTrigger:u=!0,getHandleCloseContext:d,isClosing:f,shouldOpen:p,guardStaleOpen:m=!1}=t,h=`rootStore`in e?e.rootStore:e,{dataRef:g,events:_}=h.context,v=Dm(l),y=$g(h),b=H.useRef(!1),x=ql(i),S=ql(r),C=ql(o),w=ql(n),T=ql(p),E=ql(f),D=G(()=>If(g.current.openEvent?.type,y.interactedInside)),O=G(()=>T.current?.()!==!1),k=G((e,t,n)=>{let r=h.context.triggerElements;if(r.hasElement(t))return!e||!Cf(e,t);if(!vl(n))return!1;let i=n;return r.hasMatchingElement(e=>Cf(e,i))&&(!e||!Cf(e,i))}),A=G(()=>{y.handler&&=(Vl(h.select(`domReferenceElement`)).removeEventListener(`mousemove`,y.handler),void 0)}),j=G(()=>{Zg(y)});return u&&(y.handleCloseOptions=x.current?.__options),H.useEffect(()=>A,[A]),H.useEffect(()=>{if(!n)return;function e(e){e.open?b.current=!1:(b.current=e.reason===Nc,A(),y.openChangeTimeout.clear(),y.restTimeout.clear(),y.blockMouseMove=!0,y.restTimeoutPending=!1)}return _.on(`openchange`,e),()=>{_.off(`openchange`,e)}},[n,_,y,A]),H.useEffect(()=>{if(!n)return;function e(e,t=!0){let n=Pf(S.current,`close`,y.pointerType);n?y.openChangeTimeout.start(n,()=>{h.setOpen(!1,Gc(Nc,e)),v?.events.emit(`floating.closed`,e)}):t&&(y.openChangeTimeout.clear(),h.setOpen(!1,Gc(Nc,e)),v?.events.emit(`floating.closed`,e))}let t=c.current??(u?h.select(`domReferenceElement`):null);if(!vl(t))return;function r(e){if(y.openChangeTimeout.clear(),y.blockMouseMove=!1,a&&!mf(y.pointerType))return;let t=Ff(C.current),n=Pf(S.current,`open`,y.pointerType),r=wf(e),i=e.currentTarget??null,o=h.select(`domReferenceElement`),s=i;if(vl(r)&&!h.context.triggerElements.hasElement(r)){for(let e of h.context.triggerElements.elements())if(Cf(e,r)){s=e;break}}vl(i)&&vl(o)&&!h.context.triggerElements.hasElement(i)&&Cf(i,o)&&(s=o);let c=s!=null&&k(o,s,r),l=h.select(`open`),u=E.current?.()??h.select(`transitionStatus`)===`ending`,d=!l&&u&&b.current,f=!c&&vl(s)&&vl(o)&&Cf(o,s)&&d,p=t>0&&!n,m=c&&(l||d)||f,g=!l||c;if(m){O()&&h.setOpen(!0,Gc(Nc,e,s));return}p||(n?y.openChangeTimeout.start(n,()=>{g&&O()&&h.setOpen(!0,Gc(Nc,e,s))}):g&&O()&&h.setOpen(!0,Gc(Nc,e,s)))}function i(t){if(D()){j();return}A();let n=Vl(h.select(`domReferenceElement`));y.restTimeout.clear(),y.restTimeoutPending=!1;let r=g.current.floatingContext??d?.();if(!Tf(t.relatedTarget,h.context.triggerElements)){if(x.current&&r){h.select(`open`)||y.openChangeTimeout.clear();let i=c.current;y.handler=x.current({...r,tree:v,x:t.clientX,y:t.clientY,onClose(){j(),A(),w.current&&!D()&&i===h.select(`domReferenceElement`)&&e(t,!0)}}),n.addEventListener(`mousemove`,y.handler),y.handler(t);return}(y.pointerType!==`touch`||!Cf(h.select(`floatingElement`),t.relatedTarget))&&e(t)}}function o(e){Cf(t,e.relatedTarget)||(y.openChangeTimeout.clear(),y.restTimeout.clear(),y.restTimeoutPending=!1)}let l=m?Kl(t,`mouseout`,o):void 0;return s?Bf(Kl(t,`mousemove`,r,{once:!0}),Kl(t,`mouseenter`,r),Kl(t,`mouseleave`,i),l):Bf(Kl(t,`mouseenter`,r),Kl(t,`mouseleave`,i),l)},[A,j,g,S,h,n,x,y,u,k,D,a,s,C,c,v,w,d,E,O,m]),H.useMemo(()=>{if(!n)return;function e(e){y.pointerType=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){let{nativeEvent:t}=e,n=e.currentTarget,r=h.select(`domReferenceElement`),i=h.select(`open`),o=k(r,n,e.target);if(a&&!mf(y.pointerType))return;if(i&&o&&y.handleCloseOptions?.blockPointerEvents){let e=h.select(`floatingElement`);if(e){let t=y.handleCloseOptions?.getScope?.()??n.ownerDocument.body;Qg(y,{scopeElement:t,referenceElement:n,floatingElement:e})}}let s=Ff(C.current);if(i&&!o||s===0||!o&&y.restTimeoutPending&&e.movementX**2+e.movementY**2<2)return;y.restTimeout.clear();function c(){if(y.restTimeoutPending=!1,D())return;let e=h.select(`open`);!y.blockMouseMove&&(!e||o)&&O()&&h.setOpen(!0,Gc(Nc,t,n))}y.pointerType===`touch`?Xl.flushSync(()=>{c()}):o&&i?c():(y.restTimeoutPending=!0,y.restTimeout.start(s,c))}}},[n,y,D,k,a,h,C,O])}var r_=`Escape`;function i_(e){return Kd&&e.movementX===0&&e.movementY===0}function a_(e,t,n){switch(e){case`vertical`:return t;case`horizontal`:return n;default:return t||n}}function o_(e,t){return a_(t,e===`ArrowUp`||e===`ArrowDown`,e===`ArrowLeft`||e===`ArrowRight`)}function s_(e,t,n){return a_(t,e===`ArrowDown`,n?e===`ArrowLeft`:e===`ArrowRight`)||e===`Enter`||e===` `||e===``}function c_(e,t,n){return a_(t,n?e===vf:e===yf,e===xf)}function l_(e,t,n,r){return t===`both`||t===`horizontal`&&r?e===r_:a_(t,n?e===yf:e===vf,e===bf)}function u_(e,t){let{listRef:n,activeIndex:r,onNavigate:i=()=>{},enabled:a=!0,selectedIndex:o=null,allowEscape:s=!1,loopFocus:c=!1,nested:l=!1,rtl:u=!1,virtual:d=!1,focusItemOnOpen:f=`auto`,focusItemOnHover:p=!0,openOnArrowKeyDown:m=!0,disabledIndices:h=void 0,orientation:g=`vertical`,parentOrientation:_,id:v,resetOnPointerLeave:y=!0,externalTree:b,grid:x}=t,S=x!=null;s&&(c||console.warn("`useListNavigation` looping must be enabled to allow escaping."),d||console.warn("`useListNavigation` must be virtual to allow escaping.")),g===`vertical`&&S&&console.warn("In grid list navigation mode, the `orientation` should",`be either "horizontal" or "both".`);let C=`rootStore`in e?e.rootStore:e,w=C.useState(`open`),T=C.useState(`floatingElement`),E=C.useState(`domReferenceElement`),D=C.context.dataRef,O=Mf(T),k=Af(E),A=ql(O),j=Em(),M=Dm(b),N=H.useRef(f),P=H.useRef(o??-1),F=H.useRef(null),I=H.useRef(!0),L=G(e=>{i(P.current===-1?null:P.current,e)}),R=H.useRef(!!T),ee=H.useRef(w),te=H.useRef(!1),z=H.useRef(!1),ne=H.useRef(null),re=ql(h),B=ql(w),ie=ql(o),ae=ql(y),oe=Zc(),V=Zc(),se=G(()=>{function e(e){d?M?.events.emit(`virtualfocus`,e):ne.current=em(e,{sync:te.current,preventScroll:!0})}let t=n.current[P.current],r=z.current;t&&e(t),(te.current?e=>e():e=>oe.request(e))(()=>{let i=n.current[P.current]||t;i&&(t||e(i),pe&&(r||!I.current)&&i.scrollIntoView?.({block:`nearest`,inline:`nearest`}))})});K(()=>{D.current.orientation=g},[D,g]),K(()=>{a&&(w&&T?(P.current=o??-1,N.current&&o!=null&&(z.current=!0,L())):R.current&&(P.current=-1,L()))},[a,w,T,o,L]),K(()=>{if(a){if(!w){te.current=!1;return}if(T)if(r==null){if(te.current=!1,ie.current!=null)return;if(R.current&&(P.current=-1,se()),(!ee.current||!R.current)&&N.current&&(F.current!=null||N.current===!0&&F.current==null)){let e=0,t=()=>{n.current[0]==null?(e<2&&(e?e=>V.request(e):queueMicrotask)(t),e+=1):(P.current=F.current==null||s_(F.current,g,u)||l?yp(n):bp(n),F.current=null,L())};t()}}else vp(n.current,r)||(P.current=r,se(),z.current=!1)}},[a,w,T,r,ie,l,n,g,u,L,se,V]),K(()=>{if(!a||T||!M||d||!R.current)return;let e=M.nodesRef.current,t=e.find(e=>e.id===j)?.context?.elements.floating,n=Sf(Vl(E??t??null)),r=e.some(e=>e.context&&Cf(e.context.elements.floating,n));t&&!r&&I.current&&t.focus({preventScroll:!0})},[a,T,E,M,j,d]),K(()=>{ee.current=w,R.current=!!T}),K(()=>{w||(F.current=null,N.current=f)},[w,f]);let ce=r!=null,le=G(e=>{if(!B.current)return;let t=n.current.indexOf(e.currentTarget);t!==-1&&(P.current!==t||r!==t)&&(P.current=t,L(e))}),ue=G(()=>_??M?.nodesRef.current.find(e=>e.id===j)?.context?.dataRef?.current.orientation),de=G(()=>yp(n,re.current)),fe=G(e=>{if(I.current=!1,te.current=!0,e.which===229||!B.current&&e.currentTarget===A.current)return;if(l&&l_(e.key,g,u,S)){o_(e.key,ue())||uf(e),C.setOpen(!1,Gc(Bc,e.nativeEvent)),yl(E)&&(d?M?.events.emit(`virtualfocus`,E):E.focus());return}let t=P.current,r=yp(n,h),i=bp(n,h);if(k||(e.key===`Home`&&(uf(e),P.current=r,L(e)),e.key===`End`&&(uf(e),P.current=i,L(e))),x!=null){let t=x(e,P.current,n,g,c,u,h,r,i);if(t!=null&&(P.current=t,L(e)),g===`both`)return}if(o_(e.key,g)){if(uf(e),w&&!d&&Sf(e.currentTarget.ownerDocument)===e.currentTarget){P.current=s_(e.key,g,u)?r:i,L(e);return}s_(e.key,g,u)?c?t>=i?s&&t!==n.current.length?P.current=-1:(te.current=!1,P.current=r):P.current=xp(n.current,{startingIndex:t,disabledIndices:h}):P.current=Math.min(i,xp(n.current,{startingIndex:t,disabledIndices:h})):c?t<=r?s&&t!==-1?P.current=n.current.length:(te.current=!1,P.current=i):P.current=xp(n.current,{startingIndex:t,decrement:!0,disabledIndices:h}):P.current=Math.max(r,xp(n.current,{startingIndex:t,decrement:!0,disabledIndices:h})),vp(n.current,P.current)&&(P.current=-1),L(e)}}),pe=H.useMemo(()=>({onFocus(e){te.current=!0,le(e)},onClick:({currentTarget:e})=>e.focus({preventScroll:!0}),onMouseMove(e){i_(e)||(te.current=!0,z.current=!1,p&&le(e))},onPointerLeave(e){if(!B.current||!I.current||e.pointerType===`touch`)return;te.current=!0;let t=e.relatedTarget;if(!(!p||n.current.includes(t))&&ae.current&&(ne.current?.(),ne.current=null,P.current=-1,L(e),!d)){let e=A.current,t=Sf(Vl(e));e&&Cf(e,t)&&e.focus({preventScroll:!0})}}}),[le,B,A,p,n,L,ae,d]),me=H.useMemo(()=>d&&w&&ce&&{"aria-activedescendant":`${v}-${r}`},[d,w,ce,v,r]),he=H.useMemo(()=>({"aria-orientation":g===`both`?void 0:g,...k?{}:me,onKeyDown(e){if(e.key===`Tab`&&e.shiftKey&&w&&!d){let t=wf(e.nativeEvent);if(t&&!Cf(A.current,t))return;uf(e),C.setOpen(!1,Gc(Rc,e.nativeEvent)),yl(E)&&E.focus();return}fe(e)},onPointerMove(e){i_(e)||(I.current=!0)}}),[me,fe,A,g,k,C,w,d,E]),ge=H.useMemo(()=>{function e(e){C.setOpen(!0,Gc(Bc,e.nativeEvent,e.currentTarget))}function t(e){f===`auto`&&ff(e.nativeEvent)&&(N.current=!d)}function n(e){N.current=f,f===`auto`&&pf(e.nativeEvent)&&(N.current=!0)}return{onKeyDown(t){let n=C.select(`open`);I.current=!1;let r=t.key.startsWith(`Arrow`),i=c_(t.key,ue(),u),a=o_(t.key,g),o=(l?i:a)||t.key===`Enter`||t.key.trim()===``;if(d&&n)return fe(t);if(!(!n&&!m&&r)){if(o){let e=o_(t.key,ue());F.current=l&&e?null:t.key}if(l){i&&(uf(t),n?(P.current=de(),L(t)):e(t));return}a&&(ie.current!=null&&(P.current=ie.current),uf(t),!n&&m?e(t):fe(t),n&&L(t))}},onFocus(e){C.select(`open`)&&!d&&(P.current=-1,L(e))},onPointerDown:n,onPointerEnter:n,onMouseDown:t,onClick:t}},[fe,f,de,l,L,C,m,g,ue,u,ie,d]),_e=H.useMemo(()=>({...me,...ge}),[me,ge]);return H.useMemo(()=>a?{reference:_e,floating:he,item:pe,trigger:ge}:{},[a,_e,he,ge,pe])}function d_(e,t){let{listRef:n,elementsRef:r,activeIndex:i,onMatch:a,disabledIndices:o,onTyping:s,enabled:c=!0,resetMs:l=750,selectedIndex:u=null}=t,d=`rootStore`in e?e.rootStore:e,f=d.useState(`open`),p=Zd(),m=H.useRef(``),h=H.useRef(u??i??-1),g=H.useRef(null),_=G(e=>{function t(e){return r?.current[e]}function c(e){let n=t(e);return n&&!wp(n)||n?.matches(`:disabled`)?!1:o==null||!Sp(Zs,e,o)}function d(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length,i=t.toLowerCase();for(let t=0;t<e.length;t+=1){let n=(r+t)%e.length;if(!(!e[n]?.toLowerCase().startsWith(i)||!c(n)))return n}return-1}let _=n.current;if(m.current.length>0&&e.key===` `&&(uf(e),s?.(!0)),m.current.length>0&&m.current[0]!==` `&&d(_,m.current)===-1&&e.key!==` `&&s?.(!1),_==null||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey)return;f&&e.key!==` `&&(uf(e),s?.(!0));let v=m.current===``;v&&(h.current=u??i??-1),_.every((e,t)=>e&&c(t)?e[0]?.toLowerCase()!==e[1]?.toLowerCase():!0)&&m.current===e.key&&(m.current=``,h.current=g.current),m.current+=e.key,p.start(l,()=>{m.current=``,h.current=g.current,s?.(!1)});let y=((v?u??i??-1:h.current)??0)+1,b=d(_,m.current,y);b===-1?e.key!==` `&&(m.current=``,s?.(!1)):(a?.(b),g.current=b)}),v=G(e=>{let t=e.relatedTarget,n=d.select(`domReferenceElement`),r=d.select(`floatingElement`);Cf(n,t)||Cf(r,t)||(p.clear(),m.current=``,h.current=g.current,s?.(!1))});K(()=>{!f&&u!==null||(p.clear(),g.current=null,m.current!==``&&(m.current=``))},[f,u,p]);let y=H.useMemo(()=>({onKeyDown:_,onBlur:v}),[_,v]);return H.useMemo(()=>c?{reference:y,floating:y}:{},[c,y])}var f_=.1,p_=f_*f_,m_=.5;function h_(e,t,n,r,i,a){return r>=t!=a>=t&&e<=(i-n)*(t-r)/(a-r)+n}function g_(e,t,n,r,i,a,o,s,c,l){let u=!1;return h_(e,t,n,r,i,a)&&(u=!u),h_(e,t,i,a,o,s)&&(u=!u),h_(e,t,o,s,c,l)&&(u=!u),h_(e,t,c,l,n,r)&&(u=!u),u}function __(e,t,n){return e>=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height}function v_(e,t,n,r,i,a){return e>=Math.min(n,i)&&e<=Math.max(n,i)&&t>=Math.min(r,a)&&t<=Math.max(r,a)}function y_(e={}){let{blockPointerEvents:t=!1}=e,n=new Xd,r=({x:e,y:t,placement:r,elements:i,onClose:a,nodeId:o,tree:s})=>{let c=r?.split(`-`)[0],l=!1,u=null,d=null,f=typeof performance<`u`?performance.now():0;function p(e,t){let n=performance.now(),r=n-f;if(u===null||d===null||r===0)return u=e,d=t,f=n,!1;let i=e-u,a=t-d,o=i*i+a*a,s=r*r*p_;return u=e,d=t,f=n,o<s}function m(){n.clear(),a()}return function(r){n.clear();let a=i.domReference,u=i.floating;if(!a||!u||c==null||e==null||t==null)return;let{clientX:d,clientY:f}=r,h=wf(r),g=r.type===`mouseleave`,_=Cf(u,h),v=Cf(a,h);if(_&&(l=!0,!g))return;if(v&&(l=!1,!g)){l=!0;return}if(g&&vl(r.relatedTarget)&&Cf(u,r.relatedTarget))return;function y(){return!!(s&&Xp(s.nodesRef.current,o).length>0)}function b(){y()||m()}if(y())return;let x=a.getBoundingClientRect(),S=u.getBoundingClientRect(),C=e>S.right-S.width/2,w=t>S.bottom-S.height/2,T=S.width>x.width,E=S.height>x.height,D=(T?x:S).left,O=(T?x:S).right,k=(E?x:S).top,A=(E?x:S).bottom;if(c===`top`&&t>=x.bottom-1||c===`bottom`&&t<=x.top+1||c===`left`&&e>=x.right-1||c===`right`&&e<=x.left+1){b();return}let j=!1;switch(c){case`top`:j=v_(d,f,D,x.top+1,O,S.bottom-1);break;case`bottom`:j=v_(d,f,D,S.top+1,O,x.bottom-1);break;case`left`:j=v_(d,f,S.right-1,A,x.left+1,k);break;case`right`:j=v_(d,f,x.right-1,A,S.left+1,k);break;default:}if(j)return;if(l&&!__(d,f,x)){b();return}if(!g&&p(d,f)){b();return}let M=!1;switch(c){case`top`:{let n=T?m_/2:m_*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t+m_+1,o=C||T?S.bottom-m_:S.top,s=C?T?S.bottom-m_:S.top:S.bottom-m_;M=g_(d,f,r,a,i,a,S.left,o,S.right,s);break}case`bottom`:{let n=T?m_/2:m_*4,r=T||C?e+n:e-n,i=T?e-n:C?e+n:e-n,a=t-m_,o=C||T?S.top+m_:S.bottom,s=C?T?S.top+m_:S.bottom:S.top+m_;M=g_(d,f,r,a,i,a,S.left,o,S.right,s);break}case`left`:{let n=E?m_/2:m_*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e+m_+1,o=w||E?S.right-m_:S.left,s=w?E?S.right-m_:S.left:S.right-m_;M=g_(d,f,o,S.top,s,S.bottom,a,r,a,i);break}case`right`:{let n=E?m_/2:m_*4,r=E||w?t+n:t-n,i=E?t-n:w?t+n:t-n,a=e-m_,o=w||E?S.left+m_:S.right,s=w?E?S.left+m_:S.right:S.left+m_;M=g_(d,f,a,r,a,i,o,S.top,s,S.bottom);break}default:}M?l||n.start(40,b):b()}};return r.__options={...e,blockPointerEvents:t},r}function b_({store:e,parentContext:t,isDrawer:n}){let r=e.useState(`open`),i=e.useState(`disablePointerDismissal`),a=e.useState(`modal`),o=e.useState(`popupElement`),s=e.useState(`floatingRootContext`),[c,l]=H.useState(0),[u,d]=H.useState(0),f=c===0,p=Km(s,{outsidePressEvent(){return e.context.internalBackdropRef.current||e.context.backdropRef.current?`intentional`:{mouse:a===`trap-focus`?`sloppy`:`intentional`,touch:`sloppy`}},outsidePress(t){if(!e.context.outsidePressEnabledRef.current||`button`in t&&t.button!==0)return!1;if(`touches`in t){if(t.type===`touchend`){if(t.changedTouches.length!==1||t.touches.length!==0)return!1}else if(t.touches.length!==1)return!1}let n=wf(t);if(f&&!i){if(a){let t=e.context.internalBackdropRef.current,r=e.context.backdropRef.current;return t||r?t===n||r===n||Cf(n,o)&&!n?.hasAttribute(`data-base-ui-portal`):!0}return!0}return!1},escapeKey:f});return lf(r&&a===!0,o),e.useContextCallback(`onNestedDialogOpen`,(e,t)=>{l(e),d(t)}),K(()=>(t?.onNestedDialogOpen&&(r?t.onNestedDialogOpen(c+1,u+ +!!n):t.onNestedDialogOpen(0,0)),()=>{t?.onNestedDialogOpen&&r&&t.onNestedDialogOpen(0,0)}),[n,r,c,u,t]),Ag(e,{activeTriggerProps:p.reference,inactiveTriggerProps:p.trigger,popupProps:p.floating,nestedOpenDialogCount:c,nestedOpenDrawerCount:u}),null}var x_=H.createContext(void 0);x_.displayName=`DialogRootContext`;function S_(e){let t=H.useContext(x_);if(!e&&t===void 0)throw Error(`Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>.`);return t}var C_={...Ug,modal:e=>e.modal,nested:e=>e.nested,nestedOpenDialogCount:e=>e.nestedOpenDialogCount,nestedOpenDrawerCount:e=>e.nestedOpenDrawerCount,disablePointerDismissal:e=>e.disablePointerDismissal,openMethod:e=>e.openMethod,descriptionElementId:e=>e.descriptionElementId,titleElementId:e=>e.titleElementId,viewportElement:e=>e.viewportElement,role:e=>e.role},w_=class extends hg{constructor(e,t,n){let r=new Pg,i=T_(e,r,t,n);super(i,E_(r),C_)}setOpen=(e,t)=>{if(t.preventUnmountOnClose=()=>{this.set(`preventUnmountingOnClose`,!0)},!e&&t.trigger==null&&this.state.activeTriggerId!=null&&(t.trigger=this.state.activeTriggerElement??void 0),this.context.onOpenChange?.(e,t),t.isCanceled)return;this.state.floatingRootContext.dispatchOpenChange(e,t);let n={open:e};wg(n,e,t.trigger),this.update(n)}};function T_(e,t,n,r=!1){let i={...Ig(),modal:!0,disablePointerDismissal:!1,viewportElement:null,descriptionElementId:void 0,titleElementId:void 0,openMethod:null,nested:!1,nestedOpenDialogCount:0,nestedOpenDrawerCount:0,role:`dialog`,...e};return i.floatingRootContext=Lg(t,n,r),i}function E_(e){return{popupRef:H.createRef(),backdropRef:H.createRef(),internalBackdropRef:H.createRef(),outsidePressEnabledRef:{current:!0},triggerElements:e,onOpenChange:void 0,onOpenChangeComplete:void 0}}function D_(e,t){let{children:n,open:r,defaultOpen:i=!1,onOpenChange:a,onOpenChangeComplete:o,disablePointerDismissal:s=!1,modal:c=!0,actionsRef:l,handle:u,triggerId:d,defaultTriggerId:f=null}=t,p=e===`drawer`,m=e===`alert-dialog`,h=m?!0:c,g=m||s,_=m?`alertdialog`:`dialog`,v=S_(!0),y={modal:h,disablePointerDismissal:g,nested:v!=null,role:_},b=xg((e,t)=>new w_({open:i,openProp:r,activeTriggerId:f,triggerIdProp:d,...y},e,t),!0);b.useControlledProp(`openProp`,r),b.useControlledProp(`triggerIdProp`,d),b.useSyncedValues(y),b.useContextCallback(`onOpenChange`,a),b.useContextCallback(`onOpenChangeComplete`,o);let x=b.useState(`open`),S=b.useState(`mounted`),C=b.useState(`payload`);jg(b,x),Og(b);let{forceUnmount:w}=kg(x,b);H.useImperativeHandle(l,()=>({unmount:w,close:()=>b.setOpen(!1,Gc(Wc))}),[w,b]);let T=x||S;return(0,U.jsxs)(x_.Provider,{value:b,children:[u&&(0,U.jsx)(Sg,{handle:u,store:b}),T&&(0,U.jsx)(b_,{store:b,parentContext:v?.context,isDrawer:p}),typeof n==`function`?n({payload:C}):n]})}(function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=rl.startingStyle]=`startingStyle`,e[e.endingStyle=rl.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e})({});var O_={"data-popup-open":``},k_={"data-popup-open":``,"data-pressed":``},A_={"data-open":``},j_={"data-closed":``},M_={"data-anchor-hidden":``},N_={open(e){return e?O_:null}},P_={open(e){return e?k_:null}},F_={open(e){return e?A_:j_},anchorHidden(e){return e?M_:null}},I_={...F_,...ol},L_=H.forwardRef(function(e,t){let{render:n,className:r,style:i,forceRender:a=!1,...o}=e,s=S_(),c=s.useState(`open`),l=s.useState(`nested`),u=s.useState(`mounted`);return _c(`div`,e,{state:{open:c,transitionStatus:s.useState(`transitionStatus`)},ref:[s.context.backdropRef,t],stateAttributesMapping:I_,props:[{role:`presentation`,hidden:!u,style:{userSelect:`none`,WebkitUserSelect:`none`}},o],enabled:a||!l})});L_.displayName=`DialogBackdrop`;var R_=H.forwardRef(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,...s}=e,c=S_(),l=c.useState(`open`),{getButtonProps:u,buttonRef:d}=Ul({disabled:a,native:o}),f={disabled:a};function p(e){l&&c.setOpen(!1,Gc(Lc,e.nativeEvent))}return _c(`button`,e,{state:f,ref:[t,d],props:[{onClick:p},s,u]})});R_.displayName=`DialogClose`;var z_=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=S_(),c=Ac(a);return s.useSyncedValueWithCleanup(`descriptionElementId`,c),_c(`p`,e,{ref:t,props:[{id:c},o]})});z_.displayName=`DialogDescription`;var B_=H.createContext(void 0);B_.displayName=`DialogPortalContext`;function V_(){let e=H.useContext(B_);if(e===void 0)throw Error(`Base UI: <Dialog.Portal> is missing.`);return e}var H_=`ArrowUp`,U_=`ArrowDown`,W_=`ArrowLeft`,G_=`ArrowRight`,K_=new Set([H_,U_,W_,G_,`Home`,`End`]),q_=`Shift`,J_=[q_,`Control`,`Alt`,`Meta`];function Y_(e){return yl(e)&&e.tagName===`INPUT`}function X_(e){return!!(Y_(e)&&e.selectionStart!=null||yl(e)&&e.tagName===`TEXTAREA`)}function Z_(e,t,n,r){if(!e||!t||!t.scrollTo)return;let i=e.scrollLeft,a=e.scrollTop,o=e.clientWidth<e.scrollWidth,s=e.clientHeight<e.scrollHeight;if(o&&r!==`vertical`){let r=Q_(e,t,`left`),a=$_(e),o=$_(t);n===`ltr`&&(r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight?i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight:r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft&&(i=r-o.scrollMarginLeft-a.scrollPaddingLeft)),n===`rtl`&&(r-o.scrollMarginLeft<e.scrollLeft+a.scrollPaddingLeft?i=r-o.scrollMarginLeft-a.scrollPaddingLeft:r+t.offsetWidth+o.scrollMarginRight>e.scrollLeft+e.clientWidth-a.scrollPaddingRight&&(i=r+t.offsetWidth+o.scrollMarginRight-e.clientWidth+a.scrollPaddingRight))}if(s&&r!==`horizontal`){let n=Q_(e,t,`top`),r=$_(e),i=$_(t);n-i.scrollMarginTop<e.scrollTop+r.scrollPaddingTop?a=n-i.scrollMarginTop-r.scrollPaddingTop:n+t.offsetHeight+i.scrollMarginBottom>e.scrollTop+e.clientHeight-r.scrollPaddingBottom&&(a=n+t.offsetHeight+i.scrollMarginBottom-e.clientHeight+r.scrollPaddingBottom)}e.scrollTo({left:i,top:a,behavior:`auto`})}function Q_(e,t,n){let r=n===`left`?`offsetLeft`:`offsetTop`,i=0;for(;t.offsetParent&&(i+=t[r],t.offsetParent!==e);)t=t.offsetParent;return i}function $_(e){let t=getComputedStyle(e);return{scrollMarginTop:parseFloat(t.scrollMarginTop)||0,scrollMarginRight:parseFloat(t.scrollMarginRight)||0,scrollMarginBottom:parseFloat(t.scrollMarginBottom)||0,scrollMarginLeft:parseFloat(t.scrollMarginLeft)||0,scrollPaddingTop:parseFloat(t.scrollPaddingTop)||0,scrollPaddingRight:parseFloat(t.scrollPaddingRight)||0,scrollPaddingBottom:parseFloat(t.scrollPaddingBottom)||0,scrollPaddingLeft:parseFloat(t.scrollPaddingLeft)||0}}var ev={...F_,...ol,nestedDialogOpen(e){return e?{"data-nested-dialog-open":``}:null}},tv=H.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,initialFocus:o,...s}=e,c=S_(),l=c.useState(`descriptionElementId`),u=c.useState(`disablePointerDismissal`),d=c.useState(`floatingRootContext`),f=c.useState(`popupProps`),p=c.useState(`modal`),m=c.useState(`mounted`),h=c.useState(`nested`),g=c.useState(`nestedOpenDialogCount`),_=c.useState(`open`),v=c.useState(`openMethod`),y=c.useState(`titleElementId`),b=c.useState(`transitionStatus`),x=c.useState(`role`),S=d.useState(`floatingId`);V_(),Ql({open:_,ref:c.context.popupRef,onComplete(){_&&c.context.onOpenChangeComplete?.(!0)}});let C=o===void 0?bg(c.context.popupRef):o,w=g>0,T=c.useStateSetter(`popupElement`),E=_c(`div`,e,{state:{open:_,nested:h,transitionStatus:b,nestedDialogOpen:w},props:[f,{id:S,"aria-labelledby":y,"aria-describedby":l,role:x,...yg,hidden:!m,onKeyDown(e){K_.has(e.key)&&e.stopPropagation()},style:{"--nested-dialogs":g}},s],ref:[t,c.context.popupRef,T],stateAttributesMapping:ev});return(0,U.jsx)(zm,{context:d,openInteractionType:v,disabled:!m,closeOnFocusOut:!u,initialFocus:C,returnFocus:a,modal:p!==!1,restoreFocus:`popup`,children:E})});tv.displayName=`DialogPopup`;function nv(e){return qs(19)?e:e?`true`:void 0}var rv=H.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,U.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})});rv.displayName=`InternalBackdrop`;var iv=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,i=S_(),a=i.useState(`mounted`),o=i.useState(`modal`),s=i.useState(`open`);return a||n?(0,U.jsx)(B_.Provider,{value:n,children:(0,U.jsxs)(xm,{ref:t,...r,children:[a&&o===!0&&(0,U.jsx)(rv,{ref:i.context.internalBackdropRef,inert:nv(!s)}),e.children]})}):null});iv.displayName=`DialogPortal`;var av=H.forwardRef(function(e,t){let{render:n,className:r,style:i,id:a,...o}=e,s=S_(),c=Ac(a);return s.useSyncedValueWithCleanup(`titleElementId`,c),_c(`h2`,e,{ref:t,props:[{id:c},o]})});av.displayName=`DialogTitle`;function ov(e){let t=H.useRef(``),n=H.useCallback(n=>{n.defaultPrevented||(t.current=n.pointerType,e(n,n.pointerType))},[e]);return{onClick:H.useCallback(n=>{if(n.detail===0){e(n,`keyboard`);return}`pointerType`in n?e(n,n.pointerType):e(n,t.current),t.current=``},[e]),onPointerDown:n}}function sv(e,t){let n=H.useRef(e),r=G(t);K(()=>{n.current!==e&&r(n.current),n.current=e},[e,r])}function cv(e,t){let{onClick:n,onPointerDown:r}=ov(G((n,r)=>{(typeof e==`function`?e():e)||t(r||(Vd?`touch`:``))}));return H.useMemo(()=>({onClick:n,onPointerDown:r}),[n,r])}function lv(e){let[t,n]=H.useState(null),r=cv(e,n);return sv(e,t=>{t&&!e&&n(null)}),H.useMemo(()=>({openMethod:t,triggerProps:r}),[t,r])}var uv=H.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,focusableWhenDisabled:a=!1,nativeButton:o=!0,style:s,...c}=e,{getButtonProps:l,buttonRef:u}=Ul({disabled:i,focusableWhenDisabled:a,native:o});return _c(`button`,e,{state:{disabled:i},ref:[t,u],props:[c,l]})});uv.displayName=`Button`;var dv=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,fv=su,pv=(e,t)=>n=>{if(t?.variants==null)return fv(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=dv(t)||dv(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return fv(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)};function mv(e){return _c(e.defaultTagName??`div`,e,e)}var hv=H.forwardRef(function(e,t){let{className:n,render:r,orientation:i=`horizontal`,style:a,...o}=e;return _c(`div`,e,{state:{orientation:i},ref:t,props:[{role:`separator`,"aria-orientation":i},o]})});hv.displayName=`Separator`;function gv(e){if(!e)return null;for(let t of e.elements){let e=t.tagName;if(e===`BUTTON`||e===`INPUT`){let e=t;if(e.type===`submit`)return e}}return null}var _v={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},vv={disabled:!1,valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},yv={valid(e){return e===null?null:e?{"data-valid":``}:{"data-invalid":``}}};function bv(e){return{checked(t){return e.indeterminate?{}:t?{"data-checked":``}:{"data-unchecked":``}},...yv}}var xv={invalid:void 0,name:void 0,validityData:{state:_v,errors:[],error:``,value:``,initialValue:null},setValidityData:Xs,disabled:void 0,setTouched:Xs,setDirty:Xs,setFilled:Xs,setFocused:Xs,validationMode:`onSubmit`,shouldValidateOnChange:()=>!1,state:vv,registerFieldControl:Xs,validation:{getValidationProps:(e,t=Qs)=>t,inputRef:{current:null},registeredInputs:new Map,registerInput:Xs,getInputControl:()=>null,commit:async()=>{},change:Xs}},Sv=H.createContext(xv);Sv.displayName=`FieldRootContext`;function Cv(e=!0){let t=H.useContext(Sv);if(t.setValidityData===Xs&&!e)throw Error(`Base UI: FieldRootContext is missing. Field parts must be placed within <Field.Root>.`);return t}function wv(e,t,n,r,i=!0,a){let{registerFieldControl:o}=Cv(),s=ws(()=>Symbol());K(()=>{let c=s.current;if(!i){o(c,void 0);return}o(c,{controlRef:e,getValue:r,id:t,name:a,value:n})},[e,i,r,t,a,o,s,n]),K(()=>{let e=s.current;return()=>{o(e,void 0)}},[o,s])}var Tv=H.createContext({disabled:!1});Tv.displayName=`FieldItemContext`;function Ev(){return H.useContext(Tv)}var Dv=H.createContext({elementRef:{current:null},formRef:{current:{fields:new Map}},errors:{},clearErrors:Xs,validationMode:`onSubmit`,submitAttemptedRef:{current:!1}});Dv.displayName=`FormContext`;function Ov(){return H.useContext(Dv)}var kv=H.createContext({controlId:void 0,registerControlId:Xs,labelId:void 0,setLabelId:Xs,messageIds:[],setMessageIds:Xs,getDescriptionProps:e=>e});kv.displayName=`LabelableContext`;function Av(){return H.useContext(kv)}function jv(e,t,n,r=!0,i){let[a,o]=H.useState(),s=Ac(i?`${i}-label`:void 0),c=e??t??a;return K(()=>{let i=e||t||!r?void 0:Mv(n.current,s);a!==i&&o(i)}),c}function Mv(e,t){let n=Nv(e);if(n)return!n.id&&t&&(n.id=t),n.id||void 0}function Nv(e){if(!e)return;let t=e.parentElement;if(t&&t.tagName===`LABEL`)return t;let n=e.id;if(n){let t=e.nextElementSibling;if(t&&t.htmlFor===n)return t}let r=e.labels;return r&&r[0]}var Pv=H.createContext(void 0);Pv.displayName=`CheckboxGroupContext`;function Fv(){return H.useContext(Pv)}var Iv=H.createContext(void 0);Iv.displayName=`CheckboxRootContext`;function Lv(){let e=H.useContext(Iv);if(e===void 0)throw Error(`Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.`);return e}var Rv=`data-parent`,zv=H.forwardRef(function(e,t){let{checked:n,className:r,defaultChecked:i=!1,"aria-labelledby":a,disabled:o=!1,form:s,id:c,indeterminate:l=!1,inputRef:u,name:d,onCheckedChange:f,parent:p=!1,readOnly:m=!1,render:h,required:g=!1,uncheckedValue:_,value:v,nativeButton:y=!1,style:b,...x}=e,{clearErrors:S}=Ov(),{disabled:C,name:w,setDirty:T,setFilled:E,setFocused:D,setTouched:O,state:k,validationMode:A,validityData:j,validation:M}=Cv(),N=Ev(),{labelId:P,controlId:F,registerControlId:I,getDescriptionProps:L}=Av(),R=Fv(),ee=R?.allValues===void 0?void 0:R.parent,te=ee!==void 0,z=C||N.disabled||R?.disabled||o,ne=w??d,re=v??ne,B=Ac(),ie=Ac(),ae=c||F;te&&(p?ae=ie:re===void 0?ae||=ie:ae=`${ee.id}-${re}`);let oe={};te&&(p?oe=ee.getParentProps():re!==void 0&&(oe=ee.getChildProps(re)));let{checked:V=n,indeterminate:se=l,onCheckedChange:ce,...le}=oe,ue=R?.value,de=H.useRef(null),fe=ws(()=>Symbol()),pe=H.useRef(!1),{getButtonProps:me,buttonRef:he}=Ul({disabled:z,native:y}),ge=R?.validation??M,[_e,ve]=bs({controlled:re!==void 0&&ue!==void 0&&!p?ue.includes(re):V,default:i,name:`Checkbox`,state:`checked`}),ye=te?!!V:_e,be=te&&se||l;K(()=>{I!==Xs&&(pe.current=!0,I(fe.current,ae))},[ae,I,fe]),H.useEffect(()=>{let e=fe.current;return()=>{!pe.current||I===Xs||(pe.current=!1,I(e,void 0))}},[I,fe]),wv(de,B,_e,void 0,!R&&!z,d);let xe=H.useRef(null),Se=ge.registerInput,Ce=R?re:void 0,we=H.useCallback(e=>Se(e,{controlRef:de,value:Ce}),[Se,Ce]),Te=Bs(u,xe,p?void 0:we),Ee=jv(a,P,xe,!y,ae??void 0);K(()=>{xe.current&&(xe.current.indeterminate=be,_e&&E(!0))},[_e,be,E]),sv(_e,()=>{R||(S(ne),E(_e),T(_e!==j.initialValue),ge.change(_e))});let De=rc({checked:_e,disabled:z,form:s,name:p?void 0:ne,id:y?void 0:ae??void 0,required:g,ref:Te,style:ne?Uf:Hf,tabIndex:-1,type:`checkbox`,"aria-hidden":!0,onChange(e){if(e.nativeEvent.defaultPrevented)return;if(m){e.preventDefault();return}let t=e.currentTarget.checked,n=Gc(jc,e.nativeEvent);if(f?.(t,n),!n.isCanceled&&(ce?.(t,n),!n.isCanceled&&(ve(t),re!==void 0&&R!==void 0&&!p&&!te))){let e=t?[...R.value,re]:R.value.filter(e=>e!==re);R.setValue(e,n)}},onClick(e){e.stopPropagation()},onFocus(){de.current?.focus()}},v===void 0?Qs:{value:(R?_e&&v:v)||``},L,e=>ge.getValidationProps(z,e));H.useEffect(()=>{if(!ee||re===void 0)return;let e=ee.disabledStatesRef.current;return e.set(re,z),()=>{e.delete(re)}},[ee,z,re]);let Oe=H.useMemo(()=>({...k,checked:ye,disabled:z,readOnly:m,required:g,indeterminate:be}),[k,ye,z,m,g,be]),ke=bv(Oe),Ae=_c(`span`,e,{state:Oe,ref:[he,de,t],props:[{id:y?ae??void 0:B,role:`checkbox`,"aria-checked":be?`mixed`:ye,"aria-readonly":m||void 0,"aria-required":g||void 0,"aria-labelledby":Ee,[Rv]:p?``:void 0,onFocus(){z||D(!0)},onBlur(){let e=xe.current;e&&(O(!0),D(!1),A===`onBlur`&&ge.commit(R?ue:e.checked))},onKeyDown(e){if(e.key!==`Enter`||(e.preventBaseUIHandler(),e.defaultPrevented))return;let t=xe.current?.form??null,n=e.currentTarget,r=e.nativeEvent,i=e.preventDefault,a=r.preventDefault,o=!1;e.preventDefault=()=>{o=!0,i.call(e)},r.preventDefault=()=>{o=!0,a.call(r)},a.call(r),hl(n).queueMicrotask(()=>{e.preventDefault=i,r.preventDefault=a,o||gv(t)?.click()})},onClick(e){if(m||z)return;e.preventDefault();let t=xe.current;t&&Hl(t,e)}},x,le,me,L,e=>ge.getValidationProps(z,e)],stateAttributesMapping:ke});return(0,U.jsxs)(Iv.Provider,{value:Oe,children:[Ae,!_e&&!R&&ne&&!p&&_!==void 0&&(0,U.jsx)(`input`,{type:`hidden`,form:s,name:ne,value:_,disabled:z}),(0,U.jsx)(`input`,{...De,suppressHydrationWarning:!0})]})});zv.displayName=`CheckboxRoot`;var Bv=H.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=Lv(),c=s.checked||s.indeterminate,{mounted:l,transitionStatus:u,setMounted:d}=Qc(c),f=H.useRef(null),p={...s,transitionStatus:u};Ql({open:c,ref:f,onComplete(){c||d(!1)}});let m={...bv(s),...ol},h=a||l,g=_c(`span`,e,{ref:[t,f],state:p,stateAttributesMapping:m,props:o});return h?g:null});Bv.displayName=`CheckboxIndicator`;var Vv={...fl,...ol},Hv=H.forwardRef(function(e,t){let{render:n,className:r,defaultOpen:i=!1,disabled:a=!1,onOpenChange:o,open:s,style:c,...l}=e,u=G(o),d=$c({open:s,defaultOpen:i,onOpenChange:u,disabled:a}),f=H.useMemo(()=>({open:d.open,disabled:d.disabled,transitionStatus:d.transitionStatus}),[d.open,d.disabled,d.transitionStatus]),p=H.useMemo(()=>({...d,onOpenChange:u,state:f}),[d,u,f]),m=_c(`div`,e,{state:f,ref:t,props:l,stateAttributesMapping:Vv});return(0,U.jsx)(el.Provider,{value:p,children:m})});Hv.displayName=`CollapsibleRoot`;var Uv={...dl,...ol},Wv=H.forwardRef(function(e,t){let{panelId:n,open:r,handleTrigger:i,state:a,disabled:o}=tl(),{className:s,disabled:c=o,render:l,nativeButton:u=!0,style:d,...f}=e,{getButtonProps:p,buttonRef:m}=Ul({disabled:c,focusableWhenDisabled:!0,native:u});return _c(`button`,e,{state:a,ref:[t,m],props:[{"aria-controls":r?n:void 0,"aria-expanded":r,onClick:i},f,p],stateAttributesMapping:Uv})});Wv.displayName=`CollapsibleTrigger`;var Gv=function(e){return e.collapsiblePanelHeight=`--collapsible-panel-height`,e.collapsiblePanelWidth=`--collapsible-panel-width`,e}({}),Kv=H.forwardRef(function(e,t){let{className:n,hiddenUntilFound:r,keepMounted:i,render:a,id:o,style:s,...c}=e;H.useEffect(()=>{r&&i===!1&&As("The `keepMounted={false}` prop on `Collapsible.Panel` is ignored when `hiddenUntilFound` is enabled, since the panel must remain mounted while closed.")},[r,i]);let{defaultPanelId:l,mounted:u,onOpenChange:d,open:f,setMounted:p,setPanelIdState:m,setOpen:h,state:g,transitionStatus:_}=tl(),v=r??!1,y=i??!1,b=o||void 0,x=b??l;K(()=>(m(e=>b??(e===null?void 0:e)),()=>{m(e=>e===b?null:e)}),[b,m]);let{height:S,props:C,ref:w,shouldPreventOpenAnimation:T,shouldRender:E,transitionStatus:D,width:O}=eu({externalRef:t,hiddenUntilFound:v,id:x,keepMounted:y,mounted:u,onOpenChange:d,open:f,setMounted:p,setOpen:h,transitionStatus:_}),k={...g,transitionStatus:D},A=tc(s,k),j=_c(`div`,{...e,style:void 0},{state:k,ref:w,props:[C,{style:{[Gv.collapsiblePanelHeight]:S===void 0?`auto`:`${S}px`,[Gv.collapsiblePanelWidth]:O===void 0?`auto`:`${O}px`}},c,A?{style:A}:void 0,T?{style:{animationName:`none`}}:void 0],stateAttributesMapping:Vv});return E?j:null});Kv.displayName=`CollapsiblePanel`;var qv=H.createContext(void 0);qv.displayName=`ComboboxRootContext`;var Jv=H.createContext(void 0);Jv.displayName=`ComboboxFloatingContext`;var Yv=H.createContext(void 0);Yv.displayName=`ComboboxDerivedItemsContext`;var Xv=H.createContext(!1);Xv.displayName=`ComboboxHasItemsContext`;var Zv=H.createContext(``);Zv.displayName=`ComboboxInputValueContext`;function Qv(e){if(e==null)return``;if(typeof e==`string`)return e;try{return JSON.stringify(e)}catch{return String(e)}}function $v(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=Av(),o=Ac(t),s=n?i:void 0,c=ws(()=>Symbol()),l=H.useRef(!1),u=H.useRef(t!=null),d=G(()=>{!l.current||a===Xs||(l.current=!1,a(c.current,void 0))});return K(()=>{if(a===Xs)return;let e;if(n){let n=r?.current;e=vl(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),H.useEffect(()=>d,[d]),i??o}function ey(e){return Array.isArray(e)?e.map(e=>ey(e)).join(`,`):e==null?``:String(e)}var ty=H.createContext(void 0);ty.displayName=`DirectionContext`;function ny(){return H.useContext(ty)?.direction??`ltr`}var ry=5;function iy(e,t){let n=ay(t);return e.clientX>=n.left-ry&&e.clientX<=n.right+ry&&e.clientY>=n.top-ry&&e.clientY<=n.bottom+ry}function ay(e){let t=e.getBoundingClientRect(),n=hl(e);if(Jd)return t;let r=n.getComputedStyle(e,`::before`),i=n.getComputedStyle(e,`::after`);if(!(r.content!==`none`||i.content!==`none`))return t;let a=parseFloat(r.width)||0,o=parseFloat(r.height)||0,s=parseFloat(i.width)||0,c=parseFloat(i.height)||0,l=Math.max(t.width,a,s),u=Math.max(t.height,o,c),d=l-t.width,f=u-t.height;return{left:t.left-d/2,right:t.right+d/2,top:t.top-f/2,bottom:t.bottom+f/2}}var oy=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0,offsetParent:d=`real`}=Qf(e,t)||{};if(l==null)return{};let f=gp(u),p={x:n,y:r},m=ip(i),h=np(m),g=await o.getDimensions(l),_=m===`y`,v=_?`top`:`left`,y=_?`bottom`:`right`,b=_?`clientHeight`:`clientWidth`,x=a.reference[h]+a.reference[m]-p[m]-a.floating[h],S=p[m]-a.reference[m],C=d===`real`?await o.getOffsetParent?.(l):s.floating,w=s.floating[b]||a.floating[h];(!w||!await o.isElement?.(C))&&(w=s.floating[b]||a.floating[h]);let T=x/2-S/2,E=w/2-g[h]/2-1,D=Math.min(f[v],E),O=Math.min(f[y],E),k=D,A=w-g[h]-O,j=w/2-g[h]/2+T,M=Zf(k,j,A),N=!c.arrow&&ep(i)!=null&&j!==M&&a.reference[h]/2-(j<k?D:O)-g[h]/2<0,P=N?j<k?j-k:j-A:0;return{[m]:p[m]+P,data:{[m]:M,centerOffset:j-M-P,...N&&{alignmentOffset:P}},reset:N}}}),sy=(e,t)=>({...oy(e),options:[e,t]}),cy={name:`hide`,async fn(e){let{width:t,height:n,x:r,y:i}=e.rects.reference,a=t===0&&n===0&&r===0&&i===0,o=await e.platform.detectOverflow(e,{elementContext:`reference`});return{data:{referenceHidden:o.top-n>=0||o.right-t>=0||o.bottom-n>=0||o.left-t>=0||a}}}},ly={sideX:`left`,sideY:`top`},uy=`--available-width`,dy=`--available-height`;function fy(e,t,n){let r=e===`inline-start`||e===`inline-end`;return{top:`top`,right:r?n?`inline-start`:`inline-end`:`right`,bottom:`bottom`,left:r?n?`inline-end`:`inline-start`:`left`}[t]}function py(e,t,n){let{rects:r,placement:i}=e;return{side:fy(t,$f(i),n),align:ep(i)||`center`,anchor:{width:r.reference.width,height:r.reference.height},positioner:{width:r.floating.width,height:r.floating.height}}}function my(e){return hy(e,Gg)}function hy(e,t){let{anchor:n,positionMethod:r=`absolute`,side:i=`bottom`,sideOffset:a=0,align:o=`center`,alignOffset:s=0,collisionBoundary:c,collisionPadding:l=5,sticky:u=!1,arrowPadding:d=5,disableAnchorTracking:f=!1,inline:p,keepMounted:m=!1,floatingRootContext:h,mounted:g,collisionAvoidance:_,shift:v,nodeId:y,adaptiveOrigin:b,lazyFlip:x=!1,externalTree:S}=e,[C,w]=H.useState(null);!g&&C!==null&&w(null);let T=_.side||`flip`,E=_.align||`flip`,D=_.fallbackAxisSide||`end`,O=v?.crossAxis??!1,k=v?.rootBoundary,A=typeof n==`function`?n:void 0,j=G(A),M=A?j:n,N=ql(n),P=ql(g),F=ny()===`rtl`,I=C||{top:`top`,right:`right`,bottom:`bottom`,left:`left`,"inline-end":F?`left`:`right`,"inline-start":F?`right`:`left`}[i],L=o===`center`?I:`${I}-${o}`,R=l;typeof R==`number`?R={top:R,right:R,bottom:R,left:R}:R&&={top:R.top||0,right:R.right||0,bottom:R.bottom||0,left:R.left||0};let ee=+(i===`bottom`),te=+(i===`top`),z=+(i===`right`),ne=+(i===`left`),re={boundary:c===`clipping-ancestors`?`clippingAncestors`:c,padding:R},B=H.useRef(null),ie=ql(a),ae=ql(s),oe=typeof a==`function`?0:a,V=typeof s==`function`?0:s,se=[];p&&se.push(p),se.push(Gh(e=>{let t=py(e,i,F),n=typeof ie.current==`function`?ie.current(t):ie.current,r=typeof ae.current==`function`?ae.current(t):ae.current;return{mainAxis:n,crossAxis:r,alignmentAxis:r}},[oe,V,F,i]));let ce=E===`none`&&T!==`shift`,le=!ce&&(u||O||T===`shift`),ue=T===`none`?null:Jh({...re,padding:{top:R.top+1+ee,right:R.right+1+ne,bottom:R.bottom+1+te,left:R.left+1+z},mainAxis:!O&&T===`flip`,crossAxis:E===`flip`&&`alignment`,fallbackAxisSideDirection:D}),de=ce?null:Kh({...re,rootBoundary:k,mainAxis:E!==`none`,crossAxis:le,limiter:u||O?void 0:qh(e=>{if(!B.current)return{};let{width:t,height:n}=B.current.getBoundingClientRect(),r=rp($f(e.placement)),i=r===`y`?t:n,a=r===`y`?R.left+R.right:R.top+R.bottom;return{offset:i/2+a/2}})},[re,u,O,k,R,E]);T===`shift`||E===`shift`||o===`center`?se.push(de,ue):se.push(ue,de),se.push(Yh({...re,apply({elements:{floating:e},availableWidth:t,availableHeight:n,rects:r}){if(!P.current)return;let i=e.style;i.setProperty(uy,`${t}px`),i.setProperty(dy,`${n}px`);let a=hl(e).devicePixelRatio||1,{x:o,y:s,width:c,height:l}=r.reference,u=(Math.round((o+c)*a)-Math.round(o*a))/a,d=(Math.round((s+l)*a)-Math.round(s*a))/a;i.setProperty(`--anchor-width`,`${u}px`),i.setProperty(`--anchor-height`,`${d}px`)}}),sy(e=>({element:B.current||Vl(e.elements.floating).createElement(`div`),padding:d,offsetParent:`floating`}),[d]),{name:`transformOrigin`,fn(e){let{elements:t,middlewareData:n,placement:r,rects:o,y:s}=e,c=$f(r),l=rp(c),u=B.current,d=n.arrow?.x||0,f=n.arrow?.y||0,p=u?.clientWidth||0,m=u?.clientHeight||0,h=d+p/2,g=f+m/2,_=Math.abs(n.shift?.y||0),v=o.reference.height/2,y=typeof a==`function`?a(py(e,i,F)):a,b=_>y,x={top:`${h}px calc(100% + ${y}px)`,bottom:`${h}px ${-y}px`,left:`calc(100% + ${y}px) ${g}px`,right:`${-y}px ${g}px`}[c],S=`${h}px ${o.reference.y+v-s}px`;return t.floating.style.setProperty(`--transform-origin`,le&&l===`y`&&b?S:x),{}}},cy,b),K(()=>{!g&&h&&h.update({referenceElement:null,floatingElement:null,domReferenceElement:null,positionReference:null})},[g,h]);let fe=H.useMemo(()=>({elementResize:!f&&typeof ResizeObserver<`u`,layoutShift:!f&&typeof IntersectionObserver<`u`}),[f]),{refs:pe,elements:me,x:he,y:ge,middlewareData:_e,update:ve,placement:ye,context:be,isPositioned:xe,floatingStyles:Se}=t({rootContext:h,open:m?g:void 0,placement:L,middleware:se,strategy:r,whileElementsMounted:m?void 0:(...e)=>Mh(...e,fe),nodeId:y,externalTree:S}),{sideX:Ce,sideY:we}=_e.adaptiveOrigin||ly,Te=xe?r:`fixed`,Ee=H.useMemo(()=>{let e;return e=xe?b?{position:Te,[Ce]:he,[we]:ge}:{...Se,position:Te}:{position:Te,top:0,left:0},e[uy]=`100vw`,e[dy]=`100vh`,xe||(e.opacity=0),e},[b,Te,Ce,he,we,ge,Se,xe]),De=H.useRef(null);K(()=>{if(!g)return;let e=N.current,t=typeof e==`function`?e():e,n=(gy(t)?t.current:t)||null;n!==De.current&&(pe.setPositionReference(n),De.current=n)},[g,pe,M,N]),H.useEffect(()=>{if(!g)return;let e=N.current;typeof e!=`function`&&gy(e)&&e.current!==De.current&&(pe.setPositionReference(e.current),De.current=e.current)},[g,pe,M,N]),H.useEffect(()=>{if(m&&g&&me.reference&&me.floating)return Mh(me.reference,me.floating,ve,fe)},[m,g,me,ve,fe]);let Oe=$f(ye),ke=fy(i,Oe,F),Ae=ep(ye)||`center`,je=!!_e.hide?.referenceHidden;K(()=>{x&&g&&xe&&Oe!==I&&w(Oe)},[x,g,xe,Oe,I]);let Me=H.useMemo(()=>({position:`absolute`,top:_e.arrow?.y,left:_e.arrow?.x}),[_e.arrow]),Ne=_e.arrow?.centerOffset!==0;return H.useMemo(()=>({positionerStyles:Ee,arrowStyles:Me,arrowRef:B,arrowUncentered:Ne,side:ke,align:Ae,physicalSide:Oe,anchorHidden:je,refs:pe,context:be,isPositioned:xe,update:ve}),[Ee,Me,B,Ne,ke,Ae,Oe,je,pe,be,xe,ve])}function gy(e){return e!=null&&`current`in e}function _y(e){return e===`starting`?pm:Qs}function vy(e,t,{styles:n,transitionStatus:r,props:i,refs:a,hidden:o,inert:s=!1}){let c={...n};return s&&(c.pointerEvents=`none`),_c(`div`,e,{state:t,ref:a,props:[{role:`presentation`,hidden:o,style:c},_y(r),i],stateAttributesMapping:F_})}var yy=20;function by(e,t,n,r){let[i,a]=H.useState(!1);K(()=>{if(!e||!t||n==null){a(!1);return}let r=Vl(n).documentElement.clientWidth,i=n.offsetWidth;a(r>0&&i>0&&i>=r-yy)},[e,t,n]),lf(e&&(!t||i),r)}Object.keys(_v);function xy(e,t){return e.matches(`:disabled`)?!1:!t||e.form===t||e.form===null&&!e.hasAttribute(`form`)}var Sy=H.createContext(void 0);Sy.displayName=`ContextMenuRootContext`;function Cy(e=!0){let t=H.useContext(Sy);if(t===void 0&&!e)throw Error(`Base UI: ContextMenuRootContext is missing. ContextMenu parts must be placed within <ContextMenu.Root>.`);return t}var wy=H.createContext(void 0);wy.displayName=`MenuPositionerContext`;function Ty(e){let t=H.useContext(wy);if(t===void 0&&!e)throw Error(`Base UI: MenuPositionerContext is missing. MenuPositioner parts must be placed within <Menu.Positioner>.`);return t}var Ey=H.createContext(void 0);Ey.displayName=`MenuRootContext`;function Dy(e){let t=H.useContext(Ey);if(t===void 0&&!e)throw Error(`Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>.`);return t}function Oy(e){let{closeOnClick:t,highlighted:n,id:r,nodeId:i,store:a,typingRef:o,itemRef:s,itemMetadata:c}=e,{events:l}=a.useState(`floatingTreeRoot`),u=a.useState(`open`),d=Cy(!0),f=d!==void 0;return H.useMemo(()=>({id:r,role:`menuitem`,tabIndex:u&&n?0:-1,onKeyDown(e){e.key===` `&&o?.current&&e.preventDefault()},onMouseMove(e){i&&l.emit(`itemhover`,{nodeId:i,target:e.currentTarget})},onClick(e){t&&l.emit(`close`,{domEvent:e,reason:Ic})},onMouseUp(e){if(d){let t=d.initialCursorPointRef.current;if(d.initialCursorPointRef.current=null,f&&t&&Math.abs(e.clientX-t.x)<=1&&Math.abs(e.clientY-t.y)<=1||f&&!Wd&&e.button===2)return}s.current&&a.context.allowMouseUpTriggerRef.current&&(!f||e.button===2)&&c.type===`regular-item`&&Hl(s.current,e,{detail:1})}}),[t,n,r,l,i,u,a,o,s,d,f,c])}var ky={type:`regular-item`};function Ay(e){let{closeOnClick:t,disabled:n,highlighted:r,id:i,store:a,typingRef:o=a.context.typingRef,nativeButton:s,itemMetadata:c,nodeId:l}=e,u=H.useRef(null),{getButtonProps:d,buttonRef:f}=Ul({disabled:n,focusableWhenDisabled:!0,native:s,composite:!0}),p=Oy({closeOnClick:t,highlighted:r,id:i,nodeId:l,store:a,typingRef:o,itemRef:u,itemMetadata:c}),m=H.useCallback(e=>rc(p,{onMouseEnter(){c.type===`submenu-trigger`&&c.setActive()}},e,d),[p,d,c]),h=Bs(u,f);return H.useMemo(()=>({getItemProps:m,itemRef:h}),[m,h])}var jy=H.forwardRef(function(e,t){let{render:n,className:r,id:i,label:a,nativeButton:o=!1,disabled:s=!1,closeOnClick:c=!0,style:l,...u}=e,d=nl({guess:!0,label:a}),f=Ty(!0),p=Ac(i),{store:m}=Dy(),h=m.useState(`disabled`),g=s||h,_=m.useState(`isActive`,d.index),v=m.useState(`itemProps`),{getItemProps:y,itemRef:b}=Ay({closeOnClick:c,disabled:g,highlighted:_,id:p,store:m,nativeButton:o,nodeId:f?.context.nodeId,itemMetadata:ky});return _c(`div`,e,{state:{disabled:g,highlighted:_},props:[v,u,y],ref:[b,t,d.ref]})});jy.displayName=`MenuItem`;var My=H.createContext(void 0);My.displayName=`ToolbarRootContext`;function Ny(e){let t=H.useContext(My);if(t===void 0&&!e)throw Error(`Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>.`);return t}var Py=H.forwardRef(function(e,t){let{render:n,className:r,style:i,finalFocus:a,...o}=e,{store:s}=Dy(),{side:c,align:l}=Ty(),u=Ny(!0)!=null,d=s.useState(`open`),f=s.useState(`transitionStatus`),p=s.useState(`popupProps`),m=s.useState(`mounted`),h=s.useState(`instantType`),g=s.useState(`activeTriggerElement`),_=s.useState(`parent`),v=s.useState(`lastOpenChangeReason`),y=s.useState(`rootId`),b=s.useState(`floatingRootContext`),x=s.useState(`floatingTreeRoot`),S=s.useState(`closeDelay`),C=s.useState(`hoverEnabled`),w=s.useState(`disabled`),T=s.useState(`openMethod`),E=_.type===`context-menu`;Ql({open:d,ref:s.context.popupRef,onComplete(){d&&s.context.onOpenChangeComplete?.(!0)}}),H.useEffect(()=>{function e(e){s.setOpen(!1,Gc(e.reason,e.domEvent))}return x.events.on(`close`,e),()=>{x.events.off(`close`,e)}},[x.events,s]),e_(b,{enabled:C&&!w&&!E&&_.type!==`menubar`,closeDelay:S});let D=s.useStateSetter(`popupElement`),O=_c(`div`,e,{state:{transitionStatus:f,side:c,align:l,open:d,nested:_.type===`menu`,instant:h},ref:[t,s.context.popupRef,D],stateAttributesMapping:I_,props:[p,{onKeyDown(e){u&&K_.has(e.key)&&e.stopPropagation()}},_y(f),o,{"data-rootownerid":y}]}),k=_.type===void 0||E;return(g||_.type===`menubar`&&v!==`outside-press`)&&(k=!0),(0,U.jsx)(zm,{context:b,openInteractionType:T,modal:E,disabled:!m,returnFocus:a===void 0?k:a,initialFocus:_.type!==`menu`,restoreFocus:!0,externalTree:_.type===`menubar`?void 0:x,previousFocusableElement:g,nextFocusableElement:_.type===void 0?s.context.triggerFocusTargetRef:void 0,beforeContentFocusGuardRef:_.type===void 0?s.context.beforeContentFocusGuardRef:void 0,children:O})});Py.displayName=`MenuPopup`;var X=H.createContext(void 0);X.displayName=`MenuPortalContext`;function Fy(){let e=H.useContext(X);if(e===void 0)throw Error(`Base UI: <Menu.Portal> is missing.`);return e}var Iy=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e,{store:i}=Dy();return i.useState(`mounted`)||n?(0,U.jsx)(X.Provider,{value:n,children:(0,U.jsx)(xm,{ref:t,...r})}):null});Iy.displayName=`MenuPortal`;var Ly=H.forwardRef(function(e,t){let{anchor:n,positionMethod:r=`absolute`,className:i,render:a,side:o,align:s,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=mm,style:g,..._}=e,{store:v}=Dy(),y=Fy(),b=Cy(!0),x=v.useState(`parent`),S=v.useState(`floatingRootContext`),C=v.useState(`floatingTreeRoot`),w=v.useState(`mounted`),T=v.useState(`open`),E=v.useState(`modal`),D=v.useState(`openMethod`),O=v.useState(`activeTriggerElement`),k=v.useState(`transitionStatus`),A=v.useState(`positionerElement`),j=v.useState(`instantType`),M=v.useState(`adaptiveOrigin`),N=v.useState(`lastOpenChangeReason`),P=v.useState(`floatingNodeId`),F=v.useState(`floatingParentNodeId`),I=S.useState(`domReferenceElement`),L=H.useRef(null),R=Zl(A),ee=n,te=c,z=l,ne=s,re=h;x.type===`context-menu`&&(ee=n??x.context?.anchor,ne??=`start`,!o&&ne!==`center`&&(z=e.alignOffset??2,te=e.sideOffset??-5));let B=o,ie=ne;x.type===`menu`?(B??=`inline-end`,ie??=`start`,re=e.collisionAvoidance??hm):x.type===`menubar`&&(B??=x.context.orientation===`vertical`?`inline-end`:`bottom`,ie??=`start`);let ae=x.type===`context-menu`,oe=my({anchor:ee,floatingRootContext:S,positionMethod:b?`fixed`:r,mounted:w,side:B,sideOffset:te,align:ie,alignOffset:z,arrowPadding:ae?0:f,collisionBoundary:u,collisionPadding:d,sticky:p,nodeId:P,keepMounted:y,disableAnchorTracking:m,collisionAvoidance:re,shift:ae?{crossAxis:!(`side`in re&&re.side===`flip`),rootBoundary:`layoutViewport`}:void 0,externalTree:C,adaptiveOrigin:M});H.useEffect(()=>{function e(e){e.open&&(e.parentNodeId===P&&v.set(`hoverEnabled`,!1),e.nodeId!==P&&e.parentNodeId===v.select(`floatingParentNodeId`)&&v.setOpen(!1,Gc(Hc)))}return C.events.on(`menuopenchange`,e),()=>{C.events.off(`menuopenchange`,e)}},[v,C.events,P]),H.useEffect(()=>{if(v.select(`floatingParentNodeId`)==null)return;function e(e){if(e.open||e.nodeId!==v.select(`floatingParentNodeId`))return;let t=e.reason??`sibling-open`;v.setOpen(!1,Gc(t))}return C.events.on(`menuopenchange`,e),()=>{C.events.off(`menuopenchange`,e)}},[C.events,v]);let V=Zd();H.useEffect(()=>{T||V.clear()},[T,V]),H.useEffect(()=>{function e(e){if(!(!T||e.nodeId!==v.select(`floatingParentNodeId`)))if(e.target&&O&&O!==e.target){let e=v.select(`closeDelay`);e>0?V.isStarted()||V.start(e,()=>{v.setOpen(!1,Gc(Hc))}):v.setOpen(!1,Gc(Hc))}else V.clear()}return C.events.on(`itemhover`,e),()=>{C.events.off(`itemhover`,e)}},[C.events,T,O,v,V]),H.useEffect(()=>{let e={open:T,nodeId:P,parentNodeId:F,reason:v.select(`lastOpenChangeReason`)};C.events.emit(`menuopenchange`,e)},[C.events,T,v,P,F]),K(()=>{let e=I,t=L.current;if(e&&(L.current=e),t&&e&&e!==t){v.set(`instantType`,void 0);let e=new AbortController;return R(()=>{v.set(`instantType`,`trigger-change`)},e.signal),()=>{e.abort()}}},[I,R,v]);let se={open:T,side:oe.side,align:oe.align,anchorHidden:oe.anchorHidden,nested:x.type===`menu`,instant:j},ce=x.type===`menubar`&&x.context.modal;by(T&&(ce||E&&N!==`trigger-hover`),D===`touch`,A,O);let le=vy(e,se,{styles:oe.positionerStyles,transitionStatus:k,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!w,inert:!T}),ue=w&&x.type!==`menu`&&(x.type!==`menubar`&&E&&N!==`trigger-hover`||x.type===`menubar`&&x.context.modal),de=null;return x.type===`menubar`?de=x.context.contentElement:x.type===void 0&&(de=O),(0,U.jsxs)(wy.Provider,{value:oe,children:[ue&&(0,U.jsx)(rv,{ref:x.type===`context-menu`||x.type===`nested-context-menu`?x.context.internalBackdropRef:null,inert:nv(!T),cutout:de}),(0,U.jsx)(km,{id:P,children:(0,U.jsx)(Ns,{elementsRef:v.context.itemDomElements,labelsRef:v.context.itemLabels,children:le})})]})});Ly.displayName=`MenuPositioner`;var Ry=H.createContext(null);Ry.displayName=`MenubarContext`;function zy(e){let t=H.useContext(Ry);if(t===null&&!e)throw Error(`Base UI: MenubarContext is missing. Menubar parts must be placed within <Menubar>.`);return t}var By={...Ug,disabled:e=>e.parent.type===`menubar`&&e.parent.context.disabled||e.disabled,modal:e=>(e.parent.type===void 0||e.parent.type===`context-menu`)&&(e.modal??!0),openMethod:e=>e.openMethod,allowMouseEnter:e=>e.allowMouseEnter,highlightItemOnHover:e=>e.highlightItemOnHover,parent:e=>e.parent,rootId:e=>e.parent.type===`menu`?e.parent.store.select(`rootId`):e.parent.type===void 0?e.rootId:e.parent.context.rootId,activeIndex:e=>e.activeIndex,isActive:(e,t)=>e.activeIndex===t,hoverEnabled:e=>e.hoverEnabled,instantType:e=>e.instantType,lastOpenChangeReason:e=>e.openChangeReason,floatingTreeRoot:e=>e.parent.type===`menu`?e.parent.store.select(`floatingTreeRoot`):e.floatingTreeRoot,floatingNodeId:e=>e.floatingNodeId,floatingParentNodeId:e=>e.floatingParentNodeId,itemProps:e=>e.itemProps,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin,keyboardEventRelay:e=>{if(e.keyboardEventRelay)return e.keyboardEventRelay;if(e.parent.type===`menu`)return e.parent.store.select(`keyboardEventRelay`)}},Vy=class extends hg{constructor(e){super({...Uy(),...e},Hy(),By),this.unsubscribeParentListener=this.observe(`parent`,e=>{if(this.unsubscribeParentListener?.(),e.type===`menu`){let t=e.store.select(`rootId`),n=e.store.select(`floatingTreeRoot`),r=e.store.select(`keyboardEventRelay`);this.unsubscribeParentListener=e.store.subscribe(()=>{let i=e.store.select(`rootId`),a=e.store.select(`floatingTreeRoot`),o=e.store.select(`keyboardEventRelay`);t===i&&n===a&&r===o||(t=i,n=a,r=o,this.notifyAll())}),this.context.allowMouseUpTriggerRef=e.store.context.allowMouseUpTriggerRef;return}e.type!==void 0&&(this.context.allowMouseUpTriggerRef=e.context.allowMouseUpTriggerRef),this.unsubscribeParentListener=null})}setOpen(e,t){this.state.floatingRootContext.context.events.emit(`setOpen`,{open:e,eventDetails:t})}unsubscribeParentListener=null};function Hy(){return{positionerRef:H.createRef(),popupRef:H.createRef(),typingRef:{current:!1},itemDomElements:{current:[]},itemLabels:{current:[]},allowMouseUpTriggerRef:{current:!1},triggerFocusTargetRef:H.createRef(),beforeContentFocusGuardRef:H.createRef(),onOpenChangeComplete:void 0,triggerElements:new Pg}}function Uy(){return{...Ig(),disabled:!1,modal:!0,openMethod:null,allowMouseEnter:!1,highlightItemOnHover:!0,parent:{type:void 0},rootId:void 0,activeIndex:null,hoverEnabled:!0,instantType:void 0,openChangeReason:null,floatingTreeRoot:new Cm,floatingNodeId:void 0,floatingParentNodeId:null,itemProps:Qs,keyboardEventRelay:void 0,closeDelay:0,adaptiveOrigin:void 0}}var Wy=H.createContext(void 0);Wy.displayName=`MenuSubmenuRootContext`;function Gy(){return H.useContext(Wy)}var Ky=ig(function(e){let{children:t,open:n,onOpenChange:r,onOpenChangeComplete:i,defaultOpen:a=!1,disabled:o=!1,modal:s,loopFocus:c=!0,orientation:l=`vertical`,actionsRef:u,closeParentOnEsc:d=!1,handle:f,triggerId:p,defaultTriggerId:m=null,highlightItemOnHover:h=!0}=e,g=Cy(!0),_=Dy(!0),v=zy(!0),y=Gy(),b=H.useMemo(()=>y&&_?{type:`menu`,store:_.store}:v?{type:`menubar`,context:v}:g&&!_?{type:`context-menu`,context:g}:{type:void 0},[g,_,v,y]),x=qy({open:a,openProp:n,activeTriggerId:m,triggerIdProp:p,parent:b});x.useControlledProp(`openProp`,n),x.useControlledProp(`triggerIdProp`,p),x.useContextCallback(`onOpenChangeComplete`,i);let S=kc(),C=kc(),w=x.useState(`floatingTreeRoot`),T=Om(w),E=Em(),D=x.useState(`open`),O=x.useState(`activeTriggerElement`),k=x.useState(`positionerElement`),A=x.useState(`hoverEnabled`),j=x.useState(`disabled`),M=x.useState(`lastOpenChangeReason`),N=x.useState(`parent`),P=x.useState(`activeIndex`),F=x.useState(`payload`),I=x.useState(`floatingParentNodeId`),L=H.useRef(null),R=H.useRef(N.type!==`context-menu`),ee=Zd(),te=H.useRef(!0),z=Zd(),ne=I!=null;N.type!==void 0&&s!==void 0&&console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");let{openMethod:re,triggerProps:B}=lv(D);x.useSyncedValues({disabled:o,highlightItemOnHover:h,modal:N.type===void 0?s:void 0,openMethod:re,rootId:S}),Og(x);let{forceUnmount:ie}=kg(D,x,()=>{x.set(`allowMouseEnter`,!1)});K(()=>{g&&!_?x.update({parent:{type:`context-menu`,context:g},floatingNodeId:T,floatingParentNodeId:E}):_&&x.update({floatingNodeId:T,floatingParentNodeId:E})},[g,_,T,E,x]),H.useEffect(()=>{if(D||(L.current=null),N.type===`context-menu`){if(!D){ee.clear(),R.current=!1;return}ee.start(500,()=>{R.current=!0})}},[ee,D,N.type]),K(()=>{!D&&!A&&x.set(`hoverEnabled`,!0)},[D,A,x]);let ae=G((e,t)=>{let n=t.reason;if(!e&&!x.select(`open`)||D===e&&t.trigger===O&&M===n)return;let i=Tg(t);if(!e&&t.trigger==null&&(t.trigger=O??void 0),r?.(e,t),t.isCanceled)return;x.state.floatingRootContext.dispatchOpenChange(e,t);let a=t.event;if(e===!1&&a?.type===`click`&&a.pointerType===`touch`&&!te.current)return;e&&n===`trigger-focus`?(te.current=!1,z.start(300,()=>{te.current=!0})):(te.current=!0,z.clear());let o=(n===`trigger-press`||n===`item-press`)&&a.detail===0,s=!e&&(n===`escape-key`||n==null),c={open:e,openChangeReason:n};L.current=t.event,wg(c,e,t.trigger,i()),x.update(c),N.type===`menubar`&&(n===`trigger-focus`||n===`focus-out`||n===`trigger-hover`||n===`list-navigation`||n===`sibling-open`)?x.set(`instantType`,`group`):o||s?x.set(`instantType`,o?`click`:`dismiss`):x.set(`instantType`,void 0)}),oe=vg({popupStore:x,floatingId:C,nested:E!=null,onOpenChange:ae}),V=oe.context.events;K(()=>{let e=({open:e,eventDetails:t})=>ae(e,t);return V.on(`setOpen`,e),()=>{V?.off(`setOpen`,e)}},[V,ae]);let se=H.useCallback(()=>{x.setOpen(!1,Gc(Wc))},[x]);H.useImperativeHandle(u,()=>({unmount:ie,close:se}),[ie,se]);let ce;N.type===`context-menu`&&(ce=N.context),H.useImperativeHandle(ce?.positionerRef,()=>k,[k]),H.useImperativeHandle(ce?.actionsRef,()=>({setOpen:ae}),[ae]);let le=Km(oe,{enabled:!j,bubbles:{escapeKey:d&&N.type===`menu`},outsidePress(){return N.type!==`context-menu`||L.current?.type===`contextmenu`||R.current},externalTree:ne?w:void 0}),ue=ny(),de=H.useCallback(e=>{x.select(`activeIndex`)!==e&&x.set(`activeIndex`,e)},[x]),fe=u_(oe,{enabled:!j,listRef:x.context.itemDomElements,activeIndex:P,nested:N.type!==void 0,loopFocus:c,orientation:l,parentOrientation:N.type===`menubar`?N.context.orientation:void 0,rtl:ue===`rtl`,disabledIndices:Zs,onNavigate:de,openOnArrowKeyDown:N.type!==`context-menu`,externalTree:ne?w:void 0,focusItemOnHover:h}),pe=H.useCallback(e=>{x.context.typingRef.current=e},[x]),me=d_(oe,{enabled:!j,listRef:x.context.itemLabels,elementsRef:x.context.itemDomElements,activeIndex:P,resetMs:500,onMatch:e=>{D&&e!==P&&x.set(`activeIndex`,e)},onTyping:pe});Ag(x,{floatingRootContext:oe,activeTriggerProps:H.useMemo(()=>{let e=rc(me.reference,fe.reference,le.reference,{onMouseMove(){x.set(`allowMouseEnter`,!0)}},B);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=D,e},[x,me.reference,fe.reference,le.reference,B,D]),inactiveTriggerProps:H.useMemo(()=>{let e=rc(fe.trigger,le.trigger,B);return e[`aria-haspopup`]=`menu`,e[`aria-expanded`]=!1,e},[fe.trigger,le.trigger,B]),popupProps:H.useMemo(()=>rc(yg,{id:C,role:`menu`,"aria-labelledby":O?.id,onMouseMove(){x.set(`allowMouseEnter`,!0),N.type===`menu`&&x.set(`hoverEnabled`,!1)},onClick(){x.select(`hoverEnabled`)&&x.set(`hoverEnabled`,!1)},onKeyDown(e){let t=x.select(`keyboardEventRelay`);t&&!e.isPropagationStopped()&&t(e)}},me.floating,fe.floating,le.floating),[O,C,N.type,x,me.floating,fe.floating,le.floating]),itemProps:fe.item??Qs});let he=H.useMemo(()=>({store:x,parent:b}),[x,b]),ge=(0,U.jsxs)(Ey.Provider,{value:he,children:[f&&(0,U.jsx)(Sg,{handle:f,store:x}),typeof t==`function`?t({payload:F}):t]});return N.type===void 0||N.type===`context-menu`?(0,U.jsx)(Am,{externalTree:w,children:ge}):ge});Ky.displayName=`MenuRoot`;function qy(e){return ws(()=>new Vy(e)).current}function Jy(e={}){let{highlightItemOnHover:t,highlightedIndex:n,onHighlightedIndexChange:r}=zl(),{ref:i,index:a}=nl(e),o=n===a,s=H.useRef(null),c=Bs(i,s);return{compositeProps:{tabIndex:o?0:-1,onFocus(){r(a)},onMouseMove(){let e=s.current;if(!t||!e)return;let n=e.hasAttribute(`disabled`)||e.ariaDisabled===`true`;!o&&!n&&e.focus()}},compositeRef:c,index:a}}function Yy(e){let{render:t,className:n,style:r,state:i=Qs,props:a=Zs,refs:o=Zs,metadata:s,stateAttributesMapping:c,tag:l=`div`,...u}=e,{compositeProps:d,compositeRef:f}=Jy({metadata:s});return _c(l,e,{state:i,ref:[f,...o],props:[d,...a,u],stateAttributesMapping:c})}function Xy(e){if(yl(e)&&e.hasAttribute(`data-rootownerid`))return e.getAttribute(`data-rootownerid`);if(!jl(e))return Xy(Pl(e))}function Zy(e,t){let n=H.useRef(null);function r(t){Xl.flushSync(()=>{e.setOpen(!1,Gc(Rc,t.nativeEvent,t.currentTarget))}),Kp(n.current)?.focus()}function i(n){let r=e.select(`positionerElement`);if(r&&qp(n,r))e.context.beforeContentFocusGuardRef.current?.focus();else{Xl.flushSync(()=>{e.setOpen(!1,Gc(Rc,n.nativeEvent,n.currentTarget))});let i=Gp(e.context.triggerFocusTargetRef.current||t.current);for(;i!==null&&Cf(r,i);){let e=i;if(i=Hp(i),i===e)break}i?.focus()}}return{preFocusGuardRef:n,handlePreFocusGuardFocus:r,handleFocusTargetFocus:i}}function Qy(e){let{enabled:t=!0,mouseDownAction:n,open:r}=e,i=H.useRef(!1);return H.useMemo(()=>t?{onMouseDown:e=>{(n===`open`&&!r||n===`close`&&r)&&(i.current=!0,Vl(e.currentTarget).addEventListener(`click`,()=>{i.current=!1},{once:!0}))},onClick:e=>{i.current&&(i.current=!1,e.preventBaseUIHandler())}}:Qs,[t,n,r])}var $y=ag(function(e,t){let{render:n,className:r,style:i,disabled:a=!1,nativeButton:o=!0,id:s,openOnHover:c,delay:l=100,closeDelay:u=0,handle:d,payload:f,...p}=e,m=Dy(!0),h=Wg(d)??m?.store;if(!h)throw Error(`Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle.`);let g=Ac(s),_=h.useState(`isTriggerActive`,g),v=h.useState(`floatingRootContext`),y=h.useState(`isOpenedByTrigger`,g),b=h.useState(`triggerPopupId`,g),x=H.useRef(null),S=tb(),C=zl(!0),w=Dm(),T=H.useMemo(()=>w??new Cm,[w]),{registerTrigger:E,isMountedByThisTrigger:D}=Dg(g,x,h,{payload:f,closeDelay:u,parent:S,floatingTreeRoot:T,floatingNodeId:Om(T),floatingParentNodeId:Em(),keyboardEventRelay:C?.relayKeyboardEvent}),O=S.type===`menubar`,k=h.useState(`disabled`),A=a||k||O&&S.context.disabled,{getButtonProps:j,buttonRef:M}=Ul({disabled:A,native:o});H.useEffect(()=>{!y&&S.type===void 0&&(h.context.allowMouseUpTriggerRef.current=!1)},[h,y,S.type]);let N=H.useRef(null),P=Zd(),F=G(e=>{if(!N.current)return;P.clear(),h.context.allowMouseUpTriggerRef.current=!1;let t=e.target;Cf(N.current,t)||Cf(h.select(`positionerElement`),t)||t===N.current||t!=null&&Xy(t)===h.select(`rootId`)||iy(e,N.current)||T.events.emit(`close`,{domEvent:e,reason:Vc})});H.useEffect(()=>{y&&h.select(`lastOpenChangeReason`)===`trigger-hover`&&Vl(N.current).addEventListener(`mouseup`,F,{once:!0})},[y,F,h]);let I=O&&S.context.hasSubmenuOpen,L=n_(v,{enabled:(c??I)&&!A&&(!O||I&&!D),handleClose:y_({blockPointerEvents:!O}),mouseOnly:!0,move:!1,restMs:S.type===void 0?l:void 0,delay:{close:u},triggerElementRef:x,externalTree:T,isActiveTrigger:_,isClosing:()=>h.select(`transitionStatus`)===`ending`}),R=eb(y,h.select(`lastOpenChangeReason`)),ee=Bm(v,{enabled:!A,event:y&&O?`click`:`mousedown`,toggle:!0,ignoreMouse:!1,stickIfOpen:S.type===void 0&&R}),te=Jg(v,{enabled:!A&&I}),z=Qy({open:y,enabled:O,mouseDownAction:`open`}),ne=H.useMemo(()=>rc(te.reference,ee.reference),[te.reference,ee.reference]),re=h.useState(`triggerProps`,D),{preFocusGuardRef:B,handlePreFocusGuardFocus:ie,handleFocusTargetFocus:ae}=Zy(h,x),oe={disabled:A,open:y},V=[N,t,M,E,x],se=[ne,L??Qs,re,{"aria-haspopup":`menu`,"aria-controls":b,id:g,onMouseDown:e=>{h.select(`open`)||(P.start(200,()=>{h.context.allowMouseUpTriggerRef.current=!0}),Vl(e.currentTarget).addEventListener(`mouseup`,F,{once:!0}))}},O?{role:`menuitem`}:{},z,p,j],ce=_c(`button`,e,{enabled:!O,stateAttributesMapping:P_,state:oe,ref:V,props:se});return O?(0,U.jsx)(Yy,{tag:`button`,render:n,className:r,style:i,state:oe,refs:V,props:se,stateAttributesMapping:P_}):y?(0,U.jsxs)(H.Fragment,{children:[(0,U.jsx)(Wf,{ref:B,onFocus:ie},`${g}-pre-focus-guard`),(0,U.jsx)(H.Fragment,{children:ce},g),(0,U.jsx)(Wf,{ref:h.context.triggerFocusTargetRef,onFocus:ae},`${g}-post-focus-guard`)]}):(0,U.jsx)(H.Fragment,{children:ce},g)});$y.displayName=`MenuTrigger`;function eb(e,t){let n=Zd(),[r,i]=H.useState(!1);return K(()=>{e&&t===`trigger-hover`?(i(!0),n.start(500,()=>{i(!1)})):e||(n.clear(),i(!1))},[e,t,n]),r}function tb(){let e=zy(!0);return H.useMemo(()=>e?{type:`menubar`,context:e}:{type:void 0},[e])}function nb(e){return e==null||e.hasAttribute(`disabled`)||e.getAttribute(`aria-disabled`)===`true`}function rb(e){return D_(`dialog`,e)}var ib=H.createContext(void 0);ib.displayName=`FieldsetRootContext`;function ab(e=!1){let t=H.useContext(ib);if(!t&&!e)throw Error(`Base UI: FieldsetRootContext is missing. Fieldset parts must be placed within <Fieldset.Root>.`);return t}var ob=H.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:h,setTouched:g,setDirty:_,validityData:v,setFocused:y,setFilled:b,validationMode:x,validation:S}=Cv(),{clearErrors:C}=Ov(),w=h||s,T=m??a,E={...p,disabled:w},{labelId:D}=Av(),O=$v({id:i});K(()=>{let e=o!=null;S.inputRef.current?.value||e&&o!==``?b(!0):e&&o===``&&b(!1)},[S.inputRef,b,o]);let k=H.useRef(null);K(()=>{u&&k.current===Sf(Vl(k.current))&&y(!0)},[u,y]);let[A]=bs({controlled:o,default:l,name:`FieldControl`,state:`value`}),j=o!==void 0,M=j?A:void 0,N=G(()=>S.inputRef.current?.value);return wv(S.inputRef,O,M,N,!w,a),_c(`input`,e,{ref:[t,k],state:E,props:[{id:O,disabled:w,name:T,ref:S.inputRef,"aria-labelledby":D,autoFocus:u,...j?{value:M}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Gc(jc,e.nativeEvent)),_(t!==(v.initialValue??``)),b(t!==``),e.nativeEvent.defaultPrevented||(C(T),S.change(t))},onFocus(){y(!0)},onBlur(e){g(!0),y(!1),x===`onBlur`&&S.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(g(!0),S.commit(e.currentTarget.value))}},f,e=>S.getValidationProps(w,e)],stateAttributesMapping:yv})});ob.displayName=`FieldControl`;var sb=H.forwardRef(function(e,t){return(0,U.jsx)(ob,{ref:t,...e})});sb.displayName=`Input`;var cb=`data-composite-item-active`,lb=[];function ub(e){let{loopFocus:t=!0,orientation:n=`both`,grid:r,onLoop:i,direction:a,highlightedIndex:o,onHighlightedIndexChange:s,rootRef:c,enableHomeAndEndKeys:l=!1,stopEventPropagation:u,disabledIndices:d,modifierKeys:f=lb}=e,[p,m]=H.useState(0),h=r!=null,g=H.useRef(null),_=Bs(g,c),v=H.useRef([]),y=H.useRef(!1),b=o??p,x=G((e,t=!1)=>{if((s??m)(e),t){let t=v.current[e];Z_(g.current,t,a,n)}}),S=G(e=>{if(e.size===0||y.current)return;y.current=!0;let t=Array.from(e.keys()),r=t.find(e=>e?.hasAttribute(`data-composite-item-active`))??null,i=r?e.get(r)?.index??-1:-1;if(i!==-1)x(i);else if(Sp(t,b,d)){let e=xp(t,{disabledIndices:d});vp(t,e)||x(e)}Z_(g.current,r,a,n)});K(()=>{if(d==null||o!=null||!y.current)return;let e=v.current;if(Sp(e,b,d)){let t=xp(e,{disabledIndices:d});vp(e,t)||x(t)}},[d,o,b,v,x]);let C=G((e,t,n)=>i?i(e,t,n,v):n),w=G(e=>{let o=e.key===`Home`||e.key===`End`;if(!K_.has(e.key)||!l&&o||db(e,f)||!g.current)return;let s=a===`rtl`,c=s?W_:G_,p=s?G_:W_,m=n===`vertical`?U_:c,_=n===`vertical`?H_:p,y=wf(e.nativeEvent);if(y!=null&&X_(y)&&!nb(y)){let t=y.selectionStart,n=y.selectionEnd,r=y.value;if(t==null||e.shiftKey||t!==n||e.key!==_&&t<r.length||e.key!==m&&t>0)return}let S=b,w=yp(v,d),T=bp(v,d);r!=null&&(S=r({disabledIndices:d,elementsRef:v,event:e,highlightedIndex:b,loopFocus:t,maxIndex:T,minIndex:w,onLoop:C,orientation:n,rtl:s}));let E=n!==`vertical`&&e.key===c||n!==`horizontal`&&e.key===`ArrowDown`,D=n!==`vertical`&&e.key===p||n!==`horizontal`&&e.key===`ArrowUp`;l&&(e.key===`Home`?S=w:e.key===`End`&&(S=T)),S===b&&(E||D)&&(t&&S===T&&E?(S=w,i&&(S=i(e,b,S,v))):t&&S===w&&D?(S=T,i&&(S=i(e,b,S,v))):S=xp(v.current,{startingIndex:S,decrement:D,disabledIndices:d})),S!==b&&!vp(v.current,S)&&(u&&e.stopPropagation(),(h||o||E||D)&&e.preventDefault(),x(S,!0),queueMicrotask(()=>{v.current[S]?.focus()}))});return{props:{ref:_,onFocus(e){let t=g.current,n=wf(e.nativeEvent);!t||n==null||!X_(n)||n.setSelectionRange(0,n.value.length)},onKeyDown:w},highlightedIndex:b,onHighlightedIndexChange:x,elementsRef:v,onMapChange:S,relayKeyboardEvent:w}}function db(e,t){for(let n of J_)if(!t.includes(n)&&e.getModifierState(n))return!0;return!1}function fb(e){let{render:t,className:n,style:r,refs:i=Zs,props:a=Zs,state:o=Qs,stateAttributesMapping:s,highlightedIndex:c,onHighlightedIndexChange:l,orientation:u,grid:d,loopFocus:f,onLoop:p,enableHomeAndEndKeys:m,onMapChange:h,stopEventPropagation:g=!0,rootRef:_,disabledIndices:v,modifierKeys:y,highlightItemOnHover:b=!1,tag:x=`div`,...S}=e,{props:C,highlightedIndex:w,onHighlightedIndexChange:T,elementsRef:E,onMapChange:D,relayKeyboardEvent:O}=ub({grid:d,loopFocus:f,onLoop:p,orientation:u,highlightedIndex:c,onHighlightedIndexChange:l,rootRef:_,stopEventPropagation:g,enableHomeAndEndKeys:m,direction:ny(),disabledIndices:v,modifierKeys:y}),k=_c(x,e,{state:o,ref:i,props:[C,...a,S],stateAttributesMapping:s}),A=H.useMemo(()=>({highlightedIndex:w,onHighlightedIndexChange:T,highlightItemOnHover:b,relayKeyboardEvent:O}),[w,T,b,O]);return(0,U.jsx)(Rl.Provider,{value:A,children:(0,U.jsx)(Ns,{elementsRef:E,onMapChange:e=>{h?.(e),D(e)},children:k})})}var pb=H.forwardRef(function(e,t){let{children:n,container:r,className:i,render:a,style:o,...s}=e,{node:c,subtree:l}=bm({container:r,ref:t,componentProps:e,elementProps:s});return!l&&!c?null:(0,U.jsxs)(H.Fragment,{children:[l,c&&Xl.createPortal(n,c)]})});pb.displayName=`FloatingPortalLite`;var mb={checked(e){return e?{"data-checked":``}:{"data-unchecked":``}},...ol,...yv},hb=H.createContext(void 0);hb.displayName=`RadioGroupContext`;function gb(){return H.useContext(hb)}var _b=H.createContext(void 0);_b.displayName=`RadioRootContext`;function vb(){let e=H.useContext(_b);if(e===void 0)throw Error(`Base UI: RadioRootContext is missing. Radio parts must be placed within <Radio.Root>.`);return e}var yb=H.forwardRef(function(e,t){let{render:n,className:r,disabled:i=!1,readOnly:a=!1,required:o=!1,"aria-labelledby":s,value:c,inputRef:l,nativeButton:u=!1,id:d,style:f,...p}=e,m=gb(),{disabled:h,readOnly:g,required:_,form:v,checkedValue:y,touched:b=!1,validation:x,name:S,setCheckedValue:C=Xs,setTouched:w=Xs,registerInputRef:T=Xs}=m??{},{setTouched:E,setFilled:D,state:O,disabled:k}=Cv(),A=Ev(),{labelId:j,getDescriptionProps:M}=Av(),N=k||A.disabled||h||i,P=g||a,F=_||o,I=v,L=m?y===c:c===``,R=H.useRef(null),ee=H.useRef(null),te=x?.registerInput,z=Bs(l,ee,T,H.useCallback(e=>te?.(e,{controlRef:R,value:void 0}),[te]));K(()=>{ee.current?.checked&&D(!0)},[D]),K(()=>{if(ee.current){if(N&&L){T(null);return}T(ee.current)}},[L,N,T]);let ne=Ac(),re=$v({id:d,implicit:!1,controlRef:R}),B=u?void 0:re,ie={role:`radio`,"aria-checked":L,"aria-labelledby":jv(s,j,ee,!u,B),[cb]:L?``:void 0,id:u?re:ne,onKeyDown(e){e.key===`Enter`&&e.preventDefault()},onClick(e){if(e.defaultPrevented||N||P)return;e.preventDefault();let t=ee.current;t&&Hl(t,e)},onFocus(e){e.defaultPrevented||N||P||!b||(ee.current?.click(),w(!1))}},{getButtonProps:ae,buttonRef:oe}=Ul({disabled:N,native:u,composite:!1}),V={type:`radio`,ref:z,form:I,id:B,name:S,tabIndex:-1,style:S?Uf:Hf,"aria-hidden":!0,...c===void 0?Qs:{value:Qv(c)},disabled:N,checked:L,required:F,readOnly:P,onChange(e){if(e.nativeEvent.defaultPrevented||N||P||c===void 0)return;let t=Gc(jc,e.nativeEvent);C(c,t),!t.isCanceled&&E(!0)},onClick(e){e.stopPropagation()},onFocus(){R.current?.focus()}},se=H.useMemo(()=>({...O,required:F,disabled:N,readOnly:P,checked:L}),[O,N,P,L,F]),ce=se,le=m!==void 0,ue=[t,R,oe],de=[ie,p,ae,M,x?e=>x.getValidationProps(N,e):Qs],fe=_c(`span`,e,{enabled:!le,state:se,ref:ue,props:de,stateAttributesMapping:mb});return(0,U.jsxs)(_b.Provider,{value:ce,children:[le?(0,U.jsx)(Yy,{tag:`span`,render:n,className:r,style:f,state:se,refs:ue,props:de,stateAttributesMapping:mb}):fe,(0,U.jsx)(`input`,{...V,suppressHydrationWarning:!0})]})});yb.displayName=`RadioRoot`;var bb=H.forwardRef(function(e,t){let{render:n,className:r,style:i,keepMounted:a=!1,...o}=e,s=vb(),c=s.checked,{mounted:l,transitionStatus:u,setMounted:d}=Qc(c),f={...s,transitionStatus:u},p=H.useRef(null),m=a||l,h=_c(`span`,e,{ref:[t,p],state:f,props:o,stateAttributesMapping:mb});return Ql({open:c,ref:p,onComplete(){c||d(!1)}}),m?h:null});bb.displayName=`RadioIndicator`;var xb=[q_],Sb=H.forwardRef(function(e,t){let{render:n,className:r,disabled:i,readOnly:a,required:o,onValueChange:s,value:c,defaultValue:l,form:u,name:d,inputRef:f,id:p,style:m,...h}=e,{setTouched:g,setFocused:_,validationMode:v,name:y,disabled:b,state:x,validation:S,setDirty:C,setFilled:w,validityData:T}=Cv(),{labelId:E}=Av(),{clearErrors:D,elementRef:O}=Ov(),k=ab(!0),A=b||i,j=y??d,M=Ac(p),[N,P]=bs({controlled:c,default:l,name:`RadioGroup`,state:`value`}),[F,I]=H.useState(!1),L=G((e,t)=>{s?.(e,t),!t.isCanceled&&P(e)}),R=S.getInputControl,ee=H.useMemo(()=>({get current(){return R()}}),[R]),te=H.useRef(null),z=H.useRef(null);function ne(e){let t;return f&&(typeof f==`function`?t=f(e):f.current=e),te.current=e,t}let re=G(e=>{if(!e||e.disabled)return;z.current||=e;let t=te.current,n=e.checked||t==null||t.disabled?ne(e):void 0;return()=>{z.current===e&&(z.current=null),te.current===e?n?(n(),te.current=null):ne(null):n?.()}}),B=G(()=>{let e=O.current;if(!e)return N??null;for(let t of S.registeredInputs.keys())if(t.checked&&xy(t,e))return N??null;return null});wv(ee,M,N??null,B,!A,d),sv(N,()=>{D(j),C(N!==T.initialValue),w(N!=null),S.change(N);let e=z.current;N==null&&e&&!e.disabled&&ne(e)});let ie=E??k?.legendId,ae={...x,disabled:A??!1,required:o??!1,readOnly:a??!1},oe=H.useMemo(()=>({checkedValue:N,disabled:A,form:u,validation:S,name:j,readOnly:a,registerInputRef:re,required:o,setCheckedValue:L,setTouched:I,touched:F}),[N,A,u,S,j,a,re,o,L,I,F]),V={id:p,role:`radiogroup`,"aria-required":o||void 0,"aria-disabled":A||void 0,"aria-readonly":a||void 0,"aria-labelledby":ie,onFocus(){_(!0)},onBlur(e){Cf(e.currentTarget,e.relatedTarget)||(g(!0),_(!1),v===`onBlur`&&S.commit(N))},onKeyDownCapture(e){e.key.startsWith(`Arrow`)&&(I(!0),_(!0))}};return(0,U.jsx)(hb.Provider,{value:oe,children:(0,U.jsx)(fb,{render:n,className:r,style:m,state:ae,props:[V,h,e=>S.getValidationProps(A??!1,e)],refs:[t],stateAttributesMapping:yv,enableHomeAndEndKeys:!1,modifierKeys:xb})})});Sb.displayName=`RadioGroup`;var Cb=H.createContext(null);Cb.displayName=`SelectRootContext`;var wb=H.createContext(void 0);wb.displayName=`ToastContext`;var Tb=H.createContext(void 0);Tb.displayName=`TooltipRootContext`;function Eb(e){let t=H.useContext(Tb);if(t===void 0&&!e)throw Error(`Base UI: TooltipRootContext is missing. Tooltip parts must be placed within <Tooltip.Root>.`);return t}var Db={...Ug,disabled:e=>e.disabled,instantType:e=>e.instantType,isInstantPhase:e=>e.isInstantPhase,trackCursorAxis:e=>e.trackCursorAxis,disableHoverablePopup:e=>e.disableHoverablePopup,lastOpenChangeReason:e=>e.openChangeReason,closeOnClick:e=>e.closeOnClick,closeDelay:e=>e.closeDelay,adaptiveOrigin:e=>e.adaptiveOrigin},Ob=class extends hg{constructor(e,t,n){let r=new Pg;super(kb(e,r,t,n),Ab(r),Db)}setOpen=(e,t)=>{Eg(this,e,t,{extraState:{openChangeReason:t.reason}})};cancelPendingOpen(e){this.state.floatingRootContext.dispatchOpenChange(!1,Gc(Mc,e))}};function kb(e,t,n,r=!1){let i={...Ig(),disabled:!1,instantType:void 0,isInstantPhase:!1,trackCursorAxis:`none`,disableHoverablePopup:!1,openChangeReason:null,closeOnClick:!0,closeDelay:0,adaptiveOrigin:void 0,...e};return i.floatingRootContext=Lg(t,n,r),i}function Ab(e){return{popupRef:H.createRef(),onOpenChange:void 0,onOpenChangeComplete:void 0,triggerElements:e}}var jb=ig(function(e){let{disabled:t=!1,defaultOpen:n=!1,open:r,disableHoverablePopup:i=!1,trackCursorAxis:a=`none`,actionsRef:o,onOpenChange:s,onOpenChangeComplete:c,handle:l,triggerId:u,defaultTriggerId:d=null,children:f}=e,p=xg((e,t)=>new Ob({open:n,openProp:r,activeTriggerId:d,triggerIdProp:u},e,t));p.useControlledProp(`openProp`,r),p.useControlledProp(`triggerIdProp`,u),p.useContextCallback(`onOpenChange`,s),p.useContextCallback(`onOpenChangeComplete`,c);let m=p.useState(`open`),h=!t&&m,g=p.useState(`activeTriggerId`),_=p.useState(`mounted`),v=p.useState(`payload`);p.useSyncedValues({trackCursorAxis:a,disableHoverablePopup:i,disabled:t}),Og(p,{closeOnActiveTriggerUnmount:!0});let{forceUnmount:y,transitionStatus:b}=kg(h,p),x=p.useState(`isInstantPhase`),S=p.useState(`instantType`),C=p.useState(`lastOpenChangeReason`),w=H.useRef(null);K(()=>{m&&t&&p.setOpen(!1,Gc(Uc))},[m,t,p]),K(()=>{b===`ending`&&C===`none`||b!==`ending`&&x?(S!==`delay`&&(w.current=S),p.set(`instantType`,`delay`)):w.current!==null&&(p.set(`instantType`,w.current),w.current=null)},[b,x,C,S,p]),K(()=>{h&&(g??p.set(`payload`,void 0))},[p,g,h]),H.useImperativeHandle(o,()=>({unmount:y,close:()=>p.setOpen(!1,Gc(Wc))}),[y,p]);let T=h||_||!t&&a!==`none`;return(0,U.jsxs)(Tb.Provider,{value:p,children:[l&&(0,U.jsx)(Sg,{handle:l,store:p}),T&&(0,U.jsx)(Mb,{store:p,disabled:t,trackCursorAxis:a}),typeof f==`function`?f({payload:v}):f]})});jb.displayName=`TooltipRoot`;function Mb({store:e,disabled:t,trackCursorAxis:n}){let r=e.useState(`floatingRootContext`),i=Km(r,{enabled:!t,referencePress:()=>e.select(`closeOnClick`)}),a=Um(r,{enabled:!t&&n!==`none`,axis:n===`none`?void 0:n}),o=H.useMemo(()=>rc(a.reference,i.reference),[a.reference,i.reference]);return Ag(e,{activeTriggerProps:o,inactiveTriggerProps:o,popupProps:i.floating??Qs}),null}var Nb=H.createContext(void 0);Nb.displayName=`TooltipProviderContext`;function Pb(){return H.useContext(Nb)}var Fb=`data-base-ui-tooltip-trigger`;function Ib(e){if(`composedPath`in e){let t=e.composedPath();for(let e=0;e<t.length;e+=1){let n=t[e];if(vl(n))return n}}let t=e.target;return vl(t)?t:null}function Lb(e){let t=e;for(;t;){let e=t.closest(`[${Fb}]`);if(e)return e;let n=t.getRootNode();t=`host`in n&&vl(n.host)?n.host:null}return null}var Rb=ag(function(e,t){let{render:n,className:r,style:i,handle:a,payload:o,disabled:s,delay:c,closeOnClick:l=!0,closeDelay:u,id:d,...f}=e,p=Eb(!0),m=Wg(a)??p;if(!m)throw Error(`Base UI: <Tooltip.Trigger> must be either used within a <Tooltip.Root> component or provided with a handle.`);let h=Ac(d),g=m.useState(`isTriggerActive`,h),_=m.useState(`isOpenedByTrigger`,h),v=m.useState(`floatingRootContext`),y=H.useRef(null),b=c??600,x=u??0,{registerTrigger:S,isMountedByThisTrigger:C}=Dg(h,y,m,{payload:o,closeOnClick:l,closeDelay:x}),w=Pb(),{delayRef:T,isInstantPhase:E,hasProvider:D}=Y(v,{open:_}),O=$g(v);m.useSyncedValue(`isInstantPhase`,E);let k=m.useState(`disabled`),A=s??k,j=ql(A),M=m.useState(`trackCursorAxis`),N=m.useState(`disableHoverablePopup`),P=H.useRef(!1),F=Zd(),I=H.useRef(void 0);function L(){return D?Pf(T.current,`open`)===0?0:c??w??600:b}function R(e){let t=y.current;if(!t||!e)return!1;let n=Lb(e);return n!==null&&n!==t&&Cf(t,n)}function ee(e){let t=R(e);return P.current=t,t&&(O.openChangeTimeout.clear(),O.restTimeout.clear(),O.restTimeoutPending=!1,F.clear()),t}let te=n_(v,{enabled:!A,mouseOnly:!0,move:!1,handleClose:!N&&M!==`both`?y_():null,restMs:L,delay(){return u==null&&D?{close:Pf(T.current,`close`)}:{close:x}},triggerElementRef:y,isActiveTrigger:g,isClosing:()=>m.select(`transitionStatus`)===`ending`,shouldOpen(){return!P.current}}),z=Jg(v,{enabled:!A}).reference,ne=e=>{let t=P.current,n=Ib(e),r=ee(n),i=y.current,a=i&&n&&Cf(i,n);if(r&&m.select(`open`)&&m.select(`lastOpenChangeReason`)===`trigger-hover`){m.setOpen(!1,Gc(Nc,e));return}if(t&&!r&&a&&!j.current&&!m.select(`open`)&&i&&mf(I.current)){let t=()=>{!P.current&&!j.current&&!m.select(`open`)&&m.setOpen(!0,Gc(Nc,e,i))},n=L();n===0?(F.clear(),t()):F.start(n,t)}},re=m.useState(`triggerProps`,C);return _c(`button`,e,{state:{open:_},ref:[t,S,y],props:[te,z,C||M!==`none`?re:void 0,{onMouseOver(e){ne(e.nativeEvent)},onFocus(e){R(Ib(e.nativeEvent))&&e.preventBaseUIHandler()},onMouseLeave(){P.current=!1,F.clear(),I.current=void 0},onPointerEnter(e){I.current=e.pointerType},onPointerDown(e){I.current=e.pointerType,m.set(`closeOnClick`,l),l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},onClick(e){l&&!m.select(`open`)&&m.cancelPendingOpen(e.nativeEvent)},id:h,"data-trigger-disabled":A?``:void 0,[Fb]:A?void 0:``},f],stateAttributesMapping:N_})});Rb.displayName=`TooltipTrigger`;var zb=H.createContext(void 0);zb.displayName=`TooltipPortalContext`;function Bb(){let e=H.useContext(zb);if(e===void 0)throw Error(`Base UI: <Tooltip.Portal> is missing.`);return e}var Vb=H.forwardRef(function(e,t){let{keepMounted:n=!1,...r}=e;return Eb().useState(`mounted`)||n?(0,U.jsx)(zb.Provider,{value:n,children:(0,U.jsx)(pb,{ref:t,...r})}):null});Vb.displayName=`TooltipPortal`;var Hb=H.createContext(void 0);Hb.displayName=`TooltipPositionerContext`;function Ub(){let e=H.useContext(Hb);if(e===void 0)throw Error(`Base UI: TooltipPositionerContext is missing. TooltipPositioner parts must be placed within <Tooltip.Positioner>.`);return e}var Wb=H.forwardRef(function(e,t){let{render:n,className:r,anchor:i,positionMethod:a=`absolute`,side:o=`top`,align:s=`center`,sideOffset:c=0,alignOffset:l=0,collisionBoundary:u=`clipping-ancestors`,collisionPadding:d=5,arrowPadding:f=5,sticky:p=!1,disableAnchorTracking:m=!1,collisionAvoidance:h=hm,style:g,..._}=e,v=Eb(),y=Bb(),b=v.useState(`open`),x=v.useState(`mounted`),S=v.useState(`trackCursorAxis`),C=v.useState(`disableHoverablePopup`),w=v.useState(`floatingRootContext`),T=v.useState(`instantType`),E=v.useState(`transitionStatus`),D=my({anchor:i,positionMethod:a,floatingRootContext:w,mounted:x,side:o,sideOffset:c,align:s,alignOffset:l,collisionBoundary:u,collisionPadding:d,sticky:p,arrowPadding:f,disableAnchorTracking:m,keepMounted:y,collisionAvoidance:h,adaptiveOrigin:v.useState(`adaptiveOrigin`)}),O=vy(e,H.useMemo(()=>({open:b,side:D.side,align:D.align,anchorHidden:D.anchorHidden,instant:S===`none`?T:`tracking-cursor`}),[b,D.side,D.align,D.anchorHidden,S,T]),{styles:D.positionerStyles,transitionStatus:E,props:_,refs:[t,v.useStateSetter(`positionerElement`)],hidden:!x,inert:!b||S===`both`||C});return(0,U.jsx)(Hb.Provider,{value:D,children:O})});Wb.displayName=`TooltipPositioner`;var Gb=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Eb(),{side:s,align:c}=Ub(),l=o.useState(`open`),u=o.useState(`instantType`),d=o.useState(`transitionStatus`),f=o.useState(`popupProps`),p=o.useState(`floatingRootContext`),m=o.useState(`disabled`),h=o.useState(`closeDelay`);Ql({open:l,ref:o.context.popupRef,onComplete(){l&&o.context.onOpenChangeComplete?.(!0)}}),e_(p,{enabled:!m,closeDelay:h});let g=o.useStateSetter(`popupElement`);return _c(`div`,e,{state:{open:l,side:s,align:c,instant:u,transitionStatus:d},ref:[t,o.context.popupRef,g],props:[yg,f,_y(d),a],stateAttributesMapping:I_})});Gb.displayName=`TooltipPopup`;var Kb=H.forwardRef(function(e,t){let{render:n,className:r,style:i,...a}=e,o=Eb(),{arrowRef:s,side:c,align:l,arrowUncentered:u,arrowStyles:d}=Ub();return _c(`div`,e,{state:{open:o.useState(`open`),side:c,align:l,uncentered:u,instant:o.useState(`instantType`)},ref:[t,s],props:[{style:d,"aria-hidden":!0},a],stateAttributesMapping:F_})});Kb.displayName=`TooltipArrow`;var qb=Object.defineProperty,Jb=Object.defineProperties,Yb=Object.getOwnPropertyDescriptors,Xb=Object.getOwnPropertySymbols,Zb=Object.prototype.hasOwnProperty,Qb=Object.prototype.propertyIsEnumerable,$b=(e,t,n)=>t in e?qb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ex=(e,t)=>{for(var n in t||={})Zb.call(t,n)&&$b(e,n,t[n]);if(Xb)for(var n of Xb(t))Qb.call(t,n)&&$b(e,n,t[n]);return e},tx=(e,t)=>Jb(e,Yb(t)),nx=(e,t)=>{var n={};for(var r in e)Zb.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xb)for(var r of Xb(e))t.indexOf(r)<0&&Qb.call(e,r)&&(n[r]=e[r]);return n};function rx(e){return[setTimeout(e,0),setTimeout(e,10),setTimeout(e,50)]}function ix(e){let t=H.useRef();return H.useEffect(()=>{t.current=e}),t.current}var ax=18,ox=40,sx=`${ox}px`;function cx(e){let t=e.getBoundingClientRect().right,n=e;for(;n;){if(getComputedStyle(n).overflowX!==`visible`)return n.getBoundingClientRect().left+n.clientLeft+n.clientWidth-t;n=n.parentElement}return document.documentElement.clientWidth-t}var lx=[`[data-lastpass-icon-root]`,`com-1password-button`,`[data-dashlanecreated]`,`[style$="2147483647 !important;"]`].join(`,`);function ux({containerRef:e,inputRef:t,pushPasswordManagerStrategy:n,isFocused:r}){let[i,a]=H.useState(!1),[o,s]=H.useState(!1),[c,l]=H.useState(!1),u=H.useMemo(()=>n!==`none`&&(n===`increase-width`||n===`experimental-no-flickering`)&&i&&o,[i,o,n]),d=H.useCallback(()=>{let r=e.current,i=t.current;if(!r||!i||c||n===`none`)return;let o=r,u=o.getBoundingClientRect().left+o.offsetWidth,d=o.getBoundingClientRect().top+o.offsetHeight/2,f=u-ax,p=d;document.querySelectorAll(lx).length===0&&document.elementFromPoint(f,p)===r||(s(cx(r)>=ox),a(!0),l(!0))},[e,t,c,n]);return H.useEffect(()=>{let t=e.current;if(!t||n===`none`)return;function r(){s(cx(t)>=ox)}r();let i=setInterval(r,1e3);return()=>{clearInterval(i)}},[e,n]),H.useEffect(()=>{let e=r||document.activeElement===t.current;if(n===`none`||!e)return;let i=setTimeout(d,0),a=setTimeout(d,2e3),o=setTimeout(d,5e3),s=setTimeout(()=>{l(!0)},6e3);return()=>{clearTimeout(i),clearTimeout(a),clearTimeout(o),clearTimeout(s)}},[t,r,n,d]),{hasPWMBadge:i,willPushPWMBadge:u,PWM_BADGE_SPACE_WIDTH:sx}}var dx=H.createContext({}),fx=H.forwardRef((e,t)=>{var n=e,{value:r,onChange:i,maxLength:a,textAlign:o=`left`,pattern:s,placeholder:c,inputMode:l=`numeric`,onComplete:u,pushPasswordManagerStrategy:d=`increase-width`,pasteTransformer:f,containerClassName:p,noScriptCSSFallback:m=mx,nonce:h,render:g,children:_}=n,v=nx(n,[`value`,`onChange`,`maxLength`,`textAlign`,`pattern`,`placeholder`,`inputMode`,`onComplete`,`pushPasswordManagerStrategy`,`pasteTransformer`,`containerClassName`,`noScriptCSSFallback`,`nonce`,`render`,`children`]),y;let[b,x]=H.useState(typeof v.defaultValue==`string`?v.defaultValue:``),S=r??b,C=ix(S),w=H.useCallback(e=>{i?.(e),x(e)},[i]),T=H.useMemo(()=>s?typeof s==`string`?new RegExp(s):s:null,[s]),E=H.useRef(null),D=H.useRef(null),O=H.useRef({value:S,onChange:w,isIOS:typeof window<`u`&&((y=window==null?void 0:window.CSS)?.supports)?.call(y,`-webkit-touch-callout`,`none`)}),k=H.useRef({prev:[E.current?.selectionStart,E.current?.selectionEnd,E.current?.selectionDirection]});H.useImperativeHandle(t,()=>E.current,[]),H.useEffect(()=>{let e=E.current,t=D.current;if(!e||!t)return;O.current.value!==e.value&&O.current.onChange(e.value),k.current.prev=[e.selectionStart,e.selectionEnd,e.selectionDirection];function n(){if(document.activeElement!==e){F(null),L(null);return}let t=e.selectionStart,n=e.selectionEnd,r=e.selectionDirection,i=e.maxLength,a=e.value,o=k.current.prev,s=-1,c=-1,l;if(a.length!==0&&t!==null&&n!==null){let r=t===n,u=t===a.length&&a.length<i;if(r&&!u){let e=t;if(e===0)s=0,c=1,l=`forward`;else if(e===i)s=e-1,c=e,l=`backward`;else if(i>1&&a.length>1){let t=0;if(o[0]!==null&&o[1]!==null){l=e<o[1]?`backward`:`forward`;let n=o[0]===o[1]&&o[0]<i;l===`backward`&&!n&&(t=-1)}s=t+e,c=t+e+1}}s!==-1&&c!==-1&&s!==c&&e.setSelectionRange(s,c,l)}let u=s===-1?t:s,d=c===-1?n:c,f=l??r;F(u),L(d),k.current.prev=[u,d,f]}if(document.addEventListener(`selectionchange`,n,{capture:!0}),n(),document.activeElement===e&&N(!0),!document.getElementById(`input-otp-style`)){let e=document.createElement(`style`);if(e.id=`input-otp-style`,h&&e.setAttribute(`nonce`,h),document.head.appendChild(e),e.sheet){let t=`background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;`;px(e.sheet,`[data-input-otp]::selection { background: transparent !important; color: transparent !important; }`),px(e.sheet,`[data-input-otp]:autofill { ${t} }`),px(e.sheet,`[data-input-otp]:-webkit-autofill { ${t} }`),px(e.sheet,`@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }`),px(e.sheet,`[data-input-otp] + * { pointer-events: all !important; }`)}}let r=()=>{t&&t.style.setProperty(`--root-height`,`${e.clientHeight}px`)};r();let i=typeof ResizeObserver>`u`?null:new ResizeObserver(r);return i?.observe(e),()=>{document.removeEventListener(`selectionchange`,n,{capture:!0}),i?.disconnect()}},[]);let[A,j]=H.useState(!1),[M,N]=H.useState(!1),[P,F]=H.useState(null),[I,L]=H.useState(null);H.useEffect(()=>{let e=rx(()=>{var e;(e=E.current)==null||e.dispatchEvent(new Event(`input`));let t=E.current?.selectionStart,n=E.current?.selectionEnd,r=E.current?.selectionDirection;t!==null&&n!==null&&(F(t),L(n),k.current.prev=[t,n,r])});return()=>{e.forEach(e=>clearTimeout(e))}},[S,M]),H.useEffect(()=>{C!==void 0&&S!==C&&C.length<a&&S.length===a&&u?.(S)},[a,u,C,S]);let R=ux({containerRef:D,inputRef:E,pushPasswordManagerStrategy:d,isFocused:M}),ee=H.useCallback(e=>{let t=e.currentTarget.value.slice(0,a);if(t.length>0&&T&&!T.test(t)){e.preventDefault();return}typeof C==`string`&&t.length<C.length&&document.dispatchEvent(new Event(`selectionchange`)),w(t)},[a,w,C,T]),te=H.useCallback(()=>{var e;if(E.current){let t=Math.min(E.current.value.length,a-1),n=E.current.value.length;(e=E.current)==null||e.setSelectionRange(t,n),F(t),L(n)}N(!0)},[a]),z=H.useCallback(e=>{let t=E.current;if(!f&&(!O.current.isIOS||!e.clipboardData||!t))return;let n=e.clipboardData.getData(`text/plain`),r=f?f(n):n;e.preventDefault();let i=E.current?.selectionStart,o=E.current?.selectionEnd,s=(i===o?S.slice(0,i)+r+S.slice(i):S.slice(0,i)+r+S.slice(o)).slice(0,a);if(s.length>0&&T&&!T.test(s))return;t.value=s,w(s);let c=Math.min(s.length,a-1),l=s.length;t.setSelectionRange(c,l),F(c),L(l)},[a,w,f,T,S]),ne=H.useMemo(()=>({position:`relative`,cursor:v.disabled?`default`:`text`,userSelect:`none`,WebkitUserSelect:`none`,pointerEvents:`none`}),[v.disabled]),re=H.useMemo(()=>({position:`absolute`,inset:0,width:R.willPushPWMBadge?`calc(100% + ${R.PWM_BADGE_SPACE_WIDTH})`:`100%`,clipPath:R.willPushPWMBadge?`inset(0 ${R.PWM_BADGE_SPACE_WIDTH} 0 0)`:void 0,height:`100%`,display:`flex`,textAlign:o,opacity:`1`,color:`transparent`,pointerEvents:`all`,background:`transparent`,caretColor:`transparent`,border:`0 solid transparent`,outline:`0 solid transparent`,boxShadow:`none`,lineHeight:`1`,letterSpacing:`-.5em`,fontSize:`var(--root-height, 16px)`,fontFamily:`monospace`,fontVariantNumeric:`tabular-nums`}),[R.PWM_BADGE_SPACE_WIDTH,R.willPushPWMBadge,o]),B=H.useMemo(()=>H.createElement(`input`,tx(ex({autoComplete:v.autoComplete||`one-time-code`},v),{"data-input-otp":!0,"data-input-otp-placeholder-shown":S.length===0||void 0,"data-input-otp-mss":P,"data-input-otp-mse":I,inputMode:l,pattern:T?.source,"aria-placeholder":c,style:re,maxLength:a,value:S,ref:E,spellCheck:v.spellCheck??!1,onPaste:e=>{var t;z(e),(t=v.onPaste)==null||t.call(v,e)},onChange:ee,onMouseOver:e=>{var t;j(!0),(t=v.onMouseOver)==null||t.call(v,e)},onMouseLeave:e=>{var t;j(!1),(t=v.onMouseLeave)==null||t.call(v,e)},onFocus:e=>{var t;te(),(t=v.onFocus)==null||t.call(v,e)},onBlur:e=>{var t;N(!1),(t=v.onBlur)==null||t.call(v,e)}})),[ee,te,z,l,re,a,I,P,c,v,T?.source,S]),ie=H.useMemo(()=>({slots:Array.from({length:a}).map((e,t)=>{let n=M&&P!==null&&I!==null&&(P===I&&t===P||t>=P&&t<I),r=S[t]===void 0?null:S[t];return{char:r,placeholderChar:S[0]===void 0?c?.[t]??null:null,isActive:n,hasFakeCaret:n&&r===null}}),isFocused:M,isHovering:!v.disabled&&A}),[M,A,a,I,P,c,v.disabled,S]),ae=H.useMemo(()=>g?g(ie):H.createElement(dx.Provider,{value:ie},_),[_,ie,g]);return H.createElement(H.Fragment,null,m!==null&&H.createElement(`noscript`,null,H.createElement(`style`,null,m)),H.createElement(`div`,{ref:D,"data-input-otp-container":!0,translate:`no`,style:ne,className:p},ae,H.createElement(`div`,{style:{position:`absolute`,inset:0,pointerEvents:`none`}},B)))});fx.displayName=`Input`;function px(e,t){try{e.insertRule(t)}catch{console.warn(`input-otp could not insert CSS rule:`,t)}}var mx=`
248
+ [data-input-otp] {
249
+ --nojs-bg: white !important;
250
+ --nojs-fg: black !important;
251
+
252
+ background-color: var(--nojs-bg) !important;
253
+ color: var(--nojs-fg) !important;
254
+ caret-color: var(--nojs-fg) !important;
255
+ letter-spacing: .25em !important;
256
+ text-align: center !important;
257
+ border: 1px solid var(--nojs-fg) !important;
258
+ border-radius: 4px !important;
259
+ width: 100% !important;
260
+ }
261
+ @media (prefers-color-scheme: dark) {
262
+ [data-input-otp] {
263
+ --nojs-bg: black !important;
264
+ --nojs-fg: white !important;
265
+ }
266
+ }`;function hx(e,t){let n=getComputedStyle(e);return t*parseFloat(n.fontSize)}function gx(e,t){let n=getComputedStyle(e.ownerDocument.documentElement);return t*parseFloat(n.fontSize)}function _x(e){return e/100*window.innerHeight}function vx(e){return e/100*window.innerWidth}function yx(e){switch(typeof e){case`number`:return[e,`px`];case`string`:{let t=parseFloat(e);return e.endsWith(`%`)?[t,`%`]:e.endsWith(`px`)?[t,`px`]:e.endsWith(`rem`)?[t,`rem`]:e.endsWith(`em`)?[t,`em`]:e.endsWith(`vh`)?[t,`vh`]:e.endsWith(`vw`)?[t,`vw`]:[t,`%`]}}}function bx({groupSize:e,panelElement:t,styleProp:n}){let r,[i,a]=yx(n);switch(a){case`%`:r=i/100*e;break;case`px`:r=i;break;case`rem`:r=gx(t,i);break;case`em`:r=hx(t,i);break;case`vh`:r=_x(i);break;case`vw`:r=vx(i);break}return r}function xx(e){return parseFloat(e.toFixed(3))}function Sx({group:e}){let{orientation:t,panels:n}=e;return n.reduce((e,n)=>(e+=t===`horizontal`?n.element.offsetWidth:n.element.offsetHeight,e),0)}function Cx(e){let{panels:t}=e,n=Sx({group:e});return n===0?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:e.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let{element:t,panelConstraints:r}=e,i=0;r.collapsedSize!==void 0&&(i=xx(bx({groupSize:n,panelElement:t,styleProp:r.collapsedSize})/n*100));let a;r.defaultSize!==void 0&&(a=xx(bx({groupSize:n,panelElement:t,styleProp:r.defaultSize})/n*100));let o=0;r.minSize!==void 0&&(o=xx(bx({groupSize:n,panelElement:t,styleProp:r.minSize})/n*100));let s=100;return r.maxSize!==void 0&&(s=xx(bx({groupSize:n,panelElement:t,styleProp:r.maxSize})/n*100)),{groupResizeBehavior:r.groupResizeBehavior,collapsedSize:i,collapsible:r.collapsible===!0,defaultSize:a,disabled:r.disabled,minSize:o,maxSize:s,panelId:e.id}})}function wx(e,t=`Assertion error`){if(!e)throw Error(t)}function Tx(e,t){return Array.from(t).sort(e===`horizontal`?Ex:Dx)}function Ex(e,t){let n=e.element.offsetLeft-t.element.offsetLeft;return n===0?e.element.offsetWidth-t.element.offsetWidth:n}function Dx(e,t){let n=e.element.offsetTop-t.element.offsetTop;return n===0?e.element.offsetHeight-t.element.offsetHeight:n}function Ox(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE}function kx(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function Ax({orientation:e,rects:t,targetRect:n}){let r={x:n.x+n.width/2,y:n.y+n.height/2},i,a=Number.MAX_VALUE;for(let n of t){let{x:t,y:o}=kx(r,n),s=e===`horizontal`?t:o;s<a&&(a=s,i=n)}return wx(i,`No rect found`),i}var jx;function Mx(){return jx===void 0&&(jx=typeof matchMedia==`function`&&!!matchMedia(`(pointer:coarse)`).matches),jx}function Nx(e){let{element:t,orientation:n,panels:r,separators:i}=e,a=Tx(n,Array.from(t.children).filter(Ox).map(e=>({element:e}))).map(({element:e})=>e),o=[],s=!1,c=!1,l=-1,u=-1,d=0,f,p=[];{let e=-1;for(let t of a)t.hasAttribute(`data-panel`)&&(e++,t.hasAttribute(`data-disabled`)||(d++,l===-1&&(l=e),u=e))}if(d>1){let t=-1;for(let d of a)if(d.hasAttribute(`data-panel`)){t++;let i=r.find(e=>e.element===d);if(i){if(f){let r=f.element.getBoundingClientRect(),a=d.getBoundingClientRect(),m;if(c){let e=n===`horizontal`?new DOMRect(r.right,r.top,0,r.height):new DOMRect(r.left,r.bottom,r.width,0),t=n===`horizontal`?new DOMRect(a.left,a.top,0,a.height):new DOMRect(a.left,a.top,a.width,0);switch(p.length){case 0:m=[e,t];break;case 1:{let i=p[0];m=[i,Ax({orientation:n,rects:[r,a],targetRect:i.element.getBoundingClientRect()})===r?t:e];break}default:m=p;break}}else m=p.length?p:[n===`horizontal`?new DOMRect(r.right,a.top,a.left-r.right,a.height):new DOMRect(a.left,r.bottom,a.width,a.top-r.bottom)];for(let n of m){let r=`width`in n?n:n.element.getBoundingClientRect(),a=Mx()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(r.width<a){let e=a-r.width;r=new DOMRect(r.x-e/2,r.y,r.width+e,r.height)}if(r.height<a){let e=a-r.height;r=new DOMRect(r.x,r.y-e/2,r.width,r.height+e)}!s&&!(t<=l||t>u)&&o.push({group:e,groupSize:Sx({group:e}),panels:[f,i],separator:`width`in n?void 0:n,rect:r}),s=!1}}c=!1,f=i,p=[]}}else if(d.hasAttribute(`data-separator`)){d.ariaDisabled!==null&&(s=!0);let e=i.find(e=>e.element===d);e?p.push(e):(f=void 0,p=[])}else c=!0}return o}var Px=class{#e={};addListener(e,t){let n=this.#e[e];return n===void 0?this.#e[e]=[t]:n.includes(t)||n.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let n=this.#e[e];if(n!==void 0)if(n.length===1)n[0].call(null,t);else{let e=!1,r=null,i=Array.from(n);for(let n=0;n<i.length;n++){let a=i[n];try{a.call(null,t)}catch(t){r===null&&(e=!0,r=t)}}if(e)throw r}}removeAllListeners(){this.#e={}}removeListener(e,t){let n=this.#e[e];if(n!==void 0){let e=n.indexOf(t);e>=0&&n.splice(e,1)}}},Fx={cursorFlags:0,state:`inactive`},Ix=new Px;function Lx(){return Fx}function Rx(e){return Ix.addListener(`change`,e)}function zx(e){let t=Fx,n={...Fx};n.cursorFlags=e,Fx=n,Ix.emit(`change`,{prev:t,next:n})}function Bx(e){let t=Fx;Fx=e,Ix.emit(`change`,{prev:t,next:e})}var Vx=e=>e,Hx=()=>{},Ux=1,Wx=2,Gx=4,Kx=8,qx=3,Jx=12,Yx;function Xx(){return Yx===void 0&&(Yx=!1,typeof window<`u`&&(window.navigator.userAgent.includes(`Chrome`)||window.navigator.userAgent.includes(`Firefox`))&&(Yx=!0)),Yx}function Zx({cursorFlags:e,groups:t,state:n}){let r=0,i=0;switch(n){case`active`:case`hover`:t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case`horizontal`:r++;break;case`vertical`:i++;break}})}if(!(r===0&&i===0)){switch(n){case`active`:if(e&&Xx()){let t=(e&Ux)!==0,n=(e&Wx)!==0,r=(e&Gx)!==0,i=(e&Kx)!==0;if(t)return r?`se-resize`:i?`ne-resize`:`e-resize`;if(n)return r?`sw-resize`:i?`nw-resize`:`w-resize`;if(r)return`s-resize`;if(i)return`n-resize`}break}return Xx()?r>0&&i>0?`move`:r>0?`ew-resize`:`ns-resize`:r>0&&i>0?`grab`:r>0?`col-resize`:`row-resize`}}var Qx=new WeakMap;function $x(e){if(!e.defaultView||!e.adoptedStyleSheets)return;let{prevStyle:t,styleSheet:n}=Qx.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));let r=Lx();switch(r.state){case`active`:case`hover`:{let e=Zx({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(e=>e.group),state:r.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?n.cssRules.length===0?n.insertRule(i):n.replaceSync(i):n.cssRules.length===1&&n.deleteRule(0);break}case`inactive`:t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}Qx.set(e,{prevStyle:t,styleSheet:n})}var eS=new Map,tS=new Px;function nS(e){eS=new Map(eS),eS.delete(e)}function rS(e,t){for(let[t]of eS)if(t.id===e)return t}function iS(e,t){for(let[t,n]of eS)if(t.id===e)return n;if(t)throw Error(`Could not find data for Group with id ${e}`)}function aS(){return eS}function oS(e,t){return tS.addListener(`groupChange`,n=>{n.group.id===e&&t(n)})}function sS(e,t,n){let r=eS.get(e);eS=new Map(eS),eS.set(e,t),tS.emit(`groupChange`,{group:e,isUserInteraction:n?.isUserInteraction===!0,prev:r,next:t})}function cS(e){let t=Lx(),n=aS(),r=!1;switch(t.state){case`active`:Bx({cursorFlags:0,state:`inactive`}),t.hitRegions.length>0&&($x(e),r=!0,t.hitRegions.forEach(e=>{if(!n.has(e.group))return;let t=iS(e.group.id,!0);sS(e.group,t,{isUserInteraction:!0})}))}return r}function lS(e){e.defaultPrevented||cS(e.currentTarget)}function uS(e,t,n){let r,i={x:1/0,y:1/0};for(let a of t){let t=kx(n,a.rect);switch(e){case`horizontal`:t.x<=i.x&&(r=a,i=t);break;case`vertical`:t.y<=i.y&&(r=a,i=t);break}}return r?{distance:i,hitRegion:r}:void 0}function dS(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function fS(e,t){if(e===t)throw Error(`Cannot compare node with itself`);let n={a:vS(e),b:vS(t)},r;for(;n.a.at(-1)===n.b.at(-1);)r=n.a.pop(),n.b.pop();wx(r,`Stacking order can only be calculated for elements with a common ancestor`);let i={a:_S(gS(n.a)),b:_S(gS(n.b))};if(i.a===i.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},i=e.length;for(;i--;){let n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i.a-i.b)}var pS=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function mS(e){let t=getComputedStyle(yS(e)??e).display;return t===`flex`||t===`inline-flex`}function hS(e){let t=getComputedStyle(e);return!!(t.position===`fixed`||t.zIndex!==`auto`&&(t.position!==`static`||mS(e))||+t.opacity<1||`transform`in t&&t.transform!==`none`||`webkitTransform`in t&&t.webkitTransform!==`none`||`mixBlendMode`in t&&t.mixBlendMode!==`normal`||`filter`in t&&t.filter!==`none`||`webkitFilter`in t&&t.webkitFilter!==`none`||`isolation`in t&&t.isolation===`isolate`||pS.test(t.willChange)||t.webkitOverflowScrolling===`touch`)}function gS(e){let t=e.length;for(;t--;){let n=e[t];if(wx(n,`Missing node`),hS(n))return n}return null}function _S(e){return e&&Number(getComputedStyle(e).zIndex)||0}function vS(e){let t=[];for(;e;)t.push(e),e=yS(e);return t}function yS(e){let{parentNode:t}=e;return dS(t)?t.host:t}function bS(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function xS({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!Ox(n)||n.contains(e)||e.contains(n))return!0;if(fS(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(bS(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function SS(e,t){let n=[];return t.forEach((t,r)=>{if(r.disabled)return;let i=Nx(r),a=uS(r.orientation,i,{x:e.clientX,y:e.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&xS({groupElement:r.element,hitRegion:a.hitRegion.rect,pointerEventTarget:e.target})&&n.push(a.hitRegion)}),n}function CS(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function wS(e,t,n=0){return Math.abs(xx(e)-xx(t))<=n}function TS(e,t){return wS(e,t)?0:e>t?1:-1}function ES({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:r}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=t;if(o&&!e)return n;if(TS(r,c)<0)if(a){let e=(i+c)/2;r=TS(r,e)<0?i:c}else r=c;return r=Math.min(s,r),r=xx(r),r}function DS({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(wS(e,0))return t;let o=a===`imperative-api`,s=Object.values(t),c=Object.values(i),l=[...s],[u,d]=r;wx(u!=null,`Invalid first pivot index`),wx(d!=null,`Invalid second pivot index`);let f=0;switch(a){case`keyboard`:{let t=e<0?d:u,r=n[t];wx(r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(wx(n!=null,`Previous layout not found for panel index ${t}`),wS(n,i)){let t=o-n;TS(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:d,r=n[t];wx(r,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(wx(n!=null,`Previous layout not found for panel index ${t}`),wS(n,o)){let t=n-i;TS(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}break;default:{let t=e<0?d:u,r=n[t];wx(r,`Panel constraints not found for index ${t}`);let i=s[t],{collapsible:a,collapsedSize:o,minSize:c}=r;if(a&&TS(i,c)<0)if(e>0){let t=c-o,n=t/2;TS(i+e,c)<0&&(e=TS(e,n)<=0?0:t)}else{let t=c-o,n=100-t/2;TS(i-e,c)<0&&(e=TS(100+e,n)>0?0:-t)}break}}{let t=e<0?1:-1,r=e<0?d:u,i=0;for(;;){let e=s[r];wx(e!=null,`Previous layout not found for panel index ${r}`);let a=ES({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:e,size:100})-e;if(i+=a,r+=t,r<0||r>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:d;for(;t>=0&&t<n.length;){let r=Math.abs(e)-Math.abs(f),i=s[t];wx(i!=null,`Previous layout not found for panel index ${t}`);let a=i-r,c=ES({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:i,size:a});if(!wS(i,c)&&(f+=i-c,l[t]=c,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(CS(c,l))return i;{let t=e<0?d:u,r=s[t];wx(r!=null,`Previous layout not found for panel index ${t}`);let i=r+f,a=ES({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:r,size:i});if(l[t]=a,!wS(a,i)){let t=i-a,r=e<0?d:u;for(;r>=0&&r<n.length;){let i=l[r];wx(i!=null,`Previous layout not found for panel index ${r}`);let a=i+t,s=ES({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:i,size:a});if(wS(i,s)||(t-=s-i,l[r]=s),wS(t,0))break;e>0?r--:r++}}}if(!wS(Object.values(l).reduce((e,t)=>t+e,0),100,.1))return i;let p=Object.keys(i);return l.reduce((e,t,n)=>(e[p[n]]=t,e),{})}function OS(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(t[n]===void 0||TS(e[n],t[n])!==0)return!1;return!0}function kS({layout:e,panelConstraints:t}){let n=Object.values(e),r=[...n],i=r.reduce((e,t)=>e+t,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(e=>`${e}%`).join(`, `)}`);if(!wS(i,100)&&r.length>0)for(let e=0;e<t.length;e++){let t=r[e];wx(t!=null,`No layout data found for index ${e}`),r[e]=100/i*t}let a=0;for(let e=0;e<t.length;e++){let i=n[e];wx(i!=null,`No layout data found for index ${e}`);let o=r[e];wx(o!=null,`No layout data found for index ${e}`);let s=ES({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:i,size:o});o!=s&&(a+=o-s,r[e]=s)}if(!wS(a,0))for(let e=0;e<t.length;e++){let n=r[e];wx(n!=null,`No layout data found for index ${e}`);let i=n+a,o=ES({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:n,size:i});if(n!==o&&(a-=o-n,r[e]=o,wS(a,0)))break}let o=Object.keys(e);return r.reduce((e,t,n)=>(e[o[n]]=t,e),{})}function AS({groupId:e,panelId:t}){let n=()=>{let t=aS();for(let[n,{defaultLayoutDeferred:r,derivedPanelConstraints:i,layout:a,groupSize:o,separatorToPanels:s}]of t)if(n.id===e)return{defaultLayoutDeferred:r,derivedPanelConstraints:i,group:n,groupSize:o,layout:a,separatorToPanels:s};throw Error(`Group ${e} not found`)},r=()=>{let e=n().derivedPanelConstraints.find(e=>e.panelId===t);if(e!==void 0)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=n().group.panels.find(e=>e.id===t);if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=n().layout[t];if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},o=({nextSize:e,panels:n,prevLayout:r,derivedPanelConstraints:i})=>{let o=a(),s=n.findIndex(e=>e.id===t),c=s===0,l=s===n.length-1;if(l&&e<o&&(c||n.slice(0,s).every((e,t)=>{let n=i[t];return n?.collapsible&&wS(n.collapsedSize,r[n.panelId])}))){let e=n.slice(0,s).reduce((e,t)=>e+r[t.id],0);return{...r,[t]:xx(100-e)}}return DS({delta:l?o-e:e-o,initialLayout:r,panelConstraints:i,pivotIndices:l?[s-1,s]:[s,s+1],prevLayout:r,trigger:`imperative-api`})},s=e=>{if(e===a())return;let{defaultLayoutDeferred:t,derivedPanelConstraints:r,group:i,groupSize:s,layout:c,separatorToPanels:l}=n(),u=kS({layout:o({nextSize:e,panels:i.panels,prevLayout:c,derivedPanelConstraints:r}),panelConstraints:r});OS(c,u)||sS(i,{defaultLayoutDeferred:t,derivedPanelConstraints:r,groupSize:s,layout:u,separatorToPanels:l})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=r(),{mutableValues:n}=i(),o=a();e&&o!==t&&(n.expandToSize=o,s(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:n}=r(),{mutableValues:o}=i(),c=a();if(e&&c===t){let e=o.expandToSize??n;e===0&&(e=1),s(e)}},getSize:()=>{let{group:e}=n(),t=a(),{element:r}=i();return{asPercentage:t,inPixels:e.orientation===`horizontal`?r.offsetWidth:r.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=r(),n=a();return e&&wS(t,n)},resize:e=>{let{group:t}=n(),{element:r}=i(),a=Sx({group:t}),o=xx(bx({groupSize:a,panelElement:r,styleProp:e})/a*100);s(o)}}}function jS(e){e.defaultPrevented||SS(e,aS()).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let n=t.panels.find(e=>e.panelConstraints.defaultSize!==void 0);if(n){let r=n.panelConstraints.defaultSize,i=AS({groupId:t.group.id,panelId:n.id});i&&r!==void 0&&(i.resize(r),e.preventDefault())}}})}function MS(e){let t=aS();for(let[n]of t)if(n.separators.some(t=>t.element===e))return n;throw Error(`Could not find parent Group for separator element`)}function NS({groupId:e}){let t=()=>{let t=aS();for(let[n,r]of t)if(n.id===e)return{group:n,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:n}=t();return e?{}:n},setLayout(e){let{defaultLayoutDeferred:n,derivedPanelConstraints:r,group:i,groupSize:a,layout:o,separatorToPanels:s}=t(),c=kS({layout:e,panelConstraints:r});return n?o:(OS(o,c)||sS(i,{defaultLayoutDeferred:n,derivedPanelConstraints:r,groupSize:a,layout:c,separatorToPanels:s}),c)}}}function PS(e,t){let n=MS(e),r=iS(n.id,!0),i=n.separators.find(t=>t.element===e);wx(i,`Matching separator not found`);let a=r.separatorToPanels.get(i);wx(a,`Matching panels not found`);let o=a.map(e=>n.panels.indexOf(e)),s=NS({groupId:n.id}).getLayout(),c=kS({layout:DS({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:`keyboard`}),panelConstraints:r.derivedPanelConstraints});OS(s,c)||sS(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:c,separatorToPanels:r.separatorToPanels},{isUserInteraction:!0})}function FS(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=MS(t);if(!n.disabled)switch(e.key){case`ArrowDown`:e.preventDefault(),n.orientation===`vertical`&&PS(t,5);break;case`ArrowLeft`:e.preventDefault(),n.orientation===`horizontal`&&PS(t,-5);break;case`ArrowRight`:e.preventDefault(),n.orientation===`horizontal`&&PS(t,5);break;case`ArrowUp`:e.preventDefault(),n.orientation===`vertical`&&PS(t,-5);break;case`End`:e.preventDefault(),PS(t,100);break;case`Enter`:{e.preventDefault();let n=MS(t),{derivedPanelConstraints:r,layout:i,separatorToPanels:a}=iS(n.id,!0),o=n.separators.find(e=>e.element===t);wx(o,`Matching separator not found`);let s=a.get(o);wx(s,`Matching panels not found`);let c=s[0],l=r.find(e=>e.panelId===c.id);if(wx(l,`Panel metadata not found`),l.collapsible){let e=i[c.id];PS(t,(l.collapsedSize===e?n.mutableState.expandedPanelSizes[c.id]??l.minSize:l.collapsedSize)-e)}break}case`F6`:{e.preventDefault();let n=MS(t).separators.map(e=>e.element),r=Array.from(n).findIndex(t=>t===e.currentTarget);wx(r!==null,`Index not found`),n[e.shiftKey?r>0?r-1:n.length-1:r+1<n.length?r+1:0].focus({preventScroll:!0});break}case`Home`:e.preventDefault(),PS(t,-100);break}}function IS(e){if(e.defaultPrevented||e.pointerType===`mouse`&&e.button>0)return;let t=aS(),n=SS(e,t),r=new Map,i=!1;n.forEach(e=>{e.separator&&(i||(i=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let n=t.get(e.group);n&&r.set(e.group,n.layout)}),Bx({cursorFlags:0,hitRegions:n,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:`active`}),n.length&&e.preventDefault()}function LS({document:e,event:t,hitRegions:n,initialLayoutMap:r,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){let s=0;n.forEach(e=>{let{group:n,groupSize:o}=e,{orientation:c,panels:l}=n,{disableCursor:u}=n.mutableState,d=0;d=a?c===`horizontal`?(t.clientX-a.x)/o*100:(t.clientY-a.y)/o*100:c===`horizontal`?t.clientX<0?-100:100:t.clientY<0?-100:100;let f=r.get(n),p=i.get(n);if(!f||!p)return;let{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:_,separatorToPanels:v}=p;if(h&&_&&v){let t=DS({delta:d,initialLayout:f,panelConstraints:h,pivotIndices:e.panels.map(e=>l.indexOf(e)),prevLayout:_,trigger:`mouse-or-touch`});if(OS(t,_)){if(d!==0&&!u)switch(c){case`horizontal`:s|=d<0?Ux:Wx;break;case`vertical`:s|=d<0?Gx:Kx;break}}else sS(e.group,{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:t,separatorToPanels:v})}});let c=0;t.movementX===0?c|=o&qx:c|=s&qx,t.movementY===0?c|=o&Jx:c|=s&Jx,zx(c),$x(e)}function RS(e){let t=aS(),n=Lx();switch(n.state){case`active`:LS({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function zS(e){if(e.defaultPrevented)return;let t=Lx(),n=aS();switch(t.state){case`active`:if(e.buttons===0){Bx({cursorFlags:0,state:`inactive`}),t.hitRegions.forEach(e=>{if(!n.has(e.group))return;let t=iS(e.group.id,!0);sS(e.group,t,{isUserInteraction:!0})});return}for(let n of t.hitRegions)if(n.separator){let{element:t}=n.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}LS({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break;default:{let r=SS(e,n);r.length===0?t.state!==`inactive`&&Bx({cursorFlags:0,state:`inactive`}):Bx({cursorFlags:0,hitRegions:r,state:`hover`}),$x(e.currentTarget);break}}}function BS(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(Lx().state){case`hover`:Bx({cursorFlags:0,state:`inactive`})}}function VS(e){e.defaultPrevented||e.pointerType===`mouse`&&e.button>0||cS(e.currentTarget)&&e.preventDefault()}function HS(e){let t=0,n=0,r={};for(let i of e)if(i.defaultSize!==void 0){t++;let e=xx(i.defaultSize);n+=e,r[i.panelId]=e}else r[i.panelId]=void 0;let i=e.length-t;if(i!==0){let t=xx((100-n)/i);for(let n of e)n.defaultSize===void 0&&(r[n.panelId]=t)}return r}function US(e,t,n){if(!n[0])return;let r=e.panels.find(e=>e.element===t);if(!r||!r.onResize)return;let i=Sx({group:e}),a=e.orientation===`horizontal`?r.element.offsetWidth:r.element.offsetHeight,o=r.mutableValues.prevSize,s={asPercentage:xx(a/i*100),inPixels:a};r.mutableValues.prevSize=s,r.onResize(s,r.id,o)}function WS(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function GS(e,t){return e.length===t.length&&e.every((e,n)=>WS(e,t[n]))}function KS({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:r}){if(n<=0||t<=0||n===t)return r;let i=0,a=0,o=!1,s=new Map,c=[];for(let l of e.panels){let e=r[l.id]??0;switch(l.panelConstraints.groupResizeBehavior){case`preserve-pixel-size`:{o=!0;let r=xx(e/100*n/t*100);s.set(l.id,r),i+=r;break}default:c.push(l.id),a+=e;break}}if(!o||c.length===0)return r;let l=100-i,u={...r};if(s.forEach((e,t)=>{u[t]=e}),a>0)for(let e of c)u[e]=xx((r[e]??0)/a*l);else{let e=xx(l/c.length);for(let t of c)u[t]=e}return u}function qS(e,t){let n=e.map(e=>e.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;return!0}var JS=new Map;function YS(e){let t=!0;wx(e.element.ownerDocument.defaultView,`Cannot register an unmounted Group`);let n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,i=new Set,a=new n(n=>{for(let r of n){let{borderBoxSize:n,target:i}=r;if(i===e.element){if(t){let t=Sx({group:e});if(t===0)return;let n=iS(e.id);if(!n)return;let r=Cx(e),i=n.defaultLayoutDeferred?HS(r):n.layout,a=kS({layout:KS({group:e,nextGroupSize:t,prevGroupSize:n.groupSize,prevLayout:i}),panelConstraints:r});if(!n.defaultLayoutDeferred&&OS(n.layout,a)&&GS(n.derivedPanelConstraints,r)&&n.groupSize===t)continue;sS(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:t,layout:a,separatorToPanels:n.separatorToPanels})}}else US(e,i,n)}});a.observe(e.element),e.panels.forEach(e=>{wx(!r.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),r.add(e.id),e.onResize&&a.observe(e.element)});let o=Sx({group:e}),s=Cx(e),c=e.panels.map(({id:e})=>e).join(`,`),l=e.mutableState.defaultLayout;l&&(qS(e.panels,l)||(l=void 0));let u=kS({layout:e.mutableState.layouts[c]??l??HS(s),panelConstraints:s}),d=e.element.ownerDocument;JS.set(d,(JS.get(d)??0)+1);let f=new Map;return Nx(e).forEach(e=>{e.separator&&f.set(e.separator,e.panels)}),sS(e,{defaultLayoutDeferred:o===0,derivedPanelConstraints:s,groupSize:o,layout:u,separatorToPanels:f}),e.separators.forEach(e=>{wx(!i.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),i.add(e.id),e.element.addEventListener(`keydown`,FS)}),JS.get(d)===1&&(d.addEventListener(`contextmenu`,lS,!0),d.addEventListener(`dblclick`,jS,!0),d.addEventListener(`pointerdown`,IS,!0),d.addEventListener(`pointerleave`,RS),d.addEventListener(`pointermove`,zS),d.addEventListener(`pointerout`,BS),d.addEventListener(`pointerup`,VS,!0)),function(){t=!1,JS.set(d,Math.max(0,(JS.get(d)??0)-1)),nS(e),e.separators.forEach(e=>{e.element.removeEventListener(`keydown`,FS)}),JS.get(d)||(d.removeEventListener(`contextmenu`,lS,!0),d.removeEventListener(`dblclick`,jS,!0),d.removeEventListener(`pointerdown`,IS,!0),d.removeEventListener(`pointerleave`,RS),d.removeEventListener(`pointermove`,zS),d.removeEventListener(`pointerout`,BS),d.removeEventListener(`pointerup`,VS,!0)),a.disconnect()}}function XS(){let[e,t]=(0,H.useState)({});return[e,(0,H.useCallback)(()=>t({}),[])]}function ZS(e){let t=(0,H.useId)();return`${e??t}`}var QS=typeof window<`u`?H.useLayoutEffect:H.useEffect;function $S(e){let t=(0,H.useRef)(e);return QS(()=>{t.current=e},[e]),(0,H.useCallback)((...e)=>t.current?.(...e),[t])}function eC(...e){return $S(t=>{e.forEach(e=>{if(e)switch(typeof e){case`function`:e(t);break;case`object`:e.current=t;break}})})}function tC(e){let t=(0,H.useRef)({...e});return QS(()=>{for(let n in e)t.current[n]=e[n]},[e]),t.current}var nC=(0,H.createContext)(null);function rC(e,t){let n=(0,H.useRef)({getLayout:()=>({}),setLayout:Vx});(0,H.useImperativeHandle)(t,()=>n.current,[]),QS(()=>{Object.assign(n.current,NS({groupId:e}))})}function iC({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:i,elementRef:a,groupRef:o,id:s,onLayoutChange:c,onLayoutChanged:l,orientation:u=`horizontal`,resizeTargetMinimumSize:d={coarse:20,fine:10},style:f,...p}){let m=(0,H.useRef)({onLayoutChange:{},onLayoutChanged:{}}),h=$S(e=>{OS(m.current.onLayoutChange,e)||(m.current.onLayoutChange=e,c?.(e))}),g=$S((e,t)=>{OS(m.current.onLayoutChanged,e)||(m.current.onLayoutChanged=e,l?.(e,{isUserInteraction:t}))}),_=ZS(s),v=(0,H.useRef)(null),[y,b]=XS(),x=(0,H.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:d,separators:[]}),S=eC(v,a);rC(_,o);let C=$S((e,t)=>{let r=Lx(),i=rS(e),a=iS(e);if(a){let e=!1;switch(r.state){case`active`:e=r.hitRegions.some(e=>e.group===i);break}return{flexGrow:a.layout[t]??1,pointerEvents:e?`none`:void 0}}if(n?.[t])return{flexGrow:n?.[t]}}),w=tC({defaultLayout:n,disableCursor:r}),T=(0,H.useMemo)(()=>({get disableCursor(){return!!w.disableCursor},getPanelStyles:C,id:_,orientation:u,registerPanel:e=>{let t=x.current;return t.panels=Tx(u,[...t.panels,e]),b(),()=>{t.panels=t.panels.filter(t=>t!==e),b()}},registerSeparator:e=>{let t=x.current;return t.separators=Tx(u,[...t.separators,e]),b(),()=>{t.separators=t.separators.filter(t=>t!==e),b()}},updatePanelProps:(e,{disabled:t})=>{let n=x.current.panels.find(t=>t.id===e);n&&(n.panelConstraints.disabled=t);let r=rS(_),i=iS(_);r&&i&&sS(r,{...i,derivedPanelConstraints:Cx(r)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:n})=>{let r=x.current.separators.find(t=>t.id===e);r&&(r.disabled=t,r.disableDoubleClick=n)}}),[C,_,b,u,w]),E=(0,H.useRef)(null);return QS(()=>{let e=v.current;if(e===null)return;let t=x.current,n;if(w.defaultLayout!==void 0&&Object.keys(w.defaultLayout).length===t.panels.length){n={};for(let e of t.panels){let t=w.defaultLayout[e.id];t!==void 0&&(n[e.id]=t)}}let r={disabled:!!i,element:e,id:_,mutableState:{defaultLayout:n,disableCursor:!!w.disableCursor,expandedPanelSizes:x.current.lastExpandedPanelSizes,layouts:x.current.layouts},orientation:u,panels:t.panels,resizeTargetMinimumSize:t.resizeTargetMinimumSize,separators:t.separators};E.current=r;let a=YS(r),{defaultLayoutDeferred:o,derivedPanelConstraints:s,layout:c}=iS(r.id,!0);!o&&s.length>0&&(h(c),g(c,!1));let l=oS(_,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:n,layout:i}=e.next;if(t||n.length===0)return;let a=r.panels.map(({id:e})=>e).join(`,`);r.mutableState.layouts[a]=i,n.forEach(t=>{if(t.collapsible){let{layout:n}=e.prev??{};if(n){let e=wS(t.collapsedSize,i[t.panelId]),a=wS(t.collapsedSize,n[t.panelId]);e&&!a&&(r.mutableState.expandedPanelSizes[t.panelId]=n[t.panelId])}}});let o=Lx().state!==`active`;h(i),o&&g(i,e.isUserInteraction)});return()=>{E.current=null,a(),l()}},[i,_,g,h,u,y,w]),(0,H.useEffect)(()=>{let e=E.current;e&&(e.mutableState.defaultLayout=n,e.mutableState.disableCursor=!!r)}),(0,U.jsx)(nC.Provider,{value:T,children:(0,U.jsx)(`div`,{...p,className:t,"data-group":!0,"data-testid":_,id:_,ref:S,style:{height:`100%`,width:`100%`,overflow:`hidden`,...f,display:`flex`,flexDirection:u===`horizontal`?`row`:`column`,flexWrap:`nowrap`,touchAction:u===`horizontal`?`pan-y`:`pan-x`},children:e})})}iC.displayName=`Group`;function aC(){let e=(0,H.useContext)(nC);return wx(e,`Group Context not found; did you render a Panel or Separator outside of a Group?`),e}function oC(e,t){let{id:n}=aC(),r=(0,H.useRef)({collapse:Hx,expand:Hx,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Hx});(0,H.useImperativeHandle)(t,()=>r.current,[]),QS(()=>{Object.assign(r.current,AS({groupId:n,panelId:e}))})}function sC({children:e,className:t,collapsedSize:n=`0%`,collapsible:r=!1,defaultSize:i,disabled:a,elementRef:o,groupResizeBehavior:s=`preserve-relative-size`,id:c,maxSize:l=`100%`,minSize:u=`0%`,onResize:d,panelRef:f,style:p,...m}){let h=!!c,g=ZS(c),_=tC({disabled:a}),v=(0,H.useRef)(null),y=eC(v,o),{getPanelStyles:b,id:x,orientation:S,registerPanel:C,updatePanelProps:w}=aC(),T=d!==null,E=$S((e,t,n)=>{d?.(e,c,n)});QS(()=>{let e=v.current;if(e!==null){let t={element:e,id:g,idIsStable:h,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:T?E:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:r,defaultSize:i,disabled:_.disabled,maxSize:l,minSize:u}};return C(t)}},[s,n,r,i,T,g,h,l,u,E,C,_]),(0,H.useEffect)(()=>{w(g,{disabled:a})},[a,g,w]),oC(g,f);let D=()=>{let e=b(x,g);if(e)return JSON.stringify(e)},O=(0,H.useSyncExternalStore)(e=>oS(x,e),D,D),k;return k=O?JSON.parse(O):i===void 0?{flexGrow:1}:{flexGrow:void 0,flexShrink:void 0,flexBasis:i},(0,U.jsx)(`div`,{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:y,style:{...cC,display:`flex`,flexBasis:0,flexShrink:1,overflow:`visible`,...k},children:(0,U.jsx)(`div`,{className:t,style:{maxHeight:`100%`,maxWidth:`100%`,flexGrow:1,overflow:`auto`,...p,touchAction:S===`horizontal`?`pan-y`:`pan-x`},children:e})})}sC.displayName=`Panel`;var cC={minHeight:0,maxHeight:`100%`,height:`auto`,minWidth:0,maxWidth:`100%`,width:`auto`,border:`none`,borderWidth:0,padding:0,margin:0};function lC({layout:e,panelConstraints:t,panelId:n,panelIndex:r}){let i,a,o=e[n],s=t.find(e=>e.panelId===n);if(s){let c=s.maxSize,l=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];a=kS({layout:DS({delta:l-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n],i=kS({layout:DS({delta:c-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:i,valueMin:a,valueNow:o}}function uC({children:e,className:t,disabled:n,disableDoubleClick:r,elementRef:i,id:a,style:o,...s}){let c=ZS(a),l=tC({disabled:n,disableDoubleClick:r}),[u,d]=(0,H.useState)({}),[f,p]=(0,H.useState)(`inactive`),[m,h]=(0,H.useState)(!1),g=(0,H.useRef)(null),_=eC(g,i),{disableCursor:v,id:y,orientation:b,registerSeparator:x,updateSeparatorProps:S}=aC(),C=b===`horizontal`?`vertical`:`horizontal`;QS(()=>{let e=g.current;if(e!==null){let t={disabled:l.disabled,disableDoubleClick:l.disableDoubleClick,element:e,id:c},n=x(t),r=Rx(e=>{p(e.next.state!==`inactive`&&e.next.hitRegions.some(e=>e.separator===t)?e.next.state:`inactive`)}),i=oS(y,e=>{let{derivedPanelConstraints:n,layout:r,separatorToPanels:i}=e.next,a=i.get(t);if(a){let e=a[0],t=a.indexOf(e);d(lC({layout:r,panelConstraints:n,panelId:e.id,panelIndex:t}))}});return()=>{r(),i(),n()}}},[y,c,x,l]),(0,H.useEffect)(()=>{S(c,{disabled:n,disableDoubleClick:r})},[n,r,c,S]);let w;n&&!v&&(w=`not-allowed`);let T;if(n)T=`disabled`;else switch(f){case`active`:T=`active`;break;default:T=m?`focus`:f}return(0,U.jsx)(`div`,{...s,"aria-controls":u.valueControls,"aria-disabled":n||void 0,"aria-orientation":C,"aria-valuemax":u.valueMax,"aria-valuemin":u.valueMin,"aria-valuenow":u.valueNow,children:e,className:t,"data-separator":T,"data-testid":c,id:c,onBlur:()=>h(!1),onFocus:()=>h(!0),ref:_,role:`separator`,style:{flexBasis:`auto`,cursor:w,...o,flexGrow:0,flexShrink:0,touchAction:`none`},tabIndex:n?void 0:0})}uC.displayName=`Separator`;var dC=768;function fC(){let e=(0,q.c)(3);if(e[0]!==`baa8d9bee5a4b9c88f8cb8b95ec24e5538b7c0caa3fc537d1d9df9dafcdd002a`){for(let t=0;t<3;t+=1)e[t]=Symbol.for(`react.memo_cache_sentinel`);e[0]=`baa8d9bee5a4b9c88f8cb8b95ec24e5538b7c0caa3fc537d1d9df9dafcdd002a`}let[t,n]=H.useState(void 0),r,i;return e[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=()=>{let e=window.matchMedia(`(max-width: ${dC-1}px)`),t=()=>{n(window.innerWidth<dC)};return e.addEventListener(`change`,t),n(window.innerWidth<dC),()=>e.removeEventListener(`change`,t)},i=[],e[1]=r,e[2]=i):(r=e[1],i=e[2]),H.useEffect(r,i),!!t}function Z(...e){return Pd(su(e))}var pC=pv(`group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-primary text-primary-foreground hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50`,secondary:`bg-secondary text-secondary-foreground hover:bg-[color-mix(in_oklch,var(--secondary),var(--foreground)_5%)] aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50`,destructive:`bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3`,sm:`h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function mC(e){let t=(0,q.c)(13);if(t[0]!==`cc0a7b774ec87b9f5d3963763ec9f691cf535e88cf487b82ea09182833512e5b`){for(let e=0;e<13;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cc0a7b774ec87b9f5d3963763ec9f691cf535e88cf487b82ea09182833512e5b`}let n,r,i,a;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5]):({className:n,variant:i,size:a,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a);let o=i===void 0?`default`:i,s=a===void 0?`default`:a,c;t[6]!==n||t[7]!==s||t[8]!==o?(c=Z(pC({variant:o,size:s,className:n})),t[6]=n,t[7]=s,t[8]=o,t[9]=c):c=t[9];let l;return t[10]!==r||t[11]!==c?(l=(0,U.jsx)(uv,{"data-slot":`button`,className:c,...r}),t[10]=r,t[11]=c,t[12]=l):l=t[12],l}var hC=pv(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function gC(e){let t=(0,q.c)(11);if(t[0]!==`f81e6ddf8988dcce4ca0c968ac1509f0a3355f741c5df16dc19221a46524536d`){for(let e=0;e<11;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`f81e6ddf8988dcce4ca0c968ac1509f0a3355f741c5df16dc19221a46524536d`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,variant:i,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let a;t[5]!==n||t[6]!==i?(a=Z(hC({variant:i}),n),t[5]=n,t[6]=i,t[7]=a):a=t[7];let o;return t[8]!==r||t[9]!==a?(o=(0,U.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:a,...r}),t[8]=r,t[9]=a,t[10]=o):o=t[10],o}function _C(e){let t=(0,q.c)(9);if(t[0]!==`f81e6ddf8988dcce4ca0c968ac1509f0a3355f741c5df16dc19221a46524536d`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`f81e6ddf8988dcce4ca0c968ac1509f0a3355f741c5df16dc19221a46524536d`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`[&_a]:hover:text-foreground font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`alert-title`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function vC(e){let t=(0,q.c)(9);if(t[0]!==`f81e6ddf8988dcce4ca0c968ac1509f0a3355f741c5df16dc19221a46524536d`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`f81e6ddf8988dcce4ca0c968ac1509f0a3355f741c5df16dc19221a46524536d`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`text-muted-foreground [&_a]:hover:text-foreground text-sm text-balance md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`alert-description`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}var yC=pv(`group/attachment relative flex w-fit max-w-full min-w-0 shrink-0 flex-wrap rounded-xl border bg-card text-card-foreground transition-colors focus-within:ring-1 focus-within:ring-ring/50 has-[>a,>button]:hover:bg-muted/50 data-[state=error]:border-destructive/30 data-[state=idle]:border-dashed`,{variants:{size:{default:`gap-2 text-sm has-data-[slot=attachment-content]:px-2.5 has-data-[slot=attachment-content]:py-2 has-data-[slot=attachment-media]:p-2`,sm:`gap-2.5 text-xs has-data-[slot=attachment-content]:px-2 has-data-[slot=attachment-content]:py-1.5 has-data-[slot=attachment-media]:p-1.5`,xs:`gap-1.5 rounded-lg text-xs has-data-[slot=attachment-content]:px-1.5 has-data-[slot=attachment-content]:py-1 has-data-[slot=attachment-media]:p-1`},orientation:{horizontal:`min-w-40 items-center`,vertical:`w-24 flex-col has-data-[slot=attachment-content]:w-30`}}});function bC(e){let t=(0,q.c)(17);if(t[0]!==`3564558436930d0248b0e0d1ca3fef49509db4278dfb54f21c428ede20cb16f9`){for(let e=0;e<17;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`3564558436930d0248b0e0d1ca3fef49509db4278dfb54f21c428ede20cb16f9`}let n,r,i,a,o;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5],o=t[6]):({className:n,state:i,size:a,orientation:o,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o);let s=i===void 0?`done`:i,c=a===void 0?`default`:a,l=o===void 0?`horizontal`:o,u;t[7]!==n||t[8]!==l||t[9]!==c?(u=Z(yC({size:c,orientation:l}),n),t[7]=n,t[8]=l,t[9]=c,t[10]=u):u=t[10];let d;return t[11]!==l||t[12]!==r||t[13]!==c||t[14]!==s||t[15]!==u?(d=(0,U.jsx)(`div`,{"data-slot":`attachment`,"data-state":s,"data-size":c,"data-orientation":l,className:u,...r}),t[11]=l,t[12]=r,t[13]=c,t[14]=s,t[15]=u,t[16]=d):d=t[16],d}var xC=pv(`relative flex aspect-square w-10 shrink-0 items-center justify-center overflow-hidden rounded-lg bg-muted text-foreground group-data-[orientation=vertical]/attachment:w-full group-data-[size=sm]/attachment:w-8 group-data-[size=xs]/attachment:w-7 group-data-[size=xs]/attachment:rounded-md group-data-[state=error]/attachment:bg-destructive/10 group-data-[state=error]/attachment:text-destructive group-data-[orientation=vertical]/attachment:*:data-[slot=spinner]:size-6! [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 group-data-[orientation=vertical]/attachment:[&_svg:not([class*='size-'])]:size-6 group-data-[size=xs]/attachment:[&_svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{icon:``,image:`opacity-60 group-data-[state=done]/attachment:opacity-100 group-data-[state=idle]/attachment:opacity-100 *:[img]:aspect-square *:[img]:w-full *:[img]:object-cover`}},defaultVariants:{variant:`icon`}});function SC(e){let t=(0,q.c)(12);if(t[0]!==`3564558436930d0248b0e0d1ca3fef49509db4278dfb54f21c428ede20cb16f9`){for(let e=0;e<12;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`3564558436930d0248b0e0d1ca3fef49509db4278dfb54f21c428ede20cb16f9`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,variant:i,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let a=i===void 0?`icon`:i,o;t[5]!==n||t[6]!==a?(o=Z(xC({variant:a}),n),t[5]=n,t[6]=a,t[7]=o):o=t[7];let s;return t[8]!==r||t[9]!==o||t[10]!==a?(s=(0,U.jsx)(`div`,{"data-slot":`attachment-media`,"data-variant":a,className:o,...r}),t[8]=r,t[9]=o,t[10]=a,t[11]=s):s=t[11],s}function CC(e){let t=(0,q.c)(9);if(t[0]!==`3564558436930d0248b0e0d1ca3fef49509db4278dfb54f21c428ede20cb16f9`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`3564558436930d0248b0e0d1ca3fef49509db4278dfb54f21c428ede20cb16f9`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`scroll-fade-x flex min-w-0 snap-x snap-mandatory scroll-px-1 scrollbar-none gap-3 overflow-x-auto overscroll-x-contain py-1 *:data-[slot=attachment]:flex-none *:data-[slot=attachment]:snap-start`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`attachment-group`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}var wC=pv(`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 has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3!`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,secondary:`bg-secondary text-secondary-foreground [a]:hover:bg-secondary/80`,destructive:`bg-destructive/10 text-destructive focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:focus-visible:ring-destructive/40 [a]:hover:bg-destructive/20`,outline:`border-border text-foreground [a]:hover:bg-muted [a]:hover:text-muted-foreground`,ghost:`hover:bg-muted hover:text-muted-foreground dark:hover:bg-muted/50`,link:`text-primary underline-offset-4 hover:underline`}},defaultVariants:{variant:`default`}});function TC(e){let t=(0,q.c)(14);if(t[0]!==`ebc8d3c9f1837d56053250855c1f7941c1de1754d997b9684bdc1c65b13bafd1`){for(let e=0;e<14;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`ebc8d3c9f1837d56053250855c1f7941c1de1754d997b9684bdc1c65b13bafd1`}let n,r,i,a,o;if(t[1]!==e){let{className:s,variant:c,render:l,...u}=e;n=l,o=c===void 0?`default`:c,a=mv,r=`span`,i=rc({className:Z(wC({variant:o}),s)},u),t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o}else n=t[2],r=t[3],i=t[4],a=t[5],o=t[6];let s;t[7]===o?s=t[8]:(s={slot:`badge`,variant:o},t[7]=o,t[8]=s);let c;return t[9]!==n||t[10]!==r||t[11]!==i||t[12]!==s?(c={defaultTagName:r,props:i,render:n,state:s},t[9]=n,t[10]=r,t[11]=i,t[12]=s,t[13]=c):c=t[13],a(c)}function EC(e){let t=(0,q.c)(11);if(t[0]!==`78186d645b02aefa7efbb2e03883ca5668d04a4dcbb97b2dc130c47cc708ab29`){for(let e=0;e<11;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`78186d645b02aefa7efbb2e03883ca5668d04a4dcbb97b2dc130c47cc708ab29`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,orientation:i,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let a=i===void 0?`horizontal`:i,o;t[5]===n?o=t[6]:(o=Z(`bg-border shrink-0 data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch`,n),t[5]=n,t[6]=o);let s;return t[7]!==a||t[8]!==r||t[9]!==o?(s=(0,U.jsx)(hv,{"data-slot":`separator`,orientation:a,className:o,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function DC(e){let t=(0,q.c)(11);if(t[0]!==`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`){for(let e=0;e<11;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,size:i,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let a=i===void 0?`default`:i,o;t[5]===n?o=t[6]:(o=Z(`group/card bg-card text-card-foreground ring-foreground/10 flex flex-col gap-(--card-spacing) overflow-hidden rounded-xl py-(--card-spacing) text-sm ring-1 [--card-spacing:--spacing(4)] has-data-[slot=card-footer]:pb-0 has-[>img:first-child]:pt-0 data-[size=sm]:[--card-spacing:--spacing(3)] data-[size=sm]:has-data-[slot=card-footer]:pb-0 *:[img:first-child]:rounded-t-xl *:[img:last-child]:rounded-b-xl`,n),t[5]=n,t[6]=o);let s;return t[7]!==r||t[8]!==a||t[9]!==o?(s=(0,U.jsx)(`div`,{"data-slot":`card`,"data-size":a,className:o,...r}),t[7]=r,t[8]=a,t[9]=o,t[10]=s):s=t[10],s}function OC(e){let t=(0,q.c)(9);if(t[0]!==`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`group/card-header @container/card-header grid auto-rows-min items-start gap-1 rounded-t-xl px-(--card-spacing) has-data-[slot=card-action]:grid-cols-[1fr_auto] has-data-[slot=card-description]:grid-rows-[auto_auto] [.border-b]:pb-(--card-spacing)`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`card-header`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function kC(e){let t=(0,q.c)(9);if(t[0]!==`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`card-title`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function AC(e){let t=(0,q.c)(9);if(t[0]!==`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`text-muted-foreground text-sm`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`card-description`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function jC(e){let t=(0,q.c)(9);if(t[0]!==`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`col-start-2 row-span-2 row-start-1 self-start justify-self-end`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`card-action`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function MC(e){let t=(0,q.c)(9);if(t[0]!==`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`px-(--card-spacing)`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`card-content`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function NC(e){let t=(0,q.c)(9);if(t[0]!==`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`21dce8d5750e700d542aecbec5ba31074ef5f3e78ff7e0467f75a55402a835b4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`bg-muted/50 flex items-center rounded-b-xl border-t p-(--card-spacing)`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`card-footer`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}H.createContext(null),H.createContext(null);function PC(e){let t=(0,q.c)(10);if(t[0]!==`d13647e8f0980a7ab8e66356edaca2b3d350ed5a8b9b41ba856d9fde52dac90a`){for(let e=0;e<10;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`d13647e8f0980a7ab8e66356edaca2b3d350ed5a8b9b41ba856d9fde52dac90a`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border transition-colors outline-none group-has-disabled/field:opacity-50 group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3`,n),t[4]=n,t[5]=i);let a;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsx)(Bv,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:(0,U.jsx)(qo,{})}),t[6]=a):a=t[6];let o;return t[7]!==r||t[8]!==i?(o=(0,U.jsx)(zv,{"data-slot":`checkbox`,className:i,...r,children:a}),t[7]=r,t[8]=i,t[9]=o):o=t[9],o}function FC(e){let t=(0,q.c)(5);if(t[0]!==`bbe59cf6599ca5d5acb19e999926831d69350e26dfc81bd4761d9d8397d971f1`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`bbe59cf6599ca5d5acb19e999926831d69350e26dfc81bd4761d9d8397d971f1`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(Hv,{"data-slot":`collapsible`,...n}),t[3]=n,t[4]=r),r}function IC(e){let t=(0,q.c)(5);if(t[0]!==`bbe59cf6599ca5d5acb19e999926831d69350e26dfc81bd4761d9d8397d971f1`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`bbe59cf6599ca5d5acb19e999926831d69350e26dfc81bd4761d9d8397d971f1`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(Wv,{"data-slot":`collapsible-trigger`,...n}),t[3]=n,t[4]=r),r}function LC(e){let t=(0,q.c)(5);if(t[0]!==`bbe59cf6599ca5d5acb19e999926831d69350e26dfc81bd4761d9d8397d971f1`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`bbe59cf6599ca5d5acb19e999926831d69350e26dfc81bd4761d9d8397d971f1`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(Kv,{"data-slot":`collapsible-content`,...n}),t[3]=n,t[4]=r),r}function RC(e){let t=(0,q.c)(11);if(t[0]!==`cf2ccc882f361eaed11588de8940578fd3c370c0ceb7eb5a3222c62231846fa4`){for(let e=0;e<11;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cf2ccc882f361eaed11588de8940578fd3c370c0ceb7eb5a3222c62231846fa4`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,type:i,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let a;t[5]===n?a=t[6]:(a=Z(`border-input file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 w-full min-w-0 rounded-lg border bg-transparent px-2.5 py-1 text-base transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm`,n),t[5]=n,t[6]=a);let o;return t[7]!==r||t[8]!==a||t[9]!==i?(o=(0,U.jsx)(sb,{type:i,"data-slot":`input`,className:a,...r}),t[7]=r,t[8]=a,t[9]=i,t[10]=o):o=t[10],o}function zC(e){let t=(0,q.c)(9);if(t[0]!==`710dd28798aefd535e2507842aaf734a78b5724dde549b80a5faacd2d3fbef8a`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`710dd28798aefd535e2507842aaf734a78b5724dde549b80a5faacd2d3fbef8a`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 flex field-sizing-content min-h-16 w-full rounded-lg border bg-transparent px-2.5 py-2 text-base transition-colors outline-none focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3 md:text-sm`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`textarea`,{"data-slot":`textarea`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function BC(e){let t=(0,q.c)(5);if(t[0]!==`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(rb,{"data-slot":`dialog`,...n}),t[3]=n,t[4]=r),r}function VC(e){let t=(0,q.c)(5);if(t[0]!==`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(iv,{"data-slot":`dialog-portal`,...n}),t[3]=n,t[4]=r),r}function HC(e){let t=(0,q.c)(9);if(t[0]!==`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(L_,{"data-slot":`dialog-overlay`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function UC(e){let t=(0,q.c)(16);if(t[0]!==`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`){for(let e=0;e<16;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`}let n,r,i,a;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5]):({className:r,children:n,showCloseButton:a,...i}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a);let o=a===void 0||a,s;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(s=(0,U.jsx)(HC,{}),t[6]=s):s=t[6];let c;t[7]===r?c=t[8]:(c=Z(`bg-popover text-popover-foreground ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl p-4 text-sm ring-1 duration-100 outline-none sm:max-w-sm`,r),t[7]=r,t[8]=c);let l;t[9]===o?l=t[10]:(l=o&&(0,U.jsxs)(R_,{"data-slot":`dialog-close`,render:(0,U.jsx)(mC,{variant:`ghost`,className:`absolute top-2 right-2`,size:`icon-sm`}),children:[(0,U.jsx)(hs,{}),(0,U.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[9]=o,t[10]=l);let u;return t[11]!==n||t[12]!==i||t[13]!==c||t[14]!==l?(u=(0,U.jsxs)(VC,{children:[s,(0,U.jsxs)(tv,{"data-slot":`dialog-content`,className:c,...i,children:[n,l]})]}),t[11]=n,t[12]=i,t[13]=c,t[14]=l,t[15]=u):u=t[15],u}function WC(e){let t=(0,q.c)(9);if(t[0]!==`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`flex flex-col gap-2`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`dialog-header`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function GC(e){let t=(0,q.c)(15);if(t[0]!==`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`){for(let e=0;e<15;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`}let n,r,i,a;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5]):({className:r,showCloseButton:a,children:n,...i}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a);let o=a!==void 0&&a,s;t[6]===r?s=t[7]:(s=Z(`bg-muted/50 -mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t p-4 sm:flex-row sm:justify-end`,r),t[6]=r,t[7]=s);let c;t[8]===o?c=t[9]:(c=o&&(0,U.jsx)(R_,{render:(0,U.jsx)(mC,{variant:`outline`}),children:`Close`}),t[8]=o,t[9]=c);let l;return t[10]!==n||t[11]!==i||t[12]!==s||t[13]!==c?(l=(0,U.jsxs)(`div`,{"data-slot":`dialog-footer`,className:s,...i,children:[n,c]}),t[10]=n,t[11]=i,t[12]=s,t[13]=c,t[14]=l):l=t[14],l}function KC(e){let t=(0,q.c)(9);if(t[0]!==`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`9dcaa712622dddd35685f2c32eeb9a5addbb7b8bb851f4d7b671e69327f8e500`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`font-heading text-base leading-none font-medium`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(av,{"data-slot":`dialog-title`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}H.createContext(null);function qC(e){let t=(0,q.c)(5);if(t[0]!==`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(Ky,{"data-slot":`dropdown-menu`,...n}),t[3]=n,t[4]=r),r}function JC(e){let t=(0,q.c)(5);if(t[0]!==`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)($y,{"data-slot":`dropdown-menu-trigger`,...n}),t[3]=n,t[4]=r),r}function YC(e){let t=(0,q.c)(19);if(t[0]!==`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`){for(let e=0;e<19;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`}let n,r,i,a,o,s;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7]):({align:i,alignOffset:a,side:o,sideOffset:s,className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o,t[7]=s);let c=i===void 0?`start`:i,l=a===void 0?0:a,u=o===void 0?`bottom`:o,d=s===void 0?4:s,f;t[8]===n?f=t[9]:(f=Z(`bg-popover text-popover-foreground ring-foreground/10 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg p-1 shadow-md ring-1 duration-100 outline-none data-closed:overflow-hidden`,n),t[8]=n,t[9]=f);let p;t[10]!==r||t[11]!==f?(p=(0,U.jsx)(Py,{"data-slot":`dropdown-menu-content`,className:f,...r}),t[10]=r,t[11]=f,t[12]=p):p=t[12];let m;return t[13]!==c||t[14]!==l||t[15]!==u||t[16]!==d||t[17]!==p?(m=(0,U.jsx)(Iy,{children:(0,U.jsx)(Ly,{className:`isolate z-50 outline-none`,align:c,alignOffset:l,side:u,sideOffset:d,children:p})}),t[13]=c,t[14]=l,t[15]=u,t[16]=d,t[17]=p,t[18]=m):m=t[18],m}function XC(e){let t=(0,q.c)(13);if(t[0]!==`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`){for(let e=0;e<13;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`}let n,r,i,a;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5]):({className:n,inset:r,variant:a,...i}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a);let o=a===void 0?`default`:a,s;t[6]===n?s=t[7]:(s=Z(`group/dropdown-menu-item focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:*:[svg]:text-destructive relative flex cursor-default items-center gap-1.5 rounded-md px-1.5 py-1 text-sm outline-hidden select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-7 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,n),t[6]=n,t[7]=s);let c;return t[8]!==r||t[9]!==i||t[10]!==s||t[11]!==o?(c=(0,U.jsx)(jy,{"data-slot":`dropdown-menu-item`,"data-inset":r,"data-variant":o,className:s,...i}),t[8]=r,t[9]=i,t[10]=s,t[11]=o,t[12]=c):c=t[12],c}function ZC(e){let t=(0,q.c)(9);if(t[0]!==`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2cee5f82cb259ed1a30cbdd9a4ef476a994ccf5cb0648c806e179332fbacbe02`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`bg-border -mx-1 my-1 h-px`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(hv,{"data-slot":`dropdown-menu-separator`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function QC(e){let t=(0,q.c)(9);if(t[0]!==`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`flex w-full min-w-0 flex-1 flex-col items-center justify-center gap-4 rounded-xl border-dashed p-6 text-center text-balance`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`empty`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function $C(e){let t=(0,q.c)(9);if(t[0]!==`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`flex max-w-sm flex-col items-center gap-2`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`empty-header`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}var ew=pv(`mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-transparent`,icon:`flex size-8 shrink-0 items-center justify-center rounded-lg bg-muted text-foreground [&_svg:not([class*='size-'])]:size-4`}},defaultVariants:{variant:`default`}});function tw(e){let t=(0,q.c)(12);if(t[0]!==`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`){for(let e=0;e<12;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,variant:i,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let a=i===void 0?`default`:i,o;t[5]!==n||t[6]!==a?(o=Z(ew({variant:a,className:n})),t[5]=n,t[6]=a,t[7]=o):o=t[7];let s;return t[8]!==r||t[9]!==o||t[10]!==a?(s=(0,U.jsx)(`div`,{"data-slot":`empty-icon`,"data-variant":a,className:o,...r}),t[8]=r,t[9]=o,t[10]=a,t[11]=s):s=t[11],s}function nw(e){let t=(0,q.c)(9);if(t[0]!==`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`font-heading text-sm font-medium tracking-tight`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`empty-title`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function rw(e){let t=(0,q.c)(9);if(t[0]!==`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`6d27ec3067158741a10ab0845e7a2475a949f5d2a159fbfd45689a6459ace3e4`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`text-muted-foreground [&>a:hover]:text-primary text-sm/relaxed [&>a]:underline [&>a]:underline-offset-4`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`empty-description`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function iw(e){let t=(0,q.c)(9);if(t[0]!==`12c960b33c3dfa14c23d477cfdee096b37c53a0c89a41b0bae9d925c20df8975`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`12c960b33c3dfa14c23d477cfdee096b37c53a0c89a41b0bae9d925c20df8975`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`label`,{"data-slot":`label`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}var aw=pv(`group/field flex w-full gap-2 data-[invalid=true]:text-destructive`,{variants:{orientation:{vertical:`flex-col *:w-full [&>.sr-only]:w-auto`,horizontal:`flex-row items-center has-[>[data-slot=field-content]]:items-start *:data-[slot=field-label]:flex-auto has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`,responsive:`flex-col *:w-full @md/field-group:flex-row @md/field-group:items-center @md/field-group:*:w-auto @md/field-group:has-[>[data-slot=field-content]]:items-start @md/field-group:*:data-[slot=field-label]:flex-auto [&>.sr-only]:w-auto @md/field-group:has-[>[data-slot=field-content]]:[&>[role=checkbox],[role=radio]]:mt-px`}},defaultVariants:{orientation:`vertical`}});function ow(e){let t=(0,q.c)(12);if(t[0]!==`50fe6f756e62935c7208ae71dcb50ba5deb4cbae2ec744dbd49012f544a32273`){for(let e=0;e<12;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`50fe6f756e62935c7208ae71dcb50ba5deb4cbae2ec744dbd49012f544a32273`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,orientation:i,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let a=i===void 0?`vertical`:i,o;t[5]!==n||t[6]!==a?(o=Z(aw({orientation:a}),n),t[5]=n,t[6]=a,t[7]=o):o=t[7];let s;return t[8]!==a||t[9]!==r||t[10]!==o?(s=(0,U.jsx)(`div`,{role:`group`,"data-slot":`field`,"data-orientation":a,className:o,...r}),t[8]=a,t[9]=r,t[10]=o,t[11]=s):s=t[11],s}function sw(e){let t=(0,q.c)(9);if(t[0]!==`50fe6f756e62935c7208ae71dcb50ba5deb4cbae2ec744dbd49012f544a32273`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`50fe6f756e62935c7208ae71dcb50ba5deb4cbae2ec744dbd49012f544a32273`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`group/field-label peer/field-label has-data-checked:border-primary/30 has-data-checked:bg-primary/5 has-[>[data-slot=field]]:not-has-[:disabled,[data-disabled]]:hover:bg-muted/50 has-[>[data-slot=field]]:has-[:focus-visible]:border-ring has-[>[data-slot=field]]:has-[:focus-visible]:ring-ring/50 dark:has-data-checked:border-primary/20 dark:has-data-checked:bg-primary/10 flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50 has-[>[data-slot=field]]:rounded-lg has-[>[data-slot=field]]:border has-[>[data-slot=field]]:has-[:focus-visible]:ring-3 *:data-[slot=field]:p-2.5`,`has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(iw,{"data-slot":`field-label`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function cw(e){let t=(0,q.c)(9);if(t[0]!==`50fe6f756e62935c7208ae71dcb50ba5deb4cbae2ec744dbd49012f544a32273`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`50fe6f756e62935c7208ae71dcb50ba5deb4cbae2ec744dbd49012f544a32273`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`text-muted-foreground text-left text-sm leading-normal font-normal group-has-data-horizontal/field:text-balance [[data-variant=legend]+&]:-mt-1.5`,`last:mt-0 nth-last-2:-mt-1`,`[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`p`,{"data-slot":`field-description`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}var lw=pv(`group/item flex w-full flex-wrap items-center rounded-lg border text-sm transition-colors duration-100 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 [a]:transition-colors [a]:hover:bg-muted`,{variants:{variant:{default:`border-transparent`,outline:`border-border`,muted:`border-transparent bg-muted/50`},size:{default:`gap-2.5 px-3 py-2.5`,sm:`gap-2.5 px-3 py-2.5`,xs:`gap-2 px-2.5 py-2 in-data-[slot=dropdown-menu-content]:p-0`}},defaultVariants:{variant:`default`,size:`default`}});function uw(e){let t=(0,q.c)(16);if(t[0]!==`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`){for(let e=0;e<16;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`}let n,r,i,a,o,s;if(t[1]!==e){let{className:c,variant:l,size:u,render:d,...f}=e;n=d,s=l===void 0?`default`:l,r=u===void 0?`default`:u,o=mv,i=`div`,a=rc({className:Z(lw({variant:s,size:r,className:c}))},f),t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o,t[7]=s}else n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7];let c;t[8]!==r||t[9]!==s?(c={slot:`item`,variant:s,size:r},t[8]=r,t[9]=s,t[10]=c):c=t[10];let l;return t[11]!==n||t[12]!==i||t[13]!==a||t[14]!==c?(l={defaultTagName:i,props:a,render:n,state:c},t[11]=n,t[12]=i,t[13]=a,t[14]=c,t[15]=l):l=t[15],o(l)}var dw=pv(`flex shrink-0 items-center justify-center gap-2 group-has-data-[slot=item-description]/item:translate-y-0.5 group-has-data-[slot=item-description]/item:self-start [&_svg]:pointer-events-none`,{variants:{variant:{default:`bg-transparent`,icon:`[&_svg:not([class*='size-'])]:size-4`,image:`size-10 overflow-hidden rounded-sm group-data-[size=sm]/item:size-8 group-data-[size=xs]/item:size-6 [&_img]:size-full [&_img]:object-cover`}},defaultVariants:{variant:`default`}});function fw(e){let t=(0,q.c)(12);if(t[0]!==`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`){for(let e=0;e<12;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,variant:i,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let a=i===void 0?`default`:i,o;t[5]!==n||t[6]!==a?(o=Z(dw({variant:a,className:n})),t[5]=n,t[6]=a,t[7]=o):o=t[7];let s;return t[8]!==r||t[9]!==o||t[10]!==a?(s=(0,U.jsx)(`div`,{"data-slot":`item-media`,"data-variant":a,className:o,...r}),t[8]=r,t[9]=o,t[10]=a,t[11]=s):s=t[11],s}function pw(e){let t=(0,q.c)(9);if(t[0]!==`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`flex flex-1 flex-col gap-1 group-data-[size=xs]/item:gap-0 [&+[data-slot=item-content]]:flex-none`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`item-content`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function mw(e){let t=(0,q.c)(9);if(t[0]!==`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`line-clamp-1 flex w-fit items-center gap-2 text-sm leading-snug font-medium underline-offset-4`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`item-title`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function hw(e){let t=(0,q.c)(9);if(t[0]!==`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`2eda2d9be633ee3f114c783216a8e5d6d43558571964dbe7ad8ba6b413a89600`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`text-muted-foreground [&>a:hover]:text-primary line-clamp-2 text-left text-sm leading-normal font-normal group-data-[size=xs]/item:text-xs [&>a]:underline [&>a]:underline-offset-4`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`p`,{"data-slot":`item-description`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function gw(e){let t=(0,q.c)(15);if(t[0]!==`19bf23d759375753d87dbce9cc660bcd7877663d198a3aa0e426a1d34994e8dd`){for(let e=0;e<15;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`19bf23d759375753d87dbce9cc660bcd7877663d198a3aa0e426a1d34994e8dd`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,size:i,...r}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let a=i===void 0?`default`:i,o;t[5]===n?o=t[6]:(o=Z(`group/native-select relative w-fit has-[select:disabled]:opacity-50`,n),t[5]=n,t[6]=o);let s;t[7]!==r||t[8]!==a?(s=(0,U.jsx)(`select`,{"data-slot":`native-select`,"data-size":a,className:`border-input selection:bg-primary selection:text-primary-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:hover:bg-input/50 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 h-8 w-full min-w-0 appearance-none rounded-lg border bg-transparent py-1 pr-8 pl-2.5 text-sm transition-colors outline-none select-none focus-visible:ring-3 disabled:pointer-events-none disabled:cursor-not-allowed aria-invalid:ring-3 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] data-[size=sm]:py-0.5`,...r}),t[7]=r,t[8]=a,t[9]=s):s=t[9];let c;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsx)(Jo,{className:`text-muted-foreground pointer-events-none absolute top-1/2 right-2.5 size-4 -translate-y-1/2 select-none`,"aria-hidden":`true`,"data-slot":`native-select-icon`}),t[10]=c):c=t[10];let l;return t[11]!==a||t[12]!==o||t[13]!==s?(l=(0,U.jsxs)(`div`,{className:o,"data-slot":`native-select-wrapper`,"data-size":a,children:[s,c]}),t[11]=a,t[12]=o,t[13]=s,t[14]=l):l=t[14],l}function _w(e){let t=(0,q.c)(9);if(t[0]!==`19bf23d759375753d87dbce9cc660bcd7877663d198a3aa0e426a1d34994e8dd`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`19bf23d759375753d87dbce9cc660bcd7877663d198a3aa0e426a1d34994e8dd`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`bg-[Canvas] text-[CanvasText]`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`option`,{"data-slot":`native-select-option`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function vw(e){let t=(0,q.c)(9);if(t[0]!==`5ddc431966bfb2abd8130dc4f1e460f57b7dd473936753361c24e24bb99644ba`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`5ddc431966bfb2abd8130dc4f1e460f57b7dd473936753361c24e24bb99644ba`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`grid w-full gap-2`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(Sb,{"data-slot":`radio-group`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function yw(e){let t=(0,q.c)(10);if(t[0]!==`5ddc431966bfb2abd8130dc4f1e460f57b7dd473936753361c24e24bb99644ba`){for(let e=0;e<10;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`5ddc431966bfb2abd8130dc4f1e460f57b7dd473936753361c24e24bb99644ba`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`group/radio-group-item peer border-input group-has-[:focus-visible]/field-label:not-data-checked:border-input focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground group-has-[:focus-visible]/field-label:data-checked:border-primary dark:data-checked:bg-primary relative flex aspect-square size-4 shrink-0 rounded-full border outline-none group-has-[:focus-visible]/field-label:ring-0 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:ring-3 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-3`,n),t[4]=n,t[5]=i);let a;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(a=(0,U.jsx)(bb,{"data-slot":`radio-group-indicator`,className:`flex size-4 items-center justify-center`,children:(0,U.jsx)(`span`,{className:`bg-primary-foreground absolute top-1/2 left-1/2 size-2 -translate-x-1/2 -translate-y-1/2 rounded-full`})}),t[6]=a):a=t[6];let o;return t[7]!==r||t[8]!==i?(o=(0,U.jsx)(yb,{"data-slot":`radio-group-item`,className:i,...r,children:a}),t[7]=r,t[8]=i,t[9]=o):o=t[9],o}function bw(e){let t=(0,q.c)(5);if(t[0]!==`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(rb,{"data-slot":`sheet`,...n}),t[3]=n,t[4]=r),r}function xw(e){let t=(0,q.c)(5);if(t[0]!==`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(iv,{"data-slot":`sheet-portal`,...n}),t[3]=n,t[4]=r),r}function Sw(e){let t=(0,q.c)(9);if(t[0]!==`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`fixed inset-0 z-50 bg-black/10 transition-opacity duration-150 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(L_,{"data-slot":`sheet-overlay`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Cw(e){let t=(0,q.c)(18);if(t[0]!==`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`){for(let e=0;e<18;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`}let n,r,i,a,o;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5],o=t[6]):({className:r,children:n,side:a,showCloseButton:o,...i}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o);let s=a===void 0?`right`:a,c=o===void 0||o,l;t[7]===Symbol.for(`react.memo_cache_sentinel`)?(l=(0,U.jsx)(Sw,{}),t[7]=l):l=t[7];let u;t[8]===r?u=t[9]:(u=Z(`bg-popover text-popover-foreground fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg transition duration-200 ease-in-out data-ending-style:opacity-0 data-starting-style:opacity-0 data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=bottom]:data-ending-style:translate-y-[2.5rem] data-[side=bottom]:data-starting-style:translate-y-[2.5rem] data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-r data-[side=left]:data-ending-style:translate-x-[-2.5rem] data-[side=left]:data-starting-style:translate-x-[-2.5rem] data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-l data-[side=right]:data-ending-style:translate-x-[2.5rem] data-[side=right]:data-starting-style:translate-x-[2.5rem] data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=top]:data-ending-style:translate-y-[-2.5rem] data-[side=top]:data-starting-style:translate-y-[-2.5rem] data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm`,r),t[8]=r,t[9]=u);let d;t[10]===c?d=t[11]:(d=c&&(0,U.jsxs)(R_,{"data-slot":`sheet-close`,render:(0,U.jsx)(mC,{variant:`ghost`,className:`absolute top-3 right-3`,size:`icon-sm`}),children:[(0,U.jsx)(hs,{}),(0,U.jsx)(`span`,{className:`sr-only`,children:`Close`})]}),t[10]=c,t[11]=d);let f;return t[12]!==n||t[13]!==i||t[14]!==s||t[15]!==u||t[16]!==d?(f=(0,U.jsxs)(xw,{children:[l,(0,U.jsxs)(tv,{"data-slot":`sheet-content`,"data-side":s,className:u,...i,children:[n,d]})]}),t[12]=n,t[13]=i,t[14]=s,t[15]=u,t[16]=d,t[17]=f):f=t[17],f}function ww(e){let t=(0,q.c)(9);if(t[0]!==`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`flex flex-col gap-0.5 p-4`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`sheet-header`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Tw(e){let t=(0,q.c)(9);if(t[0]!==`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`font-heading text-foreground text-base font-medium`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(av,{"data-slot":`sheet-title`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Ew(e){let t=(0,q.c)(9);if(t[0]!==`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`aab1f03398911d82eb9e5850560c094a918fefde5f18b09df5f0bfc89447d42a`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`text-muted-foreground text-sm`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(z_,{"data-slot":`sheet-description`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Dw(e){let t=(0,q.c)(9);if(t[0]!==`7d772d30320135cbb93a110441d70371ba6c4fcd35b854c7bc8214dd5b5d6b75`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`7d772d30320135cbb93a110441d70371ba6c4fcd35b854c7bc8214dd5b5d6b75`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`bg-muted animate-pulse rounded-md`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`skeleton`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Ow(e){let t=(0,q.c)(5);if(t[0]!==`894464f52d54ae1dbf94baad24c7b3eadd73c230e6fc21a91e31d7fa124560e3`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`894464f52d54ae1dbf94baad24c7b3eadd73c230e6fc21a91e31d7fa124560e3`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(jb,{"data-slot":`tooltip`,...n}),t[3]=n,t[4]=r),r}function kw(e){let t=(0,q.c)(5);if(t[0]!==`894464f52d54ae1dbf94baad24c7b3eadd73c230e6fc21a91e31d7fa124560e3`){for(let e=0;e<5;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`894464f52d54ae1dbf94baad24c7b3eadd73c230e6fc21a91e31d7fa124560e3`}let n;t[1]===e?n=t[2]:({...n}=e,t[1]=e,t[2]=n);let r;return t[3]===n?r=t[4]:(r=(0,U.jsx)(Rb,{"data-slot":`tooltip-trigger`,...n}),t[3]=n,t[4]=r),r}function Aw(e){let t=(0,q.c)(22);if(t[0]!==`894464f52d54ae1dbf94baad24c7b3eadd73c230e6fc21a91e31d7fa124560e3`){for(let e=0;e<22;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`894464f52d54ae1dbf94baad24c7b3eadd73c230e6fc21a91e31d7fa124560e3`}let n,r,i,a,o,s,c;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8]):({className:r,side:a,sideOffset:o,align:s,alignOffset:c,children:n,...i}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o,t[7]=s,t[8]=c);let l=a===void 0?`top`:a,u=o===void 0?4:o,d=s===void 0?`center`:s,f=c===void 0?0:c,p;t[9]===r?p=t[10]:(p=Z(`bg-foreground text-background data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md px-3 py-1.5 text-xs has-data-[slot=kbd]:pr-1.5 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm`,r),t[9]=r,t[10]=p);let m;t[11]===Symbol.for(`react.memo_cache_sentinel`)?(m=(0,U.jsx)(Kb,{className:`bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5`}),t[11]=m):m=t[11];let h;t[12]!==n||t[13]!==i||t[14]!==p?(h=(0,U.jsxs)(Gb,{"data-slot":`tooltip-content`,className:p,...i,children:[n,m]}),t[12]=n,t[13]=i,t[14]=p,t[15]=h):h=t[15];let g;return t[16]!==d||t[17]!==f||t[18]!==l||t[19]!==u||t[20]!==h?(g=(0,U.jsx)(Vb,{children:(0,U.jsx)(Wb,{align:d,alignOffset:f,side:l,sideOffset:u,className:`isolate z-50`,children:h})}),t[16]=d,t[17]=f,t[18]=l,t[19]=u,t[20]=h,t[21]=g):g=t[21],g}var jw=`sidebar_state`,Mw=3600*24*7,Nw=`16rem`,Pw=`18rem`,Fw=`3rem`,Iw=`b`,Lw=H.createContext(null);function Rw(){let e=(0,q.c)(1);if(e[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let t=0;t<1;t+=1)e[t]=Symbol.for(`react.memo_cache_sentinel`);e[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let t=H.useContext(Lw);if(!t)throw Error(`useSidebar must be used within a SidebarProvider.`);return t}function zw(e){let t=(0,q.c)(37);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<37;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r,i,a,o,s,c;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8]):({defaultOpen:c,open:i,onOpenChange:o,className:r,style:s,children:n,...a}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o,t[7]=s,t[8]=c);let l=c===void 0||c,u=fC(),[d,f]=H.useState(!1),[p,m]=H.useState(l),h=i??p,g;t[9]!==h||t[10]!==o?(g=e=>{let t=typeof e==`function`?e(h):e;o?o(t):m(t),document.cookie=`${jw}=${t}; path=/; max-age=${Mw}`},t[9]=h,t[10]=o,t[11]=g):g=t[11];let _=g,v;t[12]!==u||t[13]!==_?(v=()=>u?f(Vw):_(Bw),t[12]=u,t[13]=_,t[14]=v):v=t[14];let y=v,b,x;t[15]===y?(b=t[16],x=t[17]):(b=()=>{let e=e=>{e.key===Iw&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),y())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},x=[y],t[15]=y,t[16]=b,t[17]=x),H.useEffect(b,x);let S=h?`expanded`:`collapsed`,C;t[18]!==u||t[19]!==h||t[20]!==d||t[21]!==_||t[22]!==S||t[23]!==y?(C={state:S,open:h,setOpen:_,isMobile:u,openMobile:d,setOpenMobile:f,toggleSidebar:y},t[18]=u,t[19]=h,t[20]=d,t[21]=_,t[22]=S,t[23]=y,t[24]=C):C=t[24];let w=C,T;t[25]===s?T=t[26]:(T={"--sidebar-width":Nw,"--sidebar-width-icon":Fw,...s},t[25]=s,t[26]=T);let E=T,D;t[27]===r?D=t[28]:(D=Z(`group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full`,r),t[27]=r,t[28]=D);let O;t[29]!==n||t[30]!==a||t[31]!==E||t[32]!==D?(O=(0,U.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:E,className:D,...a,children:n}),t[29]=n,t[30]=a,t[31]=E,t[32]=D,t[33]=O):O=t[33];let k;return t[34]!==w||t[35]!==O?(k=(0,U.jsx)(Lw.Provider,{value:w,children:O}),t[34]=w,t[35]=O,t[36]=k):k=t[36],k}function Bw(e){return!e}function Vw(e){return!e}function Hw(e){let t=(0,q.c)(49);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<49;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r,i,a,o,s,c;t[1]===e?(n=t[2],r=t[3],i=t[4],a=t[5],o=t[6],s=t[7],c=t[8]):({side:o,variant:s,collapsible:c,className:r,children:n,dir:i,...a}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a,t[6]=o,t[7]=s,t[8]=c);let l=o===void 0?`left`:o,u=s===void 0?`sidebar`:s,d=c===void 0?`offcanvas`:c,{isMobile:f,state:p,openMobile:m,setOpenMobile:h}=Rw();if(d===`none`){let e;t[9]===r?e=t[10]:(e=Z(`bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col`,r),t[9]=r,t[10]=e);let i;return t[11]!==n||t[12]!==a||t[13]!==e?(i=(0,U.jsx)(`div`,{"data-slot":`sidebar`,className:e,...a,children:n}),t[11]=n,t[12]=a,t[13]=e,t[14]=i):i=t[14],i}if(f){let e;t[15]===Symbol.for(`react.memo_cache_sentinel`)?(e={"--sidebar-width":Pw},t[15]=e):e=t[15];let r;t[16]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,U.jsxs)(ww,{className:`sr-only`,children:[(0,U.jsx)(Tw,{children:`Sidebar`}),(0,U.jsx)(Ew,{children:`Displays the mobile sidebar.`})]}),t[16]=r):r=t[16];let o;t[17]===n?o=t[18]:(o=(0,U.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:n}),t[17]=n,t[18]=o);let s;t[19]!==i||t[20]!==l||t[21]!==o?(s=(0,U.jsxs)(Cw,{dir:i,"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden`,style:e,side:l,children:[r,o]}),t[19]=i,t[20]=l,t[21]=o,t[22]=s):s=t[22];let c;return t[23]!==m||t[24]!==a||t[25]!==h||t[26]!==s?(c=(0,U.jsx)(bw,{open:m,onOpenChange:h,...a,children:s}),t[23]=m,t[24]=a,t[25]=h,t[26]=s,t[27]=c):c=t[27],c}let g=p===`collapsed`?d:``,_=u===`floating`||u===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`,v;t[28]===_?v=t[29]:(v=Z(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,_),t[28]=_,t[29]=v);let y;t[30]===v?y=t[31]:(y=(0,U.jsx)(`div`,{"data-slot":`sidebar-gap`,className:v}),t[30]=v,t[31]=y);let b=u===`floating`||u===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l`,x;t[32]!==r||t[33]!==b?(x=Z(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex`,b,r),t[32]=r,t[33]=b,t[34]=x):x=t[34];let S;t[35]===n?S=t[36]:(S=(0,U.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`bg-sidebar group-data-[variant=floating]:ring-sidebar-border flex size-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1`,children:n}),t[35]=n,t[36]=S);let C;t[37]!==a||t[38]!==l||t[39]!==S||t[40]!==x?(C=(0,U.jsx)(`div`,{"data-slot":`sidebar-container`,"data-side":l,className:x,...a,children:S}),t[37]=a,t[38]=l,t[39]=S,t[40]=x,t[41]=C):C=t[41];let w;return t[42]!==l||t[43]!==p||t[44]!==C||t[45]!==g||t[46]!==y||t[47]!==u?(w=(0,U.jsxs)(`div`,{className:`group peer text-sidebar-foreground hidden md:block`,"data-state":p,"data-collapsible":g,"data-variant":u,"data-side":l,"data-slot":`sidebar`,children:[y,C]}),t[42]=l,t[43]=p,t[44]=C,t[45]=g,t[46]=y,t[47]=u,t[48]=w):w=t[48],w}function Uw(e){let t=(0,q.c)(16);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<16;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r,i;t[1]===e?(n=t[2],r=t[3],i=t[4]):({className:n,onClick:r,...i}=e,t[1]=e,t[2]=n,t[3]=r,t[4]=i);let{toggleSidebar:a}=Rw(),o;t[5]===n?o=t[6]:(o=Z(n),t[5]=n,t[6]=o);let s;t[7]!==r||t[8]!==a?(s=e=>{r?.(e),a()},t[7]=r,t[8]=a,t[9]=s):s=t[9];let c,l;t[10]===Symbol.for(`react.memo_cache_sentinel`)?(c=(0,U.jsx)(ss,{}),l=(0,U.jsx)(`span`,{className:`sr-only`,children:`Toggle Sidebar`}),t[10]=c,t[11]=l):(c=t[10],l=t[11]);let u;return t[12]!==i||t[13]!==o||t[14]!==s?(u=(0,U.jsxs)(mC,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,className:o,onClick:s,...i,children:[c,l]}),t[12]=i,t[13]=o,t[14]=s,t[15]=u):u=t[15],u}function Ww(e){let t=(0,q.c)(9);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`bg-background relative flex w-full flex-1 flex-col md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`main`,{"data-slot":`sidebar-inset`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Gw(e){let t=(0,q.c)(9);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`flex flex-col gap-2 p-2`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Kw(e){let t=(0,q.c)(9);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function qw(e){let t=(0,q.c)(9);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`relative flex w-full min-w-0 flex-col p-2`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Jw(e){let t=(0,q.c)(11);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<11;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r,i,a;if(t[1]!==e){let{className:o,render:s,...c}=e;n=s,a=mv,r=`div`,i=rc({className:Z(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,o)},c),t[1]=e,t[2]=n,t[3]=r,t[4]=i,t[5]=a}else n=t[2],r=t[3],i=t[4],a=t[5];let o;t[6]===Symbol.for(`react.memo_cache_sentinel`)?(o={slot:`sidebar-group-label`,sidebar:`group-label`},t[6]=o):o=t[6];let s;return t[7]!==n||t[8]!==r||t[9]!==i?(s={defaultTagName:r,props:i,render:n,state:o},t[7]=n,t[8]=r,t[9]=i,t[10]=s):s=t[10],a(s)}function Yw(e){let t=(0,q.c)(9);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`w-full text-sm`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`div`,{"data-slot":`sidebar-group-content`,"data-sidebar":`group-content`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Xw(e){let t=(0,q.c)(9);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`flex w-full min-w-0 flex-col gap-0`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}function Zw(e){let t=(0,q.c)(9);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`group/menu-item relative`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}var Qw=pv(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pr-8 group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-open:hover:bg-sidebar-accent data-open:hover:text-sidebar-accent-foreground data-active:bg-sidebar-accent data-active:font-medium data-active:text-sidebar-accent-foreground [&_svg]:size-4 [&_svg]:shrink-0 [&>span:last-child]:truncate`,{variants:{variant:{default:`hover:bg-sidebar-accent hover:text-sidebar-accent-foreground`,outline:`bg-background shadow-[0_0_0_1px_var(--sidebar-border)] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_var(--sidebar-accent)]`},size:{default:`h-8 text-sm`,sm:`h-7 text-xs`,lg:`h-12 text-sm group-data-[collapsible=icon]:p-0!`}},defaultVariants:{variant:`default`,size:`default`}});function $w(e){let t=(0,q.c)(19);if(t[0]!==`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`){for(let e=0;e<19;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`cecb66d259a2007272164926f491ed1c62f44c5eb1d32445c50e30e02089f514`}let{render:n,isActive:r,variant:i,size:a,tooltip:o,className:s,...c}=e,l=r!==void 0&&r,u=i===void 0?`default`:i,d=a===void 0?`default`:a,{isMobile:f,state:p}=Rw(),m=rc({className:Z(Qw({variant:u,size:d}),s)},c),h;t[1]!==n||t[2]!==o?(h=o?(0,U.jsx)(kw,{render:n}):n,t[1]=n,t[2]=o,t[3]=h):h=t[3];let g;t[4]!==l||t[5]!==d?(g={slot:`sidebar-menu-button`,sidebar:`menu-button`,size:d,active:l},t[4]=l,t[5]=d,t[6]=g):g=t[6];let _;t[7]!==m||t[8]!==h||t[9]!==g?(_={defaultTagName:`button`,props:m,render:h,state:g},t[7]=m,t[8]=h,t[9]=g,t[10]=_):_=t[10];let v=mv(_);if(!o)return v;if(typeof o==`string`){let e;t[11]===o?e=t[12]:(e={children:o},t[11]=o,t[12]=e),o=e}let y=p!==`collapsed`||f,b;t[13]!==y||t[14]!==o?(b=(0,U.jsx)(Aw,{side:`right`,align:`center`,hidden:y,...o}),t[13]=y,t[14]=o,t[15]=b):b=t[15];let x;return t[16]!==v||t[17]!==b?(x=(0,U.jsxs)(Ow,{children:[v,b]}),t[16]=v,t[17]=b,t[18]=x):x=t[18],x}function eT(e){let t=(0,q.c)(9);if(t[0]!==`1e0c2eb44122c0da44b45320550111b7f68b8ebf1e3725f2fbc56a88034d8d20`){for(let e=0;e<9;e+=1)t[e]=Symbol.for(`react.memo_cache_sentinel`);t[0]=`1e0c2eb44122c0da44b45320550111b7f68b8ebf1e3725f2fbc56a88034d8d20`}let n,r;t[1]===e?(n=t[2],r=t[3]):({className:n,...r}=e,t[1]=e,t[2]=n,t[3]=r);let i;t[4]===n?i=t[5]:(i=Z(`size-4 animate-spin`,n),t[4]=n,t[5]=i);let a;return t[6]!==r||t[7]!==i?(a=(0,U.jsx)(is,{"data-slot":`spinner`,role:`status`,"aria-label":`Loading`,className:i,...r}),t[6]=r,t[7]=i,t[8]=a):a=t[8],a}H.createContext({size:`default`,variant:`default`,spacing:2,orientation:`horizontal`});function tT(e){switch(e.type){case`idle`:return`idle`;case`systemError`:return`error`;case`active`:return e.activeFlags.includes(`waitingOnApproval`)?`approval`:e.activeFlags.includes(`waitingOnUserInput`)?`input`:`active`}}var nT=(0,H.createContext)(null),rT=(0,H.createContext)([]);function iT({href:e,onEvent:t,history:n=[],children:r}){let[i,a]=(0,H.useState)(new Map),o=(0,H.useEffectEvent)(t);return(0,H.useEffect)(()=>{if(!e)return;let t=new EventSource(e),n=e=>{let t=uT(e.data);t&&(t.type===`ready`?a(new Map):lT(t)&&a(e=>new Map(e).set(t.id,t)),o(t))};return t.addEventListener(`message`,n),()=>{t.removeEventListener(`message`,n),t.close()}},[e]),(0,U.jsx)(nT,{value:i,children:(0,U.jsx)(rT,{value:n,children:r})})}function aT(e,t){let n=(0,H.use)(nT);if(!n)throw Error(`useConversationStatus must be used inside <RuntimeEventsProvider>.`);return n.get(e)?.status??t}var oT={pending:`Pending`,queued:`Queued`,running:`Running`,waitingOnApproval:`Waiting on approval`,waitingOnUserInput:`Waiting on user input`,completed:`Completed`,failed:`Failed`,interrupted:`Interrupted`},sT={spawn:`Spawned`,message:`Message sent`,followup:`Follow-up sent`,interrupt:`Interrupt accepted`,completion:`Turn finished`};function cT({treeId:e,snapshot:t=[]}){let n=(0,H.use)(nT),r=(0,H.use)(rT).find(t=>t.chatId===e)?.children??t,i=new Map(r.filter(t=>t.treeId===e).map(e=>[e.chatId,e]));for(let t of n?.values()??[])t.child?.treeId===e&&i.set(t.id,t.child);return i.size===0?null:(0,U.jsxs)(`section`,{"aria-label":`Child agents`,className:`border-t px-6 py-3`,children:[(0,U.jsx)(`h2`,{className:`mb-2 text-sm font-medium`,children:`Child agents`}),(0,U.jsx)(`ul`,{className:`space-y-2`,children:[...i.values()].sort((e,t)=>e.path.localeCompare(t.path)).map(e=>{let t=Object.values(e.activities).sort((e,t)=>t.at-e.at)[0];return(0,U.jsxs)(`li`,{className:`flex items-center justify-between gap-4 text-sm`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`p`,{className:`truncate font-mono text-xs`,children:e.path}),t&&(0,U.jsxs)(`p`,{className:`text-muted-foreground text-xs`,children:[sT[t.type],` · `,t.actorPath,` →`,` `,t.targetPath]})]}),(0,U.jsx)(xT,{status:oT[e.state]})]},e.chatId)})})]})}function lT(e){return e.type===`change`&&e.resource===`conversation`&&dT(e.status)&&(e.child===void 0||pT(e.child)&&e.child.chatId===e.id)}function uT(e){let t;try{t=JSON.parse(e)}catch{return}if(!(!fT(t)||typeof t.type!=`string`)){if(t.type===`ready`)return{type:`ready`};if(!(t.type!==`change`||typeof t.resource!=`string`||!t.resource||typeof t.id!=`string`||!t.id)&&!(t.resource===`conversation`&&(!dT(t.status)||t.child!==void 0&&(!pT(t.child)||t.child.chatId!==t.id))))return t}}function dT(e){return!fT(e)||typeof e.type!=`string`?!1:e.type===`idle`||e.type===`systemError`||e.type===`active`&&Array.isArray(e.activeFlags)&&e.activeFlags.every(e=>e===`waitingOnApproval`||e===`waitingOnUserInput`)}function fT(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function pT(e){return!fT(e)||!fT(e.activities)||![`chatId`,`treeId`,`path`,`parentChatId`,`declarationName`].every(t=>typeof e[t]==`string`)||typeof e.state!=`string`||!Object.hasOwn(oT,e.state)?!1:Object.entries(e.activities).every(([e,t])=>Object.hasOwn(sT,e)&&fT(t)&&t.type===e&&typeof t.at==`number`&&Number.isFinite(t.at)&&(t.outcome===void 0||[`completed`,`failed`,`cancelled`].includes(t.outcome))&&[`id`,`actorPath`,`targetPath`,`streamId`].every(e=>typeof t[e]==`string`))}var mT=(0,H.createContext)(null);function hT(){let e=(0,H.use)(mT);if(!e)throw Error(`History.* parts must be rendered inside <History.Root>.`);return e}function gT({activeChatId:e,onSelect:t,className:n,children:r}){let i=(0,H.useMemo)(()=>({activeChatId:e,onSelect:t}),[e,t]);return(0,U.jsx)(mT.Provider,{value:i,children:(0,U.jsx)(`div`,{className:Z(`flex min-h-0 flex-col gap-1`,n),children:r})})}function _T({className:e,children:t}){return(0,U.jsx)(`div`,{className:Z(`group/history-item relative`,e),children:t})}function vT({history:e,className:t,children:n}){let{activeChatId:r,onSelect:i}=hT(),a=r===e.chatId;return(0,U.jsx)(`button`,{type:`button`,"aria-current":a?`true`:void 0,onClick:()=>i(e),className:Z(`flex w-full items-center gap-2 rounded-lg px-2 py-1.5 text-left text-sm transition-colors`,a?`bg-accent text-foreground`:`text-muted-foreground hover:bg-accent hover:text-foreground`,t),children:n})}function yT({className:e,children:t}){return(0,U.jsx)(`div`,{className:Z(`text-muted-foreground px-2 py-4 text-sm`,e),children:t})}function bT({chatId:e,status:t}){let n=`size-3.5 shrink-0`;switch(tT(aT(e,t))){case`active`:return(0,U.jsx)(Zo,{"aria-label":`Active`,className:n});case`error`:return(0,U.jsx)(Xo,{"aria-label":`Error`,className:Z(n,`text-destructive`)});case`idle`:return(0,U.jsx)(os,{"aria-label":`idle`,className:n});case`approval`:return(0,U.jsx)(Qo,{"aria-label":`Waiting on approval`,className:n});case`input`:return(0,U.jsx)(as,{"aria-label":`Waiting on user input`,className:n})}}function xT({status:e}){return(0,U.jsx)(`span`,{className:Z(`text-muted-foreground rounded-md border px-2 py-1 font-mono text-[0.6875rem] capitalize`,(e===`failed`||e===`error`)&&`text-destructive border-destructive/30`),children:e})}var ST=new Intl.DateTimeFormat(void 0,{dateStyle:`medium`,timeStyle:`short`});function CT(e){return ST.format(new Date(e))}var wT={Root:gT,Item:_T,ItemTrigger:vT,Empty:yT},TT=s((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===O?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case _:return`Fragment`;case y:return`Profiler`;case v:return`StrictMode`;case C:return`Suspense`;case w:return`SuspenseList`;case D:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case g:return`Portal`;case x:return e.displayName||`Context`;case b:return(e._context.displayName||`Context`)+`.Consumer`;case S:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case T:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case E:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===_)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===E)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=k.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(A.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){N||(N=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return P[e]||(P[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:h,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var p=n.children;if(p!==void 0)if(o)if(j(p)){for(o=0;o<p.length;o++)f(p[o]);Object.freeze&&Object.freeze(p)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else f(p);if(A.call(n,`key`)){p=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,L[p+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
267
+ let props = %s;
268
+ <%s {...props} />
269
+ React keys must be passed directly to JSX without using spread:
270
+ let props = %s;
271
+ <%s key={someKey} {...props} />`,o,p,m,p),L[p+o]=!0)}if(p=null,i!==void 0&&(r(i),p=``+i),s(n)&&(r(n.key),p=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return p&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,p,i,a(),l,d)}function f(e){p(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===E&&(e._payload.status===`fulfilled`?p(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function p(e){return typeof e==`object`&&!!e&&e.$$typeof===h}var m=Fe(),h=Symbol.for(`react.transitional.element`),g=Symbol.for(`react.portal`),_=Symbol.for(`react.fragment`),v=Symbol.for(`react.strict_mode`),y=Symbol.for(`react.profiler`),b=Symbol.for(`react.consumer`),x=Symbol.for(`react.context`),S=Symbol.for(`react.forward_ref`),C=Symbol.for(`react.suspense`),w=Symbol.for(`react.suspense_list`),T=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),D=Symbol.for(`react.activity`),O=Symbol.for(`react.client.reference`),k=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,j=Array.isArray,M=console.createTask?console.createTask:function(){return null};m={react_stack_bottom_frame:function(e){return e()}};var N,P={},F=m.react_stack_bottom_frame.bind(m,o)(),I=M(i(o)),L={};e.Fragment=_,e.jsxDEV=function(e,t,n,r){var a=1e4>k.recentlyCreatedOwnerStacks++;return d(e,t,n,r,a?Error(`react-stack-top-frame`):F,a?M(i(e)):I)}})()})),ET=s(((e,t)=>{t.exports=TT()})),Q=ET(),DT=`/Users/ezzabuzaid/Desktop/January/deepagents/packages/devtool/host/ui/src/app/sidebar.tsx`;function OT(){return(0,Q.jsxDEV)(Hw,{collapsible:`offcanvas`,variant:`inset`,children:[(0,Q.jsxDEV)(Gw,{children:(0,Q.jsxDEV)(`div`,{className:`flex h-8 items-center justify-between gap-2 px-2`,children:[(0,Q.jsxDEV)(`span`,{className:`text-sm font-semibold`,children:`Zukhruf Devtool`},void 0,!1,{fileName:DT,lineNumber:44,columnNumber:11},this),(0,Q.jsxDEV)(Uw,{"aria-label":`Collapse sidebar`,title:`Collapse sidebar`},void 0,!1,{fileName:DT,lineNumber:45,columnNumber:11},this)]},void 0,!0,{fileName:DT,lineNumber:43,columnNumber:9},this)},void 0,!1,{fileName:DT,lineNumber:42,columnNumber:7},this),(0,Q.jsxDEV)(Kw,{children:[(0,Q.jsxDEV)(AT,{},void 0,!1,{fileName:DT,lineNumber:52,columnNumber:9},this),(0,Q.jsxDEV)(jT,{},void 0,!1,{fileName:DT,lineNumber:53,columnNumber:9},this)]},void 0,!0,{fileName:DT,lineNumber:51,columnNumber:7},this)]},void 0,!0,{fileName:DT,lineNumber:41,columnNumber:5},this)}function kT({iconOnly:e=!1}){let t=Pi(),n=()=>t(`/chat?chatId=${encodeURIComponent(crypto.randomUUID())}`);return e?(0,Q.jsxDEV)(mC,{"aria-label":`New chat`,className:`size-7`,size:`icon`,title:`New chat`,type:`button`,variant:`ghost`,onClick:n,children:(0,Q.jsxDEV)(ps,{className:`size-4`},void 0,!1,{fileName:DT,lineNumber:75,columnNumber:9},this)},void 0,!1,{fileName:DT,lineNumber:66,columnNumber:7},this):(0,Q.jsxDEV)(Zw,{children:(0,Q.jsxDEV)($w,{onClick:n,tooltip:`New chat`,children:[(0,Q.jsxDEV)(ps,{},void 0,!1,{fileName:DT,lineNumber:83,columnNumber:9},this),(0,Q.jsxDEV)(`span`,{children:`New Chat`},void 0,!1,{fileName:DT,lineNumber:84,columnNumber:9},this)]},void 0,!0,{fileName:DT,lineNumber:82,columnNumber:7},this)},void 0,!1,{fileName:DT,lineNumber:81,columnNumber:5},this)}function AT(){let{discovery:e}=ra();return(0,Q.jsxDEV)(`nav`,{"aria-label":`Devtool views`,children:(0,Q.jsxDEV)(qw,{children:(0,Q.jsxDEV)(Yw,{children:(0,Q.jsxDEV)(Xw,{children:[(0,Q.jsxDEV)(kT,{},void 0,!1,{fileName:DT,lineNumber:97,columnNumber:13},this),(0,Q.jsxDEV)(Zw,{children:(0,Q.jsxDEV)($w,{render:(0,Q.jsxDEV)(fo,{to:`/history`},void 0,!1,{fileName:DT,lineNumber:99,columnNumber:42},this),children:[(0,Q.jsxDEV)(us,{},void 0,!1,{fileName:DT,lineNumber:100,columnNumber:17},this),(0,Q.jsxDEV)(`span`,{children:`History`},void 0,!1,{fileName:DT,lineNumber:101,columnNumber:17},this)]},void 0,!0,{fileName:DT,lineNumber:99,columnNumber:15},this)},void 0,!1,{fileName:DT,lineNumber:98,columnNumber:13},this),e?.capabilities.schedules?(0,Q.jsxDEV)(Zw,{children:(0,Q.jsxDEV)($w,{render:(0,Q.jsxDEV)(fo,{to:`/scheduled/tasks`},void 0,!1,{fileName:DT,lineNumber:106,columnNumber:44},this),children:[(0,Q.jsxDEV)(Ko,{},void 0,!1,{fileName:DT,lineNumber:107,columnNumber:19},this),(0,Q.jsxDEV)(`span`,{children:`Scheduled`},void 0,!1,{fileName:DT,lineNumber:108,columnNumber:19},this)]},void 0,!0,{fileName:DT,lineNumber:106,columnNumber:17},this)},void 0,!1,{fileName:DT,lineNumber:105,columnNumber:15},this):null]},void 0,!0,{fileName:DT,lineNumber:96,columnNumber:11},this)},void 0,!1,{fileName:DT,lineNumber:95,columnNumber:9},this)},void 0,!1,{fileName:DT,lineNumber:94,columnNumber:7},this)},void 0,!1,{fileName:DT,lineNumber:93,columnNumber:5},this)}function jT(){let e=Pi(),{discovery:t,history:n,historyError:r}=ra(),i=na().at(-1)?.loaderData,a=i?.conversation?.chatId??i?.chatId,o=(0,H.useCallback)(t=>e(Zt(`/chat/:sessionId`,{sessionId:t.chatId})),[e]);return(0,Q.jsxDEV)(qw,{children:[(0,Q.jsxDEV)(Jw,{children:[(0,Q.jsxDEV)(`span`,{children:`Runs`},void 0,!1,{fileName:DT,lineNumber:134,columnNumber:9},this),(0,Q.jsxDEV)(`span`,{className:`ml-auto font-mono`,children:n.length},void 0,!1,{fileName:DT,lineNumber:135,columnNumber:9},this)]},void 0,!0,{fileName:DT,lineNumber:133,columnNumber:7},this),(0,Q.jsxDEV)(Yw,{children:(0,Q.jsxDEV)(wT.Root,{activeChatId:a,onSelect:o,children:r&&n.length===0?(0,Q.jsxDEV)(wT.Empty,{children:`Runs unavailable`},void 0,!1,{fileName:DT,lineNumber:140,columnNumber:13},this):n.length===0?(0,Q.jsxDEV)(wT.Empty,{children:`No conversations yet`},void 0,!1,{fileName:DT,lineNumber:142,columnNumber:13},this):n.map(e=>{let n=a===e.chatId;return(0,Q.jsxDEV)(wT.Item,{className:Z(`hover:bg-accent flex items-center rounded-lg transition-colors`,n&&`bg-accent`),children:[(0,Q.jsxDEV)(wT.ItemTrigger,{history:e,className:`min-w-0 flex-1 hover:bg-transparent`,children:[(0,Q.jsxDEV)(bT,{chatId:e.chatId,status:e.status},void 0,!1,{fileName:DT,lineNumber:158,columnNumber:21},this),(0,Q.jsxDEV)(`span`,{className:`text-foreground truncate`,title:e.title??e.chatId,children:e.title??e.chatId},void 0,!1,{fileName:DT,lineNumber:162,columnNumber:21},this)]},void 0,!0,{fileName:DT,lineNumber:154,columnNumber:19},this),t?.capabilities.traces?(0,Q.jsxDEV)(fo,{"aria-label":`View traces for ${e.title??e.chatId}`,title:`View traces`,to:Zt(`/history/:userId/:chatId/traces`,{chatId:e.chatId,userId:e.userId}),className:({isActive:e})=>Z(`text-muted-foreground hover:text-foreground focus-visible:ring-ring inline-flex size-8 shrink-0 items-center justify-center rounded-lg focus-visible:ring-2 focus-visible:outline-none`,e&&`text-foreground`),children:(0,Q.jsxDEV)(rs,{"aria-hidden":`true`,className:`size-3.5`},void 0,!1,{fileName:DT,lineNumber:184,columnNumber:23},this)},void 0,!1,{fileName:DT,lineNumber:170,columnNumber:21},this):null]},`${e.userId}:${e.chatId}`,!0,{fileName:DT,lineNumber:147,columnNumber:17},this)})},void 0,!1,{fileName:DT,lineNumber:138,columnNumber:9},this)},void 0,!1,{fileName:DT,lineNumber:137,columnNumber:7},this)]},void 0,!0,{fileName:DT,lineNumber:132,columnNumber:5},this)}var MT=`/Users/ezzabuzaid/Desktop/January/deepagents/packages/devtool/host/ui/src/app/layout.tsx`;function NT({request:e}){return Ao(e.signal)}function PT(){let e=document.cookie.split(`; `).find(e=>e.startsWith(`${jw}=`));return!e||e.split(`=`)[1]===`true`}function FT(){let[e]=(0,H.useState)(PT),{discovery:t,history:n}=ra(),{revalidate:r}=ta(),i=(0,H.useCallback)(e=>{if(e.type===`ready`){r(),ko.invalidateQueries({queryKey:[`schedules`]});return}if(e.resource===`schedule-task`||e.resource===`schedule-run`){ko.invalidateQueries({predicate:({queryKey:t})=>t[0]===`schedules`&&(e.resource===`schedule-task`?t[1]===`tasks`:t[1]!==`tasks`)});return}lT(e)&&(e.child||(e.status.type!==`active`||!n.some(({chatId:t})=>t===e.id))&&r())},[n,r]);return(0,Q.jsxDEV)(iT,{href:t?.capabilities.events.href,onEvent:i,history:n,children:(0,Q.jsxDEV)(zw,{defaultOpen:e,className:`h-screen min-h-0`,style:{"--sidebar-width":`18rem`},children:[(0,Q.jsxDEV)(OT,{},void 0,!1,{fileName:MT,lineNumber:83,columnNumber:9},this),(0,Q.jsxDEV)(Ww,{className:`min-h-0`,children:[(0,Q.jsxDEV)(IT,{},void 0,!1,{fileName:MT,lineNumber:85,columnNumber:11},this),(0,Q.jsxDEV)(`div`,{className:`min-h-0 flex-1 overflow-auto`,children:(0,Q.jsxDEV)(ha,{},void 0,!1,{fileName:MT,lineNumber:87,columnNumber:13},this)},void 0,!1,{fileName:MT,lineNumber:86,columnNumber:11},this)]},void 0,!0,{fileName:MT,lineNumber:84,columnNumber:9},this)]},void 0,!0,{fileName:MT,lineNumber:78,columnNumber:7},this)},void 0,!1,{fileName:MT,lineNumber:73,columnNumber:5},this)}function IT(){let{isMobile:e,state:t}=Rw();return(0,Q.jsxDEV)(`div`,{className:`flex h-9 shrink-0 items-center gap-1 px-2`,children:[e||t===`collapsed`?(0,Q.jsxDEV)(Uw,{"aria-label":`Open sidebar`,title:`Open sidebar`},void 0,!1,{fileName:MT,lineNumber:100,columnNumber:9},this):null,t===`collapsed`?(0,Q.jsxDEV)(kT,{iconOnly:!0},void 0,!1,{fileName:MT,lineNumber:102,columnNumber:32},this):null]},void 0,!0,{fileName:MT,lineNumber:98,columnNumber:5},this)}var LT=`/Users/ezzabuzaid/Desktop/January/deepagents/packages/devtool/host/ui/src/routes/history.tsx`;async function RT({params:e,request:t}){let n=await Ao(t.signal);return{...n,conversation:n.history.find(({chatId:t,userId:n})=>t===e.chatId&&n===e.userId)??n.history[0]}}function zT(){let{conversation:e}=ra();return e?(0,Q.jsxDEV)(BT,{conversation:e},void 0,!1,{fileName:LT,lineNumber:29,columnNumber:5},this):null}function BT({conversation:e}){let t=aT(e.chatId,e.status);return(0,Q.jsxDEV)(`div`,{className:`max-w-2xl p-8`,children:[(0,Q.jsxDEV)(`div`,{className:`flex items-start justify-between gap-6 border-b pb-5`,children:[(0,Q.jsxDEV)(`div`,{className:`min-w-0`,children:[(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground mb-1 text-xs font-medium`,children:`Conversation`},void 0,!1,{fileName:LT,lineNumber:46,columnNumber:11},this),(0,Q.jsxDEV)(`h2`,{className:`truncate text-xl font-semibold tracking-tight`,children:e.title??e.chatId},void 0,!1,{fileName:LT,lineNumber:49,columnNumber:11},this)]},void 0,!0,{fileName:LT,lineNumber:45,columnNumber:9},this),(0,Q.jsxDEV)(xT,{status:tT(t)},void 0,!1,{fileName:LT,lineNumber:53,columnNumber:9},this)]},void 0,!0,{fileName:LT,lineNumber:44,columnNumber:7},this),(0,Q.jsxDEV)(`dl`,{className:`grid grid-cols-[7rem_1fr] gap-x-5 gap-y-3 py-5 text-sm`,children:[(0,Q.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:`User`},void 0,!1,{fileName:LT,lineNumber:56,columnNumber:9},this),(0,Q.jsxDEV)(`dd`,{className:`font-mono text-xs`,children:e.userId},void 0,!1,{fileName:LT,lineNumber:57,columnNumber:9},this),(0,Q.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:`Chat`},void 0,!1,{fileName:LT,lineNumber:58,columnNumber:9},this),(0,Q.jsxDEV)(`dd`,{className:`truncate font-mono text-xs`,children:e.chatId},void 0,!1,{fileName:LT,lineNumber:59,columnNumber:9},this),(0,Q.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:`Messages`},void 0,!1,{fileName:LT,lineNumber:60,columnNumber:9},this),(0,Q.jsxDEV)(`dd`,{children:e.messageCount},void 0,!1,{fileName:LT,lineNumber:61,columnNumber:9},this),(0,Q.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:`Updated`},void 0,!1,{fileName:LT,lineNumber:62,columnNumber:9},this),(0,Q.jsxDEV)(`dd`,{children:CT(e.updatedAt)},void 0,!1,{fileName:LT,lineNumber:63,columnNumber:9},this)]},void 0,!0,{fileName:LT,lineNumber:55,columnNumber:7},this),(0,Q.jsxDEV)(cT,{treeId:e.chatId,snapshot:e.children},void 0,!1,{fileName:LT,lineNumber:65,columnNumber:7},this)]},void 0,!0,{fileName:LT,lineNumber:43,columnNumber:5},this)}var VT=u(s(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define(`cronstrue`,[],r):typeof e==`object`?e.cronstrue=r():n.cronstrue=r()})(globalThis,()=>(()=>{var e={949(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.CronParser=void 0;var r=n(515);t.CronParser=function(){function e(e,t,n){t===void 0&&(t=!0),n===void 0&&(n=!1),this.expression=e,this.dayOfWeekStartIndexZero=t,this.monthStartIndexZero=n}return e.prototype.parse=function(){var e,t=this.expression??``;if(t===`@reboot`)return e=[`@reboot`,``,``,``,``,``,``],e;if(t.startsWith(`@`)){var n=this.parseSpecial(this.expression);e=this.extractParts(n)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},e.prototype.parseSpecial=function(e){var t={"@yearly":`0 0 1 1 *`,"@annually":`0 0 1 1 *`,"@monthly":`0 0 1 * *`,"@weekly":`0 0 * * 0`,"@daily":`0 0 * * *`,"@midnight":`0 0 * * *`,"@hourly":`0 * * * *`,"@reboot":`@reboot`}[e];if(!t)throw Error(`Unknown special expression.`);return t},e.prototype.extractParts=function(e){if(!this.expression)throw Error(`cron expression is empty`);for(var t=e.trim().split(/[ ]+/),n=0;n<t.length;n++)if(t[n].includes(`,`)){var r=t[n].split(`,`).map(function(e){return e.trim()}).filter(function(e){return e!==``}).map(function(e){return isNaN(Number(e))?e:Number(e)}).filter(function(e){return e!==null&&e!==``});r.length===0&&r.push(`*`),r.sort(function(e,t){return e!==null&&t!==null?e-t:0}),t[n]=r.map(function(e){return e===null?``:e.toString()}).join(`,`)}if(t.length<5)throw Error(`Expression has only ${t.length} part${t.length==1?``:`s`}. At least 5 parts are required.`);if(t.length==5)t.unshift(``),t.push(``);else if(t.length==6)/\d{4}$/.test(t[5])||t[4]==`?`||t[2]==`?`?t.unshift(``):t.push(``);else if(t.length>7)throw Error(`Expression has ${t.length} parts; too many!`);return t},e.prototype.normalize=function(e){var t=this;if(e[3]=e[3].replace(`?`,`*`),e[5]=e[5].replace(`?`,`*`),e[2]=e[2].replace(`?`,`*`),e[0].indexOf(`0/`)==0&&(e[0]=e[0].replace(`0/`,`*/`)),e[1].indexOf(`0/`)==0&&(e[1]=e[1].replace(`0/`,`*/`)),e[2].indexOf(`0/`)==0&&(e[2]=e[2].replace(`0/`,`*/`)),e[3].indexOf(`1/`)==0&&(e[3]=e[3].replace(`1/`,`*/`)),e[4].indexOf(`1/`)==0&&(e[4]=e[4].replace(`1/`,`*/`)),e[6].indexOf(`1/`)==0&&(e[6]=e[6].replace(`1/`,`*/`)),e[5]=e[5].replace(/(^\d)|([^#/\s]\d)/g,function(e){var n=e.replace(/\D/,``),r=n;return t.dayOfWeekStartIndexZero?n==`7`&&(r=`0`):r=(parseInt(n)-1).toString(),e.replace(n,r)}),e[5]==`L`&&(e[5]=`6`),e[3]==`?`&&(e[3]=`*`),e[3].indexOf(`W`)>-1&&(e[3].indexOf(`,`)>-1||e[3].indexOf(`-`)>-1))throw Error(`The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.`);var n={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in n)e[5]=e[5].replace(new RegExp(r,`gi`),n[r].toString());e[4]=e[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(e){var n=e.replace(/\D/,``),r=n;return t.monthStartIndexZero&&(r=(parseInt(n)+1).toString()),e.replace(n,r)});var i={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var a in i)e[4]=e[4].replace(new RegExp(a,`gi`),i[a].toString());e[0]==`0`&&(e[0]=``),!/\*|\-|\,|\//.test(e[2])&&(/\*|\//.test(e[1])||/\*|\//.test(e[0]))&&(e[2]+=`-${e[2]}`);for(var o=0;o<e.length;o++)if(e[o].indexOf(`,`)!=-1&&(e[o]=e[o].split(`,`).filter(function(e){return e!==``}).join(`,`)||`*`),e[o]==`*/1`&&(e[o]=`*`),e[o].indexOf(`/`)>-1&&!/^\*|\-|\,/.test(e[o])){var s=null;switch(o){case 4:s=`12`;break;case 5:s=`6`;break;case 6:s=`9999`;break;default:s=null;break}if(s!==null){var c=e[o].split(`/`);e[o]=`${c[0]}-${s}/${c[1]}`}}},e.prototype.validate=function(e){var t=`0-9,\\-*/`;this.validateOnlyExpectedCharactersFound(e[0],t),this.validateOnlyExpectedCharactersFound(e[1],t),this.validateOnlyExpectedCharactersFound(e[2],t),this.validateOnlyExpectedCharactersFound(e[3],`0-9,\\-*/LW`),this.validateOnlyExpectedCharactersFound(e[4],t),this.validateOnlyExpectedCharactersFound(e[5],`0-9,\\-*/L#`),this.validateOnlyExpectedCharactersFound(e[6],t),this.validateAnyRanges(e)},e.prototype.validateAnyRanges=function(e){r.default.secondRange(e[0]),r.default.minuteRange(e[1]),r.default.hourRange(e[2]),r.default.dayOfMonthRange(e[3]),r.default.monthRange(e[4],this.monthStartIndexZero),r.default.dayOfWeekRange(e[5],this.dayOfWeekStartIndexZero)},e.prototype.validateOnlyExpectedCharactersFound=function(e,t){var n=e.match(RegExp(`[^${t}]+`,`gi`));if(n&&n.length)throw Error(`Expression contains invalid values: '${n.toString()}'`)},e}()},333(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ExpressionDescriptor=void 0;var r=n(823),i=n(949);t.ExpressionDescriptor=function(){function e(t,n){if(this.expression=t,this.options=n,this.expressionParts=[,,,,,],!this.options.locale&&e.defaultLocale&&(this.options.locale=e.defaultLocale),!e.locales[this.options.locale]){var r=Object.keys(e.locales)[0];console.warn(`Locale '${this.options.locale}' could not be found; falling back to '${r}'.`),this.options.locale=r}this.i18n=e.locales[this.options.locale],n.use24HourTimeFormat===void 0&&(n.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return e.toString=function(t,n){var r=n===void 0?{}:n,i=r.throwExceptionOnParseError,a=i===void 0||i,o=r.verbose,s=o!==void 0&&o,c=r.dayOfWeekStartIndexZero,l=c===void 0||c,u=r.monthStartIndexZero,d=u!==void 0&&u,f=r.use24HourTimeFormat,p=r.trimHoursLeadingZero,m=p!==void 0&&p,h=r.locale,g=h===void 0?null:h,_=r.logicalAndDayFields,v={throwExceptionOnParseError:a,verbose:s,dayOfWeekStartIndexZero:l,monthStartIndexZero:d,use24HourTimeFormat:f,trimHoursLeadingZero:m,locale:g,logicalAndDayFields:_!==void 0&&_};return v.tzOffset&&console.warn(`'tzOffset' option has been deprecated and is no longer supported.`),new e(t,v).getFullDescription()},e.initialize=function(t,n){n===void 0&&(n=`en`),e.specialCharacters=[`/`,`-`,`,`,`*`],e.defaultLocale=n,t.load(e.locales)},e.prototype.getFullDescription=function(){var e,t=``;try{var n=new i.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);if(this.expressionParts=n.parse(),this.expressionParts[0]===`@reboot`)return(e=this.i18n).atReboot?.call(e)||`Run once, at startup`;var r=this.getTimeOfDayDescription(),a=this.getDayOfMonthDescription(),o=this.getMonthDescription(),s=this.getDayOfWeekDescription(),c=this.getYearDescription();t+=r+a+s+o+c,t=this.transformVerbosity(t,!!this.options.verbose),t=t.charAt(0).toLocaleUpperCase()+t.substr(1)}catch(e){if(!this.options.throwExceptionOnParseError)t=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw`${e}`}return t},e.prototype.getTimeOfDayDescription=function(){var t=this.expressionParts[0],n=this.expressionParts[1],i=this.expressionParts[2],a=``;if(!r.StringUtilities.containsAny(n,e.specialCharacters)&&!r.StringUtilities.containsAny(i,e.specialCharacters)&&!r.StringUtilities.containsAny(t,e.specialCharacters))a+=this.i18n.atSpace()+this.formatTime(i,n,t);else if(!t&&n.indexOf(`-`)>-1&&!(n.indexOf(`,`)>-1)&&!(n.indexOf(`/`)>-1)&&!r.StringUtilities.containsAny(i,e.specialCharacters)){var o=n.split(`-`);a+=r.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(i,o[0],``),this.formatTime(i,o[1],``))}else if(!t&&i.indexOf(`,`)>-1&&i.indexOf(`-`)==-1&&i.indexOf(`/`)==-1&&!r.StringUtilities.containsAny(n,e.specialCharacters)){var s=i.split(`,`);a+=this.i18n.at();for(var c=0;c<s.length;c++)a&&(a+=` `),a+=this.formatTime(s[c],n,``),c<s.length-2&&(a+=`,`),c==s.length-2&&(a+=this.i18n.spaceAnd())}else{var l=this.getSecondsDescription(),u=this.getMinutesDescription(),d=this.getHoursDescription();if(a+=l,a&&u&&(a+=`, `),a+=u,u===d)return a;a&&d&&(a+=`, `),a+=d}return a},e.prototype.getSecondsDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Seconds(t),t)},function(t){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(t){return t==`0`?``:parseInt(t)<20?e.i18n.atX0SecondsPastTheMinute(t):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(t)})},e.prototype.getMinutesDescription=function(){var e=this,t=this.expressionParts[0],n=this.expressionParts[2];return this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(e){return e},function(t){return r.StringUtilities.format(e.i18n.everyX0Minutes(t),t)},function(t){return e.i18n.minutesX0ThroughX1PastTheHour()},function(r){var i;try{return r==`0`&&n.indexOf(`/`)==-1&&t==``?e.i18n.everyHour():r==`0`?(i=e.i18n).onTheHour?.call(i)||e.i18n.atX0MinutesPastTheHour(r):parseInt(r)<20?e.i18n.atX0MinutesPastTheHour(r):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(r)}catch{return e.i18n.atX0MinutesPastTheHour(r)}})},e.prototype.getHoursDescription=function(){var e=this,t=this.expressionParts[2],n=0,i=[];t.split(`/`)[0].split(`,`).forEach(function(e){var t=e.split(`-`);t.length===2&&i.push({value:t[1],index:n+1}),n+=t.length});var a=0;return this.getSegmentDescription(t,this.i18n.everyHour(),function(t){var n=i.find(function(e){return e.value===t&&e.index===a})&&e.expressionParts[1]!==`0`;return a++,n?e.formatTime(t,`59`,``):e.formatTime(t,`0`,``)},function(t){return r.StringUtilities.format(e.i18n.everyX0Hours(t),t)},function(t){return e.i18n.betweenX0AndX1()},function(t){return e.i18n.atX0()})},e.prototype.getDayOfWeekDescription=function(){var e=this,t=this.i18n.daysOfTheWeek(),n=null;return n=this.expressionParts[5]==`*`?``:this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,r){var i=n;n.indexOf(`#`)>-1?i=n.substring(0,n.indexOf(`#`)):n.indexOf(`L`)>-1&&(i=i.replace(`L`,``));var a=parseInt(i),o=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(r)[a]:t[a];if(n.indexOf(`#`)>-1){var s=null,c=n.substring(n.indexOf(`#`)+1),l=n.substring(0,n.indexOf(`#`));switch(c){case`1`:s=e.i18n.first(l);break;case`2`:s=e.i18n.second(l);break;case`3`:s=e.i18n.third(l);break;case`4`:s=e.i18n.fourth(l);break;case`5`:s=e.i18n.fifth(l);break}o=s+` `+o}return o},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(t),t)},function(t){var n=t.substring(0,t.indexOf(`-`));return e.expressionParts[3]==`*`?e.i18n.commaX0ThroughX1(n):e.i18n.commaAndX0ThroughX1(n)},function(t){var n=null;if(t.indexOf(`#`)>-1){var r=t.substring(t.indexOf(`#`)+1),i=t.substring(0,t.indexOf(`#`));n=e.i18n.commaOnThe(r,i).trim()+e.i18n.spaceX0OfTheMonth()}else n=t.indexOf(`L`)>-1?e.i18n.commaOnTheLastX0OfTheMonth(t.replace(`L`,``)):e.expressionParts[3]==`*`||e.options.logicalAndDayFields?e.i18n.commaOnlyOnX0(t):e.i18n.commaAndOnX0();return n}),n},e.prototype.getMonthDescription=function(){var e=this,t=this.i18n.monthsOfTheYear();return this.getSegmentDescription(this.expressionParts[4],``,function(n,r){return r&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(r)[parseInt(n)-1]:t[parseInt(n)-1]},function(t){return parseInt(t)==1?``:r.StringUtilities.format(e.i18n.commaEveryX0Months(t),t)},function(t){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()})},e.prototype.getDayOfMonthDescription=function(){var e=this,t=null,n=this.expressionParts[3];switch(n){case`L`:t=this.i18n.commaOnTheLastDayOfTheMonth();break;case`WL`:case`LW`:t=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var i=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(i){var a=parseInt(i[0].replace(`W`,``)),o=a==1?this.i18n.firstWeekday():r.StringUtilities.format(this.i18n.weekdayNearestDayX0(),a.toString());t=r.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),o);break}else{var s=n.match(/L-(\d{1,2})/);if(s){var c=s[1];t=r.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(c),c);break}else if(n==`*`&&this.expressionParts[5]!=`*`)return``;else t=this.getSegmentDescription(n,this.i18n.commaEveryDay(),function(t){return t==`L`?e.i18n.lastDay():e.i18n.dayX0?r.StringUtilities.format(e.i18n.dayX0(),t):t},function(t){return t==`1`?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(t)},function(t){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(t)},function(t){return e.i18n.commaOnDayX0OfTheMonth(t)});break}}return t},e.prototype.getYearDescription=function(){var e=this;return this.getSegmentDescription(this.expressionParts[6],``,function(e){return/^\d+$/.test(e)?new Date(parseInt(e),1).getFullYear().toString():e},function(t){return r.StringUtilities.format(e.i18n.commaEveryX0Years(t),t)},function(t){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(t){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()})},e.prototype.getSegmentDescription=function(e,t,n,i,a,o){var s=null,c=e.indexOf(`/`)>-1,l=e.indexOf(`-`)>-1,u=e.indexOf(`,`)>-1;if(!e)s=``;else if(e===`*`)s=t;else if(!c&&!l&&!u)s=r.StringUtilities.format(o(e),n(e));else if(u){for(var d=e.split(`,`),f=``,p=this.i18n.spaceAnd(),m=0;m<d.length;m++)if(m>0&&d.length>2&&(f+=`,`,m<d.length-1&&(f+=` `)),m>0&&d.length>1&&(m==d.length-1||d.length==2)&&(f+=p==`,`&&d.length>2?` `:`${p} `),d[m].indexOf(`/`)>-1||d[m].indexOf(`-`)>-1){var h=d[m].indexOf(`-`)>-1&&d[m].indexOf(`/`)==-1,g=this.getSegmentDescription(d[m],t,n,i,h?this.i18n.commaX0ThroughX1:a,o);h&&(g=g.replace(`, `,``)),f+=g}else if(!c)f+=n(d[m]);else{var _=this.getSegmentDescription(d[m],t,n,i,a,o);_&&_.startsWith(`, `)&&(_=_.substring(2)),f+=_}s=c?f:r.StringUtilities.format(o(e),f)}else if(c){var d=e.split(`/`);if(s=r.StringUtilities.format(i(d[1]),d[1]),d[0].indexOf(`-`)>-1){var v=this.generateRangeSegmentDescription(d[0],a,n);v.indexOf(`, `)!=0&&(s+=`, `),s+=v}else if(d[0].indexOf(`*`)==-1){var y=r.StringUtilities.format(o(d[0]),n(d[0]));y=y.replace(`, `,``),s+=r.StringUtilities.format(this.i18n.commaStartingX0(),y)}}else l&&(s=this.generateRangeSegmentDescription(e,a,n));return s},e.prototype.generateRangeSegmentDescription=function(e,t,n){var i=``,a=e.split(`-`),o=n(a[0],1),s=n(a[1],2),c=t(e);return i+=r.StringUtilities.format(c,o,s),i},e.prototype.formatTime=function(e,t,n){var r=0,i=0,a=parseInt(e)+r,o=parseInt(t)+i;o>=60?(o-=60,a+=1):o<0&&(o+=60,--a),a>=24?a-=24:a<0&&(a=24+a);var s=``,c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),s=c?`${this.getPeriod(a)} `:` ${this.getPeriod(a)}`,a>12&&(a-=12),a===0&&(a=12));var l=``;n&&(l=`:${(`00`+n).substring(n.length)}`);var u=a.toString(),d=(`00`+u).substring(u.length),f=o.toString(),p=(`00`+f).substring(f.length),m=this.options.trimHoursLeadingZero?u:d;return`${c?s:``}${m}:${p}${l}${c?``:s}`},e.prototype.transformVerbosity=function(e,t){if(!t&&(e=e.replace(RegExp(`, ${this.i18n.everyMinute()}`,`g`),``),e=e.replace(RegExp(`, ${this.i18n.everyHour()}`,`g`),``),e=e.replace(new RegExp(this.i18n.commaEveryDay(),`g`),``),e=e.replace(/\, ?$/,``),this.i18n.conciseVerbosityReplacements))for(var n=0,r=Object.entries(this.i18n.conciseVerbosityReplacements());n<r.length;n++){var i=r[n],a=i[0],o=i[1];e=e.replace(new RegExp(a,`g`),o)}return e},e.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||`PM`:this.i18n.am&&this.i18n.am()||`AM`},e.locales={},e}()},747(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.enLocaleLoader=void 0;var r=n(486);t.enLocaleLoader=function(){function e(){}return e.prototype.load=function(e){e.en=new r.en},e}()},486(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0,t.en=function(){function e(){}return e.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},e.prototype.atX0MinutesPastTheHourGt20=function(){return null},e.prototype.commaMonthX0ThroughMonthX1=function(){return null},e.prototype.commaYearX0ThroughYearX1=function(){return null},e.prototype.use24HourTimeFormatByDefault=function(){return!1},e.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return`An error occurred when generating the expression description. Check the cron expression syntax.`},e.prototype.everyMinute=function(){return`every minute`},e.prototype.everyHour=function(){return`every hour`},e.prototype.atSpace=function(){return`At `},e.prototype.everyMinuteBetweenX0AndX1=function(){return`Every minute between %s and %s`},e.prototype.at=function(){return`At`},e.prototype.spaceAnd=function(){return` and`},e.prototype.everySecond=function(){return`every second`},e.prototype.everyX0Seconds=function(){return`every %s seconds`},e.prototype.secondsX0ThroughX1PastTheMinute=function(){return`seconds %s through %s past the minute`},e.prototype.atX0SecondsPastTheMinute=function(){return`at %s seconds past the minute`},e.prototype.everyX0Minutes=function(){return`every %s minutes`},e.prototype.minutesX0ThroughX1PastTheHour=function(){return`minutes %s through %s past the hour`},e.prototype.atX0MinutesPastTheHour=function(){return`at %s minutes past the hour`},e.prototype.everyX0Hours=function(){return`every %s hours`},e.prototype.betweenX0AndX1=function(){return`between %s and %s`},e.prototype.atX0=function(){return`at %s`},e.prototype.commaEveryDay=function(){return`, every day`},e.prototype.commaEveryX0DaysOfTheWeek=function(){return`, every %s days of the week`},e.prototype.commaX0ThroughX1=function(){return`, %s through %s`},e.prototype.commaAndX0ThroughX1=function(){return`, %s through %s`},e.prototype.first=function(){return`first`},e.prototype.second=function(){return`second`},e.prototype.third=function(){return`third`},e.prototype.fourth=function(){return`fourth`},e.prototype.fifth=function(){return`fifth`},e.prototype.commaOnThe=function(){return`, on the `},e.prototype.spaceX0OfTheMonth=function(){return` %s of the month`},e.prototype.lastDay=function(){return`the last day`},e.prototype.commaOnTheLastX0OfTheMonth=function(){return`, on the last %s of the month`},e.prototype.commaOnlyOnX0=function(){return`, only on %s`},e.prototype.commaAndOnX0=function(){return`, and on %s`},e.prototype.commaEveryX0Months=function(){return`, every %s months`},e.prototype.commaOnlyInX0=function(){return`, only in %s`},e.prototype.commaOnTheLastDayOfTheMonth=function(){return`, on the last day of the month`},e.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return`, on the last weekday of the month`},e.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return`, %s days before the last day of the month`},e.prototype.firstWeekday=function(){return`first weekday`},e.prototype.weekdayNearestDayX0=function(){return`weekday nearest day %s`},e.prototype.commaOnTheX0OfTheMonth=function(){return`, on the %s of the month`},e.prototype.commaEveryX0Days=function(){return`, every %s days in a month`},e.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return`, between day %s and %s of the month`},e.prototype.commaOnDayX0OfTheMonth=function(){return`, on day %s of the month`},e.prototype.commaEveryHour=function(){return`, every hour`},e.prototype.commaEveryX0Years=function(){return`, every %s years`},e.prototype.commaStartingX0=function(){return`, starting %s`},e.prototype.daysOfTheWeek=function(){return[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},e.prototype.monthsOfTheYear=function(){return[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},e.prototype.atReboot=function(){return`Run once, at startup`},e.prototype.onTheHour=function(){return`on the hour`},e}()},515(e,t){Object.defineProperty(t,"__esModule",{value:!0});function n(e,t){if(!e)throw Error(t)}t.default=function(){function e(){}return e.secondRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`seconds part must be >= 0 and <= 59`)}},e.minuteRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=59,`minutes part must be >= 0 and <= 59`)}},e.hourRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=0&&i<=23,`hours part must be >= 0 and <= 23`)}},e.dayOfMonthRange=function(e){for(var t=e.split(`,`),r=0;r<t.length;r++)if(!isNaN(parseInt(t[r],10))){var i=parseInt(t[r],10);n(i>=1&&i<=31,`DOM part must be >= 1 and <= 31`)}},e.monthRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=1&&a<=12,t?`month part must be >= 0 and <= 11`:`month part must be >= 1 and <= 12`)}},e.dayOfWeekRange=function(e,t){for(var r=e.split(`,`),i=0;i<r.length;i++)if(!isNaN(parseInt(r[i],10))){var a=parseInt(r[i],10);n(a>=0&&a<=6,t?`DOW part must be >= 0 and <= 6`:`DOW part must be >= 1 and <= 7`)}},e}()},823(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtilities=void 0,t.StringUtilities=function(){function e(){}return e.format=function(e){var t=[...arguments].slice(1);return e.replace(/%s/g,function(e){return t.shift()})},e.containsAny=function(e,t){return t.some(function(t){return e.indexOf(t)>-1})},e}()}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}var r={};return(()=>{var e=r;Object.defineProperty(e,"__esModule",{value:!0}),e.toString=void 0;var t=n(333),i=n(747);t.ExpressionDescriptor.initialize(new i.enLocaleLoader),e.default=t.ExpressionDescriptor,e.toString=t.ExpressionDescriptor.toString})(),r})())}))(),1);function HT(e){return et({queryKey:[`schedules`,`tasks`,e],queryFn:e?({signal:t})=>JT(`${e}/tasks`,{signal:t}):te})}function UT(e){return et({queryKey:[`schedules`,`inbox`,e],queryFn:e?({signal:t})=>JT(`${e}/runs/inbox`,{signal:t}):te})}function WT(e,t){return et({queryKey:[`schedules`,`task-runs`,e,t],queryFn:e&&t?({signal:n})=>JT(`${e}/tasks/${t}/runs`,{signal:n}):te})}function GT(e,t){return et({queryKey:[`schedules`,`run`,e,t],queryFn:e&&t?({signal:n})=>JT(`${e}/runs/${t}`,{signal:n}):te})}function KT(e){return tt({mutationFn:async t=>{if(!e)throw Error(`Scheduled tasks are unavailable`);return qT(e,t)},onSettled:()=>ko.invalidateQueries({queryKey:[`schedules`]})})}async function qT(e,t){switch(t.kind){case`create`:return YT(`${e}/tasks`,{body:t.definition,idempotencyKey:crypto.randomUUID(),method:`POST`});case`update`:return YT(`${e}/tasks/${t.taskId}`,{body:t.definition,method:`PATCH`});case`pause`:case`resume`:case`archive`:return YT(`${e}/tasks/${t.taskId}/${t.kind}`,{method:`POST`});case`run`:return YT(`${e}/tasks/${t.taskId}/run`,{idempotencyKey:crypto.randomUUID(),method:`POST`});case`purge`:return YT(`${e}/tasks/${t.taskId}`,{method:`DELETE`});case`cancel`:case`review`:return YT(`${e}/runs/${t.runId}/${t.kind}`,{method:`POST`})}}async function JT(e,t){let n=await fetch(e,t);if(!n.ok)throw await XT(n);return n.json()}async function YT(e,t){let n=new Headers;t.body&&n.set(`content-type`,`application/json`),t.idempotencyKey&&n.set(`idempotency-key`,t.idempotencyKey);let r=await fetch(e,{body:t.body?JSON.stringify(t.body):void 0,headers:n,method:t.method});if(!r.ok)throw await XT(r);return r.status===204?void 0:r.json()}async function XT(e){let t=await e.json().catch(()=>void 0);return Error(t?.error??`Request failed: ${e.status}`)}var $=`/Users/ezzabuzaid/Desktop/January/deepagents/packages/devtool/host/ui/src/routes/scheduled.tsx`,ZT=[`all`,`active`,`paused`,`completed`,`archived`];async function QT({request:e}){let t=await Ao(e.signal);return{...t,conversation:t.history[0]}}function $T(){let e=ra().discovery?.capabilities.schedules?.href;return e?(0,Q.jsxDEV)(eE,{href:e},void 0,!1,{fileName:$,lineNumber:86,columnNumber:10},this):null}function eE({href:e}){let{runId:t,taskId:n}=Ri(),r=Mi().pathname.startsWith(`/scheduled/review`),[i,a]=(0,H.useState)(`all`),[o,s]=(0,H.useState)(``),[c,l]=(0,H.useState)(!1),u=HT(e),d=UT(e),f=KT(e),p=u.data??[],m=d.data??[],h=p.filter(e=>i===`all`||e.status===i).filter(e=>DE(e.name,o)),g=m.filter(e=>DE(xE(p,e.taskId),o)),_=u.isError||d.isError;return(0,Q.jsxDEV)(`div`,{className:`grid h-full min-h-0 grid-cols-[minmax(0,1fr)_minmax(0,1fr)]`,children:[(0,Q.jsxDEV)(`section`,{className:`flex min-h-0 flex-col border-r`,children:[(0,Q.jsxDEV)(`div`,{className:`flex flex-wrap items-center gap-1 px-4 pt-3 pb-2`,children:[(0,Q.jsxDEV)(cE,{active:r,render:(0,Q.jsxDEV)(fo,{to:`/scheduled/review`},void 0,!1,{fileName:$,lineNumber:115,columnNumber:21},this),children:[`Needs review`,m.length>0?(0,Q.jsxDEV)(TC,{className:`ml-1.5`,variant:`secondary`,children:m.length},void 0,!1,{fileName:$,lineNumber:119,columnNumber:15},this):null]},void 0,!0,{fileName:$,lineNumber:113,columnNumber:11},this),(0,Q.jsxDEV)(`span`,{className:`bg-border mx-1 h-4 w-px`},void 0,!1,{fileName:$,lineNumber:124,columnNumber:11},this),ZT.map(e=>(0,Q.jsxDEV)(cE,{active:!r&&i===e,render:(0,Q.jsxDEV)(fo,{to:`/scheduled/tasks`},void 0,!1,{fileName:$,lineNumber:129,columnNumber:23},this),onClick:()=>a(e),children:kE(e)},e,!1,{fileName:$,lineNumber:126,columnNumber:13},this)),(0,Q.jsxDEV)(mC,{className:`ml-auto shrink-0`,size:`sm`,onClick:()=>l(!0),children:[`Create `,(0,Q.jsxDEV)(Jo,{},void 0,!1,{fileName:$,lineNumber:140,columnNumber:20},this)]},void 0,!0,{fileName:$,lineNumber:135,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:112,columnNumber:9},this),(0,Q.jsxDEV)(`div`,{className:`px-4 pb-2`,children:(0,Q.jsxDEV)(`div`,{className:`relative`,children:[(0,Q.jsxDEV)(ds,{className:`text-muted-foreground pointer-events-none absolute top-1/2 left-3 size-4 -translate-y-1/2`},void 0,!1,{fileName:$,lineNumber:145,columnNumber:13},this),(0,Q.jsxDEV)(RC,{className:`rounded-full pl-9`,placeholder:r?`Search runs`:`Search scheduled tasks`,value:o,onChange:e=>s(e.target.value)},void 0,!1,{fileName:$,lineNumber:146,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:144,columnNumber:11},this)},void 0,!1,{fileName:$,lineNumber:143,columnNumber:9},this),(0,Q.jsxDEV)(`div`,{className:`min-h-0 flex-1 overflow-auto px-2 pb-6`,children:_?(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground px-2 py-6 text-sm`,children:`Scheduled tasks unavailable.`},void 0,!1,{fileName:$,lineNumber:156,columnNumber:13},this):(r?d:u).isPending?(0,Q.jsxDEV)(_E,{},void 0,!1,{fileName:$,lineNumber:160,columnNumber:13},this):r?g.length===0?(0,Q.jsxDEV)(vE,{},void 0,!1,{fileName:$,lineNumber:163,columnNumber:15},this):g.map(e=>(0,Q.jsxDEV)(sE,{to:`/scheduled/review/${e.id}`,selected:t===e.id,icon:(0,Q.jsxDEV)(hE,{status:e.status},void 0,!1,{fileName:$,lineNumber:170,columnNumber:25},this),title:xE(p,e.taskId),subtitle:`${kE(e.status)} · ${AE(e.finishedAt??e.occurrenceAt)}`},e.id,!1,{fileName:$,lineNumber:166,columnNumber:17},this)):h.length===0?(0,Q.jsxDEV)(yE,{onCreate:()=>l(!0)},void 0,!1,{fileName:$,lineNumber:179,columnNumber:13},this):h.map(e=>(0,Q.jsxDEV)(sE,{to:`/scheduled/tasks/${e.id}`,selected:n===e.id,icon:(0,Q.jsxDEV)(mE,{status:e.status},void 0,!1,{fileName:$,lineNumber:186,columnNumber:23},this),title:e.name,subtitle:SE(e)},e.id,!1,{fileName:$,lineNumber:182,columnNumber:15},this))},void 0,!1,{fileName:$,lineNumber:154,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:111,columnNumber:7},this),(0,Q.jsxDEV)(`section`,{className:`flex min-h-0 flex-col`,children:[f.isError?(0,Q.jsxDEV)(`div`,{className:`px-6 pt-4`,children:(0,Q.jsxDEV)(gC,{variant:`destructive`,children:[(0,Q.jsxDEV)(_C,{children:`Action failed`},void 0,!1,{fileName:$,lineNumber:199,columnNumber:15},this),(0,Q.jsxDEV)(vC,{children:f.error.message},void 0,!1,{fileName:$,lineNumber:200,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:198,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:197,columnNumber:11},this):null,t?(0,Q.jsxDEV)(nE,{href:e,runId:t,command:f},void 0,!1,{fileName:$,lineNumber:205,columnNumber:11},this):n?(0,Q.jsxDEV)(tE,{href:e,taskId:n,tasks:p,command:f},void 0,!1,{fileName:$,lineNumber:207,columnNumber:11},this):(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground p-8 text-sm`,children:r?`Select a run.`:`Select a scheduled task.`},void 0,!1,{fileName:$,lineNumber:214,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:195,columnNumber:7},this),(0,Q.jsxDEV)(iE,{open:c,command:f,onClose:()=>l(!1)},void 0,!1,{fileName:$,lineNumber:220,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:110,columnNumber:5},this)}function tE({href:e,taskId:t,tasks:n,command:r}){let i=Pi(),{history:a}=ra(),o=WT(e,t),s=n.find(({id:e})=>e===t);if(!s)return(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground p-8 text-sm`,children:`This scheduled task is no longer available.`},void 0,!1,{fileName:$,lineNumber:246,columnNumber:7},this);let c=TE(s.recurrence),l=s.status===`archived`,u=e=>r.mutate({kind:`update`,taskId:t,definition:e});return(0,Q.jsxDEV)(Q.Fragment,{children:[(0,Q.jsxDEV)(`div`,{className:`min-h-0 flex-1 overflow-auto px-6 pt-4 pb-6`,children:[(0,Q.jsxDEV)(`div`,{className:`flex items-center gap-1`,children:[(0,Q.jsxDEV)(pE,{status:s.status},void 0,!1,{fileName:$,lineNumber:260,columnNumber:11},this),(0,Q.jsxDEV)(rE,{task:s,command:r,onPurged:()=>i(`/scheduled/tasks`)},void 0,!1,{fileName:$,lineNumber:261,columnNumber:11},this),(0,Q.jsxDEV)(mC,{className:`size-8 rounded-full`,size:`icon`,variant:`ghost`,"aria-label":s.status===`paused`?`Resume task`:`Pause task`,disabled:l||s.status===`completed`,onClick:()=>r.mutate({kind:s.status===`paused`?`resume`:`pause`,taskId:t}),children:s.status===`paused`?(0,Q.jsxDEV)(ls,{},void 0,!1,{fileName:$,lineNumber:279,columnNumber:41},this):(0,Q.jsxDEV)(cs,{},void 0,!1,{fileName:$,lineNumber:279,columnNumber:56},this)},void 0,!1,{fileName:$,lineNumber:266,columnNumber:11},this),(0,Q.jsxDEV)(mC,{className:`size-8`,size:`icon`,variant:`ghost`,"aria-label":`Close`,onClick:()=>i(`/scheduled/tasks`),children:(0,Q.jsxDEV)(hs,{},void 0,!1,{fileName:$,lineNumber:288,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:281,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:259,columnNumber:9},this),(0,Q.jsxDEV)(`h2`,{className:`mt-1 mb-5 text-2xl`,children:s.name},void 0,!1,{fileName:$,lineNumber:291,columnNumber:9},this),(0,Q.jsxDEV)(oE,{"aria-label":`Prompt`,disabled:l,value:s.prompt,onCommit:e=>u({prompt:e})},void 0,!1,{fileName:$,lineNumber:293,columnNumber:9},this),(0,Q.jsxDEV)(uE,{children:`Details`},void 0,!1,{fileName:$,lineNumber:300,columnNumber:9},this),(0,Q.jsxDEV)(lE,{children:[(0,Q.jsxDEV)(dE,{label:`Name`,children:(0,Q.jsxDEV)(aE,{"aria-label":`Name`,disabled:l,value:s.name,onCommit:e=>u({name:e})},void 0,!1,{fileName:$,lineNumber:303,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:302,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Runs in`,children:(0,Q.jsxDEV)(fE,{"aria-label":`Runs in`,disabled:l,value:s.target.kind,onChange:e=>{let[t]=a;u({target:e.target.value===`new-conversation`||!t?{kind:`new-conversation`}:{kind:`existing-conversation`,chatId:t.chatId}})},children:[(0,Q.jsxDEV)(_w,{value:`new-conversation`,children:`New chat`},void 0,!1,{fileName:$,lineNumber:328,columnNumber:15},this),(0,Q.jsxDEV)(_w,{value:`existing-conversation`,disabled:a.length===0,children:`Existing chat`},void 0,!1,{fileName:$,lineNumber:331,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:311,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:310,columnNumber:11},this),s.target.kind===`existing-conversation`?(0,Q.jsxDEV)(dE,{label:`Chat`,children:(0,Q.jsxDEV)(fE,{"aria-label":`Chat`,disabled:l,value:s.target.chatId,onChange:e=>u({target:{kind:`existing-conversation`,chatId:e.target.value}}),children:a.map(e=>(0,Q.jsxDEV)(_w,{value:e.chatId,children:e.title??e.chatId},e.chatId,!1,{fileName:$,lineNumber:355,columnNumber:19},this))},void 0,!1,{fileName:$,lineNumber:341,columnNumber:15},this)},void 0,!1,{fileName:$,lineNumber:340,columnNumber:13},this):null]},void 0,!0,{fileName:$,lineNumber:301,columnNumber:9},this),(0,Q.jsxDEV)(uE,{children:`Frequency`},void 0,!1,{fileName:$,lineNumber:364,columnNumber:9},this),(0,Q.jsxDEV)(lE,{children:[(0,Q.jsxDEV)(dE,{label:`Repeat`,children:c?(0,Q.jsxDEV)(aE,{"aria-label":`Cron expression`,className:`w-52 text-right font-mono`,disabled:l,value:s.recurrence,onCommit:e=>u({recurrence:e})},void 0,!1,{fileName:$,lineNumber:368,columnNumber:15},this):(0,Q.jsxDEV)(`span`,{className:`text-muted-foreground font-mono text-xs`,children:s.recurrence.split(`
272
+ `).at(-1)},void 0,!1,{fileName:$,lineNumber:376,columnNumber:15},this)},void 0,!1,{fileName:$,lineNumber:366,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Reads as`,children:(0,Q.jsxDEV)(`span`,{className:`text-muted-foreground text-sm`,children:wE(s.recurrence)},void 0,!1,{fileName:$,lineNumber:382,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:381,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Timezone`,children:(0,Q.jsxDEV)(aE,{"aria-label":`Timezone`,className:`w-52 text-right`,disabled:l,value:s.timezone,onCommit:e=>u({timezone:e})},void 0,!1,{fileName:$,lineNumber:387,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:386,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Next run`,children:(0,Q.jsxDEV)(`span`,{className:`text-muted-foreground text-sm`,children:s.nextRunAt?AE(s.nextRunAt):`—`},void 0,!1,{fileName:$,lineNumber:396,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:395,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:365,columnNumber:9},this),(0,Q.jsxDEV)(`div`,{className:`mt-8 mb-2 flex items-center`,children:[(0,Q.jsxDEV)(uE,{className:`mt-0 mb-0`,children:`Previous runs`},void 0,!1,{fileName:$,lineNumber:403,columnNumber:11},this),(0,Q.jsxDEV)(`span`,{className:`text-muted-foreground ml-auto text-xs`,children:o.data?.length??0},void 0,!1,{fileName:$,lineNumber:404,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:402,columnNumber:9},this),o.isPending?(0,Q.jsxDEV)(Dw,{className:`h-10 w-full`},void 0,!1,{fileName:$,lineNumber:409,columnNumber:11},this):o.data?.length?(0,Q.jsxDEV)(`ul`,{children:o.data.map(e=>(0,Q.jsxDEV)(`li`,{children:(0,Q.jsxDEV)(fo,{to:`/scheduled/tasks/${t}/runs/${e.id}`,className:`hover:bg-accent flex w-full items-center gap-3 rounded-lg px-2 py-2 text-left`,children:[(0,Q.jsxDEV)(ns,{className:`text-muted-foreground size-4 shrink-0`},void 0,!1,{fileName:$,lineNumber:418,columnNumber:19},this),(0,Q.jsxDEV)(`span`,{className:`flex-1 truncate text-sm`,children:s.name},void 0,!1,{fileName:$,lineNumber:419,columnNumber:19},this),(0,Q.jsxDEV)(hE,{status:e.status},void 0,!1,{fileName:$,lineNumber:420,columnNumber:19},this),e.reviewStatus===`pending_review`?(0,Q.jsxDEV)(`span`,{className:`size-1.5 rounded-full bg-sky-500`,title:`Pending review`},void 0,!1,{fileName:$,lineNumber:422,columnNumber:21},this):null,(0,Q.jsxDEV)(`span`,{className:`text-muted-foreground w-16 text-right text-xs`,children:ME(e.finishedAt??e.occurrenceAt)},void 0,!1,{fileName:$,lineNumber:427,columnNumber:19},this)]},void 0,!0,{fileName:$,lineNumber:414,columnNumber:17},this)},e.id,!1,{fileName:$,lineNumber:413,columnNumber:15},this))},void 0,!1,{fileName:$,lineNumber:411,columnNumber:11},this):(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground text-sm`,children:`No runs yet.`},void 0,!1,{fileName:$,lineNumber:435,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:258,columnNumber:7},this),(0,Q.jsxDEV)(`div`,{className:`flex justify-end border-t px-6 py-3`,children:(0,Q.jsxDEV)(mC,{variant:`outline`,disabled:s.target.kind!==`existing-conversation`,onClick:()=>s.target.kind===`existing-conversation`&&i(`/chat/${encodeURIComponent(s.target.chatId)}`),children:[`Open chat `,(0,Q.jsxDEV)(ts,{},void 0,!1,{fileName:$,lineNumber:447,columnNumber:21},this)]},void 0,!0,{fileName:$,lineNumber:439,columnNumber:9},this)},void 0,!1,{fileName:$,lineNumber:438,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:257,columnNumber:5},this)}function nE({href:e,runId:t,command:n}){let r=Pi(),{taskId:i}=Ri(),a=HT(e),o=GT(e,t),s=i?`/scheduled/tasks/${i}`:`/scheduled/review`;if(o.isPending)return(0,Q.jsxDEV)(gE,{},void 0,!1,{fileName:$,lineNumber:469,columnNumber:29},this);if(o.isError||!o.data)return(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground p-8 text-sm`,children:`This run is no longer available.`},void 0,!1,{fileName:$,lineNumber:472,columnNumber:7},this);let c=o.data,l=EE(c.status);return(0,Q.jsxDEV)(Q.Fragment,{children:[(0,Q.jsxDEV)(`div`,{className:`min-h-0 flex-1 overflow-auto px-6 pt-4 pb-6`,children:[(0,Q.jsxDEV)(`div`,{className:`flex items-center gap-1`,children:[(0,Q.jsxDEV)(pE,{status:c.status},void 0,!1,{fileName:$,lineNumber:484,columnNumber:11},this),(0,Q.jsxDEV)(qC,{children:[(0,Q.jsxDEV)(JC,{render:(0,Q.jsxDEV)(mC,{className:`ml-auto size-8`,size:`icon`,variant:`ghost`,"aria-label":`Run actions`,children:(0,Q.jsxDEV)(es,{},void 0,!1,{fileName:$,lineNumber:494,columnNumber:19},this)},void 0,!1,{fileName:$,lineNumber:488,columnNumber:17},this)},void 0,!1,{fileName:$,lineNumber:486,columnNumber:13},this),(0,Q.jsxDEV)(YC,{align:`end`,children:[(0,Q.jsxDEV)(XC,{disabled:l,onClick:()=>n.mutate({kind:`cancel`,runId:t}),children:[(0,Q.jsxDEV)(Uo,{},void 0,!1,{fileName:$,lineNumber:503,columnNumber:17},this),` Cancel run`]},void 0,!0,{fileName:$,lineNumber:499,columnNumber:15},this),(0,Q.jsxDEV)(XC,{disabled:c.reviewStatus!==`pending_review`,onClick:()=>n.mutate({kind:`review`,runId:t}),children:[(0,Q.jsxDEV)(qo,{},void 0,!1,{fileName:$,lineNumber:509,columnNumber:17},this),` Mark reviewed`]},void 0,!0,{fileName:$,lineNumber:505,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:498,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:485,columnNumber:11},this),(0,Q.jsxDEV)(mC,{className:`size-8`,size:`icon`,variant:`ghost`,"aria-label":`Close`,onClick:()=>r(s),children:(0,Q.jsxDEV)(hs,{},void 0,!1,{fileName:$,lineNumber:520,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:513,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:483,columnNumber:9},this),(0,Q.jsxDEV)(`h2`,{className:`mt-1 mb-5 text-2xl`,children:xE(a.data??[],c.taskId)},void 0,!1,{fileName:$,lineNumber:523,columnNumber:9},this),(0,Q.jsxDEV)(`div`,{className:`bg-muted/40 text-muted-foreground rounded-xl px-4 py-3 text-base`,children:c.prompt},void 0,!1,{fileName:$,lineNumber:527,columnNumber:9},this),(0,Q.jsxDEV)(uE,{children:`Details`},void 0,!1,{fileName:$,lineNumber:531,columnNumber:9},this),(0,Q.jsxDEV)(lE,{children:[(0,Q.jsxDEV)(dE,{label:`Trigger`,children:c.trigger},void 0,!1,{fileName:$,lineNumber:533,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Occurrence`,children:jE(c.occurrenceAt)},void 0,!1,{fileName:$,lineNumber:534,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Started`,children:c.startedAt?jE(c.startedAt):`—`},void 0,!1,{fileName:$,lineNumber:535,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Finished`,children:c.finishedAt?jE(c.finishedAt):`—`},void 0,!1,{fileName:$,lineNumber:538,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Review`,children:CE(c.reviewStatus)},void 0,!1,{fileName:$,lineNumber:541,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:532,columnNumber:9},this),(0,Q.jsxDEV)(uE,{children:`Conversation`},void 0,!1,{fileName:$,lineNumber:544,columnNumber:9},this),(0,Q.jsxDEV)(lE,{children:[(0,Q.jsxDEV)(dE,{label:`Runs in`,children:c.target.kind===`new-conversation`?`New chat`:`Existing chat`},void 0,!1,{fileName:$,lineNumber:546,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Chat`,children:(0,Q.jsxDEV)(`span`,{className:`font-mono text-xs`,children:c.conversation?OE(c.conversation.chatId):`—`},void 0,!1,{fileName:$,lineNumber:552,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:551,columnNumber:11},this),(0,Q.jsxDEV)(dE,{label:`Turn`,children:(0,Q.jsxDEV)(`span`,{className:`font-mono text-xs`,children:c.conversation?OE(c.conversation.turnId):`—`},void 0,!1,{fileName:$,lineNumber:557,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:556,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:545,columnNumber:9},this),c.error?(0,Q.jsxDEV)(gC,{className:`mt-6`,variant:`destructive`,children:[(0,Q.jsxDEV)(_C,{children:`Run failed`},void 0,!1,{fileName:$,lineNumber:565,columnNumber:13},this),(0,Q.jsxDEV)(vC,{children:c.error},void 0,!1,{fileName:$,lineNumber:566,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:564,columnNumber:11},this):null,c.conversation?null:(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground mt-6 text-sm`,children:`Cancelled before dispatch, so no conversation exists.`},void 0,!1,{fileName:$,lineNumber:570,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:482,columnNumber:7},this),(0,Q.jsxDEV)(`div`,{className:`flex justify-end gap-2 border-t px-6 py-3`,children:[c.reviewStatus===`pending_review`?(0,Q.jsxDEV)(mC,{variant:`ghost`,onClick:()=>n.mutate({kind:`review`,runId:t}),children:[(0,Q.jsxDEV)(qo,{},void 0,!1,{fileName:$,lineNumber:581,columnNumber:13},this),` Mark reviewed`]},void 0,!0,{fileName:$,lineNumber:577,columnNumber:11},this):null,(0,Q.jsxDEV)(mC,{variant:`outline`,disabled:!c.conversation,onClick:()=>c.conversation&&r(`/chat/${encodeURIComponent(c.conversation.chatId)}`),children:[`Open chat `,(0,Q.jsxDEV)(ts,{},void 0,!1,{fileName:$,lineNumber:592,columnNumber:21},this)]},void 0,!0,{fileName:$,lineNumber:584,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:575,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:481,columnNumber:5},this)}function rE({task:e,command:t,onPurged:n}){let r=e.status===`archived`,i=n=>t.mutate({kind:n,taskId:e.id});return(0,Q.jsxDEV)(qC,{children:[(0,Q.jsxDEV)(JC,{render:(0,Q.jsxDEV)(mC,{className:`ml-auto size-8`,size:`icon`,variant:`ghost`,"aria-label":`Task actions`,children:(0,Q.jsxDEV)(es,{},void 0,!1,{fileName:$,lineNumber:621,columnNumber:13},this)},void 0,!1,{fileName:$,lineNumber:615,columnNumber:11},this)},void 0,!1,{fileName:$,lineNumber:613,columnNumber:7},this),(0,Q.jsxDEV)(YC,{align:`end`,children:[(0,Q.jsxDEV)(XC,{disabled:r,onClick:()=>i(`run`),children:[(0,Q.jsxDEV)(ls,{},void 0,!1,{fileName:$,lineNumber:627,columnNumber:11},this),` Run now`]},void 0,!0,{fileName:$,lineNumber:626,columnNumber:9},this),(0,Q.jsxDEV)(ZC,{},void 0,!1,{fileName:$,lineNumber:629,columnNumber:9},this),(0,Q.jsxDEV)(XC,{disabled:r,onClick:()=>i(`archive`),children:[(0,Q.jsxDEV)(Ho,{},void 0,!1,{fileName:$,lineNumber:631,columnNumber:11},this),` Archive`]},void 0,!0,{fileName:$,lineNumber:630,columnNumber:9},this),(0,Q.jsxDEV)(XC,{disabled:!r,onClick:()=>t.mutate({kind:`purge`,taskId:e.id},{onSuccess:n}),children:[(0,Q.jsxDEV)(ms,{className:`text-destructive`},void 0,!1,{fileName:$,lineNumber:642,columnNumber:11},this),(0,Q.jsxDEV)(`span`,{className:`text-destructive`,children:`Delete`},void 0,!1,{fileName:$,lineNumber:643,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:633,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:625,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:612,columnNumber:5},this)}function iE({open:e,command:t,onClose:n}){let r=Pi(),{history:i}=ra(),[a,o]=(0,H.useState)(bE),s=e=>o(t=>({...t,...e}));return(0,Q.jsxDEV)(BC,{open:e,onOpenChange:e=>{e||(o(bE()),n())},children:(0,Q.jsxDEV)(UC,{className:`max-w-xl`,children:[(0,Q.jsxDEV)(WC,{children:(0,Q.jsxDEV)(KC,{children:`New scheduled task`},void 0,!1,{fileName:$,lineNumber:676,columnNumber:11},this)},void 0,!1,{fileName:$,lineNumber:675,columnNumber:9},this),(0,Q.jsxDEV)(`div`,{className:`grid gap-4`,children:[(0,Q.jsxDEV)(ow,{children:[(0,Q.jsxDEV)(sw,{htmlFor:`schedule-name`,children:`Name`},void 0,!1,{fileName:$,lineNumber:680,columnNumber:13},this),(0,Q.jsxDEV)(RC,{id:`schedule-name`,value:a.name,onChange:e=>s({name:e.target.value})},void 0,!1,{fileName:$,lineNumber:681,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:679,columnNumber:11},this),(0,Q.jsxDEV)(ow,{children:[(0,Q.jsxDEV)(sw,{htmlFor:`schedule-prompt`,children:`Prompt`},void 0,!1,{fileName:$,lineNumber:688,columnNumber:13},this),(0,Q.jsxDEV)(zC,{id:`schedule-prompt`,rows:3,value:a.prompt,onChange:e=>s({prompt:e.target.value})},void 0,!1,{fileName:$,lineNumber:689,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:687,columnNumber:11},this),(0,Q.jsxDEV)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,Q.jsxDEV)(ow,{children:[(0,Q.jsxDEV)(sw,{htmlFor:`schedule-cron`,children:`Repeat`},void 0,!1,{fileName:$,lineNumber:698,columnNumber:15},this),(0,Q.jsxDEV)(RC,{id:`schedule-cron`,className:`font-mono`,value:a.recurrence,onChange:e=>s({recurrence:e.target.value})},void 0,!1,{fileName:$,lineNumber:699,columnNumber:15},this),(0,Q.jsxDEV)(cw,{children:wE(a.recurrence)},void 0,!1,{fileName:$,lineNumber:705,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:697,columnNumber:13},this),(0,Q.jsxDEV)(ow,{children:[(0,Q.jsxDEV)(sw,{htmlFor:`schedule-timezone`,children:`Timezone`},void 0,!1,{fileName:$,lineNumber:708,columnNumber:15},this),(0,Q.jsxDEV)(RC,{id:`schedule-timezone`,value:a.timezone,onChange:e=>s({timezone:e.target.value})},void 0,!1,{fileName:$,lineNumber:709,columnNumber:15},this),(0,Q.jsxDEV)(cw,{children:`IANA identifier.`},void 0,!1,{fileName:$,lineNumber:714,columnNumber:15},this)]},void 0,!0,{fileName:$,lineNumber:707,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:696,columnNumber:11},this),(0,Q.jsxDEV)(ow,{children:[(0,Q.jsxDEV)(sw,{htmlFor:`schedule-target`,children:`Runs in`},void 0,!1,{fileName:$,lineNumber:718,columnNumber:13},this),(0,Q.jsxDEV)(gw,{id:`schedule-target`,value:a.target.kind===`new-conversation`?`new-conversation`:a.target.chatId,onChange:e=>s({target:e.target.value===`new-conversation`?{kind:`new-conversation`}:{kind:`existing-conversation`,chatId:e.target.value}}),children:[(0,Q.jsxDEV)(_w,{value:`new-conversation`,children:`New chat for every run`},void 0,!1,{fileName:$,lineNumber:738,columnNumber:15},this),i.map(e=>(0,Q.jsxDEV)(_w,{value:e.chatId,children:e.title??e.chatId},e.chatId,!1,{fileName:$,lineNumber:742,columnNumber:17},this))]},void 0,!0,{fileName:$,lineNumber:719,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:717,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:678,columnNumber:9},this),(0,Q.jsxDEV)(GC,{children:[(0,Q.jsxDEV)(mC,{variant:`ghost`,onClick:n,children:`Cancel`},void 0,!1,{fileName:$,lineNumber:750,columnNumber:11},this),(0,Q.jsxDEV)(mC,{disabled:!a.name.trim()||!a.prompt.trim(),onClick:()=>t.mutate({kind:`create`,definition:a},{onSuccess:e=>{o(bE()),n(),e&&`status`in e&&r(`/scheduled/tasks/${e.id}`)}}),children:`Create`},void 0,!1,{fileName:$,lineNumber:753,columnNumber:11},this)]},void 0,!0,{fileName:$,lineNumber:749,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:674,columnNumber:7},this)},void 0,!1,{fileName:$,lineNumber:666,columnNumber:5},this)}function aE({value:e,onCommit:t,className:n,...r}){let[i,a]=(0,H.useState)(e),[o,s]=(0,H.useState)(!1);return(0,Q.jsxDEV)(RC,{...r,className:Z(`h-8 border-0 bg-transparent shadow-none`,n),value:o?i:e,onChange:e=>a(e.target.value),onFocus:()=>{a(e),s(!0)},onBlur:()=>{s(!1),i.trim()&&i!==e&&t(i.trim())}},void 0,!1,{fileName:$,lineNumber:790,columnNumber:5},this)}function oE({value:e,onCommit:t,...n}){let[r,i]=(0,H.useState)(e),[a,o]=(0,H.useState)(!1);return(0,Q.jsxDEV)(zC,{...n,className:`bg-muted/40 min-h-24 rounded-xl border-0 text-base`,value:a?r:e,onChange:e=>i(e.target.value),onFocus:()=>{i(e),o(!0)},onBlur:()=>{o(!1),r.trim()&&r!==e&&t(r.trim())}},void 0,!1,{fileName:$,lineNumber:818,columnNumber:5},this)}function sE({to:e,selected:t,icon:n,title:r,subtitle:i}){return(0,Q.jsxDEV)(fo,{to:e,"aria-current":t?`true`:void 0,className:Z(`hover:bg-accent/60 flex w-full items-start gap-3 rounded-xl px-3 py-2.5 text-left`,t&&`bg-accent hover:bg-accent`),children:[(0,Q.jsxDEV)(`span`,{className:`mt-0.5`,children:n},void 0,!1,{fileName:$,lineNumber:857,columnNumber:7},this),(0,Q.jsxDEV)(`span`,{className:`min-w-0 flex-1`,children:[(0,Q.jsxDEV)(`span`,{className:`block truncate text-sm`,children:r},void 0,!1,{fileName:$,lineNumber:859,columnNumber:9},this),(0,Q.jsxDEV)(`span`,{className:`text-muted-foreground block truncate text-xs`,children:i},void 0,!1,{fileName:$,lineNumber:860,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:858,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:849,columnNumber:5},this)}function cE({active:e,render:t,onClick:n,children:r}){return(0,Q.jsxDEV)(mC,{render:t,size:`sm`,variant:`ghost`,onClick:n,className:Z(`text-muted-foreground hover:text-foreground shrink-0 rounded-full px-2.5 font-normal`,e&&`text-foreground font-medium`),children:r},void 0,!1,{fileName:$,lineNumber:880,columnNumber:5},this)}function lE({children:e}){return(0,Q.jsxDEV)(`div`,{className:`bg-muted/40 divide-border/60 divide-y rounded-xl`,children:e},void 0,!1,{fileName:$,lineNumber:897,columnNumber:5},this)}function uE({className:e,children:t}){return(0,Q.jsxDEV)(`p`,{className:Z(`text-muted-foreground mt-6 mb-2 text-sm`,e),children:t},void 0,!1,{fileName:$,lineNumber:911,columnNumber:5},this)}function dE({label:e,children:t}){return(0,Q.jsxDEV)(`div`,{className:`flex min-h-11 items-center justify-between gap-4 px-4 py-1`,children:[(0,Q.jsxDEV)(`span`,{className:`shrink-0 text-sm`,children:e},void 0,!1,{fileName:$,lineNumber:920,columnNumber:7},this),(0,Q.jsxDEV)(`span`,{className:`flex min-w-0 items-center justify-end text-sm`,children:t},void 0,!1,{fileName:$,lineNumber:921,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:919,columnNumber:5},this)}function fE(e){return(0,Q.jsxDEV)(gw,{...e,className:`w-auto border-0 bg-transparent text-right shadow-none`},void 0,!1,{fileName:$,lineNumber:930,columnNumber:5},this)}function pE({status:e}){return(0,Q.jsxDEV)(`span`,{className:Z(`text-sm`,e===`active`||e===`completed`?`text-emerald-700`:e===`failed`?`text-destructive`:e===`running`||e===`dispatching`?`text-sky-700`:`text-muted-foreground`),children:kE(e)},void 0,!1,{fileName:$,lineNumber:950,columnNumber:10},this)}function mE({status:e}){return e===`paused`?(0,Q.jsxDEV)(cs,{className:`size-4 shrink-0 text-amber-600`},void 0,!1,{fileName:$,lineNumber:955,columnNumber:12},this):e===`archived`?(0,Q.jsxDEV)(Ho,{className:`text-muted-foreground size-4 shrink-0`},void 0,!1,{fileName:$,lineNumber:957,columnNumber:12},this):(0,Q.jsxDEV)($o,{className:Z(`size-4 shrink-0`,e===`active`?`text-muted-foreground`:`text-muted-foreground/50`)},void 0,!1,{fileName:$,lineNumber:959,columnNumber:5},this)}function hE({status:e}){return(0,Q.jsxDEV)($o,{className:Z(`size-4 shrink-0`,e===`completed`?`text-emerald-600`:e===`failed`?`text-destructive`:e===`cancelled`?`text-muted-foreground`:`text-sky-600`)},void 0,!1,{fileName:$,lineNumber:979,columnNumber:10},this)}function gE(){return(0,Q.jsxDEV)(`div`,{className:`space-y-4 p-6`,children:[(0,Q.jsxDEV)(Dw,{className:`h-7 w-48`},void 0,!1,{fileName:$,lineNumber:985,columnNumber:7},this),(0,Q.jsxDEV)(Dw,{className:`h-24 w-full rounded-xl`},void 0,!1,{fileName:$,lineNumber:986,columnNumber:7},this),(0,Q.jsxDEV)(Dw,{className:`h-24 w-full rounded-xl`},void 0,!1,{fileName:$,lineNumber:987,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:984,columnNumber:5},this)}function _E(){return(0,Q.jsxDEV)(`div`,{className:`grid gap-2 px-1 py-2`,children:[0,1,2,3].map(e=>(0,Q.jsxDEV)(`div`,{className:`flex items-start gap-3 px-2 py-2`,children:[(0,Q.jsxDEV)(Dw,{className:`mt-0.5 size-4 rounded-full`},void 0,!1,{fileName:$,lineNumber:997,columnNumber:11},this),(0,Q.jsxDEV)(`div`,{className:`flex-1 space-y-2`,children:[(0,Q.jsxDEV)(Dw,{className:`h-4 w-40`},void 0,!1,{fileName:$,lineNumber:999,columnNumber:13},this),(0,Q.jsxDEV)(Dw,{className:`h-3 w-56`},void 0,!1,{fileName:$,lineNumber:1e3,columnNumber:13},this)]},void 0,!0,{fileName:$,lineNumber:998,columnNumber:11},this)]},e,!0,{fileName:$,lineNumber:996,columnNumber:9},this))},void 0,!1,{fileName:$,lineNumber:994,columnNumber:5},this)}function vE(){return(0,Q.jsxDEV)(QC,{className:`mt-10`,children:(0,Q.jsxDEV)($C,{children:[(0,Q.jsxDEV)(tw,{variant:`icon`,children:(0,Q.jsxDEV)(qo,{},void 0,!1,{fileName:$,lineNumber:1013,columnNumber:11},this)},void 0,!1,{fileName:$,lineNumber:1012,columnNumber:9},this),(0,Q.jsxDEV)(nw,{children:`Nothing to review`},void 0,!1,{fileName:$,lineNumber:1015,columnNumber:9},this),(0,Q.jsxDEV)(rw,{children:`Finished runs wait here until you mark them reviewed.`},void 0,!1,{fileName:$,lineNumber:1016,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:1011,columnNumber:7},this)},void 0,!1,{fileName:$,lineNumber:1010,columnNumber:5},this)}function yE({onCreate:e}){return(0,Q.jsxDEV)(QC,{className:`mt-10`,children:[(0,Q.jsxDEV)($C,{children:[(0,Q.jsxDEV)(tw,{variant:`icon`,children:(0,Q.jsxDEV)(Ko,{},void 0,!1,{fileName:$,lineNumber:1029,columnNumber:11},this)},void 0,!1,{fileName:$,lineNumber:1028,columnNumber:9},this),(0,Q.jsxDEV)(nw,{children:`No scheduled tasks`},void 0,!1,{fileName:$,lineNumber:1031,columnNumber:9},this),(0,Q.jsxDEV)(rw,{children:`Create one with a five-field cron expression and a timezone.`},void 0,!1,{fileName:$,lineNumber:1032,columnNumber:9},this)]},void 0,!0,{fileName:$,lineNumber:1027,columnNumber:7},this),(0,Q.jsxDEV)(mC,{size:`sm`,onClick:e,children:`Create`},void 0,!1,{fileName:$,lineNumber:1036,columnNumber:7},this)]},void 0,!0,{fileName:$,lineNumber:1026,columnNumber:5},this)}function bE(){return{name:``,prompt:``,recurrence:`0 9 * * 1`,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,target:{kind:`new-conversation`}}}function xE(e,t){return e.find(({id:e})=>e===t)?.name??`Purged task`}function SE(e){let t=wE(e.recurrence);return e.status===`archived`?`${t} · Archived`:e.status===`paused`?`${t} · Paused`:e.nextRunAt?`${t} · Next run ${AE(e.nextRunAt)}`:`${t} · No further runs`}function CE(e){return e===`pending_review`?`Pending review`:e===`reviewed`?`Reviewed`:e===`archived`?`Archived`:`Not reviewable yet`}function wE(e){if(!TE(e))return e.split(`
273
+ `).at(-1)?.replace(`RRULE:`,``)??e;try{return VT.default.toString(e,{verbose:!1})}catch{return`Invalid cron expression`}}function TE(e){return!e.includes(`DTSTART`)}function EE(e){return e===`completed`||e===`failed`||e===`cancelled`}function DE(e,t){return e.toLowerCase().includes(t.trim().toLowerCase())}function OE(e){return e.slice(0,8)}function kE(e){return e.charAt(0).toUpperCase()+e.slice(1)}function AE(e){let t=e-Date.now(),n=new Intl.RelativeTimeFormat(void 0,{numeric:`auto`});for(let[e,r]of[[`day`,864e5],[`hour`,36e5],[`minute`,6e4]])if(Math.abs(t)>=r)return n.format(Math.round(t/r),e);return n.format(Math.round(t/6e4),`minute`)}function jE(e){return new Date(e).toLocaleString(void 0,{month:`short`,day:`numeric`,hour:`numeric`,minute:`2-digit`})}function ME(e){let t=Date.now()-e;return t>=2592e6?`${Math.round(t/2592e6)}mo`:t>=864e5?`${Math.round(t/864e5)}d`:t>=36e5?`${Math.round(t/36e5)}h`:`${Math.max(1,Math.round(t/6e4))}m`}var NE=`/Users/ezzabuzaid/Desktop/January/deepagents/packages/devtool/host/ui/src/traces/view.tsx`;function PE({conversation:e,href:t,traceId:n,onTraceId:r}){let[i,a]=(0,H.useState)([]),[o,s]=(0,H.useState)(),[c,l]=(0,H.useState)(),[u,d]=(0,H.useState)(!1),[f,p]=(0,H.useState)(!0);(0,H.useEffect)(()=>{let i=new AbortController,o=async()=>{try{let o=await fetch(HE(t,e),{signal:i.signal});if(!o.ok)throw Error(`Trace request failed: ${o.status}`);let s=await o.json();a(s),d(!1),p(!1),s.length>0&&!s.some(({id:e})=>e===n)&&r(s[0].id,!0)}catch{i.signal.aborted||(d(!0),p(!1))}};o();let s=window.setInterval(()=>void o(),3e3);return()=>{i.abort(),window.clearInterval(s)}},[e,t,r,n]),(0,H.useEffect)(()=>{if(!n)return;let r=new AbortController,i=async()=>{try{let i=await fetch(UE(t,e,n),{signal:r.signal});if(!i.ok)throw Error(`Trace detail failed: ${i.status}`);let a=await i.json();s(a),l(e=>a.spans.some(({id:t})=>t===e)?e:a.spans[0]?.id),d(!1)}catch{r.signal.aborted||d(!0)}};i();let a=window.setInterval(()=>void i(),3e3);return()=>{r.abort(),window.clearInterval(a)}},[e,t,n]);let m=o?.id===n?o:void 0,h=m?.spans.find(({id:e})=>e===c);return(0,Q.jsxDEV)(`div`,{className:`grid h-full min-h-0 grid-rows-[auto_auto_minmax(0,1fr)]`,children:[(0,Q.jsxDEV)(`div`,{className:`flex items-start justify-between gap-6 border-b px-6 py-4`,children:[(0,Q.jsxDEV)(`div`,{className:`min-w-0`,children:[(0,Q.jsxDEV)(`h2`,{className:`truncate text-base font-semibold tracking-tight`,children:e.title??e.chatId},void 0,!1,{fileName:NE,lineNumber:138,columnNumber:11},this),(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground mt-1 text-xs`,children:[`Traces · `,i.length,` `,i.length===1?`turn`:`turns`]},void 0,!0,{fileName:NE,lineNumber:141,columnNumber:11},this)]},void 0,!0,{fileName:NE,lineNumber:137,columnNumber:9},this),(0,Q.jsxDEV)(xT,{status:m?.status??tT(e.status)},void 0,!1,{fileName:NE,lineNumber:145,columnNumber:9},this)]},void 0,!0,{fileName:NE,lineNumber:136,columnNumber:7},this),(0,Q.jsxDEV)(`div`,{className:`flex items-center gap-3 border-b px-6 py-3`,children:[(0,Q.jsxDEV)(`label`,{htmlFor:`trace-selector`,className:`text-muted-foreground text-xs font-medium`,children:`Trace`},void 0,!1,{fileName:NE,lineNumber:152,columnNumber:9},this),(0,Q.jsxDEV)(`select`,{id:`trace-selector`,value:n??``,disabled:i.length===0,onChange:e=>r(e.target.value,!1),className:`bg-background max-w-xl min-w-0 flex-1 rounded-md border px-3 py-1.5 font-mono text-xs`,children:i.map((e,t)=>(0,Q.jsxDEV)(`option`,{value:e.id,children:[t===0?`Latest · `:``,e.startedAt?CT(e.startedAt):`Starting`,` `,`· `,WE(e),` · `,qE(e.status)]},e.id,!0,{fileName:NE,lineNumber:166,columnNumber:13},this))},void 0,!1,{fileName:NE,lineNumber:158,columnNumber:9},this)]},void 0,!0,{fileName:NE,lineNumber:151,columnNumber:7},this),f?(0,Q.jsxDEV)(zE,{icon:(0,Q.jsxDEV)(is,{className:`size-4 animate-spin`},void 0,!1,{fileName:NE,lineNumber:177,columnNumber:27},this),children:`Loading traces`},void 0,!1,{fileName:NE,lineNumber:177,columnNumber:9},this):u?(0,Q.jsxDEV)(zE,{icon:(0,Q.jsxDEV)(Xo,{className:`text-destructive size-4`},void 0,!1,{fileName:NE,lineNumber:182,columnNumber:17},this),children:`Traces unavailable`},void 0,!1,{fileName:NE,lineNumber:181,columnNumber:9},this):i.length===0?(0,Q.jsxDEV)(zE,{icon:(0,Q.jsxDEV)(Go,{className:`size-4`},void 0,!1,{fileName:NE,lineNumber:187,columnNumber:27},this),children:`No traces recorded for this conversation yet`},void 0,!1,{fileName:NE,lineNumber:187,columnNumber:9},this):m&&m.spans.length>0?(0,Q.jsxDEV)(`div`,{className:`grid min-h-0 grid-cols-[minmax(32rem,1fr)_22rem]`,children:[(0,Q.jsxDEV)(FE,{trace:m,selectedSpanId:c,onSelectSpan:l},void 0,!1,{fileName:NE,lineNumber:192,columnNumber:11},this),(0,Q.jsxDEV)(IE,{trace:m,span:h},h?.id,!1,{fileName:NE,lineNumber:197,columnNumber:11},this)]},void 0,!0,{fileName:NE,lineNumber:191,columnNumber:9},this):m?(0,Q.jsxDEV)(zE,{icon:(0,Q.jsxDEV)(is,{className:`size-4 animate-spin`},void 0,!1,{fileName:NE,lineNumber:204,columnNumber:27},this),children:`Trace starting`},void 0,!1,{fileName:NE,lineNumber:204,columnNumber:9},this):(0,Q.jsxDEV)(zE,{icon:(0,Q.jsxDEV)(is,{className:`size-4 animate-spin`},void 0,!1,{fileName:NE,lineNumber:208,columnNumber:27},this),children:`Loading trace`},void 0,!1,{fileName:NE,lineNumber:208,columnNumber:9},this)]},void 0,!0,{fileName:NE,lineNumber:135,columnNumber:5},this)}function FE({trace:e,selectedSpanId:t,onSelectSpan:n}){let r=Math.min(...e.spans.map(({startedAt:e})=>Date.parse(e))),i=Math.max(r+1,...e.spans.map(({endedAt:t})=>Date.parse(t??e.startedAt??e.spans[0].startedAt))),a=i-r,o=(0,H.useMemo)(()=>VE(e.spans),[e.spans]);return(0,Q.jsxDEV)(`section`,{className:`min-h-0 overflow-auto`,"aria-label":`Trace waterfall`,children:(0,Q.jsxDEV)(`div`,{className:`min-w-[46rem]`,children:[(0,Q.jsxDEV)(`div`,{className:`text-muted-foreground bg-background sticky top-0 z-10 grid grid-cols-[16rem_minmax(30rem,1fr)] border-b text-[0.6875rem]`,children:[(0,Q.jsxDEV)(`span`,{className:`px-4 py-2 font-medium`,children:`SPAN`},void 0,!1,{fileName:NE,lineNumber:241,columnNumber:11},this),(0,Q.jsxDEV)(`div`,{className:`relative mr-5 h-8 font-mono`,children:Array.from({length:5},(e,t)=>(0,Q.jsxDEV)(`span`,{className:`absolute top-2 -translate-x-1/2`,style:{left:`${t*25}%`},children:KE(a*t/4)},t,!1,{fileName:NE,lineNumber:244,columnNumber:15},this))},void 0,!1,{fileName:NE,lineNumber:242,columnNumber:11},this)]},void 0,!0,{fileName:NE,lineNumber:240,columnNumber:9},this),e.spans.map(e=>{let s=Date.parse(e.startedAt),c=e.endedAt?Date.parse(e.endedAt):Math.max(s,i),l=(s-r)/a*100,u=Math.max((c-s)/a*100,.8),d=t===e.id;return(0,Q.jsxDEV)(`button`,{type:`button`,"aria-pressed":d,onClick:()=>n(e.id),className:Z(`hover:bg-muted/60 grid w-full grid-cols-[16rem_minmax(30rem,1fr)] border-b text-left transition-colors`,d&&`bg-muted`),children:[(0,Q.jsxDEV)(`span`,{className:`flex min-w-0 items-center gap-2 px-4 py-3 text-xs`,style:{paddingLeft:`${16+(o.get(e.id)??0)*18}px`},children:[BE(e),(0,Q.jsxDEV)(`span`,{className:`truncate`,children:[(0,Q.jsxDEV)(`span`,{className:`text-muted-foreground capitalize`,children:e.type},void 0,!1,{fileName:NE,lineNumber:281,columnNumber:19},this),` `,`· `,e.name]},void 0,!0,{fileName:NE,lineNumber:280,columnNumber:17},this)]},void 0,!0,{fileName:NE,lineNumber:273,columnNumber:15},this),(0,Q.jsxDEV)(`span`,{className:`relative my-3 mr-5 h-4`,children:(0,Q.jsxDEV)(`span`,{className:Z(`bg-foreground/75 absolute top-1 h-2 rounded-sm`,e.status===`running`&&`trace-running`,e.status===`failed`&&`bg-destructive`),style:{left:`${l}%`,width:`${u}%`}},void 0,!1,{fileName:NE,lineNumber:288,columnNumber:17},this)},void 0,!1,{fileName:NE,lineNumber:287,columnNumber:15},this)]},e.id,!0,{fileName:NE,lineNumber:263,columnNumber:13},this)})]},void 0,!0,{fileName:NE,lineNumber:239,columnNumber:7},this)},void 0,!1,{fileName:NE,lineNumber:238,columnNumber:5},this)}function IE({trace:e,span:t}){let[n,r]=(0,H.useState)(`overview`);return t?(0,Q.jsxDEV)(`aside`,{className:`bg-background grid min-h-0 grid-rows-[auto_auto_minmax(0,1fr)] border-l`,children:[(0,Q.jsxDEV)(`div`,{className:`border-b p-5`,children:[(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground mb-1 text-[0.6875rem] font-semibold tracking-[0.12em] uppercase`,children:t.type},void 0,!1,{fileName:NE,lineNumber:327,columnNumber:9},this),(0,Q.jsxDEV)(`h3`,{className:`truncate text-sm font-semibold`,children:t.name},void 0,!1,{fileName:NE,lineNumber:330,columnNumber:9},this),(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground mt-1 font-mono text-xs`,children:GE(t)},void 0,!1,{fileName:NE,lineNumber:331,columnNumber:9},this)]},void 0,!0,{fileName:NE,lineNumber:326,columnNumber:7},this),(0,Q.jsxDEV)(`div`,{className:`flex gap-1 border-b px-3 pt-2`,role:`tablist`,children:[`overview`,`input`,`output`,`raw`].map(e=>(0,Q.jsxDEV)(`button`,{type:`button`,role:`tab`,"aria-selected":n===e,onClick:()=>r(e),className:Z(`text-muted-foreground border-b-2 border-transparent px-2 py-2 text-xs capitalize`,n===e&&`text-foreground border-foreground`),children:e},e,!1,{fileName:NE,lineNumber:337,columnNumber:11},this))},void 0,!1,{fileName:NE,lineNumber:335,columnNumber:7},this),(0,Q.jsxDEV)(`div`,{className:`min-h-0 overflow-auto p-5 text-xs`,children:n===`overview`?(0,Q.jsxDEV)(`dl`,{className:`grid grid-cols-[5.5rem_1fr] gap-x-3 gap-y-3`,children:[(0,Q.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:`Status`},void 0,!1,{fileName:NE,lineNumber:355,columnNumber:13},this),(0,Q.jsxDEV)(`dd`,{className:`capitalize`,children:t.status},void 0,!1,{fileName:NE,lineNumber:356,columnNumber:13},this),(0,Q.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:`Started`},void 0,!1,{fileName:NE,lineNumber:357,columnNumber:13},this),(0,Q.jsxDEV)(`dd`,{children:CT(t.startedAt)},void 0,!1,{fileName:NE,lineNumber:358,columnNumber:13},this),(0,Q.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:`Duration`},void 0,!1,{fileName:NE,lineNumber:359,columnNumber:13},this),(0,Q.jsxDEV)(`dd`,{children:GE(t)},void 0,!1,{fileName:NE,lineNumber:360,columnNumber:13},this),t.usage===void 0?null:(0,Q.jsxDEV)(Q.Fragment,{children:[(0,Q.jsxDEV)(`dt`,{className:`text-muted-foreground`,children:`Usage`},void 0,!1,{fileName:NE,lineNumber:363,columnNumber:17},this),(0,Q.jsxDEV)(`dd`,{className:`font-mono`,children:JE(t.usage)},void 0,!1,{fileName:NE,lineNumber:364,columnNumber:17},this)]},void 0,!0,{fileName:NE,lineNumber:362,columnNumber:15},this),t.error===void 0?null:(0,Q.jsxDEV)(Q.Fragment,{children:[(0,Q.jsxDEV)(`dt`,{className:`text-destructive`,children:`Error`},void 0,!1,{fileName:NE,lineNumber:369,columnNumber:17},this),(0,Q.jsxDEV)(`dd`,{className:`text-destructive break-words`,children:JE(t.error)},void 0,!1,{fileName:NE,lineNumber:370,columnNumber:17},this)]},void 0,!0,{fileName:NE,lineNumber:368,columnNumber:15},this)]},void 0,!0,{fileName:NE,lineNumber:354,columnNumber:11},this):n===`raw`?(0,Q.jsxDEV)(RE,{value:t},void 0,!1,{fileName:NE,lineNumber:377,columnNumber:11},this):(0,Q.jsxDEV)(LE,{state:n===`input`?e.recording.inputs:e.recording.outputs,value:n===`input`?t.input:t.output,kind:n},void 0,!1,{fileName:NE,lineNumber:379,columnNumber:11},this)},void 0,!1,{fileName:NE,lineNumber:352,columnNumber:7},this)]},void 0,!0,{fileName:NE,lineNumber:325,columnNumber:5},this):(0,Q.jsxDEV)(`aside`,{className:`text-muted-foreground border-l p-5 text-sm`,children:`Select a span to inspect it.`},void 0,!1,{fileName:NE,lineNumber:318,columnNumber:7},this)}function LE({state:e,value:t,kind:n}){return e===`not-recorded`?(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground`,children:[qE(n),` not recorded.`]},void 0,!0,{fileName:NE,lineNumber:403,columnNumber:7},this):t===void 0?(0,Q.jsxDEV)(`p`,{className:`text-muted-foreground`,children:[`No `,n,` was emitted for this span.`]},void 0,!0,{fileName:NE,lineNumber:407,columnNumber:5},this):(0,Q.jsxDEV)(RE,{value:t},void 0,!1,{fileName:NE,lineNumber:411,columnNumber:5},this)}function RE({value:e}){return(0,Q.jsxDEV)(`pre`,{className:`font-mono text-[0.6875rem] leading-5 break-words whitespace-pre-wrap`,children:JSON.stringify(e,null,2)},void 0,!1,{fileName:NE,lineNumber:417,columnNumber:5},this)}function zE({icon:e,children:t}){return(0,Q.jsxDEV)(`div`,{className:`text-muted-foreground flex min-h-0 items-center justify-center gap-2 p-8 text-sm`,children:[e,t]},void 0,!0,{fileName:NE,lineNumber:431,columnNumber:5},this)}function BE(e){let t=Z(`text-muted-foreground size-3.5 shrink-0`,e.status===`failed`&&`text-destructive`);switch(e.type){case`agent`:return(0,Q.jsxDEV)(Wo,{className:t,"aria-hidden":`true`},void 0,!1,{fileName:NE,lineNumber:445,columnNumber:14},this);case`function`:return(0,Q.jsxDEV)(fs,{className:t,"aria-hidden":`true`},void 0,!1,{fileName:NE,lineNumber:447,columnNumber:14},this);default:return(0,Q.jsxDEV)(Yo,{className:t,"aria-hidden":`true`},void 0,!1,{fileName:NE,lineNumber:449,columnNumber:14},this)}}function VE(e){let t=new Map(e.map(e=>[e.id,e])),n=new Map,r=e=>{let i=n.get(e.id);if(i!==void 0)return i;let a=e.parentId?t.get(e.parentId):void 0,o=a?r(a)+1:0;return n.set(e.id,o),o};for(let t of e)r(t);return n}function HE(e,t){return`${e}/${encodeURIComponent(t.chatId)}`}function UE(e,t,n){return`${HE(e,t)}/${encodeURIComponent(n)}`}function WE(e){if(!e.startedAt)return`—`;if(!e.endedAt)return`Running`;let t=Date.parse(e.startedAt);return KE(Date.parse(e.endedAt)-t)}function GE(e){return e.endedAt?KE(Date.parse(e.endedAt)-Date.parse(e.startedAt)):`Running`}function KE(e){return e<1e3?`${Math.max(0,Math.round(e))}ms`:`${(e/1e3).toFixed(e<1e4?2:1)}s`}function qE(e){return e.charAt(0).toUpperCase()+e.slice(1)}function JE(e){return typeof e==`string`?e:JSON.stringify(e)}var YE=`/Users/ezzabuzaid/Desktop/January/deepagents/packages/devtool/host/ui/src/routes/traces.tsx`;async function XE({params:e,request:t}){let n=await Ao(t.signal);return{...n,conversation:n.history.find(({chatId:t,userId:n})=>t===e.chatId&&n===e.userId)??n.history[0]}}function ZE(){let{conversation:e,discovery:t}=ra(),n=t?.capabilities.traces?.href;return e&&n?(0,Q.jsxDEV)(QE,{conversation:e,href:n},void 0,!1,{fileName:YE,lineNumber:32,columnNumber:5},this):e?(0,Q.jsxDEV)(BT,{conversation:e},void 0,!1,{fileName:YE,lineNumber:34,columnNumber:5},this):null}function QE({conversation:e,href:t}){let{traceId:n}=Ri(),r=Pi();return(0,Q.jsxDEV)(PE,{conversation:e,href:t,traceId:n,onTraceId:(0,H.useCallback)((t,n)=>r(Zt(`/history/:userId/:chatId/traces/:traceId`,{chatId:e.chatId,traceId:t,userId:e.userId}),{replace:n}),[e.chatId,e.userId,r])},void 0,!1,{fileName:YE,lineNumber:62,columnNumber:5},this)}var $E=oo([{id:`app`,Component:FT,HydrateFallback:()=>null,loader:NT,children:[{index:!0,loader:()=>vn(`/history`)},{path:`chat/:sessionId?`,lazy:()=>Ra(()=>import(`./chat-BGxkfkmM.js`),__vite__mapDeps([0,1]),import.meta.url)},{path:`history/:userId?/:chatId?`,Component:zT,loader:RT},{path:`history/:userId/:chatId/traces/:traceId?`,Component:ZE,loader:XE},{path:`scheduled`,loader:()=>vn(`/scheduled/tasks`)},{path:`scheduled/tasks/:taskId?`,Component:$T,loader:QT},{path:`scheduled/tasks/:taskId/runs/:runId`,Component:$T,loader:QT},{path:`scheduled/review/:runId?`,Component:$T,loader:QT}]}],{basename:new URL(document.baseURI).pathname.replace(/\/$/,``)}),eD=`/Users/ezzabuzaid/Desktop/January/deepagents/packages/devtool/host/ui/src/main.tsx`;(0,Pa.createRoot)(document.getElementById(`root`)).render((0,Q.jsxDEV)(H.StrictMode,{children:(0,Q.jsxDEV)(Be,{client:ko,children:(0,Q.jsxDEV)(da,{router:$E},void 0,!1,{fileName:eD,lineNumber:12,columnNumber:7},void 0)},void 0,!1,{fileName:eD,lineNumber:11,columnNumber:5},void 0)},void 0,!1,{fileName:eD,lineNumber:10,columnNumber:3},void 0));export{Le as $,TC as A,_s as B,vw as C,PC as D,OC as E,uv as F,Vo as G,Xo as H,$h as I,ra as J,Ao as K,Zh as L,mw as M,EC as N,LC as O,_C as P,at as Q,Pd as R,zC as S,AC as T,Yo as U,hs as V,qo as W,ta as X,Pi as Y,vn as Z,bC as _,kC as a,d as at,IC as b,SC as c,DC as d,Fe as et,NC as f,hw as g,fw as h,CC as i,f as it,yw as j,FC as k,jC as l,gC as m,cT as n,o as nt,vC as o,u as ot,pC as p,Ra as q,mC as r,c as rt,pw as s,ET as t,s as tt,MC as u,iw as v,eT as w,uw as x,Z as y,su as z};