(function(){"use strict";function _w(t,e){for(var n=0;n<e.length;n++){const a=e[n];if(typeof a!="string"&&!Array.isArray(a)){for(const l in a)if(l!=="default"&&!(l in t)){const r=Object.getOwnPropertyDescriptor(a,l);r&&Object.defineProperty(t,l,r.get?r:{enumerable:!0,get:()=>a[l]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function id(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sd={exports:{}},ho={};/**
 * @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 Rw=Symbol.for("react.transitional.element"),Ow=Symbol.for("react.fragment");function cd(t,e,n){var a=null;if(n!==void 0&&(a=""+n),e.key!==void 0&&(a=""+e.key),"key"in e){n={};for(var l in e)l!=="key"&&(n[l]=e[l])}else n=e;return e=n.ref,{$$typeof:Rw,type:t,key:a,ref:e!==void 0?e:null,props:n}}ho.Fragment=Ow,ho.jsx=cd,ho.jsxs=cd,sd.exports=ho;var d=sd.exports,ud={exports:{}},F={};/**
 * @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 _s=Symbol.for("react.transitional.element"),Mw=Symbol.for("react.portal"),Dw=Symbol.for("react.fragment"),jw=Symbol.for("react.strict_mode"),zw=Symbol.for("react.profiler"),Lw=Symbol.for("react.consumer"),Bw=Symbol.for("react.context"),Uw=Symbol.for("react.forward_ref"),Hw=Symbol.for("react.suspense"),Vw=Symbol.for("react.memo"),fd=Symbol.for("react.lazy"),kw=Symbol.for("react.activity"),dd=Symbol.iterator;function Yw(t){return t===null||typeof t!="object"?null:(t=dd&&t[dd]||t["@@iterator"],typeof t=="function"?t:null)}var md={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hd=Object.assign,pd={};function Fa(t,e,n){this.props=t,this.context=e,this.refs=pd,this.updater=n||md}Fa.prototype.isReactComponent={},Fa.prototype.setState=function(t,e){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,e,"setState")},Fa.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function gd(){}gd.prototype=Fa.prototype;function Rs(t,e,n){this.props=t,this.context=e,this.refs=pd,this.updater=n||md}var Os=Rs.prototype=new gd;Os.constructor=Rs,hd(Os,Fa.prototype),Os.isPureReactComponent=!0;var vd=Array.isArray;function Ms(){}var At={H:null,A:null,T:null,S:null},yd=Object.prototype.hasOwnProperty;function Ds(t,e,n){var a=n.ref;return{$$typeof:_s,type:t,key:e,ref:a!==void 0?a:null,props:n}}function qw(t,e){return Ds(t.type,e,t.props)}function js(t){return typeof t=="object"&&t!==null&&t.$$typeof===_s}function Gw(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(n){return e[n]})}var wd=/\/+/g;function zs(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Gw(""+t.key):e.toString(36)}function Pw(t){switch(t.status){case"fulfilled":return t.value;case"rejected":throw t.reason;default:switch(typeof t.status=="string"?t.then(Ms,Ms):(t.status="pending",t.then(function(e){t.status==="pending"&&(t.status="fulfilled",t.value=e)},function(e){t.status==="pending"&&(t.status="rejected",t.reason=e)})),t.status){case"fulfilled":return t.value;case"rejected":throw t.reason}}throw t}function Wa(t,e,n,a,l){var r=typeof t;(r==="undefined"||r==="boolean")&&(t=null);var o=!1;if(t===null)o=!0;else switch(r){case"bigint":case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case _s:case Mw:o=!0;break;case fd:return o=t._init,Wa(o(t._payload),e,n,a,l)}}if(o)return l=l(t),o=a===""?"."+zs(t,0):a,vd(l)?(n="",o!=null&&(n=o.replace(wd,"$&/")+"/"),Wa(l,e,n,"",function(c){return c})):l!=null&&(js(l)&&(l=qw(l,n+(l.key==null||t&&t.key===l.key?"":(""+l.key).replace(wd,"$&/")+"/")+o)),e.push(l)),1;o=0;var i=a===""?".":a+":";if(vd(t))for(var s=0;s<t.length;s++)a=t[s],r=i+zs(a,s),o+=Wa(a,e,n,r,l);else if(s=Yw(t),typeof s=="function")for(t=s.call(t),s=0;!(a=t.next()).done;)a=a.value,r=i+zs(a,s++),o+=Wa(a,e,n,r,l);else if(r==="object"){if(typeof t.then=="function")return Wa(Pw(t),e,n,a,l);throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}return o}function po(t,e,n){if(t==null)return t;var a=[],l=0;return Wa(t,a,"","",function(r){return e.call(n,r,l++)}),a}function Xw(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(n){(t._status===0||t._status===-1)&&(t._status=1,t._result=n)},function(n){(t._status===0||t._status===-1)&&(t._status=2,t._result=n)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var bd=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=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(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Qw={map:po,forEach:function(t,e,n){po(t,function(){e.apply(this,arguments)},n)},count:function(t){var e=0;return po(t,function(){e++}),e},toArray:function(t){return po(t,function(e){return e})||[]},only:function(t){if(!js(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};F.Activity=kw,F.Children=Qw,F.Component=Fa,F.Fragment=Dw,F.Profiler=zw,F.PureComponent=Rs,F.StrictMode=jw,F.Suspense=Hw,F.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=At,F.__COMPILER_RUNTIME={__proto__:null,c:function(t){return At.H.useMemoCache(t)}},F.cache=function(t){return function(){return t.apply(null,arguments)}},F.cacheSignal=function(){return null},F.cloneElement=function(t,e,n){if(t==null)throw Error("The argument must be a React element, but you passed "+t+".");var a=hd({},t.props),l=t.key;if(e!=null)for(r in e.key!==void 0&&(l=""+e.key),e)!yd.call(e,r)||r==="key"||r==="__self"||r==="__source"||r==="ref"&&e.ref===void 0||(a[r]=e[r]);var r=arguments.length-2;if(r===1)a.children=n;else if(1<r){for(var o=Array(r),i=0;i<r;i++)o[i]=arguments[i+2];a.children=o}return Ds(t.type,l,a)},F.createContext=function(t){return t={$$typeof:Bw,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null},t.Provider=t,t.Consumer={$$typeof:Lw,_context:t},t},F.createElement=function(t,e,n){var a,l={},r=null;if(e!=null)for(a in e.key!==void 0&&(r=""+e.key),e)yd.call(e,a)&&a!=="key"&&a!=="__self"&&a!=="__source"&&(l[a]=e[a]);var o=arguments.length-2;if(o===1)l.children=n;else if(1<o){for(var i=Array(o),s=0;s<o;s++)i[s]=arguments[s+2];l.children=i}if(t&&t.defaultProps)for(a in o=t.defaultProps,o)l[a]===void 0&&(l[a]=o[a]);return Ds(t,r,l)},F.createRef=function(){return{current:null}},F.forwardRef=function(t){return{$$typeof:Uw,render:t}},F.isValidElement=js,F.lazy=function(t){return{$$typeof:fd,_payload:{_status:-1,_result:t},_init:Xw}},F.memo=function(t,e){return{$$typeof:Vw,type:t,compare:e===void 0?null:e}},F.startTransition=function(t){var e=At.T,n={};At.T=n;try{var a=t(),l=At.S;l!==null&&l(n,a),typeof a=="object"&&a!==null&&typeof a.then=="function"&&a.then(Ms,bd)}catch(r){bd(r)}finally{e!==null&&n.types!==null&&(e.types=n.types),At.T=e}},F.unstable_useCacheRefresh=function(){return At.H.useCacheRefresh()},F.use=function(t){return At.H.use(t)},F.useActionState=function(t,e,n){return At.H.useActionState(t,e,n)},F.useCallback=function(t,e){return At.H.useCallback(t,e)},F.useContext=function(t){return At.H.useContext(t)},F.useDebugValue=function(){},F.useDeferredValue=function(t,e){return At.H.useDeferredValue(t,e)},F.useEffect=function(t,e){return At.H.useEffect(t,e)},F.useEffectEvent=function(t){return At.H.useEffectEvent(t)},F.useId=function(){return At.H.useId()},F.useImperativeHandle=function(t,e,n){return At.H.useImperativeHandle(t,e,n)},F.useInsertionEffect=function(t,e){return At.H.useInsertionEffect(t,e)},F.useLayoutEffect=function(t,e){return At.H.useLayoutEffect(t,e)},F.useMemo=function(t,e){return At.H.useMemo(t,e)},F.useOptimistic=function(t,e){return At.H.useOptimistic(t,e)},F.useReducer=function(t,e,n){return At.H.useReducer(t,e,n)},F.useRef=function(t){return At.H.useRef(t)},F.useState=function(t){return At.H.useState(t)},F.useSyncExternalStore=function(t,e,n){return At.H.useSyncExternalStore(t,e,n)},F.useTransition=function(){return At.H.useTransition()},F.version="19.2.4",ud.exports=F;var f=ud.exports;const B=id(f),Ls=_w({__proto__:null,default:B},[f]);var xd={exports:{}},go={},Sd={exports:{}},Ed={};/**
 * @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.
 */(function(t){function e(T,R){var A=T.length;T.push(R);t:for(;0<A;){var V=A-1>>>1,Q=T[V];if(0<l(Q,R))T[V]=R,T[A]=Q,A=V;else break t}}function n(T){return T.length===0?null:T[0]}function a(T){if(T.length===0)return null;var R=T[0],A=T.pop();if(A!==R){T[0]=A;t:for(var V=0,Q=T.length,ft=Q>>>1;V<ft;){var Et=2*(V+1)-1,Y=T[Et],P=Et+1,J=T[P];if(0>l(Y,A))P<Q&&0>l(J,Y)?(T[V]=J,T[P]=A,V=P):(T[V]=Y,T[Et]=A,V=Et);else if(P<Q&&0>l(J,A))T[V]=J,T[P]=A,V=P;else break t}}return R}function l(T,R){var A=T.sortIndex-R.sortIndex;return A!==0?A:T.id-R.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;t.unstable_now=function(){return r.now()}}else{var o=Date,i=o.now();t.unstable_now=function(){return o.now()-i}}var s=[],c=[],m=1,u=null,h=3,v=!1,x=!1,w=!1,S=!1,p=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,y=typeof setImmediate<"u"?setImmediate:null;function b(T){for(var R=n(c);R!==null;){if(R.callback===null)a(c);else if(R.startTime<=T)a(c),R.sortIndex=R.expirationTime,e(s,R);else break;R=n(c)}}function E(T){if(w=!1,b(T),!x)if(n(s)!==null)x=!0,_||(_=!0,U());else{var R=n(c);R!==null&&X(E,R.startTime-T)}}var _=!1,C=-1,N=5,D=-1;function z(){return S?!0:!(t.unstable_now()-D<N)}function L(){if(S=!1,_){var T=t.unstable_now();D=T;var R=!0;try{t:{x=!1,w&&(w=!1,g(C),C=-1),v=!0;var A=h;try{e:{for(b(T),u=n(s);u!==null&&!(u.expirationTime>T&&z());){var V=u.callback;if(typeof V=="function"){u.callback=null,h=u.priorityLevel;var Q=V(u.expirationTime<=T);if(T=t.unstable_now(),typeof Q=="function"){u.callback=Q,b(T),R=!0;break e}u===n(s)&&a(s),b(T)}else a(s);u=n(s)}if(u!==null)R=!0;else{var ft=n(c);ft!==null&&X(E,ft.startTime-T),R=!1}}break t}finally{u=null,h=A,v=!1}R=void 0}}finally{R?U():_=!1}}}var U;if(typeof y=="function")U=function(){y(L)};else if(typeof MessageChannel<"u"){var k=new MessageChannel,j=k.port2;k.port1.onmessage=L,U=function(){j.postMessage(null)}}else U=function(){p(L,0)};function X(T,R){C=p(function(){T(t.unstable_now())},R)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(T){T.callback=null},t.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):N=0<T?Math.floor(1e3/T):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_next=function(T){switch(h){case 1:case 2:case 3:var R=3;break;default:R=h}var A=h;h=R;try{return T()}finally{h=A}},t.unstable_requestPaint=function(){S=!0},t.unstable_runWithPriority=function(T,R){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var A=h;h=T;try{return R()}finally{h=A}},t.unstable_scheduleCallback=function(T,R,A){var V=t.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?V+A:V):A=V,T){case 1:var Q=-1;break;case 2:Q=250;break;case 5:Q=1073741823;break;case 4:Q=1e4;break;default:Q=5e3}return Q=A+Q,T={id:m++,callback:R,priorityLevel:T,startTime:A,expirationTime:Q,sortIndex:-1},A>V?(T.sortIndex=A,e(c,T),n(s)===null&&T===n(c)&&(w?(g(C),C=-1):w=!0,X(E,A-V))):(T.sortIndex=Q,e(s,T),x||v||(x=!0,_||(_=!0,U()))),T},t.unstable_shouldYield=z,t.unstable_wrapCallback=function(T){var R=h;return function(){var A=h;h=R;try{return T.apply(this,arguments)}finally{h=A}}}})(Ed),Sd.exports=Ed;var Zw=Sd.exports,Cd={exports:{}},ae={};/**
 * @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 Kw=f;function Ad(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Yn(){}var le={d:{f:Yn,r:function(){throw Error(Ad(522))},D:Yn,C:Yn,L:Yn,m:Yn,X:Yn,S:Yn,M:Yn},p:0,findDOMNode:null},$w=Symbol.for("react.portal");function Jw(t,e,n){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:$w,key:a==null?null:""+a,children:t,containerInfo:e,implementation:n}}var ir=Kw.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function vo(t,e){if(t==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le,ae.createPortal=function(t,e){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(Ad(299));return Jw(t,e,null,n)},ae.flushSync=function(t){var e=ir.T,n=le.p;try{if(ir.T=null,le.p=2,t)return t()}finally{ir.T=e,le.p=n,le.d.f()}},ae.preconnect=function(t,e){typeof t=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,le.d.C(t,e))},ae.prefetchDNS=function(t){typeof t=="string"&&le.d.D(t)},ae.preinit=function(t,e){if(typeof t=="string"&&e&&typeof e.as=="string"){var n=e.as,a=vo(n,e.crossOrigin),l=typeof e.integrity=="string"?e.integrity:void 0,r=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;n==="style"?le.d.S(t,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:a,integrity:l,fetchPriority:r}):n==="script"&&le.d.X(t,{crossOrigin:a,integrity:l,fetchPriority:r,nonce:typeof e.nonce=="string"?e.nonce:void 0})}},ae.preinitModule=function(t,e){if(typeof t=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var n=vo(e.as,e.crossOrigin);le.d.M(t,{crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&le.d.M(t)},ae.preload=function(t,e){if(typeof t=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var n=e.as,a=vo(n,e.crossOrigin);le.d.L(t,n,{crossOrigin:a,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}},ae.preloadModule=function(t,e){if(typeof t=="string")if(e){var n=vo(e.as,e.crossOrigin);le.d.m(t,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:n,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else le.d.m(t)},ae.requestFormReset=function(t){le.d.r(t)},ae.unstable_batchedUpdates=function(t,e){return t(e)},ae.useFormState=function(t,e,n){return ir.H.useFormState(t,e,n)},ae.useFormStatus=function(){return ir.H.useHostTransitionStatus()},ae.version="19.2.4";function Td(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Td)}catch(t){console.error(t)}}Td(),Cd.exports=ae;var Ia=Cd.exports;const Nd=id(Ia);/**
 * @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 kt=Zw,_d=f,Fw=Ia;function O(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Rd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function sr(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function Od(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Md(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function Dd(t){if(sr(t)!==t)throw Error(O(188))}function Ww(t){var e=t.alternate;if(!e){if(e=sr(t),e===null)throw Error(O(188));return e!==t?null:t}for(var n=t,a=e;;){var l=n.return;if(l===null)break;var r=l.alternate;if(r===null){if(a=l.return,a!==null){n=a;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===n)return Dd(l),t;if(r===a)return Dd(l),e;r=r.sibling}throw Error(O(188))}if(n.return!==a.return)n=l,a=r;else{for(var o=!1,i=l.child;i;){if(i===n){o=!0,n=l,a=r;break}if(i===a){o=!0,a=l,n=r;break}i=i.sibling}if(!o){for(i=r.child;i;){if(i===n){o=!0,n=r,a=l;break}if(i===a){o=!0,a=r,n=l;break}i=i.sibling}if(!o)throw Error(O(189))}}if(n.alternate!==a)throw Error(O(190))}if(n.tag!==3)throw Error(O(188));return n.stateNode.current===n?t:e}function jd(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=jd(t),e!==null)return e;t=t.sibling}return null}var Tt=Object.assign,Iw=Symbol.for("react.element"),yo=Symbol.for("react.transitional.element"),cr=Symbol.for("react.portal"),tl=Symbol.for("react.fragment"),zd=Symbol.for("react.strict_mode"),Bs=Symbol.for("react.profiler"),Ld=Symbol.for("react.consumer"),gn=Symbol.for("react.context"),Us=Symbol.for("react.forward_ref"),Hs=Symbol.for("react.suspense"),Vs=Symbol.for("react.suspense_list"),ks=Symbol.for("react.memo"),qn=Symbol.for("react.lazy"),Ys=Symbol.for("react.activity"),tb=Symbol.for("react.memo_cache_sentinel"),Bd=Symbol.iterator;function ur(t){return t===null||typeof t!="object"?null:(t=Bd&&t[Bd]||t["@@iterator"],typeof t=="function"?t:null)}var eb=Symbol.for("react.client.reference");function qs(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===eb?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case tl:return"Fragment";case Bs:return"Profiler";case zd:return"StrictMode";case Hs:return"Suspense";case Vs:return"SuspenseList";case Ys:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case cr:return"Portal";case gn:return t.displayName||"Context";case Ld:return(t._context.displayName||"Context")+".Consumer";case Us:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ks:return e=t.displayName||null,e!==null?e:qs(t.type)||"Memo";case qn:e=t._payload,t=t._init;try{return qs(t(e))}catch{}}return null}var fr=Array.isArray,K=_d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ct=Fw.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Sa={pending:!1,data:null,method:null,action:null},Gs=[],el=-1;function We(t){return{current:t}}function Gt(t){0>el||(t.current=Gs[el],Gs[el]=null,el--)}function xt(t,e){el++,Gs[el]=t.current,t.current=e}var Ie=We(null),dr=We(null),Gn=We(null),wo=We(null);function bo(t,e){switch(xt(Gn,e),xt(dr,t),xt(Ie,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?ig(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ig(e),t=sg(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Gt(Ie),xt(Ie,t)}function nl(){Gt(Ie),Gt(dr),Gt(Gn)}function Ps(t){t.memoizedState!==null&&xt(wo,t);var e=Ie.current,n=sg(e,t.type);e!==n&&(xt(dr,t),xt(Ie,n))}function xo(t){dr.current===t&&(Gt(Ie),Gt(dr)),wo.current===t&&(Gt(wo),eo._currentValue=Sa)}var Xs,Ud;function Ea(t){if(Xs===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Xs=e&&e[1]||"",Ud=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Xs+t+Ud}var Qs=!1;function Zs(t,e){if(!t||Qs)return"";Qs=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var u=function(){throw Error()};if(Object.defineProperty(u.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(u,[])}catch(v){var h=v}Reflect.construct(t,[],u)}else{try{u.call()}catch(v){h=v}t.call(u.prototype)}}else{try{throw Error()}catch(v){h=v}(u=t())&&typeof u.catch=="function"&&u.catch(function(){})}}catch(v){if(v&&h&&typeof v.stack=="string")return[v.stack,h.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=a.DetermineComponentFrameRoot(),o=r[0],i=r[1];if(o&&i){var s=o.split(`
`),c=i.split(`
`);for(l=a=0;a<s.length&&!s[a].includes("DetermineComponentFrameRoot");)a++;for(;l<c.length&&!c[l].includes("DetermineComponentFrameRoot");)l++;if(a===s.length||l===c.length)for(a=s.length-1,l=c.length-1;1<=a&&0<=l&&s[a]!==c[l];)l--;for(;1<=a&&0<=l;a--,l--)if(s[a]!==c[l]){if(a!==1||l!==1)do if(a--,l--,0>l||s[a]!==c[l]){var m=`
`+s[a].replace(" at new "," at ");return t.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",t.displayName)),m}while(1<=a&&0<=l);break}}}finally{Qs=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ea(n):""}function nb(t,e){switch(t.tag){case 26:case 27:case 5:return Ea(t.type);case 16:return Ea("Lazy");case 13:return t.child!==e&&e!==null?Ea("Suspense Fallback"):Ea("Suspense");case 19:return Ea("SuspenseList");case 0:case 15:return Zs(t.type,!1);case 11:return Zs(t.type.render,!1);case 1:return Zs(t.type,!0);case 31:return Ea("Activity");default:return""}}function Hd(t){try{var e="",n=null;do e+=nb(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Ks=Object.prototype.hasOwnProperty,$s=kt.unstable_scheduleCallback,Js=kt.unstable_cancelCallback,ab=kt.unstable_shouldYield,lb=kt.unstable_requestPaint,ge=kt.unstable_now,rb=kt.unstable_getCurrentPriorityLevel,Vd=kt.unstable_ImmediatePriority,kd=kt.unstable_UserBlockingPriority,So=kt.unstable_NormalPriority,ob=kt.unstable_LowPriority,Yd=kt.unstable_IdlePriority,ib=kt.log,sb=kt.unstable_setDisableYieldValue,mr=null,ve=null;function Pn(t){if(typeof ib=="function"&&sb(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(mr,t)}catch{}}var ye=Math.clz32?Math.clz32:fb,cb=Math.log,ub=Math.LN2;function fb(t){return t>>>=0,t===0?32:31-(cb(t)/ub|0)|0}var Eo=256,Co=262144,Ao=4194304;function Ca(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function To(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var l=0,r=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var i=a&134217727;return i!==0?(a=i&~r,a!==0?l=Ca(a):(o&=i,o!==0?l=Ca(o):n||(n=i&~t,n!==0&&(l=Ca(n))))):(i=a&~r,i!==0?l=Ca(i):o!==0?l=Ca(o):n||(n=a&~t,n!==0&&(l=Ca(n)))),l===0?0:e!==0&&e!==l&&!(e&r)&&(r=l&-l,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:l}function hr(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function db(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 qd(){var t=Ao;return Ao<<=1,!(Ao&62914560)&&(Ao=4194304),t}function Fs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function pr(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function mb(t,e,n,a,l,r){var o=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var i=t.entanglements,s=t.expirationTimes,c=t.hiddenUpdates;for(n=o&~n;0<n;){var m=31-ye(n),u=1<<m;i[m]=0,s[m]=-1;var h=c[m];if(h!==null)for(c[m]=null,m=0;m<h.length;m++){var v=h[m];v!==null&&(v.lane&=-536870913)}n&=~u}a!==0&&Gd(t,a,0),r!==0&&l===0&&t.tag!==0&&(t.suspendedLanes|=r&~(o&~e))}function Gd(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-ye(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Pd(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-ye(n),l=1<<a;l&e|t[a]&e&&(t[a]|=e),n&=~l}}function Xd(t,e){var n=e&-e;return n=n&42?1:Ws(n),n&(t.suspendedLanes|e)?0:n}function Ws(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Is(t){return t&=-t,2<t?8<t?t&134217727?32:268435456:8:2}function Qd(){var t=ct.p;return t!==0?t:(t=window.event,t===void 0?32:Mg(t.type))}function Zd(t,e){var n=ct.p;try{return ct.p=t,e()}finally{ct.p=n}}var Xn=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Xn,ie="__reactProps$"+Xn,al="__reactContainer$"+Xn,tc="__reactEvents$"+Xn,hb="__reactListeners$"+Xn,pb="__reactHandles$"+Xn,Kd="__reactResources$"+Xn,gr="__reactMarker$"+Xn;function ec(t){delete t[Zt],delete t[ie],delete t[tc],delete t[hb],delete t[pb]}function ll(t){var e=t[Zt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[al]||n[Zt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=pg(t);t!==null;){if(n=t[Zt])return n;t=pg(t)}return e}t=n,n=t.parentNode}return null}function rl(t){if(t=t[Zt]||t[al]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function vr(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(O(33))}function ol(t){var e=t[Kd];return e||(e=t[Kd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Pt(t){t[gr]=!0}var $d=new Set,Jd={};function Aa(t,e){il(t,e),il(t+"Capture",e)}function il(t,e){for(Jd[t]=e,t=0;t<e.length;t++)$d.add(e[t])}var gb=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]*$"),Fd={},Wd={};function vb(t){return Ks.call(Wd,t)?!0:Ks.call(Fd,t)?!1:gb.test(t)?Wd[t]=!0:(Fd[t]=!0,!1)}function No(t,e,n){if(vb(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function _o(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function vn(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}function Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Id(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function yb(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var l=a.get,r=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return l.call(this)},set:function(o){n=""+o,r.call(this,o)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function nc(t){if(!t._valueTracker){var e=Id(t)?"checked":"value";t._valueTracker=yb(t,e,""+t[e])}}function tm(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Id(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Ro(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var wb=/[\n"\\]/g;function Me(t){return t.replace(wb,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function ac(t,e,n,a,l,r,o,i){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?lc(t,o,Oe(e)):n!=null?lc(t,o,Oe(n)):a!=null&&t.removeAttribute("value"),l==null&&r!=null&&(t.defaultChecked=!!r),l!=null&&(t.checked=l&&typeof l!="function"&&typeof l!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?t.name=""+Oe(i):t.removeAttribute("name")}function em(t,e,n,a,l,r,o,i){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){nc(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,i||e===t.value||(t.value=e),t.defaultValue=e}a=a??l,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=i?t.checked:!!a,t.defaultChecked=!!a,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),nc(t)}function lc(t,e,n){e==="number"&&Ro(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function sl(t,e,n,a){if(t=t.options,e){e={};for(var l=0;l<n.length;l++)e["$"+n[l]]=!0;for(n=0;n<t.length;n++)l=e.hasOwnProperty("$"+t[n].value),t[n].selected!==l&&(t[n].selected=l),l&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Oe(n),e=null,l=0;l<t.length;l++){if(t[l].value===n){t[l].selected=!0,a&&(t[l].defaultSelected=!0);return}e!==null||t[l].disabled||(e=t[l])}e!==null&&(e.selected=!0)}}function nm(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function am(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(O(92));if(fr(a)){if(1<a.length)throw Error(O(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),nc(t)}function cl(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var bb=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 lm(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||bb.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function rm(t,e,n){if(e!=null&&typeof e!="object")throw Error(O(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var l in e)a=e[l],e.hasOwnProperty(l)&&n[l]!==a&&lm(t,l,a)}else for(var r in e)e.hasOwnProperty(r)&&lm(t,r,e[r])}function rc(t){if(t.indexOf("-")===-1)return!1;switch(t){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 xb=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"]]),Sb=/^[\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 Oo(t){return Sb.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function yn(){}var oc=null;function ic(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ul=null,fl=null;function om(t){var e=rl(t);if(e&&(t=e.stateNode)){var n=t[ie]||null;t:switch(t=e.stateNode,e.type){case"input":if(ac(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Me(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var l=a[ie]||null;if(!l)throw Error(O(90));ac(a,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&tm(a)}break t;case"textarea":nm(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&sl(t,!!n.multiple,e,!1)}}}var sc=!1;function im(t,e,n){if(sc)return t(e,n);sc=!0;try{var a=t(e);return a}finally{if(sc=!1,(ul!==null||fl!==null)&&(vi(),ul&&(e=ul,t=fl,fl=ul=null,om(e),t)))for(e=0;e<t.length;e++)om(t[e])}}function yr(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ie]||null;if(a===null)return null;n=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(O(231,e,typeof n));return n}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),cc=!1;if(wn)try{var wr={};Object.defineProperty(wr,"passive",{get:function(){cc=!0}}),window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{cc=!1}var Qn=null,uc=null,Mo=null;function sm(){if(Mo)return Mo;var t,e=uc,n=e.length,a,l="value"in Qn?Qn.value:Qn.textContent,r=l.length;for(t=0;t<n&&e[t]===l[t];t++);var o=n-t;for(a=1;a<=o&&e[n-a]===l[r-a];a++);return Mo=l.slice(t,1<a?1-a:void 0)}function Do(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function jo(){return!0}function cm(){return!1}function se(t){function e(n,a,l,r,o){this._reactName=n,this._targetInst=l,this.type=a,this.nativeEvent=r,this.target=o,this.currentTarget=null;for(var i in t)t.hasOwnProperty(i)&&(n=t[i],this[i]=n?n(r):r[i]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?jo:cm,this.isPropagationStopped=cm,this}return Tt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=jo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jo)},persist:function(){},isPersistent:jo}),e}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},zo=se(Ta),br=Tt({},Ta,{view:0,detail:0}),Eb=se(br),fc,dc,xr,Lo=Tt({},br,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hc,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==xr&&(xr&&t.type==="mousemove"?(fc=t.screenX-xr.screenX,dc=t.screenY-xr.screenY):dc=fc=0,xr=t),fc)},movementY:function(t){return"movementY"in t?t.movementY:dc}}),um=se(Lo),Cb=Tt({},Lo,{dataTransfer:0}),Ab=se(Cb),Tb=Tt({},br,{relatedTarget:0}),mc=se(Tb),Nb=Tt({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),_b=se(Nb),Rb=Tt({},Ta,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ob=se(Rb),Mb=Tt({},Ta,{data:0}),fm=se(Mb),Db={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},jb={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"},zb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Lb(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=zb[t])?!!e[t]:!1}function hc(){return Lb}var Bb=Tt({},br,{key:function(t){if(t.key){var e=Db[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Do(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?jb[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hc,charCode:function(t){return t.type==="keypress"?Do(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Do(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Ub=se(Bb),Hb=Tt({},Lo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dm=se(Hb),Vb=Tt({},br,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hc}),kb=se(Vb),Yb=Tt({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),qb=se(Yb),Gb=Tt({},Lo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Pb=se(Gb),Xb=Tt({},Ta,{newState:0,oldState:0}),Qb=se(Xb),Zb=[9,13,27,32],pc=wn&&"CompositionEvent"in window,Sr=null;wn&&"documentMode"in document&&(Sr=document.documentMode);var Kb=wn&&"TextEvent"in window&&!Sr,mm=wn&&(!pc||Sr&&8<Sr&&11>=Sr),hm=" ",pm=!1;function gm(t,e){switch(t){case"keyup":return Zb.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var dl=!1;function $b(t,e){switch(t){case"compositionend":return vm(e);case"keypress":return e.which!==32?null:(pm=!0,hm);case"textInput":return t=e.data,t===hm&&pm?null:t;default:return null}}function Jb(t,e){if(dl)return t==="compositionend"||!pc&&gm(t,e)?(t=sm(),Mo=uc=Qn=null,dl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return mm&&e.locale!=="ko"?null:e.data;default:return null}}var Fb={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 ym(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Fb[t.type]:e==="textarea"}function wm(t,e,n,a){ul?fl?fl.push(a):fl=[a]:ul=a,e=Ci(e,"onChange"),0<e.length&&(n=new zo("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Er=null,Cr=null;function Wb(t){eg(t,0)}function Bo(t){var e=vr(t);if(tm(e))return t}function bm(t,e){if(t==="change")return e}var xm=!1;if(wn){var gc;if(wn){var vc="oninput"in document;if(!vc){var Sm=document.createElement("div");Sm.setAttribute("oninput","return;"),vc=typeof Sm.oninput=="function"}gc=vc}else gc=!1;xm=gc&&(!document.documentMode||9<document.documentMode)}function Em(){Er&&(Er.detachEvent("onpropertychange",Cm),Cr=Er=null)}function Cm(t){if(t.propertyName==="value"&&Bo(Cr)){var e=[];wm(e,Cr,t,ic(t)),im(Wb,e)}}function Ib(t,e,n){t==="focusin"?(Em(),Er=e,Cr=n,Er.attachEvent("onpropertychange",Cm)):t==="focusout"&&Em()}function tx(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Bo(Cr)}function ex(t,e){if(t==="click")return Bo(e)}function nx(t,e){if(t==="input"||t==="change")return Bo(e)}function ax(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var we=typeof Object.is=="function"?Object.is:ax;function Ar(t,e){if(we(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var l=n[a];if(!Ks.call(e,l)||!we(t[l],e[l]))return!1}return!0}function Am(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Tm(t,e){var n=Am(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Am(n)}}function Nm(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Nm(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function _m(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ro(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=Ro(t.document)}return e}function yc(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var lx=wn&&"documentMode"in document&&11>=document.documentMode,ml=null,wc=null,Tr=null,bc=!1;function Rm(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;bc||ml==null||ml!==Ro(a)||(a=ml,"selectionStart"in a&&yc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Tr&&Ar(Tr,a)||(Tr=a,a=Ci(wc,"onSelect"),0<a.length&&(e=new zo("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=ml)))}function Na(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var hl={animationend:Na("Animation","AnimationEnd"),animationiteration:Na("Animation","AnimationIteration"),animationstart:Na("Animation","AnimationStart"),transitionrun:Na("Transition","TransitionRun"),transitionstart:Na("Transition","TransitionStart"),transitioncancel:Na("Transition","TransitionCancel"),transitionend:Na("Transition","TransitionEnd")},xc={},Om={};wn&&(Om=document.createElement("div").style,"AnimationEvent"in window||(delete hl.animationend.animation,delete hl.animationiteration.animation,delete hl.animationstart.animation),"TransitionEvent"in window||delete hl.transitionend.transition);function _a(t){if(xc[t])return xc[t];if(!hl[t])return t;var e=hl[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in Om)return xc[t]=e[n];return t}var Mm=_a("animationend"),Dm=_a("animationiteration"),jm=_a("animationstart"),rx=_a("transitionrun"),ox=_a("transitionstart"),ix=_a("transitioncancel"),zm=_a("transitionend"),Lm=new Map,Sc="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(" ");Sc.push("scrollEnd");function qe(t,e){Lm.set(t,e),Aa(e,[t])}var Uo=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=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(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},De=[],pl=0,Ec=0;function Ho(){for(var t=pl,e=Ec=pl=0;e<t;){var n=De[e];De[e++]=null;var a=De[e];De[e++]=null;var l=De[e];De[e++]=null;var r=De[e];if(De[e++]=null,a!==null&&l!==null){var o=a.pending;o===null?l.next=l:(l.next=o.next,o.next=l),a.pending=l}r!==0&&Bm(n,l,r)}}function Vo(t,e,n,a){De[pl++]=t,De[pl++]=e,De[pl++]=n,De[pl++]=a,Ec|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Cc(t,e,n,a){return Vo(t,e,n,a),ko(t)}function Ra(t,e){return Vo(t,null,null,e),ko(t)}function Bm(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var l=!1,r=t.return;r!==null;)r.childLanes|=n,a=r.alternate,a!==null&&(a.childLanes|=n),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(l=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,l&&e!==null&&(l=31-ye(n),t=r.hiddenUpdates,a=t[l],a===null?t[l]=[e]:a.push(e),e.lane=n|536870912),r):null}function ko(t){if(50<Kr)throw Kr=0,ju=null,Error(O(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var gl={};function sx(t,e,n,a){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function be(t,e,n,a){return new sx(t,e,n,a)}function Ac(t){return t=t.prototype,!(!t||!t.isReactComponent)}function bn(t,e){var n=t.alternate;return n===null?(n=be(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Um(t,e){t.flags&=65011714;var n=t.alternate;return n===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Yo(t,e,n,a,l,r){var o=0;if(a=t,typeof t=="function")Ac(t)&&(o=1);else if(typeof t=="string")o=m1(t,n,Ie.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Ys:return t=be(31,n,e,l),t.elementType=Ys,t.lanes=r,t;case tl:return Oa(n.children,l,r,e);case zd:o=8,l|=24;break;case Bs:return t=be(12,n,e,l|2),t.elementType=Bs,t.lanes=r,t;case Hs:return t=be(13,n,e,l),t.elementType=Hs,t.lanes=r,t;case Vs:return t=be(19,n,e,l),t.elementType=Vs,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case gn:o=10;break t;case Ld:o=9;break t;case Us:o=11;break t;case ks:o=14;break t;case qn:o=16,a=null;break t}o=29,n=Error(O(130,t===null?"null":typeof t,"")),a=null}return e=be(o,n,e,l),e.elementType=t,e.type=a,e.lanes=r,e}function Oa(t,e,n,a){return t=be(7,t,a,e),t.lanes=n,t}function Tc(t,e,n){return t=be(6,t,null,e),t.lanes=n,t}function Hm(t){var e=be(18,null,null,0);return e.stateNode=t,e}function Nc(t,e,n){return e=be(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Vm=new WeakMap;function je(t,e){if(typeof t=="object"&&t!==null){var n=Vm.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Hd(e)},Vm.set(t,e),e)}return{value:t,source:e,stack:Hd(e)}}var vl=[],yl=0,qo=null,Nr=0,ze=[],Le=0,Zn=null,tn=1,en="";function xn(t,e){vl[yl++]=Nr,vl[yl++]=qo,qo=t,Nr=e}function km(t,e,n){ze[Le++]=tn,ze[Le++]=en,ze[Le++]=Zn,Zn=t;var a=tn;t=en;var l=32-ye(a)-1;a&=~(1<<l),n+=1;var r=32-ye(e)+l;if(30<r){var o=l-l%5;r=(a&(1<<o)-1).toString(32),a>>=o,l-=o,tn=1<<32-ye(e)+l|n<<l|a,en=r+t}else tn=1<<r|n<<l|a,en=t}function _c(t){t.return!==null&&(xn(t,1),km(t,1,0))}function Rc(t){for(;t===qo;)qo=vl[--yl],vl[yl]=null,Nr=vl[--yl],vl[yl]=null;for(;t===Zn;)Zn=ze[--Le],ze[Le]=null,en=ze[--Le],ze[Le]=null,tn=ze[--Le],ze[Le]=null}function Ym(t,e){ze[Le++]=tn,ze[Le++]=en,ze[Le++]=Zn,tn=e.id,en=e.overflow,Zn=t}var Kt=null,Nt=null,it=!1,Kn=null,Be=!1,Oc=Error(O(519));function $n(t){var e=Error(O(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw _r(je(e,t)),Oc}function qm(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Zt]=t,e[ie]=a,n){case"dialog":lt("cancel",e),lt("close",e);break;case"iframe":case"object":case"embed":lt("load",e);break;case"video":case"audio":for(n=0;n<Jr.length;n++)lt(Jr[n],e);break;case"source":lt("error",e);break;case"img":case"image":case"link":lt("error",e),lt("load",e);break;case"details":lt("toggle",e);break;case"input":lt("invalid",e),em(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":lt("invalid",e);break;case"textarea":lt("invalid",e),am(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||rg(e.textContent,n)?(a.popover!=null&&(lt("beforetoggle",e),lt("toggle",e)),a.onScroll!=null&&lt("scroll",e),a.onScrollEnd!=null&&lt("scrollend",e),a.onClick!=null&&(e.onclick=yn),e=!0):e=!1,e||$n(t,!0)}function Gm(t){for(Kt=t.return;Kt;)switch(Kt.tag){case 5:case 31:case 13:Be=!1;return;case 27:case 3:Be=!0;return;default:Kt=Kt.return}}function wl(t){if(t!==Kt)return!1;if(!it)return Gm(t),it=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Ku(t.type,t.memoizedProps)),n=!n),n&&Nt&&$n(t),Gm(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(O(317));Nt=hg(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(O(317));Nt=hg(t)}else e===27?(e=Nt,ca(t.type)?(t=Iu,Iu=null,Nt=t):Nt=e):Nt=Kt?He(t.stateNode.nextSibling):null;return!0}function Ma(){Nt=Kt=null,it=!1}function Mc(){var t=Kn;return t!==null&&(de===null?de=t:de.push.apply(de,t),Kn=null),t}function _r(t){Kn===null?Kn=[t]:Kn.push(t)}var Dc=We(null),Da=null,Sn=null;function Jn(t,e,n){xt(Dc,e._currentValue),e._currentValue=n}function En(t){t._currentValue=Dc.current,Gt(Dc)}function jc(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function zc(t,e,n,a){var l=t.child;for(l!==null&&(l.return=t);l!==null;){var r=l.dependencies;if(r!==null){var o=l.child;r=r.firstContext;t:for(;r!==null;){var i=r;r=l;for(var s=0;s<e.length;s++)if(i.context===e[s]){r.lanes|=n,i=r.alternate,i!==null&&(i.lanes|=n),jc(r.return,n,t),a||(o=null);break t}r=i.next}}else if(l.tag===18){if(o=l.return,o===null)throw Error(O(341));o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),jc(o,n,t),o=null}else o=l.child;if(o!==null)o.return=l;else for(o=l;o!==null;){if(o===t){o=null;break}if(l=o.sibling,l!==null){l.return=o.return,o=l;break}o=o.return}l=o}}function bl(t,e,n,a){t=null;for(var l=e,r=!1;l!==null;){if(!r){if(l.flags&524288)r=!0;else if(l.flags&262144)break}if(l.tag===10){var o=l.alternate;if(o===null)throw Error(O(387));if(o=o.memoizedProps,o!==null){var i=l.type;we(l.pendingProps.value,o.value)||(t!==null?t.push(i):t=[i])}}else if(l===wo.current){if(o=l.alternate,o===null)throw Error(O(387));o.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(t!==null?t.push(eo):t=[eo])}l=l.return}t!==null&&zc(e,t,n,a),e.flags|=262144}function Go(t){for(t=t.firstContext;t!==null;){if(!we(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ja(t){Da=t,Sn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return Pm(Da,t)}function Po(t,e){return Da===null&&ja(t),Pm(t,e)}function Pm(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Sn===null){if(t===null)throw Error(O(308));Sn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Sn=Sn.next=e;return n}var cx=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},ux=kt.unstable_scheduleCallback,fx=kt.unstable_NormalPriority,Bt={$$typeof:gn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Lc(){return{controller:new cx,data:new Map,refCount:0}}function Rr(t){t.refCount--,t.refCount===0&&ux(fx,function(){t.controller.abort()})}var Or=null,Bc=0,xl=0,Sl=null;function dx(t,e){if(Or===null){var n=Or=[];Bc=0,xl=Vu(),Sl={status:"pending",value:void 0,then:function(a){n.push(a)}}}return Bc++,e.then(Xm,Xm),e}function Xm(){if(--Bc===0&&Or!==null){Sl!==null&&(Sl.status="fulfilled");var t=Or;Or=null,xl=0,Sl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function mx(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(l){n.push(l)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var l=0;l<n.length;l++)(0,n[l])(e)},function(l){for(a.status="rejected",a.reason=l,l=0;l<n.length;l++)(0,n[l])(void 0)}),a}var Qm=K.S;K.S=function(t,e){Rp=ge(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&dx(t,e),Qm!==null&&Qm(t,e)};var za=We(null);function Uc(){var t=za.current;return t!==null?t:bt.pooledCache}function Xo(t,e){e===null?xt(za,za.current):xt(za,e.pool)}function Zm(){var t=Uc();return t===null?null:{parent:Bt._currentValue,pool:t}}var El=Error(O(460)),Hc=Error(O(474)),Qo=Error(O(542)),Zo={then:function(){}};function Km(t){return t=t.status,t==="fulfilled"||t==="rejected"}function $m(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(yn,yn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Fm(t),t;default:if(typeof e.status=="string")e.then(yn,yn);else{if(t=bt,t!==null&&100<t.shellSuspendCounter)throw Error(O(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var l=e;l.status="fulfilled",l.value=a}},function(a){if(e.status==="pending"){var l=e;l.status="rejected",l.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Fm(t),t}throw Ba=e,El}}function La(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ba=n,El):n}}var Ba=null;function Jm(){if(Ba===null)throw Error(O(459));var t=Ba;return Ba=null,t}function Fm(t){if(t===El||t===Qo)throw Error(O(483))}var Cl=null,Mr=0;function Ko(t){var e=Mr;return Mr+=1,Cl===null&&(Cl=[]),$m(Cl,t,e)}function Dr(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function $o(t,e){throw e.$$typeof===Iw?Error(O(525)):(t=Object.prototype.toString.call(e),Error(O(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Wm(t){function e(p,g){if(t){var y=p.deletions;y===null?(p.deletions=[g],p.flags|=16):y.push(g)}}function n(p,g){if(!t)return null;for(;g!==null;)e(p,g),g=g.sibling;return null}function a(p){for(var g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function l(p,g){return p=bn(p,g),p.index=0,p.sibling=null,p}function r(p,g,y){return p.index=y,t?(y=p.alternate,y!==null?(y=y.index,y<g?(p.flags|=67108866,g):y):(p.flags|=67108866,g)):(p.flags|=1048576,g)}function o(p){return t&&p.alternate===null&&(p.flags|=67108866),p}function i(p,g,y,b){return g===null||g.tag!==6?(g=Tc(y,p.mode,b),g.return=p,g):(g=l(g,y),g.return=p,g)}function s(p,g,y,b){var E=y.type;return E===tl?m(p,g,y.props.children,b,y.key):g!==null&&(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===qn&&La(E)===g.type)?(g=l(g,y.props),Dr(g,y),g.return=p,g):(g=Yo(y.type,y.key,y.props,null,p.mode,b),Dr(g,y),g.return=p,g)}function c(p,g,y,b){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Nc(y,p.mode,b),g.return=p,g):(g=l(g,y.children||[]),g.return=p,g)}function m(p,g,y,b,E){return g===null||g.tag!==7?(g=Oa(y,p.mode,b,E),g.return=p,g):(g=l(g,y),g.return=p,g)}function u(p,g,y){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Tc(""+g,p.mode,y),g.return=p,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case yo:return y=Yo(g.type,g.key,g.props,null,p.mode,y),Dr(y,g),y.return=p,y;case cr:return g=Nc(g,p.mode,y),g.return=p,g;case qn:return g=La(g),u(p,g,y)}if(fr(g)||ur(g))return g=Oa(g,p.mode,y,null),g.return=p,g;if(typeof g.then=="function")return u(p,Ko(g),y);if(g.$$typeof===gn)return u(p,Po(p,g),y);$o(p,g)}return null}function h(p,g,y,b){var E=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return E!==null?null:i(p,g,""+y,b);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case yo:return y.key===E?s(p,g,y,b):null;case cr:return y.key===E?c(p,g,y,b):null;case qn:return y=La(y),h(p,g,y,b)}if(fr(y)||ur(y))return E!==null?null:m(p,g,y,b,null);if(typeof y.then=="function")return h(p,g,Ko(y),b);if(y.$$typeof===gn)return h(p,g,Po(p,y),b);$o(p,y)}return null}function v(p,g,y,b,E){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return p=p.get(y)||null,i(g,p,""+b,E);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case yo:return p=p.get(b.key===null?y:b.key)||null,s(g,p,b,E);case cr:return p=p.get(b.key===null?y:b.key)||null,c(g,p,b,E);case qn:return b=La(b),v(p,g,y,b,E)}if(fr(b)||ur(b))return p=p.get(y)||null,m(g,p,b,E,null);if(typeof b.then=="function")return v(p,g,y,Ko(b),E);if(b.$$typeof===gn)return v(p,g,y,Po(g,b),E);$o(g,b)}return null}function x(p,g,y,b){for(var E=null,_=null,C=g,N=g=0,D=null;C!==null&&N<y.length;N++){C.index>N?(D=C,C=null):D=C.sibling;var z=h(p,C,y[N],b);if(z===null){C===null&&(C=D);break}t&&C&&z.alternate===null&&e(p,C),g=r(z,g,N),_===null?E=z:_.sibling=z,_=z,C=D}if(N===y.length)return n(p,C),it&&xn(p,N),E;if(C===null){for(;N<y.length;N++)C=u(p,y[N],b),C!==null&&(g=r(C,g,N),_===null?E=C:_.sibling=C,_=C);return it&&xn(p,N),E}for(C=a(C);N<y.length;N++)D=v(C,p,N,y[N],b),D!==null&&(t&&D.alternate!==null&&C.delete(D.key===null?N:D.key),g=r(D,g,N),_===null?E=D:_.sibling=D,_=D);return t&&C.forEach(function(L){return e(p,L)}),it&&xn(p,N),E}function w(p,g,y,b){if(y==null)throw Error(O(151));for(var E=null,_=null,C=g,N=g=0,D=null,z=y.next();C!==null&&!z.done;N++,z=y.next()){C.index>N?(D=C,C=null):D=C.sibling;var L=h(p,C,z.value,b);if(L===null){C===null&&(C=D);break}t&&C&&L.alternate===null&&e(p,C),g=r(L,g,N),_===null?E=L:_.sibling=L,_=L,C=D}if(z.done)return n(p,C),it&&xn(p,N),E;if(C===null){for(;!z.done;N++,z=y.next())z=u(p,z.value,b),z!==null&&(g=r(z,g,N),_===null?E=z:_.sibling=z,_=z);return it&&xn(p,N),E}for(C=a(C);!z.done;N++,z=y.next())z=v(C,p,N,z.value,b),z!==null&&(t&&z.alternate!==null&&C.delete(z.key===null?N:z.key),g=r(z,g,N),_===null?E=z:_.sibling=z,_=z);return t&&C.forEach(function(U){return e(p,U)}),it&&xn(p,N),E}function S(p,g,y,b){if(typeof y=="object"&&y!==null&&y.type===tl&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case yo:t:{for(var E=y.key;g!==null;){if(g.key===E){if(E=y.type,E===tl){if(g.tag===7){n(p,g.sibling),b=l(g,y.props.children),b.return=p,p=b;break t}}else if(g.elementType===E||typeof E=="object"&&E!==null&&E.$$typeof===qn&&La(E)===g.type){n(p,g.sibling),b=l(g,y.props),Dr(b,y),b.return=p,p=b;break t}n(p,g);break}else e(p,g);g=g.sibling}y.type===tl?(b=Oa(y.props.children,p.mode,b,y.key),b.return=p,p=b):(b=Yo(y.type,y.key,y.props,null,p.mode,b),Dr(b,y),b.return=p,p=b)}return o(p);case cr:t:{for(E=y.key;g!==null;){if(g.key===E)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){n(p,g.sibling),b=l(g,y.children||[]),b.return=p,p=b;break t}else{n(p,g);break}else e(p,g);g=g.sibling}b=Nc(y,p.mode,b),b.return=p,p=b}return o(p);case qn:return y=La(y),S(p,g,y,b)}if(fr(y))return x(p,g,y,b);if(ur(y)){if(E=ur(y),typeof E!="function")throw Error(O(150));return y=E.call(y),w(p,g,y,b)}if(typeof y.then=="function")return S(p,g,Ko(y),b);if(y.$$typeof===gn)return S(p,g,Po(p,y),b);$o(p,y)}return typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint"?(y=""+y,g!==null&&g.tag===6?(n(p,g.sibling),b=l(g,y),b.return=p,p=b):(n(p,g),b=Tc(y,p.mode,b),b.return=p,p=b),o(p)):n(p,g)}return function(p,g,y,b){try{Mr=0;var E=S(p,g,y,b);return Cl=null,E}catch(C){if(C===El||C===Qo)throw C;var _=be(29,C,null,p.mode);return _.lanes=b,_.return=p,_}finally{}}}var Ua=Wm(!0),Im=Wm(!1),Fn=!1;function Vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function kc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Wn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function In(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,ut&2){var l=a.pending;return l===null?e.next=e:(e.next=l.next,l.next=e),a.pending=e,e=ko(t),Bm(t,null,n),e}return Vo(t,a,e,n),ko(t)}function jr(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Pd(t,n)}}function Yc(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var l=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?l=r=o:r=r.next=o,n=n.next}while(n!==null);r===null?l=r=e:r=r.next=e}else l=r=e;n={baseState:a.baseState,firstBaseUpdate:l,lastBaseUpdate:r,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var qc=!1;function zr(){if(qc){var t=Sl;if(t!==null)throw t}}function Lr(t,e,n,a){qc=!1;var l=t.updateQueue;Fn=!1;var r=l.firstBaseUpdate,o=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var s=i,c=s.next;s.next=null,o===null?r=c:o.next=c,o=s;var m=t.alternate;m!==null&&(m=m.updateQueue,i=m.lastBaseUpdate,i!==o&&(i===null?m.firstBaseUpdate=c:i.next=c,m.lastBaseUpdate=s))}if(r!==null){var u=l.baseState;o=0,m=c=s=null,i=r;do{var h=i.lane&-536870913,v=h!==i.lane;if(v?(rt&h)===h:(a&h)===h){h!==0&&h===xl&&(qc=!0),m!==null&&(m=m.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});t:{var x=t,w=i;h=e;var S=n;switch(w.tag){case 1:if(x=w.payload,typeof x=="function"){u=x.call(S,u,h);break t}u=x;break t;case 3:x.flags=x.flags&-65537|128;case 0:if(x=w.payload,h=typeof x=="function"?x.call(S,u,h):x,h==null)break t;u=Tt({},u,h);break t;case 2:Fn=!0}}h=i.callback,h!==null&&(t.flags|=64,v&&(t.flags|=8192),v=l.callbacks,v===null?l.callbacks=[h]:v.push(h))}else v={lane:h,tag:i.tag,payload:i.payload,callback:i.callback,next:null},m===null?(c=m=v,s=u):m=m.next=v,o|=h;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;v=i,i=v.next,v.next=null,l.lastBaseUpdate=v,l.shared.pending=null}}while(!0);m===null&&(s=u),l.baseState=s,l.firstBaseUpdate=c,l.lastBaseUpdate=m,r===null&&(l.shared.lanes=0),la|=o,t.lanes=o,t.memoizedState=u}}function th(t,e){if(typeof t!="function")throw Error(O(191,t));t.call(e)}function eh(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)th(n[t],e)}var Al=We(null),Jo=We(0);function nh(t,e){t=Dn,xt(Jo,t),xt(Al,e),Dn=t|e.baseLanes}function Gc(){xt(Jo,Dn),xt(Al,Al.current)}function Pc(){Dn=Jo.current,Gt(Al),Gt(Jo)}var xe=We(null),Ue=null;function ta(t){var e=t.alternate;xt(zt,zt.current&1),xt(xe,t),Ue===null&&(e===null||Al.current!==null||e.memoizedState!==null)&&(Ue=t)}function Xc(t){xt(zt,zt.current),xt(xe,t),Ue===null&&(Ue=t)}function ah(t){t.tag===22?(xt(zt,zt.current),xt(xe,t),Ue===null&&(Ue=t)):ea()}function ea(){xt(zt,zt.current),xt(xe,xe.current)}function Se(t){Gt(xe),Ue===t&&(Ue=null),Gt(zt)}var zt=We(0);function Fo(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Fu(n)||Wu(n)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Cn=0,W=null,yt=null,Ut=null,Wo=!1,Tl=!1,Ha=!1,Io=0,Br=0,Nl=null,hx=0;function Mt(){throw Error(O(321))}function Qc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!we(t[n],e[n]))return!1;return!0}function Zc(t,e,n,a,l,r){return Cn=r,W=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,K.H=t===null||t.memoizedState===null?kh:su,Ha=!1,r=n(a,l),Ha=!1,Tl&&(r=rh(e,n,a,l)),lh(t),r}function lh(t){K.H=Vr;var e=yt!==null&&yt.next!==null;if(Cn=0,Ut=yt=W=null,Wo=!1,Br=0,Nl=null,e)throw Error(O(300));t===null||Ht||(t=t.dependencies,t!==null&&Go(t)&&(Ht=!0))}function rh(t,e,n,a){W=t;var l=0;do{if(Tl&&(Nl=null),Br=0,Tl=!1,25<=l)throw Error(O(301));if(l+=1,Ut=yt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}K.H=Yh,r=e(n,a)}while(Tl);return r}function px(){var t=K.H,e=t.useState()[0];return e=typeof e.then=="function"?Ur(e):e,t=t.useState()[0],(yt!==null?yt.memoizedState:null)!==t&&(W.flags|=1024),e}function Kc(){var t=Io!==0;return Io=0,t}function $c(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function Jc(t){if(Wo){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Wo=!1}Cn=0,Ut=yt=W=null,Tl=!1,Br=Io=0,Nl=null}function re(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?W.memoizedState=Ut=t:Ut=Ut.next=t,Ut}function Lt(){if(yt===null){var t=W.alternate;t=t!==null?t.memoizedState:null}else t=yt.next;var e=Ut===null?W.memoizedState:Ut.next;if(e!==null)Ut=e,yt=t;else{if(t===null)throw W.alternate===null?Error(O(467)):Error(O(310));yt=t,t={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},Ut===null?W.memoizedState=Ut=t:Ut=Ut.next=t}return Ut}function ti(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ur(t){var e=Br;return Br+=1,Nl===null&&(Nl=[]),t=$m(Nl,t,e),e=W,(Ut===null?e.memoizedState:Ut.next)===null&&(e=e.alternate,K.H=e===null||e.memoizedState===null?kh:su),t}function ei(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Ur(t);if(t.$$typeof===gn)return $t(t)}throw Error(O(438,String(t)))}function Fc(t){var e=null,n=W.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=W.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(l){return l.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ti(),W.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=tb;return e.index++,n}function An(t,e){return typeof e=="function"?e(t):e}function ni(t){var e=Lt();return Wc(e,yt,t)}function Wc(t,e,n){var a=t.queue;if(a===null)throw Error(O(311));a.lastRenderedReducer=n;var l=t.baseQueue,r=a.pending;if(r!==null){if(l!==null){var o=l.next;l.next=r.next,r.next=o}e.baseQueue=l=r,a.pending=null}if(r=t.baseState,l===null)t.memoizedState=r;else{e=l.next;var i=o=null,s=null,c=e,m=!1;do{var u=c.lane&-536870913;if(u!==c.lane?(rt&u)===u:(Cn&u)===u){var h=c.revertLane;if(h===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),u===xl&&(m=!0);else if((Cn&h)===h){c=c.next,h===xl&&(m=!0);continue}else u={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(i=s=u,o=r):s=s.next=u,W.lanes|=h,la|=h;u=c.action,Ha&&n(r,u),r=c.hasEagerState?c.eagerState:n(r,u)}else h={lane:u,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},s===null?(i=s=h,o=r):s=s.next=h,W.lanes|=u,la|=u;c=c.next}while(c!==null&&c!==e);if(s===null?o=r:s.next=i,!we(r,t.memoizedState)&&(Ht=!0,m&&(n=Sl,n!==null)))throw n;t.memoizedState=r,t.baseState=o,t.baseQueue=s,a.lastRenderedState=r}return l===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Ic(t){var e=Lt(),n=e.queue;if(n===null)throw Error(O(311));n.lastRenderedReducer=t;var a=n.dispatch,l=n.pending,r=e.memoizedState;if(l!==null){n.pending=null;var o=l=l.next;do r=t(r,o.action),o=o.next;while(o!==l);we(r,e.memoizedState)||(Ht=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,a]}function oh(t,e,n){var a=W,l=Lt(),r=it;if(r){if(n===void 0)throw Error(O(407));n=n()}else n=e();var o=!we((yt||l).memoizedState,n);if(o&&(l.memoizedState=n,Ht=!0),l=l.queue,nu(ch.bind(null,a,l,t),[t]),l.getSnapshot!==e||o||Ut!==null&&Ut.memoizedState.tag&1){if(a.flags|=2048,_l(9,{destroy:void 0},sh.bind(null,a,l,n,e),null),bt===null)throw Error(O(349));r||Cn&127||ih(a,e,n)}return n}function ih(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=W.updateQueue,e===null?(e=ti(),W.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function sh(t,e,n,a){e.value=n,e.getSnapshot=a,uh(e)&&fh(t)}function ch(t,e,n){return n(function(){uh(e)&&fh(t)})}function uh(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!we(t,n)}catch{return!0}}function fh(t){var e=Ra(t,2);e!==null&&me(e,t,2)}function tu(t){var e=re();if(typeof t=="function"){var n=t;if(t=n(),Ha){Pn(!0);try{n()}finally{Pn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:t},e}function dh(t,e,n,a){return t.baseState=n,Wc(t,yt,typeof a=="function"?a:An)}function gx(t,e,n,a,l){if(ri(t))throw Error(O(485));if(t=e.action,t!==null){var r={payload:l,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){r.listeners.push(o)}};K.T!==null?n(!0):r.isTransition=!1,a(r),n=e.pending,n===null?(r.next=e.pending=r,mh(e,r)):(r.next=n.next,e.pending=n.next=r)}}function mh(t,e){var n=e.action,a=e.payload,l=t.state;if(e.isTransition){var r=K.T,o={};K.T=o;try{var i=n(l,a),s=K.S;s!==null&&s(o,i),hh(t,e,i)}catch(c){eu(t,e,c)}finally{r!==null&&o.types!==null&&(r.types=o.types),K.T=r}}else try{r=n(l,a),hh(t,e,r)}catch(c){eu(t,e,c)}}function hh(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){ph(t,e,a)},function(a){return eu(t,e,a)}):ph(t,e,n)}function ph(t,e,n){e.status="fulfilled",e.value=n,gh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,mh(t,n)))}function eu(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,gh(e),e=e.next;while(e!==a)}t.action=null}function gh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function vh(t,e){return e}function yh(t,e){if(it){var n=bt.formState;if(n!==null){t:{var a=W;if(it){if(Nt){e:{for(var l=Nt,r=Be;l.nodeType!==8;){if(!r){l=null;break e}if(l=He(l.nextSibling),l===null){l=null;break e}}r=l.data,l=r==="F!"||r==="F"?l:null}if(l){Nt=He(l.nextSibling),a=l.data==="F!";break t}}$n(a)}a=!1}a&&(e=n[0])}}return n=re(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vh,lastRenderedState:e},n.queue=a,n=Uh.bind(null,W,a),a.dispatch=n,a=tu(!1),r=iu.bind(null,W,!1,a.queue),a=re(),l={state:e,dispatch:null,action:t,pending:null},a.queue=l,n=gx.bind(null,W,l,r,n),l.dispatch=n,a.memoizedState=t,[e,n,!1]}function wh(t){var e=Lt();return bh(e,yt,t)}function bh(t,e,n){if(e=Wc(t,e,vh)[0],t=ni(An)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Ur(e)}catch(o){throw o===El?Qo:o}else a=e;e=Lt();var l=e.queue,r=l.dispatch;return n!==e.memoizedState&&(W.flags|=2048,_l(9,{destroy:void 0},vx.bind(null,l,n),null)),[a,r,t]}function vx(t,e){t.action=e}function xh(t){var e=Lt(),n=yt;if(n!==null)return bh(e,n,t);Lt(),e=e.memoizedState,n=Lt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function _l(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=W.updateQueue,e===null&&(e=ti(),W.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function Sh(){return Lt().memoizedState}function ai(t,e,n,a){var l=re();W.flags|=t,l.memoizedState=_l(1|e,{destroy:void 0},n,a===void 0?null:a)}function li(t,e,n,a){var l=Lt();a=a===void 0?null:a;var r=l.memoizedState.inst;yt!==null&&a!==null&&Qc(a,yt.memoizedState.deps)?l.memoizedState=_l(e,r,n,a):(W.flags|=t,l.memoizedState=_l(1|e,r,n,a))}function Eh(t,e){ai(8390656,8,t,e)}function nu(t,e){li(2048,8,t,e)}function yx(t){W.flags|=4;var e=W.updateQueue;if(e===null)e=ti(),W.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Ch(t){var e=Lt().memoizedState;return yx({ref:e,nextImpl:t}),function(){if(ut&2)throw Error(O(440));return e.impl.apply(void 0,arguments)}}function Ah(t,e){return li(4,2,t,e)}function Th(t,e){return li(4,4,t,e)}function Nh(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function _h(t,e,n){n=n!=null?n.concat([t]):null,li(4,4,Nh.bind(null,e,t),n)}function au(){}function Rh(t,e){var n=Lt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&Qc(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function Oh(t,e){var n=Lt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&Qc(e,a[1]))return a[0];if(a=t(),Ha){Pn(!0);try{t()}finally{Pn(!1)}}return n.memoizedState=[a,e],a}function lu(t,e,n){return n===void 0||Cn&1073741824&&!(rt&261930)?t.memoizedState=e:(t.memoizedState=n,t=Mp(),W.lanes|=t,la|=t,n)}function Mh(t,e,n,a){return we(n,e)?n:Al.current!==null?(t=lu(t,n,a),we(t,e)||(Ht=!0),t):!(Cn&42)||Cn&1073741824&&!(rt&261930)?(Ht=!0,t.memoizedState=n):(t=Mp(),W.lanes|=t,la|=t,e)}function Dh(t,e,n,a,l){var r=ct.p;ct.p=r!==0&&8>r?r:8;var o=K.T,i={};K.T=i,iu(t,!1,e,n);try{var s=l(),c=K.S;if(c!==null&&c(i,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var m=mx(s,a);Hr(t,e,m,Ae(t))}else Hr(t,e,a,Ae(t))}catch(u){Hr(t,e,{then:function(){},status:"rejected",reason:u},Ae())}finally{ct.p=r,o!==null&&i.types!==null&&(o.types=i.types),K.T=o}}function wx(){}function ru(t,e,n,a){if(t.tag!==5)throw Error(O(476));var l=jh(t).queue;Dh(t,l,e,Sa,n===null?wx:function(){return zh(t),n(a)})}function jh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Sa,baseState:Sa,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:Sa},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:An,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function zh(t){var e=jh(t);e.next===null&&(e=t.alternate.memoizedState),Hr(t,e.next.queue,{},Ae())}function ou(){return $t(eo)}function Lh(){return Lt().memoizedState}function Bh(){return Lt().memoizedState}function bx(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ae();t=Wn(n);var a=In(e,t,n);a!==null&&(me(a,e,n),jr(a,e,n)),e={cache:Lc()},t.payload=e;return}e=e.return}}function xx(t,e,n){var a=Ae();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ri(t)?Hh(e,n):(n=Cc(t,e,n,a),n!==null&&(me(n,t,a),Vh(n,e,a)))}function Uh(t,e,n){var a=Ae();Hr(t,e,n,a)}function Hr(t,e,n,a){var l={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ri(t))Hh(e,l);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var o=e.lastRenderedState,i=r(o,n);if(l.hasEagerState=!0,l.eagerState=i,we(i,o))return Vo(t,e,l,0),bt===null&&Ho(),!1}catch{}finally{}if(n=Cc(t,e,l,a),n!==null)return me(n,t,a),Vh(n,e,a),!0}return!1}function iu(t,e,n,a){if(a={lane:2,revertLane:Vu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ri(t)){if(e)throw Error(O(479))}else e=Cc(t,n,a,2),e!==null&&me(e,t,2)}function ri(t){var e=t.alternate;return t===W||e!==null&&e===W}function Hh(t,e){Tl=Wo=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Vh(t,e,n){if(n&4194048){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Pd(t,n)}}var Vr={readContext:$t,use:ei,useCallback:Mt,useContext:Mt,useEffect:Mt,useImperativeHandle:Mt,useLayoutEffect:Mt,useInsertionEffect:Mt,useMemo:Mt,useReducer:Mt,useRef:Mt,useState:Mt,useDebugValue:Mt,useDeferredValue:Mt,useTransition:Mt,useSyncExternalStore:Mt,useId:Mt,useHostTransitionStatus:Mt,useFormState:Mt,useActionState:Mt,useOptimistic:Mt,useMemoCache:Mt,useCacheRefresh:Mt};Vr.useEffectEvent=Mt;var kh={readContext:$t,use:ei,useCallback:function(t,e){return re().memoizedState=[t,e===void 0?null:e],t},useContext:$t,useEffect:Eh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ai(4194308,4,Nh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ai(4194308,4,t,e)},useInsertionEffect:function(t,e){ai(4,2,t,e)},useMemo:function(t,e){var n=re();e=e===void 0?null:e;var a=t();if(Ha){Pn(!0);try{t()}finally{Pn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=re();if(n!==void 0){var l=n(e);if(Ha){Pn(!0);try{n(e)}finally{Pn(!1)}}}else l=e;return a.memoizedState=a.baseState=l,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:l},a.queue=t,t=t.dispatch=xx.bind(null,W,t),[a.memoizedState,t]},useRef:function(t){var e=re();return t={current:t},e.memoizedState=t},useState:function(t){t=tu(t);var e=t.queue,n=Uh.bind(null,W,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:au,useDeferredValue:function(t,e){var n=re();return lu(n,t,e)},useTransition:function(){var t=tu(!1);return t=Dh.bind(null,W,t.queue,!0,!1),re().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=W,l=re();if(it){if(n===void 0)throw Error(O(407));n=n()}else{if(n=e(),bt===null)throw Error(O(349));rt&127||ih(a,e,n)}l.memoizedState=n;var r={value:n,getSnapshot:e};return l.queue=r,Eh(ch.bind(null,a,r,t),[t]),a.flags|=2048,_l(9,{destroy:void 0},sh.bind(null,a,r,n,e),null),n},useId:function(){var t=re(),e=bt.identifierPrefix;if(it){var n=en,a=tn;n=(a&~(1<<32-ye(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Io++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=hx++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:ou,useFormState:yh,useActionState:yh,useOptimistic:function(t){var e=re();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=iu.bind(null,W,!0,n),n.dispatch=e,[t,e]},useMemoCache:Fc,useCacheRefresh:function(){return re().memoizedState=bx.bind(null,W)},useEffectEvent:function(t){var e=re(),n={impl:t};return e.memoizedState=n,function(){if(ut&2)throw Error(O(440));return n.impl.apply(void 0,arguments)}}},su={readContext:$t,use:ei,useCallback:Rh,useContext:$t,useEffect:nu,useImperativeHandle:_h,useInsertionEffect:Ah,useLayoutEffect:Th,useMemo:Oh,useReducer:ni,useRef:Sh,useState:function(){return ni(An)},useDebugValue:au,useDeferredValue:function(t,e){var n=Lt();return Mh(n,yt.memoizedState,t,e)},useTransition:function(){var t=ni(An)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:Ur(t),e]},useSyncExternalStore:oh,useId:Lh,useHostTransitionStatus:ou,useFormState:wh,useActionState:wh,useOptimistic:function(t,e){var n=Lt();return dh(n,yt,t,e)},useMemoCache:Fc,useCacheRefresh:Bh};su.useEffectEvent=Ch;var Yh={readContext:$t,use:ei,useCallback:Rh,useContext:$t,useEffect:nu,useImperativeHandle:_h,useInsertionEffect:Ah,useLayoutEffect:Th,useMemo:Oh,useReducer:Ic,useRef:Sh,useState:function(){return Ic(An)},useDebugValue:au,useDeferredValue:function(t,e){var n=Lt();return yt===null?lu(n,t,e):Mh(n,yt.memoizedState,t,e)},useTransition:function(){var t=Ic(An)[0],e=Lt().memoizedState;return[typeof t=="boolean"?t:Ur(t),e]},useSyncExternalStore:oh,useId:Lh,useHostTransitionStatus:ou,useFormState:xh,useActionState:xh,useOptimistic:function(t,e){var n=Lt();return yt!==null?dh(n,yt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Fc,useCacheRefresh:Bh};Yh.useEffectEvent=Ch;function cu(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:Tt({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var uu={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ae(),l=Wn(a);l.payload=e,n!=null&&(l.callback=n),e=In(t,l,a),e!==null&&(me(e,t,a),jr(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ae(),l=Wn(a);l.tag=1,l.payload=e,n!=null&&(l.callback=n),e=In(t,l,a),e!==null&&(me(e,t,a),jr(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ae(),a=Wn(n);a.tag=2,e!=null&&(a.callback=e),e=In(t,a,n),e!==null&&(me(e,t,n),jr(e,t,n))}};function qh(t,e,n,a,l,r,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,r,o):e.prototype&&e.prototype.isPureReactComponent?!Ar(n,a)||!Ar(l,r):!0}function Gh(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&uu.enqueueReplaceState(e,e.state,null)}function Va(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=Tt({},n));for(var l in t)n[l]===void 0&&(n[l]=t[l])}return n}function Ph(t){Uo(t)}function Xh(t){console.error(t)}function Qh(t){Uo(t)}function oi(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Zh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function fu(t,e,n){return n=Wn(n),n.tag=3,n.payload={element:null},n.callback=function(){oi(t,e)},n}function Kh(t){return t=Wn(t),t.tag=3,t}function $h(t,e,n,a){var l=n.type.getDerivedStateFromError;if(typeof l=="function"){var r=a.value;t.payload=function(){return l(r)},t.callback=function(){Zh(e,n,a)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Zh(e,n,a),typeof l!="function"&&(ra===null?ra=new Set([this]):ra.add(this));var i=a.stack;this.componentDidCatch(a.value,{componentStack:i!==null?i:""})})}function Sx(t,e,n,a,l){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&bl(e,n,l,!0),n=xe.current,n!==null){switch(n.tag){case 31:case 13:return Ue===null?yi():n.alternate===null&&Dt===0&&(Dt=3),n.flags&=-257,n.flags|=65536,n.lanes=l,a===Zo?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),Bu(t,a,l)),!1;case 22:return n.flags|=65536,a===Zo?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),Bu(t,a,l)),!1}throw Error(O(435,n.tag))}return Bu(t,a,l),yi(),!1}if(it)return e=xe.current,e!==null?(!(e.flags&65536)&&(e.flags|=256),e.flags|=65536,e.lanes=l,a!==Oc&&(t=Error(O(422),{cause:a}),_r(je(t,n)))):(a!==Oc&&(e=Error(O(423),{cause:a}),_r(je(e,n))),t=t.current.alternate,t.flags|=65536,l&=-l,t.lanes|=l,a=je(a,n),l=fu(t.stateNode,a,l),Yc(t,l),Dt!==4&&(Dt=2)),!1;var r=Error(O(520),{cause:a});if(r=je(r,n),Zr===null?Zr=[r]:Zr.push(r),Dt!==4&&(Dt=2),e===null)return!0;a=je(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=l&-l,n.lanes|=t,t=fu(n.stateNode,a,t),Yc(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(ra===null||!ra.has(r))))return n.flags|=65536,l&=-l,n.lanes|=l,l=Kh(l),$h(l,t,n,a),Yc(n,l),!1}n=n.return}while(n!==null);return!1}var du=Error(O(461)),Ht=!1;function Jt(t,e,n,a){e.child=t===null?Im(e,null,n,a):Ua(e,t.child,n,a)}function Jh(t,e,n,a,l){n=n.render;var r=e.ref;if("ref"in a){var o={};for(var i in a)i!=="ref"&&(o[i]=a[i])}else o=a;return ja(e),a=Zc(t,e,n,o,r,l),i=Kc(),t!==null&&!Ht?($c(t,e,l),Tn(t,e,l)):(it&&i&&_c(e),e.flags|=1,Jt(t,e,a,l),e.child)}function Fh(t,e,n,a,l){if(t===null){var r=n.type;return typeof r=="function"&&!Ac(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Wh(t,e,r,a,l)):(t=Yo(n.type,null,a,e,e.mode,l),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!bu(t,l)){var o=r.memoizedProps;if(n=n.compare,n=n!==null?n:Ar,n(o,a)&&t.ref===e.ref)return Tn(t,e,l)}return e.flags|=1,t=bn(r,a),t.ref=e.ref,t.return=e,e.child=t}function Wh(t,e,n,a,l){if(t!==null){var r=t.memoizedProps;if(Ar(r,a)&&t.ref===e.ref)if(Ht=!1,e.pendingProps=a=r,bu(t,l))t.flags&131072&&(Ht=!0);else return e.lanes=t.lanes,Tn(t,e,l)}return mu(t,e,n,a,l)}function Ih(t,e,n,a){var l=a.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if(e.flags&128){if(r=r!==null?r.baseLanes|n:n,t!==null){for(a=e.child=t.child,l=0;a!==null;)l=l|a.lanes|a.childLanes,a=a.sibling;a=l&~r}else a=0,e.child=null;return tp(t,e,r,n,a)}if(n&536870912)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Xo(e,r!==null?r.cachePool:null),r!==null?nh(e,r):Gc(),ah(e);else return a=e.lanes=536870912,tp(t,e,r!==null?r.baseLanes|n:n,n,a)}else r!==null?(Xo(e,r.cachePool),nh(e,r),ea(),e.memoizedState=null):(t!==null&&Xo(e,null),Gc(),ea());return Jt(t,e,l,n),e.child}function kr(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function tp(t,e,n,a,l){var r=Uc();return r=r===null?null:{parent:Bt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Xo(e,null),Gc(),ah(e),t!==null&&bl(t,e,a,!0),e.childLanes=l,null}function ii(t,e){return e=ci({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ep(t,e,n){return Ua(e,t.child,null,n),t=ii(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function Ex(t,e,n){var a=e.pendingProps,l=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(it){if(a.mode==="hidden")return t=ii(e,a),e.lanes=536870912,kr(null,t);if(Xc(e),(t=Nt)?(t=mg(t,Be),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zn!==null?{id:tn,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=Hm(t),n.return=e,e.child=n,Kt=e,Nt=null)):t=null,t===null)throw $n(e);return e.lanes=536870912,null}return ii(e,a)}var r=t.memoizedState;if(r!==null){var o=r.dehydrated;if(Xc(e),l)if(e.flags&256)e.flags&=-257,e=ep(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(O(558));else if(Ht||bl(t,e,n,!1),l=(n&t.childLanes)!==0,Ht||l){if(a=bt,a!==null&&(o=Xd(a,n),o!==0&&o!==r.retryLane))throw r.retryLane=o,Ra(t,o),me(a,t,o),du;yi(),e=ep(t,e,n)}else t=r.treeContext,Nt=He(o.nextSibling),Kt=e,it=!0,Kn=null,Be=!1,t!==null&&Ym(e,t),e=ii(e,a),e.flags|=4096;return e}return t=bn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function si(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(O(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function mu(t,e,n,a,l){return ja(e),n=Zc(t,e,n,a,void 0,l),a=Kc(),t!==null&&!Ht?($c(t,e,l),Tn(t,e,l)):(it&&a&&_c(e),e.flags|=1,Jt(t,e,n,l),e.child)}function np(t,e,n,a,l,r){return ja(e),e.updateQueue=null,n=rh(e,a,n,l),lh(t),a=Kc(),t!==null&&!Ht?($c(t,e,r),Tn(t,e,r)):(it&&a&&_c(e),e.flags|=1,Jt(t,e,n,r),e.child)}function ap(t,e,n,a,l){if(ja(e),e.stateNode===null){var r=gl,o=n.contextType;typeof o=="object"&&o!==null&&(r=$t(o)),r=new n(a,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=uu,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=a,r.state=e.memoizedState,r.refs={},Vc(e),o=n.contextType,r.context=typeof o=="object"&&o!==null?$t(o):gl,r.state=e.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(cu(e,n,o,a),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(o=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),o!==r.state&&uu.enqueueReplaceState(r,r.state,null),Lr(e,a,r,l),zr(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){r=e.stateNode;var i=e.memoizedProps,s=Va(n,i);r.props=s;var c=r.context,m=n.contextType;o=gl,typeof m=="object"&&m!==null&&(o=$t(m));var u=n.getDerivedStateFromProps;m=typeof u=="function"||typeof r.getSnapshotBeforeUpdate=="function",i=e.pendingProps!==i,m||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(i||c!==o)&&Gh(e,r,a,o),Fn=!1;var h=e.memoizedState;r.state=h,Lr(e,a,r,l),zr(),c=e.memoizedState,i||h!==c||Fn?(typeof u=="function"&&(cu(e,n,u,a),c=e.memoizedState),(s=Fn||qh(e,n,s,a,h,c,o))?(m||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=c),r.props=a,r.state=c,r.context=o,a=s):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{r=e.stateNode,kc(t,e),o=e.memoizedProps,m=Va(n,o),r.props=m,u=e.pendingProps,h=r.context,c=n.contextType,s=gl,typeof c=="object"&&c!==null&&(s=$t(c)),i=n.getDerivedStateFromProps,(c=typeof i=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o!==u||h!==s)&&Gh(e,r,a,s),Fn=!1,h=e.memoizedState,r.state=h,Lr(e,a,r,l),zr();var v=e.memoizedState;o!==u||h!==v||Fn||t!==null&&t.dependencies!==null&&Go(t.dependencies)?(typeof i=="function"&&(cu(e,n,i,a),v=e.memoizedState),(m=Fn||qh(e,n,m,a,h,v,s)||t!==null&&t.dependencies!==null&&Go(t.dependencies))?(c||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(a,v,s),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(a,v,s)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=v),r.props=a,r.state=v,r.context=s,a=m):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),a=!1)}return r=a,si(t,e),a=(e.flags&128)!==0,r||a?(r=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&a?(e.child=Ua(e,t.child,null,l),e.child=Ua(e,null,n,l)):Jt(t,e,n,l),e.memoizedState=r.state,t=e.child):t=Tn(t,e,l),t}function lp(t,e,n,a){return Ma(),e.flags|=256,Jt(t,e,n,a),e.child}var hu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function pu(t){return{baseLanes:t,cachePool:Zm()}}function gu(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Ce),t}function rp(t,e,n){var a=e.pendingProps,l=!1,r=(e.flags&128)!==0,o;if((o=r)||(o=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),o&&(l=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(it){if(l?ta(e):ea(),(t=Nt)?(t=mg(t,Be),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Zn!==null?{id:tn,overflow:en}:null,retryLane:536870912,hydrationErrors:null},n=Hm(t),n.return=e,e.child=n,Kt=e,Nt=null)):t=null,t===null)throw $n(e);return Wu(t)?e.lanes=32:e.lanes=536870912,null}var i=a.children;return a=a.fallback,l?(ea(),l=e.mode,i=ci({mode:"hidden",children:i},l),a=Oa(a,l,n,null),i.return=e,a.return=e,i.sibling=a,e.child=i,a=e.child,a.memoizedState=pu(n),a.childLanes=gu(t,o,n),e.memoizedState=hu,kr(null,a)):(ta(e),vu(e,i))}var s=t.memoizedState;if(s!==null&&(i=s.dehydrated,i!==null)){if(r)e.flags&256?(ta(e),e.flags&=-257,e=yu(t,e,n)):e.memoizedState!==null?(ea(),e.child=t.child,e.flags|=128,e=null):(ea(),i=a.fallback,l=e.mode,a=ci({mode:"visible",children:a.children},l),i=Oa(i,l,n,null),i.flags|=2,a.return=e,i.return=e,a.sibling=i,e.child=a,Ua(e,t.child,null,n),a=e.child,a.memoizedState=pu(n),a.childLanes=gu(t,o,n),e.memoizedState=hu,e=kr(null,a));else if(ta(e),Wu(i)){if(o=i.nextSibling&&i.nextSibling.dataset,o)var c=o.dgst;o=c,a=Error(O(419)),a.stack="",a.digest=o,_r({value:a,source:null,stack:null}),e=yu(t,e,n)}else if(Ht||bl(t,e,n,!1),o=(n&t.childLanes)!==0,Ht||o){if(o=bt,o!==null&&(a=Xd(o,n),a!==0&&a!==s.retryLane))throw s.retryLane=a,Ra(t,a),me(o,t,a),du;Fu(i)||yi(),e=yu(t,e,n)}else Fu(i)?(e.flags|=192,e.child=t.child,e=null):(t=s.treeContext,Nt=He(i.nextSibling),Kt=e,it=!0,Kn=null,Be=!1,t!==null&&Ym(e,t),e=vu(e,a.children),e.flags|=4096);return e}return l?(ea(),i=a.fallback,l=e.mode,s=t.child,c=s.sibling,a=bn(s,{mode:"hidden",children:a.children}),a.subtreeFlags=s.subtreeFlags&65011712,c!==null?i=bn(c,i):(i=Oa(i,l,n,null),i.flags|=2),i.return=e,a.return=e,a.sibling=i,e.child=a,kr(null,a),a=e.child,i=t.child.memoizedState,i===null?i=pu(n):(l=i.cachePool,l!==null?(s=Bt._currentValue,l=l.parent!==s?{parent:s,pool:s}:l):l=Zm(),i={baseLanes:i.baseLanes|n,cachePool:l}),a.memoizedState=i,a.childLanes=gu(t,o,n),e.memoizedState=hu,kr(t.child,a)):(ta(e),n=t.child,t=n.sibling,n=bn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=n,e.memoizedState=null,n)}function vu(t,e){return e=ci({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function ci(t,e){return t=be(22,t,null,e),t.lanes=0,t}function yu(t,e,n){return Ua(e,t.child,null,n),t=vu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function op(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),jc(t.return,e,n)}function wu(t,e,n,a,l,r){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:l,treeForkCount:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=l,o.treeForkCount=r)}function ip(t,e,n){var a=e.pendingProps,l=a.revealOrder,r=a.tail;a=a.children;var o=zt.current,i=(o&2)!==0;if(i?(o=o&1|2,e.flags|=128):o&=1,xt(zt,o),Jt(t,e,a,n),a=it?Nr:0,!i&&t!==null&&t.flags&128)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&op(t,n,e);else if(t.tag===19)op(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(l){case"forwards":for(n=e.child,l=null;n!==null;)t=n.alternate,t!==null&&Fo(t)===null&&(l=n),n=n.sibling;n=l,n===null?(l=e.child,e.child=null):(l=n.sibling,n.sibling=null),wu(e,!1,l,n,r,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,l=e.child,e.child=null;l!==null;){if(t=l.alternate,t!==null&&Fo(t)===null){e.child=l;break}t=l.sibling,l.sibling=n,n=l,l=t}wu(e,!0,n,null,r,a);break;case"together":wu(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function Tn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),la|=e.lanes,!(n&e.childLanes))if(t!==null){if(bl(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(O(153));if(e.child!==null){for(t=e.child,n=bn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=bn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function bu(t,e){return t.lanes&e?!0:(t=t.dependencies,!!(t!==null&&Go(t)))}function Cx(t,e,n){switch(e.tag){case 3:bo(e,e.stateNode.containerInfo),Jn(e,Bt,t.memoizedState.cache),Ma();break;case 27:case 5:Ps(e);break;case 4:bo(e,e.stateNode.containerInfo);break;case 10:Jn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Xc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(ta(e),e.flags|=128,null):n&e.child.childLanes?rp(t,e,n):(ta(e),t=Tn(t,e,n),t!==null?t.sibling:null);ta(e);break;case 19:var l=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(bl(t,e,n,!1),a=(n&e.childLanes)!==0),l){if(a)return ip(t,e,n);e.flags|=128}if(l=e.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),xt(zt,zt.current),a)break;return null;case 22:return e.lanes=0,Ih(t,e,n,e.pendingProps);case 24:Jn(e,Bt,t.memoizedState.cache)}return Tn(t,e,n)}function sp(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Ht=!0;else{if(!bu(t,n)&&!(e.flags&128))return Ht=!1,Cx(t,e,n);Ht=!!(t.flags&131072)}else Ht=!1,it&&e.flags&1048576&&km(e,Nr,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=La(e.elementType),e.type=t,typeof t=="function")Ac(t)?(a=Va(t,a),e.tag=1,e=ap(null,e,t,a,n)):(e.tag=0,e=mu(null,e,t,a,n));else{if(t!=null){var l=t.$$typeof;if(l===Us){e.tag=11,e=Jh(null,e,t,a,n);break t}else if(l===ks){e.tag=14,e=Fh(null,e,t,a,n);break t}}throw e=qs(t)||t,Error(O(306,e,""))}}return e;case 0:return mu(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,l=Va(a,e.pendingProps),ap(t,e,a,l,n);case 3:t:{if(bo(e,e.stateNode.containerInfo),t===null)throw Error(O(387));a=e.pendingProps;var r=e.memoizedState;l=r.element,kc(t,e),Lr(e,a,null,n);var o=e.memoizedState;if(a=o.cache,Jn(e,Bt,a),a!==r.cache&&zc(e,[Bt],n,!0),zr(),a=o.element,r.isDehydrated)if(r={element:a,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=lp(t,e,a,n);break t}else if(a!==l){l=je(Error(O(424)),e),_r(l),e=lp(t,e,a,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Nt=He(t.firstChild),Kt=e,it=!0,Kn=null,Be=!0,n=Im(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ma(),a===l){e=Tn(t,e,n);break t}Jt(t,e,a,n)}e=e.child}return e;case 26:return si(t,e),t===null?(n=wg(e.type,null,e.pendingProps,null))?e.memoizedState=n:it||(n=e.type,t=e.pendingProps,a=Ai(Gn.current).createElement(n),a[Zt]=e,a[ie]=t,Ft(a,n,t),Pt(a),e.stateNode=a):e.memoizedState=wg(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ps(e),t===null&&it&&(a=e.stateNode=gg(e.type,e.pendingProps,Gn.current),Kt=e,Be=!0,l=Nt,ca(e.type)?(Iu=l,Nt=He(a.firstChild)):Nt=l),Jt(t,e,e.pendingProps.children,n),si(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&it&&((l=a=Nt)&&(a=t1(a,e.type,e.pendingProps,Be),a!==null?(e.stateNode=a,Kt=e,Nt=He(a.firstChild),Be=!1,l=!0):l=!1),l||$n(e)),Ps(e),l=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,a=r.children,Ku(l,r)?a=null:o!==null&&Ku(l,o)&&(e.flags|=32),e.memoizedState!==null&&(l=Zc(t,e,px,null,null,n),eo._currentValue=l),si(t,e),Jt(t,e,a,n),e.child;case 6:return t===null&&it&&((t=n=Nt)&&(n=e1(n,e.pendingProps,Be),n!==null?(e.stateNode=n,Kt=e,Nt=null,t=!0):t=!1),t||$n(e)),null;case 13:return rp(t,e,n);case 4:return bo(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Ua(e,null,a,n):Jt(t,e,a,n),e.child;case 11:return Jh(t,e,e.type,e.pendingProps,n);case 7:return Jt(t,e,e.pendingProps,n),e.child;case 8:return Jt(t,e,e.pendingProps.children,n),e.child;case 12:return Jt(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,Jn(e,e.type,a.value),Jt(t,e,a.children,n),e.child;case 9:return l=e.type._context,a=e.pendingProps.children,ja(e),l=$t(l),a=a(l),e.flags|=1,Jt(t,e,a,n),e.child;case 14:return Fh(t,e,e.type,e.pendingProps,n);case 15:return Wh(t,e,e.type,e.pendingProps,n);case 19:return ip(t,e,n);case 31:return Ex(t,e,n);case 22:return Ih(t,e,n,e.pendingProps);case 24:return ja(e),a=$t(Bt),t===null?(l=Uc(),l===null&&(l=bt,r=Lc(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=n),l=r),e.memoizedState={parent:a,cache:l},Vc(e),Jn(e,Bt,l)):(t.lanes&n&&(kc(t,e),Lr(e,null,null,n),zr()),l=t.memoizedState,r=e.memoizedState,l.parent!==a?(l={parent:a,cache:a},e.memoizedState=l,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=l),Jn(e,Bt,a)):(a=r.cache,Jn(e,Bt,a),a!==l.cache&&zc(e,[Bt],n,!0))),Jt(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(O(156,e.tag))}function Nn(t){t.flags|=4}function xu(t,e,n,a,l){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(l&335544128)===l)if(t.stateNode.complete)t.flags|=8192;else if(Lp())t.flags|=8192;else throw Ba=Zo,Hc}else t.flags&=-16777217}function cp(t,e){if(e.type!=="stylesheet"||e.state.loading&4)t.flags&=-16777217;else if(t.flags|=16777216,!Cg(e))if(Lp())t.flags|=8192;else throw Ba=Zo,Hc}function ui(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?qd():536870912,t.lanes|=e,Dl|=e)}function Yr(t,e){if(!it)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function _t(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var l=t.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags&65011712,a|=l.flags&65011712,l.return=t,l=l.sibling;else for(l=t.child;l!==null;)n|=l.lanes|l.childLanes,a|=l.subtreeFlags,a|=l.flags,l.return=t,l=l.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function Ax(t,e,n){var a=e.pendingProps;switch(Rc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(e),null;case 1:return _t(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),En(Bt),nl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(wl(e)?Nn(e):t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Mc())),_t(e),null;case 26:var l=e.type,r=e.memoizedState;return t===null?(Nn(e),r!==null?(_t(e),cp(e,r)):(_t(e),xu(e,l,null,a,n))):r?r!==t.memoizedState?(Nn(e),_t(e),cp(e,r)):(_t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Nn(e),_t(e),xu(e,l,t,a,n)),null;case 27:if(xo(e),n=Gn.current,l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Nn(e);else{if(!a){if(e.stateNode===null)throw Error(O(166));return _t(e),null}t=Ie.current,wl(e)?qm(e):(t=gg(l,a,n),e.stateNode=t,Nn(e))}return _t(e),null;case 5:if(xo(e),l=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Nn(e);else{if(!a){if(e.stateNode===null)throw Error(O(166));return _t(e),null}if(r=Ie.current,wl(e))qm(e);else{var o=Ai(Gn.current);switch(r){case 1:r=o.createElementNS("http://www.w3.org/2000/svg",l);break;case 2:r=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;default:switch(l){case"svg":r=o.createElementNS("http://www.w3.org/2000/svg",l);break;case"math":r=o.createElementNS("http://www.w3.org/1998/Math/MathML",l);break;case"script":r=o.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof a.is=="string"?o.createElement("select",{is:a.is}):o.createElement("select"),a.multiple?r.multiple=!0:a.size&&(r.size=a.size);break;default:r=typeof a.is=="string"?o.createElement(l,{is:a.is}):o.createElement(l)}}r[Zt]=e,r[ie]=a;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=r;t:switch(Ft(r,l,a),l){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Nn(e)}}return _t(e),xu(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Nn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(O(166));if(t=Gn.current,wl(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,l=Kt,l!==null)switch(l.tag){case 27:case 5:a=l.memoizedProps}t[Zt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||rg(t.nodeValue,n)),t||$n(e,!0)}else t=Ai(t).createTextNode(a),t[Zt]=e,e.stateNode=t}return _t(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=wl(e),n!==null){if(t===null){if(!a)throw Error(O(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(O(557));t[Zt]=e}else Ma(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;_t(e),t=!1}else n=Mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(Se(e),e):(Se(e),null);if(e.flags&128)throw Error(O(558))}return _t(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(l=wl(e),a!==null&&a.dehydrated!==null){if(t===null){if(!l)throw Error(O(318));if(l=e.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(O(317));l[Zt]=e}else Ma(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;_t(e),l=!1}else l=Mc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),l=!0;if(!l)return e.flags&256?(Se(e),e):(Se(e),null)}return Se(e),e.flags&128?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,l=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(l=a.alternate.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),ui(e,e.updateQueue),_t(e),null);case 4:return nl(),t===null&&Gu(e.stateNode.containerInfo),_t(e),null;case 10:return En(e.type),_t(e),null;case 19:if(Gt(zt),a=e.memoizedState,a===null)return _t(e),null;if(l=(e.flags&128)!==0,r=a.rendering,r===null)if(l)Yr(a,!1);else{if(Dt!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(r=Fo(t),r!==null){for(e.flags|=128,Yr(a,!1),t=r.updateQueue,e.updateQueue=t,ui(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Um(n,t),n=n.sibling;return xt(zt,zt.current&1|2),it&&xn(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ge()>pi&&(e.flags|=128,l=!0,Yr(a,!1),e.lanes=4194304)}else{if(!l)if(t=Fo(r),t!==null){if(e.flags|=128,l=!0,t=t.updateQueue,e.updateQueue=t,ui(e,t),Yr(a,!0),a.tail===null&&a.tailMode==="hidden"&&!r.alternate&&!it)return _t(e),null}else 2*ge()-a.renderingStartTime>pi&&n!==536870912&&(e.flags|=128,l=!0,Yr(a,!1),e.lanes=4194304);a.isBackwards?(r.sibling=e.child,e.child=r):(t=a.last,t!==null?t.sibling=r:e.child=r,a.last=r)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ge(),t.sibling=null,n=zt.current,xt(zt,l?n&1|2:n&1),it&&xn(e,a.treeForkCount),t):(_t(e),null);case 22:case 23:return Se(e),Pc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?n&536870912&&!(e.flags&128)&&(_t(e),e.subtreeFlags&6&&(e.flags|=8192)):_t(e),n=e.updateQueue,n!==null&&ui(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&Gt(za),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),En(Bt),_t(e),null;case 25:return null;case 30:return null}throw Error(O(156,e.tag))}function Tx(t,e){switch(Rc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return En(Bt),nl(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return xo(e),null;case 31:if(e.memoizedState!==null){if(Se(e),e.alternate===null)throw Error(O(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Se(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(O(340));Ma()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Gt(zt),null;case 4:return nl(),null;case 10:return En(e.type),null;case 22:case 23:return Se(e),Pc(),t!==null&&Gt(za),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return En(Bt),null;case 25:return null;default:return null}}function up(t,e){switch(Rc(e),e.tag){case 3:En(Bt),nl();break;case 26:case 27:case 5:xo(e);break;case 4:nl();break;case 31:e.memoizedState!==null&&Se(e);break;case 13:Se(e);break;case 19:Gt(zt);break;case 10:En(e.type);break;case 22:case 23:Se(e),Pc(),t!==null&&Gt(za);break;case 24:En(Bt)}}function qr(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var l=a.next;n=l;do{if((n.tag&t)===t){a=void 0;var r=n.create,o=n.inst;a=r(),o.destroy=a}n=n.next}while(n!==l)}}catch(i){gt(e,e.return,i)}}function na(t,e,n){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var r=l.next;a=r;do{if((a.tag&t)===t){var o=a.inst,i=o.destroy;if(i!==void 0){o.destroy=void 0,l=e;var s=n,c=i;try{c()}catch(m){gt(l,s,m)}}}a=a.next}while(a!==r)}}catch(m){gt(e,e.return,m)}}function fp(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{eh(e,n)}catch(a){gt(t,t.return,a)}}}function dp(t,e,n){n.props=Va(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){gt(t,e,a)}}function Gr(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(l){gt(t,e,l)}}function nn(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(l){gt(t,e,l)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(l){gt(t,e,l)}else n.current=null}function mp(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(l){gt(t,t.return,l)}}function Su(t,e,n){try{var a=t.stateNode;Kx(a,t.type,n,e),a[ie]=e}catch(l){gt(t,t.return,l)}}function hp(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ca(t.type)||t.tag===4}function Eu(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||hp(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ca(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Cu(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=yn));else if(a!==4&&(a===27&&ca(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Cu(t,e,n),t=t.sibling;t!==null;)Cu(t,e,n),t=t.sibling}function fi(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&ca(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(fi(t,e,n),t=t.sibling;t!==null;)fi(t,e,n),t=t.sibling}function pp(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,l=e.attributes;l.length;)e.removeAttributeNode(l[0]);Ft(e,a,n),e[Zt]=t,e[ie]=n}catch(r){gt(t,t.return,r)}}var _n=!1,Vt=!1,Au=!1,gp=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function Nx(t,e){if(t=t.containerInfo,Qu=Di,t=_m(t),yc(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var l=a.anchorOffset,r=a.focusNode;a=a.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var o=0,i=-1,s=-1,c=0,m=0,u=t,h=null;e:for(;;){for(var v;u!==n||l!==0&&u.nodeType!==3||(i=o+l),u!==r||a!==0&&u.nodeType!==3||(s=o+a),u.nodeType===3&&(o+=u.nodeValue.length),(v=u.firstChild)!==null;)h=u,u=v;for(;;){if(u===t)break e;if(h===n&&++c===l&&(i=o),h===r&&++m===a&&(s=o),(v=u.nextSibling)!==null)break;u=h,h=u.parentNode}u=v}n=i===-1||s===-1?null:{start:i,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Zu={focusedElem:t,selectionRange:n},Di=!1,Xt=e;Xt!==null;)if(e=Xt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Xt=t;else for(;Xt!==null;){switch(e=Xt,r=e.alternate,t=e.flags,e.tag){case 0:if(t&4&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(n=0;n<t.length;n++)l=t[n],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:if(t&1024&&r!==null){t=void 0,n=e,l=r.memoizedProps,r=r.memoizedState,a=n.stateNode;try{var x=Va(n.type,l);t=a.getSnapshotBeforeUpdate(x,r),a.__reactInternalSnapshotBeforeUpdate=t}catch(w){gt(n,n.return,w)}}break;case 3:if(t&1024){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)Ju(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ju(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(t&1024)throw Error(O(163))}if(t=e.sibling,t!==null){t.return=e.return,Xt=t;break}Xt=e.return}}function vp(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:On(t,n),a&4&&qr(5,n);break;case 1:if(On(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(o){gt(n,n.return,o)}else{var l=Va(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(l,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){gt(n,n.return,o)}}a&64&&fp(n),a&512&&Gr(n,n.return);break;case 3:if(On(t,n),a&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{eh(t,e)}catch(o){gt(n,n.return,o)}}break;case 27:e===null&&a&4&&pp(n);case 26:case 5:On(t,n),e===null&&a&4&&mp(n),a&512&&Gr(n,n.return);break;case 12:On(t,n);break;case 31:On(t,n),a&4&&bp(t,n);break;case 13:On(t,n),a&4&&xp(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Bx.bind(null,n),n1(t,n))));break;case 22:if(a=n.memoizedState!==null||_n,!a){e=e!==null&&e.memoizedState!==null||Vt,l=_n;var r=Vt;_n=a,(Vt=e)&&!r?Mn(t,n,(n.subtreeFlags&8772)!==0):On(t,n),_n=l,Vt=r}break;case 30:break;default:On(t,n)}}function yp(t){var e=t.alternate;e!==null&&(t.alternate=null,yp(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ec(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Rt=null,ce=!1;function Rn(t,e,n){for(n=n.child;n!==null;)wp(t,e,n),n=n.sibling}function wp(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(mr,n)}catch{}switch(n.tag){case 26:Vt||nn(n,e),Rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Vt||nn(n,e);var a=Rt,l=ce;ca(n.type)&&(Rt=n.stateNode,ce=!1),Rn(t,e,n),Wr(n.stateNode),Rt=a,ce=l;break;case 5:Vt||nn(n,e);case 6:if(a=Rt,l=ce,Rt=null,Rn(t,e,n),Rt=a,ce=l,Rt!==null)if(ce)try{(Rt.nodeType===9?Rt.body:Rt.nodeName==="HTML"?Rt.ownerDocument.body:Rt).removeChild(n.stateNode)}catch(r){gt(n,e,r)}else try{Rt.removeChild(n.stateNode)}catch(r){gt(n,e,r)}break;case 18:Rt!==null&&(ce?(t=Rt,fg(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),kl(t)):fg(Rt,n.stateNode));break;case 4:a=Rt,l=ce,Rt=n.stateNode.containerInfo,ce=!0,Rn(t,e,n),Rt=a,ce=l;break;case 0:case 11:case 14:case 15:na(2,n,e),Vt||na(4,n,e),Rn(t,e,n);break;case 1:Vt||(nn(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&dp(n,e,a)),Rn(t,e,n);break;case 21:Rn(t,e,n);break;case 22:Vt=(a=Vt)||n.memoizedState!==null,Rn(t,e,n),Vt=a;break;default:Rn(t,e,n)}}function bp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{kl(t)}catch(n){gt(e,e.return,n)}}}function xp(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{kl(t)}catch(n){gt(e,e.return,n)}}function _x(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new gp),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new gp),e;default:throw Error(O(435,t.tag))}}function di(t,e){var n=_x(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var l=Ux.bind(null,t,a);a.then(l,l)}})}function ue(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var l=n[a],r=t,o=e,i=o;t:for(;i!==null;){switch(i.tag){case 27:if(ca(i.type)){Rt=i.stateNode,ce=!1;break t}break;case 5:Rt=i.stateNode,ce=!1;break t;case 3:case 4:Rt=i.stateNode.containerInfo,ce=!0;break t}i=i.return}if(Rt===null)throw Error(O(160));wp(r,o,l),Rt=null,ce=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Sp(e,t),e=e.sibling}var Ge=null;function Sp(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ue(e,t),fe(t),a&4&&(na(3,t,t.return),qr(3,t),na(5,t,t.return));break;case 1:ue(e,t),fe(t),a&512&&(Vt||n===null||nn(n,n.return)),a&64&&_n&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var l=Ge;if(ue(e,t),fe(t),a&512&&(Vt||n===null||nn(n,n.return)),a&4){var r=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,l=l.ownerDocument||l;e:switch(a){case"title":r=l.getElementsByTagName("title")[0],(!r||r[gr]||r[Zt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=l.createElement(a),l.head.insertBefore(r,l.querySelector("head > title"))),Ft(r,a,n),r[Zt]=t,Pt(r),a=r;break t;case"link":var o=Sg("link","href",l).get(a+(n.href||""));if(o){for(var i=0;i<o.length;i++)if(r=o[i],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(i,1);break e}}r=l.createElement(a),Ft(r,a,n),l.head.appendChild(r);break;case"meta":if(o=Sg("meta","content",l).get(a+(n.content||""))){for(i=0;i<o.length;i++)if(r=o[i],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(i,1);break e}}r=l.createElement(a),Ft(r,a,n),l.head.appendChild(r);break;default:throw Error(O(468,a))}r[Zt]=t,Pt(r),a=r}t.stateNode=a}else Eg(l,t.type,t.stateNode);else t.stateNode=xg(l,a,t.memoizedProps);else r!==a?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,a===null?Eg(l,t.type,t.stateNode):xg(l,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Su(t,t.memoizedProps,n.memoizedProps)}break;case 27:ue(e,t),fe(t),a&512&&(Vt||n===null||nn(n,n.return)),n!==null&&a&4&&Su(t,t.memoizedProps,n.memoizedProps);break;case 5:if(ue(e,t),fe(t),a&512&&(Vt||n===null||nn(n,n.return)),t.flags&32){l=t.stateNode;try{cl(l,"")}catch(x){gt(t,t.return,x)}}a&4&&t.stateNode!=null&&(l=t.memoizedProps,Su(t,l,n!==null?n.memoizedProps:l)),a&1024&&(Au=!0);break;case 6:if(ue(e,t),fe(t),a&4){if(t.stateNode===null)throw Error(O(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(x){gt(t,t.return,x)}}break;case 3:if(_i=null,l=Ge,Ge=Ti(e.containerInfo),ue(e,t),Ge=l,fe(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{kl(e.containerInfo)}catch(x){gt(t,t.return,x)}Au&&(Au=!1,Ep(t));break;case 4:a=Ge,Ge=Ti(t.stateNode.containerInfo),ue(e,t),fe(t),Ge=a;break;case 12:ue(e,t),fe(t);break;case 31:ue(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,di(t,a)));break;case 13:ue(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(hi=ge()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,di(t,a)));break;case 22:l=t.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,c=_n,m=Vt;if(_n=c||l,Vt=m||s,ue(e,t),Vt=m,_n=c,fe(t),a&8192)t:for(e=t.stateNode,e._visibility=l?e._visibility&-2:e._visibility|1,l&&(n===null||s||_n||Vt||ka(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){s=n=e;try{if(r=s.stateNode,l)o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{i=s.stateNode;var u=s.memoizedProps.style,h=u!=null&&u.hasOwnProperty("display")?u.display:null;i.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(x){gt(s,s.return,x)}}}else if(e.tag===6){if(n===null){s=e;try{s.stateNode.nodeValue=l?"":s.memoizedProps}catch(x){gt(s,s.return,x)}}}else if(e.tag===18){if(n===null){s=e;try{var v=s.stateNode;l?dg(v,!0):dg(s.stateNode,!1)}catch(x){gt(s,s.return,x)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,di(t,n))));break;case 19:ue(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,di(t,a)));break;case 30:break;case 21:break;default:ue(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(hp(a)){n=a;break}a=a.return}if(n==null)throw Error(O(160));switch(n.tag){case 27:var l=n.stateNode,r=Eu(t);fi(t,r,l);break;case 5:var o=n.stateNode;n.flags&32&&(cl(o,""),n.flags&=-33);var i=Eu(t);fi(t,i,o);break;case 3:case 4:var s=n.stateNode.containerInfo,c=Eu(t);Cu(t,c,s);break;default:throw Error(O(161))}}catch(m){gt(t,t.return,m)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Ep(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Ep(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function On(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)vp(t,e.alternate,e),e=e.sibling}function ka(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:na(4,e,e.return),ka(e);break;case 1:nn(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&dp(e,e.return,n),ka(e);break;case 27:Wr(e.stateNode);case 26:case 5:nn(e,e.return),ka(e);break;case 22:e.memoizedState===null&&ka(e);break;case 30:ka(e);break;default:ka(e)}t=t.sibling}}function Mn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,l=t,r=e,o=r.flags;switch(r.tag){case 0:case 11:case 15:Mn(l,r,n),qr(4,r);break;case 1:if(Mn(l,r,n),a=r,l=a.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(c){gt(a,a.return,c)}if(a=r,l=a.updateQueue,l!==null){var i=a.stateNode;try{var s=l.shared.hiddenCallbacks;if(s!==null)for(l.shared.hiddenCallbacks=null,l=0;l<s.length;l++)th(s[l],i)}catch(c){gt(a,a.return,c)}}n&&o&64&&fp(r),Gr(r,r.return);break;case 27:pp(r);case 26:case 5:Mn(l,r,n),n&&a===null&&o&4&&mp(r),Gr(r,r.return);break;case 12:Mn(l,r,n);break;case 31:Mn(l,r,n),n&&o&4&&bp(l,r);break;case 13:Mn(l,r,n),n&&o&4&&xp(l,r);break;case 22:r.memoizedState===null&&Mn(l,r,n),Gr(r,r.return);break;case 30:break;default:Mn(l,r,n)}e=e.sibling}}function Tu(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&Rr(n))}function Nu(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Rr(t))}function Pe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cp(t,e,n,a),e=e.sibling}function Cp(t,e,n,a){var l=e.flags;switch(e.tag){case 0:case 11:case 15:Pe(t,e,n,a),l&2048&&qr(9,e);break;case 1:Pe(t,e,n,a);break;case 3:Pe(t,e,n,a),l&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Rr(t)));break;case 12:if(l&2048){Pe(t,e,n,a),t=e.stateNode;try{var r=e.memoizedProps,o=r.id,i=r.onPostCommit;typeof i=="function"&&i(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(s){gt(e,e.return,s)}}else Pe(t,e,n,a);break;case 31:Pe(t,e,n,a);break;case 13:Pe(t,e,n,a);break;case 23:break;case 22:r=e.stateNode,o=e.alternate,e.memoizedState!==null?r._visibility&2?Pe(t,e,n,a):Pr(t,e):r._visibility&2?Pe(t,e,n,a):(r._visibility|=2,Rl(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),l&2048&&Tu(o,e);break;case 24:Pe(t,e,n,a),l&2048&&Nu(e.alternate,e);break;default:Pe(t,e,n,a)}}function Rl(t,e,n,a,l){for(l=l&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,o=e,i=n,s=a,c=o.flags;switch(o.tag){case 0:case 11:case 15:Rl(r,o,i,s,l),qr(8,o);break;case 23:break;case 22:var m=o.stateNode;o.memoizedState!==null?m._visibility&2?Rl(r,o,i,s,l):Pr(r,o):(m._visibility|=2,Rl(r,o,i,s,l)),l&&c&2048&&Tu(o.alternate,o);break;case 24:Rl(r,o,i,s,l),l&&c&2048&&Nu(o.alternate,o);break;default:Rl(r,o,i,s,l)}e=e.sibling}}function Pr(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,l=a.flags;switch(a.tag){case 22:Pr(n,a),l&2048&&Tu(a.alternate,a);break;case 24:Pr(n,a),l&2048&&Nu(a.alternate,a);break;default:Pr(n,a)}e=e.sibling}}var Xr=8192;function Ol(t,e,n){if(t.subtreeFlags&Xr)for(t=t.child;t!==null;)Ap(t,e,n),t=t.sibling}function Ap(t,e,n){switch(t.tag){case 26:Ol(t,e,n),t.flags&Xr&&t.memoizedState!==null&&h1(n,Ge,t.memoizedState,t.memoizedProps);break;case 5:Ol(t,e,n);break;case 3:case 4:var a=Ge;Ge=Ti(t.stateNode.containerInfo),Ol(t,e,n),Ge=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Xr,Xr=16777216,Ol(t,e,n),Xr=a):Ol(t,e,n));break;default:Ol(t,e,n)}}function Tp(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Qr(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Xt=a,_p(a,t)}Tp(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Np(t),t=t.sibling}function Np(t){switch(t.tag){case 0:case 11:case 15:Qr(t),t.flags&2048&&na(9,t,t.return);break;case 3:Qr(t);break;case 12:Qr(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,mi(t)):Qr(t);break;default:Qr(t)}}function mi(t){var e=t.deletions;if(t.flags&16){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Xt=a,_p(a,t)}Tp(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:na(8,e,e.return),mi(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,mi(e));break;default:mi(e)}t=t.sibling}}function _p(t,e){for(;Xt!==null;){var n=Xt;switch(n.tag){case 0:case 11:case 15:na(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Rr(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Xt=a;else t:for(n=t;Xt!==null;){a=Xt;var l=a.sibling,r=a.return;if(yp(a),a===n){Xt=null;break t}if(l!==null){l.return=r,Xt=l;break t}Xt=r}}}var Rx={getCacheForType:function(t){var e=$t(Bt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return $t(Bt).controller.signal}},Ox=typeof WeakMap=="function"?WeakMap:Map,ut=0,bt=null,at=null,rt=0,pt=0,Ee=null,aa=!1,Ml=!1,_u=!1,Dn=0,Dt=0,la=0,Ya=0,Ru=0,Ce=0,Dl=0,Zr=null,de=null,Ou=!1,hi=0,Rp=0,pi=1/0,gi=null,ra=null,Yt=0,oa=null,jl=null,jn=0,Mu=0,Du=null,Op=null,Kr=0,ju=null;function Ae(){return ut&2&&rt!==0?rt&-rt:K.T!==null?Vu():Qd()}function Mp(){if(Ce===0)if(!(rt&536870912)||it){var t=Co;Co<<=1,!(Co&3932160)&&(Co=262144),Ce=t}else Ce=536870912;return t=xe.current,t!==null&&(t.flags|=32),Ce}function me(t,e,n){(t===bt&&(pt===2||pt===9)||t.cancelPendingCommit!==null)&&(zl(t,0),ia(t,rt,Ce,!1)),pr(t,n),(!(ut&2)||t!==bt)&&(t===bt&&(!(ut&2)&&(Ya|=n),Dt===4&&ia(t,rt,Ce,!1)),an(t))}function Dp(t,e,n){if(ut&6)throw Error(O(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||hr(t,e),l=a?jx(t,e):Lu(t,e,!0),r=a;do{if(l===0){Ml&&!a&&ia(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Mx(n)){l=Lu(t,e,!1),r=!1;continue}if(l===2){if(r=e,t.errorRecoveryDisabledLanes&r)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var i=t;l=Zr;var s=i.current.memoizedState.isDehydrated;if(s&&(zl(i,o).flags|=256),o=Lu(i,o,!1),o!==2){if(_u&&!s){i.errorRecoveryDisabledLanes|=r,Ya|=r,l=4;break t}r=de,de=l,r!==null&&(de===null?de=r:de.push.apply(de,r))}l=o}if(r=!1,l!==2)continue}}if(l===1){zl(t,0),ia(t,e,0,!0);break}t:{switch(a=t,r=l,r){case 0:case 1:throw Error(O(345));case 4:if((e&4194048)!==e)break;case 6:ia(a,e,Ce,!aa);break t;case 2:de=null;break;case 3:case 5:break;default:throw Error(O(329))}if((e&62914560)===e&&(l=hi+300-ge(),10<l)){if(ia(a,e,Ce,!aa),To(a,0,!0)!==0)break t;jn=e,a.timeoutHandle=cg(jp.bind(null,a,n,de,gi,Ou,e,Ce,Ya,Dl,aa,r,"Throttled",-0,0),l);break t}jp(a,n,de,gi,Ou,e,Ce,Ya,Dl,aa,r,null,-0,0)}}break}while(!0);an(t)}function jp(t,e,n,a,l,r,o,i,s,c,m,u,h,v){if(t.timeoutHandle=-1,u=e.subtreeFlags,u&8192||(u&16785408)===16785408){u={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Ap(e,r,u);var x=(r&62914560)===r?hi-ge():(r&4194048)===r?Rp-ge():0;if(x=p1(u,x),x!==null){jn=r,t.cancelPendingCommit=x(Yp.bind(null,t,e,r,n,a,l,o,i,s,m,u,null,h,v)),ia(t,r,o,!c);return}}Yp(t,e,r,n,a,l,o,i,s)}function Mx(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var l=n[a],r=l.getSnapshot;l=l.value;try{if(!we(r(),l))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ia(t,e,n,a){e&=~Ru,e&=~Ya,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var l=e;0<l;){var r=31-ye(l),o=1<<r;a[r]=-1,l&=~o}n!==0&&Gd(t,n,e)}function vi(){return ut&6?!0:($r(0),!1)}function zu(){if(at!==null){if(pt===0)var t=at.return;else t=at,Sn=Da=null,Jc(t),Cl=null,Mr=0,t=at;for(;t!==null;)up(t.alternate,t),t=t.return;at=null}}function zl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Fx(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),jn=0,zu(),bt=t,at=n=bn(t.current,null),rt=e,pt=0,Ee=null,aa=!1,Ml=hr(t,e),_u=!1,Dl=Ce=Ru=Ya=la=Dt=0,de=Zr=null,Ou=!1,e&8&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var l=31-ye(a),r=1<<l;e|=t[l],a&=~r}return Dn=e,Ho(),n}function zp(t,e){W=null,K.H=Vr,e===El||e===Qo?(e=Jm(),pt=3):e===Hc?(e=Jm(),pt=4):pt=e===du?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ee=e,at===null&&(Dt=1,oi(t,je(e,t.current)))}function Lp(){var t=xe.current;return t===null?!0:(rt&4194048)===rt?Ue===null:(rt&62914560)===rt||rt&536870912?t===Ue:!1}function Bp(){var t=K.H;return K.H=Vr,t===null?Vr:t}function Up(){var t=K.A;return K.A=Rx,t}function yi(){Dt=4,aa||(rt&4194048)!==rt&&xe.current!==null||(Ml=!0),!(la&134217727)&&!(Ya&134217727)||bt===null||ia(bt,rt,Ce,!1)}function Lu(t,e,n){var a=ut;ut|=2;var l=Bp(),r=Up();(bt!==t||rt!==e)&&(gi=null,zl(t,e)),e=!1;var o=Dt;t:do try{if(pt!==0&&at!==null){var i=at,s=Ee;switch(pt){case 8:zu(),o=6;break t;case 3:case 2:case 9:case 6:xe.current===null&&(e=!0);var c=pt;if(pt=0,Ee=null,Ll(t,i,s,c),n&&Ml){o=0;break t}break;default:c=pt,pt=0,Ee=null,Ll(t,i,s,c)}}Dx(),o=Dt;break}catch(m){zp(t,m)}while(!0);return e&&t.shellSuspendCounter++,Sn=Da=null,ut=a,K.H=l,K.A=r,at===null&&(bt=null,rt=0,Ho()),o}function Dx(){for(;at!==null;)Hp(at)}function jx(t,e){var n=ut;ut|=2;var a=Bp(),l=Up();bt!==t||rt!==e?(gi=null,pi=ge()+500,zl(t,e)):Ml=hr(t,e);t:do try{if(pt!==0&&at!==null){e=at;var r=Ee;e:switch(pt){case 1:pt=0,Ee=null,Ll(t,e,r,1);break;case 2:case 9:if(Km(r)){pt=0,Ee=null,Vp(e);break}e=function(){pt!==2&&pt!==9||bt!==t||(pt=7),an(t)},r.then(e,e);break t;case 3:pt=7;break t;case 4:pt=5;break t;case 7:Km(r)?(pt=0,Ee=null,Vp(e)):(pt=0,Ee=null,Ll(t,e,r,7));break;case 5:var o=null;switch(at.tag){case 26:o=at.memoizedState;case 5:case 27:var i=at;if(o?Cg(o):i.stateNode.complete){pt=0,Ee=null;var s=i.sibling;if(s!==null)at=s;else{var c=i.return;c!==null?(at=c,wi(c)):at=null}break e}}pt=0,Ee=null,Ll(t,e,r,5);break;case 6:pt=0,Ee=null,Ll(t,e,r,6);break;case 8:zu(),Dt=6;break t;default:throw Error(O(462))}}zx();break}catch(m){zp(t,m)}while(!0);return Sn=Da=null,K.H=a,K.A=l,ut=n,at!==null?0:(bt=null,rt=0,Ho(),Dt)}function zx(){for(;at!==null&&!ab();)Hp(at)}function Hp(t){var e=sp(t.alternate,t,Dn);t.memoizedProps=t.pendingProps,e===null?wi(t):at=e}function Vp(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=np(n,e,e.pendingProps,e.type,void 0,rt);break;case 11:e=np(n,e,e.pendingProps,e.type.render,e.ref,rt);break;case 5:Jc(e);default:up(n,e),e=at=Um(e,Dn),e=sp(n,e,Dn)}t.memoizedProps=t.pendingProps,e===null?wi(t):at=e}function Ll(t,e,n,a){Sn=Da=null,Jc(e),Cl=null,Mr=0;var l=e.return;try{if(Sx(t,l,e,n,rt)){Dt=1,oi(t,je(n,t.current)),at=null;return}}catch(r){if(l!==null)throw at=l,r;Dt=1,oi(t,je(n,t.current)),at=null;return}e.flags&32768?(it||a===1?t=!0:Ml||rt&536870912?t=!1:(aa=t=!0,(a===2||a===9||a===3||a===6)&&(a=xe.current,a!==null&&a.tag===13&&(a.flags|=16384))),kp(e,t)):wi(e)}function wi(t){var e=t;do{if(e.flags&32768){kp(e,aa);return}t=e.return;var n=Ax(e.alternate,e,Dn);if(n!==null){at=n;return}if(e=e.sibling,e!==null){at=e;return}at=e=t}while(e!==null);Dt===0&&(Dt=5)}function kp(t,e){do{var n=Tx(t.alternate,t);if(n!==null){n.flags&=32767,at=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){at=t;return}at=t=n}while(t!==null);Dt=6,at=null}function Yp(t,e,n,a,l,r,o,i,s){t.cancelPendingCommit=null;do bi();while(Yt!==0);if(ut&6)throw Error(O(327));if(e!==null){if(e===t.current)throw Error(O(177));if(r=e.lanes|e.childLanes,r|=Ec,mb(t,n,r,o,i,s),t===bt&&(at=bt=null,rt=0),jl=e,oa=t,jn=n,Mu=r,Du=l,Op=a,e.subtreeFlags&10256||e.flags&10256?(t.callbackNode=null,t.callbackPriority=0,Hx(So,function(){return Qp(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,e.subtreeFlags&13878||a){a=K.T,K.T=null,l=ct.p,ct.p=2,o=ut,ut|=4;try{Nx(t,e,n)}finally{ut=o,ct.p=l,K.T=a}}Yt=1,qp(),Gp(),Pp()}}function qp(){if(Yt===1){Yt=0;var t=oa,e=jl,n=(e.flags&13878)!==0;if(e.subtreeFlags&13878||n){n=K.T,K.T=null;var a=ct.p;ct.p=2;var l=ut;ut|=4;try{Sp(e,t);var r=Zu,o=_m(t.containerInfo),i=r.focusedElem,s=r.selectionRange;if(o!==i&&i&&i.ownerDocument&&Nm(i.ownerDocument.documentElement,i)){if(s!==null&&yc(i)){var c=s.start,m=s.end;if(m===void 0&&(m=c),"selectionStart"in i)i.selectionStart=c,i.selectionEnd=Math.min(m,i.value.length);else{var u=i.ownerDocument||document,h=u&&u.defaultView||window;if(h.getSelection){var v=h.getSelection(),x=i.textContent.length,w=Math.min(s.start,x),S=s.end===void 0?w:Math.min(s.end,x);!v.extend&&w>S&&(o=S,S=w,w=o);var p=Tm(i,w),g=Tm(i,S);if(p&&g&&(v.rangeCount!==1||v.anchorNode!==p.node||v.anchorOffset!==p.offset||v.focusNode!==g.node||v.focusOffset!==g.offset)){var y=u.createRange();y.setStart(p.node,p.offset),v.removeAllRanges(),w>S?(v.addRange(y),v.extend(g.node,g.offset)):(y.setEnd(g.node,g.offset),v.addRange(y))}}}}for(u=[],v=i;v=v.parentNode;)v.nodeType===1&&u.push({element:v,left:v.scrollLeft,top:v.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<u.length;i++){var b=u[i];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Di=!!Qu,Zu=Qu=null}finally{ut=l,ct.p=a,K.T=n}}t.current=e,Yt=2}}function Gp(){if(Yt===2){Yt=0;var t=oa,e=jl,n=(e.flags&8772)!==0;if(e.subtreeFlags&8772||n){n=K.T,K.T=null;var a=ct.p;ct.p=2;var l=ut;ut|=4;try{vp(t,e.alternate,e)}finally{ut=l,ct.p=a,K.T=n}}Yt=3}}function Pp(){if(Yt===4||Yt===3){Yt=0,lb();var t=oa,e=jl,n=jn,a=Op;e.subtreeFlags&10256||e.flags&10256?Yt=5:(Yt=0,jl=oa=null,Xp(t,t.pendingLanes));var l=t.pendingLanes;if(l===0&&(ra=null),Is(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(mr,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=K.T,l=ct.p,ct.p=2,K.T=null;try{for(var r=t.onRecoverableError,o=0;o<a.length;o++){var i=a[o];r(i.value,{componentStack:i.stack})}}finally{K.T=e,ct.p=l}}jn&3&&bi(),an(t),l=t.pendingLanes,n&261930&&l&42?t===ju?Kr++:(Kr=0,ju=t):Kr=0,$r(0)}}function Xp(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Rr(e)))}function bi(){return qp(),Gp(),Pp(),Qp()}function Qp(){if(Yt!==5)return!1;var t=oa,e=Mu;Mu=0;var n=Is(jn),a=K.T,l=ct.p;try{ct.p=32>n?32:n,K.T=null,n=Du,Du=null;var r=oa,o=jn;if(Yt=0,jl=oa=null,jn=0,ut&6)throw Error(O(331));var i=ut;if(ut|=4,Np(r.current),Cp(r,r.current,o,n),ut=i,$r(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(mr,r)}catch{}return!0}finally{ct.p=l,K.T=a,Xp(t,e)}}function Zp(t,e,n){e=je(n,e),e=fu(t.stateNode,e,2),t=In(t,e,2),t!==null&&(pr(t,2),an(t))}function gt(t,e,n){if(t.tag===3)Zp(t,t,n);else for(;e!==null;){if(e.tag===3){Zp(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ra===null||!ra.has(a))){t=je(n,t),n=Kh(2),a=In(e,n,2),a!==null&&($h(n,a,e,t),pr(a,2),an(a));break}}e=e.return}}function Bu(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new Ox;var l=new Set;a.set(e,l)}else l=a.get(e),l===void 0&&(l=new Set,a.set(e,l));l.has(n)||(_u=!0,l.add(n),t=Lx.bind(null,t,e,n),e.then(t,t))}function Lx(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,bt===t&&(rt&n)===n&&(Dt===4||Dt===3&&(rt&62914560)===rt&&300>ge()-hi?!(ut&2)&&zl(t,0):Ru|=n,Dl===rt&&(Dl=0)),an(t)}function Kp(t,e){e===0&&(e=qd()),t=Ra(t,e),t!==null&&(pr(t,e),an(t))}function Bx(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Kp(t,n)}function Ux(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,l=t.memoizedState;l!==null&&(n=l.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(O(314))}a!==null&&a.delete(e),Kp(t,n)}function Hx(t,e){return $s(t,e)}var xi=null,Bl=null,Uu=!1,Si=!1,Hu=!1,sa=0;function an(t){t!==Bl&&t.next===null&&(Bl===null?xi=Bl=t:Bl=Bl.next=t),Si=!0,Uu||(Uu=!0,kx())}function $r(t,e){if(!Hu&&Si){Hu=!0;do for(var n=!1,a=xi;a!==null;){if(t!==0){var l=a.pendingLanes;if(l===0)var r=0;else{var o=a.suspendedLanes,i=a.pingedLanes;r=(1<<31-ye(42|t)+1)-1,r&=l&~(o&~i),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Wp(a,r))}else r=rt,r=To(a,a===bt?r:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),!(r&3)||hr(a,r)||(n=!0,Wp(a,r));a=a.next}while(n);Hu=!1}}function Vx(){$p()}function $p(){Si=Uu=!1;var t=0;sa!==0&&Jx()&&(t=sa);for(var e=ge(),n=null,a=xi;a!==null;){var l=a.next,r=Jp(a,e);r===0?(a.next=null,n===null?xi=l:n.next=l,l===null&&(Bl=n)):(n=a,(t!==0||r&3)&&(Si=!0)),a=l}Yt!==0&&Yt!==5||$r(t),sa!==0&&(sa=0)}function Jp(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,l=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var o=31-ye(r),i=1<<o,s=l[o];s===-1?(!(i&n)||i&a)&&(l[o]=db(i,e)):s<=e&&(t.expiredLanes|=i),r&=~i}if(e=bt,n=rt,n=To(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(pt===2||pt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Js(a),t.callbackNode=null,t.callbackPriority=0;if(!(n&3)||hr(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&Js(a),Is(n)){case 2:case 8:n=kd;break;case 32:n=So;break;case 268435456:n=Yd;break;default:n=So}return a=Fp.bind(null,t),n=$s(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&Js(a),t.callbackPriority=2,t.callbackNode=null,2}function Fp(t,e){if(Yt!==0&&Yt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(bi()&&t.callbackNode!==n)return null;var a=rt;return a=To(t,t===bt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Dp(t,a,e),Jp(t,ge()),t.callbackNode!=null&&t.callbackNode===n?Fp.bind(null,t):null)}function Wp(t,e){if(bi())return null;Dp(t,e,!0)}function kx(){Wx(function(){ut&6?$s(Vd,Vx):$p()})}function Vu(){if(sa===0){var t=xl;t===0&&(t=Eo,Eo<<=1,!(Eo&261888)&&(Eo=256)),sa=t}return sa}function Ip(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Oo(""+t)}function tg(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function Yx(t,e,n,a,l){if(e==="submit"&&n&&n.stateNode===l){var r=Ip((l[ie]||null).action),o=a.submitter;o&&(e=(e=o[ie]||null)?Ip(e.formAction):o.getAttribute("formAction"),e!==null&&(r=e,o=null));var i=new zo("action","action",null,a,l);t.push({event:i,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(sa!==0){var s=o?tg(l,o):new FormData(l);ru(n,{pending:!0,data:s,method:l.method,action:r},null,s)}}else typeof r=="function"&&(i.preventDefault(),s=o?tg(l,o):new FormData(l),ru(n,{pending:!0,data:s,method:l.method,action:r},r,s))},currentTarget:l}]})}}for(var ku=0;ku<Sc.length;ku++){var Yu=Sc[ku],qx=Yu.toLowerCase(),Gx=Yu[0].toUpperCase()+Yu.slice(1);qe(qx,"on"+Gx)}qe(Mm,"onAnimationEnd"),qe(Dm,"onAnimationIteration"),qe(jm,"onAnimationStart"),qe("dblclick","onDoubleClick"),qe("focusin","onFocus"),qe("focusout","onBlur"),qe(rx,"onTransitionRun"),qe(ox,"onTransitionStart"),qe(ix,"onTransitionCancel"),qe(zm,"onTransitionEnd"),il("onMouseEnter",["mouseout","mouseover"]),il("onMouseLeave",["mouseout","mouseover"]),il("onPointerEnter",["pointerout","pointerover"]),il("onPointerLeave",["pointerout","pointerover"]),Aa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Aa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Aa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Aa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Aa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Jr="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(" "),Px=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jr));function eg(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],l=a.event;a=a.listeners;t:{var r=void 0;if(e)for(var o=a.length-1;0<=o;o--){var i=a[o],s=i.instance,c=i.currentTarget;if(i=i.listener,s!==r&&l.isPropagationStopped())break t;r=i,l.currentTarget=c;try{r(l)}catch(m){Uo(m)}l.currentTarget=null,r=s}else for(o=0;o<a.length;o++){if(i=a[o],s=i.instance,c=i.currentTarget,i=i.listener,s!==r&&l.isPropagationStopped())break t;r=i,l.currentTarget=c;try{r(l)}catch(m){Uo(m)}l.currentTarget=null,r=s}}}}function lt(t,e){var n=e[tc];n===void 0&&(n=e[tc]=new Set);var a=t+"__bubble";n.has(a)||(ng(e,t,2,!1),n.add(a))}function qu(t,e,n){var a=0;e&&(a|=4),ng(n,t,a,e)}var Ei="_reactListening"+Math.random().toString(36).slice(2);function Gu(t){if(!t[Ei]){t[Ei]=!0,$d.forEach(function(n){n!=="selectionchange"&&(Px.has(n)||qu(n,!1,t),qu(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ei]||(e[Ei]=!0,qu("selectionchange",!1,e))}}function ng(t,e,n,a){switch(Mg(e)){case 2:var l=y1;break;case 8:l=w1;break;default:l=lf}n=l.bind(null,e,n,t),l=void 0,!cc||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(l=!0),a?l!==void 0?t.addEventListener(e,n,{capture:!0,passive:l}):t.addEventListener(e,n,!0):l!==void 0?t.addEventListener(e,n,{passive:l}):t.addEventListener(e,n,!1)}function Pu(t,e,n,a,l){var r=a;if(!(e&1)&&!(e&2)&&a!==null)t:for(;;){if(a===null)return;var o=a.tag;if(o===3||o===4){var i=a.stateNode.containerInfo;if(i===l)break;if(o===4)for(o=a.return;o!==null;){var s=o.tag;if((s===3||s===4)&&o.stateNode.containerInfo===l)return;o=o.return}for(;i!==null;){if(o=ll(i),o===null)return;if(s=o.tag,s===5||s===6||s===26||s===27){a=r=o;continue t}i=i.parentNode}}a=a.return}im(function(){var c=r,m=ic(n),u=[];t:{var h=Lm.get(t);if(h!==void 0){var v=zo,x=t;switch(t){case"keypress":if(Do(n)===0)break t;case"keydown":case"keyup":v=Ub;break;case"focusin":x="focus",v=mc;break;case"focusout":x="blur",v=mc;break;case"beforeblur":case"afterblur":v=mc;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=um;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Ab;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=kb;break;case Mm:case Dm:case jm:v=_b;break;case zm:v=qb;break;case"scroll":case"scrollend":v=Eb;break;case"wheel":v=Pb;break;case"copy":case"cut":case"paste":v=Ob;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=dm;break;case"toggle":case"beforetoggle":v=Qb}var w=(e&4)!==0,S=!w&&(t==="scroll"||t==="scrollend"),p=w?h!==null?h+"Capture":null:h;w=[];for(var g=c,y;g!==null;){var b=g;if(y=b.stateNode,b=b.tag,b!==5&&b!==26&&b!==27||y===null||p===null||(b=yr(g,p),b!=null&&w.push(Fr(g,b,y))),S)break;g=g.return}0<w.length&&(h=new v(h,x,null,n,m),u.push({event:h,listeners:w}))}}if(!(e&7)){t:{if(h=t==="mouseover"||t==="pointerover",v=t==="mouseout"||t==="pointerout",h&&n!==oc&&(x=n.relatedTarget||n.fromElement)&&(ll(x)||x[al]))break t;if((v||h)&&(h=m.window===m?m:(h=m.ownerDocument)?h.defaultView||h.parentWindow:window,v?(x=n.relatedTarget||n.toElement,v=c,x=x?ll(x):null,x!==null&&(S=sr(x),w=x.tag,x!==S||w!==5&&w!==27&&w!==6)&&(x=null)):(v=null,x=c),v!==x)){if(w=um,b="onMouseLeave",p="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(w=dm,b="onPointerLeave",p="onPointerEnter",g="pointer"),S=v==null?h:vr(v),y=x==null?h:vr(x),h=new w(b,g+"leave",v,n,m),h.target=S,h.relatedTarget=y,b=null,ll(m)===c&&(w=new w(p,g+"enter",x,n,m),w.target=y,w.relatedTarget=S,b=w),S=b,v&&x)e:{for(w=Xx,p=v,g=x,y=0,b=p;b;b=w(b))y++;b=0;for(var E=g;E;E=w(E))b++;for(;0<y-b;)p=w(p),y--;for(;0<b-y;)g=w(g),b--;for(;y--;){if(p===g||g!==null&&p===g.alternate){w=p;break e}p=w(p),g=w(g)}w=null}else w=null;v!==null&&ag(u,h,v,w,!1),x!==null&&S!==null&&ag(u,S,x,w,!0)}}t:{if(h=c?vr(c):window,v=h.nodeName&&h.nodeName.toLowerCase(),v==="select"||v==="input"&&h.type==="file")var _=bm;else if(ym(h))if(xm)_=nx;else{_=tx;var C=Ib}else v=h.nodeName,!v||v.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?c&&rc(c.elementType)&&(_=bm):_=ex;if(_&&(_=_(t,c))){wm(u,_,n,m);break t}C&&C(t,h,c),t==="focusout"&&c&&h.type==="number"&&c.memoizedProps.value!=null&&lc(h,"number",h.value)}switch(C=c?vr(c):window,t){case"focusin":(ym(C)||C.contentEditable==="true")&&(ml=C,wc=c,Tr=null);break;case"focusout":Tr=wc=ml=null;break;case"mousedown":bc=!0;break;case"contextmenu":case"mouseup":case"dragend":bc=!1,Rm(u,n,m);break;case"selectionchange":if(lx)break;case"keydown":case"keyup":Rm(u,n,m)}var N;if(pc)t:{switch(t){case"compositionstart":var D="onCompositionStart";break t;case"compositionend":D="onCompositionEnd";break t;case"compositionupdate":D="onCompositionUpdate";break t}D=void 0}else dl?gm(t,n)&&(D="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(D="onCompositionStart");D&&(mm&&n.locale!=="ko"&&(dl||D!=="onCompositionStart"?D==="onCompositionEnd"&&dl&&(N=sm()):(Qn=m,uc="value"in Qn?Qn.value:Qn.textContent,dl=!0)),C=Ci(c,D),0<C.length&&(D=new fm(D,t,null,n,m),u.push({event:D,listeners:C}),N?D.data=N:(N=vm(n),N!==null&&(D.data=N)))),(N=Kb?$b(t,n):Jb(t,n))&&(D=Ci(c,"onBeforeInput"),0<D.length&&(C=new fm("onBeforeInput","beforeinput",null,n,m),u.push({event:C,listeners:D}),C.data=N)),Yx(u,t,c,n,m)}eg(u,e)})}function Fr(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Ci(t,e){for(var n=e+"Capture",a=[];t!==null;){var l=t,r=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||r===null||(l=yr(t,n),l!=null&&a.unshift(Fr(t,l,r)),l=yr(t,e),l!=null&&a.push(Fr(t,l,r))),t.tag===3)return a;t=t.return}return[]}function Xx(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ag(t,e,n,a,l){for(var r=e._reactName,o=[];n!==null&&n!==a;){var i=n,s=i.alternate,c=i.stateNode;if(i=i.tag,s!==null&&s===a)break;i!==5&&i!==26&&i!==27||c===null||(s=c,l?(c=yr(n,r),c!=null&&o.unshift(Fr(n,c,s))):l||(c=yr(n,r),c!=null&&o.push(Fr(n,c,s)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var Qx=/\r\n?/g,Zx=/\u0000|\uFFFD/g;function lg(t){return(typeof t=="string"?t:""+t).replace(Qx,`
`).replace(Zx,"")}function rg(t,e){return e=lg(e),lg(t)===e}function wt(t,e,n,a,l,r){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||cl(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&cl(t,""+a);break;case"className":_o(t,"class",a);break;case"tabIndex":_o(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":_o(t,n,a);break;case"style":rm(t,a,r);break;case"data":if(e!=="object"){_o(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Oo(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(n==="formAction"?(e!=="input"&&wt(t,e,"name",l.name,l,null),wt(t,e,"formEncType",l.formEncType,l,null),wt(t,e,"formMethod",l.formMethod,l,null),wt(t,e,"formTarget",l.formTarget,l,null)):(wt(t,e,"encType",l.encType,l,null),wt(t,e,"method",l.method,l,null),wt(t,e,"target",l.target,l,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Oo(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=yn);break;case"onScroll":a!=null&&lt("scroll",t);break;case"onScrollEnd":a!=null&&lt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(O(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(O(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Oo(""+a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):t.removeAttribute(n);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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":lt("beforetoggle",t),lt("toggle",t),No(t,"popover",a);break;case"xlinkActuate":vn(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":vn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":vn(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":vn(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":vn(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":vn(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":vn(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":vn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":vn(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":No(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=xb.get(n)||n,No(t,n,a))}}function Xu(t,e,n,a,l,r){switch(n){case"style":rm(t,a,r);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(O(61));if(n=a.__html,n!=null){if(l.children!=null)throw Error(O(60));t.innerHTML=n}}break;case"children":typeof a=="string"?cl(t,a):(typeof a=="number"||typeof a=="bigint")&&cl(t,""+a);break;case"onScroll":a!=null&&lt("scroll",t);break;case"onScrollEnd":a!=null&&lt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=yn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jd.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(l=n.endsWith("Capture"),e=n.slice(2,l?n.length-7:void 0),r=t[ie]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,l),typeof a=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,l);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):No(t,n,a)}}}function Ft(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":lt("error",t),lt("load",t);var a=!1,l=!1,r;for(r in n)if(n.hasOwnProperty(r)){var o=n[r];if(o!=null)switch(r){case"src":a=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(O(137,e));default:wt(t,e,r,o,n,null)}}l&&wt(t,e,"srcSet",n.srcSet,n,null),a&&wt(t,e,"src",n.src,n,null);return;case"input":lt("invalid",t);var i=r=o=l=null,s=null,c=null;for(a in n)if(n.hasOwnProperty(a)){var m=n[a];if(m!=null)switch(a){case"name":l=m;break;case"type":o=m;break;case"checked":s=m;break;case"defaultChecked":c=m;break;case"value":r=m;break;case"defaultValue":i=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(O(137,e));break;default:wt(t,e,a,m,n,null)}}em(t,r,i,s,c,o,l,!1);return;case"select":lt("invalid",t),a=o=r=null;for(l in n)if(n.hasOwnProperty(l)&&(i=n[l],i!=null))switch(l){case"value":r=i;break;case"defaultValue":o=i;break;case"multiple":a=i;default:wt(t,e,l,i,n,null)}e=r,n=o,t.multiple=!!a,e!=null?sl(t,!!a,e,!1):n!=null&&sl(t,!!a,n,!0);return;case"textarea":lt("invalid",t),r=l=a=null;for(o in n)if(n.hasOwnProperty(o)&&(i=n[o],i!=null))switch(o){case"value":a=i;break;case"defaultValue":l=i;break;case"children":r=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(O(91));break;default:wt(t,e,o,i,n,null)}am(t,a,l,r);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(a=n[s],a!=null))switch(s){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:wt(t,e,s,a,n,null)}return;case"dialog":lt("beforetoggle",t),lt("toggle",t),lt("cancel",t),lt("close",t);break;case"iframe":case"object":lt("load",t);break;case"video":case"audio":for(a=0;a<Jr.length;a++)lt(Jr[a],t);break;case"image":lt("error",t),lt("load",t);break;case"details":lt("toggle",t);break;case"embed":case"source":case"link":lt("error",t),lt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(a=n[c],a!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(O(137,e));default:wt(t,e,c,a,n,null)}return;default:if(rc(e)){for(m in n)n.hasOwnProperty(m)&&(a=n[m],a!==void 0&&Xu(t,e,m,a,n,void 0));return}}for(i in n)n.hasOwnProperty(i)&&(a=n[i],a!=null&&wt(t,e,i,a,n,null))}function Kx(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,r=null,o=null,i=null,s=null,c=null,m=null;for(v in n){var u=n[v];if(n.hasOwnProperty(v)&&u!=null)switch(v){case"checked":break;case"value":break;case"defaultValue":s=u;default:a.hasOwnProperty(v)||wt(t,e,v,null,a,u)}}for(var h in a){var v=a[h];if(u=n[h],a.hasOwnProperty(h)&&(v!=null||u!=null))switch(h){case"type":r=v;break;case"name":l=v;break;case"checked":c=v;break;case"defaultChecked":m=v;break;case"value":o=v;break;case"defaultValue":i=v;break;case"children":case"dangerouslySetInnerHTML":if(v!=null)throw Error(O(137,e));break;default:v!==u&&wt(t,e,h,v,a,u)}}ac(t,o,i,s,c,m,r,l);return;case"select":v=o=i=h=null;for(r in n)if(s=n[r],n.hasOwnProperty(r)&&s!=null)switch(r){case"value":break;case"multiple":v=s;default:a.hasOwnProperty(r)||wt(t,e,r,null,a,s)}for(l in a)if(r=a[l],s=n[l],a.hasOwnProperty(l)&&(r!=null||s!=null))switch(l){case"value":h=r;break;case"defaultValue":i=r;break;case"multiple":o=r;default:r!==s&&wt(t,e,l,r,a,s)}e=i,n=o,a=v,h!=null?sl(t,!!n,h,!1):!!a!=!!n&&(e!=null?sl(t,!!n,e,!0):sl(t,!!n,n?[]:"",!1));return;case"textarea":v=h=null;for(i in n)if(l=n[i],n.hasOwnProperty(i)&&l!=null&&!a.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:wt(t,e,i,null,a,l)}for(o in a)if(l=a[o],r=n[o],a.hasOwnProperty(o)&&(l!=null||r!=null))switch(o){case"value":h=l;break;case"defaultValue":v=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(O(91));break;default:l!==r&&wt(t,e,o,l,a,r)}nm(t,h,v);return;case"option":for(var x in n)if(h=n[x],n.hasOwnProperty(x)&&h!=null&&!a.hasOwnProperty(x))switch(x){case"selected":t.selected=!1;break;default:wt(t,e,x,null,a,h)}for(s in a)if(h=a[s],v=n[s],a.hasOwnProperty(s)&&h!==v&&(h!=null||v!=null))switch(s){case"selected":t.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:wt(t,e,s,h,a,v)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var w in n)h=n[w],n.hasOwnProperty(w)&&h!=null&&!a.hasOwnProperty(w)&&wt(t,e,w,null,a,h);for(c in a)if(h=a[c],v=n[c],a.hasOwnProperty(c)&&h!==v&&(h!=null||v!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(O(137,e));break;default:wt(t,e,c,h,a,v)}return;default:if(rc(e)){for(var S in n)h=n[S],n.hasOwnProperty(S)&&h!==void 0&&!a.hasOwnProperty(S)&&Xu(t,e,S,void 0,a,h);for(m in a)h=a[m],v=n[m],!a.hasOwnProperty(m)||h===v||h===void 0&&v===void 0||Xu(t,e,m,h,a,v);return}}for(var p in n)h=n[p],n.hasOwnProperty(p)&&h!=null&&!a.hasOwnProperty(p)&&wt(t,e,p,null,a,h);for(u in a)h=a[u],v=n[u],!a.hasOwnProperty(u)||h===v||h==null&&v==null||wt(t,e,u,h,a,v)}function og(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $x(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var l=n[a],r=l.transferSize,o=l.initiatorType,i=l.duration;if(r&&i&&og(o)){for(o=0,i=l.responseEnd,a+=1;a<n.length;a++){var s=n[a],c=s.startTime;if(c>i)break;var m=s.transferSize,u=s.initiatorType;m&&og(u)&&(s=s.responseEnd,o+=m*(s<i?1:(i-c)/(s-c)))}if(--a,e+=8*(r+o)/(l.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Qu=null,Zu=null;function Ai(t){return t.nodeType===9?t:t.ownerDocument}function ig(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sg(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ku(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var $u=null;function Jx(){var t=window.event;return t&&t.type==="popstate"?t===$u?!1:($u=t,!0):($u=null,!1)}var cg=typeof setTimeout=="function"?setTimeout:void 0,Fx=typeof clearTimeout=="function"?clearTimeout:void 0,ug=typeof Promise=="function"?Promise:void 0,Wx=typeof queueMicrotask=="function"?queueMicrotask:typeof ug<"u"?function(t){return ug.resolve(null).then(t).catch(Ix)}:cg;function Ix(t){setTimeout(function(){throw t})}function ca(t){return t==="head"}function fg(t,e){var n=e,a=0;do{var l=n.nextSibling;if(t.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(l),kl(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")Wr(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Wr(n);for(var r=n.firstChild;r;){var o=r.nextSibling,i=r.nodeName;r[gr]||i==="SCRIPT"||i==="STYLE"||i==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=o}}else n==="body"&&Wr(t.ownerDocument.body);n=l}while(n);kl(e)}function dg(t,e){var n=t;t=0;do{var a=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function Ju(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ju(n),ec(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function t1(t,e,n,a){for(;t.nodeType===1;){var l=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[gr])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==l.rel||t.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||t.getAttribute("title")!==(l.title==null?null:l.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(l.src==null?null:l.src)||t.getAttribute("type")!==(l.type==null?null:l.type)||t.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=l.name==null?null:""+l.name;if(l.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=He(t.nextSibling),t===null)break}return null}function e1(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=He(t.nextSibling),t===null))return null;return t}function mg(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=He(t.nextSibling),t===null))return null;return t}function Fu(t){return t.data==="$?"||t.data==="$~"}function Wu(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function n1(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function He(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Iu=null;function hg(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return He(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function pg(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function gg(t,e,n){switch(e=Ai(n),t){case"html":if(t=e.documentElement,!t)throw Error(O(452));return t;case"head":if(t=e.head,!t)throw Error(O(453));return t;case"body":if(t=e.body,!t)throw Error(O(454));return t;default:throw Error(O(451))}}function Wr(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ec(t)}var Ve=new Map,vg=new Set;function Ti(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var zn=ct.d;ct.d={f:a1,r:l1,D:r1,C:o1,L:i1,m:s1,X:u1,S:c1,M:f1};function a1(){var t=zn.f(),e=vi();return t||e}function l1(t){var e=rl(t);e!==null&&e.tag===5&&e.type==="form"?zh(e):zn.r(t)}var Ul=typeof document>"u"?null:document;function yg(t,e,n){var a=Ul;if(a&&typeof e=="string"&&e){var l=Me(e);l='link[rel="'+t+'"][href="'+l+'"]',typeof n=="string"&&(l+='[crossorigin="'+n+'"]'),vg.has(l)||(vg.add(l),t={rel:t,crossOrigin:n,href:e},a.querySelector(l)===null&&(e=a.createElement("link"),Ft(e,"link",t),Pt(e),a.head.appendChild(e)))}}function r1(t){zn.D(t),yg("dns-prefetch",t,null)}function o1(t,e){zn.C(t,e),yg("preconnect",t,e)}function i1(t,e,n){zn.L(t,e,n);var a=Ul;if(a&&t&&e){var l='link[rel="preload"][as="'+Me(e)+'"]';e==="image"&&n&&n.imageSrcSet?(l+='[imagesrcset="'+Me(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(l+='[imagesizes="'+Me(n.imageSizes)+'"]')):l+='[href="'+Me(t)+'"]';var r=l;switch(e){case"style":r=Hl(t);break;case"script":r=Vl(t)}Ve.has(r)||(t=Tt({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ve.set(r,t),a.querySelector(l)!==null||e==="style"&&a.querySelector(Ir(r))||e==="script"&&a.querySelector(to(r))||(e=a.createElement("link"),Ft(e,"link",t),Pt(e),a.head.appendChild(e)))}}function s1(t,e){zn.m(t,e);var n=Ul;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",l='link[rel="modulepreload"][as="'+Me(a)+'"][href="'+Me(t)+'"]',r=l;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Vl(t)}if(!Ve.has(r)&&(t=Tt({rel:"modulepreload",href:t},e),Ve.set(r,t),n.querySelector(l)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(to(r)))return}a=n.createElement("link"),Ft(a,"link",t),Pt(a),n.head.appendChild(a)}}}function c1(t,e,n){zn.S(t,e,n);var a=Ul;if(a&&t){var l=ol(a).hoistableStyles,r=Hl(t);e=e||"default";var o=l.get(r);if(!o){var i={loading:0,preload:null};if(o=a.querySelector(Ir(r)))i.loading=5;else{t=Tt({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ve.get(r))&&tf(t,n);var s=o=a.createElement("link");Pt(s),Ft(s,"link",t),s._p=new Promise(function(c,m){s.onload=c,s.onerror=m}),s.addEventListener("load",function(){i.loading|=1}),s.addEventListener("error",function(){i.loading|=2}),i.loading|=4,Ni(o,e,a)}o={type:"stylesheet",instance:o,count:1,state:i},l.set(r,o)}}}function u1(t,e){zn.X(t,e);var n=Ul;if(n&&t){var a=ol(n).hoistableScripts,l=Vl(t),r=a.get(l);r||(r=n.querySelector(to(l)),r||(t=Tt({src:t,async:!0},e),(e=Ve.get(l))&&ef(t,e),r=n.createElement("script"),Pt(r),Ft(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(l,r))}}function f1(t,e){zn.M(t,e);var n=Ul;if(n&&t){var a=ol(n).hoistableScripts,l=Vl(t),r=a.get(l);r||(r=n.querySelector(to(l)),r||(t=Tt({src:t,async:!0,type:"module"},e),(e=Ve.get(l))&&ef(t,e),r=n.createElement("script"),Pt(r),Ft(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},a.set(l,r))}}function wg(t,e,n,a){var l=(l=Gn.current)?Ti(l):null;if(!l)throw Error(O(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Hl(n.href),n=ol(l).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Hl(n.href);var r=ol(l).hoistableStyles,o=r.get(t);if(o||(l=l.ownerDocument||l,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,o),(r=l.querySelector(Ir(t)))&&!r._p&&(o.instance=r,o.state.loading=5),Ve.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Ve.set(t,n),r||d1(l,t,n,o.state))),e&&a===null)throw Error(O(528,""));return o}if(e&&a!==null)throw Error(O(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Vl(n),n=ol(l).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(O(444,t))}}function Hl(t){return'href="'+Me(t)+'"'}function Ir(t){return'link[rel="stylesheet"]['+t+"]"}function bg(t){return Tt({},t,{"data-precedence":t.precedence,precedence:null})}function d1(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),Ft(e,"link",n),Pt(e),t.head.appendChild(e))}function Vl(t){return'[src="'+Me(t)+'"]'}function to(t){return"script[async]"+t}function xg(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Me(n.href)+'"]');if(a)return e.instance=a,Pt(a),a;var l=Tt({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Pt(a),Ft(a,"style",l),Ni(a,n.precedence,t),e.instance=a;case"stylesheet":l=Hl(n.href);var r=t.querySelector(Ir(l));if(r)return e.state.loading|=4,e.instance=r,Pt(r),r;a=bg(n),(l=Ve.get(l))&&tf(a,l),r=(t.ownerDocument||t).createElement("link"),Pt(r);var o=r;return o._p=new Promise(function(i,s){o.onload=i,o.onerror=s}),Ft(r,"link",a),e.state.loading|=4,Ni(r,n.precedence,t),e.instance=r;case"script":return r=Vl(n.src),(l=t.querySelector(to(r)))?(e.instance=l,Pt(l),l):(a=n,(l=Ve.get(r))&&(a=Tt({},n),ef(a,l)),t=t.ownerDocument||t,l=t.createElement("script"),Pt(l),Ft(l,"link",a),t.head.appendChild(l),e.instance=l);case"void":return null;default:throw Error(O(443,e.type))}else e.type==="stylesheet"&&!(e.state.loading&4)&&(a=e.instance,e.state.loading|=4,Ni(a,n.precedence,t));return e.instance}function Ni(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=a.length?a[a.length-1]:null,r=l,o=0;o<a.length;o++){var i=a[o];if(i.dataset.precedence===e)r=i;else if(r!==l)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function tf(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function ef(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var _i=null;function Sg(t,e,n){if(_i===null){var a=new Map,l=_i=new Map;l.set(n,a)}else l=_i,a=l.get(n),a||(a=new Map,l.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),l=0;l<n.length;l++){var r=n[l];if(!(r[gr]||r[Zt]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var o=r.getAttribute(e)||"";o=t+o;var i=a.get(o);i?i.push(r):a.set(o,[r])}}return a}function Eg(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function m1(t,e,n){if(n===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Cg(t){return!(t.type==="stylesheet"&&!(t.state.loading&3))}function h1(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var l=Hl(a.href),r=e.querySelector(Ir(l));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ri.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Pt(r);return}r=e.ownerDocument||e,a=bg(a),(l=Ve.get(l))&&tf(a,l),r=r.createElement("link"),Pt(r);var o=r;o._p=new Promise(function(i,s){o.onload=i,o.onerror=s}),Ft(r,"link",a),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&!(n.state.loading&3)&&(t.count++,n=Ri.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var nf=0;function p1(t,e){return t.stylesheets&&t.count===0&&Mi(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Mi(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&nf===0&&(nf=62500*$x());var l=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Mi(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>nf?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(l)}}:null}function Ri(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Mi(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Oi=null;function Mi(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Oi=new Map,e.forEach(g1,t),Oi=null,Ri.call(t))}function g1(t,e){if(!(e.state.loading&4)){var n=Oi.get(t);if(n)var a=n.get(null);else{n=new Map,Oi.set(t,n);for(var l=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var o=l[r];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),a=o)}a&&n.set(null,a)}l=e.instance,o=l.getAttribute("data-precedence"),r=n.get(o)||a,r===a&&n.set(null,l),n.set(o,l),this.count++,a=Ri.bind(this),l.addEventListener("load",a),l.addEventListener("error",a),r?r.parentNode.insertBefore(l,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(l,t.firstChild)),e.state.loading|=4}}var eo={$$typeof:gn,Provider:null,Consumer:null,_currentValue:Sa,_currentValue2:Sa,_threadCount:0};function v1(t,e,n,a,l,r,o,i,s){this.tag=1,this.containerInfo=t,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=Fs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fs(0),this.hiddenUpdates=Fs(null),this.identifierPrefix=a,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function Ag(t,e,n,a,l,r,o,i,s,c,m,u){return t=new v1(t,e,n,o,s,c,m,u,i),e=1,r===!0&&(e|=24),r=be(3,null,null,e),t.current=r,r.stateNode=t,e=Lc(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:a,isDehydrated:n,cache:e},Vc(r),t}function Tg(t){return t?(t=gl,t):gl}function Ng(t,e,n,a,l,r){l=Tg(l),a.context===null?a.context=l:a.pendingContext=l,a=Wn(e),a.payload={element:n},r=r===void 0?null:r,r!==null&&(a.callback=r),n=In(t,a,e),n!==null&&(me(n,t,e),jr(n,t,e))}function _g(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function af(t,e){_g(t,e),(t=t.alternate)&&_g(t,e)}function Rg(t){if(t.tag===13||t.tag===31){var e=Ra(t,67108864);e!==null&&me(e,t,67108864),af(t,67108864)}}function Og(t){if(t.tag===13||t.tag===31){var e=Ae();e=Ws(e);var n=Ra(t,e);n!==null&&me(n,t,e),af(t,e)}}var Di=!0;function y1(t,e,n,a){var l=K.T;K.T=null;var r=ct.p;try{ct.p=2,lf(t,e,n,a)}finally{ct.p=r,K.T=l}}function w1(t,e,n,a){var l=K.T;K.T=null;var r=ct.p;try{ct.p=8,lf(t,e,n,a)}finally{ct.p=r,K.T=l}}function lf(t,e,n,a){if(Di){var l=rf(a);if(l===null)Pu(t,e,a,ji,n),Dg(t,a);else if(x1(l,t,e,n,a))a.stopPropagation();else if(Dg(t,a),e&4&&-1<b1.indexOf(t)){for(;l!==null;){var r=rl(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var o=Ca(r.pendingLanes);if(o!==0){var i=r;for(i.pendingLanes|=2,i.entangledLanes|=2;o;){var s=1<<31-ye(o);i.entanglements[1]|=s,o&=~s}an(r),!(ut&6)&&(pi=ge()+500,$r(0))}}break;case 31:case 13:i=Ra(r,2),i!==null&&me(i,r,2),vi(),af(r,2)}if(r=rf(a),r===null&&Pu(t,e,a,ji,n),r===l)break;l=r}l!==null&&a.stopPropagation()}else Pu(t,e,a,null,n)}}function rf(t){return t=ic(t),of(t)}var ji=null;function of(t){if(ji=null,t=ll(t),t!==null){var e=sr(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=Od(e),t!==null)return t;t=null}else if(n===31){if(t=Md(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return ji=t,null}function Mg(t){switch(t){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(rb()){case Vd:return 2;case kd:return 8;case So:case ob:return 32;case Yd:return 268435456;default:return 32}default:return 32}}var sf=!1,ua=null,fa=null,da=null,no=new Map,ao=new Map,ma=[],b1="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 Dg(t,e){switch(t){case"focusin":case"focusout":ua=null;break;case"dragenter":case"dragleave":fa=null;break;case"mouseover":case"mouseout":da=null;break;case"pointerover":case"pointerout":no.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ao.delete(e.pointerId)}}function lo(t,e,n,a,l,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:r,targetContainers:[l]},e!==null&&(e=rl(e),e!==null&&Rg(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,l!==null&&e.indexOf(l)===-1&&e.push(l),t)}function x1(t,e,n,a,l){switch(e){case"focusin":return ua=lo(ua,t,e,n,a,l),!0;case"dragenter":return fa=lo(fa,t,e,n,a,l),!0;case"mouseover":return da=lo(da,t,e,n,a,l),!0;case"pointerover":var r=l.pointerId;return no.set(r,lo(no.get(r)||null,t,e,n,a,l)),!0;case"gotpointercapture":return r=l.pointerId,ao.set(r,lo(ao.get(r)||null,t,e,n,a,l)),!0}return!1}function jg(t){var e=ll(t.target);if(e!==null){var n=sr(e);if(n!==null){if(e=n.tag,e===13){if(e=Od(n),e!==null){t.blockedOn=e,Zd(t.priority,function(){Og(n)});return}}else if(e===31){if(e=Md(n),e!==null){t.blockedOn=e,Zd(t.priority,function(){Og(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function zi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=rf(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);oc=a,n.target.dispatchEvent(a),oc=null}else return e=rl(n),e!==null&&Rg(e),t.blockedOn=n,!1;e.shift()}return!0}function zg(t,e,n){zi(t)&&n.delete(e)}function S1(){sf=!1,ua!==null&&zi(ua)&&(ua=null),fa!==null&&zi(fa)&&(fa=null),da!==null&&zi(da)&&(da=null),no.forEach(zg),ao.forEach(zg)}function Li(t,e){t.blockedOn===e&&(t.blockedOn=null,sf||(sf=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,S1)))}var Bi=null;function Lg(t){Bi!==t&&(Bi=t,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,function(){Bi===t&&(Bi=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],l=t[e+2];if(typeof a!="function"){if(of(a||n)===null)continue;break}var r=rl(n);r!==null&&(t.splice(e,3),e-=3,ru(r,{pending:!0,data:l,method:n.method,action:a},a,l))}}))}function kl(t){function e(s){return Li(s,t)}ua!==null&&Li(ua,t),fa!==null&&Li(fa,t),da!==null&&Li(da,t),no.forEach(e),ao.forEach(e);for(var n=0;n<ma.length;n++){var a=ma[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<ma.length&&(n=ma[0],n.blockedOn===null);)jg(n),n.blockedOn===null&&ma.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var l=n[a],r=n[a+1],o=l[ie]||null;if(typeof r=="function")o||Lg(n);else if(o){var i=null;if(r&&r.hasAttribute("formAction")){if(l=r,o=r[ie]||null)i=o.formAction;else if(of(l)!==null)continue}else i=o.action;typeof i=="function"?n[a+1]=i:(n.splice(a,3),a-=3),Lg(n)}}}function Bg(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(o){return l=o})},focusReset:"manual",scroll:"manual"})}function e(){l!==null&&(l(),l=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,l=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),l!==null&&(l(),l=null)}}}function cf(t){this._internalRoot=t}Ui.prototype.render=cf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(O(409));var n=e.current,a=Ae();Ng(n,a,t,e,null,null)},Ui.prototype.unmount=cf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Ng(t.current,2,null,t,null,null),vi(),e[al]=null}};function Ui(t){this._internalRoot=t}Ui.prototype.unstable_scheduleHydration=function(t){if(t){var e=Qd();t={blockedOn:null,target:t,priority:e};for(var n=0;n<ma.length&&e!==0&&e<ma[n].priority;n++);ma.splice(n,0,t),n===0&&jg(t)}};var Ug=_d.version;if(Ug!=="19.2.4")throw Error(O(527,Ug,"19.2.4"));ct.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(O(188)):(t=Object.keys(t).join(","),Error(O(268,t)));return t=Ww(e),t=t!==null?jd(t):null,t=t===null?null:t.stateNode,t};var E1={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Hi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Hi.isDisabled&&Hi.supportsFiber)try{mr=Hi.inject(E1),ve=Hi}catch{}}go.createRoot=function(t,e){if(!Rd(t))throw Error(O(299));var n=!1,a="",l=Ph,r=Xh,o=Qh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(l=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Ag(t,1,!1,null,null,n,a,null,l,r,o,Bg),t[al]=e.current,Gu(t),new cf(e)},go.hydrateRoot=function(t,e,n){if(!Rd(t))throw Error(O(299));var a=!1,l="",r=Ph,o=Xh,i=Qh,s=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(i=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),e=Ag(t,1,!0,e,n??null,a,l,s,r,o,i,Bg),e.context=Tg(null),n=e.current,a=Ae(),a=Ws(a),l=Wn(a),l.callback=null,In(n,l,a),n=a,e.current.lanes=n,pr(e,n),an(e),t[al]=e.current,Gu(t),new Ui(e)},go.version="19.2.4";function Hg(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hg)}catch(t){console.error(t)}}Hg(),xd.exports=go;var C1=xd.exports;function A1(t,e){return!e||e!=="Price:LowToHigh"&&e!=="Price:HighToLow"?t:[...t].sort((n,a)=>{const l=i=>{const c=(i.price||"").replace(/[^0-9.]/g,"");return c?parseFloat(c):1/0},r=l(n),o=l(a);return e==="Price:LowToHigh"?r-o:o-r})}const uf={brand:"",minPrice:0,maxPrice:0,sort:"",condition:"",merchant:"",availability:"Available",hasDeal:"",minSavingPercent:0},T1={brands:[],conditions:[],merchants:[],priceRanges:[]},St={query:"q",category:"category",brand:"brand",sort:"sort",condition:"condition",merchant:"merchant",availability:"availability",hasDeal:"has_deal",minPrice:"min_price",maxPrice:"max_price",minSavingPercent:"min_saving_percent"};function N1(){if(typeof window>"u")return{};const t=new URLSearchParams(window.location.search);return{query:t.get(St.query)||void 0,category:t.get(St.category)||void 0,brand:t.get(St.brand)||void 0,sort:t.get(St.sort)||void 0,condition:t.get(St.condition)||void 0,merchant:t.get(St.merchant)||void 0,availability:t.get(St.availability)||void 0,hasDeal:t.get(St.hasDeal)||void 0,minPrice:t.get(St.minPrice)?parseFloat(t.get(St.minPrice)):void 0,maxPrice:t.get(St.maxPrice)?parseFloat(t.get(St.maxPrice)):void 0,minSavingPercent:t.get(St.minSavingPercent)?parseInt(t.get(St.minSavingPercent)):void 0}}function _1(t){if(typeof window>"u")return;const e=new URL(window.location.href);Object.values(St).forEach(n=>e.searchParams.delete(n)),t.query&&e.searchParams.set(St.query,t.query),t.category&&t.category!=="All"&&e.searchParams.set(St.category,t.category),t.filters.brand&&e.searchParams.set(St.brand,t.filters.brand),t.filters.sort&&e.searchParams.set(St.sort,t.filters.sort),t.filters.condition&&e.searchParams.set(St.condition,t.filters.condition),t.filters.merchant&&e.searchParams.set(St.merchant,t.filters.merchant),t.filters.availability&&t.filters.availability!=="Available"&&e.searchParams.set(St.availability,t.filters.availability),t.filters.hasDeal&&e.searchParams.set(St.hasDeal,"1"),t.filters.minPrice>0&&e.searchParams.set(St.minPrice,String(t.filters.minPrice)),t.filters.maxPrice>0&&e.searchParams.set(St.maxPrice,String(t.filters.maxPrice)),t.filters.minSavingPercent>0&&e.searchParams.set(St.minSavingPercent,String(t.filters.minSavingPercent)),window.history.replaceState({},"",e.toString())}function R1(t){var y,b;const e=t.initialState,n=(e==null?void 0:e.products)&&e.products.length>0,a=N1(),[l,r]=f.useState({query:a.query||(e==null?void 0:e.query)||t.settings.query||"",category:a.category||(e==null?void 0:e.category)||t.settings.category||"",filters:{...uf,brand:a.brand||t.settings.brand||"",sort:a.sort||t.settings.sort||"",condition:a.condition||"",merchant:a.merchant||"",availability:a.availability||"Available",hasDeal:a.hasDeal||"",minPrice:a.minPrice||t.settings.minPrice||0,maxPrice:a.maxPrice||t.settings.maxPrice||0,minSavingPercent:a.minSavingPercent||0},filterOptions:{brands:((y=t.filterOptions)==null?void 0:y.brands)||[],conditions:((b=t.filterOptions)==null?void 0:b.conditions)||[],merchants:[],priceRanges:[]},products:(e==null?void 0:e.products)||[],currentPage:(e==null?void 0:e.pagesFetched)||1,hasMore:(e==null?void 0:e.hasMore)??!0,isLoading:!1,isLoadingMore:!1,filtersExpanded:!1,error:(e==null?void 0:e.error)||null,upgradeNotice:null}),o=!!(a.query||a.brand||a.sort||a.condition),i=f.useRef(n&&!o),s=f.useRef(null),c=f.useCallback(E=>new URLSearchParams({action:"psfa_load_more",nonce:t.nonce,query:l.query,category:l.category,page:String(E),price_min:String(l.filters.minPrice||0),price_max:String(l.filters.maxPrice||0),brand:l.filters.brand,sort:l.filters.sort,condition:l.filters.condition,merchant:l.filters.merchant,availability:l.filters.availability||"Available",has_deal:l.filters.hasDeal,min_rating:"0",min_saving_percent:String(l.filters.minSavingPercent||0),count:String(t.settings.count||20)}),[t.nonce,l.query,l.category,l.filters,t.settings.count]),m=f.useCallback(async(E,_=!1)=>{var C,N,D,z,L;s.current&&s.current.abort(),s.current=new AbortController,r(U=>({...U,isLoading:!_,isLoadingMore:_,error:null}));try{const U=c(E),j=await(await fetch(`${t.ajaxUrl}?${U.toString()}`,{signal:s.current.signal})).json();if(!j.success){const V=((C=j.data)==null?void 0:C.error)||"Failed to load products";r(Q=>({...Q,isLoading:!1,isLoadingMore:!1,error:V,hasMore:!1}));return}const X=((N=j.data)==null?void 0:N.items)||[],T=((D=j.data)==null?void 0:D.has_more)??!1,R=((z=j.data)==null?void 0:z.upgrade_notice)||null,A=((L=j.data)==null?void 0:L.filter_options)||{};r(V=>{let Q=_?[...V.products,...X]:X;Q=A1(Q,V.filters.sort);const ft=t.settings.count||20;t.settings.pagination==="none"&&Q.length>ft&&(Q=Q.slice(0,ft));const Et=A.brands||[],Y=V.filterOptions.brands.map(J=>J.value);let P;return _?P=[...new Set([...Y,...Et])]:Et.length>0?P=Et:P=Y,P.sort(),{...V,products:Q,filterOptions:{...V.filterOptions,brands:P.map(J=>({value:J,label:J}))},currentPage:E,hasMore:t.settings.pagination==="none"?!1:T,isLoading:!1,isLoadingMore:!1,upgradeNotice:R}})}catch(U){if(U instanceof Error&&U.name==="AbortError")return;r(k=>({...k,isLoading:!1,isLoadingMore:!1,error:U instanceof Error?U.message:"Unknown error",hasMore:!1}))}},[c,t.ajaxUrl]),u=f.useCallback(E=>{r(_=>({..._,query:E,products:[],currentPage:1,hasMore:!0,isLoading:!0,error:null}))},[]),h=f.useCallback(E=>{r(_=>({..._,category:E,products:[],currentPage:1,hasMore:!0,isLoading:!0,error:null}))},[]),v=f.useCallback(E=>{r(_=>({..._,filters:{..._.filters,...E},products:[],currentPage:1,hasMore:!0,isLoading:!0,error:null}))},[]),x=f.useCallback(()=>{r(E=>({...E,filters:uf,products:[],currentPage:1,hasMore:!0,isLoading:!0,error:null}))},[]),w=f.useCallback(()=>{r(E=>({...E,query:t.settings.query||"",category:t.settings.category||"",filters:{...uf,brand:t.settings.brand||"",sort:t.settings.sort||"",minPrice:t.settings.minPrice||0,maxPrice:t.settings.maxPrice||0},filterOptions:T1,products:[],currentPage:1,hasMore:!0,isLoading:!0,error:null,upgradeNotice:null}))},[t.settings]),S=f.useCallback(()=>{if(l.isLoadingMore||!l.hasMore)return;const E=t.maxPages||10;l.currentPage>=E||m(l.currentPage+1,!0)},[l.isLoadingMore,l.hasMore,l.currentPage,t.maxPages,m]),p=f.useCallback(()=>{r(E=>({...E,filtersExpanded:!E.filtersExpanded}))},[]),g=f.useCallback(E=>{r(_=>({..._,filterOptions:E}))},[]);return f.useEffect(()=>{_1(l)},[l.query,l.category,l.filters]),f.useEffect(()=>{if(i.current){i.current=!1;return}l.query||l.category?m(1,!1):r(E=>E.isLoading?{...E,isLoading:!1}:E)},[l.query,l.category,l.filters,m]),f.useEffect(()=>()=>{s.current&&s.current.abort()},[]),{state:l,actions:{search:u,setCategory:h,updateFilters:v,resetFilters:x,clearAll:w,loadMore:S,toggleFilters:p,setFilterOptions:g,fetchProducts:m},config:t}}function O1(t){return{buttonText:t.buttonText||"Buy on Amazon"}}function Vg(t){var e,n,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var l=t.length;for(e=0;e<l;e++)t[e]&&(n=Vg(t[e]))&&(a&&(a+=" "),a+=n)}else for(n in t)t[n]&&(a&&(a+=" "),a+=n);return a}function kg(){for(var t,e,n=0,a="",l=arguments.length;n<l;n++)(t=arguments[n])&&(e=Vg(t))&&(a&&(a+=" "),a+=e);return a}const M1=(t,e)=>{const n=new Array(t.length+e.length);for(let a=0;a<t.length;a++)n[a]=t[a];for(let a=0;a<e.length;a++)n[t.length+a]=e[a];return n},D1=(t,e)=>({classGroupId:t,validator:e}),Yg=(t=new Map,e=null,n)=>({nextPart:t,validators:e,classGroupId:n}),Vi="-",qg=[],j1="arbitrary..",z1=t=>{const e=B1(t),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=t;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return L1(o);const i=o.split(Vi),s=i[0]===""&&i.length>1?1:0;return Gg(i,s,e)},getConflictingClassGroupIds:(o,i)=>{if(i){const s=a[o],c=n[o];return s?c?M1(c,s):s:c||qg}return n[o]||qg}}},Gg=(t,e,n)=>{if(t.length-e===0)return n.classGroupId;const l=t[e],r=n.nextPart.get(l);if(r){const c=Gg(t,e+1,r);if(c)return c}const o=n.validators;if(o===null)return;const i=e===0?t.join(Vi):t.slice(e).join(Vi),s=o.length;for(let c=0;c<s;c++){const m=o[c];if(m.validator(i))return m.classGroupId}},L1=t=>t.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const e=t.slice(1,-1),n=e.indexOf(":"),a=e.slice(0,n);return a?j1+a:void 0})(),B1=t=>{const{theme:e,classGroups:n}=t;return U1(n,e)},U1=(t,e)=>{const n=Yg();for(const a in t){const l=t[a];ff(l,n,a,e)}return n},ff=(t,e,n,a)=>{const l=t.length;for(let r=0;r<l;r++){const o=t[r];H1(o,e,n,a)}},H1=(t,e,n,a)=>{if(typeof t=="string"){V1(t,e,n);return}if(typeof t=="function"){k1(t,e,n,a);return}Y1(t,e,n,a)},V1=(t,e,n)=>{const a=t===""?e:Pg(e,t);a.classGroupId=n},k1=(t,e,n,a)=>{if(q1(t)){ff(t(a),e,n,a);return}e.validators===null&&(e.validators=[]),e.validators.push(D1(n,t))},Y1=(t,e,n,a)=>{const l=Object.entries(t),r=l.length;for(let o=0;o<r;o++){const[i,s]=l[o];ff(s,Pg(e,i),n,a)}},Pg=(t,e)=>{let n=t;const a=e.split(Vi),l=a.length;for(let r=0;r<l;r++){const o=a[r];let i=n.nextPart.get(o);i||(i=Yg(),n.nextPart.set(o,i)),n=i}return n},q1=t=>"isThemeGetter"in t&&t.isThemeGetter===!0,G1=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,n=Object.create(null),a=Object.create(null);const l=(r,o)=>{n[r]=o,e++,e>t&&(e=0,a=n,n=Object.create(null))};return{get(r){let o=n[r];if(o!==void 0)return o;if((o=a[r])!==void 0)return l(r,o),o},set(r,o){r in n?n[r]=o:l(r,o)}}},df="!",Xg=":",P1=[],Qg=(t,e,n,a,l)=>({modifiers:t,hasImportantModifier:e,baseClassName:n,maybePostfixModifierPosition:a,isExternal:l}),X1=t=>{const{prefix:e,experimentalParseClassName:n}=t;let a=l=>{const r=[];let o=0,i=0,s=0,c;const m=l.length;for(let w=0;w<m;w++){const S=l[w];if(o===0&&i===0){if(S===Xg){r.push(l.slice(s,w)),s=w+1;continue}if(S==="/"){c=w;continue}}S==="["?o++:S==="]"?o--:S==="("?i++:S===")"&&i--}const u=r.length===0?l:l.slice(s);let h=u,v=!1;u.endsWith(df)?(h=u.slice(0,-1),v=!0):u.startsWith(df)&&(h=u.slice(1),v=!0);const x=c&&c>s?c-s:void 0;return Qg(r,v,h,x)};if(e){const l=e+Xg,r=a;a=o=>o.startsWith(l)?r(o.slice(l.length)):Qg(P1,!1,o,void 0,!0)}if(n){const l=a;a=r=>n({className:r,parseClassName:l})}return a},Q1=t=>{const e=new Map;return t.orderSensitiveModifiers.forEach((n,a)=>{e.set(n,1e6+a)}),n=>{const a=[];let l=[];for(let r=0;r<n.length;r++){const o=n[r],i=o[0]==="[",s=e.has(o);i||s?(l.length>0&&(l.sort(),a.push(...l),l=[]),a.push(o)):l.push(o)}return l.length>0&&(l.sort(),a.push(...l)),a}},Z1=t=>({cache:G1(t.cacheSize),parseClassName:X1(t),sortModifiers:Q1(t),...z1(t)}),K1=/\s+/,$1=(t,e)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:l,sortModifiers:r}=e,o=[],i=t.trim().split(K1);let s="";for(let c=i.length-1;c>=0;c-=1){const m=i[c],{isExternal:u,modifiers:h,hasImportantModifier:v,baseClassName:x,maybePostfixModifierPosition:w}=n(m);if(u){s=m+(s.length>0?" "+s:s);continue}let S=!!w,p=a(S?x.substring(0,w):x);if(!p){if(!S){s=m+(s.length>0?" "+s:s);continue}if(p=a(x),!p){s=m+(s.length>0?" "+s:s);continue}S=!1}const g=h.length===0?"":h.length===1?h[0]:r(h).join(":"),y=v?g+df:g,b=y+p;if(o.indexOf(b)>-1)continue;o.push(b);const E=l(p,S);for(let _=0;_<E.length;++_){const C=E[_];o.push(y+C)}s=m+(s.length>0?" "+s:s)}return s},J1=(...t)=>{let e=0,n,a,l="";for(;e<t.length;)(n=t[e++])&&(a=Zg(n))&&(l&&(l+=" "),l+=a);return l},Zg=t=>{if(typeof t=="string")return t;let e,n="";for(let a=0;a<t.length;a++)t[a]&&(e=Zg(t[a]))&&(n&&(n+=" "),n+=e);return n},Kg=(t,...e)=>{let n,a,l,r;const o=s=>{const c=e.reduce((m,u)=>u(m),t());return n=Z1(c),a=n.cache.get,l=n.cache.set,r=i,i(s)},i=s=>{const c=a(s);if(c)return c;const m=$1(s,n);return l(s,m),m};return r=o,(...s)=>r(J1(...s))},F1=[],qt=t=>{const e=n=>n[t]||F1;return e.isThemeGetter=!0,e},$g=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Jg=/^\((?:(\w[\w-]*):)?(.+)\)$/i,W1=/^\d+\/\d+$/,I1=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tS=/\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$/,eS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,aS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yl=t=>W1.test(t),et=t=>!!t&&!Number.isNaN(Number(t)),ha=t=>!!t&&Number.isInteger(Number(t)),mf=t=>t.endsWith("%")&&et(t.slice(0,-1)),Ln=t=>I1.test(t),lS=()=>!0,rS=t=>tS.test(t)&&!eS.test(t),Fg=()=>!1,oS=t=>nS.test(t),iS=t=>aS.test(t),sS=t=>!q(t)&&!G(t),cS=t=>ql(t,nv,Fg),q=t=>$g.test(t),qa=t=>ql(t,av,rS),hf=t=>ql(t,hS,et),Wg=t=>ql(t,tv,Fg),uS=t=>ql(t,ev,iS),ki=t=>ql(t,lv,oS),G=t=>Jg.test(t),ro=t=>Gl(t,av),fS=t=>Gl(t,pS),Ig=t=>Gl(t,tv),dS=t=>Gl(t,nv),mS=t=>Gl(t,ev),Yi=t=>Gl(t,lv,!0),ql=(t,e,n)=>{const a=$g.exec(t);return a?a[1]?e(a[1]):n(a[2]):!1},Gl=(t,e,n=!1)=>{const a=Jg.exec(t);return a?a[1]?e(a[1]):n:!1},tv=t=>t==="position"||t==="percentage",ev=t=>t==="image"||t==="url",nv=t=>t==="length"||t==="size"||t==="bg-size",av=t=>t==="length",hS=t=>t==="number",pS=t=>t==="family-name",lv=t=>t==="shadow",rv=()=>{const t=qt("color"),e=qt("font"),n=qt("text"),a=qt("font-weight"),l=qt("tracking"),r=qt("leading"),o=qt("breakpoint"),i=qt("container"),s=qt("spacing"),c=qt("radius"),m=qt("shadow"),u=qt("inset-shadow"),h=qt("text-shadow"),v=qt("drop-shadow"),x=qt("blur"),w=qt("perspective"),S=qt("aspect"),p=qt("ease"),g=qt("animate"),y=()=>["auto","avoid","all","avoid-page","page","left","right","column"],b=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...b(),G,q],_=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto","contain","none"],N=()=>[G,q,s],D=()=>[Yl,"full","auto",...N()],z=()=>[ha,"none","subgrid",G,q],L=()=>["auto",{span:["full",ha,G,q]},ha,G,q],U=()=>[ha,"auto",G,q],k=()=>["auto","min","max","fr",G,q],j=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],X=()=>["start","end","center","stretch","center-safe","end-safe"],T=()=>["auto",...N()],R=()=>[Yl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...N()],A=()=>[t,G,q],V=()=>[...b(),Ig,Wg,{position:[G,q]}],Q=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ft=()=>["auto","cover","contain",dS,cS,{size:[G,q]}],Et=()=>[mf,ro,qa],Y=()=>["","none","full",c,G,q],P=()=>["",et,ro,qa],J=()=>["solid","dashed","dotted","double"],Ct=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],H=()=>[et,mf,Ig,Wg],Z=()=>["","none",x,G,q],dt=()=>["none",et,G,q],nt=()=>["none",et,G,q],tt=()=>[et,G,q],M=()=>[Yl,"full",...N()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ln],breakpoint:[Ln],color:[lS],container:[Ln],"drop-shadow":[Ln],ease:["in","out","in-out"],font:[sS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ln],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ln],shadow:[Ln],spacing:["px",et],text:[Ln],"text-shadow":[Ln],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Yl,q,G,S]}],container:["container"],columns:[{columns:[et,q,G,i]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:E()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:D()}],"inset-x":[{"inset-x":D()}],"inset-y":[{"inset-y":D()}],start:[{start:D()}],end:[{end:D()}],top:[{top:D()}],right:[{right:D()}],bottom:[{bottom:D()}],left:[{left:D()}],visibility:["visible","invisible","collapse"],z:[{z:[ha,"auto",G,q]}],basis:[{basis:[Yl,"full","auto",i,...N()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[et,Yl,"auto","initial","none",q]}],grow:[{grow:["",et,G,q]}],shrink:[{shrink:["",et,G,q]}],order:[{order:[ha,"first","last","none",G,q]}],"grid-cols":[{"grid-cols":z()}],"col-start-end":[{col:L()}],"col-start":[{"col-start":U()}],"col-end":[{"col-end":U()}],"grid-rows":[{"grid-rows":z()}],"row-start-end":[{row:L()}],"row-start":[{"row-start":U()}],"row-end":[{"row-end":U()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:N()}],"gap-x":[{"gap-x":N()}],"gap-y":[{"gap-y":N()}],"justify-content":[{justify:[...j(),"normal"]}],"justify-items":[{"justify-items":[...X(),"normal"]}],"justify-self":[{"justify-self":["auto",...X()]}],"align-content":[{content:["normal",...j()]}],"align-items":[{items:[...X(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...X(),{baseline:["","last"]}]}],"place-content":[{"place-content":j()}],"place-items":[{"place-items":[...X(),"baseline"]}],"place-self":[{"place-self":["auto",...X()]}],p:[{p:N()}],px:[{px:N()}],py:[{py:N()}],ps:[{ps:N()}],pe:[{pe:N()}],pt:[{pt:N()}],pr:[{pr:N()}],pb:[{pb:N()}],pl:[{pl:N()}],m:[{m:T()}],mx:[{mx:T()}],my:[{my:T()}],ms:[{ms:T()}],me:[{me:T()}],mt:[{mt:T()}],mr:[{mr:T()}],mb:[{mb:T()}],ml:[{ml:T()}],"space-x":[{"space-x":N()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":N()}],"space-y-reverse":["space-y-reverse"],size:[{size:R()}],w:[{w:[i,"screen",...R()]}],"min-w":[{"min-w":[i,"screen","none",...R()]}],"max-w":[{"max-w":[i,"screen","none","prose",{screen:[o]},...R()]}],h:[{h:["screen","lh",...R()]}],"min-h":[{"min-h":["screen","lh","none",...R()]}],"max-h":[{"max-h":["screen","lh",...R()]}],"font-size":[{text:["base",n,ro,qa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,G,hf]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mf,q]}],"font-family":[{font:[fS,q,e]}],"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:[l,G,q]}],"line-clamp":[{"line-clamp":[et,"none",G,hf]}],leading:[{leading:[r,...N()]}],"list-image":[{"list-image":["none",G,q]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",G,q]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:A()}],"text-color":[{text:A()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...J(),"wavy"]}],"text-decoration-thickness":[{decoration:[et,"from-font","auto",G,qa]}],"text-decoration-color":[{decoration:A()}],"underline-offset":[{"underline-offset":[et,"auto",G,q]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",G,q]}],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",G,q]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:V()}],"bg-repeat":[{bg:Q()}],"bg-size":[{bg:ft()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ha,G,q],radial:["",G,q],conic:[ha,G,q]},mS,uS]}],"bg-color":[{bg:A()}],"gradient-from-pos":[{from:Et()}],"gradient-via-pos":[{via:Et()}],"gradient-to-pos":[{to:Et()}],"gradient-from":[{from:A()}],"gradient-via":[{via:A()}],"gradient-to":[{to:A()}],rounded:[{rounded:Y()}],"rounded-s":[{"rounded-s":Y()}],"rounded-e":[{"rounded-e":Y()}],"rounded-t":[{"rounded-t":Y()}],"rounded-r":[{"rounded-r":Y()}],"rounded-b":[{"rounded-b":Y()}],"rounded-l":[{"rounded-l":Y()}],"rounded-ss":[{"rounded-ss":Y()}],"rounded-se":[{"rounded-se":Y()}],"rounded-ee":[{"rounded-ee":Y()}],"rounded-es":[{"rounded-es":Y()}],"rounded-tl":[{"rounded-tl":Y()}],"rounded-tr":[{"rounded-tr":Y()}],"rounded-br":[{"rounded-br":Y()}],"rounded-bl":[{"rounded-bl":Y()}],"border-w":[{border:P()}],"border-w-x":[{"border-x":P()}],"border-w-y":[{"border-y":P()}],"border-w-s":[{"border-s":P()}],"border-w-e":[{"border-e":P()}],"border-w-t":[{"border-t":P()}],"border-w-r":[{"border-r":P()}],"border-w-b":[{"border-b":P()}],"border-w-l":[{"border-l":P()}],"divide-x":[{"divide-x":P()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":P()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...J(),"hidden","none"]}],"divide-style":[{divide:[...J(),"hidden","none"]}],"border-color":[{border:A()}],"border-color-x":[{"border-x":A()}],"border-color-y":[{"border-y":A()}],"border-color-s":[{"border-s":A()}],"border-color-e":[{"border-e":A()}],"border-color-t":[{"border-t":A()}],"border-color-r":[{"border-r":A()}],"border-color-b":[{"border-b":A()}],"border-color-l":[{"border-l":A()}],"divide-color":[{divide:A()}],"outline-style":[{outline:[...J(),"none","hidden"]}],"outline-offset":[{"outline-offset":[et,G,q]}],"outline-w":[{outline:["",et,ro,qa]}],"outline-color":[{outline:A()}],shadow:[{shadow:["","none",m,Yi,ki]}],"shadow-color":[{shadow:A()}],"inset-shadow":[{"inset-shadow":["none",u,Yi,ki]}],"inset-shadow-color":[{"inset-shadow":A()}],"ring-w":[{ring:P()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:A()}],"ring-offset-w":[{"ring-offset":[et,qa]}],"ring-offset-color":[{"ring-offset":A()}],"inset-ring-w":[{"inset-ring":P()}],"inset-ring-color":[{"inset-ring":A()}],"text-shadow":[{"text-shadow":["none",h,Yi,ki]}],"text-shadow-color":[{"text-shadow":A()}],opacity:[{opacity:[et,G,q]}],"mix-blend":[{"mix-blend":[...Ct(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ct()}],"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":[et]}],"mask-image-linear-from-pos":[{"mask-linear-from":H()}],"mask-image-linear-to-pos":[{"mask-linear-to":H()}],"mask-image-linear-from-color":[{"mask-linear-from":A()}],"mask-image-linear-to-color":[{"mask-linear-to":A()}],"mask-image-t-from-pos":[{"mask-t-from":H()}],"mask-image-t-to-pos":[{"mask-t-to":H()}],"mask-image-t-from-color":[{"mask-t-from":A()}],"mask-image-t-to-color":[{"mask-t-to":A()}],"mask-image-r-from-pos":[{"mask-r-from":H()}],"mask-image-r-to-pos":[{"mask-r-to":H()}],"mask-image-r-from-color":[{"mask-r-from":A()}],"mask-image-r-to-color":[{"mask-r-to":A()}],"mask-image-b-from-pos":[{"mask-b-from":H()}],"mask-image-b-to-pos":[{"mask-b-to":H()}],"mask-image-b-from-color":[{"mask-b-from":A()}],"mask-image-b-to-color":[{"mask-b-to":A()}],"mask-image-l-from-pos":[{"mask-l-from":H()}],"mask-image-l-to-pos":[{"mask-l-to":H()}],"mask-image-l-from-color":[{"mask-l-from":A()}],"mask-image-l-to-color":[{"mask-l-to":A()}],"mask-image-x-from-pos":[{"mask-x-from":H()}],"mask-image-x-to-pos":[{"mask-x-to":H()}],"mask-image-x-from-color":[{"mask-x-from":A()}],"mask-image-x-to-color":[{"mask-x-to":A()}],"mask-image-y-from-pos":[{"mask-y-from":H()}],"mask-image-y-to-pos":[{"mask-y-to":H()}],"mask-image-y-from-color":[{"mask-y-from":A()}],"mask-image-y-to-color":[{"mask-y-to":A()}],"mask-image-radial":[{"mask-radial":[G,q]}],"mask-image-radial-from-pos":[{"mask-radial-from":H()}],"mask-image-radial-to-pos":[{"mask-radial-to":H()}],"mask-image-radial-from-color":[{"mask-radial-from":A()}],"mask-image-radial-to-color":[{"mask-radial-to":A()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[et]}],"mask-image-conic-from-pos":[{"mask-conic-from":H()}],"mask-image-conic-to-pos":[{"mask-conic-to":H()}],"mask-image-conic-from-color":[{"mask-conic-from":A()}],"mask-image-conic-to-color":[{"mask-conic-to":A()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:V()}],"mask-repeat":[{mask:Q()}],"mask-size":[{mask:ft()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",G,q]}],filter:[{filter:["","none",G,q]}],blur:[{blur:Z()}],brightness:[{brightness:[et,G,q]}],contrast:[{contrast:[et,G,q]}],"drop-shadow":[{"drop-shadow":["","none",v,Yi,ki]}],"drop-shadow-color":[{"drop-shadow":A()}],grayscale:[{grayscale:["",et,G,q]}],"hue-rotate":[{"hue-rotate":[et,G,q]}],invert:[{invert:["",et,G,q]}],saturate:[{saturate:[et,G,q]}],sepia:[{sepia:["",et,G,q]}],"backdrop-filter":[{"backdrop-filter":["","none",G,q]}],"backdrop-blur":[{"backdrop-blur":Z()}],"backdrop-brightness":[{"backdrop-brightness":[et,G,q]}],"backdrop-contrast":[{"backdrop-contrast":[et,G,q]}],"backdrop-grayscale":[{"backdrop-grayscale":["",et,G,q]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[et,G,q]}],"backdrop-invert":[{"backdrop-invert":["",et,G,q]}],"backdrop-opacity":[{"backdrop-opacity":[et,G,q]}],"backdrop-saturate":[{"backdrop-saturate":[et,G,q]}],"backdrop-sepia":[{"backdrop-sepia":["",et,G,q]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":N()}],"border-spacing-x":[{"border-spacing-x":N()}],"border-spacing-y":[{"border-spacing-y":N()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",G,q]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[et,"initial",G,q]}],ease:[{ease:["linear","initial",p,G,q]}],delay:[{delay:[et,G,q]}],animate:[{animate:["none",g,G,q]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,G,q]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:dt()}],"rotate-x":[{"rotate-x":dt()}],"rotate-y":[{"rotate-y":dt()}],"rotate-z":[{"rotate-z":dt()}],scale:[{scale:nt()}],"scale-x":[{"scale-x":nt()}],"scale-y":[{"scale-y":nt()}],"scale-z":[{"scale-z":nt()}],"scale-3d":["scale-3d"],skew:[{skew:tt()}],"skew-x":[{"skew-x":tt()}],"skew-y":[{"skew-y":tt()}],transform:[{transform:[G,q,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:M()}],"translate-x":[{"translate-x":M()}],"translate-y":[{"translate-y":M()}],"translate-z":[{"translate-z":M()}],"translate-none":["translate-none"],accent:[{accent:A()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:A()}],"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",G,q]}],"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":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"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",G,q]}],fill:[{fill:["none",...A()]}],"stroke-w":[{stroke:[et,ro,qa,hf]}],stroke:[{stroke:["none",...A()]}],"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"]}},gS=(t,{cacheSize:e,prefix:n,experimentalParseClassName:a,extend:l={},override:r={}})=>(oo(t,"cacheSize",e),oo(t,"prefix",n),oo(t,"experimentalParseClassName",a),qi(t.theme,r.theme),qi(t.classGroups,r.classGroups),qi(t.conflictingClassGroups,r.conflictingClassGroups),qi(t.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),oo(t,"orderSensitiveModifiers",r.orderSensitiveModifiers),Gi(t.theme,l.theme),Gi(t.classGroups,l.classGroups),Gi(t.conflictingClassGroups,l.conflictingClassGroups),Gi(t.conflictingClassGroupModifiers,l.conflictingClassGroupModifiers),ov(t,l,"orderSensitiveModifiers"),t),oo=(t,e,n)=>{n!==void 0&&(t[e]=n)},qi=(t,e)=>{if(e)for(const n in e)oo(t,n,e[n])},Gi=(t,e)=>{if(e)for(const n in e)ov(t,e,n)},ov=(t,e,n)=>{const a=e[n];a!==void 0&&(t[n]=t[n]?t[n].concat(a):a)},vS=((t,...e)=>typeof t=="function"?Kg(rv,t,...e):Kg(()=>gS(rv(),t),...e))({prefix:"tw"});function $(...t){return vS(kg(t))}const pf=f.forwardRef(({className:t,type:e,...n},a)=>d.jsx("input",{type:e,className:$("tw:flex tw:h-9 tw:w-full tw:rounded-md tw:border tw:border-gray-300 tw:bg-white tw:px-3 tw:py-1 tw:text-base tw:shadow-sm tw:transition-colors tw:file:border-0 tw:file:bg-transparent tw:file:text-sm tw:file:font-medium tw:file:text-foreground tw:placeholder:text-muted-foreground tw:focus-visible:outline-none tw:focus-visible:ring-1 tw:focus-visible:ring-ring tw:disabled:cursor-not-allowed tw:disabled:opacity-50 tw:md:text-sm tw:aria-[invalid=true]:border-destructive tw:aria-[invalid=true]:ring-destructive",t),ref:a,...n}));pf.displayName="Input";function iv(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ga(...t){return e=>{let n=!1;const a=t.map(l=>{const r=iv(l,e);return!n&&typeof r=="function"&&(n=!0),r});if(n)return()=>{for(let l=0;l<a.length;l++){const r=a[l];typeof r=="function"?r():iv(t[l],null)}}}}function vt(...t){return f.useCallback(Ga(...t),t)}var yS=Symbol.for("react.lazy"),Pi=Ls[" use ".trim().toString()];function wS(t){return typeof t=="object"&&t!==null&&"then"in t}function sv(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===yS&&"_payload"in t&&wS(t._payload)}function bS(t){const e=SS(t),n=f.forwardRef((a,l)=>{let{children:r,...o}=a;sv(r)&&typeof Pi=="function"&&(r=Pi(r._payload));const i=f.Children.toArray(r),s=i.find(CS);if(s){const c=s.props.children,m=i.map(u=>u===s?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return d.jsx(e,{...o,ref:l,children:f.isValidElement(c)?f.cloneElement(c,void 0,m):null})}return d.jsx(e,{...o,ref:l,children:r})});return n.displayName=`${t}.Slot`,n}var xS=bS("Slot");function SS(t){const e=f.forwardRef((n,a)=>{let{children:l,...r}=n;if(sv(l)&&typeof Pi=="function"&&(l=Pi(l._payload)),f.isValidElement(l)){const o=TS(l),i=AS(r,l.props);return l.type!==f.Fragment&&(i.ref=a?Ga(a,o):o),f.cloneElement(l,i)}return f.Children.count(l)>1?f.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var ES=Symbol("radix.slottable");function CS(t){return f.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ES}function AS(t,e){const n={...e};for(const a in e){const l=t[a],r=e[a];/^on[A-Z]/.test(a)?l&&r?n[a]=(...i)=>{const s=r(...i);return l(...i),s}:l&&(n[a]=l):a==="style"?n[a]={...l,...r}:a==="className"&&(n[a]=[l,r].filter(Boolean).join(" "))}return{...t,...n}}function TS(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}const cv=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,uv=kg,fv=(t,e)=>n=>{var a;if((e==null?void 0:e.variants)==null)return uv(t,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:l,defaultVariants:r}=e,o=Object.keys(l).map(c=>{const m=n==null?void 0:n[c],u=r==null?void 0:r[c];if(m===null)return null;const h=cv(m)||cv(u);return l[c][h]}),i=n&&Object.entries(n).reduce((c,m)=>{let[u,h]=m;return h===void 0||(c[u]=h),c},{}),s=e==null||(a=e.compoundVariants)===null||a===void 0?void 0:a.reduce((c,m)=>{let{class:u,className:h,...v}=m;return Object.entries(v).every(x=>{let[w,S]=x;return Array.isArray(S)?S.includes({...r,...i}[w]):{...r,...i}[w]===S})?[...c,u,h]:c},[]);return uv(t,o,s,n==null?void 0:n.class,n==null?void 0:n.className)},NS=fv("tw:inline-flex tw:items-center tw:justify-center tw:gap-0.5 tw:whitespace-nowrap tw:rounded-md tw:text-sm tw:font-medium tw:transition-colors tw:focus-visible:outline-none tw:focus-visible:ring-1 tw:focus-visible:ring-ring tw:disabled:pointer-events-none tw:disabled:opacity-50 tw:[&_svg]:pointer-events-none tw:[&_svg]:size-4 tw:[&_svg]:shrink-0",{variants:{variant:{default:"tw:bg-primary tw:text-primary-foreground tw:shadow tw:hover:bg-primary/90",destructive:"tw:bg-destructive tw:text-destructive-foreground tw:shadow-sm tw:hover:bg-destructive/90",outline:"tw:border tw:border-gray-300 tw:bg-white tw:text-gray-700 tw:shadow-sm tw:hover:bg-gray-50 tw:hover:text-gray-900",secondary:"tw:bg-secondary tw:text-secondary-foreground tw:shadow-sm tw:hover:bg-secondary/80",ghost:"tw:hover:bg-accent tw:hover:text-accent-foreground",link:"tw:text-primary tw:underline-offset-4 tw:hover:underline"},size:{default:"tw:h-9 tw:px-4 tw:py-2",sm:"tw:h-8 tw:rounded-md tw:px-3 tw:text-xs",lg:"tw:h-10 tw:rounded-md tw:px-8",icon:"tw:h-9 tw:w-9"}},defaultVariants:{variant:"default",size:"default"}}),ln=f.forwardRef(({className:t,variant:e,size:n,asChild:a=!1,...l},r)=>{const o=a?xS:"button";return d.jsx(o,{className:$(NS({variant:e,size:n,className:t})),ref:r,...l})});ln.displayName="Button";function Xi(t,[e,n]){return Math.min(n,Math.max(e,t))}function ot(t,e,{checkForDefaultPrevented:n=!0}={}){return function(l){if(t==null||t(l),n===!1||!l.defaultPrevented)return e==null?void 0:e(l)}}function _S(t,e){const n=f.createContext(e),a=r=>{const{children:o,...i}=r,s=f.useMemo(()=>i,Object.values(i));return d.jsx(n.Provider,{value:s,children:o})};a.displayName=t+"Provider";function l(r){const o=f.useContext(n);if(o)return o;if(e!==void 0)return e;throw new Error(`\`${r}\` must be used within \`${t}\``)}return[a,l]}function Pl(t,e=[]){let n=[];function a(r,o){const i=f.createContext(o),s=n.length;n=[...n,o];const c=u=>{var p;const{scope:h,children:v,...x}=u,w=((p=h==null?void 0:h[t])==null?void 0:p[s])||i,S=f.useMemo(()=>x,Object.values(x));return d.jsx(w.Provider,{value:S,children:v})};c.displayName=r+"Provider";function m(u,h){var w;const v=((w=h==null?void 0:h[t])==null?void 0:w[s])||i,x=f.useContext(v);if(x)return x;if(o!==void 0)return o;throw new Error(`\`${u}\` must be used within \`${r}\``)}return[c,m]}const l=()=>{const r=n.map(o=>f.createContext(o));return function(i){const s=(i==null?void 0:i[t])||r;return f.useMemo(()=>({[`__scope${t}`]:{...i,[t]:s}}),[i,s])}};return l.scopeName=t,[a,RS(l,...e)]}function RS(...t){const e=t[0];if(t.length===1)return e;const n=()=>{const a=t.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(r){const o=a.reduce((i,{useScope:s,scopeName:c})=>{const u=s(r)[`__scope${c}`];return{...i,...u}},{});return f.useMemo(()=>({[`__scope${e.scopeName}`]:o}),[o])}};return n.scopeName=e.scopeName,n}function dv(t){const e=OS(t),n=f.forwardRef((a,l)=>{const{children:r,...o}=a,i=f.Children.toArray(r),s=i.find(DS);if(s){const c=s.props.children,m=i.map(u=>u===s?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return d.jsx(e,{...o,ref:l,children:f.isValidElement(c)?f.cloneElement(c,void 0,m):null})}return d.jsx(e,{...o,ref:l,children:r})});return n.displayName=`${t}.Slot`,n}function OS(t){const e=f.forwardRef((n,a)=>{const{children:l,...r}=n;if(f.isValidElement(l)){const o=zS(l),i=jS(r,l.props);return l.type!==f.Fragment&&(i.ref=a?Ga(a,o):o),f.cloneElement(l,i)}return f.Children.count(l)>1?f.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var MS=Symbol("radix.slottable");function DS(t){return f.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===MS}function jS(t,e){const n={...e};for(const a in e){const l=t[a],r=e[a];/^on[A-Z]/.test(a)?l&&r?n[a]=(...i)=>{const s=r(...i);return l(...i),s}:l&&(n[a]=l):a==="style"?n[a]={...l,...r}:a==="className"&&(n[a]=[l,r].filter(Boolean).join(" "))}return{...t,...n}}function zS(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function mv(t){const e=t+"CollectionProvider",[n,a]=Pl(e),[l,r]=n(e,{collectionRef:{current:null},itemMap:new Map}),o=w=>{const{scope:S,children:p}=w,g=B.useRef(null),y=B.useRef(new Map).current;return d.jsx(l,{scope:S,itemMap:y,collectionRef:g,children:p})};o.displayName=e;const i=t+"CollectionSlot",s=dv(i),c=B.forwardRef((w,S)=>{const{scope:p,children:g}=w,y=r(i,p),b=vt(S,y.collectionRef);return d.jsx(s,{ref:b,children:g})});c.displayName=i;const m=t+"CollectionItemSlot",u="data-radix-collection-item",h=dv(m),v=B.forwardRef((w,S)=>{const{scope:p,children:g,...y}=w,b=B.useRef(null),E=vt(S,b),_=r(m,p);return B.useEffect(()=>(_.itemMap.set(b,{ref:b,...y}),()=>void _.itemMap.delete(b))),d.jsx(h,{[u]:"",ref:E,children:g})});v.displayName=m;function x(w){const S=r(t+"CollectionConsumer",w);return B.useCallback(()=>{const g=S.collectionRef.current;if(!g)return[];const y=Array.from(g.querySelectorAll(`[${u}]`));return Array.from(S.itemMap.values()).sort((_,C)=>y.indexOf(_.ref.current)-y.indexOf(C.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:o,Slot:c,ItemSlot:v},x,a]}var LS=f.createContext(void 0);function hv(t){const e=f.useContext(LS);return t||e||"ltr"}function BS(t){const e=US(t),n=f.forwardRef((a,l)=>{const{children:r,...o}=a,i=f.Children.toArray(r),s=i.find(VS);if(s){const c=s.props.children,m=i.map(u=>u===s?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return d.jsx(e,{...o,ref:l,children:f.isValidElement(c)?f.cloneElement(c,void 0,m):null})}return d.jsx(e,{...o,ref:l,children:r})});return n.displayName=`${t}.Slot`,n}function US(t){const e=f.forwardRef((n,a)=>{const{children:l,...r}=n;if(f.isValidElement(l)){const o=YS(l),i=kS(r,l.props);return l.type!==f.Fragment&&(i.ref=a?Ga(a,o):o),f.cloneElement(l,i)}return f.Children.count(l)>1?f.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var HS=Symbol("radix.slottable");function VS(t){return f.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===HS}function kS(t,e){const n={...e};for(const a in e){const l=t[a],r=e[a];/^on[A-Z]/.test(a)?l&&r?n[a]=(...i)=>{const s=r(...i);return l(...i),s}:l&&(n[a]=l):a==="style"?n[a]={...l,...r}:a==="className"&&(n[a]=[l,r].filter(Boolean).join(" "))}return{...t,...n}}function YS(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var qS=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],st=qS.reduce((t,e)=>{const n=BS(`Primitive.${e}`),a=f.forwardRef((l,r)=>{const{asChild:o,...i}=l,s=o?n:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsx(s,{...i,ref:r})});return a.displayName=`Primitive.${e}`,{...t,[e]:a}},{});function GS(t,e){t&&Ia.flushSync(()=>t.dispatchEvent(e))}function Pa(t){const e=f.useRef(t);return f.useEffect(()=>{e.current=t}),f.useMemo(()=>(...n)=>{var a;return(a=e.current)==null?void 0:a.call(e,...n)},[])}function PS(t,e=globalThis==null?void 0:globalThis.document){const n=Pa(t);f.useEffect(()=>{const a=l=>{l.key==="Escape"&&n(l)};return e.addEventListener("keydown",a,{capture:!0}),()=>e.removeEventListener("keydown",a,{capture:!0})},[n,e])}var XS="DismissableLayer",gf="dismissableLayer.update",QS="dismissableLayer.pointerDownOutside",ZS="dismissableLayer.focusOutside",pv,gv=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qi=f.forwardRef((t,e)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:a,onPointerDownOutside:l,onFocusOutside:r,onInteractOutside:o,onDismiss:i,...s}=t,c=f.useContext(gv),[m,u]=f.useState(null),h=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,v]=f.useState({}),x=vt(e,C=>u(C)),w=Array.from(c.layers),[S]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),p=w.indexOf(S),g=m?w.indexOf(m):-1,y=c.layersWithOutsidePointerEventsDisabled.size>0,b=g>=p,E=JS(C=>{const N=C.target,D=[...c.branches].some(z=>z.contains(N));!b||D||(l==null||l(C),o==null||o(C),C.defaultPrevented||i==null||i())},h),_=FS(C=>{const N=C.target;[...c.branches].some(z=>z.contains(N))||(r==null||r(C),o==null||o(C),C.defaultPrevented||i==null||i())},h);return PS(C=>{g===c.layers.size-1&&(a==null||a(C),!C.defaultPrevented&&i&&(C.preventDefault(),i()))},h),f.useEffect(()=>{if(m)return n&&(c.layersWithOutsidePointerEventsDisabled.size===0&&(pv=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(m)),c.layers.add(m),vv(),()=>{n&&c.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=pv)}},[m,h,n,c]),f.useEffect(()=>()=>{m&&(c.layers.delete(m),c.layersWithOutsidePointerEventsDisabled.delete(m),vv())},[m,c]),f.useEffect(()=>{const C=()=>v({});return document.addEventListener(gf,C),()=>document.removeEventListener(gf,C)},[]),d.jsx(st.div,{...s,ref:x,style:{pointerEvents:y?b?"auto":"none":void 0,...t.style},onFocusCapture:ot(t.onFocusCapture,_.onFocusCapture),onBlurCapture:ot(t.onBlurCapture,_.onBlurCapture),onPointerDownCapture:ot(t.onPointerDownCapture,E.onPointerDownCapture)})});Qi.displayName=XS;var KS="DismissableLayerBranch",$S=f.forwardRef((t,e)=>{const n=f.useContext(gv),a=f.useRef(null),l=vt(e,a);return f.useEffect(()=>{const r=a.current;if(r)return n.branches.add(r),()=>{n.branches.delete(r)}},[n.branches]),d.jsx(st.div,{...t,ref:l})});$S.displayName=KS;function JS(t,e=globalThis==null?void 0:globalThis.document){const n=Pa(t),a=f.useRef(!1),l=f.useRef(()=>{});return f.useEffect(()=>{const r=i=>{if(i.target&&!a.current){let s=function(){yv(QS,n,c,{discrete:!0})};const c={originalEvent:i};i.pointerType==="touch"?(e.removeEventListener("click",l.current),l.current=s,e.addEventListener("click",l.current,{once:!0})):s()}else e.removeEventListener("click",l.current);a.current=!1},o=window.setTimeout(()=>{e.addEventListener("pointerdown",r)},0);return()=>{window.clearTimeout(o),e.removeEventListener("pointerdown",r),e.removeEventListener("click",l.current)}},[e,n]),{onPointerDownCapture:()=>a.current=!0}}function FS(t,e=globalThis==null?void 0:globalThis.document){const n=Pa(t),a=f.useRef(!1);return f.useEffect(()=>{const l=r=>{r.target&&!a.current&&yv(ZS,n,{originalEvent:r},{discrete:!1})};return e.addEventListener("focusin",l),()=>e.removeEventListener("focusin",l)},[e,n]),{onFocusCapture:()=>a.current=!0,onBlurCapture:()=>a.current=!1}}function vv(){const t=new CustomEvent(gf);document.dispatchEvent(t)}function yv(t,e,n,{discrete:a}){const l=n.originalEvent.target,r=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:n});e&&l.addEventListener(t,e,{once:!0}),a?GS(l,r):l.dispatchEvent(r)}var vf=0;function yf(){f.useEffect(()=>{const t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??wv()),document.body.insertAdjacentElement("beforeend",t[1]??wv()),vf++,()=>{vf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),vf--}},[])}function wv(){const t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var wf="focusScope.autoFocusOnMount",bf="focusScope.autoFocusOnUnmount",bv={bubbles:!1,cancelable:!0},WS="FocusScope",Zi=f.forwardRef((t,e)=>{const{loop:n=!1,trapped:a=!1,onMountAutoFocus:l,onUnmountAutoFocus:r,...o}=t,[i,s]=f.useState(null),c=Pa(l),m=Pa(r),u=f.useRef(null),h=vt(e,w=>s(w)),v=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(a){let w=function(y){if(v.paused||!i)return;const b=y.target;i.contains(b)?u.current=b:pa(u.current,{select:!0})},S=function(y){if(v.paused||!i)return;const b=y.relatedTarget;b!==null&&(i.contains(b)||pa(u.current,{select:!0}))},p=function(y){if(document.activeElement===document.body)for(const E of y)E.removedNodes.length>0&&pa(i)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const g=new MutationObserver(p);return i&&g.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),g.disconnect()}}},[a,i,v.paused]),f.useEffect(()=>{if(i){Ev.add(v);const w=document.activeElement;if(!i.contains(w)){const p=new CustomEvent(wf,bv);i.addEventListener(wf,c),i.dispatchEvent(p),p.defaultPrevented||(IS(l2(xv(i)),{select:!0}),document.activeElement===w&&pa(i))}return()=>{i.removeEventListener(wf,c),setTimeout(()=>{const p=new CustomEvent(bf,bv);i.addEventListener(bf,m),i.dispatchEvent(p),p.defaultPrevented||pa(w??document.body,{select:!0}),i.removeEventListener(bf,m),Ev.remove(v)},0)}}},[i,c,m,v]);const x=f.useCallback(w=>{if(!n&&!a||v.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,p=document.activeElement;if(S&&p){const g=w.currentTarget,[y,b]=t2(g);y&&b?!w.shiftKey&&p===b?(w.preventDefault(),n&&pa(y,{select:!0})):w.shiftKey&&p===y&&(w.preventDefault(),n&&pa(b,{select:!0})):p===g&&w.preventDefault()}},[n,a,v.paused]);return d.jsx(st.div,{tabIndex:-1,...o,ref:h,onKeyDown:x})});Zi.displayName=WS;function IS(t,{select:e=!1}={}){const n=document.activeElement;for(const a of t)if(pa(a,{select:e}),document.activeElement!==n)return}function t2(t){const e=xv(t),n=Sv(e,t),a=Sv(e.reverse(),t);return[n,a]}function xv(t){const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:a=>{const l=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||l?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e}function Sv(t,e){for(const n of t)if(!e2(n,{upTo:e}))return n}function e2(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function n2(t){return t instanceof HTMLInputElement&&"select"in t}function pa(t,{select:e=!1}={}){if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),t!==n&&n2(t)&&e&&t.select()}}var Ev=a2();function a2(){let t=[];return{add(e){const n=t[0];e!==n&&(n==null||n.pause()),t=Cv(t,e),t.unshift(e)},remove(e){var n;t=Cv(t,e),(n=t[0])==null||n.resume()}}}function Cv(t,e){const n=[...t],a=n.indexOf(e);return a!==-1&&n.splice(a,1),n}function l2(t){return t.filter(e=>e.tagName!=="A")}var ee=globalThis!=null&&globalThis.document?f.useLayoutEffect:()=>{},r2=Ls[" useId ".trim().toString()]||(()=>{}),o2=0;function Xa(t){const[e,n]=f.useState(r2());return ee(()=>{n(a=>a??String(o2++))},[t]),e?`radix-${e}`:""}const i2=["top","right","bottom","left"],ga=Math.min,Te=Math.max,Ki=Math.round,$i=Math.floor,rn=t=>({x:t,y:t}),s2={left:"right",right:"left",bottom:"top",top:"bottom"},c2={start:"end",end:"start"};function xf(t,e,n){return Te(t,ga(e,n))}function Bn(t,e){return typeof t=="function"?t(e):t}function Un(t){return t.split("-")[0]}function Xl(t){return t.split("-")[1]}function Sf(t){return t==="x"?"y":"x"}function Ef(t){return t==="y"?"height":"width"}const u2=new Set(["top","bottom"]);function on(t){return u2.has(Un(t))?"y":"x"}function Cf(t){return Sf(on(t))}function f2(t,e,n){n===void 0&&(n=!1);const a=Xl(t),l=Cf(t),r=Ef(l);let o=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(o=Ji(o)),[o,Ji(o)]}function d2(t){const e=Ji(t);return[Af(t),e,Af(e)]}function Af(t){return t.replace(/start|end/g,e=>c2[e])}const Av=["left","right"],Tv=["right","left"],m2=["top","bottom"],h2=["bottom","top"];function p2(t,e,n){switch(t){case"top":case"bottom":return n?e?Tv:Av:e?Av:Tv;case"left":case"right":return e?m2:h2;default:return[]}}function g2(t,e,n,a){const l=Xl(t);let r=p2(Un(t),n==="start",a);return l&&(r=r.map(o=>o+"-"+l),e&&(r=r.concat(r.map(Af)))),r}function Ji(t){return t.replace(/left|right|bottom|top/g,e=>s2[e])}function v2(t){return{top:0,right:0,bottom:0,left:0,...t}}function Nv(t){return typeof t!="number"?v2(t):{top:t,right:t,bottom:t,left:t}}function Fi(t){const{x:e,y:n,width:a,height:l}=t;return{width:a,height:l,top:n,left:e,right:e+a,bottom:n+l,x:e,y:n}}function _v(t,e,n){let{reference:a,floating:l}=t;const r=on(e),o=Cf(e),i=Ef(o),s=Un(e),c=r==="y",m=a.x+a.width/2-l.width/2,u=a.y+a.height/2-l.height/2,h=a[i]/2-l[i]/2;let v;switch(s){case"top":v={x:m,y:a.y-l.height};break;case"bottom":v={x:m,y:a.y+a.height};break;case"right":v={x:a.x+a.width,y:u};break;case"left":v={x:a.x-l.width,y:u};break;default:v={x:a.x,y:a.y}}switch(Xl(e)){case"start":v[o]-=h*(n&&c?-1:1);break;case"end":v[o]+=h*(n&&c?-1:1);break}return v}async function y2(t,e){var n;e===void 0&&(e={});const{x:a,y:l,platform:r,rects:o,elements:i,strategy:s}=t,{boundary:c="clippingAncestors",rootBoundary:m="viewport",elementContext:u="floating",altBoundary:h=!1,padding:v=0}=Bn(e,t),x=Nv(v),S=i[h?u==="floating"?"reference":"floating":u],p=Fi(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(S)))==null||n?S:S.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(i.floating)),boundary:c,rootBoundary:m,strategy:s})),g=u==="floating"?{x:a,y:l,width:o.floating.width,height:o.floating.height}:o.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(i.floating)),b=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Fi(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:g,offsetParent:y,strategy:s}):g);return{top:(p.top-E.top+x.top)/b.y,bottom:(E.bottom-p.bottom+x.bottom)/b.y,left:(p.left-E.left+x.left)/b.x,right:(E.right-p.right+x.right)/b.x}}const w2=async(t,e,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:r=[],platform:o}=n,i=r.filter(Boolean),s=await(o.isRTL==null?void 0:o.isRTL(e));let c=await o.getElementRects({reference:t,floating:e,strategy:l}),{x:m,y:u}=_v(c,a,s),h=a,v={},x=0;for(let S=0;S<i.length;S++){var w;const{name:p,fn:g}=i[S],{x:y,y:b,data:E,reset:_}=await g({x:m,y:u,initialPlacement:a,placement:h,strategy:l,middlewareData:v,rects:c,platform:{...o,detectOverflow:(w=o.detectOverflow)!=null?w:y2},elements:{reference:t,floating:e}});m=y??m,u=b??u,v={...v,[p]:{...v[p],...E}},_&&x<=50&&(x++,typeof _=="object"&&(_.placement&&(h=_.placement),_.rects&&(c=_.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:l}):_.rects),{x:m,y:u}=_v(c,h,s)),S=-1)}return{x:m,y:u,placement:h,strategy:l,middlewareData:v}},b2=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:a,placement:l,rects:r,platform:o,elements:i,middlewareData:s}=e,{element:c,padding:m=0}=Bn(t,e)||{};if(c==null)return{};const u=Nv(m),h={x:n,y:a},v=Cf(l),x=Ef(v),w=await o.getDimensions(c),S=v==="y",p=S?"top":"left",g=S?"bottom":"right",y=S?"clientHeight":"clientWidth",b=r.reference[x]+r.reference[v]-h[v]-r.floating[x],E=h[v]-r.reference[v],_=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c));let C=_?_[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(_)))&&(C=i.floating[y]||r.floating[x]);const N=b/2-E/2,D=C/2-w[x]/2-1,z=ga(u[p],D),L=ga(u[g],D),U=z,k=C-w[x]-L,j=C/2-w[x]/2+N,X=xf(U,j,k),T=!s.arrow&&Xl(l)!=null&&j!==X&&r.reference[x]/2-(j<U?z:L)-w[x]/2<0,R=T?j<U?j-U:j-k:0;return{[v]:h[v]+R,data:{[v]:X,centerOffset:j-X-R,...T&&{alignmentOffset:R}},reset:T}}}),x2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,a;const{placement:l,middlewareData:r,rects:o,initialPlacement:i,platform:s,elements:c}=e,{mainAxis:m=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:w=!0,...S}=Bn(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const p=Un(l),g=on(i),y=Un(i)===i,b=await(s.isRTL==null?void 0:s.isRTL(c.floating)),E=h||(y||!w?[Ji(i)]:d2(i)),_=x!=="none";!h&&_&&E.push(...g2(i,w,x,b));const C=[i,...E],N=await s.detectOverflow(e,S),D=[];let z=((a=r.flip)==null?void 0:a.overflows)||[];if(m&&D.push(N[p]),u){const j=f2(l,o,b);D.push(N[j[0]],N[j[1]])}if(z=[...z,{placement:l,overflows:D}],!D.every(j=>j<=0)){var L,U;const j=(((L=r.flip)==null?void 0:L.index)||0)+1,X=C[j];if(X&&(!(u==="alignment"?g!==on(X):!1)||z.every(A=>on(A.placement)===g?A.overflows[0]>0:!0)))return{data:{index:j,overflows:z},reset:{placement:X}};let T=(U=z.filter(R=>R.overflows[0]<=0).sort((R,A)=>R.overflows[1]-A.overflows[1])[0])==null?void 0:U.placement;if(!T)switch(v){case"bestFit":{var k;const R=(k=z.filter(A=>{if(_){const V=on(A.placement);return V===g||V==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(V=>V>0).reduce((V,Q)=>V+Q,0)]).sort((A,V)=>A[1]-V[1])[0])==null?void 0:k[0];R&&(T=R);break}case"initialPlacement":T=i;break}if(l!==T)return{reset:{placement:T}}}return{}}}};function Rv(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function Ov(t){return i2.some(e=>t[e]>=0)}const S2=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n,platform:a}=e,{strategy:l="referenceHidden",...r}=Bn(t,e);switch(l){case"referenceHidden":{const o=await a.detectOverflow(e,{...r,elementContext:"reference"}),i=Rv(o,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ov(i)}}}case"escaped":{const o=await a.detectOverflow(e,{...r,altBoundary:!0}),i=Rv(o,n.floating);return{data:{escapedOffsets:i,escaped:Ov(i)}}}default:return{}}}}},Mv=new Set(["left","top"]);async function E2(t,e){const{placement:n,platform:a,elements:l}=t,r=await(a.isRTL==null?void 0:a.isRTL(l.floating)),o=Un(n),i=Xl(n),s=on(n)==="y",c=Mv.has(o)?-1:1,m=r&&s?-1:1,u=Bn(e,t);let{mainAxis:h,crossAxis:v,alignmentAxis:x}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return i&&typeof x=="number"&&(v=i==="end"?x*-1:x),s?{x:v*m,y:h*c}:{x:h*c,y:v*m}}const C2=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,a;const{x:l,y:r,placement:o,middlewareData:i}=e,s=await E2(e,t);return o===((n=i.offset)==null?void 0:n.placement)&&(a=i.arrow)!=null&&a.alignmentOffset?{}:{x:l+s.x,y:r+s.y,data:{...s,placement:o}}}}},A2=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:a,placement:l,platform:r}=e,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:p=>{let{x:g,y}=p;return{x:g,y}}},...c}=Bn(t,e),m={x:n,y:a},u=await r.detectOverflow(e,c),h=on(Un(l)),v=Sf(h);let x=m[v],w=m[h];if(o){const p=v==="y"?"top":"left",g=v==="y"?"bottom":"right",y=x+u[p],b=x-u[g];x=xf(y,x,b)}if(i){const p=h==="y"?"top":"left",g=h==="y"?"bottom":"right",y=w+u[p],b=w-u[g];w=xf(y,w,b)}const S=s.fn({...e,[v]:x,[h]:w});return{...S,data:{x:S.x-n,y:S.y-a,enabled:{[v]:o,[h]:i}}}}}},T2=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:a,placement:l,rects:r,middlewareData:o}=e,{offset:i=0,mainAxis:s=!0,crossAxis:c=!0}=Bn(t,e),m={x:n,y:a},u=on(l),h=Sf(u);let v=m[h],x=m[u];const w=Bn(i,e),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(s){const y=h==="y"?"height":"width",b=r.reference[h]-r.floating[y]+S.mainAxis,E=r.reference[h]+r.reference[y]-S.mainAxis;v<b?v=b:v>E&&(v=E)}if(c){var p,g;const y=h==="y"?"width":"height",b=Mv.has(Un(l)),E=r.reference[u]-r.floating[y]+(b&&((p=o.offset)==null?void 0:p[u])||0)+(b?0:S.crossAxis),_=r.reference[u]+r.reference[y]+(b?0:((g=o.offset)==null?void 0:g[u])||0)-(b?S.crossAxis:0);x<E?x=E:x>_&&(x=_)}return{[h]:v,[u]:x}}}},N2=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,a;const{placement:l,rects:r,platform:o,elements:i}=e,{apply:s=()=>{},...c}=Bn(t,e),m=await o.detectOverflow(e,c),u=Un(l),h=Xl(l),v=on(l)==="y",{width:x,height:w}=r.floating;let S,p;u==="top"||u==="bottom"?(S=u,p=h===(await(o.isRTL==null?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(p=u,S=h==="end"?"top":"bottom");const g=w-m.top-m.bottom,y=x-m.left-m.right,b=ga(w-m[S],g),E=ga(x-m[p],y),_=!e.middlewareData.shift;let C=b,N=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(N=y),(a=e.middlewareData.shift)!=null&&a.enabled.y&&(C=g),_&&!h){const z=Te(m.left,0),L=Te(m.right,0),U=Te(m.top,0),k=Te(m.bottom,0);v?N=x-2*(z!==0||L!==0?z+L:Te(m.left,m.right)):C=w-2*(U!==0||k!==0?U+k:Te(m.top,m.bottom))}await s({...e,availableWidth:N,availableHeight:C});const D=await o.getDimensions(i.floating);return x!==D.width||w!==D.height?{reset:{rects:!0}}:{}}}};function Wi(){return typeof window<"u"}function Ql(t){return Dv(t)?(t.nodeName||"").toLowerCase():"#document"}function Ne(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function sn(t){var e;return(e=(Dv(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Dv(t){return Wi()?t instanceof Node||t instanceof Ne(t).Node:!1}function Xe(t){return Wi()?t instanceof Element||t instanceof Ne(t).Element:!1}function cn(t){return Wi()?t instanceof HTMLElement||t instanceof Ne(t).HTMLElement:!1}function jv(t){return!Wi()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ne(t).ShadowRoot}const _2=new Set(["inline","contents"]);function io(t){const{overflow:e,overflowX:n,overflowY:a,display:l}=Qe(t);return/auto|scroll|overlay|hidden|clip/.test(e+a+n)&&!_2.has(l)}const R2=new Set(["table","td","th"]);function O2(t){return R2.has(Ql(t))}const M2=[":popover-open",":modal"];function Ii(t){return M2.some(e=>{try{return t.matches(e)}catch{return!1}})}const D2=["transform","translate","scale","rotate","perspective"],j2=["transform","translate","scale","rotate","perspective","filter"],z2=["paint","layout","strict","content"];function Tf(t){const e=Nf(),n=Xe(t)?Qe(t):t;return D2.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||j2.some(a=>(n.willChange||"").includes(a))||z2.some(a=>(n.contain||"").includes(a))}function L2(t){let e=va(t);for(;cn(e)&&!Zl(e);){if(Tf(e))return e;if(Ii(e))return null;e=va(e)}return null}function Nf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const B2=new Set(["html","body","#document"]);function Zl(t){return B2.has(Ql(t))}function Qe(t){return Ne(t).getComputedStyle(t)}function ts(t){return Xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function va(t){if(Ql(t)==="html")return t;const e=t.assignedSlot||t.parentNode||jv(t)&&t.host||sn(t);return jv(e)?e.host:e}function zv(t){const e=va(t);return Zl(e)?t.ownerDocument?t.ownerDocument.body:t.body:cn(e)&&io(e)?e:zv(e)}function so(t,e,n){var a;e===void 0&&(e=[]),n===void 0&&(n=!0);const l=zv(t),r=l===((a=t.ownerDocument)==null?void 0:a.body),o=Ne(l);if(r){const i=_f(o);return e.concat(o,o.visualViewport||[],io(l)?l:[],i&&n?so(i):[])}return e.concat(l,so(l,[],n))}function _f(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Lv(t){const e=Qe(t);let n=parseFloat(e.width)||0,a=parseFloat(e.height)||0;const l=cn(t),r=l?t.offsetWidth:n,o=l?t.offsetHeight:a,i=Ki(n)!==r||Ki(a)!==o;return i&&(n=r,a=o),{width:n,height:a,$:i}}function Rf(t){return Xe(t)?t:t.contextElement}function Kl(t){const e=Rf(t);if(!cn(e))return rn(1);const n=e.getBoundingClientRect(),{width:a,height:l,$:r}=Lv(e);let o=(r?Ki(n.width):n.width)/a,i=(r?Ki(n.height):n.height)/l;return(!o||!Number.isFinite(o))&&(o=1),(!i||!Number.isFinite(i))&&(i=1),{x:o,y:i}}const U2=rn(0);function Bv(t){const e=Ne(t);return!Nf()||!e.visualViewport?U2:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function H2(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Ne(t)?!1:e}function Qa(t,e,n,a){e===void 0&&(e=!1),n===void 0&&(n=!1);const l=t.getBoundingClientRect(),r=Rf(t);let o=rn(1);e&&(a?Xe(a)&&(o=Kl(a)):o=Kl(t));const i=H2(r,n,a)?Bv(r):rn(0);let s=(l.left+i.x)/o.x,c=(l.top+i.y)/o.y,m=l.width/o.x,u=l.height/o.y;if(r){const h=Ne(r),v=a&&Xe(a)?Ne(a):a;let x=h,w=_f(x);for(;w&&a&&v!==x;){const S=Kl(w),p=w.getBoundingClientRect(),g=Qe(w),y=p.left+(w.clientLeft+parseFloat(g.paddingLeft))*S.x,b=p.top+(w.clientTop+parseFloat(g.paddingTop))*S.y;s*=S.x,c*=S.y,m*=S.x,u*=S.y,s+=y,c+=b,x=Ne(w),w=_f(x)}}return Fi({width:m,height:u,x:s,y:c})}function es(t,e){const n=ts(t).scrollLeft;return e?e.left+n:Qa(sn(t)).left+n}function Uv(t,e){const n=t.getBoundingClientRect(),a=n.left+e.scrollLeft-es(t,n),l=n.top+e.scrollTop;return{x:a,y:l}}function V2(t){let{elements:e,rect:n,offsetParent:a,strategy:l}=t;const r=l==="fixed",o=sn(a),i=e?Ii(e.floating):!1;if(a===o||i&&r)return n;let s={scrollLeft:0,scrollTop:0},c=rn(1);const m=rn(0),u=cn(a);if((u||!u&&!r)&&((Ql(a)!=="body"||io(o))&&(s=ts(a)),cn(a))){const v=Qa(a);c=Kl(a),m.x=v.x+a.clientLeft,m.y=v.y+a.clientTop}const h=o&&!u&&!r?Uv(o,s):rn(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+m.x+h.x,y:n.y*c.y-s.scrollTop*c.y+m.y+h.y}}function k2(t){return Array.from(t.getClientRects())}function Y2(t){const e=sn(t),n=ts(t),a=t.ownerDocument.body,l=Te(e.scrollWidth,e.clientWidth,a.scrollWidth,a.clientWidth),r=Te(e.scrollHeight,e.clientHeight,a.scrollHeight,a.clientHeight);let o=-n.scrollLeft+es(t);const i=-n.scrollTop;return Qe(a).direction==="rtl"&&(o+=Te(e.clientWidth,a.clientWidth)-l),{width:l,height:r,x:o,y:i}}const Hv=25;function q2(t,e){const n=Ne(t),a=sn(t),l=n.visualViewport;let r=a.clientWidth,o=a.clientHeight,i=0,s=0;if(l){r=l.width,o=l.height;const m=Nf();(!m||m&&e==="fixed")&&(i=l.offsetLeft,s=l.offsetTop)}const c=es(a);if(c<=0){const m=a.ownerDocument,u=m.body,h=getComputedStyle(u),v=m.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,x=Math.abs(a.clientWidth-u.clientWidth-v);x<=Hv&&(r-=x)}else c<=Hv&&(r+=c);return{width:r,height:o,x:i,y:s}}const G2=new Set(["absolute","fixed"]);function P2(t,e){const n=Qa(t,!0,e==="fixed"),a=n.top+t.clientTop,l=n.left+t.clientLeft,r=cn(t)?Kl(t):rn(1),o=t.clientWidth*r.x,i=t.clientHeight*r.y,s=l*r.x,c=a*r.y;return{width:o,height:i,x:s,y:c}}function Vv(t,e,n){let a;if(e==="viewport")a=q2(t,n);else if(e==="document")a=Y2(sn(t));else if(Xe(e))a=P2(e,n);else{const l=Bv(t);a={x:e.x-l.x,y:e.y-l.y,width:e.width,height:e.height}}return Fi(a)}function kv(t,e){const n=va(t);return n===e||!Xe(n)||Zl(n)?!1:Qe(n).position==="fixed"||kv(n,e)}function X2(t,e){const n=e.get(t);if(n)return n;let a=so(t,[],!1).filter(i=>Xe(i)&&Ql(i)!=="body"),l=null;const r=Qe(t).position==="fixed";let o=r?va(t):t;for(;Xe(o)&&!Zl(o);){const i=Qe(o),s=Tf(o);!s&&i.position==="fixed"&&(l=null),(r?!s&&!l:!s&&i.position==="static"&&!!l&&G2.has(l.position)||io(o)&&!s&&kv(t,o))?a=a.filter(m=>m!==o):l=i,o=va(o)}return e.set(t,a),a}function Q2(t){let{element:e,boundary:n,rootBoundary:a,strategy:l}=t;const o=[...n==="clippingAncestors"?Ii(e)?[]:X2(e,this._c):[].concat(n),a],i=o[0],s=o.reduce((c,m)=>{const u=Vv(e,m,l);return c.top=Te(u.top,c.top),c.right=ga(u.right,c.right),c.bottom=ga(u.bottom,c.bottom),c.left=Te(u.left,c.left),c},Vv(e,i,l));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Z2(t){const{width:e,height:n}=Lv(t);return{width:e,height:n}}function K2(t,e,n){const a=cn(e),l=sn(e),r=n==="fixed",o=Qa(t,!0,r,e);let i={scrollLeft:0,scrollTop:0};const s=rn(0);function c(){s.x=es(l)}if(a||!a&&!r)if((Ql(e)!=="body"||io(l))&&(i=ts(e)),a){const v=Qa(e,!0,r,e);s.x=v.x+e.clientLeft,s.y=v.y+e.clientTop}else l&&c();r&&!a&&l&&c();const m=l&&!a&&!r?Uv(l,i):rn(0),u=o.left+i.scrollLeft-s.x-m.x,h=o.top+i.scrollTop-s.y-m.y;return{x:u,y:h,width:o.width,height:o.height}}function Of(t){return Qe(t).position==="static"}function Yv(t,e){if(!cn(t)||Qe(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return sn(t)===n&&(n=n.ownerDocument.body),n}function qv(t,e){const n=Ne(t);if(Ii(t))return n;if(!cn(t)){let l=va(t);for(;l&&!Zl(l);){if(Xe(l)&&!Of(l))return l;l=va(l)}return n}let a=Yv(t,e);for(;a&&O2(a)&&Of(a);)a=Yv(a,e);return a&&Zl(a)&&Of(a)&&!Tf(a)?n:a||L2(t)||n}const $2=async function(t){const e=this.getOffsetParent||qv,n=this.getDimensions,a=await n(t.floating);return{reference:K2(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function J2(t){return Qe(t).direction==="rtl"}const F2={convertOffsetParentRelativeRectToViewportRelativeRect:V2,getDocumentElement:sn,getClippingRect:Q2,getOffsetParent:qv,getElementRects:$2,getClientRects:k2,getDimensions:Z2,getScale:Kl,isElement:Xe,isRTL:J2};function Gv(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function W2(t,e){let n=null,a;const l=sn(t);function r(){var i;clearTimeout(a),(i=n)==null||i.disconnect(),n=null}function o(i,s){i===void 0&&(i=!1),s===void 0&&(s=1),r();const c=t.getBoundingClientRect(),{left:m,top:u,width:h,height:v}=c;if(i||e(),!h||!v)return;const x=$i(u),w=$i(l.clientWidth-(m+h)),S=$i(l.clientHeight-(u+v)),p=$i(m),y={rootMargin:-x+"px "+-w+"px "+-S+"px "+-p+"px",threshold:Te(0,ga(1,s))||1};let b=!0;function E(_){const C=_[0].intersectionRatio;if(C!==s){if(!b)return o();C?o(!1,C):a=setTimeout(()=>{o(!1,1e-7)},1e3)}C===1&&!Gv(c,t.getBoundingClientRect())&&o(),b=!1}try{n=new IntersectionObserver(E,{...y,root:l.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(t)}return o(!0),r}function I2(t,e,n,a){a===void 0&&(a={});const{ancestorScroll:l=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:i=typeof IntersectionObserver=="function",animationFrame:s=!1}=a,c=Rf(t),m=l||r?[...c?so(c):[],...so(e)]:[];m.forEach(p=>{l&&p.addEventListener("scroll",n,{passive:!0}),r&&p.addEventListener("resize",n)});const u=c&&i?W2(c,n):null;let h=-1,v=null;o&&(v=new ResizeObserver(p=>{let[g]=p;g&&g.target===c&&v&&(v.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(e)})),n()}),c&&!s&&v.observe(c),v.observe(e));let x,w=s?Qa(t):null;s&&S();function S(){const p=Qa(t);w&&!Gv(w,p)&&n(),w=p,x=requestAnimationFrame(S)}return n(),()=>{var p;m.forEach(g=>{l&&g.removeEventListener("scroll",n),r&&g.removeEventListener("resize",n)}),u==null||u(),(p=v)==null||p.disconnect(),v=null,s&&cancelAnimationFrame(x)}}const tE=C2,eE=A2,nE=x2,aE=N2,lE=S2,Pv=b2,rE=T2,oE=(t,e,n)=>{const a=new Map,l={platform:F2,...n},r={...l.platform,_c:a};return w2(t,e,{...l,platform:r})};var iE=typeof document<"u",sE=function(){},ns=iE?f.useLayoutEffect:sE;function as(t,e){if(t===e)return!0;if(typeof t!=typeof e)return!1;if(typeof t=="function"&&t.toString()===e.toString())return!0;let n,a,l;if(t&&e&&typeof t=="object"){if(Array.isArray(t)){if(n=t.length,n!==e.length)return!1;for(a=n;a--!==0;)if(!as(t[a],e[a]))return!1;return!0}if(l=Object.keys(t),n=l.length,n!==Object.keys(e).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(e,l[a]))return!1;for(a=n;a--!==0;){const r=l[a];if(!(r==="_owner"&&t.$$typeof)&&!as(t[r],e[r]))return!1}return!0}return t!==t&&e!==e}function Xv(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Qv(t,e){const n=Xv(t);return Math.round(e*n)/n}function Mf(t){const e=f.useRef(t);return ns(()=>{e.current=t}),e}function cE(t){t===void 0&&(t={});const{placement:e="bottom",strategy:n="absolute",middleware:a=[],platform:l,elements:{reference:r,floating:o}={},transform:i=!0,whileElementsMounted:s,open:c}=t,[m,u]=f.useState({x:0,y:0,strategy:n,placement:e,middlewareData:{},isPositioned:!1}),[h,v]=f.useState(a);as(h,a)||v(a);const[x,w]=f.useState(null),[S,p]=f.useState(null),g=f.useCallback(A=>{A!==_.current&&(_.current=A,w(A))},[]),y=f.useCallback(A=>{A!==C.current&&(C.current=A,p(A))},[]),b=r||x,E=o||S,_=f.useRef(null),C=f.useRef(null),N=f.useRef(m),D=s!=null,z=Mf(s),L=Mf(l),U=Mf(c),k=f.useCallback(()=>{if(!_.current||!C.current)return;const A={placement:e,strategy:n,middleware:h};L.current&&(A.platform=L.current),oE(_.current,C.current,A).then(V=>{const Q={...V,isPositioned:U.current!==!1};j.current&&!as(N.current,Q)&&(N.current=Q,Ia.flushSync(()=>{u(Q)}))})},[h,e,n,L,U]);ns(()=>{c===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,u(A=>({...A,isPositioned:!1})))},[c]);const j=f.useRef(!1);ns(()=>(j.current=!0,()=>{j.current=!1}),[]),ns(()=>{if(b&&(_.current=b),E&&(C.current=E),b&&E){if(z.current)return z.current(b,E,k);k()}},[b,E,k,z,D]);const X=f.useMemo(()=>({reference:_,floating:C,setReference:g,setFloating:y}),[g,y]),T=f.useMemo(()=>({reference:b,floating:E}),[b,E]),R=f.useMemo(()=>{const A={position:n,left:0,top:0};if(!T.floating)return A;const V=Qv(T.floating,m.x),Q=Qv(T.floating,m.y);return i?{...A,transform:"translate("+V+"px, "+Q+"px)",...Xv(T.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:V,top:Q}},[n,i,T.floating,m.x,m.y]);return f.useMemo(()=>({...m,update:k,refs:X,elements:T,floatingStyles:R}),[m,k,X,T,R])}const uE=t=>{function e(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:t,fn(n){const{element:a,padding:l}=typeof t=="function"?t(n):t;return a&&e(a)?a.current!=null?Pv({element:a.current,padding:l}).fn(n):{}:a?Pv({element:a,padding:l}).fn(n):{}}}},fE=(t,e)=>({...tE(t),options:[t,e]}),dE=(t,e)=>({...eE(t),options:[t,e]}),mE=(t,e)=>({...rE(t),options:[t,e]}),hE=(t,e)=>({...nE(t),options:[t,e]}),pE=(t,e)=>({...aE(t),options:[t,e]}),gE=(t,e)=>({...lE(t),options:[t,e]}),vE=(t,e)=>({...uE(t),options:[t,e]});var yE="Arrow",Zv=f.forwardRef((t,e)=>{const{children:n,width:a=10,height:l=5,...r}=t;return d.jsx(st.svg,{...r,ref:e,width:a,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?n:d.jsx("polygon",{points:"0,0 30,0 15,10"})})});Zv.displayName=yE;var wE=Zv;function Kv(t){const[e,n]=f.useState(void 0);return ee(()=>{if(t){n({width:t.offsetWidth,height:t.offsetHeight});const a=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const r=l[0];let o,i;if("borderBoxSize"in r){const s=r.borderBoxSize,c=Array.isArray(s)?s[0]:s;o=c.inlineSize,i=c.blockSize}else o=t.offsetWidth,i=t.offsetHeight;n({width:o,height:i})});return a.observe(t,{box:"border-box"}),()=>a.unobserve(t)}else n(void 0)},[t]),e}var Df="Popper",[$v,ls]=Pl(Df),[bE,Jv]=$v(Df),Fv=t=>{const{__scopePopper:e,children:n}=t,[a,l]=f.useState(null);return d.jsx(bE,{scope:e,anchor:a,onAnchorChange:l,children:n})};Fv.displayName=Df;var Wv="PopperAnchor",Iv=f.forwardRef((t,e)=>{const{__scopePopper:n,virtualRef:a,...l}=t,r=Jv(Wv,n),o=f.useRef(null),i=vt(e,o),s=f.useRef(null);return f.useEffect(()=>{const c=s.current;s.current=(a==null?void 0:a.current)||o.current,c!==s.current&&r.onAnchorChange(s.current)}),a?null:d.jsx(st.div,{...l,ref:i})});Iv.displayName=Wv;var jf="PopperContent",[xE,SE]=$v(jf),t0=f.forwardRef((t,e)=>{var H,Z,dt,nt,tt,M;const{__scopePopper:n,side:a="bottom",sideOffset:l=0,align:r="center",alignOffset:o=0,arrowPadding:i=0,avoidCollisions:s=!0,collisionBoundary:c=[],collisionPadding:m=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:v="optimized",onPlaced:x,...w}=t,S=Jv(jf,n),[p,g]=f.useState(null),y=vt(e,mt=>g(mt)),[b,E]=f.useState(null),_=Kv(b),C=(_==null?void 0:_.width)??0,N=(_==null?void 0:_.height)??0,D=a+(r!=="center"?"-"+r:""),z=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},L=Array.isArray(c)?c:[c],U=L.length>0,k={padding:z,boundary:L.filter(CE),altBoundary:U},{refs:j,floatingStyles:X,placement:T,isPositioned:R,middlewareData:A}=cE({strategy:"fixed",placement:D,whileElementsMounted:(...mt)=>I2(...mt,{animationFrame:v==="always"}),elements:{reference:S.anchor},middleware:[fE({mainAxis:l+N,alignmentAxis:o}),s&&dE({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?mE():void 0,...k}),s&&hE({...k}),pE({...k,apply:({elements:mt,rects:ht,availableWidth:Ot,availableHeight:Wt})=>{const{width:jt,height:pn}=ht.reference,It=mt.floating.style;It.setProperty("--radix-popper-available-width",`${Ot}px`),It.setProperty("--radix-popper-available-height",`${Wt}px`),It.setProperty("--radix-popper-anchor-width",`${jt}px`),It.setProperty("--radix-popper-anchor-height",`${pn}px`)}}),b&&vE({element:b,padding:i}),AE({arrowWidth:C,arrowHeight:N}),h&&gE({strategy:"referenceHidden",...k})]}),[V,Q]=a0(T),ft=Pa(x);ee(()=>{R&&(ft==null||ft())},[R,ft]);const Et=(H=A.arrow)==null?void 0:H.x,Y=(Z=A.arrow)==null?void 0:Z.y,P=((dt=A.arrow)==null?void 0:dt.centerOffset)!==0,[J,Ct]=f.useState();return ee(()=>{p&&Ct(window.getComputedStyle(p).zIndex)},[p]),d.jsx("div",{ref:j.setFloating,"data-radix-popper-content-wrapper":"",style:{...X,transform:R?X.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[(nt=A.transformOrigin)==null?void 0:nt.x,(tt=A.transformOrigin)==null?void 0:tt.y].join(" "),...((M=A.hide)==null?void 0:M.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:d.jsx(xE,{scope:n,placedSide:V,onArrowChange:E,arrowX:Et,arrowY:Y,shouldHideArrow:P,children:d.jsx(st.div,{"data-side":V,"data-align":Q,...w,ref:y,style:{...w.style,animation:R?void 0:"none"}})})})});t0.displayName=jf;var e0="PopperArrow",EE={top:"bottom",right:"left",bottom:"top",left:"right"},n0=f.forwardRef(function(e,n){const{__scopePopper:a,...l}=e,r=SE(e0,a),o=EE[r.placedSide];return d.jsx("span",{ref:r.onArrowChange,style:{position:"absolute",left:r.arrowX,top:r.arrowY,[o]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[r.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[r.placedSide],visibility:r.shouldHideArrow?"hidden":void 0},children:d.jsx(wE,{...l,ref:n,style:{...l.style,display:"block"}})})});n0.displayName=e0;function CE(t){return t!==null}var AE=t=>({name:"transformOrigin",options:t,fn(e){var S,p,g;const{placement:n,rects:a,middlewareData:l}=e,o=((S=l.arrow)==null?void 0:S.centerOffset)!==0,i=o?0:t.arrowWidth,s=o?0:t.arrowHeight,[c,m]=a0(n),u={start:"0%",center:"50%",end:"100%"}[m],h=(((p=l.arrow)==null?void 0:p.x)??0)+i/2,v=(((g=l.arrow)==null?void 0:g.y)??0)+s/2;let x="",w="";return c==="bottom"?(x=o?u:`${h}px`,w=`${-s}px`):c==="top"?(x=o?u:`${h}px`,w=`${a.floating.height+s}px`):c==="right"?(x=`${-s}px`,w=o?u:`${v}px`):c==="left"&&(x=`${a.floating.width+s}px`,w=o?u:`${v}px`),{data:{x,y:w}}}});function a0(t){const[e,n="center"]=t.split("-");return[e,n]}var l0=Fv,zf=Iv,r0=t0,o0=n0,TE="Portal",rs=f.forwardRef((t,e)=>{var i;const{container:n,...a}=t,[l,r]=f.useState(!1);ee(()=>r(!0),[]);const o=n||l&&((i=globalThis==null?void 0:globalThis.document)==null?void 0:i.body);return o?Nd.createPortal(d.jsx(st.div,{...a,ref:e}),o):null});rs.displayName=TE;function NE(t){const e=_E(t),n=f.forwardRef((a,l)=>{const{children:r,...o}=a,i=f.Children.toArray(r),s=i.find(OE);if(s){const c=s.props.children,m=i.map(u=>u===s?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return d.jsx(e,{...o,ref:l,children:f.isValidElement(c)?f.cloneElement(c,void 0,m):null})}return d.jsx(e,{...o,ref:l,children:r})});return n.displayName=`${t}.Slot`,n}function _E(t){const e=f.forwardRef((n,a)=>{const{children:l,...r}=n;if(f.isValidElement(l)){const o=DE(l),i=ME(r,l.props);return l.type!==f.Fragment&&(i.ref=a?Ga(a,o):o),f.cloneElement(l,i)}return f.Children.count(l)>1?f.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var RE=Symbol("radix.slottable");function OE(t){return f.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===RE}function ME(t,e){const n={...e};for(const a in e){const l=t[a],r=e[a];/^on[A-Z]/.test(a)?l&&r?n[a]=(...i)=>{const s=r(...i);return l(...i),s}:l&&(n[a]=l):a==="style"?n[a]={...l,...r}:a==="className"&&(n[a]=[l,r].filter(Boolean).join(" "))}return{...t,...n}}function DE(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var jE=Ls[" useInsertionEffect ".trim().toString()]||ee;function co({prop:t,defaultProp:e,onChange:n=()=>{},caller:a}){const[l,r,o]=zE({defaultProp:e,onChange:n}),i=t!==void 0,s=i?t:l;{const m=f.useRef(t!==void 0);f.useEffect(()=>{const u=m.current;u!==i&&console.warn(`${a} is changing from ${u?"controlled":"uncontrolled"} to ${i?"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.`),m.current=i},[i,a])}const c=f.useCallback(m=>{var u;if(i){const h=LE(m)?m(t):m;h!==t&&((u=o.current)==null||u.call(o,h))}else r(m)},[i,t,r,o]);return[s,c]}function zE({defaultProp:t,onChange:e}){const[n,a]=f.useState(t),l=f.useRef(n),r=f.useRef(e);return jE(()=>{r.current=e},[e]),f.useEffect(()=>{var o;l.current!==n&&((o=r.current)==null||o.call(r,n),l.current=n)},[n,l]),[n,a,r]}function LE(t){return typeof t=="function"}function i0(t){const e=f.useRef({value:t,previous:t});return f.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var s0=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"}),BE="VisuallyHidden",UE=f.forwardRef((t,e)=>d.jsx(st.span,{...t,ref:e,style:{...s0,...t.style}}));UE.displayName=BE;var HE=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},$l=new WeakMap,os=new WeakMap,is={},Lf=0,c0=function(t){return t&&(t.host||c0(t.parentNode))},VE=function(t,e){return e.map(function(n){if(t.contains(n))return n;var a=c0(n);return a&&t.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",t,". Doing nothing"),null)}).filter(function(n){return!!n})},kE=function(t,e,n,a){var l=VE(e,Array.isArray(t)?t:[t]);is[n]||(is[n]=new WeakMap);var r=is[n],o=[],i=new Set,s=new Set(l),c=function(u){!u||i.has(u)||(i.add(u),c(u.parentNode))};l.forEach(c);var m=function(u){!u||s.has(u)||Array.prototype.forEach.call(u.children,function(h){if(i.has(h))m(h);else try{var v=h.getAttribute(a),x=v!==null&&v!=="false",w=($l.get(h)||0)+1,S=(r.get(h)||0)+1;$l.set(h,w),r.set(h,S),o.push(h),w===1&&x&&os.set(h,!0),S===1&&h.setAttribute(n,"true"),x||h.setAttribute(a,"true")}catch(p){console.error("aria-hidden: cannot operate on ",h,p)}})};return m(e),i.clear(),Lf++,function(){o.forEach(function(u){var h=$l.get(u)-1,v=r.get(u)-1;$l.set(u,h),r.set(u,v),h||(os.has(u)||u.removeAttribute(a),os.delete(u)),v||u.removeAttribute(n)}),Lf--,Lf||($l=new WeakMap,$l=new WeakMap,os=new WeakMap,is={})}},Bf=function(t,e,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(t)?t:[t]),l=HE(t);return l?(a.push.apply(a,Array.from(l.querySelectorAll("[aria-live], script"))),kE(a,l,n,"aria-hidden")):function(){return null}},un=function(){return un=Object.assign||function(e){for(var n,a=1,l=arguments.length;a<l;a++){n=arguments[a];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},un.apply(this,arguments)};function u0(t,e){var n={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(n[a]=t[a]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(t);l<a.length;l++)e.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(t,a[l])&&(n[a[l]]=t[a[l]]);return n}function YE(t,e,n){if(n||arguments.length===2)for(var a=0,l=e.length,r;a<l;a++)(r||!(a in e))&&(r||(r=Array.prototype.slice.call(e,0,a)),r[a]=e[a]);return t.concat(r||Array.prototype.slice.call(e))}typeof SuppressedError=="function"&&SuppressedError;var ss="right-scroll-bar-position",cs="width-before-scroll-bar",qE="with-scroll-bars-hidden",GE="--removed-body-scroll-bar-size";function Uf(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}function PE(t,e){var n=f.useState(function(){return{value:t,callback:e,facade:{get current(){return n.value},set current(a){var l=n.value;l!==a&&(n.value=a,n.callback(a,l))}}}})[0];return n.callback=e,n.facade}var XE=typeof window<"u"?f.useLayoutEffect:f.useEffect,f0=new WeakMap;function QE(t,e){var n=PE(null,function(a){return t.forEach(function(l){return Uf(l,a)})});return XE(function(){var a=f0.get(n);if(a){var l=new Set(a),r=new Set(t),o=n.current;l.forEach(function(i){r.has(i)||Uf(i,null)}),r.forEach(function(i){l.has(i)||Uf(i,o)})}f0.set(n,t)},[t]),n}function ZE(t){return t}function KE(t,e){e===void 0&&(e=ZE);var n=[],a=!1,l={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(r){var o=e(r,a);return n.push(o),function(){n=n.filter(function(i){return i!==o})}},assignSyncMedium:function(r){for(a=!0;n.length;){var o=n;n=[],o.forEach(r)}n={push:function(i){return r(i)},filter:function(){return n}}},assignMedium:function(r){a=!0;var o=[];if(n.length){var i=n;n=[],i.forEach(r),o=n}var s=function(){var m=o;o=[],m.forEach(r)},c=function(){return Promise.resolve().then(s)};c(),n={push:function(m){o.push(m),c()},filter:function(m){return o=o.filter(m),n}}}};return l}function $E(t){t===void 0&&(t={});var e=KE(null);return e.options=un({async:!0,ssr:!1},t),e}var d0=function(t){var e=t.sideCar,n=u0(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=e.read();if(!a)throw new Error("Sidecar medium not found");return f.createElement(a,un({},n))};d0.isSideCarExport=!0;function JE(t,e){return t.useMedium(e),d0}var m0=$E(),Hf=function(){},us=f.forwardRef(function(t,e){var n=f.useRef(null),a=f.useState({onScrollCapture:Hf,onWheelCapture:Hf,onTouchMoveCapture:Hf}),l=a[0],r=a[1],o=t.forwardProps,i=t.children,s=t.className,c=t.removeScrollBar,m=t.enabled,u=t.shards,h=t.sideCar,v=t.noRelative,x=t.noIsolation,w=t.inert,S=t.allowPinchZoom,p=t.as,g=p===void 0?"div":p,y=t.gapMode,b=u0(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,_=QE([n,e]),C=un(un({},b),l);return f.createElement(f.Fragment,null,m&&f.createElement(E,{sideCar:m0,removeScrollBar:c,shards:u,noRelative:v,noIsolation:x,inert:w,setCallbacks:r,allowPinchZoom:!!S,lockRef:n,gapMode:y}),o?f.cloneElement(f.Children.only(i),un(un({},C),{ref:_})):f.createElement(g,un({},C,{className:s,ref:_}),i))});us.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},us.classNames={fullWidth:cs,zeroRight:ss};var FE=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function WE(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=FE();return e&&t.setAttribute("nonce",e),t}function IE(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function tC(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var eC=function(){var t=0,e=null;return{add:function(n){t==0&&(e=WE())&&(IE(e,n),tC(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},nC=function(){var t=eC();return function(e,n){f.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},h0=function(){var t=nC(),e=function(n){var a=n.styles,l=n.dynamic;return t(a,l),null};return e},aC={left:0,top:0,right:0,gap:0},Vf=function(t){return parseInt(t||"",10)||0},lC=function(t){var e=window.getComputedStyle(document.body),n=e[t==="padding"?"paddingLeft":"marginLeft"],a=e[t==="padding"?"paddingTop":"marginTop"],l=e[t==="padding"?"paddingRight":"marginRight"];return[Vf(n),Vf(a),Vf(l)]},rC=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return aC;var e=lC(t),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,a-n+e[2]-e[0])}},oC=h0(),Jl="data-scroll-locked",iC=function(t,e,n,a){var l=t.left,r=t.top,o=t.right,i=t.gap;return n===void 0&&(n="margin"),`
  .`.concat(qE,` {
   overflow: hidden `).concat(a,`;
   padding-right: `).concat(i,"px ").concat(a,`;
  }
  body[`).concat(Jl,`] {
    overflow: hidden `).concat(a,`;
    overscroll-behavior: contain;
    `).concat([e&&"position: relative ".concat(a,";"),n==="margin"&&`
    padding-left: `.concat(l,`px;
    padding-top: `).concat(r,`px;
    padding-right: `).concat(o,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(i,"px ").concat(a,`;
    `),n==="padding"&&"padding-right: ".concat(i,"px ").concat(a,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(ss,` {
    right: `).concat(i,"px ").concat(a,`;
  }
  
  .`).concat(cs,` {
    margin-right: `).concat(i,"px ").concat(a,`;
  }
  
  .`).concat(ss," .").concat(ss,` {
    right: 0 `).concat(a,`;
  }
  
  .`).concat(cs," .").concat(cs,` {
    margin-right: 0 `).concat(a,`;
  }
  
  body[`).concat(Jl,`] {
    `).concat(GE,": ").concat(i,`px;
  }
`)},p0=function(){var t=parseInt(document.body.getAttribute(Jl)||"0",10);return isFinite(t)?t:0},sC=function(){f.useEffect(function(){return document.body.setAttribute(Jl,(p0()+1).toString()),function(){var t=p0()-1;t<=0?document.body.removeAttribute(Jl):document.body.setAttribute(Jl,t.toString())}},[])},cC=function(t){var e=t.noRelative,n=t.noImportant,a=t.gapMode,l=a===void 0?"margin":a;sC();var r=f.useMemo(function(){return rC(l)},[l]);return f.createElement(oC,{styles:iC(r,!e,l,n?"":"!important")})},kf=!1;if(typeof window<"u")try{var fs=Object.defineProperty({},"passive",{get:function(){return kf=!0,!0}});window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{kf=!1}var Fl=kf?{passive:!1}:!1,uC=function(t){return t.tagName==="TEXTAREA"},g0=function(t,e){if(!(t instanceof Element))return!1;var n=window.getComputedStyle(t);return n[e]!=="hidden"&&!(n.overflowY===n.overflowX&&!uC(t)&&n[e]==="visible")},fC=function(t){return g0(t,"overflowY")},dC=function(t){return g0(t,"overflowX")},v0=function(t,e){var n=e.ownerDocument,a=e;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var l=y0(t,a);if(l){var r=w0(t,a),o=r[1],i=r[2];if(o>i)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},mC=function(t){var e=t.scrollTop,n=t.scrollHeight,a=t.clientHeight;return[e,n,a]},hC=function(t){var e=t.scrollLeft,n=t.scrollWidth,a=t.clientWidth;return[e,n,a]},y0=function(t,e){return t==="v"?fC(e):dC(e)},w0=function(t,e){return t==="v"?mC(e):hC(e)},pC=function(t,e){return t==="h"&&e==="rtl"?-1:1},gC=function(t,e,n,a,l){var r=pC(t,window.getComputedStyle(e).direction),o=r*a,i=n.target,s=e.contains(i),c=!1,m=o>0,u=0,h=0;do{if(!i)break;var v=w0(t,i),x=v[0],w=v[1],S=v[2],p=w-S-r*x;(x||p)&&y0(t,i)&&(u+=p,h+=x);var g=i.parentNode;i=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!s&&i!==document.body||s&&(e.contains(i)||e===i));return(m&&Math.abs(u)<1||!m&&Math.abs(h)<1)&&(c=!0),c},ds=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},b0=function(t){return[t.deltaX,t.deltaY]},x0=function(t){return t&&"current"in t?t.current:t},vC=function(t,e){return t[0]===e[0]&&t[1]===e[1]},yC=function(t){return`
  .block-interactivity-`.concat(t,` {pointer-events: none;}
  .allow-interactivity-`).concat(t,` {pointer-events: all;}
`)},wC=0,Wl=[];function bC(t){var e=f.useRef([]),n=f.useRef([0,0]),a=f.useRef(),l=f.useState(wC++)[0],r=f.useState(h0)[0],o=f.useRef(t);f.useEffect(function(){o.current=t},[t]),f.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(l));var w=YE([t.lockRef.current],(t.shards||[]).map(x0),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),w.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(l))})}}},[t.inert,t.lockRef.current,t.shards]);var i=f.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!o.current.allowPinchZoom;var p=ds(w),g=n.current,y="deltaX"in w?w.deltaX:g[0]-p[0],b="deltaY"in w?w.deltaY:g[1]-p[1],E,_=w.target,C=Math.abs(y)>Math.abs(b)?"h":"v";if("touches"in w&&C==="h"&&_.type==="range")return!1;var N=window.getSelection(),D=N&&N.anchorNode,z=D?D===_||D.contains(_):!1;if(z)return!1;var L=v0(C,_);if(!L)return!0;if(L?E=C:(E=C==="v"?"h":"v",L=v0(C,_)),!L)return!1;if(!a.current&&"changedTouches"in w&&(y||b)&&(a.current=E),!E)return!0;var U=a.current||E;return gC(U,S,w,U==="h"?y:b)},[]),s=f.useCallback(function(w){var S=w;if(!(!Wl.length||Wl[Wl.length-1]!==r)){var p="deltaY"in S?b0(S):ds(S),g=e.current.filter(function(E){return E.name===S.type&&(E.target===S.target||S.target===E.shadowParent)&&vC(E.delta,p)})[0];if(g&&g.should){S.cancelable&&S.preventDefault();return}if(!g){var y=(o.current.shards||[]).map(x0).filter(Boolean).filter(function(E){return E.contains(S.target)}),b=y.length>0?i(S,y[0]):!o.current.noIsolation;b&&S.cancelable&&S.preventDefault()}}},[]),c=f.useCallback(function(w,S,p,g){var y={name:w,delta:S,target:p,should:g,shadowParent:xC(p)};e.current.push(y),setTimeout(function(){e.current=e.current.filter(function(b){return b!==y})},1)},[]),m=f.useCallback(function(w){n.current=ds(w),a.current=void 0},[]),u=f.useCallback(function(w){c(w.type,b0(w),w.target,i(w,t.lockRef.current))},[]),h=f.useCallback(function(w){c(w.type,ds(w),w.target,i(w,t.lockRef.current))},[]);f.useEffect(function(){return Wl.push(r),t.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",s,Fl),document.addEventListener("touchmove",s,Fl),document.addEventListener("touchstart",m,Fl),function(){Wl=Wl.filter(function(w){return w!==r}),document.removeEventListener("wheel",s,Fl),document.removeEventListener("touchmove",s,Fl),document.removeEventListener("touchstart",m,Fl)}},[]);var v=t.removeScrollBar,x=t.inert;return f.createElement(f.Fragment,null,x?f.createElement(r,{styles:yC(l)}):null,v?f.createElement(cC,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function xC(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}const SC=JE(m0,bC);var ms=f.forwardRef(function(t,e){return f.createElement(us,un({},t,{ref:e,sideCar:SC}))});ms.classNames=us.classNames;var EC=[" ","Enter","ArrowUp","ArrowDown"],CC=[" ","Enter"],Za="Select",[hs,ps,AC]=mv(Za),[Il]=Pl(Za,[AC,ls]),gs=ls(),[TC,ya]=Il(Za),[NC,_C]=Il(Za),S0=t=>{const{__scopeSelect:e,children:n,open:a,defaultOpen:l,onOpenChange:r,value:o,defaultValue:i,onValueChange:s,dir:c,name:m,autoComplete:u,disabled:h,required:v,form:x}=t,w=gs(e),[S,p]=f.useState(null),[g,y]=f.useState(null),[b,E]=f.useState(!1),_=hv(c),[C,N]=co({prop:a,defaultProp:l??!1,onChange:r,caller:Za}),[D,z]=co({prop:o,defaultProp:i,onChange:s,caller:Za}),L=f.useRef(null),U=S?x||!!S.closest("form"):!0,[k,j]=f.useState(new Set),X=Array.from(k).map(T=>T.props.value).join(";");return d.jsx(l0,{...w,children:d.jsxs(TC,{required:v,scope:e,trigger:S,onTriggerChange:p,valueNode:g,onValueNodeChange:y,valueNodeHasChildren:b,onValueNodeHasChildrenChange:E,contentId:Xa(),value:D,onValueChange:z,open:C,onOpenChange:N,dir:_,triggerPointerDownPosRef:L,disabled:h,children:[d.jsx(hs.Provider,{scope:e,children:d.jsx(NC,{scope:t.__scopeSelect,onNativeOptionAdd:f.useCallback(T=>{j(R=>new Set(R).add(T))},[]),onNativeOptionRemove:f.useCallback(T=>{j(R=>{const A=new Set(R);return A.delete(T),A})},[]),children:n})}),U?d.jsxs(Q0,{"aria-hidden":!0,required:v,tabIndex:-1,name:m,autoComplete:u,value:D,onChange:T=>z(T.target.value),disabled:h,form:x,children:[D===void 0?d.jsx("option",{value:""}):null,Array.from(k)]},X):null]})})};S0.displayName=Za;var E0="SelectTrigger",C0=f.forwardRef((t,e)=>{const{__scopeSelect:n,disabled:a=!1,...l}=t,r=gs(n),o=ya(E0,n),i=o.disabled||a,s=vt(e,o.onTriggerChange),c=ps(n),m=f.useRef("touch"),[u,h,v]=K0(w=>{const S=c().filter(y=>!y.disabled),p=S.find(y=>y.value===o.value),g=$0(S,w,p);g!==void 0&&o.onValueChange(g.value)}),x=w=>{i||(o.onOpenChange(!0),v()),w&&(o.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return d.jsx(zf,{asChild:!0,...r,children:d.jsx(st.button,{type:"button",role:"combobox","aria-controls":o.contentId,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":"none",dir:o.dir,"data-state":o.open?"open":"closed",disabled:i,"data-disabled":i?"":void 0,"data-placeholder":Z0(o.value)?"":void 0,...l,ref:s,onClick:ot(l.onClick,w=>{w.currentTarget.focus(),m.current!=="mouse"&&x(w)}),onPointerDown:ot(l.onPointerDown,w=>{m.current=w.pointerType;const S=w.target;S.hasPointerCapture(w.pointerId)&&S.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(x(w),w.preventDefault())}),onKeyDown:ot(l.onKeyDown,w=>{const S=u.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&h(w.key),!(S&&w.key===" ")&&EC.includes(w.key)&&(x(),w.preventDefault())})})})});C0.displayName=E0;var A0="SelectValue",T0=f.forwardRef((t,e)=>{const{__scopeSelect:n,className:a,style:l,children:r,placeholder:o="",...i}=t,s=ya(A0,n),{onValueNodeHasChildrenChange:c}=s,m=r!==void 0,u=vt(e,s.onValueNodeChange);return ee(()=>{c(m)},[c,m]),d.jsx(st.span,{...i,ref:u,style:{pointerEvents:"none"},children:Z0(s.value)?d.jsx(d.Fragment,{children:o}):r})});T0.displayName=A0;var RC="SelectIcon",N0=f.forwardRef((t,e)=>{const{__scopeSelect:n,children:a,...l}=t;return d.jsx(st.span,{"aria-hidden":!0,...l,ref:e,children:a||"▼"})});N0.displayName=RC;var OC="SelectPortal",_0=t=>d.jsx(rs,{asChild:!0,...t});_0.displayName=OC;var Ka="SelectContent",R0=f.forwardRef((t,e)=>{const n=ya(Ka,t.__scopeSelect),[a,l]=f.useState();if(ee(()=>{l(new DocumentFragment)},[]),!n.open){const r=a;return r?Ia.createPortal(d.jsx(O0,{scope:t.__scopeSelect,children:d.jsx(hs.Slot,{scope:t.__scopeSelect,children:d.jsx("div",{children:t.children})})}),r):null}return d.jsx(M0,{...t,ref:e})});R0.displayName=Ka;var Ze=10,[O0,wa]=Il(Ka),MC="SelectContentImpl",DC=NE("SelectContent.RemoveScroll"),M0=f.forwardRef((t,e)=>{const{__scopeSelect:n,position:a="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:r,onPointerDownOutside:o,side:i,sideOffset:s,align:c,alignOffset:m,arrowPadding:u,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:S,...p}=t,g=ya(Ka,n),[y,b]=f.useState(null),[E,_]=f.useState(null),C=vt(e,H=>b(H)),[N,D]=f.useState(null),[z,L]=f.useState(null),U=ps(n),[k,j]=f.useState(!1),X=f.useRef(!1);f.useEffect(()=>{if(y)return Bf(y)},[y]),yf();const T=f.useCallback(H=>{const[Z,...dt]=U().map(M=>M.ref.current),[nt]=dt.slice(-1),tt=document.activeElement;for(const M of H)if(M===tt||(M==null||M.scrollIntoView({block:"nearest"}),M===Z&&E&&(E.scrollTop=0),M===nt&&E&&(E.scrollTop=E.scrollHeight),M==null||M.focus(),document.activeElement!==tt))return},[U,E]),R=f.useCallback(()=>T([N,y]),[T,N,y]);f.useEffect(()=>{k&&R()},[k,R]);const{onOpenChange:A,triggerPointerDownPosRef:V}=g;f.useEffect(()=>{if(y){let H={x:0,y:0};const Z=nt=>{var tt,M;H={x:Math.abs(Math.round(nt.pageX)-(((tt=V.current)==null?void 0:tt.x)??0)),y:Math.abs(Math.round(nt.pageY)-(((M=V.current)==null?void 0:M.y)??0))}},dt=nt=>{H.x<=10&&H.y<=10?nt.preventDefault():y.contains(nt.target)||A(!1),document.removeEventListener("pointermove",Z),V.current=null};return V.current!==null&&(document.addEventListener("pointermove",Z),document.addEventListener("pointerup",dt,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Z),document.removeEventListener("pointerup",dt,{capture:!0})}}},[y,A,V]),f.useEffect(()=>{const H=()=>A(!1);return window.addEventListener("blur",H),window.addEventListener("resize",H),()=>{window.removeEventListener("blur",H),window.removeEventListener("resize",H)}},[A]);const[Q,ft]=K0(H=>{const Z=U().filter(tt=>!tt.disabled),dt=Z.find(tt=>tt.ref.current===document.activeElement),nt=$0(Z,H,dt);nt&&setTimeout(()=>nt.ref.current.focus())}),Et=f.useCallback((H,Z,dt)=>{const nt=!X.current&&!dt;(g.value!==void 0&&g.value===Z||nt)&&(D(H),nt&&(X.current=!0))},[g.value]),Y=f.useCallback(()=>y==null?void 0:y.focus(),[y]),P=f.useCallback((H,Z,dt)=>{const nt=!X.current&&!dt;(g.value!==void 0&&g.value===Z||nt)&&L(H)},[g.value]),J=a==="popper"?Yf:D0,Ct=J===Yf?{side:i,sideOffset:s,align:c,alignOffset:m,arrowPadding:u,collisionBoundary:h,collisionPadding:v,sticky:x,hideWhenDetached:w,avoidCollisions:S}:{};return d.jsx(O0,{scope:n,content:y,viewport:E,onViewportChange:_,itemRefCallback:Et,selectedItem:N,onItemLeave:Y,itemTextRefCallback:P,focusSelectedItem:R,selectedItemText:z,position:a,isPositioned:k,searchRef:Q,children:d.jsx(ms,{as:DC,allowPinchZoom:!0,children:d.jsx(Zi,{asChild:!0,trapped:g.open,onMountAutoFocus:H=>{H.preventDefault()},onUnmountAutoFocus:ot(l,H=>{var Z;(Z=g.trigger)==null||Z.focus({preventScroll:!0}),H.preventDefault()}),children:d.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:H=>H.preventDefault(),onDismiss:()=>g.onOpenChange(!1),children:d.jsx(J,{role:"listbox",id:g.contentId,"data-state":g.open?"open":"closed",dir:g.dir,onContextMenu:H=>H.preventDefault(),...p,...Ct,onPlaced:()=>j(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...p.style},onKeyDown:ot(p.onKeyDown,H=>{const Z=H.ctrlKey||H.altKey||H.metaKey;if(H.key==="Tab"&&H.preventDefault(),!Z&&H.key.length===1&&ft(H.key),["ArrowUp","ArrowDown","Home","End"].includes(H.key)){let nt=U().filter(tt=>!tt.disabled).map(tt=>tt.ref.current);if(["ArrowUp","End"].includes(H.key)&&(nt=nt.slice().reverse()),["ArrowUp","ArrowDown"].includes(H.key)){const tt=H.target,M=nt.indexOf(tt);nt=nt.slice(M+1)}setTimeout(()=>T(nt)),H.preventDefault()}})})})})})})});M0.displayName=MC;var jC="SelectItemAlignedPosition",D0=f.forwardRef((t,e)=>{const{__scopeSelect:n,onPlaced:a,...l}=t,r=ya(Ka,n),o=wa(Ka,n),[i,s]=f.useState(null),[c,m]=f.useState(null),u=vt(e,C=>m(C)),h=ps(n),v=f.useRef(!1),x=f.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:p,focusSelectedItem:g}=o,y=f.useCallback(()=>{if(r.trigger&&r.valueNode&&i&&c&&w&&S&&p){const C=r.trigger.getBoundingClientRect(),N=c.getBoundingClientRect(),D=r.valueNode.getBoundingClientRect(),z=p.getBoundingClientRect();if(r.dir!=="rtl"){const tt=z.left-N.left,M=D.left-tt,mt=C.left-M,ht=C.width+mt,Ot=Math.max(ht,N.width),Wt=window.innerWidth-Ze,jt=Xi(M,[Ze,Math.max(Ze,Wt-Ot)]);i.style.minWidth=ht+"px",i.style.left=jt+"px"}else{const tt=N.right-z.right,M=window.innerWidth-D.right-tt,mt=window.innerWidth-C.right-M,ht=C.width+mt,Ot=Math.max(ht,N.width),Wt=window.innerWidth-Ze,jt=Xi(M,[Ze,Math.max(Ze,Wt-Ot)]);i.style.minWidth=ht+"px",i.style.right=jt+"px"}const L=h(),U=window.innerHeight-Ze*2,k=w.scrollHeight,j=window.getComputedStyle(c),X=parseInt(j.borderTopWidth,10),T=parseInt(j.paddingTop,10),R=parseInt(j.borderBottomWidth,10),A=parseInt(j.paddingBottom,10),V=X+T+k+A+R,Q=Math.min(S.offsetHeight*5,V),ft=window.getComputedStyle(w),Et=parseInt(ft.paddingTop,10),Y=parseInt(ft.paddingBottom,10),P=C.top+C.height/2-Ze,J=U-P,Ct=S.offsetHeight/2,H=S.offsetTop+Ct,Z=X+T+H,dt=V-Z;if(Z<=P){const tt=L.length>0&&S===L[L.length-1].ref.current;i.style.bottom="0px";const M=c.clientHeight-w.offsetTop-w.offsetHeight,mt=Math.max(J,Ct+(tt?Y:0)+M+R),ht=Z+mt;i.style.height=ht+"px"}else{const tt=L.length>0&&S===L[0].ref.current;i.style.top="0px";const mt=Math.max(P,X+w.offsetTop+(tt?Et:0)+Ct)+dt;i.style.height=mt+"px",w.scrollTop=Z-P+w.offsetTop}i.style.margin=`${Ze}px 0`,i.style.minHeight=Q+"px",i.style.maxHeight=U+"px",a==null||a(),requestAnimationFrame(()=>v.current=!0)}},[h,r.trigger,r.valueNode,i,c,w,S,p,r.dir,a]);ee(()=>y(),[y]);const[b,E]=f.useState();ee(()=>{c&&E(window.getComputedStyle(c).zIndex)},[c]);const _=f.useCallback(C=>{C&&x.current===!0&&(y(),g==null||g(),x.current=!1)},[y,g]);return d.jsx(LC,{scope:n,contentWrapper:i,shouldExpandOnScrollRef:v,onScrollButtonChange:_,children:d.jsx("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:b},children:d.jsx(st.div,{...l,ref:u,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});D0.displayName=jC;var zC="SelectPopperPosition",Yf=f.forwardRef((t,e)=>{const{__scopeSelect:n,align:a="start",collisionPadding:l=Ze,...r}=t,o=gs(n);return d.jsx(r0,{...o,...r,ref:e,align:a,collisionPadding:l,style:{boxSizing:"border-box",...r.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)"}})});Yf.displayName=zC;var[LC,qf]=Il(Ka,{}),Gf="SelectViewport",j0=f.forwardRef((t,e)=>{const{__scopeSelect:n,nonce:a,...l}=t,r=wa(Gf,n),o=qf(Gf,n),i=vt(e,r.onViewportChange),s=f.useRef(0);return d.jsxs(d.Fragment,{children:[d.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:a}),d.jsx(hs.Slot,{scope:n,children:d.jsx(st.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:i,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:ot(l.onScroll,c=>{const m=c.currentTarget,{contentWrapper:u,shouldExpandOnScrollRef:h}=o;if(h!=null&&h.current&&u){const v=Math.abs(s.current-m.scrollTop);if(v>0){const x=window.innerHeight-Ze*2,w=parseFloat(u.style.minHeight),S=parseFloat(u.style.height),p=Math.max(w,S);if(p<x){const g=p+v,y=Math.min(x,g),b=g-y;u.style.height=y+"px",u.style.bottom==="0px"&&(m.scrollTop=b>0?b:0,u.style.justifyContent="flex-end")}}}s.current=m.scrollTop})})})]})});j0.displayName=Gf;var z0="SelectGroup",[BC,UC]=Il(z0),HC=f.forwardRef((t,e)=>{const{__scopeSelect:n,...a}=t,l=Xa();return d.jsx(BC,{scope:n,id:l,children:d.jsx(st.div,{role:"group","aria-labelledby":l,...a,ref:e})})});HC.displayName=z0;var L0="SelectLabel",B0=f.forwardRef((t,e)=>{const{__scopeSelect:n,...a}=t,l=UC(L0,n);return d.jsx(st.div,{id:l.id,...a,ref:e})});B0.displayName=L0;var vs="SelectItem",[VC,U0]=Il(vs),H0=f.forwardRef((t,e)=>{const{__scopeSelect:n,value:a,disabled:l=!1,textValue:r,...o}=t,i=ya(vs,n),s=wa(vs,n),c=i.value===a,[m,u]=f.useState(r??""),[h,v]=f.useState(!1),x=vt(e,g=>{var y;return(y=s.itemRefCallback)==null?void 0:y.call(s,g,a,l)}),w=Xa(),S=f.useRef("touch"),p=()=>{l||(i.onValueChange(a),i.onOpenChange(!1))};if(a==="")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 d.jsx(VC,{scope:n,value:a,disabled:l,textId:w,isSelected:c,onItemTextChange:f.useCallback(g=>{u(y=>y||((g==null?void 0:g.textContent)??"").trim())},[]),children:d.jsx(hs.ItemSlot,{scope:n,value:a,disabled:l,textValue:m,children:d.jsx(st.div,{role:"option","aria-labelledby":w,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...o,ref:x,onFocus:ot(o.onFocus,()=>v(!0)),onBlur:ot(o.onBlur,()=>v(!1)),onClick:ot(o.onClick,()=>{S.current!=="mouse"&&p()}),onPointerUp:ot(o.onPointerUp,()=>{S.current==="mouse"&&p()}),onPointerDown:ot(o.onPointerDown,g=>{S.current=g.pointerType}),onPointerMove:ot(o.onPointerMove,g=>{var y;S.current=g.pointerType,l?(y=s.onItemLeave)==null||y.call(s):S.current==="mouse"&&g.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ot(o.onPointerLeave,g=>{var y;g.currentTarget===document.activeElement&&((y=s.onItemLeave)==null||y.call(s))}),onKeyDown:ot(o.onKeyDown,g=>{var b;((b=s.searchRef)==null?void 0:b.current)!==""&&g.key===" "||(CC.includes(g.key)&&p(),g.key===" "&&g.preventDefault())})})})})});H0.displayName=vs;var uo="SelectItemText",V0=f.forwardRef((t,e)=>{const{__scopeSelect:n,className:a,style:l,...r}=t,o=ya(uo,n),i=wa(uo,n),s=U0(uo,n),c=_C(uo,n),[m,u]=f.useState(null),h=vt(e,p=>u(p),s.onItemTextChange,p=>{var g;return(g=i.itemTextRefCallback)==null?void 0:g.call(i,p,s.value,s.disabled)}),v=m==null?void 0:m.textContent,x=f.useMemo(()=>d.jsx("option",{value:s.value,disabled:s.disabled,children:v},s.value),[s.disabled,s.value,v]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=c;return ee(()=>(w(x),()=>S(x)),[w,S,x]),d.jsxs(d.Fragment,{children:[d.jsx(st.span,{id:s.textId,...r,ref:h}),s.isSelected&&o.valueNode&&!o.valueNodeHasChildren?Ia.createPortal(r.children,o.valueNode):null]})});V0.displayName=uo;var k0="SelectItemIndicator",Y0=f.forwardRef((t,e)=>{const{__scopeSelect:n,...a}=t;return U0(k0,n).isSelected?d.jsx(st.span,{"aria-hidden":!0,...a,ref:e}):null});Y0.displayName=k0;var Pf="SelectScrollUpButton",q0=f.forwardRef((t,e)=>{const n=wa(Pf,t.__scopeSelect),a=qf(Pf,t.__scopeSelect),[l,r]=f.useState(!1),o=vt(e,a.onScrollButtonChange);return ee(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=s.scrollTop>0;r(c)};const s=n.viewport;return i(),s.addEventListener("scroll",i),()=>s.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),l?d.jsx(P0,{...t,ref:o,onAutoScroll:()=>{const{viewport:i,selectedItem:s}=n;i&&s&&(i.scrollTop=i.scrollTop-s.offsetHeight)}}):null});q0.displayName=Pf;var Xf="SelectScrollDownButton",G0=f.forwardRef((t,e)=>{const n=wa(Xf,t.__scopeSelect),a=qf(Xf,t.__scopeSelect),[l,r]=f.useState(!1),o=vt(e,a.onScrollButtonChange);return ee(()=>{if(n.viewport&&n.isPositioned){let i=function(){const c=s.scrollHeight-s.clientHeight,m=Math.ceil(s.scrollTop)<c;r(m)};const s=n.viewport;return i(),s.addEventListener("scroll",i),()=>s.removeEventListener("scroll",i)}},[n.viewport,n.isPositioned]),l?d.jsx(P0,{...t,ref:o,onAutoScroll:()=>{const{viewport:i,selectedItem:s}=n;i&&s&&(i.scrollTop=i.scrollTop+s.offsetHeight)}}):null});G0.displayName=Xf;var P0=f.forwardRef((t,e)=>{const{__scopeSelect:n,onAutoScroll:a,...l}=t,r=wa("SelectScrollButton",n),o=f.useRef(null),i=ps(n),s=f.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return f.useEffect(()=>()=>s(),[s]),ee(()=>{var m;const c=i().find(u=>u.ref.current===document.activeElement);(m=c==null?void 0:c.ref.current)==null||m.scrollIntoView({block:"nearest"})},[i]),d.jsx(st.div,{"aria-hidden":!0,...l,ref:e,style:{flexShrink:0,...l.style},onPointerDown:ot(l.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(a,50))}),onPointerMove:ot(l.onPointerMove,()=>{var c;(c=r.onItemLeave)==null||c.call(r),o.current===null&&(o.current=window.setInterval(a,50))}),onPointerLeave:ot(l.onPointerLeave,()=>{s()})})}),kC="SelectSeparator",X0=f.forwardRef((t,e)=>{const{__scopeSelect:n,...a}=t;return d.jsx(st.div,{"aria-hidden":!0,...a,ref:e})});X0.displayName=kC;var Qf="SelectArrow",YC=f.forwardRef((t,e)=>{const{__scopeSelect:n,...a}=t,l=gs(n),r=ya(Qf,n),o=wa(Qf,n);return r.open&&o.position==="popper"?d.jsx(o0,{...l,...a,ref:e}):null});YC.displayName=Qf;var qC="SelectBubbleInput",Q0=f.forwardRef(({__scopeSelect:t,value:e,...n},a)=>{const l=f.useRef(null),r=vt(a,l),o=i0(e);return f.useEffect(()=>{const i=l.current;if(!i)return;const s=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(s,"value").set;if(o!==e&&m){const u=new Event("change",{bubbles:!0});m.call(i,e),i.dispatchEvent(u)}},[o,e]),d.jsx(st.select,{...n,style:{...s0,...n.style},ref:r,defaultValue:e})});Q0.displayName=qC;function Z0(t){return t===""||t===void 0}function K0(t){const e=Pa(t),n=f.useRef(""),a=f.useRef(0),l=f.useCallback(o=>{const i=n.current+o;e(i),function s(c){n.current=c,window.clearTimeout(a.current),c!==""&&(a.current=window.setTimeout(()=>s(""),1e3))}(i)},[e]),r=f.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return f.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,l,r]}function $0(t,e,n){const l=e.length>1&&Array.from(e).every(c=>c===e[0])?e[0]:e,r=n?t.indexOf(n):-1;let o=GC(t,Math.max(r,0));l.length===1&&(o=o.filter(c=>c!==n));const s=o.find(c=>c.textValue.toLowerCase().startsWith(l.toLowerCase()));return s!==n?s:void 0}function GC(t,e){return t.map((n,a)=>t[(e+a)%t.length])}var PC=S0,J0=C0,XC=T0,QC=N0,ZC=_0,F0=R0,KC=j0,W0=B0,I0=H0,$C=V0,JC=Y0,ty=q0,ey=G0,ny=X0;/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ay=(...t)=>t.filter((e,n,a)=>!!e&&e.trim()!==""&&a.indexOf(e)===n).join(" ").trim();/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FC=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WC=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,a)=>a?a.toUpperCase():n.toLowerCase());/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ly=t=>{const e=WC(t);return e.charAt(0).toUpperCase()+e.slice(1)};/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var IC={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.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tA=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0;return!1};/**
 * @license lucide-react v0.564.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=f.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:l="",children:r,iconNode:o,...i},s)=>f.createElement("svg",{ref:s,...IC,width:e,height:e,stroke:t,strokeWidth:a?Number(n)*24/Number(e):n,className:ay("lucide",l),...!r&&!tA(i)&&{"aria-hidden":"true"},...i},[...o.map(([c,m])=>f.createElement(c,m)),...Array.isArray(r)?r:[r]]));/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hn=(t,e)=>{const n=f.forwardRef(({className:a,...l},r)=>f.createElement(eA,{ref:r,iconNode:e,className:ay(`lucide-${FC(ly(t))}`,`lucide-${t}`,a),...l}));return n.displayName=ly(t),n};/**
 * @license lucide-react v0.564.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=Hn("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zf=Hn("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aA=Hn("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lA=Hn("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
 * @license lucide-react v0.564.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=Hn("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ry=Hn("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/**
 * @license lucide-react v0.564.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=Hn("sliders-horizontal",[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]]);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const iA=Hn("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.564.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oy=Hn("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),Vn=PC,kn=XC,fn=f.forwardRef(({className:t,children:e,...n},a)=>d.jsxs(J0,{ref:a,className:$("tw:flex tw:h-9 tw:w-full tw:items-center tw:justify-between tw:whitespace-nowrap tw:rounded-md tw:border tw:border-gray-300 tw:bg-white tw:px-3 tw:py-2 tw:text-sm tw:shadow-sm tw:ring-offset-background tw:data-[placeholder]:text-muted-foreground tw:focus:outline-none tw:focus:ring-1 tw:focus:ring-ring tw:disabled:cursor-not-allowed tw:disabled:opacity-50 tw:[&>span]:line-clamp-1",t),...n,children:[e,d.jsx(QC,{asChild:!0,children:d.jsx(Zf,{className:"tw:h-4 tw:w-4 tw:opacity-50"})})]}));fn.displayName=J0.displayName;const iy=f.forwardRef(({className:t,...e},n)=>d.jsx(ty,{ref:n,className:$("tw:flex tw:cursor-default tw:items-center tw:justify-center tw:py-1",t),...e,children:d.jsx(aA,{className:"tw:h-4 tw:w-4"})}));iy.displayName=ty.displayName;const sy=f.forwardRef(({className:t,...e},n)=>d.jsx(ey,{ref:n,className:$("tw:flex tw:cursor-default tw:items-center tw:justify-center tw:py-1",t),...e,children:d.jsx(Zf,{className:"tw:h-4 tw:w-4"})}));sy.displayName=ey.displayName;const dn=f.forwardRef(({className:t,children:e,position:n="popper",container:a,disablePortal:l,...r},o)=>{const i=d.jsxs(F0,{ref:o,className:$("tw:relative tw:z-50 tw:max-h-[--radix-select-content-available-height] tw:min-w-[8rem] tw:overflow-y-auto tw:overflow-x-hidden tw:rounded-md tw:border tw:border-gray-200 tw:bg-white tw:text-popover-foreground tw:shadow-md tw:origin-[--radix-select-content-transform-origin]",n==="popper"&&"tw:data-[side=bottom]:translate-y-1 tw:data-[side=left]:-translate-x-1 tw:data-[side=right]:translate-x-1 tw:data-[side=top]:-translate-y-1",t),position:n,...r,children:[d.jsx(iy,{}),d.jsx(KC,{className:$("tw:p-1",n==="popper"&&"tw:h-[var(--radix-select-trigger-height)] tw:w-full tw:min-w-[var(--radix-select-trigger-width)]"),children:e}),d.jsx(sy,{})]});return l?i:d.jsx(ZC,{container:a||void 0,children:i})});dn.displayName=F0.displayName;const sA=f.forwardRef(({className:t,...e},n)=>d.jsx(W0,{ref:n,className:$("tw:px-2 tw:py-1.5 tw:text-sm tw:font-semibold",t),...e}));sA.displayName=W0.displayName;const he=f.forwardRef(({className:t,children:e,...n},a)=>d.jsxs(I0,{ref:a,className:$("tw:relative tw:flex tw:w-full tw:cursor-default tw:select-none tw:items-center tw:rounded-sm tw:py-1.5 tw:pl-2 tw:pr-8 tw:text-sm tw:outline-none tw:hover:bg-primary/10 tw:focus:bg-primary/15 tw:focus:text-foreground tw:data-[disabled]:pointer-events-none tw:data-[disabled]:opacity-50",t),...n,children:[d.jsx("span",{className:"tw:absolute tw:right-2 tw:flex tw:h-3.5 tw:w-3.5 tw:items-center tw:justify-center",children:d.jsx(JC,{children:d.jsx(nA,{className:"tw:h-4 tw:w-4"})})}),d.jsx($C,{children:e})]}));he.displayName=I0.displayName;const cA=f.forwardRef(({className:t,...e},n)=>d.jsx(ny,{ref:n,className:$("tw:-mx-1 tw:my-1 tw:h-px tw:bg-muted",t),...e}));cA.displayName=ny.displayName;function uA(t){const{ajaxUrl:e,nonce:n,debounceMs:a=300,minLength:l=2}=t,[r,o]=f.useState([]),[i,s]=f.useState(!1),[c,m]=f.useState(-1),u=f.useRef(void 0),h=f.useRef(null),v=f.useCallback(async g=>{var b;if(g.length<l){o([]);return}h.current&&h.current.abort();const y=new AbortController;h.current=y,s(!0);try{const E=new URLSearchParams({action:"psfa_autocomplete",nonce:n,q:g}),C=await(await fetch(`${e}?${E.toString()}`,{signal:h.current.signal})).json();C.success&&((b=C.data)!=null&&b.suggestions)?(o(C.data.suggestions),m(-1)):o([])}catch(E){if(E instanceof Error&&E.name==="AbortError")return;o([])}finally{s(!1)}},[e,n,l]),x=f.useCallback(g=>{if(u.current&&clearTimeout(u.current),g.length<l){o([]);return}u.current=setTimeout(()=>{v(g)},a)},[v,a,l]),w=f.useCallback(()=>{o([]),m(-1)},[]),S=f.useCallback(g=>{if(r.length!==0)switch(g.key){case"ArrowDown":g.preventDefault(),m(y=>Math.min(y+1,r.length-1));break;case"ArrowUp":g.preventDefault(),m(y=>Math.max(y-1,-1));break;case"Escape":g.preventDefault(),w();break}},[r.length,w]),p=f.useCallback(()=>c>=0&&c<r.length?r[c]:null,[c,r]);return f.useEffect(()=>()=>{u.current&&clearTimeout(u.current),h.current&&h.current.abort()},[]),{suggestions:r,isLoading:i,selectedIndex:c,setSelectedIndex:m,fetchSuggestions:x,clearSuggestions:w,handleKeyDown:S,getSelectedSuggestion:p}}const fA=[{value:"All",label:"All Categories"},{value:"Electronics",label:"Electronics"},{value:"Computers",label:"Computers"},{value:"HomeAndKitchen",label:"Home & Kitchen"},{value:"Fashion",label:"Fashion"},{value:"Beauty",label:"Beauty"},{value:"Books",label:"Books"},{value:"Toys",label:"Toys & Games"},{value:"Sports",label:"Sports & Outdoors"}],dA=[{value:"Relevance",label:"Relevance"},{value:"Price:LowToHigh",label:"Price: Low to High"},{value:"Price:HighToLow",label:"Price: High to Low"},{value:"AvgCustomerReviews",label:"Customer Reviews"},{value:"NewestArrivals",label:"Newest Arrivals"}];function mA({initialQuery:t="",initialCategory:e="All",initialSort:n="Relevance",categories:a=fA,sortOptions:l=dA,onSearch:r,showCategory:o=!0,showSort:i=!0,className:s,ajaxUrl:c="",nonce:m="",enableAutocomplete:u=!0,showFiltersToggle:h=!1,filtersExpanded:v=!1,onFiltersToggle:x,activeFilterCount:w=0,onClearAll:S}){const[p,g]=f.useState(t),[y,b]=f.useState(e),[E,_]=f.useState(n),[C,N]=f.useState(!1),D=f.useRef(null),z=f.useRef(null),L=uA({ajaxUrl:c,nonce:m,debounceMs:300,minLength:2}),U=f.useCallback(R=>{const A=R.target.value;g(A),u&&c&&m&&(L.fetchSuggestions(A),N(!0))},[u,c,m,L]),k=f.useCallback(R=>{g(R),N(!1),L.clearSuggestions(),r==null||r({query:R,category:y,sort:E})},[y,E,r,L]),j=f.useCallback(R=>{if(!(!C||L.suggestions.length===0)&&(L.handleKeyDown(R),R.key==="Enter")){const A=L.getSelectedSuggestion();A&&(R.preventDefault(),k(A))}},[C,L,k]);f.useEffect(()=>{const R=A=>{D.current&&!D.current.contains(A.target)&&z.current&&!z.current.contains(A.target)&&N(!1)};return document.addEventListener("mousedown",R),()=>document.removeEventListener("mousedown",R)},[]);const X=f.useCallback(R=>{R.preventDefault(),N(!1),L.clearSuggestions(),r==null||r({query:p,category:y,sort:E})},[p,y,E,r,L]),T=f.useCallback(()=>{g(""),L.clearSuggestions(),N(!1),S==null||S()},[L,S]);return d.jsxs("form",{onSubmit:X,className:$("tw:flex tw:flex-col tw:gap-3 tw:sm:flex-row tw:sm:items-center tw:max-w-[500px] tw:mx-auto",s),children:[d.jsxs("div",{className:"tw:relative tw:flex-1",children:[d.jsx(ry,{className:"tw:absolute tw:left-3 tw:top-1/2 tw:h-4 tw:w-4 tw:-translate-y-1/2 tw:text-muted-foreground tw:pointer-events-none tw:z-10"}),d.jsx(pf,{ref:D,type:"text",placeholder:"Search for products...",value:p,onChange:U,onKeyDown:j,onFocus:()=>L.suggestions.length>0&&N(!0),className:"tw:pl-10 tw:pr-10",autoComplete:"off"}),L.isLoading?d.jsx(lA,{className:"tw:absolute tw:right-3 tw:top-1/2 tw:-translate-y-1/2 tw:h-4 tw:w-4 tw:animate-spin tw:text-muted-foreground"}):p?d.jsx("button",{type:"button",onClick:T,className:"tw:absolute tw:right-3 tw:top-1/2 tw:-translate-y-1/2 tw:text-muted-foreground tw:hover:text-foreground",children:d.jsx(oy,{className:"tw:h-4 tw:w-4"})}):null,C&&L.suggestions.length>0&&d.jsx("div",{ref:z,className:"psfa-autocomplete-suggestions tw:absolute tw:top-full tw:left-0 tw:right-0 tw:z-[9999] tw:mt-1 tw:bg-white tw:border tw:border-gray-200 tw:rounded-md tw:shadow-lg tw:max-h-60 tw:overflow-auto",children:L.suggestions.map((R,A)=>d.jsx("button",{type:"button",onClick:()=>k(R),className:$("tw:w-full tw:px-3 tw:py-2 tw:text-left tw:text-sm tw:hover:bg-primary/10 tw:cursor-pointer",A===L.selectedIndex&&"tw:bg-primary/15"),children:R},R))})]}),o&&d.jsxs(Vn,{value:y,onValueChange:b,children:[d.jsx(fn,{className:"tw:w-full tw:sm:w-48",children:d.jsx(kn,{placeholder:"Category"})}),d.jsx(dn,{children:a.map(R=>d.jsx(he,{value:R.value,children:R.label},R.value))})]}),i&&d.jsxs(Vn,{value:E,onValueChange:_,children:[d.jsx(fn,{className:"tw:w-full tw:sm:w-44",children:d.jsx(kn,{placeholder:"Sort by"})}),d.jsx(dn,{children:l.map(R=>d.jsx(he,{value:R.value,children:R.label},R.value))})]}),h&&x&&d.jsxs("button",{type:"button",onClick:x,className:$("tw:relative tw:p-2 tw:rounded-md tw:border tw:border-gray-300 tw:bg-white tw:text-gray-600 tw:hover:bg-gray-50 tw:hover:text-gray-900 tw:transition-colors",v&&"tw:bg-primary/10 tw:border-primary tw:text-primary"),"aria-expanded":v,"aria-label":"Toggle filters",title:v?"Hide filters":"Show filters",children:[d.jsx(oA,{className:"tw:h-5 tw:w-5"}),(w??0)>0&&d.jsx("span",{className:"tw:absolute tw:-top-1.5 tw:-right-1.5 tw:bg-primary tw:text-white tw:text-[10px] tw:font-medium tw:min-w-[18px] tw:h-[18px] tw:flex tw:items-center tw:justify-center tw:rounded-full tw:px-1",children:w})]}),d.jsxs(ln,{type:"submit",className:"tw:gap-2",children:[d.jsx(ry,{className:"tw:h-4 tw:w-4"}),"Search"]})]})}var cy=["PageUp","PageDown"],uy=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],fy={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},tr="Slider",[Kf,hA,pA]=mv(tr),[dy]=Pl(tr,[pA]),[gA,ys]=dy(tr),my=f.forwardRef((t,e)=>{const{name:n,min:a=0,max:l=100,step:r=1,orientation:o="horizontal",disabled:i=!1,minStepsBetweenThumbs:s=0,defaultValue:c=[a],value:m,onValueChange:u=()=>{},onValueCommit:h=()=>{},inverted:v=!1,form:x,...w}=t,S=f.useRef(new Set),p=f.useRef(0),y=o==="horizontal"?vA:yA,[b=[],E]=co({prop:m,defaultProp:c,onChange:L=>{var k;(k=[...S.current][p.current])==null||k.focus(),u(L)}}),_=f.useRef(b);function C(L){const U=EA(b,L);z(L,U)}function N(L){z(L,p.current)}function D(){const L=_.current[p.current];b[p.current]!==L&&h(b)}function z(L,U,{commit:k}={commit:!1}){const j=NA(r),X=_A(Math.round((L-a)/r)*r+a,j),T=Xi(X,[a,l]);E((R=[])=>{const A=xA(R,T,U);if(TA(A,s*r)){p.current=A.indexOf(T);const V=String(A)!==String(R);return V&&k&&h(A),V?A:R}else return R})}return d.jsx(gA,{scope:t.__scopeSlider,name:n,disabled:i,min:a,max:l,valueIndexToChangeRef:p,thumbs:S.current,values:b,orientation:o,form:x,children:d.jsx(Kf.Provider,{scope:t.__scopeSlider,children:d.jsx(Kf.Slot,{scope:t.__scopeSlider,children:d.jsx(y,{"aria-disabled":i,"data-disabled":i?"":void 0,...w,ref:e,onPointerDown:ot(w.onPointerDown,()=>{i||(_.current=b)}),min:a,max:l,inverted:v,onSlideStart:i?void 0:C,onSlideMove:i?void 0:N,onSlideEnd:i?void 0:D,onHomeKeyDown:()=>!i&&z(a,0,{commit:!0}),onEndKeyDown:()=>!i&&z(l,b.length-1,{commit:!0}),onStepKeyDown:({event:L,direction:U})=>{if(!i){const X=cy.includes(L.key)||L.shiftKey&&uy.includes(L.key)?10:1,T=p.current,R=b[T],A=r*X*U;z(R+A,T,{commit:!0})}}})})})})});my.displayName=tr;var[hy,py]=dy(tr,{startEdge:"left",endEdge:"right",size:"width",direction:1}),vA=f.forwardRef((t,e)=>{const{min:n,max:a,dir:l,inverted:r,onSlideStart:o,onSlideMove:i,onSlideEnd:s,onStepKeyDown:c,...m}=t,[u,h]=f.useState(null),v=vt(e,y=>h(y)),x=f.useRef(void 0),w=hv(l),S=w==="ltr",p=S&&!r||!S&&r;function g(y){const b=x.current||u.getBoundingClientRect(),E=[0,b.width],C=Ff(E,p?[n,a]:[a,n]);return x.current=b,C(y-b.left)}return d.jsx(hy,{scope:t.__scopeSlider,startEdge:p?"left":"right",endEdge:p?"right":"left",direction:p?1:-1,size:"width",children:d.jsx(gy,{dir:w,"data-orientation":"horizontal",...m,ref:v,style:{...m.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{const b=g(y.clientX);o==null||o(b)},onSlideMove:y=>{const b=g(y.clientX);i==null||i(b)},onSlideEnd:()=>{x.current=void 0,s==null||s()},onStepKeyDown:y=>{const E=fy[p?"from-left":"from-right"].includes(y.key);c==null||c({event:y,direction:E?-1:1})}})})}),yA=f.forwardRef((t,e)=>{const{min:n,max:a,inverted:l,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onStepKeyDown:s,...c}=t,m=f.useRef(null),u=vt(e,m),h=f.useRef(void 0),v=!l;function x(w){const S=h.current||m.current.getBoundingClientRect(),p=[0,S.height],y=Ff(p,v?[a,n]:[n,a]);return h.current=S,y(w-S.top)}return d.jsx(hy,{scope:t.__scopeSlider,startEdge:v?"bottom":"top",endEdge:v?"top":"bottom",size:"height",direction:v?1:-1,children:d.jsx(gy,{"data-orientation":"vertical",...c,ref:u,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:w=>{const S=x(w.clientY);r==null||r(S)},onSlideMove:w=>{const S=x(w.clientY);o==null||o(S)},onSlideEnd:()=>{h.current=void 0,i==null||i()},onStepKeyDown:w=>{const p=fy[v?"from-bottom":"from-top"].includes(w.key);s==null||s({event:w,direction:p?-1:1})}})})}),gy=f.forwardRef((t,e)=>{const{__scopeSlider:n,onSlideStart:a,onSlideMove:l,onSlideEnd:r,onHomeKeyDown:o,onEndKeyDown:i,onStepKeyDown:s,...c}=t,m=ys(tr,n);return d.jsx(st.span,{...c,ref:e,onKeyDown:ot(t.onKeyDown,u=>{u.key==="Home"?(o(u),u.preventDefault()):u.key==="End"?(i(u),u.preventDefault()):cy.concat(uy).includes(u.key)&&(s(u),u.preventDefault())}),onPointerDown:ot(t.onPointerDown,u=>{const h=u.target;h.setPointerCapture(u.pointerId),u.preventDefault(),m.thumbs.has(h)?h.focus():a(u)}),onPointerMove:ot(t.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&l(u)}),onPointerUp:ot(t.onPointerUp,u=>{const h=u.target;h.hasPointerCapture(u.pointerId)&&(h.releasePointerCapture(u.pointerId),r(u))})})}),vy="SliderTrack",yy=f.forwardRef((t,e)=>{const{__scopeSlider:n,...a}=t,l=ys(vy,n);return d.jsx(st.span,{"data-disabled":l.disabled?"":void 0,"data-orientation":l.orientation,...a,ref:e})});yy.displayName=vy;var $f="SliderRange",wy=f.forwardRef((t,e)=>{const{__scopeSlider:n,...a}=t,l=ys($f,n),r=py($f,n),o=f.useRef(null),i=vt(e,o),s=l.values.length,c=l.values.map(h=>Sy(h,l.min,l.max)),m=s>1?Math.min(...c):0,u=100-Math.max(...c);return d.jsx(st.span,{"data-orientation":l.orientation,"data-disabled":l.disabled?"":void 0,...a,ref:i,style:{...t.style,[r.startEdge]:m+"%",[r.endEdge]:u+"%"}})});wy.displayName=$f;var Jf="SliderThumb",by=f.forwardRef((t,e)=>{const n=hA(t.__scopeSlider),[a,l]=f.useState(null),r=vt(e,i=>l(i)),o=f.useMemo(()=>a?n().findIndex(i=>i.ref.current===a):-1,[n,a]);return d.jsx(wA,{...t,ref:r,index:o})}),wA=f.forwardRef((t,e)=>{const{__scopeSlider:n,index:a,name:l,...r}=t,o=ys(Jf,n),i=py(Jf,n),[s,c]=f.useState(null),m=vt(e,g=>c(g)),u=s?o.form||!!s.closest("form"):!0,h=Kv(s),v=o.values[a],x=v===void 0?0:Sy(v,o.min,o.max),w=SA(a,o.values.length),S=h==null?void 0:h[i.size],p=S?CA(S,x,i.direction):0;return f.useEffect(()=>{if(s)return o.thumbs.add(s),()=>{o.thumbs.delete(s)}},[s,o.thumbs]),d.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[i.startEdge]:`calc(${x}% + ${p}px)`},children:[d.jsx(Kf.ItemSlot,{scope:t.__scopeSlider,children:d.jsx(st.span,{role:"slider","aria-label":t["aria-label"]||w,"aria-valuemin":o.min,"aria-valuenow":v,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...r,ref:m,style:v===void 0?{display:"none"}:t.style,onFocus:ot(t.onFocus,()=>{o.valueIndexToChangeRef.current=a})})}),u&&d.jsx(xy,{name:l??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:v},a)]})});by.displayName=Jf;var bA="RadioBubbleInput",xy=f.forwardRef(({__scopeSlider:t,value:e,...n},a)=>{const l=f.useRef(null),r=vt(l,a),o=i0(e);return f.useEffect(()=>{const i=l.current;if(!i)return;const s=window.HTMLInputElement.prototype,m=Object.getOwnPropertyDescriptor(s,"value").set;if(o!==e&&m){const u=new Event("input",{bubbles:!0});m.call(i,e),i.dispatchEvent(u)}},[o,e]),d.jsx(st.input,{style:{display:"none"},...n,ref:r,defaultValue:e})});xy.displayName=bA;function xA(t=[],e,n){const a=[...t];return a[n]=e,a.sort((l,r)=>l-r)}function Sy(t,e,n){const r=100/(n-e)*(t-e);return Xi(r,[0,100])}function SA(t,e){return e>2?`Value ${t+1} of ${e}`:e===2?["Minimum","Maximum"][t]:void 0}function EA(t,e){if(t.length===1)return 0;const n=t.map(l=>Math.abs(l-e)),a=Math.min(...n);return n.indexOf(a)}function CA(t,e,n){const a=t/2,r=Ff([0,50],[0,a]);return(a-r(e)*n)*n}function AA(t){return t.slice(0,-1).map((e,n)=>t[n+1]-e)}function TA(t,e){if(e>0){const n=AA(t);return Math.min(...n)>=e}return!0}function Ff(t,e){return n=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const a=(e[1]-e[0])/(t[1]-t[0]);return e[0]+a*(n-t[0])}}function NA(t){return(String(t).split(".")[1]||"").length}function _A(t,e){const n=Math.pow(10,e);return Math.round(t*n)/n}var Ey=my,RA=yy,OA=wy,MA=by;const Cy=f.forwardRef(({className:t,...e},n)=>{const a=e.value??e.defaultValue??[0];return d.jsxs(Ey,{ref:n,className:$("tw:relative tw:flex tw:w-full tw:touch-none tw:select-none tw:items-center tw:group",t),...e,children:[d.jsx(RA,{className:"tw:relative tw:h-1.5 tw:w-full tw:grow tw:overflow-hidden tw:rounded-full tw:bg-primary/20 tw:dark:bg-primary/30 tw:data-[disabled]:bg-gray-200 tw:dark:data-[disabled]:bg-gray-700",children:d.jsx(OA,{className:"tw:absolute tw:h-full tw:bg-primary tw:data-[disabled]:bg-gray-300 tw:dark:data-[disabled]:bg-gray-600"})}),a.map((l,r)=>d.jsx(MA,{className:"tw:block tw:h-4 tw:w-4 tw:rounded-full tw:border tw:border-primary/50 tw:bg-background tw:shadow tw:transition-colors tw:focus-visible:outline-none tw:focus-visible:ring-1 tw:focus-visible:ring-ring tw:disabled:pointer-events-none tw:disabled:opacity-50 tw:data-[disabled]:border-gray-300 tw:dark:data-[disabled]:border-gray-600"},r))]})});Cy.displayName=Ey.displayName;function DA(t,e){return f.useReducer((n,a)=>e[n][a]??n,t)}var er=t=>{const{present:e,children:n}=t,a=jA(e),l=typeof n=="function"?n({present:a.isPresent}):f.Children.only(n),r=vt(a.ref,zA(l));return typeof n=="function"||a.isPresent?f.cloneElement(l,{ref:r}):null};er.displayName="Presence";function jA(t){const[e,n]=f.useState(),a=f.useRef(null),l=f.useRef(t),r=f.useRef("none"),o=t?"mounted":"unmounted",[i,s]=DA(o,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const c=ws(a.current);r.current=i==="mounted"?c:"none"},[i]),ee(()=>{const c=a.current,m=l.current;if(m!==t){const h=r.current,v=ws(c);t?s("MOUNT"):v==="none"||(c==null?void 0:c.display)==="none"?s("UNMOUNT"):s(m&&h!==v?"ANIMATION_OUT":"UNMOUNT"),l.current=t}},[t,s]),ee(()=>{if(e){let c;const m=e.ownerDocument.defaultView??window,u=v=>{const w=ws(a.current).includes(CSS.escape(v.animationName));if(v.target===e&&w&&(s("ANIMATION_END"),!l.current)){const S=e.style.animationFillMode;e.style.animationFillMode="forwards",c=m.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=S)})}},h=v=>{v.target===e&&(r.current=ws(a.current))};return e.addEventListener("animationstart",h),e.addEventListener("animationcancel",u),e.addEventListener("animationend",u),()=>{m.clearTimeout(c),e.removeEventListener("animationstart",h),e.removeEventListener("animationcancel",u),e.removeEventListener("animationend",u)}}else s("ANIMATION_END")},[e,s]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:f.useCallback(c=>{a.current=c?getComputedStyle(c):null,n(c)},[])}}function ws(t){return(t==null?void 0:t.animationName)||"none"}function zA(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}function LA(t){const e=BA(t),n=f.forwardRef((a,l)=>{const{children:r,...o}=a,i=f.Children.toArray(r),s=i.find(HA);if(s){const c=s.props.children,m=i.map(u=>u===s?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return d.jsx(e,{...o,ref:l,children:f.isValidElement(c)?f.cloneElement(c,void 0,m):null})}return d.jsx(e,{...o,ref:l,children:r})});return n.displayName=`${t}.Slot`,n}function BA(t){const e=f.forwardRef((n,a)=>{const{children:l,...r}=n;if(f.isValidElement(l)){const o=kA(l),i=VA(r,l.props);return l.type!==f.Fragment&&(i.ref=a?Ga(a,o):o),f.cloneElement(l,i)}return f.Children.count(l)>1?f.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var UA=Symbol("radix.slottable");function HA(t){return f.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===UA}function VA(t,e){const n={...e};for(const a in e){const l=t[a],r=e[a];/^on[A-Z]/.test(a)?l&&r?n[a]=(...i)=>{const s=r(...i);return l(...i),s}:l&&(n[a]=l):a==="style"?n[a]={...l,...r}:a==="className"&&(n[a]=[l,r].filter(Boolean).join(" "))}return{...t,...n}}function kA(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var bs="Popover",[Ay]=Pl(bs,[ls]),fo=ls(),[YA,ba]=Ay(bs),Ty=t=>{const{__scopePopover:e,children:n,open:a,defaultOpen:l,onOpenChange:r,modal:o=!1}=t,i=fo(e),s=f.useRef(null),[c,m]=f.useState(!1),[u,h]=co({prop:a,defaultProp:l??!1,onChange:r,caller:bs});return d.jsx(l0,{...i,children:d.jsx(YA,{scope:e,contentId:Xa(),triggerRef:s,open:u,onOpenChange:h,onOpenToggle:f.useCallback(()=>h(v=>!v),[h]),hasCustomAnchor:c,onCustomAnchorAdd:f.useCallback(()=>m(!0),[]),onCustomAnchorRemove:f.useCallback(()=>m(!1),[]),modal:o,children:n})})};Ty.displayName=bs;var Ny="PopoverAnchor",qA=f.forwardRef((t,e)=>{const{__scopePopover:n,...a}=t,l=ba(Ny,n),r=fo(n),{onCustomAnchorAdd:o,onCustomAnchorRemove:i}=l;return f.useEffect(()=>(o(),()=>i()),[o,i]),d.jsx(zf,{...r,...a,ref:e})});qA.displayName=Ny;var _y="PopoverTrigger",Ry=f.forwardRef((t,e)=>{const{__scopePopover:n,...a}=t,l=ba(_y,n),r=fo(n),o=vt(e,l.triggerRef),i=d.jsx(st.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":zy(l.open),...a,ref:o,onClick:ot(t.onClick,l.onOpenToggle)});return l.hasCustomAnchor?i:d.jsx(zf,{asChild:!0,...r,children:i})});Ry.displayName=_y;var Wf="PopoverPortal",[GA,PA]=Ay(Wf,{forceMount:void 0}),Oy=t=>{const{__scopePopover:e,forceMount:n,children:a,container:l}=t,r=ba(Wf,e);return d.jsx(GA,{scope:e,forceMount:n,children:d.jsx(er,{present:n||r.open,children:d.jsx(rs,{asChild:!0,container:l,children:a})})})};Oy.displayName=Wf;var nr="PopoverContent",My=f.forwardRef((t,e)=>{const n=PA(nr,t.__scopePopover),{forceMount:a=n.forceMount,...l}=t,r=ba(nr,t.__scopePopover);return d.jsx(er,{present:a||r.open,children:r.modal?d.jsx(QA,{...l,ref:e}):d.jsx(ZA,{...l,ref:e})})});My.displayName=nr;var XA=LA("PopoverContent.RemoveScroll"),QA=f.forwardRef((t,e)=>{const n=ba(nr,t.__scopePopover),a=f.useRef(null),l=vt(e,a),r=f.useRef(!1);return f.useEffect(()=>{const o=a.current;if(o)return Bf(o)},[]),d.jsx(ms,{as:XA,allowPinchZoom:!0,children:d.jsx(Dy,{...t,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ot(t.onCloseAutoFocus,o=>{var i;o.preventDefault(),r.current||(i=n.triggerRef.current)==null||i.focus()}),onPointerDownOutside:ot(t.onPointerDownOutside,o=>{const i=o.detail.originalEvent,s=i.button===0&&i.ctrlKey===!0,c=i.button===2||s;r.current=c},{checkForDefaultPrevented:!1}),onFocusOutside:ot(t.onFocusOutside,o=>o.preventDefault(),{checkForDefaultPrevented:!1})})})}),ZA=f.forwardRef((t,e)=>{const n=ba(nr,t.__scopePopover),a=f.useRef(!1),l=f.useRef(!1);return d.jsx(Dy,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{var o,i;(o=t.onCloseAutoFocus)==null||o.call(t,r),r.defaultPrevented||(a.current||(i=n.triggerRef.current)==null||i.focus(),r.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:r=>{var s,c;(s=t.onInteractOutside)==null||s.call(t,r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const o=r.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&l.current&&r.preventDefault()}})}),Dy=f.forwardRef((t,e)=>{const{__scopePopover:n,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:r,disableOutsidePointerEvents:o,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onInteractOutside:m,...u}=t,h=ba(nr,n),v=fo(n);return yf(),d.jsx(Zi,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:r,children:d.jsx(Qi,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:m,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:c,onDismiss:()=>h.onOpenChange(!1),children:d.jsx(r0,{"data-state":zy(h.open),role:"dialog",id:h.contentId,...v,...u,ref:e,style:{...u.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),jy="PopoverClose",KA=f.forwardRef((t,e)=>{const{__scopePopover:n,...a}=t,l=ba(jy,n);return d.jsx(st.button,{type:"button",...a,ref:e,onClick:ot(t.onClick,()=>l.onOpenChange(!1))})});KA.displayName=jy;var $A="PopoverArrow",JA=f.forwardRef((t,e)=>{const{__scopePopover:n,...a}=t,l=fo(n);return d.jsx(o0,{...l,...a,ref:e})});JA.displayName=$A;function zy(t){return t?"open":"closed"}var FA=Ty,WA=Ry,IA=Oy,Ly=My;const tT=FA,eT=WA,By=f.forwardRef(({className:t,align:e="center",sideOffset:n=4,disablePortal:a=!1,...l},r)=>{const o=d.jsx(Ly,{ref:r,align:e,sideOffset:n,className:$("tw:z-50 tw:w-72 tw:rounded-md tw:border tw:bg-popover tw:p-4 tw:text-popover-foreground tw:shadow-md tw:outline-none tw:data-[state=open]:animate-in tw:data-[state=closed]:animate-out tw:data-[state=closed]:fade-out-0 tw:data-[state=open]:fade-in-0 tw:data-[state=closed]:zoom-out-95 tw:data-[state=open]:zoom-in-95 tw:data-[side=bottom]:slide-in-from-top-2 tw:data-[side=left]:slide-in-from-right-2 tw:data-[side=right]:slide-in-from-left-2 tw:data-[side=top]:slide-in-from-bottom-2 tw:origin-[--radix-popover-content-transform-origin]",t),...l});return a?o:d.jsx(IA,{children:o})});By.displayName=Ly.displayName;const mn=2e3,ke="__all__",nT=[{value:"Relevance",label:"Relevance (Default)"},{value:"Price:LowToHigh",label:"Price: Low to High"},{value:"Price:HighToLow",label:"Price: High to Low"},{value:"NewestArrivals",label:"Newest Arrivals"},{value:"AvgCustomerReviews",label:"Highest Rated"},{value:"Featured",label:"Featured"}],aT=["New"],lT=[{value:"Available",label:"In Stock Only"},{value:"IncludeOutOfStock",label:"All Items"}],rT=[{value:0,label:"All Prices"},{value:10,label:"10%+ Off"},{value:25,label:"25%+ Off"},{value:50,label:"50%+ Off"}];function oT({options:t,values:e,onChange:n,onClear:a,className:l,isPremium:r=!1,isExpanded:o=!0,visibility:i={}}){var U,k;const[s,c]=f.useState(e.minPrice||0),[m,u]=f.useState(e.maxPrice||mn);f.useEffect(()=>{c(e.minPrice||0),u(e.maxPrice||mn)},[e.minPrice,e.maxPrice]);const h=f.useRef(null),v=f.useCallback(([j,X])=>{c(j),u(X),h.current&&clearTimeout(h.current),h.current=setTimeout(()=>{n({...e,minPrice:j,maxPrice:X>=mn?0:X})},300)},[n,e]),x=s>0||m<mn,w=x?`Price: $${s}–$${m>=mn?mn+"+":m}`:"Price: Any",S=(e.brand?1:0)+(e.minPrice>0?1:0)+(e.maxPrice>0?1:0)+(e.sort?1:0)+(e.condition?1:0)+(e.merchant?1:0)+(e.availability!=="Available"?1:0)+(e.hasDeal==="1"?1:0)+(e.minSavingPercent>0?1:0),p=i.brand!==!1,g=i.price!==!1,y=i.sort!==!1,b=i.condition!==!1,E=i.merchant!==!1,_=i.availability!==!1,C=i.has_deal!==!1&&r,N=i.deals!==!1&&r,D=t.brands||[],z=(U=t.conditions)!=null&&U.length?t.conditions:aT,L=(k=t.sortOptions)!=null&&k.length?t.sortOptions:nT;return o?d.jsx("div",{className:$("psfa-filters tw:relative tw:z-20 tw:my-4 tw:py-4 tw:border-y tw:border-border",l),children:d.jsxs("div",{className:"tw:grid tw:grid-cols-2 tw:sm:flex tw:sm:flex-wrap tw:justify-self-center tw:gap-2 tw:sm:gap-1",children:[p&&D.length>0&&d.jsx("div",{className:"tw:min-w-[140px]",children:d.jsxs(Vn,{value:e.brand||ke,onValueChange:j=>n({...e,brand:j===ke?"":j}),children:[d.jsx(fn,{className:"tw:h-9 tw:text-sm",children:d.jsx(kn,{placeholder:"All Brands"})}),d.jsxs(dn,{disablePortal:!0,className:"tw:max-h-60",children:[d.jsx(he,{value:ke,children:"All Brands"}),D.map(j=>d.jsx(he,{value:j,children:j},j))]})]})}),g&&d.jsx("div",{className:"tw:min-w-[120px]",children:d.jsxs(tT,{children:[d.jsx(eT,{asChild:!0,children:d.jsxs(ln,{variant:"outline",size:"sm",className:$("tw:h-9 tw:w-full tw:justify-between tw:text-sm tw:font-normal",x&&"tw:border-primary tw:text-primary"),children:[w,d.jsx(Zf,{className:"tw:h-4 tw:w-4 tw:opacity-50 tw:shrink-0"})]})}),d.jsx(By,{className:"tw:w-64 tw:border-gray-300 tw:shadow-sm",align:"start",disablePortal:!0,children:d.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-3",children:[d.jsx(Cy,{min:0,max:mn,step:1,value:[s,m],onValueChange:v,className:"tw:w-full"}),d.jsxs("div",{className:"tw:flex tw:justify-between tw:text-xs tw:text-muted-foreground",children:[d.jsxs("span",{children:["$",s]}),d.jsx("span",{children:m>=mn?`$${mn}+`:`$${m}`})]}),x&&d.jsx("button",{type:"button","data-price-reset":!0,className:"tw:text-xs tw:text-muted-foreground tw:underline tw:text-left tw:cursor-pointer",onClick:()=>v([0,mn]),children:"Any price"})]})})]})}),y&&d.jsx("div",{className:"tw:min-w-[160px]",children:d.jsxs(Vn,{value:e.sort||"Relevance",onValueChange:j=>n({...e,sort:j}),children:[d.jsx(fn,{className:"tw:h-9 tw:text-sm",children:d.jsx(kn,{placeholder:"Relevance (Default)"})}),d.jsx(dn,{disablePortal:!0,children:L.map(j=>d.jsx(he,{value:j.value,children:j.label},j.value))})]})}),b&&d.jsx("div",{className:"tw:min-w-[130px]",children:d.jsxs(Vn,{value:e.condition||ke,onValueChange:j=>n({...e,condition:j===ke?"":j}),children:[d.jsx(fn,{className:"tw:h-9 tw:text-sm",children:d.jsx(kn,{placeholder:"All Conditions"})}),d.jsxs(dn,{disablePortal:!0,children:[d.jsx(he,{value:ke,children:"All Conditions"}),z.map(j=>d.jsx(he,{value:j,children:j},j))]})]})}),E&&d.jsx("div",{className:"tw:min-w-[140px]",children:d.jsxs(Vn,{value:e.merchant||ke,onValueChange:j=>n({...e,merchant:j===ke?"":j}),children:[d.jsx(fn,{className:"tw:h-9 tw:text-sm",children:d.jsx(kn,{placeholder:"All Merchants"})}),d.jsxs(dn,{disablePortal:!0,children:[d.jsx(he,{value:ke,children:"All Merchants"}),d.jsx(he,{value:"Amazon",children:"Sold by Amazon"})]})]})}),_&&d.jsx("div",{className:"tw:min-w-[130px]",children:d.jsxs(Vn,{value:e.availability,onValueChange:j=>n({...e,availability:j}),children:[d.jsx(fn,{className:"tw:h-9 tw:text-sm",children:d.jsx(kn,{placeholder:"In Stock Only"})}),d.jsx(dn,{disablePortal:!0,children:lT.map(j=>d.jsx(he,{value:j.value,children:j.label},j.value))})]})}),C&&d.jsx("div",{className:"tw:min-w-[120px]",children:d.jsxs(Vn,{value:e.hasDeal||ke,onValueChange:j=>n({...e,hasDeal:j===ke?"":j}),children:[d.jsx(fn,{className:"tw:h-9 tw:text-sm",children:d.jsx(kn,{placeholder:"All Products"})}),d.jsxs(dn,{disablePortal:!0,children:[d.jsx(he,{value:ke,children:"All Products"}),d.jsx(he,{value:"1",children:"Has Deal"})]})]})}),N&&d.jsx("div",{className:"tw:min-w-[120px]",children:d.jsxs(Vn,{value:String(e.minSavingPercent||0),onValueChange:j=>n({...e,minSavingPercent:parseInt(j)||0}),children:[d.jsx(fn,{className:"tw:h-9 tw:text-sm",children:d.jsx(kn,{placeholder:"All Prices"})}),d.jsx(dn,{disablePortal:!0,children:rT.map(j=>d.jsx(he,{value:String(j.value),children:j.label},j.value))})]})}),S>0&&d.jsx("div",{className:"tw:col-span-2 tw:flex tw:items-center tw:gap-1 tw:flex-shrink-0 tw:sm:col-span-1",children:d.jsxs(ln,{type:"button",variant:"outline",size:"sm",onClick:a,className:"tw:h-9 tw:px-3",children:[d.jsx(rA,{className:"tw:h-4 tw:w-4 tw:mr-1"}),"Reset"]})})]})}):null}const If=f.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:$("tw:rounded-xl tw:border tw:border-[var(--color-border,#e5e7eb)] tw:bg-[var(--color-card,white)] tw:text-[var(--color-card-foreground,inherit)] tw:shadow-sm",t),...e}));If.displayName="Card";const iT=f.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:$("tw:flex tw:flex-col tw:space-y-1.5 tw:p-6",t),...e}));iT.displayName="CardHeader";const sT=f.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:$("tw:font-semibold tw:leading-none tw:tracking-tight",t),...e}));sT.displayName="CardTitle";const cT=f.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:$("tw:text-sm tw:text-muted-foreground",t),...e}));cT.displayName="CardDescription";const Uy=f.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:$("tw:p-6",t),...e}));Uy.displayName="CardContent";const uT=f.forwardRef(({className:t,...e},n)=>d.jsx("div",{ref:n,className:$("tw:flex tw:items-center tw:p-6 tw:pt-0",t),...e}));uT.displayName="CardFooter";function Hy({className:t}){return d.jsx("svg",{viewBox:"0 0 35.418 35.418",fill:"currentColor",className:$("tw:h-4 tw:w-4",t),children:d.jsx("path",{d:"M20.948,9.891c-0.857,0.068-1.847,0.136-2.837,0.269c-1.516,0.195-3.032,0.461-4.284,1.053c-2.439,0.994-4.088,3.105-4.088,6.209c0,3.898,2.506,5.875,5.669,5.875c1.057,0,1.913-0.129,2.703-0.328c1.255-0.396,2.31-1.123,3.562-2.441c0.727,0.99,0.923,1.453,2.177,2.509c0.329,0.133,0.658,0.133,0.922-0.066c0.791-0.659,2.174-1.848,2.901-2.508c0.328-0.267,0.263-0.66,0.066-0.992c-0.727-0.924-1.45-1.718-1.45-3.498v-5.943c0-2.513,0.195-4.822-1.647-6.537c-1.518-1.391-3.891-1.916-5.735-1.916c-0.264,0-0.527,0-0.792,0c-3.362,0.197-6.921,1.647-7.714,5.811c-0.13,0.525,0.267,0.726,0.53,0.793l3.691,0.464c0.396-0.07,0.593-0.398,0.658-0.73c0.333-1.449,1.518-2.176,2.836-2.309c0.067,0,0.133,0,0.265,0c0.79,0,1.646,0.332,2.109,0.987c0.523,0.795,0.461,1.853,0.461,2.775L20.948,9.891L20.948,9.891z M20.223,17.749c-0.461,0.925-1.253,1.519-2.11,1.718c-0.131,0-0.327,0.068-0.526,0.068c-1.45,0-2.31-1.123-2.31-2.775c0-2.11,1.254-3.104,2.836-3.565c0.857-0.197,1.847-0.265,2.836-0.265v0.793C20.948,15.243,21.01,16.43,20.223,17.749z M35.418,26.918v0.215c-0.035,1.291-0.716,3.768-2.328,5.131c-0.322,0.25-0.645,0.107-0.503-0.254c0.469-1.145,1.541-3.803,1.04-4.412c-0.355-0.465-1.826-0.43-3.079-0.322c-0.572,0.072-1.075,0.105-1.469,0.183c-0.357,0.033-0.431-0.287-0.071-0.537c0.466-0.323,0.969-0.573,1.541-0.756c2.039-0.608,4.406-0.25,4.729,0.146C35.348,26.414,35.418,26.629,35.418,26.918z M32.016,29.428c-0.466,0.357-0.965,0.682-1.468,0.973c-3.761,2.261-8.631,3.441-12.856,3.441c-6.807,0-12.895-2.512-17.514-6.709c-0.396-0.324-0.073-0.789,0.393-0.539C5.549,29.5,11.709,31.26,18.084,31.26c4.013,0,8.342-0.754,12.463-2.371c0.285-0.104,0.608-0.252,0.895-0.356C32.087,28.242,32.661,28.965,32.016,29.428z"})})}function Vy({asin:t,title:e,imageUrl:n,showBoxButton:a=!1,showCompareButton:l=!1,onAddToBox:r,onAddToCompare:o,isSaved:i=!1,position:s="top-right",className:c}){if(!a&&!l)return null;const m={"top-right":"tw:right-2 tw:top-2","bottom-right":"tw:right-2 tw:bottom-2"};return d.jsxs("div",{className:$("tw:absolute tw:flex tw:flex-col tw:gap-1 tw:items-end","tw:opacity-0 tw:transition-opacity tw:duration-200 tw:group-hover:opacity-100 tw:z-50",m[s],c),children:[a&&r&&d.jsx(ln,{size:"sm",className:$("tw:h-7 tw:px-2 tw:text-xs tw:font-medium tw:shadow-sm",i?"tw:pointer-events-none":"tw:cursor-pointer"),style:i?{cursor:"default"}:void 0,onClick:u=>{u.preventDefault(),u.stopPropagation(),i||r(t,e,n)},children:i?d.jsx(d.Fragment,{children:"Saved!"}):d.jsxs(d.Fragment,{children:[d.jsx("span",{className:"tw:font-semibold tw:mr-1",children:"+"}),"Box"]})}),l&&o&&d.jsxs(ln,{size:"sm",className:"tw:h-7 tw:px-2 tw:text-xs tw:font-medium tw:shadow-sm tw:cursor-pointer tw:bg-emerald-500 tw:text-white hover:tw:bg-emerald-600",onClick:u=>{u.preventDefault(),u.stopPropagation(),o(t,e,n)},children:[d.jsx("span",{className:"tw:font-semibold tw:mr-1",children:"+"}),"Compare"]})]})}const fT=fv("tw:inline-flex tw:items-center tw:rounded-md tw:border tw:px-2.5 tw:py-0.5 tw:text-xs tw:font-semibold tw:transition-colors tw:focus:outline-none tw:focus:ring-2 tw:focus:ring-ring tw:focus:ring-offset-2",{variants:{variant:{default:"tw:border-transparent tw:bg-primary tw:text-primary-foreground tw:shadow tw:hover:bg-primary/80",secondary:"tw:border-transparent tw:bg-secondary tw:text-secondary-foreground tw:hover:bg-secondary/80",destructive:"tw:border-transparent tw:bg-destructive tw:text-destructive-foreground tw:shadow tw:hover:bg-destructive/80",outline:"tw:text-foreground"}},defaultVariants:{variant:"default"}});function mo({className:t,variant:e,...n}){return d.jsx("div",{className:$(fT({variant:e}),t),...n})}function ky(t){const e=new Date(t).getTime(),n=Date.now(),a=e-n;if(a<=0)return{days:0,hours:0,minutes:0,seconds:0,expired:!0};const l=Math.floor(a/(1e3*60*60*24)),r=Math.floor(a%(1e3*60*60*24)/(1e3*60*60)),o=Math.floor(a%(1e3*60*60)/(1e3*60)),i=Math.floor(a%(1e3*60)/1e3);return{days:l,hours:r,minutes:o,seconds:i,expired:!1}}function dT(t){const{days:e,hours:n,minutes:a,seconds:l}=t;return e>0?`${e}D ${n}H ${a}M ${l}s`:n>0?`${n}H ${a}M ${l}s`:`${a}M ${l}s`}function mT({endTime:t,className:e}){const[n,a]=f.useState(()=>ky(t));return f.useEffect(()=>{const l=setInterval(()=>{const r=ky(t);a(r),r.expired&&clearInterval(l)},1e3);return()=>clearInterval(l)},[t]),n.expired?null:d.jsxs("span",{className:e,children:["DEAL ENDS IN ",dT(n)]})}function Yy({className:t}){return d.jsxs("svg",{viewBox:"0 0 256 256",fill:"currentColor",className:t,children:[d.jsx("path",{d:"M176,96a48,48,0,1,1-48-48A48,48,0,0,1,176,96Z",opacity:"0.2"}),d.jsx("path",{d:"M216,96A88,88,0,1,0,72,163.83V240a8,8,0,0,0,11.58,7.16L128,225l44.43,22.21A8.07,8.07,0,0,0,176,248a8,8,0,0,0,8-8V163.83A87.85,87.85,0,0,0,216,96ZM56,96a72,72,0,1,1,72,72A72.08,72.08,0,0,1,56,96ZM168,227.06l-36.43-18.21a8,8,0,0,0-7.16,0L88,227.06V174.37a87.89,87.89,0,0,0,80,0ZM128,152A56,56,0,1,0,72,96,56.06,56.06,0,0,0,128,152Zm0-96A40,40,0,1,1,88,96,40,40,0,0,1,128,56Z"})]})}function qy({savingsPercent:t,className:e}){return d.jsxs(mo,{variant:"destructive",className:$("tw:bg-red-600 tw:text-white tw:font-semibold",e),title:`Save ${t}% off the original price`,children:[t,"% OFF"]})}function Gy({dealBadge:t,className:e}){return d.jsx(mo,{className:$("tw:bg-orange-500 tw:text-white tw:font-semibold",e),title:t,children:t})}function Py({className:t}){return d.jsx(mo,{variant:"secondary",className:$("tw:bg-blue-600 tw:text-white",t),title:"Eligible for Amazon Prime free shipping",children:"Prime"})}function Xy({className:t}){return d.jsxs(mo,{variant:"outline",className:$("tw:bg-white tw:border-amber-500 tw:text-amber-700 tw:flex tw:items-center tw:gap-1",t),title:"Limited stock available - order soon",children:[d.jsx(iA,{className:"tw:h-3 tw:w-3"}),"Low Stock"]})}function Qy({endTime:t,className:e}){return d.jsx(mo,{className:$("tw:w-full tw:justify-center tw:bg-red-600 tw:text-white tw:font-mono tw:text-xs tw:py-1",e),children:d.jsx(mT,{endTime:t})})}function Zy({asin:t,title:e,imageUrl:n,detailPageUrl:a,price:l,listPrice:r,savingsPercent:o,reviewCount:i,brand:s,isPrime:c,buyBoxMessage:m,className:u,dealBadge:h,dealCountdown:v,isPrimeExclusive:x,isStockScarce:w,salesRank:S,buyButtonIcon:p,buttonText:g="View on Amazon",showDealBadge:y=!0,showCountdown:b=!0,showPrimeExclusive:E=!0,showLowStock:_=!0,showBestseller:C=!0,pluginUrl:N="",hideAmazonIcon:D=!1,showBoxButton:z=!1,showCompareButton:L=!1,onAddToBox:U,onAddToCompare:k,isSaved:j=!1}){const X=typeof o=="number"&&o>0,T=typeof S=="number"&&S>0&&S<=100;return d.jsxs(If,{className:$("psfa-product","tw:group tw:relative tw:transition-all tw:duration-[200ms] tw:hover:shadow-lg",u),"data-asin":t,children:[C&&T&&S&&d.jsx("div",{className:"tw:absolute tw:left-4 tw:-top-px tw:z-10",title:`#${S} Best Seller in this category`,children:d.jsxs("div",{className:"tw:flex tw:items-center tw:gap-1 tw:px-2 tw:py-1 tw:rounded-b-lg tw:bg-primary",children:[d.jsx(Yy,{className:"tw:h-3 tw:w-3 tw:text-primary-foreground"}),d.jsx("span",{className:"tw:font-bold tw:text-sm tw:text-primary-foreground",children:String(S).padStart(2,"0")})]})}),d.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer sponsored",className:"tw:block tw:no-underline",children:d.jsxs("div",{className:"psfa-image-column tw:relative tw:overflow-hidden tw:aspect-square",children:[d.jsx("img",{src:n,alt:e,loading:"lazy",className:"tw:transition-transform tw:duration-[200ms] tw:group-hover:scale-[1.05] tw:h-full tw:w-full tw:object-contain tw:p-4"}),d.jsxs("div",{className:$("tw:absolute tw:left-2 tw:flex tw:flex-col tw:gap-1 tw:items-start",C&&T&&S?"tw:top-10":"tw:top-2"),children:[X&&o&&d.jsx(qy,{savingsPercent:o}),y&&h&&!(b&&(v!=null&&v.end_time))&&d.jsx(Gy,{dealBadge:h})]}),d.jsx(Vy,{asin:t,title:e,imageUrl:n,showBoxButton:z,showCompareButton:L,onAddToBox:U,onAddToCompare:k,isSaved:j,position:"top-right"}),d.jsxs("div",{className:$("tw:absolute tw:right-2 tw:flex tw:flex-col tw:gap-1 tw:items-end",z||L?"tw:top-[72px]":"tw:top-2"),children:[c&&!x&&d.jsx(Py,{}),E&&x&&d.jsx("img",{src:`${N}src/assets/img/buy-with-prime.png`,alt:"Prime Exclusive",title:"Exclusive deal for Amazon Prime members",className:"tw:h-13 tw:w-auto tw:drop-shadow-sm"}),_&&w&&d.jsx(Xy,{})]}),b&&(v==null?void 0:v.end_time)&&d.jsx("div",{className:"tw:absolute tw:bottom-2 tw:left-2 tw:right-2",children:d.jsx(Qy,{endTime:v.end_time})})]})}),d.jsxs(Uy,{className:"psfa-purchase-column psfa-product-content tw:p-4",children:[s&&d.jsx("p",{className:"tw:mb-1 tw:text-xs tw:font-medium tw:uppercase tw:tracking-wide tw:text-muted-foreground",children:s}),d.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer sponsored",className:"tw:no-underline",children:d.jsx("h3",{className:"tw:mb-2 tw:line-clamp-2 tw:text-sm tw:font-medium tw:text-foreground tw:transition-colors tw:hover:text-primary",children:e})}),d.jsx("div",{className:"tw:mb-3",children:l?d.jsxs("div",{className:"tw:flex tw:items-baseline tw:gap-2",children:[d.jsx("span",{className:"tw:font-bold tw:text-lg",style:{color:"var(--price-color, var(--color-foreground))"},children:l}),r&&X&&d.jsx("span",{className:"tw:text-sm tw:text-muted-foreground tw:line-through",children:r})]}):d.jsx("span",{className:"tw:text-sm tw:text-muted-foreground",children:"Price unavailable"})}),d.jsx(ln,{asChild:!0,className:"psfa-buy-button tw:w-full tw:text-[var(--button-buy-text)] tw:[background:var(--button-buy-bg)] tw:hover:[background:var(--button-buy-hover-bg)] tw:border tw:border-[var(--button-buy-border)]",children:d.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer sponsored",className:"tw:flex tw:items-center tw:justify-center tw:gap-2",children:[!D&&(p?d.jsx("img",{src:p,alt:"Amazon",className:"tw:h-4 tw:w-4 tw:object-contain"}):d.jsx(Hy,{className:"tw:h-4 tw:w-4 tw:translate-y-[1px]"})),m||g]})})]})]})}function hT({asin:t,title:e,imageUrl:n,detailPageUrl:a,price:l,listPrice:r,savingsPercent:o,reviewCount:i,brand:s,isPrime:c,buyBoxMessage:m,className:u,dealBadge:h,dealCountdown:v,isPrimeExclusive:x,isStockScarce:w,salesRank:S,buyButtonIcon:p,buttonText:g="View Deal",hideAmazonIcon:y=!1,showDealBadge:b=!0,showCountdown:E=!0,showLowStock:_=!0,showBestseller:C=!0,pluginUrl:N="",showBoxButton:D=!1,showCompareButton:z=!1,onAddToBox:L,onAddToCompare:U,isSaved:k=!1}){const j=typeof o=="number"&&o>0,X=typeof S=="number"&&S>0&&S<=100;return d.jsxs(If,{className:$("psfa-product psfa-list-item","tw:group tw:relative tw:flex tw:flex-row tw:items-stretch tw:rounded-lg tw:p-4","tw:shadow-[0px_0px_4px_0px_rgba(0,0,0,0.1),0px_2px_4px_0px_rgba(0,0,0,0.1)]","tw:transition-all tw:duration-200 tw:hover:shadow-lg",u),"data-asin":t,children:[C&&X&&S&&d.jsx("div",{className:"tw:absolute tw:left-6 tw:-top-px tw:z-10",title:`#${S} Best Seller in this category`,children:d.jsxs("div",{className:"tw:flex tw:items-center tw:gap-1 tw:px-2 tw:py-1 tw:rounded-b-lg tw:bg-primary",children:[d.jsx(Yy,{className:"tw:h-3 tw:w-3 tw:text-primary-foreground"}),d.jsx("span",{className:"tw:font-bold tw:text-sm tw:text-primary-foreground",children:String(S).padStart(2,"0")})]})}),d.jsx(Vy,{asin:t,title:e,imageUrl:n,showBoxButton:D,showCompareButton:z,onAddToBox:L,onAddToCompare:U,isSaved:k,position:"top-right"}),d.jsxs("div",{className:"tw:relative tw:flex tw:items-center tw:justify-center tw:p-6 tw:shrink-0",children:[d.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer sponsored",className:"tw:flex tw:items-center tw:justify-center",children:d.jsx("img",{src:n,alt:e,loading:"lazy",className:"tw:w-32 tw:h-32 tw:object-contain tw:mix-blend-multiply"})}),d.jsxs("div",{className:"tw:absolute tw:right-1 tw:top-1 tw:flex tw:flex-col tw:gap-1 tw:items-end",children:[c&&!x&&d.jsx(Py,{}),x&&N&&d.jsx("img",{src:`${N}src/assets/img/buy-with-prime.png`,alt:"Prime Exclusive",title:"Exclusive deal for Amazon Prime members",className:"tw:h-8 tw:w-auto tw:drop-shadow-sm"})]})]}),d.jsxs("div",{className:"psfa-product-content tw:flex-1 tw:py-4 tw:pr-4 tw:min-w-0",children:[d.jsxs("div",{className:"tw:flex tw:items-center tw:gap-2 tw:mb-2 tw:flex-wrap",children:[s&&d.jsx("span",{className:"tw:font-bold tw:text-base tw:text-foreground",children:s}),j&&o&&d.jsx(qy,{savingsPercent:o,className:"tw:text-xs"}),E&&(v==null?void 0:v.end_time)&&d.jsx(Qy,{endTime:v.end_time,className:"tw:w-auto tw:px-2 tw:py-1"}),b&&h&&!(E&&(v!=null&&v.end_time))&&d.jsx(Gy,{dealBadge:h,className:"tw:text-xs"})]}),d.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer sponsored",className:"tw:block tw:no-underline",children:d.jsx("p",{className:"tw:text-foreground tw:text-sm tw:leading-5 tw:line-clamp-2 tw:mb-2 tw:text-left",children:e})}),d.jsxs("div",{className:"tw:flex tw:items-center tw:gap-2 tw:flex-wrap",children:[_&&w&&d.jsx(Xy,{className:"tw:text-xs"}),i&&i>0&&d.jsxs("span",{className:"tw:text-muted-foreground tw:text-sm",children:["(",i.toLocaleString()," reviews)"]})]})]}),d.jsx("div",{className:"tw:w-px tw:bg-[var(--color-border,#e5e7eb)]"}),d.jsxs("div",{className:"tw:flex tw:flex-col tw:items-center tw:justify-center tw:gap-2 tw:p-4 tw:w-48 tw:shrink-0",children:[d.jsxs("div",{className:"tw:flex tw:flex-col tw:items-center tw:gap-0.5",children:[l&&d.jsx("span",{className:"tw:text-xl tw:font-bold",style:{color:"var(--price-color, var(--color-foreground))"},children:l}),r&&r!==l&&d.jsx("span",{className:"tw:text-sm tw:text-muted-foreground tw:line-through",children:r})]}),d.jsx(ln,{asChild:!0,className:"psfa-buy-button tw:w-full tw:text-[var(--button-buy-text)] tw:[background:var(--button-buy-bg)] tw:hover:[background:var(--button-buy-hover-bg)] tw:border tw:border-[var(--button-buy-border)]",children:d.jsxs("a",{href:a,target:"_blank",rel:"noopener noreferrer sponsored",className:"tw:flex tw:items-center tw:justify-center tw:gap-2",children:[!y&&(p?d.jsx("img",{src:p,alt:"Amazon",className:"tw:h-4 tw:w-4 tw:object-contain"}):d.jsx(Hy,{className:"tw:h-4 tw:w-4 tw:translate-y-[1px]"})),m||g]})})]})]})}function oe({className:t,...e}){return d.jsx("div",{className:$("tw:animate-pulse tw:rounded-md tw:bg-gray-100",t),...e})}function pT({products:t,columns:e=4,loading:n=!1,loadingCount:a=8,className:l,displayMode:r="grid",showDealBadge:o=!0,showCountdown:i=!0,showPrimeExclusive:s=!0,showLowStock:c=!0,showBestseller:m=!0,buttonText:u,buyButtonIcon:h,hideAmazonIcon:v=!1,pluginUrl:x,showBoxButton:w=!1,showCompareButton:S=!1,onAddToBox:p,onAddToCompare:g,savedAsins:y}){return f.useEffect(()=>{t.length>0&&!n&&document.dispatchEvent(new CustomEvent("psfa:content-loaded"))},[t,n]),n?r==="list"?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:$("tw:grid tw:grid-cols-1 tw:sm:grid-cols-2 tw:gap-4 tw:md:hidden",l),children:[...Array(a)].map((b,E)=>d.jsx(Ky,{},E))}),d.jsx("div",{className:$("tw:hidden tw:md:flex tw:flex-col tw:gap-4",l),children:[...Array(a)].map((b,E)=>d.jsx(gT,{},E))})]}):d.jsx("div",{className:$("psfa-product-grid tw:grid tw:gap-4 tw:grid-cols-1 tw:sm:grid-cols-2 tw:lg:grid-cols-3 tw:xl:grid-cols-4",l),children:[...Array(a)].map((b,E)=>d.jsx(Ky,{},E))}):t.length===0?d.jsxs("div",{className:"tw:flex tw:flex-col tw:items-center tw:justify-center tw:py-12 tw:text-center",children:[d.jsx("p",{className:"tw:text-lg tw:font-medium tw:text-muted-foreground",children:"No products found"}),d.jsx("p",{className:"tw:mt-1 tw:text-sm tw:text-muted-foreground",children:"Try adjusting your search or filters"})]}):r==="list"?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:$("tw:grid tw:grid-cols-1 tw:sm:grid-cols-2 tw:gap-4 tw:md:hidden",l),children:t.map(b=>d.jsx(Zy,{...b,showDealBadge:o,showCountdown:i,showPrimeExclusive:s,showLowStock:c,showBestseller:m,buttonText:u,buyButtonIcon:h,hideAmazonIcon:v,pluginUrl:x,showBoxButton:w,showCompareButton:S,onAddToBox:p,onAddToCompare:g,isSaved:y==null?void 0:y.has(b.asin)},b.asin))}),d.jsx("div",{className:$("tw:hidden tw:md:flex tw:flex-col tw:gap-4",l),children:t.map(b=>d.jsx(hT,{asin:b.asin,title:b.title,imageUrl:b.imageUrl,detailPageUrl:b.detailPageUrl,price:b.price,listPrice:b.listPrice,savingsPercent:b.savingsPercent,reviewCount:b.reviewCount,brand:b.brand,isPrime:b.isPrime,buyBoxMessage:b.buyBoxMessage,dealBadge:b.dealBadge,dealCountdown:b.dealCountdown,isPrimeExclusive:b.isPrimeExclusive,isStockScarce:b.isStockScarce,salesRank:b.salesRank,buyButtonIcon:h,buttonText:u||"View Deal",hideAmazonIcon:v,showDealBadge:o,showCountdown:i,showLowStock:c,showBestseller:m,pluginUrl:x,showBoxButton:w,showCompareButton:S,onAddToBox:p,onAddToCompare:g,isSaved:y==null?void 0:y.has(b.asin)},b.asin))})]}):d.jsx("div",{className:$("psfa-product-grid tw:grid tw:gap-4 tw:grid-cols-1 tw:sm:grid-cols-2 tw:lg:grid-cols-3 tw:xl:grid-cols-4",l),children:t.map(b=>d.jsx(Zy,{...b,showDealBadge:o,showCountdown:i,showPrimeExclusive:s,showLowStock:c,showBestseller:m,buttonText:u,buyButtonIcon:h,pluginUrl:x,hideAmazonIcon:v,showBoxButton:w,showCompareButton:S,onAddToBox:p,onAddToCompare:g,isSaved:y==null?void 0:y.has(b.asin)},b.asin))})}function Ky(){return d.jsxs("div",{className:"tw:overflow-hidden tw:rounded-lg tw:border tw:border-gray-200 tw:bg-white",children:[d.jsx(oe,{className:"tw:aspect-square tw:w-full"}),d.jsxs("div",{className:"tw:p-4",children:[d.jsx(oe,{className:"tw:mb-2 tw:h-3 tw:w-16"}),d.jsx(oe,{className:"tw:mb-1 tw:h-4 tw:w-full"}),d.jsx(oe,{className:"tw:mb-3 tw:h-4 tw:w-3/4"}),d.jsx(oe,{className:"tw:mb-2 tw:h-3 tw:w-20"}),d.jsx(oe,{className:"tw:mb-3 tw:h-6 tw:w-24"}),d.jsx(oe,{className:"tw:h-10 tw:w-full"})]})]})}function gT(){return d.jsxs("div",{className:"tw:flex tw:flex-row tw:items-stretch tw:overflow-hidden tw:rounded-lg tw:border tw:border-gray-200 tw:bg-white tw:p-4",children:[d.jsx("div",{className:"tw:flex tw:items-center tw:justify-center tw:p-6 tw:shrink-0",children:d.jsx(oe,{className:"tw:w-20 tw:h-20 tw:rounded"})}),d.jsxs("div",{className:"tw:flex-1 tw:py-4 tw:pr-4 tw:min-w-0",children:[d.jsx(oe,{className:"tw:mb-2 tw:h-4 tw:w-24"}),d.jsx(oe,{className:"tw:mb-1 tw:h-4 tw:w-full"}),d.jsx(oe,{className:"tw:mb-3 tw:h-4 tw:w-3/4"}),d.jsx(oe,{className:"tw:h-3 tw:w-28"})]}),d.jsx("div",{className:"tw:w-px tw:bg-gray-200"}),d.jsxs("div",{className:"tw:flex tw:flex-col tw:items-center tw:justify-center tw:gap-2 tw:p-4 tw:w-48 tw:shrink-0",children:[d.jsx(oe,{className:"tw:h-6 tw:w-20"}),d.jsx(oe,{className:"tw:h-3 tw:w-16"}),d.jsx(oe,{className:"tw:h-10 tw:w-full tw:rounded-md"})]})]})}function vT(t){const{hasMore:e,isLoading:n,onLoadMore:a,rootMargin:l="100px",threshold:r=.1}=t,o=f.useRef(null),i=f.useRef(null),s=f.useCallback(c=>{const[m]=c;m.isIntersecting&&e&&!n&&a()},[e,n,a]);return f.useEffect(()=>{const c=o.current;if(c)return i.current&&i.current.disconnect(),i.current=new IntersectionObserver(s,{root:null,rootMargin:l,threshold:r}),i.current.observe(c),()=>{i.current&&i.current.disconnect()}},[s,l,r]),{sentinelRef:o}}function yT(t){if(typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",e.appendChild(n),n.styleSheet?n.styleSheet.cssText=t:n.appendChild(document.createTextNode(t))}const wT=t=>{switch(t){case"success":return ST;case"info":return CT;case"warning":return ET;case"error":return AT;default:return null}},bT=Array(12).fill(0),xT=({visible:t,className:e})=>B.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},B.createElement("div",{className:"sonner-spinner"},bT.map((n,a)=>B.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${a}`})))),ST=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),ET=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),CT=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),AT=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},B.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),TT=B.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},B.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),B.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),NT=()=>{const[t,e]=B.useState(document.hidden);return B.useEffect(()=>{const n=()=>{e(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),t};let td=1;class _T{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{const n=this.subscribers.indexOf(e);this.subscribers.splice(n,1)}),this.publish=e=>{this.subscribers.forEach(n=>n(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var n;const{message:a,...l}=e,r=typeof(e==null?void 0:e.id)=="number"||((n=e.id)==null?void 0:n.length)>0?e.id:td++,o=this.toasts.find(s=>s.id===r),i=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),o?this.toasts=this.toasts.map(s=>s.id===r?(this.publish({...s,...e,id:r,title:a}),{...s,...e,id:r,dismissible:i,title:a}):s):this.addToast({title:a,...l,dismissible:i,id:r}),r},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:e,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(a=>a({id:n.id,dismiss:!0}))}),e),this.message=(e,n)=>this.create({...n,message:e}),this.error=(e,n)=>this.create({...n,message:e,type:"error"}),this.success=(e,n)=>this.create({...n,type:"success",message:e}),this.info=(e,n)=>this.create({...n,type:"info",message:e}),this.warning=(e,n)=>this.create({...n,type:"warning",message:e}),this.loading=(e,n)=>this.create({...n,type:"loading",message:e}),this.promise=(e,n)=>{if(!n)return;let a;n.loading!==void 0&&(a=this.create({...n,promise:e,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const l=Promise.resolve(e instanceof Function?e():e);let r=a!==void 0,o;const i=l.then(async c=>{if(o=["resolve",c],B.isValidElement(c))r=!1,this.create({id:a,type:"default",message:c});else if(OT(c)&&!c.ok){r=!1;const u=typeof n.error=="function"?await n.error(`HTTP error! status: ${c.status}`):n.error,h=typeof n.description=="function"?await n.description(`HTTP error! status: ${c.status}`):n.description,x=typeof u=="object"&&!B.isValidElement(u)?u:{message:u};this.create({id:a,type:"error",description:h,...x})}else if(c instanceof Error){r=!1;const u=typeof n.error=="function"?await n.error(c):n.error,h=typeof n.description=="function"?await n.description(c):n.description,x=typeof u=="object"&&!B.isValidElement(u)?u:{message:u};this.create({id:a,type:"error",description:h,...x})}else if(n.success!==void 0){r=!1;const u=typeof n.success=="function"?await n.success(c):n.success,h=typeof n.description=="function"?await n.description(c):n.description,x=typeof u=="object"&&!B.isValidElement(u)?u:{message:u};this.create({id:a,type:"success",description:h,...x})}}).catch(async c=>{if(o=["reject",c],n.error!==void 0){r=!1;const m=typeof n.error=="function"?await n.error(c):n.error,u=typeof n.description=="function"?await n.description(c):n.description,v=typeof m=="object"&&!B.isValidElement(m)?m:{message:m};this.create({id:a,type:"error",description:u,...v})}}).finally(()=>{r&&(this.dismiss(a),a=void 0),n.finally==null||n.finally.call(n)}),s=()=>new Promise((c,m)=>i.then(()=>o[0]==="reject"?m(o[1]):c(o[1])).catch(m));return typeof a!="string"&&typeof a!="number"?{unwrap:s}:Object.assign(a,{unwrap:s})},this.custom=(e,n)=>{const a=(n==null?void 0:n.id)||td++;return this.create({jsx:e(a),id:a,...n}),a},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const pe=new _T,RT=(t,e)=>{const n=(e==null?void 0:e.id)||td++;return pe.addToast({title:t,...e,id:n}),n},OT=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",MT=RT,DT=()=>pe.toasts,jT=()=>pe.getActiveToasts(),Ke=Object.assign(MT,{success:pe.success,info:pe.info,warning:pe.warning,error:pe.error,custom:pe.custom,message:pe.message,promise:pe.promise,dismiss:pe.dismiss,loading:pe.loading},{getHistory:DT,getToasts:jT});yT("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function xs(t){return t.label!==void 0}const zT=3,LT="24px",BT="16px",$y=4e3,UT=356,HT=14,VT=45,kT=200;function hn(...t){return t.filter(Boolean).join(" ")}function YT(t){const[e,n]=t.split("-"),a=[];return e&&a.push(e),n&&a.push(n),a}const qT=t=>{var e,n,a,l,r,o,i,s,c;const{invert:m,toast:u,unstyled:h,interacting:v,setHeights:x,visibleToasts:w,heights:S,index:p,toasts:g,expanded:y,removeToast:b,defaultRichColors:E,closeButton:_,style:C,cancelButtonStyle:N,actionButtonStyle:D,className:z="",descriptionClassName:L="",duration:U,position:k,gap:j,expandByDefault:X,classNames:T,icons:R,closeButtonAriaLabel:A="Close toast"}=t,[V,Q]=B.useState(null),[ft,Et]=B.useState(null),[Y,P]=B.useState(!1),[J,Ct]=B.useState(!1),[H,Z]=B.useState(!1),[dt,nt]=B.useState(!1),[tt,M]=B.useState(!1),[mt,ht]=B.useState(0),[Ot,Wt]=B.useState(0),jt=B.useRef(u.duration||U||$y),pn=B.useRef(null),It=B.useRef(null),ar=p===0,Cs=p+1<=w,_e=u.type,lr=u.dismissible!==!1,hN=u.className||"",pN=u.descriptionClassName||"",As=B.useMemo(()=>S.findIndex(I=>I.toastId===u.id)||0,[S,u.id]),gN=B.useMemo(()=>{var I;return(I=u.closeButton)!=null?I:_},[u.closeButton,_]),xw=B.useMemo(()=>u.duration||U||$y,[u.duration,U]),rd=B.useRef(0),rr=B.useRef(0),Sw=B.useRef(0),or=B.useRef(null),[vN,yN]=k.split("-"),Ew=B.useMemo(()=>S.reduce((I,Qt,ne)=>ne>=As?I:I+Qt.height,0),[S,As]),Cw=NT(),wN=u.invert||m,od=_e==="loading";rr.current=B.useMemo(()=>As*j+Ew,[As,Ew]),B.useEffect(()=>{jt.current=xw},[xw]),B.useEffect(()=>{P(!0)},[]),B.useEffect(()=>{const I=It.current;if(I){const Qt=I.getBoundingClientRect().height;return Wt(Qt),x(ne=>[{toastId:u.id,height:Qt,position:u.position},...ne]),()=>x(ne=>ne.filter(Re=>Re.toastId!==u.id))}},[x,u.id]),B.useLayoutEffect(()=>{if(!Y)return;const I=It.current,Qt=I.style.height;I.style.height="auto";const ne=I.getBoundingClientRect().height;I.style.height=Qt,Wt(ne),x(Re=>Re.find(te=>te.toastId===u.id)?Re.map(te=>te.toastId===u.id?{...te,height:ne}:te):[{toastId:u.id,height:ne,position:u.position},...Re])},[Y,u.title,u.description,x,u.id,u.jsx,u.action,u.cancel]);const xa=B.useCallback(()=>{Ct(!0),ht(rr.current),x(I=>I.filter(Qt=>Qt.toastId!==u.id)),setTimeout(()=>{b(u)},kT)},[u,b,x,rr]);B.useEffect(()=>{if(u.promise&&_e==="loading"||u.duration===1/0||u.type==="loading")return;let I;return y||v||Cw?(()=>{if(Sw.current<rd.current){const Re=new Date().getTime()-rd.current;jt.current=jt.current-Re}Sw.current=new Date().getTime()})():(()=>{jt.current!==1/0&&(rd.current=new Date().getTime(),I=setTimeout(()=>{u.onAutoClose==null||u.onAutoClose.call(u,u),xa()},jt.current))})(),()=>clearTimeout(I)},[y,v,u,_e,Cw,xa]),B.useEffect(()=>{u.delete&&(xa(),u.onDismiss==null||u.onDismiss.call(u,u))},[xa,u.delete]);function bN(){var I;if(R!=null&&R.loading){var Qt;return B.createElement("div",{className:hn(T==null?void 0:T.loader,u==null||(Qt=u.classNames)==null?void 0:Qt.loader,"sonner-loader"),"data-visible":_e==="loading"},R.loading)}return B.createElement(xT,{className:hn(T==null?void 0:T.loader,u==null||(I=u.classNames)==null?void 0:I.loader),visible:_e==="loading"})}const xN=u.icon||(R==null?void 0:R[_e])||wT(_e);var Aw,Tw;return B.createElement("li",{tabIndex:0,ref:It,className:hn(z,hN,T==null?void 0:T.toast,u==null||(e=u.classNames)==null?void 0:e.toast,T==null?void 0:T.default,T==null?void 0:T[_e],u==null||(n=u.classNames)==null?void 0:n[_e]),"data-sonner-toast":"","data-rich-colors":(Aw=u.richColors)!=null?Aw:E,"data-styled":!(u.jsx||u.unstyled||h),"data-mounted":Y,"data-promise":!!u.promise,"data-swiped":tt,"data-removed":J,"data-visible":Cs,"data-y-position":vN,"data-x-position":yN,"data-index":p,"data-front":ar,"data-swiping":H,"data-dismissible":lr,"data-type":_e,"data-invert":wN,"data-swipe-out":dt,"data-swipe-direction":ft,"data-expanded":!!(y||X&&Y),"data-testid":u.testId,style:{"--index":p,"--toasts-before":p,"--z-index":g.length-p,"--offset":`${J?mt:rr.current}px`,"--initial-height":X?"auto":`${Ot}px`,...C,...u.style},onDragEnd:()=>{Z(!1),Q(null),or.current=null},onPointerDown:I=>{I.button!==2&&(od||!lr||(pn.current=new Date,ht(rr.current),I.target.setPointerCapture(I.pointerId),I.target.tagName!=="BUTTON"&&(Z(!0),or.current={x:I.clientX,y:I.clientY})))},onPointerUp:()=>{var I,Qt,ne;if(dt||!lr)return;or.current=null;const Re=Number(((I=It.current)==null?void 0:I.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ts=Number(((Qt=It.current)==null?void 0:Qt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),te=new Date().getTime()-((ne=pn.current)==null?void 0:ne.getTime()),Ye=V==="x"?Re:Ts,Ns=Math.abs(Ye)/te;if(Math.abs(Ye)>=VT||Ns>.11){ht(rr.current),u.onDismiss==null||u.onDismiss.call(u,u),Et(V==="x"?Re>0?"right":"left":Ts>0?"down":"up"),xa(),nt(!0);return}else{var Je,Fe;(Je=It.current)==null||Je.style.setProperty("--swipe-amount-x","0px"),(Fe=It.current)==null||Fe.style.setProperty("--swipe-amount-y","0px")}M(!1),Z(!1),Q(null)},onPointerMove:I=>{var Qt,ne,Re;if(!or.current||!lr||((Qt=window.getSelection())==null?void 0:Qt.toString().length)>0)return;const te=I.clientY-or.current.y,Ye=I.clientX-or.current.x;var Ns;const Je=(Ns=t.swipeDirections)!=null?Ns:YT(k);!V&&(Math.abs(Ye)>1||Math.abs(te)>1)&&Q(Math.abs(Ye)>Math.abs(te)?"x":"y");let Fe={x:0,y:0};const Nw=Ja=>1/(1.5+Math.abs(Ja)/20);if(V==="y"){if(Je.includes("top")||Je.includes("bottom"))if(Je.includes("top")&&te<0||Je.includes("bottom")&&te>0)Fe.y=te;else{const Ja=te*Nw(te);Fe.y=Math.abs(Ja)<Math.abs(te)?Ja:te}}else if(V==="x"&&(Je.includes("left")||Je.includes("right")))if(Je.includes("left")&&Ye<0||Je.includes("right")&&Ye>0)Fe.x=Ye;else{const Ja=Ye*Nw(Ye);Fe.x=Math.abs(Ja)<Math.abs(Ye)?Ja:Ye}(Math.abs(Fe.x)>0||Math.abs(Fe.y)>0)&&M(!0),(ne=It.current)==null||ne.style.setProperty("--swipe-amount-x",`${Fe.x}px`),(Re=It.current)==null||Re.style.setProperty("--swipe-amount-y",`${Fe.y}px`)}},gN&&!u.jsx&&_e!=="loading"?B.createElement("button",{"aria-label":A,"data-disabled":od,"data-close-button":!0,onClick:od||!lr?()=>{}:()=>{xa(),u.onDismiss==null||u.onDismiss.call(u,u)},className:hn(T==null?void 0:T.closeButton,u==null||(a=u.classNames)==null?void 0:a.closeButton)},(Tw=R==null?void 0:R.close)!=null?Tw:TT):null,(_e||u.icon||u.promise)&&u.icon!==null&&((R==null?void 0:R[_e])!==null||u.icon)?B.createElement("div",{"data-icon":"",className:hn(T==null?void 0:T.icon,u==null||(l=u.classNames)==null?void 0:l.icon)},u.promise||u.type==="loading"&&!u.icon?u.icon||bN():null,u.type!=="loading"?xN:null):null,B.createElement("div",{"data-content":"",className:hn(T==null?void 0:T.content,u==null||(r=u.classNames)==null?void 0:r.content)},B.createElement("div",{"data-title":"",className:hn(T==null?void 0:T.title,u==null||(o=u.classNames)==null?void 0:o.title)},u.jsx?u.jsx:typeof u.title=="function"?u.title():u.title),u.description?B.createElement("div",{"data-description":"",className:hn(L,pN,T==null?void 0:T.description,u==null||(i=u.classNames)==null?void 0:i.description)},typeof u.description=="function"?u.description():u.description):null),B.isValidElement(u.cancel)?u.cancel:u.cancel&&xs(u.cancel)?B.createElement("button",{"data-button":!0,"data-cancel":!0,style:u.cancelButtonStyle||N,onClick:I=>{xs(u.cancel)&&lr&&(u.cancel.onClick==null||u.cancel.onClick.call(u.cancel,I),xa())},className:hn(T==null?void 0:T.cancelButton,u==null||(s=u.classNames)==null?void 0:s.cancelButton)},u.cancel.label):null,B.isValidElement(u.action)?u.action:u.action&&xs(u.action)?B.createElement("button",{"data-button":!0,"data-action":!0,style:u.actionButtonStyle||D,onClick:I=>{xs(u.action)&&(u.action.onClick==null||u.action.onClick.call(u.action,I),!I.defaultPrevented&&xa())},className:hn(T==null?void 0:T.actionButton,u==null||(c=u.classNames)==null?void 0:c.actionButton)},u.action.label):null)};function Jy(){if(typeof window>"u"||typeof document>"u")return"ltr";const t=document.documentElement.getAttribute("dir");return t==="auto"||!t?window.getComputedStyle(document.documentElement).direction:t}function GT(t,e){const n={};return[t,e].forEach((a,l)=>{const r=l===1,o=r?"--mobile-offset":"--offset",i=r?BT:LT;function s(c){["top","right","bottom","left"].forEach(m=>{n[`${o}-${m}`]=typeof c=="number"?`${c}px`:c})}typeof a=="number"||typeof a=="string"?s(a):typeof a=="object"?["top","right","bottom","left"].forEach(c=>{a[c]===void 0?n[`${o}-${c}`]=i:n[`${o}-${c}`]=typeof a[c]=="number"?`${a[c]}px`:a[c]}):s(i)}),n}const PT=B.forwardRef(function(e,n){const{id:a,invert:l,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:c,offset:m,mobileOffset:u,theme:h="light",richColors:v,duration:x,style:w,visibleToasts:S=zT,toastOptions:p,dir:g=Jy(),gap:y=HT,icons:b,containerAriaLabel:E="Notifications"}=e,[_,C]=B.useState([]),N=B.useMemo(()=>a?_.filter(Y=>Y.toasterId===a):_.filter(Y=>!Y.toasterId),[_,a]),D=B.useMemo(()=>Array.from(new Set([r].concat(N.filter(Y=>Y.position).map(Y=>Y.position)))),[N,r]),[z,L]=B.useState([]),[U,k]=B.useState(!1),[j,X]=B.useState(!1),[T,R]=B.useState(h!=="system"?h:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=B.useRef(null),V=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),Q=B.useRef(null),ft=B.useRef(!1),Et=B.useCallback(Y=>{C(P=>{var J;return(J=P.find(Ct=>Ct.id===Y.id))!=null&&J.delete||pe.dismiss(Y.id),P.filter(({id:Ct})=>Ct!==Y.id)})},[]);return B.useEffect(()=>pe.subscribe(Y=>{if(Y.dismiss){requestAnimationFrame(()=>{C(P=>P.map(J=>J.id===Y.id?{...J,delete:!0}:J))});return}setTimeout(()=>{Nd.flushSync(()=>{C(P=>{const J=P.findIndex(Ct=>Ct.id===Y.id);return J!==-1?[...P.slice(0,J),{...P[J],...Y},...P.slice(J+1)]:[Y,...P]})})})}),[_]),B.useEffect(()=>{if(h!=="system"){R(h);return}if(h==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?R("dark"):R("light")),typeof window>"u")return;const Y=window.matchMedia("(prefers-color-scheme: dark)");try{Y.addEventListener("change",({matches:P})=>{R(P?"dark":"light")})}catch{Y.addListener(({matches:J})=>{try{R(J?"dark":"light")}catch(Ct){console.error(Ct)}})}},[h]),B.useEffect(()=>{_.length<=1&&k(!1)},[_]),B.useEffect(()=>{const Y=P=>{var J;if(o.every(Z=>P[Z]||P.code===Z)){var H;k(!0),(H=A.current)==null||H.focus()}P.code==="Escape"&&(document.activeElement===A.current||(J=A.current)!=null&&J.contains(document.activeElement))&&k(!1)};return document.addEventListener("keydown",Y),()=>document.removeEventListener("keydown",Y)},[o]),B.useEffect(()=>{if(A.current)return()=>{Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null,ft.current=!1)}},[A.current]),B.createElement("section",{ref:n,"aria-label":`${E} ${V}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((Y,P)=>{var J;const[Ct,H]=Y.split("-");return N.length?B.createElement("ol",{key:Y,dir:g==="auto"?Jy():g,tabIndex:-1,ref:A,className:c,"data-sonner-toaster":!0,"data-sonner-theme":T,"data-y-position":Ct,"data-x-position":H,style:{"--front-toast-height":`${((J=z[0])==null?void 0:J.height)||0}px`,"--width":`${UT}px`,"--gap":`${y}px`,...w,...GT(m,u)},onBlur:Z=>{ft.current&&!Z.currentTarget.contains(Z.relatedTarget)&&(ft.current=!1,Q.current&&(Q.current.focus({preventScroll:!0}),Q.current=null))},onFocus:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||ft.current||(ft.current=!0,Q.current=Z.relatedTarget)},onMouseEnter:()=>k(!0),onMouseMove:()=>k(!0),onMouseLeave:()=>{j||k(!1)},onDragEnd:()=>k(!1),onPointerDown:Z=>{Z.target instanceof HTMLElement&&Z.target.dataset.dismissible==="false"||X(!0)},onPointerUp:()=>X(!1)},N.filter(Z=>!Z.position&&P===0||Z.position===Y).map((Z,dt)=>{var nt,tt;return B.createElement(qT,{key:Z.id,icons:b,index:dt,toast:Z,defaultRichColors:v,duration:(nt=p==null?void 0:p.duration)!=null?nt:x,className:p==null?void 0:p.className,descriptionClassName:p==null?void 0:p.descriptionClassName,invert:l,visibleToasts:S,closeButton:(tt=p==null?void 0:p.closeButton)!=null?tt:s,interacting:j,position:Y,style:p==null?void 0:p.style,unstyled:p==null?void 0:p.unstyled,classNames:p==null?void 0:p.classNames,cancelButtonStyle:p==null?void 0:p.cancelButtonStyle,actionButtonStyle:p==null?void 0:p.actionButtonStyle,closeButtonAriaLabel:p==null?void 0:p.closeButtonAriaLabel,removeToast:Et,toasts:N.filter(M=>M.position==Z.position),heights:z.filter(M=>M.position==Z.position),setHeights:L,expandByDefault:i,gap:y,expanded:U,swipeDirections:e.swipeDirections})})):null}))}),XT=({...t})=>d.jsx(PT,{theme:"light",position:"bottom-right",className:"tw:toaster tw:group",toastOptions:{classNames:{toast:"tw:group tw:toast tw:bg-zinc-900 tw:text-white tw:border-zinc-700 tw:shadow-lg tw:rounded-lg tw:border tw:p-4",description:"tw:text-zinc-300 tw:font-mono tw:text-xs tw:bg-zinc-800 tw:px-2 tw:py-1.5 tw:rounded tw:mt-2 tw:block",actionButton:"tw:bg-primary tw:text-primary-foreground tw:rounded-md tw:px-3 tw:py-1.5 tw:text-sm tw:font-medium hover:tw:bg-primary/90",cancelButton:"tw:bg-zinc-700 tw:text-zinc-200 tw:rounded-md tw:px-3 tw:py-1.5 tw:text-sm",error:"tw:border-red-500 tw:bg-red-900"}},...t});function QT(t){const e=ZT(t),n=f.forwardRef((a,l)=>{const{children:r,...o}=a,i=f.Children.toArray(r),s=i.find($T);if(s){const c=s.props.children,m=i.map(u=>u===s?f.Children.count(c)>1?f.Children.only(null):f.isValidElement(c)?c.props.children:null:u);return d.jsx(e,{...o,ref:l,children:f.isValidElement(c)?f.cloneElement(c,void 0,m):null})}return d.jsx(e,{...o,ref:l,children:r})});return n.displayName=`${t}.Slot`,n}function ZT(t){const e=f.forwardRef((n,a)=>{const{children:l,...r}=n;if(f.isValidElement(l)){const o=FT(l),i=JT(r,l.props);return l.type!==f.Fragment&&(i.ref=a?Ga(a,o):o),f.cloneElement(l,i)}return f.Children.count(l)>1?f.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var KT=Symbol("radix.slottable");function $T(t){return f.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===KT}function JT(t,e){const n={...e};for(const a in e){const l=t[a],r=e[a];/^on[A-Z]/.test(a)?l&&r?n[a]=(...i)=>{const s=r(...i);return l(...i),s}:l&&(n[a]=l):a==="style"?n[a]={...l,...r}:a==="className"&&(n[a]=[l,r].filter(Boolean).join(" "))}return{...t,...n}}function FT(t){var a,l;let e=(a=Object.getOwnPropertyDescriptor(t.props,"ref"))==null?void 0:a.get,n=e&&"isReactWarning"in e&&e.isReactWarning;return n?t.ref:(e=(l=Object.getOwnPropertyDescriptor(t,"ref"))==null?void 0:l.get,n=e&&"isReactWarning"in e&&e.isReactWarning,n?t.props.ref:t.props.ref||t.ref)}var Ss="Dialog",[Fy]=Pl(Ss),[WT,$e]=Fy(Ss),Wy=t=>{const{__scopeDialog:e,children:n,open:a,defaultOpen:l,onOpenChange:r,modal:o=!0}=t,i=f.useRef(null),s=f.useRef(null),[c,m]=co({prop:a,defaultProp:l??!1,onChange:r,caller:Ss});return d.jsx(WT,{scope:e,triggerRef:i,contentRef:s,contentId:Xa(),titleId:Xa(),descriptionId:Xa(),open:c,onOpenChange:m,onOpenToggle:f.useCallback(()=>m(u=>!u),[m]),modal:o,children:n})};Wy.displayName=Ss;var Iy="DialogTrigger",IT=f.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=$e(Iy,n),r=vt(e,l.triggerRef);return d.jsx(st.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":ad(l.open),...a,ref:r,onClick:ot(t.onClick,l.onOpenToggle)})});IT.displayName=Iy;var ed="DialogPortal",[tN,tw]=Fy(ed,{forceMount:void 0}),ew=t=>{const{__scopeDialog:e,forceMount:n,children:a,container:l}=t,r=$e(ed,e);return d.jsx(tN,{scope:e,forceMount:n,children:f.Children.map(a,o=>d.jsx(er,{present:n||r.open,children:d.jsx(rs,{asChild:!0,container:l,children:o})}))})};ew.displayName=ed;var Es="DialogOverlay",nw=f.forwardRef((t,e)=>{const n=tw(Es,t.__scopeDialog),{forceMount:a=n.forceMount,...l}=t,r=$e(Es,t.__scopeDialog);return r.modal?d.jsx(er,{present:a||r.open,children:d.jsx(nN,{...l,ref:e})}):null});nw.displayName=Es;var eN=QT("DialogOverlay.RemoveScroll"),nN=f.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=$e(Es,n);return d.jsx(ms,{as:eN,allowPinchZoom:!0,shards:[l.contentRef],children:d.jsx(st.div,{"data-state":ad(l.open),...a,ref:e,style:{pointerEvents:"auto",...a.style}})})}),$a="DialogContent",aw=f.forwardRef((t,e)=>{const n=tw($a,t.__scopeDialog),{forceMount:a=n.forceMount,...l}=t,r=$e($a,t.__scopeDialog);return d.jsx(er,{present:a||r.open,children:r.modal?d.jsx(aN,{...l,ref:e}):d.jsx(lN,{...l,ref:e})})});aw.displayName=$a;var aN=f.forwardRef((t,e)=>{const n=$e($a,t.__scopeDialog),a=f.useRef(null),l=vt(e,n.contentRef,a);return f.useEffect(()=>{const r=a.current;if(r)return Bf(r)},[]),d.jsx(lw,{...t,ref:l,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ot(t.onCloseAutoFocus,r=>{var o;r.preventDefault(),(o=n.triggerRef.current)==null||o.focus()}),onPointerDownOutside:ot(t.onPointerDownOutside,r=>{const o=r.detail.originalEvent,i=o.button===0&&o.ctrlKey===!0;(o.button===2||i)&&r.preventDefault()}),onFocusOutside:ot(t.onFocusOutside,r=>r.preventDefault())})}),lN=f.forwardRef((t,e)=>{const n=$e($a,t.__scopeDialog),a=f.useRef(!1),l=f.useRef(!1);return d.jsx(lw,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{var o,i;(o=t.onCloseAutoFocus)==null||o.call(t,r),r.defaultPrevented||(a.current||(i=n.triggerRef.current)==null||i.focus(),r.preventDefault()),a.current=!1,l.current=!1},onInteractOutside:r=>{var s,c;(s=t.onInteractOutside)==null||s.call(t,r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const o=r.target;((c=n.triggerRef.current)==null?void 0:c.contains(o))&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&l.current&&r.preventDefault()}})}),lw=f.forwardRef((t,e)=>{const{__scopeDialog:n,trapFocus:a,onOpenAutoFocus:l,onCloseAutoFocus:r,...o}=t,i=$e($a,n),s=f.useRef(null),c=vt(e,s);return yf(),d.jsxs(d.Fragment,{children:[d.jsx(Zi,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:l,onUnmountAutoFocus:r,children:d.jsx(Qi,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":ad(i.open),...o,ref:c,onDismiss:()=>i.onOpenChange(!1)})}),d.jsxs(d.Fragment,{children:[d.jsx(rN,{titleId:i.titleId}),d.jsx(iN,{contentRef:s,descriptionId:i.descriptionId})]})]})}),nd="DialogTitle",rw=f.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=$e(nd,n);return d.jsx(st.h2,{id:l.titleId,...a,ref:e})});rw.displayName=nd;var ow="DialogDescription",iw=f.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=$e(ow,n);return d.jsx(st.p,{id:l.descriptionId,...a,ref:e})});iw.displayName=ow;var sw="DialogClose",cw=f.forwardRef((t,e)=>{const{__scopeDialog:n,...a}=t,l=$e(sw,n);return d.jsx(st.button,{type:"button",...a,ref:e,onClick:ot(t.onClick,()=>l.onOpenChange(!1))})});cw.displayName=sw;function ad(t){return t?"open":"closed"}var uw="DialogTitleWarning",[DN,fw]=_S(uw,{contentName:$a,titleName:nd,docsSlug:"dialog"}),rN=({titleId:t})=>{const e=fw(uw),n=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.

If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.

For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return f.useEffect(()=>{t&&(document.getElementById(t)||console.error(n))},[n,t]),null},oN="DialogDescriptionWarning",iN=({contentRef:t,descriptionId:e})=>{const a=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${fw(oN).contentName}}.`;return f.useEffect(()=>{var r;const l=(r=t.current)==null?void 0:r.getAttribute("aria-describedby");e&&l&&(document.getElementById(e)||console.warn(a))},[a,t,e]),null},sN=Wy,cN=ew,dw=nw,mw=aw,hw=rw,pw=iw,uN=cw;const fN=sN,dN=cN,gw=f.forwardRef(({className:t,...e},n)=>d.jsx(dw,{ref:n,className:$("tw:fixed tw:inset-0 tw:z-50 tw:bg-black/50",t),...e}));gw.displayName=dw.displayName;const vw=f.forwardRef(({className:t,children:e,...n},a)=>d.jsxs(dN,{children:[d.jsx(gw,{}),d.jsxs(mw,{ref:a,className:$("tw:fixed tw:left-[50%] tw:top-[50%] tw:z-50 tw:grid tw:w-full tw:max-w-lg tw:translate-x-[-50%] tw:translate-y-[-50%] tw:gap-4 tw:border tw:border-gray-200 tw:bg-background tw:p-6 tw:shadow-xl tw:rounded-lg",t),...n,children:[e,d.jsxs(uN,{className:"tw:absolute tw:right-4 tw:top-4 tw:rounded-sm tw:opacity-70 tw:ring-offset-background tw:transition-opacity tw:hover:opacity-100 tw:focus:outline-none tw:focus:ring-2 tw:focus:ring-ring tw:focus:ring-offset-2 tw:disabled:pointer-events-none tw:data-[state=open]:bg-accent tw:data-[state=open]:text-muted-foreground",children:[d.jsx(oy,{className:"tw:h-4 tw:w-4"}),d.jsx("span",{className:"tw:sr-only",children:"Close"})]})]})]}));vw.displayName=mw.displayName;const yw=({className:t,...e})=>d.jsx("div",{className:$("tw:flex tw:flex-col tw:space-y-1.5 tw:text-center tw:sm:text-left",t),...e});yw.displayName="DialogHeader";const ww=f.forwardRef(({className:t,...e},n)=>d.jsx(hw,{ref:n,className:$("tw:text-lg tw:font-semibold tw:leading-none tw:tracking-tight",t),...e}));ww.displayName=hw.displayName;const bw=f.forwardRef(({className:t,...e},n)=>d.jsx(pw,{ref:n,className:$("tw:text-sm tw:text-muted-foreground",t),...e}));bw.displayName=pw.displayName;function mN({config:t}){var ft,Et,Y,P,J,Ct,H,Z,dt,nt,tt;const{state:e,actions:n}=R1(t),{settings:a}=t;f.useEffect(()=>{var M;t.debugMode&&(console.log("PSFA Debug - Config:",{isPremium:t.isPremium,isAdmin:t.isAdmin,isMockMode:t.isMockMode,features:t.features,addons:t.addons,filterVisibility:t.filterVisibility,settings:t.settings}),console.log("PSFA Debug - Initial Products:",(M=t.initialState)==null?void 0:M.products))},[t]),f.useEffect(()=>{t.debugMode&&e.products.length>0&&console.log("PSFA Debug - Current State:",{query:e.query,category:e.category,filters:e.filters,productsCount:e.products.length,products:e.products})},[t.debugMode,e]);const l=f.useMemo(()=>a.hideFilters?!1:!!(e.query||e.category||a.query||a.category),[a.hideFilters,a.query,a.category,e.query,e.category]),r=!a.hideSearch,o=a.pagination||"infinite",i=f.useCallback(M=>{n.search(M.query),M.category&&M.category!=="All"&&n.setCategory(M.category),M.sort&&n.updateFilters({sort:M.sort})},[n]),s=f.useCallback(M=>{n.updateFilters({brand:M.brand,minPrice:M.minPrice,maxPrice:M.maxPrice,sort:M.sort,condition:M.condition,merchant:M.merchant,availability:M.availability,hasDeal:M.hasDeal,minSavingPercent:M.minSavingPercent})},[n]),c=f.useCallback(()=>{n.resetFilters()},[n]),m=f.useCallback(()=>{n.clearAll()},[n]),[u,h]=f.useState(!1),[v,x]=f.useState(null),[w,S]=f.useState([]),[p,g]=f.useState(""),[y,b]=f.useState(()=>{try{const M=localStorage.getItem("psfa_saved_asins");return M?new Set(JSON.parse(M)):new Set}catch{return new Set}});f.useEffect(()=>{y.size>0&&localStorage.setItem("psfa_saved_asins",JSON.stringify([...y]))},[y]);const E=f.useCallback((M,mt,ht)=>{var Wt;const Ot=(Wt=t.addonConfig)==null?void 0:Wt.boxes;Ot&&(b(jt=>new Set(jt).add(M)),fetch(Ot.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"psfa_save_product_box",nonce:Ot.nonce,asin:M,title:mt,image:ht})}).then(jt=>jt.json()).then(jt=>{var pn,It;if(jt.success&&((pn=jt.data)!=null&&pn.shortcode)){const ar=jt.data.shortcode;Ke("Product saved!",{description:ar,action:{label:"Copy",onClick:()=>{navigator.clipboard.writeText(ar),Ke("Shortcode copied!")}},duration:8e3})}else b(ar=>{const Cs=new Set(ar);return Cs.delete(M),Cs}),Ke.error(((It=jt.data)==null?void 0:It.message)||"Failed to save product")}).catch(()=>{b(jt=>{const pn=new Set(jt);return pn.delete(M),pn}),Ke.error("Failed to save product")}))},[(ft=t.addonConfig)==null?void 0:ft.boxes]),_=f.useCallback(()=>{var mt;const M=(mt=t.addonConfig)==null?void 0:mt.compare;M&&fetch(M.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"psfa_get_comparison_tables",nonce:M.nonce})}).then(ht=>ht.json()).then(ht=>{var Ot;ht.success&&((Ot=ht.data)!=null&&Ot.tables)&&S(ht.data.tables)}).catch(()=>{Ke.error("Failed to load comparison tables")})},[(Et=t.addonConfig)==null?void 0:Et.compare]),C=f.useCallback((M,mt,ht)=>{x({asin:M,title:mt,image:ht}),h(!0),_()},[_]),N=f.useCallback(M=>{var ht;const mt=(ht=t.addonConfig)==null?void 0:ht.compare;!mt||!v||fetch(mt.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"psfa_add_to_comparison",nonce:mt.nonce,table_id:M.toString(),asin:v.asin,title:v.title,image:v.image})}).then(Ot=>Ot.json()).then(Ot=>{var Wt;Ot.success?(Ke.success("Added to comparison table!"),h(!1),x(null)):Ke.error(((Wt=Ot.data)==null?void 0:Wt.message)||"Failed to add product")}).catch(()=>{Ke.error("Failed to add product")})},[(Y=t.addonConfig)==null?void 0:Y.compare,v]),D=f.useCallback(M=>{var ht;M.preventDefault();const mt=(ht=t.addonConfig)==null?void 0:ht.compare;!mt||!v||!p.trim()||fetch(mt.ajaxUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"psfa_quick_create_table",nonce:mt.nonce,name:p.trim(),asin:v.asin,title:v.title,image:v.image})}).then(Ot=>Ot.json()).then(Ot=>{var Wt;Ot.success?(Ke.success(`Table "${p}" created!`),h(!1),x(null),g("")):Ke.error(((Wt=Ot.data)==null?void 0:Wt.message)||"Failed to create table")}).catch(()=>{Ke.error("Failed to create table")})},[(P=t.addonConfig)==null?void 0:P.compare,v,p]),{sentinelRef:z}=vT({hasMore:e.hasMore,isLoading:e.isLoadingMore,onLoadMore:n.loadMore}),L=f.useMemo(()=>e.products.map(M=>({asin:M.asin,title:M.title,imageUrl:M.img||"",detailPageUrl:M.url,price:M.price,listPrice:M.savingBasis,savingsPercent:M.savingPercent||void 0,brand:M.brand,isPrime:M.isPrimeExclusive,dealBadge:M.dealBadge,dealCountdown:M.dealCountdown,isPrimeExclusive:M.isPrimeExclusive,isStockScarce:M.isStockScarce,salesRank:M.salesRank||void 0})),[e.products]),U=f.useMemo(()=>({brands:e.filterOptions.brands.map(M=>M.value),conditions:e.filterOptions.conditions.map(M=>M.value)}),[e.filterOptions]),k=f.useMemo(()=>({brand:e.filters.brand,minPrice:e.filters.minPrice,maxPrice:e.filters.maxPrice,sort:e.filters.sort,condition:e.filters.condition,merchant:e.filters.merchant,availability:e.filters.availability,hasDeal:e.filters.hasDeal,minSavingPercent:e.filters.minSavingPercent}),[e.filters]),j=f.useMemo(()=>(e.filters.brand?1:0)+(e.filters.minPrice>0?1:0)+(e.filters.maxPrice>0?1:0)+(e.filters.sort&&e.filters.sort!=="Relevance"?1:0)+(e.filters.condition?1:0)+(e.filters.merchant?1:0)+(e.filters.availability&&e.filters.availability!=="Available"?1:0)+(e.filters.hasDeal==="1"?1:0)+(e.filters.minSavingPercent>0?1:0),[e.filters]),X=j>0,[T,R]=f.useState(()=>X||a.hideSearch),A=f.useCallback(()=>{R(M=>!M)},[]),{buttonText:V}=O1({isPremium:t.isPremium,buttonText:t.settings.buttonText}),Q=V;return d.jsxs("div",{className:"psfa-frontend-app",children:[r&&d.jsx(mA,{initialQuery:e.query,initialCategory:e.category||"All",initialSort:e.filters.sort||"Relevance",onSearch:i,showCategory:!1,showSort:!1,ajaxUrl:t.ajaxUrl,nonce:t.nonce,enableAutocomplete:!0,showFiltersToggle:l,filtersExpanded:T,onFiltersToggle:A,activeFilterCount:j,onClearAll:m}),l&&d.jsx(oT,{options:U,values:k,onChange:s,onClear:c,isPremium:t.isPremium,isExpanded:T,visibility:t.filterVisibility}),(!l||!T)&&d.jsx("div",{className:"tw:h-4"}),e.error&&d.jsxs("div",{className:"tw:my-5 tw:p-4 tw:bg-red-50 tw:border-l-4 tw:border-solid tw:border-red-500 tw:rounded-xs",children:[d.jsx("strong",{className:"tw:text-red-700",children:"Error:"})," ",d.jsx("span",{className:"tw:text-red-600",children:e.error})]}),e.category&&!e.query&&!a.hideCategoryBanner&&e.products.length>0&&d.jsxs("div",{className:"tw:my-5 tw:p-4 tw:bg-[var(--color-background-secondary)] tw:border-l-4 tw:border-solid tw:border-[var(--color-primary)] tw:rounded-xs",children:[d.jsxs("h2",{className:"tw:m-0 tw:mb-3 tw:text-[var(--color-foreground)] tw:text-lg tw:font-semibold",children:["Top Products in ",e.category.charAt(0).toUpperCase()+e.category.slice(1)]}),d.jsx("p",{className:"tw:m-0 tw:text-[var(--color-foreground-secondary)]",children:"Showing popular products from this category"})]}),d.jsx(pT,{products:L,loading:e.isLoading,displayMode:a.displayMode||"grid",buttonText:Q,showDealBadge:t.isPremium&&((J=t.features)==null?void 0:J.dealBadge)!==!1,showCountdown:t.isPremium&&((Ct=t.features)==null?void 0:Ct.dealCountdown)!==!1,showPrimeExclusive:t.isPremium&&((H=t.features)==null?void 0:H.primeExclusive)!==!1,showLowStock:t.isPremium&&((Z=t.features)==null?void 0:Z.lowStock)!==!1,showBestseller:t.isPremium&&((dt=t.features)==null?void 0:dt.bestseller)!==!1,hideAmazonIcon:t.settings.hideAmazonIcon,pluginUrl:t.pluginUrl,showBoxButton:(nt=t.addons)==null?void 0:nt.productBoxes,showCompareButton:(tt=t.addons)==null?void 0:tt.comparisonTables,onAddToBox:E,onAddToCompare:C,savedAsins:y}),o==="infinite"&&d.jsx("div",{ref:z,className:"tw:h-px"}),e.isLoadingMore&&o==="infinite"&&d.jsxs("div",{className:"tw:text-center tw:py-8",children:[d.jsx("div",{className:"tw:inline-block tw:h-8 tw:w-8 tw:animate-spin tw:rounded-full tw:border-4 tw:border-solid tw:border-primary tw:border-r-transparent"}),d.jsx("p",{className:"tw:mt-3 tw:text-muted-foreground",children:"Loading more products..."})]}),o==="button"&&e.hasMore&&!e.isLoading&&e.products.length>0&&d.jsx("div",{className:"tw:text-center tw:my-5",children:d.jsx("button",{type:"button",onClick:n.loadMore,disabled:e.isLoadingMore,className:"tw:py-2 tw:px-4 tw:text-sm tw:bg-primary tw:text-primary-foreground tw:rounded-md tw:hover:bg-primary/90 tw:disabled:opacity-50",children:e.isLoadingMore?"Loading...":"Load More Products"})}),!e.hasMore&&e.products.length>0&&!e.isLoading&&o!=="none"&&d.jsx("div",{className:"tw:text-center tw:py-8 tw:text-muted-foreground",children:d.jsx("p",{children:"You've reached the end of the results."})}),t.showBranding!==!1&&d.jsx("div",{className:"tw:text-center tw:my-5 tw:mb-3 tw:p-2",children:d.jsxs("a",{href:"https://paapiplugin.com",target:"_blank",rel:"noopener",title:"Paapi Product Search For Amazon",className:"tw:text-muted-foreground tw:text-xs tw:no-underline tw:inline-flex tw:items-center tw:gap-1",children:[d.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:d.jsx("path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z"})}),"Powered by PSFA"]})}),d.jsx(fN,{open:u,onOpenChange:h,children:d.jsxs(vw,{className:"tw:max-w-md",children:[d.jsxs(yw,{children:[d.jsx(ww,{children:"Select table"}),d.jsx(bw,{className:"tw:sr-only",children:"Choose an existing table or create a new one"})]}),d.jsxs("div",{className:"tw:space-y-4",children:[w.length>0&&d.jsx("div",{className:"tw:space-y-2",children:w.map(M=>d.jsxs(ln,{variant:"outline",className:"tw:w-full tw:justify-between tw:h-auto tw:py-3",onClick:()=>N(M.id),children:[d.jsx("span",{className:"tw:font-medium",children:M.name}),d.jsxs("span",{className:"tw:text-muted-foreground tw:text-xs",children:[M.count," products"]})]},M.id))}),d.jsxs("div",{className:"tw:border-t tw:pt-4",children:[d.jsx("p",{className:"tw:text-sm tw:text-muted-foreground tw:mb-3",children:"Create new table"}),d.jsxs("form",{onSubmit:D,className:"tw:flex tw:gap-2",children:[d.jsx(pf,{type:"text",placeholder:"Table name...",value:p,onChange:M=>g(M.target.value),className:"tw:flex-1"}),d.jsx(ln,{type:"submit",disabled:!p.trim(),children:"Create"})]})]})]})]})}),d.jsx(XT,{})]})}function ld(){document.querySelectorAll(".psfa-frontend-root:not(.psfa-product-box-root):not(.psfa-comparison-table-root)").forEach(e=>{const n=e.getAttribute("data-config");if(!n){console.error("PSFA: Missing data-config attribute on frontend root");return}try{const a=JSON.parse(n),l=e,r=d.jsx(f.StrictMode,{children:d.jsx(mN,{config:a})});C1.createRoot(l).render(r)}catch(a){console.error("PSFA: Failed to mount frontend",a),e.innerHTML='<p style="text-align:center;padding:20px;color:#c0392b;">Search failed to load. Please refresh the page.</p>'}})}window.__psfaMountFrontend=ld,document.readyState==="loading"?document.addEventListener("DOMContentLoaded",ld):ld()})();
