auto-post-marketplace-facebook/releases/auto-post-facebook-extensio.../assets/popup.js

182 lines
462 KiB
JavaScript

import{g as ch}from"./_commonjsHelpers-CqkleIqs.js";import{p as Sa}from"./product-api.service-Dn0sYl6J.js";import{d as kw,M as zw,r as Uw}from"./message.service-DcR3euAR.js";function Lw(n,a){for(var i=0;i<a.length;i++){const s=a[i];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in n)){const c=Object.getOwnPropertyDescriptor(s,o);c&&Object.defineProperty(n,o,c.get?c:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const a=document.createElement("link").relList;if(a&&a.supports&&a.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const d of c.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=i(o);fetch(o.href,c)}})();var od={exports:{}},$s={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Pg;function Vw(){if(Pg)return $s;Pg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function i(s,o,c){var d=null;if(c!==void 0&&(d=""+c),o.key!==void 0&&(d=""+o.key),"key"in o){c={};for(var h in o)h!=="key"&&(c[h]=o[h])}else c=o;return o=c.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:c}}return $s.Fragment=a,$s.jsx=i,$s.jsxs=i,$s}var Gg;function Bw(){return Gg||(Gg=1,od.exports=Vw()),od.exports}var y=Bw(),Cl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Vr=typeof window>"u"||"Deno"in globalThis;function Wt(){}function Hw(n,a){return typeof n=="function"?n(a):n}function Nd(n){return typeof n=="number"&&n>=0&&n!==1/0}function rb(n,a){return Math.max(n+(a||0)-Date.now(),0)}function rr(n,a){return typeof n=="function"?n(a):n}function wn(n,a){return typeof n=="function"?n(a):n}function Fg(n,a){const{type:i="all",exact:s,fetchStatus:o,predicate:c,queryKey:d,stale:h}=n;if(d){if(s){if(a.queryHash!==fh(d,a.options))return!1}else if(!ol(a.queryKey,d))return!1}if(i!=="all"){const p=a.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof h=="boolean"&&a.isStale()!==h||o&&o!==a.state.fetchStatus||c&&!c(a))}function Zg(n,a){const{exact:i,status:s,predicate:o,mutationKey:c}=n;if(c){if(!a.options.mutationKey)return!1;if(i){if(ll(a.options.mutationKey)!==ll(c))return!1}else if(!ol(a.options.mutationKey,c))return!1}return!(s&&a.state.status!==s||o&&!o(a))}function fh(n,a){return(a?.queryKeyHashFn||ll)(n)}function ll(n){return JSON.stringify(n,(a,i)=>jd(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function ol(n,a){return n===a?!0:typeof n!=typeof a?!1:n&&a&&typeof n=="object"&&typeof a=="object"?Object.keys(a).every(i=>ol(n[i],a[i])):!1}function ib(n,a){if(n===a)return n;const i=Yg(n)&&Yg(a);if(i||jd(n)&&jd(a)){const s=i?n:Object.keys(n),o=s.length,c=i?a:Object.keys(a),d=c.length,h=i?[]:{},p=new Set(s);let m=0;for(let g=0;g<d;g++){const S=i?g:c[g];(!i&&p.has(S)||i)&&n[S]===void 0&&a[S]===void 0?(h[S]=void 0,m++):(h[S]=ib(n[S],a[S]),h[S]===n[S]&&n[S]!==void 0&&m++)}return o===d&&m===o?n:h}return a}function Dd(n,a){if(!a||Object.keys(n).length!==Object.keys(a).length)return!1;for(const i in n)if(n[i]!==a[i])return!1;return!0}function Yg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function jd(n){if(!Ig(n))return!1;const a=n.constructor;if(a===void 0)return!0;const i=a.prototype;return!(!Ig(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Ig(n){return Object.prototype.toString.call(n)==="[object Object]"}function qw(n){return new Promise(a=>{setTimeout(a,n)})}function kd(n,a,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,a):i.structuralSharing!==!1?ib(n,a):a}function Pw(n,a,i=0){const s=[...n,a];return i&&s.length>i?s.slice(1):s}function Gw(n,a,i=0){const s=[a,...n];return i&&s.length>i?s.slice(0,-1):s}var dh=Symbol();function sb(n,a){return!n.queryFn&&a?.initialPromise?()=>a.initialPromise:!n.queryFn||n.queryFn===dh?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Fw(n,a){return typeof n=="function"?n(...a):!!n}var Zw=class extends Cl{#t;#e;#n;constructor(){super(),this.#n=n=>{if(!Vr&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(a=>{typeof a=="boolean"?this.setFocused(a):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},hh=new Zw,Yw=class extends Cl{#t=!0;#e;#n;constructor(){super(),this.#n=n=>{if(!Vr&&window.addEventListener){const a=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#n=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(i=>{i(n)}))}isOnline(){return this.#t}},uu=new Yw;function zd(){let n,a;const i=new Promise((o,c)=>{n=o,a=c});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},i.reject=o=>{s({status:"rejected",reason:o}),a(o)},i}function Iw(n){return Math.min(1e3*2**n,3e4)}function lb(n){return(n??"online")==="online"?uu.isOnline():!0}var ob=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function ub(n){let a=!1,i=0,s;const o=zd(),c=()=>o.status!=="pending",d=_=>{c()||(w(new ob(_)),n.abort?.())},h=()=>{a=!0},p=()=>{a=!1},m=()=>hh.isFocused()&&(n.networkMode==="always"||uu.isOnline())&&n.canRun(),g=()=>lb(n.networkMode)&&n.canRun(),S=_=>{c()||(s?.(),o.resolve(_))},w=_=>{c()||(s?.(),o.reject(_))},A=()=>new Promise(_=>{s=C=>{(c()||m())&&_(C)},n.onPause?.()}).then(()=>{s=void 0,c()||n.onContinue?.()}),O=()=>{if(c())return;let _;const C=i===0?n.initialPromise:void 0;try{_=C??n.fn()}catch(U){_=Promise.reject(U)}Promise.resolve(_).then(S).catch(U=>{if(c())return;const N=n.retry??(Vr?0:3),M=n.retryDelay??Iw,L=typeof M=="function"?M(i,U):M,B=N===!0||typeof N=="number"&&i<N||typeof N=="function"&&N(i,U);if(a||!B){w(U);return}i++,n.onFail?.(i,U),qw(L).then(()=>m()?void 0:A()).then(()=>{a?w(U):O()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(s?.(),o),cancelRetry:h,continueRetry:p,canStart:g,start:()=>(g()?O():A().then(O),o)}}var Qw=n=>setTimeout(n,0);function Xw(){let n=[],a=0,i=h=>{h()},s=h=>{h()},o=Qw;const c=h=>{a?n.push(h):o(()=>{i(h)})},d=()=>{const h=n;n=[],h.length&&o(()=>{s(()=>{h.forEach(p=>{i(p)})})})};return{batch:h=>{let p;a++;try{p=h()}finally{a--,a||d()}return p},batchCalls:h=>(...p)=>{c(()=>{h(...p)})},schedule:c,setNotifyFunction:h=>{i=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{o=h}}}var kt=Xw(),cb=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Nd(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Vr?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},Kw=class extends cb{#t;#e;#n;#a;#r;#l;#s;constructor(n){super(),this.#s=!1,this.#l=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=$w(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(n){this.options={...this.#l,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,a){const i=kd(this.state.data,n,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:a?.updatedAt,manual:a?.manual}),i}setState(n,a){this.#i({type:"setState",state:n,setStateOptions:a})}cancel(n){const a=this.#r?.promise;return this.#r?.cancel(n),a?a.then(Wt).catch(Wt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>wn(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===dh||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>rr(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!rb(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(a=>a.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(a=>a.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,a){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&a?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(n&&this.setOptions(n),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const i=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,i.signal)})},o=()=>{const h=sb(this.options,a),m=(()=>{const g={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(g),g})();return this.#s=!1,this.options.persister?this.options.persister(h,m,this):h(m)},d=(()=>{const h={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return s(h),h})();this.options.behavior?.onFetch(d,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#r=ub({initialPromise:a?.initialPromise,fn:d.fetchFn,abort:i.abort.bind(i),onFail:(h,p)=>{this.#i({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof ob){if(h.silent)return this.#r.promise;if(h.revert){if(this.setState({...this.#e,fetchStatus:"idle"}),this.state.data===void 0)throw h;return this.state.data}}throw this.#i({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#i(n){const a=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...fb(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=n.manual?s:void 0,s;case"error":const o=n.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=a(this.state),kt.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function fb(n,a){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:lb(a.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function $w(n){const a=typeof n.initialData=="function"?n.initialData():n.initialData,i=a!==void 0,s=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:a,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Jw=class extends Cl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,a,i){const s=a.queryKey,o=a.queryHash??fh(s,a);let c=this.get(o);return c||(c=new Kw({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(a),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(c)),c}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=this.#t.get(n.queryHash);a&&(n.destroy(),a===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){kt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Fg(a,i))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(i=>Fg(n,i)):a}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){kt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){kt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},Ww=class extends cb{#t;#e;#n;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||e1(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(a=>a!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(n){const a=()=>{this.#a({type:"continue"})};this.#n=ub({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,c)=>{this.#a({type:"failed",failureCount:o,error:c})},onPause:()=>{this.#a({type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const i=this.state.status==="pending",s=!this.#n.canStart();try{if(i)a();else{this.#a({type:"pending",variables:n,isPaused:s}),await this.#e.config.onMutate?.(n,this);const c=await this.options.onMutate?.(n);c!==this.state.context&&this.#a({type:"pending",context:c,variables:n,isPaused:s})}const o=await this.#n.start();return await this.#e.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#e.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#a({type:"success",data:o}),o}catch(o){try{throw await this.#e.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#e.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#a({type:"error",error:o})}}finally{this.#e.runNext(this)}}#a(n){const a=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),kt.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function e1(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var t1=class extends Cl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(n,a,i){const s=new Ww({mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(a),state:i});return this.add(s),s}add(n){this.#t.add(n);const a=Io(n);if(typeof a=="string"){const i=this.#e.get(a);i?i.push(n):this.#e.set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const a=Io(n);if(typeof a=="string"){const i=this.#e.get(a);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&this.#e.delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=Io(n);if(typeof a=="string"){const s=this.#e.get(a)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const a=Io(n);return typeof a=="string"?this.#e.get(a)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){kt.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const a={exact:!0,...n};return this.getAll().find(i=>Zg(a,i))}findAll(n={}){return this.getAll().filter(a=>Zg(n,a))}notify(n){kt.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return kt.batch(()=>Promise.all(n.map(a=>a.continue().catch(Wt))))}};function Io(n){return n.options.scope?.id}function Qg(n){return{onFetch:(a,i)=>{const s=a.options,o=a.fetchOptions?.meta?.fetchMore?.direction,c=a.state.data?.pages||[],d=a.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const m=async()=>{let g=!1;const S=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>(a.signal.aborted?g=!0:a.signal.addEventListener("abort",()=>{g=!0}),a.signal)})},w=sb(a.options,a.fetchOptions),A=async(O,_,C)=>{if(g)return Promise.reject();if(_==null&&O.pages.length)return Promise.resolve(O);const N=(()=>{const ne={client:a.client,queryKey:a.queryKey,pageParam:_,direction:C?"backward":"forward",meta:a.options.meta};return S(ne),ne})(),M=await w(N),{maxPages:L}=a.options,B=C?Gw:Pw;return{pages:B(O.pages,M,L),pageParams:B(O.pageParams,_,L)}};if(o&&c.length){const O=o==="backward",_=O?n1:Xg,C={pages:c,pageParams:d},U=_(s,C);h=await A(C,U,O)}else{const O=n??c.length;do{const _=p===0?d[0]??s.initialPageParam:Xg(s,h);if(p>0&&_==null)break;h=await A(h,_),p++}while(p<O)}return h};a.options.persister?a.fetchFn=()=>a.options.persister?.(m,{client:a.client,queryKey:a.queryKey,meta:a.options.meta,signal:a.signal},i):a.fetchFn=m}}}function Xg(n,{pages:a,pageParams:i}){const s=a.length-1;return a.length>0?n.getNextPageParam(a[s],a,i[s],i):void 0}function n1(n,{pages:a,pageParams:i}){return a.length>0?n.getPreviousPageParam?.(a[0],a,i[0],i):void 0}var a1=class{#t;#e;#n;#a;#r;#l;#s;#i;constructor(n={}){this.#t=n.queryCache||new Jw,this.#e=n.mutationCache||new t1,this.#n=n.defaultOptions||{},this.#a=new Map,this.#r=new Map,this.#l=0}mount(){this.#l++,this.#l===1&&(this.#s=hh.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=uu.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#l--,this.#l===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state.data}ensureQueryData(n){const a=this.defaultQueryOptions(n),i=this.#t.build(this,a),s=i.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(rr(a.staleTime,i))&&this.prefetchQuery(a),Promise.resolve(s))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:a,state:i})=>{const s=i.data;return[a,s]})}setQueryData(n,a,i){const s=this.defaultQueryOptions({queryKey:n}),c=this.#t.get(s.queryHash)?.state.data,d=Hw(a,c);if(d!==void 0)return this.#t.build(this,s).setData(d,{...i,manual:!0})}setQueriesData(n,a,i){return kt.batch(()=>this.#t.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,a,i)]))}getQueryState(n){const a=this.defaultQueryOptions({queryKey:n});return this.#t.get(a.queryHash)?.state}removeQueries(n){const a=this.#t;kt.batch(()=>{a.findAll(n).forEach(i=>{a.remove(i)})})}resetQueries(n,a){const i=this.#t;return kt.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},a)))}cancelQueries(n,a={}){const i={revert:!0,...a},s=kt.batch(()=>this.#t.findAll(n).map(o=>o.cancel(i)));return Promise.all(s).then(Wt).catch(Wt)}invalidateQueries(n,a={}){return kt.batch(()=>(this.#t.findAll(n).forEach(i=>{i.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},a)))}refetchQueries(n,a={}){const i={...a,cancelRefetch:a.cancelRefetch??!0},s=kt.batch(()=>this.#t.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let c=o.fetch(void 0,i);return i.throwOnError||(c=c.catch(Wt)),o.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(Wt)}fetchQuery(n){const a=this.defaultQueryOptions(n);a.retry===void 0&&(a.retry=!1);const i=this.#t.build(this,a);return i.isStaleByTime(rr(a.staleTime,i))?i.fetch(a):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Wt).catch(Wt)}fetchInfiniteQuery(n){return n.behavior=Qg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Wt).catch(Wt)}ensureInfiniteQueryData(n){return n.behavior=Qg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return uu.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,a){this.#a.set(ll(n),{queryKey:n,defaultOptions:a})}getQueryDefaults(n){const a=[...this.#a.values()],i={};return a.forEach(s=>{ol(n,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(n,a){this.#r.set(ll(n),{mutationKey:n,defaultOptions:a})}getMutationDefaults(n){const a=[...this.#r.values()],i={};return a.forEach(s=>{ol(n,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const a={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return a.queryHash||(a.queryHash=fh(a.queryKey,a)),a.refetchOnReconnect===void 0&&(a.refetchOnReconnect=a.networkMode!=="always"),a.throwOnError===void 0&&(a.throwOnError=!!a.suspense),!a.networkMode&&a.persister&&(a.networkMode="offlineFirst"),a.queryFn===dh&&(a.enabled=!1),a}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},r1=class extends Cl{constructor(n,a){super(),this.options=a,this.#t=n,this.#i=null,this.#s=zd(),this.bindMethods(),this.setOptions(a)}#t;#e=void 0;#n=void 0;#a=void 0;#r;#l;#s;#i;#p;#d;#h;#u;#c;#o;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Kg(this.#e,this.options)?this.#f():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Ud(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Ud(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const a=this.options,i=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof wn(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#e.setOptions(this.options),a._defaulted&&!Dd(this.options,a)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const s=this.hasListeners();s&&$g(this.#e,i,this.options,a)&&this.#f(),this.updateResult(),s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||rr(this.options.staleTime,this.#e)!==rr(a.staleTime,this.#e))&&this.#v();const o=this.#g();s&&(this.#e!==i||wn(this.options.enabled,this.#e)!==wn(a.enabled,this.#e)||o!==this.#o)&&this.#y(o)}getOptimisticResult(n){const a=this.#t.getQueryCache().build(this.#t,n),i=this.createResult(a,n);return s1(this,i)&&(this.#a=i,this.#l=this.options,this.#r=this.#e.state),i}getCurrentResult(){return this.#a}trackResult(n,a){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),a?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){this.#m.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=this.#t.defaultQueryOptions(n),i=this.#t.getQueryCache().build(this.#t,a);return i.fetch().then(()=>this.createResult(i,a))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#_();let a=this.#e.fetch(this.options,n);return n?.throwOnError||(a=a.catch(Wt)),a}#v(){this.#x();const n=rr(this.options.staleTime,this.#e);if(Vr||this.#a.isStale||!Nd(n))return;const i=rb(this.#a.dataUpdatedAt,n)+1;this.#u=setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#y(n){this.#S(),this.#o=n,!(Vr||wn(this.options.enabled,this.#e)===!1||!Nd(this.#o)||this.#o===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||hh.isFocused())&&this.#f()},this.#o))}#b(){this.#v(),this.#y(this.#g())}#x(){this.#u&&(clearTimeout(this.#u),this.#u=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,a){const i=this.#e,s=this.options,o=this.#a,c=this.#r,d=this.#l,p=n!==i?n.state:this.#n,{state:m}=n;let g={...m},S=!1,w;if(a._optimisticResults){const z=this.hasListeners(),ae=!z&&Kg(n,a),oe=z&&$g(n,i,a,s);(ae||oe)&&(g={...g,...fb(m.data,n.options)}),a._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:A,errorUpdatedAt:O,status:_}=g;w=g.data;let C=!1;if(a.placeholderData!==void 0&&w===void 0&&_==="pending"){let z;o?.isPlaceholderData&&a.placeholderData===d?.placeholderData?(z=o.data,C=!0):z=typeof a.placeholderData=="function"?a.placeholderData(this.#h?.state.data,this.#h):a.placeholderData,z!==void 0&&(_="success",w=kd(o?.data,z,a),S=!0)}if(a.select&&w!==void 0&&!C)if(o&&w===c?.data&&a.select===this.#p)w=this.#d;else try{this.#p=a.select,w=a.select(w),w=kd(o?.data,w,a),this.#d=w,this.#i=null}catch(z){this.#i=z}this.#i&&(A=this.#i,w=this.#d,O=Date.now(),_="error");const U=g.fetchStatus==="fetching",N=_==="pending",M=_==="error",L=N&&U,B=w!==void 0,Z={status:_,fetchStatus:g.fetchStatus,isPending:N,isSuccess:_==="success",isError:M,isInitialLoading:L,isLoading:L,data:w,dataUpdatedAt:g.dataUpdatedAt,error:A,errorUpdatedAt:O,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:U,isRefetching:U&&!N,isLoadingError:M&&!B,isPaused:g.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:M&&B,isStale:mh(n,a),refetch:this.refetch,promise:this.#s,isEnabled:wn(a.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const z=Se=>{Z.status==="error"?Se.reject(Z.error):Z.data!==void 0&&Se.resolve(Z.data)},ae=()=>{const Se=this.#s=Z.promise=zd();z(Se)},oe=this.#s;switch(oe.status){case"pending":n.queryHash===i.queryHash&&z(oe);break;case"fulfilled":(Z.status==="error"||Z.data!==oe.value)&&ae();break;case"rejected":(Z.status!=="error"||Z.error!==oe.reason)&&ae();break}}return Z}updateResult(){const n=this.#a,a=this.createResult(this.#e,this.options);if(this.#r=this.#e.state,this.#l=this.options,this.#r.data!==void 0&&(this.#h=this.#e),Dd(a,n))return;this.#a=a;const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#m.size)return!0;const c=new Set(o??this.#m);return this.options.throwOnError&&c.add("error"),Object.keys(this.#a).some(d=>{const h=d;return this.#a[h]!==n[h]&&c.has(h)})};this.#w({listeners:i()})}#_(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const a=this.#e;this.#e=n,this.#n=n.state,this.hasListeners()&&(a?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#w(n){kt.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(this.#a)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function i1(n,a){return wn(a.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&a.retryOnMount===!1)}function Kg(n,a){return i1(n,a)||n.state.data!==void 0&&Ud(n,a,a.refetchOnMount)}function Ud(n,a,i){if(wn(a.enabled,n)!==!1&&rr(a.staleTime,n)!=="static"){const s=typeof i=="function"?i(n):i;return s==="always"||s!==!1&&mh(n,a)}return!1}function $g(n,a,i,s){return(n!==a||wn(s.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&mh(n,i)}function mh(n,a){return wn(a.enabled,n)!==!1&&n.isStaleByTime(rr(a.staleTime,n))}function s1(n,a){return!Dd(n.getCurrentResult(),a)}var ud={exports:{}},Ue={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Jg;function l1(){if(Jg)return Ue;Jg=1;var n=Symbol.for("react.transitional.element"),a=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.iterator;function w(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,_={};function C(T,Y,se){this.props=T,this.context=Y,this.refs=_,this.updater=se||A}C.prototype.isReactComponent={},C.prototype.setState=function(T,Y){if(typeof T!="object"&&typeof T!="function"&&T!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,T,Y,"setState")},C.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function U(){}U.prototype=C.prototype;function N(T,Y,se){this.props=T,this.context=Y,this.refs=_,this.updater=se||A}var M=N.prototype=new U;M.constructor=N,O(M,C.prototype),M.isPureReactComponent=!0;var L=Array.isArray,B={H:null,A:null,T:null,S:null,V:null},ne=Object.prototype.hasOwnProperty;function Z(T,Y,se,W,ce,Re){return se=Re.ref,{$$typeof:n,type:T,key:Y,ref:se!==void 0?se:null,props:Re}}function z(T,Y){return Z(T.type,Y,void 0,void 0,void 0,T.props)}function ae(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function oe(T){var Y={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(se){return Y[se]})}var Se=/\/+/g;function re(T,Y){return typeof T=="object"&&T!==null&&T.key!=null?oe(""+T.key):Y.toString(36)}function ie(){}function ue(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(ie,ie):(T.status="pending",T.then(function(Y){T.status==="pending"&&(T.status="fulfilled",T.value=Y)},function(Y){T.status==="pending"&&(T.status="rejected",T.reason=Y)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function me(T,Y,se,W,ce){var Re=typeof T;(Re==="undefined"||Re==="boolean")&&(T=null);var xe=!1;if(T===null)xe=!0;else switch(Re){case"bigint":case"string":case"number":xe=!0;break;case"object":switch(T.$$typeof){case n:case a:xe=!0;break;case g:return xe=T._init,me(xe(T._payload),Y,se,W,ce)}}if(xe)return ce=ce(T),xe=W===""?"."+re(T,0):W,L(ce)?(se="",xe!=null&&(se=xe.replace(Se,"$&/")+"/"),me(ce,Y,se,"",function(Xe){return Xe})):ce!=null&&(ae(ce)&&(ce=z(ce,se+(ce.key==null||T&&T.key===ce.key?"":(""+ce.key).replace(Se,"$&/")+"/")+xe)),Y.push(ce)),1;xe=0;var ee=W===""?".":W+":";if(L(T))for(var Te=0;Te<T.length;Te++)W=T[Te],Re=ee+re(W,Te),xe+=me(W,Y,se,Re,ce);else if(Te=w(T),typeof Te=="function")for(T=Te.call(T),Te=0;!(W=T.next()).done;)W=W.value,Re=ee+re(W,Te++),xe+=me(W,Y,se,Re,ce);else if(Re==="object"){if(typeof T.then=="function")return me(ue(T),Y,se,W,ce);throw Y=String(T),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return xe}function j(T,Y,se){if(T==null)return T;var W=[],ce=0;return me(T,W,"","",function(Re){return Y.call(se,Re,ce++)}),W}function I(T){if(T._status===-1){var Y=T._result;Y=Y(),Y.then(function(se){(T._status===0||T._status===-1)&&(T._status=1,T._result=se)},function(se){(T._status===0||T._status===-1)&&(T._status=2,T._result=se)}),T._status===-1&&(T._status=0,T._result=Y)}if(T._status===1)return T._result.default;throw T._result}var P=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)};function J(){}return Ue.Children={map:j,forEach:function(T,Y,se){j(T,function(){Y.apply(this,arguments)},se)},count:function(T){var Y=0;return j(T,function(){Y++}),Y},toArray:function(T){return j(T,function(Y){return Y})||[]},only:function(T){if(!ae(T))throw Error("React.Children.only expected to receive a single React element child.");return T}},Ue.Component=C,Ue.Fragment=i,Ue.Profiler=o,Ue.PureComponent=N,Ue.StrictMode=s,Ue.Suspense=p,Ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Ue.__COMPILER_RUNTIME={__proto__:null,c:function(T){return B.H.useMemoCache(T)}},Ue.cache=function(T){return function(){return T.apply(null,arguments)}},Ue.cloneElement=function(T,Y,se){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var W=O({},T.props),ce=T.key,Re=void 0;if(Y!=null)for(xe in Y.ref!==void 0&&(Re=void 0),Y.key!==void 0&&(ce=""+Y.key),Y)!ne.call(Y,xe)||xe==="key"||xe==="__self"||xe==="__source"||xe==="ref"&&Y.ref===void 0||(W[xe]=Y[xe]);var xe=arguments.length-2;if(xe===1)W.children=se;else if(1<xe){for(var ee=Array(xe),Te=0;Te<xe;Te++)ee[Te]=arguments[Te+2];W.children=ee}return Z(T.type,ce,void 0,void 0,Re,W)},Ue.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:c,_context:T},T},Ue.createElement=function(T,Y,se){var W,ce={},Re=null;if(Y!=null)for(W in Y.key!==void 0&&(Re=""+Y.key),Y)ne.call(Y,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ce[W]=Y[W]);var xe=arguments.length-2;if(xe===1)ce.children=se;else if(1<xe){for(var ee=Array(xe),Te=0;Te<xe;Te++)ee[Te]=arguments[Te+2];ce.children=ee}if(T&&T.defaultProps)for(W in xe=T.defaultProps,xe)ce[W]===void 0&&(ce[W]=xe[W]);return Z(T,Re,void 0,void 0,null,ce)},Ue.createRef=function(){return{current:null}},Ue.forwardRef=function(T){return{$$typeof:h,render:T}},Ue.isValidElement=ae,Ue.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:I}},Ue.memo=function(T,Y){return{$$typeof:m,type:T,compare:Y===void 0?null:Y}},Ue.startTransition=function(T){var Y=B.T,se={};B.T=se;try{var W=T(),ce=B.S;ce!==null&&ce(se,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(J,P)}catch(Re){P(Re)}finally{B.T=Y}},Ue.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},Ue.use=function(T){return B.H.use(T)},Ue.useActionState=function(T,Y,se){return B.H.useActionState(T,Y,se)},Ue.useCallback=function(T,Y){return B.H.useCallback(T,Y)},Ue.useContext=function(T){return B.H.useContext(T)},Ue.useDebugValue=function(){},Ue.useDeferredValue=function(T,Y){return B.H.useDeferredValue(T,Y)},Ue.useEffect=function(T,Y,se){var W=B.H;if(typeof se=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return W.useEffect(T,Y)},Ue.useId=function(){return B.H.useId()},Ue.useImperativeHandle=function(T,Y,se){return B.H.useImperativeHandle(T,Y,se)},Ue.useInsertionEffect=function(T,Y){return B.H.useInsertionEffect(T,Y)},Ue.useLayoutEffect=function(T,Y){return B.H.useLayoutEffect(T,Y)},Ue.useMemo=function(T,Y){return B.H.useMemo(T,Y)},Ue.useOptimistic=function(T,Y){return B.H.useOptimistic(T,Y)},Ue.useReducer=function(T,Y,se){return B.H.useReducer(T,Y,se)},Ue.useRef=function(T){return B.H.useRef(T)},Ue.useState=function(T){return B.H.useState(T)},Ue.useSyncExternalStore=function(T,Y,se){return B.H.useSyncExternalStore(T,Y,se)},Ue.useTransition=function(){return B.H.useTransition()},Ue.version="19.1.1",Ue}var Wg;function ph(){return Wg||(Wg=1,ud.exports=l1()),ud.exports}var b=ph();const je=ch(b),db=Lw({__proto__:null,default:je},[b]);var hb=b.createContext(void 0),o1=n=>{const a=b.useContext(hb);if(!a)throw new Error("No QueryClient set, use QueryClientProvider to set one");return a},u1=({client:n,children:a})=>(b.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),y.jsx(hb.Provider,{value:n,children:a})),mb=b.createContext(!1),c1=()=>b.useContext(mb);mb.Provider;function f1(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var d1=b.createContext(f1()),h1=()=>b.useContext(d1),m1=(n,a)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(a.isReset()||(n.retryOnMount=!1))},p1=n=>{b.useEffect(()=>{n.clearReset()},[n])},v1=({result:n,errorResetBoundary:a,throwOnError:i,query:s,suspense:o})=>n.isError&&!a.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||Fw(i,[n.error,s])),g1=n=>{if(n.suspense){const a=s=>s==="static"?s:Math.max(s??1e3,1e3),i=n.staleTime;n.staleTime=typeof i=="function"?(...s)=>a(i(...s)):a(i),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},y1=(n,a)=>n.isLoading&&n.isFetching&&!a,b1=(n,a)=>n?.suspense&&a.isPending,ey=(n,a,i)=>a.fetchOptimistic(n).catch(()=>{i.clearReset()});function x1(n,a,i){const s=c1(),o=h1(),c=o1(),d=c.defaultQueryOptions(n);c.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=s?"isRestoring":"optimistic",g1(d),m1(d,o),p1(o);const h=!c.getQueryCache().get(d.queryHash),[p]=b.useState(()=>new a(c,d)),m=p.getOptimisticResult(d),g=!s&&n.subscribed!==!1;if(b.useSyncExternalStore(b.useCallback(S=>{const w=g?p.subscribe(kt.batchCalls(S)):Wt;return p.updateResult(),w},[p,g]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),b.useEffect(()=>{p.setOptions(d)},[d,p]),b1(d,m))throw ey(d,p,o);if(v1({result:m,errorResetBoundary:o,throwOnError:d.throwOnError,query:c.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return c.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!Vr&&y1(m,s)&&(h?ey(d,p,o):c.getQueryCache().get(d.queryHash)?.promise)?.catch(Wt).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?m:p.trackResult(m)}function Ld(n,a){return x1(n,r1)}const S1=new a1({defaultOptions:{queries:{staleTime:1e3*60,refetchOnWindowFocus:!1}}});var cd={exports:{}},Js={},fd={exports:{}},dd={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ty;function _1(){return ty||(ty=1,(function(n){function a(j,I){var P=j.length;j.push(I);e:for(;0<P;){var J=P-1>>>1,T=j[J];if(0<o(T,I))j[J]=I,j[P]=T,P=J;else break e}}function i(j){return j.length===0?null:j[0]}function s(j){if(j.length===0)return null;var I=j[0],P=j.pop();if(P!==I){j[0]=P;e:for(var J=0,T=j.length,Y=T>>>1;J<Y;){var se=2*(J+1)-1,W=j[se],ce=se+1,Re=j[ce];if(0>o(W,P))ce<T&&0>o(Re,W)?(j[J]=Re,j[ce]=P,J=ce):(j[J]=W,j[se]=P,J=se);else if(ce<T&&0>o(Re,P))j[J]=Re,j[ce]=P,J=ce;else break e}}return I}function o(j,I){var P=j.sortIndex-I.sortIndex;return P!==0?P:j.id-I.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var d=Date,h=d.now();n.unstable_now=function(){return d.now()-h}}var p=[],m=[],g=1,S=null,w=3,A=!1,O=!1,_=!1,C=!1,U=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function L(j){for(var I=i(m);I!==null;){if(I.callback===null)s(m);else if(I.startTime<=j)s(m),I.sortIndex=I.expirationTime,a(p,I);else break;I=i(m)}}function B(j){if(_=!1,L(j),!O)if(i(p)!==null)O=!0,ne||(ne=!0,re());else{var I=i(m);I!==null&&me(B,I.startTime-j)}}var ne=!1,Z=-1,z=5,ae=-1;function oe(){return C?!0:!(n.unstable_now()-ae<z)}function Se(){if(C=!1,ne){var j=n.unstable_now();ae=j;var I=!0;try{e:{O=!1,_&&(_=!1,N(Z),Z=-1),A=!0;var P=w;try{t:{for(L(j),S=i(p);S!==null&&!(S.expirationTime>j&&oe());){var J=S.callback;if(typeof J=="function"){S.callback=null,w=S.priorityLevel;var T=J(S.expirationTime<=j);if(j=n.unstable_now(),typeof T=="function"){S.callback=T,L(j),I=!0;break t}S===i(p)&&s(p),L(j)}else s(p);S=i(p)}if(S!==null)I=!0;else{var Y=i(m);Y!==null&&me(B,Y.startTime-j),I=!1}}break e}finally{S=null,w=P,A=!1}I=void 0}}finally{I?re():ne=!1}}}var re;if(typeof M=="function")re=function(){M(Se)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ue=ie.port2;ie.port1.onmessage=Se,re=function(){ue.postMessage(null)}}else re=function(){U(Se,0)};function me(j,I){Z=U(function(){j(n.unstable_now())},I)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(j){j.callback=null},n.unstable_forceFrameRate=function(j){0>j||125<j?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<j?Math.floor(1e3/j):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(j){switch(w){case 1:case 2:case 3:var I=3;break;default:I=w}var P=w;w=I;try{return j()}finally{w=P}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(j,I){switch(j){case 1:case 2:case 3:case 4:case 5:break;default:j=3}var P=w;w=j;try{return I()}finally{w=P}},n.unstable_scheduleCallback=function(j,I,P){var J=n.unstable_now();switch(typeof P=="object"&&P!==null?(P=P.delay,P=typeof P=="number"&&0<P?J+P:J):P=J,j){case 1:var T=-1;break;case 2:T=250;break;case 5:T=1073741823;break;case 4:T=1e4;break;default:T=5e3}return T=P+T,j={id:g++,callback:I,priorityLevel:j,startTime:P,expirationTime:T,sortIndex:-1},P>J?(j.sortIndex=P,a(m,j),i(p)===null&&j===i(m)&&(_?(N(Z),Z=-1):_=!0,me(B,P-J))):(j.sortIndex=T,a(p,j),O||A||(O=!0,ne||(ne=!0,re()))),j},n.unstable_shouldYield=oe,n.unstable_wrapCallback=function(j){var I=w;return function(){var P=w;w=I;try{return j.apply(this,arguments)}finally{w=P}}}})(dd)),dd}var ny;function w1(){return ny||(ny=1,fd.exports=_1()),fd.exports}var hd={exports:{}},Vt={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ay;function E1(){if(ay)return Vt;ay=1;var n=ph();function a(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(a(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(p,m,g){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:S==null?null:""+S,children:p,containerInfo:m,implementation:g}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vt.createPortal=function(p,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(a(299));return c(p,m,null,g)},Vt.flushSync=function(p){var m=d.T,g=s.p;try{if(d.T=null,s.p=2,p)return p()}finally{d.T=m,s.p=g,s.d.f()}},Vt.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(p,m))},Vt.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Vt.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var g=m.as,S=h(g,m.crossOrigin),w=typeof m.integrity=="string"?m.integrity:void 0,A=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?s.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:S,integrity:w,fetchPriority:A}):g==="script"&&s.d.X(p,{crossOrigin:S,integrity:w,fetchPriority:A,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Vt.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=h(m.as,m.crossOrigin);s.d.M(p,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(p)},Vt.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,S=h(g,m.crossOrigin);s.d.L(p,g,{crossOrigin:S,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Vt.preloadModule=function(p,m){if(typeof p=="string")if(m){var g=h(m.as,m.crossOrigin);s.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(p)},Vt.requestFormReset=function(p){s.d.r(p)},Vt.unstable_batchedUpdates=function(p,m){return p(m)},Vt.useFormState=function(p,m,g){return d.H.useFormState(p,m,g)},Vt.useFormStatus=function(){return d.H.useHostTransitionStatus()},Vt.version="19.1.1",Vt}var ry;function pb(){if(ry)return hd.exports;ry=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),hd.exports=E1(),hd.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var iy;function T1(){if(iy)return Js;iy=1;var n=w1(),a=ph(),i=pb();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var r=2;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function c(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function d(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(c(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=c(e),t===null)throw Error(s(188));return t!==e?null:e}for(var r=e,l=t;;){var u=r.return;if(u===null)break;var f=u.alternate;if(f===null){if(l=u.return,l!==null){r=l;continue}break}if(u.child===f.child){for(f=u.child;f;){if(f===r)return h(u),e;if(f===l)return h(u),t;f=f.sibling}throw Error(s(188))}if(r.return!==l.return)r=u,l=f;else{for(var v=!1,x=u.child;x;){if(x===r){v=!0,r=u,l=f;break}if(x===l){v=!0,l=u,r=f;break}x=x.sibling}if(!v){for(x=f.child;x;){if(x===r){v=!0,r=f,l=u;break}if(x===l){v=!0,l=f,r=u;break}x=x.sibling}if(!v)throw Error(s(189))}}if(r.alternate!==l)throw Error(s(190))}if(r.tag!==3)throw Error(s(188));return r.stateNode.current===r?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,S=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),N=Symbol.for("react.consumer"),M=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),ne=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),oe=Symbol.for("react.memo_cache_sentinel"),Se=Symbol.iterator;function re(e){return e===null||typeof e!="object"?null:(e=Se&&e[Se]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case O:return"Fragment";case C:return"Profiler";case _:return"StrictMode";case B:return"Suspense";case ne:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case M:return(e.displayName||"Context")+".Provider";case N:return(e._context.displayName||"Context")+".Consumer";case L:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Z:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case z:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var me=Array.isArray,j=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,P={pending:!1,data:null,method:null,action:null},J=[],T=-1;function Y(e){return{current:e}}function se(e){0>T||(e.current=J[T],J[T]=null,T--)}function W(e,t){T++,J[T]=e.current,e.current=t}var ce=Y(null),Re=Y(null),xe=Y(null),ee=Y(null);function Te(e,t){switch(W(xe,t),W(Re,e),W(ce,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?vg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=vg(t),e=gg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}se(ce),W(ce,e)}function Xe(){se(ce),se(Re),se(xe)}function He(e){e.memoizedState!==null&&W(ee,e);var t=ce.current,r=gg(t,e.type);t!==r&&(W(Re,e),W(ce,r))}function Fe(e){Re.current===e&&(se(ce),se(Re)),ee.current===e&&(se(ee),Ys._currentValue=P)}var Ke=Object.prototype.hasOwnProperty,At=n.unstable_scheduleCallback,Yt=n.unstable_cancelCallback,Oa=n.unstable_shouldYield,mr=n.unstable_requestPaint,zt=n.unstable_now,Jh=n.unstable_getCurrentPriorityLevel,ts=n.unstable_ImmediatePriority,R=n.unstable_UserBlockingPriority,q=n.unstable_NormalPriority,X=n.unstable_LowPriority,pe=n.unstable_IdlePriority,fe=n.log,le=n.unstable_setDisableYieldValue,_e=null,ke=null;function Ze(e){if(typeof fe=="function"&&le(e),ke&&typeof ke.setStrictMode=="function")try{ke.setStrictMode(_e,e)}catch{}}var ot=Math.clz32?Math.clz32:Xu,Kr=Math.log,Ln=Math.LN2;function Xu(e){return e>>>=0,e===0?32:31-(Kr(e)/Ln|0)|0}var Ma=256,Na=4194304;function ea(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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function pr(e,t,r){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,v=e.pingedLanes;e=e.warmLanes;var x=l&134217727;return x!==0?(l=x&~f,l!==0?u=ea(l):(v&=x,v!==0?u=ea(v):r||(r=x&~e,r!==0&&(u=ea(r))))):(x=l&~f,x!==0?u=ea(x):v!==0?u=ea(v):r||(r=l&~e,r!==0&&(u=ea(r)))),u===0?0:t!==0&&t!==u&&(t&f)===0&&(f=u&-u,r=t&-t,f>=r||f===32&&(r&4194048)!==0)?t:u}function vr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zl(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wh(){var e=Ma;return Ma<<=1,(Ma&4194048)===0&&(Ma=256),e}function em(){var e=Na;return Na<<=1,(Na&62914560)===0&&(Na=4194304),e}function Ku(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function ns(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function _S(e,t,r,l,u,f){var v=e.pendingLanes;e.pendingLanes=r,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=r,e.entangledLanes&=r,e.errorRecoveryDisabledLanes&=r,e.shellSuspendCounter=0;var x=e.entanglements,E=e.expirationTimes,H=e.hiddenUpdates;for(r=v&~r;0<r;){var Q=31-ot(r),$=1<<Q;x[Q]=0,E[Q]=-1;var G=H[Q];if(G!==null)for(H[Q]=null,Q=0;Q<G.length;Q++){var F=G[Q];F!==null&&(F.lane&=-536870913)}r&=~$}l!==0&&tm(e,l,0),f!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=f&~(v&~t))}function tm(e,t,r){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-ot(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|r&4194090}function nm(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var l=31-ot(r),u=1<<l;u&t|e[l]&t&&(e[l]|=t),r&=~u}}function $u(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 Ju(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function am(){var e=I.p;return e!==0?e:(e=window.event,e===void 0?32:Ug(e.type))}function wS(e,t){var r=I.p;try{return I.p=e,t()}finally{I.p=r}}var Da=Math.random().toString(36).slice(2),Ut="__reactFiber$"+Da,It="__reactProps$"+Da,$r="__reactContainer$"+Da,Wu="__reactEvents$"+Da,ES="__reactListeners$"+Da,TS="__reactHandles$"+Da,rm="__reactResources$"+Da,as="__reactMarker$"+Da;function ec(e){delete e[Ut],delete e[It],delete e[Wu],delete e[ES],delete e[TS]}function Jr(e){var t=e[Ut];if(t)return t;for(var r=e.parentNode;r;){if(t=r[$r]||r[Ut]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=Sg(e);e!==null;){if(r=e[Ut])return r;e=Sg(e)}return t}e=r,r=e.parentNode}return null}function Wr(e){if(e=e[Ut]||e[$r]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function rs(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function ei(e){var t=e[rm];return t||(t=e[rm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[as]=!0}var im=new Set,sm={};function gr(e,t){ti(e,t),ti(e+"Capture",t)}function ti(e,t){for(sm[e]=t,e=0;e<t.length;e++)im.add(t[e])}var AS=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]*$"),lm={},om={};function CS(e){return Ke.call(om,e)?!0:Ke.call(lm,e)?!1:AS.test(e)?om[e]=!0:(lm[e]=!0,!1)}function Ul(e,t,r){if(CS(t))if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+r)}}function Ll(e,t,r){if(r===null)e.removeAttribute(t);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+r)}}function ta(e,t,r,l){if(l===null)e.removeAttribute(r);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttributeNS(t,r,""+l)}}var tc,um;function ni(e){if(tc===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);tc=t&&t[1]||"",um=-1<r.stack.indexOf(`
at`)?" (<anonymous>)":-1<r.stack.indexOf("@")?"@unknown:0:0":""}return`
`+tc+e+um}var nc=!1;function ac(e,t){if(!e||nc)return"";nc=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var $=function(){throw Error()};if(Object.defineProperty($.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct($,[])}catch(F){var G=F}Reflect.construct(e,[],$)}else{try{$.call()}catch(F){G=F}e.call($.prototype)}}else{try{throw Error()}catch(F){G=F}($=e())&&typeof $.catch=="function"&&$.catch(function(){})}}catch(F){if(F&&G&&typeof F.stack=="string")return[F.stack,G.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=l.DetermineComponentFrameRoot(),v=f[0],x=f[1];if(v&&x){var E=v.split(`
`),H=x.split(`
`);for(u=l=0;l<E.length&&!E[l].includes("DetermineComponentFrameRoot");)l++;for(;u<H.length&&!H[u].includes("DetermineComponentFrameRoot");)u++;if(l===E.length||u===H.length)for(l=E.length-1,u=H.length-1;1<=l&&0<=u&&E[l]!==H[u];)u--;for(;1<=l&&0<=u;l--,u--)if(E[l]!==H[u]){if(l!==1||u!==1)do if(l--,u--,0>u||E[l]!==H[u]){var Q=`
`+E[l].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=l&&0<=u);break}}}finally{nc=!1,Error.prepareStackTrace=r}return(r=e?e.displayName||e.name:"")?ni(r):""}function RS(e){switch(e.tag){case 26:case 27:case 5:return ni(e.type);case 16:return ni("Lazy");case 13:return ni("Suspense");case 19:return ni("SuspenseList");case 0:case 15:return ac(e.type,!1);case 11:return ac(e.type.render,!1);case 1:return ac(e.type,!0);case 31:return ni("Activity");default:return""}}function cm(e){try{var t="";do t+=RS(e),e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}function hn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function OS(e){var t=fm(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var u=r.get,f=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(v){l=""+v,f.call(this,v)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return l},setValue:function(v){l=""+v},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vl(e){e._valueTracker||(e._valueTracker=OS(e))}function dm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),l="";return e&&(l=fm(e)?e.checked?"true":"false":e.value),e=l,e!==r?(t.setValue(e),!0):!1}function Bl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var MS=/[\n"\\]/g;function mn(e){return e.replace(MS,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function rc(e,t,r,l,u,f,v,x){e.name="",v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.type=v:e.removeAttribute("type"),t!=null?v==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+hn(t)):e.value!==""+hn(t)&&(e.value=""+hn(t)):v!=="submit"&&v!=="reset"||e.removeAttribute("value"),t!=null?ic(e,v,hn(t)):r!=null?ic(e,v,hn(r)):l!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+hn(x):e.removeAttribute("name")}function hm(e,t,r,l,u,f,v,x){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||r!=null){if(!(f!=="submit"&&f!=="reset"||t!=null))return;r=r!=null?""+hn(r):"",t=t!=null?""+hn(t):r,x||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=x?e.checked:!!l,e.defaultChecked=!!l,v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(e.name=v)}function ic(e,t,r){t==="number"&&Bl(e.ownerDocument)===e||e.defaultValue===""+r||(e.defaultValue=""+r)}function ai(e,t,r,l){if(e=e.options,t){t={};for(var u=0;u<r.length;u++)t["$"+r[u]]=!0;for(r=0;r<e.length;r++)u=t.hasOwnProperty("$"+e[r].value),e[r].selected!==u&&(e[r].selected=u),u&&l&&(e[r].defaultSelected=!0)}else{for(r=""+hn(r),t=null,u=0;u<e.length;u++){if(e[u].value===r){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function mm(e,t,r){if(t!=null&&(t=""+hn(t),t!==e.value&&(e.value=t),r==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=r!=null?""+hn(r):""}function pm(e,t,r,l){if(t==null){if(l!=null){if(r!=null)throw Error(s(92));if(me(l)){if(1<l.length)throw Error(s(93));l=l[0]}r=l}r==null&&(r=""),t=r}r=hn(t),e.defaultValue=r,l=e.textContent,l===r&&l!==""&&l!==null&&(e.value=l)}function ri(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var NS=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function vm(e,t,r){var l=t.indexOf("--")===0;r==null||typeof r=="boolean"||r===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,r):typeof r!="number"||r===0||NS.has(t)?t==="float"?e.cssFloat=r:e[t]=(""+r).trim():e[t]=r+"px"}function gm(e,t,r){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,r!=null){for(var l in r)!r.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&r[u]!==l&&vm(e,u,l)}else for(var f in t)t.hasOwnProperty(f)&&vm(e,f,t[f])}function sc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var DS=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"]]),jS=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hl(e){return jS.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var lc=null;function oc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ii=null,si=null;function ym(e){var t=Wr(e);if(t&&(e=t.stateNode)){var r=e[It]||null;e:switch(e=t.stateNode,t.type){case"input":if(rc(e,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll('input[name="'+mn(""+t)+'"][type="radio"]'),t=0;t<r.length;t++){var l=r[t];if(l!==e&&l.form===e.form){var u=l[It]||null;if(!u)throw Error(s(90));rc(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<r.length;t++)l=r[t],l.form===e.form&&dm(l)}break e;case"textarea":mm(e,r.value,r.defaultValue);break e;case"select":t=r.value,t!=null&&ai(e,!!r.multiple,t,!1)}}}var uc=!1;function bm(e,t,r){if(uc)return e(t,r);uc=!0;try{var l=e(t);return l}finally{if(uc=!1,(ii!==null||si!==null)&&(Ao(),ii&&(t=ii,e=si,si=ii=null,ym(t),e)))for(t=0;t<e.length;t++)ym(e[t])}}function is(e,t){var r=e.stateNode;if(r===null)return null;var l=r[It]||null;if(l===null)return null;r=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(s(231,t,typeof r));return r}var na=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cc=!1;if(na)try{var ss={};Object.defineProperty(ss,"passive",{get:function(){cc=!0}}),window.addEventListener("test",ss,ss),window.removeEventListener("test",ss,ss)}catch{cc=!1}var ja=null,fc=null,ql=null;function xm(){if(ql)return ql;var e,t=fc,r=t.length,l,u="value"in ja?ja.value:ja.textContent,f=u.length;for(e=0;e<r&&t[e]===u[e];e++);var v=r-e;for(l=1;l<=v&&t[r-l]===u[f-l];l++);return ql=u.slice(e,1<l?1-l:void 0)}function Pl(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 Gl(){return!0}function Sm(){return!1}function Qt(e){function t(r,l,u,f,v){this._reactName=r,this._targetInst=u,this.type=l,this.nativeEvent=f,this.target=v,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(r=e[x],this[x]=r?r(f):f[x]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Gl:Sm,this.isPropagationStopped=Sm,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=Gl)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=Gl)},persist:function(){},isPersistent:Gl}),t}var yr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fl=Qt(yr),ls=g({},yr,{view:0,detail:0}),kS=Qt(ls),dc,hc,os,Zl=g({},ls,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pc,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!==os&&(os&&e.type==="mousemove"?(dc=e.screenX-os.screenX,hc=e.screenY-os.screenY):hc=dc=0,os=e),dc)},movementY:function(e){return"movementY"in e?e.movementY:hc}}),_m=Qt(Zl),zS=g({},Zl,{dataTransfer:0}),US=Qt(zS),LS=g({},ls,{relatedTarget:0}),mc=Qt(LS),VS=g({},yr,{animationName:0,elapsedTime:0,pseudoElement:0}),BS=Qt(VS),HS=g({},yr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qS=Qt(HS),PS=g({},yr,{data:0}),wm=Qt(PS),GS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FS={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"},ZS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function YS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ZS[e])?!!t[e]:!1}function pc(){return YS}var IS=g({},ls,{key:function(e){if(e.key){var t=GS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Pl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?FS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,charCode:function(e){return e.type==="keypress"?Pl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Pl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),QS=Qt(IS),XS=g({},Zl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Em=Qt(XS),KS=g({},ls,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),$S=Qt(KS),JS=g({},yr,{propertyName:0,elapsedTime:0,pseudoElement:0}),WS=Qt(JS),e_=g({},Zl,{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}),t_=Qt(e_),n_=g({},yr,{newState:0,oldState:0}),a_=Qt(n_),r_=[9,13,27,32],vc=na&&"CompositionEvent"in window,us=null;na&&"documentMode"in document&&(us=document.documentMode);var i_=na&&"TextEvent"in window&&!us,Tm=na&&(!vc||us&&8<us&&11>=us),Am=" ",Cm=!1;function Rm(e,t){switch(e){case"keyup":return r_.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var li=!1;function s_(e,t){switch(e){case"compositionend":return Om(t);case"keypress":return t.which!==32?null:(Cm=!0,Am);case"textInput":return e=t.data,e===Am&&Cm?null:e;default:return null}}function l_(e,t){if(li)return e==="compositionend"||!vc&&Rm(e,t)?(e=xm(),ql=fc=ja=null,li=!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 Tm&&t.locale!=="ko"?null:t.data;default:return null}}var o_={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Mm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!o_[e.type]:t==="textarea"}function Nm(e,t,r,l){ii?si?si.push(l):si=[l]:ii=l,t=Do(t,"onChange"),0<t.length&&(r=new Fl("onChange","change",null,r,l),e.push({event:r,listeners:t}))}var cs=null,fs=null;function u_(e){fg(e,0)}function Yl(e){var t=rs(e);if(dm(t))return e}function Dm(e,t){if(e==="change")return t}var jm=!1;if(na){var gc;if(na){var yc="oninput"in document;if(!yc){var km=document.createElement("div");km.setAttribute("oninput","return;"),yc=typeof km.oninput=="function"}gc=yc}else gc=!1;jm=gc&&(!document.documentMode||9<document.documentMode)}function zm(){cs&&(cs.detachEvent("onpropertychange",Um),fs=cs=null)}function Um(e){if(e.propertyName==="value"&&Yl(fs)){var t=[];Nm(t,fs,e,oc(e)),bm(u_,t)}}function c_(e,t,r){e==="focusin"?(zm(),cs=t,fs=r,cs.attachEvent("onpropertychange",Um)):e==="focusout"&&zm()}function f_(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Yl(fs)}function d_(e,t){if(e==="click")return Yl(t)}function h_(e,t){if(e==="input"||e==="change")return Yl(t)}function m_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var en=typeof Object.is=="function"?Object.is:m_;function ds(e,t){if(en(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),l=Object.keys(t);if(r.length!==l.length)return!1;for(l=0;l<r.length;l++){var u=r[l];if(!Ke.call(t,u)||!en(e[u],t[u]))return!1}return!0}function Lm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vm(e,t){var r=Lm(e);e=0;for(var l;r;){if(r.nodeType===3){if(l=e+r.textContent.length,e<=t&&l>=t)return{node:r,offset:t-e};e=l}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Lm(r)}}function Bm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Bl(e.document);t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Bl(e.document)}return t}function bc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var p_=na&&"documentMode"in document&&11>=document.documentMode,oi=null,xc=null,hs=null,Sc=!1;function qm(e,t,r){var l=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Sc||oi==null||oi!==Bl(l)||(l=oi,"selectionStart"in l&&bc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),hs&&ds(hs,l)||(hs=l,l=Do(xc,"onSelect"),0<l.length&&(t=new Fl("onSelect","select",null,t,r),e.push({event:t,listeners:l}),t.target=oi)))}function br(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ui={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionrun:br("Transition","TransitionRun"),transitionstart:br("Transition","TransitionStart"),transitioncancel:br("Transition","TransitionCancel"),transitionend:br("Transition","TransitionEnd")},_c={},Pm={};na&&(Pm=document.createElement("div").style,"AnimationEvent"in window||(delete ui.animationend.animation,delete ui.animationiteration.animation,delete ui.animationstart.animation),"TransitionEvent"in window||delete ui.transitionend.transition);function xr(e){if(_c[e])return _c[e];if(!ui[e])return e;var t=ui[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Pm)return _c[e]=t[r];return e}var Gm=xr("animationend"),Fm=xr("animationiteration"),Zm=xr("animationstart"),v_=xr("transitionrun"),g_=xr("transitionstart"),y_=xr("transitioncancel"),Ym=xr("transitionend"),Im=new Map,wc="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(" ");wc.push("scrollEnd");function Tn(e,t){Im.set(e,t),gr(t,[e])}var Qm=new WeakMap;function pn(e,t){if(typeof e=="object"&&e!==null){var r=Qm.get(e);return r!==void 0?r:(t={value:e,source:t,stack:cm(t)},Qm.set(e,t),t)}return{value:e,source:t,stack:cm(t)}}var vn=[],ci=0,Ec=0;function Il(){for(var e=ci,t=Ec=ci=0;t<e;){var r=vn[t];vn[t++]=null;var l=vn[t];vn[t++]=null;var u=vn[t];vn[t++]=null;var f=vn[t];if(vn[t++]=null,l!==null&&u!==null){var v=l.pending;v===null?u.next=u:(u.next=v.next,v.next=u),l.pending=u}f!==0&&Xm(r,u,f)}}function Ql(e,t,r,l){vn[ci++]=e,vn[ci++]=t,vn[ci++]=r,vn[ci++]=l,Ec|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Tc(e,t,r,l){return Ql(e,t,r,l),Xl(e)}function fi(e,t){return Ql(e,null,null,t),Xl(e)}function Xm(e,t,r){e.lanes|=r;var l=e.alternate;l!==null&&(l.lanes|=r);for(var u=!1,f=e.return;f!==null;)f.childLanes|=r,l=f.alternate,l!==null&&(l.childLanes|=r),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(u=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,u&&t!==null&&(u=31-ot(r),e=f.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=r|536870912),f):null}function Xl(e){if(50<Vs)throw Vs=0,Df=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var di={};function b_(e,t,r,l){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function tn(e,t,r,l){return new b_(e,t,r,l)}function Ac(e){return e=e.prototype,!(!e||!e.isReactComponent)}function aa(e,t){var r=e.alternate;return r===null?(r=tn(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&65011712,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r.refCleanup=e.refCleanup,r}function Km(e,t){e.flags&=65011714;var r=e.alternate;return r===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=r.childLanes,e.lanes=r.lanes,e.child=r.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=r.memoizedProps,e.memoizedState=r.memoizedState,e.updateQueue=r.updateQueue,e.type=r.type,t=r.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Kl(e,t,r,l,u,f){var v=0;if(l=e,typeof e=="function")Ac(e)&&(v=1);else if(typeof e=="string")v=Sw(e,r,ce.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=tn(31,r,t,u),e.elementType=ae,e.lanes=f,e;case O:return Sr(r.children,u,f,t);case _:v=8,u|=24;break;case C:return e=tn(12,r,t,u|2),e.elementType=C,e.lanes=f,e;case B:return e=tn(13,r,t,u),e.elementType=B,e.lanes=f,e;case ne:return e=tn(19,r,t,u),e.elementType=ne,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case U:case M:v=10;break e;case N:v=9;break e;case L:v=11;break e;case Z:v=14;break e;case z:v=16,l=null;break e}v=29,r=Error(s(130,e===null?"null":typeof e,"")),l=null}return t=tn(v,r,t,u),t.elementType=e,t.type=l,t.lanes=f,t}function Sr(e,t,r,l){return e=tn(7,e,l,t),e.lanes=r,e}function Cc(e,t,r){return e=tn(6,e,null,t),e.lanes=r,e}function Rc(e,t,r){return t=tn(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var hi=[],mi=0,$l=null,Jl=0,gn=[],yn=0,_r=null,ra=1,ia="";function wr(e,t){hi[mi++]=Jl,hi[mi++]=$l,$l=e,Jl=t}function $m(e,t,r){gn[yn++]=ra,gn[yn++]=ia,gn[yn++]=_r,_r=e;var l=ra;e=ia;var u=32-ot(l)-1;l&=~(1<<u),r+=1;var f=32-ot(t)+u;if(30<f){var v=u-u%5;f=(l&(1<<v)-1).toString(32),l>>=v,u-=v,ra=1<<32-ot(t)+u|r<<u|l,ia=f+e}else ra=1<<f|r<<u|l,ia=e}function Oc(e){e.return!==null&&(wr(e,1),$m(e,1,0))}function Mc(e){for(;e===$l;)$l=hi[--mi],hi[mi]=null,Jl=hi[--mi],hi[mi]=null;for(;e===_r;)_r=gn[--yn],gn[yn]=null,ia=gn[--yn],gn[yn]=null,ra=gn[--yn],gn[yn]=null}var qt=null,ht=null,Je=!1,Er=null,Vn=!1,Nc=Error(s(519));function Tr(e){var t=Error(s(418,""));throw vs(pn(t,e)),Nc}function Jm(e){var t=e.stateNode,r=e.type,l=e.memoizedProps;switch(t[Ut]=e,t[It]=l,r){case"dialog":Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":case"embed":Ge("load",t);break;case"video":case"audio":for(r=0;r<Hs.length;r++)Ge(Hs[r],t);break;case"source":Ge("error",t);break;case"img":case"image":case"link":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"input":Ge("invalid",t),hm(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Vl(t);break;case"select":Ge("invalid",t);break;case"textarea":Ge("invalid",t),pm(t,l.value,l.defaultValue,l.children),Vl(t)}r=l.children,typeof r!="string"&&typeof r!="number"&&typeof r!="bigint"||t.textContent===""+r||l.suppressHydrationWarning===!0||pg(t.textContent,r)?(l.popover!=null&&(Ge("beforetoggle",t),Ge("toggle",t)),l.onScroll!=null&&Ge("scroll",t),l.onScrollEnd!=null&&Ge("scrollend",t),l.onClick!=null&&(t.onclick=jo),t=!0):t=!1,t||Tr(e)}function Wm(e){for(qt=e.return;qt;)switch(qt.tag){case 5:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:qt=qt.return}}function ms(e){if(e!==qt)return!1;if(!Je)return Wm(e),Je=!0,!1;var t=e.tag,r;if((r=t!==3&&t!==27)&&((r=t===5)&&(r=e.type,r=!(r!=="form"&&r!=="button")||Qf(e.type,e.memoizedProps)),r=!r),r&&ht&&Tr(e),Wm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(r=e.data,r==="/$"){if(t===0){ht=Cn(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++;e=e.nextSibling}ht=null}}else t===27?(t=ht,Xa(e.type)?(e=Jf,Jf=null,ht=e):ht=t):ht=qt?Cn(e.stateNode.nextSibling):null;return!0}function ps(){ht=qt=null,Je=!1}function ep(){var e=Er;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),Er=null),e}function vs(e){Er===null?Er=[e]:Er.push(e)}var Dc=Y(null),Ar=null,sa=null;function ka(e,t,r){W(Dc,t._currentValue),t._currentValue=r}function la(e){e._currentValue=Dc.current,se(Dc)}function jc(e,t,r){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===r)break;e=e.return}}function kc(e,t,r,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var f=u.dependencies;if(f!==null){var v=u.child;f=f.firstContext;e:for(;f!==null;){var x=f;f=u;for(var E=0;E<t.length;E++)if(x.context===t[E]){f.lanes|=r,x=f.alternate,x!==null&&(x.lanes|=r),jc(f.return,r,e),l||(v=null);break e}f=x.next}}else if(u.tag===18){if(v=u.return,v===null)throw Error(s(341));v.lanes|=r,f=v.alternate,f!==null&&(f.lanes|=r),jc(v,r,e),v=null}else v=u.child;if(v!==null)v.return=u;else for(v=u;v!==null;){if(v===e){v=null;break}if(u=v.sibling,u!==null){u.return=v.return,v=u;break}v=v.return}u=v}}function gs(e,t,r,l){e=null;for(var u=t,f=!1;u!==null;){if(!f){if((u.flags&524288)!==0)f=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var v=u.alternate;if(v===null)throw Error(s(387));if(v=v.memoizedProps,v!==null){var x=u.type;en(u.pendingProps.value,v.value)||(e!==null?e.push(x):e=[x])}}else if(u===ee.current){if(v=u.alternate,v===null)throw Error(s(387));v.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ys):e=[Ys])}u=u.return}e!==null&&kc(t,e,r,l),t.flags|=262144}function Wl(e){for(e=e.firstContext;e!==null;){if(!en(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Cr(e){Ar=e,sa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Lt(e){return tp(Ar,e)}function eo(e,t){return Ar===null&&Cr(e),tp(e,t)}function tp(e,t){var r=t._currentValue;if(t={context:t,memoizedValue:r,next:null},sa===null){if(e===null)throw Error(s(308));sa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else sa=sa.next=t;return r}var x_=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(r,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(r){return r()})}},S_=n.unstable_scheduleCallback,__=n.unstable_NormalPriority,_t={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zc(){return{controller:new x_,data:new Map,refCount:0}}function ys(e){e.refCount--,e.refCount===0&&S_(__,function(){e.controller.abort()})}var bs=null,Uc=0,pi=0,vi=null;function w_(e,t){if(bs===null){var r=bs=[];Uc=0,pi=Bf(),vi={status:"pending",value:void 0,then:function(l){r.push(l)}}}return Uc++,t.then(np,np),t}function np(){if(--Uc===0&&bs!==null){vi!==null&&(vi.status="fulfilled");var e=bs;bs=null,pi=0,vi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function E_(e,t){var r=[],l={status:"pending",value:null,reason:null,then:function(u){r.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<r.length;u++)(0,r[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<r.length;u++)(0,r[u])(void 0)}),l}var ap=j.S;j.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&w_(e,t),ap!==null&&ap(e,t)};var Rr=Y(null);function Lc(){var e=Rr.current;return e!==null?e:ut.pooledCache}function to(e,t){t===null?W(Rr,Rr.current):W(Rr,t.pool)}function rp(){var e=Lc();return e===null?null:{parent:_t._currentValue,pool:e}}var xs=Error(s(460)),ip=Error(s(474)),no=Error(s(542)),Vc={then:function(){}};function sp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ao(){}function lp(e,t,r){switch(r=e[r],r===void 0?e.push(t):r!==t&&(t.then(ao,ao),t=r),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,up(e),e;default:if(typeof t.status=="string")t.then(ao,ao);else{if(e=ut,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,up(e),e}throw Ss=t,xs}}var Ss=null;function op(){if(Ss===null)throw Error(s(459));var e=Ss;return Ss=null,e}function up(e){if(e===xs||e===no)throw Error(s(483))}var za=!1;function Bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Hc(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 Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function La(e,t,r){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(et&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Xl(e),Xm(e,null,r),t}return Ql(e,l,t,r),Xl(e)}function _s(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,nm(e,r)}}function qc(e,t){var r=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,r===l)){var u=null,f=null;if(r=r.firstBaseUpdate,r!==null){do{var v={lane:r.lane,tag:r.tag,payload:r.payload,callback:null,next:null};f===null?u=f=v:f=f.next=v,r=r.next}while(r!==null);f===null?u=f=t:f=f.next=t}else u=f=t;r={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}var Pc=!1;function ws(){if(Pc){var e=vi;if(e!==null)throw e}}function Es(e,t,r,l){Pc=!1;var u=e.updateQueue;za=!1;var f=u.firstBaseUpdate,v=u.lastBaseUpdate,x=u.shared.pending;if(x!==null){u.shared.pending=null;var E=x,H=E.next;E.next=null,v===null?f=H:v.next=H,v=E;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,x=Q.lastBaseUpdate,x!==v&&(x===null?Q.firstBaseUpdate=H:x.next=H,Q.lastBaseUpdate=E))}if(f!==null){var $=u.baseState;v=0,Q=H=E=null,x=f;do{var G=x.lane&-536870913,F=G!==x.lane;if(F?(Ie&G)===G:(l&G)===G){G!==0&&G===pi&&(Pc=!0),Q!==null&&(Q=Q.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var De=e,Ce=x;G=t;var it=r;switch(Ce.tag){case 1:if(De=Ce.payload,typeof De=="function"){$=De.call(it,$,G);break e}$=De;break e;case 3:De.flags=De.flags&-65537|128;case 0:if(De=Ce.payload,G=typeof De=="function"?De.call(it,$,G):De,G==null)break e;$=g({},$,G);break e;case 2:za=!0}}G=x.callback,G!==null&&(e.flags|=64,F&&(e.flags|=8192),F=u.callbacks,F===null?u.callbacks=[G]:F.push(G))}else F={lane:G,tag:x.tag,payload:x.payload,callback:x.callback,next:null},Q===null?(H=Q=F,E=$):Q=Q.next=F,v|=G;if(x=x.next,x===null){if(x=u.shared.pending,x===null)break;F=x,x=F.next,F.next=null,u.lastBaseUpdate=F,u.shared.pending=null}}while(!0);Q===null&&(E=$),u.baseState=E,u.firstBaseUpdate=H,u.lastBaseUpdate=Q,f===null&&(u.shared.lanes=0),Za|=v,e.lanes=v,e.memoizedState=$}}function cp(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function fp(e,t){var r=e.callbacks;if(r!==null)for(e.callbacks=null,e=0;e<r.length;e++)cp(r[e],t)}var gi=Y(null),ro=Y(0);function dp(e,t){e=ma,W(ro,e),W(gi,t),ma=e|t.baseLanes}function Gc(){W(ro,ma),W(gi,gi.current)}function Fc(){ma=ro.current,se(gi),se(ro)}var Va=0,Ve=null,at=null,bt=null,io=!1,yi=!1,Or=!1,so=0,Ts=0,bi=null,T_=0;function pt(){throw Error(s(321))}function Zc(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!en(e[r],t[r]))return!1;return!0}function Yc(e,t,r,l,u,f){return Va=f,Ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,j.H=e===null||e.memoizedState===null?Xp:Kp,Or=!1,f=r(l,u),Or=!1,yi&&(f=mp(t,r,l,u)),hp(e),f}function hp(e){j.H=ho;var t=at!==null&&at.next!==null;if(Va=0,bt=at=Ve=null,io=!1,Ts=0,bi=null,t)throw Error(s(300));e===null||Rt||(e=e.dependencies,e!==null&&Wl(e)&&(Rt=!0))}function mp(e,t,r,l){Ve=e;var u=0;do{if(yi&&(bi=null),Ts=0,yi=!1,25<=u)throw Error(s(301));if(u+=1,bt=at=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}j.H=D_,f=t(r,l)}while(yi);return f}function A_(){var e=j.H,t=e.useState()[0];return t=typeof t.then=="function"?As(t):t,e=e.useState()[0],(at!==null?at.memoizedState:null)!==e&&(Ve.flags|=1024),t}function Ic(){var e=so!==0;return so=0,e}function Qc(e,t,r){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~r}function Xc(e){if(io){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}io=!1}Va=0,bt=at=Ve=null,yi=!1,Ts=so=0,bi=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return bt===null?Ve.memoizedState=bt=e:bt=bt.next=e,bt}function xt(){if(at===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=at.next;var t=bt===null?Ve.memoizedState:bt.next;if(t!==null)bt=t,at=e;else{if(e===null)throw Ve.alternate===null?Error(s(467)):Error(s(310));at=e,e={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},bt===null?Ve.memoizedState=bt=e:bt=bt.next=e}return bt}function Kc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function As(e){var t=Ts;return Ts+=1,bi===null&&(bi=[]),e=lp(bi,e,t),t=Ve,(bt===null?t.memoizedState:bt.next)===null&&(t=t.alternate,j.H=t===null||t.memoizedState===null?Xp:Kp),e}function lo(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return As(e);if(e.$$typeof===M)return Lt(e)}throw Error(s(438,String(e)))}function $c(e){var t=null,r=Ve.updateQueue;if(r!==null&&(t=r.memoCache),t==null){var l=Ve.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),r===null&&(r=Kc(),Ve.updateQueue=r),r.memoCache=t,r=t.data[t.index],r===void 0)for(r=t.data[t.index]=Array(e),l=0;l<e;l++)r[l]=oe;return t.index++,r}function oa(e,t){return typeof t=="function"?t(e):t}function oo(e){var t=xt();return Jc(t,at,e)}function Jc(e,t,r){var l=e.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=r;var u=e.baseQueue,f=l.pending;if(f!==null){if(u!==null){var v=u.next;u.next=f.next,f.next=v}t.baseQueue=u=f,l.pending=null}if(f=e.baseState,u===null)e.memoizedState=f;else{t=u.next;var x=v=null,E=null,H=t,Q=!1;do{var $=H.lane&-536870913;if($!==H.lane?(Ie&$)===$:(Va&$)===$){var G=H.revertLane;if(G===0)E!==null&&(E=E.next={lane:0,revertLane:0,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null}),$===pi&&(Q=!0);else if((Va&G)===G){H=H.next,G===pi&&(Q=!0);continue}else $={lane:0,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=$,v=f):E=E.next=$,Ve.lanes|=G,Za|=G;$=H.action,Or&&r(f,$),f=H.hasEagerState?H.eagerState:r(f,$)}else G={lane:$,revertLane:H.revertLane,action:H.action,hasEagerState:H.hasEagerState,eagerState:H.eagerState,next:null},E===null?(x=E=G,v=f):E=E.next=G,Ve.lanes|=$,Za|=$;H=H.next}while(H!==null&&H!==t);if(E===null?v=f:E.next=x,!en(f,e.memoizedState)&&(Rt=!0,Q&&(r=vi,r!==null)))throw r;e.memoizedState=f,e.baseState=v,e.baseQueue=E,l.lastRenderedState=f}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Wc(e){var t=xt(),r=t.queue;if(r===null)throw Error(s(311));r.lastRenderedReducer=e;var l=r.dispatch,u=r.pending,f=t.memoizedState;if(u!==null){r.pending=null;var v=u=u.next;do f=e(f,v.action),v=v.next;while(v!==u);en(f,t.memoizedState)||(Rt=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),r.lastRenderedState=f}return[f,l]}function pp(e,t,r){var l=Ve,u=xt(),f=Je;if(f){if(r===void 0)throw Error(s(407));r=r()}else r=t();var v=!en((at||u).memoizedState,r);v&&(u.memoizedState=r,Rt=!0),u=u.queue;var x=yp.bind(null,l,u,e);if(Cs(2048,8,x,[e]),u.getSnapshot!==t||v||bt!==null&&bt.memoizedState.tag&1){if(l.flags|=2048,xi(9,uo(),gp.bind(null,l,u,r,t),null),ut===null)throw Error(s(349));f||(Va&124)!==0||vp(l,t,r)}return r}function vp(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=Ve.updateQueue,t===null?(t=Kc(),Ve.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function gp(e,t,r,l){t.value=r,t.getSnapshot=l,bp(t)&&xp(e)}function yp(e,t,r){return r(function(){bp(t)&&xp(e)})}function bp(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!en(e,r)}catch{return!0}}function xp(e){var t=fi(e,2);t!==null&&ln(t,e,2)}function ef(e){var t=Xt();if(typeof e=="function"){var r=e;if(e=r(),Or){Ze(!0);try{r()}finally{Ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:e},t}function Sp(e,t,r,l){return e.baseState=r,Jc(e,at,typeof l=="function"?l:oa)}function C_(e,t,r,l,u){if(fo(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(v){f.listeners.push(v)}};j.T!==null?r(!0):f.isTransition=!1,l(f),r=t.pending,r===null?(f.next=t.pending=f,_p(t,f)):(f.next=r.next,t.pending=r.next=f)}}function _p(e,t){var r=t.action,l=t.payload,u=e.state;if(t.isTransition){var f=j.T,v={};j.T=v;try{var x=r(u,l),E=j.S;E!==null&&E(v,x),wp(e,t,x)}catch(H){tf(e,t,H)}finally{j.T=f}}else try{f=r(u,l),wp(e,t,f)}catch(H){tf(e,t,H)}}function wp(e,t,r){r!==null&&typeof r=="object"&&typeof r.then=="function"?r.then(function(l){Ep(e,t,l)},function(l){return tf(e,t,l)}):Ep(e,t,r)}function Ep(e,t,r){t.status="fulfilled",t.value=r,Tp(t),e.state=r,t=e.pending,t!==null&&(r=t.next,r===t?e.pending=null:(r=r.next,t.next=r,_p(e,r)))}function tf(e,t,r){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=r,Tp(t),t=t.next;while(t!==l)}e.action=null}function Tp(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ap(e,t){return t}function Cp(e,t){if(Je){var r=ut.formState;if(r!==null){e:{var l=Ve;if(Je){if(ht){t:{for(var u=ht,f=Vn;u.nodeType!==8;){if(!f){u=null;break t}if(u=Cn(u.nextSibling),u===null){u=null;break t}}f=u.data,u=f==="F!"||f==="F"?u:null}if(u){ht=Cn(u.nextSibling),l=u.data==="F!";break e}}Tr(l)}l=!1}l&&(t=r[0])}}return r=Xt(),r.memoizedState=r.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ap,lastRenderedState:t},r.queue=l,r=Yp.bind(null,Ve,l),l.dispatch=r,l=ef(!1),f=lf.bind(null,Ve,!1,l.queue),l=Xt(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,r=C_.bind(null,Ve,u,f,r),u.dispatch=r,l.memoizedState=e,[t,r,!1]}function Rp(e){var t=xt();return Op(t,at,e)}function Op(e,t,r){if(t=Jc(e,t,Ap)[0],e=oo(oa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=As(t)}catch(v){throw v===xs?no:v}else l=t;t=xt();var u=t.queue,f=u.dispatch;return r!==t.memoizedState&&(Ve.flags|=2048,xi(9,uo(),R_.bind(null,u,r),null)),[l,f,e]}function R_(e,t){e.action=t}function Mp(e){var t=xt(),r=at;if(r!==null)return Op(t,r,e);xt(),t=t.memoizedState,r=xt();var l=r.queue.dispatch;return r.memoizedState=e,[t,l,!1]}function xi(e,t,r,l){return e={tag:e,create:r,deps:l,inst:t,next:null},t=Ve.updateQueue,t===null&&(t=Kc(),Ve.updateQueue=t),r=t.lastEffect,r===null?t.lastEffect=e.next=e:(l=r.next,r.next=e,e.next=l,t.lastEffect=e),e}function uo(){return{destroy:void 0,resource:void 0}}function Np(){return xt().memoizedState}function co(e,t,r,l){var u=Xt();l=l===void 0?null:l,Ve.flags|=e,u.memoizedState=xi(1|t,uo(),r,l)}function Cs(e,t,r,l){var u=xt();l=l===void 0?null:l;var f=u.memoizedState.inst;at!==null&&l!==null&&Zc(l,at.memoizedState.deps)?u.memoizedState=xi(t,f,r,l):(Ve.flags|=e,u.memoizedState=xi(1|t,f,r,l))}function Dp(e,t){co(8390656,8,e,t)}function jp(e,t){Cs(2048,8,e,t)}function kp(e,t){return Cs(4,2,e,t)}function zp(e,t){return Cs(4,4,e,t)}function Up(e,t){if(typeof t=="function"){e=e();var r=t(e);return function(){typeof r=="function"?r():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Lp(e,t,r){r=r!=null?r.concat([e]):null,Cs(4,4,Up.bind(null,t,e),r)}function nf(){}function Vp(e,t){var r=xt();t=t===void 0?null:t;var l=r.memoizedState;return t!==null&&Zc(t,l[1])?l[0]:(r.memoizedState=[e,t],e)}function Bp(e,t){var r=xt();t=t===void 0?null:t;var l=r.memoizedState;if(t!==null&&Zc(t,l[1]))return l[0];if(l=e(),Or){Ze(!0);try{e()}finally{Ze(!1)}}return r.memoizedState=[l,t],l}function af(e,t,r){return r===void 0||(Va&1073741824)!==0?e.memoizedState=t:(e.memoizedState=r,e=Pv(),Ve.lanes|=e,Za|=e,r)}function Hp(e,t,r,l){return en(r,t)?r:gi.current!==null?(e=af(e,r,l),en(e,t)||(Rt=!0),e):(Va&42)===0?(Rt=!0,e.memoizedState=r):(e=Pv(),Ve.lanes|=e,Za|=e,t)}function qp(e,t,r,l,u){var f=I.p;I.p=f!==0&&8>f?f:8;var v=j.T,x={};j.T=x,lf(e,!1,t,r);try{var E=u(),H=j.S;if(H!==null&&H(x,E),E!==null&&typeof E=="object"&&typeof E.then=="function"){var Q=E_(E,l);Rs(e,t,Q,sn(e))}else Rs(e,t,l,sn(e))}catch($){Rs(e,t,{then:function(){},status:"rejected",reason:$},sn())}finally{I.p=f,j.T=v}}function O_(){}function rf(e,t,r,l){if(e.tag!==5)throw Error(s(476));var u=Pp(e).queue;qp(e,u,t,P,r===null?O_:function(){return Gp(e),r(l)})}function Pp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:P,baseState:P,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:P},next:null};var r={};return t.next={memoizedState:r,baseState:r,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:oa,lastRenderedState:r},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Gp(e){var t=Pp(e).next.queue;Rs(e,t,{},sn())}function sf(){return Lt(Ys)}function Fp(){return xt().memoizedState}function Zp(){return xt().memoizedState}function M_(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var r=sn();e=Ua(r);var l=La(t,e,r);l!==null&&(ln(l,t,r),_s(l,t,r)),t={cache:zc()},e.payload=t;return}t=t.return}}function N_(e,t,r){var l=sn();r={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null},fo(e)?Ip(t,r):(r=Tc(e,t,r,l),r!==null&&(ln(r,e,l),Qp(r,t,l)))}function Yp(e,t,r){var l=sn();Rs(e,t,r,l)}function Rs(e,t,r,l){var u={lane:l,revertLane:0,action:r,hasEagerState:!1,eagerState:null,next:null};if(fo(e))Ip(t,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var v=t.lastRenderedState,x=f(v,r);if(u.hasEagerState=!0,u.eagerState=x,en(x,v))return Ql(e,t,u,0),ut===null&&Il(),!1}catch{}finally{}if(r=Tc(e,t,u,l),r!==null)return ln(r,e,l),Qp(r,t,l),!0}return!1}function lf(e,t,r,l){if(l={lane:2,revertLane:Bf(),action:l,hasEagerState:!1,eagerState:null,next:null},fo(e)){if(t)throw Error(s(479))}else t=Tc(e,r,l,2),t!==null&&ln(t,e,2)}function fo(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Ip(e,t){yi=io=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Qp(e,t,r){if((r&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,r|=l,t.lanes=r,nm(e,r)}}var ho={readContext:Lt,use:lo,useCallback:pt,useContext:pt,useEffect:pt,useImperativeHandle:pt,useLayoutEffect:pt,useInsertionEffect:pt,useMemo:pt,useReducer:pt,useRef:pt,useState:pt,useDebugValue:pt,useDeferredValue:pt,useTransition:pt,useSyncExternalStore:pt,useId:pt,useHostTransitionStatus:pt,useFormState:pt,useActionState:pt,useOptimistic:pt,useMemoCache:pt,useCacheRefresh:pt},Xp={readContext:Lt,use:lo,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:Lt,useEffect:Dp,useImperativeHandle:function(e,t,r){r=r!=null?r.concat([e]):null,co(4194308,4,Up.bind(null,t,e),r)},useLayoutEffect:function(e,t){return co(4194308,4,e,t)},useInsertionEffect:function(e,t){co(4,2,e,t)},useMemo:function(e,t){var r=Xt();t=t===void 0?null:t;var l=e();if(Or){Ze(!0);try{e()}finally{Ze(!1)}}return r.memoizedState=[l,t],l},useReducer:function(e,t,r){var l=Xt();if(r!==void 0){var u=r(t);if(Or){Ze(!0);try{r(t)}finally{Ze(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=N_.bind(null,Ve,e),[l.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=ef(e);var t=e.queue,r=Yp.bind(null,Ve,t);return t.dispatch=r,[e.memoizedState,r]},useDebugValue:nf,useDeferredValue:function(e,t){var r=Xt();return af(r,e,t)},useTransition:function(){var e=ef(!1);return e=qp.bind(null,Ve,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,r){var l=Ve,u=Xt();if(Je){if(r===void 0)throw Error(s(407));r=r()}else{if(r=t(),ut===null)throw Error(s(349));(Ie&124)!==0||vp(l,t,r)}u.memoizedState=r;var f={value:r,getSnapshot:t};return u.queue=f,Dp(yp.bind(null,l,f,e),[e]),l.flags|=2048,xi(9,uo(),gp.bind(null,l,f,r,t),null),r},useId:function(){var e=Xt(),t=ut.identifierPrefix;if(Je){var r=ia,l=ra;r=(l&~(1<<32-ot(l)-1)).toString(32)+r,t="«"+t+"R"+r,r=so++,0<r&&(t+="H"+r.toString(32)),t+="»"}else r=T_++,t="«"+t+"r"+r.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:sf,useFormState:Cp,useActionState:Cp,useOptimistic:function(e){var t=Xt();t.memoizedState=t.baseState=e;var r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=r,t=lf.bind(null,Ve,!0,r),r.dispatch=t,[e,t]},useMemoCache:$c,useCacheRefresh:function(){return Xt().memoizedState=M_.bind(null,Ve)}},Kp={readContext:Lt,use:lo,useCallback:Vp,useContext:Lt,useEffect:jp,useImperativeHandle:Lp,useInsertionEffect:kp,useLayoutEffect:zp,useMemo:Bp,useReducer:oo,useRef:Np,useState:function(){return oo(oa)},useDebugValue:nf,useDeferredValue:function(e,t){var r=xt();return Hp(r,at.memoizedState,e,t)},useTransition:function(){var e=oo(oa)[0],t=xt().memoizedState;return[typeof e=="boolean"?e:As(e),t]},useSyncExternalStore:pp,useId:Fp,useHostTransitionStatus:sf,useFormState:Rp,useActionState:Rp,useOptimistic:function(e,t){var r=xt();return Sp(r,at,e,t)},useMemoCache:$c,useCacheRefresh:Zp},D_={readContext:Lt,use:lo,useCallback:Vp,useContext:Lt,useEffect:jp,useImperativeHandle:Lp,useInsertionEffect:kp,useLayoutEffect:zp,useMemo:Bp,useReducer:Wc,useRef:Np,useState:function(){return Wc(oa)},useDebugValue:nf,useDeferredValue:function(e,t){var r=xt();return at===null?af(r,e,t):Hp(r,at.memoizedState,e,t)},useTransition:function(){var e=Wc(oa)[0],t=xt().memoizedState;return[typeof e=="boolean"?e:As(e),t]},useSyncExternalStore:pp,useId:Fp,useHostTransitionStatus:sf,useFormState:Mp,useActionState:Mp,useOptimistic:function(e,t){var r=xt();return at!==null?Sp(r,at,e,t):(r.baseState=e,[e,r.queue.dispatch])},useMemoCache:$c,useCacheRefresh:Zp},Si=null,Os=0;function mo(e){var t=Os;return Os+=1,Si===null&&(Si=[]),lp(Si,e,t)}function Ms(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function po(e,t){throw t.$$typeof===S?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function $p(e){var t=e._init;return t(e._payload)}function Jp(e){function t(k,D){if(e){var V=k.deletions;V===null?(k.deletions=[D],k.flags|=16):V.push(D)}}function r(k,D){if(!e)return null;for(;D!==null;)t(k,D),D=D.sibling;return null}function l(k){for(var D=new Map;k!==null;)k.key!==null?D.set(k.key,k):D.set(k.index,k),k=k.sibling;return D}function u(k,D){return k=aa(k,D),k.index=0,k.sibling=null,k}function f(k,D,V){return k.index=V,e?(V=k.alternate,V!==null?(V=V.index,V<D?(k.flags|=67108866,D):V):(k.flags|=67108866,D)):(k.flags|=1048576,D)}function v(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function x(k,D,V,K){return D===null||D.tag!==6?(D=Cc(V,k.mode,K),D.return=k,D):(D=u(D,V),D.return=k,D)}function E(k,D,V,K){var ge=V.type;return ge===O?Q(k,D,V.props.children,K,V.key):D!==null&&(D.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===z&&$p(ge)===D.type)?(D=u(D,V.props),Ms(D,V),D.return=k,D):(D=Kl(V.type,V.key,V.props,null,k.mode,K),Ms(D,V),D.return=k,D)}function H(k,D,V,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==V.containerInfo||D.stateNode.implementation!==V.implementation?(D=Rc(V,k.mode,K),D.return=k,D):(D=u(D,V.children||[]),D.return=k,D)}function Q(k,D,V,K,ge){return D===null||D.tag!==7?(D=Sr(V,k.mode,K,ge),D.return=k,D):(D=u(D,V),D.return=k,D)}function $(k,D,V){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Cc(""+D,k.mode,V),D.return=k,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case w:return V=Kl(D.type,D.key,D.props,null,k.mode,V),Ms(V,D),V.return=k,V;case A:return D=Rc(D,k.mode,V),D.return=k,D;case z:var K=D._init;return D=K(D._payload),$(k,D,V)}if(me(D)||re(D))return D=Sr(D,k.mode,V,null),D.return=k,D;if(typeof D.then=="function")return $(k,mo(D),V);if(D.$$typeof===M)return $(k,eo(k,D),V);po(k,D)}return null}function G(k,D,V,K){var ge=D!==null?D.key:null;if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return ge!==null?null:x(k,D,""+V,K);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case w:return V.key===ge?E(k,D,V,K):null;case A:return V.key===ge?H(k,D,V,K):null;case z:return ge=V._init,V=ge(V._payload),G(k,D,V,K)}if(me(V)||re(V))return ge!==null?null:Q(k,D,V,K,null);if(typeof V.then=="function")return G(k,D,mo(V),K);if(V.$$typeof===M)return G(k,D,eo(k,V),K);po(k,V)}return null}function F(k,D,V,K,ge){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return k=k.get(V)||null,x(D,k,""+K,ge);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case w:return k=k.get(K.key===null?V:K.key)||null,E(D,k,K,ge);case A:return k=k.get(K.key===null?V:K.key)||null,H(D,k,K,ge);case z:var qe=K._init;return K=qe(K._payload),F(k,D,V,K,ge)}if(me(K)||re(K))return k=k.get(V)||null,Q(D,k,K,ge,null);if(typeof K.then=="function")return F(k,D,V,mo(K),ge);if(K.$$typeof===M)return F(k,D,V,eo(D,K),ge);po(D,K)}return null}function De(k,D,V,K){for(var ge=null,qe=null,Ee=D,Oe=D=0,Mt=null;Ee!==null&&Oe<V.length;Oe++){Ee.index>Oe?(Mt=Ee,Ee=null):Mt=Ee.sibling;var $e=G(k,Ee,V[Oe],K);if($e===null){Ee===null&&(Ee=Mt);break}e&&Ee&&$e.alternate===null&&t(k,Ee),D=f($e,D,Oe),qe===null?ge=$e:qe.sibling=$e,qe=$e,Ee=Mt}if(Oe===V.length)return r(k,Ee),Je&&wr(k,Oe),ge;if(Ee===null){for(;Oe<V.length;Oe++)Ee=$(k,V[Oe],K),Ee!==null&&(D=f(Ee,D,Oe),qe===null?ge=Ee:qe.sibling=Ee,qe=Ee);return Je&&wr(k,Oe),ge}for(Ee=l(Ee);Oe<V.length;Oe++)Mt=F(Ee,k,Oe,V[Oe],K),Mt!==null&&(e&&Mt.alternate!==null&&Ee.delete(Mt.key===null?Oe:Mt.key),D=f(Mt,D,Oe),qe===null?ge=Mt:qe.sibling=Mt,qe=Mt);return e&&Ee.forEach(function(er){return t(k,er)}),Je&&wr(k,Oe),ge}function Ce(k,D,V,K){if(V==null)throw Error(s(151));for(var ge=null,qe=null,Ee=D,Oe=D=0,Mt=null,$e=V.next();Ee!==null&&!$e.done;Oe++,$e=V.next()){Ee.index>Oe?(Mt=Ee,Ee=null):Mt=Ee.sibling;var er=G(k,Ee,$e.value,K);if(er===null){Ee===null&&(Ee=Mt);break}e&&Ee&&er.alternate===null&&t(k,Ee),D=f(er,D,Oe),qe===null?ge=er:qe.sibling=er,qe=er,Ee=Mt}if($e.done)return r(k,Ee),Je&&wr(k,Oe),ge;if(Ee===null){for(;!$e.done;Oe++,$e=V.next())$e=$(k,$e.value,K),$e!==null&&(D=f($e,D,Oe),qe===null?ge=$e:qe.sibling=$e,qe=$e);return Je&&wr(k,Oe),ge}for(Ee=l(Ee);!$e.done;Oe++,$e=V.next())$e=F(Ee,k,Oe,$e.value,K),$e!==null&&(e&&$e.alternate!==null&&Ee.delete($e.key===null?Oe:$e.key),D=f($e,D,Oe),qe===null?ge=$e:qe.sibling=$e,qe=$e);return e&&Ee.forEach(function(jw){return t(k,jw)}),Je&&wr(k,Oe),ge}function it(k,D,V,K){if(typeof V=="object"&&V!==null&&V.type===O&&V.key===null&&(V=V.props.children),typeof V=="object"&&V!==null){switch(V.$$typeof){case w:e:{for(var ge=V.key;D!==null;){if(D.key===ge){if(ge=V.type,ge===O){if(D.tag===7){r(k,D.sibling),K=u(D,V.props.children),K.return=k,k=K;break e}}else if(D.elementType===ge||typeof ge=="object"&&ge!==null&&ge.$$typeof===z&&$p(ge)===D.type){r(k,D.sibling),K=u(D,V.props),Ms(K,V),K.return=k,k=K;break e}r(k,D);break}else t(k,D);D=D.sibling}V.type===O?(K=Sr(V.props.children,k.mode,K,V.key),K.return=k,k=K):(K=Kl(V.type,V.key,V.props,null,k.mode,K),Ms(K,V),K.return=k,k=K)}return v(k);case A:e:{for(ge=V.key;D!==null;){if(D.key===ge)if(D.tag===4&&D.stateNode.containerInfo===V.containerInfo&&D.stateNode.implementation===V.implementation){r(k,D.sibling),K=u(D,V.children||[]),K.return=k,k=K;break e}else{r(k,D);break}else t(k,D);D=D.sibling}K=Rc(V,k.mode,K),K.return=k,k=K}return v(k);case z:return ge=V._init,V=ge(V._payload),it(k,D,V,K)}if(me(V))return De(k,D,V,K);if(re(V)){if(ge=re(V),typeof ge!="function")throw Error(s(150));return V=ge.call(V),Ce(k,D,V,K)}if(typeof V.then=="function")return it(k,D,mo(V),K);if(V.$$typeof===M)return it(k,D,eo(k,V),K);po(k,V)}return typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint"?(V=""+V,D!==null&&D.tag===6?(r(k,D.sibling),K=u(D,V),K.return=k,k=K):(r(k,D),K=Cc(V,k.mode,K),K.return=k,k=K),v(k)):r(k,D)}return function(k,D,V,K){try{Os=0;var ge=it(k,D,V,K);return Si=null,ge}catch(Ee){if(Ee===xs||Ee===no)throw Ee;var qe=tn(29,Ee,null,k.mode);return qe.lanes=K,qe.return=k,qe}finally{}}}var _i=Jp(!0),Wp=Jp(!1),bn=Y(null),Bn=null;function Ba(e){var t=e.alternate;W(wt,wt.current&1),W(bn,e),Bn===null&&(t===null||gi.current!==null||t.memoizedState!==null)&&(Bn=e)}function ev(e){if(e.tag===22){if(W(wt,wt.current),W(bn,e),Bn===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Bn=e)}}else Ha()}function Ha(){W(wt,wt.current),W(bn,bn.current)}function ua(e){se(bn),Bn===e&&(Bn=null),se(wt)}var wt=Y(0);function vo(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||$f(r)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function of(e,t,r,l){t=e.memoizedState,r=r(l,t),r=r==null?t:g({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var uf={enqueueSetState:function(e,t,r){e=e._reactInternals;var l=sn(),u=Ua(l);u.payload=t,r!=null&&(u.callback=r),t=La(e,u,l),t!==null&&(ln(t,e,l),_s(t,e,l))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var l=sn(),u=Ua(l);u.tag=1,u.payload=t,r!=null&&(u.callback=r),t=La(e,u,l),t!==null&&(ln(t,e,l),_s(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=sn(),l=Ua(r);l.tag=2,t!=null&&(l.callback=t),t=La(e,l,r),t!==null&&(ln(t,e,r),_s(t,e,r))}};function tv(e,t,r,l,u,f,v){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,v):t.prototype&&t.prototype.isPureReactComponent?!ds(r,l)||!ds(u,f):!0}function nv(e,t,r,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,l),t.state!==e&&uf.enqueueReplaceState(t,t.state,null)}function Mr(e,t){var r=t;if("ref"in t){r={};for(var l in t)l!=="ref"&&(r[l]=t[l])}if(e=e.defaultProps){r===t&&(r=g({},r));for(var u in e)r[u]===void 0&&(r[u]=e[u])}return r}var go=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function av(e){go(e)}function rv(e){console.error(e)}function iv(e){go(e)}function yo(e,t){try{var r=e.onUncaughtError;r(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function sv(e,t,r){try{var l=e.onCaughtError;l(r.value,{componentStack:r.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function cf(e,t,r){return r=Ua(r),r.tag=3,r.payload={element:null},r.callback=function(){yo(e,t)},r}function lv(e){return e=Ua(e),e.tag=3,e}function ov(e,t,r,l){var u=r.type.getDerivedStateFromError;if(typeof u=="function"){var f=l.value;e.payload=function(){return u(f)},e.callback=function(){sv(t,r,l)}}var v=r.stateNode;v!==null&&typeof v.componentDidCatch=="function"&&(e.callback=function(){sv(t,r,l),typeof u!="function"&&(Ya===null?Ya=new Set([this]):Ya.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function j_(e,t,r,l,u){if(r.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=r.alternate,t!==null&&gs(t,r,u,!0),r=bn.current,r!==null){switch(r.tag){case 13:return Bn===null?kf():r.alternate===null&&mt===0&&(mt=3),r.flags&=-257,r.flags|=65536,r.lanes=u,l===Vc?r.flags|=16384:(t=r.updateQueue,t===null?r.updateQueue=new Set([l]):t.add(l),Uf(e,l,u)),!1;case 22:return r.flags|=65536,l===Vc?r.flags|=16384:(t=r.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},r.updateQueue=t):(r=t.retryQueue,r===null?t.retryQueue=new Set([l]):r.add(l)),Uf(e,l,u)),!1}throw Error(s(435,r.tag))}return Uf(e,l,u),kf(),!1}if(Je)return t=bn.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Nc&&(e=Error(s(422),{cause:l}),vs(pn(e,r)))):(l!==Nc&&(t=Error(s(423),{cause:l}),vs(pn(t,r))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=pn(l,r),u=cf(e.stateNode,l,u),qc(e,u),mt!==4&&(mt=2)),!1;var f=Error(s(520),{cause:l});if(f=pn(f,r),Ls===null?Ls=[f]:Ls.push(f),mt!==4&&(mt=2),t===null)return!0;l=pn(l,r),r=t;do{switch(r.tag){case 3:return r.flags|=65536,e=u&-u,r.lanes|=e,e=cf(r.stateNode,l,e),qc(r,e),!1;case 1:if(t=r.type,f=r.stateNode,(r.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Ya===null||!Ya.has(f))))return r.flags|=65536,u&=-u,r.lanes|=u,u=lv(u),ov(u,e,r,l),qc(r,u),!1}r=r.return}while(r!==null);return!1}var uv=Error(s(461)),Rt=!1;function Nt(e,t,r,l){t.child=e===null?Wp(t,null,r,l):_i(t,e.child,r,l)}function cv(e,t,r,l,u){r=r.render;var f=t.ref;if("ref"in l){var v={};for(var x in l)x!=="ref"&&(v[x]=l[x])}else v=l;return Cr(t),l=Yc(e,t,r,v,f,u),x=Ic(),e!==null&&!Rt?(Qc(e,t,u),ca(e,t,u)):(Je&&x&&Oc(t),t.flags|=1,Nt(e,t,l,u),t.child)}function fv(e,t,r,l,u){if(e===null){var f=r.type;return typeof f=="function"&&!Ac(f)&&f.defaultProps===void 0&&r.compare===null?(t.tag=15,t.type=f,dv(e,t,f,l,u)):(e=Kl(r.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!yf(e,u)){var v=f.memoizedProps;if(r=r.compare,r=r!==null?r:ds,r(v,l)&&e.ref===t.ref)return ca(e,t,u)}return t.flags|=1,e=aa(f,l),e.ref=t.ref,e.return=t,t.child=e}function dv(e,t,r,l,u){if(e!==null){var f=e.memoizedProps;if(ds(f,l)&&e.ref===t.ref)if(Rt=!1,t.pendingProps=l=f,yf(e,u))(e.flags&131072)!==0&&(Rt=!0);else return t.lanes=e.lanes,ca(e,t,u)}return ff(e,t,r,l,u)}function hv(e,t,r){var l=t.pendingProps,u=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden"){if((t.flags&128)!==0){if(l=f!==null?f.baseLanes|r:r,e!==null){for(u=t.child=e.child,f=0;u!==null;)f=f|u.lanes|u.childLanes,u=u.sibling;t.childLanes=f&~l}else t.childLanes=0,t.child=null;return mv(e,t,l,r)}if((r&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&to(t,f!==null?f.cachePool:null),f!==null?dp(t,f):Gc(),ev(t);else return t.lanes=t.childLanes=536870912,mv(e,t,f!==null?f.baseLanes|r:r,r)}else f!==null?(to(t,f.cachePool),dp(t,f),Ha(),t.memoizedState=null):(e!==null&&to(t,null),Gc(),Ha());return Nt(e,t,u,r),t.child}function mv(e,t,r,l){var u=Lc();return u=u===null?null:{parent:_t._currentValue,pool:u},t.memoizedState={baseLanes:r,cachePool:u},e!==null&&to(t,null),Gc(),ev(t),e!==null&&gs(e,t,l,!0),null}function bo(e,t){var r=t.ref;if(r===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof r!="function"&&typeof r!="object")throw Error(s(284));(e===null||e.ref!==r)&&(t.flags|=4194816)}}function ff(e,t,r,l,u){return Cr(t),r=Yc(e,t,r,l,void 0,u),l=Ic(),e!==null&&!Rt?(Qc(e,t,u),ca(e,t,u)):(Je&&l&&Oc(t),t.flags|=1,Nt(e,t,r,u),t.child)}function pv(e,t,r,l,u,f){return Cr(t),t.updateQueue=null,r=mp(t,l,r,u),hp(e),l=Ic(),e!==null&&!Rt?(Qc(e,t,f),ca(e,t,f)):(Je&&l&&Oc(t),t.flags|=1,Nt(e,t,r,f),t.child)}function vv(e,t,r,l,u){if(Cr(t),t.stateNode===null){var f=di,v=r.contextType;typeof v=="object"&&v!==null&&(f=Lt(v)),f=new r(l,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=uf,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=l,f.state=t.memoizedState,f.refs={},Bc(t),v=r.contextType,f.context=typeof v=="object"&&v!==null?Lt(v):di,f.state=t.memoizedState,v=r.getDerivedStateFromProps,typeof v=="function"&&(of(t,r,v,l),f.state=t.memoizedState),typeof r.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(v=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),v!==f.state&&uf.enqueueReplaceState(f,f.state,null),Es(t,l,f,u),ws(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){f=t.stateNode;var x=t.memoizedProps,E=Mr(r,x);f.props=E;var H=f.context,Q=r.contextType;v=di,typeof Q=="object"&&Q!==null&&(v=Lt(Q));var $=r.getDerivedStateFromProps;Q=typeof $=="function"||typeof f.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,Q||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(x||H!==v)&&nv(t,f,l,v),za=!1;var G=t.memoizedState;f.state=G,Es(t,l,f,u),ws(),H=t.memoizedState,x||G!==H||za?(typeof $=="function"&&(of(t,r,$,l),H=t.memoizedState),(E=za||tv(t,r,E,l,G,H,v))?(Q||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=H),f.props=l,f.state=H,f.context=v,l=E):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{f=t.stateNode,Hc(e,t),v=t.memoizedProps,Q=Mr(r,v),f.props=Q,$=t.pendingProps,G=f.context,H=r.contextType,E=di,typeof H=="object"&&H!==null&&(E=Lt(H)),x=r.getDerivedStateFromProps,(H=typeof x=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(v!==$||G!==E)&&nv(t,f,l,E),za=!1,G=t.memoizedState,f.state=G,Es(t,l,f,u),ws();var F=t.memoizedState;v!==$||G!==F||za||e!==null&&e.dependencies!==null&&Wl(e.dependencies)?(typeof x=="function"&&(of(t,r,x,l),F=t.memoizedState),(Q=za||tv(t,r,Q,l,G,F,E)||e!==null&&e.dependencies!==null&&Wl(e.dependencies))?(H||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(l,F,E),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(l,F,E)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=F),f.props=l,f.state=F,f.context=E,l=Q):(typeof f.componentDidUpdate!="function"||v===e.memoizedProps&&G===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||v===e.memoizedProps&&G===e.memoizedState||(t.flags|=1024),l=!1)}return f=l,bo(e,t),l=(t.flags&128)!==0,f||l?(f=t.stateNode,r=l&&typeof r.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&l?(t.child=_i(t,e.child,null,u),t.child=_i(t,null,r,u)):Nt(e,t,r,u),t.memoizedState=f.state,e=t.child):e=ca(e,t,u),e}function gv(e,t,r,l){return ps(),t.flags|=256,Nt(e,t,r,l),t.child}var df={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function hf(e){return{baseLanes:e,cachePool:rp()}}function mf(e,t,r){return e=e!==null?e.childLanes&~r:0,t&&(e|=xn),e}function yv(e,t,r){var l=t.pendingProps,u=!1,f=(t.flags&128)!==0,v;if((v=f)||(v=e!==null&&e.memoizedState===null?!1:(wt.current&2)!==0),v&&(u=!0,t.flags&=-129),v=(t.flags&32)!==0,t.flags&=-33,e===null){if(Je){if(u?Ba(t):Ha(),Je){var x=ht,E;if(E=x){e:{for(E=x,x=Vn;E.nodeType!==8;){if(!x){x=null;break e}if(E=Cn(E.nextSibling),E===null){x=null;break e}}x=E}x!==null?(t.memoizedState={dehydrated:x,treeContext:_r!==null?{id:ra,overflow:ia}:null,retryLane:536870912,hydrationErrors:null},E=tn(18,null,null,0),E.stateNode=x,E.return=t,t.child=E,qt=t,ht=null,E=!0):E=!1}E||Tr(t)}if(x=t.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return $f(x)?t.lanes=32:t.lanes=536870912,null;ua(t)}return x=l.children,l=l.fallback,u?(Ha(),u=t.mode,x=xo({mode:"hidden",children:x},u),l=Sr(l,u,r,null),x.return=t,l.return=t,x.sibling=l,t.child=x,u=t.child,u.memoizedState=hf(r),u.childLanes=mf(e,v,r),t.memoizedState=df,l):(Ba(t),pf(t,x))}if(E=e.memoizedState,E!==null&&(x=E.dehydrated,x!==null)){if(f)t.flags&256?(Ba(t),t.flags&=-257,t=vf(e,t,r)):t.memoizedState!==null?(Ha(),t.child=e.child,t.flags|=128,t=null):(Ha(),u=l.fallback,x=t.mode,l=xo({mode:"visible",children:l.children},x),u=Sr(u,x,r,null),u.flags|=2,l.return=t,u.return=t,l.sibling=u,t.child=l,_i(t,e.child,null,r),l=t.child,l.memoizedState=hf(r),l.childLanes=mf(e,v,r),t.memoizedState=df,t=u);else if(Ba(t),$f(x)){if(v=x.nextSibling&&x.nextSibling.dataset,v)var H=v.dgst;v=H,l=Error(s(419)),l.stack="",l.digest=v,vs({value:l,source:null,stack:null}),t=vf(e,t,r)}else if(Rt||gs(e,t,r,!1),v=(r&e.childLanes)!==0,Rt||v){if(v=ut,v!==null&&(l=r&-r,l=(l&42)!==0?1:$u(l),l=(l&(v.suspendedLanes|r))!==0?0:l,l!==0&&l!==E.retryLane))throw E.retryLane=l,fi(e,l),ln(v,e,l),uv;x.data==="$?"||kf(),t=vf(e,t,r)}else x.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=E.treeContext,ht=Cn(x.nextSibling),qt=t,Je=!0,Er=null,Vn=!1,e!==null&&(gn[yn++]=ra,gn[yn++]=ia,gn[yn++]=_r,ra=e.id,ia=e.overflow,_r=t),t=pf(t,l.children),t.flags|=4096);return t}return u?(Ha(),u=l.fallback,x=t.mode,E=e.child,H=E.sibling,l=aa(E,{mode:"hidden",children:l.children}),l.subtreeFlags=E.subtreeFlags&65011712,H!==null?u=aa(H,u):(u=Sr(u,x,r,null),u.flags|=2),u.return=t,l.return=t,l.sibling=u,t.child=l,l=u,u=t.child,x=e.child.memoizedState,x===null?x=hf(r):(E=x.cachePool,E!==null?(H=_t._currentValue,E=E.parent!==H?{parent:H,pool:H}:E):E=rp(),x={baseLanes:x.baseLanes|r,cachePool:E}),u.memoizedState=x,u.childLanes=mf(e,v,r),t.memoizedState=df,l):(Ba(t),r=e.child,e=r.sibling,r=aa(r,{mode:"visible",children:l.children}),r.return=t,r.sibling=null,e!==null&&(v=t.deletions,v===null?(t.deletions=[e],t.flags|=16):v.push(e)),t.child=r,t.memoizedState=null,r)}function pf(e,t){return t=xo({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function xo(e,t){return e=tn(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function vf(e,t,r){return _i(t,e.child,null,r),e=pf(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bv(e,t,r){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),jc(e.return,t,r)}function gf(e,t,r,l,u){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:r,tailMode:u}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=r,f.tailMode=u)}function xv(e,t,r){var l=t.pendingProps,u=l.revealOrder,f=l.tail;if(Nt(e,t,l.children,r),l=wt.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bv(e,r,t);else if(e.tag===19)bv(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(W(wt,l),u){case"forwards":for(r=t.child,u=null;r!==null;)e=r.alternate,e!==null&&vo(e)===null&&(u=r),r=r.sibling;r=u,r===null?(u=t.child,t.child=null):(u=r.sibling,r.sibling=null),gf(t,!1,u,r,f);break;case"backwards":for(r=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&vo(e)===null){t.child=u;break}e=u.sibling,u.sibling=r,r=u,u=e}gf(t,!0,r,null,f);break;case"together":gf(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function ca(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Za|=t.lanes,(r&t.childLanes)===0)if(e!==null){if(gs(e,t,r,!1),(r&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,r=aa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=aa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function yf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Wl(e)))}function k_(e,t,r){switch(t.tag){case 3:Te(t,t.stateNode.containerInfo),ka(t,_t,e.memoizedState.cache),ps();break;case 27:case 5:He(t);break;case 4:Te(t,t.stateNode.containerInfo);break;case 10:ka(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ba(t),t.flags|=128,null):(r&t.child.childLanes)!==0?yv(e,t,r):(Ba(t),e=ca(e,t,r),e!==null?e.sibling:null);Ba(t);break;case 19:var u=(e.flags&128)!==0;if(l=(r&t.childLanes)!==0,l||(gs(e,t,r,!1),l=(r&t.childLanes)!==0),u){if(l)return xv(e,t,r);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),W(wt,wt.current),l)break;return null;case 22:case 23:return t.lanes=0,hv(e,t,r);case 24:ka(t,_t,e.memoizedState.cache)}return ca(e,t,r)}function Sv(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rt=!0;else{if(!yf(e,r)&&(t.flags&128)===0)return Rt=!1,k_(e,t,r);Rt=(e.flags&131072)!==0}else Rt=!1,Je&&(t.flags&1048576)!==0&&$m(t,Jl,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,u=l._init;if(l=u(l._payload),t.type=l,typeof l=="function")Ac(l)?(e=Mr(l,e),t.tag=1,t=vv(null,t,l,e,r)):(t.tag=0,t=ff(null,t,l,e,r));else{if(l!=null){if(u=l.$$typeof,u===L){t.tag=11,t=cv(null,t,l,e,r);break e}else if(u===Z){t.tag=14,t=fv(null,t,l,e,r);break e}}throw t=ue(l)||l,Error(s(306,t,""))}}return t;case 0:return ff(e,t,t.type,t.pendingProps,r);case 1:return l=t.type,u=Mr(l,t.pendingProps),vv(e,t,l,u,r);case 3:e:{if(Te(t,t.stateNode.containerInfo),e===null)throw Error(s(387));l=t.pendingProps;var f=t.memoizedState;u=f.element,Hc(e,t),Es(t,l,null,r);var v=t.memoizedState;if(l=v.cache,ka(t,_t,l),l!==f.cache&&kc(t,[_t],r,!0),ws(),l=v.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:v.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=gv(e,t,l,r);break e}else if(l!==u){u=pn(Error(s(424)),t),vs(u),t=gv(e,t,l,r);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ht=Cn(e.firstChild),qt=t,Je=!0,Er=null,Vn=!0,r=Wp(t,null,l,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling}else{if(ps(),l===u){t=ca(e,t,r);break e}Nt(e,t,l,r)}t=t.child}return t;case 26:return bo(e,t),e===null?(r=Tg(t.type,null,t.pendingProps,null))?t.memoizedState=r:Je||(r=t.type,e=t.pendingProps,l=ko(xe.current).createElement(r),l[Ut]=t,l[It]=e,jt(l,r,e),Ct(l),t.stateNode=l):t.memoizedState=Tg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return He(t),e===null&&Je&&(l=t.stateNode=_g(t.type,t.pendingProps,xe.current),qt=t,Vn=!0,u=ht,Xa(t.type)?(Jf=u,ht=Cn(l.firstChild)):ht=u),Nt(e,t,t.pendingProps.children,r),bo(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Je&&((u=l=ht)&&(l=ow(l,t.type,t.pendingProps,Vn),l!==null?(t.stateNode=l,qt=t,ht=Cn(l.firstChild),Vn=!1,u=!0):u=!1),u||Tr(t)),He(t),u=t.type,f=t.pendingProps,v=e!==null?e.memoizedProps:null,l=f.children,Qf(u,f)?l=null:v!==null&&Qf(u,v)&&(t.flags|=32),t.memoizedState!==null&&(u=Yc(e,t,A_,null,null,r),Ys._currentValue=u),bo(e,t),Nt(e,t,l,r),t.child;case 6:return e===null&&Je&&((e=r=ht)&&(r=uw(r,t.pendingProps,Vn),r!==null?(t.stateNode=r,qt=t,ht=null,e=!0):e=!1),e||Tr(t)),null;case 13:return yv(e,t,r);case 4:return Te(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=_i(t,null,l,r):Nt(e,t,l,r),t.child;case 11:return cv(e,t,t.type,t.pendingProps,r);case 7:return Nt(e,t,t.pendingProps,r),t.child;case 8:return Nt(e,t,t.pendingProps.children,r),t.child;case 12:return Nt(e,t,t.pendingProps.children,r),t.child;case 10:return l=t.pendingProps,ka(t,t.type,l.value),Nt(e,t,l.children,r),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,Cr(t),u=Lt(u),l=l(u),t.flags|=1,Nt(e,t,l,r),t.child;case 14:return fv(e,t,t.type,t.pendingProps,r);case 15:return dv(e,t,t.type,t.pendingProps,r);case 19:return xv(e,t,r);case 31:return l=t.pendingProps,r=t.mode,l={mode:l.mode,children:l.children},e===null?(r=xo(l,r),r.ref=t.ref,t.child=r,r.return=t,t=r):(r=aa(e.child,l),r.ref=t.ref,t.child=r,r.return=t,t=r),t;case 22:return hv(e,t,r);case 24:return Cr(t),l=Lt(_t),e===null?(u=Lc(),u===null&&(u=ut,f=zc(),u.pooledCache=f,f.refCount++,f!==null&&(u.pooledCacheLanes|=r),u=f),t.memoizedState={parent:l,cache:u},Bc(t),ka(t,_t,u)):((e.lanes&r)!==0&&(Hc(e,t),Es(t,null,null,r),ws()),u=e.memoizedState,f=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ka(t,_t,l)):(l=f.cache,ka(t,_t,l),l!==u.cache&&kc(t,[_t],r,!0))),Nt(e,t,t.pendingProps.children,r),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function fa(e){e.flags|=4}function _v(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Mg(t)){if(t=bn.current,t!==null&&((Ie&4194048)===Ie?Bn!==null:(Ie&62914560)!==Ie&&(Ie&536870912)===0||t!==Bn))throw Ss=Vc,ip;e.flags|=8192}}function So(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?em():536870912,e.lanes|=t,Ai|=t)}function Ns(e,t){if(!Je)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var l=null;r!==null;)r.alternate!==null&&(l=r),r=r.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,l=0;if(t)for(var u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)r|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=r,t}function z_(e,t,r){var l=t.pendingProps;switch(Mc(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return ft(t),null;case 3:return r=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),la(_t),Xe(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ms(t)?fa(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ep())),ft(t),null;case 26:return r=t.memoizedState,e===null?(fa(t),r!==null?(ft(t),_v(t,r)):(ft(t),t.flags&=-16777217)):r?r!==e.memoizedState?(fa(t),ft(t),_v(t,r)):(ft(t),t.flags&=-16777217):(e.memoizedProps!==l&&fa(t),ft(t),t.flags&=-16777217),null;case 27:Fe(t),r=xe.current;var u=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&fa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return ft(t),null}e=ce.current,ms(t)?Jm(t):(e=_g(u,l,r),t.stateNode=e,fa(t))}return ft(t),null;case 5:if(Fe(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&fa(t);else{if(!l){if(t.stateNode===null)throw Error(s(166));return ft(t),null}if(e=ce.current,ms(t))Jm(t);else{switch(u=ko(xe.current),e){case 1:e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":e=u.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":e=u.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":e=u.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?u.createElement("select",{is:l.is}):u.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?u.createElement(r,{is:l.is}):u.createElement(r)}}e[Ut]=t,e[It]=l;e:for(u=t.child;u!==null;){if(u.tag===5||u.tag===6)e.appendChild(u.stateNode);else if(u.tag!==4&&u.tag!==27&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===t)break e;for(;u.sibling===null;){if(u.return===null||u.return===t)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}t.stateNode=e;e:switch(jt(e,r,l),r){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&fa(t)}}return ft(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&fa(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(s(166));if(e=xe.current,ms(t)){if(e=t.stateNode,r=t.memoizedProps,l=null,u=qt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[Ut]=t,e=!!(e.nodeValue===r||l!==null&&l.suppressHydrationWarning===!0||pg(e.nodeValue,r)),e||Tr(t)}else e=ko(e).createTextNode(l),e[Ut]=t,t.stateNode=e}return ft(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=ms(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(s(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[Ut]=t}else ps(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),u=!1}else u=ep(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(ua(t),t):(ua(t),null)}if(ua(t),(t.flags&128)!==0)return t.lanes=r,t;if(r=l!==null,e=e!==null&&e.memoizedState!==null,r){l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool);var f=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==u&&(l.flags|=2048)}return r!==e&&r&&(t.child.flags|=8192),So(t,t.updateQueue),ft(t),null;case 4:return Xe(),e===null&&Gf(t.stateNode.containerInfo),ft(t),null;case 10:return la(t.type),ft(t),null;case 19:if(se(wt),u=t.memoizedState,u===null)return ft(t),null;if(l=(t.flags&128)!==0,f=u.rendering,f===null)if(l)Ns(u,!1);else{if(mt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=vo(e),f!==null){for(t.flags|=128,Ns(u,!1),e=f.updateQueue,t.updateQueue=e,So(t,e),t.subtreeFlags=0,e=r,r=t.child;r!==null;)Km(r,e),r=r.sibling;return W(wt,wt.current&1|2),t.child}e=e.sibling}u.tail!==null&&zt()>Eo&&(t.flags|=128,l=!0,Ns(u,!1),t.lanes=4194304)}else{if(!l)if(e=vo(f),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,So(t,e),Ns(u,!0),u.tail===null&&u.tailMode==="hidden"&&!f.alternate&&!Je)return ft(t),null}else 2*zt()-u.renderingStartTime>Eo&&r!==536870912&&(t.flags|=128,l=!0,Ns(u,!1),t.lanes=4194304);u.isBackwards?(f.sibling=t.child,t.child=f):(e=u.last,e!==null?e.sibling=f:t.child=f,u.last=f)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=zt(),t.sibling=null,e=wt.current,W(wt,l?e&1|2:e&1),t):(ft(t),null);case 22:case 23:return ua(t),Fc(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(r&536870912)!==0&&(t.flags&128)===0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),r=t.updateQueue,r!==null&&So(t,r.retryQueue),r=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==r&&(t.flags|=2048),e!==null&&se(Rr),null;case 24:return r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),la(_t),ft(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function U_(e,t){switch(Mc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return la(_t),Xe(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Fe(t),null;case 13:if(ua(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));ps()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return se(wt),null;case 4:return Xe(),null;case 10:return la(t.type),null;case 22:case 23:return ua(t),Fc(),e!==null&&se(Rr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return la(_t),null;case 25:return null;default:return null}}function wv(e,t){switch(Mc(t),t.tag){case 3:la(_t),Xe();break;case 26:case 27:case 5:Fe(t);break;case 4:Xe();break;case 13:ua(t);break;case 19:se(wt);break;case 10:la(t.type);break;case 22:case 23:ua(t),Fc(),e!==null&&se(Rr);break;case 24:la(_t)}}function Ds(e,t){try{var r=t.updateQueue,l=r!==null?r.lastEffect:null;if(l!==null){var u=l.next;r=u;do{if((r.tag&e)===e){l=void 0;var f=r.create,v=r.inst;l=f(),v.destroy=l}r=r.next}while(r!==u)}}catch(x){st(t,t.return,x)}}function qa(e,t,r){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var f=u.next;l=f;do{if((l.tag&e)===e){var v=l.inst,x=v.destroy;if(x!==void 0){v.destroy=void 0,u=t;var E=r,H=x;try{H()}catch(Q){st(u,E,Q)}}}l=l.next}while(l!==f)}}catch(Q){st(t,t.return,Q)}}function Ev(e){var t=e.updateQueue;if(t!==null){var r=e.stateNode;try{fp(t,r)}catch(l){st(e,e.return,l)}}}function Tv(e,t,r){r.props=Mr(e.type,e.memoizedProps),r.state=e.memoizedState;try{r.componentWillUnmount()}catch(l){st(e,t,l)}}function js(e,t){try{var r=e.ref;if(r!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof r=="function"?e.refCleanup=r(l):r.current=l}}catch(u){st(e,t,u)}}function Hn(e,t){var r=e.ref,l=e.refCleanup;if(r!==null)if(typeof l=="function")try{l()}catch(u){st(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof r=="function")try{r(null)}catch(u){st(e,t,u)}else r.current=null}function Av(e){var t=e.type,r=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":r.autoFocus&&l.focus();break e;case"img":r.src?l.src=r.src:r.srcSet&&(l.srcset=r.srcSet)}}catch(u){st(e,e.return,u)}}function bf(e,t,r){try{var l=e.stateNode;aw(l,e.type,r,t),l[It]=t}catch(u){st(e,e.return,u)}}function Cv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function xf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Cv(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&&Xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Sf(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).insertBefore(e,t):(t=r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,t.appendChild(e),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=jo));else if(l!==4&&(l===27&&Xa(e.type)&&(r=e.stateNode,t=null),e=e.child,e!==null))for(Sf(e,t,r),e=e.sibling;e!==null;)Sf(e,t,r),e=e.sibling}function _o(e,t,r){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(l!==4&&(l===27&&Xa(e.type)&&(r=e.stateNode),e=e.child,e!==null))for(_o(e,t,r),e=e.sibling;e!==null;)_o(e,t,r),e=e.sibling}function Rv(e){var t=e.stateNode,r=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);jt(t,l,r),t[Ut]=e,t[It]=r}catch(f){st(e,e.return,f)}}var da=!1,vt=!1,_f=!1,Ov=typeof WeakSet=="function"?WeakSet:Set,Ot=null;function L_(e,t){if(e=e.containerInfo,Yf=Ho,e=Hm(e),bc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var l=r.getSelection&&r.getSelection();if(l&&l.rangeCount!==0){r=l.anchorNode;var u=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{r.nodeType,f.nodeType}catch{r=null;break e}var v=0,x=-1,E=-1,H=0,Q=0,$=e,G=null;t:for(;;){for(var F;$!==r||u!==0&&$.nodeType!==3||(x=v+u),$!==f||l!==0&&$.nodeType!==3||(E=v+l),$.nodeType===3&&(v+=$.nodeValue.length),(F=$.firstChild)!==null;)G=$,$=F;for(;;){if($===e)break t;if(G===r&&++H===u&&(x=v),G===f&&++Q===l&&(E=v),(F=$.nextSibling)!==null)break;$=G,G=$.parentNode}$=F}r=x===-1||E===-1?null:{start:x,end:E}}else r=null}r=r||{start:0,end:0}}else r=null;for(If={focusedElem:e,selectionRange:r},Ho=!1,Ot=t;Ot!==null;)if(t=Ot,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Ot=e;else for(;Ot!==null;){switch(t=Ot,f=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,r=t,u=f.memoizedProps,f=f.memoizedState,l=r.stateNode;try{var De=Mr(r.type,u,r.elementType===r.type);e=l.getSnapshotBeforeUpdate(De,f),l.__reactInternalSnapshotBeforeUpdate=e}catch(Ce){st(r,r.return,Ce)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,r=e.nodeType,r===9)Kf(e);else if(r===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Kf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ot=e;break}Ot=t.return}}function Mv(e,t,r){var l=r.flags;switch(r.tag){case 0:case 11:case 15:Pa(e,r),l&4&&Ds(5,r);break;case 1:if(Pa(e,r),l&4)if(e=r.stateNode,t===null)try{e.componentDidMount()}catch(v){st(r,r.return,v)}else{var u=Mr(r.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(v){st(r,r.return,v)}}l&64&&Ev(r),l&512&&js(r,r.return);break;case 3:if(Pa(e,r),l&64&&(e=r.updateQueue,e!==null)){if(t=null,r.child!==null)switch(r.child.tag){case 27:case 5:t=r.child.stateNode;break;case 1:t=r.child.stateNode}try{fp(e,t)}catch(v){st(r,r.return,v)}}break;case 27:t===null&&l&4&&Rv(r);case 26:case 5:Pa(e,r),t===null&&l&4&&Av(r),l&512&&js(r,r.return);break;case 12:Pa(e,r);break;case 13:Pa(e,r),l&4&&jv(e,r),l&64&&(e=r.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(r=Y_.bind(null,r),cw(e,r))));break;case 22:if(l=r.memoizedState!==null||da,!l){t=t!==null&&t.memoizedState!==null||vt,u=da;var f=vt;da=l,(vt=t)&&!f?Ga(e,r,(r.subtreeFlags&8772)!==0):Pa(e,r),da=u,vt=f}break;case 30:break;default:Pa(e,r)}}function Nv(e){var t=e.alternate;t!==null&&(e.alternate=null,Nv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ec(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,Kt=!1;function ha(e,t,r){for(r=r.child;r!==null;)Dv(e,t,r),r=r.sibling}function Dv(e,t,r){if(ke&&typeof ke.onCommitFiberUnmount=="function")try{ke.onCommitFiberUnmount(_e,r)}catch{}switch(r.tag){case 26:vt||Hn(r,t),ha(e,t,r),r.memoizedState?r.memoizedState.count--:r.stateNode&&(r=r.stateNode,r.parentNode.removeChild(r));break;case 27:vt||Hn(r,t);var l=ct,u=Kt;Xa(r.type)&&(ct=r.stateNode,Kt=!1),ha(e,t,r),Ps(r.stateNode),ct=l,Kt=u;break;case 5:vt||Hn(r,t);case 6:if(l=ct,u=Kt,ct=null,ha(e,t,r),ct=l,Kt=u,ct!==null)if(Kt)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(r.stateNode)}catch(f){st(r,t,f)}else try{ct.removeChild(r.stateNode)}catch(f){st(r,t,f)}break;case 18:ct!==null&&(Kt?(e=ct,xg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,r.stateNode),Ks(e)):xg(ct,r.stateNode));break;case 4:l=ct,u=Kt,ct=r.stateNode.containerInfo,Kt=!0,ha(e,t,r),ct=l,Kt=u;break;case 0:case 11:case 14:case 15:vt||qa(2,r,t),vt||qa(4,r,t),ha(e,t,r);break;case 1:vt||(Hn(r,t),l=r.stateNode,typeof l.componentWillUnmount=="function"&&Tv(r,t,l)),ha(e,t,r);break;case 21:ha(e,t,r);break;case 22:vt=(l=vt)||r.memoizedState!==null,ha(e,t,r),vt=l;break;default:ha(e,t,r)}}function jv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ks(e)}catch(r){st(t,t.return,r)}}function V_(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ov),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ov),t;default:throw Error(s(435,e.tag))}}function wf(e,t){var r=V_(e);t.forEach(function(l){var u=I_.bind(null,e,l);r.has(l)||(r.add(l),l.then(u,u))})}function nn(e,t){var r=t.deletions;if(r!==null)for(var l=0;l<r.length;l++){var u=r[l],f=e,v=t,x=v;e:for(;x!==null;){switch(x.tag){case 27:if(Xa(x.type)){ct=x.stateNode,Kt=!1;break e}break;case 5:ct=x.stateNode,Kt=!1;break e;case 3:case 4:ct=x.stateNode.containerInfo,Kt=!0;break e}x=x.return}if(ct===null)throw Error(s(160));Dv(f,v,u),ct=null,Kt=!1,f=u.alternate,f!==null&&(f.return=null),u.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)kv(t,e),t=t.sibling}var An=null;function kv(e,t){var r=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:nn(t,e),an(e),l&4&&(qa(3,e,e.return),Ds(3,e),qa(5,e,e.return));break;case 1:nn(t,e),an(e),l&512&&(vt||r===null||Hn(r,r.return)),l&64&&da&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(r=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=r===null?l:r.concat(l))));break;case 26:var u=An;if(nn(t,e),an(e),l&512&&(vt||r===null||Hn(r,r.return)),l&4){var f=r!==null?r.memoizedState:null;if(l=e.memoizedState,r===null)if(l===null)if(e.stateNode===null){e:{l=e.type,r=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":f=u.getElementsByTagName("title")[0],(!f||f[as]||f[Ut]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=u.createElement(l),u.head.insertBefore(f,u.querySelector("head > title"))),jt(f,l,r),f[Ut]=e,Ct(f),l=f;break e;case"link":var v=Rg("link","href",u).get(l+(r.href||""));if(v){for(var x=0;x<v.length;x++)if(f=v[x],f.getAttribute("href")===(r.href==null||r.href===""?null:r.href)&&f.getAttribute("rel")===(r.rel==null?null:r.rel)&&f.getAttribute("title")===(r.title==null?null:r.title)&&f.getAttribute("crossorigin")===(r.crossOrigin==null?null:r.crossOrigin)){v.splice(x,1);break t}}f=u.createElement(l),jt(f,l,r),u.head.appendChild(f);break;case"meta":if(v=Rg("meta","content",u).get(l+(r.content||""))){for(x=0;x<v.length;x++)if(f=v[x],f.getAttribute("content")===(r.content==null?null:""+r.content)&&f.getAttribute("name")===(r.name==null?null:r.name)&&f.getAttribute("property")===(r.property==null?null:r.property)&&f.getAttribute("http-equiv")===(r.httpEquiv==null?null:r.httpEquiv)&&f.getAttribute("charset")===(r.charSet==null?null:r.charSet)){v.splice(x,1);break t}}f=u.createElement(l),jt(f,l,r),u.head.appendChild(f);break;default:throw Error(s(468,l))}f[Ut]=e,Ct(f),l=f}e.stateNode=l}else Og(u,e.type,e.stateNode);else e.stateNode=Cg(u,l,e.memoizedProps);else f!==l?(f===null?r.stateNode!==null&&(r=r.stateNode,r.parentNode.removeChild(r)):f.count--,l===null?Og(u,e.type,e.stateNode):Cg(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&bf(e,e.memoizedProps,r.memoizedProps)}break;case 27:nn(t,e),an(e),l&512&&(vt||r===null||Hn(r,r.return)),r!==null&&l&4&&bf(e,e.memoizedProps,r.memoizedProps);break;case 5:if(nn(t,e),an(e),l&512&&(vt||r===null||Hn(r,r.return)),e.flags&32){u=e.stateNode;try{ri(u,"")}catch(F){st(e,e.return,F)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,bf(e,u,r!==null?r.memoizedProps:u)),l&1024&&(_f=!0);break;case 6:if(nn(t,e),an(e),l&4){if(e.stateNode===null)throw Error(s(162));l=e.memoizedProps,r=e.stateNode;try{r.nodeValue=l}catch(F){st(e,e.return,F)}}break;case 3:if(Lo=null,u=An,An=zo(t.containerInfo),nn(t,e),An=u,an(e),l&4&&r!==null&&r.memoizedState.isDehydrated)try{Ks(t.containerInfo)}catch(F){st(e,e.return,F)}_f&&(_f=!1,zv(e));break;case 4:l=An,An=zo(e.stateNode.containerInfo),nn(t,e),an(e),An=l;break;case 12:nn(t,e),an(e);break;case 13:nn(t,e),an(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(Of=zt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,wf(e,l)));break;case 22:u=e.memoizedState!==null;var E=r!==null&&r.memoizedState!==null,H=da,Q=vt;if(da=H||u,vt=Q||E,nn(t,e),vt=Q,da=H,an(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(r===null||E||da||vt||Nr(e)),r=null,t=e;;){if(t.tag===5||t.tag===26){if(r===null){E=r=t;try{if(f=E.stateNode,u)v=f.style,typeof v.setProperty=="function"?v.setProperty("display","none","important"):v.display="none";else{x=E.stateNode;var $=E.memoizedProps.style,G=$!=null&&$.hasOwnProperty("display")?$.display:null;x.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(F){st(E,E.return,F)}}}else if(t.tag===6){if(r===null){E=t;try{E.stateNode.nodeValue=u?"":E.memoizedProps}catch(F){st(E,E.return,F)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;r===t&&(r=null),t=t.return}r===t&&(r=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(r=l.retryQueue,r!==null&&(l.retryQueue=null,wf(e,r))));break;case 19:nn(t,e),an(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,wf(e,l)));break;case 30:break;case 21:break;default:nn(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{for(var r,l=e.return;l!==null;){if(Cv(l)){r=l;break}l=l.return}if(r==null)throw Error(s(160));switch(r.tag){case 27:var u=r.stateNode,f=xf(e);_o(e,f,u);break;case 5:var v=r.stateNode;r.flags&32&&(ri(v,""),r.flags&=-33);var x=xf(e);_o(e,x,v);break;case 3:case 4:var E=r.stateNode.containerInfo,H=xf(e);Sf(e,H,E);break;default:throw Error(s(161))}}catch(Q){st(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function zv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;zv(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Mv(e,t.alternate,t),t=t.sibling}function Nr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qa(4,t,t.return),Nr(t);break;case 1:Hn(t,t.return);var r=t.stateNode;typeof r.componentWillUnmount=="function"&&Tv(t,t.return,r),Nr(t);break;case 27:Ps(t.stateNode);case 26:case 5:Hn(t,t.return),Nr(t);break;case 22:t.memoizedState===null&&Nr(t);break;case 30:Nr(t);break;default:Nr(t)}e=e.sibling}}function Ga(e,t,r){for(r=r&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,f=t,v=f.flags;switch(f.tag){case 0:case 11:case 15:Ga(u,f,r),Ds(4,f);break;case 1:if(Ga(u,f,r),l=f,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(H){st(l,l.return,H)}if(l=f,u=l.updateQueue,u!==null){var x=l.stateNode;try{var E=u.shared.hiddenCallbacks;if(E!==null)for(u.shared.hiddenCallbacks=null,u=0;u<E.length;u++)cp(E[u],x)}catch(H){st(l,l.return,H)}}r&&v&64&&Ev(f),js(f,f.return);break;case 27:Rv(f);case 26:case 5:Ga(u,f,r),r&&l===null&&v&4&&Av(f),js(f,f.return);break;case 12:Ga(u,f,r);break;case 13:Ga(u,f,r),r&&v&4&&jv(u,f);break;case 22:f.memoizedState===null&&Ga(u,f,r),js(f,f.return);break;case 30:break;default:Ga(u,f,r)}t=t.sibling}}function Ef(e,t){var r=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(r=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==r&&(e!=null&&e.refCount++,r!=null&&ys(r))}function Tf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ys(e))}function qn(e,t,r,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Uv(e,t,r,l),t=t.sibling}function Uv(e,t,r,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:qn(e,t,r,l),u&2048&&Ds(9,t);break;case 1:qn(e,t,r,l);break;case 3:qn(e,t,r,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ys(e)));break;case 12:if(u&2048){qn(e,t,r,l),e=t.stateNode;try{var f=t.memoizedProps,v=f.id,x=f.onPostCommit;typeof x=="function"&&x(v,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(E){st(t,t.return,E)}}else qn(e,t,r,l);break;case 13:qn(e,t,r,l);break;case 23:break;case 22:f=t.stateNode,v=t.alternate,t.memoizedState!==null?f._visibility&2?qn(e,t,r,l):ks(e,t):f._visibility&2?qn(e,t,r,l):(f._visibility|=2,wi(e,t,r,l,(t.subtreeFlags&10256)!==0)),u&2048&&Ef(v,t);break;case 24:qn(e,t,r,l),u&2048&&Tf(t.alternate,t);break;default:qn(e,t,r,l)}}function wi(e,t,r,l,u){for(u=u&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var f=e,v=t,x=r,E=l,H=v.flags;switch(v.tag){case 0:case 11:case 15:wi(f,v,x,E,u),Ds(8,v);break;case 23:break;case 22:var Q=v.stateNode;v.memoizedState!==null?Q._visibility&2?wi(f,v,x,E,u):ks(f,v):(Q._visibility|=2,wi(f,v,x,E,u)),u&&H&2048&&Ef(v.alternate,v);break;case 24:wi(f,v,x,E,u),u&&H&2048&&Tf(v.alternate,v);break;default:wi(f,v,x,E,u)}t=t.sibling}}function ks(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var r=e,l=t,u=l.flags;switch(l.tag){case 22:ks(r,l),u&2048&&Ef(l.alternate,l);break;case 24:ks(r,l),u&2048&&Tf(l.alternate,l);break;default:ks(r,l)}t=t.sibling}}var zs=8192;function Ei(e){if(e.subtreeFlags&zs)for(e=e.child;e!==null;)Lv(e),e=e.sibling}function Lv(e){switch(e.tag){case 26:Ei(e),e.flags&zs&&e.memoizedState!==null&&ww(An,e.memoizedState,e.memoizedProps);break;case 5:Ei(e);break;case 3:case 4:var t=An;An=zo(e.stateNode.containerInfo),Ei(e),An=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=zs,zs=16777216,Ei(e),zs=t):Ei(e));break;default:Ei(e)}}function Vv(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 Us(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];Ot=l,Hv(l,e)}Vv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bv(e),e=e.sibling}function Bv(e){switch(e.tag){case 0:case 11:case 15:Us(e),e.flags&2048&&qa(9,e,e.return);break;case 3:Us(e);break;case 12:Us(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,wo(e)):Us(e);break;default:Us(e)}}function wo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var r=0;r<t.length;r++){var l=t[r];Ot=l,Hv(l,e)}Vv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qa(8,t,t.return),wo(t);break;case 22:r=t.stateNode,r._visibility&2&&(r._visibility&=-3,wo(t));break;default:wo(t)}e=e.sibling}}function Hv(e,t){for(;Ot!==null;){var r=Ot;switch(r.tag){case 0:case 11:case 15:qa(8,r,t);break;case 23:case 22:if(r.memoizedState!==null&&r.memoizedState.cachePool!==null){var l=r.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ys(r.memoizedState.cache)}if(l=r.child,l!==null)l.return=r,Ot=l;else e:for(r=e;Ot!==null;){l=Ot;var u=l.sibling,f=l.return;if(Nv(l),l===r){Ot=null;break e}if(u!==null){u.return=f,Ot=u;break e}Ot=f}}}var B_={getCacheForType:function(e){var t=Lt(_t),r=t.data.get(e);return r===void 0&&(r=e(),t.data.set(e,r)),r}},H_=typeof WeakMap=="function"?WeakMap:Map,et=0,ut=null,Pe=null,Ie=0,tt=0,rn=null,Fa=!1,Ti=!1,Af=!1,ma=0,mt=0,Za=0,Dr=0,Cf=0,xn=0,Ai=0,Ls=null,$t=null,Rf=!1,Of=0,Eo=1/0,To=null,Ya=null,Dt=0,Ia=null,Ci=null,Ri=0,Mf=0,Nf=null,qv=null,Vs=0,Df=null;function sn(){if((et&2)!==0&&Ie!==0)return Ie&-Ie;if(j.T!==null){var e=pi;return e!==0?e:Bf()}return am()}function Pv(){xn===0&&(xn=(Ie&536870912)===0||Je?Wh():536870912);var e=bn.current;return e!==null&&(e.flags|=32),xn}function ln(e,t,r){(e===ut&&(tt===2||tt===9)||e.cancelPendingCommit!==null)&&(Oi(e,0),Qa(e,Ie,xn,!1)),ns(e,r),((et&2)===0||e!==ut)&&(e===ut&&((et&2)===0&&(Dr|=r),mt===4&&Qa(e,Ie,xn,!1)),Pn(e))}function Gv(e,t,r){if((et&6)!==0)throw Error(s(327));var l=!r&&(t&124)===0&&(t&e.expiredLanes)===0||vr(e,t),u=l?G_(e,t):zf(e,t,!0),f=l;do{if(u===0){Ti&&!l&&Qa(e,t,0,!1);break}else{if(r=e.current.alternate,f&&!q_(r)){u=zf(e,t,!1),f=!1;continue}if(u===2){if(f=t,e.errorRecoveryDisabledLanes&f)var v=0;else v=e.pendingLanes&-536870913,v=v!==0?v:v&536870912?536870912:0;if(v!==0){t=v;e:{var x=e;u=Ls;var E=x.current.memoizedState.isDehydrated;if(E&&(Oi(x,v).flags|=256),v=zf(x,v,!1),v!==2){if(Af&&!E){x.errorRecoveryDisabledLanes|=f,Dr|=f,u=4;break e}f=$t,$t=u,f!==null&&($t===null?$t=f:$t.push.apply($t,f))}u=v}if(f=!1,u!==2)continue}}if(u===1){Oi(e,0),Qa(e,t,0,!0);break}e:{switch(l=e,f=u,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Qa(l,t,xn,!Fa);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(u=Of+300-zt(),10<u)){if(Qa(l,t,xn,!Fa),pr(l,0,!0)!==0)break e;l.timeoutHandle=yg(Fv.bind(null,l,r,$t,To,Rf,t,xn,Dr,Ai,Fa,f,2,-0,0),u);break e}Fv(l,r,$t,To,Rf,t,xn,Dr,Ai,Fa,f,0,-0,0)}}break}while(!0);Pn(e)}function Fv(e,t,r,l,u,f,v,x,E,H,Q,$,G,F){if(e.timeoutHandle=-1,$=t.subtreeFlags,($&8192||($&16785408)===16785408)&&(Zs={stylesheets:null,count:0,unsuspend:_w},Lv(t),$=Ew(),$!==null)){e.cancelPendingCommit=$($v.bind(null,e,t,f,r,l,u,v,x,E,Q,1,G,F)),Qa(e,f,v,!H);return}$v(e,t,f,r,l,u,v,x,E)}function q_(e){for(var t=e;;){var r=t.tag;if((r===0||r===11||r===15)&&t.flags&16384&&(r=t.updateQueue,r!==null&&(r=r.stores,r!==null)))for(var l=0;l<r.length;l++){var u=r[l],f=u.getSnapshot;u=u.value;try{if(!en(f(),u))return!1}catch{return!1}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;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 Qa(e,t,r,l){t&=~Cf,t&=~Dr,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var f=31-ot(u),v=1<<f;l[f]=-1,u&=~v}r!==0&&tm(e,r,t)}function Ao(){return(et&6)===0?(Bs(0),!1):!0}function jf(){if(Pe!==null){if(tt===0)var e=Pe.return;else e=Pe,sa=Ar=null,Xc(e),Si=null,Os=0,e=Pe;for(;e!==null;)wv(e.alternate,e),e=e.return;Pe=null}}function Oi(e,t){var r=e.timeoutHandle;r!==-1&&(e.timeoutHandle=-1,iw(r)),r=e.cancelPendingCommit,r!==null&&(e.cancelPendingCommit=null,r()),jf(),ut=e,Pe=r=aa(e.current,null),Ie=t,tt=0,rn=null,Fa=!1,Ti=vr(e,t),Af=!1,Ai=xn=Cf=Dr=Za=mt=0,$t=Ls=null,Rf=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-ot(l),f=1<<u;t|=e[u],l&=~f}return ma=t,Il(),r}function Zv(e,t){Ve=null,j.H=ho,t===xs||t===no?(t=op(),tt=3):t===ip?(t=op(),tt=4):tt=t===uv?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,rn=t,Pe===null&&(mt=1,yo(e,pn(t,e.current)))}function Yv(){var e=j.H;return j.H=ho,e===null?ho:e}function Iv(){var e=j.A;return j.A=B_,e}function kf(){mt=4,Fa||(Ie&4194048)!==Ie&&bn.current!==null||(Ti=!0),(Za&134217727)===0&&(Dr&134217727)===0||ut===null||Qa(ut,Ie,xn,!1)}function zf(e,t,r){var l=et;et|=2;var u=Yv(),f=Iv();(ut!==e||Ie!==t)&&(To=null,Oi(e,t)),t=!1;var v=mt;e:do try{if(tt!==0&&Pe!==null){var x=Pe,E=rn;switch(tt){case 8:jf(),v=6;break e;case 3:case 2:case 9:case 6:bn.current===null&&(t=!0);var H=tt;if(tt=0,rn=null,Mi(e,x,E,H),r&&Ti){v=0;break e}break;default:H=tt,tt=0,rn=null,Mi(e,x,E,H)}}P_(),v=mt;break}catch(Q){Zv(e,Q)}while(!0);return t&&e.shellSuspendCounter++,sa=Ar=null,et=l,j.H=u,j.A=f,Pe===null&&(ut=null,Ie=0,Il()),v}function P_(){for(;Pe!==null;)Qv(Pe)}function G_(e,t){var r=et;et|=2;var l=Yv(),u=Iv();ut!==e||Ie!==t?(To=null,Eo=zt()+500,Oi(e,t)):Ti=vr(e,t);e:do try{if(tt!==0&&Pe!==null){t=Pe;var f=rn;t:switch(tt){case 1:tt=0,rn=null,Mi(e,t,f,1);break;case 2:case 9:if(sp(f)){tt=0,rn=null,Xv(t);break}t=function(){tt!==2&&tt!==9||ut!==e||(tt=7),Pn(e)},f.then(t,t);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:sp(f)?(tt=0,rn=null,Xv(t)):(tt=0,rn=null,Mi(e,t,f,7));break;case 5:var v=null;switch(Pe.tag){case 26:v=Pe.memoizedState;case 5:case 27:var x=Pe;if(!v||Mg(v)){tt=0,rn=null;var E=x.sibling;if(E!==null)Pe=E;else{var H=x.return;H!==null?(Pe=H,Co(H)):Pe=null}break t}}tt=0,rn=null,Mi(e,t,f,5);break;case 6:tt=0,rn=null,Mi(e,t,f,6);break;case 8:jf(),mt=6;break e;default:throw Error(s(462))}}F_();break}catch(Q){Zv(e,Q)}while(!0);return sa=Ar=null,j.H=l,j.A=u,et=r,Pe!==null?0:(ut=null,Ie=0,Il(),mt)}function F_(){for(;Pe!==null&&!Oa();)Qv(Pe)}function Qv(e){var t=Sv(e.alternate,e,ma);e.memoizedProps=e.pendingProps,t===null?Co(e):Pe=t}function Xv(e){var t=e,r=t.alternate;switch(t.tag){case 15:case 0:t=pv(r,t,t.pendingProps,t.type,void 0,Ie);break;case 11:t=pv(r,t,t.pendingProps,t.type.render,t.ref,Ie);break;case 5:Xc(t);default:wv(r,t),t=Pe=Km(t,ma),t=Sv(r,t,ma)}e.memoizedProps=e.pendingProps,t===null?Co(e):Pe=t}function Mi(e,t,r,l){sa=Ar=null,Xc(t),Si=null,Os=0;var u=t.return;try{if(j_(e,u,t,r,Ie)){mt=1,yo(e,pn(r,e.current)),Pe=null;return}}catch(f){if(u!==null)throw Pe=u,f;mt=1,yo(e,pn(r,e.current)),Pe=null;return}t.flags&32768?(Je||l===1?e=!0:Ti||(Ie&536870912)!==0?e=!1:(Fa=e=!0,(l===2||l===9||l===3||l===6)&&(l=bn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Kv(t,e)):Co(t)}function Co(e){var t=e;do{if((t.flags&32768)!==0){Kv(t,Fa);return}e=t.return;var r=z_(t.alternate,t,ma);if(r!==null){Pe=r;return}if(t=t.sibling,t!==null){Pe=t;return}Pe=t=e}while(t!==null);mt===0&&(mt=5)}function Kv(e,t){do{var r=U_(e.alternate,e);if(r!==null){r.flags&=32767,Pe=r;return}if(r=e.return,r!==null&&(r.flags|=32768,r.subtreeFlags=0,r.deletions=null),!t&&(e=e.sibling,e!==null)){Pe=e;return}Pe=e=r}while(e!==null);mt=6,Pe=null}function $v(e,t,r,l,u,f,v,x,E){e.cancelPendingCommit=null;do Ro();while(Dt!==0);if((et&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=Ec,_S(e,r,f,v,x,E),e===ut&&(Pe=ut=null,Ie=0),Ci=t,Ia=e,Ri=r,Mf=f,Nf=u,qv=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Q_(q,function(){return ng(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=j.T,j.T=null,u=I.p,I.p=2,v=et,et|=4;try{L_(e,t,r)}finally{et=v,I.p=u,j.T=l}}Dt=1,Jv(),Wv(),eg()}}function Jv(){if(Dt===1){Dt=0;var e=Ia,t=Ci,r=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||r){r=j.T,j.T=null;var l=I.p;I.p=2;var u=et;et|=4;try{kv(t,e);var f=If,v=Hm(e.containerInfo),x=f.focusedElem,E=f.selectionRange;if(v!==x&&x&&x.ownerDocument&&Bm(x.ownerDocument.documentElement,x)){if(E!==null&&bc(x)){var H=E.start,Q=E.end;if(Q===void 0&&(Q=H),"selectionStart"in x)x.selectionStart=H,x.selectionEnd=Math.min(Q,x.value.length);else{var $=x.ownerDocument||document,G=$&&$.defaultView||window;if(G.getSelection){var F=G.getSelection(),De=x.textContent.length,Ce=Math.min(E.start,De),it=E.end===void 0?Ce:Math.min(E.end,De);!F.extend&&Ce>it&&(v=it,it=Ce,Ce=v);var k=Vm(x,Ce),D=Vm(x,it);if(k&&D&&(F.rangeCount!==1||F.anchorNode!==k.node||F.anchorOffset!==k.offset||F.focusNode!==D.node||F.focusOffset!==D.offset)){var V=$.createRange();V.setStart(k.node,k.offset),F.removeAllRanges(),Ce>it?(F.addRange(V),F.extend(D.node,D.offset)):(V.setEnd(D.node,D.offset),F.addRange(V))}}}}for($=[],F=x;F=F.parentNode;)F.nodeType===1&&$.push({element:F,left:F.scrollLeft,top:F.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<$.length;x++){var K=$[x];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}Ho=!!Yf,If=Yf=null}finally{et=u,I.p=l,j.T=r}}e.current=t,Dt=2}}function Wv(){if(Dt===2){Dt=0;var e=Ia,t=Ci,r=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||r){r=j.T,j.T=null;var l=I.p;I.p=2;var u=et;et|=4;try{Mv(e,t.alternate,t)}finally{et=u,I.p=l,j.T=r}}Dt=3}}function eg(){if(Dt===4||Dt===3){Dt=0,mr();var e=Ia,t=Ci,r=Ri,l=qv;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Dt=5:(Dt=0,Ci=Ia=null,tg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ya=null),Ju(r),t=t.stateNode,ke&&typeof ke.onCommitFiberRoot=="function")try{ke.onCommitFiberRoot(_e,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=j.T,u=I.p,I.p=2,j.T=null;try{for(var f=e.onRecoverableError,v=0;v<l.length;v++){var x=l[v];f(x.value,{componentStack:x.stack})}}finally{j.T=t,I.p=u}}(Ri&3)!==0&&Ro(),Pn(e),u=e.pendingLanes,(r&4194090)!==0&&(u&42)!==0?e===Df?Vs++:(Vs=0,Df=e):Vs=0,Bs(0)}}function tg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ys(t)))}function Ro(e){return Jv(),Wv(),eg(),ng()}function ng(){if(Dt!==5)return!1;var e=Ia,t=Mf;Mf=0;var r=Ju(Ri),l=j.T,u=I.p;try{I.p=32>r?32:r,j.T=null,r=Nf,Nf=null;var f=Ia,v=Ri;if(Dt=0,Ci=Ia=null,Ri=0,(et&6)!==0)throw Error(s(331));var x=et;if(et|=4,Bv(f.current),Uv(f,f.current,v,r),et=x,Bs(0,!1),ke&&typeof ke.onPostCommitFiberRoot=="function")try{ke.onPostCommitFiberRoot(_e,f)}catch{}return!0}finally{I.p=u,j.T=l,tg(e,t)}}function ag(e,t,r){t=pn(r,t),t=cf(e.stateNode,t,2),e=La(e,t,2),e!==null&&(ns(e,2),Pn(e))}function st(e,t,r){if(e.tag===3)ag(e,e,r);else for(;t!==null;){if(t.tag===3){ag(t,e,r);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ya===null||!Ya.has(l))){e=pn(r,e),r=lv(2),l=La(t,r,2),l!==null&&(ov(r,l,t,e),ns(l,2),Pn(l));break}}t=t.return}}function Uf(e,t,r){var l=e.pingCache;if(l===null){l=e.pingCache=new H_;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(r)||(Af=!0,u.add(r),e=Z_.bind(null,e,t,r),t.then(e,e))}function Z_(e,t,r){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,ut===e&&(Ie&r)===r&&(mt===4||mt===3&&(Ie&62914560)===Ie&&300>zt()-Of?(et&2)===0&&Oi(e,0):Cf|=r,Ai===Ie&&(Ai=0)),Pn(e)}function rg(e,t){t===0&&(t=em()),e=fi(e,t),e!==null&&(ns(e,t),Pn(e))}function Y_(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),rg(e,r)}function I_(e,t){var r=0;switch(e.tag){case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(r=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(t),rg(e,r)}function Q_(e,t){return At(e,t)}var Oo=null,Ni=null,Lf=!1,Mo=!1,Vf=!1,jr=0;function Pn(e){e!==Ni&&e.next===null&&(Ni===null?Oo=Ni=e:Ni=Ni.next=e),Mo=!0,Lf||(Lf=!0,K_())}function Bs(e,t){if(!Vf&&Mo){Vf=!0;do for(var r=!1,l=Oo;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var f=0;else{var v=l.suspendedLanes,x=l.pingedLanes;f=(1<<31-ot(42|e)+1)-1,f&=u&~(v&~x),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(r=!0,og(l,f))}else f=Ie,f=pr(l,l===ut?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||vr(l,f)||(r=!0,og(l,f));l=l.next}while(r);Vf=!1}}function X_(){ig()}function ig(){Mo=Lf=!1;var e=0;jr!==0&&(rw()&&(e=jr),jr=0);for(var t=zt(),r=null,l=Oo;l!==null;){var u=l.next,f=sg(l,t);f===0?(l.next=null,r===null?Oo=u:r.next=u,u===null&&(Ni=r)):(r=l,(e!==0||(f&3)!==0)&&(Mo=!0)),l=u}Bs(e)}function sg(e,t){for(var r=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var v=31-ot(f),x=1<<v,E=u[v];E===-1?((x&r)===0||(x&l)!==0)&&(u[v]=zl(x,t)):E<=t&&(e.expiredLanes|=x),f&=~x}if(t=ut,r=Ie,r=pr(e,e===t?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,r===0||e===t&&(tt===2||tt===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Yt(l),e.callbackNode=null,e.callbackPriority=0;if((r&3)===0||vr(e,r)){if(t=r&-r,t===e.callbackPriority)return t;switch(l!==null&&Yt(l),Ju(r)){case 2:case 8:r=R;break;case 32:r=q;break;case 268435456:r=pe;break;default:r=q}return l=lg.bind(null,e),r=At(r,l),e.callbackPriority=t,e.callbackNode=r,t}return l!==null&&l!==null&&Yt(l),e.callbackPriority=2,e.callbackNode=null,2}function lg(e,t){if(Dt!==0&&Dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var r=e.callbackNode;if(Ro()&&e.callbackNode!==r)return null;var l=Ie;return l=pr(e,e===ut?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Gv(e,l,t),sg(e,zt()),e.callbackNode!=null&&e.callbackNode===r?lg.bind(null,e):null)}function og(e,t){if(Ro())return null;Gv(e,t,!0)}function K_(){sw(function(){(et&6)!==0?At(ts,X_):ig()})}function Bf(){return jr===0&&(jr=Wh()),jr}function ug(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hl(""+e)}function cg(e,t){var r=t.ownerDocument.createElement("input");return r.name=t.name,r.value=t.value,e.id&&r.setAttribute("form",e.id),t.parentNode.insertBefore(r,t),e=new FormData(e),r.parentNode.removeChild(r),e}function $_(e,t,r,l,u){if(t==="submit"&&r&&r.stateNode===u){var f=ug((u[It]||null).action),v=l.submitter;v&&(t=(t=v[It]||null)?ug(t.formAction):v.getAttribute("formAction"),t!==null&&(f=t,v=null));var x=new Fl("action","action",null,l,u);e.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(jr!==0){var E=v?cg(u,v):new FormData(u);rf(r,{pending:!0,data:E,method:u.method,action:f},null,E)}}else typeof f=="function"&&(x.preventDefault(),E=v?cg(u,v):new FormData(u),rf(r,{pending:!0,data:E,method:u.method,action:f},f,E))},currentTarget:u}]})}}for(var Hf=0;Hf<wc.length;Hf++){var qf=wc[Hf],J_=qf.toLowerCase(),W_=qf[0].toUpperCase()+qf.slice(1);Tn(J_,"on"+W_)}Tn(Gm,"onAnimationEnd"),Tn(Fm,"onAnimationIteration"),Tn(Zm,"onAnimationStart"),Tn("dblclick","onDoubleClick"),Tn("focusin","onFocus"),Tn("focusout","onBlur"),Tn(v_,"onTransitionRun"),Tn(g_,"onTransitionStart"),Tn(y_,"onTransitionCancel"),Tn(Ym,"onTransitionEnd"),ti("onMouseEnter",["mouseout","mouseover"]),ti("onMouseLeave",["mouseout","mouseover"]),ti("onPointerEnter",["pointerout","pointerover"]),ti("onPointerLeave",["pointerout","pointerover"]),gr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),gr("onBeforeInput",["compositionend","keypress","textInput","paste"]),gr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gr("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(" "),ew=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hs));function fg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var l=e[r],u=l.event;l=l.listeners;e:{var f=void 0;if(t)for(var v=l.length-1;0<=v;v--){var x=l[v],E=x.instance,H=x.currentTarget;if(x=x.listener,E!==f&&u.isPropagationStopped())break e;f=x,u.currentTarget=H;try{f(u)}catch(Q){go(Q)}u.currentTarget=null,f=E}else for(v=0;v<l.length;v++){if(x=l[v],E=x.instance,H=x.currentTarget,x=x.listener,E!==f&&u.isPropagationStopped())break e;f=x,u.currentTarget=H;try{f(u)}catch(Q){go(Q)}u.currentTarget=null,f=E}}}}function Ge(e,t){var r=t[Wu];r===void 0&&(r=t[Wu]=new Set);var l=e+"__bubble";r.has(l)||(dg(t,e,2,!1),r.add(l))}function Pf(e,t,r){var l=0;t&&(l|=4),dg(r,e,l,t)}var No="_reactListening"+Math.random().toString(36).slice(2);function Gf(e){if(!e[No]){e[No]=!0,im.forEach(function(r){r!=="selectionchange"&&(ew.has(r)||Pf(r,!1,e),Pf(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[No]||(t[No]=!0,Pf("selectionchange",!1,t))}}function dg(e,t,r,l){switch(Ug(t)){case 2:var u=Cw;break;case 8:u=Rw;break;default:u=ad}r=u.bind(null,t,r,e),u=void 0,!cc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,r,{capture:!0,passive:u}):e.addEventListener(t,r,!0):u!==void 0?e.addEventListener(t,r,{passive:u}):e.addEventListener(t,r,!1)}function Ff(e,t,r,l,u){var f=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var v=l.tag;if(v===3||v===4){var x=l.stateNode.containerInfo;if(x===u)break;if(v===4)for(v=l.return;v!==null;){var E=v.tag;if((E===3||E===4)&&v.stateNode.containerInfo===u)return;v=v.return}for(;x!==null;){if(v=Jr(x),v===null)return;if(E=v.tag,E===5||E===6||E===26||E===27){l=f=v;continue e}x=x.parentNode}}l=l.return}bm(function(){var H=f,Q=oc(r),$=[];e:{var G=Im.get(e);if(G!==void 0){var F=Fl,De=e;switch(e){case"keypress":if(Pl(r)===0)break e;case"keydown":case"keyup":F=QS;break;case"focusin":De="focus",F=mc;break;case"focusout":De="blur",F=mc;break;case"beforeblur":case"afterblur":F=mc;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":F=_m;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":F=US;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":F=$S;break;case Gm:case Fm:case Zm:F=BS;break;case Ym:F=WS;break;case"scroll":case"scrollend":F=kS;break;case"wheel":F=t_;break;case"copy":case"cut":case"paste":F=qS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":F=Em;break;case"toggle":case"beforetoggle":F=a_}var Ce=(t&4)!==0,it=!Ce&&(e==="scroll"||e==="scrollend"),k=Ce?G!==null?G+"Capture":null:G;Ce=[];for(var D=H,V;D!==null;){var K=D;if(V=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||V===null||k===null||(K=is(D,k),K!=null&&Ce.push(qs(D,K,V))),it)break;D=D.return}0<Ce.length&&(G=new F(G,De,null,r,Q),$.push({event:G,listeners:Ce}))}}if((t&7)===0){e:{if(G=e==="mouseover"||e==="pointerover",F=e==="mouseout"||e==="pointerout",G&&r!==lc&&(De=r.relatedTarget||r.fromElement)&&(Jr(De)||De[$r]))break e;if((F||G)&&(G=Q.window===Q?Q:(G=Q.ownerDocument)?G.defaultView||G.parentWindow:window,F?(De=r.relatedTarget||r.toElement,F=H,De=De?Jr(De):null,De!==null&&(it=c(De),Ce=De.tag,De!==it||Ce!==5&&Ce!==27&&Ce!==6)&&(De=null)):(F=null,De=H),F!==De)){if(Ce=_m,K="onMouseLeave",k="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(Ce=Em,K="onPointerLeave",k="onPointerEnter",D="pointer"),it=F==null?G:rs(F),V=De==null?G:rs(De),G=new Ce(K,D+"leave",F,r,Q),G.target=it,G.relatedTarget=V,K=null,Jr(Q)===H&&(Ce=new Ce(k,D+"enter",De,r,Q),Ce.target=V,Ce.relatedTarget=it,K=Ce),it=K,F&&De)t:{for(Ce=F,k=De,D=0,V=Ce;V;V=Di(V))D++;for(V=0,K=k;K;K=Di(K))V++;for(;0<D-V;)Ce=Di(Ce),D--;for(;0<V-D;)k=Di(k),V--;for(;D--;){if(Ce===k||k!==null&&Ce===k.alternate)break t;Ce=Di(Ce),k=Di(k)}Ce=null}else Ce=null;F!==null&&hg($,G,F,Ce,!1),De!==null&&it!==null&&hg($,it,De,Ce,!0)}}e:{if(G=H?rs(H):window,F=G.nodeName&&G.nodeName.toLowerCase(),F==="select"||F==="input"&&G.type==="file")var ge=Dm;else if(Mm(G))if(jm)ge=h_;else{ge=f_;var qe=c_}else F=G.nodeName,!F||F.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?H&&sc(H.elementType)&&(ge=Dm):ge=d_;if(ge&&(ge=ge(e,H))){Nm($,ge,r,Q);break e}qe&&qe(e,G,H),e==="focusout"&&H&&G.type==="number"&&H.memoizedProps.value!=null&&ic(G,"number",G.value)}switch(qe=H?rs(H):window,e){case"focusin":(Mm(qe)||qe.contentEditable==="true")&&(oi=qe,xc=H,hs=null);break;case"focusout":hs=xc=oi=null;break;case"mousedown":Sc=!0;break;case"contextmenu":case"mouseup":case"dragend":Sc=!1,qm($,r,Q);break;case"selectionchange":if(p_)break;case"keydown":case"keyup":qm($,r,Q)}var Ee;if(vc)e:{switch(e){case"compositionstart":var Oe="onCompositionStart";break e;case"compositionend":Oe="onCompositionEnd";break e;case"compositionupdate":Oe="onCompositionUpdate";break e}Oe=void 0}else li?Rm(e,r)&&(Oe="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(Oe="onCompositionStart");Oe&&(Tm&&r.locale!=="ko"&&(li||Oe!=="onCompositionStart"?Oe==="onCompositionEnd"&&li&&(Ee=xm()):(ja=Q,fc="value"in ja?ja.value:ja.textContent,li=!0)),qe=Do(H,Oe),0<qe.length&&(Oe=new wm(Oe,e,null,r,Q),$.push({event:Oe,listeners:qe}),Ee?Oe.data=Ee:(Ee=Om(r),Ee!==null&&(Oe.data=Ee)))),(Ee=i_?s_(e,r):l_(e,r))&&(Oe=Do(H,"onBeforeInput"),0<Oe.length&&(qe=new wm("onBeforeInput","beforeinput",null,r,Q),$.push({event:qe,listeners:Oe}),qe.data=Ee)),$_($,e,H,r,Q)}fg($,t)})}function qs(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Do(e,t){for(var r=t+"Capture",l=[];e!==null;){var u=e,f=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||f===null||(u=is(e,r),u!=null&&l.unshift(qs(e,u,f)),u=is(e,t),u!=null&&l.push(qs(e,u,f))),e.tag===3)return l;e=e.return}return[]}function Di(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function hg(e,t,r,l,u){for(var f=t._reactName,v=[];r!==null&&r!==l;){var x=r,E=x.alternate,H=x.stateNode;if(x=x.tag,E!==null&&E===l)break;x!==5&&x!==26&&x!==27||H===null||(E=H,u?(H=is(r,f),H!=null&&v.unshift(qs(r,H,E))):u||(H=is(r,f),H!=null&&v.push(qs(r,H,E)))),r=r.return}v.length!==0&&e.push({event:t,listeners:v})}var tw=/\r\n?/g,nw=/\u0000|\uFFFD/g;function mg(e){return(typeof e=="string"?e:""+e).replace(tw,`
`).replace(nw,"")}function pg(e,t){return t=mg(t),mg(e)===t}function jo(){}function rt(e,t,r,l,u,f){switch(r){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||ri(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&ri(e,""+l);break;case"className":Ll(e,"class",l);break;case"tabIndex":Ll(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ll(e,r,l);break;case"style":gm(e,l,f);break;case"data":if(t!=="object"){Ll(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||r!=="href")){e.removeAttribute(r);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=Hl(""+l),e.setAttribute(r,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(r,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(r==="formAction"?(t!=="input"&&rt(e,t,"name",u.name,u,null),rt(e,t,"formEncType",u.formEncType,u,null),rt(e,t,"formMethod",u.formMethod,u,null),rt(e,t,"formTarget",u.formTarget,u,null)):(rt(e,t,"encType",u.encType,u,null),rt(e,t,"method",u.method,u,null),rt(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(r);break}l=Hl(""+l),e.setAttribute(r,l);break;case"onClick":l!=null&&(e.onclick=jo);break;case"onScroll":l!=null&&Ge("scroll",e);break;case"onScrollEnd":l!=null&&Ge("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}r=Hl(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""+l):e.removeAttribute(r);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,""):e.removeAttribute(r);break;case"capture":case"download":l===!0?e.setAttribute(r,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(r,l):e.removeAttribute(r);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(r,l):e.removeAttribute(r);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(r):e.setAttribute(r,l);break;case"popover":Ge("beforetoggle",e),Ge("toggle",e),Ul(e,"popover",l);break;case"xlinkActuate":ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ta(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ta(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ta(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ta(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ul(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<r.length)||r[0]!=="o"&&r[0]!=="O"||r[1]!=="n"&&r[1]!=="N")&&(r=DS.get(r)||r,Ul(e,r,l))}}function Zf(e,t,r,l,u,f){switch(r){case"style":gm(e,l,f);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(r=l.__html,r!=null){if(u.children!=null)throw Error(s(60));e.innerHTML=r}}break;case"children":typeof l=="string"?ri(e,l):(typeof l=="number"||typeof l=="bigint")&&ri(e,""+l);break;case"onScroll":l!=null&&Ge("scroll",e);break;case"onScrollEnd":l!=null&&Ge("scrollend",e);break;case"onClick":l!=null&&(e.onclick=jo);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sm.hasOwnProperty(r))e:{if(r[0]==="o"&&r[1]==="n"&&(u=r.endsWith("Capture"),t=r.slice(2,u?r.length-7:void 0),f=e[It]||null,f=f!=null?f[r]:null,typeof f=="function"&&e.removeEventListener(t,f,u),typeof l=="function")){typeof f!="function"&&f!==null&&(r in e?e[r]=null:e.hasAttribute(r)&&e.removeAttribute(r)),e.addEventListener(t,l,u);break e}r in e?e[r]=l:l===!0?e.setAttribute(r,""):Ul(e,r,l)}}}function jt(e,t,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",e),Ge("load",e);var l=!1,u=!1,f;for(f in r)if(r.hasOwnProperty(f)){var v=r[f];if(v!=null)switch(f){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:rt(e,t,f,v,r,null)}}u&&rt(e,t,"srcSet",r.srcSet,r,null),l&&rt(e,t,"src",r.src,r,null);return;case"input":Ge("invalid",e);var x=f=v=u=null,E=null,H=null;for(l in r)if(r.hasOwnProperty(l)){var Q=r[l];if(Q!=null)switch(l){case"name":u=Q;break;case"type":v=Q;break;case"checked":E=Q;break;case"defaultChecked":H=Q;break;case"value":f=Q;break;case"defaultValue":x=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(s(137,t));break;default:rt(e,t,l,Q,r,null)}}hm(e,f,x,E,H,v,u,!1),Vl(e);return;case"select":Ge("invalid",e),l=v=f=null;for(u in r)if(r.hasOwnProperty(u)&&(x=r[u],x!=null))switch(u){case"value":f=x;break;case"defaultValue":v=x;break;case"multiple":l=x;default:rt(e,t,u,x,r,null)}t=f,r=v,e.multiple=!!l,t!=null?ai(e,!!l,t,!1):r!=null&&ai(e,!!l,r,!0);return;case"textarea":Ge("invalid",e),f=u=l=null;for(v in r)if(r.hasOwnProperty(v)&&(x=r[v],x!=null))switch(v){case"value":l=x;break;case"defaultValue":u=x;break;case"children":f=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(s(91));break;default:rt(e,t,v,x,r,null)}pm(e,l,u,f),Vl(e);return;case"option":for(E in r)if(r.hasOwnProperty(E)&&(l=r[E],l!=null))switch(E){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:rt(e,t,E,l,r,null)}return;case"dialog":Ge("beforetoggle",e),Ge("toggle",e),Ge("cancel",e),Ge("close",e);break;case"iframe":case"object":Ge("load",e);break;case"video":case"audio":for(l=0;l<Hs.length;l++)Ge(Hs[l],e);break;case"image":Ge("error",e),Ge("load",e);break;case"details":Ge("toggle",e);break;case"embed":case"source":case"link":Ge("error",e),Ge("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(H in r)if(r.hasOwnProperty(H)&&(l=r[H],l!=null))switch(H){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:rt(e,t,H,l,r,null)}return;default:if(sc(t)){for(Q in r)r.hasOwnProperty(Q)&&(l=r[Q],l!==void 0&&Zf(e,t,Q,l,r,void 0));return}}for(x in r)r.hasOwnProperty(x)&&(l=r[x],l!=null&&rt(e,t,x,l,r,null))}function aw(e,t,r,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,f=null,v=null,x=null,E=null,H=null,Q=null;for(F in r){var $=r[F];if(r.hasOwnProperty(F)&&$!=null)switch(F){case"checked":break;case"value":break;case"defaultValue":E=$;default:l.hasOwnProperty(F)||rt(e,t,F,null,l,$)}}for(var G in l){var F=l[G];if($=r[G],l.hasOwnProperty(G)&&(F!=null||$!=null))switch(G){case"type":f=F;break;case"name":u=F;break;case"checked":H=F;break;case"defaultChecked":Q=F;break;case"value":v=F;break;case"defaultValue":x=F;break;case"children":case"dangerouslySetInnerHTML":if(F!=null)throw Error(s(137,t));break;default:F!==$&&rt(e,t,G,F,l,$)}}rc(e,v,x,E,H,Q,f,u);return;case"select":F=v=x=G=null;for(f in r)if(E=r[f],r.hasOwnProperty(f)&&E!=null)switch(f){case"value":break;case"multiple":F=E;default:l.hasOwnProperty(f)||rt(e,t,f,null,l,E)}for(u in l)if(f=l[u],E=r[u],l.hasOwnProperty(u)&&(f!=null||E!=null))switch(u){case"value":G=f;break;case"defaultValue":x=f;break;case"multiple":v=f;default:f!==E&&rt(e,t,u,f,l,E)}t=x,r=v,l=F,G!=null?ai(e,!!r,G,!1):!!l!=!!r&&(t!=null?ai(e,!!r,t,!0):ai(e,!!r,r?[]:"",!1));return;case"textarea":F=G=null;for(x in r)if(u=r[x],r.hasOwnProperty(x)&&u!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:rt(e,t,x,null,l,u)}for(v in l)if(u=l[v],f=r[v],l.hasOwnProperty(v)&&(u!=null||f!=null))switch(v){case"value":G=u;break;case"defaultValue":F=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==f&&rt(e,t,v,u,l,f)}mm(e,G,F);return;case"option":for(var De in r)if(G=r[De],r.hasOwnProperty(De)&&G!=null&&!l.hasOwnProperty(De))switch(De){case"selected":e.selected=!1;break;default:rt(e,t,De,null,l,G)}for(E in l)if(G=l[E],F=r[E],l.hasOwnProperty(E)&&G!==F&&(G!=null||F!=null))switch(E){case"selected":e.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:rt(e,t,E,G,l,F)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Ce in r)G=r[Ce],r.hasOwnProperty(Ce)&&G!=null&&!l.hasOwnProperty(Ce)&&rt(e,t,Ce,null,l,G);for(H in l)if(G=l[H],F=r[H],l.hasOwnProperty(H)&&G!==F&&(G!=null||F!=null))switch(H){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,t));break;default:rt(e,t,H,G,l,F)}return;default:if(sc(t)){for(var it in r)G=r[it],r.hasOwnProperty(it)&&G!==void 0&&!l.hasOwnProperty(it)&&Zf(e,t,it,void 0,l,G);for(Q in l)G=l[Q],F=r[Q],!l.hasOwnProperty(Q)||G===F||G===void 0&&F===void 0||Zf(e,t,Q,G,l,F);return}}for(var k in r)G=r[k],r.hasOwnProperty(k)&&G!=null&&!l.hasOwnProperty(k)&&rt(e,t,k,null,l,G);for($ in l)G=l[$],F=r[$],!l.hasOwnProperty($)||G===F||G==null&&F==null||rt(e,t,$,G,l,F)}var Yf=null,If=null;function ko(e){return e.nodeType===9?e:e.ownerDocument}function vg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Qf(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xf=null;function rw(){var e=window.event;return e&&e.type==="popstate"?e===Xf?!1:(Xf=e,!0):(Xf=null,!1)}var yg=typeof setTimeout=="function"?setTimeout:void 0,iw=typeof clearTimeout=="function"?clearTimeout:void 0,bg=typeof Promise=="function"?Promise:void 0,sw=typeof queueMicrotask=="function"?queueMicrotask:typeof bg<"u"?function(e){return bg.resolve(null).then(e).catch(lw)}:yg;function lw(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function xg(e,t){var r=t,l=0,u=0;do{var f=r.nextSibling;if(e.removeChild(r),f&&f.nodeType===8)if(r=f.data,r==="/$"){if(0<l&&8>l){r=l;var v=e.ownerDocument;if(r&1&&Ps(v.documentElement),r&2&&Ps(v.body),r&4)for(r=v.head,Ps(r),v=r.firstChild;v;){var x=v.nextSibling,E=v.nodeName;v[as]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&v.rel.toLowerCase()==="stylesheet"||r.removeChild(v),v=x}}if(u===0){e.removeChild(f),Ks(t);return}u--}else r==="$"||r==="$?"||r==="$!"?u++:l=r.charCodeAt(0)-48;else l=0;r=f}while(r);Ks(t)}function Kf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var r=t;switch(t=t.nextSibling,r.nodeName){case"HTML":case"HEAD":case"BODY":Kf(r),ec(r);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(r.rel.toLowerCase()==="stylesheet")continue}e.removeChild(r)}}function ow(e,t,r,l){for(;e.nodeType===1;){var u=r;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[as])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=Cn(e.nextSibling),e===null)break}return null}function uw(e,t,r){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!r||(e=Cn(e.nextSibling),e===null))return null;return e}function $f(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function cw(e,t){var r=e.ownerDocument;if(e.data!=="$?"||r.readyState==="complete")t();else{var l=function(){t(),r.removeEventListener("DOMContentLoaded",l)};r.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Cn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Jf=null;function Sg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}function _g(e,t,r){switch(t=ko(r),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function Ps(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ec(e)}var Sn=new Map,wg=new Set;function zo(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var pa=I.d;I.d={f:fw,r:dw,D:hw,C:mw,L:pw,m:vw,X:yw,S:gw,M:bw};function fw(){var e=pa.f(),t=Ao();return e||t}function dw(e){var t=Wr(e);t!==null&&t.tag===5&&t.type==="form"?Gp(t):pa.r(e)}var ji=typeof document>"u"?null:document;function Eg(e,t,r){var l=ji;if(l&&typeof t=="string"&&t){var u=mn(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof r=="string"&&(u+='[crossorigin="'+r+'"]'),wg.has(u)||(wg.add(u),e={rel:e,crossOrigin:r,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),jt(t,"link",e),Ct(t),l.head.appendChild(t)))}}function hw(e){pa.D(e),Eg("dns-prefetch",e,null)}function mw(e,t){pa.C(e,t),Eg("preconnect",e,t)}function pw(e,t,r){pa.L(e,t,r);var l=ji;if(l&&e&&t){var u='link[rel="preload"][as="'+mn(t)+'"]';t==="image"&&r&&r.imageSrcSet?(u+='[imagesrcset="'+mn(r.imageSrcSet)+'"]',typeof r.imageSizes=="string"&&(u+='[imagesizes="'+mn(r.imageSizes)+'"]')):u+='[href="'+mn(e)+'"]';var f=u;switch(t){case"style":f=ki(e);break;case"script":f=zi(e)}Sn.has(f)||(e=g({rel:"preload",href:t==="image"&&r&&r.imageSrcSet?void 0:e,as:t},r),Sn.set(f,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(Gs(f))||t==="script"&&l.querySelector(Fs(f))||(t=l.createElement("link"),jt(t,"link",e),Ct(t),l.head.appendChild(t)))}}function vw(e,t){pa.m(e,t);var r=ji;if(r&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+mn(l)+'"][href="'+mn(e)+'"]',f=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=zi(e)}if(!Sn.has(f)&&(e=g({rel:"modulepreload",href:e},t),Sn.set(f,e),r.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(r.querySelector(Fs(f)))return}l=r.createElement("link"),jt(l,"link",e),Ct(l),r.head.appendChild(l)}}}function gw(e,t,r){pa.S(e,t,r);var l=ji;if(l&&e){var u=ei(l).hoistableStyles,f=ki(e);t=t||"default";var v=u.get(f);if(!v){var x={loading:0,preload:null};if(v=l.querySelector(Gs(f)))x.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},r),(r=Sn.get(f))&&Wf(e,r);var E=v=l.createElement("link");Ct(E),jt(E,"link",e),E._p=new Promise(function(H,Q){E.onload=H,E.onerror=Q}),E.addEventListener("load",function(){x.loading|=1}),E.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Uo(v,t,l)}v={type:"stylesheet",instance:v,count:1,state:x},u.set(f,v)}}}function yw(e,t){pa.X(e,t);var r=ji;if(r&&e){var l=ei(r).hoistableScripts,u=zi(e),f=l.get(u);f||(f=r.querySelector(Fs(u)),f||(e=g({src:e,async:!0},t),(t=Sn.get(u))&&ed(e,t),f=r.createElement("script"),Ct(f),jt(f,"link",e),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(u,f))}}function bw(e,t){pa.M(e,t);var r=ji;if(r&&e){var l=ei(r).hoistableScripts,u=zi(e),f=l.get(u);f||(f=r.querySelector(Fs(u)),f||(e=g({src:e,async:!0,type:"module"},t),(t=Sn.get(u))&&ed(e,t),f=r.createElement("script"),Ct(f),jt(f,"link",e),r.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(u,f))}}function Tg(e,t,r,l){var u=(u=xe.current)?zo(u):null;if(!u)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof r.precedence=="string"&&typeof r.href=="string"?(t=ki(r.href),r=ei(u).hoistableStyles,l=r.get(t),l||(l={type:"style",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(r.rel==="stylesheet"&&typeof r.href=="string"&&typeof r.precedence=="string"){e=ki(r.href);var f=ei(u).hoistableStyles,v=f.get(e);if(v||(u=u.ownerDocument||u,v={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,v),(f=u.querySelector(Gs(e)))&&!f._p&&(v.instance=f,v.state.loading=5),Sn.has(e)||(r={rel:"preload",as:"style",href:r.href,crossOrigin:r.crossOrigin,integrity:r.integrity,media:r.media,hrefLang:r.hrefLang,referrerPolicy:r.referrerPolicy},Sn.set(e,r),f||xw(u,e,r,v.state))),t&&l===null)throw Error(s(528,""));return v}if(t&&l!==null)throw Error(s(529,""));return null;case"script":return t=r.async,r=r.src,typeof r=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=zi(r),r=ei(u).hoistableScripts,l=r.get(t),l||(l={type:"script",instance:null,count:0,state:null},r.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ki(e){return'href="'+mn(e)+'"'}function Gs(e){return'link[rel="stylesheet"]['+e+"]"}function Ag(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function xw(e,t,r,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),jt(t,"link",r),Ct(t),e.head.appendChild(t))}function zi(e){return'[src="'+mn(e)+'"]'}function Fs(e){return"script[async]"+e}function Cg(e,t,r){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+mn(r.href)+'"]');if(l)return t.instance=l,Ct(l),l;var u=g({},r,{"data-href":r.href,"data-precedence":r.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ct(l),jt(l,"style",u),Uo(l,r.precedence,e),t.instance=l;case"stylesheet":u=ki(r.href);var f=e.querySelector(Gs(u));if(f)return t.state.loading|=4,t.instance=f,Ct(f),f;l=Ag(r),(u=Sn.get(u))&&Wf(l,u),f=(e.ownerDocument||e).createElement("link"),Ct(f);var v=f;return v._p=new Promise(function(x,E){v.onload=x,v.onerror=E}),jt(f,"link",l),t.state.loading|=4,Uo(f,r.precedence,e),t.instance=f;case"script":return f=zi(r.src),(u=e.querySelector(Fs(f)))?(t.instance=u,Ct(u),u):(l=r,(u=Sn.get(f))&&(l=g({},r),ed(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ct(u),jt(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Uo(l,r.precedence,e));return t.instance}function Uo(e,t,r){for(var l=r.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,f=u,v=0;v<l.length;v++){var x=l[v];if(x.dataset.precedence===t)f=x;else if(f!==u)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=r.nodeType===9?r.head:r,t.insertBefore(e,t.firstChild))}function Wf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ed(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Lo=null;function Rg(e,t,r){if(Lo===null){var l=new Map,u=Lo=new Map;u.set(r,l)}else u=Lo,l=u.get(r),l||(l=new Map,u.set(r,l));if(l.has(e))return l;for(l.set(e,null),r=r.getElementsByTagName(e),u=0;u<r.length;u++){var f=r[u];if(!(f[as]||f[Ut]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var v=f.getAttribute(t)||"";v=e+v;var x=l.get(v);x?x.push(f):l.set(v,[f])}}return l}function Og(e,t,r){e=e.ownerDocument||e,e.head.insertBefore(r,t==="title"?e.querySelector("head > title"):null)}function Sw(e,t,r){if(r===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Mg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Zs=null;function _w(){}function ww(e,t,r){if(Zs===null)throw Error(s(475));var l=Zs;if(t.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var u=ki(r.href),f=e.querySelector(Gs(u));if(f){e=f._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Vo.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=f,Ct(f);return}f=e.ownerDocument||e,r=Ag(r),(u=Sn.get(u))&&Wf(r,u),f=f.createElement("link"),Ct(f);var v=f;v._p=new Promise(function(x,E){v.onload=x,v.onerror=E}),jt(f,"link",r),t.instance=f}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=Vo.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function Ew(){if(Zs===null)throw Error(s(475));var e=Zs;return e.stylesheets&&e.count===0&&td(e,e.stylesheets),0<e.count?function(t){var r=setTimeout(function(){if(e.stylesheets&&td(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(r)}}:null}function Vo(){if(this.count--,this.count===0){if(this.stylesheets)td(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Bo=null;function td(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Bo=new Map,t.forEach(Tw,e),Bo=null,Vo.call(e))}function Tw(e,t){if(!(t.state.loading&4)){var r=Bo.get(e);if(r)var l=r.get(null);else{r=new Map,Bo.set(e,r);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<u.length;f++){var v=u[f];(v.nodeName==="LINK"||v.getAttribute("media")!=="not all")&&(r.set(v.dataset.precedence,v),l=v)}l&&r.set(null,l)}u=t.instance,v=u.getAttribute("data-precedence"),f=r.get(v)||l,f===l&&r.set(null,u),r.set(v,u),this.count++,l=Vo.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),f?f.parentNode.insertBefore(u,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Ys={$$typeof:M,Provider:null,Consumer:null,_currentValue:P,_currentValue2:P,_threadCount:0};function Aw(e,t,r,l,u,f,v,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ku(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ku(0),this.hiddenUpdates=Ku(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=f,this.onRecoverableError=v,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Ng(e,t,r,l,u,f,v,x,E,H,Q,$){return e=new Aw(e,t,r,v,x,E,H,$),t=1,f===!0&&(t|=24),f=tn(3,null,null,t),e.current=f,f.stateNode=e,t=zc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:l,isDehydrated:r,cache:t},Bc(f),e}function Dg(e){return e?(e=di,e):di}function jg(e,t,r,l,u,f){u=Dg(u),l.context===null?l.context=u:l.pendingContext=u,l=Ua(t),l.payload={element:r},f=f===void 0?null:f,f!==null&&(l.callback=f),r=La(e,l,t),r!==null&&(ln(r,e,t),_s(r,e,t))}function kg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function nd(e,t){kg(e,t),(e=e.alternate)&&kg(e,t)}function zg(e){if(e.tag===13){var t=fi(e,67108864);t!==null&&ln(t,e,67108864),nd(e,67108864)}}var Ho=!0;function Cw(e,t,r,l){var u=j.T;j.T=null;var f=I.p;try{I.p=2,ad(e,t,r,l)}finally{I.p=f,j.T=u}}function Rw(e,t,r,l){var u=j.T;j.T=null;var f=I.p;try{I.p=8,ad(e,t,r,l)}finally{I.p=f,j.T=u}}function ad(e,t,r,l){if(Ho){var u=rd(l);if(u===null)Ff(e,t,l,qo,r),Lg(e,l);else if(Mw(u,e,t,r,l))l.stopPropagation();else if(Lg(e,l),t&4&&-1<Ow.indexOf(e)){for(;u!==null;){var f=Wr(u);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var v=ea(f.pendingLanes);if(v!==0){var x=f;for(x.pendingLanes|=2,x.entangledLanes|=2;v;){var E=1<<31-ot(v);x.entanglements[1]|=E,v&=~E}Pn(f),(et&6)===0&&(Eo=zt()+500,Bs(0))}}break;case 13:x=fi(f,2),x!==null&&ln(x,f,2),Ao(),nd(f,2)}if(f=rd(l),f===null&&Ff(e,t,l,qo,r),f===u)break;u=f}u!==null&&l.stopPropagation()}else Ff(e,t,l,null,r)}}function rd(e){return e=oc(e),id(e)}var qo=null;function id(e){if(qo=null,e=Jr(e),e!==null){var t=c(e);if(t===null)e=null;else{var r=t.tag;if(r===13){if(e=d(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return qo=e,null}function Ug(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Jh()){case ts:return 2;case R:return 8;case q:case X:return 32;case pe:return 268435456;default:return 32}default:return 32}}var sd=!1,Ka=null,$a=null,Ja=null,Is=new Map,Qs=new Map,Wa=[],Ow="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Lg(e,t){switch(e){case"focusin":case"focusout":Ka=null;break;case"dragenter":case"dragleave":$a=null;break;case"mouseover":case"mouseout":Ja=null;break;case"pointerover":case"pointerout":Is.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qs.delete(t.pointerId)}}function Xs(e,t,r,l,u,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:r,eventSystemFlags:l,nativeEvent:f,targetContainers:[u]},t!==null&&(t=Wr(t),t!==null&&zg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function Mw(e,t,r,l,u){switch(t){case"focusin":return Ka=Xs(Ka,e,t,r,l,u),!0;case"dragenter":return $a=Xs($a,e,t,r,l,u),!0;case"mouseover":return Ja=Xs(Ja,e,t,r,l,u),!0;case"pointerover":var f=u.pointerId;return Is.set(f,Xs(Is.get(f)||null,e,t,r,l,u)),!0;case"gotpointercapture":return f=u.pointerId,Qs.set(f,Xs(Qs.get(f)||null,e,t,r,l,u)),!0}return!1}function Vg(e){var t=Jr(e.target);if(t!==null){var r=c(t);if(r!==null){if(t=r.tag,t===13){if(t=d(r),t!==null){e.blockedOn=t,wS(e.priority,function(){if(r.tag===13){var l=sn();l=$u(l);var u=fi(r,l);u!==null&&ln(u,r,l),nd(r,l)}});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Po(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=rd(e.nativeEvent);if(r===null){r=e.nativeEvent;var l=new r.constructor(r.type,r);lc=l,r.target.dispatchEvent(l),lc=null}else return t=Wr(r),t!==null&&zg(t),e.blockedOn=r,!1;t.shift()}return!0}function Bg(e,t,r){Po(e)&&r.delete(t)}function Nw(){sd=!1,Ka!==null&&Po(Ka)&&(Ka=null),$a!==null&&Po($a)&&($a=null),Ja!==null&&Po(Ja)&&(Ja=null),Is.forEach(Bg),Qs.forEach(Bg)}function Go(e,t){e.blockedOn===t&&(e.blockedOn=null,sd||(sd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Nw)))}var Fo=null;function Hg(e){Fo!==e&&(Fo=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Fo===e&&(Fo=null);for(var t=0;t<e.length;t+=3){var r=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(id(l||r)===null)continue;break}var f=Wr(r);f!==null&&(e.splice(t,3),t-=3,rf(f,{pending:!0,data:u,method:r.method,action:l},l,u))}}))}function Ks(e){function t(E){return Go(E,e)}Ka!==null&&Go(Ka,e),$a!==null&&Go($a,e),Ja!==null&&Go(Ja,e),Is.forEach(t),Qs.forEach(t);for(var r=0;r<Wa.length;r++){var l=Wa[r];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Wa.length&&(r=Wa[0],r.blockedOn===null);)Vg(r),r.blockedOn===null&&Wa.shift();if(r=(e.ownerDocument||e).$$reactFormReplay,r!=null)for(l=0;l<r.length;l+=3){var u=r[l],f=r[l+1],v=u[It]||null;if(typeof f=="function")v||Hg(r);else if(v){var x=null;if(f&&f.hasAttribute("formAction")){if(u=f,v=f[It]||null)x=v.formAction;else if(id(u)!==null)continue}else x=v.action;typeof x=="function"?r[l+1]=x:(r.splice(l,3),l-=3),Hg(r)}}}function ld(e){this._internalRoot=e}Zo.prototype.render=ld.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var r=t.current,l=sn();jg(r,l,e,t,null,null)},Zo.prototype.unmount=ld.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jg(e.current,2,null,e,null,null),Ao(),t[$r]=null}};function Zo(e){this._internalRoot=e}Zo.prototype.unstable_scheduleHydration=function(e){if(e){var t=am();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Wa.length&&t!==0&&t<Wa[r].priority;r++);Wa.splice(r,0,e),r===0&&Vg(e)}};var qg=a.version;if(qg!=="19.1.1")throw Error(s(527,qg,"19.1.1"));I.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?m(e):null,e=e===null?null:e.stateNode,e};var Dw={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:j,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Yo=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yo.isDisabled&&Yo.supportsFiber)try{_e=Yo.inject(Dw),ke=Yo}catch{}}return Js.createRoot=function(e,t){if(!o(e))throw Error(s(299));var r=!1,l="",u=av,f=rv,v=iv,x=null;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(v=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(x=t.unstable_transitionCallbacks)),t=Ng(e,1,!1,null,null,r,l,u,f,v,x,null),e[$r]=t.current,Gf(e),new ld(t)},Js.hydrateRoot=function(e,t,r){if(!o(e))throw Error(s(299));var l=!1,u="",f=av,v=rv,x=iv,E=null,H=null;return r!=null&&(r.unstable_strictMode===!0&&(l=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(f=r.onUncaughtError),r.onCaughtError!==void 0&&(v=r.onCaughtError),r.onRecoverableError!==void 0&&(x=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(E=r.unstable_transitionCallbacks),r.formState!==void 0&&(H=r.formState)),t=Ng(e,1,!0,t,r??null,l,u,f,v,x,E,H),t.context=Dg(null),r=t.current,l=sn(),l=$u(l),u=Ua(l),u.callback=null,La(r,u,l),r=l,t.current.lanes=r,ns(t,r),Pn(t),e[$r]=t.current,Gf(e),new Zo(t)},Js.version="19.1.1",Js}var sy;function A1(){if(sy)return cd.exports;sy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(a){console.error(a)}}return n(),cd.exports=T1(),cd.exports}var C1=A1();const R1=ch(C1);function ly(n,a){if(typeof n=="function")return n(a);n!=null&&(n.current=a)}function Ou(...n){return a=>{let i=!1;const s=n.map(o=>{const c=ly(o,a);return!i&&typeof c=="function"&&(i=!0),c});if(i)return()=>{for(let o=0;o<s.length;o++){const c=s[o];typeof c=="function"?c():ly(n[o],null)}}}}function lt(...n){return b.useCallback(Ou(...n),n)}function Br(n){const a=O1(n),i=b.forwardRef((s,o)=>{const{children:c,...d}=s,h=b.Children.toArray(c),p=h.find(N1);if(p){const m=p.props.children,g=h.map(S=>S===p?b.Children.count(m)>1?b.Children.only(null):b.isValidElement(m)?m.props.children:null:S);return y.jsx(a,{...d,ref:o,children:b.isValidElement(m)?b.cloneElement(m,void 0,g):null})}return y.jsx(a,{...d,ref:o,children:c})});return i.displayName=`${n}.Slot`,i}var vh=Br("Slot");function O1(n){const a=b.forwardRef((i,s)=>{const{children:o,...c}=i;if(b.isValidElement(o)){const d=j1(o),h=D1(c,o.props);return o.type!==b.Fragment&&(h.ref=s?Ou(s,d):d),b.cloneElement(o,h)}return b.Children.count(o)>1?b.Children.only(null):null});return a.displayName=`${n}.SlotClone`,a}var M1=Symbol("radix.slottable");function N1(n){return b.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===M1}function D1(n,a){const i={...a};for(const s in a){const o=n[s],c=a[s];/^on[A-Z]/.test(s)?o&&c?i[s]=(...h)=>{const p=c(...h);return o(...h),p}:o&&(i[s]=o):s==="style"?i[s]={...o,...c}:s==="className"&&(i[s]=[o,c].filter(Boolean).join(" "))}return{...n,...i}}function j1(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}function vb(n){var a,i,s="";if(typeof n=="string"||typeof n=="number")s+=n;else if(typeof n=="object")if(Array.isArray(n)){var o=n.length;for(a=0;a<o;a++)n[a]&&(i=vb(n[a]))&&(s&&(s+=" "),s+=i)}else for(i in n)n[i]&&(s&&(s+=" "),s+=i);return s}function gb(){for(var n,a,i=0,s="",o=arguments.length;i<o;i++)(n=arguments[i])&&(a=vb(n))&&(s&&(s+=" "),s+=a);return s}const oy=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,uy=gb,yb=(n,a)=>i=>{var s;if(a?.variants==null)return uy(n,i?.class,i?.className);const{variants:o,defaultVariants:c}=a,d=Object.keys(o).map(m=>{const g=i?.[m],S=c?.[m];if(g===null)return null;const w=oy(g)||oy(S);return o[m][w]}),h=i&&Object.entries(i).reduce((m,g)=>{let[S,w]=g;return w===void 0||(m[S]=w),m},{}),p=a==null||(s=a.compoundVariants)===null||s===void 0?void 0:s.reduce((m,g)=>{let{class:S,className:w,...A}=g;return Object.entries(A).every(O=>{let[_,C]=O;return Array.isArray(C)?C.includes({...c,...h}[_]):{...c,...h}[_]===C})?[...m,S,w]:m},[]);return uy(n,d,p,i?.class,i?.className)},gh="-",k1=n=>{const a=U1(n),{conflictingClassGroups:i,conflictingClassGroupModifiers:s}=n;return{getClassGroupId:d=>{const h=d.split(gh);return h[0]===""&&h.length!==1&&h.shift(),bb(h,a)||z1(d)},getConflictingClassGroupIds:(d,h)=>{const p=i[d]||[];return h&&s[d]?[...p,...s[d]]:p}}},bb=(n,a)=>{if(n.length===0)return a.classGroupId;const i=n[0],s=a.nextPart.get(i),o=s?bb(n.slice(1),s):void 0;if(o)return o;if(a.validators.length===0)return;const c=n.join(gh);return a.validators.find(({validator:d})=>d(c))?.classGroupId},cy=/^\[(.+)\]$/,z1=n=>{if(cy.test(n)){const a=cy.exec(n)[1],i=a?.substring(0,a.indexOf(":"));if(i)return"arbitrary.."+i}},U1=n=>{const{theme:a,classGroups:i}=n,s={nextPart:new Map,validators:[]};for(const o in i)Vd(i[o],s,o,a);return s},Vd=(n,a,i,s)=>{n.forEach(o=>{if(typeof o=="string"){const c=o===""?a:fy(a,o);c.classGroupId=i;return}if(typeof o=="function"){if(L1(o)){Vd(o(s),a,i,s);return}a.validators.push({validator:o,classGroupId:i});return}Object.entries(o).forEach(([c,d])=>{Vd(d,fy(a,c),i,s)})})},fy=(n,a)=>{let i=n;return a.split(gh).forEach(s=>{i.nextPart.has(s)||i.nextPart.set(s,{nextPart:new Map,validators:[]}),i=i.nextPart.get(s)}),i},L1=n=>n.isThemeGetter,V1=n=>{if(n<1)return{get:()=>{},set:()=>{}};let a=0,i=new Map,s=new Map;const o=(c,d)=>{i.set(c,d),a++,a>n&&(a=0,s=i,i=new Map)};return{get(c){let d=i.get(c);if(d!==void 0)return d;if((d=s.get(c))!==void 0)return o(c,d),d},set(c,d){i.has(c)?i.set(c,d):o(c,d)}}},Bd="!",Hd=":",B1=Hd.length,H1=n=>{const{prefix:a,experimentalParseClassName:i}=n;let s=o=>{const c=[];let d=0,h=0,p=0,m;for(let O=0;O<o.length;O++){let _=o[O];if(d===0&&h===0){if(_===Hd){c.push(o.slice(p,O)),p=O+B1;continue}if(_==="/"){m=O;continue}}_==="["?d++:_==="]"?d--:_==="("?h++:_===")"&&h--}const g=c.length===0?o:o.substring(p),S=q1(g),w=S!==g,A=m&&m>p?m-p:void 0;return{modifiers:c,hasImportantModifier:w,baseClassName:S,maybePostfixModifierPosition:A}};if(a){const o=a+Hd,c=s;s=d=>d.startsWith(o)?c(d.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:d,maybePostfixModifierPosition:void 0}}if(i){const o=s;s=c=>i({className:c,parseClassName:o})}return s},q1=n=>n.endsWith(Bd)?n.substring(0,n.length-1):n.startsWith(Bd)?n.substring(1):n,P1=n=>{const a=Object.fromEntries(n.orderSensitiveModifiers.map(s=>[s,!0]));return s=>{if(s.length<=1)return s;const o=[];let c=[];return s.forEach(d=>{d[0]==="["||a[d]?(o.push(...c.sort(),d),c=[]):c.push(d)}),o.push(...c.sort()),o}},G1=n=>({cache:V1(n.cacheSize),parseClassName:H1(n),sortModifiers:P1(n),...k1(n)}),F1=/\s+/,Z1=(n,a)=>{const{parseClassName:i,getClassGroupId:s,getConflictingClassGroupIds:o,sortModifiers:c}=a,d=[],h=n.trim().split(F1);let p="";for(let m=h.length-1;m>=0;m-=1){const g=h[m],{isExternal:S,modifiers:w,hasImportantModifier:A,baseClassName:O,maybePostfixModifierPosition:_}=i(g);if(S){p=g+(p.length>0?" "+p:p);continue}let C=!!_,U=s(C?O.substring(0,_):O);if(!U){if(!C){p=g+(p.length>0?" "+p:p);continue}if(U=s(O),!U){p=g+(p.length>0?" "+p:p);continue}C=!1}const N=c(w).join(":"),M=A?N+Bd:N,L=M+U;if(d.includes(L))continue;d.push(L);const B=o(U,C);for(let ne=0;ne<B.length;++ne){const Z=B[ne];d.push(M+Z)}p=g+(p.length>0?" "+p:p)}return p};function Y1(){let n=0,a,i,s="";for(;n<arguments.length;)(a=arguments[n++])&&(i=xb(a))&&(s&&(s+=" "),s+=i);return s}const xb=n=>{if(typeof n=="string")return n;let a,i="";for(let s=0;s<n.length;s++)n[s]&&(a=xb(n[s]))&&(i&&(i+=" "),i+=a);return i};function I1(n,...a){let i,s,o,c=d;function d(p){const m=a.reduce((g,S)=>S(g),n());return i=G1(m),s=i.cache.get,o=i.cache.set,c=h,h(p)}function h(p){const m=s(p);if(m)return m;const g=Z1(p,i);return o(p,g),g}return function(){return c(Y1.apply(null,arguments))}}const Et=n=>{const a=i=>i[n]||[];return a.isThemeGetter=!0,a},Sb=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_b=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Q1=/^\d+\/\d+$/,X1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,K1=/\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$/,$1=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,J1=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,W1=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ui=n=>Q1.test(n),Be=n=>!!n&&!Number.isNaN(Number(n)),tr=n=>!!n&&Number.isInteger(Number(n)),md=n=>n.endsWith("%")&&Be(n.slice(0,-1)),va=n=>X1.test(n),eE=()=>!0,tE=n=>K1.test(n)&&!$1.test(n),wb=()=>!1,nE=n=>J1.test(n),aE=n=>W1.test(n),rE=n=>!ye(n)&&!be(n),iE=n=>Ki(n,Ab,wb),ye=n=>Sb.test(n),kr=n=>Ki(n,Cb,tE),pd=n=>Ki(n,cE,Be),dy=n=>Ki(n,Eb,wb),sE=n=>Ki(n,Tb,aE),Qo=n=>Ki(n,Rb,nE),be=n=>_b.test(n),Ws=n=>$i(n,Cb),lE=n=>$i(n,fE),hy=n=>$i(n,Eb),oE=n=>$i(n,Ab),uE=n=>$i(n,Tb),Xo=n=>$i(n,Rb,!0),Ki=(n,a,i)=>{const s=Sb.exec(n);return s?s[1]?a(s[1]):i(s[2]):!1},$i=(n,a,i=!1)=>{const s=_b.exec(n);return s?s[1]?a(s[1]):i:!1},Eb=n=>n==="position"||n==="percentage",Tb=n=>n==="image"||n==="url",Ab=n=>n==="length"||n==="size"||n==="bg-size",Cb=n=>n==="length",cE=n=>n==="number",fE=n=>n==="family-name",Rb=n=>n==="shadow",dE=()=>{const n=Et("color"),a=Et("font"),i=Et("text"),s=Et("font-weight"),o=Et("tracking"),c=Et("leading"),d=Et("breakpoint"),h=Et("container"),p=Et("spacing"),m=Et("radius"),g=Et("shadow"),S=Et("inset-shadow"),w=Et("text-shadow"),A=Et("drop-shadow"),O=Et("blur"),_=Et("perspective"),C=Et("aspect"),U=Et("ease"),N=Et("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...L(),be,ye],ne=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],z=()=>[be,ye,p],ae=()=>[Ui,"full","auto",...z()],oe=()=>[tr,"none","subgrid",be,ye],Se=()=>["auto",{span:["full",tr,be,ye]},tr,be,ye],re=()=>[tr,"auto",be,ye],ie=()=>["auto","min","max","fr",be,ye],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],me=()=>["start","end","center","stretch","center-safe","end-safe"],j=()=>["auto",...z()],I=()=>[Ui,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],P=()=>[n,be,ye],J=()=>[...L(),hy,dy,{position:[be,ye]}],T=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y=()=>["auto","cover","contain",oE,iE,{size:[be,ye]}],se=()=>[md,Ws,kr],W=()=>["","none","full",m,be,ye],ce=()=>["",Be,Ws,kr],Re=()=>["solid","dashed","dotted","double"],xe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ee=()=>[Be,md,hy,dy],Te=()=>["","none",O,be,ye],Xe=()=>["none",Be,be,ye],He=()=>["none",Be,be,ye],Fe=()=>[Be,be,ye],Ke=()=>[Ui,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[va],breakpoint:[va],color:[eE],container:[va],"drop-shadow":[va],ease:["in","out","in-out"],font:[rE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[va],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[va],shadow:[va],spacing:["px",Be],text:[va],"text-shadow":[va],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ui,ye,be,C]}],container:["container"],columns:[{columns:[Be,ye,be,h]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"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:B()}],overflow:[{overflow:ne()}],"overflow-x":[{"overflow-x":ne()}],"overflow-y":[{"overflow-y":ne()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{start:ae()}],end:[{end:ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[tr,"auto",be,ye]}],basis:[{basis:[Ui,"full","auto",h,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Be,Ui,"auto","initial","none",ye]}],grow:[{grow:["",Be,be,ye]}],shrink:[{shrink:["",Be,be,ye]}],order:[{order:[tr,"first","last","none",be,ye]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:Se()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:Se()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...me(),"normal"]}],"justify-self":[{"justify-self":["auto",...me()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...me(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...me(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...me(),"baseline"]}],"place-self":[{"place-self":["auto",...me()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:j()}],mx:[{mx:j()}],my:[{my:j()}],ms:[{ms:j()}],me:[{me:j()}],mt:[{mt:j()}],mr:[{mr:j()}],mb:[{mb:j()}],ml:[{ml:j()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[h,"screen",...I()]}],"min-w":[{"min-w":[h,"screen","none",...I()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",i,Ws,kr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,be,pd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",md,ye]}],"font-family":[{font:[lE,ye,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,be,ye]}],"line-clamp":[{"line-clamp":[Be,"none",be,pd]}],leading:[{leading:[c,...z()]}],"list-image":[{"list-image":["none",be,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",be,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:P()}],"text-color":[{text:P()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Re(),"wavy"]}],"text-decoration-thickness":[{decoration:[Be,"from-font","auto",be,kr]}],"text-decoration-color":[{decoration:P()}],"underline-offset":[{"underline-offset":[Be,"auto",be,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",be,ye]}],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",be,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:J()}],"bg-repeat":[{bg:T()}],"bg-size":[{bg:Y()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tr,be,ye],radial:["",be,ye],conic:[tr,be,ye]},uE,sE]}],"bg-color":[{bg:P()}],"gradient-from-pos":[{from:se()}],"gradient-via-pos":[{via:se()}],"gradient-to-pos":[{to:se()}],"gradient-from":[{from:P()}],"gradient-via":[{via:P()}],"gradient-to":[{to:P()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ce()}],"border-w-x":[{"border-x":ce()}],"border-w-y":[{"border-y":ce()}],"border-w-s":[{"border-s":ce()}],"border-w-e":[{"border-e":ce()}],"border-w-t":[{"border-t":ce()}],"border-w-r":[{"border-r":ce()}],"border-w-b":[{"border-b":ce()}],"border-w-l":[{"border-l":ce()}],"divide-x":[{"divide-x":ce()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ce()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Re(),"hidden","none"]}],"divide-style":[{divide:[...Re(),"hidden","none"]}],"border-color":[{border:P()}],"border-color-x":[{"border-x":P()}],"border-color-y":[{"border-y":P()}],"border-color-s":[{"border-s":P()}],"border-color-e":[{"border-e":P()}],"border-color-t":[{"border-t":P()}],"border-color-r":[{"border-r":P()}],"border-color-b":[{"border-b":P()}],"border-color-l":[{"border-l":P()}],"divide-color":[{divide:P()}],"outline-style":[{outline:[...Re(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Be,be,ye]}],"outline-w":[{outline:["",Be,Ws,kr]}],"outline-color":[{outline:P()}],shadow:[{shadow:["","none",g,Xo,Qo]}],"shadow-color":[{shadow:P()}],"inset-shadow":[{"inset-shadow":["none",S,Xo,Qo]}],"inset-shadow-color":[{"inset-shadow":P()}],"ring-w":[{ring:ce()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:P()}],"ring-offset-w":[{"ring-offset":[Be,kr]}],"ring-offset-color":[{"ring-offset":P()}],"inset-ring-w":[{"inset-ring":ce()}],"inset-ring-color":[{"inset-ring":P()}],"text-shadow":[{"text-shadow":["none",w,Xo,Qo]}],"text-shadow-color":[{"text-shadow":P()}],opacity:[{opacity:[Be,be,ye]}],"mix-blend":[{"mix-blend":[...xe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xe()}],"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":[Be]}],"mask-image-linear-from-pos":[{"mask-linear-from":ee()}],"mask-image-linear-to-pos":[{"mask-linear-to":ee()}],"mask-image-linear-from-color":[{"mask-linear-from":P()}],"mask-image-linear-to-color":[{"mask-linear-to":P()}],"mask-image-t-from-pos":[{"mask-t-from":ee()}],"mask-image-t-to-pos":[{"mask-t-to":ee()}],"mask-image-t-from-color":[{"mask-t-from":P()}],"mask-image-t-to-color":[{"mask-t-to":P()}],"mask-image-r-from-pos":[{"mask-r-from":ee()}],"mask-image-r-to-pos":[{"mask-r-to":ee()}],"mask-image-r-from-color":[{"mask-r-from":P()}],"mask-image-r-to-color":[{"mask-r-to":P()}],"mask-image-b-from-pos":[{"mask-b-from":ee()}],"mask-image-b-to-pos":[{"mask-b-to":ee()}],"mask-image-b-from-color":[{"mask-b-from":P()}],"mask-image-b-to-color":[{"mask-b-to":P()}],"mask-image-l-from-pos":[{"mask-l-from":ee()}],"mask-image-l-to-pos":[{"mask-l-to":ee()}],"mask-image-l-from-color":[{"mask-l-from":P()}],"mask-image-l-to-color":[{"mask-l-to":P()}],"mask-image-x-from-pos":[{"mask-x-from":ee()}],"mask-image-x-to-pos":[{"mask-x-to":ee()}],"mask-image-x-from-color":[{"mask-x-from":P()}],"mask-image-x-to-color":[{"mask-x-to":P()}],"mask-image-y-from-pos":[{"mask-y-from":ee()}],"mask-image-y-to-pos":[{"mask-y-to":ee()}],"mask-image-y-from-color":[{"mask-y-from":P()}],"mask-image-y-to-color":[{"mask-y-to":P()}],"mask-image-radial":[{"mask-radial":[be,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ee()}],"mask-image-radial-to-pos":[{"mask-radial-to":ee()}],"mask-image-radial-from-color":[{"mask-radial-from":P()}],"mask-image-radial-to-color":[{"mask-radial-to":P()}],"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":L()}],"mask-image-conic-pos":[{"mask-conic":[Be]}],"mask-image-conic-from-pos":[{"mask-conic-from":ee()}],"mask-image-conic-to-pos":[{"mask-conic-to":ee()}],"mask-image-conic-from-color":[{"mask-conic-from":P()}],"mask-image-conic-to-color":[{"mask-conic-to":P()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:J()}],"mask-repeat":[{mask:T()}],"mask-size":[{mask:Y()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",be,ye]}],filter:[{filter:["","none",be,ye]}],blur:[{blur:Te()}],brightness:[{brightness:[Be,be,ye]}],contrast:[{contrast:[Be,be,ye]}],"drop-shadow":[{"drop-shadow":["","none",A,Xo,Qo]}],"drop-shadow-color":[{"drop-shadow":P()}],grayscale:[{grayscale:["",Be,be,ye]}],"hue-rotate":[{"hue-rotate":[Be,be,ye]}],invert:[{invert:["",Be,be,ye]}],saturate:[{saturate:[Be,be,ye]}],sepia:[{sepia:["",Be,be,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",be,ye]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[Be,be,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Be,be,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Be,be,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Be,be,ye]}],"backdrop-invert":[{"backdrop-invert":["",Be,be,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Be,be,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Be,be,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Be,be,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",be,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Be,"initial",be,ye]}],ease:[{ease:["linear","initial",U,be,ye]}],delay:[{delay:[Be,be,ye]}],animate:[{animate:["none",N,be,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,be,ye]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:Xe()}],"rotate-x":[{"rotate-x":Xe()}],"rotate-y":[{"rotate-y":Xe()}],"rotate-z":[{"rotate-z":Xe()}],scale:[{scale:He()}],"scale-x":[{"scale-x":He()}],"scale-y":[{"scale-y":He()}],"scale-z":[{"scale-z":He()}],"scale-3d":["scale-3d"],skew:[{skew:Fe()}],"skew-x":[{"skew-x":Fe()}],"skew-y":[{"skew-y":Fe()}],transform:[{transform:[be,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ke()}],"translate-x":[{"translate-x":Ke()}],"translate-y":[{"translate-y":Ke()}],"translate-z":[{"translate-z":Ke()}],"translate-none":["translate-none"],accent:[{accent:P()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:P()}],"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",be,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"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",be,ye]}],fill:[{fill:["none",...P()]}],"stroke-w":[{stroke:[Be,Ws,kr,pd]}],stroke:[{stroke:["none",...P()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},hE=I1(dE);function We(...n){return hE(gb(n))}function ru(n){let a=[];Array.isArray(n?.listImages)&&(a=n.listImages.map(o=>typeof o=="string"?o:`https://int.ipsupply.com.au${o.url}`).slice(0,10));let i="";Array.isArray(n?.package_contain)?i=n.package_contain.map(o=>`- ${o}`).join(`
`):typeof n?.package_contain=="string"&&(i=n.package_contain);const s=[n.description||"",n.code||"",n.name||"",(typeof n?.category=="string"?n.category:n?.category?.name)||"",i].filter(Boolean).join(`
`);return{images:a,title:`${n.name} - ${n.code}`,price:n.price,category:"electronics & computers",condition:"new",brand:typeof n.manufactor=="string"?n.manufactor:n?.name,description:s,tags:n.tags||[],sku:n.code,location:n.location||"Sydney, Australia",status:!1,id:n.id,publist_id:n.listingId}}const mE=yb("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function qd({className:n,variant:a,asChild:i=!1,...s}){const o=i?vh:"span";return y.jsx(o,{"data-slot":"badge",className:We(mE({variant:a}),n),...s})}const pE=yb("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function _n({className:n,variant:a,size:i,asChild:s=!1,...o}){const c=s?vh:"button";return y.jsx(c,{"data-slot":"button",className:We(pE({variant:a,size:i,className:n})),...o})}function Ae(n,a,{checkForDefaultPrevented:i=!0}={}){return function(o){if(n?.(o),i===!1||!o.defaultPrevented)return a?.(o)}}function vE(n,a){const i=b.createContext(a),s=c=>{const{children:d,...h}=c,p=b.useMemo(()=>h,Object.values(h));return y.jsx(i.Provider,{value:p,children:d})};s.displayName=n+"Provider";function o(c){const d=b.useContext(i);if(d)return d;if(a!==void 0)return a;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[s,o]}function Ir(n,a=[]){let i=[];function s(c,d){const h=b.createContext(d),p=i.length;i=[...i,d];const m=S=>{const{scope:w,children:A,...O}=S,_=w?.[n]?.[p]||h,C=b.useMemo(()=>O,Object.values(O));return y.jsx(_.Provider,{value:C,children:A})};m.displayName=c+"Provider";function g(S,w){const A=w?.[n]?.[p]||h,O=b.useContext(A);if(O)return O;if(d!==void 0)return d;throw new Error(`\`${S}\` must be used within \`${c}\``)}return[m,g]}const o=()=>{const c=i.map(d=>b.createContext(d));return function(h){const p=h?.[n]||c;return b.useMemo(()=>({[`__scope${n}`]:{...h,[n]:p}}),[h,p])}};return o.scopeName=n,[s,gE(o,...a)]}function gE(...n){const a=n[0];if(n.length===1)return a;const i=()=>{const s=n.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(c){const d=s.reduce((h,{useScope:p,scopeName:m})=>{const S=p(c)[`__scope${m}`];return{...h,...S}},{});return b.useMemo(()=>({[`__scope${a.scopeName}`]:d}),[d])}};return i.scopeName=a.scopeName,i}var Bt=globalThis?.document?b.useLayoutEffect:()=>{},yE=db[" useId ".trim().toString()]||(()=>{}),bE=0;function Ta(n){const[a,i]=b.useState(yE());return Bt(()=>{i(s=>s??String(bE++))},[n]),n||(a?`radix-${a}`:"")}var xE=db[" useInsertionEffect ".trim().toString()]||Bt;function ul({prop:n,defaultProp:a,onChange:i=()=>{},caller:s}){const[o,c,d]=SE({defaultProp:a,onChange:i}),h=n!==void 0,p=h?n:o;{const g=b.useRef(n!==void 0);b.useEffect(()=>{const S=g.current;S!==h&&console.warn(`${s} is changing from ${S?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=h},[h,s])}const m=b.useCallback(g=>{if(h){const S=_E(g)?g(n):g;S!==n&&d.current?.(S)}else c(g)},[h,n,c,d]);return[p,m]}function SE({defaultProp:n,onChange:a}){const[i,s]=b.useState(n),o=b.useRef(i),c=b.useRef(a);return xE(()=>{c.current=a},[a]),b.useEffect(()=>{o.current!==i&&(c.current?.(i),o.current=i)},[i,o]),[i,s,c]}function _E(n){return typeof n=="function"}var Rl=pb();const wE=ch(Rl);var EE=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ye=EE.reduce((n,a)=>{const i=Br(`Primitive.${a}`),s=b.forwardRef((o,c)=>{const{asChild:d,...h}=o,p=d?i:a;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(p,{...h,ref:c})});return s.displayName=`Primitive.${a}`,{...n,[a]:s}},{});function Ob(n,a){n&&Rl.flushSync(()=>n.dispatchEvent(a))}function Xn(n){const a=b.useRef(n);return b.useEffect(()=>{a.current=n}),b.useMemo(()=>(...i)=>a.current?.(...i),[])}function TE(n,a=globalThis?.document){const i=Xn(n);b.useEffect(()=>{const s=o=>{o.key==="Escape"&&i(o)};return a.addEventListener("keydown",s,{capture:!0}),()=>a.removeEventListener("keydown",s,{capture:!0})},[i,a])}var AE="DismissableLayer",Pd="dismissableLayer.update",CE="dismissableLayer.pointerDownOutside",RE="dismissableLayer.focusOutside",my,Mb=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mu=b.forwardRef((n,a)=>{const{disableOutsidePointerEvents:i=!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:c,onInteractOutside:d,onDismiss:h,...p}=n,m=b.useContext(Mb),[g,S]=b.useState(null),w=g?.ownerDocument??globalThis?.document,[,A]=b.useState({}),O=lt(a,Z=>S(Z)),_=Array.from(m.layers),[C]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),U=_.indexOf(C),N=g?_.indexOf(g):-1,M=m.layersWithOutsidePointerEventsDisabled.size>0,L=N>=U,B=NE(Z=>{const z=Z.target,ae=[...m.branches].some(oe=>oe.contains(z));!L||ae||(o?.(Z),d?.(Z),Z.defaultPrevented||h?.())},w),ne=DE(Z=>{const z=Z.target;[...m.branches].some(oe=>oe.contains(z))||(c?.(Z),d?.(Z),Z.defaultPrevented||h?.())},w);return TE(Z=>{N===m.layers.size-1&&(s?.(Z),!Z.defaultPrevented&&h&&(Z.preventDefault(),h()))},w),b.useEffect(()=>{if(g)return i&&(m.layersWithOutsidePointerEventsDisabled.size===0&&(my=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),m.layersWithOutsidePointerEventsDisabled.add(g)),m.layers.add(g),py(),()=>{i&&m.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=my)}},[g,w,i,m]),b.useEffect(()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),py())},[g,m]),b.useEffect(()=>{const Z=()=>A({});return document.addEventListener(Pd,Z),()=>document.removeEventListener(Pd,Z)},[]),y.jsx(Ye.div,{...p,ref:O,style:{pointerEvents:M?L?"auto":"none":void 0,...n.style},onFocusCapture:Ae(n.onFocusCapture,ne.onFocusCapture),onBlurCapture:Ae(n.onBlurCapture,ne.onBlurCapture),onPointerDownCapture:Ae(n.onPointerDownCapture,B.onPointerDownCapture)})});Mu.displayName=AE;var OE="DismissableLayerBranch",ME=b.forwardRef((n,a)=>{const i=b.useContext(Mb),s=b.useRef(null),o=lt(a,s);return b.useEffect(()=>{const c=s.current;if(c)return i.branches.add(c),()=>{i.branches.delete(c)}},[i.branches]),y.jsx(Ye.div,{...n,ref:o})});ME.displayName=OE;function NE(n,a=globalThis?.document){const i=Xn(n),s=b.useRef(!1),o=b.useRef(()=>{});return b.useEffect(()=>{const c=h=>{if(h.target&&!s.current){let p=function(){Nb(CE,i,m,{discrete:!0})};const m={originalEvent:h};h.pointerType==="touch"?(a.removeEventListener("click",o.current),o.current=p,a.addEventListener("click",o.current,{once:!0})):p()}else a.removeEventListener("click",o.current);s.current=!1},d=window.setTimeout(()=>{a.addEventListener("pointerdown",c)},0);return()=>{window.clearTimeout(d),a.removeEventListener("pointerdown",c),a.removeEventListener("click",o.current)}},[a,i]),{onPointerDownCapture:()=>s.current=!0}}function DE(n,a=globalThis?.document){const i=Xn(n),s=b.useRef(!1);return b.useEffect(()=>{const o=c=>{c.target&&!s.current&&Nb(RE,i,{originalEvent:c},{discrete:!1})};return a.addEventListener("focusin",o),()=>a.removeEventListener("focusin",o)},[a,i]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function py(){const n=new CustomEvent(Pd);document.dispatchEvent(n)}function Nb(n,a,i,{discrete:s}){const o=i.originalEvent.target,c=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:i});a&&o.addEventListener(n,a,{once:!0}),s?Ob(o,c):o.dispatchEvent(c)}var vd="focusScope.autoFocusOnMount",gd="focusScope.autoFocusOnUnmount",vy={bubbles:!1,cancelable:!0},jE="FocusScope",Nu=b.forwardRef((n,a)=>{const{loop:i=!1,trapped:s=!1,onMountAutoFocus:o,onUnmountAutoFocus:c,...d}=n,[h,p]=b.useState(null),m=Xn(o),g=Xn(c),S=b.useRef(null),w=lt(a,_=>p(_)),A=b.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;b.useEffect(()=>{if(s){let _=function(M){if(A.paused||!h)return;const L=M.target;h.contains(L)?S.current=L:ar(S.current,{select:!0})},C=function(M){if(A.paused||!h)return;const L=M.relatedTarget;L!==null&&(h.contains(L)||ar(S.current,{select:!0}))},U=function(M){if(document.activeElement===document.body)for(const B of M)B.removedNodes.length>0&&ar(h)};document.addEventListener("focusin",_),document.addEventListener("focusout",C);const N=new MutationObserver(U);return h&&N.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",C),N.disconnect()}}},[s,h,A.paused]),b.useEffect(()=>{if(h){yy.add(A);const _=document.activeElement;if(!h.contains(_)){const U=new CustomEvent(vd,vy);h.addEventListener(vd,m),h.dispatchEvent(U),U.defaultPrevented||(kE(BE(Db(h)),{select:!0}),document.activeElement===_&&ar(h))}return()=>{h.removeEventListener(vd,m),setTimeout(()=>{const U=new CustomEvent(gd,vy);h.addEventListener(gd,g),h.dispatchEvent(U),U.defaultPrevented||ar(_??document.body,{select:!0}),h.removeEventListener(gd,g),yy.remove(A)},0)}}},[h,m,g,A]);const O=b.useCallback(_=>{if(!i&&!s||A.paused)return;const C=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,U=document.activeElement;if(C&&U){const N=_.currentTarget,[M,L]=zE(N);M&&L?!_.shiftKey&&U===L?(_.preventDefault(),i&&ar(M,{select:!0})):_.shiftKey&&U===M&&(_.preventDefault(),i&&ar(L,{select:!0})):U===N&&_.preventDefault()}},[i,s,A.paused]);return y.jsx(Ye.div,{tabIndex:-1,...d,ref:w,onKeyDown:O})});Nu.displayName=jE;function kE(n,{select:a=!1}={}){const i=document.activeElement;for(const s of n)if(ar(s,{select:a}),document.activeElement!==i)return}function zE(n){const a=Db(n),i=gy(a,n),s=gy(a.reverse(),n);return[i,s]}function Db(n){const a=[],i=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const o=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||o?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;i.nextNode();)a.push(i.currentNode);return a}function gy(n,a){for(const i of n)if(!UE(i,{upTo:a}))return i}function UE(n,{upTo:a}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(a!==void 0&&n===a)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function LE(n){return n instanceof HTMLInputElement&&"select"in n}function ar(n,{select:a=!1}={}){if(n&&n.focus){const i=document.activeElement;n.focus({preventScroll:!0}),n!==i&&LE(n)&&a&&n.select()}}var yy=VE();function VE(){let n=[];return{add(a){const i=n[0];a!==i&&i?.pause(),n=by(n,a),n.unshift(a)},remove(a){n=by(n,a),n[0]?.resume()}}}function by(n,a){const i=[...n],s=i.indexOf(a);return s!==-1&&i.splice(s,1),i}function BE(n){return n.filter(a=>a.tagName!=="A")}var HE="Portal",Du=b.forwardRef((n,a)=>{const{container:i,...s}=n,[o,c]=b.useState(!1);Bt(()=>c(!0),[]);const d=i||o&&globalThis?.document?.body;return d?wE.createPortal(y.jsx(Ye.div,{...s,ref:a}),d):null});Du.displayName=HE;function qE(n,a){return b.useReducer((i,s)=>a[i][s]??i,n)}var fr=n=>{const{present:a,children:i}=n,s=PE(a),o=typeof i=="function"?i({present:s.isPresent}):b.Children.only(i),c=lt(s.ref,GE(o));return typeof i=="function"||s.isPresent?b.cloneElement(o,{ref:c}):null};fr.displayName="Presence";function PE(n){const[a,i]=b.useState(),s=b.useRef(null),o=b.useRef(n),c=b.useRef("none"),d=n?"mounted":"unmounted",[h,p]=qE(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return b.useEffect(()=>{const m=Ko(s.current);c.current=h==="mounted"?m:"none"},[h]),Bt(()=>{const m=s.current,g=o.current;if(g!==n){const w=c.current,A=Ko(m);n?p("MOUNT"):A==="none"||m?.display==="none"?p("UNMOUNT"):p(g&&w!==A?"ANIMATION_OUT":"UNMOUNT"),o.current=n}},[n,p]),Bt(()=>{if(a){let m;const g=a.ownerDocument.defaultView??window,S=A=>{const _=Ko(s.current).includes(CSS.escape(A.animationName));if(A.target===a&&_&&(p("ANIMATION_END"),!o.current)){const C=a.style.animationFillMode;a.style.animationFillMode="forwards",m=g.setTimeout(()=>{a.style.animationFillMode==="forwards"&&(a.style.animationFillMode=C)})}},w=A=>{A.target===a&&(c.current=Ko(s.current))};return a.addEventListener("animationstart",w),a.addEventListener("animationcancel",S),a.addEventListener("animationend",S),()=>{g.clearTimeout(m),a.removeEventListener("animationstart",w),a.removeEventListener("animationcancel",S),a.removeEventListener("animationend",S)}}else p("ANIMATION_END")},[a,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:b.useCallback(m=>{s.current=m?getComputedStyle(m):null,i(m)},[])}}function Ko(n){return n?.animationName||"none"}function GE(n){let a=Object.getOwnPropertyDescriptor(n.props,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning;return i?n.ref:(a=Object.getOwnPropertyDescriptor(n,"ref")?.get,i=a&&"isReactWarning"in a&&a.isReactWarning,i?n.props.ref:n.props.ref||n.ref)}var yd=0;function yh(){b.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??xy()),document.body.insertAdjacentElement("beforeend",n[1]??xy()),yd++,()=>{yd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(a=>a.remove()),yd--}},[])}function xy(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Fn=function(){return Fn=Object.assign||function(a){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[c]=i[c])}return a},Fn.apply(this,arguments)};function jb(n,a){var i={};for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&a.indexOf(s)<0&&(i[s]=n[s]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,s=Object.getOwnPropertySymbols(n);o<s.length;o++)a.indexOf(s[o])<0&&Object.prototype.propertyIsEnumerable.call(n,s[o])&&(i[s[o]]=n[s[o]]);return i}function FE(n,a,i){if(i||arguments.length===2)for(var s=0,o=a.length,c;s<o;s++)(c||!(s in a))&&(c||(c=Array.prototype.slice.call(a,0,s)),c[s]=a[s]);return n.concat(c||Array.prototype.slice.call(a))}var iu="right-scroll-bar-position",su="width-before-scroll-bar",ZE="with-scroll-bars-hidden",YE="--removed-body-scroll-bar-size";function bd(n,a){return typeof n=="function"?n(a):n&&(n.current=a),n}function IE(n,a){var i=b.useState(function(){return{value:n,callback:a,facade:{get current(){return i.value},set current(s){var o=i.value;o!==s&&(i.value=s,i.callback(s,o))}}}})[0];return i.callback=a,i.facade}var QE=typeof window<"u"?b.useLayoutEffect:b.useEffect,Sy=new WeakMap;function XE(n,a){var i=IE(null,function(s){return n.forEach(function(o){return bd(o,s)})});return QE(function(){var s=Sy.get(i);if(s){var o=new Set(s),c=new Set(n),d=i.current;o.forEach(function(h){c.has(h)||bd(h,null)}),c.forEach(function(h){o.has(h)||bd(h,d)})}Sy.set(i,n)},[n]),i}function KE(n){return n}function $E(n,a){a===void 0&&(a=KE);var i=[],s=!1,o={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:n},useMedium:function(c){var d=a(c,s);return i.push(d),function(){i=i.filter(function(h){return h!==d})}},assignSyncMedium:function(c){for(s=!0;i.length;){var d=i;i=[],d.forEach(c)}i={push:function(h){return c(h)},filter:function(){return i}}},assignMedium:function(c){s=!0;var d=[];if(i.length){var h=i;i=[],h.forEach(c),d=i}var p=function(){var g=d;d=[],g.forEach(c)},m=function(){return Promise.resolve().then(p)};m(),i={push:function(g){d.push(g),m()},filter:function(g){return d=d.filter(g),i}}}};return o}function JE(n){n===void 0&&(n={});var a=$E(null);return a.options=Fn({async:!0,ssr:!1},n),a}var kb=function(n){var a=n.sideCar,i=jb(n,["sideCar"]);if(!a)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=a.read();if(!s)throw new Error("Sidecar medium not found");return b.createElement(s,Fn({},i))};kb.isSideCarExport=!0;function WE(n,a){return n.useMedium(a),kb}var zb=JE(),xd=function(){},ju=b.forwardRef(function(n,a){var i=b.useRef(null),s=b.useState({onScrollCapture:xd,onWheelCapture:xd,onTouchMoveCapture:xd}),o=s[0],c=s[1],d=n.forwardProps,h=n.children,p=n.className,m=n.removeScrollBar,g=n.enabled,S=n.shards,w=n.sideCar,A=n.noRelative,O=n.noIsolation,_=n.inert,C=n.allowPinchZoom,U=n.as,N=U===void 0?"div":U,M=n.gapMode,L=jb(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=w,ne=XE([i,a]),Z=Fn(Fn({},L),o);return b.createElement(b.Fragment,null,g&&b.createElement(B,{sideCar:zb,removeScrollBar:m,shards:S,noRelative:A,noIsolation:O,inert:_,setCallbacks:c,allowPinchZoom:!!C,lockRef:i,gapMode:M}),d?b.cloneElement(b.Children.only(h),Fn(Fn({},Z),{ref:ne})):b.createElement(N,Fn({},Z,{className:p,ref:ne}),h))});ju.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ju.classNames={fullWidth:su,zeroRight:iu};var eT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function tT(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var a=eT();return a&&n.setAttribute("nonce",a),n}function nT(n,a){n.styleSheet?n.styleSheet.cssText=a:n.appendChild(document.createTextNode(a))}function aT(n){var a=document.head||document.getElementsByTagName("head")[0];a.appendChild(n)}var rT=function(){var n=0,a=null;return{add:function(i){n==0&&(a=tT())&&(nT(a,i),aT(a)),n++},remove:function(){n--,!n&&a&&(a.parentNode&&a.parentNode.removeChild(a),a=null)}}},iT=function(){var n=rT();return function(a,i){b.useEffect(function(){return n.add(a),function(){n.remove()}},[a&&i])}},Ub=function(){var n=iT(),a=function(i){var s=i.styles,o=i.dynamic;return n(s,o),null};return a},sT={left:0,top:0,right:0,gap:0},Sd=function(n){return parseInt(n||"",10)||0},lT=function(n){var a=window.getComputedStyle(document.body),i=a[n==="padding"?"paddingLeft":"marginLeft"],s=a[n==="padding"?"paddingTop":"marginTop"],o=a[n==="padding"?"paddingRight":"marginRight"];return[Sd(i),Sd(s),Sd(o)]},oT=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return sT;var a=lT(n),i=document.documentElement.clientWidth,s=window.innerWidth;return{left:a[0],top:a[1],right:a[2],gap:Math.max(0,s-i+a[2]-a[0])}},uT=Ub(),Gi="data-scroll-locked",cT=function(n,a,i,s){var o=n.left,c=n.top,d=n.right,h=n.gap;return i===void 0&&(i="margin"),`
.`.concat(ZE,` {
overflow: hidden `).concat(s,`;
padding-right: `).concat(h,"px ").concat(s,`;
}
body[`).concat(Gi,`] {
overflow: hidden `).concat(s,`;
overscroll-behavior: contain;
`).concat([a&&"position: relative ".concat(s,";"),i==="margin"&&`
padding-left: `.concat(o,`px;
padding-top: `).concat(c,`px;
padding-right: `).concat(d,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(h,"px ").concat(s,`;
`),i==="padding"&&"padding-right: ".concat(h,"px ").concat(s,";")].filter(Boolean).join(""),`
}
.`).concat(iu,` {
right: `).concat(h,"px ").concat(s,`;
}
.`).concat(su,` {
margin-right: `).concat(h,"px ").concat(s,`;
}
.`).concat(iu," .").concat(iu,` {
right: 0 `).concat(s,`;
}
.`).concat(su," .").concat(su,` {
margin-right: 0 `).concat(s,`;
}
body[`).concat(Gi,`] {
`).concat(YE,": ").concat(h,`px;
}
`)},_y=function(){var n=parseInt(document.body.getAttribute(Gi)||"0",10);return isFinite(n)?n:0},fT=function(){b.useEffect(function(){return document.body.setAttribute(Gi,(_y()+1).toString()),function(){var n=_y()-1;n<=0?document.body.removeAttribute(Gi):document.body.setAttribute(Gi,n.toString())}},[])},dT=function(n){var a=n.noRelative,i=n.noImportant,s=n.gapMode,o=s===void 0?"margin":s;fT();var c=b.useMemo(function(){return oT(o)},[o]);return b.createElement(uT,{styles:cT(c,!a,o,i?"":"!important")})},Gd=!1;if(typeof window<"u")try{var $o=Object.defineProperty({},"passive",{get:function(){return Gd=!0,!0}});window.addEventListener("test",$o,$o),window.removeEventListener("test",$o,$o)}catch{Gd=!1}var Li=Gd?{passive:!1}:!1,hT=function(n){return n.tagName==="TEXTAREA"},Lb=function(n,a){if(!(n instanceof Element))return!1;var i=window.getComputedStyle(n);return i[a]!=="hidden"&&!(i.overflowY===i.overflowX&&!hT(n)&&i[a]==="visible")},mT=function(n){return Lb(n,"overflowY")},pT=function(n){return Lb(n,"overflowX")},wy=function(n,a){var i=a.ownerDocument,s=a;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var o=Vb(n,s);if(o){var c=Bb(n,s),d=c[1],h=c[2];if(d>h)return!0}s=s.parentNode}while(s&&s!==i.body);return!1},vT=function(n){var a=n.scrollTop,i=n.scrollHeight,s=n.clientHeight;return[a,i,s]},gT=function(n){var a=n.scrollLeft,i=n.scrollWidth,s=n.clientWidth;return[a,i,s]},Vb=function(n,a){return n==="v"?mT(a):pT(a)},Bb=function(n,a){return n==="v"?vT(a):gT(a)},yT=function(n,a){return n==="h"&&a==="rtl"?-1:1},bT=function(n,a,i,s,o){var c=yT(n,window.getComputedStyle(a).direction),d=c*s,h=i.target,p=a.contains(h),m=!1,g=d>0,S=0,w=0;do{if(!h)break;var A=Bb(n,h),O=A[0],_=A[1],C=A[2],U=_-C-c*O;(O||U)&&Vb(n,h)&&(S+=U,w+=O);var N=h.parentNode;h=N&&N.nodeType===Node.DOCUMENT_FRAGMENT_NODE?N.host:N}while(!p&&h!==document.body||p&&(a.contains(h)||a===h));return(g&&Math.abs(S)<1||!g&&Math.abs(w)<1)&&(m=!0),m},Jo=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Ey=function(n){return[n.deltaX,n.deltaY]},Ty=function(n){return n&&"current"in n?n.current:n},xT=function(n,a){return n[0]===a[0]&&n[1]===a[1]},ST=function(n){return`
.block-interactivity-`.concat(n,` {pointer-events: none;}
.allow-interactivity-`).concat(n,` {pointer-events: all;}
`)},_T=0,Vi=[];function wT(n){var a=b.useRef([]),i=b.useRef([0,0]),s=b.useRef(),o=b.useState(_T++)[0],c=b.useState(Ub)[0],d=b.useRef(n);b.useEffect(function(){d.current=n},[n]),b.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(o));var _=FE([n.lockRef.current],(n.shards||[]).map(Ty),!0).filter(Boolean);return _.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),_.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[n.inert,n.lockRef.current,n.shards]);var h=b.useCallback(function(_,C){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!d.current.allowPinchZoom;var U=Jo(_),N=i.current,M="deltaX"in _?_.deltaX:N[0]-U[0],L="deltaY"in _?_.deltaY:N[1]-U[1],B,ne=_.target,Z=Math.abs(M)>Math.abs(L)?"h":"v";if("touches"in _&&Z==="h"&&ne.type==="range")return!1;var z=wy(Z,ne);if(!z)return!0;if(z?B=Z:(B=Z==="v"?"h":"v",z=wy(Z,ne)),!z)return!1;if(!s.current&&"changedTouches"in _&&(M||L)&&(s.current=B),!B)return!0;var ae=s.current||B;return bT(ae,C,_,ae==="h"?M:L)},[]),p=b.useCallback(function(_){var C=_;if(!(!Vi.length||Vi[Vi.length-1]!==c)){var U="deltaY"in C?Ey(C):Jo(C),N=a.current.filter(function(B){return B.name===C.type&&(B.target===C.target||C.target===B.shadowParent)&&xT(B.delta,U)})[0];if(N&&N.should){C.cancelable&&C.preventDefault();return}if(!N){var M=(d.current.shards||[]).map(Ty).filter(Boolean).filter(function(B){return B.contains(C.target)}),L=M.length>0?h(C,M[0]):!d.current.noIsolation;L&&C.cancelable&&C.preventDefault()}}},[]),m=b.useCallback(function(_,C,U,N){var M={name:_,delta:C,target:U,should:N,shadowParent:ET(U)};a.current.push(M),setTimeout(function(){a.current=a.current.filter(function(L){return L!==M})},1)},[]),g=b.useCallback(function(_){i.current=Jo(_),s.current=void 0},[]),S=b.useCallback(function(_){m(_.type,Ey(_),_.target,h(_,n.lockRef.current))},[]),w=b.useCallback(function(_){m(_.type,Jo(_),_.target,h(_,n.lockRef.current))},[]);b.useEffect(function(){return Vi.push(c),n.setCallbacks({onScrollCapture:S,onWheelCapture:S,onTouchMoveCapture:w}),document.addEventListener("wheel",p,Li),document.addEventListener("touchmove",p,Li),document.addEventListener("touchstart",g,Li),function(){Vi=Vi.filter(function(_){return _!==c}),document.removeEventListener("wheel",p,Li),document.removeEventListener("touchmove",p,Li),document.removeEventListener("touchstart",g,Li)}},[]);var A=n.removeScrollBar,O=n.inert;return b.createElement(b.Fragment,null,O?b.createElement(c,{styles:ST(o)}):null,A?b.createElement(dT,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function ET(n){for(var a=null;n!==null;)n instanceof ShadowRoot&&(a=n.host,n=n.host),n=n.parentNode;return a}const TT=WE(zb,wT);var ku=b.forwardRef(function(n,a){return b.createElement(ju,Fn({},n,{ref:a,sideCar:TT}))});ku.classNames=ju.classNames;var AT=function(n){if(typeof document>"u")return null;var a=Array.isArray(n)?n[0]:n;return a.ownerDocument.body},Bi=new WeakMap,Wo=new WeakMap,eu={},_d=0,Hb=function(n){return n&&(n.host||Hb(n.parentNode))},CT=function(n,a){return a.map(function(i){if(n.contains(i))return i;var s=Hb(i);return s&&n.contains(s)?s:(console.error("aria-hidden",i,"in not contained inside",n,". Doing nothing"),null)}).filter(function(i){return!!i})},RT=function(n,a,i,s){var o=CT(a,Array.isArray(n)?n:[n]);eu[i]||(eu[i]=new WeakMap);var c=eu[i],d=[],h=new Set,p=new Set(o),m=function(S){!S||h.has(S)||(h.add(S),m(S.parentNode))};o.forEach(m);var g=function(S){!S||p.has(S)||Array.prototype.forEach.call(S.children,function(w){if(h.has(w))g(w);else try{var A=w.getAttribute(s),O=A!==null&&A!=="false",_=(Bi.get(w)||0)+1,C=(c.get(w)||0)+1;Bi.set(w,_),c.set(w,C),d.push(w),_===1&&O&&Wo.set(w,!0),C===1&&w.setAttribute(i,"true"),O||w.setAttribute(s,"true")}catch(U){console.error("aria-hidden: cannot operate on ",w,U)}})};return g(a),h.clear(),_d++,function(){d.forEach(function(S){var w=Bi.get(S)-1,A=c.get(S)-1;Bi.set(S,w),c.set(S,A),w||(Wo.has(S)||S.removeAttribute(s),Wo.delete(S)),A||S.removeAttribute(i)}),_d--,_d||(Bi=new WeakMap,Bi=new WeakMap,Wo=new WeakMap,eu={})}},bh=function(n,a,i){i===void 0&&(i="data-aria-hidden");var s=Array.from(Array.isArray(n)?n:[n]),o=AT(n);return o?(s.push.apply(s,Array.from(o.querySelectorAll("[aria-live], script"))),RT(s,o,i,"aria-hidden")):function(){return null}},zu="Dialog",[qb,v2]=Ir(zu),[OT,Un]=qb(zu),Pb=n=>{const{__scopeDialog:a,children:i,open:s,defaultOpen:o,onOpenChange:c,modal:d=!0}=n,h=b.useRef(null),p=b.useRef(null),[m,g]=ul({prop:s,defaultProp:o??!1,onChange:c,caller:zu});return y.jsx(OT,{scope:a,triggerRef:h,contentRef:p,contentId:Ta(),titleId:Ta(),descriptionId:Ta(),open:m,onOpenChange:g,onOpenToggle:b.useCallback(()=>g(S=>!S),[g]),modal:d,children:i})};Pb.displayName=zu;var Gb="DialogTrigger",Fb=b.forwardRef((n,a)=>{const{__scopeDialog:i,...s}=n,o=Un(Gb,i),c=lt(a,o.triggerRef);return y.jsx(Ye.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":_h(o.open),...s,ref:c,onClick:Ae(n.onClick,o.onOpenToggle)})});Fb.displayName=Gb;var xh="DialogPortal",[MT,Zb]=qb(xh,{forceMount:void 0}),Yb=n=>{const{__scopeDialog:a,forceMount:i,children:s,container:o}=n,c=Un(xh,a);return y.jsx(MT,{scope:a,forceMount:i,children:b.Children.map(s,d=>y.jsx(fr,{present:i||c.open,children:y.jsx(Du,{asChild:!0,container:o,children:d})}))})};Yb.displayName=xh;var cu="DialogOverlay",Ib=b.forwardRef((n,a)=>{const i=Zb(cu,n.__scopeDialog),{forceMount:s=i.forceMount,...o}=n,c=Un(cu,n.__scopeDialog);return c.modal?y.jsx(fr,{present:s||c.open,children:y.jsx(DT,{...o,ref:a})}):null});Ib.displayName=cu;var NT=Br("DialogOverlay.RemoveScroll"),DT=b.forwardRef((n,a)=>{const{__scopeDialog:i,...s}=n,o=Un(cu,i);return y.jsx(ku,{as:NT,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(Ye.div,{"data-state":_h(o.open),...s,ref:a,style:{pointerEvents:"auto",...s.style}})})}),Hr="DialogContent",Qb=b.forwardRef((n,a)=>{const i=Zb(Hr,n.__scopeDialog),{forceMount:s=i.forceMount,...o}=n,c=Un(Hr,n.__scopeDialog);return y.jsx(fr,{present:s||c.open,children:c.modal?y.jsx(jT,{...o,ref:a}):y.jsx(kT,{...o,ref:a})})});Qb.displayName=Hr;var jT=b.forwardRef((n,a)=>{const i=Un(Hr,n.__scopeDialog),s=b.useRef(null),o=lt(a,i.contentRef,s);return b.useEffect(()=>{const c=s.current;if(c)return bh(c)},[]),y.jsx(Xb,{...n,ref:o,trapFocus:i.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ae(n.onCloseAutoFocus,c=>{c.preventDefault(),i.triggerRef.current?.focus()}),onPointerDownOutside:Ae(n.onPointerDownOutside,c=>{const d=c.detail.originalEvent,h=d.button===0&&d.ctrlKey===!0;(d.button===2||h)&&c.preventDefault()}),onFocusOutside:Ae(n.onFocusOutside,c=>c.preventDefault())})}),kT=b.forwardRef((n,a)=>{const i=Un(Hr,n.__scopeDialog),s=b.useRef(!1),o=b.useRef(!1);return y.jsx(Xb,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{n.onCloseAutoFocus?.(c),c.defaultPrevented||(s.current||i.triggerRef.current?.focus(),c.preventDefault()),s.current=!1,o.current=!1},onInteractOutside:c=>{n.onInteractOutside?.(c),c.defaultPrevented||(s.current=!0,c.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const d=c.target;i.triggerRef.current?.contains(d)&&c.preventDefault(),c.detail.originalEvent.type==="focusin"&&o.current&&c.preventDefault()}})}),Xb=b.forwardRef((n,a)=>{const{__scopeDialog:i,trapFocus:s,onOpenAutoFocus:o,onCloseAutoFocus:c,...d}=n,h=Un(Hr,i),p=b.useRef(null),m=lt(a,p);return yh(),y.jsxs(y.Fragment,{children:[y.jsx(Nu,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:o,onUnmountAutoFocus:c,children:y.jsx(Mu,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":_h(h.open),...d,ref:m,onDismiss:()=>h.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(UT,{titleId:h.titleId}),y.jsx(VT,{contentRef:p,descriptionId:h.descriptionId})]})]})}),Sh="DialogTitle",Kb=b.forwardRef((n,a)=>{const{__scopeDialog:i,...s}=n,o=Un(Sh,i);return y.jsx(Ye.h2,{id:o.titleId,...s,ref:a})});Kb.displayName=Sh;var $b="DialogDescription",zT=b.forwardRef((n,a)=>{const{__scopeDialog:i,...s}=n,o=Un($b,i);return y.jsx(Ye.p,{id:o.descriptionId,...s,ref:a})});zT.displayName=$b;var Jb="DialogClose",Wb=b.forwardRef((n,a)=>{const{__scopeDialog:i,...s}=n,o=Un(Jb,i);return y.jsx(Ye.button,{type:"button",...s,ref:a,onClick:Ae(n.onClick,()=>o.onOpenChange(!1))})});Wb.displayName=Jb;function _h(n){return n?"open":"closed"}var e0="DialogTitleWarning",[g2,t0]=vE(e0,{contentName:Hr,titleName:Sh,docsSlug:"dialog"}),UT=({titleId:n})=>{const a=t0(e0),i=`\`${a.contentName}\` requires a \`${a.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${a.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${a.docsSlug}`;return b.useEffect(()=>{n&&(document.getElementById(n)||console.error(i))},[i,n]),null},LT="DialogDescriptionWarning",VT=({contentRef:n,descriptionId:a})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${t0(LT).contentName}}.`;return b.useEffect(()=>{const o=n.current?.getAttribute("aria-describedby");a&&o&&(document.getElementById(a)||console.warn(s))},[s,n,a]),null},BT=Pb,HT=Fb,qT=Yb,PT=Ib,GT=Qb,FT=Kb,ZT=Wb;/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const YT=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),IT=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,i,s)=>s?s.toUpperCase():i.toLowerCase()),Ay=n=>{const a=IT(n);return a.charAt(0).toUpperCase()+a.slice(1)},n0=(...n)=>n.filter((a,i,s)=>!!a&&a.trim()!==""&&s.indexOf(a)===i).join(" ").trim(),QT=n=>{for(const a in n)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var XT={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"};/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const KT=b.forwardRef(({color:n="currentColor",size:a=24,strokeWidth:i=2,absoluteStrokeWidth:s,className:o="",children:c,iconNode:d,...h},p)=>b.createElement("svg",{ref:p,...XT,width:a,height:a,stroke:n,strokeWidth:s?Number(i)*24/Number(a):i,className:n0("lucide",o),...!c&&!QT(h)&&{"aria-hidden":"true"},...h},[...d.map(([m,g])=>b.createElement(m,g)),...Array.isArray(c)?c:[c]]));/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dn=(n,a)=>{const i=b.forwardRef(({className:s,...o},c)=>b.createElement(KT,{ref:c,iconNode:a,className:n0(`lucide-${YT(Ay(n))}`,`lucide-${n}`,s),...o}));return i.displayName=Ay(n),i};/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $T=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],JT=dn("check",$T);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const WT=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],a0=dn("chevron-down",WT);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eA=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],tA=dn("chevron-left",eA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],aA=dn("chevron-right",nA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rA=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],iA=dn("chevron-up",rA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sA=[["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"}]],lA=dn("ellipsis",sA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oA=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],uA=dn("eye-off",oA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cA=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],fA=dn("eye",cA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dA=[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]],hA=dn("funnel",dA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],pA=dn("plus",mA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vA=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],gA=dn("search",vA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yA=[["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"}]],bA=dn("square-pen",yA);/**
* @license lucide-react v0.540.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xA=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],r0=dn("x",xA);function i0({...n}){return y.jsx(BT,{"data-slot":"dialog",...n})}function s0({...n}){return y.jsx(HT,{"data-slot":"dialog-trigger",...n})}function SA({...n}){return y.jsx(qT,{"data-slot":"dialog-portal",...n})}function _A({className:n,...a}){return y.jsx(PT,{"data-slot":"dialog-overlay",className:We("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",n),...a})}function l0({className:n,children:a,showCloseButton:i=!0,...s}){return y.jsxs(SA,{"data-slot":"dialog-portal",children:[y.jsx(_A,{}),y.jsxs(GT,{"data-slot":"dialog-content",className:We("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",n),...s,children:[a,i&&y.jsxs(ZT,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[y.jsx(r0,{}),y.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function o0({className:n,...a}){return y.jsx("div",{"data-slot":"dialog-header",className:We("flex flex-col gap-2 text-center sm:text-left",n),...a})}function u0({className:n,...a}){return y.jsx(FT,{"data-slot":"dialog-title",className:We("text-lg leading-none font-semibold",n),...a})}function wh(n){const a=n+"CollectionProvider",[i,s]=Ir(a),[o,c]=i(a,{collectionRef:{current:null},itemMap:new Map}),d=_=>{const{scope:C,children:U}=_,N=je.useRef(null),M=je.useRef(new Map).current;return y.jsx(o,{scope:C,itemMap:M,collectionRef:N,children:U})};d.displayName=a;const h=n+"CollectionSlot",p=Br(h),m=je.forwardRef((_,C)=>{const{scope:U,children:N}=_,M=c(h,U),L=lt(C,M.collectionRef);return y.jsx(p,{ref:L,children:N})});m.displayName=h;const g=n+"CollectionItemSlot",S="data-radix-collection-item",w=Br(g),A=je.forwardRef((_,C)=>{const{scope:U,children:N,...M}=_,L=je.useRef(null),B=lt(C,L),ne=c(g,U);return je.useEffect(()=>(ne.itemMap.set(L,{ref:L,...M}),()=>void ne.itemMap.delete(L))),y.jsx(w,{[S]:"",ref:B,children:N})});A.displayName=g;function O(_){const C=c(n+"CollectionConsumer",_);return je.useCallback(()=>{const N=C.collectionRef.current;if(!N)return[];const M=Array.from(N.querySelectorAll(`[${S}]`));return Array.from(C.itemMap.values()).sort((ne,Z)=>M.indexOf(ne.ref.current)-M.indexOf(Z.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:d,Slot:m,ItemSlot:A},O,s]}var wA=b.createContext(void 0);function Eh(n){const a=b.useContext(wA);return n||a||"ltr"}const EA=["top","right","bottom","left"],ir=Math.min,un=Math.max,fu=Math.round,tu=Math.floor,In=n=>({x:n,y:n}),TA={left:"right",right:"left",bottom:"top",top:"bottom"},AA={start:"end",end:"start"};function Fd(n,a,i){return un(n,ir(a,i))}function Aa(n,a){return typeof n=="function"?n(a):n}function Ca(n){return n.split("-")[0]}function Ji(n){return n.split("-")[1]}function Th(n){return n==="x"?"y":"x"}function Ah(n){return n==="y"?"height":"width"}const CA=new Set(["top","bottom"]);function Zn(n){return CA.has(Ca(n))?"y":"x"}function Ch(n){return Th(Zn(n))}function RA(n,a,i){i===void 0&&(i=!1);const s=Ji(n),o=Ch(n),c=Ah(o);let d=o==="x"?s===(i?"end":"start")?"right":"left":s==="start"?"bottom":"top";return a.reference[c]>a.floating[c]&&(d=du(d)),[d,du(d)]}function OA(n){const a=du(n);return[Zd(n),a,Zd(a)]}function Zd(n){return n.replace(/start|end/g,a=>AA[a])}const Cy=["left","right"],Ry=["right","left"],MA=["top","bottom"],NA=["bottom","top"];function DA(n,a,i){switch(n){case"top":case"bottom":return i?a?Ry:Cy:a?Cy:Ry;case"left":case"right":return a?MA:NA;default:return[]}}function jA(n,a,i,s){const o=Ji(n);let c=DA(Ca(n),i==="start",s);return o&&(c=c.map(d=>d+"-"+o),a&&(c=c.concat(c.map(Zd)))),c}function du(n){return n.replace(/left|right|bottom|top/g,a=>TA[a])}function kA(n){return{top:0,right:0,bottom:0,left:0,...n}}function c0(n){return typeof n!="number"?kA(n):{top:n,right:n,bottom:n,left:n}}function hu(n){const{x:a,y:i,width:s,height:o}=n;return{width:s,height:o,top:i,left:a,right:a+s,bottom:i+o,x:a,y:i}}function Oy(n,a,i){let{reference:s,floating:o}=n;const c=Zn(a),d=Ch(a),h=Ah(d),p=Ca(a),m=c==="y",g=s.x+s.width/2-o.width/2,S=s.y+s.height/2-o.height/2,w=s[h]/2-o[h]/2;let A;switch(p){case"top":A={x:g,y:s.y-o.height};break;case"bottom":A={x:g,y:s.y+s.height};break;case"right":A={x:s.x+s.width,y:S};break;case"left":A={x:s.x-o.width,y:S};break;default:A={x:s.x,y:s.y}}switch(Ji(a)){case"start":A[d]-=w*(i&&m?-1:1);break;case"end":A[d]+=w*(i&&m?-1:1);break}return A}const zA=async(n,a,i)=>{const{placement:s="bottom",strategy:o="absolute",middleware:c=[],platform:d}=i,h=c.filter(Boolean),p=await(d.isRTL==null?void 0:d.isRTL(a));let m=await d.getElementRects({reference:n,floating:a,strategy:o}),{x:g,y:S}=Oy(m,s,p),w=s,A={},O=0;for(let _=0;_<h.length;_++){const{name:C,fn:U}=h[_],{x:N,y:M,data:L,reset:B}=await U({x:g,y:S,initialPlacement:s,placement:w,strategy:o,middlewareData:A,rects:m,platform:d,elements:{reference:n,floating:a}});g=N??g,S=M??S,A={...A,[C]:{...A[C],...L}},B&&O<=50&&(O++,typeof B=="object"&&(B.placement&&(w=B.placement),B.rects&&(m=B.rects===!0?await d.getElementRects({reference:n,floating:a,strategy:o}):B.rects),{x:g,y:S}=Oy(m,w,p)),_=-1)}return{x:g,y:S,placement:w,strategy:o,middlewareData:A}};async function cl(n,a){var i;a===void 0&&(a={});const{x:s,y:o,platform:c,rects:d,elements:h,strategy:p}=n,{boundary:m="clippingAncestors",rootBoundary:g="viewport",elementContext:S="floating",altBoundary:w=!1,padding:A=0}=Aa(a,n),O=c0(A),C=h[w?S==="floating"?"reference":"floating":S],U=hu(await c.getClippingRect({element:(i=await(c.isElement==null?void 0:c.isElement(C)))==null||i?C:C.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(h.floating)),boundary:m,rootBoundary:g,strategy:p})),N=S==="floating"?{x:s,y:o,width:d.floating.width,height:d.floating.height}:d.reference,M=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h.floating)),L=await(c.isElement==null?void 0:c.isElement(M))?await(c.getScale==null?void 0:c.getScale(M))||{x:1,y:1}:{x:1,y:1},B=hu(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:N,offsetParent:M,strategy:p}):N);return{top:(U.top-B.top+O.top)/L.y,bottom:(B.bottom-U.bottom+O.bottom)/L.y,left:(U.left-B.left+O.left)/L.x,right:(B.right-U.right+O.right)/L.x}}const UA=n=>({name:"arrow",options:n,async fn(a){const{x:i,y:s,placement:o,rects:c,platform:d,elements:h,middlewareData:p}=a,{element:m,padding:g=0}=Aa(n,a)||{};if(m==null)return{};const S=c0(g),w={x:i,y:s},A=Ch(o),O=Ah(A),_=await d.getDimensions(m),C=A==="y",U=C?"top":"left",N=C?"bottom":"right",M=C?"clientHeight":"clientWidth",L=c.reference[O]+c.reference[A]-w[A]-c.floating[O],B=w[A]-c.reference[A],ne=await(d.getOffsetParent==null?void 0:d.getOffsetParent(m));let Z=ne?ne[M]:0;(!Z||!await(d.isElement==null?void 0:d.isElement(ne)))&&(Z=h.floating[M]||c.floating[O]);const z=L/2-B/2,ae=Z/2-_[O]/2-1,oe=ir(S[U],ae),Se=ir(S[N],ae),re=oe,ie=Z-_[O]-Se,ue=Z/2-_[O]/2+z,me=Fd(re,ue,ie),j=!p.arrow&&Ji(o)!=null&&ue!==me&&c.reference[O]/2-(ue<re?oe:Se)-_[O]/2<0,I=j?ue<re?ue-re:ue-ie:0;return{[A]:w[A]+I,data:{[A]:me,centerOffset:ue-me-I,...j&&{alignmentOffset:I}},reset:j}}}),LA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(a){var i,s;const{placement:o,middlewareData:c,rects:d,initialPlacement:h,platform:p,elements:m}=a,{mainAxis:g=!0,crossAxis:S=!0,fallbackPlacements:w,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:_=!0,...C}=Aa(n,a);if((i=c.arrow)!=null&&i.alignmentOffset)return{};const U=Ca(o),N=Zn(h),M=Ca(h)===h,L=await(p.isRTL==null?void 0:p.isRTL(m.floating)),B=w||(M||!_?[du(h)]:OA(h)),ne=O!=="none";!w&&ne&&B.push(...jA(h,_,O,L));const Z=[h,...B],z=await cl(a,C),ae=[];let oe=((s=c.flip)==null?void 0:s.overflows)||[];if(g&&ae.push(z[U]),S){const ue=RA(o,d,L);ae.push(z[ue[0]],z[ue[1]])}if(oe=[...oe,{placement:o,overflows:ae}],!ae.every(ue=>ue<=0)){var Se,re;const ue=(((Se=c.flip)==null?void 0:Se.index)||0)+1,me=Z[ue];if(me&&(!(S==="alignment"?N!==Zn(me):!1)||oe.every(P=>Zn(P.placement)===N?P.overflows[0]>0:!0)))return{data:{index:ue,overflows:oe},reset:{placement:me}};let j=(re=oe.filter(I=>I.overflows[0]<=0).sort((I,P)=>I.overflows[1]-P.overflows[1])[0])==null?void 0:re.placement;if(!j)switch(A){case"bestFit":{var ie;const I=(ie=oe.filter(P=>{if(ne){const J=Zn(P.placement);return J===N||J==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(J=>J>0).reduce((J,T)=>J+T,0)]).sort((P,J)=>P[1]-J[1])[0])==null?void 0:ie[0];I&&(j=I);break}case"initialPlacement":j=h;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function My(n,a){return{top:n.top-a.height,right:n.right-a.width,bottom:n.bottom-a.height,left:n.left-a.width}}function Ny(n){return EA.some(a=>n[a]>=0)}const VA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(a){const{rects:i}=a,{strategy:s="referenceHidden",...o}=Aa(n,a);switch(s){case"referenceHidden":{const c=await cl(a,{...o,elementContext:"reference"}),d=My(c,i.reference);return{data:{referenceHiddenOffsets:d,referenceHidden:Ny(d)}}}case"escaped":{const c=await cl(a,{...o,altBoundary:!0}),d=My(c,i.floating);return{data:{escapedOffsets:d,escaped:Ny(d)}}}default:return{}}}}},f0=new Set(["left","top"]);async function BA(n,a){const{placement:i,platform:s,elements:o}=n,c=await(s.isRTL==null?void 0:s.isRTL(o.floating)),d=Ca(i),h=Ji(i),p=Zn(i)==="y",m=f0.has(d)?-1:1,g=c&&p?-1:1,S=Aa(a,n);let{mainAxis:w,crossAxis:A,alignmentAxis:O}=typeof S=="number"?{mainAxis:S,crossAxis:0,alignmentAxis:null}:{mainAxis:S.mainAxis||0,crossAxis:S.crossAxis||0,alignmentAxis:S.alignmentAxis};return h&&typeof O=="number"&&(A=h==="end"?O*-1:O),p?{x:A*g,y:w*m}:{x:w*m,y:A*g}}const HA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(a){var i,s;const{x:o,y:c,placement:d,middlewareData:h}=a,p=await BA(a,n);return d===((i=h.offset)==null?void 0:i.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:o+p.x,y:c+p.y,data:{...p,placement:d}}}}},qA=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(a){const{x:i,y:s,placement:o}=a,{mainAxis:c=!0,crossAxis:d=!1,limiter:h={fn:C=>{let{x:U,y:N}=C;return{x:U,y:N}}},...p}=Aa(n,a),m={x:i,y:s},g=await cl(a,p),S=Zn(Ca(o)),w=Th(S);let A=m[w],O=m[S];if(c){const C=w==="y"?"top":"left",U=w==="y"?"bottom":"right",N=A+g[C],M=A-g[U];A=Fd(N,A,M)}if(d){const C=S==="y"?"top":"left",U=S==="y"?"bottom":"right",N=O+g[C],M=O-g[U];O=Fd(N,O,M)}const _=h.fn({...a,[w]:A,[S]:O});return{..._,data:{x:_.x-i,y:_.y-s,enabled:{[w]:c,[S]:d}}}}}},PA=function(n){return n===void 0&&(n={}),{options:n,fn(a){const{x:i,y:s,placement:o,rects:c,middlewareData:d}=a,{offset:h=0,mainAxis:p=!0,crossAxis:m=!0}=Aa(n,a),g={x:i,y:s},S=Zn(o),w=Th(S);let A=g[w],O=g[S];const _=Aa(h,a),C=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(p){const M=w==="y"?"height":"width",L=c.reference[w]-c.floating[M]+C.mainAxis,B=c.reference[w]+c.reference[M]-C.mainAxis;A<L?A=L:A>B&&(A=B)}if(m){var U,N;const M=w==="y"?"width":"height",L=f0.has(Ca(o)),B=c.reference[S]-c.floating[M]+(L&&((U=d.offset)==null?void 0:U[S])||0)+(L?0:C.crossAxis),ne=c.reference[S]+c.reference[M]+(L?0:((N=d.offset)==null?void 0:N[S])||0)-(L?C.crossAxis:0);O<B?O=B:O>ne&&(O=ne)}return{[w]:A,[S]:O}}}},GA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(a){var i,s;const{placement:o,rects:c,platform:d,elements:h}=a,{apply:p=()=>{},...m}=Aa(n,a),g=await cl(a,m),S=Ca(o),w=Ji(o),A=Zn(o)==="y",{width:O,height:_}=c.floating;let C,U;S==="top"||S==="bottom"?(C=S,U=w===(await(d.isRTL==null?void 0:d.isRTL(h.floating))?"start":"end")?"left":"right"):(U=S,C=w==="end"?"top":"bottom");const N=_-g.top-g.bottom,M=O-g.left-g.right,L=ir(_-g[C],N),B=ir(O-g[U],M),ne=!a.middlewareData.shift;let Z=L,z=B;if((i=a.middlewareData.shift)!=null&&i.enabled.x&&(z=M),(s=a.middlewareData.shift)!=null&&s.enabled.y&&(Z=N),ne&&!w){const oe=un(g.left,0),Se=un(g.right,0),re=un(g.top,0),ie=un(g.bottom,0);A?z=O-2*(oe!==0||Se!==0?oe+Se:un(g.left,g.right)):Z=_-2*(re!==0||ie!==0?re+ie:un(g.top,g.bottom))}await p({...a,availableWidth:z,availableHeight:Z});const ae=await d.getDimensions(h.floating);return O!==ae.width||_!==ae.height?{reset:{rects:!0}}:{}}}};function Uu(){return typeof window<"u"}function Wi(n){return d0(n)?(n.nodeName||"").toLowerCase():"#document"}function cn(n){var a;return(n==null||(a=n.ownerDocument)==null?void 0:a.defaultView)||window}function Wn(n){var a;return(a=(d0(n)?n.ownerDocument:n.document)||window.document)==null?void 0:a.documentElement}function d0(n){return Uu()?n instanceof Node||n instanceof cn(n).Node:!1}function jn(n){return Uu()?n instanceof Element||n instanceof cn(n).Element:!1}function Kn(n){return Uu()?n instanceof HTMLElement||n instanceof cn(n).HTMLElement:!1}function Dy(n){return!Uu()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof cn(n).ShadowRoot}const FA=new Set(["inline","contents"]);function Ol(n){const{overflow:a,overflowX:i,overflowY:s,display:o}=kn(n);return/auto|scroll|overlay|hidden|clip/.test(a+s+i)&&!FA.has(o)}const ZA=new Set(["table","td","th"]);function YA(n){return ZA.has(Wi(n))}const IA=[":popover-open",":modal"];function Lu(n){return IA.some(a=>{try{return n.matches(a)}catch{return!1}})}const QA=["transform","translate","scale","rotate","perspective"],XA=["transform","translate","scale","rotate","perspective","filter"],KA=["paint","layout","strict","content"];function Rh(n){const a=Oh(),i=jn(n)?kn(n):n;return QA.some(s=>i[s]?i[s]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!a&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!a&&(i.filter?i.filter!=="none":!1)||XA.some(s=>(i.willChange||"").includes(s))||KA.some(s=>(i.contain||"").includes(s))}function $A(n){let a=sr(n);for(;Kn(a)&&!Yi(a);){if(Rh(a))return a;if(Lu(a))return null;a=sr(a)}return null}function Oh(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const JA=new Set(["html","body","#document"]);function Yi(n){return JA.has(Wi(n))}function kn(n){return cn(n).getComputedStyle(n)}function Vu(n){return jn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function sr(n){if(Wi(n)==="html")return n;const a=n.assignedSlot||n.parentNode||Dy(n)&&n.host||Wn(n);return Dy(a)?a.host:a}function h0(n){const a=sr(n);return Yi(a)?n.ownerDocument?n.ownerDocument.body:n.body:Kn(a)&&Ol(a)?a:h0(a)}function fl(n,a,i){var s;a===void 0&&(a=[]),i===void 0&&(i=!0);const o=h0(n),c=o===((s=n.ownerDocument)==null?void 0:s.body),d=cn(o);if(c){const h=Yd(d);return a.concat(d,d.visualViewport||[],Ol(o)?o:[],h&&i?fl(h):[])}return a.concat(o,fl(o,[],i))}function Yd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function m0(n){const a=kn(n);let i=parseFloat(a.width)||0,s=parseFloat(a.height)||0;const o=Kn(n),c=o?n.offsetWidth:i,d=o?n.offsetHeight:s,h=fu(i)!==c||fu(s)!==d;return h&&(i=c,s=d),{width:i,height:s,$:h}}function Mh(n){return jn(n)?n:n.contextElement}function Fi(n){const a=Mh(n);if(!Kn(a))return In(1);const i=a.getBoundingClientRect(),{width:s,height:o,$:c}=m0(a);let d=(c?fu(i.width):i.width)/s,h=(c?fu(i.height):i.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const WA=In(0);function p0(n){const a=cn(n);return!Oh()||!a.visualViewport?WA:{x:a.visualViewport.offsetLeft,y:a.visualViewport.offsetTop}}function eC(n,a,i){return a===void 0&&(a=!1),!i||a&&i!==cn(n)?!1:a}function qr(n,a,i,s){a===void 0&&(a=!1),i===void 0&&(i=!1);const o=n.getBoundingClientRect(),c=Mh(n);let d=In(1);a&&(s?jn(s)&&(d=Fi(s)):d=Fi(n));const h=eC(c,i,s)?p0(c):In(0);let p=(o.left+h.x)/d.x,m=(o.top+h.y)/d.y,g=o.width/d.x,S=o.height/d.y;if(c){const w=cn(c),A=s&&jn(s)?cn(s):s;let O=w,_=Yd(O);for(;_&&s&&A!==O;){const C=Fi(_),U=_.getBoundingClientRect(),N=kn(_),M=U.left+(_.clientLeft+parseFloat(N.paddingLeft))*C.x,L=U.top+(_.clientTop+parseFloat(N.paddingTop))*C.y;p*=C.x,m*=C.y,g*=C.x,S*=C.y,p+=M,m+=L,O=cn(_),_=Yd(O)}}return hu({width:g,height:S,x:p,y:m})}function Nh(n,a){const i=Vu(n).scrollLeft;return a?a.left+i:qr(Wn(n)).left+i}function v0(n,a,i){i===void 0&&(i=!1);const s=n.getBoundingClientRect(),o=s.left+a.scrollLeft-(i?0:Nh(n,s)),c=s.top+a.scrollTop;return{x:o,y:c}}function tC(n){let{elements:a,rect:i,offsetParent:s,strategy:o}=n;const c=o==="fixed",d=Wn(s),h=a?Lu(a.floating):!1;if(s===d||h&&c)return i;let p={scrollLeft:0,scrollTop:0},m=In(1);const g=In(0),S=Kn(s);if((S||!S&&!c)&&((Wi(s)!=="body"||Ol(d))&&(p=Vu(s)),Kn(s))){const A=qr(s);m=Fi(s),g.x=A.x+s.clientLeft,g.y=A.y+s.clientTop}const w=d&&!S&&!c?v0(d,p,!0):In(0);return{width:i.width*m.x,height:i.height*m.y,x:i.x*m.x-p.scrollLeft*m.x+g.x+w.x,y:i.y*m.y-p.scrollTop*m.y+g.y+w.y}}function nC(n){return Array.from(n.getClientRects())}function aC(n){const a=Wn(n),i=Vu(n),s=n.ownerDocument.body,o=un(a.scrollWidth,a.clientWidth,s.scrollWidth,s.clientWidth),c=un(a.scrollHeight,a.clientHeight,s.scrollHeight,s.clientHeight);let d=-i.scrollLeft+Nh(n);const h=-i.scrollTop;return kn(s).direction==="rtl"&&(d+=un(a.clientWidth,s.clientWidth)-o),{width:o,height:c,x:d,y:h}}function rC(n,a){const i=cn(n),s=Wn(n),o=i.visualViewport;let c=s.clientWidth,d=s.clientHeight,h=0,p=0;if(o){c=o.width,d=o.height;const m=Oh();(!m||m&&a==="fixed")&&(h=o.offsetLeft,p=o.offsetTop)}return{width:c,height:d,x:h,y:p}}const iC=new Set(["absolute","fixed"]);function sC(n,a){const i=qr(n,!0,a==="fixed"),s=i.top+n.clientTop,o=i.left+n.clientLeft,c=Kn(n)?Fi(n):In(1),d=n.clientWidth*c.x,h=n.clientHeight*c.y,p=o*c.x,m=s*c.y;return{width:d,height:h,x:p,y:m}}function jy(n,a,i){let s;if(a==="viewport")s=rC(n,i);else if(a==="document")s=aC(Wn(n));else if(jn(a))s=sC(a,i);else{const o=p0(n);s={x:a.x-o.x,y:a.y-o.y,width:a.width,height:a.height}}return hu(s)}function g0(n,a){const i=sr(n);return i===a||!jn(i)||Yi(i)?!1:kn(i).position==="fixed"||g0(i,a)}function lC(n,a){const i=a.get(n);if(i)return i;let s=fl(n,[],!1).filter(h=>jn(h)&&Wi(h)!=="body"),o=null;const c=kn(n).position==="fixed";let d=c?sr(n):n;for(;jn(d)&&!Yi(d);){const h=kn(d),p=Rh(d);!p&&h.position==="fixed"&&(o=null),(c?!p&&!o:!p&&h.position==="static"&&!!o&&iC.has(o.position)||Ol(d)&&!p&&g0(n,d))?s=s.filter(g=>g!==d):o=h,d=sr(d)}return a.set(n,s),s}function oC(n){let{element:a,boundary:i,rootBoundary:s,strategy:o}=n;const d=[...i==="clippingAncestors"?Lu(a)?[]:lC(a,this._c):[].concat(i),s],h=d[0],p=d.reduce((m,g)=>{const S=jy(a,g,o);return m.top=un(S.top,m.top),m.right=ir(S.right,m.right),m.bottom=ir(S.bottom,m.bottom),m.left=un(S.left,m.left),m},jy(a,h,o));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function uC(n){const{width:a,height:i}=m0(n);return{width:a,height:i}}function cC(n,a,i){const s=Kn(a),o=Wn(a),c=i==="fixed",d=qr(n,!0,c,a);let h={scrollLeft:0,scrollTop:0};const p=In(0);function m(){p.x=Nh(o)}if(s||!s&&!c)if((Wi(a)!=="body"||Ol(o))&&(h=Vu(a)),s){const A=qr(a,!0,c,a);p.x=A.x+a.clientLeft,p.y=A.y+a.clientTop}else o&&m();c&&!s&&o&&m();const g=o&&!s&&!c?v0(o,h):In(0),S=d.left+h.scrollLeft-p.x-g.x,w=d.top+h.scrollTop-p.y-g.y;return{x:S,y:w,width:d.width,height:d.height}}function wd(n){return kn(n).position==="static"}function ky(n,a){if(!Kn(n)||kn(n).position==="fixed")return null;if(a)return a(n);let i=n.offsetParent;return Wn(n)===i&&(i=i.ownerDocument.body),i}function y0(n,a){const i=cn(n);if(Lu(n))return i;if(!Kn(n)){let o=sr(n);for(;o&&!Yi(o);){if(jn(o)&&!wd(o))return o;o=sr(o)}return i}let s=ky(n,a);for(;s&&YA(s)&&wd(s);)s=ky(s,a);return s&&Yi(s)&&wd(s)&&!Rh(s)?i:s||$A(n)||i}const fC=async function(n){const a=this.getOffsetParent||y0,i=this.getDimensions,s=await i(n.floating);return{reference:cC(n.reference,await a(n.floating),n.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function dC(n){return kn(n).direction==="rtl"}const hC={convertOffsetParentRelativeRectToViewportRelativeRect:tC,getDocumentElement:Wn,getClippingRect:oC,getOffsetParent:y0,getElementRects:fC,getClientRects:nC,getDimensions:uC,getScale:Fi,isElement:jn,isRTL:dC};function b0(n,a){return n.x===a.x&&n.y===a.y&&n.width===a.width&&n.height===a.height}function mC(n,a){let i=null,s;const o=Wn(n);function c(){var h;clearTimeout(s),(h=i)==null||h.disconnect(),i=null}function d(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),c();const m=n.getBoundingClientRect(),{left:g,top:S,width:w,height:A}=m;if(h||a(),!w||!A)return;const O=tu(S),_=tu(o.clientWidth-(g+w)),C=tu(o.clientHeight-(S+A)),U=tu(g),M={rootMargin:-O+"px "+-_+"px "+-C+"px "+-U+"px",threshold:un(0,ir(1,p))||1};let L=!0;function B(ne){const Z=ne[0].intersectionRatio;if(Z!==p){if(!L)return d();Z?d(!1,Z):s=setTimeout(()=>{d(!1,1e-7)},1e3)}Z===1&&!b0(m,n.getBoundingClientRect())&&d(),L=!1}try{i=new IntersectionObserver(B,{...M,root:o.ownerDocument})}catch{i=new IntersectionObserver(B,M)}i.observe(n)}return d(!0),c}function pC(n,a,i,s){s===void 0&&(s={});const{ancestorScroll:o=!0,ancestorResize:c=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,m=Mh(n),g=o||c?[...m?fl(m):[],...fl(a)]:[];g.forEach(U=>{o&&U.addEventListener("scroll",i,{passive:!0}),c&&U.addEventListener("resize",i)});const S=m&&h?mC(m,i):null;let w=-1,A=null;d&&(A=new ResizeObserver(U=>{let[N]=U;N&&N.target===m&&A&&(A.unobserve(a),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=A)==null||M.observe(a)})),i()}),m&&!p&&A.observe(m),A.observe(a));let O,_=p?qr(n):null;p&&C();function C(){const U=qr(n);_&&!b0(_,U)&&i(),_=U,O=requestAnimationFrame(C)}return i(),()=>{var U;g.forEach(N=>{o&&N.removeEventListener("scroll",i),c&&N.removeEventListener("resize",i)}),S?.(),(U=A)==null||U.disconnect(),A=null,p&&cancelAnimationFrame(O)}}const vC=HA,gC=qA,yC=LA,bC=GA,xC=VA,zy=UA,SC=PA,_C=(n,a,i)=>{const s=new Map,o={platform:hC,...i},c={...o.platform,_c:s};return zA(n,a,{...o,platform:c})};var wC=typeof document<"u",EC=function(){},lu=wC?b.useLayoutEffect:EC;function mu(n,a){if(n===a)return!0;if(typeof n!=typeof a)return!1;if(typeof n=="function"&&n.toString()===a.toString())return!0;let i,s,o;if(n&&a&&typeof n=="object"){if(Array.isArray(n)){if(i=n.length,i!==a.length)return!1;for(s=i;s--!==0;)if(!mu(n[s],a[s]))return!1;return!0}if(o=Object.keys(n),i=o.length,i!==Object.keys(a).length)return!1;for(s=i;s--!==0;)if(!{}.hasOwnProperty.call(a,o[s]))return!1;for(s=i;s--!==0;){const c=o[s];if(!(c==="_owner"&&n.$$typeof)&&!mu(n[c],a[c]))return!1}return!0}return n!==n&&a!==a}function x0(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Uy(n,a){const i=x0(n);return Math.round(a*i)/i}function Ed(n){const a=b.useRef(n);return lu(()=>{a.current=n}),a}function TC(n){n===void 0&&(n={});const{placement:a="bottom",strategy:i="absolute",middleware:s=[],platform:o,elements:{reference:c,floating:d}={},transform:h=!0,whileElementsMounted:p,open:m}=n,[g,S]=b.useState({x:0,y:0,strategy:i,placement:a,middlewareData:{},isPositioned:!1}),[w,A]=b.useState(s);mu(w,s)||A(s);const[O,_]=b.useState(null),[C,U]=b.useState(null),N=b.useCallback(P=>{P!==ne.current&&(ne.current=P,_(P))},[]),M=b.useCallback(P=>{P!==Z.current&&(Z.current=P,U(P))},[]),L=c||O,B=d||C,ne=b.useRef(null),Z=b.useRef(null),z=b.useRef(g),ae=p!=null,oe=Ed(p),Se=Ed(o),re=Ed(m),ie=b.useCallback(()=>{if(!ne.current||!Z.current)return;const P={placement:a,strategy:i,middleware:w};Se.current&&(P.platform=Se.current),_C(ne.current,Z.current,P).then(J=>{const T={...J,isPositioned:re.current!==!1};ue.current&&!mu(z.current,T)&&(z.current=T,Rl.flushSync(()=>{S(T)}))})},[w,a,i,Se,re]);lu(()=>{m===!1&&z.current.isPositioned&&(z.current.isPositioned=!1,S(P=>({...P,isPositioned:!1})))},[m]);const ue=b.useRef(!1);lu(()=>(ue.current=!0,()=>{ue.current=!1}),[]),lu(()=>{if(L&&(ne.current=L),B&&(Z.current=B),L&&B){if(oe.current)return oe.current(L,B,ie);ie()}},[L,B,ie,oe,ae]);const me=b.useMemo(()=>({reference:ne,floating:Z,setReference:N,setFloating:M}),[N,M]),j=b.useMemo(()=>({reference:L,floating:B}),[L,B]),I=b.useMemo(()=>{const P={position:i,left:0,top:0};if(!j.floating)return P;const J=Uy(j.floating,g.x),T=Uy(j.floating,g.y);return h?{...P,transform:"translate("+J+"px, "+T+"px)",...x0(j.floating)>=1.5&&{willChange:"transform"}}:{position:i,left:J,top:T}},[i,h,j.floating,g.x,g.y]);return b.useMemo(()=>({...g,update:ie,refs:me,elements:j,floatingStyles:I}),[g,ie,me,j,I])}const AC=n=>{function a(i){return{}.hasOwnProperty.call(i,"current")}return{name:"arrow",options:n,fn(i){const{element:s,padding:o}=typeof n=="function"?n(i):n;return s&&a(s)?s.current!=null?zy({element:s.current,padding:o}).fn(i):{}:s?zy({element:s,padding:o}).fn(i):{}}}},CC=(n,a)=>({...vC(n),options:[n,a]}),RC=(n,a)=>({...gC(n),options:[n,a]}),OC=(n,a)=>({...SC(n),options:[n,a]}),MC=(n,a)=>({...yC(n),options:[n,a]}),NC=(n,a)=>({...bC(n),options:[n,a]}),DC=(n,a)=>({...xC(n),options:[n,a]}),jC=(n,a)=>({...AC(n),options:[n,a]});var kC="Arrow",S0=b.forwardRef((n,a)=>{const{children:i,width:s=10,height:o=5,...c}=n;return y.jsx(Ye.svg,{...c,ref:a,width:s,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?i:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});S0.displayName=kC;var zC=S0;function UC(n){const[a,i]=b.useState(void 0);return Bt(()=>{if(n){i({width:n.offsetWidth,height:n.offsetHeight});const s=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const c=o[0];let d,h;if("borderBoxSize"in c){const p=c.borderBoxSize,m=Array.isArray(p)?p[0]:p;d=m.inlineSize,h=m.blockSize}else d=n.offsetWidth,h=n.offsetHeight;i({width:d,height:h})});return s.observe(n,{box:"border-box"}),()=>s.unobserve(n)}else i(void 0)},[n]),a}var Dh="Popper",[_0,Bu]=Ir(Dh),[LC,w0]=_0(Dh),E0=n=>{const{__scopePopper:a,children:i}=n,[s,o]=b.useState(null);return y.jsx(LC,{scope:a,anchor:s,onAnchorChange:o,children:i})};E0.displayName=Dh;var T0="PopperAnchor",A0=b.forwardRef((n,a)=>{const{__scopePopper:i,virtualRef:s,...o}=n,c=w0(T0,i),d=b.useRef(null),h=lt(a,d),p=b.useRef(null);return b.useEffect(()=>{const m=p.current;p.current=s?.current||d.current,m!==p.current&&c.onAnchorChange(p.current)}),s?null:y.jsx(Ye.div,{...o,ref:h})});A0.displayName=T0;var jh="PopperContent",[VC,BC]=_0(jh),C0=b.forwardRef((n,a)=>{const{__scopePopper:i,side:s="bottom",sideOffset:o=0,align:c="center",alignOffset:d=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:m=[],collisionPadding:g=0,sticky:S="partial",hideWhenDetached:w=!1,updatePositionStrategy:A="optimized",onPlaced:O,..._}=n,C=w0(jh,i),[U,N]=b.useState(null),M=lt(a,ee=>N(ee)),[L,B]=b.useState(null),ne=UC(L),Z=ne?.width??0,z=ne?.height??0,ae=s+(c!=="center"?"-"+c:""),oe=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},Se=Array.isArray(m)?m:[m],re=Se.length>0,ie={padding:oe,boundary:Se.filter(qC),altBoundary:re},{refs:ue,floatingStyles:me,placement:j,isPositioned:I,middlewareData:P}=TC({strategy:"fixed",placement:ae,whileElementsMounted:(...ee)=>pC(...ee,{animationFrame:A==="always"}),elements:{reference:C.anchor},middleware:[CC({mainAxis:o+z,alignmentAxis:d}),p&&RC({mainAxis:!0,crossAxis:!1,limiter:S==="partial"?OC():void 0,...ie}),p&&MC({...ie}),NC({...ie,apply:({elements:ee,rects:Te,availableWidth:Xe,availableHeight:He})=>{const{width:Fe,height:Ke}=Te.reference,At=ee.floating.style;At.setProperty("--radix-popper-available-width",`${Xe}px`),At.setProperty("--radix-popper-available-height",`${He}px`),At.setProperty("--radix-popper-anchor-width",`${Fe}px`),At.setProperty("--radix-popper-anchor-height",`${Ke}px`)}}),L&&jC({element:L,padding:h}),PC({arrowWidth:Z,arrowHeight:z}),w&&DC({strategy:"referenceHidden",...ie})]}),[J,T]=M0(j),Y=Xn(O);Bt(()=>{I&&Y?.()},[I,Y]);const se=P.arrow?.x,W=P.arrow?.y,ce=P.arrow?.centerOffset!==0,[Re,xe]=b.useState();return Bt(()=>{U&&xe(window.getComputedStyle(U).zIndex)},[U]),y.jsx("div",{ref:ue.setFloating,"data-radix-popper-content-wrapper":"",style:{...me,transform:I?me.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Re,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:y.jsx(VC,{scope:i,placedSide:J,onArrowChange:B,arrowX:se,arrowY:W,shouldHideArrow:ce,children:y.jsx(Ye.div,{"data-side":J,"data-align":T,..._,ref:M,style:{..._.style,animation:I?void 0:"none"}})})})});C0.displayName=jh;var R0="PopperArrow",HC={top:"bottom",right:"left",bottom:"top",left:"right"},O0=b.forwardRef(function(a,i){const{__scopePopper:s,...o}=a,c=BC(R0,s),d=HC[c.placedSide];return y.jsx("span",{ref:c.onArrowChange,style:{position:"absolute",left:c.arrowX,top:c.arrowY,[d]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[c.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[c.placedSide],visibility:c.shouldHideArrow?"hidden":void 0},children:y.jsx(zC,{...o,ref:i,style:{...o.style,display:"block"}})})});O0.displayName=R0;function qC(n){return n!==null}var PC=n=>({name:"transformOrigin",options:n,fn(a){const{placement:i,rects:s,middlewareData:o}=a,d=o.arrow?.centerOffset!==0,h=d?0:n.arrowWidth,p=d?0:n.arrowHeight,[m,g]=M0(i),S={start:"0%",center:"50%",end:"100%"}[g],w=(o.arrow?.x??0)+h/2,A=(o.arrow?.y??0)+p/2;let O="",_="";return m==="bottom"?(O=d?S:`${w}px`,_=`${-p}px`):m==="top"?(O=d?S:`${w}px`,_=`${s.floating.height+p}px`):m==="right"?(O=`${-p}px`,_=d?S:`${A}px`):m==="left"&&(O=`${s.floating.width+p}px`,_=d?S:`${A}px`),{data:{x:O,y:_}}}});function M0(n){const[a,i="center"]=n.split("-");return[a,i]}var N0=E0,D0=A0,j0=C0,k0=O0,Td="rovingFocusGroup.onEntryFocus",GC={bubbles:!1,cancelable:!0},Ml="RovingFocusGroup",[Id,z0,FC]=wh(Ml),[ZC,U0]=Ir(Ml,[FC]),[YC,IC]=ZC(Ml),L0=b.forwardRef((n,a)=>y.jsx(Id.Provider,{scope:n.__scopeRovingFocusGroup,children:y.jsx(Id.Slot,{scope:n.__scopeRovingFocusGroup,children:y.jsx(QC,{...n,ref:a})})}));L0.displayName=Ml;var QC=b.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:i,orientation:s,loop:o=!1,dir:c,currentTabStopId:d,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:p,onEntryFocus:m,preventScrollOnEntryFocus:g=!1,...S}=n,w=b.useRef(null),A=lt(a,w),O=Eh(c),[_,C]=ul({prop:d,defaultProp:h??null,onChange:p,caller:Ml}),[U,N]=b.useState(!1),M=Xn(m),L=z0(i),B=b.useRef(!1),[ne,Z]=b.useState(0);return b.useEffect(()=>{const z=w.current;if(z)return z.addEventListener(Td,M),()=>z.removeEventListener(Td,M)},[M]),y.jsx(YC,{scope:i,orientation:s,dir:O,loop:o,currentTabStopId:_,onItemFocus:b.useCallback(z=>C(z),[C]),onItemShiftTab:b.useCallback(()=>N(!0),[]),onFocusableItemAdd:b.useCallback(()=>Z(z=>z+1),[]),onFocusableItemRemove:b.useCallback(()=>Z(z=>z-1),[]),children:y.jsx(Ye.div,{tabIndex:U||ne===0?-1:0,"data-orientation":s,...S,ref:A,style:{outline:"none",...n.style},onMouseDown:Ae(n.onMouseDown,()=>{B.current=!0}),onFocus:Ae(n.onFocus,z=>{const ae=!B.current;if(z.target===z.currentTarget&&ae&&!U){const oe=new CustomEvent(Td,GC);if(z.currentTarget.dispatchEvent(oe),!oe.defaultPrevented){const Se=L().filter(j=>j.focusable),re=Se.find(j=>j.active),ie=Se.find(j=>j.id===_),me=[re,ie,...Se].filter(Boolean).map(j=>j.ref.current);H0(me,g)}}B.current=!1}),onBlur:Ae(n.onBlur,()=>N(!1))})})}),V0="RovingFocusGroupItem",B0=b.forwardRef((n,a)=>{const{__scopeRovingFocusGroup:i,focusable:s=!0,active:o=!1,tabStopId:c,children:d,...h}=n,p=Ta(),m=c||p,g=IC(V0,i),S=g.currentTabStopId===m,w=z0(i),{onFocusableItemAdd:A,onFocusableItemRemove:O,currentTabStopId:_}=g;return b.useEffect(()=>{if(s)return A(),()=>O()},[s,A,O]),y.jsx(Id.ItemSlot,{scope:i,id:m,focusable:s,active:o,children:y.jsx(Ye.span,{tabIndex:S?0:-1,"data-orientation":g.orientation,...h,ref:a,onMouseDown:Ae(n.onMouseDown,C=>{s?g.onItemFocus(m):C.preventDefault()}),onFocus:Ae(n.onFocus,()=>g.onItemFocus(m)),onKeyDown:Ae(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){g.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const U=$C(C,g.orientation,g.dir);if(U!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let M=w().filter(L=>L.focusable).map(L=>L.ref.current);if(U==="last")M.reverse();else if(U==="prev"||U==="next"){U==="prev"&&M.reverse();const L=M.indexOf(C.currentTarget);M=g.loop?JC(M,L+1):M.slice(L+1)}setTimeout(()=>H0(M))}}),children:typeof d=="function"?d({isCurrentTabStop:S,hasTabStop:_!=null}):d})})});B0.displayName=V0;var XC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KC(n,a){return a!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function $C(n,a,i){const s=KC(n.key,i);if(!(a==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(a==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return XC[s]}function H0(n,a=!1){const i=document.activeElement;for(const s of n)if(s===i||(s.focus({preventScroll:a}),document.activeElement!==i))return}function JC(n,a){return n.map((i,s)=>n[(a+s)%n.length])}var WC=L0,eR=B0,Qd=["Enter"," "],tR=["ArrowDown","PageUp","Home"],q0=["ArrowUp","PageDown","End"],nR=[...tR,...q0],aR={ltr:[...Qd,"ArrowRight"],rtl:[...Qd,"ArrowLeft"]},rR={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Nl="Menu",[dl,iR,sR]=wh(Nl),[Qr,P0]=Ir(Nl,[sR,Bu,U0]),Hu=Bu(),G0=U0(),[lR,Xr]=Qr(Nl),[oR,Dl]=Qr(Nl),F0=n=>{const{__scopeMenu:a,open:i=!1,children:s,dir:o,onOpenChange:c,modal:d=!0}=n,h=Hu(a),[p,m]=b.useState(null),g=b.useRef(!1),S=Xn(c),w=Eh(o);return b.useEffect(()=>{const A=()=>{g.current=!0,document.addEventListener("pointerdown",O,{capture:!0,once:!0}),document.addEventListener("pointermove",O,{capture:!0,once:!0})},O=()=>g.current=!1;return document.addEventListener("keydown",A,{capture:!0}),()=>{document.removeEventListener("keydown",A,{capture:!0}),document.removeEventListener("pointerdown",O,{capture:!0}),document.removeEventListener("pointermove",O,{capture:!0})}},[]),y.jsx(N0,{...h,children:y.jsx(lR,{scope:a,open:i,onOpenChange:S,content:p,onContentChange:m,children:y.jsx(oR,{scope:a,onClose:b.useCallback(()=>S(!1),[S]),isUsingKeyboardRef:g,dir:w,modal:d,children:s})})})};F0.displayName=Nl;var uR="MenuAnchor",kh=b.forwardRef((n,a)=>{const{__scopeMenu:i,...s}=n,o=Hu(i);return y.jsx(D0,{...o,...s,ref:a})});kh.displayName=uR;var zh="MenuPortal",[cR,Z0]=Qr(zh,{forceMount:void 0}),Y0=n=>{const{__scopeMenu:a,forceMount:i,children:s,container:o}=n,c=Xr(zh,a);return y.jsx(cR,{scope:a,forceMount:i,children:y.jsx(fr,{present:i||c.open,children:y.jsx(Du,{asChild:!0,container:o,children:s})})})};Y0.displayName=zh;var En="MenuContent",[fR,Uh]=Qr(En),I0=b.forwardRef((n,a)=>{const i=Z0(En,n.__scopeMenu),{forceMount:s=i.forceMount,...o}=n,c=Xr(En,n.__scopeMenu),d=Dl(En,n.__scopeMenu);return y.jsx(dl.Provider,{scope:n.__scopeMenu,children:y.jsx(fr,{present:s||c.open,children:y.jsx(dl.Slot,{scope:n.__scopeMenu,children:d.modal?y.jsx(dR,{...o,ref:a}):y.jsx(hR,{...o,ref:a})})})})}),dR=b.forwardRef((n,a)=>{const i=Xr(En,n.__scopeMenu),s=b.useRef(null),o=lt(a,s);return b.useEffect(()=>{const c=s.current;if(c)return bh(c)},[]),y.jsx(Lh,{...n,ref:o,trapFocus:i.open,disableOutsidePointerEvents:i.open,disableOutsideScroll:!0,onFocusOutside:Ae(n.onFocusOutside,c=>c.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>i.onOpenChange(!1)})}),hR=b.forwardRef((n,a)=>{const i=Xr(En,n.__scopeMenu);return y.jsx(Lh,{...n,ref:a,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>i.onOpenChange(!1)})}),mR=Br("MenuContent.ScrollLock"),Lh=b.forwardRef((n,a)=>{const{__scopeMenu:i,loop:s=!1,trapFocus:o,onOpenAutoFocus:c,onCloseAutoFocus:d,disableOutsidePointerEvents:h,onEntryFocus:p,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:S,onInteractOutside:w,onDismiss:A,disableOutsideScroll:O,..._}=n,C=Xr(En,i),U=Dl(En,i),N=Hu(i),M=G0(i),L=iR(i),[B,ne]=b.useState(null),Z=b.useRef(null),z=lt(a,Z,C.onContentChange),ae=b.useRef(0),oe=b.useRef(""),Se=b.useRef(0),re=b.useRef(null),ie=b.useRef("right"),ue=b.useRef(0),me=O?ku:b.Fragment,j=O?{as:mR,allowPinchZoom:!0}:void 0,I=J=>{const T=oe.current+J,Y=L().filter(ee=>!ee.disabled),se=document.activeElement,W=Y.find(ee=>ee.ref.current===se)?.textValue,ce=Y.map(ee=>ee.textValue),Re=AR(ce,T,W),xe=Y.find(ee=>ee.textValue===Re)?.ref.current;(function ee(Te){oe.current=Te,window.clearTimeout(ae.current),Te!==""&&(ae.current=window.setTimeout(()=>ee(""),1e3))})(T),xe&&setTimeout(()=>xe.focus())};b.useEffect(()=>()=>window.clearTimeout(ae.current),[]),yh();const P=b.useCallback(J=>ie.current===re.current?.side&&RR(J,re.current?.area),[]);return y.jsx(fR,{scope:i,searchRef:oe,onItemEnter:b.useCallback(J=>{P(J)&&J.preventDefault()},[P]),onItemLeave:b.useCallback(J=>{P(J)||(Z.current?.focus(),ne(null))},[P]),onTriggerLeave:b.useCallback(J=>{P(J)&&J.preventDefault()},[P]),pointerGraceTimerRef:Se,onPointerGraceIntentChange:b.useCallback(J=>{re.current=J},[]),children:y.jsx(me,{...j,children:y.jsx(Nu,{asChild:!0,trapped:o,onMountAutoFocus:Ae(c,J=>{J.preventDefault(),Z.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:d,children:y.jsx(Mu,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:S,onInteractOutside:w,onDismiss:A,children:y.jsx(WC,{asChild:!0,...M,dir:U.dir,orientation:"vertical",loop:s,currentTabStopId:B,onCurrentTabStopIdChange:ne,onEntryFocus:Ae(p,J=>{U.isUsingKeyboardRef.current||J.preventDefault()}),preventScrollOnEntryFocus:!0,children:y.jsx(j0,{role:"menu","aria-orientation":"vertical","data-state":ux(C.open),"data-radix-menu-content":"",dir:U.dir,...N,..._,ref:z,style:{outline:"none",..._.style},onKeyDown:Ae(_.onKeyDown,J=>{const Y=J.target.closest("[data-radix-menu-content]")===J.currentTarget,se=J.ctrlKey||J.altKey||J.metaKey,W=J.key.length===1;Y&&(J.key==="Tab"&&J.preventDefault(),!se&&W&&I(J.key));const ce=Z.current;if(J.target!==ce||!nR.includes(J.key))return;J.preventDefault();const xe=L().filter(ee=>!ee.disabled).map(ee=>ee.ref.current);q0.includes(J.key)&&xe.reverse(),ER(xe)}),onBlur:Ae(n.onBlur,J=>{J.currentTarget.contains(J.target)||(window.clearTimeout(ae.current),oe.current="")}),onPointerMove:Ae(n.onPointerMove,hl(J=>{const T=J.target,Y=ue.current!==J.clientX;if(J.currentTarget.contains(T)&&Y){const se=J.clientX>ue.current?"right":"left";ie.current=se,ue.current=J.clientX}}))})})})})})})});I0.displayName=En;var pR="MenuGroup",Vh=b.forwardRef((n,a)=>{const{__scopeMenu:i,...s}=n;return y.jsx(Ye.div,{role:"group",...s,ref:a})});Vh.displayName=pR;var vR="MenuLabel",Q0=b.forwardRef((n,a)=>{const{__scopeMenu:i,...s}=n;return y.jsx(Ye.div,{...s,ref:a})});Q0.displayName=vR;var pu="MenuItem",Ly="menu.itemSelect",qu=b.forwardRef((n,a)=>{const{disabled:i=!1,onSelect:s,...o}=n,c=b.useRef(null),d=Dl(pu,n.__scopeMenu),h=Uh(pu,n.__scopeMenu),p=lt(a,c),m=b.useRef(!1),g=()=>{const S=c.current;if(!i&&S){const w=new CustomEvent(Ly,{bubbles:!0,cancelable:!0});S.addEventListener(Ly,A=>s?.(A),{once:!0}),Ob(S,w),w.defaultPrevented?m.current=!1:d.onClose()}};return y.jsx(X0,{...o,ref:p,disabled:i,onClick:Ae(n.onClick,g),onPointerDown:S=>{n.onPointerDown?.(S),m.current=!0},onPointerUp:Ae(n.onPointerUp,S=>{m.current||S.currentTarget?.click()}),onKeyDown:Ae(n.onKeyDown,S=>{const w=h.searchRef.current!=="";i||w&&S.key===" "||Qd.includes(S.key)&&(S.currentTarget.click(),S.preventDefault())})})});qu.displayName=pu;var X0=b.forwardRef((n,a)=>{const{__scopeMenu:i,disabled:s=!1,textValue:o,...c}=n,d=Uh(pu,i),h=G0(i),p=b.useRef(null),m=lt(a,p),[g,S]=b.useState(!1),[w,A]=b.useState("");return b.useEffect(()=>{const O=p.current;O&&A((O.textContent??"").trim())},[c.children]),y.jsx(dl.ItemSlot,{scope:i,disabled:s,textValue:o??w,children:y.jsx(eR,{asChild:!0,...h,focusable:!s,children:y.jsx(Ye.div,{role:"menuitem","data-highlighted":g?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...c,ref:m,onPointerMove:Ae(n.onPointerMove,hl(O=>{s?d.onItemLeave(O):(d.onItemEnter(O),O.defaultPrevented||O.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:Ae(n.onPointerLeave,hl(O=>d.onItemLeave(O))),onFocus:Ae(n.onFocus,()=>S(!0)),onBlur:Ae(n.onBlur,()=>S(!1))})})})}),gR="MenuCheckboxItem",K0=b.forwardRef((n,a)=>{const{checked:i=!1,onCheckedChange:s,...o}=n;return y.jsx(tx,{scope:n.__scopeMenu,checked:i,children:y.jsx(qu,{role:"menuitemcheckbox","aria-checked":vu(i)?"mixed":i,...o,ref:a,"data-state":Hh(i),onSelect:Ae(o.onSelect,()=>s?.(vu(i)?!0:!i),{checkForDefaultPrevented:!1})})})});K0.displayName=gR;var $0="MenuRadioGroup",[yR,bR]=Qr($0,{value:void 0,onValueChange:()=>{}}),J0=b.forwardRef((n,a)=>{const{value:i,onValueChange:s,...o}=n,c=Xn(s);return y.jsx(yR,{scope:n.__scopeMenu,value:i,onValueChange:c,children:y.jsx(Vh,{...o,ref:a})})});J0.displayName=$0;var W0="MenuRadioItem",ex=b.forwardRef((n,a)=>{const{value:i,...s}=n,o=bR(W0,n.__scopeMenu),c=i===o.value;return y.jsx(tx,{scope:n.__scopeMenu,checked:c,children:y.jsx(qu,{role:"menuitemradio","aria-checked":c,...s,ref:a,"data-state":Hh(c),onSelect:Ae(s.onSelect,()=>o.onValueChange?.(i),{checkForDefaultPrevented:!1})})})});ex.displayName=W0;var Bh="MenuItemIndicator",[tx,xR]=Qr(Bh,{checked:!1}),nx=b.forwardRef((n,a)=>{const{__scopeMenu:i,forceMount:s,...o}=n,c=xR(Bh,i);return y.jsx(fr,{present:s||vu(c.checked)||c.checked===!0,children:y.jsx(Ye.span,{...o,ref:a,"data-state":Hh(c.checked)})})});nx.displayName=Bh;var SR="MenuSeparator",ax=b.forwardRef((n,a)=>{const{__scopeMenu:i,...s}=n;return y.jsx(Ye.div,{role:"separator","aria-orientation":"horizontal",...s,ref:a})});ax.displayName=SR;var _R="MenuArrow",rx=b.forwardRef((n,a)=>{const{__scopeMenu:i,...s}=n,o=Hu(i);return y.jsx(k0,{...o,...s,ref:a})});rx.displayName=_R;var wR="MenuSub",[y2,ix]=Qr(wR),al="MenuSubTrigger",sx=b.forwardRef((n,a)=>{const i=Xr(al,n.__scopeMenu),s=Dl(al,n.__scopeMenu),o=ix(al,n.__scopeMenu),c=Uh(al,n.__scopeMenu),d=b.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:p}=c,m={__scopeMenu:n.__scopeMenu},g=b.useCallback(()=>{d.current&&window.clearTimeout(d.current),d.current=null},[]);return b.useEffect(()=>g,[g]),b.useEffect(()=>{const S=h.current;return()=>{window.clearTimeout(S),p(null)}},[h,p]),y.jsx(kh,{asChild:!0,...m,children:y.jsx(X0,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":o.contentId,"data-state":ux(i.open),...n,ref:Ou(a,o.onTriggerChange),onClick:S=>{n.onClick?.(S),!(n.disabled||S.defaultPrevented)&&(S.currentTarget.focus(),i.open||i.onOpenChange(!0))},onPointerMove:Ae(n.onPointerMove,hl(S=>{c.onItemEnter(S),!S.defaultPrevented&&!n.disabled&&!i.open&&!d.current&&(c.onPointerGraceIntentChange(null),d.current=window.setTimeout(()=>{i.onOpenChange(!0),g()},100))})),onPointerLeave:Ae(n.onPointerLeave,hl(S=>{g();const w=i.content?.getBoundingClientRect();if(w){const A=i.content?.dataset.side,O=A==="right",_=O?-5:5,C=w[O?"left":"right"],U=w[O?"right":"left"];c.onPointerGraceIntentChange({area:[{x:S.clientX+_,y:S.clientY},{x:C,y:w.top},{x:U,y:w.top},{x:U,y:w.bottom},{x:C,y:w.bottom}],side:A}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>c.onPointerGraceIntentChange(null),300)}else{if(c.onTriggerLeave(S),S.defaultPrevented)return;c.onPointerGraceIntentChange(null)}})),onKeyDown:Ae(n.onKeyDown,S=>{const w=c.searchRef.current!=="";n.disabled||w&&S.key===" "||aR[s.dir].includes(S.key)&&(i.onOpenChange(!0),i.content?.focus(),S.preventDefault())})})})});sx.displayName=al;var lx="MenuSubContent",ox=b.forwardRef((n,a)=>{const i=Z0(En,n.__scopeMenu),{forceMount:s=i.forceMount,...o}=n,c=Xr(En,n.__scopeMenu),d=Dl(En,n.__scopeMenu),h=ix(lx,n.__scopeMenu),p=b.useRef(null),m=lt(a,p);return y.jsx(dl.Provider,{scope:n.__scopeMenu,children:y.jsx(fr,{present:s||c.open,children:y.jsx(dl.Slot,{scope:n.__scopeMenu,children:y.jsx(Lh,{id:h.contentId,"aria-labelledby":h.triggerId,...o,ref:m,align:"start",side:d.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:g=>{d.isUsingKeyboardRef.current&&p.current?.focus(),g.preventDefault()},onCloseAutoFocus:g=>g.preventDefault(),onFocusOutside:Ae(n.onFocusOutside,g=>{g.target!==h.trigger&&c.onOpenChange(!1)}),onEscapeKeyDown:Ae(n.onEscapeKeyDown,g=>{d.onClose(),g.preventDefault()}),onKeyDown:Ae(n.onKeyDown,g=>{const S=g.currentTarget.contains(g.target),w=rR[d.dir].includes(g.key);S&&w&&(c.onOpenChange(!1),h.trigger?.focus(),g.preventDefault())})})})})})});ox.displayName=lx;function ux(n){return n?"open":"closed"}function vu(n){return n==="indeterminate"}function Hh(n){return vu(n)?"indeterminate":n?"checked":"unchecked"}function ER(n){const a=document.activeElement;for(const i of n)if(i===a||(i.focus(),document.activeElement!==a))return}function TR(n,a){return n.map((i,s)=>n[(a+s)%n.length])}function AR(n,a,i){const o=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,c=i?n.indexOf(i):-1;let d=TR(n,Math.max(c,0));o.length===1&&(d=d.filter(m=>m!==i));const p=d.find(m=>m.toLowerCase().startsWith(o.toLowerCase()));return p!==i?p:void 0}function CR(n,a){const{x:i,y:s}=n;let o=!1;for(let c=0,d=a.length-1;c<a.length;d=c++){const h=a[c],p=a[d],m=h.x,g=h.y,S=p.x,w=p.y;g>s!=w>s&&i<(S-m)*(s-g)/(w-g)+m&&(o=!o)}return o}function RR(n,a){if(!a)return!1;const i={x:n.clientX,y:n.clientY};return CR(i,a)}function hl(n){return a=>a.pointerType==="mouse"?n(a):void 0}var OR=F0,MR=kh,NR=Y0,DR=I0,jR=Vh,kR=Q0,zR=qu,UR=K0,LR=J0,VR=ex,BR=nx,HR=ax,qR=rx,PR=sx,GR=ox,Pu="DropdownMenu",[FR,b2]=Ir(Pu,[P0]),Zt=P0(),[ZR,cx]=FR(Pu),fx=n=>{const{__scopeDropdownMenu:a,children:i,dir:s,open:o,defaultOpen:c,onOpenChange:d,modal:h=!0}=n,p=Zt(a),m=b.useRef(null),[g,S]=ul({prop:o,defaultProp:c??!1,onChange:d,caller:Pu});return y.jsx(ZR,{scope:a,triggerId:Ta(),triggerRef:m,contentId:Ta(),open:g,onOpenChange:S,onOpenToggle:b.useCallback(()=>S(w=>!w),[S]),modal:h,children:y.jsx(OR,{...p,open:g,onOpenChange:S,dir:s,modal:h,children:i})})};fx.displayName=Pu;var dx="DropdownMenuTrigger",hx=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,disabled:s=!1,...o}=n,c=cx(dx,i),d=Zt(i);return y.jsx(MR,{asChild:!0,...d,children:y.jsx(Ye.button,{type:"button",id:c.triggerId,"aria-haspopup":"menu","aria-expanded":c.open,"aria-controls":c.open?c.contentId:void 0,"data-state":c.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...o,ref:Ou(a,c.triggerRef),onPointerDown:Ae(n.onPointerDown,h=>{!s&&h.button===0&&h.ctrlKey===!1&&(c.onOpenToggle(),c.open||h.preventDefault())}),onKeyDown:Ae(n.onKeyDown,h=>{s||(["Enter"," "].includes(h.key)&&c.onOpenToggle(),h.key==="ArrowDown"&&c.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(h.key)&&h.preventDefault())})})})});hx.displayName=dx;var YR="DropdownMenuPortal",mx=n=>{const{__scopeDropdownMenu:a,...i}=n,s=Zt(a);return y.jsx(NR,{...s,...i})};mx.displayName=YR;var px="DropdownMenuContent",vx=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=cx(px,i),c=Zt(i),d=b.useRef(!1);return y.jsx(DR,{id:o.contentId,"aria-labelledby":o.triggerId,...c,...s,ref:a,onCloseAutoFocus:Ae(n.onCloseAutoFocus,h=>{d.current||o.triggerRef.current?.focus(),d.current=!1,h.preventDefault()}),onInteractOutside:Ae(n.onInteractOutside,h=>{const p=h.detail.originalEvent,m=p.button===0&&p.ctrlKey===!0,g=p.button===2||m;(!o.modal||g)&&(d.current=!0)}),style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});vx.displayName=px;var IR="DropdownMenuGroup",QR=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(jR,{...o,...s,ref:a})});QR.displayName=IR;var XR="DropdownMenuLabel",KR=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(kR,{...o,...s,ref:a})});KR.displayName=XR;var $R="DropdownMenuItem",gx=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(zR,{...o,...s,ref:a})});gx.displayName=$R;var JR="DropdownMenuCheckboxItem",WR=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(UR,{...o,...s,ref:a})});WR.displayName=JR;var eO="DropdownMenuRadioGroup",tO=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(LR,{...o,...s,ref:a})});tO.displayName=eO;var nO="DropdownMenuRadioItem",aO=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(VR,{...o,...s,ref:a})});aO.displayName=nO;var rO="DropdownMenuItemIndicator",iO=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(BR,{...o,...s,ref:a})});iO.displayName=rO;var sO="DropdownMenuSeparator",lO=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(HR,{...o,...s,ref:a})});lO.displayName=sO;var oO="DropdownMenuArrow",uO=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(qR,{...o,...s,ref:a})});uO.displayName=oO;var cO="DropdownMenuSubTrigger",fO=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(PR,{...o,...s,ref:a})});fO.displayName=cO;var dO="DropdownMenuSubContent",hO=b.forwardRef((n,a)=>{const{__scopeDropdownMenu:i,...s}=n,o=Zt(i);return y.jsx(GR,{...o,...s,ref:a,style:{...n.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});hO.displayName=dO;var mO=fx,pO=hx,vO=mx,gO=vx,yO=gx;function bO({...n}){return y.jsx(mO,{"data-slot":"dropdown-menu",...n})}function xO({...n}){return y.jsx(pO,{"data-slot":"dropdown-menu-trigger",...n})}function SO({className:n,sideOffset:a=4,...i}){return y.jsx(vO,{children:y.jsx(gO,{"data-slot":"dropdown-menu-content",sideOffset:a,className:We("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",n),...i})})}function Vy({className:n,inset:a,variant:i="default",...s}){return y.jsx(yO,{"data-slot":"dropdown-menu-item","data-inset":a,"data-variant":i,className:We("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...s})}function zr({className:n,type:a,...i}){return y.jsx("input",{type:a,"data-slot":"input",className:We("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",n),...i})}function By(n,[a,i]){return Math.min(i,Math.max(a,n))}function _O(n){const a=b.useRef({value:n,previous:n});return b.useMemo(()=>(a.current.value!==n&&(a.current.previous=a.current.value,a.current.value=n),a.current.previous),[n])}var yx=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),wO="VisuallyHidden",EO=b.forwardRef((n,a)=>y.jsx(Ye.span,{...n,ref:a,style:{...yx,...n.style}}));EO.displayName=wO;var TO=[" ","Enter","ArrowUp","ArrowDown"],AO=[" ","Enter"],Pr="Select",[Gu,Fu,CO]=wh(Pr),[es,x2]=Ir(Pr,[CO,Bu]),Zu=Bu(),[RO,dr]=es(Pr),[OO,MO]=es(Pr),bx=n=>{const{__scopeSelect:a,children:i,open:s,defaultOpen:o,onOpenChange:c,value:d,defaultValue:h,onValueChange:p,dir:m,name:g,autoComplete:S,disabled:w,required:A,form:O}=n,_=Zu(a),[C,U]=b.useState(null),[N,M]=b.useState(null),[L,B]=b.useState(!1),ne=Eh(m),[Z,z]=ul({prop:s,defaultProp:o??!1,onChange:c,caller:Pr}),[ae,oe]=ul({prop:d,defaultProp:h,onChange:p,caller:Pr}),Se=b.useRef(null),re=C?O||!!C.closest("form"):!0,[ie,ue]=b.useState(new Set),me=Array.from(ie).map(j=>j.props.value).join(";");return y.jsx(N0,{..._,children:y.jsxs(RO,{required:A,scope:a,trigger:C,onTriggerChange:U,valueNode:N,onValueNodeChange:M,valueNodeHasChildren:L,onValueNodeHasChildrenChange:B,contentId:Ta(),value:ae,onValueChange:oe,open:Z,onOpenChange:z,dir:ne,triggerPointerDownPosRef:Se,disabled:w,children:[y.jsx(Gu.Provider,{scope:a,children:y.jsx(OO,{scope:n.__scopeSelect,onNativeOptionAdd:b.useCallback(j=>{ue(I=>new Set(I).add(j))},[]),onNativeOptionRemove:b.useCallback(j=>{ue(I=>{const P=new Set(I);return P.delete(j),P})},[]),children:i})}),re?y.jsxs(Px,{"aria-hidden":!0,required:A,tabIndex:-1,name:g,autoComplete:S,value:ae,onChange:j=>oe(j.target.value),disabled:w,form:O,children:[ae===void 0?y.jsx("option",{value:""}):null,Array.from(ie)]},me):null]})})};bx.displayName=Pr;var xx="SelectTrigger",Sx=b.forwardRef((n,a)=>{const{__scopeSelect:i,disabled:s=!1,...o}=n,c=Zu(i),d=dr(xx,i),h=d.disabled||s,p=lt(a,d.onTriggerChange),m=Fu(i),g=b.useRef("touch"),[S,w,A]=Fx(_=>{const C=m().filter(M=>!M.disabled),U=C.find(M=>M.value===d.value),N=Zx(C,_,U);N!==void 0&&d.onValueChange(N.value)}),O=_=>{h||(d.onOpenChange(!0),A()),_&&(d.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})};return y.jsx(D0,{asChild:!0,...c,children:y.jsx(Ye.button,{type:"button",role:"combobox","aria-controls":d.contentId,"aria-expanded":d.open,"aria-required":d.required,"aria-autocomplete":"none",dir:d.dir,"data-state":d.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Gx(d.value)?"":void 0,...o,ref:p,onClick:Ae(o.onClick,_=>{_.currentTarget.focus(),g.current!=="mouse"&&O(_)}),onPointerDown:Ae(o.onPointerDown,_=>{g.current=_.pointerType;const C=_.target;C.hasPointerCapture(_.pointerId)&&C.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(O(_),_.preventDefault())}),onKeyDown:Ae(o.onKeyDown,_=>{const C=S.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&w(_.key),!(C&&_.key===" ")&&TO.includes(_.key)&&(O(),_.preventDefault())})})})});Sx.displayName=xx;var _x="SelectValue",wx=b.forwardRef((n,a)=>{const{__scopeSelect:i,className:s,style:o,children:c,placeholder:d="",...h}=n,p=dr(_x,i),{onValueNodeHasChildrenChange:m}=p,g=c!==void 0,S=lt(a,p.onValueNodeChange);return Bt(()=>{m(g)},[m,g]),y.jsx(Ye.span,{...h,ref:S,style:{pointerEvents:"none"},children:Gx(p.value)?y.jsx(y.Fragment,{children:d}):c})});wx.displayName=_x;var NO="SelectIcon",Ex=b.forwardRef((n,a)=>{const{__scopeSelect:i,children:s,...o}=n;return y.jsx(Ye.span,{"aria-hidden":!0,...o,ref:a,children:s||"▼"})});Ex.displayName=NO;var DO="SelectPortal",Tx=n=>y.jsx(Du,{asChild:!0,...n});Tx.displayName=DO;var Gr="SelectContent",Ax=b.forwardRef((n,a)=>{const i=dr(Gr,n.__scopeSelect),[s,o]=b.useState();if(Bt(()=>{o(new DocumentFragment)},[]),!i.open){const c=s;return c?Rl.createPortal(y.jsx(Cx,{scope:n.__scopeSelect,children:y.jsx(Gu.Slot,{scope:n.__scopeSelect,children:y.jsx("div",{children:n.children})})}),c):null}return y.jsx(Rx,{...n,ref:a})});Ax.displayName=Gr;var Rn=10,[Cx,hr]=es(Gr),jO="SelectContentImpl",kO=Br("SelectContent.RemoveScroll"),Rx=b.forwardRef((n,a)=>{const{__scopeSelect:i,position:s="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:c,onPointerDownOutside:d,side:h,sideOffset:p,align:m,alignOffset:g,arrowPadding:S,collisionBoundary:w,collisionPadding:A,sticky:O,hideWhenDetached:_,avoidCollisions:C,...U}=n,N=dr(Gr,i),[M,L]=b.useState(null),[B,ne]=b.useState(null),Z=lt(a,ee=>L(ee)),[z,ae]=b.useState(null),[oe,Se]=b.useState(null),re=Fu(i),[ie,ue]=b.useState(!1),me=b.useRef(!1);b.useEffect(()=>{if(M)return bh(M)},[M]),yh();const j=b.useCallback(ee=>{const[Te,...Xe]=re().map(Ke=>Ke.ref.current),[He]=Xe.slice(-1),Fe=document.activeElement;for(const Ke of ee)if(Ke===Fe||(Ke?.scrollIntoView({block:"nearest"}),Ke===Te&&B&&(B.scrollTop=0),Ke===He&&B&&(B.scrollTop=B.scrollHeight),Ke?.focus(),document.activeElement!==Fe))return},[re,B]),I=b.useCallback(()=>j([z,M]),[j,z,M]);b.useEffect(()=>{ie&&I()},[ie,I]);const{onOpenChange:P,triggerPointerDownPosRef:J}=N;b.useEffect(()=>{if(M){let ee={x:0,y:0};const Te=He=>{ee={x:Math.abs(Math.round(He.pageX)-(J.current?.x??0)),y:Math.abs(Math.round(He.pageY)-(J.current?.y??0))}},Xe=He=>{ee.x<=10&&ee.y<=10?He.preventDefault():M.contains(He.target)||P(!1),document.removeEventListener("pointermove",Te),J.current=null};return J.current!==null&&(document.addEventListener("pointermove",Te),document.addEventListener("pointerup",Xe,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Te),document.removeEventListener("pointerup",Xe,{capture:!0})}}},[M,P,J]),b.useEffect(()=>{const ee=()=>P(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[P]);const[T,Y]=Fx(ee=>{const Te=re().filter(Fe=>!Fe.disabled),Xe=Te.find(Fe=>Fe.ref.current===document.activeElement),He=Zx(Te,ee,Xe);He&&setTimeout(()=>He.ref.current.focus())}),se=b.useCallback((ee,Te,Xe)=>{const He=!me.current&&!Xe;(N.value!==void 0&&N.value===Te||He)&&(ae(ee),He&&(me.current=!0))},[N.value]),W=b.useCallback(()=>M?.focus(),[M]),ce=b.useCallback((ee,Te,Xe)=>{const He=!me.current&&!Xe;(N.value!==void 0&&N.value===Te||He)&&Se(ee)},[N.value]),Re=s==="popper"?Xd:Ox,xe=Re===Xd?{side:h,sideOffset:p,align:m,alignOffset:g,arrowPadding:S,collisionBoundary:w,collisionPadding:A,sticky:O,hideWhenDetached:_,avoidCollisions:C}:{};return y.jsx(Cx,{scope:i,content:M,viewport:B,onViewportChange:ne,itemRefCallback:se,selectedItem:z,onItemLeave:W,itemTextRefCallback:ce,focusSelectedItem:I,selectedItemText:oe,position:s,isPositioned:ie,searchRef:T,children:y.jsx(ku,{as:kO,allowPinchZoom:!0,children:y.jsx(Nu,{asChild:!0,trapped:N.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Ae(o,ee=>{N.trigger?.focus({preventScroll:!0}),ee.preventDefault()}),children:y.jsx(Mu,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>N.onOpenChange(!1),children:y.jsx(Re,{role:"listbox",id:N.contentId,"data-state":N.open?"open":"closed",dir:N.dir,onContextMenu:ee=>ee.preventDefault(),...U,...xe,onPlaced:()=>ue(!0),ref:Z,style:{display:"flex",flexDirection:"column",outline:"none",...U.style},onKeyDown:Ae(U.onKeyDown,ee=>{const Te=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!Te&&ee.key.length===1&&Y(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let He=re().filter(Fe=>!Fe.disabled).map(Fe=>Fe.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(He=He.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const Fe=ee.target,Ke=He.indexOf(Fe);He=He.slice(Ke+1)}setTimeout(()=>j(He)),ee.preventDefault()}})})})})})})});Rx.displayName=jO;var zO="SelectItemAlignedPosition",Ox=b.forwardRef((n,a)=>{const{__scopeSelect:i,onPlaced:s,...o}=n,c=dr(Gr,i),d=hr(Gr,i),[h,p]=b.useState(null),[m,g]=b.useState(null),S=lt(a,Z=>g(Z)),w=Fu(i),A=b.useRef(!1),O=b.useRef(!0),{viewport:_,selectedItem:C,selectedItemText:U,focusSelectedItem:N}=d,M=b.useCallback(()=>{if(c.trigger&&c.valueNode&&h&&m&&_&&C&&U){const Z=c.trigger.getBoundingClientRect(),z=m.getBoundingClientRect(),ae=c.valueNode.getBoundingClientRect(),oe=U.getBoundingClientRect();if(c.dir!=="rtl"){const Fe=oe.left-z.left,Ke=ae.left-Fe,At=Z.left-Ke,Yt=Z.width+At,Oa=Math.max(Yt,z.width),mr=window.innerWidth-Rn,zt=By(Ke,[Rn,Math.max(Rn,mr-Oa)]);h.style.minWidth=Yt+"px",h.style.left=zt+"px"}else{const Fe=z.right-oe.right,Ke=window.innerWidth-ae.right-Fe,At=window.innerWidth-Z.right-Ke,Yt=Z.width+At,Oa=Math.max(Yt,z.width),mr=window.innerWidth-Rn,zt=By(Ke,[Rn,Math.max(Rn,mr-Oa)]);h.style.minWidth=Yt+"px",h.style.right=zt+"px"}const Se=w(),re=window.innerHeight-Rn*2,ie=_.scrollHeight,ue=window.getComputedStyle(m),me=parseInt(ue.borderTopWidth,10),j=parseInt(ue.paddingTop,10),I=parseInt(ue.borderBottomWidth,10),P=parseInt(ue.paddingBottom,10),J=me+j+ie+P+I,T=Math.min(C.offsetHeight*5,J),Y=window.getComputedStyle(_),se=parseInt(Y.paddingTop,10),W=parseInt(Y.paddingBottom,10),ce=Z.top+Z.height/2-Rn,Re=re-ce,xe=C.offsetHeight/2,ee=C.offsetTop+xe,Te=me+j+ee,Xe=J-Te;if(Te<=ce){const Fe=Se.length>0&&C===Se[Se.length-1].ref.current;h.style.bottom="0px";const Ke=m.clientHeight-_.offsetTop-_.offsetHeight,At=Math.max(Re,xe+(Fe?W:0)+Ke+I),Yt=Te+At;h.style.height=Yt+"px"}else{const Fe=Se.length>0&&C===Se[0].ref.current;h.style.top="0px";const At=Math.max(ce,me+_.offsetTop+(Fe?se:0)+xe)+Xe;h.style.height=At+"px",_.scrollTop=Te-ce+_.offsetTop}h.style.margin=`${Rn}px 0`,h.style.minHeight=T+"px",h.style.maxHeight=re+"px",s?.(),requestAnimationFrame(()=>A.current=!0)}},[w,c.trigger,c.valueNode,h,m,_,C,U,c.dir,s]);Bt(()=>M(),[M]);const[L,B]=b.useState();Bt(()=>{m&&B(window.getComputedStyle(m).zIndex)},[m]);const ne=b.useCallback(Z=>{Z&&O.current===!0&&(M(),N?.(),O.current=!1)},[M,N]);return y.jsx(LO,{scope:i,contentWrapper:h,shouldExpandOnScrollRef:A,onScrollButtonChange:ne,children:y.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:L},children:y.jsx(Ye.div,{...o,ref:S,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ox.displayName=zO;var UO="SelectPopperPosition",Xd=b.forwardRef((n,a)=>{const{__scopeSelect:i,align:s="start",collisionPadding:o=Rn,...c}=n,d=Zu(i);return y.jsx(j0,{...d,...c,ref:a,align:s,collisionPadding:o,style:{boxSizing:"border-box",...c.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Xd.displayName=UO;var[LO,qh]=es(Gr,{}),Kd="SelectViewport",Mx=b.forwardRef((n,a)=>{const{__scopeSelect:i,nonce:s,...o}=n,c=hr(Kd,i),d=qh(Kd,i),h=lt(a,c.onViewportChange),p=b.useRef(0);return y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),y.jsx(Gu.Slot,{scope:i,children:y.jsx(Ye.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Ae(o.onScroll,m=>{const g=m.currentTarget,{contentWrapper:S,shouldExpandOnScrollRef:w}=d;if(w?.current&&S){const A=Math.abs(p.current-g.scrollTop);if(A>0){const O=window.innerHeight-Rn*2,_=parseFloat(S.style.minHeight),C=parseFloat(S.style.height),U=Math.max(_,C);if(U<O){const N=U+A,M=Math.min(O,N),L=N-M;S.style.height=M+"px",S.style.bottom==="0px"&&(g.scrollTop=L>0?L:0,S.style.justifyContent="flex-end")}}}p.current=g.scrollTop})})})]})});Mx.displayName=Kd;var Nx="SelectGroup",[VO,BO]=es(Nx),Dx=b.forwardRef((n,a)=>{const{__scopeSelect:i,...s}=n,o=Ta();return y.jsx(VO,{scope:i,id:o,children:y.jsx(Ye.div,{role:"group","aria-labelledby":o,...s,ref:a})})});Dx.displayName=Nx;var jx="SelectLabel",HO=b.forwardRef((n,a)=>{const{__scopeSelect:i,...s}=n,o=BO(jx,i);return y.jsx(Ye.div,{id:o.id,...s,ref:a})});HO.displayName=jx;var gu="SelectItem",[qO,kx]=es(gu),zx=b.forwardRef((n,a)=>{const{__scopeSelect:i,value:s,disabled:o=!1,textValue:c,...d}=n,h=dr(gu,i),p=hr(gu,i),m=h.value===s,[g,S]=b.useState(c??""),[w,A]=b.useState(!1),O=lt(a,N=>p.itemRefCallback?.(N,s,o)),_=Ta(),C=b.useRef("touch"),U=()=>{o||(h.onValueChange(s),h.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return y.jsx(qO,{scope:i,value:s,disabled:o,textId:_,isSelected:m,onItemTextChange:b.useCallback(N=>{S(M=>M||(N?.textContent??"").trim())},[]),children:y.jsx(Gu.ItemSlot,{scope:i,value:s,disabled:o,textValue:g,children:y.jsx(Ye.div,{role:"option","aria-labelledby":_,"data-highlighted":w?"":void 0,"aria-selected":m&&w,"data-state":m?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...d,ref:O,onFocus:Ae(d.onFocus,()=>A(!0)),onBlur:Ae(d.onBlur,()=>A(!1)),onClick:Ae(d.onClick,()=>{C.current!=="mouse"&&U()}),onPointerUp:Ae(d.onPointerUp,()=>{C.current==="mouse"&&U()}),onPointerDown:Ae(d.onPointerDown,N=>{C.current=N.pointerType}),onPointerMove:Ae(d.onPointerMove,N=>{C.current=N.pointerType,o?p.onItemLeave?.():C.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Ae(d.onPointerLeave,N=>{N.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:Ae(d.onKeyDown,N=>{p.searchRef?.current!==""&&N.key===" "||(AO.includes(N.key)&&U(),N.key===" "&&N.preventDefault())})})})})});zx.displayName=gu;var rl="SelectItemText",Ux=b.forwardRef((n,a)=>{const{__scopeSelect:i,className:s,style:o,...c}=n,d=dr(rl,i),h=hr(rl,i),p=kx(rl,i),m=MO(rl,i),[g,S]=b.useState(null),w=lt(a,U=>S(U),p.onItemTextChange,U=>h.itemTextRefCallback?.(U,p.value,p.disabled)),A=g?.textContent,O=b.useMemo(()=>y.jsx("option",{value:p.value,disabled:p.disabled,children:A},p.value),[p.disabled,p.value,A]),{onNativeOptionAdd:_,onNativeOptionRemove:C}=m;return Bt(()=>(_(O),()=>C(O)),[_,C,O]),y.jsxs(y.Fragment,{children:[y.jsx(Ye.span,{id:p.textId,...c,ref:w}),p.isSelected&&d.valueNode&&!d.valueNodeHasChildren?Rl.createPortal(c.children,d.valueNode):null]})});Ux.displayName=rl;var Lx="SelectItemIndicator",Vx=b.forwardRef((n,a)=>{const{__scopeSelect:i,...s}=n;return kx(Lx,i).isSelected?y.jsx(Ye.span,{"aria-hidden":!0,...s,ref:a}):null});Vx.displayName=Lx;var $d="SelectScrollUpButton",Bx=b.forwardRef((n,a)=>{const i=hr($d,n.__scopeSelect),s=qh($d,n.__scopeSelect),[o,c]=b.useState(!1),d=lt(a,s.onScrollButtonChange);return Bt(()=>{if(i.viewport&&i.isPositioned){let h=function(){const m=p.scrollTop>0;c(m)};const p=i.viewport;return h(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),o?y.jsx(qx,{...n,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:p}=i;h&&p&&(h.scrollTop=h.scrollTop-p.offsetHeight)}}):null});Bx.displayName=$d;var Jd="SelectScrollDownButton",Hx=b.forwardRef((n,a)=>{const i=hr(Jd,n.__scopeSelect),s=qh(Jd,n.__scopeSelect),[o,c]=b.useState(!1),d=lt(a,s.onScrollButtonChange);return Bt(()=>{if(i.viewport&&i.isPositioned){let h=function(){const m=p.scrollHeight-p.clientHeight,g=Math.ceil(p.scrollTop)<m;c(g)};const p=i.viewport;return h(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[i.viewport,i.isPositioned]),o?y.jsx(qx,{...n,ref:d,onAutoScroll:()=>{const{viewport:h,selectedItem:p}=i;h&&p&&(h.scrollTop=h.scrollTop+p.offsetHeight)}}):null});Hx.displayName=Jd;var qx=b.forwardRef((n,a)=>{const{__scopeSelect:i,onAutoScroll:s,...o}=n,c=hr("SelectScrollButton",i),d=b.useRef(null),h=Fu(i),p=b.useCallback(()=>{d.current!==null&&(window.clearInterval(d.current),d.current=null)},[]);return b.useEffect(()=>()=>p(),[p]),Bt(()=>{h().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),y.jsx(Ye.div,{"aria-hidden":!0,...o,ref:a,style:{flexShrink:0,...o.style},onPointerDown:Ae(o.onPointerDown,()=>{d.current===null&&(d.current=window.setInterval(s,50))}),onPointerMove:Ae(o.onPointerMove,()=>{c.onItemLeave?.(),d.current===null&&(d.current=window.setInterval(s,50))}),onPointerLeave:Ae(o.onPointerLeave,()=>{p()})})}),PO="SelectSeparator",GO=b.forwardRef((n,a)=>{const{__scopeSelect:i,...s}=n;return y.jsx(Ye.div,{"aria-hidden":!0,...s,ref:a})});GO.displayName=PO;var Wd="SelectArrow",FO=b.forwardRef((n,a)=>{const{__scopeSelect:i,...s}=n,o=Zu(i),c=dr(Wd,i),d=hr(Wd,i);return c.open&&d.position==="popper"?y.jsx(k0,{...o,...s,ref:a}):null});FO.displayName=Wd;var ZO="SelectBubbleInput",Px=b.forwardRef(({__scopeSelect:n,value:a,...i},s)=>{const o=b.useRef(null),c=lt(s,o),d=_O(a);return b.useEffect(()=>{const h=o.current;if(!h)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(d!==a&&g){const S=new Event("change",{bubbles:!0});g.call(h,a),h.dispatchEvent(S)}},[d,a]),y.jsx(Ye.select,{...i,style:{...yx,...i.style},ref:c,defaultValue:a})});Px.displayName=ZO;function Gx(n){return n===""||n===void 0}function Fx(n){const a=Xn(n),i=b.useRef(""),s=b.useRef(0),o=b.useCallback(d=>{const h=i.current+d;a(h),(function p(m){i.current=m,window.clearTimeout(s.current),m!==""&&(s.current=window.setTimeout(()=>p(""),1e3))})(h)},[a]),c=b.useCallback(()=>{i.current="",window.clearTimeout(s.current)},[]);return b.useEffect(()=>()=>window.clearTimeout(s.current),[]),[i,o,c]}function Zx(n,a,i){const o=a.length>1&&Array.from(a).every(m=>m===a[0])?a[0]:a,c=i?n.indexOf(i):-1;let d=YO(n,Math.max(c,0));o.length===1&&(d=d.filter(m=>m!==i));const p=d.find(m=>m.textValue.toLowerCase().startsWith(o.toLowerCase()));return p!==i?p:void 0}function YO(n,a){return n.map((i,s)=>n[(a+s)%n.length])}var IO=bx,QO=Sx,XO=wx,KO=Ex,$O=Tx,JO=Ax,WO=Mx,eM=Dx,tM=zx,nM=Ux,aM=Vx,rM=Bx,iM=Hx;function eh({...n}){return y.jsx(IO,{"data-slot":"select",...n})}function sM({...n}){return y.jsx(eM,{"data-slot":"select-group",...n})}function th({...n}){return y.jsx(XO,{"data-slot":"select-value",...n})}function nh({className:n,size:a="default",children:i,...s}){return y.jsxs(QO,{"data-slot":"select-trigger","data-size":a,className:We("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",n),...s,children:[i,y.jsx(KO,{asChild:!0,children:y.jsx(a0,{className:"size-4 opacity-50"})})]})}function ah({className:n,children:a,position:i="popper",...s}){return y.jsx($O,{children:y.jsxs(JO,{"data-slot":"select-content",className:We("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md",i==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:i,...s,children:[y.jsx(lM,{}),y.jsx(WO,{className:We("p-1",i==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:a}),y.jsx(oM,{})]})})}function yu({className:n,children:a,...i}){return y.jsxs(tM,{"data-slot":"select-item",className:We("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",n),...i,children:[y.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:y.jsx(aM,{children:y.jsx(JT,{className:"size-4"})})}),y.jsx(nM,{children:a})]})}function lM({className:n,...a}){return y.jsx(rM,{"data-slot":"select-scroll-up-button",className:We("flex cursor-default items-center justify-center py-1",n),...a,children:y.jsx(iA,{className:"size-4"})})}function oM({className:n,...a}){return y.jsx(iM,{"data-slot":"select-scroll-down-button",className:We("flex cursor-default items-center justify-center py-1",n),...a,children:y.jsx(a0,{className:"size-4"})})}function uM({className:n,...a}){return y.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:y.jsx("table",{"data-slot":"table",className:We("w-full caption-bottom text-sm",n),...a})})}function cM({className:n,...a}){return y.jsx("thead",{"data-slot":"table-header",className:We("[&_tr]:border-b",n),...a})}function fM({className:n,...a}){return y.jsx("tbody",{"data-slot":"table-body",className:We("[&_tr:last-child]:border-0",n),...a})}function Ad({className:n,...a}){return y.jsx("tr",{"data-slot":"table-row",className:We("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",n),...a})}function nu({className:n,...a}){return y.jsx("th",{"data-slot":"table-head",className:We("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function el({className:n,...a}){return y.jsx("td",{"data-slot":"table-cell",className:We("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",n),...a})}function dM(n,a,i,s){var o=this,c=b.useRef(null),d=b.useRef(0),h=b.useRef(0),p=b.useRef(null),m=b.useRef([]),g=b.useRef(),S=b.useRef(),w=b.useRef(n),A=b.useRef(!0);w.current=n;var O=typeof window<"u",_=!a&&a!==0&&O;if(typeof n!="function")throw new TypeError("Expected a function");a=+a||0;var C=!!(i=i||{}).leading,U=!("trailing"in i)||!!i.trailing,N="maxWait"in i,M="debounceOnServer"in i&&!!i.debounceOnServer,L=N?Math.max(+i.maxWait||0,a):null;b.useEffect(function(){return A.current=!0,function(){A.current=!1}},[]);var B=b.useMemo(function(){var ne=function(ie){var ue=m.current,me=g.current;return m.current=g.current=null,d.current=ie,h.current=h.current||ie,S.current=w.current.apply(me,ue)},Z=function(ie,ue){_&&cancelAnimationFrame(p.current),p.current=_?requestAnimationFrame(ie):setTimeout(ie,ue)},z=function(ie){if(!A.current)return!1;var ue=ie-c.current;return!c.current||ue>=a||ue<0||N&&ie-d.current>=L},ae=function(ie){return p.current=null,U&&m.current?ne(ie):(m.current=g.current=null,S.current)},oe=function ie(){var ue=Date.now();if(C&&h.current===d.current&&Se(),z(ue))return ae(ue);if(A.current){var me=a-(ue-c.current),j=N?Math.min(me,L-(ue-d.current)):me;Z(ie,j)}},Se=function(){s&&s({})},re=function(){if(O||M){var ie=Date.now(),ue=z(ie);if(m.current=[].slice.call(arguments),g.current=o,c.current=ie,ue){if(!p.current&&A.current)return d.current=c.current,Z(oe,a),C?ne(c.current):S.current;if(N)return Z(oe,a),ne(c.current)}return p.current||Z(oe,a),S.current}};return re.cancel=function(){p.current&&(_?cancelAnimationFrame(p.current):clearTimeout(p.current)),d.current=0,m.current=c.current=g.current=p.current=null},re.isPending=function(){return!!p.current},re.flush=function(){return p.current?ae(Date.now()):S.current},re},[C,N,a,L,U,_,O,M,s]);return B}function hM(n,a){return n===a}function mM(n,a,i){var s=hM,o=b.useRef(n),c=b.useState({})[1],d=dM(b.useCallback(function(p){o.current=p,c({})},[c]),a,i,c),h=b.useRef(n);return s(h.current,n)||(d(n),h.current=n),[o.current,d]}function pM({color:n="black",...a}){return y.jsxs("div",{...a,className:We("flex items-center justify-center flex-col gap-4",a.className),children:[y.jsx("div",{className:We("animate-spin rounded-full size-4 border-b-2",a.size,{"border-primary":n==="black","border-white":n==="white"})}),a.showLabel&&y.jsx("span",{children:"Đang tải..."})]})}var jl=n=>n.type==="checkbox",Ur=n=>n instanceof Date,Gt=n=>n==null;const Yx=n=>typeof n=="object";var yt=n=>!Gt(n)&&!Array.isArray(n)&&Yx(n)&&!Ur(n),Ix=n=>yt(n)&&n.target?jl(n.target)?n.target.checked:n.target.value:n,vM=n=>n.substring(0,n.search(/\.\d+(\.|$)/))||n,Qx=(n,a)=>n.has(vM(a)),gM=n=>{const a=n.constructor&&n.constructor.prototype;return yt(a)&&a.hasOwnProperty("isPrototypeOf")},Ph=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Tt(n){let a;const i=Array.isArray(n),s=typeof FileList<"u"?n instanceof FileList:!1;if(n instanceof Date)a=new Date(n);else if(!(Ph&&(n instanceof Blob||s))&&(i||yt(n)))if(a=i?[]:Object.create(Object.getPrototypeOf(n)),!i&&!gM(n))a=n;else for(const o in n)n.hasOwnProperty(o)&&(a[o]=Tt(n[o]));else return n;return a}var Yu=n=>/^\w*$/.test(n),gt=n=>n===void 0,Gh=n=>Array.isArray(n)?n.filter(Boolean):[],Fh=n=>Gh(n.replace(/["|']|\]/g,"").split(/\.|\[/)),de=(n,a,i)=>{if(!a||!yt(n))return i;const s=(Yu(a)?[a]:Fh(a)).reduce((o,c)=>Gt(o)?o:o[c],n);return gt(s)||s===n?gt(n[a])?i:n[a]:s},on=n=>typeof n=="boolean",nt=(n,a,i)=>{let s=-1;const o=Yu(a)?[a]:Fh(a),c=o.length,d=c-1;for(;++s<c;){const h=o[s];let p=i;if(s!==d){const m=n[h];p=yt(m)||Array.isArray(m)?m:isNaN(+o[s+1])?{}:[]}if(h==="__proto__"||h==="constructor"||h==="prototype")return;n[h]=p,n=n[h]}};const bu={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},On={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},ga={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Zh=je.createContext(null);Zh.displayName="HookFormContext";const Iu=()=>je.useContext(Zh),yM=n=>{const{children:a,...i}=n;return je.createElement(Zh.Provider,{value:i},a)};var Xx=(n,a,i,s=!0)=>{const o={defaultValues:a._defaultValues};for(const c in n)Object.defineProperty(o,c,{get:()=>{const d=c;return a._proxyFormState[d]!==On.all&&(a._proxyFormState[d]=!s||On.all),i&&(i[d]=!0),n[d]}});return o};const Yh=typeof window<"u"?je.useLayoutEffect:je.useEffect;function Kx(n){const a=Iu(),{control:i=a.control,disabled:s,name:o,exact:c}=n||{},[d,h]=je.useState(i._formState),p=je.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Yh(()=>i._subscribe({name:o,formState:p.current,exact:c,callback:m=>{!s&&h({...i._formState,...m})}}),[o,s,c]),je.useEffect(()=>{p.current.isValid&&i._setValid(!0)},[i]),je.useMemo(()=>Xx(d,i,p.current,!1),[d,i])}var Yn=n=>typeof n=="string",$x=(n,a,i,s,o)=>Yn(n)?(s&&a.watch.add(n),de(i,n,o)):Array.isArray(n)?n.map(c=>(s&&a.watch.add(c),de(i,c))):(s&&(a.watchAll=!0),i),rh=n=>Gt(n)||!Yx(n);function Ea(n,a,i=new WeakSet){if(rh(n)||rh(a))return n===a;if(Ur(n)&&Ur(a))return n.getTime()===a.getTime();const s=Object.keys(n),o=Object.keys(a);if(s.length!==o.length)return!1;if(i.has(n)||i.has(a))return!0;i.add(n),i.add(a);for(const c of s){const d=n[c];if(!o.includes(c))return!1;if(c!=="ref"){const h=a[c];if(Ur(d)&&Ur(h)||yt(d)&&yt(h)||Array.isArray(d)&&Array.isArray(h)?!Ea(d,h,i):d!==h)return!1}}return!0}function bM(n){const a=Iu(),{control:i=a.control,name:s,defaultValue:o,disabled:c,exact:d,compute:h}=n||{},p=je.useRef(o),m=je.useRef(h),g=je.useRef(void 0);m.current=h;const S=je.useMemo(()=>i._getWatch(s,p.current),[i,s]),[w,A]=je.useState(m.current?m.current(S):S);return Yh(()=>i._subscribe({name:s,formState:{values:!0},exact:d,callback:O=>{if(!c){const _=$x(s,i._names,O.values||i._formValues,!1,p.current);if(m.current){const C=m.current(_);Ea(C,g.current)||(A(C),g.current=C)}else A(_)}}}),[i,c,s,d]),je.useEffect(()=>i._removeUnmounted()),w}function xM(n){const a=Iu(),{name:i,disabled:s,control:o=a.control,shouldUnregister:c,defaultValue:d}=n,h=Qx(o._names.array,i),p=je.useMemo(()=>de(o._formValues,i,de(o._defaultValues,i,d)),[o,i,d]),m=bM({control:o,name:i,defaultValue:p,exact:!0}),g=Kx({control:o,name:i,exact:!0}),S=je.useRef(n),w=je.useRef(o.register(i,{...n.rules,value:m,...on(n.disabled)?{disabled:n.disabled}:{}}));S.current=n;const A=je.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!de(g.errors,i)},isDirty:{enumerable:!0,get:()=>!!de(g.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!de(g.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!de(g.validatingFields,i)},error:{enumerable:!0,get:()=>de(g.errors,i)}}),[g,i]),O=je.useCallback(N=>w.current.onChange({target:{value:Ix(N),name:i},type:bu.CHANGE}),[i]),_=je.useCallback(()=>w.current.onBlur({target:{value:de(o._formValues,i),name:i},type:bu.BLUR}),[i,o._formValues]),C=je.useCallback(N=>{const M=de(o._fields,i);M&&N&&(M._f.ref={focus:()=>N.focus&&N.focus(),select:()=>N.select&&N.select(),setCustomValidity:L=>N.setCustomValidity(L),reportValidity:()=>N.reportValidity()})},[o._fields,i]),U=je.useMemo(()=>({name:i,value:m,...on(s)||g.disabled?{disabled:g.disabled||s}:{},onChange:O,onBlur:_,ref:C}),[i,s,g.disabled,O,_,C,m]);return je.useEffect(()=>{const N=o._options.shouldUnregister||c;o.register(i,{...S.current.rules,...on(S.current.disabled)?{disabled:S.current.disabled}:{}});const M=(L,B)=>{const ne=de(o._fields,L);ne&&ne._f&&(ne._f.mount=B)};if(M(i,!0),N){const L=Tt(de(o._options.defaultValues,i));nt(o._defaultValues,i,L),gt(de(o._formValues,i))&&nt(o._formValues,i,L)}return!h&&o.register(i),()=>{(h?N&&!o._state.action:N)?o.unregister(i):M(i,!1)}},[i,o,h,c]),je.useEffect(()=>{o._setDisabledField({disabled:s,name:i})},[s,i,o]),je.useMemo(()=>({field:U,formState:g,fieldState:A}),[U,g,A])}const SM=n=>n.render(xM(n));var Ih=(n,a,i,s,o)=>a?{...i[n],types:{...i[n]&&i[n].types?i[n].types:{},[s]:o||!0}}:{},il=n=>Array.isArray(n)?n:[n],Hy=()=>{let n=[];return{get observers(){return n},next:o=>{for(const c of n)c.next&&c.next(o)},subscribe:o=>(n.push(o),{unsubscribe:()=>{n=n.filter(c=>c!==o)}}),unsubscribe:()=>{n=[]}}},Jt=n=>yt(n)&&!Object.keys(n).length,Qh=n=>n.type==="file",Mn=n=>typeof n=="function",xu=n=>{if(!Ph)return!1;const a=n?n.ownerDocument:0;return n instanceof(a&&a.defaultView?a.defaultView.HTMLElement:HTMLElement)},Jx=n=>n.type==="select-multiple",Xh=n=>n.type==="radio",_M=n=>Xh(n)||jl(n),Cd=n=>xu(n)&&n.isConnected;function wM(n,a){const i=a.slice(0,-1).length;let s=0;for(;s<i;)n=gt(n)?s++:n[a[s++]];return n}function EM(n){for(const a in n)if(n.hasOwnProperty(a)&&!gt(n[a]))return!1;return!0}function St(n,a){const i=Array.isArray(a)?a:Yu(a)?[a]:Fh(a),s=i.length===1?n:wM(n,i),o=i.length-1,c=i[o];return s&&delete s[c],o!==0&&(yt(s)&&Jt(s)||Array.isArray(s)&&EM(s))&&St(n,i.slice(0,-1)),n}var Wx=n=>{for(const a in n)if(Mn(n[a]))return!0;return!1};function Su(n,a={}){const i=Array.isArray(n);if(yt(n)||i)for(const s in n)Array.isArray(n[s])||yt(n[s])&&!Wx(n[s])?(a[s]=Array.isArray(n[s])?[]:{},Su(n[s],a[s])):Gt(n[s])||(a[s]=!0);return a}function eS(n,a,i){const s=Array.isArray(n);if(yt(n)||s)for(const o in n)Array.isArray(n[o])||yt(n[o])&&!Wx(n[o])?gt(a)||rh(i[o])?i[o]=Array.isArray(n[o])?Su(n[o],[]):{...Su(n[o])}:eS(n[o],Gt(a)?{}:a[o],i[o]):i[o]=!Ea(n[o],a[o]);return i}var tl=(n,a)=>eS(n,a,Su(a));const qy={value:!1,isValid:!1},Py={value:!0,isValid:!0};var tS=n=>{if(Array.isArray(n)){if(n.length>1){const a=n.filter(i=>i&&i.checked&&!i.disabled).map(i=>i.value);return{value:a,isValid:!!a.length}}return n[0].checked&&!n[0].disabled?n[0].attributes&&!gt(n[0].attributes.value)?gt(n[0].value)||n[0].value===""?Py:{value:n[0].value,isValid:!0}:Py:qy}return qy},nS=(n,{valueAsNumber:a,valueAsDate:i,setValueAs:s})=>gt(n)?n:a?n===""?NaN:n&&+n:i&&Yn(n)?new Date(n):s?s(n):n;const Gy={isValid:!1,value:null};var aS=n=>Array.isArray(n)?n.reduce((a,i)=>i&&i.checked&&!i.disabled?{isValid:!0,value:i.value}:a,Gy):Gy;function Fy(n){const a=n.ref;return Qh(a)?a.files:Xh(a)?aS(n.refs).value:Jx(a)?[...a.selectedOptions].map(({value:i})=>i):jl(a)?tS(n.refs).value:nS(gt(a.value)?n.ref.value:a.value,n)}var TM=(n,a,i,s)=>{const o={};for(const c of n){const d=de(a,c);d&&nt(o,c,d._f)}return{criteriaMode:i,names:[...n],fields:o,shouldUseNativeValidation:s}},_u=n=>n instanceof RegExp,nl=n=>gt(n)?n:_u(n)?n.source:yt(n)?_u(n.value)?n.value.source:n.value:n,Zy=n=>({isOnSubmit:!n||n===On.onSubmit,isOnBlur:n===On.onBlur,isOnChange:n===On.onChange,isOnAll:n===On.all,isOnTouch:n===On.onTouched});const Yy="AsyncFunction";var AM=n=>!!n&&!!n.validate&&!!(Mn(n.validate)&&n.validate.constructor.name===Yy||yt(n.validate)&&Object.values(n.validate).find(a=>a.constructor.name===Yy)),CM=n=>n.mount&&(n.required||n.min||n.max||n.maxLength||n.minLength||n.pattern||n.validate),Iy=(n,a,i)=>!i&&(a.watchAll||a.watch.has(n)||[...a.watch].some(s=>n.startsWith(s)&&/^\.\w+/.test(n.slice(s.length))));const sl=(n,a,i,s)=>{for(const o of i||Object.keys(n)){const c=de(n,o);if(c){const{_f:d,...h}=c;if(d){if(d.refs&&d.refs[0]&&a(d.refs[0],o)&&!s)return!0;if(d.ref&&a(d.ref,d.name)&&!s)return!0;if(sl(h,a))break}else if(yt(h)&&sl(h,a))break}}};function Qy(n,a,i){const s=de(n,i);if(s||Yu(i))return{error:s,name:i};const o=i.split(".");for(;o.length;){const c=o.join("."),d=de(a,c),h=de(n,c);if(d&&!Array.isArray(d)&&i!==c)return{name:i};if(h&&h.type)return{name:c,error:h};if(h&&h.root&&h.root.type)return{name:`${c}.root`,error:h.root};o.pop()}return{name:i}}var RM=(n,a,i,s)=>{i(n);const{name:o,...c}=n;return Jt(c)||Object.keys(c).length>=Object.keys(a).length||Object.keys(c).find(d=>a[d]===(!s||On.all))},OM=(n,a,i)=>!n||!a||n===a||il(n).some(s=>s&&(i?s===a:s.startsWith(a)||a.startsWith(s))),MM=(n,a,i,s,o)=>o.isOnAll?!1:!i&&o.isOnTouch?!(a||n):(i?s.isOnBlur:o.isOnBlur)?!n:(i?s.isOnChange:o.isOnChange)?n:!0,NM=(n,a)=>!Gh(de(n,a)).length&&St(n,a),DM=(n,a,i)=>{const s=il(de(n,i));return nt(s,"root",a[i]),nt(n,i,s),n},ou=n=>Yn(n);function Xy(n,a,i="validate"){if(ou(n)||Array.isArray(n)&&n.every(ou)||on(n)&&!n)return{type:i,message:ou(n)?n:"",ref:a}}var Hi=n=>yt(n)&&!_u(n)?n:{value:n,message:""},Ky=async(n,a,i,s,o,c)=>{const{ref:d,refs:h,required:p,maxLength:m,minLength:g,min:S,max:w,pattern:A,validate:O,name:_,valueAsNumber:C,mount:U}=n._f,N=de(i,_);if(!U||a.has(_))return{};const M=h?h[0]:d,L=re=>{o&&M.reportValidity&&(M.setCustomValidity(on(re)?"":re||""),M.reportValidity())},B={},ne=Xh(d),Z=jl(d),z=ne||Z,ae=(C||Qh(d))&&gt(d.value)&&gt(N)||xu(d)&&d.value===""||N===""||Array.isArray(N)&&!N.length,oe=Ih.bind(null,_,s,B),Se=(re,ie,ue,me=ga.maxLength,j=ga.minLength)=>{const I=re?ie:ue;B[_]={type:re?me:j,message:I,ref:d,...oe(re?me:j,I)}};if(c?!Array.isArray(N)||!N.length:p&&(!z&&(ae||Gt(N))||on(N)&&!N||Z&&!tS(h).isValid||ne&&!aS(h).isValid)){const{value:re,message:ie}=ou(p)?{value:!!p,message:p}:Hi(p);if(re&&(B[_]={type:ga.required,message:ie,ref:M,...oe(ga.required,ie)},!s))return L(ie),B}if(!ae&&(!Gt(S)||!Gt(w))){let re,ie;const ue=Hi(w),me=Hi(S);if(!Gt(N)&&!isNaN(N)){const j=d.valueAsNumber||N&&+N;Gt(ue.value)||(re=j>ue.value),Gt(me.value)||(ie=j<me.value)}else{const j=d.valueAsDate||new Date(N),I=T=>new Date(new Date().toDateString()+" "+T),P=d.type=="time",J=d.type=="week";Yn(ue.value)&&N&&(re=P?I(N)>I(ue.value):J?N>ue.value:j>new Date(ue.value)),Yn(me.value)&&N&&(ie=P?I(N)<I(me.value):J?N<me.value:j<new Date(me.value))}if((re||ie)&&(Se(!!re,ue.message,me.message,ga.max,ga.min),!s))return L(B[_].message),B}if((m||g)&&!ae&&(Yn(N)||c&&Array.isArray(N))){const re=Hi(m),ie=Hi(g),ue=!Gt(re.value)&&N.length>+re.value,me=!Gt(ie.value)&&N.length<+ie.value;if((ue||me)&&(Se(ue,re.message,ie.message),!s))return L(B[_].message),B}if(A&&!ae&&Yn(N)){const{value:re,message:ie}=Hi(A);if(_u(re)&&!N.match(re)&&(B[_]={type:ga.pattern,message:ie,ref:d,...oe(ga.pattern,ie)},!s))return L(ie),B}if(O){if(Mn(O)){const re=await O(N,i),ie=Xy(re,M);if(ie&&(B[_]={...ie,...oe(ga.validate,ie.message)},!s))return L(ie.message),B}else if(yt(O)){let re={};for(const ie in O){if(!Jt(re)&&!s)break;const ue=Xy(await O[ie](N,i),M,ie);ue&&(re={...ue,...oe(ie,ue.message)},L(ue.message),s&&(B[_]=re))}if(!Jt(re)&&(B[_]={ref:M,...re},!s))return B}}return L(!0),B};const jM={mode:On.onSubmit,reValidateMode:On.onChange,shouldFocusError:!0};function kM(n={}){let a={...jM,...n},i={submitCount:0,isDirty:!1,isReady:!1,isLoading:Mn(a.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:a.errors||{},disabled:a.disabled||!1},s={},o=yt(a.defaultValues)||yt(a.values)?Tt(a.defaultValues||a.values)||{}:{},c=a.shouldUnregister?{}:Tt(o),d={action:!1,mount:!1,watch:!1},h={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,m=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let S={...g};const w={array:Hy(),state:Hy()},A=a.criteriaMode===On.all,O=R=>q=>{clearTimeout(m),m=setTimeout(R,q)},_=async R=>{if(!a.disabled&&(g.isValid||S.isValid||R)){const q=a.resolver?Jt((await Z()).errors):await ae(s,!0);q!==i.isValid&&w.state.next({isValid:q})}},C=(R,q)=>{!a.disabled&&(g.isValidating||g.validatingFields||S.isValidating||S.validatingFields)&&((R||Array.from(h.mount)).forEach(X=>{X&&(q?nt(i.validatingFields,X,q):St(i.validatingFields,X))}),w.state.next({validatingFields:i.validatingFields,isValidating:!Jt(i.validatingFields)}))},U=(R,q=[],X,pe,fe=!0,le=!0)=>{if(pe&&X&&!a.disabled){if(d.action=!0,le&&Array.isArray(de(s,R))){const _e=X(de(s,R),pe.argA,pe.argB);fe&&nt(s,R,_e)}if(le&&Array.isArray(de(i.errors,R))){const _e=X(de(i.errors,R),pe.argA,pe.argB);fe&&nt(i.errors,R,_e),NM(i.errors,R)}if((g.touchedFields||S.touchedFields)&&le&&Array.isArray(de(i.touchedFields,R))){const _e=X(de(i.touchedFields,R),pe.argA,pe.argB);fe&&nt(i.touchedFields,R,_e)}(g.dirtyFields||S.dirtyFields)&&(i.dirtyFields=tl(o,c)),w.state.next({name:R,isDirty:Se(R,q),dirtyFields:i.dirtyFields,errors:i.errors,isValid:i.isValid})}else nt(c,R,q)},N=(R,q)=>{nt(i.errors,R,q),w.state.next({errors:i.errors})},M=R=>{i.errors=R,w.state.next({errors:i.errors,isValid:!1})},L=(R,q,X,pe)=>{const fe=de(s,R);if(fe){const le=de(c,R,gt(X)?de(o,R):X);gt(le)||pe&&pe.defaultChecked||q?nt(c,R,q?le:Fy(fe._f)):ue(R,le),d.mount&&_()}},B=(R,q,X,pe,fe)=>{let le=!1,_e=!1;const ke={name:R};if(!a.disabled){if(!X||pe){(g.isDirty||S.isDirty)&&(_e=i.isDirty,i.isDirty=ke.isDirty=Se(),le=_e!==ke.isDirty);const Ze=Ea(de(o,R),q);_e=!!de(i.dirtyFields,R),Ze?St(i.dirtyFields,R):nt(i.dirtyFields,R,!0),ke.dirtyFields=i.dirtyFields,le=le||(g.dirtyFields||S.dirtyFields)&&_e!==!Ze}if(X){const Ze=de(i.touchedFields,R);Ze||(nt(i.touchedFields,R,X),ke.touchedFields=i.touchedFields,le=le||(g.touchedFields||S.touchedFields)&&Ze!==X)}le&&fe&&w.state.next(ke)}return le?ke:{}},ne=(R,q,X,pe)=>{const fe=de(i.errors,R),le=(g.isValid||S.isValid)&&on(q)&&i.isValid!==q;if(a.delayError&&X?(p=O(()=>N(R,X)),p(a.delayError)):(clearTimeout(m),p=null,X?nt(i.errors,R,X):St(i.errors,R)),(X?!Ea(fe,X):fe)||!Jt(pe)||le){const _e={...pe,...le&&on(q)?{isValid:q}:{},errors:i.errors,name:R};i={...i,..._e},w.state.next(_e)}},Z=async R=>{C(R,!0);const q=await a.resolver(c,a.context,TM(R||h.mount,s,a.criteriaMode,a.shouldUseNativeValidation));return C(R),q},z=async R=>{const{errors:q}=await Z(R);if(R)for(const X of R){const pe=de(q,X);pe?nt(i.errors,X,pe):St(i.errors,X)}else i.errors=q;return q},ae=async(R,q,X={valid:!0})=>{for(const pe in R){const fe=R[pe];if(fe){const{_f:le,..._e}=fe;if(le){const ke=h.array.has(le.name),Ze=fe._f&&AM(fe._f);Ze&&g.validatingFields&&C([pe],!0);const ot=await Ky(fe,h.disabled,c,A,a.shouldUseNativeValidation&&!q,ke);if(Ze&&g.validatingFields&&C([pe]),ot[le.name]&&(X.valid=!1,q))break;!q&&(de(ot,le.name)?ke?DM(i.errors,ot,le.name):nt(i.errors,le.name,ot[le.name]):St(i.errors,le.name))}!Jt(_e)&&await ae(_e,q,X)}}return X.valid},oe=()=>{for(const R of h.unMount){const q=de(s,R);q&&(q._f.refs?q._f.refs.every(X=>!Cd(X)):!Cd(q._f.ref))&&ee(R)}h.unMount=new Set},Se=(R,q)=>!a.disabled&&(R&&q&&nt(c,R,q),!Ea(T(),o)),re=(R,q,X)=>$x(R,h,{...d.mount?c:gt(q)?o:Yn(R)?{[R]:q}:q},X,q),ie=R=>Gh(de(d.mount?c:o,R,a.shouldUnregister?de(o,R,[]):[])),ue=(R,q,X={})=>{const pe=de(s,R);let fe=q;if(pe){const le=pe._f;le&&(!le.disabled&&nt(c,R,nS(q,le)),fe=xu(le.ref)&&Gt(q)?"":q,Jx(le.ref)?[...le.ref.options].forEach(_e=>_e.selected=fe.includes(_e.value)):le.refs?jl(le.ref)?le.refs.forEach(_e=>{(!_e.defaultChecked||!_e.disabled)&&(Array.isArray(fe)?_e.checked=!!fe.find(ke=>ke===_e.value):_e.checked=fe===_e.value||!!fe)}):le.refs.forEach(_e=>_e.checked=_e.value===fe):Qh(le.ref)?le.ref.value="":(le.ref.value=fe,le.ref.type||w.state.next({name:R,values:Tt(c)})))}(X.shouldDirty||X.shouldTouch)&&B(R,fe,X.shouldTouch,X.shouldDirty,!0),X.shouldValidate&&J(R)},me=(R,q,X)=>{for(const pe in q){if(!q.hasOwnProperty(pe))return;const fe=q[pe],le=R+"."+pe,_e=de(s,le);(h.array.has(R)||yt(fe)||_e&&!_e._f)&&!Ur(fe)?me(le,fe,X):ue(le,fe,X)}},j=(R,q,X={})=>{const pe=de(s,R),fe=h.array.has(R),le=Tt(q);nt(c,R,le),fe?(w.array.next({name:R,values:Tt(c)}),(g.isDirty||g.dirtyFields||S.isDirty||S.dirtyFields)&&X.shouldDirty&&w.state.next({name:R,dirtyFields:tl(o,c),isDirty:Se(R,le)})):pe&&!pe._f&&!Gt(le)?me(R,le,X):ue(R,le,X),Iy(R,h)&&w.state.next({...i,name:R}),w.state.next({name:d.mount?R:void 0,values:Tt(c)})},I=async R=>{d.mount=!0;const q=R.target;let X=q.name,pe=!0;const fe=de(s,X),le=Ze=>{pe=Number.isNaN(Ze)||Ur(Ze)&&isNaN(Ze.getTime())||Ea(Ze,de(c,X,Ze))},_e=Zy(a.mode),ke=Zy(a.reValidateMode);if(fe){let Ze,ot;const Kr=q.type?Fy(fe._f):Ix(R),Ln=R.type===bu.BLUR||R.type===bu.FOCUS_OUT,Xu=!CM(fe._f)&&!a.resolver&&!de(i.errors,X)&&!fe._f.deps||MM(Ln,de(i.touchedFields,X),i.isSubmitted,ke,_e),Ma=Iy(X,h,Ln);nt(c,X,Kr),Ln?(!q||!q.readOnly)&&(fe._f.onBlur&&fe._f.onBlur(R),p&&p(0)):fe._f.onChange&&fe._f.onChange(R);const Na=B(X,Kr,Ln),ea=!Jt(Na)||Ma;if(!Ln&&w.state.next({name:X,type:R.type,values:Tt(c)}),Xu)return(g.isValid||S.isValid)&&(a.mode==="onBlur"?Ln&&_():Ln||_()),ea&&w.state.next({name:X,...Ma?{}:Na});if(!Ln&&Ma&&w.state.next({...i}),a.resolver){const{errors:pr}=await Z([X]);if(le(Kr),pe){const vr=Qy(i.errors,s,X),zl=Qy(pr,s,vr.name||X);Ze=zl.error,X=zl.name,ot=Jt(pr)}}else C([X],!0),Ze=(await Ky(fe,h.disabled,c,A,a.shouldUseNativeValidation))[X],C([X]),le(Kr),pe&&(Ze?ot=!1:(g.isValid||S.isValid)&&(ot=await ae(s,!0)));pe&&(fe._f.deps&&J(fe._f.deps),ne(X,ot,Ze,Na))}},P=(R,q)=>{if(de(i.errors,q)&&R.focus)return R.focus(),1},J=async(R,q={})=>{let X,pe;const fe=il(R);if(a.resolver){const le=await z(gt(R)?R:fe);X=Jt(le),pe=R?!fe.some(_e=>de(le,_e)):X}else R?(pe=(await Promise.all(fe.map(async le=>{const _e=de(s,le);return await ae(_e&&_e._f?{[le]:_e}:_e)}))).every(Boolean),!(!pe&&!i.isValid)&&_()):pe=X=await ae(s);return w.state.next({...!Yn(R)||(g.isValid||S.isValid)&&X!==i.isValid?{}:{name:R},...a.resolver||!R?{isValid:X}:{},errors:i.errors}),q.shouldFocus&&!pe&&sl(s,P,R?fe:h.mount),pe},T=R=>{const q={...d.mount?c:o};return gt(R)?q:Yn(R)?de(q,R):R.map(X=>de(q,X))},Y=(R,q)=>({invalid:!!de((q||i).errors,R),isDirty:!!de((q||i).dirtyFields,R),error:de((q||i).errors,R),isValidating:!!de(i.validatingFields,R),isTouched:!!de((q||i).touchedFields,R)}),se=R=>{R&&il(R).forEach(q=>St(i.errors,q)),w.state.next({errors:R?i.errors:{}})},W=(R,q,X)=>{const pe=(de(s,R,{_f:{}})._f||{}).ref,fe=de(i.errors,R)||{},{ref:le,message:_e,type:ke,...Ze}=fe;nt(i.errors,R,{...Ze,...q,ref:pe}),w.state.next({name:R,errors:i.errors,isValid:!1}),X&&X.shouldFocus&&pe&&pe.focus&&pe.focus()},ce=(R,q)=>Mn(R)?w.state.subscribe({next:X=>"values"in X&&R(re(void 0,q),X)}):re(R,q,!0),Re=R=>w.state.subscribe({next:q=>{OM(R.name,q.name,R.exact)&&RM(q,R.formState||g,zt,R.reRenderRoot)&&R.callback({values:{...c},...i,...q,defaultValues:o})}}).unsubscribe,xe=R=>(d.mount=!0,S={...S,...R.formState},Re({...R,formState:S})),ee=(R,q={})=>{for(const X of R?il(R):h.mount)h.mount.delete(X),h.array.delete(X),q.keepValue||(St(s,X),St(c,X)),!q.keepError&&St(i.errors,X),!q.keepDirty&&St(i.dirtyFields,X),!q.keepTouched&&St(i.touchedFields,X),!q.keepIsValidating&&St(i.validatingFields,X),!a.shouldUnregister&&!q.keepDefaultValue&&St(o,X);w.state.next({values:Tt(c)}),w.state.next({...i,...q.keepDirty?{isDirty:Se()}:{}}),!q.keepIsValid&&_()},Te=({disabled:R,name:q})=>{(on(R)&&d.mount||R||h.disabled.has(q))&&(R?h.disabled.add(q):h.disabled.delete(q))},Xe=(R,q={})=>{let X=de(s,R);const pe=on(q.disabled)||on(a.disabled);return nt(s,R,{...X||{},_f:{...X&&X._f?X._f:{ref:{name:R}},name:R,mount:!0,...q}}),h.mount.add(R),X?Te({disabled:on(q.disabled)?q.disabled:a.disabled,name:R}):L(R,!0,q.value),{...pe?{disabled:q.disabled||a.disabled}:{},...a.progressive?{required:!!q.required,min:nl(q.min),max:nl(q.max),minLength:nl(q.minLength),maxLength:nl(q.maxLength),pattern:nl(q.pattern)}:{},name:R,onChange:I,onBlur:I,ref:fe=>{if(fe){Xe(R,q),X=de(s,R);const le=gt(fe.value)&&fe.querySelectorAll&&fe.querySelectorAll("input,select,textarea")[0]||fe,_e=_M(le),ke=X._f.refs||[];if(_e?ke.find(Ze=>Ze===le):le===X._f.ref)return;nt(s,R,{_f:{...X._f,..._e?{refs:[...ke.filter(Cd),le,...Array.isArray(de(o,R))?[{}]:[]],ref:{type:le.type,name:R}}:{ref:le}}}),L(R,!1,void 0,le)}else X=de(s,R,{}),X._f&&(X._f.mount=!1),(a.shouldUnregister||q.shouldUnregister)&&!(Qx(h.array,R)&&d.action)&&h.unMount.add(R)}}},He=()=>a.shouldFocusError&&sl(s,P,h.mount),Fe=R=>{on(R)&&(w.state.next({disabled:R}),sl(s,(q,X)=>{const pe=de(s,X);pe&&(q.disabled=pe._f.disabled||R,Array.isArray(pe._f.refs)&&pe._f.refs.forEach(fe=>{fe.disabled=pe._f.disabled||R}))},0,!1))},Ke=(R,q)=>async X=>{let pe;X&&(X.preventDefault&&X.preventDefault(),X.persist&&X.persist());let fe=Tt(c);if(w.state.next({isSubmitting:!0}),a.resolver){const{errors:le,values:_e}=await Z();i.errors=le,fe=Tt(_e)}else await ae(s);if(h.disabled.size)for(const le of h.disabled)St(fe,le);if(St(i.errors,"root"),Jt(i.errors)){w.state.next({errors:{}});try{await R(fe,X)}catch(le){pe=le}}else q&&await q({...i.errors},X),He(),setTimeout(He);if(w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Jt(i.errors)&&!pe,submitCount:i.submitCount+1,errors:i.errors}),pe)throw pe},At=(R,q={})=>{de(s,R)&&(gt(q.defaultValue)?j(R,Tt(de(o,R))):(j(R,q.defaultValue),nt(o,R,Tt(q.defaultValue))),q.keepTouched||St(i.touchedFields,R),q.keepDirty||(St(i.dirtyFields,R),i.isDirty=q.defaultValue?Se(R,Tt(de(o,R))):Se()),q.keepError||(St(i.errors,R),g.isValid&&_()),w.state.next({...i}))},Yt=(R,q={})=>{const X=R?Tt(R):o,pe=Tt(X),fe=Jt(R),le=fe?o:pe;if(q.keepDefaultValues||(o=X),!q.keepValues){if(q.keepDirtyValues){const _e=new Set([...h.mount,...Object.keys(tl(o,c))]);for(const ke of Array.from(_e))de(i.dirtyFields,ke)?nt(le,ke,de(c,ke)):j(ke,de(le,ke))}else{if(Ph&&gt(R))for(const _e of h.mount){const ke=de(s,_e);if(ke&&ke._f){const Ze=Array.isArray(ke._f.refs)?ke._f.refs[0]:ke._f.ref;if(xu(Ze)){const ot=Ze.closest("form");if(ot){ot.reset();break}}}}if(q.keepFieldsRef)for(const _e of h.mount)j(_e,de(le,_e));else s={}}c=a.shouldUnregister?q.keepDefaultValues?Tt(o):{}:Tt(le),w.array.next({values:{...le}}),w.state.next({values:{...le}})}h={mount:q.keepDirtyValues?h.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!g.isValid||!!q.keepIsValid||!!q.keepDirtyValues,d.watch=!!a.shouldUnregister,w.state.next({submitCount:q.keepSubmitCount?i.submitCount:0,isDirty:fe?!1:q.keepDirty?i.isDirty:!!(q.keepDefaultValues&&!Ea(R,o)),isSubmitted:q.keepIsSubmitted?i.isSubmitted:!1,dirtyFields:fe?{}:q.keepDirtyValues?q.keepDefaultValues&&c?tl(o,c):i.dirtyFields:q.keepDefaultValues&&R?tl(o,R):q.keepDirty?i.dirtyFields:{},touchedFields:q.keepTouched?i.touchedFields:{},errors:q.keepErrors?i.errors:{},isSubmitSuccessful:q.keepIsSubmitSuccessful?i.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Oa=(R,q)=>Yt(Mn(R)?R(c):R,q),mr=(R,q={})=>{const X=de(s,R),pe=X&&X._f;if(pe){const fe=pe.refs?pe.refs[0]:pe.ref;fe.focus&&(fe.focus(),q.shouldSelect&&Mn(fe.select)&&fe.select())}},zt=R=>{i={...i,...R}},ts={control:{register:Xe,unregister:ee,getFieldState:Y,handleSubmit:Ke,setError:W,_subscribe:Re,_runSchema:Z,_focusError:He,_getWatch:re,_getDirty:Se,_setValid:_,_setFieldArray:U,_setDisabledField:Te,_setErrors:M,_getFieldArray:ie,_reset:Yt,_resetDefaultValues:()=>Mn(a.defaultValues)&&a.defaultValues().then(R=>{Oa(R,a.resetOptions),w.state.next({isLoading:!1})}),_removeUnmounted:oe,_disableForm:Fe,_subjects:w,_proxyFormState:g,get _fields(){return s},get _formValues(){return c},get _state(){return d},set _state(R){d=R},get _defaultValues(){return o},get _names(){return h},set _names(R){h=R},get _formState(){return i},get _options(){return a},set _options(R){a={...a,...R}}},subscribe:xe,trigger:J,register:Xe,handleSubmit:Ke,watch:ce,setValue:j,getValues:T,reset:Oa,resetField:At,clearErrors:se,unregister:ee,setError:W,setFocus:mr,getFieldState:Y};return{...ts,formControl:ts}}function zM(n={}){const a=je.useRef(void 0),i=je.useRef(void 0),[s,o]=je.useState({isDirty:!1,isValidating:!1,isLoading:Mn(n.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1,isReady:!1,defaultValues:Mn(n.defaultValues)?void 0:n.defaultValues});if(!a.current)if(n.formControl)a.current={...n.formControl,formState:s},n.defaultValues&&!Mn(n.defaultValues)&&n.formControl.reset(n.defaultValues,n.resetOptions);else{const{formControl:d,...h}=kM(n);a.current={...h,formState:s}}const c=a.current.control;return c._options=n,Yh(()=>{const d=c._subscribe({formState:c._proxyFormState,callback:()=>o({...c._formState}),reRenderRoot:!0});return o(h=>({...h,isReady:!0})),c._formState.isReady=!0,d},[c]),je.useEffect(()=>c._disableForm(n.disabled),[c,n.disabled]),je.useEffect(()=>{n.mode&&(c._options.mode=n.mode),n.reValidateMode&&(c._options.reValidateMode=n.reValidateMode)},[c,n.mode,n.reValidateMode]),je.useEffect(()=>{n.errors&&(c._setErrors(n.errors),c._focusError())},[c,n.errors]),je.useEffect(()=>{n.shouldUnregister&&c._subjects.state.next({values:c._getWatch()})},[c,n.shouldUnregister]),je.useEffect(()=>{if(c._proxyFormState.isDirty){const d=c._getDirty();d!==s.isDirty&&c._subjects.state.next({isDirty:d})}},[c,s.isDirty]),je.useEffect(()=>{n.values&&!Ea(n.values,i.current)?(c._reset(n.values,{keepFieldsRef:!0,...c._options.resetOptions}),i.current=n.values,o(d=>({...d}))):c._resetDefaultValues()},[c,n.values]),je.useEffect(()=>{c._state.mount||(c._setValid(),c._state.mount=!0),c._state.watch&&(c._state.watch=!1,c._subjects.state.next({...c._formState})),c._removeUnmounted()}),a.current.formState=Xx(s,c),a.current}const $y=(n,a,i)=>{if(n&&"reportValidity"in n){const s=de(i,a);n.setCustomValidity(s&&s.message||""),n.reportValidity()}},ih=(n,a)=>{for(const i in a.fields){const s=a.fields[i];s&&s.ref&&"reportValidity"in s.ref?$y(s.ref,i,n):s&&s.refs&&s.refs.forEach(o=>$y(o,i,n))}},Jy=(n,a)=>{a.shouldUseNativeValidation&&ih(n,a);const i={};for(const s in n){const o=de(a.fields,s),c=Object.assign(n[s]||{},{ref:o&&o.ref});if(UM(a.names||Object.keys(n),s)){const d=Object.assign({},de(i,s));nt(d,"root",c),nt(i,s,d)}else nt(i,s,c)}return i},UM=(n,a)=>{const i=Wy(a);return n.some(s=>Wy(s).match(`^${i}\\.\\d+`))};function Wy(n){return n.replace(/\]|\[/g,"")}function rS(n,a,i){function s(h,p){var m;Object.defineProperty(h,"_zod",{value:h._zod??{},enumerable:!1}),(m=h._zod).traits??(m.traits=new Set),h._zod.traits.add(n),a(h,p);for(const g in d.prototype)g in h||Object.defineProperty(h,g,{value:d.prototype[g].bind(h)});h._zod.constr=d,h._zod.def=p}const o=i?.Parent??Object;class c extends o{}Object.defineProperty(c,"name",{value:n});function d(h){var p;const m=i?.Parent?new c:this;s(m,h),(p=m._zod).deferred??(p.deferred=[]);for(const g of m._zod.deferred)g();return m}return Object.defineProperty(d,"init",{value:s}),Object.defineProperty(d,Symbol.hasInstance,{value:h=>i?.Parent&&h instanceof i.Parent?!0:h?._zod?.traits?.has(n)}),Object.defineProperty(d,"name",{value:n}),d}class LM extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}const VM={};function iS(n){return VM}function BM(n,a){return typeof a=="bigint"?a.toString():a}const sS="captureStackTrace"in Error?Error.captureStackTrace:(...n)=>{};function au(n){return typeof n=="string"?n:n?.message}function lS(n,a,i){const s={...n,path:n.path??[]};if(!n.message){const o=au(n.inst?._zod.def?.error?.(n))??au(a?.error?.(n))??au(i.customError?.(n))??au(i.localeError?.(n))??"Invalid input";s.message=o}return delete s.inst,delete s.continue,a?.reportInput||delete s.input,s}const oS=(n,a)=>{n.name="$ZodError",Object.defineProperty(n,"_zod",{value:n._zod,enumerable:!1}),Object.defineProperty(n,"issues",{value:a,enumerable:!1}),n.message=JSON.stringify(a,BM,2),Object.defineProperty(n,"toString",{value:()=>n.message,enumerable:!1})},HM=rS("$ZodError",oS),uS=rS("$ZodError",oS,{Parent:Error}),qM=n=>(a,i,s,o)=>{const c=s?Object.assign(s,{async:!1}):{async:!1},d=a._zod.run({value:i,issues:[]},c);if(d instanceof Promise)throw new LM;if(d.issues.length){const h=new(o?.Err??n)(d.issues.map(p=>lS(p,c,iS())));throw sS(h,o?.callee),h}return d.value},PM=qM(uS),GM=n=>async(a,i,s,o)=>{const c=s?Object.assign(s,{async:!0}):{async:!0};let d=a._zod.run({value:i,issues:[]},c);if(d instanceof Promise&&(d=await d),d.issues.length){const h=new(o?.Err??n)(d.issues.map(p=>lS(p,c,iS())));throw sS(h,o?.callee),h}return d.value},FM=GM(uS);function eb(n,a){try{var i=n()}catch(s){return a(s)}return i&&i.then?i.then(void 0,a):i}function ZM(n,a){for(var i={};n.length;){var s=n[0],o=s.code,c=s.message,d=s.path.join(".");if(!i[d])if("unionErrors"in s){var h=s.unionErrors[0].errors[0];i[d]={message:h.message,type:h.code}}else i[d]={message:c,type:o};if("unionErrors"in s&&s.unionErrors.forEach(function(g){return g.errors.forEach(function(S){return n.push(S)})}),a){var p=i[d].types,m=p&&p[s.code];i[d]=Ih(d,a,i,o,m?[].concat(m,s.message):s.message)}n.shift()}return i}function YM(n,a){for(var i={};n.length;){var s=n[0],o=s.code,c=s.message,d=s.path.join(".");if(!i[d])if(s.code==="invalid_union"&&s.errors.length>0){var h=s.errors[0][0];i[d]={message:h.message,type:h.code}}else i[d]={message:c,type:o};if(s.code==="invalid_union"&&s.errors.forEach(function(g){return g.forEach(function(S){return n.push(S)})}),a){var p=i[d].types,m=p&&p[s.code];i[d]=Ih(d,a,i,o,m?[].concat(m,s.message):s.message)}n.shift()}return i}function IM(n,a,i){if(i===void 0&&(i={}),(function(s){return"_def"in s&&typeof s._def=="object"&&"typeName"in s._def})(n))return function(s,o,c){try{return Promise.resolve(eb(function(){return Promise.resolve(n[i.mode==="sync"?"parse":"parseAsync"](s,a)).then(function(d){return c.shouldUseNativeValidation&&ih({},c),{errors:{},values:i.raw?Object.assign({},s):d}})},function(d){if((function(h){return Array.isArray(h?.issues)})(d))return{values:{},errors:Jy(ZM(d.errors,!c.shouldUseNativeValidation&&c.criteriaMode==="all"),c)};throw d}))}catch(d){return Promise.reject(d)}};if((function(s){return"_zod"in s&&typeof s._zod=="object"})(n))return function(s,o,c){try{return Promise.resolve(eb(function(){return Promise.resolve((i.mode==="sync"?PM:FM)(n,s,a)).then(function(d){return c.shouldUseNativeValidation&&ih({},c),{errors:{},values:i.raw?Object.assign({},s):d}})},function(d){if((function(h){return h instanceof HM})(d))return{values:{},errors:Jy(YM(d.issues,!c.shouldUseNativeValidation&&c.criteriaMode==="all"),c)};throw d}))}catch(d){return Promise.reject(d)}};throw new Error("Invalid input: not a Zod schema")}function Rd({className:n,...a}){return y.jsx("div",{"data-slot":"card",className:We("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",n),...a})}function Od({className:n,...a}){return y.jsx("div",{"data-slot":"card-content",className:We("px-6",n),...a})}function QM({className:n,...a}){return y.jsx("textarea",{"data-slot":"textarea",className:We("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",n),...a})}var XM="Label",cS=b.forwardRef((n,a)=>y.jsx(Ye.label,{...n,ref:a,onMouseDown:i=>{i.target.closest("button, input, select, textarea")||(n.onMouseDown?.(i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));cS.displayName=XM;var KM=cS;function $M({className:n,...a}){return y.jsx(KM,{"data-slot":"label",className:We("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),...a})}const JM=yM,fS=b.createContext({}),ya=({...n})=>y.jsx(fS.Provider,{value:{name:n.name},children:y.jsx(SM,{...n})}),Kh=()=>{const n=b.useContext(fS),a=b.useContext(dS),{getFieldState:i}=Iu(),s=Kx({name:n.name}),o=i(n.name,s);if(!n)throw new Error("useFormField should be used within <FormField>");const{id:c}=a;return{id:c,name:n.name,formItemId:`${c}-form-item`,formDescriptionId:`${c}-form-item-description`,formMessageId:`${c}-form-item-message`,...o}},dS=b.createContext({});function ba({className:n,...a}){const i=b.useId();return y.jsx(dS.Provider,{value:{id:i},children:y.jsx("div",{"data-slot":"form-item",className:We("grid gap-2",n),...a})})}function Gn({className:n,...a}){const{error:i,formItemId:s}=Kh();return y.jsx($M,{"data-slot":"form-label","data-error":!!i,className:We("data-[error=true]:text-destructive",n),htmlFor:s,...a})}function nr({...n}){const{error:a,formItemId:i,formDescriptionId:s,formMessageId:o}=Kh();return y.jsx(vh,{"data-slot":"form-control",id:i,"aria-describedby":a?`${s} ${o}`:`${s}`,"aria-invalid":!!a,...n})}function xa({className:n,...a}){const{error:i,formMessageId:s}=Kh(),o=i?String(i?.message??""):a.children;return o?y.jsx("p",{"data-slot":"form-message",id:s,className:We("text-destructive text-sm",n),...a,children:o}):null}async function WM(n){return fetch(n).then(a=>a.blob()).then(a=>new Promise((i,s)=>{const o=new FileReader;o.onloadend=()=>{typeof o.result=="string"?i(o.result):s("Failed to convert blob to base64")},o.onerror=s,o.readAsDataURL(a)}))}var Qe;(function(n){n.assertEqual=o=>{};function a(o){}n.assertIs=a;function i(o){throw new Error}n.assertNever=i,n.arrayToEnum=o=>{const c={};for(const d of o)c[d]=d;return c},n.getValidEnumValues=o=>{const c=n.objectKeys(o).filter(h=>typeof o[o[h]]!="number"),d={};for(const h of c)d[h]=o[h];return n.objectValues(d)},n.objectValues=o=>n.objectKeys(o).map(function(c){return o[c]}),n.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const c=[];for(const d in o)Object.prototype.hasOwnProperty.call(o,d)&&c.push(d);return c},n.find=(o,c)=>{for(const d of o)if(c(d))return d},n.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function s(o,c=" | "){return o.map(d=>typeof d=="string"?`'${d}'`:d).join(c)}n.joinValues=s,n.jsonStringifyReplacer=(o,c)=>typeof c=="bigint"?c.toString():c})(Qe||(Qe={}));var sh;(function(n){n.mergeShapes=(a,i)=>({...a,...i})})(sh||(sh={}));const ve=Qe.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wa=n=>{switch(typeof n){case"undefined":return ve.undefined;case"string":return ve.string;case"number":return Number.isNaN(n)?ve.nan:ve.number;case"boolean":return ve.boolean;case"function":return ve.function;case"bigint":return ve.bigint;case"symbol":return ve.symbol;case"object":return Array.isArray(n)?ve.array:n===null?ve.null:n.then&&typeof n.then=="function"&&n.catch&&typeof n.catch=="function"?ve.promise:typeof Map<"u"&&n instanceof Map?ve.map:typeof Set<"u"&&n instanceof Set?ve.set:typeof Date<"u"&&n instanceof Date?ve.date:ve.object;default:return ve.unknown}},te=Qe.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),eN=n=>JSON.stringify(n,null,2).replace(/"([^"]+)":/g,"$1:");class fn extends Error{get errors(){return this.issues}constructor(a){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const i=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,i):this.__proto__=i,this.name="ZodError",this.issues=a}format(a){const i=a||function(c){return c.message},s={_errors:[]},o=c=>{for(const d of c.issues)if(d.code==="invalid_union")d.unionErrors.map(o);else if(d.code==="invalid_return_type")o(d.returnTypeError);else if(d.code==="invalid_arguments")o(d.argumentsError);else if(d.path.length===0)s._errors.push(i(d));else{let h=s,p=0;for(;p<d.path.length;){const m=d.path[p];p===d.path.length-1?(h[m]=h[m]||{_errors:[]},h[m]._errors.push(i(d))):h[m]=h[m]||{_errors:[]},h=h[m],p++}}};return o(this),s}static assert(a){if(!(a instanceof fn))throw new Error(`Not a ZodError: ${a}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Qe.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(a=i=>i.message){const i={},s=[];for(const o of this.issues)if(o.path.length>0){const c=o.path[0];i[c]=i[c]||[],i[c].push(a(o))}else s.push(a(o));return{formErrors:s,fieldErrors:i}}get formErrors(){return this.flatten()}}fn.create=n=>new fn(n);const Ii=(n,a)=>{let i;switch(n.code){case te.invalid_type:n.received===ve.undefined?i="Required":i=`Expected ${n.expected}, received ${n.received}`;break;case te.invalid_literal:i=`Invalid literal value, expected ${JSON.stringify(n.expected,Qe.jsonStringifyReplacer)}`;break;case te.unrecognized_keys:i=`Unrecognized key(s) in object: ${Qe.joinValues(n.keys,", ")}`;break;case te.invalid_union:i="Invalid input";break;case te.invalid_union_discriminator:i=`Invalid discriminator value. Expected ${Qe.joinValues(n.options)}`;break;case te.invalid_enum_value:i=`Invalid enum value. Expected ${Qe.joinValues(n.options)}, received '${n.received}'`;break;case te.invalid_arguments:i="Invalid function arguments";break;case te.invalid_return_type:i="Invalid function return type";break;case te.invalid_date:i="Invalid date";break;case te.invalid_string:typeof n.validation=="object"?"includes"in n.validation?(i=`Invalid input: must include "${n.validation.includes}"`,typeof n.validation.position=="number"&&(i=`${i} at one or more positions greater than or equal to ${n.validation.position}`)):"startsWith"in n.validation?i=`Invalid input: must start with "${n.validation.startsWith}"`:"endsWith"in n.validation?i=`Invalid input: must end with "${n.validation.endsWith}"`:Qe.assertNever(n.validation):n.validation!=="regex"?i=`Invalid ${n.validation}`:i="Invalid";break;case te.too_small:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at least":"more than"} ${n.minimum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at least":"over"} ${n.minimum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="bigint"?i=`Number must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${n.minimum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly equal to ":n.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(n.minimum))}`:i="Invalid input";break;case te.too_big:n.type==="array"?i=`Array must contain ${n.exact?"exactly":n.inclusive?"at most":"less than"} ${n.maximum} element(s)`:n.type==="string"?i=`String must contain ${n.exact?"exactly":n.inclusive?"at most":"under"} ${n.maximum} character(s)`:n.type==="number"?i=`Number must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="bigint"?i=`BigInt must be ${n.exact?"exactly":n.inclusive?"less than or equal to":"less than"} ${n.maximum}`:n.type==="date"?i=`Date must be ${n.exact?"exactly":n.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(n.maximum))}`:i="Invalid input";break;case te.custom:i="Invalid input";break;case te.invalid_intersection_types:i="Intersection results could not be merged";break;case te.not_multiple_of:i=`Number must be a multiple of ${n.multipleOf}`;break;case te.not_finite:i="Number must be finite";break;default:i=a.defaultError,Qe.assertNever(n)}return{message:i}};let hS=Ii;function tN(n){hS=n}function wu(){return hS}const Eu=n=>{const{data:a,path:i,errorMaps:s,issueData:o}=n,c=[...i,...o.path||[]],d={...o,path:c};if(o.message!==void 0)return{...o,path:c,message:o.message};let h="";const p=s.filter(m=>!!m).slice().reverse();for(const m of p)h=m(d,{data:a,defaultError:h}).message;return{...o,path:c,message:h}},nN=[];function he(n,a){const i=wu(),s=Eu({issueData:a,data:n.data,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,i,i===Ii?void 0:Ii].filter(o=>!!o)});n.common.issues.push(s)}class Ht{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(a,i){const s=[];for(const o of i){if(o.status==="aborted")return Me;o.status==="dirty"&&a.dirty(),s.push(o.value)}return{status:a.value,value:s}}static async mergeObjectAsync(a,i){const s=[];for(const o of i){const c=await o.key,d=await o.value;s.push({key:c,value:d})}return Ht.mergeObjectSync(a,s)}static mergeObjectSync(a,i){const s={};for(const o of i){const{key:c,value:d}=o;if(c.status==="aborted"||d.status==="aborted")return Me;c.status==="dirty"&&a.dirty(),d.status==="dirty"&&a.dirty(),c.value!=="__proto__"&&(typeof d.value<"u"||o.alwaysSet)&&(s[c.value]=d.value)}return{status:a.value,value:s}}}const Me=Object.freeze({status:"aborted"}),Pi=n=>({status:"dirty",value:n}),Ft=n=>({status:"valid",value:n}),lh=n=>n.status==="aborted",oh=n=>n.status==="dirty",Fr=n=>n.status==="valid",ml=n=>typeof Promise<"u"&&n instanceof Promise;var we;(function(n){n.errToObj=a=>typeof a=="string"?{message:a}:a||{},n.toString=a=>typeof a=="string"?a:a?.message})(we||(we={}));class $n{constructor(a,i,s,o){this._cachedPath=[],this.parent=a,this.data=i,this._path=s,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const tb=(n,a)=>{if(Fr(a))return{success:!0,data:a.value};if(!n.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const i=new fn(n.common.issues);return this._error=i,this._error}}};function ze(n){if(!n)return{};const{errorMap:a,invalid_type_error:i,required_error:s,description:o}=n;if(a&&(i||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return a?{errorMap:a,description:o}:{errorMap:(d,h)=>{const{message:p}=n;return d.code==="invalid_enum_value"?{message:p??h.defaultError}:typeof h.data>"u"?{message:p??s??h.defaultError}:d.code!=="invalid_type"?{message:h.defaultError}:{message:p??i??h.defaultError}},description:o}}class Le{get description(){return this._def.description}_getType(a){return wa(a.data)}_getOrReturnCtx(a,i){return i||{common:a.parent.common,data:a.data,parsedType:wa(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}_processInputParams(a){return{status:new Ht,ctx:{common:a.parent.common,data:a.data,parsedType:wa(a.data),schemaErrorMap:this._def.errorMap,path:a.path,parent:a.parent}}}_parseSync(a){const i=this._parse(a);if(ml(i))throw new Error("Synchronous parse encountered promise.");return i}_parseAsync(a){const i=this._parse(a);return Promise.resolve(i)}parse(a,i){const s=this.safeParse(a,i);if(s.success)return s.data;throw s.error}safeParse(a,i){const s={common:{issues:[],async:i?.async??!1,contextualErrorMap:i?.errorMap},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:wa(a)},o=this._parseSync({data:a,path:s.path,parent:s});return tb(s,o)}"~validate"(a){const i={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:wa(a)};if(!this["~standard"].async)try{const s=this._parseSync({data:a,path:[],parent:i});return Fr(s)?{value:s.value}:{issues:i.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),i.common={issues:[],async:!0}}return this._parseAsync({data:a,path:[],parent:i}).then(s=>Fr(s)?{value:s.value}:{issues:i.common.issues})}async parseAsync(a,i){const s=await this.safeParseAsync(a,i);if(s.success)return s.data;throw s.error}async safeParseAsync(a,i){const s={common:{issues:[],contextualErrorMap:i?.errorMap,async:!0},path:i?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:a,parsedType:wa(a)},o=this._parse({data:a,path:s.path,parent:s}),c=await(ml(o)?o:Promise.resolve(o));return tb(s,c)}refine(a,i){const s=o=>typeof i=="string"||typeof i>"u"?{message:i}:typeof i=="function"?i(o):i;return this._refinement((o,c)=>{const d=a(o),h=()=>c.addIssue({code:te.custom,...s(o)});return typeof Promise<"u"&&d instanceof Promise?d.then(p=>p?!0:(h(),!1)):d?!0:(h(),!1)})}refinement(a,i){return this._refinement((s,o)=>a(s)?!0:(o.addIssue(typeof i=="function"?i(s,o):i),!1))}_refinement(a){return new zn({schema:this,typeName:Ne.ZodEffects,effect:{type:"refinement",refinement:a}})}superRefine(a){return this._refinement(a)}constructor(a){this.spa=this.safeParseAsync,this._def=a,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:i=>this["~validate"](i)}}optional(){return Qn.create(this,this._def)}nullable(){return cr.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dn.create(this)}promise(){return Xi.create(this,this._def)}or(a){return yl.create([this,a],this._def)}and(a){return bl.create(this,a,this._def)}transform(a){return new zn({...ze(this._def),schema:this,typeName:Ne.ZodEffects,effect:{type:"transform",transform:a}})}default(a){const i=typeof a=="function"?a:()=>a;return new El({...ze(this._def),innerType:this,defaultValue:i,typeName:Ne.ZodDefault})}brand(){return new $h({typeName:Ne.ZodBranded,type:this,...ze(this._def)})}catch(a){const i=typeof a=="function"?a:()=>a;return new Tl({...ze(this._def),innerType:this,catchValue:i,typeName:Ne.ZodCatch})}describe(a){const i=this.constructor;return new i({...this._def,description:a})}pipe(a){return kl.create(this,a)}readonly(){return Al.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const aN=/^c[^\s-]{8,}$/i,rN=/^[0-9a-z]+$/,iN=/^[0-9A-HJKMNP-TV-Z]{26}$/i,sN=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,lN=/^[a-z0-9_-]{21}$/i,oN=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,uN=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,cN=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,fN="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Md;const dN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,hN=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,mN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,pN=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,vN=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gN=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,mS="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",yN=new RegExp(`^${mS}$`);function pS(n){let a="[0-5]\\d";n.precision?a=`${a}\\.\\d{${n.precision}}`:n.precision==null&&(a=`${a}(\\.\\d+)?`);const i=n.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${a})${i}`}function bN(n){return new RegExp(`^${pS(n)}$`)}function vS(n){let a=`${mS}T${pS(n)}`;const i=[];return i.push(n.local?"Z?":"Z"),n.offset&&i.push("([+-]\\d{2}:?\\d{2})"),a=`${a}(${i.join("|")})`,new RegExp(`^${a}$`)}function xN(n,a){return!!((a==="v4"||!a)&&dN.test(n)||(a==="v6"||!a)&&mN.test(n))}function SN(n,a){if(!oN.test(n))return!1;try{const[i]=n.split(".");if(!i)return!1;const s=i.replace(/-/g,"+").replace(/_/g,"/").padEnd(i.length+(4-i.length%4)%4,"="),o=JSON.parse(atob(s));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||a&&o.alg!==a)}catch{return!1}}function _N(n,a){return!!((a==="v4"||!a)&&hN.test(n)||(a==="v6"||!a)&&pN.test(n))}class Nn extends Le{_parse(a){if(this._def.coerce&&(a.data=String(a.data)),this._getType(a)!==ve.string){const c=this._getOrReturnCtx(a);return he(c,{code:te.invalid_type,expected:ve.string,received:c.parsedType}),Me}const s=new Ht;let o;for(const c of this._def.checks)if(c.kind==="min")a.data.length<c.value&&(o=this._getOrReturnCtx(a,o),he(o,{code:te.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if(c.kind==="max")a.data.length>c.value&&(o=this._getOrReturnCtx(a,o),he(o,{code:te.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!1,message:c.message}),s.dirty());else if(c.kind==="length"){const d=a.data.length>c.value,h=a.data.length<c.value;(d||h)&&(o=this._getOrReturnCtx(a,o),d?he(o,{code:te.too_big,maximum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}):h&&he(o,{code:te.too_small,minimum:c.value,type:"string",inclusive:!0,exact:!0,message:c.message}),s.dirty())}else if(c.kind==="email")cN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"email",code:te.invalid_string,message:c.message}),s.dirty());else if(c.kind==="emoji")Md||(Md=new RegExp(fN,"u")),Md.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"emoji",code:te.invalid_string,message:c.message}),s.dirty());else if(c.kind==="uuid")sN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"uuid",code:te.invalid_string,message:c.message}),s.dirty());else if(c.kind==="nanoid")lN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"nanoid",code:te.invalid_string,message:c.message}),s.dirty());else if(c.kind==="cuid")aN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"cuid",code:te.invalid_string,message:c.message}),s.dirty());else if(c.kind==="cuid2")rN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"cuid2",code:te.invalid_string,message:c.message}),s.dirty());else if(c.kind==="ulid")iN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"ulid",code:te.invalid_string,message:c.message}),s.dirty());else if(c.kind==="url")try{new URL(a.data)}catch{o=this._getOrReturnCtx(a,o),he(o,{validation:"url",code:te.invalid_string,message:c.message}),s.dirty()}else c.kind==="regex"?(c.regex.lastIndex=0,c.regex.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"regex",code:te.invalid_string,message:c.message}),s.dirty())):c.kind==="trim"?a.data=a.data.trim():c.kind==="includes"?a.data.includes(c.value,c.position)||(o=this._getOrReturnCtx(a,o),he(o,{code:te.invalid_string,validation:{includes:c.value,position:c.position},message:c.message}),s.dirty()):c.kind==="toLowerCase"?a.data=a.data.toLowerCase():c.kind==="toUpperCase"?a.data=a.data.toUpperCase():c.kind==="startsWith"?a.data.startsWith(c.value)||(o=this._getOrReturnCtx(a,o),he(o,{code:te.invalid_string,validation:{startsWith:c.value},message:c.message}),s.dirty()):c.kind==="endsWith"?a.data.endsWith(c.value)||(o=this._getOrReturnCtx(a,o),he(o,{code:te.invalid_string,validation:{endsWith:c.value},message:c.message}),s.dirty()):c.kind==="datetime"?vS(c).test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{code:te.invalid_string,validation:"datetime",message:c.message}),s.dirty()):c.kind==="date"?yN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{code:te.invalid_string,validation:"date",message:c.message}),s.dirty()):c.kind==="time"?bN(c).test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{code:te.invalid_string,validation:"time",message:c.message}),s.dirty()):c.kind==="duration"?uN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"duration",code:te.invalid_string,message:c.message}),s.dirty()):c.kind==="ip"?xN(a.data,c.version)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"ip",code:te.invalid_string,message:c.message}),s.dirty()):c.kind==="jwt"?SN(a.data,c.alg)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"jwt",code:te.invalid_string,message:c.message}),s.dirty()):c.kind==="cidr"?_N(a.data,c.version)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"cidr",code:te.invalid_string,message:c.message}),s.dirty()):c.kind==="base64"?vN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"base64",code:te.invalid_string,message:c.message}),s.dirty()):c.kind==="base64url"?gN.test(a.data)||(o=this._getOrReturnCtx(a,o),he(o,{validation:"base64url",code:te.invalid_string,message:c.message}),s.dirty()):Qe.assertNever(c);return{status:s.value,value:a.data}}_regex(a,i,s){return this.refinement(o=>a.test(o),{validation:i,code:te.invalid_string,...we.errToObj(s)})}_addCheck(a){return new Nn({...this._def,checks:[...this._def.checks,a]})}email(a){return this._addCheck({kind:"email",...we.errToObj(a)})}url(a){return this._addCheck({kind:"url",...we.errToObj(a)})}emoji(a){return this._addCheck({kind:"emoji",...we.errToObj(a)})}uuid(a){return this._addCheck({kind:"uuid",...we.errToObj(a)})}nanoid(a){return this._addCheck({kind:"nanoid",...we.errToObj(a)})}cuid(a){return this._addCheck({kind:"cuid",...we.errToObj(a)})}cuid2(a){return this._addCheck({kind:"cuid2",...we.errToObj(a)})}ulid(a){return this._addCheck({kind:"ulid",...we.errToObj(a)})}base64(a){return this._addCheck({kind:"base64",...we.errToObj(a)})}base64url(a){return this._addCheck({kind:"base64url",...we.errToObj(a)})}jwt(a){return this._addCheck({kind:"jwt",...we.errToObj(a)})}ip(a){return this._addCheck({kind:"ip",...we.errToObj(a)})}cidr(a){return this._addCheck({kind:"cidr",...we.errToObj(a)})}datetime(a){return typeof a=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:a}):this._addCheck({kind:"datetime",precision:typeof a?.precision>"u"?null:a?.precision,offset:a?.offset??!1,local:a?.local??!1,...we.errToObj(a?.message)})}date(a){return this._addCheck({kind:"date",message:a})}time(a){return typeof a=="string"?this._addCheck({kind:"time",precision:null,message:a}):this._addCheck({kind:"time",precision:typeof a?.precision>"u"?null:a?.precision,...we.errToObj(a?.message)})}duration(a){return this._addCheck({kind:"duration",...we.errToObj(a)})}regex(a,i){return this._addCheck({kind:"regex",regex:a,...we.errToObj(i)})}includes(a,i){return this._addCheck({kind:"includes",value:a,position:i?.position,...we.errToObj(i?.message)})}startsWith(a,i){return this._addCheck({kind:"startsWith",value:a,...we.errToObj(i)})}endsWith(a,i){return this._addCheck({kind:"endsWith",value:a,...we.errToObj(i)})}min(a,i){return this._addCheck({kind:"min",value:a,...we.errToObj(i)})}max(a,i){return this._addCheck({kind:"max",value:a,...we.errToObj(i)})}length(a,i){return this._addCheck({kind:"length",value:a,...we.errToObj(i)})}nonempty(a){return this.min(1,we.errToObj(a))}trim(){return new Nn({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Nn({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Nn({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(a=>a.kind==="datetime")}get isDate(){return!!this._def.checks.find(a=>a.kind==="date")}get isTime(){return!!this._def.checks.find(a=>a.kind==="time")}get isDuration(){return!!this._def.checks.find(a=>a.kind==="duration")}get isEmail(){return!!this._def.checks.find(a=>a.kind==="email")}get isURL(){return!!this._def.checks.find(a=>a.kind==="url")}get isEmoji(){return!!this._def.checks.find(a=>a.kind==="emoji")}get isUUID(){return!!this._def.checks.find(a=>a.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(a=>a.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(a=>a.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(a=>a.kind==="cuid2")}get isULID(){return!!this._def.checks.find(a=>a.kind==="ulid")}get isIP(){return!!this._def.checks.find(a=>a.kind==="ip")}get isCIDR(){return!!this._def.checks.find(a=>a.kind==="cidr")}get isBase64(){return!!this._def.checks.find(a=>a.kind==="base64")}get isBase64url(){return!!this._def.checks.find(a=>a.kind==="base64url")}get minLength(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxLength(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}}Nn.create=n=>new Nn({checks:[],typeName:Ne.ZodString,coerce:n?.coerce??!1,...ze(n)});function wN(n,a){const i=(n.toString().split(".")[1]||"").length,s=(a.toString().split(".")[1]||"").length,o=i>s?i:s,c=Number.parseInt(n.toFixed(o).replace(".","")),d=Number.parseInt(a.toFixed(o).replace(".",""));return c%d/10**o}class lr extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(a){if(this._def.coerce&&(a.data=Number(a.data)),this._getType(a)!==ve.number){const c=this._getOrReturnCtx(a);return he(c,{code:te.invalid_type,expected:ve.number,received:c.parsedType}),Me}let s;const o=new Ht;for(const c of this._def.checks)c.kind==="int"?Qe.isInteger(a.data)||(s=this._getOrReturnCtx(a,s),he(s,{code:te.invalid_type,expected:"integer",received:"float",message:c.message}),o.dirty()):c.kind==="min"?(c.inclusive?a.data<c.value:a.data<=c.value)&&(s=this._getOrReturnCtx(a,s),he(s,{code:te.too_small,minimum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),o.dirty()):c.kind==="max"?(c.inclusive?a.data>c.value:a.data>=c.value)&&(s=this._getOrReturnCtx(a,s),he(s,{code:te.too_big,maximum:c.value,type:"number",inclusive:c.inclusive,exact:!1,message:c.message}),o.dirty()):c.kind==="multipleOf"?wN(a.data,c.value)!==0&&(s=this._getOrReturnCtx(a,s),he(s,{code:te.not_multiple_of,multipleOf:c.value,message:c.message}),o.dirty()):c.kind==="finite"?Number.isFinite(a.data)||(s=this._getOrReturnCtx(a,s),he(s,{code:te.not_finite,message:c.message}),o.dirty()):Qe.assertNever(c);return{status:o.value,value:a.data}}gte(a,i){return this.setLimit("min",a,!0,we.toString(i))}gt(a,i){return this.setLimit("min",a,!1,we.toString(i))}lte(a,i){return this.setLimit("max",a,!0,we.toString(i))}lt(a,i){return this.setLimit("max",a,!1,we.toString(i))}setLimit(a,i,s,o){return new lr({...this._def,checks:[...this._def.checks,{kind:a,value:i,inclusive:s,message:we.toString(o)}]})}_addCheck(a){return new lr({...this._def,checks:[...this._def.checks,a]})}int(a){return this._addCheck({kind:"int",message:we.toString(a)})}positive(a){return this._addCheck({kind:"min",value:0,inclusive:!1,message:we.toString(a)})}negative(a){return this._addCheck({kind:"max",value:0,inclusive:!1,message:we.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:0,inclusive:!0,message:we.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:0,inclusive:!0,message:we.toString(a)})}multipleOf(a,i){return this._addCheck({kind:"multipleOf",value:a,message:we.toString(i)})}finite(a){return this._addCheck({kind:"finite",message:we.toString(a)})}safe(a){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:we.toString(a)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:we.toString(a)})}get minValue(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxValue(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}get isInt(){return!!this._def.checks.find(a=>a.kind==="int"||a.kind==="multipleOf"&&Qe.isInteger(a.value))}get isFinite(){let a=null,i=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(i===null||s.value>i)&&(i=s.value):s.kind==="max"&&(a===null||s.value<a)&&(a=s.value)}return Number.isFinite(i)&&Number.isFinite(a)}}lr.create=n=>new lr({checks:[],typeName:Ne.ZodNumber,coerce:n?.coerce||!1,...ze(n)});class or extends Le{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(a){if(this._def.coerce)try{a.data=BigInt(a.data)}catch{return this._getInvalidInput(a)}if(this._getType(a)!==ve.bigint)return this._getInvalidInput(a);let s;const o=new Ht;for(const c of this._def.checks)c.kind==="min"?(c.inclusive?a.data<c.value:a.data<=c.value)&&(s=this._getOrReturnCtx(a,s),he(s,{code:te.too_small,type:"bigint",minimum:c.value,inclusive:c.inclusive,message:c.message}),o.dirty()):c.kind==="max"?(c.inclusive?a.data>c.value:a.data>=c.value)&&(s=this._getOrReturnCtx(a,s),he(s,{code:te.too_big,type:"bigint",maximum:c.value,inclusive:c.inclusive,message:c.message}),o.dirty()):c.kind==="multipleOf"?a.data%c.value!==BigInt(0)&&(s=this._getOrReturnCtx(a,s),he(s,{code:te.not_multiple_of,multipleOf:c.value,message:c.message}),o.dirty()):Qe.assertNever(c);return{status:o.value,value:a.data}}_getInvalidInput(a){const i=this._getOrReturnCtx(a);return he(i,{code:te.invalid_type,expected:ve.bigint,received:i.parsedType}),Me}gte(a,i){return this.setLimit("min",a,!0,we.toString(i))}gt(a,i){return this.setLimit("min",a,!1,we.toString(i))}lte(a,i){return this.setLimit("max",a,!0,we.toString(i))}lt(a,i){return this.setLimit("max",a,!1,we.toString(i))}setLimit(a,i,s,o){return new or({...this._def,checks:[...this._def.checks,{kind:a,value:i,inclusive:s,message:we.toString(o)}]})}_addCheck(a){return new or({...this._def,checks:[...this._def.checks,a]})}positive(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:we.toString(a)})}negative(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:we.toString(a)})}nonpositive(a){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:we.toString(a)})}nonnegative(a){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:we.toString(a)})}multipleOf(a,i){return this._addCheck({kind:"multipleOf",value:a,message:we.toString(i)})}get minValue(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a}get maxValue(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a}}or.create=n=>new or({checks:[],typeName:Ne.ZodBigInt,coerce:n?.coerce??!1,...ze(n)});class pl extends Le{_parse(a){if(this._def.coerce&&(a.data=!!a.data),this._getType(a)!==ve.boolean){const s=this._getOrReturnCtx(a);return he(s,{code:te.invalid_type,expected:ve.boolean,received:s.parsedType}),Me}return Ft(a.data)}}pl.create=n=>new pl({typeName:Ne.ZodBoolean,coerce:n?.coerce||!1,...ze(n)});class Zr extends Le{_parse(a){if(this._def.coerce&&(a.data=new Date(a.data)),this._getType(a)!==ve.date){const c=this._getOrReturnCtx(a);return he(c,{code:te.invalid_type,expected:ve.date,received:c.parsedType}),Me}if(Number.isNaN(a.data.getTime())){const c=this._getOrReturnCtx(a);return he(c,{code:te.invalid_date}),Me}const s=new Ht;let o;for(const c of this._def.checks)c.kind==="min"?a.data.getTime()<c.value&&(o=this._getOrReturnCtx(a,o),he(o,{code:te.too_small,message:c.message,inclusive:!0,exact:!1,minimum:c.value,type:"date"}),s.dirty()):c.kind==="max"?a.data.getTime()>c.value&&(o=this._getOrReturnCtx(a,o),he(o,{code:te.too_big,message:c.message,inclusive:!0,exact:!1,maximum:c.value,type:"date"}),s.dirty()):Qe.assertNever(c);return{status:s.value,value:new Date(a.data.getTime())}}_addCheck(a){return new Zr({...this._def,checks:[...this._def.checks,a]})}min(a,i){return this._addCheck({kind:"min",value:a.getTime(),message:we.toString(i)})}max(a,i){return this._addCheck({kind:"max",value:a.getTime(),message:we.toString(i)})}get minDate(){let a=null;for(const i of this._def.checks)i.kind==="min"&&(a===null||i.value>a)&&(a=i.value);return a!=null?new Date(a):null}get maxDate(){let a=null;for(const i of this._def.checks)i.kind==="max"&&(a===null||i.value<a)&&(a=i.value);return a!=null?new Date(a):null}}Zr.create=n=>new Zr({checks:[],coerce:n?.coerce||!1,typeName:Ne.ZodDate,...ze(n)});class Tu extends Le{_parse(a){if(this._getType(a)!==ve.symbol){const s=this._getOrReturnCtx(a);return he(s,{code:te.invalid_type,expected:ve.symbol,received:s.parsedType}),Me}return Ft(a.data)}}Tu.create=n=>new Tu({typeName:Ne.ZodSymbol,...ze(n)});class vl extends Le{_parse(a){if(this._getType(a)!==ve.undefined){const s=this._getOrReturnCtx(a);return he(s,{code:te.invalid_type,expected:ve.undefined,received:s.parsedType}),Me}return Ft(a.data)}}vl.create=n=>new vl({typeName:Ne.ZodUndefined,...ze(n)});class gl extends Le{_parse(a){if(this._getType(a)!==ve.null){const s=this._getOrReturnCtx(a);return he(s,{code:te.invalid_type,expected:ve.null,received:s.parsedType}),Me}return Ft(a.data)}}gl.create=n=>new gl({typeName:Ne.ZodNull,...ze(n)});class Qi extends Le{constructor(){super(...arguments),this._any=!0}_parse(a){return Ft(a.data)}}Qi.create=n=>new Qi({typeName:Ne.ZodAny,...ze(n)});class Lr extends Le{constructor(){super(...arguments),this._unknown=!0}_parse(a){return Ft(a.data)}}Lr.create=n=>new Lr({typeName:Ne.ZodUnknown,...ze(n)});class Ra extends Le{_parse(a){const i=this._getOrReturnCtx(a);return he(i,{code:te.invalid_type,expected:ve.never,received:i.parsedType}),Me}}Ra.create=n=>new Ra({typeName:Ne.ZodNever,...ze(n)});class Au extends Le{_parse(a){if(this._getType(a)!==ve.undefined){const s=this._getOrReturnCtx(a);return he(s,{code:te.invalid_type,expected:ve.void,received:s.parsedType}),Me}return Ft(a.data)}}Au.create=n=>new Au({typeName:Ne.ZodVoid,...ze(n)});class Dn extends Le{_parse(a){const{ctx:i,status:s}=this._processInputParams(a),o=this._def;if(i.parsedType!==ve.array)return he(i,{code:te.invalid_type,expected:ve.array,received:i.parsedType}),Me;if(o.exactLength!==null){const d=i.data.length>o.exactLength.value,h=i.data.length<o.exactLength.value;(d||h)&&(he(i,{code:d?te.too_big:te.too_small,minimum:h?o.exactLength.value:void 0,maximum:d?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),s.dirty())}if(o.minLength!==null&&i.data.length<o.minLength.value&&(he(i,{code:te.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),s.dirty()),o.maxLength!==null&&i.data.length>o.maxLength.value&&(he(i,{code:te.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),s.dirty()),i.common.async)return Promise.all([...i.data].map((d,h)=>o.type._parseAsync(new $n(i,d,i.path,h)))).then(d=>Ht.mergeArray(s,d));const c=[...i.data].map((d,h)=>o.type._parseSync(new $n(i,d,i.path,h)));return Ht.mergeArray(s,c)}get element(){return this._def.type}min(a,i){return new Dn({...this._def,minLength:{value:a,message:we.toString(i)}})}max(a,i){return new Dn({...this._def,maxLength:{value:a,message:we.toString(i)}})}length(a,i){return new Dn({...this._def,exactLength:{value:a,message:we.toString(i)}})}nonempty(a){return this.min(1,a)}}Dn.create=(n,a)=>new Dn({type:n,minLength:null,maxLength:null,exactLength:null,typeName:Ne.ZodArray,...ze(a)});function qi(n){if(n instanceof dt){const a={};for(const i in n.shape){const s=n.shape[i];a[i]=Qn.create(qi(s))}return new dt({...n._def,shape:()=>a})}else return n instanceof Dn?new Dn({...n._def,type:qi(n.element)}):n instanceof Qn?Qn.create(qi(n.unwrap())):n instanceof cr?cr.create(qi(n.unwrap())):n instanceof Jn?Jn.create(n.items.map(a=>qi(a))):n}class dt extends Le{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const a=this._def.shape(),i=Qe.objectKeys(a);return this._cached={shape:a,keys:i},this._cached}_parse(a){if(this._getType(a)!==ve.object){const m=this._getOrReturnCtx(a);return he(m,{code:te.invalid_type,expected:ve.object,received:m.parsedType}),Me}const{status:s,ctx:o}=this._processInputParams(a),{shape:c,keys:d}=this._getCached(),h=[];if(!(this._def.catchall instanceof Ra&&this._def.unknownKeys==="strip"))for(const m in o.data)d.includes(m)||h.push(m);const p=[];for(const m of d){const g=c[m],S=o.data[m];p.push({key:{status:"valid",value:m},value:g._parse(new $n(o,S,o.path,m)),alwaysSet:m in o.data})}if(this._def.catchall instanceof Ra){const m=this._def.unknownKeys;if(m==="passthrough")for(const g of h)p.push({key:{status:"valid",value:g},value:{status:"valid",value:o.data[g]}});else if(m==="strict")h.length>0&&(he(o,{code:te.unrecognized_keys,keys:h}),s.dirty());else if(m!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const m=this._def.catchall;for(const g of h){const S=o.data[g];p.push({key:{status:"valid",value:g},value:m._parse(new $n(o,S,o.path,g)),alwaysSet:g in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const m=[];for(const g of p){const S=await g.key,w=await g.value;m.push({key:S,value:w,alwaysSet:g.alwaysSet})}return m}).then(m=>Ht.mergeObjectSync(s,m)):Ht.mergeObjectSync(s,p)}get shape(){return this._def.shape()}strict(a){return we.errToObj,new dt({...this._def,unknownKeys:"strict",...a!==void 0?{errorMap:(i,s)=>{const o=this._def.errorMap?.(i,s).message??s.defaultError;return i.code==="unrecognized_keys"?{message:we.errToObj(a).message??o}:{message:o}}}:{}})}strip(){return new dt({...this._def,unknownKeys:"strip"})}passthrough(){return new dt({...this._def,unknownKeys:"passthrough"})}extend(a){return new dt({...this._def,shape:()=>({...this._def.shape(),...a})})}merge(a){return new dt({unknownKeys:a._def.unknownKeys,catchall:a._def.catchall,shape:()=>({...this._def.shape(),...a._def.shape()}),typeName:Ne.ZodObject})}setKey(a,i){return this.augment({[a]:i})}catchall(a){return new dt({...this._def,catchall:a})}pick(a){const i={};for(const s of Qe.objectKeys(a))a[s]&&this.shape[s]&&(i[s]=this.shape[s]);return new dt({...this._def,shape:()=>i})}omit(a){const i={};for(const s of Qe.objectKeys(this.shape))a[s]||(i[s]=this.shape[s]);return new dt({...this._def,shape:()=>i})}deepPartial(){return qi(this)}partial(a){const i={};for(const s of Qe.objectKeys(this.shape)){const o=this.shape[s];a&&!a[s]?i[s]=o:i[s]=o.optional()}return new dt({...this._def,shape:()=>i})}required(a){const i={};for(const s of Qe.objectKeys(this.shape))if(a&&!a[s])i[s]=this.shape[s];else{let c=this.shape[s];for(;c instanceof Qn;)c=c._def.innerType;i[s]=c}return new dt({...this._def,shape:()=>i})}keyof(){return gS(Qe.objectKeys(this.shape))}}dt.create=(n,a)=>new dt({shape:()=>n,unknownKeys:"strip",catchall:Ra.create(),typeName:Ne.ZodObject,...ze(a)});dt.strictCreate=(n,a)=>new dt({shape:()=>n,unknownKeys:"strict",catchall:Ra.create(),typeName:Ne.ZodObject,...ze(a)});dt.lazycreate=(n,a)=>new dt({shape:n,unknownKeys:"strip",catchall:Ra.create(),typeName:Ne.ZodObject,...ze(a)});class yl extends Le{_parse(a){const{ctx:i}=this._processInputParams(a),s=this._def.options;function o(c){for(const h of c)if(h.result.status==="valid")return h.result;for(const h of c)if(h.result.status==="dirty")return i.common.issues.push(...h.ctx.common.issues),h.result;const d=c.map(h=>new fn(h.ctx.common.issues));return he(i,{code:te.invalid_union,unionErrors:d}),Me}if(i.common.async)return Promise.all(s.map(async c=>{const d={...i,common:{...i.common,issues:[]},parent:null};return{result:await c._parseAsync({data:i.data,path:i.path,parent:d}),ctx:d}})).then(o);{let c;const d=[];for(const p of s){const m={...i,common:{...i.common,issues:[]},parent:null},g=p._parseSync({data:i.data,path:i.path,parent:m});if(g.status==="valid")return g;g.status==="dirty"&&!c&&(c={result:g,ctx:m}),m.common.issues.length&&d.push(m.common.issues)}if(c)return i.common.issues.push(...c.ctx.common.issues),c.result;const h=d.map(p=>new fn(p));return he(i,{code:te.invalid_union,unionErrors:h}),Me}}get options(){return this._def.options}}yl.create=(n,a)=>new yl({options:n,typeName:Ne.ZodUnion,...ze(a)});const _a=n=>n instanceof Sl?_a(n.schema):n instanceof zn?_a(n.innerType()):n instanceof _l?[n.value]:n instanceof ur?n.options:n instanceof wl?Qe.objectValues(n.enum):n instanceof El?_a(n._def.innerType):n instanceof vl?[void 0]:n instanceof gl?[null]:n instanceof Qn?[void 0,..._a(n.unwrap())]:n instanceof cr?[null,..._a(n.unwrap())]:n instanceof $h||n instanceof Al?_a(n.unwrap()):n instanceof Tl?_a(n._def.innerType):[];class Qu extends Le{_parse(a){const{ctx:i}=this._processInputParams(a);if(i.parsedType!==ve.object)return he(i,{code:te.invalid_type,expected:ve.object,received:i.parsedType}),Me;const s=this.discriminator,o=i.data[s],c=this.optionsMap.get(o);return c?i.common.async?c._parseAsync({data:i.data,path:i.path,parent:i}):c._parseSync({data:i.data,path:i.path,parent:i}):(he(i,{code:te.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[s]}),Me)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(a,i,s){const o=new Map;for(const c of i){const d=_a(c.shape[a]);if(!d.length)throw new Error(`A discriminator value for key \`${a}\` could not be extracted from all schema options`);for(const h of d){if(o.has(h))throw new Error(`Discriminator property ${String(a)} has duplicate value ${String(h)}`);o.set(h,c)}}return new Qu({typeName:Ne.ZodDiscriminatedUnion,discriminator:a,options:i,optionsMap:o,...ze(s)})}}function uh(n,a){const i=wa(n),s=wa(a);if(n===a)return{valid:!0,data:n};if(i===ve.object&&s===ve.object){const o=Qe.objectKeys(a),c=Qe.objectKeys(n).filter(h=>o.indexOf(h)!==-1),d={...n,...a};for(const h of c){const p=uh(n[h],a[h]);if(!p.valid)return{valid:!1};d[h]=p.data}return{valid:!0,data:d}}else if(i===ve.array&&s===ve.array){if(n.length!==a.length)return{valid:!1};const o=[];for(let c=0;c<n.length;c++){const d=n[c],h=a[c],p=uh(d,h);if(!p.valid)return{valid:!1};o.push(p.data)}return{valid:!0,data:o}}else return i===ve.date&&s===ve.date&&+n==+a?{valid:!0,data:n}:{valid:!1}}class bl extends Le{_parse(a){const{status:i,ctx:s}=this._processInputParams(a),o=(c,d)=>{if(lh(c)||lh(d))return Me;const h=uh(c.value,d.value);return h.valid?((oh(c)||oh(d))&&i.dirty(),{status:i.value,value:h.data}):(he(s,{code:te.invalid_intersection_types}),Me)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([c,d])=>o(c,d)):o(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}bl.create=(n,a,i)=>new bl({left:n,right:a,typeName:Ne.ZodIntersection,...ze(i)});class Jn extends Le{_parse(a){const{status:i,ctx:s}=this._processInputParams(a);if(s.parsedType!==ve.array)return he(s,{code:te.invalid_type,expected:ve.array,received:s.parsedType}),Me;if(s.data.length<this._def.items.length)return he(s,{code:te.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Me;!this._def.rest&&s.data.length>this._def.items.length&&(he(s,{code:te.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),i.dirty());const c=[...s.data].map((d,h)=>{const p=this._def.items[h]||this._def.rest;return p?p._parse(new $n(s,d,s.path,h)):null}).filter(d=>!!d);return s.common.async?Promise.all(c).then(d=>Ht.mergeArray(i,d)):Ht.mergeArray(i,c)}get items(){return this._def.items}rest(a){return new Jn({...this._def,rest:a})}}Jn.create=(n,a)=>{if(!Array.isArray(n))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Jn({items:n,typeName:Ne.ZodTuple,rest:null,...ze(a)})};class xl extends Le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:i,ctx:s}=this._processInputParams(a);if(s.parsedType!==ve.object)return he(s,{code:te.invalid_type,expected:ve.object,received:s.parsedType}),Me;const o=[],c=this._def.keyType,d=this._def.valueType;for(const h in s.data)o.push({key:c._parse(new $n(s,h,s.path,h)),value:d._parse(new $n(s,s.data[h],s.path,h)),alwaysSet:h in s.data});return s.common.async?Ht.mergeObjectAsync(i,o):Ht.mergeObjectSync(i,o)}get element(){return this._def.valueType}static create(a,i,s){return i instanceof Le?new xl({keyType:a,valueType:i,typeName:Ne.ZodRecord,...ze(s)}):new xl({keyType:Nn.create(),valueType:a,typeName:Ne.ZodRecord,...ze(i)})}}class Cu extends Le{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(a){const{status:i,ctx:s}=this._processInputParams(a);if(s.parsedType!==ve.map)return he(s,{code:te.invalid_type,expected:ve.map,received:s.parsedType}),Me;const o=this._def.keyType,c=this._def.valueType,d=[...s.data.entries()].map(([h,p],m)=>({key:o._parse(new $n(s,h,s.path,[m,"key"])),value:c._parse(new $n(s,p,s.path,[m,"value"]))}));if(s.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const p of d){const m=await p.key,g=await p.value;if(m.status==="aborted"||g.status==="aborted")return Me;(m.status==="dirty"||g.status==="dirty")&&i.dirty(),h.set(m.value,g.value)}return{status:i.value,value:h}})}else{const h=new Map;for(const p of d){const m=p.key,g=p.value;if(m.status==="aborted"||g.status==="aborted")return Me;(m.status==="dirty"||g.status==="dirty")&&i.dirty(),h.set(m.value,g.value)}return{status:i.value,value:h}}}}Cu.create=(n,a,i)=>new Cu({valueType:a,keyType:n,typeName:Ne.ZodMap,...ze(i)});class Yr extends Le{_parse(a){const{status:i,ctx:s}=this._processInputParams(a);if(s.parsedType!==ve.set)return he(s,{code:te.invalid_type,expected:ve.set,received:s.parsedType}),Me;const o=this._def;o.minSize!==null&&s.data.size<o.minSize.value&&(he(s,{code:te.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),i.dirty()),o.maxSize!==null&&s.data.size>o.maxSize.value&&(he(s,{code:te.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),i.dirty());const c=this._def.valueType;function d(p){const m=new Set;for(const g of p){if(g.status==="aborted")return Me;g.status==="dirty"&&i.dirty(),m.add(g.value)}return{status:i.value,value:m}}const h=[...s.data.values()].map((p,m)=>c._parse(new $n(s,p,s.path,m)));return s.common.async?Promise.all(h).then(p=>d(p)):d(h)}min(a,i){return new Yr({...this._def,minSize:{value:a,message:we.toString(i)}})}max(a,i){return new Yr({...this._def,maxSize:{value:a,message:we.toString(i)}})}size(a,i){return this.min(a,i).max(a,i)}nonempty(a){return this.min(1,a)}}Yr.create=(n,a)=>new Yr({valueType:n,minSize:null,maxSize:null,typeName:Ne.ZodSet,...ze(a)});class Zi extends Le{constructor(){super(...arguments),this.validate=this.implement}_parse(a){const{ctx:i}=this._processInputParams(a);if(i.parsedType!==ve.function)return he(i,{code:te.invalid_type,expected:ve.function,received:i.parsedType}),Me;function s(h,p){return Eu({data:h,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,wu(),Ii].filter(m=>!!m),issueData:{code:te.invalid_arguments,argumentsError:p}})}function o(h,p){return Eu({data:h,path:i.path,errorMaps:[i.common.contextualErrorMap,i.schemaErrorMap,wu(),Ii].filter(m=>!!m),issueData:{code:te.invalid_return_type,returnTypeError:p}})}const c={errorMap:i.common.contextualErrorMap},d=i.data;if(this._def.returns instanceof Xi){const h=this;return Ft(async function(...p){const m=new fn([]),g=await h._def.args.parseAsync(p,c).catch(A=>{throw m.addIssue(s(p,A)),m}),S=await Reflect.apply(d,this,g);return await h._def.returns._def.type.parseAsync(S,c).catch(A=>{throw m.addIssue(o(S,A)),m})})}else{const h=this;return Ft(function(...p){const m=h._def.args.safeParse(p,c);if(!m.success)throw new fn([s(p,m.error)]);const g=Reflect.apply(d,this,m.data),S=h._def.returns.safeParse(g,c);if(!S.success)throw new fn([o(g,S.error)]);return S.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...a){return new Zi({...this._def,args:Jn.create(a).rest(Lr.create())})}returns(a){return new Zi({...this._def,returns:a})}implement(a){return this.parse(a)}strictImplement(a){return this.parse(a)}static create(a,i,s){return new Zi({args:a||Jn.create([]).rest(Lr.create()),returns:i||Lr.create(),typeName:Ne.ZodFunction,...ze(s)})}}class Sl extends Le{get schema(){return this._def.getter()}_parse(a){const{ctx:i}=this._processInputParams(a);return this._def.getter()._parse({data:i.data,path:i.path,parent:i})}}Sl.create=(n,a)=>new Sl({getter:n,typeName:Ne.ZodLazy,...ze(a)});class _l extends Le{_parse(a){if(a.data!==this._def.value){const i=this._getOrReturnCtx(a);return he(i,{received:i.data,code:te.invalid_literal,expected:this._def.value}),Me}return{status:"valid",value:a.data}}get value(){return this._def.value}}_l.create=(n,a)=>new _l({value:n,typeName:Ne.ZodLiteral,...ze(a)});function gS(n,a){return new ur({values:n,typeName:Ne.ZodEnum,...ze(a)})}class ur extends Le{_parse(a){if(typeof a.data!="string"){const i=this._getOrReturnCtx(a),s=this._def.values;return he(i,{expected:Qe.joinValues(s),received:i.parsedType,code:te.invalid_type}),Me}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(a.data)){const i=this._getOrReturnCtx(a),s=this._def.values;return he(i,{received:i.data,code:te.invalid_enum_value,options:s}),Me}return Ft(a.data)}get options(){return this._def.values}get enum(){const a={};for(const i of this._def.values)a[i]=i;return a}get Values(){const a={};for(const i of this._def.values)a[i]=i;return a}get Enum(){const a={};for(const i of this._def.values)a[i]=i;return a}extract(a,i=this._def){return ur.create(a,{...this._def,...i})}exclude(a,i=this._def){return ur.create(this.options.filter(s=>!a.includes(s)),{...this._def,...i})}}ur.create=gS;class wl extends Le{_parse(a){const i=Qe.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(a);if(s.parsedType!==ve.string&&s.parsedType!==ve.number){const o=Qe.objectValues(i);return he(s,{expected:Qe.joinValues(o),received:s.parsedType,code:te.invalid_type}),Me}if(this._cache||(this._cache=new Set(Qe.getValidEnumValues(this._def.values))),!this._cache.has(a.data)){const o=Qe.objectValues(i);return he(s,{received:s.data,code:te.invalid_enum_value,options:o}),Me}return Ft(a.data)}get enum(){return this._def.values}}wl.create=(n,a)=>new wl({values:n,typeName:Ne.ZodNativeEnum,...ze(a)});class Xi extends Le{unwrap(){return this._def.type}_parse(a){const{ctx:i}=this._processInputParams(a);if(i.parsedType!==ve.promise&&i.common.async===!1)return he(i,{code:te.invalid_type,expected:ve.promise,received:i.parsedType}),Me;const s=i.parsedType===ve.promise?i.data:Promise.resolve(i.data);return Ft(s.then(o=>this._def.type.parseAsync(o,{path:i.path,errorMap:i.common.contextualErrorMap})))}}Xi.create=(n,a)=>new Xi({type:n,typeName:Ne.ZodPromise,...ze(a)});class zn extends Le{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ne.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(a){const{status:i,ctx:s}=this._processInputParams(a),o=this._def.effect||null,c={addIssue:d=>{he(s,d),d.fatal?i.abort():i.dirty()},get path(){return s.path}};if(c.addIssue=c.addIssue.bind(c),o.type==="preprocess"){const d=o.transform(s.data,c);if(s.common.async)return Promise.resolve(d).then(async h=>{if(i.value==="aborted")return Me;const p=await this._def.schema._parseAsync({data:h,path:s.path,parent:s});return p.status==="aborted"?Me:p.status==="dirty"||i.value==="dirty"?Pi(p.value):p});{if(i.value==="aborted")return Me;const h=this._def.schema._parseSync({data:d,path:s.path,parent:s});return h.status==="aborted"?Me:h.status==="dirty"||i.value==="dirty"?Pi(h.value):h}}if(o.type==="refinement"){const d=h=>{const p=o.refinement(h,c);if(s.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(s.common.async===!1){const h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return h.status==="aborted"?Me:(h.status==="dirty"&&i.dirty(),d(h.value),{status:i.value,value:h.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>h.status==="aborted"?Me:(h.status==="dirty"&&i.dirty(),d(h.value).then(()=>({status:i.value,value:h.value}))))}if(o.type==="transform")if(s.common.async===!1){const d=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!Fr(d))return Me;const h=o.transform(d.value,c);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:i.value,value:h}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(d=>Fr(d)?Promise.resolve(o.transform(d.value,c)).then(h=>({status:i.value,value:h})):Me);Qe.assertNever(o)}}zn.create=(n,a,i)=>new zn({schema:n,typeName:Ne.ZodEffects,effect:a,...ze(i)});zn.createWithPreprocess=(n,a,i)=>new zn({schema:a,effect:{type:"preprocess",transform:n},typeName:Ne.ZodEffects,...ze(i)});class Qn extends Le{_parse(a){return this._getType(a)===ve.undefined?Ft(void 0):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}Qn.create=(n,a)=>new Qn({innerType:n,typeName:Ne.ZodOptional,...ze(a)});class cr extends Le{_parse(a){return this._getType(a)===ve.null?Ft(null):this._def.innerType._parse(a)}unwrap(){return this._def.innerType}}cr.create=(n,a)=>new cr({innerType:n,typeName:Ne.ZodNullable,...ze(a)});class El extends Le{_parse(a){const{ctx:i}=this._processInputParams(a);let s=i.data;return i.parsedType===ve.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:i.path,parent:i})}removeDefault(){return this._def.innerType}}El.create=(n,a)=>new El({innerType:n,typeName:Ne.ZodDefault,defaultValue:typeof a.default=="function"?a.default:()=>a.default,...ze(a)});class Tl extends Le{_parse(a){const{ctx:i}=this._processInputParams(a),s={...i,common:{...i.common,issues:[]}},o=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return ml(o)?o.then(c=>({status:"valid",value:c.status==="valid"?c.value:this._def.catchValue({get error(){return new fn(s.common.issues)},input:s.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new fn(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}Tl.create=(n,a)=>new Tl({innerType:n,typeName:Ne.ZodCatch,catchValue:typeof a.catch=="function"?a.catch:()=>a.catch,...ze(a)});class Ru extends Le{_parse(a){if(this._getType(a)!==ve.nan){const s=this._getOrReturnCtx(a);return he(s,{code:te.invalid_type,expected:ve.nan,received:s.parsedType}),Me}return{status:"valid",value:a.data}}}Ru.create=n=>new Ru({typeName:Ne.ZodNaN,...ze(n)});const EN=Symbol("zod_brand");class $h extends Le{_parse(a){const{ctx:i}=this._processInputParams(a),s=i.data;return this._def.type._parse({data:s,path:i.path,parent:i})}unwrap(){return this._def.type}}class kl extends Le{_parse(a){const{status:i,ctx:s}=this._processInputParams(a);if(s.common.async)return(async()=>{const c=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return c.status==="aborted"?Me:c.status==="dirty"?(i.dirty(),Pi(c.value)):this._def.out._parseAsync({data:c.value,path:s.path,parent:s})})();{const o=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return o.status==="aborted"?Me:o.status==="dirty"?(i.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:s.path,parent:s})}}static create(a,i){return new kl({in:a,out:i,typeName:Ne.ZodPipeline})}}class Al extends Le{_parse(a){const i=this._def.innerType._parse(a),s=o=>(Fr(o)&&(o.value=Object.freeze(o.value)),o);return ml(i)?i.then(o=>s(o)):s(i)}unwrap(){return this._def.innerType}}Al.create=(n,a)=>new Al({innerType:n,typeName:Ne.ZodReadonly,...ze(a)});function nb(n,a){const i=typeof n=="function"?n(a):typeof n=="string"?{message:n}:n;return typeof i=="string"?{message:i}:i}function yS(n,a={},i){return n?Qi.create().superRefine((s,o)=>{const c=n(s);if(c instanceof Promise)return c.then(d=>{if(!d){const h=nb(a,s),p=h.fatal??i??!0;o.addIssue({code:"custom",...h,fatal:p})}});if(!c){const d=nb(a,s),h=d.fatal??i??!0;o.addIssue({code:"custom",...d,fatal:h})}}):Qi.create()}const TN={object:dt.lazycreate};var Ne;(function(n){n.ZodString="ZodString",n.ZodNumber="ZodNumber",n.ZodNaN="ZodNaN",n.ZodBigInt="ZodBigInt",n.ZodBoolean="ZodBoolean",n.ZodDate="ZodDate",n.ZodSymbol="ZodSymbol",n.ZodUndefined="ZodUndefined",n.ZodNull="ZodNull",n.ZodAny="ZodAny",n.ZodUnknown="ZodUnknown",n.ZodNever="ZodNever",n.ZodVoid="ZodVoid",n.ZodArray="ZodArray",n.ZodObject="ZodObject",n.ZodUnion="ZodUnion",n.ZodDiscriminatedUnion="ZodDiscriminatedUnion",n.ZodIntersection="ZodIntersection",n.ZodTuple="ZodTuple",n.ZodRecord="ZodRecord",n.ZodMap="ZodMap",n.ZodSet="ZodSet",n.ZodFunction="ZodFunction",n.ZodLazy="ZodLazy",n.ZodLiteral="ZodLiteral",n.ZodEnum="ZodEnum",n.ZodEffects="ZodEffects",n.ZodNativeEnum="ZodNativeEnum",n.ZodOptional="ZodOptional",n.ZodNullable="ZodNullable",n.ZodDefault="ZodDefault",n.ZodCatch="ZodCatch",n.ZodPromise="ZodPromise",n.ZodBranded="ZodBranded",n.ZodPipeline="ZodPipeline",n.ZodReadonly="ZodReadonly"})(Ne||(Ne={}));const AN=(n,a={message:`Input not instance of ${n.name}`})=>yS(i=>i instanceof n,a),bS=Nn.create,xS=lr.create,CN=Ru.create,RN=or.create,SS=pl.create,ON=Zr.create,MN=Tu.create,NN=vl.create,DN=gl.create,jN=Qi.create,kN=Lr.create,zN=Ra.create,UN=Au.create,LN=Dn.create,VN=dt.create,BN=dt.strictCreate,HN=yl.create,qN=Qu.create,PN=bl.create,GN=Jn.create,FN=xl.create,ZN=Cu.create,YN=Yr.create,IN=Zi.create,QN=Sl.create,XN=_l.create,KN=ur.create,$N=wl.create,JN=Xi.create,ab=zn.create,WN=Qn.create,e2=cr.create,t2=zn.createWithPreprocess,n2=kl.create,a2=()=>bS().optional(),r2=()=>xS().optional(),i2=()=>SS().optional(),s2={string:(n=>Nn.create({...n,coerce:!0})),number:(n=>lr.create({...n,coerce:!0})),boolean:(n=>pl.create({...n,coerce:!0})),bigint:(n=>or.create({...n,coerce:!0})),date:(n=>Zr.create({...n,coerce:!0}))},l2=Me,Pt=Object.freeze(Object.defineProperty({__proto__:null,BRAND:EN,DIRTY:Pi,EMPTY_PATH:nN,INVALID:Me,NEVER:l2,OK:Ft,ParseStatus:Ht,Schema:Le,ZodAny:Qi,ZodArray:Dn,ZodBigInt:or,ZodBoolean:pl,ZodBranded:$h,ZodCatch:Tl,ZodDate:Zr,ZodDefault:El,ZodDiscriminatedUnion:Qu,ZodEffects:zn,ZodEnum:ur,ZodError:fn,get ZodFirstPartyTypeKind(){return Ne},ZodFunction:Zi,ZodIntersection:bl,ZodIssueCode:te,ZodLazy:Sl,ZodLiteral:_l,ZodMap:Cu,ZodNaN:Ru,ZodNativeEnum:wl,ZodNever:Ra,ZodNull:gl,ZodNullable:cr,ZodNumber:lr,ZodObject:dt,ZodOptional:Qn,ZodParsedType:ve,ZodPipeline:kl,ZodPromise:Xi,ZodReadonly:Al,ZodRecord:xl,ZodSchema:Le,ZodSet:Yr,ZodString:Nn,ZodSymbol:Tu,ZodTransformer:zn,ZodTuple:Jn,ZodType:Le,ZodUndefined:vl,ZodUnion:yl,ZodUnknown:Lr,ZodVoid:Au,addIssueToContext:he,any:jN,array:LN,bigint:RN,boolean:SS,coerce:s2,custom:yS,date:ON,datetimeRegex:vS,defaultErrorMap:Ii,discriminatedUnion:qN,effect:ab,enum:KN,function:IN,getErrorMap:wu,getParsedType:wa,instanceof:AN,intersection:PN,isAborted:lh,isAsync:ml,isDirty:oh,isValid:Fr,late:TN,lazy:QN,literal:XN,makeIssue:Eu,map:ZN,nan:CN,nativeEnum:$N,never:zN,null:DN,nullable:e2,number:xS,object:VN,get objectUtil(){return sh},oboolean:i2,onumber:r2,optional:WN,ostring:a2,pipeline:n2,preprocess:t2,promise:JN,quotelessJson:eN,record:FN,set:YN,setErrorMap:tN,strictObject:BN,string:bS,symbol:MN,transformer:ab,tuple:GN,undefined:NN,union:HN,unknown:kN,get util(){return Qe},void:UN},Symbol.toStringTag,{value:"Module"})),o2=n=>{const{isLoading:a,refetch:i,...s}=Ld({queryKey:["product",n?.id],queryFn:async()=>n?(await kw(300),await Sa.get(n)):null});return{isLoading:a,refetch:i,...s}},u2=Pt.object({images:Pt.array(Pt.string()).min(1,"At least 1 image is required"),title:Pt.string().min(1,"Product title is required").min(5,"Product title must be at least 5 characters"),price:Pt.preprocess(n=>typeof n=="string"?Number(n):n,Pt.number({invalid_type_error:"Price must be a number",required_error:"Price is required"}).min(1,"Price must be greater than 0")),category:Pt.string().min(1,"Category is required"),condition:Pt.string().min(1,"Condition is required"),brand:Pt.string().optional(),description:Pt.string().min(1,"Description is required").min(20,"Description must be at least 20 characters"),tags:Pt.array(Pt.string()).optional(),sku:Pt.string().min(1,"Sku must be required"),location:Pt.string().optional(),publist:Pt.boolean().optional()});function c2({children:n,data:a,...i}){const[s,o]=b.useState(!1),[c,d]=b.useState(""),[h,p]=b.useState(""),m=zM({resolver:IM(u2),defaultValues:{images:[],title:"",price:0,category:"",condition:"",brand:"",description:"",tags:[],sku:"",location:"",publist:!1}}),g=m.watch("images"),S=m.watch("tags"),w=["New","Used - like new","Used - good","Used - fair"],A=["Tools","Electronics & computers"],{...O}=o2(a),_=()=>{if(c.trim()&&!S?.includes(c.trim())){const M=m.getValues("tags")||[];m.setValue("tags",[...M,c.trim()]),d("")}},C=M=>{const L=m.getValues("tags")||[];m.setValue("tags",L.filter(B=>B!==M))},U=async({images:M,...L})=>{try{let B=[];if(a){const z=a.images||[];B=(M||[]).filter(oe=>!z.includes(oe))}else B=M||[];const ne=await Promise.all(B.map(async z=>z.startsWith("blob:")?await WM(z):z)),Z={...L,images:ne};console.log("Product data to submit:",Z),console.log("Hình mới cần xử lý:",ne)}catch(B){console.error("Error submitting form:",B)}},N=()=>{o(!1),m.reset(),p(""),d("")};return b.useEffect(()=>{if(console.log({a:{...a,...O.data?.data.data}}),O.data?.data?.data&&a){const M=ru({...a,...O.data?.data.data});m.reset(M)}},[O.data,a]),y.jsxs(i0,{open:s,onOpenChange:o,children:[y.jsx(s0,{asChild:!0,children:n}),y.jsxs(l0,{"aria-describedby":void 0,className:"md:max-w-4xl h-[95vh] flex flex-col p-0",children:[y.jsx(o0,{className:"p-6 border-b",children:y.jsx(u0,{className:"text-2xl font-bold",children:a?"Edit product":"Create new product"})}),y.jsx("div",{className:"flex-1 overflow-y-auto p-6",children:y.jsx(JM,{...m,children:y.jsxs("form",{onSubmit:m.handleSubmit(U),className:"space-y-8",children:[y.jsx(Rd,{children:y.jsx(Od,{className:"p-6",children:y.jsx(ya,{control:m.control,name:"images",render:()=>y.jsxs(ba,{children:[y.jsx(Gn,{className:"text-lg font-semibold",children:"Images *"}),y.jsx(xa,{}),g.length>0&&y.jsx("div",{className:"mt-6 overflow-x-auto",children:y.jsx("div",{className:"flex gap-3",children:g.map((M,L)=>y.jsx("div",{className:"relative flex-shrink-0 w-32 h-32 group rounded-lg border overflow-hidden",children:y.jsx("img",{src:M||"/placeholder.svg",alt:`Preview ${L+1}`,className:"w-full h-full object-cover"})},L))})})]})})})}),y.jsx(Rd,{children:y.jsxs(Od,{className:"p-6 space-y-6",children:[y.jsx("h3",{className:"text-lg font-semibold border-b pb-2",children:"Product information"}),y.jsx(ya,{control:m.control,name:"title",render:({field:M})=>y.jsxs(ba,{children:[y.jsx(Gn,{children:"Title *"}),y.jsx(nr,{children:y.jsx(zr,{placeholder:"VD: MacBook Pro 14-inch 2023",...M})}),y.jsx(xa,{})]})}),y.jsx(ya,{control:m.control,name:"price",render:({field:M})=>y.jsxs(ba,{children:[y.jsx(Gn,{children:"Price ($) *"}),y.jsx(nr,{children:y.jsx(zr,{type:"number",placeholder:"10",...M})}),y.jsx(xa,{})]})}),y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[y.jsx(ya,{control:m.control,name:"category",render:({field:M})=>y.jsxs(ba,{children:[y.jsx(Gn,{children:"Category *"}),y.jsx(nr,{children:y.jsxs(eh,{onValueChange:M.onChange,value:M.value,children:[y.jsx(nh,{className:"w-full",children:y.jsx(th,{placeholder:"Select category"})}),y.jsx(ah,{children:A.map(L=>y.jsx(yu,{value:L.toLowerCase(),children:L},L))})]})}),y.jsx(xa,{})]})}),y.jsx(ya,{control:m.control,name:"condition",render:({field:M})=>y.jsxs(ba,{children:[y.jsx(Gn,{children:"Condition *"}),y.jsx(nr,{children:y.jsxs(eh,{onValueChange:M.onChange,value:M.value,children:[y.jsx(nh,{className:"w-full",children:y.jsx(th,{placeholder:"Select condition"})}),y.jsx(ah,{children:w.map(L=>y.jsx(yu,{value:L.toLowerCase(),children:L},L))})]})}),y.jsx(xa,{})]})}),y.jsx(ya,{control:m.control,name:"brand",render:({field:M})=>y.jsxs(ba,{children:[y.jsx(Gn,{children:"Brand"}),y.jsx(nr,{children:y.jsx(zr,{readOnly:!!a,placeholder:"VD: Cisco",...M})}),y.jsx(xa,{})]})})]}),y.jsx(ya,{control:m.control,name:"description",render:({field:M})=>y.jsxs(ba,{children:[y.jsx(Gn,{children:"Description *"}),y.jsx(nr,{children:y.jsx(QM,{rows:4,...M})}),y.jsx(xa,{})]})})]})}),y.jsx(Rd,{children:y.jsxs(Od,{className:"p-6 space-y-6",children:[y.jsx("h3",{className:"text-lg font-semibold border-b pb-2",children:"Additional information"}),y.jsxs("div",{className:"space-y-3",children:[y.jsx(Gn,{children:"Tags"}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(zr,{value:c,onChange:M=>d(M.target.value),placeholder:"Tag and press Enter",onKeyDown:M=>{M.key==="Enter"&&(M.preventDefault(),_())}}),y.jsx(_n,{type:"button",onClick:_,variant:"outline",children:y.jsx(pA,{className:"w-4 h-4"})})]}),S&&S?.length>0&&y.jsx("div",{className:"flex flex-wrap gap-2",children:S.map(M=>y.jsxs(qd,{onClick:()=>C(M),variant:"secondary",className:"flex items-center gap-1 px-3 py-1",children:[M,y.jsx(r0,{className:"w-3 h-3 cursor-pointer hover:text-red-500"})]},M))})]}),y.jsx(ya,{control:m.control,name:"sku",render:({field:M})=>y.jsxs(ba,{children:[y.jsx(Gn,{children:"Sku *"}),y.jsx(nr,{children:y.jsx(zr,{readOnly:!!a,placeholder:"VD: MBP14-2023-512GB",...M})}),y.jsx(xa,{})]})}),y.jsx(ya,{control:m.control,name:"location",render:({field:M})=>y.jsxs(ba,{children:[y.jsx(Gn,{children:"Location"}),y.jsx(nr,{children:y.jsx(zr,{placeholder:"VD: Hà Nội, Việt Nam",...M})}),y.jsx(xa,{})]})})]})})]})})}),y.jsx("div",{className:"p-6 border-t bg-white flex justify-end gap-3",children:y.jsx(_n,{type:"button",variant:"outline",onClick:N,children:"Close"})})]})]})}function f2(){const n=new zw("popup"),[a,i]=b.useState(""),[s,o]=b.useState({}),[c,d]=b.useState("all"),[h,p]=b.useState(1),[m,g]=b.useState(!1),[S]=mM(a,400),w=b.useMemo(()=>["products",{currentPage:h,search:S,filter:s}],[h,S,s]),{data:A,isLoading:O}=Ld({queryKey:w,queryFn:async()=>{const{data:z}=await Sa.index(Uw({skip:(h-1)*Sa.item_per_page,where:{productModelCode:a,status_listing:s?.statusFilter==="all"?void 0:s.statusFilter}}));return z}}),{data:_}=Ld({queryKey:["publised-products"],queryFn:async()=>{const{data:z}=await Sa.getPublistedProducts();return z??[]},staleTime:0,refetchOnMount:"always"}),C=b.useMemo(()=>!A||!A?.data?[]:A?.data.map(z=>ru(z)),[A]),U=z=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(z),N=()=>{i(""),d("all"),o({}),p(1),g(!1)},M=[c!=="all",a!==""].filter(Boolean).length,L=b.useMemo(()=>A?.total?Math.ceil(A.total/Sa.item_per_page):0,[A?.total,Sa.item_per_page]),B=b.useMemo(()=>(h-1)*Sa.item_per_page+1,[h]),ne=b.useMemo(()=>Math.min(h*Sa.item_per_page,A?.total??0),[h,A]),Z=async z=>{const ae=await Sa.get(z);!ae||!ae.data?.data||(z.status?n.send("content","popup-to-content",{type:"unlist",data:z}):(console.log({a:{...z,...ru({...ae.data?.data})},b:z}),n.send("content","popup-to-content",{type:"publist",data:{...z,images:ru({...ae.data?.data}).images}})))};return y.jsxs("div",{className:"space-y-4",children:[y.jsxs("div",{className:"flex items-center justify-between gap-4",children:[y.jsxs("div",{className:"relative flex-1",children:[y.jsx(gA,{className:"absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground"}),y.jsx(zr,{placeholder:"Search...",value:a,onChange:z=>i(z.target.value),className:"pl-10"})]}),y.jsxs(i0,{open:m,onOpenChange:g,children:[y.jsx(s0,{asChild:!0,children:y.jsxs(_n,{variant:"outline",className:"relative bg-transparent",children:[y.jsx(hA,{className:"h-4 w-4 mr-2"}),"Filters",M>0&&y.jsx(qd,{className:"ml-2 h-5 w-5 p-0 text-xs flex items-center justify-center",children:M})]})}),y.jsxs(l0,{"aria-describedby":void 0,className:"sm:max-w-md",children:[y.jsx(o0,{children:y.jsx(u0,{children:"Product Filters"})}),y.jsxs("div",{className:"space-y-4",children:[y.jsxs(eh,{value:c==="all"?"":c,onValueChange:d,children:[y.jsx(nh,{className:"w-[180px]",children:y.jsx(th,{placeholder:"Select a status"})}),y.jsx(ah,{"aria-describedby":void 0,children:y.jsxs(sM,{children:[y.jsx(yu,{value:"listed",children:"Listed"}),y.jsx(yu,{value:"unlisted",children:"Unlisted"})]})})]}),y.jsxs("div",{className:"flex gap-2",children:[y.jsx(_n,{variant:"outline",onClick:N,className:"flex-1 bg-transparent",children:"Clear Filters"}),y.jsx(_n,{onClick:()=>{g(!1),o({statusFilter:c})},className:"flex-1",children:"Apply"})]})]})]})]})]}),y.jsx("div",{className:"flex items-center justify-between text-sm text-muted-foreground",children:y.jsxs("span",{children:["Showing ",B,"-",ne," of ",A?.total??0," products"]})}),y.jsxs("div",{className:"rounded-md border overflow-x-auto relative",children:[O&&y.jsx("div",{className:"absolute inset-0 bg-[rgba(255,255,255,.6)] flex items-center justify-center z-10",children:y.jsx(pM,{})}),y.jsxs(uM,{className:"min-w-[500px]",children:[y.jsx(cM,{children:y.jsxs(Ad,{children:[y.jsx(nu,{className:"min-w-[200px]",children:"Name"}),y.jsx(nu,{className:"w-[80px]",children:"Price"}),y.jsx(nu,{className:"w-[80px]",children:"Status"}),y.jsx(nu,{className:"w-[80px] text-center sticky right-0 bg-background border-l shadow-[-4px_0_8px_rgba(0,0,0,0.1)]",children:"Actions"})]})}),y.jsx(fM,{className:"relative",children:C.length===0&&!O?y.jsx(Ad,{children:y.jsx(el,{colSpan:10,className:"text-center py-8 text-muted-foreground",children:"No products found"})}):C.map(z=>{const ae=_.some(oe=>oe.title.includes(z.sku));return z.status=ae,y.jsxs(Ad,{children:[y.jsxs(el,{className:"font-medium",children:[y.jsx("div",{className:"truncate max-w-[200px] w-fit",title:z.title,children:z.title}),y.jsx("div",{className:"text-sm text-muted-foreground truncate max-w-[200px]",title:z.description,children:z.description})]}),y.jsx(el,{className:"font-semibold",children:U(z.price)}),y.jsx(el,{children:y.jsx(qd,{variant:"secondary",children:z?.status?"Listed":"Unlisted"})}),y.jsx(el,{className:"text-center sticky right-0 bg-background border-l shadow-[-4px_0_8px_rgba(0,0,0,0.1)]",children:y.jsxs(bO,{children:[y.jsx(xO,{asChild:!0,children:y.jsx(_n,{variant:"ghost",size:"sm",className:"h-8 w-8 p-0 mx-auto",children:y.jsx(lA,{className:"h-4 w-4"})})}),y.jsxs(SO,{align:"end",children:[y.jsx(c2,{data:z,children:y.jsxs(Vy,{onSelect:oe=>{oe.preventDefault(),oe.stopPropagation()},children:[y.jsx(bA,{className:"h-4 w-4 mr-2"})," Edit"]})}),y.jsxs(Vy,{onClick:()=>Z(z),children:[z.status?y.jsx(uA,{className:"h-4 w-4 mr-2"}):y.jsx(fA,{className:"h-4 w-4 mr-2"}),z.status?"Unlist":"List"]})]})]})})]},z.id)})})]})]}),L>1&&y.jsxs("div",{className:"flex items-center justify-end gap-2",children:[y.jsxs(_n,{variant:"outline",size:"sm",onClick:()=>p(z=>Math.max(1,z-1)),disabled:h===1,children:[y.jsx(tA,{className:"h-4 w-4"}),"Previous"]}),y.jsx("div",{className:"flex items-center gap-1",children:L<=7?Array.from({length:L},(z,ae)=>y.jsx(_n,{variant:h===ae+1?"default":"outline",size:"sm",onClick:()=>p(ae+1),className:"w-8 h-8 p-0",children:ae+1},ae+1)):y.jsxs(y.Fragment,{children:[y.jsx(_n,{variant:h===1?"default":"outline",size:"sm",onClick:()=>p(1),className:"w-8 h-8 p-0",children:"1"}),h>4&&y.jsx("span",{className:"px-2 text-muted-foreground",children:"..."}),Array.from({length:3},(z,ae)=>{let oe;return h<=4?oe=ae+2:h>=L-3?oe=L-4+ae:oe=h-1+ae,oe>1&&oe<L?y.jsx(_n,{variant:h===oe?"default":"outline",size:"sm",onClick:()=>p(oe),className:"w-8 h-8 p-0",children:oe},oe):null}).filter(Boolean),h<L-3&&y.jsx("span",{className:"px-2 text-muted-foreground",children:"..."}),y.jsx(_n,{variant:h===L?"default":"outline",size:"sm",onClick:()=>p(L),className:"w-8 h-8 p-0",children:L})]})}),y.jsxs(_n,{variant:"outline",size:"sm",onClick:()=>p(z=>Math.min(L,z+1)),disabled:h===L,children:["Next",y.jsx(aA,{className:"h-4 w-4"})]})]})]})}function d2(){return y.jsx("div",{className:"w-fit min-h-[600px] p-8",children:y.jsx(f2,{})})}R1.createRoot(document.getElementById("root")).render(y.jsx(u1,{client:S1,children:y.jsx(d2,{})}));