vendor: 5,176 bytes, lines 1-2
1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/inventory-BB5SP0Cn.js","assets/sold-listing-card-eugebuK4.js","assets/checkbox-D-yzeyNW.js","assets/radio-group-B_8GELmD.js","assets/schema-c3yk4TUP.js","assets/globe-CzfWMDV2.js","assets/chart-column-C3gUalnU.js","assets/trending-down-C4fM-iJR.js","assets/pricing-tool-CsZnaSPX.js","assets/accordion-B0lauRDP.js","assets/clock-yvtkzWED.js","assets/contact-CNfOs2WD.js","assets/send-CCNrcDX1.js","assets/message-circle-DRW-FxrP.js","assets/guided-sale-D2Nq4C08.js","assets/badge-check-LRRrBtwk.js","assets/camera-DPixyS_b.js","assets/megaphone-DspXMPru.js","assets/consultations-MG8E8-bv.js","assets/calendar-CzrNKeph.js","assets/community-BHt4EOOM.js","assets/blog-post-B-uVK46h.js","assets/arrow-left-DM0ax3xw.js","assets/price-check-BsQEUSoc.js","assets/price-check-form-BNEzhHnW.js","assets/photo-manager-CsR9xaEr.js","assets/image-utils-BdLlZZa8.js","assets/thermometer-FkdOWzgv.js","assets/airstream-value-9cOdqy_x.js","assets/arrow-down-DTUufnef.js","assets/become-dealer-7Cm_NkSm.js","assets/auth-landing-B9qy1D7L.js","assets/my-airstream-landing-C4NnwImO.js","assets/wrench-BfrVIuJx.js","assets/profile-DEIk5OJb.js","assets/favorites-nSBuEYPt.js","assets/my-transactions-CHr5d3vE.js","assets/paypal-checkout-CkQuOSAR.js","assets/credit-card-CZd_T5Qh.js","assets/hand-coins-s0-_FQQM.js","assets/eye-BGPpYgnY.js","assets/my-airstream-DiI37ufl.js","assets/my-guided-sale-zCUb75h7.js","assets/disclosure-sections-TT-5Tgtx.js","assets/agreement-form-embedded-CbNFeCge.js","assets/receipt-QKP6NPfq.js","assets/save-DMfE30a6.js","assets/formatDistanceToNow-D2IM5fo_.js","assets/use-feature-flags-Ctg27tbf.js","assets/plus-kheoxUpz.js","assets/ruler-DOGqsF1p.js","assets/layout-dashboard-DheW3a85.js","assets/create-listing-DSNxivRn.js","assets/link-BMD25ZKp.js","assets/edit-listing-N0DOuTNQ.js","assets/messages-DZAnvVKl.js","assets/admin-GVmBuNjg.js","assets/target-DrdpcpV5.js","assets/circle-x-Cz8IIDe-.js","assets/triangle-alert-CCp-Ia2n.js","assets/separator-DaPqPCZ7.js","assets/admin-approval-CE4aFgQ6.js","assets/mobile-admin-D98vD0z7.js","assets/price-check-report-4pcF3x4w.js","assets/seller-disclosure-BCoEV5Gk.js","assets/agreement-CnT_sroV.js","assets/sign-purchase-agreement-CZ6cCxdI.js","assets/review-purchase-agreement-DDySpKBl.js","assets/pay-invoice-DzkiupoD.js","assets/pay-deposit-DxccDyDu.js","assets/sign-in-B6nG0Hmf.js","assets/auth-redirect-DDNs4lA4.js","assets/auth-complete-fbVoRwt6.js"])))=>i.map(i=>d[i]); 2var ow=e=>{throw TypeError(e)};var lw=(e,t,n)=>t.has(e)||ow("Cannot "+n);var xn=(e,t,n)=>(lw(e,t,"read from private field"),n?n.call(e):t.get(e)),cw=(e,t,n)=>t.has(e)?ow("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Gm=(e,t,n,a)=>(lw(e,t,"write to private field"),a?a.call(e,n):t.set(e,n),n);function Qd(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in e)){const l=Object.getOwnPropertyDescriptor(a,o);l&&Object.defineProperty(e,o,l.get?l:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&a(d)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function a(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();var oB=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ei(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Km={exports:{}},Ml={};var uw;function Qk(){if(uw)return Ml;uw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,o,l){var d=null;if(l!==void 0&&(d=""+l),o.key!==void 0&&(d=""+o.key),"key"in o){l={};for(var h in o)h!=="key"&&(l[h]=o[h])}else l=o;return o=l.ref,{$$typeof:e,type:a,key:d,ref:o!==void 0?o:null,props:l}}return Ml.Fragment=t,Ml.jsx=n,Ml.jsxs=n,Ml}var dw;function Yk(){return dw||(dw=1,Km.exports=Qk()),Km.exports}var u=Yk();const Zk=ei(u),Wk=Qd({__proto__:null,default:Zk},[u]);var Qm={exports:{}},Dl={},Ym={exports:{}},Zm={};var fw;function Xk(){return fw||(fw=1,(function(e){function t(D,q){var te=D.length;D.push(q);e:for(;0<te;){var ue=te-1>>>1,j=D[ue];if(0<o(j,q))D[ue]=q,D[te]=j,te=ue;else break e}}function n(D){return D.length===0?null:D[0]}function a(D){if(D.length===0)return null;var q=D[0],te=D.pop();if(te!==q){D[0]=te;e:for(var ue=0,j=D.length,L=j>>>1;ue<L;){var V=2*(ue+1)-1,J=D[V],ge=V+1,be=D[ge];if(0>o(J,te))ge<j&&0>o(be,J)?(D[ue]=be,D[ge]=te,ue=ge):(D[ue]=J,D[V]=te,ue=V);else if(ge<j&&0>
vendor: 32,577 bytes, lines 2-9
2o(be,te))D[ue]=be,D[ge]=te,ue=ge;else break e}}return q}function o(D,q){var te=D.sortIndex-q.sortIndex;return te!==0?te:D.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var d=Date,h=d.now();e.unstable_now=function(){return d.now()-h}}var m=[],g=[],y=1,x=null,b=3,C=!1,E=!1,w=!1,_=!1,R=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function N(D){for(var q=n(g);q!==null;){if(q.callback===null)a(g);else if(q.startTime<=D)a(g),q.sortIndex=q.expirationTime,t(m,q);else break;q=n(g)}}function O(D){if(w=!1,N(D),!E)if(n(m)!==null)E=!0,U||(U=!0,X());else{var q=n(g);q!==null&&ve(O,q.startTime-D)}}var U=!1,Y=-1,F=5,W=-1;function ce(){return _?!0:!(e.unstable_now()-W<F)}function fe(){if(_=!1,U){var D=e.unstable_now();W=D;var q=!0;try{e:{E=!1,w&&(w=!1,A(Y),Y=-1),C=!0;var te=b;try{t:{for(N(D),x=n(m);x!==null&&!(x.expirationTime>D&&ce());){var ue=x.callback;if(typeof ue=="function"){x.callback=null,b=x.priorityLevel;var j=ue(x.expirationTime<=D);if(D=e.unstable_now(),typeof j=="function"){x.callback=j,N(D),q=!0;break t}x===n(m)&&a(m),N(D)}else a(m);x=n(m)}if(x!==null)q=!0;else{var L=n(g);L!==null&&ve(O,L.startTime-D),q=!1}}break e}finally{x=null,b=te,C=!1}q=void 0}}finally{q?X():U=!1}}}var X;if(typeof k=="function")X=function(){k(fe)};else if(typeof MessageChannel<"u"){var ae=new MessageChannel,oe=ae.port2;ae.port1.onmessage=fe,X=function(){oe.postMessage(null)}}else X=function(){R(fe,0)};function ve(D,q){Y=R(function(){D(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(D){switch(b){case 1:case 2:case 3:var q=3;break;default:q=b}var te=b;b=q;try{return D()}finally{b=te}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(D,q){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var te=b;b=D;try{return q()}finally{b=te}},e.unstable_scheduleCallback=function(D,q,te){var ue=e.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?ue+te:ue):te=ue,D){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=te+j,D={id:y++,callback:q,priorityLevel:D,startTime:te,expirationTime:j,sortIndex:-1},te>ue?(D.sortIndex=te,t(g,D),n(m)===null&&D===n(g)&&(w?(A(Y),Y=-1):w=!0,ve(O,te-ue))):(D.sortIndex=j,t(m,D),E||C||(E=!0,U||(U=!0,X()))),D},e.unstable_shouldYield=ce,e.unstable_wrapCallback=function(D){var q=b;return function(){var te=b;b=q;try{return D.apply(this,arguments)}finally{b=te}}}})(Zm)),Zm}var hw;function Jk(){return hw||(hw=1,Ym.exports=Xk()),Ym.exports}var Wm={exports:{}},He={};var mw;function eA(){if(mw)return He;mw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),d=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function b(j){return j===null||typeof j!="object"?null:(j=x&&j[x]||j["@@iterator"],typeof j=="function"?j:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,w={};function _(j,L,V){this.props=j,this.context=L,this.refs=w,this.updater=V||C}_.prototype.isReactComponent={},_.prototype.setState=function(j,L){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,L,"setState")},_.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function R(){}R.prototype=_.prototype;function A(j,L,V){this.props=j,this.context=L,this.refs=w,this.updater=V||C}var k=A.prototype=new R;k.constructor=A,E(k,_.prototype),k.isPureReactComponent=!0;var N=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},U=Object.prototype.hasOwnProperty;function Y(j,L,V,J,ge,be){return V=be.ref,{$$typeof:e,type:j,key:L,ref:V!==void 0?V:null,props:be}}function F(j,L){return Y(j.type,L,void 0,void 0,void 0,j.props)}function W(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function ce(j){var L={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(V){return L[V]})}var fe=/\/+/g;function X(j,L){return typeof j=="object"&&j!==null&&j.key!=null?ce(""+j.key):L.toString(36)}function ae(){}function oe(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(ae,ae):(j.status="pending",j.then(function(L){j.status==="pending"&&(j.status="fulfilled",j.value=L)},function(L){j.status==="pending"&&(j.status="rejected",j.reason=L)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function ve(j,L,V,J,ge){var be=typeof j;(be==="undefined"||be==="boolean")&&(j=null);var ye=!1;if(j===null)ye=!0;else switch(be){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(j.$$typeof){case e:case t:ye=!0;break;case y:return ye=j._init,ve(ye(j._payload),L,V,J,ge)}}if(ye)return ge=ge(j),ye=J===""?"."+X(j,0):J,N(ge)?(V="",ye!=null&&(V=ye.replace(fe,"$&/")+"/"),ve(ge,L,V,"",function(Oe){return Oe})):ge!=null&&(W(ge)&&(ge=F(ge,V+(ge.key==null||j&&j.key===ge.key?"":(""+ge.key).replace(fe,"$&/")+"/")+ye)),L.push(ge)),1;ye=0;var qe=J===""?".":J+":";if(N(j))for(var de=0;de<j.length;de++)J=j[de],be=qe+X(J,de),ye+=ve(J,L,V,be,ge);else if(de=b(j),typeof de=="function")for(j=de.call(j),de=0;!(J=j.next()).done;)J=J.value,be=qe+X(J,de++),ye+=ve(J,L,V,be,ge);else if(be==="object"){if(typeof j.then=="function")return ve(oe(j),L,V,J,ge);throw L=String(j),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return ye}function D(j,L,V){if(j==null)return j;var J=[],ge=0;return ve(j,J,"","",function(be){return L.call(V,be,ge++)}),J}function q(j){if(j._status===-1){var L=j._result;L=L(),L.then(function(V){(j._status===0||j._status===-1)&&(j._status=1,j._result=V)},function(V){(j._status===0||j._status===-1)&&(j._status=2,j._result=V)}),j._status===-1&&(j._status=0,j._result=L)}if(j._status===1)return j._result.default;throw j._result}var te=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)};function ue(){}return He.Children={map:D,forEach:function(j,L,V){D(j,function(){L.apply(this,arguments)},V)},count:function(j){var L=0;return D(j,function(){L++}),L},toArray:function(j){return D(j,function(L){return L})||[]},only:function(j){if(!W(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},He.Component=_,He.Fragment=n,He.Profiler=o,He.PureComponent=A,He.StrictMode=a,He.Suspense=m,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,He.__COMPILER_RUNTIME={__proto__:null,c:function(j){return O.H.useMemoCache(j)}},He.cache=function(j){return function(){return j.apply(null,arguments)}},He.cloneElement=function(j,L,V){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var J=E({},j.props),ge=j.key,be=void 0;if(L!=null)for(ye in L.ref!==void 0&&(be=void 0),L.key!==void 0&&(ge=""+L.key),L)!U.call(L,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&L.ref===void 0||(J[ye]=L[ye]);var ye=arguments.length-2;if(ye===1)J.children=V;else if(1<ye){for(var qe=Array(ye),de=0;de<ye;de++)qe[de]=arguments[de+2];J.children=qe}return Y(j.type,ge,void 0,void 0,be,J)},He.createContext=function(j){return j={$$typeof:d,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:l,_context:j},j},He.createElement=function(j,L,V){var J,ge={},be=null;if(L!=null)for(J in L.key!==void 0&&(be=""+L.key),L)U.call(L,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(ge[J]=L[J]);var ye=arguments.length-2;if(ye===1)ge.children=V;else if(1<ye){for(var qe=Array(ye),de=0;de<ye;de++)qe[de]=arguments[de+2];ge.children=qe}if(j&&j.defaultProps)for(J in ye=j.defaultProps,ye)ge[J]===void 0&&(ge[J]=ye[J]);return Y(j,be,void 0,void 0,null,ge)},He.createRef=function(){return{current:null}},He.forwardRef=function(j){return{$$typeof:h,render:j}},He.isValidElement=W,He.lazy=function(j){return{$$typeof:y,_payload:{_status:-1,_result:j},_init:q}},He.memo=function(j,L){return{$$typeof:g,type:j,compare:L===void 0?null:L}},He.startTransition=function(j){var L=O.T,V={};O.T=V;try{var J=j(),ge=O.S;ge!==null&&ge(V,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(ue,te)}catch(be){te(be)}finally{O.T=L}},He.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},He.use=function(j){return O.H.use(j)},He.useActionState=function(j,L,V){return O.H.useActionState(j,L,V)},He.useCallback=function(j,L){return O.H.useCallback(j,L)},He.useContext=function(j){return O.H.useContext(j)},He.useDebugValue=function(){},He.useDeferredValue=function(j,L){return O.H.useDeferredValue(j,L)},He.useEffect=function(j,L,V){var J=O.H;if(typeof V=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(j,L)},He.useId=function(){return O.H.useId()},He.useImperativeHandle=function(j,L,V){return O.H.useImperativeHandle(j,L,V)},He.useInsertionEffect=function(j,L){return O.H.useInsertionEffect(j,L)},He.useLayoutEffect=function(j,L){return O.H.useLayoutEffect(j,L)},He.useMemo=function(j,L){return O.H.useMemo(j,L)},He.useOptimistic=function(j,L){return O.H.useOptimistic(j,L)},He.useReducer=function(j,L,V){return O.H.useReducer(j,L,V)},He.useRef=function(j){return O.H.useRef(j)},He.useState=function(j){return O.H.useState(j)},He.useSyncExternalStore=function(j,L,V){return O.H.useSyncExternalStore(j,L,V)},He.useTransition=function(){return O.H.useTransition()},He.version="19.1.4",He}var pw;function Yd(){return pw||(pw=1,Wm.exports=eA()),Wm.exports}var Xm={exports:{}},wn={};var gw;function tA(){if(gw)return wn;gw=1;var e=Yd();function t(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function l(m,g,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:m,containerInfo:g,implementation:y}}var d=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return wn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,wn.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return l(m,g,null,y)},wn.flushSync=function(m){var g=d.T,y=a.p;try{if(d.T=null,a.p=2,m)return m()}finally{d.T=g,a.p=y,a.d.f()}},wn.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,a.d.C(m,g))},wn.prefetchDNS=function(m){typeof m=="string"&&a.d.D(m)},wn.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,x=h(y,g.crossOrigin),b=typeof g.integrity=="string"?g.integrity:void 0,C=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?a.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:b,fetchPriority:C}):y==="script"&&a.d.X(m,{crossOrigin:x,integrity:b,fetchPriority:C,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},wn.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);a.d.M(m,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&a.d.M(m)},wn.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,x=h(y,g.crossOrigin);a.d.L(m,y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},wn.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=h(g.as,g.crossOrigin);a.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else a.d.m(m)},wn.requestFormReset=function(m){a.d.r(m)},wn.unstable_batchedUpdates=function(m,g){return m(g)},wn.useFormState=function(m,g,y){return d.H.useFormState(m,g,y)},wn.useFormStatus=function(){return d.H.useHostTransitionStatus()},wn.version="19.1.4",wn}var yw;function n_(){if(yw)return Xm.exports;yw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Xm.exports=tA(),Xm.exports}var vw;function nA(){if(vw)return Dl;vw=1;var e=Jk(),t=Yd(),n=n_();function a(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)s+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function l(r){var s=r,i=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(i=s.return),r=s.return;while(r)}return s.tag===3?i:null}function d(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function h(r){if(l(r)!==r)throw Error(a(188))}function m(r){var s=r.alternate;if(!s){if(s=l(r),s===null)throw Error(a(188));return s!==r?null:r}for(var i=r,c=s;;){var f=i.return;if(f===null)break;var p=f.alternate;if(p===null){if(c=f.return,c!==null){i=c;continue}break}if(f.child===p.child){for(p=f.child;p;){if(p===i)return h(f),r;if(p===c)return h(f),s;p=p.sibling}throw Error(a(188))}if(i.return!==c.return)i=f,c=p;else{for(var S=!1,T=f.child;T;){if(T===i){S=!0,i=f,c=p;break}if(T===c){S=!0,c=f,i=p;break}T=T.sibling}if(!S){for(T=p.child;T;){if(T===i){S=!0,i=p,c=f;break}if(T===c){S=!0,c=p,i=f;break}T=T.sibling}if(!S)throw Error(a(189))}}if(i.alternate!==c)throw Error(a(190))}if(i.tag!==3)throw Error(a(188));return i.stateNode.current===i?r:s}function g(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=g(r),s!==null)return s;r=r.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),_=Symbol.for("react.profiler"),R=Symbol.for("react.provider"),A=Symbol.for("react.consumer"),k=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),U=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),ce=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function X(r){return r===null||typeof r!="object"?null:(r=fe&&r[fe]||r["@@iterator"],typeof r=="function"?r:null)}var ae=Symbol.for("react.client.reference");function oe(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===ae?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case E:return"Fragment";case _:return"Profiler";case w:return"StrictMode";case O:return"Suspense";case U:return"SuspenseList";case W:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case C:return"Portal";case k:return(r.displayName||"Context")+".Provider";case A:return(r._context.displayName||"Context")+".Consumer";case N:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case Y:return s=r.displayName||null,s!==null?s:oe(r.type)||"Memo";case F:s=r._payload,r=r._init;try{return oe(r(s))}catch{}}return null}var ve=Array.isArray,D=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},ue=[],j=-1;function L(r){return{current:r}}function V(r){0>j||(r.current=ue[j],ue[j]=null,j--)}function J(r,s){j++,ue[j]=r.current,r.current=s}var ge=L(null),be=L(null),ye=L(null),qe=L(null);function de(r,s){switch(J(ye,s),J(be,r),J(ge,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?D0(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=D0(s),r=I0(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}V(ge),J(ge,r)}function Oe(){V(ge),V(be),V(ye)}function St(r){r.memoizedState!==null&&J(qe,r);var s=ge.current,i=I0(s,r.type);s!==i&&(J(be,r),J(ge,i))}function Ze(r){be.current===r&&(V(ge),V(be)),qe.current===r&&(V(qe),kl._currentValue=te)}var tt=Object.prototype.hasOwnProperty,at=e.unstable_scheduleCallback,zt=e.unstable_cancelCallback,on=e.unstable_shouldYield,ya=e.unstable_requestPaint,Zt=e.unstable_now,Ss=e.unstable_getCurrentPriorityLevel,li=e.unstable_ImmediatePriority,ci=e.unstable_UserBlockingPriority,ui=e.unstable_NormalPriority,Rc=e.unstable_LowPriority,Pc=e.unstable_IdlePriority,Mc=e.log,Dc=e.unstable_setDisableYieldValue,va=null,Cn=null;function Kr(r){if(typeof Mc=="function"&&Dc(r),Cn&&typeof Cn.setStrictMode=="function")try{Cn.setStrictMode(va,r)}catch{}}var Pn=Math.clz32?Math.clz32:$,Ic=Math.log,P=Math.LN2;function $(r){return r>>>=0,r===0?32:31-(Ic(r)/P|0)|0}var H=256,le=4194304;function ie(r){var s=r&42;if(s!==0)return s;switch(r&-r){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return r&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function we(r,s,i){var c=r.pendingLanes;if(c===0)return 0;var f=0,p=r.suspendedLanes,S=r.pingedLanes;r=r.warmLanes;var T=c&134217727;return T!==0?(c=T&~p,c!==0?f=ie(c):(S&=T,S!==0?f=ie(S):i||(i=T&~r,i!==0&&(f=ie(i))))):(T=c&~p,T!==0?f=ie(T):S!==0?f=ie(S):i||(i=c&~r,i!==0&&(f=ie(i)))),f===0?0:s!==0&&s!==f&&(s&p)===0&&(p=f&-f,i=s&-s,p>=i||p===32&&(i&4194048)!==0)?s:f}function me(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function Se(r,s){switch(r){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 Me(){var r=H;return H<<=1,(H&4194048)===0&&(H=256),r}function ut(){var r=le;return le<<=1,(le&62914560)===0&&(le=4194304),r}function Rt(r){for(var s=[],i=0;31>i;i++)s.push(r);return s}function En(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function xr(r,s,i,c,f,p){var S=r.pendingLanes;r.pendingLanes=i,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=i,r.entangledLanes&=i,r.errorRecoveryDisabledLanes&=i,r.shellSuspendCounter=0;var T=r.entanglements,M=r.expirationTimes,K=r.hiddenUpdates;for(i=S&~i;0<i;){var ee=31-Pn(i),re=1<<ee;T[ee]=0,M[ee]=-1;var Q=K[ee];if(Q!==null)for(K[ee]=null,ee=0;ee<Q.length;ee++){var Z=Q[ee];Z!==null&&(Z.lane&=-536870913)}i&=~re}c!==0&&_s(r,c,0),p!==0&&f===0&&r.tag!==0&&(r.suspendedLanes|=p&~(S&~s))}function _s(r,s,i){r.pendingLanes|=s,r.suspendedLanes&=~s;var c=31-Pn(s);r.entangledLanes|=s,r.entanglements[c]=r.entanglements[c]|1073741824|i&4194090}function Lc(r,s){var i=r.entangledLanes|=s;for(r=r.entanglements;i;){var c=31-Pn(i),f=1<<c;f&s|r[c]&s&&(r[c]|=s),i&=~f}}function Qr(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function zo(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function Uo(){var r=q.p;return r!==0?r:(r=window.event,r===void 0?32:tw(r.type))}function Lj(r,s){var i=q.p;try{return q.p=r,s()}finally{q.p=i}}var Cs=Math.random().toString(36).slice(2),vn="__reactFiber$"+Cs,Mn="__reactProps$"+Cs,di="__reactContainer$"+Cs,zf="__reactEvents$"+Cs,zj="__reactListeners$"+Cs,Uj="__reactHandles$"+Cs,_v="__reactResources$"+Cs,Vo="__reactMarker$"+Cs;function Uf(r){delete r[vn],delete r[Mn],delete r[zf],delete r[zj],delete r[Uj]}function fi(r){var s=r[vn];if(s)return s;for(var i=r.parentNode;i;){if(s=i[di]||i[vn]){if(i=s.alternate,s.child!==null||i!==null&&i.child!==null)for(r=V0(r);r!==null;){if(i=r[vn])return i;r=V0(r)}return s}r=i,i=r.parentNode}return null}function hi(r){if(r=r[vn]||r[di]){var s=r.tag;if(s===5||s===6||s===13||s===26||s===27||s===3)return r}return null}function Fo(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r.stateNode;throw Error(a(33))}function mi(r){var s=r[_v];return s||(s=r[_v]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function Wt(r){r[Vo]=!0}var Cv=new Set,Ev={};function ba(r,s){pi(r,s),pi(r+"Capture",s)}function pi(r,s){for(Ev[r]=s,r=0;r<s.length;r++)Cv.add(s[r])}var Vj=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]*$"),Tv={},jv={};function Fj(r){return tt.call(jv,r)?!0:tt.call(Tv,r)?!1:Vj.test(r)?jv[r]=!0:(Tv[r]=!0,!1)}function zc(r,s,i){if(Fj(s))if(i===null)r.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":r.removeAttribute(s);return;case"boolean":var c=s.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){r.removeAttribute(s);return}}r.setAttribute(s,""+i)}}function Uc(r,s,i){if(i===null)r.removeAttribute(s);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttribute(s,""+i)}}function Yr(r,s,i,c){if(c===null)r.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(i);return}r.setAttributeNS(s,i,""+c)}}var Vf,Nv;function gi(r){if(Vf===void 0)try{throw Error()}catch(i){var s=i.stack.trim().match(/\n( *(at )?)/);Vf=s&&s[1]||"",Nv=-1<i.stack.indexOf(` 3 at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return` 4`+Vf+r+Nv}var Ff=!1;function Bf(r,s){if(!r||Ff)return"";Ff=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(s){var re=function(){throw Error()};if(Object.defineProperty(re.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(re,[])}catch(Z){var Q=Z}Reflect.construct(r,[],re)}else{try{re.call()}catch(Z){Q=Z}r.call(re.prototype)}}else{try{throw Error()}catch(Z){Q=Z}(re=r())&&typeof re.catch=="function"&&re.catch(function(){})}}catch(Z){if(Z&&Q&&typeof Z.stack=="string")return[Z.stack,Q.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=c.DetermineComponentFrameRoot(),S=p[0],T=p[1];if(S&&T){var M=S.split(` 5`),K=T.split(` 6`);for(f=c=0;c<M.length&&!M[c].includes("DetermineComponentFrameRoot");)c++;for(;f<K.length&&!K[f].includes("DetermineComponentFrameRoot");)f++;if(c===M.length||f===K.length)for(c=M.length-1,f=K.length-1;1<=c&&0<=f&&M[c]!==K[f];)f--;for(;1<=c&&0<=f;c--,f--)if(M[c]!==K[f]){if(c!==1||f!==1)do if(c--,f--,0>f||M[c]!==K[f]){var ee=` 7`+M[c].replace(" at new "," at ");return r.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",r.displayName)),ee}while(1<=c&&0<=f);break}}}finally{Ff=!1,Error.prepareStackTrace=i}return(i=r?r.displayName||r.name:"")?gi(i):""}function Bj(r){switch(r.tag){case 26:case 27:case 5:return gi(r.type);case 16:return gi("Lazy");case 13:return gi("Suspense");case 19:return gi("SuspenseList");case 0:case 15:return Bf(r.type,!1);case 11:return Bf(r.type.render,!1);case 1:return Bf(r.type,!0);case 31:return gi("Activity");default:return""}}function kv(r){try{var s="";do s+=Bj(r),r=r.return;while(r);return s}catch(i){return` 8Error generating stack: `+i.message+` 9`+i.stack}}function ar(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function Av(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function $j(r){var s=Av(r)?"checked":"value",i=Object.getOwnPropertyDescriptor(r.constructor.prototype,s),c=""+r[s];if(!r.hasOwnProperty(s)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var f=i.get,p=i.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return f.call(this)},set:function(S){c=""+S,p.call(this,S)}}),Object.defineProperty(r,s,{enumerable:i.enumerable}),{getValue:function(){return c},setValue:function(S){c=""+S},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function Vc(r){r._valueTracker||(r._valueTracker=$j(r))}function Ov(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var i=s.getValue(),c="";return r&&(c=Av(r)?r.checked?"true":"false":r.value),r=c,r!==i?(s.setValue(r),!0):!1}function Fc(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Hj=/[\n"\\]/g;function ir(r){return r.replace(Hj,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function $f(r,s,i,c,f,p,S,T){r.name="",S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?r.type=S:r.removeAttribute("type"),s!=null?S==="number"?(s===0&&r.value===""||r.value!=s)&&(r.value=""+ar(s)):r.value!==""+ar(s)&&(r.value=""+ar(s)):S!=="submit"&&S!=="reset"||r.removeAttribute("value"),s!=null?Hf(r,S,ar(s)):i!=null?Hf(r,S,ar(i)):c!=null&&r.removeAttribute("value"),f==null&&p!=null&&(r.defaultChecked=!!p),f!=null&&(r.checked=f&&typeof f!="function"&&typeof f!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?r.name=""+ar(T):r.removeAttribute("name")}function Rv(r,s,i,c,f,p,S,T){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(r.type=p),s!=null||i!=null){if(!(p!=="submit"&&p!=="reset"||s!=null))return;i=i!=null?""+ar(i):"",s=s!=null?""+ar(s):i,T||s===r.value||(r.value=s),r.defaultValue=s}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,r.checked=T?r.checked:!!c,r.defaultChecked=!!c,S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"&&(r.name=S)}function Hf(r,s,i){s==="number"&&Fc(r.ownerDocument)===r||r.defaultValue===""+i||(r.defaultValue=""+i)}function yi(r,s,i,c){if(r=r.options,s){s={};for(var f=0;f<i.length;f++)s["$"+i[f]]=!0;for(i=0;i<r.length;i++)f=s.hasOwnProperty("$"+r[i].value),r[i].selected!==f&&(r[i].selected=f),f&&c&&(r[i].defaultSelected=!0)}else{for(i=""+ar(i),s=null,f=0;f<r.length;f++){if(r[f].value===i){r[f].selected=!0,c&&(r[f].defaultSelected=!0);return}s!==null||r[f].disabled||(s=r[f])}s!==null&&(s.selected=!0)}}function Pv(r,s,i){if(s!=null&&(s=""+ar(s),s!==r.value&&(r.value=s),i==null)){r.defaultValue!==s&&(r.defaultValue=s);return}r.defaultValue=i!=null?""+ar(i):""}function Mv(r,s,i,c){if(s==null){if(c!=null){if(i!=null)throw Error(a(92));if(ve(c)){if(1<c.length)throw Error(a(93));c=c[0]}i=c}i==null&&(i=""),s=i}i=ar(s),r.defaultValue=i,c=r.textContent,c===i&&c!==""&&c!==null&&(r.value=c)}function vi(r,s){if(s){var i=r.firstChild;if(i&&i===r.lastChild&&i.nodeType===3){i.nodeValue=s;return}}r.textContent=s}var qj=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 Dv(r,s,i){var c=s.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?r.setProperty(s,""):s==="float"?r.cssFloat="":r[s]="":c?r.setProperty(s,i):typeof i!="number"||i===0||qj.has(s)?s==="float"?r.cssFloat=i:r[s]=(""+i).trim():r[s]=i+"px"}function Iv(r,s,i){if(s!=null&&typeof s!="object")throw Error(a(62));if(r=r.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||s!=null&&s.hasOwnProperty(c)||(c.indexOf("--")===0?r.setProperty(c,""):c==="float"?r.cssFloat="":r[c]="");for(var f in s)c=s[f],s.hasOwnProperty(f)&&i[f]!==c&&Dv(r,f,c)}else for(var p in s)s.hasOwnProperty(p)&&Dv(r,p,s[p])}function qf(r){if(r.indexOf("-")===-1)return!1;switch(r){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 Gj=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"],["colorRen
9dering","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"]]),Kj=/^[\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 Bc(r){return Kj.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}var Gf=null;function Kf(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var bi=null,xi=null;function Lv(r){var s=hi(r);if(s&&(r=s.stateNode)){var i=r[Mn]||null;e:switch(r=s.stateNode,s.type){case"input":if($f(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),s=i.name,i.type==="radio"&&s!=null){for(i=r;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+ir(""+s)+'"][type="radio"]'),s=0;s<i.length;s++){var c=i[s];if(c!==r&&c.form===r.form){var f=c[Mn]||null;if(!f)throw Error(a(90));$f(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(s=0;s<i.length;s++)c=i[s],c.form===r.form&&Ov(c)}break e;case"textarea":Pv(r,i.value,i.defaultValue);break e;case"select":s=i.value,s!=null&&yi(r,!!i.multiple,s,!1)}}}var Qf=!1;function zv(r,s,i){if(Qf)return r(s,i);Qf=!0;try{var c=r(s);return c}finally{if(Qf=!1,(bi!==null||xi!==null)&&(ju(),bi&&(s=bi,r=xi,xi=bi=null,Lv(s),r)))for(s=0;s<r.length;s++)Lv(r[s])}}function Bo(r,s){var i=r.stateNode;if(i===null)return null;var c=i[Mn]||null;if(c===null)return null;i=c[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(r=r.type,c=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!c;break e;default:r=!1}if(r)return null;if(i&&typeof i!="function")throw Error(a(231,s,typeof i));return i}var Zr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yf=!1;if(Zr)try{var $o={};Object.defineProperty($o,"passive",{get:function(){Yf=!0}}),window.addEventListener("test",$o,$o),window.removeEventListener("test",$o,$o)}catch{Yf=!1}var Es=null,Zf=null,$c=null;function Uv(){if($c)return $c;var r,s=Zf,i=s.length,c,f="value"in Es?Es.value:Es.textContent,p=f.length;for(r=0;r<i&&s[r]===f[r];r++);var S=i-r;for(c=1;c<=S&&s[i-c]===f[p-c];c++);return $c=f.slice(r,1<c?1-c:void 0)}function Hc(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function qc(){return!0}function Vv(){return!1}function Dn(r){function s(i,c,f,p,S){this._reactName=i,this._targetInst=f,this.type=c,this.nativeEvent=p,this.target=S,this.currentTarget=null;for(var T in r)r.hasOwnProperty(T)&&(i=r[T],this[T]=i?i(p):p[T]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?qc:Vv,this.isPropagationStopped=Vv,this}return y(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=qc)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=qc)},persist:function(){},isPersistent:qc}),s}var xa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gc=Dn(xa),Ho=y({},xa,{view:0,detail:0}),Qj=Dn(Ho),Wf,Xf,qo,Kc=y({},Ho,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eh,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==qo&&(qo&&r.type==="mousemove"?(Wf=r.screenX-qo.screenX,Xf=r.screenY-qo.screenY):Xf=Wf=0,qo=r),Wf)},movementY:function(r){return"movementY"in r?r.movementY:Xf}}),Fv=Dn(Kc),Yj=y({},Kc,{dataTransfer:0}),Zj=Dn(Yj),Wj=y({},Ho,{relatedTarget:0}),Jf=Dn(Wj),Xj=y({},xa,{animationName:0,elapsedTime:0,pseudoElement:0}),Jj=Dn(Xj),eN=y({},xa,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),tN=Dn(eN),nN=y({},xa,{data:0}),Bv=Dn(nN),rN={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sN={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"},aN={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iN(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=aN[r])?!!s[r]:!1}function eh(){return iN}var oN=y({},Ho,{key:function(r){if(r.key){var s=rN[r.key]||r.key;if(s!=="Unidentified")return s}
vendor: 5,186 bytes, line 9
9return r.type==="keypress"?(r=Hc(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?sN[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eh,charCode:function(r){return r.type==="keypress"?Hc(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Hc(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),lN=Dn(oN),cN=y({},Kc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$v=Dn(cN),uN=y({},Ho,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eh}),dN=Dn(uN),fN=y({},xa,{propertyName:0,elapsedTime:0,pseudoElement:0}),hN=Dn(fN),mN=y({},Kc,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),pN=Dn(mN),gN=y({},xa,{newState:0,oldState:0}),yN=Dn(gN),vN=[9,13,27,32],th=Zr&&"CompositionEvent"in window,Go=null;Zr&&"documentMode"in document&&(Go=document.documentMode);var bN=Zr&&"TextEvent"in window&&!Go,Hv=Zr&&(!th||Go&&8<Go&&11>=Go),qv=" ",Gv=!1;function Kv(r,s){switch(r){case"keyup":return vN.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Qv(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var wi=!1;function xN(r,s){switch(r){case"compositionend":return Qv(s);case"keypress":return s.which!==32?null:(Gv=!0,qv);case"textInput":return r=s.data,r===qv&&Gv?null:r;default:return null}}function wN(r,s){if(wi)return r==="compositionend"||!th&&Kv(r,s)?(r=Uv(),$c=Zf=Es=null,wi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Hv&&s.locale!=="ko"?null:s.data;default:return null}}var SN={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 Yv(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!SN[r.type]:s==="textarea"}function Zv(r,s,i,c){bi?xi?xi.push(c):xi=[c]:bi=c,s=Pu(s,"onChange"),0<s.length&&(i=new Gc("onChange","change",null,i,c),r.push({event:i,listeners:s}))}var Ko=null,Qo=null;function _N(r){A0(r,0)}function Qc(r){var s=Fo(r);if(Ov(s))return r}function Wv(r,s){if(r==="change")return s}var Xv=!1;if(Zr){var nh;if(Zr){var rh="oninput"in document;if(!rh){var Jv=document.createElement("div");Jv.setAttribute("oninput","return;"),rh=typeof Jv.oninput=="function"}nh=rh}else nh=!1;Xv=nh&&(!document.documentMode||9<document.documentMode)}function eb(){Ko&&(Ko.detachEvent("onpropertychange",tb),Qo=Ko=null)}function tb(r){if(r.propertyName==="value"&&Qc(Qo)){var s=[];Zv(s,Qo,r,Kf(r)),zv(_N,s)}}function CN(r,s,i){r==="focusin"?(eb(),Ko=s,Qo=i,Ko.attachEvent("onpropertychange",tb)):r==="focusout"&&eb()}function EN(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Qc(Qo)}function TN(r,s){if(r==="click")return Qc(s)}function jN(r,s){if(r==="input"||r==="change")return Qc(s)}function NN(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var $n=typeof Object.is=="function"?Object.is:NN;function Yo(r,s){if($n(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var i=Object.keys(r),c=Object.keys(s);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var f=i[c];if(!tt.call(s,f)||!$n(r[f],s[f]))return!1}return!0}function nb(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function rb(r,s){var i=nb(r);r=0;for(var c;i;){if(i.nodeType===3){if(c=r+i.textContent.length,r<=s&&c>=s)return{node:i,offset:s-r};r=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=nb(i)}}function sb(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?sb(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function ab(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=Fc(r.document);s instanceof r.HTMLIFrameElement;){try{var i=typeof s.contentWindow.location.href=="string"}catch{i=!1}if(i)r=s.contentWindow;else break;s=Fc(r.document)}return s}function sh(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}var kN=Zr&&"documentMode"in document&&11>=document.documentMode,Si=null,ah=null,Zo=null,ih=!1;function ib(r,s,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;ih||Si==null||Si!==Fc(c)||(c=Si,"selectionStart"in c&&sh(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focu
vendor: 97,988 bytes, line 9
9sNode:c.focusNode,focusOffset:c.focusOffset}),Zo&&Yo(Zo,c)||(Zo=c,c=Pu(ah,"onSelect"),0<c.length&&(s=new Gc("onSelect","select",null,s,i),r.push({event:s,listeners:c}),s.target=Si)))}function wa(r,s){var i={};return i[r.toLowerCase()]=s.toLowerCase(),i["Webkit"+r]="webkit"+s,i["Moz"+r]="moz"+s,i}var _i={animationend:wa("Animation","AnimationEnd"),animationiteration:wa("Animation","AnimationIteration"),animationstart:wa("Animation","AnimationStart"),transitionrun:wa("Transition","TransitionRun"),transitionstart:wa("Transition","TransitionStart"),transitioncancel:wa("Transition","TransitionCancel"),transitionend:wa("Transition","TransitionEnd")},oh={},ob={};Zr&&(ob=document.createElement("div").style,"AnimationEvent"in window||(delete _i.animationend.animation,delete _i.animationiteration.animation,delete _i.animationstart.animation),"TransitionEvent"in window||delete _i.transitionend.transition);function Sa(r){if(oh[r])return oh[r];if(!_i[r])return r;var s=_i[r],i;for(i in s)if(s.hasOwnProperty(i)&&i in ob)return oh[r]=s[i];return r}var lb=Sa("animationend"),cb=Sa("animationiteration"),ub=Sa("animationstart"),AN=Sa("transitionrun"),ON=Sa("transitionstart"),RN=Sa("transitioncancel"),db=Sa("transitionend"),fb=new Map,lh="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(" ");lh.push("scrollEnd");function wr(r,s){fb.set(r,s),ba(s,[r])}var hb=new WeakMap;function or(r,s){if(typeof r=="object"&&r!==null){var i=hb.get(r);return i!==void 0?i:(s={value:r,source:s,stack:kv(s)},hb.set(r,s),s)}return{value:r,source:s,stack:kv(s)}}var lr=[],Ci=0,ch=0;function Yc(){for(var r=Ci,s=ch=Ci=0;s<r;){var i=lr[s];lr[s++]=null;var c=lr[s];lr[s++]=null;var f=lr[s];lr[s++]=null;var p=lr[s];if(lr[s++]=null,c!==null&&f!==null){var S=c.pending;S===null?f.next=f:(f.next=S.next,S.next=f),c.pending=f}p!==0&&mb(i,f,p)}}function Zc(r,s,i,c){lr[Ci++]=r,lr[Ci++]=s,lr[Ci++]=i,lr[Ci++]=c,ch|=c,r.lanes|=c,r=r.alternate,r!==null&&(r.lanes|=c)}function uh(r,s,i,c){return Zc(r,s,i,c),Wc(r)}function Ei(r,s){return Zc(r,null,null,s),Wc(r)}function mb(r,s,i){r.lanes|=i;var c=r.alternate;c!==null&&(c.lanes|=i);for(var f=!1,p=r.return;p!==null;)p.childLanes|=i,c=p.alternate,c!==null&&(c.childLanes|=i),p.tag===22&&(r=p.stateNode,r===null||r._visibility&1||(f=!0)),r=p,p=p.return;return r.tag===3?(p=r.stateNode,f&&s!==null&&(f=31-Pn(i),r=p.hiddenUpdates,c=r[f],c===null?r[f]=[s]:c.push(s),s.lane=i|536870912),p):null}function Wc(r){if(50<wl)throw wl=0,gm=null,Error(a(185));for(var s=r.return;s!==null;)r=s,s=r.return;return r.tag===3?r.stateNode:null}var Ti={};function PN(r,s,i,c){this.tag=r,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hn(r,s,i,c){return new PN(r,s,i,c)}function dh(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Wr(r,s){var i=r.alternate;return i===null?(i=Hn(r.tag,s,r.key,r.mode),i.elementType=r.elementType,i.type=r.type,i.stateNode=r.stateNode,i.alternate=r,r.alternate=i):(i.pendingProps=s,i.type=r.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=r.flags&65011712,i.childLanes=r.childLanes,i.lanes=r.lanes,i.child=r.child,i.memoizedProps=r.memoizedProps,i.memoizedState=r.memoizedState,i.updateQueue=r.updateQueue,s=r.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},i.sibling=r.sibling,i.index=r.index,i.ref=r.ref,i.refCleanup=r.refCleanup,i}function pb(r,s){r.flags&=65011714;var i=r.alternate;return i===null?(r.childLanes=0,r.lanes=s,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=i.childLanes,r.lanes=i.lanes,r.child=i.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=i.memoizedProps,r.memoizedState=i.memoizedState,r.updateQueue=i.updateQueue,r.type=i.type,s=i.dependencies,r.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),r}function Xc(r,s,i,c,f,p){var S=0;if(c=r,typeof r=="function")dh(r)&&(S=1);else if(typeof r=="string")S=Dk(r,i,ge.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case W:return r=Hn(31,i,s,f),r.elementType=W,r.lanes=p,r;case E:return _a(i.children,f,p,s);case w:S=8,f|=24;break;case _:return r=Hn(12,i,s,f|2),r.elementType=_,r.lanes=p,r;case O:return r=Hn(13,i,s,f),r.elementType=O,r.lanes=p,r;case U:return r=Hn(19,i,s,f),r.elementType=U,r.lanes=p,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case R:case k:S=10;break e;case A:S=9;break e;case N:S=11;break e;case Y:S=14;break e;case F:S=16,c=null;break e}S=29,i=Error(a(130,r===null?"null":typeof r,"")),c=null}return s=Hn(S,i,s,f),s.elementType=r,s.type=c,s.lanes=p,s}function _a(r,s,i,c){return r=Hn(7,r,c,s),r.lanes=i,r}function fh(r,s,i){return r=Hn(6,r,null,s),r.lanes=i,r}function hh(r,s,i){return s=Hn(4,r.children!==null?r.children:[],r.key,s),s.lanes=i,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}var ji=[],Ni=0,Jc=null,eu=0,cr=[],ur=0,Ca=null,Xr=1,Jr="";function Ea(r,s){ji[Ni++]=eu,ji[Ni++]=Jc,Jc=r,eu=s}function gb(r,s,i){cr[ur++]=Xr,cr[ur++]=Jr,cr[ur++]=Ca,Ca=r;var c=Xr;r=Jr;var f=32-Pn(c)-1;c&=~(1<<f),i+=1;var p=32-Pn(s)+f;if(30<p){var S=f-f%5;p=(c&(1<<S)-1).toString(32),c>>=S,f-=S,Xr=1<<32-Pn(s)+f|i<<f|c,Jr=p+r}else Xr=1<<p|i<<f|c,Jr=r}function mh(r){r.return!==null&&(Ea(r,1),gb(r,1,0))}function ph(r){for(;r===Jc;)Jc=ji[--Ni],ji[Ni]=null,eu=ji[--Ni],ji[Ni]=null;for(;r===Ca;)Ca=cr[--ur],cr[ur]=null,Jr=cr[--ur],cr[ur]=null,Xr=cr[--ur],cr[ur]=null}var Tn=null,Pt=null,dt=!1,Ta=null,Mr=!1,gh=Error(a(519));function ja(r){var s=Error(a(418,""));throw Jo(or(s,r)),gh}function yb(r){var s=r.stateNode,i=r.type,c=r.memoizedProps;switch(s[vn]=r,s[Mn]=c,i){case"dialog":et("cancel",s),et("close",s);break;case"iframe":case"object":case"embed":et("load",s);break;case"video":case"audio":for(i=0;i<_l.length;i++)et(_l[i],s);break;case"source":et("error",s);break;case"img":case"image":case"link":et("error",s),et("load",s);break;case"details":et("toggle",s);break;case"input":et("invalid",s),Rv(s,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),Vc(s);break;case"select":et("invalid",s);break;case"textarea":et("invalid",s),Mv(s,c.value,c.defaultValue,c.children),Vc(s)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||s.textContent===""+i||c.suppressHydrationWarning===!0||M0(s.textContent,i)?(c.popover!=null&&(et("beforetoggle",s),et("toggle",s)),c.onScroll!=null&&et("scroll",s),c.onScrollEnd!=null&&et("scrollend",s),c.onClick!=null&&(s.onclick=Mu),s=!0):s=!1,s||ja(r)}function vb(r){for(Tn=r.return;Tn;)switch(Tn.tag){case 5:case 13:Mr=!1;return;case 27:case 3:Mr=!0;return;default:Tn=Tn.return}}function Wo(r){if(r!==Tn)return!1;if(!dt)return vb(r),dt=!0,!1;var s=r.tag,i;if((i=s!==3&&s!==27)&&((i=s===5)&&(i=r.type,i=!(i!=="form"&&i!=="button")||Rm(r.type,r.memoizedProps)),i=!i),i&&Pt&&ja(r),vb(r),s===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));e:{for(r=r.nextSibling,s=0;r;){if(r.nodeType===8)if(i=r.data,i==="/$"){if(s===0){Pt=_r(r.nextSibling);break e}s--}else i!=="$"&&i!=="$!"&&i!=="$?"||s++;r=r.nextSibling}Pt=null}}else s===27?(s=Pt,Fs(r.type)?(r=Im,Im=null,Pt=r):Pt=s):Pt=Tn?_r(r.stateNode.nextSibling):null;return!0}function Xo(){Pt=Tn=null,dt=!1}function bb(){var r=Ta;return r!==null&&(zn===null?zn=r:zn.push.apply(zn,r),Ta=null),r}function Jo(r){Ta===null?Ta=[r]:Ta.push(r)}var yh=L(null),Na=null,es=null;function Ts(r,s,i){J(yh,s._currentValue),s._currentValue=i}function ts(r){r._currentValue=yh.current,V(yh)}function vh(r,s,i){for(;r!==null;){var c=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,c!==null&&(c.childLanes|=s)):c!==null&&(c.childLanes&s)!==s&&(c.childLanes|=s),r===i)break;r=r.return}}function bh(r,s,i,c){var f=r.child;for(f!==null&&(f.return=r);f!==null;){var p=f.dependencies;if(p!==null){var S=f.child;p=p.firstContext;e:for(;p!==null;){var T=p;p=f;for(var M=0;M<s.length;M++)if(T.context===s[M]){p.lanes|=i,T=p.alternate,T!==null&&(T.lanes|=i),vh(p.return,i,r),c||(S=null);break e}p=T.next}}else if(f.tag===18){if(S=f.return,S===null)throw Error(a(341));S.lanes|=i,p=S.alternate,p!==null&&(p.lanes|=i),vh(S,i,r),S=null}else S=f.child;if(S!==null)S.return=f;else for(S=f;S!==null;){if(S===r){S=null;break}if(f=S.sibling,f!==null){f.return=S.return,S=f;break}S=S.return}f=S}}function el(r,s,i,c){r=null;for(var f=s,p=!1;f!==null;){if(!p){if((f.flags&524288)!==0)p=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var S=f.alternate;if(S===null)throw Error(a(387));if(S=S.memoizedProps,S!==null){var T=f.type;$n(f.pendingProps.value,S.value)||(r!==null?r.push(T):r=[T])}}else if(f===qe.current){if(S=f.alternate,S===null)throw Error(a(387));S.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(r!==null?r.push(kl):r=[kl])}f=f.return}r!==null&&bh(s,r,i,c),s.flags|=262144}function tu(r){for(r=r.firstContext;r!==null;){if(!$n(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function ka(r){Na=r,es=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function bn(r){return xb(Na,r)}function nu(r,s){return Na===null&&ka(r),xb(r,s)}function xb(r,s){var i=s._currentValue;if(s={context:s,memoizedValue:i,next:null},es===null){if(r===null)throw Error(a(308));es=s,r.dependencies={lanes:0,firstContext:s},r.flags|=524288}else es=es.next=s;return i}var MN=typeof AbortController<"u"?AbortController:function(){var r=[],s=this.signal={aborted:!1,addEventListener:function(i,c){r.push(c)}};this.abort=function(){s.aborted=!0,r.forEach(function(i){return i()})}},DN=e.unstable_scheduleCallback,IN=e.unstable_NormalPriority,qt={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xh(){return{controller:new MN,data:new Map,refCount:0}}function tl(r){r.refCount--,r.refCount===0&&DN(IN,function(){r.controller.abort()})}var nl=null,wh=0,ki=0,Ai=null;function LN(r,s){if(nl===null){var i=nl=[];wh=0,ki=_m(),Ai={status:"pending",value:void 0,then:function(c){i.push(c)}}}return wh++,s.then(wb,wb),s}function wb(){if(--wh===0&&nl!==null){Ai!==null&&(Ai.status="fulfilled");var r=nl;nl=null,ki=0,Ai=null;for(var s=0;s<r.length;s++)(0,r[s])()}}function zN(r,s){var i=[],c={status:"pending",value:null,reason:null,then:function(f){i.push(f)}};return r.then(function(){c.status="fulfilled",c.value=s;for(var f=0;f<i.length;f++)(0,i[f])(s)},function(f){for(c.status="rejected",c.reason=f,f=0;f<i.length;f++)(0,i[f])(void 0)}),c}var Sb=D.S;D.S=function(r,s){typeof s=="object"&&s!==null&&typeof s.then=="function"&&LN(r,s),Sb!==null&&Sb(r,s)};var Aa=L(null);function Sh(){var r=Aa.current;return r!==null?r:wt.pooledCache}function ru(r,s){s===null?J(Aa,Aa.current):J(Aa,s.pool)}function _b(){var r=Sh();return r===null?null:{parent:qt._currentValue,pool:r}}var rl=Error(a(460)),Cb=Error(a(474)),su=Error(a(542)),_h={then:function(){}};function Eb(r){return r=r.status,r==="fulfilled"||r==="rejected"}function au(){}function Tb(r,s,i){switch(i=r[i],i===void 0?r.push(s):i!==s&&(s.then(au,au),s=i),s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Nb(r),r;default:if(typeof s.status=="string")s.then(au,au);else{if(r=wt,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=s,r.status="pending",r.then(function(c){if(s.status==="pending"){var f=s;f.status="fulfilled",f.value=c}},function(c){if(s.status==="pending"){var f=s;f.status="rejected",f.reason=c}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Nb(r),r}throw sl=s,rl}}var sl=null;function jb(){if(sl===null)throw Error(a(459));var r=sl;return sl=null,r}function Nb(r){if(r===rl||r===su)throw Error(a(483))}var js=!1;function Ch(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Eh(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Ns(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function ks(r,s,i){var c=r.updateQueue;if(c===null)return null;if(c=c.shared,(mt&2)!==0){var f=c.pending;return f===null?s.next=s:(s.next=f.next,f.next=s),c.pending=s,s=Wc(r),mb(r,null,i),s}return Zc(r,c,s,i),Wc(r)}function al(r,s,i){if(s=s.updateQueue,s!==null&&(s=s.shared,(i&4194048)!==0)){var c=s.lanes;c&=r.pendingLanes,i|=c,s.lanes=i,Lc(r,i)}}function Th(r,s){var i=r.updateQueue,c=r.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var f=null,p=null;if(i=i.firstBaseUpdate,i!==null){do{var S={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};p===null?f=p=S:p=p.next=S,i=i.next}while(i!==null);p===null?f=p=s:p=p.next=s}else f=p=s;i={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:p,shared:c.shared,callbacks:c.callbacks},r.updateQueue=i;return}r=i.lastBaseUpdate,r===null?i.firstBaseUpdate=s:r.next=s,i.lastBaseUpdate=s}var jh=!1;function il(){if(jh){var r=Ai;if(r!==null)throw r}}function ol(r,s,i,c){jh=!1;var f=r.updateQueue;js=!1;var p=f.firstBaseUpdate,S=f.lastBaseUpdate,T=f.shared.pending;if(T!==null){f.shared.pending=null;var M=T,K=M.next;M.next=null,S===null?p=K:S.next=K,S=M;var ee=r.alternate;ee!==null&&(ee=ee.updateQueue,T=ee.lastBaseUpdate,T!==S&&(T===null?ee.firstBaseUpdate=K:T.next=K,ee.lastBaseUpdate=M))}if(p!==null){var re=f.baseState;S=0,ee=K=M=null,T=p;do{var Q=T.lane&-536870913,Z=Q!==T.lane;if(Z?(st&Q)===Q:(c&Q)===Q){Q!==0&&Q===ki&&(jh=!0),ee!==null&&(ee=ee.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var Ue=r,De=T;Q=s;var vt=i;switch(De.tag){case 1:if(Ue=De.payload,typeof Ue=="function"){re=Ue.call(vt,re,Q);break e}re=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=De.payload,Q=typeof Ue=="function"?Ue.call(vt,re,Q):Ue,Q==null)break e;re=y({},re,Q);break e;case 2:js=!0}}Q=T.callback,Q!==null&&(r.flags|=64,Z&&(r.flags|=8192),Z=f.callbacks,Z===null?f.callbacks=[Q]:Z.push(Q))}else Z={lane:Q,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ee===null?(K=ee=Z,M=re):ee=ee.next=Z,S|=Q;if(T=T.next,T===null){if(T=f.shared.pending,T===null)break;Z=T,T=Z.next,Z.next=null,f.lastBaseUpdate=Z,f.shared.pending=null}}while(!0);ee===null&&(M=re),f.baseState=M,f.firstBaseUpdate=K,f.lastBaseUpdate=ee,p===null&&(f.shared.lanes=0),Ls|=S,r.lanes=S,r.memoizedState=re}}function kb(r,s){if(typeof r!="function")throw Error(a(191,r));r.call(s)}function Ab(r,s){var i=r.callbacks;if(i!==null)for(r.callbacks=null,r=0;r<i.length;r++)kb(i[r],s)}var Oi=L(null),iu=L(0);function Ob(r,s){r=ls,J(iu,r),J(Oi,s),ls=r|s.baseLanes}function Nh(){J(iu,ls),J(Oi,Oi.current)}function kh(){ls=iu.current,V(Oi),V(iu)}var As=0,Ge=null,gt=null,Ut=null,ou=!1,Ri=!1,Oa=!1,lu=0,ll=0,Pi=null,UN=0;function Dt(){throw Error(a(321))}function Ah(r,s){if(s===null)return!1;for(var i=0;i<s.length&&i<r.length;i++)if(!$n(r[i],s[i]))return!1;return!0}function Oh(r,s,i,c,f,p){return As=p,Ge=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,D.H=r===null||r.memoizedState===null?mx:px,Oa=!1,p=i(c,f),Oa=!1,Ri&&(p=Pb(s,i,c,f)),Rb(r),p}function Rb(r){D.H=mu;var s=gt!==null&>.next!==null;if(As=0,Ut=gt=Ge=null,ou=!1,ll=0,Pi=null,s)throw Error(a(300));r===null||Xt||(r=r.dependencies,r!==null&&tu(r)&&(Xt=!0))}function Pb(r,s,i,c){Ge=r;var f=0;do{if(Ri&&(Pi=null),ll=0,Ri=!1,25<=f)throw Error(a(301));if(f+=1,Ut=gt=null,r.updateQueue!=null){var p=r.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}D.H=GN,p=s(i,c)}while(Ri);return p}function VN(){var r=D.H,s=r.useState()[0];return s=typeof s.then=="function"?cl(s):s,r=r.useState()[0],(gt!==null?gt.memoizedState:null)!==r&&(Ge.flags|=1024),s}function Rh(){var r=lu!==0;return lu=0,r}function Ph(r,s,i){s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~i}function Mh(r){if(ou){for(r=r.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}ou=!1}As=0,Ut=gt=Ge=null,Ri=!1,ll=lu=0,Pi=null}function In(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ut===null?Ge.memoizedState=Ut=r:Ut=Ut.next=r,Ut}function Vt(){if(gt===null){var r=Ge.alternate;r=r!==null?r.memoizedState:null}else r=gt.next;var s=Ut===null?Ge.memoizedState:Ut.next;if(s!==null)Ut=s,gt=r;else{if(r===null)throw Ge.alternate===null?Error(a(467)):Error(a(310));gt=r,r={memoizedState:gt.memoizedState,baseState:gt.baseState,baseQueue:gt.baseQueue,queue:gt.queue,next:null},Ut===null?Ge.memoizedState=Ut=r:Ut=Ut.next=r}return Ut}function Dh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cl(r){var s=ll;return ll+=1,Pi===null&&(Pi=[]),r=Tb(Pi,r,s),s=Ge,(Ut===null?s.memoizedState:Ut.next)===null&&(s=s.alternate,D.H=s===null||s.memoizedState===null?mx:px),r}function cu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return cl(r);if(r.$$typeof===k)return bn(r)}throw Error(a(438,String(r)))}function Ih(r){var s=null,i=Ge.updateQueue;if(i!==null&&(s=i.memoCache),s==null){var c=Ge.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(s={data:c.data.map(function(f){return f.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),i===null&&(i=Dh(),Ge.updateQueue=i),i.memoCache=s,i=s.data[s.index],i===void 0)for(i=s.data[s.index]=Array(r),c=0;c<r;c++)i[c]=ce;return s.index++,i}function ns(r,s){return typeof s=="function"?s(r):s}function uu(r){var s=Vt();return Lh(s,gt,r)}function Lh(r,s,i){var c=r.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=i;var f=r.baseQueue,p=c.pending;if(p!==null){if(f!==null){var S=f.next;f.next=p.next,p.next=S}s.baseQueue=f=p,c.pending=null}if(p=r.baseState,f===null)r.memoizedState=p;else{s=f.next;var T=S=null,M=null,K=s,ee=!1;do{var re=K.lane&-536870913;if(re!==K.lane?(st&re)===re:(As&re)===re){var Q=K.revertLane;if(Q===0)M!==null&&(M=M.next={lane:0,revertLane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),re===ki&&(ee=!0);else if((As&Q)===Q){K=K.next,Q===ki&&(ee=!0);continue}else re={lane:0,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},M===null?(T=M=re,S=p):M=M.next=re,Ge.lanes|=Q,Ls|=Q;re=K.action,Oa&&i(p,re),p=K.hasEagerState?K.eagerState:i(p,re)}else Q={lane:re,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},M===null?(T=M=Q,S=p):M=M.next=Q,Ge.lanes|=re,Ls|=re;K=K.next}while(K!==null&&K!==s);if(M===null?S=p:M.next=T,!$n(p,r.memoizedState)&&(Xt=!0,ee&&(i=Ai,i!==null)))throw i;r.memoizedState=p,r.baseState=S,r.baseQueue=M,c.lastRenderedState=p}return f===null&&(c.lanes=0),[r.memoizedState,c.dispatch]}function zh(r){var s=Vt(),i=s.queue;if(i===null)throw Error(a(311));i.lastRenderedReducer=r;var c=i.dispatch,f=i.pending,p=s.memoizedState;if(f!==null){i.pending=null;var S=f=f.next;do p=r(p,S.action),S=S.next;while(S!==f);$n(p,s.memoizedState)||(Xt=!0),s.memoizedState=p,s.baseQueue===null&&(s.baseState=p),i.lastRenderedState=p}return[p,c]}function Mb(r,s,i){var c=Ge,f=Vt(),p=dt;if(p){if(i===void 0)throw Error(a(407));i=i()}else i=s();var S=!$n((gt||f).memoizedState,i);S&&(f.memoizedState=i,Xt=!0),f=f.queue;var T=Lb.bind(null,c,f,r);if(ul(2048,8,T,[r]),f.getSnapshot!==s||S||Ut!==null&&Ut.memoizedState.tag&1){if(c.flags|=2048,Mi(9,du(),Ib.bind(null,c,f,i,s),null),wt===null)throw Error(a(349));p||(As&124)!==0||Db(c,s,i)}return i}function Db(r,s,i){r.flags|=16384,r={getSnapshot:s,value:i},s=Ge.updateQueue,s===null?(s=Dh(),Ge.updateQueue=s,s.stores=[r]):(i=s.stores,i===null?s.stores=[r]:i.push(r))}function Ib(r,s,i,c){s.value=i,s.getSnapshot=c,zb(s)&&Ub(r)}function Lb(r,s,i){return i(function(){zb(s)&&Ub(r)})}function zb(r){var s=r.getSnapshot;r=r.value;try{var i=s();return!$n(r,i)}catch{return!0}}function Ub(r){var s=Ei(r,2);s!==null&&Yn(s,r,2)}function Uh(r){var s=In();if(typeof r=="function"){var i=r;if(r=i(),Oa){Kr(!0);try{i()}finally{Kr(!1)}}}return s.memoizedState=s.baseState=r,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:r},s}function Vb(r,s,i,c){return r.baseState=i,Lh(r,gt,typeof c=="function"?c:ns)}function FN(r,s,i,c,f){if(hu(r))throw Error(a(485));if(r=s.action,r!==null){var p={payload:f,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(S){p.listeners.push(S)}};D.T!==null?i(!0):p.isTransition=!1,c(p),i=s.pending,i===null?(p.next=s.pending=p,Fb(s,p)):(p.next=i.next,s.pending=i.next=p)}}function Fb(r,s){var i=s.action,c=s.payload,f=r.state;if(s.isTransition){var p=D.T,S={};D.T=S;try{var T=i(f,c),M=D.S;M!==null&&M(S,T),Bb(r,s,T)}catch(K){Vh(r,s,K)}finally{D.T=p}}else try{p=i(f,c),Bb(r,s,p)}catch(K){Vh(r,s,K)}}function Bb(r,s,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){$b(r,s,c)},function(c){return Vh(r,s,c)}):$b(r,s,i)}function $b(r,s,i){s.status="fulfilled",s.value=i,Hb(s),r.state=i,s=r.pending,s!==null&&(i=s.next,i===s?r.pending=null:(i=i.next,s.next=i,Fb(r,i)))}function Vh(r,s,i){var c=r.pending;if(r.pending=null,c!==null){c=c.next;do s.status="rejected",s.reason=i,Hb(s),s=s.next;while(s!==c)}r.action=null}function Hb(r){r=r.listeners;for(var s=0;s<r.length;s++)(0,r[s])()}function qb(r,s){return s}function Gb(r,s){if(dt){var i=wt.formState;if(i!==null){e:{var c=Ge;if(dt){if(Pt){t:{for(var f=Pt,p=Mr;f.nodeType!==8;){if(!p){f=null;break t}if(f=_r(f.nextSibling),f===null){f=null;break t}}p=f.data,f=p==="F!"||p==="F"?f:null}if(f){Pt=_r(f.nextSibling),c=f.data==="F!";break e}}ja(c)}c=!1}c&&(s=i[0])}}return i=In(),i.memoizedState=i.baseState=s,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qb,lastRenderedState:s},i.queue=c,i=dx.bind(null,Ge,c),c.dispatch=i,c=Uh(!1),p=qh.bind(null,Ge,!1,c.queue),c=In(),f={state:s,dispatch:null,action:r,pending:null},c.queue=f,i=FN.bind(null,Ge,f,p,i),f.dispatch=i,c.memoizedState=r,[s,i,!1]}function Kb(r){var s=Vt();return Qb(s,gt,r)}function Qb(r,s,i){if(s=Lh(r,s,qb)[0],r=uu(ns)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var c=cl(s)}catch(S){throw S===rl?su:S}else c=s;s=Vt();var f=s.queue,p=f.dispatch;return i!==s.memoizedState&&(Ge.flags|=2048,Mi(9,du(),BN.bind(null,f,i),null)),[c,p,r]}function BN(r,s){r.action=s}function Yb(r){var s=Vt(),i=gt;if(i!==null)return Qb(s,i,r);Vt(),s=s.memoizedState,i=Vt();var c=i.queue.dispatch;return i.memoizedState=r,[s,c,!1]}function Mi(r,s,i,c){return r={tag:r,create:i,deps:c,inst:s,next:null},s=Ge.updateQueue,s===null&&(s=Dh(),Ge.updateQueue=s),i=s.lastEffect,i===null?s.lastEffect=r.next=r:(c=i.next,i.next=r,r.next=c,s.lastEffect=r),r}function du(){return{destroy:void 0,resource:void 0}}function Zb(){return Vt().memoizedState}function fu(r,s,i,c){var f=In();c=c===void 0?null:c,Ge.flags|=r,f.memoizedState=Mi(1|s,du(),i,c)}function ul(r,s,i,c){var f=Vt();c=c===void 0?null:c;var p=f.memoizedState.inst;gt!==null&&c!==null&&Ah(c,gt.memoizedState.deps)?f.memoizedState=Mi(s,p,i,c):(Ge.flags|=r,f.memoizedState=Mi(1|s,p,i,c))}function Wb(r,s){fu(8390656,8,r,s)}function Xb(r,s){ul(2048,8,r,s)}function Jb(r,s){return ul(4,2,r,s)}function ex(r,s){return ul(4,4,r,s)}function tx(r,s){if(typeof s=="function"){r=r();var i=s(r);return function(){typeof i=="function"?i():s(null)}}if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function nx(r,s,i){i=i!=null?i.concat([r]):null,ul(4,4,tx.bind(null,s,r),i)}function Fh(){}function rx(r,s){var i=Vt();s=s===void 0?null:s;var c=i.memoizedState;return s!==null&&Ah(s,c[1])?c[0]:(i.memoizedState=[r,s],r)}function sx(r,s){var i=Vt();s=s===void 0?null:s;var c=i.memoizedState;if(s!==null&&Ah(s,c[1]))return c[0];if(c=r(),Oa){Kr(!0);try{r()}finally{Kr(!1)}}return i.memoizedState=[c,s],c}function Bh(r,s,i){return i===void 0||(As&1073741824)!==0?r.memoizedState=s:(r.memoizedState=i,r=o0(),Ge.lanes|=r,Ls|=r,i)}function ax(r,s,i,c){return $n(i,s)?i:Oi.current!==null?(r=Bh(r,i,c),$n(r,s)||(Xt=!0),r):(As&42)===0?(Xt=!0,r.memoizedState=i):(r=o0(),Ge.lanes|=r,Ls|=r,s)}function ix(r,s,i,c,f){var p=q.p;q.p=p!==0&&8>p?p:8;var S=D.T,T={};D.T=T,qh(r,!1,s,i);try{var M=f(),K=D.S;if(K!==null&&K(T,M),M!==null&&typeof M=="object"&&typeof M.then=="function"){var ee=zN(M,c);dl(r,s,ee,Qn(r))}else dl(r,s,c,Qn(r))}catch(re){dl(r,s,{then:function(){},status:"rejected",reason:re},Qn())}finally{q.p=p,D.T=S}}function $N(){}function $h(r,s,i,c){if(r.tag!==5)throw Error(a(476));var f=ox(r).queue;ix(r,f,s,te,i===null?$N:function(){return lx(r),i(c)})}function ox(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:te},next:null};var i={};return s.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:i},next:null},r.memoizedState=s,r=r.alternate,r!==null&&(r.memoizedState=s),s}function lx(r){var s=ox(r).next.queue;dl(r,s,{},Qn())}function Hh(){return bn(kl)}function cx(){return Vt().memoizedState}function ux(){return Vt().memoizedState}function HN(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var i=Qn();r=Ns(i);var c=ks(s,r,i);c!==null&&(Yn(c,s,i),al(c,s,i)),s={cache:xh()},r.payload=s;return}s=s.return}}function qN(r,s,i){var c=Qn();i={lane:c,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},hu(r)?fx(s,i):(i=uh(r,s,i,c),i!==null&&(Yn(i,r,c),hx(i,s,c)))}function dx(r,s,i){var c=Qn();dl(r,s,i,c)}function dl(r,s,i,c){var f={lane:c,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(hu(r))fx(s,f);else{var p=r.alternate;if(r.lanes===0&&(p===null||p.lanes===0)&&(p=s.lastRenderedReducer,p!==null))try{var S=s.lastRenderedState,T=p(S,i);if(f.hasEagerState=!0,f.eagerState=T,$n(T,S))return Zc(r,s,f,0),wt===null&&Yc(),!1}catch{}if(i=uh(r,s,f,c),i!==null)return Yn(i,r,c),hx(i,s,c),!0}return!1}function qh(r,s,i,c){if(c={lane:2,revertLane:_m(),action:c,hasEagerState:!1,eagerState:null,next:null},hu(r)){if(s)throw Error(a(479))}else s=uh(r,i,c,2),s!==null&&Yn(s,r,2)}function hu(r){var s=r.alternate;return r===Ge||s!==null&&s===Ge}function fx(r,s){Ri=ou=!0;var i=r.pending;i===null?s.next=s:(s.next=i.next,i.next=s),r.pending=s}function hx(r,s,i){if((i&4194048)!==0){var c=s.lanes;c&=r.pendingLanes,i|=c,s.lanes=i,Lc(r,i)}}var mu={readContext:bn,use:cu,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt},mx={readContext:bn,use:cu,useCallback:function(r,s){return In().memoizedState=[r,s===void 0?null:s],r},useContext:bn,useEffect:Wb,useImperativeHandle:function(r,s,i){i=i!=null?i.concat([r]):null,fu(4194308,4,tx.bind(null,s,r),i)},useLayoutEffect:function(r,s){return fu(4194308,4,r,s)},useInsertionEffect:function(r,s){fu(4,2,r,s)},useMemo:function(r,s){var i=In();s=s===void 0?null:s;var c=r();if(Oa){Kr(!0);try{r()}finally{Kr(!1)}}return i.memoizedState=[c,s],c},useReducer:function(r,s,i){var c=In();if(i!==void 0){var f=i(s);if(Oa){Kr(!0);try{i(s)}finally{Kr(!1)}}}else f=s;return c.memoizedState=c.baseState=f,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:f},c.queue=r,r=r.dispatch=qN.bind(null,Ge,r),[c.memoizedState,r]},useRef:function(r){var s=In();return r={current:r},s.memoizedState=r},useState:function(r){r=Uh(r);var s=r.queue,i=dx.bind(null,Ge,s);return s.dispatch=i,[r.memoizedState,i]},useDebugValue:Fh,useDeferredValue:function(r,s){var i=In();return Bh(i,r,s)},useTransition:function(){var r=Uh(!1);return r=ix.bind(null,Ge,r.queue,!0,!1),In().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,i){var c=Ge,f=In();if(dt){if(i===void 0)throw Error(a(407));i=i()}else{if(i=s(),wt===null)throw Error(a(349));(st&124)!==0||Db(c,s,i)}f.memoizedState=i;var p={value:i,getSnapshot:s};return f.queue=p,Wb(Lb.bind(null,c,p,r),[r]),c.flags|=2048,Mi(9,du(),Ib.bind(null,c,p,i,s),null),i},useId:function(){var r=In(),s=wt.identifierPrefix;if(dt){var i=Jr,c=Xr;i=(c&~(1<<32-Pn(c)-1)).toString(32)+i,s="«"+s+"R"+i,i=lu++,0<i&&(s+="H"+i.toString(32)),s+="»"}else i=UN++,s="«"+s+"r"+i.toString(32)+"»";return r.memoizedState=s},useHostTransitionStatus:Hh,useFormState:Gb,useActionState:Gb,useOptimistic:function(r){var s=In();s.memoizedState=s.baseState=r;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=i,s=qh.bind(null,Ge,!0,i),i.dispatch=s,[r,s]},useMemoCache:Ih,useCacheRefresh:function(){return In().memoizedState=HN.bind(null,Ge)}},px={readContext:bn,use:cu,useCallback:rx,useContext:bn,useEffect:Xb,useImperativeHandle:nx,useInsertionEffect:Jb,useLayoutEffect:ex,useMemo:sx,useReducer:uu,useRef:Zb,useState:function(){return uu(ns)},useDebugValue:Fh,useDeferredValue:function(r,s){var i=Vt();return ax(i,gt.memoizedState,r,s)},useTransition:function(){var r=uu(ns)[0],s=Vt().memoizedState;return[typeof r=="boolean"?r:cl(r),s]},useSyncExternalStore:Mb,useId:cx,useHostTransitionStatus:Hh,useFormState:Kb,useActionState:Kb,useOptimistic:function(r,s){var i=Vt();return Vb(i,gt,r,s)},useMemoCache:Ih,useCacheRefresh:ux},GN={readContext:bn,use:cu,useCallback:rx,useContext:bn,useEffect:Xb,useImperativeHandle:nx,useInsertionEffect:Jb,useLayoutEffect:ex,useMemo:sx,useReducer:zh,useRef:Zb,useState:function(){return zh(ns)},useDebugValue:Fh,useDeferredValue:function(r,s){var i=Vt();return gt===null?Bh(i,r,s):ax(i,gt.memoizedState,r,s)},useTransition:function(){var r=zh(ns)[0],s=Vt().memoizedState;return[typeof r=="boolean"?r:cl(r),s]},useSyncExternalStore:Mb,useId:cx,useHostTransitionStatus:Hh,useFormState:Yb,useActionState:Yb,useOptimistic:function(r,s){var i=Vt();return gt!==null?Vb(i,gt,r,s):(i.baseState=r,[r,i.queue.dispatch])},useMemoCache:Ih,useCacheRefresh:ux},Di=null,fl=0;function pu(r){var s=fl;return fl+=1,Di===null&&(Di=[]),Tb(Di,r,s)}function hl(r,s){s=s.props.ref,r.ref=s!==void 0?s:null}function gu(r,s){throw s.$$typeof===x?Error(a(525)):(r=Object.prototype.toString.call(s),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r)))}function gx(r){var s=r._init;return s(r._payload)}function yx(r){function s(B,z){if(r){var G=B.deletions;G===null?(B.deletions=[z],B.flags|=16):G.push(z)}}function i(B,z){if(!r)return null;for(;z!==null;)s(B,z),z=z.sibling;return null}function c(B){for(var z=new Map;B!==null;)B.key!==null?z.set(B.key,B):z.set(B.index,B),B=B.sibling;return z}function f(B,z){return B=Wr(B,z),B.index=0,B.sibling=null,B}function p(B,z,G){return B.index=G,r?(G=B.alternate,G!==null?(G=G.index,G<z?(B.flags|=67108866,z):G):(B.flags|=67108866,z)):(B.flags|=1048576,z)}function S(B){return r&&B.alternate===null&&(B.flags|=67108866),B}function T(B,z,G,ne){return z===null||z.tag!==6?(z=fh(G,B.mode,ne),z.return=B,z):(z=f(z,G),z.return=B,z)}function M(B,z,G,ne){var Ne=G.type;return Ne===E?ee(B,z,G.props.children,ne,G.key):z!==null&&(z.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===F&&gx(Ne)===z.type)?(z=f(z,G.props),hl(z,G),z.return=B,z):(z=Xc(G.type,G.key,G.props,null,B.mode,ne),hl(z,G),z.return=B,z)}function K(B,z,G,ne){return z===null||z.tag!==4||z.stateNode.containerInfo!==G.containerInfo||z.stateNode.implementation!==G.implementation?(z=hh(G,B.mode,ne),z.return=B,z):(z=f(z,G.children||[]),z.return=B,z)}function ee(B,z,G,ne,Ne){return z===null||z.tag!==7?(z=_a(G,B.mode,ne,Ne),z.return=B,z):(z=f(z,G),z.return=B,z)}function re(B,z,G){if(typeof z=="string"&&z!==""||typeof z=="number"||typeof z=="bigint")return z=fh(""+z,B.mode,G),z.return=B,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case b:return G=Xc(z.type,z.key,z.props,null,B.mode,G),hl(G,z),G.return=B,G;case C:return z=hh(z,B.mode,G),z.return=B,z;case F:var ne=z._init;return z=ne(z._payload),re(B,z,G)}if(ve(z)||X(z))return z=_a(z,B.mode,G,null),z.return=B,z;if(typeof z.then=="function")return re(B,pu(z),G);if(z.$$typeof===k)return re(B,nu(B,z),G);gu(B,z)}return null}function Q(B,z,G,ne){var Ne=z!==null?z.key:null;if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return Ne!==null?null:T(B,z,""+G,ne);if(typeof G=="object"&&G!==null){switch(G.$$typeof){case b:return G.key===Ne?M(B,z,G,ne):null;case C:return G.key===Ne?K(B,z,G,ne):null;case F:return Ne=G._init,G=Ne(G._payload),Q(B,z,G,ne)}if(ve(G)||X(G))return Ne!==null?null:ee(B,z,G,ne,null);if(typeof G.then=="function")return Q(B,z,pu(G),ne);if(G.$$typeof===k)return Q(B,z,nu(B,G),ne);gu(B,G)}return null}function Z(B,z,G,ne,Ne){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return B=B.get(G)||null,T(z,B,""+ne,Ne);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case b:return B=B.get(ne.key===null?G:ne.key)||null,M(z,B,ne,Ne);case C:return B=B.get(ne.key===null?G:ne.key)||null,K(z,B,ne,Ne);case F:var We=ne._init;return ne=We(ne._payload),Z(B,z,G,ne,Ne)}if(ve(ne)||X(ne))return B=B.get(G)||null,ee(z,B,ne,Ne,null);if(typeof ne.then=="function")return Z(B,z,G,pu(ne),Ne);if(ne.$$typeof===k)return Z(B,z,G,nu(z,ne),Ne);gu(z,ne)}return null}function Ue(B,z,G,ne){for(var Ne=null,We=null,Re=z,Ie=z=0,en=null;Re!==null&&Ie<G.length;Ie++){Re.index>Ie?(en=Re,Re=null):en=Re.sibling;var ot=Q(B,Re,G[Ie],ne);if(ot===null){Re===null&&(Re=en);break}r&&Re&&ot.alternate===null&&s(B,Re),z=p(ot,z,Ie),We===null?Ne=ot:We.sibling=ot,We=ot,Re=en}if(Ie===G.length)return i(B,Re),dt&&Ea(B,Ie),Ne;if(Re===null){for(;Ie<G.length;Ie++)Re=re(B,G[Ie],ne),Re!==null&&(z=p(Re,z,Ie),We===null?Ne=Re:We.sibling=Re,We=Re);return dt&&Ea(B,Ie),Ne}for(Re=c(Re);Ie<G.length;Ie++)en=Z(Re,B,Ie,G[Ie],ne),en!==null&&(r&&en.alternate!==null&&Re.delete(en.key===null?Ie:en.key),z=p(en,z,Ie),We===null?Ne=en:We.sibling=en,We=en);return r&&Re.forEach(function(Gs){return s(B,Gs)}),dt&&Ea(B,Ie),Ne}function De(B,z,G,ne){if(G==null)throw Error(a(151));for(var Ne=null,We=null,Re=z,Ie=z=0,en=null,ot=G.next();Re!==null&&!ot.done;Ie++,ot=G.next()){Re.index>Ie?(en=Re,Re=null):en=Re.sibling;var Gs=Q(B,Re,ot.value,ne);if(Gs===null){Re===null&&(Re=en);break}r&&Re&&Gs.alternate===null&&s(B,Re),z=p(Gs,z,Ie),We===null?Ne=Gs:We.sibling=Gs,We=Gs,Re=en}if(ot.done)return i(B,Re),dt&&Ea(B,Ie),Ne;if(Re===null){for(;!ot.done;Ie++,ot=G.next())ot=re(B,ot.value,ne),ot!==null&&(z=p(ot,z,Ie),We===null?Ne=ot:We.sibling=ot,We=ot);return dt&&Ea(B,Ie),Ne}for(Re=c(Re);!ot.done;Ie++,ot=G.next())ot=Z(Re,B,Ie,ot.value,ne),ot!==null&&(r&&ot.alternate!==null&&Re.delete(ot.key===null?Ie:ot.key),z=p(ot,z,Ie),We===null?Ne=ot:We.sibling=ot,We=ot);return r&&Re.forEach(function(Kk){return s(B,Kk)}),dt&&Ea(B,Ie),Ne}function vt(B,z,G,ne){if(typeof G=="object"&&G!==null&&G.type===E&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case b:e:{for(var Ne=G.key;z!==null;){if(z.key===Ne){if(Ne=G.type,Ne===E){if(z.tag===7){i(B,z.sibling),ne=f(z,G.props.children),ne.return=B,B=ne;break e}}else if(z.elementType===Ne||typeof Ne=="object"&&Ne!==null&&Ne.$$typeof===F&&gx(Ne)===z.type){i(B,z.sibling),ne=f(z,G.props),hl(ne,G),ne.return=B,B=ne;break e}i(B,z);break}else s(B,z);z=z.sibling}G.type===E?(ne=_a(G.props.children,B.mode,ne,G.key),ne.return=B,B=ne):(ne=Xc(G.type,G.key,G.props,null,B.mode,ne),hl(ne,G),ne.return=B,B=ne)}return S(B);case C:e:{for(Ne=G.key;z!==null;){if(z.key===Ne)if(z.tag===4&&z.stateNode.containerInfo===G.containerInfo&&z.stateNode.implementation===G.implementation){i(B,z.sibling),ne=f(z,G.children||[]),ne.return=B,B=ne;break e}else{i(B,z);break}else s(B,z);z=z.sibling}ne=hh(G,B.mode,ne),ne.return=B,B=ne}return S(B);case F:return Ne=G._init,G=Ne(G._payload),vt(B,z,G,ne)}if(ve(G))return Ue(B,z,G,ne);if(X(G)){if(Ne=X(G),typeof Ne!="function")throw Error(a(150));return G=Ne.call(G),De(B,z,G,ne)}if(typeof G.then=="function")return vt(B,z,pu(G),ne);if(G.$$typeof===k)return vt(B,z,nu(B,G),ne);gu(B,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,z!==null&&z.tag===6?(i(B,z.sibling),ne=f(z,G),ne.return=B,B=ne):(i(B,z),ne=fh(G,B.mode,ne),ne.return=B,B=ne),S(B)):i(B,z)}return function(B,z,G,ne){try{fl=0;var Ne=vt(B,z,G,ne);return Di=null,Ne}catch(Re){if(Re===rl||Re===su)throw Re;var We=Hn(29,Re,null,B.mode);return We.lanes=ne,We.return=B,We}}}var Ii=yx(!0),vx=yx(!1),dr=L(null),Dr=null;function Os(r){var s=r.alternate;J(Gt,Gt.current&1),J(dr,r),Dr===null&&(s===null||Oi.current!==null||s.memoizedState!==null)&&(Dr=r)}function bx(r){if(r.tag===22){if(J(Gt,Gt.current),J(dr,r),Dr===null){var s=r.alternate;s!==null&&s.memoizedState!==null&&(Dr=r)}}else Rs()}function Rs(){J(Gt,Gt.current),J(dr,dr.current)}function rs(r){V(dr),Dr===r&&(Dr=null),V(Gt)}var Gt=L(0);function yu(r){for(var s=r;s!==null;){if(s.tag===13){var i=s.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||Dm(i)))return s}else if(s.tag===19&&s.memoizedProps.revealOrder!==void 0){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}function Gh(r,s,i,c){s=r.memoizedState,i=i(c,s),i=i==null?s:y({},s,i),r.memoizedState=i,r.lanes===0&&(r.updateQueue.baseState=i)}var Kh={enqueueSetState:function(r,s,i){r=r._reactInternals;var c=Qn(),f=Ns(c);f.payload=s,i!=null&&(f.callback=i),s=ks(r,f,c),s!==null&&(Yn(s,r,c),al(s,r,c))},enqueueReplaceState:function(r,s,i){r=r._reactInternals;var c=Qn(),f=Ns(c);f.tag=1,f.payload=s,i!=null&&(f.callback=i),s=ks(r,f,c),s!==null&&(Yn(s,r,c),al(s,r,c))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var i=Qn(),c=Ns(i);c.tag=2,s!=null&&(c.callback=s),s=ks(r,c,i),s!==null&&(Yn(s,r,i),al(s,r,i))}};function xx(r,s,i,c,f,p,S){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(c,p,S):s.prototype&&s.prototype.isPureReactComponent?!Yo(i,c)||!Yo(f,p):!0}function wx(r,s,i,c){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(i,c),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(i,c),s.state!==r&&Kh.enqueueReplaceState(s,s.state,null)}function Ra(r,s){var i=s;if("ref"in s){i={};for(var c in s)c!=="ref"&&(i[c]=s[c])}if(r=r.defaultProps){i===s&&(i=y({},i));for(var f in r)i[f]===void 0&&(i[f]=r[f])}return i}var vu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)};function Sx(r){vu(r)}function _x(r){console.error(r)}function Cx(r){vu(r)}function bu(r,s){try{var i=r.onUncaughtError;i(s.value,{componentStack:s.stack})}catch(c){setTimeout(function(){throw c})}}function Ex(r,s,i){try{var c=r.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Qh(r,s,i){return i=Ns(i),i.tag=3,i.payload={element:null},i.callback=function(){bu(r,s)},i}function Tx(r){return r=Ns(r),r.tag=3,r}function jx(r,s,i,c){var f=i.type.getDerivedStateFromError;if(typeof f=="function"){var p=c.value;r.payload=function(){return f(p)},r.callback=function(){Ex(s,i,c)}}var S=i.stateNode;S!==null&&typeof S.componentDidCatch=="function"&&(r.callback=function(){Ex(s,i,c),typeof f!="function"&&(zs===null?zs=new Set([this]):zs.add(this));var T=c.stack;this.componentDidCatch(c.value,{componentStack:T!==null?T:""})})}function KN(r,s,i,c,f){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(s=i.alternate,s!==null&&el(s,i,f,!0),i=dr.current,i!==null){switch(i.tag){case 13:return Dr===null?vm():i.alternate===null&&Mt===0&&(Mt=3),i.flags&=-257,i.flags|=65536,i.lanes=f,c===_h?i.flags|=16384:(s=i.updateQueue,s===null?i.updateQueue=new Set([c]):s.add(c),xm(r,c,f)),!1;case 22:return i.flags|=65536,c===_h?i.flags|=16384:(s=i.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=s):(i=s.retryQueue,i===null?s.retryQueue=new Set([c]):i.add(c)),xm(r,c,f)),!1}throw Error(a(435,i.tag))}return xm(r,c,f),vm(),!1}if(dt)return s=dr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=f,c!==gh&&(r=Error(a(422),{cause:c}),Jo(or(r,i)))):(c!==gh&&(s=Error(a(423),{cause:c}),Jo(or(s,i))),r=r.current.alternate,r.flags|=65536,f&=-f,r.lanes|=f,c=or(c,i),f=Qh(r.stateNode,c,f),Th(r,f),Mt!==4&&(Mt=2)),!1;var p=Error(a(520),{cause:c});if(p=or(p,i),xl===null?xl=[p]:xl.push(p),Mt!==4&&(Mt=2),s===null)return!0;c=or(c,i),i=s;do{switch(i.tag){case 3:return i.flags|=65536,r=f&-f,i.lanes|=r,r=Qh(i.stateNode,c,r),Th(i,r),!1;case 1:if(s=i.type,p=i.stateNode,(i.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(zs===null||!zs.has(p))))return i.flags|=65536,f&=-f,i.lanes|=f,f=Tx(f),jx(f,r,i,c),Th(i,f),!1}i=i.return}while(i!==null);return!1}var Nx=Error(a(461)),Xt=!1;function ln(r,s,i,c){s.child=r===null?vx(s,null,i,c):Ii(s,r.child,i,c)}function kx(r,s,i,c,f){i=i.render;var p=s.ref;if("ref"in c){var S={};for(var T in c)T!=="ref"&&(S[T]=c[T])}else S=c;return ka(s),c=Oh(r,s,i,S,p,f),T=Rh(),r!==null&&!Xt?(Ph(r,s,f),ss(r,s,f)):(dt&&T&&mh(s),s.flags|=1,ln(r,s,c,f),s.child)}function Ax(r,s,i,c,f){if(r===null){var p=i.type;return typeof p=="function"&&!dh(p)&&p.defaultProps===void 0&&i.compare===null?(s.tag=15,s.type=p,Ox(r,s,p,c,f)):(r=Xc(i.type,null,c,s,s.mode,f),r.ref=s.ref,r.return=s,s.child=r)}if(p=r.child,!nm(r,f)){var S=p.memoizedProps;if(i=i.compare,i=i!==null?i:Yo,i(S,c)&&r.ref===s.ref)return ss(r,s,f)}return s.flags|=1,r=Wr(p,c),r.ref=s.ref,r.return=s,s.child=r}function Ox(r,s,i,c,f){if(r!==null){var p=r.memoizedProps;if(Yo(p,c)&&r.ref===s.ref)if(Xt=!1,s.pendingProps=c=p,nm(r,f))(r.flags&131072)!==0&&(Xt=!0);else return s.lanes=r.lanes,ss(r,s,f)}return Yh(r,s,i,c,f)}function Rx(r,s,i){var c=s.pendingProps,f=c.children,p=r!==null?r.memoizedState:null;if(c.mode==="hidden"){if((s.flags&128)!==0){if(c=p!==null?p.baseLanes|i:i,r!==null){for(f=s.child=r.child,p=0;f!==null;)p=p|f.lanes|f.childLanes,f=f.sibling;s.childLanes=p&~c}else s.childLanes=0,s.child=null;return Px(r,s,c,i)}if((i&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},r!==null&&ru(s,p!==null?p.cachePool:null),p!==null?Ob(s,p):Nh(),bx(s);else return s.lanes=s.childLanes=536870912,Px(r,s,p!==null?p.baseLanes|i:i,i)}else p!==null?(ru(s,p.cachePool),Ob(s,p),Rs(),s.memoizedState=null):(r!==null&&ru(s,null),Nh(),Rs());return ln(r,s,f,i),s.child}function Px(r,s,i,c){var f=Sh();return f=f===null?null:{parent:qt._currentValue,pool:f},s.memoizedState={baseLanes:i,cachePool:f},r!==null&&ru(s,null),Nh(),bx(s),r!==null&&el(r,s,c,!0),null}function xu(r,s){var i=s.ref;if(i===null)r!==null&&r.ref!==null&&(s.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(a(284));(r===null||r.ref!==i)&&(s.flags|=4194816)}}function Yh(r,s,i,c,f){return ka(s),i=Oh(r,s,i,c,void 0,f),c=Rh(),r!==null&&!Xt?(Ph(r,s,f),ss(r,s,f)):(dt&&c&&mh(s),s.flags|=1,ln(r,s,i,f),s.child)}function Mx(r,s,i,c,f,p){return ka(s),s.updateQueue=null,i=Pb(s,c,i,f),Rb(r),c=Rh(),r!==null&&!Xt?(Ph(r,s,p),ss(r,s,p)):(dt&&c&&mh(s),s.flags|=1,ln(r,s,i,p),s.child)}function Dx(r,s,i,c,f){if(ka(s),s.stateNode===null){var p=Ti,S=i.contextType;typeof S=="object"&&S!==null&&(p=bn(S)),p=new i(c,p),s.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Kh,s.stateNode=p,p._reactInternals=s,p=s.stateNode,p.props=c,p.state=s.memoizedState,p.refs={},Ch(s),S=i.contextType,p.context=typeof S=="object"&&S!==null?bn(S):Ti,p.state=s.memoizedState,S=i.getDerivedStateFromProps,typeof S=="function"&&(Gh(s,i,S,c),p.state=s.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(S=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),S!==p.state&&Kh.enqueueReplaceState(p,p.state,null),ol(s,c,p,f),il(),p.state=s.memoizedState),typeof p.componentDidMount=="function"&&(s.flags|=4194308),c=!0}else if(r===null){p=s.stateNode;var T=s.memoizedProps,M=Ra(i,T);p.props=M;var K=p.context,ee=i.contextType;S=Ti,typeof ee=="object"&&ee!==null&&(S=bn(ee));var re=i.getDerivedStateFromProps;ee=typeof re=="function"||typeof p.getSnapshotBeforeUpdate=="function",T=s.pendingProps!==T,ee||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(T||K!==S)&&wx(s,p,c,S),js=!1;var Q=s.memoizedState;p.state=Q,ol(s,c,p,f),il(),K=s.memoizedState,T||Q!==K||js?(typeof re=="function"&&(Gh(s,i,re,c),K=s.memoizedState),(M=js||xx(s,i,M,c,Q,K,S))?(ee||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(s.flags|=4194308)):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=c,s.memoizedState=K),p.props=c,p.state=K,p.context=S,c=M):(typeof p.componentDidMount=="function"&&(s.flags|=4194308),c=!1)}else{p=s.stateNode,Eh(r,s),S=s.memoizedProps,ee=Ra(i,S),p.props=ee,re=s.pendingProps,Q=p.context,K=i.contextType,M=Ti,typeof K=="object"&&K!==null&&(M=bn(K)),T=i.getDerivedStateFromProps,(K=typeof T=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S!==re||Q!==M)&&wx(s,p,c,M),js=!1,Q=s.memoizedState,p.state=Q,ol(s,c,p,f),il();var Z=s.memoizedState;S!==re||Q!==Z||js||r!==null&&r.dependencies!==null&&tu(r.dependencies)?(typeof T=="function"&&(Gh(s,i,T,c),Z=s.memoizedState),(ee=js||xx(s,i,ee,c,Q,Z,M)||r!==null&&r.dependencies!==null&&tu(r.dependencies))?(K||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(c,Z,M),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(c,Z,M)),typeof p.componentDidUpdate=="function"&&(s.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof p.componentDidUpdate!="function"||S===r.memoizedProps&&Q===r.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===r.memoizedProps&&Q===r.memoizedState||(s.flags|=1024),s.memoizedProps=c,s.memoizedState=Z),p.props=c,p.state=Z,p.context=M,c=ee):(typeof p.componentDidUpdate!="function"||S===r.memoizedProps&&Q===r.memoizedState||(s.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||S===r.memoizedProps&&Q===r.memoizedState||(s.flags|=1024),c=!1)}return p=c,xu(r,s),c=(s.flags&128)!==0,p||c?(p=s.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:p.render(),s.flags|=1,r!==null&&c?(s.child=Ii(s,r.child,null,f),s.child=Ii(s,null,i,f)):ln(r,s,i,f),s.memoizedState=p.state,r=s.child):r=ss(r,s,f),r}function Ix(r,s,i,c){return Xo(),s.flags|=256,ln(r,s,i,c),s.child}var Zh={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wh(r){return{baseLanes:r,cachePool:_b()}}function Xh(r,s,i){return r=r!==null?r.childLanes&~i:0,s&&(r|=fr),r}function Lx(r,s,i){var c=s.pendingProps,f=!1,p=(s.flags&128)!==0,S;if((S=p)||(S=r!==null&&r.memoizedState===null?!1:(Gt.current&2)!==0),S&&(f=!0,s.flags&=-129),S=(s.flags&32)!==0,s.flags&=-33,r===null){if(dt){if(f?Os(s):Rs(),dt){var T=Pt,M;if(M=T){e:{for(M=T,T=Mr;M.nodeType!==8;){if(!T){T=null;break e}if(M=_r(M.nextSibling),M===null){T=null;break e}}T=M}T!==null?(s.memoizedState={dehydrated:T,treeContext:Ca!==null?{id:Xr,overflow:Jr}:null,retryLane:536870912,hydrationErrors:null},M=Hn(18,null,null,0),M.stateNode=T,M.return=s,s.child=M,Tn=s,Pt=null,M=!0):M=!1}M||ja(s)}if(T=s.memoizedState,T!==null&&(T=T.dehydrated,T!==null))return Dm(T)?s.lanes=32:s.lanes=536870912,null;rs(s)}return T=c.children,c=c.fallback,f?(Rs(),f=s.mode,T=wu({mode:"hidden",children:T},f),c=_a(c,f,i,null),T.return=s,c.return=s,T.sibling=c,s.child=T,f=s.child,f.memoizedState=Wh(i),f.childLanes=Xh(r,S,i),s.memoizedState=Zh,c):(Os(s),Jh(s,T))}if(M=r.memoizedState,M!==null&&(T=M.dehydrated,T!==null)){if(p)s.flags&256?(Os(s),s.flags&=-257,s=em(r,s,i)):s.memoizedState!==null?(Rs(),s.child=r.child,s.flags|=128,s=null):(Rs(),f=c.fallback,T=s.mode,c=wu({mode:"visible",children:c.children},T),f=_a(f,T,i,null),f.flags|=2,c.return=s,f.return=s,c.sibling=f,s.child=c,Ii(s,r.child,null,i),c=s.child,c.memoizedState=Wh(i),c.childLanes=Xh(r,S,i),s.memoizedState=Zh,s=f);else if(Os(s),Dm(T)){if(S=T.nextSibling&&T.nextSibling.dataset,S)var K=S.dgst;S=K,c=Error(a(419)),c.stack="",c.digest=S,Jo({value:c,source:null,stack:null}),s=em(r,s,i)}else if(Xt||el(r,s,i,!1),S=(i&r.childLanes)!==0,Xt||S){if(S=wt,S!==null&&(c=i&-i,c=(c&42)!==0?1:Qr(c),c=(c&(S.suspendedLanes|i))!==0?0:c,c!==0&&c!==M.retryLane))throw M.retryLane=c,Ei(r,c),Yn(S,r,c),Nx;T.data==="$?"||vm(),s=em(r,s,i)}else T.data==="$?"?(s.flags|=192,s.child=r.child,s=null):(r=M.treeContext,Pt=_r(T.nextSibling),Tn=s,dt=!0,Ta=null,Mr=!1,r!==null&&(cr[ur++]=Xr,cr[ur++]=Jr,cr[ur++]=Ca,Xr=r.id,Jr=r.overflow,Ca=s),s=Jh(s,c.children),s.flags|=4096);return s}return f?(Rs(),f=c.fallback,T=s.mode,M=r.child,K=M.sibling,c=Wr(M,{mode:"hidden",children:c.children}),c.subtreeFlags=M.subtreeFlags&65011712,K!==null?f=Wr(K,f):(f=_a(f,T,i,null),f.flags|=2),f.return=s,c.return=s,c.sibling=f,s.child=c,c=f,f=s.child,T=r.child.memoizedState,T===null?T=Wh(i):(M=T.cachePool,M!==null?(K=qt._currentValue,M=M.parent!==K?{parent:K,pool:K}:M):M=_b(),T={baseLanes:T.baseLanes|i,cachePool:M}),f.memoizedState=T,f.childLanes=Xh(r,S,i),s.memoizedState=Zh,c):(Os(s),i=r.child,r=i.sibling,i=Wr(i,{mode:"visible",children:c.children}),i.return=s,i.sibling=null,r!==null&&(S=s.deletions,S===null?(s.deletions=[r],s.flags|=16):S.push(r)),s.child=i,s.memoizedState=null,i)}function Jh(r,s){return s=wu({mode:"visible",children:s},r.mode),s.return=r,r.child=s}function wu(r,s){return r=Hn(22,r,null,s),r.lanes=0,r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},r}function em(r,s,i){return Ii(s,r.child,null,i),r=Jh(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function zx(r,s,i){r.lanes|=s;var c=r.alternate;c!==null&&(c.lanes|=s),vh(r.return,s,i)}function tm(r,s,i,c,f){var p=r.memoizedState;p===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:f}:(p.isBackwards=s,p.rendering=null,p.renderingStartTime=0,p.last=c,p.tail=i,p.tailMode=f)}function Ux(r,s,i){var c=s.pendingProps,f=c.revealOrder,p=c.tail;if(ln(r,s,c.children,i),c=Gt.current,(c&2)!==0)c=c&1|2,s.flags|=128;else{if(r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&zx(r,i,s);else if(r.tag===19)zx(r,i,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}c&=1}switch(J(Gt,c),f){case"forwards":for(i=s.child,f=null;i!==null;)r=i.alternate,r!==null&&yu(r)===null&&(f=i),i=i.sibling;i=f,i===null?(f=s.child,s.child=null):(f=i.sibling,i.sibling=null),tm(s,!1,f,i,p);break;case"backwards":for(i=null,f=s.child,s.child=null;f!==null;){if(r=f.alternate,r!==null&&yu(r)===null){s.child=f;break}r=f.sibling,f.sibling=i,i=f,f=r}tm(s,!0,i,null,p);break;case"together":tm(s,!1,null,null,void 0);break;default:s.memoizedState=null}return s.child}function ss(r,s,i){if(r!==null&&(s.dependencies=r.dependencies),Ls|=s.lanes,(i&s.childLanes)===0)if(r!==null){if(el(r,s,i,!1),(i&s.childLanes)===0)return null}else return null;if(r!==null&&s.child!==r.child)throw Error(a(153));if(s.child!==null){for(r=s.child,i=Wr(r,r.pendingProps),s.child=i,i.return=s;r.sibling!==null;)r=r.sibling,i=i.sibling=Wr(r,r.pendingProps),i.return=s;i.sibling=null}return s.child}function nm(r,s){return(r.lanes&s)!==0?!0:(r=r.dependencies,!!(r!==null&&tu(r)))}function QN(r,s,i){switch(s.tag){case 3:de(s,s.stateNode.containerInfo),Ts(s,qt,r.memoizedState.cache),Xo();break;case 27:case 5:St(s);break;case 4:de(s,s.stateNode.containerInfo);break;case 10:Ts(s,s.type,s.memoizedProps.value);break;case 13:var c=s.memoizedState;if(c!==null)return c.dehydrated!==null?(Os(s),s.flags|=128,null):(i&s.child.childLanes)!==0?Lx(r,s,i):(Os(s),r=ss(r,s,i),r!==null?r.sibling:null);Os(s);break;case 19:var f=(r.flags&128)!==0;if(c=(i&s.childLanes)!==0,c||(el(r,s,i,!1),c=(i&s.childLanes)!==0),f){if(c)return Ux(r,s,i);s.flags|=128}if(f=s.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),J(Gt,Gt.current),c)break;return null;case 22:case 23:return s.lanes=0,Rx(r,s,i);case 24:Ts(s,qt,r.memoizedState.cache)}return ss(r,s,i)}function Vx(r,s,i){if(r!==null)if(r.memoizedProps!==s.pendingProps)Xt=!0;else{if(!nm(r,i)&&(s.flags&128)===0)return Xt=!1,QN(r,s,i);Xt=(r.flags&131072)!==0}else Xt=!1,dt&&(s.flags&1048576)!==0&&gb(s,eu,s.index);switch(s.lanes=0,s.tag){case 16:e:{r=s.pendingProps;var c=s.elementType,f=c._init;if(c=f(c._payload),s.type=c,typeof c=="function")dh(c)?(r=Ra(c,r),s.tag=1,s=Dx(null,s,c,r,i)):(s.tag=0,s=Yh(null,s,c,r,i));else{if(c!=null){if(f=c.$$typeof,f===N){s.tag=11,s=kx(null,s,c,r,i);break e}else if(f===Y){s.tag=14,s=Ax(null,s,c,r,i);break e}}throw s=oe(c)||c,Error(a(306,s,""))}}return s;case 0:return Yh(r,s,s.type,s.pendingProps,i);case 1:return c=s.type,f=Ra(c,s.pendingProps),Dx(r,s,c,f,i);case 3:e:{if(de(s,s.stateNode.containerInfo),r===null)throw Error(a(387));c=s.pendingProps;var p=s.memoizedState;f=p.element,Eh(r,s),ol(s,c,null,i);var S=s.memoizedState;if(c=S.cache,Ts(s,qt,c),c!==p.cache&&bh(s,[qt],i,!0),il(),c=S.element,p.isDehydrated)if(p={element:c,isDehydrated:!1,cache:S.cache},s.updateQueue.baseState=p,s.memoizedState=p,s.flags&256){s=Ix(r,s,c,i);break e}else if(c!==f){f=or(Error(a(424)),s),Jo(f),s=Ix(r,s,c,i);break e}else for(r=s.stateNode.containerInfo,r.nodeType===9?r=r.body:r=r.nodeName==="HTML"?r.ownerDocument.body:r,Pt=_r(r.firstChild),Tn=s,dt=!0,Ta=null,Mr=!0,i=vx(s,null,c,i),s.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Xo(),c===f){s=ss(r,s,i);break e}ln(r,s,c,i)}s=s.child}return s;case 26:return xu(r,s),r===null?(i=H0(s.type,null,s.pendingProps,null))?s.memoizedState=i:dt||(i=s.type,r=s.pendingProps,c=Du(ye.current).createElement(i),c[vn]=s,c[Mn]=r,un(c,i,r),Wt(c),s.stateNode=c):s.memoizedState=H0(s.type,r.memoizedProps,s.pendingProps,r.memoizedState),null;case 27:return St(s),r===null&&dt&&(c=s.stateNode=F0(s.type,s.pendingProps,ye.current),Tn=s,Mr=!0,f=Pt,Fs(s.type)?(Im=f,Pt=_r(c.firstChild)):Pt=f),ln(r,s,s.pendingProps.children,i),xu(r,s),r===null&&(s.flags|=4194304),s.child;case 5:return r===null&&dt&&((f=c=Pt)&&(c=Sk(c,s.type,s.pendingProps,Mr),c!==null?(s.stateNode=c,Tn=s,Pt=_r(c.firstChild),Mr=!1,f=!0):f=!1),f||ja(s)),St(s),f=s.type,p=s.pendingProps,S=r!==null?r.memoizedProps:null,c=p.children,Rm(f,p)?c=null:S!==null&&Rm(f,S)&&(s.flags|=32),s.memoizedState!==null&&(f=Oh(r,s,VN,null,null,i),kl._currentValue=f),xu(r,s),ln(r,s,c,i),s.child;case 6:return r===null&&dt&&((r=i=Pt)&&(i=_k(i,s.pendingProps,Mr),i!==null?(s.stateNode=i,Tn=s,Pt=null,r=!0):r=!1),r||ja(s)),null;case 13:return Lx(r,s,i);case 4:return de(s,s.stateNode.containerInfo),c=s.pendingProps,r===null?s.child=Ii(s,null,c,i):ln(r,s,c,i),s.child;case 11:return kx(r,s,s.type,s.pendingProps,i);case 7:return ln(r,s,s.pendingProps,i),s.child;case 8:return ln(r,s,s.pendingProps.children,i),s.child;case 12:return ln(r,s,s.pendingProps.children,i),s.child;case 10:return c=s.pendingProps,Ts(s,s.type,c.value),ln(r,s,c.children,i),s.child;case 9:return f=s.type._context,c=s.pendingProps.children,ka(s),f=bn(f),c=c(f),s.flags|=1,ln(r,s,c,i),s.child;case 14:return Ax(r,s,s.type,s.pendingProps,i);case 15:return Ox(r,s,s.type,s.pendingProps,i);case 19:return Ux(r,s,i);case 31:return c=s.pendingProps,i=s.mode,c={mode:c.mode,children:c.children},r===null?(i=wu(c,i),i.ref=s.ref,s.child=i,i.return=s,s=i):(i=Wr(r.child,c),i.ref=s.ref,s.child=i,i.return=s,s=i),s;case 22:return Rx(r,s,i);case 24:return ka(s),c=bn(qt),r===null?(f=Sh(),f===null&&(f=wt,p=xh(),f.pooledCache=p,p.refCount++,p!==null&&(f.pooledCacheLanes|=i),f=p),s.memoizedState={parent:c,cache:f},Ch(s),Ts(s,qt,f)):((r.lanes&i)!==0&&(Eh(r,s),ol(s,null,null,i),il()),f=r.memoizedState,p=s.memoizedState,f.parent!==c?(f={parent:c,cache:c},s.memoizedState=f,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=f),Ts(s,qt,c)):(c=p.cache,Ts(s,qt,c),c!==f.cache&&bh(s,[qt],i,!0))),ln(r,s,s.pendingProps.children,i),s.child;case 29:throw s.pendingProps}throw Error(a(156,s.tag))}function as(r){r.flags|=4}function Fx(r,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!Y0(s)){if(s=dr.current,s!==null&&((st&4194048)===st?Dr!==null:(st&62914560)!==st&&(st&536870912)===0||s!==Dr))throw sl=_h,Cb;r.flags|=8192}}function Su(r,s){s!==null&&(r.flags|=4),r.flags&16384&&(s=r.tag!==22?ut():536870912,r.lanes|=s,Vi|=s)}function ml(r,s){if(!dt)switch(r.tailMode){case"hidden":s=r.tail;for(var i=null;s!==null;)s.alternate!==null&&(i=s),s=s.sibling;i===null?r.tail=null:i.sibling=null;break;case"collapsed":i=r.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:c.sibling=null}}function jt(r){var s=r.alternate!==null&&r.alternate.child===r.child,i=0,c=0;if(s)for(var f=r.child;f!==null;)i|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=r,f=f.sibling;else for(f=r.child;f!==null;)i|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=r,f=f.sibling;return r.subtreeFlags|=c,r.childLanes=i,s}function YN(r,s,i){var c=s.pendingProps;switch(ph(s),s.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(s),null;case 1:return jt(s),null;case 3:return i=s.stateNode,c=null,r!==null&&(c=r.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),ts(qt),Oe(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(r===null||r.child===null)&&(Wo(s)?as(s):r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,bb())),jt(s),null;case 26:return i=s.memoizedState,r===null?(as(s),i!==null?(jt(s),Fx(s,i)):(jt(s),s.flags&=-16777217)):i?i!==r.memoizedState?(as(s),jt(s),Fx(s,i)):(jt(s),s.flags&=-16777217):(r.memoizedProps!==c&&as(s),jt(s),s.flags&=-16777217),null;case 27:Ze(s),i=ye.current;var f=s.type;if(r!==null&&s.stateNode!=null)r.memoizedProps!==c&&as(s);else{if(!c){if(s.stateNode===null)throw Error(a(166));return jt(s),null}r=ge.current,Wo(s)?yb(s):(r=F0(f,c,i),s.stateNode=r,as(s))}return jt(s),null;case 5:if(Ze(s),i=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==c&&as(s);else{if(!c){if(s.stateNode===null)throw Error(a(166));return jt(s),null}if(r=ge.current,Wo(s))yb(s);else{switch(f=Du(ye.current),r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof c.is=="string"?f.createElement("select",{is:c.is}):f.createElement("select"),c.multiple?r.multiple=!0:c.size&&(r.size=c.size);break;default:r=typeof c.is=="string"?f.createElement(i,{is:c.is}):f.createElement(i)}}r[vn]=s,r[Mn]=c;e:for(f=s.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===s)break e;for(;f.sibling===null;){if(f.return===null||f.return===s)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}s.stateNode=r;e:switch(un(r,i,c),i){case"button":case"input":case"select":case"textarea":r=!!c.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&as(s)}}return jt(s),s.flags&=-16777217,null;case 6:if(r&&s.stateNode!=null)r.memoizedProps!==c&&as(s);else{if(typeof c!="string"&&s.stateNode===null)throw Error(a(166));if(r=ye.current,Wo(s)){if(r=s.stateNode,i=s.memoizedProps,c=null,f=Tn,f!==null)switch(f.tag){case 27:case 5:c=f.memoizedProps}r[vn]=s,r=!!(r.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||M0(r.nodeValue,i)),r||ja(s)}else r=Du(r).createTextNode(c),r[vn]=s,s.stateNode=r}return jt(s),null;case 13:if(c=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(f=Wo(s),c!==null&&c.dehydrated!==null){if(r===null){if(!f)throw Error(a(318));if(f=s.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(a(317));f[vn]=s}else Xo(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;jt(s),f=!1}else f=bb(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=f),f=!0;if(!f)return s.flags&256?(rs(s),s):(rs(s),null)}if(rs(s),(s.flags&128)!==0)return s.lanes=i,s;if(i=c!==null,r=r!==null&&r.memoizedState!==null,i){c=s.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool);var p=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(p=c.memoizedState.cachePool.pool),p!==f&&(c.flags|=2048)}return i!==r&&i&&(s.child.flags|=8192),Su(s,s.updateQueue),jt(s),null;case 4:return Oe(),r===null&&jm(s.stateNode.containerInfo),jt(s),null;case 10:return ts(s.type),jt(s),null;case 19:if(V(Gt),f=s.memoizedState,f===null)return jt(s),null;if(c=(s.flags&128)!==0,p=f.rendering,p===null)if(c)ml(f,!1);else{if(Mt!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(p=yu(r),p!==null){for(s.flags|=128,ml(f,!1),r=p.updateQueue,s.updateQueue=r,Su(s,r),s.subtreeFlags=0,r=i,i=s.child;i!==null;)pb(i,r),i=i.sibling;return J(Gt,Gt.current&1|2),s.child}r=r.sibling}f.tail!==null&&Zt()>Eu&&(s.flags|=128,c=!0,ml(f,!1),s.lanes=4194304)}else{if(!c)if(r=yu(p),r!==null){if(s.flags|=128,c=!0,r=r.updateQueue,s.updateQueue=r,Su(s,r),ml(f,!0),f.tail===null&&f.tailMode==="hidden"&&!p.alternate&&!dt)return jt(s),null}else 2*Zt()-f.renderingStartTime>Eu&&i!==536870912&&(s.flags|=128,c=!0,ml(f,!1),s.lanes=4194304);f.isBackwards?(p.sibling=s.child,s.child=p):(r=f.last,r!==null?r.sibling=p:s.child=p,f.last=p)}return f.tail!==null?(s=f.tail,f.rendering=s,f.tail=s.sibling,f.renderingStartTime=Zt(),s.sibling=null,r=Gt.current,J(Gt,c?r&1|2:r&1),s):(jt(s),null);case 22:case 23:return rs(s),kh(),c=s.memoizedState!==null,r!==null?r.memoizedState!==null!==c&&(s.flags|=8192):c&&(s.flags|=8192),c?(i&536870912)!==0&&(s.flags&128)===0&&(jt(s),s.subtreeFlags&6&&(s.flags|=8192)):jt(s),i=s.updateQueue,i!==null&&Su(s,i.retryQueue),i=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==i&&(s.flags|=2048),r!==null&&V(Aa),null;case 24:return i=null,r!==null&&(i=r.memoizedState.cache),s.memoizedState.cache!==i&&(s.flags|=2048),ts(qt),jt(s),null;case 25:return null;case 30:return null}throw Error(a(156,s.tag))}function ZN(r,s){switch(ph(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return ts(qt),Oe(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return Ze(s),null;case 13:if(rs(s),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(a(340));Xo()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return V(Gt),null;case 4:return Oe(),null;case 10:return ts(s.type),null;case 22:case 23:return rs(s),kh(),r!==null&&V(Aa),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return ts(qt),null;case 25:return null;default:return null}}function Bx(r,s){switch(ph(s),s.tag){case 3:ts(qt),Oe();break;case 26:case 27:case 5:Ze(s);break;case 4:Oe();break;case 13:rs(s);break;case 19:V(Gt);break;case 10:ts(s.type);break;case 22:case 23:rs(s),kh(),r!==null&&V(Aa);break;case 24:ts(qt)}}function pl(r,s){try{var i=s.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var f=c.next;i=f;do{if((i.tag&r)===r){c=void 0;var p=i.create,S=i.inst;c=p(),S.destroy=c}i=i.next}while(i!==f)}}catch(T){bt(s,s.return,T)}}function Ps(r,s,i){try{var c=s.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var p=f.next;c=p;do{if((c.tag&r)===r){var S=c.inst,T=S.destroy;if(T!==void 0){S.destroy=void 0,f=s;var M=i,K=T;try{K()}catch(ee){bt(f,M,ee)}}}c=c.next}while(c!==p)}}catch(ee){bt(s,s.return,ee)}}function $x(r){var s=r.updateQueue;if(s!==null){var i=r.stateNode;try{Ab(s,i)}catch(c){bt(r,r.return,c)}}}function Hx(r,s,i){i.props=Ra(r.type,r.memoizedProps),i.state=r.memoizedState;try{i.componentWillUnmount()}catch(c){bt(r,s,c)}}function gl(r,s){try{var i=r.ref;if(i!==null){switch(r.tag){case 26:case 27:case 5:var c=r.stateNode;break;case 30:c=r.stateNode;break;default:c=r.stateNode}typeof i=="function"?r.refCleanup=i(c):i.current=c}}catch(f){bt(r,s,f)}}function Ir(r,s){var i=r.ref,c=r.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(f){bt(r,s,f)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(f){bt(r,s,f)}else i.current=null}function qx(r){var s=r.type,i=r.memoizedProps,c=r.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":i.autoFocus&&c.focus();break e;case"img":i.src?c.src=i.src:i.srcSet&&(c.srcset=i.srcSet)}}catch(f){bt(r,r.return,f)}}function rm(r,s,i){try{var c=r.stateNode;yk(c,r.type,i,s),c[Mn]=s}catch(f){bt(r,r.return,f)}}function Gx(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Fs(r.type)||r.tag===4}function sm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Gx(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&Fs(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function am(r,s,i){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(r,s):(s=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,s.appendChild(r),i=i._reactRootContainer,i!=null||s.onclick!==null||(s.onclick=Mu));else if(c!==4&&(c===27&&Fs(r.type)&&(i=r.stateNode,s=null),r=r.child,r!==null))for(am(r,s,i),r=r.sibling;r!==null;)am(r,s,i),r=r.sibling}function _u(r,s,i){var c=r.tag;if(c===5||c===6)r=r.stateNode,s?i.insertBefore(r,s):i.appendChild(r);else if(c!==4&&(c===27&&Fs(r.type)&&(i=r.stateNode),r=r.child,r!==null))for(_u(r,s,i),r=r.sibling;r!==null;)_u(r,s,i),r=r.sibling}function Kx(r){var s=r.stateNode,i=r.memoizedProps;try{for(var c=r.type,f=s.attributes;f.length;)s.removeAttributeNode(f[0]);un(s,c,i),s[vn]=r,s[Mn]=i}catch(p){bt(r,r.return,p)}}var is=!1,It=!1,im=!1,Qx=typeof WeakSet=="function"?WeakSet:Set,Jt=null;function WN(r,s){if(r=r.containerInfo,Am=Fu,r=ab(r),sh(r)){if("selectionStart"in r)var i={start:r.selectionStart,end:r.selectionEnd};else e:{i=(i=r.ownerDocument)&&i.defaultView||window;var c=i.getSelection&&i.getSelection();if(c&&c.rangeCount!==0){i=c.anchorNode;var f=c.anchorOffset,p=c.focusNode;c=c.focusOffset;try{i.nodeType,p.nodeType}catch{i=null;break e}var S=0,T=-1,M=-1,K=0,ee=0,re=r,Q=null;t:for(;;){for(var Z;re!==i||f!==0&&re.nodeType!==3||(T=S+f),re!==p||c!==0&&re.nodeType!==3||(M=S+c),re.nodeType===3&&(S+=re.nodeValue.length),(Z=re.firstChild)!==null;)Q=re,re=Z;for(;;){if(re===r)break t;if(Q===i&&++K===f&&(T=S),Q===p&&++ee===c&&(M=S),(Z=re.nextSibling)!==null)break;re=Q,Q=re.parentNode}re=Z}i=T===-1||M===-1?null:{start:T,end:M}}else i=null}i=i||{start:0,end:0}}else i=null;for(Om={focusedElem:r,selectionRange:i},Fu=!1,Jt=s;Jt!==null;)if(s=Jt,r=s.child,(s.subtreeFlags&1024)!==0&&r!==null)r.return=s,Jt=r;else for(;Jt!==null;){switch(s=Jt,p=s.alternate,r=s.flags,s.tag){case 0:break;case 11:case 15:break;case 1:if((r&1024)!==0&&p!==null){r=void 0,i=s,f=p.memoizedProps,p=p.memoizedState,c=i.stateNode;try{var Ue=Ra(i.type,f,i.elementType===i.type);r=c.getSnapshotBeforeUpdate(Ue,p),c.__reactInternalSnapshotBeforeUpdate=r}catch(De){bt(i,i.return,De)}}break;case 3:if((r&1024)!==0){if(r=s.stateNode.containerInfo,i=r.nodeType,i===9)Mm(r);else if(i===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Mm(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=s.sibling,r!==null){r.return=s.return,Jt=r;break}Jt=s.return}}function Yx(r,s,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:Ms(r,i),c&4&&pl(5,i);break;case 1:if(Ms(r,i),c&4)if(r=i.stateNode,s===null)try{r.componentDidMount()}catch(S){bt(i,i.return,S)}else{var f=Ra(i.type,s.memoizedProps);s=s.memoizedState;try{r.componentDidUpdate(f,s,r.__reactInternalSnapshotBeforeUpdate)}catch(S){bt(i,i.return,S)}}c&64&&$x(i),c&512&&gl(i,i.return);break;case 3:if(Ms(r,i),c&64&&(r=i.updateQueue,r!==null)){if(s=null,i.child!==null)switch(i.child.tag){case 27:case 5:s=i.child.stateNode;break;case 1:s=i.child.stateNode}try{Ab(r,s)}catch(S){bt(i,i.return,S)}}break;case 27:s===null&&c&4&&Kx(i);case 26:case 5:Ms(r,i),s===null&&c&4&&qx(i),c&512&&gl(i,i.return);break;case 12:Ms(r,i);break;case 13:Ms(r,i),c&4&&Xx(r,i),c&64&&(r=i.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(i=ik.bind(null,i),Ck(r,i))));break;case 22:if(c=i.memoizedState!==null||is,!c){s=s!==null&&s.memoizedState!==null||It,f=is;var p=It;is=c,(It=s)&&!p?Ds(r,i,(i.subtreeFlags&8772)!==0):Ms(r,i),is=f,It=p}break;case 30:break;default:Ms(r,i)}}function Zx(r){var s=r.alternate;s!==null&&(r.alternate=null,Zx(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&Uf(s)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var Et=null,Ln=!1;function os(r,s,i){for(i=i.child;i!==null;)Wx(r,s,i),i=i.sibling}function Wx(r,s,i){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(va,i)}catch{}switch(i.tag){case 26:It||Ir(i,s),os(r,s,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:It||Ir(i,s);var c=Et,f=Ln;Fs(i.type)&&(Et=i.stateNode,Ln=!1),os(r,s,i),El(i.stateNode),Et=c,Ln=f;break;case 5:It||Ir(i,s);case 6:if(c=Et,f=Ln,Et=null,os(r,s,i),Et=c,Ln=f,Et!==null)if(Ln)try{(Et.nodeType===9?Et.body:Et.nodeName==="HTML"?Et.ownerDocument.body:Et).removeChild(i.stateNode)}catch(p){bt(i,s,p)}else try{Et.removeChild(i.stateNode)}catch(p){bt(i,s,p)}break;case 18:Et!==null&&(Ln?(r=Et,U0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,i.stateNode),Pl(r)):U0(Et,i.stateNode));break;case 4:c=Et,f=Ln,Et=i.stateNode.containerInfo,Ln=!0,os(r,s,i),Et=c,Ln=f;break;case 0:case 11:case 14:case 15:It||Ps(2,i,s),It||Ps(4,i,s),os(r,s,i);break;case 1:It||(Ir(i,s),c=i.stateNode,typeof c.componentWillUnmount=="function"&&Hx(i,s,c)),os(r,s,i);break;case 21:os(r,s,i);break;case 22:It=(c=It)||i.memoizedState!==null,os(r,s,i),It=c;break;default:os(r,s,i)}}function Xx(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{Pl(r)}catch(i){bt(s,s.return,i)}}function XN(r){switch(r.tag){case 13:case 19:var s=r.stateNode;return s===null&&(s=r.stateNode=new Qx),s;case 22:return r=r.stateNode,s=r._retryCache,s===null&&(s=r._retryCache=new Qx),s;default:throw Error(a(435,r.tag))}}function om(r,s){var i=XN(r);s.forEach(function(c){var f=ok.bind(null,r,c);i.has(c)||(i.add(c),c.then(f,f))})}function qn(r,s){var i=s.deletions;if(i!==null)for(var c=0;c<i.length;c++){var f=i[c],p=r,S=s,T=S;e:for(;T!==null;){switch(T.tag){case 27:if(Fs(T.type)){Et=T.stateNode,Ln=!1;break e}break;case 5:Et=T.stateNode,Ln=!1;break e;case 3:case 4:Et=T.stateNode.containerInfo,Ln=!0;break e}T=T.return}if(Et===null)throw Error(a(160));Wx(p,S,f),Et=null,Ln=!1,p=f.alternate,p!==null&&(p.return=null),f.return=null}if(s.subtreeFlags&13878)for(s=s.child;s!==null;)Jx(s,r),s=s.sibling}var Sr=null;function Jx(r,s){var i=r.alternate,c=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:qn(s,r),Gn(r),c&4&&(Ps(3,r,r.return),pl(3,r),Ps(5,r,r.return));break;case 1:qn(s,r),Gn(r),c&512&&(It||i===null||Ir(i,i.return)),c&64&&is&&(r=r.updateQueue,r!==null&&(c=r.callbacks,c!==null&&(i=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=i===null?c:i.concat(c))));break;case 26:var f=Sr;if(qn(s,r),Gn(r),c&512&&(It||i===null||Ir(i,i.return)),c&4){var p=i!==null?i.memoizedState:null;if(c=r.memoizedState,i===null)if(c===null)if(r.stateNode===null){e:{c=r.type,i=r.memoizedProps,f=f.ownerDocument||f;t:switch(c){case"title":p=f.getElementsByTagName("title")[0],(!p||p[Vo]||p[vn]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=f.createElement(c),f.head.insertBefore(p,f.querySelector("head > title"))),un(p,c,i),p[vn]=r,Wt(p),c=p;break e;case"link":var S=K0("link","href",f).get(c+(i.href||""));if(S){for(var T=0;T<S.length;T++)if(p=S[T],p.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&p.getAttribute("rel")===(i.rel==null?null:i.rel)&&p.getAttribute("title")===(i.title==null?null:i.title)&&p.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){S.splice(T,1);break t}}p=f.createElement(c),un(p,c,i),f.head.appendChild(p);break;case"meta":if(S=K0("meta","content",f).get(c+(i.content||""))){for(T=0;T<S.length;T++)if(p=S[T],p.getAttribute("content")===(i.content==null?null:""+i.content)&&p.getAttribute("name")===(i.name==null?null:i.name)&&p.getAttribute("property")===(i.property==null?null:i.property)&&p.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&p.getAttribute("charset")===(i.charSet==null?null:i.charSet)){S.splice(T,1);break t}}p=f.createElement(c),un(p,c,i),f.head.appendChild(p);break;default:throw Error(a(468,c))}p[vn]=r,Wt(p),c=p}r.stateNode=c}else Q0(f,r.type,r.stateNode);else r.stateNode=G0(f,c,r.memoizedProps);else p!==c?(p===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):p.count--,c===null?Q0(f,r.type,r.stateNode):G0(f,c,r.memoizedProps)):c===null&&r.stateNode!==null&&rm(r,r.memoizedProps,i.memoizedProps)}break;case 27:qn(s,r),Gn(r),c&512&&(It||i===null||Ir(i,i.return)),i!==null&&c&4&&rm(r,r.memoizedProps,i.memoizedProps);break;case 5:if(qn(s,r),Gn(r),c&512&&(It||i===null||Ir(i,i.return)),r.flags&32){f=r.stateNode;try{vi(f,"")}catch(Z){bt(r,r.return,Z)}}c&4&&r.stateNode!=null&&(f=r.memoizedProps,rm(r,f,i!==null?i.memoizedProps:f)),c&1024&&(im=!0);break;case 6:if(qn(s,r),Gn(r),c&4){if(r.stateNode===null)throw Error(a(162));c=r.memoizedProps,i=r.stateNode;try{i.nodeValue=c}catch(Z){bt(r,r.return,Z)}}break;case 3:if(zu=null,f=Sr,Sr=Iu(s.containerInfo),qn(s,r),Sr=f,Gn(r),c&4&&i!==null&&i.memoizedState.isDehydrated)try{Pl(s.containerInfo)}catch(Z){bt(r,r.return,Z)}im&&(im=!1,e0(r));break;case 4:c=Sr,Sr=Iu(r.stateNode.containerInfo),qn(s,r),Gn(r),Sr=c;break;case 12:qn(s,r),Gn(r);break;case 13:qn(s,r),Gn(r),r.child.flags&8192&&r.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(hm=Zt()),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,om(r,c)));break;case 22:f=r.memoizedState!==null;var M=i!==null&&i.memoizedState!==null,K=is,ee=It;if(is=K||f,It=ee||M,qn(s,r),It=ee,is=K,Gn(r),c&8192)e:for(s=r.stateNode,s._visibility=f?s._visibility&-2:s._visibility|1,f&&(i===null||M||is||It||Pa(r)),i=null,s=r;;){if(s.tag===5||s.tag===26){if(i===null){M=i=s;try{if(p=M.stateNode,f)S=p.style,typeof S.setProperty=="function"?S.setProperty("display","none","important"):S.display="none";else{T=M.stateNode;var re=M.memoizedProps.style,Q=re!=null&&re.hasOwnProperty("display")?re.display:null;T.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(Z){bt(M,M.return,Z)}}}else if(s.tag===6){if(i===null){M=s;try{M.stateNode.nodeValue=f?"":M.memoizedProps}catch(Z){bt(M,M.return,Z)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===r)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break e;for(;s.sibling===null;){if(s.return===null||s.return===r)break e;i===s&&(i=null),s=s.return}i===s&&(i=null),s.sibling.return=s.return,s=s.sibling}c&4&&(c=r.updateQueue,c!==null&&(i=c.retryQueue,i!==null&&(c.retryQueue=null,om(r,i))));break;case 19:qn(s,r),Gn(r),c&4&&(c=r.updateQueue,c!==null&&(r.updateQueue=null,om(r,c)));break;case 30:break;case 21:break;default:qn(s,r),Gn(r)}}function Gn(r){var s=r.flags;if(s&2){try{for(var i,c=r.return;c!==null;){if(Gx(c)){i=c;break}c=c.return}if(i==null)throw Error(a(160));switch(i.tag){case 27:var f=i.stateNode,p=sm(r);_u(r,p,f);break;case 5:var S=i.stateNode;i.flags&32&&(vi(S,""),i.flags&=-33);var T=sm(r);_u(r,T,S);break;case 3:case 4:var M=i.stateNode.containerInfo,K=sm(r);am(r,K,M);break;default:throw Error(a(161))}}catch(ee){bt(r,r.return,ee)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function e0(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var s=r;e0(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),r=r.sibling}}function Ms(r,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)Yx(r,s.alternate,s),s=s.sibling}function Pa(r){for(r=r.child;r!==null;){var s=r;switch(s.tag){case 0:case 11:case 14:case 15:Ps(4,s,s.return),Pa(s);break;case 1:Ir(s,s.return);var i=s.stateNode;typeof i.componentWillUnmount=="function"&&Hx(s,s.return,i),Pa(s);break;case 27:El(s.stateNode);case 26:case 5:Ir(s,s.return),Pa(s);break;case 22:s.memoizedState===null&&Pa(s);break;case 30:Pa(s);break;default:Pa(s)}r=r.sibling}}function Ds(r,s,i){for(i=i&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var c=s.alternate,f=r,p=s,S=p.flags;switch(p.tag){case 0:case 11:case 15:Ds(f,p,i),pl(4,p);break;case 1:if(Ds(f,p,i),c=p,f=c.stateNode,typeof f.componentDidMount=="function")try{f.componentDidMount()}catch(K){bt(c,c.return,K)}if(c=p,f=c.updateQueue,f!==null){var T=c.stateNode;try{var M=f.shared.hiddenCallbacks;if(M!==null)for(f.shared.hiddenCallbacks=null,f=0;f<M.length;f++)kb(M[f],T)}catch(K){bt(c,c.return,K)}}i&&S&64&&$x(p),gl(p,p.return);break;case 27:Kx(p);case 26:case 5:Ds(f,p,i),i&&c===null&&S&4&&qx(p),gl(p,p.return);break;case 12:Ds(f,p,i);break;case 13:Ds(f,p,i),i&&S&4&&Xx(f,p);break;case 22:p.memoizedState===null&&Ds(f,p,i),gl(p,p.return);break;case 30:break;default:Ds(f,p,i)}s=s.sibling}}function lm(r,s){var i=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==i&&(r!=null&&r.refCount++,i!=null&&tl(i))}function cm(r,s){r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&tl(r))}function Lr(r,s,i,c){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)t0(r,s,i,c),s=s.sibling}function t0(r,s,i,c){var f=s.flags;switch(s.tag){case 0:case 11:case 15:Lr(r,s,i,c),f&2048&&pl(9,s);break;case 1:Lr(r,s,i,c);break;case 3:Lr(r,s,i,c),f&2048&&(r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&tl(r)));break;case 12:if(f&2048){Lr(r,s,i,c),r=s.stateNode;try{var p=s.memoizedProps,S=p.id,T=p.onPostCommit;typeof T=="function"&&T(S,s.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(M){bt(s,s.return,M)}}else Lr(r,s,i,c);break;case 13:Lr(r,s,i,c);break;case 23:break;case 22:p=s.stateNode,S=s.alternate,s.memoizedState!==null?p._visibility&2?Lr(r,s,i,c):yl(r,s):p._visibility&2?Lr(r,s,i,c):(p._visibility|=2,Li(r,s,i,c,(s.subtreeFlags&10256)!==0)),f&2048&&lm(S,s);break;case 24:Lr(r,s,i,c),f&2048&&cm(s.alternate,s);break;default:Lr(r,s,i,c)}}function Li(r,s,i,c,f){for(f=f&&(s.subtreeFlags&10256)!==0,s=s.child;s!==null;){var p=r,S=s,T=i,M=c,K=S.flags;switch(S.tag){case 0:case 11:case 15:Li(p,S,T,M,f),pl(8,S);break;case 23:break;case 22:var ee=S.stateNode;S.memoizedState!==null?ee._visibility&2?Li(p,S,T,M,f):yl(p,S):(ee._visibility|=2,Li(p,S,T,M,f)),f&&K&2048&&lm(S.alternate,S);break;case 24:Li(p,S,T,M,f),f&&K&2048&&cm(S.alternate,S);break;default:Li(p,S,T,M,f)}s=s.sibling}}function yl(r,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var i=r,c=s,f=c.flags;switch(c.tag){case 22:yl(i,c),f&2048&&lm(c.alternate,c);break;case 24:yl(i,c),f&2048&&cm(c.alternate,c);break;default:yl(i,c)}s=s.sibling}}var vl=8192;function zi(r){if(r.subtreeFlags&vl)for(r=r.child;r!==null;)n0(r),r=r.sibling}function n0(r){switch(r.tag){case 26:zi(r),r.flags&vl&&r.memoizedState!==null&&Lk(Sr,r.memoizedState,r.memoizedProps);break;case 5:zi(r);break;case 3:case 4:var s=Sr;Sr=Iu(r.stateNode.containerInfo),zi(r),Sr=s;break;case 22:r.memoizedState===null&&(s=r.alternate,s!==null&&s.memoizedState!==null?(s=vl,vl=16777216,zi(r),vl=s):zi(r));break;default:zi(r)}}function r0(r){var s=r.alternate;if(s!==null&&(r=s.child,r!==null)){s.child=null;do s=r.sibling,r.sibling=null,r=s;while(r!==null)}}function bl(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var i=0;i<s.length;i++){var c=s[i];Jt=c,a0(c,r)}r0(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)s0(r),r=r.sibling}function s0(r){switch(r.tag){case 0:case 11:case 15:bl(r),r.flags&2048&&Ps(9,r,r.return);break;case 3:bl(r);break;case 12:bl(r);break;case 22:var s=r.stateNode;r.memoizedState!==null&&s._visibility&2&&(r.return===null||r.return.tag!==13)?(s._visibility&=-3,Cu(r)):bl(r);break;default:bl(r)}}function Cu(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var i=0;i<s.length;i++){var c=s[i];Jt=c,a0(c,r)}r0(r)}for(r=r.child;r!==null;){switch(s=r,s.tag){case 0:case 11:case 15:Ps(8,s,s.return),Cu(s);break;case 22:i=s.stateNode,i._visibility&2&&(i._visibility&=-3,Cu(s));break;default:Cu(s)}r=r.sibling}}function a0(r,s){for(;Jt!==null;){var i=Jt;switch(i.tag){case 0:case 11:case 15:Ps(8,i,s);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var c=i.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:tl(i.memoizedState.cache)}if(c=i.child,c!==null)c.return=i,Jt=c;else e:for(i=r;Jt!==null;){c=Jt;var f=c.sibling,p=c.return;if(Zx(c),c===i){Jt=null;break e}if(f!==null){f.return=p,Jt=f;break e}Jt=p}}}var JN={getCacheForType:function(r){var s=bn(qt),i=s.data.get(r);return i===void 0&&(i=r(),s.data.set(r,i)),i}},ek=typeof WeakMap=="function"?WeakMap:Map,mt=0,wt=null,Je=null,st=0,pt=0,Kn=null,Is=!1,Ui=!1,um=!1,ls=0,Mt=0,Ls=0,Ma=0,dm=0,fr=0,Vi=0,xl=null,zn=null,fm=!1,hm=0,Eu=1/0,Tu=null,zs=null,cn=0,Us=null,Fi=null,Bi=0,mm=0,pm=null,i0=null,wl=0,gm=null;function Qn(){if((mt&2)!==0&&st!==0)return st&-st;if(D.T!==null){var r=ki;return r!==0?r:_m()}return Uo()}function o0(){fr===0&&(fr=(st&536870912)===0||dt?Me():536870912);var r=dr.current;return r!==null&&(r.flags|=32),fr}function Yn(r,s,i){(r===wt&&(pt===2||pt===9)||r.cancelPendingCommit!==null)&&($i(r,0),Vs(r,st,fr,!1)),En(r,i),((mt&2)===0||r!==wt)&&(r===wt&&((mt&2)===0&&(Ma|=i),Mt===4&&Vs(r,st,fr,!1)),zr(r))}function l0(r,s,i){if((mt&6)!==0)throw Error(a(327));var c=!i&&(s&124)===0&&(s&r.expiredLanes)===0||me(r,s),f=c?rk(r,s):bm(r,s,!0),p=c;do{if(f===0){Ui&&!c&&Vs(r,s,0,!1);break}else{if(i=r.current.alternate,p&&!tk(i)){f=bm(r,s,!1),p=!1;continue}if(f===2){if(p=s,r.errorRecoveryDisabledLanes&p)var S=0;else S=r.pendingLanes&-536870913,S=S!==0?S:S&536870912?536870912:0;if(S!==0){s=S;e:{var T=r;f=xl;var M=T.current.memoizedState.isDehydrated;if(M&&($i(T,S).flags|=256),S=bm(T,S,!1),S!==2){if(um&&!M){T.errorRecoveryDisabledLanes|=p,Ma|=p,f=4;break e}p=zn,zn=f,p!==null&&(zn===null?zn=p:zn.push.apply(zn,p))}f=S}if(p=!1,f!==2)continue}}if(f===1){$i(r,0),Vs(r,s,0,!0);break}e:{switch(c=r,p=f,p){case 0:case 1:throw Error(a(345));case 4:if((s&4194048)!==s)break;case 6:Vs(c,s,fr,!Is);break e;case 2:zn=null;break;case 3:case 5:break;default:throw Error(a(329))}if((s&62914560)===s&&(f=hm+300-Zt(),10<f)){if(Vs(c,s,fr,!Is),we(c,0,!0)!==0)break e;c.timeoutHandle=L0(c0.bind(null,c,i,zn,Tu,fm,s,fr,Ma,Vi,Is,p,2,-0,0),f);break e}c0(c,i,zn,Tu,fm,s,fr,Ma,Vi,Is,p,0,-0,0)}}break}while(!0);zr(r)}function c0(r,s,i,c,f,p,S,T,M,K,ee,re,Q,Z){if(r.timeoutHandle=-1,re=s.subtreeFlags,(re&8192||(re&16785408)===16785408)&&(Nl={stylesheets:null,count:0,unsuspend:Ik},n0(s),re=zk(),re!==null)){r.cancelPendingCommit=re(g0.bind(null,r,s,p,i,c,f,S,T,M,ee,1,Q,Z)),Vs(r,p,S,!K);return}g0(r,s,p,i,c,f,S,T,M)}function tk(r){for(var s=r;;){var i=s.tag;if((i===0||i===11||i===15)&&s.flags&16384&&(i=s.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var c=0;c<i.length;c++){var f=i[c],p=f.getSnapshot;f=f.value;try{if(!$n(p(),f))return!1}catch{return!1}}if(i=s.child,s.subtreeFlags&16384&&i!==null)i.return=s,s=i;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function Vs(r,s,i,c){s&=~dm,s&=~Ma,r.suspendedLanes|=s,r.pingedLanes&=~s,c&&(r.warmLanes|=s),c=r.expirationTimes;for(var f=s;0<f;){var p=31-Pn(f),S=1<<p;c[p]=-1,f&=~S}i!==0&&_s(r,i,s)}function ju(){return(mt&6)===0?(Sl(0),!1):!0}function ym(){if(Je!==null){if(pt===0)var r=Je.return;else r=Je,es=Na=null,Mh(r),Di=null,fl=0,r=Je;for(;r!==null;)Bx(r.alternate,r),r=r.return;Je=null}}function $i(r,s){var i=r.timeoutHandle;i!==-1&&(r.timeoutHandle=-1,bk(i)),i=r.cancelPendingCommit,i!==null&&(r.cancelPendingCommit=null,i()),ym(),wt=r,Je=i=Wr(r.current,null),st=s,pt=0,Kn=null,Is=!1,Ui=me(r,s),um=!1,Vi=fr=dm=Ma=Ls=Mt=0,zn=xl=null,fm=!1,(s&8)!==0&&(s|=s&32);var c=r.entangledLanes;if(c!==0)for(r=r.entanglements,c&=s;0<c;){var f=31-Pn(c),p=1<<f;s|=r[f],c&=~p}return ls=s,Yc(),i}function u0(r,s){Ge=null,D.H=mu,s===rl||s===su?(s=jb(),pt=3):s===Cb?(s=jb(),pt=4):pt=s===Nx?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,Kn=s,Je===null&&(Mt=1,bu(r,or(s,r.current)))}function d0(){var r=D.H;return D.H=mu,r===null?mu:r}function f0(){var r=D.A;return D.A=JN,r}function vm(){Mt=4,Is||(st&4194048)!==st&&dr.current!==null||(Ui=!0),(Ls&134217727)===0&&(Ma&134217727)===0||wt===null||Vs(wt,st,fr,!1)}function bm(r,s,i){var c=mt;mt|=2;var f=d0(),p=f0();(wt!==r||st!==s)&&(Tu=null,$i(r,s)),s=!1;var S=Mt;e:do try{if(pt!==0&&Je!==null){var T=Je,M=Kn;switch(pt){case 8:ym(),S=6;break e;case 3:case 2:case 9:case 6:dr.current===null&&(s=!0);var K=pt;if(pt=0,Kn=null,Hi(r,T,M,K),i&&Ui){S=0;break e}break;default:K=pt,pt=0,Kn=null,Hi(r,T,M,K)}}nk(),S=Mt;break}catch(ee){u0(r,ee)}while(!0);return s&&r.shellSuspendCounter++,es=Na=null,mt=c,D.H=f,D.A=p,Je===null&&(wt=null,st=0,Yc()),S}function nk(){for(;Je!==null;)h0(Je)}function rk(r,s){var i=mt;mt|=2;var c=d0(),f=f0();wt!==r||st!==s?(Tu=null,Eu=Zt()+500,$i(r,s)):Ui=me(r,s);e:do try{if(pt!==0&&Je!==null){s=Je;var p=Kn;t:switch(pt){case 1:pt=0,Kn=null,Hi(r,s,p,1);break;case 2:case 9:if(Eb(p)){pt=0,Kn=null,m0(s);break}s=function(){pt!==2&&pt!==9||wt!==r||(pt=7),zr(r)},p.then(s,s);break e;case 3:pt=7;break e;case 4:pt=5;break e;case 7:Eb(p)?(pt=0,Kn=null,m0(s)):(pt=0,Kn=null,Hi(r,s,p,7));break;case 5:var S=null;switch(Je.tag){case 26:S=Je.memoizedState;case 5:case 27:var T=Je;if(!S||Y0(S)){pt=0,Kn=null;var M=T.sibling;if(M!==null)Je=M;else{var K=T.return;K!==null?(Je=K,Nu(K)):Je=null}break t}}pt=0,Kn=null,Hi(r,s,p,5);break;case 6:pt=0,Kn=null,Hi(r,s,p,6);break;case 8:ym(),Mt=6;break e;default:throw Error(a(462))}}sk();break}catch(ee){u0(r,ee)}while(!0);return es=Na=null,D.H=c,D.A=f,mt=i,Je!==null?0:(wt=null,st=0,Yc(),Mt)}function sk(){for(;Je!==null&&!on();)h0(Je)}function h0(r){var s=Vx(r.alternate,r,ls);r.memoizedProps=r.pendingProps,s===null?Nu(r):Je=s}function m0(r){var s=r,i=s.alternate;switch(s.tag){case 15:case 0:s=Mx(i,s,s.pendingProps,s.type,void 0,st);break;case 11:s=Mx(i,s,s.pendingProps,s.type.render,s.ref,st);break;case 5:Mh(s);default:Bx(i,s),s=Je=pb(s,ls),s=Vx(i,s,ls)}r.memoizedProps=r.pendingProps,s===null?Nu(r):Je=s}function Hi(r,s,i,c){es=Na=null,Mh(s),Di=null,fl=0;var f=s.return;try{if(KN(r,f,s,i,st)){Mt=1,bu(r,or(i,r.current)),Je=null;return}}catch(p){if(f!==null)throw Je=f,p;Mt=1,bu(r,or(i,r.current)),Je=null;return}s.flags&32768?(dt||c===1?r=!0:Ui||(st&536870912)!==0?r=!1:(Is=r=!0,(c===2||c===9||c===3||c===6)&&(c=dr.current,c!==null&&c.tag===13&&(c.flags|=16384))),p0(s,r)):Nu(s)}function Nu(r){var s=r;do{if((s.flags&32768)!==0){p0(s,Is);return}r=s.return;var i=YN(s.alternate,s,ls);if(i!==null){Je=i;return}if(s=s.sibling,s!==null){Je=s;return}Je=s=r}while(s!==null);Mt===0&&(Mt=5)}function p0(r,s){do{var i=ZN(r.alternate,r);if(i!==null){i.flags&=32767,Je=i;return}if(i=r.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!s&&(r=r.sibling,r!==null)){Je=r;return}Je=r=i}while(r!==null);Mt=6,Je=null}function g0(r,s,i,c,f,p,S,T,M){r.cancelPendingCommit=null;do ku();while(cn!==0);if((mt&6)!==0)throw Error(a(327));if(s!==null){if(s===r.current)throw Error(a(177));if(p=s.lanes|s.childLanes,p|=ch,xr(r,i,p,S,T,M),r===wt&&(Je=wt=null,st=0),Fi=s,Us=r,Bi=i,mm=p,pm=f,i0=c,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,lk(ui,function(){return w0(),null})):(r.callbackNode=null,r.callbackPriority=0),c=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||c){c=D.T,D.T=null,f=q.p,q.p=2,S=mt,mt|=4;try{WN(r,s,i)}finally{mt=S,q.p=f,D.T=c}}cn=1,y0(),v0(),b0()}}function y0(){if(cn===1){cn=0;var r=Us,s=Fi,i=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var c=q.p;q.p=2;var f=mt;mt|=4;try{Jx(s,r);var p=Om,S=ab(r.containerInfo),T=p.focusedElem,M=p.selectionRange;if(S!==T&&T&&T.ownerDocument&&sb(T.ownerDocument.documentElement,T)){if(M!==null&&sh(T)){var K=M.start,ee=M.end;if(ee===void 0&&(ee=K),"selectionStart"in T)T.selectionStart=K,T.selectionEnd=Math.min(ee,T.value.length);else{var re=T.ownerDocument||document,Q=re&&re.defaultView||window;if(Q.getSelection){var Z=Q.getSelection(),Ue=T.textContent.length,De=Math.min(M.start,Ue),vt=M.end===void 0?De:Math.min(M.end,Ue);!Z.extend&&De>vt&&(S=vt,vt=De,De=S);var B=rb(T,De),z=rb(T,vt);if(B&&z&&(Z.rangeCount!==1||Z.anchorNode!==B.node||Z.anchorOffset!==B.offset||Z.focusNode!==z.node||Z.focusOffset!==z.offset)){var G=re.createRange();G.setStart(B.node,B.offset),Z.removeAllRanges(),De>vt?(Z.addRange(G),Z.extend(z.node,z.offset)):(G.setEnd(z.node,z.offset),Z.addRange(G))}}}}for(re=[],Z=T;Z=Z.parentNode;)Z.nodeType===1&&re.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;T<re.length;T++){var ne=re[T];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}Fu=!!Am,Om=Am=null}finally{mt=f,q.p=c,D.T=i}}r.current=s,cn=2}}function v0(){if(cn===2){cn=0;var r=Us,s=Fi,i=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var c=q.p;q.p=2;var f=mt;mt|=4;try{Yx(r,s.alternate,s)}finally{mt=f,q.p=c,D.T=i}}cn=3}}function b0(){if(cn===4||cn===3){cn=0,ya();var r=Us,s=Fi,i=Bi,c=i0;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?cn=5:(cn=0,Fi=Us=null,x0(r,r.pendingLanes));var f=r.pendingLanes;if(f===0&&(zs=null),zo(i),s=s.stateNode,Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(va,s,void 0,(s.current.flags&128)===128)}catch{}if(c!==null){s=D.T,f=q.p,q.p=2,D.T=null;try{for(var p=r.onRecoverableError,S=0;S<c.length;S++){var T=c[S];p(T.value,{componentStack:T.stack})}}finally{D.T=s,q.p=f}}(Bi&3)!==0&&ku(),zr(r),f=r.pendingLanes,(i&4194090)!==0&&(f&42)!==0?r===gm?wl++:(wl=0,gm=r):wl=0,Sl(0)}}function x0(r,s){(r.pooledCacheLanes&=s)===0&&(s=r.pooledCache,s!=null&&(r.pooledCache=null,tl(s)))}function ku(r){return y0(),v0(),b0(),w0()}function w0(){if(cn!==5)return!1;var r=Us,s=mm;mm=0;var i=zo(Bi),c=D.T,f=q.p;try{q.p=32>i?32:i,D.T=null,i=pm,pm=null;var p=Us,S=Bi;if(cn=0,Fi=Us=null,Bi=0,(mt&6)!==0)throw Error(a(331));var T=mt;if(mt|=4,s0(p.current),t0(p,p.current,S,i),mt=T,Sl(0,!1),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(va,p)}catch{}return!0}finally{q.p=f,D.T=c,x0(r,s)}}function S0(r,s,i){s=or(i,s),s=Qh(r.stateNode,s,2),r=ks(r,s,2),r!==null&&(En(r,2),zr(r))}function bt(r,s,i){if(r.tag===3)S0(r,r,i);else for(;s!==null;){if(s.tag===3){S0(s,r,i);break}else if(s.tag===1){var c=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(zs===null||!zs.has(c))){r=or(i,r),i=Tx(2),c=ks(s,i,2),c!==null&&(jx(i,c,s,r),En(c,2),zr(c));break}}s=s.return}}function xm(r,s,i){var c=r.pingCache;if(c===null){c=r.pingCache=new ek;var f=new Set;c.set(s,f)}else f=c.get(s),f===void 0&&(f=new Set,c.set(s,f));f.has(i)||(um=!0,f.add(i),r=ak.bind(null,r,s,i),s.then(r,r))}function ak(r,s,i){var c=r.pingCache;c!==null&&c.delete(s),r.pingedLanes|=r.suspendedLanes&i,r.warmLanes&=~i,wt===r&&(st&i)===i&&(Mt===4||Mt===3&&(st&62914560)===st&&300>Zt()-hm?(mt&2)===0&&$i(r,0):dm|=i,Vi===st&&(Vi=0)),zr(r)}function _0(r,s){s===0&&(s=ut()),r=Ei(r,s),r!==null&&(En(r,s),zr(r))}function ik(r){var s=r.memoizedState,i=0;s!==null&&(i=s.retryLane),_0(r,i)}function ok(r,s){var i=0;switch(r.tag){case 13:var c=r.stateNode,f=r.memoizedState;f!==null&&(i=f.retryLane);break;case 19:c=r.stateNode;break;case 22:c=r.stateNode._retryCache;break;default:throw Error(a(314))}c!==null&&c.delete(s),_0(r,i)}function lk(r,s){return at(r,s)}var Au=null,qi=null,wm=!1,Ou=!1,Sm=!1,Da=0;function zr(r){r!==qi&&r.next===null&&(qi===null?Au=qi=r:qi=qi.next=r),Ou=!0,wm||(wm=!0,uk())}function Sl(r,s){if(!Sm&&Ou){Sm=!0;do for(var i=!1,c=Au;c!==null;){if(r!==0){var f=c.pendingLanes;if(f===0)var p=0;else{var S=c.suspendedLanes,T=c.pingedLanes;p=(1<<31-Pn(42|r)+1)-1,p&=f&~(S&~T),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(i=!0,j0(c,p))}else p=st,p=we(c,c===wt?p:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(p&3)===0||me(c,p)||(i=!0,j0(c,p));c=c.next}while(i);Sm=!1}}function ck(){C0()}function C0(){Ou=wm=!1;var r=0;Da!==0&&(vk()&&(r=Da),Da=0);for(var s=Zt(),i=null,c=Au;c!==null;){var f=c.next,p=E0(c,s);p===0?(c.next=null,i===null?Au=f:i.next=f,f===null&&(qi=i)):(i=c,(r!==0||(p&3)!==0)&&(Ou=!0)),c=f}Sl(r)}function E0(r,s){for(var i=r.suspendedLanes,c=r.pingedLanes,f=r.expirationTimes,p=r.pendingLanes&-62914561;0<p;){var S=31-Pn(p),T=1<<S,M=f[S];M===-1?((T&i)===0||(T&c)!==0)&&(f[S]=Se(T,s)):M<=s&&(r.expiredLanes|=T),p&=~T}if(s=wt,i=st,i=we(r,r===s?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c=r.callbackNode,i===0||r===s&&(pt===2||pt===9)||r.cancelPendingCommit!==null)return c!==null&&c!==null&&zt(c),r.callbackNode=null,r.callbackPriority=0;if((i&3)===0||me(r,i)){if(s=i&-i,s===r.callbackPriority)return s;switch(c!==null&&zt(c),zo(i)){case 2:case 8:i=ci;break;case 32:i=ui;break;case 268435456:i=Pc;break;default:i=ui}return c=T0.bind(null,r),i=at(i,c),r.callbackPriority=s,r.callbackNode=i,s}return c!==null&&c!==null&&zt(c),r.callbackPriority=2,r.callbackNode=null,2}function T0(r,s){if(cn!==0&&cn!==5)return r.callbackNode=null,r.callbackPriority=0,null;var i=r.callbackNode;if(ku()&&r.callbackNode!==i)return null;var c=st;return c=we(r,r===wt?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),c===0?null:(l0(r,c,s),E0(r,Zt()),r.callbackNode!=null&&r.callbackNode===i?T0.bind(null,r):null)}function j0(r,s){if(ku())return null;l0(r,s,!0)}function uk(){xk(function(){(mt&6)!==0?at(li,ck):C0()})}function _m(){return Da===0&&(Da=Me()),Da}function N0(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Bc(""+r)}function k0(r,s){var i=s.ownerDocument.createElement("input");return i.name=s.name,i.value=s.value,r.id&&i.setAttribute("form",r.id),s.parentNode.insertBefore(i,s),r=new FormData(r),i.parentNode.removeChild(i),r}function dk(r,s,i,c,f){if(s==="submit"&&i&&i.stateNode===f){var p=N0((f[Mn]||null).action),S=c.submitter;S&&(s=(s=S[Mn]||null)?N0(s.formAction):S.getAttribute("formAction"),s!==null&&(p=s,S=null));var T=new Gc("action","action",null,c,f);r.push({event:T,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Da!==0){var M=S?k0(f,S):new FormData(f);$h(i,{pending:!0,data:M,method:f.method,action:p},null,M)}}else typeof p=="function"&&(T.preventDefault(),M=S?k0(f,S):new FormData(f),$h(i,{pending:!0,data:M,method:f.method,action:p},p,M))},currentTarget:f}]})}}for(var Cm=0;Cm<lh.length;Cm++){var Em=lh[Cm],fk=Em.toLowerCase(),hk=Em[0].toUpperCase()+Em.slice(1);wr(fk,"on"+hk)}wr(lb,"onAnimationEnd"),wr(cb,"onAnimationIteration"),wr(ub,"onAnimationStart"),wr("dblclick","onDoubleClick"),wr("focusin","onFocus"),wr("focusout","onBlur"),wr(AN,"onTransitionRun"),wr(ON,"onTransitionStart"),wr(RN,"onTransitionCancel"),wr(db,"onTransitionEnd"),pi("onMouseEnter",["mouseout","mouseover"]),pi("onMouseLeave",["mouseout","mouseover"]),pi("onPointerEnter",["pointerout","pointerover"]),pi("onPointerLeave",["pointerout","pointerover"]),ba("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ba("onSelect","focusout contextmenu dragend focu
9sin keydown keyup mousedown mouseup selectionchange".split(" ")),ba("onBeforeInput",["compositionend","keypress","textInput","paste"]),ba("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ba("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _l="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(" "),mk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_l));function A0(r,s){s=(s&4)!==0;for(var i=0;i<r.length;i++){var c=r[i],f=c.event;c=c.listeners;e:{var p=void 0;if(s)for(var S=c.length-1;0<=S;S--){var T=c[S],M=T.instance,K=T.currentTarget;if(T=T.listener,M!==p&&f.isPropagationStopped())break e;p=T,f.currentTarget=K;try{p(f)}catch(ee){vu(ee)}f.currentTarget=null,p=M}else for(S=0;S<c.length;S++){if(T=c[S],M=T.instance,K=T.currentTarget,T=T.listener,M!==p&&f.isPropagationStopped())break e;p=T,f.currentTarget=K;try{p(f)}catch(ee){vu(ee)}f.currentTarget=null,p=M}}}}function et(r,s){var i=s[zf];i===void 0&&(i=s[zf]=new Set);var c=r+"__bubble";i.has(c)||(O0(s,r,2,!1),i.add(c))}function Tm(r,s,i){var c=0;s&&(c|=4),O0(i,r,c,s)}var Ru="_reactListening"+Math.random().toString(36).slice(2);function jm(r){if(!r[Ru]){r[Ru]=!0,Cv.forEach(function(i){i!=="selectionchange"&&(mk.has(i)||Tm(i,!1,r),Tm(i,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[Ru]||(s[Ru]=!0,Tm("selectionchange",!1,s))}}function O0(r,s,i,c){switch(tw(s)){case 2:var f=Fk;break;case 8:f=Bk;break;default:f=Fm}i=f.bind(null,s,i,r),f=void 0,!Yf||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(f=!0),c?f!==void 0?r.addEventListener(s,i,{capture:!0,passive:f}):r.addEventListener(s,i,!0):f!==void 0?r.addEventListener(s,i,{passive:f}):r.addEventListener(s,i,!1)}function Nm(r,s,i,c,f){var p=c;if((s&1)===0&&(s&2)===0&&c!==null)e:for(;;){if(c===null)return;var S=c.tag;if(S===3||S===4){var T=c.stateNode.containerInfo;if(T===f)break;if(S===4)for(S=c.return;S!==null;){var M=S.tag;if((M===3||M===4)&&S.stateNode.containerInfo===f)return;S=S.return}for(;T!==null;){if(S=fi(T),S===null)return;if(M=S.tag,M===5||M===6||M===26||M===27){c=p=S;continue e}T=T.parentNode}}c=c.return}zv(function(){var K=p,ee=Kf(i),re=[];e:{var Q=fb.get(r);if(Q!==void 0){var Z=Gc,Ue=r;switch(r){case"keypress":if(Hc(i)===0)break e;case"keydown":case"keyup":Z=lN;break;case"focusin":Ue="focus",Z=Jf;break;case"focusout":Ue="blur",Z=Jf;break;case"beforeblur":case"afterblur":Z=Jf;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Z=Fv;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Z=Zj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Z=dN;break;case lb:case cb:case ub:Z=Jj;break;case db:Z=hN;break;case"scroll":case"scrollend":Z=Qj;break;case"wheel":Z=pN;break;case"copy":case"cut":case"paste":Z=tN;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Z=$v;break;case"toggle":case"beforetoggle":Z=yN}var De=(s&4)!==0,vt=!De&&(r==="scroll"||r==="scrollend"),B=De?Q!==null?Q+"Capture":null:Q;De=[];for(var z=K,G;z!==null;){var ne=z;if(G=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||G===null||B===null||(ne=Bo(z,B),ne!=null&&De.push(Cl(z,ne,G))),vt)break;z=z.return}0<De.length&&(Q=new Z(Q,Ue,null,i,ee),re.push({event:Q,listeners:De}))}}if((s&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",Z=r==="mouseout"||r==="pointerout",Q&&i!==Gf&&(Ue=i.relatedTarget||i.fromElement)&&(fi(Ue)||Ue[di]))break e;if((Z||Q)&&(Q=ee.window===ee?ee:(Q=ee.ownerDocument)?Q.defaultView||Q.parentWindow:window,Z?(Ue=i.relatedTarget||i.toElement,Z=K,Ue=Ue?fi(Ue):null,Ue!==null&&(vt=l(Ue),De=Ue.tag,Ue!==vt||De!==5&&De!==27&&De!==6)&&(Ue=null)):(Z=null,Ue=K),Z!==Ue)){if(De=Fv,ne="onMouseLeave",B="onMouseEnter",z="mouse",(r==="pointerout"||r==="pointerover")&&(De=$v,ne="onPointerLeave",B="onPointerEnter",z="pointer"),vt=Z==null?Q:Fo(Z),G=Ue==null?Q:Fo(Ue),Q=new De(ne,z+"leave",Z,i,ee),Q.target=vt,Q.relatedTarget=G,ne=null,fi(ee)===K&&(De=new De(B,z+"enter",Ue,i,ee),De.target=G,De.relatedTarget=vt,ne=De),vt=ne,Z&&Ue)t:{for(De=Z,B=Ue,z=0,G=De;G;G=Gi(G))z++;for(G=0,ne=B;ne;ne=Gi(ne))G++;for(;0<z-G;)De=Gi(De),z--;for(;0<G-z;)B=Gi(B),G--;for(;z--;){if(De===B||B!==null&&De===B.alternate)break t;De=Gi(De),B=Gi(B)}De=null}else De=null;Z!==null&&R0(re,Q,Z,De,!1),Ue!==null&&vt!==null&&R0(re,vt,Ue,De,!0)}}
vendor: 5,218 bytes, lines 9-10
9e:{if(Q=K?Fo(K):window,Z=Q.nodeName&&Q.nodeName.toLowerCase(),Z==="select"||Z==="input"&&Q.type==="file")var Ne=Wv;else if(Yv(Q))if(Xv)Ne=jN;else{Ne=EN;var We=CN}else Z=Q.nodeName,!Z||Z.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?K&&qf(K.elementType)&&(Ne=Wv):Ne=TN;if(Ne&&(Ne=Ne(r,K))){Zv(re,Ne,i,ee);break e}We&&We(r,Q,K),r==="focusout"&&K&&Q.type==="number"&&K.memoizedProps.value!=null&&Hf(Q,"number",Q.value)}switch(We=K?Fo(K):window,r){case"focusin":(Yv(We)||We.contentEditable==="true")&&(Si=We,ah=K,Zo=null);break;case"focusout":Zo=ah=Si=null;break;case"mousedown":ih=!0;break;case"contextmenu":case"mouseup":case"dragend":ih=!1,ib(re,i,ee);break;case"selectionchange":if(kN)break;case"keydown":case"keyup":ib(re,i,ee)}var Re;if(th)e:{switch(r){case"compositionstart":var Ie="onCompositionStart";break e;case"compositionend":Ie="onCompositionEnd";break e;case"compositionupdate":Ie="onCompositionUpdate";break e}Ie=void 0}else wi?Kv(r,i)&&(Ie="onCompositionEnd"):r==="keydown"&&i.keyCode===229&&(Ie="onCompositionStart");Ie&&(Hv&&i.locale!=="ko"&&(wi||Ie!=="onCompositionStart"?Ie==="onCompositionEnd"&&wi&&(Re=Uv()):(Es=ee,Zf="value"in Es?Es.value:Es.textContent,wi=!0)),We=Pu(K,Ie),0<We.length&&(Ie=new Bv(Ie,r,null,i,ee),re.push({event:Ie,listeners:We}),Re?Ie.data=Re:(Re=Qv(i),Re!==null&&(Ie.data=Re)))),(Re=bN?xN(r,i):wN(r,i))&&(Ie=Pu(K,"onBeforeInput"),0<Ie.length&&(We=new Bv("onBeforeInput","beforeinput",null,i,ee),re.push({event:We,listeners:Ie}),We.data=Re)),dk(re,r,K,i,ee)}A0(re,s)})}function Cl(r,s,i){return{instance:r,listener:s,currentTarget:i}}function Pu(r,s){for(var i=s+"Capture",c=[];r!==null;){var f=r,p=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||p===null||(f=Bo(r,i),f!=null&&c.unshift(Cl(r,f,p)),f=Bo(r,s),f!=null&&c.push(Cl(r,f,p))),r.tag===3)return c;r=r.return}return[]}function Gi(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function R0(r,s,i,c,f){for(var p=s._reactName,S=[];i!==null&&i!==c;){var T=i,M=T.alternate,K=T.stateNode;if(T=T.tag,M!==null&&M===c)break;T!==5&&T!==26&&T!==27||K===null||(M=K,f?(K=Bo(i,p),K!=null&&S.unshift(Cl(i,K,M))):f||(K=Bo(i,p),K!=null&&S.push(Cl(i,K,M)))),i=i.return}S.length!==0&&r.push({event:s,listeners:S})}var pk=/\r\n?/g,gk=/\u0000|\uFFFD/g;function P0(r){return(typeof r=="string"?r:""+r).replace(pk,` 10`).replace(gk,"")}function M0(r,s){return s=P0(s),P0(r)===s}function Mu(){}function yt(r,s,i,c,f,p){switch(i){case"children":typeof c=="string"?s==="body"||s==="textarea"&&c===""||vi(r,c):(typeof c=="number"||typeof c=="bigint")&&s!=="body"&&vi(r,""+c);break;case"className":Uc(r,"class",c);break;case"tabIndex":Uc(r,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Uc(r,i,c);break;case"style":Iv(r,c,p);break;case"data":if(s!=="object"){Uc(r,"data",c);break}case"src":case"href":if(c===""&&(s!=="a"||i!=="href")){r.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(i);break}c=Bc(""+c),r.setAttribute(i,c);break;case"action":case"formAction":if(typeof c=="function"){r.setAttribute(i,"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 p=="function"&&(i==="formAction"?(s!=="input"&&yt(r,s,"name",f.name,f,null),yt(r,s,"formEncType",f.formEncType,f,null),yt(r,s,"formMethod",f.formMethod,f,null),yt(r,s,"formTarget",f.formTarget,f,null)):(yt(r,s,"encType",f.encType,f,null),yt(r,s,"method",f.method,f,null),yt(r,s,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){r.removeAttribute(i);break}c=Bc(""+c),r.setAttribute(i,c);break;case"onClick":c!=null&&(r.onclick=Mu);break;case"onScroll":c!=null&&et("scroll",r);break;case"onScrollEnd":c!=null&&et("scrollend",r);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(i=c.__html,i!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=i}}break;case"multiple":r.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":r.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){r.removeAttribute("xlink:href");break}i=Bc(""+c),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(i,""+c):r.removeAttribute(i);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"playsInl
10ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(i,""):r.removeAttribute(i);break;case"capture":case"download":c===!0?r.setAttribute(i,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?r.setAttribute(i,c):r.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?r.setAttribute(i,c):r.removeAttribute(i);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?r.removeAttribute(i):r.setAttribute(i,c);break;case"popover":et("beforetoggle",r),et("toggle",r),zc(r,"popover",c);break;case"xlinkActuate":Yr(r,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Yr(r,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Yr(r,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Yr(r,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Yr(r,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Yr(r,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Yr(r,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Yr(r,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Yr(r,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":zc(r,"is",c);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Gj.get(i)||i,zc(r,i,c))}}function km(r,s,i,c,f,p){switch(i){case"style":Iv(r,c,p);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(a(61));if(i=c.__html,i!=null){if(f.children!=null)throw Error(a(60));r.innerHTML=i}}break;case"children":typeof c=="string"?vi(r,c):(typeof c=="number"||typeof c=="bigint")&&vi(r,""+c);break;case"onScroll":c!=null&&et("scroll",r);break;case"onScrollEnd":c!=null&&et("scrollend",r);break;case"onClick":c!=null&&(r.onclick=Mu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ev.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(f=i.endsWith("Capture"),s=i.slice(2,f?i.length-7:void 0),p=r[Mn]||null,p=p!=null?p[i]:null,typeof p=="function"&&r.removeEventListener(s,p,f),typeof c=="function")){typeof p!="function"&&p!==null&&(i in r?r[i]=null:r.hasAttribute(i)&&r.removeAttribute(i)),r.addEventListener(s,c,f);break e}i in r?r[i]=c:c===!0?r.setAttribute(i,""):zc(r,i,c)}}}function un(r,s,i){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":et("error",r),et("load",r);var c=!1,f=!1,p;for(p in i)if(i.hasOwnProperty(p)){var S=i[p];if(S!=null)switch(p){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:yt(r,s,p,S,i,null)}}f&&yt(r,s,"srcSet",i.srcSet,i,null),c&&yt(r,s,"src",i.src,i,null);return;case"input":et("invalid",r);var T=p=S=f=null,M=null,K=null;for(c in i)if(i.hasOwnProperty(c)){var ee=i[c];if(ee!=null)switch(c){case"name":f=ee;break;case"type":S=ee;break;case"checked":M=ee;break;case"defaultChecked":K=ee;break;case"value":p=ee;break;case"defaultValue":T=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(a(137,s));break;default:yt(r,s,c,ee,i,null)}}Rv(r,p,T,M,K,S,f,!1),Vc(r);return;case"select":et("invalid",r),c=S=p=null;for(f in i)if(i.hasOwnProperty(f)&&(T=i[f],T!=null))switch(f){case"value":p=T;break;case"defaultValue":S=T;break;case"multiple":c=T;default:yt(r,s,f,T,i,null)}s=p,i=S,r.multiple=!!c,s!=null?yi(r,!!c,s,!1):i!=null&&yi(r,!!c,i,!0);return;case"textarea":et("invalid",r),p=f=c=null;for(S in i)if(i.hasOwnProperty(S)&&(T=i[S],T!=null))switch(S){case"value":c=T;break;case"defaultValue":f=T;break;case"children":p=T;break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(a(91));break;default:yt(r,s,S,T,i,null)}Mv(r,c,f,p),Vc(r);return;case"option":for(M in i)i.hasOwnProperty(M)&&(c=i[M],c!=null)&&(M==="selected"?r.selected=c&&typeof c!="function"&&typeof c!="symbol":yt(r,s,M,c,i,null));return;case"dialog":et("beforetoggle",r),et("toggle",r),et("cancel",r),et("close",r);break;case"iframe":case"object":et("load",r);break;case"video":case"audio":for(c=0;c<_l.length;c++)et(_l[c],r);break;case"image":et("error",r),et("load",r);break;case"details":et("toggle",r);break;case"embed":case"source":case"link":et("error",r),et("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in i)if(i.hasOwnProperty(K)&&(c=i[K],c!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:yt(r,s,K,c,i,null)}return;default:if(qf(s)){for(ee in i)i.hasOwnProperty(ee)&&(c=i[ee],c!==void 0&&km(r,s,ee,c,i,void 0));return}}for(T in i)i.hasOwnProperty(T)&&(c=i[T],c!=null&&yt(r,s,T,c,i,null))}function yk(r,s,i,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,p=null,S=null,T=null,M=null,K=null,ee=null;for(Z in i){var re=i[Z];if(i.hasOwnProperty(Z)&&re!=null)switch(Z){case"checked":break;case"value":break;case"defaultValue":M=re;default:c.hasOwnProperty(Z)||yt(r,s,Z,null,c,re)}}for(var Q in c){var Z=c[Q];if(re=i[Q],c.hasOwnProperty(Q)&&(Z!=null||re!=null))switch(Q){case"type":p=Z;break;case"name":f=Z;break;case"checked":K=Z;break;case"defaultChecked":ee=Z;break;case"value":S=Z;break;case"defaultValue":T=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(a(137,s));break;default:Z!==re&&yt(r,s,Q,Z,c,re)}}$f(r,S,T,M,K,ee,p,f);return;case"select":Z=S=T=Q=null;for(p in i)if(M=i[p],i.hasOwnProperty(p)&&M!=null)switch(p){case"value":break;case"multiple":Z=M;default:c.hasOwnProperty(p)||yt(r,s,p,null,c,M)}for(f in c)if(p=c[f],M=i[f],c.hasOwnProperty(f)&&(p!=null||M!=null))switch(f){case"value":Q=p;break;case"defaultValue":T=p;break;case"multiple":S=p;
vendor: 9,699 bytes, line 10
10default:p!==M&&yt(r,s,f,p,c,M)}s=T,i=S,c=Z,Q!=null?yi(r,!!i,Q,!1):!!c!=!!i&&(s!=null?yi(r,!!i,s,!0):yi(r,!!i,i?[]:"",!1));return;case"textarea":Z=Q=null;for(T in i)if(f=i[T],i.hasOwnProperty(T)&&f!=null&&!c.hasOwnProperty(T))switch(T){case"value":break;case"children":break;default:yt(r,s,T,null,c,f)}for(S in c)if(f=c[S],p=i[S],c.hasOwnProperty(S)&&(f!=null||p!=null))switch(S){case"value":Q=f;break;case"defaultValue":Z=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(a(91));break;default:f!==p&&yt(r,s,S,f,c,p)}Pv(r,Q,Z);return;case"option":for(var Ue in i)Q=i[Ue],i.hasOwnProperty(Ue)&&Q!=null&&!c.hasOwnProperty(Ue)&&(Ue==="selected"?r.selected=!1:yt(r,s,Ue,null,c,Q));for(M in c)Q=c[M],Z=i[M],c.hasOwnProperty(M)&&Q!==Z&&(Q!=null||Z!=null)&&(M==="selected"?r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol":yt(r,s,M,Q,c,Z));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 De in i)Q=i[De],i.hasOwnProperty(De)&&Q!=null&&!c.hasOwnProperty(De)&&yt(r,s,De,null,c,Q);for(K in c)if(Q=c[K],Z=i[K],c.hasOwnProperty(K)&&Q!==Z&&(Q!=null||Z!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(a(137,s));break;default:yt(r,s,K,Q,c,Z)}return;default:if(qf(s)){for(var vt in i)Q=i[vt],i.hasOwnProperty(vt)&&Q!==void 0&&!c.hasOwnProperty(vt)&&km(r,s,vt,void 0,c,Q);for(ee in c)Q=c[ee],Z=i[ee],!c.hasOwnProperty(ee)||Q===Z||Q===void 0&&Z===void 0||km(r,s,ee,Q,c,Z);return}}for(var B in i)Q=i[B],i.hasOwnProperty(B)&&Q!=null&&!c.hasOwnProperty(B)&&yt(r,s,B,null,c,Q);for(re in c)Q=c[re],Z=i[re],!c.hasOwnProperty(re)||Q===Z||Q==null&&Z==null||yt(r,s,re,Q,c,Z)}var Am=null,Om=null;function Du(r){return r.nodeType===9?r:r.ownerDocument}function D0(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function I0(r,s){if(r===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&s==="foreignObject"?0:r}function Rm(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var Pm=null;function vk(){var r=window.event;return r&&r.type==="popstate"?r===Pm?!1:(Pm=r,!0):(Pm=null,!1)}var L0=typeof setTimeout=="function"?setTimeout:void 0,bk=typeof clearTimeout=="function"?clearTimeout:void 0,z0=typeof Promise=="function"?Promise:void 0,xk=typeof queueMicrotask=="function"?queueMicrotask:typeof z0<"u"?function(r){return z0.resolve(null).then(r).catch(wk)}:L0;function wk(r){setTimeout(function(){throw r})}function Fs(r){return r==="head"}function U0(r,s){var i=s,c=0,f=0;do{var p=i.nextSibling;if(r.removeChild(i),p&&p.nodeType===8)if(i=p.data,i==="/$"){if(0<c&&8>c){i=c;var S=r.ownerDocument;if(i&1&&El(S.documentElement),i&2&&El(S.body),i&4)for(i=S.head,El(i),S=i.firstChild;S;){var T=S.nextSibling,M=S.nodeName;S[Vo]||M==="SCRIPT"||M==="STYLE"||M==="LINK"&&S.rel.toLowerCase()==="stylesheet"||i.removeChild(S),S=T}}if(f===0){r.removeChild(p),Pl(s);return}f--}else i==="$"||i==="$?"||i==="$!"?f++:c=i.charCodeAt(0)-48;else c=0;i=p}while(i);Pl(s)}function Mm(r){var s=r.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var i=s;switch(s=s.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Mm(i),Uf(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}r.removeChild(i)}}function Sk(r,s,i,c){for(;r.nodeType===1;){var f=i;if(r.nodeName.toLowerCase()!==s.toLowerCase()){if(!c&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(c){if(!r[Vo])switch(s){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(p=r.getAttribute("rel"),p==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(p!==f.rel||r.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||r.getAttribute("title")!==(f.title==null?null:f.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(p=r.getAttribute("src"),(p!==(f.src==null?null:f.src)||r.getAttribute("type")!==(f.type==null?null:f.type)||r.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&p&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(s==="input"&&r.type==="hidden"){var p=f.name==null?null:""+f.name;if(f.type==="hidden"&&r.getAttribute("name")===p)return r}else return r;if(r=_r(r.nextSibling),r===null)break}return null}function _k(r,s,i){if(s==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!i||(r=_r(r.nextSibling),r===null))return null;return r}function Dm(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState==="complete"}function Ck(r,s){var i=r.ownerDocument;if(r.data!=="$?"||i.readyState==="complete")s();else{var c=function(){s(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),r._reactRetry=c}}function _r(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?"||s==="F!"||s==="F")break;if(s==="/$")return null}}return r}var Im=null;function V0(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var i=r.data;if(i==="$"||i==="$!"||i==="$?"){if(s===0)return r;s--}else i==="/$"&&s++}r=r.previousSibling}return null}function F0(r,s,i){switch(s=Du(i),r){case"html":if(r=s.documentElement,!r)throw Error(a(452));return r;case"head":if(r=s.head,!r)throw Error(a(453));return r;case"body":if(r=s.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function El(r){for(var s=r.attributes;s.length;)r.removeAttributeNode(s[0]);Uf(r)}var hr=new Map,B0=new Set;function Iu(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var cs=q.d;q.d={f:Ek,r:Tk,D:jk,C:Nk,L:kk,m:Ak,X:Rk,S:Ok,M:Pk};function Ek(){var r=cs.f(),s=ju();return r||s}function Tk(r){var s=hi(r);s!==null&&s.tag===5&&s.type==="form"?lx(s):cs.r(r)}var Ki=typeof document>"u"?null:document;function $0(r,s,i){var c=Ki;if(c&&typeof s=="string"&&s){var f=ir(s);f='link[rel="'+r+'"][href="'+f+'"]',typeof i=="string"&&(f+='[crossorigin="'+i+'"]'),B0.has(f)||(B0.add(f),r={rel:r,crossOrigin:i,href:s},c.querySelector(f)===null&&(s=c.createElement("link"),un(s,"link",r),Wt(s),c.head.appendChild(s)))}}function jk(r){cs.D(r),$0("dns-prefetch",r,null)}function Nk(r,s){cs.C(r,s),$0("preconnect",r,s)}function kk(r,s,i){cs.L(r,s,i);var c=Ki;if(c&&r&&s){var f='link[rel="preload"][as="'+ir(s)+'"]';s==="image"&&i&&i.imageSrcSet?(f+='[imagesrcset="'+ir(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(f+='[imagesizes="'+ir(i.imageSizes)+'"]')):f+='[href="'+ir(r)+'"]';var p=f;switch(s){case"style":p=Qi(r);break;case"script":p=Yi(r)}hr.has(p)||(r=y({rel:"preload",href:s==="image"&&i&&i.imageSrcSet?void 0:r,as:s},i),hr.set(p,r),c.querySelector(f)!==null||s==="style"&&c.querySelector(Tl(p))||s==="script"&&c.querySelector(jl(p))||(s=c.createElement("link"),un(s,"link",r),Wt(s),c.head.appendChild(s)))}}function Ak(r,s){cs.m(r,s);var i=Ki;if(i&&r){var c=s&&typeof s.as=="string"?s.as:"script",f='link[rel="modulepreload"][as="'+ir(c)+'"][href="'+ir(r)+'"]',p=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Yi(r)}if(!hr.has(p)&&(r=y({rel:"modulepreload",href:r},s),hr.set(p,r),i.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(jl(p)))return}c=i.createElement("link"),un(c,"link",r),Wt(c),i.head.appendChild(c)}}}function Ok(r,s,i){cs.S(r,s,i);var c=Ki;if(c&&r){var f=mi(c).hoistableStyles,p=Qi(r);s=s||"default";var S=f.get(p);if(!S){var T={loading:0,preload:null};if(S=c.querySelector(Tl(p)))T.loading=5;else{r=y({rel:"stylesheet",href:r,"data-precedence":s},i),(i=hr.get(p))&&Lm(r,i);var M=S=c.createElement("link");Wt(M),un(M,"link",r),M._p=new Promise(function(K,ee){M.onload=K,M.onerror=ee}),M.addEventListener("load",function(){T.loading|=1}),M.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Lu(S,s,c)}S={type:"stylesheet",instance:S,count:1,state:T},f.set(p,S)}}}function Rk(r,s){cs.X(r,s);var i=Ki;if(i&&r){var c=mi(i).hoistableScripts,f=Yi(r),p=c.get(f);p||(p=i.querySelector(jl(f)),p||(r=y({src:r,async:!0},s),(s=hr.get(f))&&zm(r,s),p=i.createElement("script"),Wt(p),un(p,"link",r),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(f,p))}}function Pk(r,s){cs.M(r,s);var i=Ki;if(i&&r){var c=mi(i).hoistableScripts,f=Yi(r),p=c.get(f);p||(p=i.querySelector(jl(f)),p||(r=y({src:r,async:!0,type:"module"},s),(s=hr.get(f))&&zm(r,s),p=i.createElement("script"),Wt(p),un(p,"link",r),i.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},c.set(f,p))}}function H0(r,s,i,c){var f=(f=ye.current)?Iu(f):null;if(!f)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(s=Qi(i.href),i=mi(f).hoistableStyles,c=i.get(s),c||(c={type:"style",instance:null,count:0,state:null},i.set(s,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){r=Qi(i.href);var p=mi(f).hoistableStyles,S=p.get(r);if(S||(f=f.ownerDocument||f,S={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}}
vendor: 4,232 bytes, line 10
10,p.set(r,S),(p=f.querySelector(Tl(r)))&&!p._p&&(S.instance=p,S.state.loading=5),hr.has(r)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},hr.set(r,i),p||Mk(f,r,i,S.state))),s&&c===null)throw Error(a(528,""));return S}if(s&&c!==null)throw Error(a(529,""));return null;case"script":return s=i.async,i=i.src,typeof i=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=Yi(i),i=mi(f).hoistableScripts,c=i.get(s),c||(c={type:"script",instance:null,count:0,state:null},i.set(s,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function Qi(r){return'href="'+ir(r)+'"'}function Tl(r){return'link[rel="stylesheet"]['+r+"]"}function q0(r){return y({},r,{"data-precedence":r.precedence,precedence:null})}function Mk(r,s,i,c){r.querySelector('link[rel="preload"][as="style"]['+s+"]")?c.loading=1:(s=r.createElement("link"),c.preload=s,s.addEventListener("load",function(){return c.loading|=1}),s.addEventListener("error",function(){return c.loading|=2}),un(s,"link",i),Wt(s),r.head.appendChild(s))}function Yi(r){return'[src="'+ir(r)+'"]'}function jl(r){return"script[async]"+r}function G0(r,s,i){if(s.count++,s.instance===null)switch(s.type){case"style":var c=r.querySelector('style[data-href~="'+ir(i.href)+'"]');if(c)return s.instance=c,Wt(c),c;var f=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return c=(r.ownerDocument||r).createElement("style"),Wt(c),un(c,"style",f),Lu(c,i.precedence,r),s.instance=c;case"stylesheet":f=Qi(i.href);var p=r.querySelector(Tl(f));if(p)return s.state.loading|=4,s.instance=p,Wt(p),p;c=q0(i),(f=hr.get(f))&&Lm(c,f),p=(r.ownerDocument||r).createElement("link"),Wt(p);var S=p;return S._p=new Promise(function(T,M){S.onload=T,S.onerror=M}),un(p,"link",c),s.state.loading|=4,Lu(p,i.precedence,r),s.instance=p;case"script":return p=Yi(i.src),(f=r.querySelector(jl(p)))?(s.instance=f,Wt(f),f):(c=i,(f=hr.get(p))&&(c=y({},i),zm(c,f)),r=r.ownerDocument||r,f=r.createElement("script"),Wt(f),un(f,"link",c),r.head.appendChild(f),s.instance=f);case"void":return null;default:throw Error(a(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(c=s.instance,s.state.loading|=4,Lu(c,i.precedence,r));return s.instance}function Lu(r,s,i){for(var c=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,p=f,S=0;S<c.length;S++){var T=c[S];if(T.dataset.precedence===s)p=T;else if(p!==f)break}p?p.parentNode.insertBefore(r,p.nextSibling):(s=i.nodeType===9?i.head:i,s.insertBefore(r,s.firstChild))}function Lm(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.title==null&&(r.title=s.title)}function zm(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.integrity==null&&(r.integrity=s.integrity)}var zu=null;function K0(r,s,i){if(zu===null){var c=new Map,f=zu=new Map;f.set(i,c)}else f=zu,c=f.get(i),c||(c=new Map,f.set(i,c));if(c.has(r))return c;for(c.set(r,null),i=i.getElementsByTagName(r),f=0;f<i.length;f++){var p=i[f];if(!(p[Vo]||p[vn]||r==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var S=p.getAttribute(s)||"";S=r+S;var T=c.get(S);T?T.push(p):c.set(S,[p])}}return c}function Q0(r,s,i){r=r.ownerDocument||r,r.head.insertBefore(i,s==="title"?r.querySelector("head > title"):null)}function Dk(r,s,i){if(i===1||s.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;return s.rel==="stylesheet"?(r=s.disabled,typeof s.precedence=="string"&&r==null):!0;case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function Y0(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}var Nl=null;function Ik(){}function Lk(r,s,i){if(Nl===null)throw Error(a(475));var c=Nl;
vendor: 10,132 bytes, line 10
10if(s.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var f=Qi(i.href),p=r.querySelector(Tl(f));if(p){r=p._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(c.count++,c=Uu.bind(c),r.then(c,c)),s.state.loading|=4,s.instance=p,Wt(p);return}p=r.ownerDocument||r,i=q0(i),(f=hr.get(f))&&Lm(i,f),p=p.createElement("link"),Wt(p);var S=p;S._p=new Promise(function(T,M){S.onload=T,S.onerror=M}),un(p,"link",i),s.instance=p}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(s,r),(r=s.state.preload)&&(s.state.loading&3)===0&&(c.count++,s=Uu.bind(c),r.addEventListener("load",s),r.addEventListener("error",s))}}function zk(){if(Nl===null)throw Error(a(475));var r=Nl;return r.stylesheets&&r.count===0&&Um(r,r.stylesheets),0<r.count?function(s){var i=setTimeout(function(){if(r.stylesheets&&Um(r,r.stylesheets),r.unsuspend){var c=r.unsuspend;r.unsuspend=null,c()}},6e4);return r.unsuspend=s,function(){r.unsuspend=null,clearTimeout(i)}}:null}function Uu(){if(this.count--,this.count===0){if(this.stylesheets)Um(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var Vu=null;function Um(r,s){r.stylesheets=null,r.unsuspend!==null&&(r.count++,Vu=new Map,s.forEach(Uk,r),Vu=null,Uu.call(r))}function Uk(r,s){if(!(s.state.loading&4)){var i=Vu.get(r);if(i)var c=i.get(null);else{i=new Map,Vu.set(r,i);for(var f=r.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<f.length;p++){var S=f[p];(S.nodeName==="LINK"||S.getAttribute("media")!=="not all")&&(i.set(S.dataset.precedence,S),c=S)}c&&i.set(null,c)}f=s.instance,S=f.getAttribute("data-precedence"),p=i.get(S)||c,p===c&&i.set(null,f),i.set(S,f),this.count++,c=Uu.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),p?p.parentNode.insertBefore(f,p.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(f,r.firstChild)),s.state.loading|=4}}var kl={$$typeof:k,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function Vk(r,s,i,c,f,p,S,T){this.tag=1,this.containerInfo=r,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=Rt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rt(0),this.hiddenUpdates=Rt(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=p,this.onRecoverableError=S,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function Z0(r,s,i,c,f,p,S,T,M,K,ee,re){return r=new Vk(r,s,i,S,T,M,K,re),s=1,p===!0&&(s|=24),p=Hn(3,null,null,s),r.current=p,p.stateNode=r,s=xh(),s.refCount++,r.pooledCache=s,s.refCount++,p.memoizedState={element:c,isDehydrated:i,cache:s},Ch(p),r}function W0(r){return r?(r=Ti,r):Ti}function X0(r,s,i,c,f,p){f=W0(f),c.context===null?c.context=f:c.pendingContext=f,c=Ns(s),c.payload={element:i},p=p===void 0?null:p,p!==null&&(c.callback=p),i=ks(r,c,s),i!==null&&(Yn(i,r,s),al(i,r,s))}function J0(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var i=r.retryLane;r.retryLane=i!==0&&i<s?i:s}}function Vm(r,s){J0(r,s),(r=r.alternate)&&J0(r,s)}function ew(r){if(r.tag===13){var s=Ei(r,67108864);s!==null&&Yn(s,r,67108864),Vm(r,67108864)}}var Fu=!0;function Fk(r,s,i,c){var f=D.T;D.T=null;var p=q.p;try{q.p=2,Fm(r,s,i,c)}finally{q.p=p,D.T=f}}function Bk(r,s,i,c){var f=D.T;D.T=null;var p=q.p;try{q.p=8,Fm(r,s,i,c)}finally{q.p=p,D.T=f}}function Fm(r,s,i,c){if(Fu){var f=Bm(c);if(f===null)Nm(r,s,c,Bu,i),nw(r,c);else if(Hk(f,r,s,i,c))c.stopPropagation();else if(nw(r,c),s&4&&-1<$k.indexOf(r)){for(;f!==null;){var p=hi(f);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var S=ie(p.pendingLanes);if(S!==0){var T=p;for(T.pendingLanes|=2,T.entangledLanes|=2;S;){var M=1<<31-Pn(S);T.entanglements[1]|=M,S&=~M}zr(p),(mt&6)===0&&(Eu=Zt()+500,Sl(0))}}break;case 13:T=Ei(p,2),T!==null&&Yn(T,p,2),ju(),Vm(p,2)}if(p=Bm(c),p===null&&Nm(r,s,c,Bu,i),p===f)break;f=p}f!==null&&c.stopPropagation()}else Nm(r,s,c,null,i)}}function Bm(r){return r=Kf(r),$m(r)}var Bu=null;function $m(r){if(Bu=null,r=fi(r),r!==null){var s=l(r);if(s===null)r=null;else{var i=s.tag;if(i===13){if(r=d(s),r!==null)return r;r=null}else if(i===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null)}}return Bu=r,null}function tw(r){switch(r){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(Ss()){case li:return 2;case ci:return 8;case ui:case Rc:return 32;case Pc:return 268435456;default:return 32}default:return 32}}var Hm=!1,Bs=null,$s=null,Hs=null,Al=new Map,Ol=new Map,qs=[],$k="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 nw(r,s){switch(r){case"focusin":case"focusout":Bs=null;break;case"dragenter":case"dragleave":$s=null;break;case"mouseover":case"mouseout":Hs=null;break;case"pointerover":case"pointerout":Al.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ol.delete(s.pointerId)}}function Rl(r,s,i,c,f,p){return r===null||r.nativeEvent!==p?(r={blockedOn:s,domEventName:i,eventSystemFlags:c,nativeEvent:p,targetContainers:[f]},s!==null&&(s=hi(s),s!==null&&ew(s)),r):(r.eventSystemFlags|=c,s=r.targetContainers,f!==null&&s.indexOf(f)===-1&&s.push(f),r)}function Hk(r,s,i,c,f){switch(s){case"focusin":return Bs=Rl(Bs,r,s,i,c,f),!0;case"dragenter":return $s=Rl($s,r,s,i,c,f),!0;case"mouseover":return Hs=Rl(Hs,r,s,i,c,f),!0;case"pointerover":var p=f.pointerId;return Al.set(p,Rl(Al.get(p)||null,r,s,i,c,f)),!0;case"gotpointercapture":return p=f.pointerId,Ol.set(p,Rl(Ol.get(p)||null,r,s,i,c,f)),!0}return!1}function rw(r){var s=fi(r.target);if(s!==null){var i=l(s);if(i!==null){if(s=i.tag,s===13){if(s=d(i),s!==null){r.blockedOn=s,Lj(r.priority,function(){if(i.tag===13){var c=Qn();c=Qr(c);var f=Ei(i,c);f!==null&&Yn(f,i,c),Vm(i,c)}});return}}else if(s===3&&i.stateNode.current.memoizedState.isDehydrated){r.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}r.blockedOn=null}function $u(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var i=Bm(r.nativeEvent);if(i===null){i=r.nativeEvent;var c=new i.constructor(i.type,i);Gf=c,i.target.dispatchEvent(c),Gf=null}else return s=hi(i),s!==null&&ew(s),r.blockedOn=i,!1;s.shift()}return!0}function sw(r,s,i){$u(r)&&i.delete(s)}function qk(){Hm=!1,Bs!==null&&$u(Bs)&&(Bs=null),$s!==null&&$u($s)&&($s=null),Hs!==null&&$u(Hs)&&(Hs=null),Al.forEach(sw),Ol.forEach(sw)}function Hu(r,s){r.blockedOn===s&&(r.blockedOn=null,Hm||(Hm=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,qk)))}var qu=null;function aw(r){qu!==r&&(qu=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){qu===r&&(qu=null);for(var s=0;s<r.length;s+=3){var i=r[s],c=r[s+1],f=r[s+2];if(typeof c!="function"){if($m(c||i)===null)continue;break}var p=hi(i);p!==null&&(r.splice(s,3),s-=3,$h(p,{pending:!0,data:f,method:i.method,action:c},c,f))}}))}function Pl(r){function s(M){return Hu(M,r)}Bs!==null&&Hu(Bs,r),$s!==null&&Hu($s,r),Hs!==null&&Hu(Hs,r),Al.forEach(s),Ol.forEach(s);for(var i=0;i<qs.length;i++){var c=qs[i];c.blockedOn===r&&(c.blockedOn=null)}for(;0<qs.length&&(i=qs[0],i.blockedOn===null);)rw(i),i.blockedOn===null&&qs.shift();if(i=(r.ownerDocument||r).$$reactFormReplay,i!=null)for(c=0;c<i.length;c+=3){var f=i[c],p=i[c+1],S=f[Mn]||null;if(typeof p=="function")S||aw(i);else if(S){var T=null;if(p&&p.hasAttribute("formAction")){if(f=p,S=p[Mn]||null)T=S.formAction;else if($m(f)!==null)continue}else T=S.action;typeof T=="function"?i[c+1]=T:(i.splice(c,3),c-=3),aw(i)}}}function qm(r){this._internalRoot=r}Gu.prototype.render=qm.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(a(409));var i=s.current,c=Qn();X0(i,c,r,s,null,null)},Gu.prototype.unmount=qm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;X0(r.current,2,null,r,null,null),ju(),s[di]=null}};function Gu(r){this._internalRoot=r}Gu.prototype.unstable_scheduleHydration=function(r){if(r){var s=Uo();r={blockedOn:null,target:r,priority:s};for(var i=0;i<qs.length&&s!==0&&s<qs[i].priority;i++);qs.splice(i,0,r),i===0&&rw(r)}};var iw=t.version;if(iw!=="19.1.4")throw Error(a(527,iw,"19.1.4"));q.findDOMNode=function(r){var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=m(s),r=r!==null?g(r):null,r=r===null?null:r.stateNode,r};var Gk={bundleType:0,version:"19.1.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.4"};
10if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ku.isDisabled&&Ku.supportsFiber)try{va=Ku.inject(Gk),Cn=Ku}catch{}}return Dl.createRoot=function(r,s){if(!o(r))throw Error(a(299));var i=!1,c="",f=Sx,p=_x,S=Cx,T=null;return s!=null&&(s.unstable_strictMode===!0&&(i=!0),s.identifierPrefix!==void 0&&(c=s.identifierPrefix),s.onUncaughtError!==void 0&&(f=s.onUncaughtError),s.onCaughtError!==void 0&&(p=s.onCaughtError),s.onRecoverableError!==void 0&&(S=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(T=s.unstable_transitionCallbacks)),s=Z0(r,1,!1,null,null,i,c,f,p,S,T,null),r[di]=s.current,jm(r),new qm(s)},Dl.hydrateRoot=function(r,s,i){if(!o(r))throw Error(a(299));var c=!1,f="",p=Sx,S=_x,T=Cx,M=null,K=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onUncaughtError!==void 0&&(p=i.onUncaughtError),i.onCaughtError!==void 0&&(S=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(M=i.unstable_transitionCallbacks),i.formState!==void 0&&(K=i.formState)),s=Z0(r,1,!0,s,i??null,c,f,p,S,T,M,K),s.context=W0(null),i=s.current,c=Qn(),c=Qr(c),f=Ns(c),f.callback=null,ks(i,f,c),i=c,s.current.lanes=i,En(s,i),zr(s),r[di]=s.current,jm(r),new Gu(s)},Dl.version="19.1.4",Dl}var bw;function rA(){if(bw)return Qm.exports;bw=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Qm.exports=nA(),Qm.exports}var ty=rA();const sA=ei(ty),aA=Qd({__proto__:null,default:sA},[ty]),iA="modulepreload",oA=function(e){return"/"+e},xw={},Ye=function(t,n,a){let o=Promise.resolve();if(n&&n.length>0){let m=function(g){return Promise.all(g.map(y=>Promise.resolve(y).then(x=>({status:"fulfilled",value:x}),x=>({status:"rejected",reason:x}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),h=d?.nonce||d?.getAttribute("nonce");o=m(n.map(g=>{if(g=oA(g),g in xw)return;xw[g]=!0;const y=g.endsWith(".css"),x=y?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${x}`))return;const b=document.createElement("link");if(b.rel=y?"stylesheet":iA,y||(b.as="script"),b.crossOrigin="",b.href=g,h&&b.setAttribute("nonce",h),document.head.appendChild(b),y)return new Promise((C,E)=>{b.addEventListener("load",C),b.addEventListener("error",()=>E(new Error(`Unable to preload CSS for ${g}`)))})}))}function l(d){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=d,window.dispatchEvent(h),!h.defaultPrevented)throw d}return o.then(d=>{for(const h of d||[])h.status==="rejected"&&l(h.reason);return t().catch(l)})};var v=Yd();const I=ei(v),ca=Qd({__proto__:null,default:I},[v]);function lA(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,a,o,l,d=[],h="",m=e.split("/");for(m[0]||m.shift();o=m.shift();)n=o[0],n==="*"?(d.push(n),h+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(a=o.indexOf("?",1),l=o.indexOf(".",1),d.push(o.substring(1,~a?a:~l?l:o.length)),h+=~a&&!~l?"(?:/([^/]+?))?":"/([^/]+?)",~l&&(h+=(~a?"?":"")+"\\"+o.substring(l))):h+="/"+o;return{keys:d,pattern:new RegExp("^"+h+(t?"(?=$|/)":"/?$"),"i")}}var Jm={exports:{}},ep={};var ww;function cA(){if(ww)return ep;ww=1;var e=Yd();function t(x,b){return x===b&&(x!==0||1/x===1/b)||x!==x&&b!==b}var n=typeof Object.is=="function"?Object.is:t,a=e.useState,o=e.useEffect,l=e.useLayoutEffect,d=e.useDebugValue;function h(x,b){var C=b(),E=a({inst:{value:C,getSnapshot:b}}),w=E[0].inst,_=E[1];return l(function(){w.value=C,w.getSnapshot=b,m(w)&&_({inst:w})},[x,C,b]),o(function(){return m(w)&&_({inst:w}),x(function(){m(w)&&_({inst:w})})},[x]),d(C),C}function m(x){var b=x.getSnapshot;x=x.value;try{var C=b();return!n(x,C)}catch{return!0}}function g(x,b){return b()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:h;return ep.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,ep}var Sw;function uA(){return Sw||(Sw=1,Jm.exports=cA()),Jm.exports}var dA=uA();const fA=ca.useInsertionEffect,hA=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",r_=hA?v.useLayoutEffect:v.useEffect,mA=fA||r_,ny=e=>{const t=v.useRef([e,(...n)=>t[0](...n)]).current;return mA(()=>{t[0]=e}),t[1]}
10,_w=["popstate","pushState","replaceState","hashchange"];let Bl=[];const Cw=()=>Bl.forEach(e=>e()),pA=e=>(Bl.push(e)===1&&_w.forEach(t=>addEventListener(t,Cw)),()=>{Bl=Bl.filter(t=>t!==e),Bl.length||_w.forEach(t=>removeEventListener(t,Cw))}),s_=(e,t)=>dA.useSyncExternalStore(pA,e,t),Ew=()=>location.search,gA=({ssrSearch:e}={})=>s_(Ew,e!=null?()=>e:Ew),Tw=()=>location.pathname,yA=({ssrPath:e}={})=>s_(Tw,e!=null?()=>e:Tw),vA=(e,{replace:t=!1,state:n=null}={})=>history[t?"replaceState":"pushState"](n,"",e),bA=e=>[yA(e),vA],jw=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[jw]>"u"){for(const e of["pushState","replaceState"]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),a=new Event(e);return a.arguments=arguments,dispatchEvent(a),n}}Object.defineProperty(window,jw,{value:!0})}const a_=(e="")=>e==="/"?"":e,xA=(e,t)=>e[0]==="~"?e.slice(1):a_(t)+e,i_=(e,t)=>(e=Zp(a_(e)),t=Zp(t),!e||!t.toLowerCase().indexOf(e.toLowerCase())?t.slice(e.length)||"/":"~"+t),Zp=e=>{try{return e.includes("%")?decodeURI(e):e}catch{return e}},wA=e=>Zp(e[0]==="?"?e.slice(1):e),o_={hook:bA,searchHook:gA,parser:lA,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,t,n)=>e(t,n)},l_=v.createContext(o_),ua=()=>v.useContext(l_),c_={},u_=v.createContext(c_),d_=()=>v.useContext(u_),ry=(e,t=e.base)=>i_(t,e.hook(e)[0]),sy=e=>{const[t,n]=e.hook(e);return[i_(e.base,t),ny((a,o)=>e.aroundNav(n,xA(a,e.base),o))]},da=()=>sy(ua()),lB=()=>{const e=ua();return wA(e.searchHook(e))},ay=(e,t,n,a)=>{const{pattern:o,keys:l}=t instanceof RegExp?{pattern:t}:e(t||"*",a),d=o.exec(n);if(!d)return[!1,null];const h={};for(let m=1;m<d.length;m++)h[m-1]=d[m];if(l)for(let m=0;m<l.length;m++)h[l[m]]=d[m+1];else Object.assign(h,d.groups);return a?[!0,h,d[0]]:[!0,h]},cB=e=>{const t=ua(),n=/^~\//.test(e);return ay(t.parser,n?e.slice(1):e,ry(t,n?"":t.base))},f_=({children:e,...t})=>{const n=ua(),a=t.hook?o_:n;let o=a;if(t.ssrPath){const[m,g=t.ssrSearch??""]=t.ssrPath.split("?");m&&(t.ssrSearch=g,t.ssrPath=m)}t.hrefs=t.hrefs??t.hook?.hrefs,t.searchHook=t.searchHook??t.hook?.searchHook;let l=v.useRef(a),d=l.current,h=d;for(let m in a){const g=m==="base"?a[m]+(t[m]??""):t[m]??a[m];g!==h[m]&&(d===h&&(l.current=h={...h}),h[m]=g),(g!==a[m]||g!==o[m])&&(o=h)}return v.createElement(l_.Provider,{value:o},e)},SA=({children:e,component:t},n)=>t?v.createElement(t,{params:n}):typeof e=="function"?e(n):e,_A=e=>{let t=v.useRef(c_);const n=t.current,a=Object.keys(e);return t.current=a.length!==Object.keys(n).length||a.some(o=>e[o]!==n[o])?e:n},Le=({path:e,nest:t,match:n,...a})=>{const o=ua(),l=ry(o),[d,h,m]=n??ay(o.parser,e,l,t),g=_A({...d_(),...h});if(!d)return null;const y=SA(a,g);return v.createElement(u_.Provider,{value:g},m?v.createElement(f_,{base:m},y):y)},ze=v.forwardRef((e,t)=>{const n=ua(),[a,o]=sy(n),{to:l="",href:d=l,onClick:h,asChild:m,children:g,className:y,replace:x,state:b,transition:C,...E}=e;return E.onClick=ny(w=>{w.ctrlKey||w.metaKey||w.altKey||w.shiftKey||w.button!==0||(h?.(w),w.defaultPrevented||(w.preventDefault(),o(d,e)))}),E.href=n.hrefs(d[0]==="~"?d.slice(1):n.base+d,n),y!==void 0&&(E.className=y?.call?y(a===d):y),t&&(E.ref=t),m&&v.isValidElement(g)?v.cloneElement(g,E):v.createElement("a",E,g)}),h_=(e,t=[])=>{if(Array.isArray(e))for(const n of e)h_(n&&n.type===v.Fragment?n.props.children:n,t);else t.push(e);return t},CA=({children:e,location:t})=>{const n=ua(),a=ry(n);for(const o of h_(e)){let l=0;if(v.isValidElement(o)&&(l=ay(n.parser,o.props.path,t||a,o.props.nest))[0])return v.cloneElement(o,{match:l})}return null},EA=e=>{const{to:t,href:n=t}=e,a=ua(),[,o]=sy(a),l=ny(()=>o(t||n,e)),{ssrContext:d}=a;return r_(()=>{l()},[]),d&&(d.redirectTo=t),null};var No=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},TA=class extends No{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(t=>{typeof t=="boolean"?this.setFocused(t):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();
vendor: 25,563 bytes, line 10
10this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},iy=new TA,jA={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},NA=class{#e=jA;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}},Va=new NA;function kA(e){setTimeout(e,0)}var AA=typeof window>"u"||"Deno"in globalThis;function Nn(){}function OA(e,t){return typeof e=="function"?e(t):e}function Wp(e){return typeof e=="number"&&e>=0&&e!==1/0}function m_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ta(e,t){return typeof e=="function"?e(t):e}function Xn(e,t){return typeof e=="function"?e(t):e}function Nw(e,t){const{type:n="all",exact:a,fetchStatus:o,predicate:l,queryKey:d,stale:h}=e;if(d){if(a){if(t.queryHash!==oy(d,t.options))return!1}else if(!po(t.queryKey,d))return!1}if(n!=="all"){const m=t.isActive();if(n==="active"&&!m||n==="inactive"&&m)return!1}return!(typeof h=="boolean"&&t.isStale()!==h||o&&o!==t.state.fetchStatus||l&&!l(t))}function kw(e,t){const{exact:n,status:a,predicate:o,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Ha(t.options.mutationKey)!==Ha(l))return!1}else if(!po(t.options.mutationKey,l))return!1}return!(a&&t.state.status!==a||o&&!o(t))}function oy(e,t){return(t?.queryKeyHashFn||Ha)(e)}function Ha(e){return JSON.stringify(e,(t,n)=>Xp(n)?Object.keys(n).sort().reduce((a,o)=>(a[o]=n[o],a),{}):n)}function po(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(Array.isArray(e)&&Array.isArray(t)){for(let a=0;a<t.length;a++)if(!po(e[a],t[a]))return!1;return!0}const n=Object.keys(t);for(const a of n)if(!po(e[a],t[a]))return!1;return!0}return!1}var RA=Object.prototype.hasOwnProperty;function p_(e,t,n=0){if(e===t)return e;if(n>500)return t;const a=Aw(e)&&Aw(t);if(!a&&!(Xp(e)&&Xp(t)))return t;const l=(a?e:Object.keys(e)).length,d=a?t:Object.keys(t),h=d.length,m=a?new Array(h):{};let g=0;for(let y=0;y<h;y++){const x=a?y:d[y],b=e[x],C=t[x];if(b===C){m[x]=b,(a?y<l:RA.call(e,x))&&g++;continue}if(b===null||C===null||typeof b!="object"||typeof C!="object"){m[x]=C;continue}const E=p_(b,C,n+1);m[x]=E,E===b&&g++}return l===h&&g===l?e:m}function _d(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Aw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Xp(e){if(!Ow(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Ow(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Ow(e){return Object.prototype.toString.call(e)==="[object Object]"}function PA(e){return new Promise(t=>{Va.setTimeout(t,e)})}function Jp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?p_(e,t):t}function MA(e,t,n=0){const a=[...e,t];return n&&a.length>n?a.slice(1):a}function DA(e,t,n=0){const a=[t,...e];return n&&a.length>n?a.slice(0,-1):a}var ly=Symbol();function g_(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ly?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function cy(e,t){return typeof e=="function"?e(...t):!!e}function IA(e,t,n){let a=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??=t(),a||(a=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var Jl=(()=>{let e=()=>AA;return{isServer(){return e()},setIsServer(t){e=t}}})();function eg(){let e,t;const n=new Promise((o,l)=>{e=o,t=l});n.status="pending",n.catch(()=>{});function a(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{a({status:"fulfilled",value:o}),e(o)},n.reject=o=>{a({status:"rejected",reason:o}),t(o)},n}var LA=kA;function zA(){let e=[],t=0,n=h=>{h()},a=h=>{h()},o=LA;const l=h=>{t?e.push(h):o(()=>{n(h)})},d=()=>{const h=e;e=[],h.length&&o(()=>{a(()=>{h.forEach(m=>{n(m)})})})};return{batch:h=>{let m;t++;try{m=h()}finally{t--,t||d()}return m},batchCalls:h=>(...m)=>{l(()=>{h(...m)})},schedule:l,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{a=h},setScheduler:h=>{o=h}}}var Yt=zA(),UA=class extends No{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<"u"&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(n=>{n(e)}))}isOnline(){return this.#e}},Cd=new UA;function VA(e){return Math.min(1e3*2**e,3e4)}function y_(e){return(e??"online")==="online"?Cd.isOnline():!0}var tg=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function v_(e){let t=!1,n=0,a;const o=eg(),l=()=>o.status!=="pending",d=w=>{if(!l()){const _=new tg(w);b(_),e.onCancel?.(_)}},h=()=>{t=!0},m=()=>{t=!1},g=()=>iy.isFocused()&&(e.networkMode==="always"||Cd.isOnline())&&e.canRun(),y=()=>y_(e.networkMode)&&e.canRun(),x=w=>{l()||(a?.(),o.resolve(w))},b=w=>{l()||(a?.(),o.reject(w))},C=()=>new Promise(w=>{a=_=>{(l()||g())&&w(_)},e.onPause?.()}).then(()=>{a=void 0,l()||e.onContinue?.()}),E=()=>{if(l())return;let w;const _=n===0?e.initialPromise:void 0;try{w=_??e.fn()}catch(R){w=Promise.reject(R)}Promise.resolve(w).then(x).catch(R=>{if(l())return;const A=e.retry??(Jl.isServer()?0:3),k=e.retryDelay??VA,N=typeof k=="function"?k(n,R):k,O=A===!0||typeof A=="number"&&n<A||typeof A=="function"&&A(n,R);if(t||!O){b(R);return}n++,e.onFail?.(n,R),PA(N).then(()=>g()?void 0:C()).then(()=>{t?b(R):E()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(a?.(),o),cancelRetry:h,continueRetry:m,canStart:y,start:()=>(y()?E():C().then(E),o)}}var b_=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Wp(this.gcTime)&&(this.#e=Va.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Jl.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Va.clearTimeout(this.#e),this.#e=void 0)}};function FA(e){return{onFetch:(t,n)=>{const a=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],d=t.state.data?.pageParams||[];let h={pages:[],pageParams:[]},m=0;const g=async()=>{let y=!1;const x=E=>{IA(E,()=>t.signal,()=>y=!0)},b=g_(t.options,t.fetchOptions),C=async(E,w,_)=>{if(y)return Promise.reject(t.signal.reason);if(w==null&&E.pages.length)return Promise.resolve(E);const A=(()=>{const U={client:t.client,queryKey:t.queryKey,pageParam:w,direction:_?"backward":"forward",meta:t.options.meta};return x(U),U})(),k=await b(A),{maxPages:N}=t.options,O=_?DA:MA;return{pages:O(E.pages,k,N),pageParams:O(E.pageParams,w,N)}};if(o&&l.length){const E=o==="backward",w=E?BA:Rw,_={pages:l,pageParams:d},R=w(a,_);h=await C(_,R,E)}else{const E=e??l.length;do{const w=m===0?d[0]??a.initialPageParam:Rw(a,h);if(m>0&&w==null)break;h=await C(h,w),m++}while(m<E)}return h};t.options.persister?t.fetchFn=()=>t.options.persister?.(g,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=g}}}function Rw(e,{pages:t,pageParams:n}){const a=t.length-1;return t.length>0?e.getNextPageParam(t[a],t,n[a],n):void 0}function BA(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var $A=class extends b_{#e;#t;#n;#r;#s;#a;#i;#o;constructor(e){super(),this.#o=!1,this.#i=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.client,this.#r=this.#s.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Mw(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#i,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Mw(this.options);t.data!==void 0&&(this.setState(Pw(t.data,t.dataUpdatedAt)),this.#t=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#r.remove(this)}setData(e,t){const n=Jp(this.state.data,e,this.options);return this.#l({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:"setState",state:e})}cancel(e){const t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(Nn).catch(Nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>Xn(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ly||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ta(e.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e==="static"?!1:this.state.isInvalidated?!0:!m_(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#o||this.#u()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#u(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const m=this.observers.find(g=>g.options.queryFn);m&&this.setOptions(m.options)}const n=new AbortController,a=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},o=()=>{const m=g_(this.options,t),y=(()=>{const x={client:this.#s,queryKey:this.queryKey,meta:this.meta};return a(x),x})();return this.#o=!1,this.options.persister?this.options.persister(m,y,this):m(y)},d=(()=>{const m={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#s,state:this.state,fetchFn:o};return a(m),m})();(this.#e==="infinite"?FA(this.options.pages):this.options.behavior)?.onFetch(d,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#l({type:"fetch",meta:d.fetchOptions?.meta}),this.#a=v_({initialPromise:t?.initialPromise,fn:d.fetchFn,onCancel:m=>{m instanceof tg&&m.revert&&this.setState({...this.#n,fetchStatus:"idle"}),n.abort()},onFail:(m,g)=>{this.#l({type:"failed",failureCount:m,error:g})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#r.config.onSuccess?.(m,this),this.#r.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof tg){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#l({type:"error",error:m}),this.#r.config.onError?.(m,this),this.#r.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#l(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...x_(n.data,this.options),fetchMeta:e.meta??null};case"success":const a={...n,...Pw(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?a:void 0,a;case"error":const o=e.error;return{...n,error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Yt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#r.notify({query:this,type:"updated",action:e})})}};function x_(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:y_(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Pw(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Mw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,a=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?a??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var HA=class extends No{constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.#i=eg(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#s;#a;#i;#o;#u;#l;#m;#d;#f;#c;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Dw(this.#t,this.options)?this.#h():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ng(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ng(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Xn(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#S(),this.#t.setOptions(this.options),t._defaulted&&!_d(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const a=this.hasListeners();a&&Iw(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),a&&(this.#t!==n||Xn(this.options.enabled,this.#t)!==Xn(t.enabled,this.#t)||ta(this.options.staleTime,this.#t)!==ta(t.staleTime,this.#t))&&this.#g();const o=this.#y();a&&(this.#t!==n||Xn(this.options.enabled,this.#t)!==Xn(t.enabled,this.#t)||o!==this.#c)&&this.#v(o)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return GA(this,n)&&(this.#r=n,this.#a=this.options,this.#s=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(n,a)=>(this.trackProp(a),t?.(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#i.status==="pending"&&this.#i.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,a))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(Nn)),t}#g(){this.#x();const e=ta(this.options.staleTime,this.#t);if(Jl.isServer()||this.#r.isStale||!Wp(e))return;const n=m_(this.#r.dataUpdatedAt,e)+1;this.#d=Va.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#c=e,!(Jl.isServer()||Xn(this.options.enabled,this.#t)===!1||!Wp(this.#c)||this.#c===0)&&(this.#f=Va.setInterval(()=>{(this.options.refetchIntervalInBackground||iy.isFocused())&&this.#h()},this.#c))}#b(){this.#g(),this.#v(this.#y())}#x(){this.#d!==void 0&&(Va.clearTimeout(this.#d),this.#d=void 0)}#w(){this.#f!==void 0&&(Va.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){const n=this.#t,a=this.options,o=this.#r,l=this.#s,d=this.#a,m=e!==n?e.state:this.#n,{state:g}=e;let y={...g},x=!1,b;if(t._optimisticResults){const F=this.hasListeners(),W=!F&&Dw(e,t),ce=F&&Iw(e,n,t,a);(W||ce)&&(y={...y,...x_(g.data,e.options)}),t._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:C,errorUpdatedAt:E,status:w}=y;b=y.data;let _=!1;if(t.placeholderData!==void 0&&b===void 0&&w==="pending"){let F;o?.isPlaceholderData&&t.placeholderData===d?.placeholderData?(F=o.data,_=!0):F=typeof t.placeholderData=="function"?t.placeholderData(this.#m?.state.data,this.#m):t.placeholderData,F!==void 0&&(w="success",b=Jp(o?.data,F,t),x=!0)}if(t.select&&b!==void 0&&!_)if(o&&b===l?.data&&t.select===this.#u)b=this.#l;else try{this.#u=t.select,b=t.select(b),b=Jp(o?.data,b,t),this.#l=b,this.#o=null}catch(F){this.#o=F}this.#o&&(C=this.#o,b=this.#l,E=Date.now(),w="error");const R=y.fetchStatus==="fetching",A=w==="pending",k=w==="error",N=A&&R,O=b!==void 0,Y={status:w,fetchStatus:y.fetchStatus,isPending:A,isSuccess:w==="success",isError:k,isInitialLoading:N,isLoading:N,data:b,dataUpdatedAt:y.dataUpdatedAt,error:C,errorUpdatedAt:E,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:y.dataUpdateCount>m.dataUpdateCount||y.errorUpdateCount>m.errorUpdateCount,isFetching:R,isRefetching:R&&!A,isLoadingError:k&&!O,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:k&&O,isStale:uy(e,t),refetch:this.refetch,promise:this.#i,isEnabled:Xn(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const F=Y.data!==void 0,W=Y.status==="error"&&!F,ce=ae=>{W?ae.reject(Y.error):F&&ae.resolve(Y.data)},fe=()=>{const ae=this.#i=Y.promise=eg();ce(ae)},X=this.#i;switch(X.status){case"pending":e.queryHash===n.queryHash&&ce(X);break;case"fulfilled":(W||Y.data!==X.value)&&fe();break;case"rejected":(!W||Y.error!==X.reason)&&fe();break}}return Y}updateResult(){const e=this.#r,t=this.createResult(this.#t,this.options);if(this.#s=this.#t.state,this.#a=this.options,this.#s.data!==void 0&&(this.#m=this.#t),_d(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:a}=this.options,o=typeof a=="function"?a():a;if(o==="all"||!o&&!this.#p.size)return!0;const l=new Set(o??this.#p);return this.options.throwOnError&&l.add("error"),Object.keys(this.#r).some(d=>{const h=d;return this.#r[h]!==e[h]&&l.has(h)})};this.#_({listeners:n()})}#S(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(e){Yt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function qA(e,t){return Xn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Xn(t.retryOnMount,e)===!1)}function Dw(e,t){return qA(e,t)||e.state.data!==void 0&&ng(e,t,t.refetchOnMount)}function ng(e,t,n){if(Xn(t.enabled,e)!==!1&&ta(t.staleTime,e)!=="static"){const a=typeof n=="function"?n(e):n;return a==="always"||a!==!1&&uy(e,t)}return!1}function Iw(e,t,n,a){return(e!==t||Xn(a.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&uy(e,n)}function uy(e,t){return Xn(t.enabled,e)!==!1&&e.isStaleByTime(ta(t.staleTime,e))}function GA(e,t){return!_d(e.getCurrentResult(),t)}var KA=class extends b_{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||w_(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#s({type:"continue"})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=v_({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(l,d)=>{this.#s({type:"failed",failureCount:l,error:d})},onPause:()=>{this.#s({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const a=this.state.status==="pending",o=!this.#r.canStart();try{if(a)t();else{this.#s({type:"pending",variables:e,isPaused:o}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const d=await this.options.onMutate?.(e,n);d!==this.state.context&&this.#s({type:"pending",context:d,variables:e,isPaused:o})}const l=await this.#r.start();return await this.#n.config.onSuccess?.(l,e,this.state.context,this,n),await this.options.onSuccess?.(l,e,this.state.context,n),await this.#n.config.onSettled?.(l,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(l,null,e,this.state.context,n),this.#s({type:"success",data:l}),l}catch(l){try{await this.#n.config.onError?.(l,e,this.state.context,this,n)}catch(d){Promise.reject(d)}try{await this.options.onError?.(l,e,this.state.context,n)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,n)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,l,e,this.state.context,n)}catch(d){Promise.reject(d)}throw this.#s({type:"error",error:l}),l}finally{this.#n.runNext(this)}}#s(e){const t=n=>{switch(e.type){case"failed":return{...n,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...n,isPaused:!0};case"continue":return{...n,isPaused:!1};case"pending":return{...n,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...n,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...n,data:void 0,error:e.error,failureCount:n.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Yt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function w_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var QA=class extends No{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){const a=new KA({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(a),a}add(e){this.#e.add(e);const t=Qu(e);if(typeof t=="string"){const n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const t=Qu(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const a=n.indexOf(e);a!==-1&&n.splice(a,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Qu(e);if(typeof t=="string"){const a=this.#t.get(t)?.find(o=>o.state.status==="pending");return!a||a===e}else return!0}runNext(e){const t=Qu(e);return typeof t=="string"?this.#t.get(t)?.find(a=>a!==e&&a.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Yt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>kw(t,n))}findAll(e={}){return this.getAll().filter(t=>kw(e,t))}notify(e){Yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>
10t.state.isPaused);return Yt.batch(()=>Promise.all(e.map(t=>t.continue().catch(Nn))))}};function Qu(e){return e.options.scope?.id}var YA=class extends No{#e;#t=void 0;#n;#r;constructor(t,n){super(),this.#e=t,this.setOptions(n),this.bindMethods(),this.#s()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(t){const n=this.options;this.options=this.#e.defaultMutationOptions(t),_d(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Ha(n.mutationKey)!==Ha(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#s(),this.#a(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#s(),this.#a()}mutate(t,n){return this.#r=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#s(){const t=this.#n?.state??w_();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#a(t){Yt.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,a=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,n,a,o)}catch(l){Promise.reject(l)}
vendor: 5,794 bytes, line 10
10try{this.#r.onSettled?.(t.data,null,n,a,o)}catch(l){Promise.reject(l)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,n,a,o)}catch(l){Promise.reject(l)}try{this.#r.onSettled?.(void 0,t.error,n,a,o)}catch(l){Promise.reject(l)}}}this.listeners.forEach(n=>{n(this.#t)})})}},ZA=class extends No{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const a=t.queryKey,o=t.queryHash??oy(a,t);let l=this.get(o);return l||(l=new $A({client:e,queryKey:a,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(a)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Yt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>Nw(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Nw(e,n)):t}notify(e){Yt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Yt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Yt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},WA=class{#e;#t;#n;#r;#s;#a;#i;#o;constructor(e={}){this.#e=e.queryCache||new ZA,this.#t=e.mutationCache||new QA,this.#n=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#i=iy.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#o=Cd.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#i?.(),this.#i=void 0,this.#o?.(),this.#o=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),a=n.state.data;return a===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ta(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(a))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const a=n.data;return[t,a]})}setQueryData(e,t,n){const a=this.defaultQueryOptions({queryKey:e}),l=this.#e.get(a.queryHash)?.state.data,d=OA(t,l);if(d!==void 0)return this.#e.build(this,a).setData(d,{...n,manual:!0})}setQueriesData(e,t,n){return Yt.batch(()=>this.#e.findAll(e).map(({queryKey:a})=>[a,this.setQueryData(a,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Yt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Yt.batch(()=>(n.findAll(e).forEach(a=>{a.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},a=Yt.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(a).then(Nn).catch(Nn)}invalidateQueries(e,t={}){return Yt.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},a=Yt.batch(()=>this.#e.findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let l=o.fetch(void 0,n);return n.throwOnError||(l=l.catch(Nn)),o.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(a).then(Nn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(ta(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nn).catch(Nn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nn).catch(Nn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Cd.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(Ha(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(a=>{po(e,a.queryKey)&&Object.assign(n,a.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(Ha(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(a=>{po(e,a.mutationKey)&&Object.assign(n,a.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=oy(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===ly&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},S_=v.createContext(void 0),dy=e=>{const t=v.useContext(S_);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},XA=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(S_.Provider,{value:e,children:t})),__=v.createContext(!1),JA=()=>v.useContext(__);__.Provider;function eO(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
10var tO=v.createContext(eO()),nO=()=>v.useContext(tO),rO=(e,t,n)=>{const a=n?.state.error&&typeof e.throwOnError=="function"?cy(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||a)&&(t.isReset()||(e.retryOnMount=!1))},sO=e=>{v.useEffect(()=>{e.clearReset()},[e])},aO=({result:e,errorResetBoundary:t,throwOnError:n,query:a,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&a&&(o&&e.data===void 0||cy(n,[e.error,a])),iO=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),a=e.staleTime;e.staleTime=typeof a=="function"?(...o)=>n(a(...o)):n(a),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},oO=(e,t)=>e.isLoading&&e.isFetching&&!t,lO=(e,t)=>e?.suspense&&t.isPending,Lw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function cO(e,t,n){const a=JA(),o=nO(),l=dy(),d=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(d);const h=l.getQueryCache().get(d.queryHash),m=e.subscribed!==!1;d._optimisticResults=a?"isRestoring":m?"optimistic":void 0,iO(d),rO(d,o,h),sO(o);const g=!l.getQueryCache().get(d.queryHash),[y]=v.useState(()=>new t(l,d)),x=y.getOptimisticResult(d),b=!a&&m;if(v.useSyncExternalStore(v.useCallback(C=>{const E=b?y.subscribe(Yt.batchCalls(C)):Nn;return y.updateResult(),E},[y,b]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),v.useEffect(()=>{y.setOptions(d)},[d,y]),lO(d,x))throw Lw(d,y,o);if(aO({result:x,errorResetBoundary:o,throwOnError:d.throwOnError,query:h,suspense:d.suspense}))throw x.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(d,x),d.experimental_prefetchInRender&&!Jl.isServer()&&oO(x,a)&&(g?Lw(d,y,o):h?.promise)?.catch(Nn).finally(()=>{y.updateResult()}),d.notifyOnChangeProps?x:y.trackResult(x)}function Vn(e,t){return cO(e,HA)}function tr(e,t){const n=dy(),[a]=v.useState(()=>new YA(n,e));v.useEffect(()=>{a.setOptions(e)},[a,e]);const o=v.useSyncExternalStore(v.useCallback(d=>a.subscribe(Yt.batchCalls(d)),[a]),()=>a.getCurrentResult(),()=>a.getCurrentResult()),l=v.useCallback((d,h)=>{a.mutate(d,h).catch(Nn)},[a]);if(o.error&&cy(a.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:l,mutateAsync:o.mutate}}async function C_(e){if(!e.ok){const t=await e.text()||e.statusText;throw new Error(`${e.status}: ${t}`)}}function uO(e){return JSON.stringify(e).replace(/'/g,"\\u0027")}async function pn(e,t,n){const a=await fetch(t,{method:e,headers:n?{"Content-Type":"application/json"}:{},body:n?uO(n):void 0,credentials:"include"});return await C_(a),a}const dO=({on401:e})=>async({queryKey:t})=>{const n=await fetch(t.join("/"),{credentials:"include"});return await C_(n),await n.json()},On=new WA({defaultOptions:{queries:{queryFn:dO({on401:"throw"}),refetchInterval:!1,refetchOnWindowFocus:!1,staleTime:1/0,retry:!1},mutations:{retry:!1}}});var tp,zw;function fO(){if(zw)return tp;zw=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",a=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(l,d){if(l===d)return!0;if(l&&d&&typeof l=="object"&&typeof d=="object"){if(l.constructor!==d.constructor)return!1;var h,m,g;if(Array.isArray(l)){if(h=l.length,h!=d.length)return!1;for(m=h;m--!==0;)if(!o(l[m],d[m]))return!1;return!0}var y;if(t&&l instanceof Map&&d instanceof Map){if(l.size!==d.size)return!1;for(y=l.entries();!(m=y.next()).done;)if(!d.has(m.value[0]))return!1;for(y=l.entries();!(m=y.next()).done;)if(!o(m.value[1],d.get(m.value[0])))return!1;return!0}if(n&&l instanceof Set&&d instanceof Set){if(l.size!==d.size)return!1;for(y=l.entries();!(m=y.next()).done;)if(!d.has(m.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(d)){if(h=l.length,h!=d.length)return!1;for(m=h;m--!==0;)if(l[m]!==d[m])return!1;return!0}if(l.constructor===RegExp)return l.source===d.source&&l.flags===d.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof d.valueOf=="function")return l.valueOf()===d.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof d.toString=="function")return l.toString()===d.toString();if(g=Object.keys(l),h=g.length,h!==Object.keys(d).length)return!1;for(m=h;m--!==0;)if(!Object.prototype.hasOwnProperty.call(d,g[m]))return!1;if(e&&l instanceof Element)return!1;for(m=h;m--!==0;)if(!((g[m]==="_owner"||g[m]==="__v"||g[m]==="__o")&&l.$$typeof)&&!o(l[g[m]],d[g[m]]))return!1;return!0}return l!==l&&d!==d}return tp=function(d,h){try{return o(d,h)}catch(m){if((m.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw m}},tp}var hO=fO();const mO=ei(hO);var np,Uw;function pO(){if(Uw)return np;Uw=1;var e=function(t,n,a,o,l,d,h,m){if(!t){var g;
10if(n===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var y=[a,o,l,d,h,m],x=0;g=new Error(n.replace(/%s/g,function(){return y[x++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}};return np=e,np}var gO=pO();const Vw=ei(gO);var rp,Fw;function yO(){return Fw||(Fw=1,rp=function(t,n,a,o){var l=a?a.call(o,t,n):void 0;if(l!==void 0)return!!l;if(t===n)return!0;if(typeof t!="object"||!t||typeof n!="object"||!n)return!1;var d=Object.keys(t),h=Object.keys(n);if(d.length!==h.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(n),g=0;g<d.length;g++){var y=d[g];if(!m(y))return!1;var x=t[y],b=n[y];if(l=a?a.call(o,x,b,y):void 0,l===!1||l===void 0&&x!==b)return!1}return!0}),rp}var vO=yO();const bO=ei(vO);var E_=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(E_||{}),sp={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},Bw=Object.values(E_),Zd={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},T_=Object.entries(Zd).reduce((e,[t,n])=>(e[n]=t,e),{}),kr="data-rh",io={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},oo=(e,t)=>{for(let n=e.length-1;n>=0;n-=1){const a=e[n];if(Object.prototype.hasOwnProperty.call(a,t))return a[t]}return null},xO=e=>{let t=oo(e,"title");const n=oo(e,io.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),n&&t)return n.replace(/%s/g,()=>t);const a=oo(e,io.DEFAULT_TITLE);return t||a||void 0},wO=e=>oo(e,io.ON_CHANGE_CLIENT_STATE)||(()=>{}),ap=(e,t)=>t.filter(n=>typeof n[e]<"u").map(n=>n[e]).reduce((n,a)=>({...n,...a}),{}),SO=(e,t)=>
10t.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,a)=>{if(!n.length){const o=Object.keys(a);for(let l=0;l<o.length;l+=1){const h=o[l].toLowerCase();if(e.indexOf(h)!==-1&&a[h])return n.concat(a)}}return n},[]),_O=e=>console&&typeof console.warn=="function"&&console.warn(e),Il=(e,t,n)=>{const a={};return n.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&_O(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,l)=>{const d={};l.filter(m=>{let g;const y=Object.keys(m);for(let b=0;b<y.length;b+=1){const C=y[b],E=C.toLowerCase();t.indexOf(E)!==-1&&!(g==="rel"&&m[g].toLowerCase()==="canonical")&&!(E==="rel"&&m[E].toLowerCase()==="stylesheet")&&(g=E),t.indexOf(C)!==-1&&(C==="innerHTML"||C==="cssText"||C==="itemprop")&&(g=C)}if(!g||!m[g])return!1;const x=m[g].toLowerCase();return a[g]||(a[g]={}),d[g]||(d[g]={}),a[g][x]?!1:(d[g][x]=!0,!0)}).reverse().forEach(m=>o.push(m));const h=Object.keys(d);for(let m=0;m<h.length;m+=1){const g=h[m],y={...a[g],...d[g]};a[g]=y}return o},[]).reverse()},CO=(e,t)=>{if(Array.isArray(e)&&e.length){for(let n=0;n<e.length;n+=1)if(e[n][t])return!0}return!1},EO=e=>({baseTag:SO(["href"],e),bodyAttributes:ap("bodyAttributes",e),defer:oo(e,io.DEFER),encode:oo(e,io.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:ap("htmlAttributes",e),linkTags:Il("link",["rel","href"],e),metaTags:Il("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Il("noscript",["innerHTML"],e),onChangeClientState:wO(e),scriptTags:Il("script",["src","innerHTML"],e),styleTags:Il("style",["cssText"],e),title:xO(e),titleAttributes:ap("titleAttributes",e),prioritizeSeoTags:CO(e,io.PRIORITIZE_SEO_TAGS)}),j_=e=>Array.isArray(e)?e.join(""):e,TO=(e,t)=>{const n=Object.keys(e);for(let a=0;a<n.length;a+=1)if(t[n[a]]&&t[n[a]].includes(e[n[a]]))return!0;return!1},ip=(e,t)=>Array.isArray(e)?e.reduce((n,a)=>(TO(a,t)?n.priority.push(a):n.default.push(a),n),{priority:[],default:[]}):{default:e,priority:[]},$w=(e,t)=>({...e,[t]:void 0}),jO=["noscript","script","style"],rg=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),N_=e=>Object.keys(e).reduce((t,n)=>{const a=typeof e[n]<"u"?`${n}="${e[n]}"`:`${n}`;return t?`${t} ${a}`:a},""),NO=(e,t,n,a)=>{const o=N_(n),l=j_(t);return o?`<${e} ${kr}="true" ${o}>${rg(l,a)}</${e}>`:`<${e} ${kr}="true">${rg(l,a)}</${e}>`},kO=(e,t,n=!0)=>t.reduce((a,o)=>{const l=o,d=Object.keys(l).filter(g=>!(g==="innerHTML"||g==="cssText")).reduce((g,y)=>{const x=typeof l[y]>"u"?y:`${y}="${rg(l[y],n)}"`;return g?`${g} ${x}`:x},""),h=l.innerHTML||l.cssText||"",m=jO.indexOf(e)===-1;return`${a}<${e} ${kr}="true" ${d}${m?"/>":`>${h}</${e}>`}`},""),k_=(e,t={})=>Object.keys(e).reduce((n,a)=>{const o=Zd[a];return n[o||a]=e[a],n},t),AO=(e,t,n)=>{const a={key:t,[kr]:!0},o=k_(n,a);return[I.createElement("title",o,t)]},fd=(e,t)=>t.map((n,a)=>{const o={key:a,[kr]:!0};return Object.keys(n).forEach(l=>{const h=Zd[l]||l;if(h==="innerHTML"||h==="cssText"){const m=n.innerHTML||n.cssText;o.dangerouslySetInnerHTML={__html:m}}else o[h]=n[l]}),I.createElement(e,o)}),mr=(e,t,n=!0)=>{switch(e){case"title":return{toComponent:()=>AO(e,t.title,t.titleAttributes),toString:()=>NO(e,t.title,t.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>k_(t),toString:()=>N_(t)};default:return{toComponent:()=>fd(e,t),toString:()=>kO(e,t,n)}}},OO=({metaTags:e,linkTags:t,scriptTags:n,encode:a})=>{const o=ip(e,sp.meta),l=ip(t,sp.link),d=ip(n,sp.script);return{priorityMethods:{toComponent:()=>[...fd("meta",o.priority),...fd("link",l.priority),...fd("script",d.priority)],toString:()=>`${mr("meta",o.priority,a)} ${mr("link",l.priority,a)} ${mr("script",d.priority,a)}`},metaTags:o.default,linkTags:l.default,scriptTags:d.default}},RO=e=>{const{baseTag:t,bodyAttributes:n,encode:a=!0,htmlAttributes:o,noscriptTags:l,styleTags:d,title:h="",titleAttributes:m,prioritizeSeoTags:g}=e;let{linkTags:y,metaTags:x,scriptTags:b}=e,C={toComponent:()=>[],toString:()=>""};return g&&({priorityMethods:C,linkTags:y,metaTags:x,scriptTags:b}=OO(e)),{priority:C,base:mr("base",t,a),bodyAttributes:mr("bodyAttributes",n,a),htmlAttributes:mr("htmlAttributes",o,a),link:mr("link",y,a),meta:mr("meta",x,a),noscript:mr("noscript",l,a),script:mr("script",b,a),style:mr("style",d,a),title:mr("title",{title:h,titleAttributes:m},a)}},sg=RO,Yu=[],fy=!!(typeof window<"u"&&window.document&&window.document.createElement),ag=class{instances=[];canUseDOM=fy;context;value={setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Yu:this.instances,add:e=>{(this.canUseDOM?Yu:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Yu:this.instances).indexOf(e);(this.canUseDOM?Yu:this.instances).splice(t,1)}}};constructor(e,t){this.context=e,this.canUseDOM=t||!1,t||(e.helmet=sg({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},PO=parseInt(I.version.split(".")[0],10),ig=PO>=19,MO={},A_=I.createContext(MO),O_=class R_ extends v.Component{static canUseDOM=fy;helmetData;constructor(t){super(t),ig?this.helmetData=null:this.helmetData=new ag(this.props.context||{},R_.canUseDOM)}render(){return ig?I.createElement(I.Fragment,null,this.props.children):I.createElement(A_.Provider,{value:this.helmetData.value},this.props.children)}},Zi=(e,t)=>{const n=document.head||document.querySelector("head"),a=n.querySelectorAll(`${e}[${kr}]`),o=[].slice.call(a),l=[];let d;return t&&t.length&&t.forEach(h=>
10{const m=document.createElement(e);for(const g in h)if(Object.prototype.hasOwnProperty.call(h,g))if(g==="innerHTML")m.innerHTML=h.innerHTML;else if(g==="cssText"){const y=h.cssText;m.appendChild(document.createTextNode(y))}else{const y=g,x=typeof h[y]>"u"?"":h[y];m.setAttribute(g,x)}m.setAttribute(kr,"true"),o.some((g,y)=>(d=y,m.isEqualNode(g)))?o.splice(d,1):l.push(m)}),o.forEach(h=>h.parentNode?.removeChild(h)),l.forEach(h=>n.appendChild(h)),{oldTags:o,newTags:l}},og=(e,t)=>{const n=document.getElementsByTagName(e)[0];if(!n)return;const a=n.getAttribute(kr),o=a?a.split(","):[],l=[...o],d=Object.keys(t);for(const h of d){const m=t[h]||"";n.getAttribute(h)!==m&&n.setAttribute(h,m),o.indexOf(h)===-1&&o.push(h);const g=l.indexOf(h);g!==-1&&l.splice(g,1)}for(let h=l.length-1;h>=0;h-=1)n.removeAttribute(l[h]);o.length===l.length?n.removeAttribute(kr):n.getAttribute(kr)!==d.join(",")&&n.setAttribute(kr,d.join(","))},DO=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=j_(e)),og("title",t)},Hw=(e,t)=>{const{baseTag:n,bodyAttributes:a,htmlAttributes:o,linkTags:l,metaTags:d,noscriptTags:h,onChangeClientState:m,scriptTags:g,styleTags:y,title:x,titleAttributes:b}=e;og("body",a),og("html",o),DO(x,b);const C={baseTag:Zi("base",n),linkTags:Zi("link",l),metaTags:Zi("meta",d),noscriptTags:Zi("noscript",h),scriptTags:Zi("script",g),styleTags:Zi("style",y)},E={},w={};Object.keys(C).forEach(_=>{const{newTags:R,oldTags:A}=C[_];R.length&&(E[_]=R),A.length&&(w[_]=C[_].oldTags)}),t&&t(),m(e,E,w)},Ll=null,IO=e=>{Ll&&cancelAnimationFrame(Ll),e.defer?Ll=requestAnimationFrame(()=>{Hw(e,()=>{Ll=null})}):(Hw(e),Ll=null)},LO=IO,qw=class extends v.Component{rendered=!1;shouldComponentUpdate(e){return!bO(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:t}=this.props.context;let n=null;const a=EO(e.get().map(o=>{const{context:l,...d}=o.props;return d}));O_.canUseDOM?LO(a):sg&&(n=sg(a)),t(n)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},hd=[],Gw=e=>{const t={};for(const n of Object.keys(e))t[T_[n]||n]=e[n];return t},Ia=e=>{const t={};for(const n of Object.keys(e)){const a=Zd[n];t[a||n]=e[n]}return t},Kw=(e,t)=>{if(!fy)return;const n=document.getElementsByTagName(e)[0];if(!n)return;const a="data-rh-managed",o=n.getAttribute(a),l=o?o.split(","):[],d=Object.keys(t);for(const h of l)d.includes(h)||n.removeAttribute(h);for(const h of d){const m=t[h];m==null||m===!1?n.removeAttribute(h):m===!0?n.setAttribute(h,""):n.setAttribute(h,String(m))}d.length>0?n.setAttribute(a,d.join(",")):n.removeAttribute(a)},op=()=>{const e={},t={};for(const n of hd){const{htmlAttributes:a,bodyAttributes:o}=n.props;a&&Object.assign(e,Gw(a)),o&&Object.assign(t,Gw(o))}Kw("html",e),Kw("body",t)},zO=class extends v.Component{componentDidMount(){hd.push(this),op()}componentDidUpdate(){op()}componentWillUnmount(){const e=hd.indexOf(this);e!==-1&&hd.splice(e,1),op()}resolveTitle(){const{title:e,titleTemplate:t,defaultTitle:n}=this.props;return e&&t?t.replace(/%s/g,()=>Array.isArray(e)?e.join(""):e):e||n||void 0}renderTitle(){const e=this.resolveTitle();if(e===void 0)return null;const t=this.props.titleAttributes||{};return I.createElement("title",Ia(t),e)}renderBase(){const{base:e}=this.props;return e?I.createElement("base",Ia(e)):null}renderMeta(){const{meta:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>I.createElement("meta",{key:n,...Ia(t)}))}renderLink(){const{link:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>I.createElement("link",{key:n,...Ia(t)}))}renderScript(){const{script:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:a,...o}=t,l=Ia(o);return a&&(l.dangerouslySetInnerHTML={__html:a}),I.createElement("script",{key:n,...l})})}renderStyle(){const{style:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{cssText:a,...o}=t,l=Ia(o);return a&&(l.dangerouslySetInnerHTML={__html:a}),I.createElement("style",{key:n,...l})})}renderNoscript(){const{noscript:e}=this.props;return!e||!Array.isArray(e)?null:e.map((t,n)=>{const{innerHTML:a,...o}=t,l=Ia(o);return a&&(l.dangerouslySetInnerHTML={__html:a}),I.createElement("noscript",{key:n,...l})})}render(){return I.createElement(I.Fragment,null,this.renderTitle(),this.renderBase(),this.renderMeta(),this.renderLink(),this.renderScript(),this.renderStyle(),this.renderNoscript())}},UO=class extends v.Component{static defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1};shouldComponentUpdate(e){return!mO($w(this.props,"helmetData"),$w(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,n,a){return{...t,[e.type]:[...t[e.type]||[],{...n,...this.mapNestedChildrenToProps(e,a)}]}}mapObjectTypeChildren(e,t,n,a){switch(e.type){case"title":return{...t,[e.type]:a,titleAttributes:{...n}};case"body":return{...t,bodyAttributes:{...n}};case"html":return{...t,htmlAttributes:{...n}};default:return{...t,[e.type]:{...n}}}}mapArrayTypeChildrenToProps(e,t){let n={...t};return Object.keys(e).forEach(a=>{n={...n,[a]:e[a]}}),n}
10warnOnInvalidChildren(e,t){return Vw(Bw.some(n=>e.type===n),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${Bw.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),Vw(!t||typeof t=="string"||Array.isArray(t)&&!t.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let n={};return I.Children.forEach(e,a=>{if(!a||!a.props)return;const{children:o,...l}=a.props,d=Object.keys(l).reduce((m,g)=>(m[T_[g]||g]=l[g],m),{});let{type:h}=a;switch(typeof h=="symbol"?h=h.toString():this.warnOnInvalidChildren(a,o),h){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(a,n,d,o);break;default:t=this.mapObjectTypeChildren(a,t,d,o);break}}),this.mapArrayTypeChildrenToProps(n,t)}render(){const{children:e,...t}=this.props;let n={...t},{helmetData:a}=t;if(e&&(n=this.mapChildrenToProps(e,n)),a&&!(a instanceof ag)){const o=a;a=new ag(o.context,!0),delete n.helmetData}return ig?I.createElement(zO,{...n}):a?I.createElement(qw,{...n,context:a.value}):I.createElement(A_.Consumer,null,o=>I.createElement(qw,{...n,context:o}))}};const VO=1,FO=1e6;let lp=0;function BO(){return lp=(lp+1)%Number.MAX_SAFE_INTEGER,lp.toString()}const cp=new Map,Qw=e=>{if(cp.has(e))return;const t=setTimeout(()=>{cp.delete(e),Kl({type:"REMOVE_TOAST",toastId:e})},FO);cp.set(e,t)},$O=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,VO)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Qw(n):e.toasts.forEach(a=>{Qw(a.id)}),{...e,toasts:e.toasts.map(a=>a.id===n||n===void 0?{...a,open:!1}:a)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},md=[];let pd={toasts:[]};function Kl(e){pd=$O(pd,e),md.forEach(t=>{t(pd)})}function HO({...e}){const t=BO(),n=o=>Kl({type:"UPDATE_TOAST",toast:{...o,id:t}}),a=()=>Kl({type:"DISMISS_TOAST",toastId:t});return Kl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||a()}}}),{id:t,dismiss:a,update:n}}function ti(){const[e,t]=v.useState(pd);return v.useEffect(()=>(md.push(t),()=>{const n=md.indexOf(t);n>-1&&md.splice(n,1)}),[e]),{...e,toast:HO,dismiss:n=>Kl({type:"DISMISS_TOAST",toastId:n})}}var xs=n_();const qO=ei(xs),GO=Qd({__proto__:null,default:qO},[xs]);var KO=Object.defineProperty,ko=(e,t)=>KO(e,"name",{value:t,configurable:!0}),P_=!!(typeof window<"u"&&window.document&&window.document.createElement);function xe(e,t,{checkForDefaultPrevented:n=!0}={}){return ko(function(o){if(e?.(o),n===!1||!o||!o.defaultPrevented)return t?.(o)},"handleEvent")}ko(xe,"composeEventHandlers");function QO(e){if(!P_)throw new Error("Cannot access window outside of the DOM");return e?.ownerDocument?.defaultView??window}ko(QO,"getOwnerWindow");function lg(e){if(!P_)throw new Error("Cannot access document outside of the DOM");return e?.ownerDocument??document}ko(lg,"getOwnerDocument");function M_(e,t=!1){const{activeElement:n}=lg(e);if(!n?.nodeName)return null;if(D_(n)&&n.contentDocument)return M_(n.contentDocument.body,t);if(t){const a=n.getAttribute("aria-activedescendant");if(a){const o=lg(n).getElementById(a);if(o)return o}}return n}ko(M_,"getActiveElement");function D_(e){return e.tagName==="IFRAME"}ko(D_,"isFrame");var YO=Object.defineProperty,hy=(e,t)=>YO(e,"name",{value:t,configurable:!0});function cg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}hy(cg,"setRef");function I_(...e){return t=>{let n=!1;const a=e.map(o=>{const l=cg(o,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let o=0;o<a.length;o++){const l=a[o];typeof l=="function"?l():cg(e[o],null)}}}}hy(I_,"composeRefs");function Qe(...e){return v.useCallback(I_(...e),e)}hy(Qe,"useComposedRefs");var ZO=Object.defineProperty,pr=(e,t)=>
10ZO(e,"name",{value:t,configurable:!0});function WO(e,t){const n=v.createContext(t);n.displayName=e+"Context";const a=pr(l=>{const{children:d,...h}=l,m=v.useMemo(()=>h,Object.values(h));return u.jsx(n.Provider,{value:m,children:d})},"Provider");a.displayName=e+"Provider";function o(l,d={}){const{optional:h=!1}=d,m=v.useContext(n);if(m)return m;if(t!==void 0)return t;if(!h)throw new Error(`\`${l}\` must be used within \`${e}\``)}return pr(o,"useContext"),[a,o]}pr(WO,"createContext");function Bn(e,t=[]){let n=[];function a(l,d){const h=v.createContext(d);h.displayName=l+"Context";const m=n.length;n=[...n,d];const g=pr(x=>{const{scope:b,children:C,...E}=x,w=b?.[e]?.[m]||h,_=v.useMemo(()=>E,Object.values(E));return u.jsx(w.Provider,{value:_,children:C})},"Provider");g.displayName=l+"Provider";function y(x,b,C={}){const{optional:E=!1}=C,w=b?.[e]?.[m]||h,_=v.useContext(w);if(_)return _;if(d!==void 0)return d;if(!E)throw new Error(`\`${x}\` must be used within \`${l}\``)}return pr(y,"useContext"),[g,y]}pr(a,"createContext");const o=pr(()=>{const l=n.map(d=>v.createContext(d));return pr(function(h){const m=h?.[e]||l;return v.useMemo(()=>({[`__scope${e}`]:{...h,[e]:m}}),[h,m])},"useScope")},"createScope");return o.scopeName=e,[a,L_(o,...t)]}pr(Bn,"createContextScope");function L_(...e){const t=e[0];if(e.length===1)return t;const n=pr(()=>{const a=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return pr(function(l){const d=a.reduce((h,{useScope:m,scopeName:g})=>{const x=m(l)[`__scope${g}`];return{...h,...x}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:d}),[d])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}pr(L_,"composeContextScopes");var XO=Object.defineProperty,Rr=(e,t)=>XO(e,"name",{value:t,configurable:!0});function Or(e){const t=v.forwardRef((n,a)=>{let{children:o,...l}=n,d=null,h=!1;const m=[];ug(o)&&typeof Zu=="function"&&(o=Zu(o._payload)),v.Children.forEach(o,b=>{if($_(b)){h=!0;const C=b;let E="child"in C.props?C.props.child:C.props.children;ug(E)&&typeof Zu=="function"&&(E=Zu(E._payload)),d=JO(C,E),m.push(d?.props?.children)}else m.push(b)}),d?d=v.cloneElement(d,void 0,m):!h&&v.Children.count(o)===1&&v.isValidElement(o)&&(d=o);const g=d?B_(d):void 0,y=Qe(a,g);if(!d){if(o||o===0)throw new Error(h?nR(e):tR(e));return o}const x=F_(l,d.props??{});return d.type!==v.Fragment&&(x.ref=a?y:g),v.cloneElement(d,x)});return t.displayName=`${e}.Slot`,t}Rr(Or,"createSlot");var z_=Or("Slot"),U_=Symbol.for("radix.slottable");function V_(e){const t=Rr(n=>"child"in n?n.children(n.child):n.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=U_,t}Rr(V_,"createSlottable");var JO=Rr((e,t)=>{if("child"in e.props){const n=e.props.child;return v.isValidElement(n)?v.cloneElement(n,void 0,e.props.children(n.props.children)):null}return v.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function F_(e,t){const n={...t};for(const a in t){const o=e[a],l=t[a];/^on[A-Z]/.test(a)?o&&l?n[a]=(...h)=>{const m=l(...h);return o(...h),m}:o&&(n[a]=o):a==="style"?n[a]={...o,...l}:a==="className"&&(n[a]=[o,l].filter(Boolean).join(" "))}return{...e,...n}}Rr(F_,"mergeProps");function B_(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Rr(B_,"getElementRef");function $_(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===U_}Rr($_,"isSlottable");var eR=Symbol.for("react.lazy");function ug(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===eR&&"_payload"in e&&H_(e._payload)}Rr(ug,"isLazyComponent");function H_(e){return typeof e=="object"&&e!==null&&"then"in e}Rr(H_,"isPromiseLike");var tR=Rr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),nR=Rr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),Zu=ca[" use ".trim().toString()],rR=Object.defineProperty,nn=(e,t)=>rR(e,"name",{value:t,configurable:!0});function mc(e){const t=e+"CollectionProvider",[n,a]=Bn(t),[o,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=nn(w=>{const{scope:_,children:R}=w,A=v.useRef(null),k=v.useRef(new Map).current;return u.jsx(o,{scope:_,itemMap:k,collectionRef:A,children:R})},"CollectionProvider");d.displayName=t;const h=e+"CollectionSlot",m=Or(h),g=v.forwardRef((w,_)=>{const{scope:R,children:A}=w,k=l(h,R),N=Qe(_,k.collectionRef);return u.jsx(m,{ref:N,children:A})});g.displayName=h;const y=e+"CollectionItemSlot",x="data-radix-collection-item",b=Or(y),C=v.forwardRef((w,_)=>{const{scope:R,children:A,...k}=w,N=v.useRef(null),O=Qe(_,N),U=l(y,R);return v.useEffect(()=>(U.itemMap.set(N,{ref:N,...k}),()=>{U.itemMap.delete(N)})),u.jsx(b,{[x]:"",ref:O,children:A})});C.displayName=y;function E(w){const _=l(e+"CollectionConsumer",w);return v.useCallback(()=>{const A=_.collectionRef.current;if(!A)return[];const k=Array.from(A.querySelectorAll(`[${x}]`));return Array.from(_.itemMap.values()).sort((U,Y)=>k.indexOf(U.ref.current)-k.indexOf(Y.ref.current))},[_.collectionRef,_.itemMap])}return nn(E,"useCollection"),[{Provider:d,Slot:g,ItemSlot:C},E,a]}nn(mc,"createCollection");var Yw=new WeakMap,Ft,Wn,up=(Wn=class extends Map{constructor(n){super(n);cw(this,Ft);Gm(this,Ft,[...super.keys()]),Yw.set(this,!0)}set(n,a){return Yw.get(this)&&(this.has(n)?xn(this,Ft)[xn(this,Ft).indexOf(n)]=n:xn(this,Ft).push(n)),super.set(n,a),this}insert(n,a,o){const l=this.has(a),d=xn(this,Ft).length,h=my(n);let m=h>=0?h:d+h;const g=m<0||m>=d?-1:m;if(g===this.size||l&&g===this.size-1||g===-1)return this.set(a,o),this;const y=this.size+(l?0:1);h<0&&m++;const x=[...xn(this,Ft)];let b,C=!1;for(let E=m;E<y;E++)if(m===E){let w=x[E];x[E]===a&&(w=x[E+1]),l&&this.delete(a),b=this.get(w),this.set(a,o)}else{!C&&x[E-1]===a&&(C=!0);const w=x[C?E:E-1],_=b;b=this.get(w),this.delete(w),this.set(w,_)}return this}with(n,a,o){const l=new Wn(this);return l.insert(n,a,o),l}before(n){const a=xn(this,Ft).indexOf(n)-1;if(!(a<0))return this.entryAt(a)}setBefore(n,a,o){const l=xn(this,Ft).indexOf(n);return l===-1?this:this.insert(l,a,o)}after(n){let a=xn(this,Ft).indexOf(n);if(a=a===-1||a===this.size-1?-1:a+1,a!==-1)return this.entryAt(a)}setAfter(n,a,o){const l=xn(this,Ft).indexOf(n);return l===-1?this:this.insert(l+1,a,o)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return Gm(this,Ft,[]),super.clear()}delete(n){const a=super.delete(n);
10return a&&xn(this,Ft).splice(xn(this,Ft).indexOf(n),1),a}deleteAt(n){const a=this.keyAt(n);return a!==void 0?this.delete(a):!1}at(n){const a=gd(xn(this,Ft),n);if(a!==void 0)return this.get(a)}entryAt(n){const a=gd(xn(this,Ft),n);if(a!==void 0)return[a,this.get(a)]}indexOf(n){return xn(this,Ft).indexOf(n)}keyAt(n){return gd(xn(this,Ft),n)}from(n,a){const o=this.indexOf(n);if(o===-1)return;let l=o+a;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.at(l)}keyFrom(n,a){const o=this.indexOf(n);if(o===-1)return;let l=o+a;return l<0&&(l=0),l>=this.size&&(l=this.size-1),this.keyAt(l)}find(n,a){let o=0;for(const l of this){if(Reflect.apply(n,a,[l,o,this]))return l;o++}}findIndex(n,a){let o=0;for(const l of this){if(Reflect.apply(n,a,[l,o,this]))return o;o++}return-1}filter(n,a){const o=[];let l=0;for(const d of this)Reflect.apply(n,a,[d,l,this])&&o.push(d),l++;return new Wn(o)}map(n,a){const o=[];let l=0;for(const d of this)o.push([d[0],Reflect.apply(n,a,[d,l,this])]),l++;return new Wn(o)}reduce(...n){const[a,o]=n;let l=0,d=o??this.at(0);for(const h of this)l===0&&n.length===1?d=h:d=Reflect.apply(a,this,[d,h,l,this]),l++;return d}reduceRight(...n){const[a,o]=n;let l=o??this.at(-1);for(let d=this.size-1;d>=0;d--){const h=this.at(d);d===this.size-1&&n.length===1?l=h:l=Reflect.apply(a,this,[l,h,d,this])}return l}toSorted(n){const a=[...this.entries()].sort(n);return new Wn(a)}toReversed(){const n=new Wn;for(let a=this.size-1;a>=0;a--){const o=this.keyAt(a),l=this.get(o);n.set(o,l)}return n}toSpliced(...n){const a=[...this.entries()];return a.splice(...n),new Wn(a)}slice(n,a){const o=new Wn;let l=this.size-1;if(n===void 0)return o;n<0&&(n=n+this.size),a!==void 0&&a>0&&(l=a-1);for(let d=n;d<=l;d++){const h=this.keyAt(d),m=this.get(h);o.set(h,m)}return o}every(n,a){let o=0;for(const l of this){if(!Reflect.apply(n,a,[l,o,this]))return!1;o++}return!0}some(n,a){let o=0;for(const l of this){if(Reflect.apply(n,a,[l,o,this]))return!0;o++}return!1}},Ft=new WeakMap,nn(Wn,"OrderedDict"),Wn);function gd(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=q_(e,t);return n===-1?void 0:e[n]}nn(gd,"at");function q_(e,t){const n=e.length,a=my(t),o=a>=0?a:n+a;return o<0||o>=n?-1:o}nn(q_,"toSafeIndex");function my(e){return e!==e||e===0?0:Math.trunc(e)}nn(my,"toSafeInteger");function sR(e){const t=e+"CollectionProvider",[n,a]=Bn(t),[o,l]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new up,setItemMap:nn(()=>{},"setItemMap")}),d=nn(({state:k,...N})=>k?u.jsx(m,{...N,state:k}):u.jsx(h,{...N}),"CollectionProvider");d.displayName=t;const h=nn(k=>{const N=_();return u.jsx(m,{...k,state:N})},"CollectionInit");h.displayName=t+"Init";const m=nn(k=>{const{scope:N,children:O,state:U}=k,Y=v.useRef(null),[F,W]=v.useState(null),ce=Qe(Y,W),[fe,X]=U;return v.useEffect(()=>{if(!F)return;const ae=Q_(()=>{});return ae.observe(F,{childList:!0,subtree:!0}),()=>{ae.disconnect()}},[F]),u.jsx(o,{scope:N,itemMap:fe,setItemMap:X,collectionRef:ce,collectionRefObject:Y,collectionElement:F,children:O})},"CollectionProviderImpl");m.displayName=t+"Impl";const g=e+"CollectionSlot",y=Or(g),x=v.forwardRef((k,N)=>{const{scope:O,children:U}=k,Y=l(g,O),F=Qe(N,Y.collectionRef);return u.jsx(y,{ref:F,children:U})});x.displayName=g;const b=e+"CollectionItemSlot",C="data-radix-collection-item",E=Or(b),w=v.forwardRef((k,N)=>{const{scope:O,children:U,...Y}=k,F=v.useRef(null),[W,ce]=v.useState(null),fe=Qe(N,F,ce),X=l(b,O),{setItemMap:ae}=X,oe=v.useRef(Y);G_(oe.current,Y)||(oe.current=Y);const ve=oe.current;return v.useEffect(()=>{const D=ve;return ae(q=>W?q.has(W)?q.set(W,{...D,element:W}).toSorted(dg):(q.set(W,{...D,element:W}),q.toSorted(dg)):q),()=>{ae(q=>!W||!q.has(W)?q:(q.delete(W),new up(q)))}},[W,ve,ae]),u.jsx(E,{[C]:"",ref:fe,children:U})});w.displayName=b;function _(){return v.useState(new up)}nn(_,"useInitCollection");function R(k){const{itemMap:N}=l(e+"CollectionConsumer",k);return N}return nn(R,"useCollection"),[{Provider:d,Slot:x,ItemSlot:w},{createCollectionScope:a,useCollection:R,useInitCollection:_}]}nn(sR,"createCollection");function G_(e,t){if(e===t)return!0;
10if(typeof e!="object"||typeof t!="object"||e==null||t==null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(t,o)||e[o]!==t[o])return!1;return!0}nn(G_,"shallowEqual");function K_(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}nn(K_,"isElementPreceding");function dg(e,t){return!e[1].element||!t[1].element?0:K_(e[1].element,t[1].element)?-1:1}nn(dg,"sortByDocumentPosition");function Q_(e){return new MutationObserver(n=>{for(const a of n)if(a.type==="childList"){e();return}})}nn(Q_,"getChildListObserver");var aR=Object.defineProperty,iR=(e,t)=>aR(e,"name",{value:t,configurable:!0}),oR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ve=oR.reduce((e,t)=>{const n=Or(`Primitive.${t}`),a=v.forwardRef((o,l)=>{const{asChild:d,...h}=o,m=d?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),u.jsx(m,{...h,ref:l})});return a.displayName=`Primitive.${t}`,{...e,[t]:a}},{});function Wd(e,t){e&&xs.flushSync(()=>e.dispatchEvent(t))}iR(Wd,"dispatchDiscreteCustomEvent");var lR=Object.defineProperty,cR=(e,t)=>lR(e,"name",{value:t,configurable:!0});function yn(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>((...n)=>t.current?.(...n)),[])}cR(yn,"useCallbackRef");var uR=Object.defineProperty,Qt=(e,t)=>uR(e,"name",{value:t,configurable:!0}),fg="dismissableLayer.update",dR="dismissableLayer.pointerDownOutside",fR="dismissableLayer.focusOutside",Zw,py=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),Ao=v.forwardRef(Qt(function(t,n){const{disableOutsidePointerEvents:a=!1,deferPointerDownOutside:o=!1,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:h,onInteractOutside:m,onDismiss:g,...y}=t,x=v.useContext(py),[b,C]=v.useState(null),E=b?.ownerDocument??globalThis?.document,[,w]=v.useState({}),_=Qe(n,C),R=Array.from(x.layers),[A]=[...x.layersWithOutsidePointerEventsDisabled].slice(-1),k=A?R.indexOf(A):-1,N=b?R.indexOf(b):-1,O=x.layersWithOutsidePointerEventsDisabled.size>0,U=N>=k,Y=v.useRef(!1),F=Z_(X=>{d?.(X),m?.(X),X.defaultPrevented||g?.()},{ownerDocument:E,deferPointerDownOutside:o,isDeferredPointerDownOutsideRef:Y,dismissableSurfaces:x.dismissableSurfaces,shouldHandlePointerDownOutside:v.useCallback(X=>{if(!(X instanceof Node))return!1;const ae=[...x.branches].some(oe=>oe.contains(X));return U&&!ae},[x.branches,U])}),W=W_(X=>{if(o&&Y.current)return;const ae=X.target;[...x.branches].some(ve=>ve.contains(ae))||(h?.(X),m?.(X),X.defaultPrevented||g?.())},E),ce=b?N===R.length-1:!1,fe=yn(X=>{X.key==="Escape"&&(l?.(X),!X.defaultPrevented&&g&&(X.preventDefault(),g()))});return v.useEffect(()=>{if(ce)return E.addEventListener("keydown",fe,{capture:!0}),()=>E.removeEventListener("keydown",fe,{capture:!0})},[E,ce,fe]),v.useEffect(()=>{if(b)return a&&(x.layersWithOutsidePointerEventsDisabled.size===0&&(Zw=E.body.style.pointerEvents,E.body.style.pointerEvents="none"),x.layersWithOutsidePointerEventsDisabled.add(b)),x.layers.add(b),hg(),()=>{a&&(x.layersWithOutsidePointerEventsDisabled.delete(b),x.layersWithOutsidePointerEventsDisabled.size===0&&(E.body.style.pointerEvents=Zw))}},[b,E,a,x]),v.useEffect(()=>()=>{b&&(x.layers.delete(b),x.layersWithOutsidePointerEventsDisabled.delete(b),hg())},[b,x]),v.useEffect(()=>{const X=Qt(()=>w({}),"handleUpdate");return document.addEventListener(fg,X),()=>document.removeEventListener(fg,X)},[]),u.jsx(Ve.div,{...y,ref:_,style:{pointerEvents:O?U?"auto":"none":void 0,...t.style},onFocusCapture:xe(t.onFocusCapture,W.onFocusCapture),onBlurCapture:xe(t.onBlurCapture,W.onBlurCapture),onPointerDownCapture:xe(t.onPointerDownCapture,F.onPointerDownCapture)})},"DismissableLayer")),hR=v.forwardRef(Qt(function(t,n){const a=v.useContext(py),o=v.useRef(null),l=Qe(n,o);return v.useEffect(()=>{const d=o.current;if(d)return a.branches.add(d),()=>{a.branches.delete(d)}},[a.branches]),u.jsx(Ve.div,{...t,ref:l})},"DismissableLayerBranch"));function Y_(){const e=v.useContext(py),[t,n]=v.useState(null);return v.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}Qt(Y_,"useDismissableLayerSurface");var mR=Qt(()=>!0,"IS_TRUE");function Z_(e,t){const{ownerDocument:n=globalThis?.document,deferPointerDownOutside:a=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:l,shouldHandlePointerDownOutside:d=mR}=t,h=yn(e),m=v.useRef(!1),g=v.useRef(!1),y=v.useRef(new Map),x=v.useRef(()=>{});return v.useEffect(()=>{function b(){g.current=!1,o.current=!1,y.current.clear()}Qt(b,"resetOutsideInteraction");function C(){return Array.from(y.current.values()).some(Boolean)}Qt(C,"isOutsideInteractionIntercepted");function E(k){if(!g.current)return;const N=k.target;N instanceof Node&&[...l].some(U=>U.contains(N))||y.current.set(k.type,!0),k.type==="click"&&window.setTimeout(()=>{g.current&&x.current()},0)}Qt(E,"handleInteractionCapture");function w(k){g.current&&y.current.set(k.type,!1)}Qt(w,"handleInteractionBubble");const _=Qt(k=>{if(k.target&&!m.current){let N=function(){n.removeEventListener("click",x.
10current);const U=C();b(),U||gy(dR,h,O,{discrete:!0})};if(Qt(N,"handleAndDispatchPointerDownOutsideEvent"),!d(k.target)){n.removeEventListener("click",x.current),b(),m.current=!1;return}const O={originalEvent:k};g.current=!0,o.current=a&&k.button===0,y.current.clear(),!a||k.button!==0?N():(n.removeEventListener("click",x.current),x.current=N,n.addEventListener("click",x.current,{once:!0}))}else n.removeEventListener("click",x.current),b();m.current=!1},"handlePointerDown"),R=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const k of R)n.addEventListener(k,E,!0),n.addEventListener(k,w);const A=window.setTimeout(()=>{n.addEventListener("pointerdown",_)},0);return()=>{window.clearTimeout(A),n.removeEventListener("pointerdown",_),n.removeEventListener("click",x.current);for(const k of R)n.removeEventListener(k,E,!0),n.removeEventListener(k,w)}},[n,h,a,o,l,d]),{onPointerDownCapture:Qt(()=>m.current=!0,"onPointerDownCapture")}}Qt(Z_,"usePointerDownOutside");function W_(e,t=globalThis?.document){const n=yn(e),a=v.useRef(!1);return v.useEffect(()=>{const o=Qt(l=>{l.target&&!a.current&&gy(fR,n,{originalEvent:l},{discrete:!1})},"handleFocus");return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:Qt(()=>a.current=!0,"onFocusCapture"),onBlurCapture:Qt(()=>a.current=!1,"onBlurCapture")}}Qt(W_,"useFocusOutside");function hg(){const e=new CustomEvent(fg);document.dispatchEvent(e)}Qt(hg,"dispatchUpdate");function gy(e,t,n,{discrete:a}){const o=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),a?Wd(o,l):o.dispatchEvent(l)}Qt(gy,"handleAndDispatchCustomEvent");var pR=Ao,gR=hR,Ct=globalThis?.document?v.useLayoutEffect:()=>{},yR=Object.defineProperty,vR=(e,t)=>yR(e,"name",{value:t,configurable:!0}),pc=v.forwardRef(vR(function(t,n){const{container:a,...o}=t,[l,d]=v.useState(!1);Ct(()=>d(!0),[]);const h=a||l&&globalThis?.document?.body;return h?xs.createPortal(u.jsx(Ve.div,{...o,ref:n}),h):null},"Portal")),bR=Object.defineProperty,gs=(e,t)=>bR(e,"name",{value:t,configurable:!0});function X_(e,t){return v.useReducer((n,a)=>t[n][a]??n,e)}gs(X_,"useStateMachine");var rr=gs(e=>{const{present:t,children:n}=e,a=J_(t),o=typeof n=="function"?n({present:a.isPresent}):v.Children.only(n),l=eC(a.ref,tC(o));return typeof n=="function"||a.isPresent?v.cloneElement(o,{ref:l}):null},"Presence");function J_(e){const[t,n]=v.useState(),a=v.useRef(null),o=v.useRef(e),l=v.useRef("none"),d=v.useRef(void 0),h=e?"mounted":"unmounted",[m,g]=X_(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{m==="mounted"?(l.current=d.current??ro(a.current),d.current=void 0):l.current="none"},[m]),Ct(()=>{const y=a.current,x=o.current;if(x!==e){const C=l.current,E=ro(y);e?(d.current=E,g("MOUNT")):E==="none"||y?.display==="none"?g("UNMOUNT"):g(x&&C!==E?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,g]),Ct(()=>{if(t){let y;const x=t.ownerDocument.defaultView??window,b=gs(E=>{const _=ro(a.current).includes(CSS.escape(E.animationName));if(E.target===t&&_&&(g("ANIMATION_END"),!o.current)){const R=t.style.animationFillMode;t.style.animationFillMode="forwards",y=x.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=R)})}},"handleAnimationEnd"),C=gs(E=>{E.target===t&&(l.current=ro(a.current))},"handleAnimationStart");return t.addEventListener("animationstart",C),t.addEventListener("animationcancel",b),t.addEventListener("animationend",b),()=>{x.clearTimeout(y),t.removeEventListener("animationstart",C),t.removeEventListener("animationcancel",b),t.removeEventListener("animationend",b)}}else g("ANIMATION_END")},[t,g]),{isPresent:["mounted","unmountSuspended"].includes(m),ref:v.useCallback(y=>{if(y){const x=getComputedStyle(y);a.current=x,d.current=ro(x)}else a.current=null;n(y)},[])}}gs(J_,"usePresence");function mg(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}gs(mg,"setRef");function eC(...e){const t=v.useRef(e);return t.current=e,v.useCallback(n=>{const a=t.current;let o=!1;const l=a.map(d=>{const h=mg(d,n);return!o&&typeof h=="function"&&(o=!0),h});if(o)return()=>{for(let d=0;d<l.length;d++){const h=l[d];typeof h=="function"?h():mg(a[d],null)}}},[])}gs(eC,"useStableComposedRefs");function ro(e){return e?.animationName||"none"}gs(ro,"getAnimationName");function tC(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}
10gs(tC,"getElementRef");var xR=Object.defineProperty,wR=(e,t)=>xR(e,"name",{value:t,configurable:!0}),Ww=ca[" useEffectEvent ".trim().toString()],Xw=ca[" useInsertionEffect ".trim().toString()];function nC(e){if(typeof Ww=="function")return Ww(e);const t=v.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof Xw=="function"?Xw(()=>{t.current=e}):Ct(()=>{t.current=e}),v.useMemo(()=>((...n)=>t.current?.(...n)),[])}wR(nC,"useEffectEvent");var SR=Object.defineProperty,gc=(e,t)=>SR(e,"name",{value:t,configurable:!0}),_R=ca[" useInsertionEffect ".trim().toString()]||Ct;function $r({prop:e,defaultProp:t,onChange:n=gc(()=>{},"onChange"),caller:a}){const[o,l,d]=rC({defaultProp:t,onChange:n}),h=e!==void 0,m=h?e:o,g=v.useCallback(y=>{if(h){const x=sC(y)?y(e):y;x!==e&&d.current?.(x)}else l(y)},[h,e,l,d]);return[m,g]}gc($r,"useControllableState");function rC({defaultProp:e,onChange:t}){const[n,a]=v.useState(e),o=v.useRef(n),l=v.useRef(t);return _R(()=>{l.current=t},[t]),v.useEffect(()=>{o.current!==n&&(l.current?.(n),o.current=n)},[n,o]),[n,a,l]}gc(rC,"useUncontrolledState");function sC(e){return typeof e=="function"}gc(sC,"isFunction");var Jw=Symbol("RADIX:SYNC_STATE");function CR(e,t,n,a){const{prop:o,defaultProp:l,onChange:d,caller:h}=t,m=o!==void 0,g=nC(d),y=[{...n,state:l}];a&&y.push(a);const[x,b]=v.useReducer((_,R)=>{if(R.type===Jw)return{..._,state:R.state};const A=e(_,R);return m&&!Object.is(A.state,_.state)&&g(A.state),A},...y),C=x.state,E=v.useRef(C);v.useEffect(()=>{E.current!==C&&(E.current=C,m||g(C))},[C,E,m]);const w=v.useMemo(()=>o!==void 0?{...x,state:o}:x,[x,o]);return v.useEffect(()=>{m&&!Object.is(o,x.state)&&b({type:Jw,state:o})},[o,x.state,m]),[w,b]}gc(CR,"useControllableStateReducer");var ER=Object.defineProperty,TR=(e,t)=>ER(e,"name",{value:t,configurable:!0}),aC=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"}),yy=v.forwardRef(TR(function(t,n){return u.jsx(Ve.span,{...t,ref:n,style:{...aC,...t.style}})},"VisuallyHidden")),jR=yy,NR=Object.defineProperty,xt=(e,t)=>NR(e,"name",{value:t,configurable:!0}),iC="ToastProvider",[vy,oC,kR]=mc("Toast"),[lC,dB]=Bn("Toast",[kR]),[AR,Xd]=lC(iC),OR=xt(e=>{const{__scopeToast:t,label:n="Notification",duration:a=5e3,swipeDirection:o="right",swipeThreshold:l=50,announcerContainer:d,children:h}=e,[m,g]=v.useState(null),[y,x]=v.useState(0),b=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${iC}\`. Expected non-empty \`string\`.`),u.jsx(vy.Provider,{scope:t,children:u.jsx(AR,{scope:t,label:n,duration:a,swipeDirection:o,swipeThreshold:l,toastCount:y,viewport:m,onViewportChange:g,onToastAdd:v.useCallback(()=>x(C=>C+1),[]),onToastRemove:v.useCallback(()=>x(C=>C-1),[]),isClosePausedRef:b,announcerContainer:d,children:h})})},"ToastProvider"),RR="ToastViewport",PR=["F8"],pg="toast.viewportPause",gg="toast.viewportResume",MR=v.forwardRef(xt(function(t,n){const{__scopeToast:a,hotkey:o=PR,label:l="Notifications ({hotkey})",...d}=t,h=Xd(RR,a),m=oC(a),g=v.useRef(null),y=v.useRef(null),x=v.useRef(null),b=v.useRef(null),C=
10Qe(n,b,h.onViewportChange),E=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=h.toastCount>0;v.useEffect(()=>{const R=xt(A=>{o.length!==0&&o.every(N=>A[N]||A.code===N)&&b.current?.focus()},"handleKeyDown");return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[o]),v.useEffect(()=>{const R=g.current,A=b.current;if(w&&R&&A){const k=xt(()=>{if(!h.isClosePausedRef.current){const Y=new CustomEvent(pg);A.dispatchEvent(Y),h.isClosePausedRef.current=!0}},"handlePause"),N=xt(()=>{if(h.isClosePausedRef.current){const Y=new CustomEvent(gg);A.dispatchEvent(Y),h.isClosePausedRef.current=!1}},"handleResume"),O=xt(Y=>{!R.contains(Y.relatedTarget)&&N()},"handleFocusOutResume"),U=xt(()=>{R.contains(document.activeElement)||N()},"handlePointerLeaveResume");return R.addEventListener("focusin",k),R.addEventListener("focusout",O),R.addEventListener("pointermove",k),R.addEventListener("pointerleave",U),window.addEventListener("blur",k),window.addEventListener("focus",N),()=>{R.removeEventListener("focusin",k),R.removeEventListener("focusout",O),R.removeEventListener("pointermove",k),R.removeEventListener("pointerleave",U),window.removeEventListener("blur",k),window.removeEventListener("focus",N)}}},[w,h.isClosePausedRef]);const _=v.useCallback(({tabbingDirection:R})=>{const k=m().map(N=>{const O=N.ref.current,U=[O,...hC(O)];return R==="forwards"?U:U.reverse()});return(R==="forwards"?k.reverse():k).flat()},[m]);return v.useEffect(()=>{const R=b.current;if(R){const A=xt(k=>{const N=k.altKey||k.ctrlKey||k.metaKey;if(k.key==="Tab"&&!N){const U=document.activeElement,Y=k.shiftKey;if(k.target===R&&Y){y.current?.focus();return}const ce=_({tabbingDirection:Y?"backwards":"forwards"}),fe=ce.findIndex(X=>X===U);yd(ce.slice(fe+1))?k.preventDefault():Y?y.current?.focus():x.current?.focus()}},"handleKeyDown");return R.addEventListener("keydown",A),()=>R.removeEventListener("keydown",A)}},[m,_]),u.jsxs(gR,{ref:g,role:"region","aria-label":l.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&u.jsx(e1,{ref:y,onFocusFromOutsideViewport:()=>{const R=_({tabbingDirection:"forwards"});yd(R)}}),u.jsx(vy.Slot,{scope:a,children:u.jsx(Ve.ol,{tabIndex:-1,...d,ref:C})}),w&&u.jsx(e1,{ref:x,onFocusFromOutsideViewport:()=>{const R=_({tabbingDirection:"backwards"});yd(R)}})]})},"ToastViewport")),DR="ToastFocusProxy",e1=v.forwardRef(xt(function(t,n){const{__scopeToast:a,onFocusFromOutsideViewport:o,...l}=t,d=Xd(DR,a);return u.jsx(yy,{tabIndex:0,...l,ref:n,style:{position:"fixed"},onFocus:h=>{const m=h.relatedTarget;!d.viewport?.contains(m)&&o()}})},"ToastFocusProxy")),Jd="Toast",IR="toast.swipeStart",LR="toast.swipeMove",zR="toast.swipeCancel",UR="toast.swipeEnd",VR=v.forwardRef(xt(function(t,n){const{forceMount:a,open:o,defaultOpen:l,onOpenChange:d,...h}=t,[m,g]=$r({prop:o,defaultProp:l??!0,onChange:d,caller:Jd});return u.jsx(rr,{present:a||m,children:u.jsx($R,{open:m,...h,ref:n,onClose:()=>g(!1),onPause:yn(t.onPause),onResume:yn(t.onResume),onSwipeStart:xe(t.onSwipeStart,y=>{y.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:xe(t.onSwipeMove,y=>{const{x,y:b}=y.detail.delta;y.currentTarget.setAttribute("data-swipe","move"),y.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${x}px`),y.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${b}px`)}),onSwipeCancel:xe(t.onSwipeCancel,y=>{y.currentTarget.setAttribute("data-swipe","cancel"),y.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),y.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),y.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),y.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:xe(t.onSwipeEnd,y=>{const{x,y:b}=y.detail.delta;y.currentTarget.setAttribute("data-swipe","end"),y.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),y.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),y.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${x}px`),y.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${b}px`),g(!1)})})})},"Toast")),[FR,BR]=lC(Jd,{onClose(){}}),$R=v.forwardRef(xt(function(t,n){const{__scopeToast:a,type:o="foreground",duration:l,open:d,onClose:h,onEscapeKeyDown:m,onPause:g,onResume:y,onSwipeStart:x,onSwipeMove:b,onSwipeCancel:C,onSwipeEnd:E,...w}=t,_=Xd(Jd,a),R=oC(a),[A,k]=v.useState(null),N=Qe(n,k),O=v.useRef(null),U=v.useRef(null),Y=l||_.duration,F=v.useRef(0),W=v.useRef(Y),ce=v.useRef(0),{onToastAdd:fe,onToastRemove:X}=_,ae=yn(()=>{A?.contains(document.activeElement)&&_.viewport?.focus(),h()}),oe=v.useCallback(D=>
10{!D||D===1/0||(window.clearTimeout(ce.current),F.current=new Date().getTime(),ce.current=window.setTimeout(ae,D))},[ae]);v.useEffect(()=>{const D=_.viewport;if(D){const q=xt(()=>{oe(W.current),y?.()},"handleResume"),te=xt(()=>{const ue=new Date().getTime()-F.current;W.current=W.current-ue,window.clearTimeout(ce.current),g?.()},"handlePause");return D.addEventListener(pg,te),D.addEventListener(gg,q),()=>{D.removeEventListener(pg,te),D.removeEventListener(gg,q)}}},[_.viewport,Y,g,y,oe]),v.useEffect(()=>{d&&!_.isClosePausedRef.current&&oe(Y)},[d,Y,_.isClosePausedRef,oe]),v.useEffect(()=>()=>{window.clearTimeout(ce.current)},[]),v.useEffect(()=>(fe(),()=>X()),[fe,X]);const ve=v.useMemo(()=>A?by(A):null,[A]);return _.viewport?u.jsxs(u.Fragment,{children:[ve&&u.jsx(HR,{__scopeToast:a,role:"status","aria-live":o==="foreground"?"assertive":"polite",children:ve}),u.jsx(FR,{scope:a,onClose:ae,children:xs.createPortal(u.jsx(vy.ItemSlot,{scope:a,children:u.jsx(pR,{asChild:!0,onEscapeKeyDown:xe(m,D=>{R().some(te=>te.ref.current?.contains(D.target))||ae()}),children:u.jsx(Ve.li,{tabIndex:0,"data-state":d?"open":"closed","data-swipe-direction":_.swipeDirection,...w,ref:N,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:xe(t.onKeyDown,D=>{D.key==="Escape"&&(m?.(D.nativeEvent),D.nativeEvent.defaultPrevented||ae())}),onPointerDown:xe(t.onPointerDown,D=>{D.button===0&&(O.current={x:D.clientX,y:D.clientY})}),onPointerMove:xe(t.onPointerMove,D=>{if(!O.current)return;const q=D.clientX-O.current.x,te=D.clientY-O.current.y,ue=!!U.current,j=["left","right"].includes(_.swipeDirection),L=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,V=j?L(0,q):0,J=j?0:L(0,te),ge=D.pointerType==="touch"?10:2,be={x:V,y:J},ye={originalEvent:D,delta:be};ue?(U.current=be,$l(LR,b,ye,{discrete:!1})):t1(be,_.swipeDirection,ge)?(U.current=be,$l(IR,x,ye,{discrete:!1}),D.target.setPointerCapture(D.pointerId)):(Math.abs(q)>ge||Math.abs(te)>ge)&&(O.current=null)}),onPointerUp:xe(t.onPointerUp,D=>{const q=U.current,te=D.target;if(te.hasPointerCapture(D.pointerId)&&te.releasePointerCapture(D.pointerId),U.current=null,O.current=null,q){const ue=D.currentTarget,j={originalEvent:D,delta:q};t1(q,_.swipeDirection,_.swipeThreshold)?$l(UR,E,j,{discrete:!0}):$l(zR,C,j,{discrete:!0}),ue.addEventListener("click",L=>L.preventDefault(),{once:!0})}})})})}),_.viewport)})]}):null},"ToastImpl")),HR=xt(e=>{const{__scopeToast:t,children:n,...a}=e,o=Xd(Jd,t),[l,d]=v.useState(!1),[h,m]=v.useState(!1);return dC(()=>d(!0)),v.useEffect(()=>{const g=window.setTimeout(()=>m(!0),1e3);return()=>window.clearTimeout(g)},[]),h?null:u.jsx(pc,{asChild:!0,container:o.announcerContainer||void 0,children:u.jsx(yy,{...a,children:l&&u.jsxs(u.Fragment,{children:[o.label," ",n]})})})},"ToastAnnounce"),qR=v.forwardRef(xt(function(t,n){const{__scopeToast:a,...o}=t;return u.jsx(Ve.div,{...o,ref:n})},"ToastTitle")),GR=v.forwardRef(xt(function(t,n){const{__scopeToast:a,...o}=t;return u.jsx(Ve.div,{...o,ref:n})},"ToastDescription")),KR="ToastAction",QR=v.forwardRef(xt(function(t,n){const{altText:a,...o}=t;return a.trim()?u.jsx(uC,{altText:a,asChild:!0,children:u.jsx(cC,{...o,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${KR}\`. Expected non-empty \`string\`.`),null)},"ToastAction")),YR="ToastClose",cC=v.forwardRef(xt(function(t,n){const{__scopeToast:a,...o}=t,l=BR(YR,a);return u.jsx(uC,{asChild:!0,children:u.jsx(Ve.button,{type:"button",...o,ref:n,onClick:xe(t.onClick,l.onClose)})})},"ToastClose")),uC=v.forwardRef(xt(function(t,n){const{__scopeToast:a,altText:o,...l}=t;return u.jsx(Ve.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0,...l,ref:n})},"ToastAnnounceExclude"));function by(e){const t=[];return Array.from(e.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&t.push(a.textContent),fC(a)){const o=a.ariaHidden||a.hidden||a.style.display==="none",l=a.dataset.radixToastAnnounceExclude==="";if(!o)if(l){const d=a.dataset.radixToastAnnounceAlt;d&&t.push(d)}else t.push(...by(a))}}),t}xt(by,"getAnnounceTextContent");function $l(e,t,n,{discrete:a}){const o=n.originalEvent.currentTarget,l=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),a?Wd(o,l):o.dispatchEvent(l)}xt($l,"handleAndDispatchCustomEvent");var t1=xt((e,t,n=0)=>{const a=Math.abs(e.x),o=Math.abs(e.y),l=a>o;return t==="left"||t==="right"?l&&a>n:!l&&o>n},"isDeltaInDirection");function dC(e=()=>{}){const t=yn(e);Ct(()=>{let n=0,a=0;return n=window.requestAnimationFrame(()=>a=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(a)}},[t])}
10xt(dC,"useNextFrame");function fC(e){return e.nodeType===e.ELEMENT_NODE}xt(fC,"isHTMLElement");function hC(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:xt(a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}xt(hC,"getTabbableCandidates");function yd(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}xt(yd,"focusFirst");var ZR=OR,mC=MR,pC=VR,gC=qR,yC=GR,vC=QR,bC=cC;function xC(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=xC(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function wC(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=xC(e))&&(a&&(a+=" "),a+=t);return a}const n1=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,r1=wC,yc=(e,t)=>n=>{var a;if(t?.variants==null)return r1(e,n?.class,n?.className);const{variants:o,defaultVariants:l}=t,d=Object.keys(o).map(g=>{const y=n?.[g],x=l?.[g];if(y===null)return null;const b=n1(y)||n1(x);return o[g][b]}),h=n&&Object.entries(n).reduce((g,y)=>{let[x,b]=y;return b===void 0||(g[x]=b),g},{}),m=t==null||(a=t.compoundVariants)===null||a===void 0?void 0:a.reduce((g,y)=>{let{class:x,className:b,...C}=y;return Object.entries(C).every(E=>{let[w,_]=E;return Array.isArray(_)?_.includes({...l,...h}[w]):{...l,...h}[w]===_})?[...g,x,b]:g},[]);return r1(e,d,m,n?.class,n?.className)};const WR=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),XR=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,a)=>a?a.toUpperCase():n.toLowerCase()),s1=e=>{const t=XR(e);return t.charAt(0).toUpperCase()+t.slice(1)},SC=(...e)=>e.filter((t,n,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===n).join(" ").trim(),JR=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var eP={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"};const tP=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:a,className:o="",children:l,iconNode:d,...h},m)=>v.createElement("svg",{ref:m,...eP,width:t,height:t,stroke:e,strokeWidth:a?Number(n)*24/Number(t):n,className:SC("lucide",o),...!l&&!JR(h)&&{"aria-hidden":"true"},...h},[...d.map(([g,y])=>v.createElement(g,y)),...Array.isArray(l)?l:[l]]));const je=(e,t)=>{const n=v.forwardRef(({className:a,...o},l)=>v.createElement(tP,{ref:l,iconNode:t,className:SC(`lucide-${WR(s1(e))}`,`lucide-${e}`,a),...o}));return n.displayName=s1(e),n};const nP=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],a1=je("arrow-right",nP);const rP=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],ec=je("award",rP);const sP=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],aP=je("bell",sP);const iP=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],oP=je("book-open",iP);const lP=[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]],cP=je("bookmark",lP);const uP=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],_C=je("building-2",uP);const dP=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],fP=je("car",dP);const hP=[["path",{d:"M18 19V9a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v8a2 2 0 0 0 2 2h2",key:"19jm3t"}],["path",{d:"M2 9h3a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1H2",key:"13hakp"}],["path",{d:"M22 17v1a1 1 0 0 1-1 1H10v-9a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v9",key:"1crci8"}],["circle",{cx:"8",cy:"19",r:"2",key:"t8fc5s"}]],yg=je("caravan",hP);const mP=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],rn=je("check",mP);const pP=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ef=je("chevron-down",pP);const gP=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],vd=je("chevron-left",gP);const yP=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ed=je("chevron-right",yP);const vP=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],CC=je("chevron-up",vP);const bP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],i1=je("circle-alert",bP);const xP=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],EC=je("circle-check",xP);const wP=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],SP=je("circle-check-big",wP);const _P=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],CP=je("circle",_P);const EP=[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]],go=je("crown",EP);const TP=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],jP=je("dollar-sign",TP);const NP=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],kP=je("download",NP);const AP=[["path",{d:"M7 16.3c2.2 0 4-1.83 4-4.05 0-1.16-.57-2.26-1.71-3.19S7.29 6.75 7 5.3c-.29 1.45-1.14 2.84-2.29 3.76S3 11.1 3 12.25c0 2.22 1.8 4.05 4 4.05z",ke
10y:"1ptgy4"}],["path",{d:"M12.56 6.6A10.97 10.97 0 0 0 14 3.02c.5 2.5 2 4.9 4 6.5s3 3.5 3 5.5a6.98 6.98 0 0 1-11.91 4.97",key:"1sl1rz"}]],OP=je("droplets",AP);const RP=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],TC=je("ellipsis-vertical",RP);const PP=[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]],MP=je("expand",PP);const DP=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ql=je("external-link",DP);const IP=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],o1=je("facebook",IP);const LP=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],vg=je("file-text",LP);const zP=[["path",{d:"M12 3q1 4 4 6.5t3 5.5a1 1 0 0 1-14 0 5 5 0 0 1 1-3 1 1 0 0 0 5 0c0-2-1.5-3-1.5-5q0-2 2.5-4",key:"1slcih"}]],UP=je("flame",zP);const VP=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],FP=je("gauge",VP);const BP=[["path",{d:"m11 17 2 2a1 1 0 1 0 3-3",key:"efffak"}],["path",{d:"m14 14 2.5 2.5a1 1 0 1 0 3-3l-3.88-3.88a3 3 0 0 0-4.24 0l-.88.88a1 1 0 1 1-3-3l2.81-2.81a5.79 5.79 0 0 1 7.06-.87l.47.28a2 2 0 0 0 1.42.25L21 4",key:"9pr0kb"}],["path",{d:"m21 3 1 11h-2",key:"1tisrp"}],["path",{d:"M3 3 2 14l6.5 6.5a1 1 0 1 0 3-3",key:"1uvwmv"}],["path",{d:"M3 4h8",key:"1ep09j"}]],bg=je("handshake",BP);const $P=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],tf=je("heart",$P);const HP=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],jC=je("history",HP);const qP=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],NC=je("house",qP);const GP=[["path",{d:"m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16",key:"9kzy35"}],["path",{d:"M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2",key:"1t0f0t"}],["circle",{cx:"13",cy:"7",r:"1",fill:"currentColor",key:"1obus6"}],["rect",{x:"8",y:"2",width:"14",height:"14",rx:"2",key:"1gvhby"}]],KP=je("images",GP);const QP=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Fa=je("loader-circle",QP);const YP=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],l1=je("log-in",YP);const ZP=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],c1=je("log-out",ZP);const WP=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],XP=je("mail",WP);const JP=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],xy=je("map-pin",JP);const eM=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],tM=je("menu",eM);const nM=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],wy=je("message-square",nM);const rM=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],sM=je("moon",rM);const aM=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],iM=je("package",aM);const oM=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],xg=je("pencil",oM);const lM=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2
100 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],cM=je("phone",lM);const uM=[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]],dM=je("quote",uM);const fM=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],hM=je("refresh-cw",fM);const mM=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Td=je("search",mM);const pM=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],dp=je("settings",pM);const gM=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],yM=je("shield-check",gM);const vM=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],bM=je("shield",vM);const xM=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],wM=je("shopping-cart",xM);const SM=[["path",{d:"M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3",key:"1dgpiv"}],["path",{d:"M2 16a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-11a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"xacw8m"}],["path",{d:"M4 18v2",key:"jwo5n2"}],["path",{d:"M20 18v2",key:"1ar1qi"}],["path",{d:"M12 4v9",key:"oqhhn3"}]],_M=je("sofa",SM);const CM=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}
vendor: 8,728 bytes, line 10
10],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],yo=je("sparkles",CM);const EM=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],TM=je("star",EM);const jM=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],NM=je("sun",jM);const kM=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],Ba=je("tag",kM);const AM=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],jd=je("trash-2",AM);const OM=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],RM=je("trending-up",OM);const PM=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],MM=je("truck",PM);const DM=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Nd=je("users",DM);const IM=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Hl=je("user",IM);const LM=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],wg=je("video",LM);const zM=[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]],UM=je("wand-sparkles",zM);const VM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Sy=je("x",VM);const FM=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],BM=je("zap",FM),$M=(e,t)=>{const n=new Array(e.length+t.length);for(let a=0;a<e.length;a++)n[a]=e[a];for(let a=0;a<t.length;a++)n[e.length+a]=t[a];return n},HM=(e,t)=>({classGroupId:e,validator:t}),kC=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),kd="-",u1=[],qM="arbitrary..",GM=e=>{const t=QM(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:a}=e;return{getClassGroupId:d=>{if(d.startsWith("[")&&d.endsWith("]"))return KM(d);const h=d.split(kd),m=h[0]===""&&h.length>1?1:0;return AC(h,m,t)},getConflictingClassGroupIds:(d,h)=>{if(h){const m=a[d],g=n[d];return m?g?$M(g,m):m:g||u1}return n[d]||u1}}},AC=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],l=n.nextPart.get(o);if(l){const g=AC(e,t+1,l);if(g)return g}const d=n.validators;if(d===null)return;const h=t===0?e.join(kd):e.slice(t).join(kd),m=d.length;for(let g=0;g<m;g++){const y=d[g];if(y.validator(h))return y.classGroupId}},KM=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),a=t.slice(0,n);return a?qM+a:void 0})(),QM=e=>{const{theme:t,classGroups:n}=e;return YM(n,t)},YM=(e,t)=>{const n=kC();for(const a in e){const o=e[a];_y(o,n,a,t)}return n},_y=(e,t,n,a)=>{const o=e.length;for(let l=0;l<o;l++){const d=e[l];ZM(d,t,n,a)}},ZM=(e,t,n,a)=>{if(typeof e=="string"){WM(e,t,n);return}if(typeof e=="function"){XM(e,t,n,a);return}JM(e,t,n,a)},WM=(e,t,n)=>{const a=e===""?t:OC(t,e);a.classGroupId=n},XM=(e,t,n,a)=>{if(eD(e)){_y(e(a),t,n,a);return}t.validators===null&&(t.validators=[]),t.validators.push(HM(n,e))},JM=(e,t,n,a)=>{const o=Object.entries(e),l=o.length;for(let d=0;d<l;d++){const[h,m]=o[d];_y(m,OC(t,h),n,a)}},OC=(e,t)=>{let n=e;const a=t.split(kd),o=a.length;for(let l=0;l<o;l++){const d=a[l];let h=n.nextPart.get(d);h||(h=kC(),n.nextPart.set(d,h)),n=h}return n},eD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,tD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),a=Object.create(null);const o=(l,d)=>{n[l]=d,t++,t>e&&(t=0,a=n,n=Object.create(null))};return{get(l){let d=n[l];if(d!==void 0)return d;if((d=a[l])!==void 0)return o(l,d),d},set(l,d){l in n?n[l]=d:o(l,d)}}},Sg="!",d1=":",nD=[],f1=(e,t,n,a,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:a,isExternal:o}),rD=e=>{const{prefix:t,experimentalParseClassName:n}=e;let a=o=>{const l=[];let d=0,h=0,m=0,g;const y=o.length;for(let w=0;w<y;w++){const _=o[w];if(d===0&&h===0){if(_===d1){l.push(o.slice(m,w)),m=w+1;continue}if(_==="/"){g=w;continue}}_==="["?d++:_==="]"?d--:_==="("?h++:_===")"&&h--}const x=l.length===0?o:o.slice(m);let b=x,C=!1;x.endsWith(Sg)?(b=x.slice(0,-1),C=!0):x.startsWith(Sg)&&(b=x.slice(1),C=!0);const E=g&&g>m?g-m:void 0;return f1(l,C,b,E)};if(t){const o=t+d1,l=a;a=d=>d.startsWith(o)?l(d.slice(o.length)):f1(nD,!1,d,void 0,!0)}if(n){const o=a;a=l=>n({className:l,parseClassName:o})}return a},sD=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,a)=>{t.set(n,1e6+a)}),n=>{const a=[];let o=[];for(let l=0;l<n.length;l++){const d=n[l],h=d[0]==="[",m=t.has(d);h||m?(o.length>0&&(o.sort(),a.push(...o),o=[]),a.push(d)):o.push(d)}return o.length>0&&(o.sort(),a.push(...o)),a}},aD=e=>({cache:tD(e.cacheSize),parseClassName:rD(e),sortModifiers:sD(e),postfixLookupClassGroupIds:iD(e),...GM(e)}),iD=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let a=0;a<n.length;a++)t[n[a]]=!0;return t},oD=/\s+/,lD=(e,t)=>{const{parseClassName:n,getClassGroupId:a,getConflictingClassGroupIds:o,sortModifiers:l,postfixLookupClassGroupIds:d}=t,h=[],m=e.trim().split(oD);let g="";for(let y=m.length-1;y>=0;y-=1){const x=m[y],{isExternal:b,modifiers:C,hasImportantModifier:E,baseClassName:w,maybePostfixModifierPosition:_}=n(x);if(b){g=x+(g.length>0?" "+g:g);continue}let R=!!_,A;if(R){const Y=w.substring(0,_);A=a(Y);const F=A&&d[A]?a(w):void 0;F&&F!==A&&(A=F,R=!1)}else A=a(w);if(!A){if(!R){g=x+(g.length>0?" "+g:g);continue}if(A=a(w),!A){g=x+(g.length>0?" "+g:g);continue}R=!1}const k=C.length===0?"":C.length===1?C[0]:l(C).join(":"),N=E?k+Sg:k,O=N+A;if(h.indexOf(O)>-1)continue;h.push(O);const U=o(A,R);for(let Y=0;Y<U.length;++Y){const F=U[Y];h.push(N+F)}g=x+(g.length>0?" "+g:g)}return g},cD=(...e)=>{let t=0,n,a,o="";for(;t<e.length;)(n=e[t++])&&(a=RC(n))&&(o&&(o+=" "),o+=a);return o},RC=e=>{if(typeof e=="string")return e;let t,n="";for(let a=0;a<e.length;a++)e[a]&&(t=RC(e[a]))&&(n&&(n+=" "),n+=t);return n},uD=(e,...t)=>{let n,a,o,l;const d=m=>{const g=t.reduce((y,x)=>x(y),e());return n=aD(g),a=n.cache.get,o=n.cache.set,l=h,h(m)},h=m=>{const g=a(m);if(g)return g;const y=lD(m,n);return o(m,y),y};return l=d,(...m)=>l(cD(...m))},dD=[],Kt=e=>{const t=n=>n[e]||dD;return t.isThemeGetter=!0,t},PC=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,MC=/^\((?:(\w[\w-]*):)?(.+)\)$/i,fD=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,hD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,mD=/\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$/,pD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,gD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,yD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Ks=e=>fD.test(e),Ke=e=>!!e&&!Number.isNaN(Number(e)),Ur=e=>!!e&&Number.isInteger(Number(e)),fp=e=>e.endsWith("%")&&Ke(e.slice(0,-1)),us=e=>hD.test(e),DC=()=>!0,vD=e=>mD.test(e)&&!pD.test(e),Cy=()=>
vendor: 9,634 bytes, line 10
10!1,bD=e=>gD.test(e),xD=e=>yD.test(e),wD=e=>!Ce(e)&&!Ee(e),SD=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),_D=e=>fa(e,zC,Cy),Ce=e=>PC.test(e),La=e=>fa(e,UC,vD),h1=e=>fa(e,OD,Ke),CD=e=>fa(e,FC,DC),ED=e=>fa(e,VC,Cy),m1=e=>fa(e,IC,Cy),TD=e=>fa(e,LC,xD),Wu=e=>fa(e,BC,bD),Ee=e=>MC.test(e),zl=e=>ni(e,UC),jD=e=>ni(e,VC),p1=e=>ni(e,IC),ND=e=>ni(e,zC),kD=e=>ni(e,LC),Xu=e=>ni(e,BC,!0),AD=e=>ni(e,FC,!0),fa=(e,t,n)=>{const a=PC.exec(e);return a?a[1]?t(a[1]):n(a[2]):!1},ni=(e,t,n=!1)=>{const a=MC.exec(e);return a?a[1]?t(a[1]):n:!1},IC=e=>e==="position"||e==="percentage",LC=e=>e==="image"||e==="url",zC=e=>e==="length"||e==="size"||e==="bg-size",UC=e=>e==="length",OD=e=>e==="number",VC=e=>e==="family-name",FC=e=>e==="number"||e==="weight",BC=e=>e==="shadow",RD=()=>{const e=Kt("color"),t=Kt("font"),n=Kt("text"),a=Kt("font-weight"),o=Kt("tracking"),l=Kt("leading"),d=Kt("breakpoint"),h=Kt("container"),m=Kt("spacing"),g=Kt("radius"),y=Kt("shadow"),x=Kt("inset-shadow"),b=Kt("text-shadow"),C=Kt("drop-shadow"),E=Kt("blur"),w=Kt("perspective"),_=Kt("aspect"),R=Kt("ease"),A=Kt("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...N(),Ee,Ce],U=()=>["auto","hidden","clip","visible","scroll"],Y=()=>["auto","contain","none"],F=()=>[Ee,Ce,m],W=()=>[Ks,"full","auto",...F()],ce=()=>[Ur,"none","subgrid",Ee,Ce],fe=()=>["auto",{span:["full",Ur,Ee,Ce]},Ur,Ee,Ce],X=()=>[Ur,"auto",Ee,Ce],ae=()=>["auto","min","max","fr",Ee,Ce],oe=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ve=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...F()],q=()=>[Ks,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...F()],te=()=>[Ks,"screen","full","dvw","lvw","svw","min","max","fit",...F()],ue=()=>[Ks,"screen","full","lh","dvh","lvh","svh","min","max","fit",...F()],j=()=>[e,Ee,Ce],L=()=>[...N(),p1,m1,{position:[Ee,Ce]}],V=()=>["no-repeat",{repeat:["","x","y","space","round"]}],J=()=>["auto","cover","contain",ND,_D,{size:[Ee,Ce]}],ge=()=>[fp,zl,La],be=()=>["","none","full",g,Ee,Ce],ye=()=>["",Ke,zl,La],qe=()=>["solid","dashed","dotted","double"],de=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Oe=()=>[Ke,fp,p1,m1],St=()=>["","none",E,Ee,Ce],Ze=()=>["none",Ke,Ee,Ce],tt=()=>["none",Ke,Ee,Ce],at=()=>[Ke,Ee,Ce],zt=()=>[Ks,"full",...F()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[us],breakpoint:[us],color:[DC],container:[us],"drop-shadow":[us],ease:["in","out","in-out"],font:[wD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[us],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[us],shadow:[us],spacing:["px",Ke],text:[us],"text-shadow":[us],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Ks,Ce,Ee,_]}],container:["container"],"container-type":[{"@container":["","normal","size",Ee,Ce]}],"container-named":[SD],columns:[{columns:[Ke,Ce,Ee,h]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"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:O()}],overflow:[{overflow:U()}],"overflow-x":[{"overflow-x":U()}],"overflow-y":[{"overflow-y":U()}],overscroll:[{overscroll:Y()}],"overscroll-x":[{"overscroll-x":Y()}],"overscroll-y":[{"overscroll-y":Y()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:W()}],"inset-x":[{"inset-x":W()}],"inset-y":[{"inset-y":W()}],start:[{"inset-s":W(),start:W()}],end:[{"inset-e":W(),end:W()}],"inset-bs":[{"inset-bs":W()}],"inset-be":[{"inset-be":W()}],top:[{top:W()}],right:[{right:W()}],bottom:[{bottom:W()}],left:[{left:W()}],visibility:["visible","invisible","collapse"],z:[{z:[Ur,"auto",Ee,Ce]}],basis:[{basis:[Ks,"full","auto",h,...F()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ke,Ks,"auto","initial","none",Ce]}],grow:[{grow:["",Ke,Ee,Ce]}],shrink:[{shrink:["",Ke,Ee,Ce]}],order:[{order:[Ur,"first","last","none",Ee,Ce]}],"grid-cols":[{"grid-cols":ce()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":ce()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ae()}],"auto-rows":[{"auto-rows":ae()}],gap:[{gap:F()}],"gap-x":[{"gap-x":F()}],"gap-y":[{"gap-y":F()}],"justify-content":[{justify:[...oe(),"normal"]}],"justify-items":[{"justify-items":[...ve(),"normal"]}],"justify-self":[{"justify-self":["auto",...ve()]}],"align-content":[{content:["normal",...oe()]}],"align-items":[{items:[...ve(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ve(),{baseline:["","last"]}]}],"place-content":[{"place-content":oe()}],"place-items":[{"place-items":[...ve(),"baseline"]}],"place-self":[{"place-self":["auto",...ve()]}],p:[{p:F()}],px:[{px:F()}],py:[{py:F()}],ps:[{ps:F()}],pe:[{pe:F()}],pbs:[{pbs:F()}],pbe:[{pbe:F()}],pt:[{pt:F()}],pr:[{pr:F()}],pb:[{pb:F()}],pl:[{pl:F()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":F()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":F()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],"inline-size":[{inline:["auto",...te()]}],"min-inline-size":[{"min-inline":["auto",...te()]}],"max-inline-size":[{"max-inline":["none",...te()]}],"block-size":[{block:["auto",...ue()]}],"min-block-size":[{"min-block":["auto",...ue()]}],"max-block-size":[{"max-block":["none",...ue()]}],w:[{w:[h,"screen",...q()]}],"min-w":[{"min-w":[h,"screen","none",...q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[d]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,zl,La]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[a,AD,CD]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fp,Ce]}],"font-family":[{font:[jD,ED,t]}],"font-features":[{"font-features":[Ce]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Ee,Ce]}],"line-clamp":[{"line-clamp":[Ke,"none",Ee,h1]}],leading:[{leading:[l,...F()]}],"list-image":[{"list-image":["none",Ee,Ce]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,Ce]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:j()}],"text-color":[{text:j()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...qe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ke,"from-font","auto",Ee,La]}],"text-decoration-color":[{decoration:j()}],"underline-offset":[{"underline-offset":[Ke,"auto",Ee,Ce]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"tab-size":[{tab:[Ur,Ee,Ce]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,Ce]}],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",Ee,Ce]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:V()}],"bg-size":[{bg:J()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ur,Ee,Ce],radial:["",Ee,Ce],conic:[Ur,Ee,Ce]},kD,TD]}],"bg-color":[{bg:j()}],"gradient-from-pos":[{from:ge()}
vendor: 7,427 bytes, line 10
10],"gradient-via-pos":[{via:ge()}],"gradient-to-pos":[{to:ge()}],"gradient-from":[{from:j()}],"gradient-via":[{via:j()}],"gradient-to":[{to:j()}],rounded:[{rounded:be()}],"rounded-s":[{"rounded-s":be()}],"rounded-e":[{"rounded-e":be()}],"rounded-t":[{"rounded-t":be()}],"rounded-r":[{"rounded-r":be()}],"rounded-b":[{"rounded-b":be()}],"rounded-l":[{"rounded-l":be()}],"rounded-ss":[{"rounded-ss":be()}],"rounded-se":[{"rounded-se":be()}],"rounded-ee":[{"rounded-ee":be()}],"rounded-es":[{"rounded-es":be()}],"rounded-tl":[{"rounded-tl":be()}],"rounded-tr":[{"rounded-tr":be()}],"rounded-br":[{"rounded-br":be()}],"rounded-bl":[{"rounded-bl":be()}],"border-w":[{border:ye()}],"border-w-x":[{"border-x":ye()}],"border-w-y":[{"border-y":ye()}],"border-w-s":[{"border-s":ye()}],"border-w-e":[{"border-e":ye()}],"border-w-bs":[{"border-bs":ye()}],"border-w-be":[{"border-be":ye()}],"border-w-t":[{"border-t":ye()}],"border-w-r":[{"border-r":ye()}],"border-w-b":[{"border-b":ye()}],"border-w-l":[{"border-l":ye()}],"divide-x":[{"divide-x":ye()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ye()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...qe(),"hidden","none"]}],"divide-style":[{divide:[...qe(),"hidden","none"]}],"border-color":[{border:j()}],"border-color-x":[{"border-x":j()}],"border-color-y":[{"border-y":j()}],"border-color-s":[{"border-s":j()}],"border-color-e":[{"border-e":j()}],"border-color-bs":[{"border-bs":j()}],"border-color-be":[{"border-be":j()}],"border-color-t":[{"border-t":j()}],"border-color-r":[{"border-r":j()}],"border-color-b":[{"border-b":j()}],"border-color-l":[{"border-l":j()}],"divide-color":[{divide:j()}],"outline-style":[{outline:[...qe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ke,Ee,Ce]}],"outline-w":[{outline:["",Ke,zl,La]}],"outline-color":[{outline:j()}],shadow:[{shadow:["","none",y,Xu,Wu]}],"shadow-color":[{shadow:j()}],"inset-shadow":[{"inset-shadow":["none",x,Xu,Wu]}],"inset-shadow-color":[{"inset-shadow":j()}],"ring-w":[{ring:ye()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:j()}],"ring-offset-w":[{"ring-offset":[Ke,La]}],"ring-offset-color":[{"ring-offset":j()}],"inset-ring-w":[{"inset-ring":ye()}],"inset-ring-color":[{"inset-ring":j()}],"text-shadow":[{"text-shadow":["none",b,Xu,Wu]}],"text-shadow-color":[{"text-shadow":j()}],opacity:[{opacity:[Ke,Ee,Ce]}],"mix-blend":[{"mix-blend":[...de(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":de()}],"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":[Ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":Oe()}],"mask-image-linear-to-pos":[{"mask-linear-to":Oe()}],"mask-image-linear-from-color":[{"mask-linear-from":j()}],"mask-image-linear-to-color":[{"mask-linear-to":j()}],"mask-image-t-from-pos":[{"mask-t-from":Oe()}],"mask-image-t-to-pos":[{"mask-t-to":Oe()}],"mask-image-t-from-color":[{"mask-t-from":j()}],"mask-image-t-to-color":[{"mask-t-to":j()}],"mask-image-r-from-pos":[{"mask-r-from":Oe()}],"mask-image-r-to-pos":[{"mask-r-to":Oe()}],"mask-image-r-from-color":[{"mask-r-from":j()}],"mask-image-r-to-color":[{"mask-r-to":j()}],"mask-image-b-from-pos":[{"mask-b-from":Oe()}],"mask-image-b-to-pos":[{"mask-b-to":Oe()}],"mask-image-b-from-color":[{"mask-b-from":j()}],"mask-image-b-to-color":[{"mask-b-to":j()}],"mask-image-l-from-pos":[{"mask-l-from":Oe()}],"mask-image-l-to-pos":[{"mask-l-to":Oe()}],"mask-image-l-from-color":[{"mask-l-from":j()}],"mask-image-l-to-color":[{"mask-l-to":j()}],"mask-image-x-from-pos":[{"mask-x-from":Oe()}],"mask-image-x-to-pos":[{"mask-x-to":Oe()}],"mask-image-x-from-color":[{"mask-x-from":j()}],"mask-image-x-to-color":[{"mask-x-to":j()}],"mask-image-y-from-pos":[{"mask-y-from":Oe()}],"mask-image-y-to-pos":[{"mask-y-to":Oe()}],"mask-image-y-from-color":[{"mask-y-from":j()}],"mask-image-y-to-color":[{"mask-y-to":j()}],"mask-image-radial":[{"mask-radial":[Ee,Ce]}],"mask-image-radial-from-pos":[{"mask-radial-from":Oe()}],"mask-image-radial-to-pos":[{"mask-radial-to":Oe()}],"mask-image-radial-from-color":[{"mask-radial-from":j()}],"mask-image-radial-to-color":[{"mask-radial-to":j()}],"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":N()}],"mask-image-conic-pos":[{"mask-conic":[Ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":Oe()}],"mask-image-conic-to-pos":[{"mask-conic-to":Oe()}],"mask-image-conic-from-color":[{"mask-conic-from":j()}],"mask-image-conic-to-color":[{"mask-conic-to":j()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:V()}],"mask-size":[{mask:J()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,Ce]}],filter:[{filter:["","none",Ee,Ce]}],blur:[{blur:St()}],brightness:[{brightness:[Ke,Ee,Ce]}],contrast:[{contrast:[Ke,Ee,Ce]}],"drop-shadow":[{"drop-shadow":["","none",C,Xu,Wu]}],"drop-shadow-color":[{"drop-shadow":j()}],grayscale:[{grayscale:["",Ke,Ee,Ce]}],"hue-rotate":[{"hue-rotate":[Ke,Ee,Ce]}],invert:[{invert:["",Ke,Ee,Ce]}],saturate:[{saturate:[Ke,Ee,Ce]}],sepia:[{sepia:["",Ke,Ee,Ce]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,Ce]}],"backdrop-blur":[{"backdrop-blur":St()}],"backdrop-brightness":[{"backdrop-brightness":[Ke,Ee,Ce]}],"backdrop-contrast":[{"backdrop-contrast":[Ke,Ee,Ce]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ke,Ee,Ce]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ke,Ee,Ce]}],"backdrop-invert":[{"backdrop-invert":["",Ke,Ee,Ce]}],"backdrop-opacity":[{"backdrop-opacity":[Ke,Ee,Ce]}],"backdrop-saturate":[{"backdrop-saturate":[Ke,Ee,Ce]}],"backdrop-sepia":[{"backdrop-sepia":["",Ke,Ee,Ce]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":F()}],"border-spacing-x":[{"border-spacing-x":F()}],"border-spacing-y":[{"border-spacing-y":F()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,Ce]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ke,"initial",Ee,Ce]}],ease:[{ease:["linear","initial",R,Ee,Ce]}],delay:[{delay:[Ke,Ee,Ce]}],animate:[{animate:["none",A,Ee,Ce]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,Ee,Ce]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Ze()}],"rotate-x":[{"rotate-x":Ze()}],"rotate-y":[{"rotate-y":Ze()}],"rotate-z":[{"rotate-z":Ze()}],scale:[{scale:tt()}],"scale-x":[{"scale-x":tt()}],"scale-y":[{"scale-y":tt()}],"scale-z":[{"scale-z":tt()}],"scale-3d":["scale-3d"],skew:[{skew:at()}],"skew-x":[{"skew-x":at()}],"skew-y":[{"skew-y":at()}],transform:[{transform:[Ee,Ce,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:zt()}],"translate-x":[{"translate-x":zt()}],"translate-y":[{"translate-y":zt()}],"translate-z":[{"translate-z":zt()}],"translate-none":["translate-none"],zoom:[{zoom:[Ur,Ee,Ce]}],accent:[{accent:j()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:j()}
10],"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",Ee,Ce]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":j()}],"scrollbar-track-color":[{"scrollbar-track":j()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mbs":[{"scroll-mbs":F()}],"scroll-mbe":[{"scroll-mbe":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pbs":[{"scroll-pbs":F()}],"scroll-pbe":[{"scroll-pbe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"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",Ee,Ce]}],fill:[{fill:["none",...j()]}],"stroke-w":[{stroke:[Ke,zl,La,h1]}],stroke:[{stroke:["none",...j()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},PD=uD(RD);function Pe(...e){return PD(wC(e))}function MD(e){if(!e)return null;if(e instanceof Date)return e;const t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e);if(t)return new Date(Number(t[1]),Number(t[2])-1,Number(t[3]));const n=new Date(e);return isNaN(n.getTime())?null:n}function fB(e){const t=MD(e);return t?t.toLocaleDateString():""}function hB(e){if(!e)return"";const t=/^(\d{1,2}):(\d{2})/.exec(e);if(!t)return e;const n=Number(t[1]),a=t[2],o=n>=12?"PM":"AM",l=n%12===0?12:n%12;return a==="00"?`${l} ${o}`:`${l}:${a} ${o}`}function mB(e){if(!e)return"";const t=e.replace(/\D/g,"");return t.length===10?`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`:t.length===11&&t.startsWith("1")?`(${t.slice(1,4)}) ${t.slice(4,7)}-${t.slice(7)}`:e}const DD=ZR,$C=v.forwardRef(({className:e,...t},n)=>u.jsx(mC,{ref:n,className:Pe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));$C.displayName=mC.displayName;const ID=yc("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),HC=v.forwardRef(({className:e,variant:t,...n},a)=>u.jsx(pC,{ref:a,className:Pe(ID({variant:t}),e),...n}));HC.displayName=pC.displayName;const LD=v.forwardRef(({className:e,...t},n)=>u.jsx(vC,{ref:n,className:Pe("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));LD.displayName=vC.displayName;const qC=v.forwardRef(({className:e,...t},n)=>u.jsx(bC,{ref:n,className:Pe("absolute right-2 top-2 rounded-md p-1 text-foreground
10/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:u.jsx(Sy,{className:"h-4 w-4"})}));qC.displayName=bC.displayName;const GC=v.forwardRef(({className:e,...t},n)=>u.jsx(gC,{ref:n,className:Pe("text-sm font-semibold",e),...t}));GC.displayName=gC.displayName;const KC=v.forwardRef(({className:e,...t},n)=>u.jsx(yC,{ref:n,className:Pe("text-sm opacity-90",e),...t}));KC.displayName=yC.displayName;function g1(){const{toasts:e}=ti();return u.jsxs(DD,{children:[e.map(function({id:t,title:n,description:a,action:o,...l}){return u.jsxs(HC,{...l,children:[u.jsxs("div",{className:"grid gap-1",children:[n&&u.jsx(GC,{children:n}),a&&u.jsx(KC,{children:a})]}),o,u.jsx(qC,{})]},t)}),u.jsx($C,{})]})}var zD=Object.defineProperty,UD=(e,t)=>zD(e,"name",{value:t,configurable:!0}),VD=ca[" useId ".trim().toString()]||(()=>{}),FD=0;function gr(e){const[t,n]=v.useState(VD());return Ct(()=>{e||n(a=>a??String(FD++))},[e]),e||(t?`radix-${t}`:"")}UD(gr,"useId");const BD=["top","right","bottom","left"],aa=Math.min,hs=Math.max,Ad=Math.round,Ju=Math.floor,ms=e=>({x:e,y:e}),$D={left:"right",right:"left",bottom:"top",top:"bottom"};function QC(e,t,n){return hs(e,aa(t,n))}function ys(e,t){return typeof e=="function"?e(t):e}function ia(e){return e.split("-")[0]}function Oo(e){return e.split("-")[1]}function Ey(e){return e==="x"?"y":"x"}function Ty(e){return e==="y"?"height":"width"}function Fr(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function jy(e){return Ey(Fr(e))}function HD(e,t,n){n===void 0&&(n=!1);const a=Oo(e),o=jy(e),l=Ty(o);let d=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(d=Od(d)),[d,Od(d)]}function qD(e){const t=Od(e);return[_g(e),t,_g(t)]}function _g(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const y1=["left","right"],v1=["right","left"],GD=["top","bottom"],KD=["bottom","top"];function QD(e,t,n){switch(e){case"top":case"bottom":return n?t?v1:y1:t?y1:v1;case"left":case"right":return t?GD:KD;default:return[]}}function YD(e,t,n,a){const o=Oo(e);let l=QD(ia(e),n==="start",a);return o&&(l=l.map(d=>d+"-"+o),t&&(l=l.concat(l.map(_g)))),l}function Od(e){const t=ia(e);return $D[t]+e.slice(t.length)}function ZD(e){var t,n,a,o;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(o=e.left)!=null?o:0}}function YC(e){return typeof e!="number"?ZD(e):{top:e,right:e,bottom:e,left:e}}function Rd(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}function b1(e,t,n){let{reference:a,floating:o}=e;const l=Fr(t),d=jy(t),h=Ty(d),m=ia(t),g=l==="y",y=a.x+a.width/2-o.width/2,x=a.y+a.height/2-o.height/2,b=a[h]/2-o[h]/2;let C;switch(m){case"top":C={x:y,y:a.y-o.height};break;case"bottom":C={x:y,y:a.y+a.height};break;case"right":C={x:a.x+a.width,y:x};break;case"left":C={x:a.x-o.width,y:x};break;default:C={x:a.x,y:a.y}}const E=Oo(t);return E&&(C[d]+=b*(E==="end"?1:-1)*(n&&g?-1:1)),C}async function WD(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:l,rects:d,elements:h,strategy:m}=e,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:b=!1,padding:C=0}=ys(t,e),E=YC(C),_=h[b?x==="floating"?"reference":"floating":x],R=Rd(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(_)))==null||n?_:_.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(h.floating)),boundary:g,rootBoundary:y,strategy:m})),A=x==="floating"?{x:a,y:o,width:d.floating.width,height:d.floating.height}:d.reference,k=await(l.getOffsetParent==null?void 0:l.getOffsetParent(h.floating)),N=await(l.isElement==null?void 0:l.isElement(k))&&await(l.getScale==null?void 0:l.getScale(k))||{x:1,y:1},O=Rd(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:A,offsetParent:k,strategy:m}):A);return{top:(R.top-O.top+E.top)/N.y,bottom:(O.bottom-R.bottom+E.bottom)/N.y,left:(R.left-O.left+E.left)/N.x,right:(O.right-R.right+E.right)/N.x}}const XD=50,JD=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:l=[],platform:d}=n,h=d.detectOverflow?d:{...d,detectOverflow:WD},m=await(d.isRTL==null?void 0:d.isRTL(t));let g=await d.getElementRects({reference:e,floating:t,strategy:o}),{x:y,y:x}=b1(g,a,m),b=a,C=0;const E={};for(let w=0;w<l.length;w++){const _=l[w];if(!_)continue;const{name:R,fn:A}=_,{x:k,y:N,data:O,reset:U}=await A({x:y,y:x,initialPlacement:a,placement:b,strategy:o,middlewareData:E,rects:g,platform:h,elements:{reference:e,floating:t}});y=k??y,x=N??x,E[R]={...E[R],...O},U&&C<XD&&(C++,typeof U=="object"&&(U.placement&&(b=U.placement),U.rects&&(g=U.rects===!0?await d.getElementRects({reference:e,floating:t,strategy:o}):U.rects),{x:y,y:x}=b1(g,b,m)),w=-1)}return{x:y,y:x,placement:b,strategy:o,middlewareData:E}},e4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:l,platform:d,elements:h,middlewareData:m}=t,{element:g,padding:y=0}=ys(e,t)||{};if(g==null)return{};const x=YC(y),b={x:n,y:a},C=jy(o),E=Ty(C),w=await d.getDimensions(g),_=C==="y",R=_?"top":"left",A=_?"bottom":"right",k=_?"clientHeight":"clientWidth",N=l.reference[E]+l.reference[C]-b[C]-l.floating[E],O=b[C]-l.reference[C],U=await(d.getOffsetParent==null?void 0:d.getOffsetParent(g));let Y=U?U[k]:0;(!Y||!await(d.isElement==null?void 0:d.isElement(U)))&&(Y=h.floating[k]||l.floating[E]);const F=N/2-O/2,W=Y/2-w[E]/2-1,ce=aa(x[R],W),fe=aa(x[A],W),X=Y-w[E]-fe,ae=Y/2-w[E]/2+F,oe=QC(ce,ae,X),ve=!m.arrow&&Oo(o)!=null&&ae!==oe&&l.reference[E]/2-(ae<ce?ce:fe)-w[E]/2<0,D=ve?ae<ce?ae-ce:ae-X:0;return{[C]:b[C]+D,data:{[C]:oe,centerOffset:ae-oe-D,...ve&&{alignmentOffset:D}},reset:ve}}}),t4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:l,rects:d,initialPlacement:h,platform:m,elements:g}=t,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:w=!0,..._}=ys(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const R=ia(o),A=Fr(h),k=ia(h)===h,N=await(m.isRTL==null?void 0:m.isRTL(g.floating)),O=b||(k||!w?[Od(h)]:qD(h)),U=E!=="none";!b&&U&&O.push(...YD(h,w,E,N));const Y=[h,...O],F=await m.detectOverflow(t,_),W=[];let ce=((a=l.flip)==null?void 0:a.overflows)||[];if(y&&W.push(F[R]),x){const oe=HD(o,d,N);W.push(F[oe[0]],F[oe[1]])}
10if(ce=[...ce,{placement:o,overflows:W}],!W.every(oe=>oe<=0)){var fe,X;const oe=(((fe=l.flip)==null?void 0:fe.index)||0)+1,ve=Y[oe];if(ve&&(!(x==="alignment"?A!==Fr(ve):!1)||ce.every(te=>Fr(te.placement)===A?te.overflows[0]>0:!0)))return{data:{index:oe,overflows:ce},reset:{placement:ve}};let D=(X=ce.filter(q=>q.overflows[0]<=0).sort((q,te)=>q.overflows[1]-te.overflows[1])[0])==null?void 0:X.placement;if(!D)switch(C){case"bestFit":{var ae;const q=(ae=ce.filter(te=>{if(U){const ue=Fr(te.placement);return ue===A||ue==="y"}return!0}).map(te=>[te.placement,te.overflows.filter(ue=>ue>0).reduce((ue,j)=>ue+j,0)]).sort((te,ue)=>te[1]-ue[1])[0])==null?void 0:ae[0];q&&(D=q);break}case"initialPlacement":D=h;break}if(o!==D)return{reset:{placement:D}}}return{}}}};function x1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function w1(e){return BD.some(t=>e[t]>=0)}const n4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:a}=t,{strategy:o="referenceHidden",...l}=ys(e,t);switch(o){case"referenceHidden":{const d=await a.detectOverflow(t,{...l,elementContext:"reference"}),h=x1(d,n.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:w1(h)}}}case"escaped":{const d=await a.detectOverflow(t,{...l,altBoundary:!0}),h=x1(d,n.floating);return{data:{escapedOffsets:h,escaped:w1(h)}}}default:return{}}}}},ZC=new Set(["left","top"]);async function r4(e,t){const{placement:n,platform:a,elements:o}=e,l=await(a.isRTL==null?void 0:a.isRTL(o.floating)),d=ia(n),h=Oo(n),m=Fr(n)==="y",g=ZC.has(d)?-1:1,y=l&&m?-1:1,x=ys(t,e);let{mainAxis:b,crossAxis:C,alignmentAxis:E}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return h&&typeof E=="number"&&(C=h==="end"?E*-1:E),m?{x:C*y,y:b*g}:{x:b*g,y:C*y}}const s4=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:l,placement:d,middlewareData:h}=t,m=await r4(t,e);return d===((n=h.offset)==null?void 0:n.placement)&&(a=h.arrow)!=null&&a.alignmentOffset?{}:{x:o+m.x,y:l+m.y,data:{...m,placement:d}}}}},a4=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o,platform:l}=t,{mainAxis:d=!0,crossAxis:h=!1,limiter:m={fn:A=>{let{x:k,y:N}=A;return{x:k,y:N}}},...g}=ys(e,t),y={x:n,y:a},x=await l.detectOverflow(t,g),b=Fr(o),C=Ey(b);let E=y[C],w=y[b];const _=(A,k)=>QC(k+x[A==="y"?"top":"left"],k,k-x[A==="y"?"bottom":"right"]);d&&(E=_(C,E)),h&&(w=_(b,w));const R=m.fn({...t,[C]:E,[b]:w});return{...R,data:{x:R.x-n,y:R.y-a,enabled:{[C]:d,[b]:h}}}}}},i4=function(e){return e===void 0&&(e={}),{options:e,fn(t){var n,a;const{x:o,y:l,placement:d,rects:h,middlewareData:m}=t,{offset:g=0,mainAxis:y=!0,crossAxis:x=!0}=ys(e,t),b={x:o,y:l},C=Fr(d),E=Ey(C);let w=b[E],_=b[C];const R=ys(g,t),A=typeof R=="number"?{mainAxis:R,crossAxis:0}:{mainAxis:(n=R.mainAxis)!=null?n:0,crossAxis:(a=R.crossAxis)!=null?a:0};if(y){const O=E==="y"?"height":"width",U=h.reference[E]-h.floating[O]+A.mainAxis,Y=h.reference[E]+h.reference[O]-A.mainAxis;w<U?w=U:w>Y&&(w=Y)}if(x){var k,N;const O=E==="y"?"width":"height",U=ZC.has(ia(d)),Y=h.reference[C]-h.floating[O]+(U&&((k=m.offset)==null?void 0:k[C])||0)+(U?0:A.crossAxis),F=h.reference[C]+h.reference[O]+(U?0:((N=m.offset)==null?void 0:N[C])||0)-(U?A.crossAxis:0);_<Y?_=Y:_>F&&(_=F)}return{[E]:w,[C]:_}}}},o4=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:a,platform:o,elements:l}=t,{apply:d=()=>{},...h}=ys(e,t),m=await o.detectOverflow(t,h),g=ia(n),y=Oo(n),x=Fr(n)==="y",{width:b,height:C}=a.floating;let E,w;g==="top"||g==="bottom"?(E=g,w=y===(await(o.isRTL==null?void 0:o.isRTL(l.floating))?"start":"end")?"left":"right"):(w=g,E=y==="end"?"top":"bottom");const _=C-m.top-m.bottom,R=b-m.left-m.right,A=aa(C-m[E],_),k=aa(b-m[w],R),N=t.middlewareData.shift,O=!N;let U=A,Y=k;N!=null&&N.enabled.x&&(Y=R),N!=null&&N.enabled.y&&(U=_),O&&!y&&(x?Y=b-2*hs(m.left,m.right):U=C-2*hs(m.top,m.bottom)),await d({...t,availableWidth:Y,availableHeight:U});const F=await o.getDimensions(l.floating);return b!==F.width||C!==F.height?{reset:{rects:!0}}:{}}}};function nf(){return typeof window<"u"}function Ro(e){return WC(e)?(e.nodeName||"").toLowerCase():"#document"}function Fn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ws(e){var t;return(t=(WC(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function WC(e){return nf()?e instanceof Node||e instanceof Fn(e).Node:!1}function Hr(e){return nf()?e instanceof Element||e instanceof Fn(e).Element:!1}function ha(e){return nf()?e instanceof HTMLElement||e instanceof Fn(e).HTMLElement:!1}function S1(e){return!nf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fn(e).ShadowRoot}function rf(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=qr(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&o!=="inline"&&o!=="contents"}function l4(e){return/^(table|td|th)$/.test(Ro(e))}function sf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const c4=/transform|translate|scale|rotate|perspective|filter/,u4=/paint|layout|strict|content/,za=e=>!!e&&e!=="none";let hp;function Ny(e){const t=Hr(e)?qr(e):e;return za(t.transform)||za(t.translate)||za(t.scale)||za(t.rotate)||za(t.perspective)||!ky()&&(za(t.backdropFilter)||za(t.filter))||c4.test(t.willChange||"")||u4.test(t.contain||"")}function d4(e){let t=qa(e);for(;ha(t)&&!tc(t);){if(Ny(t))return t;if(sf(t))return null;t=qa(t)}return null}function ky(){return hp==null&&(hp=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),hp}function tc(e){return/^(html|body|#document)$/.test(Ro(e))}function qr(e){return Fn(e).getComputedStyle(e)}function af(e){return Hr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function qa(e){if(Ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||S1(e)&&e.host||ws(e);return S1(t)?t.host:t}function XC(e){const t=qa(e);return tc(t)?(e.ownerDocument||e).body:ha(t)&&rf(t)?t:XC(t)}function nc(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=XC(e),l=o===((a=e.ownerDocument)==null?void 0:a.body),d=Fn(o);if(l){const h=Cg(d);
10return t.concat(d,d.visualViewport||[],rf(o)?o:[],h&&n?nc(h):[])}else return t.concat(o,nc(o,[],n))}function Cg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function JC(e){const t=qr(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=ha(e),l=o?e.offsetWidth:n,d=o?e.offsetHeight:a,h=Ad(n)!==l||Ad(a)!==d;return h&&(n=l,a=d),{width:n,height:a,$:h}}function Ay(e){return Hr(e)?e:e.contextElement}function lo(e){const t=Ay(e);if(!ha(t))return ms(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:l}=JC(t);let d=(l?Ad(n.width):n.width)/a,h=(l?Ad(n.height):n.height)/o;return(!d||!Number.isFinite(d))&&(d=1),(!h||!Number.isFinite(h))&&(h=1),{x:d,y:h}}const f4=ms(0);function eE(e){const t=Fn(e);return!ky()||!t.visualViewport?f4:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h4(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Fn(e)}function Ga(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),l=Ay(e);let d=ms(1);t&&(a?Hr(a)&&(d=lo(a)):d=lo(e));const h=h4(l,n,a)?eE(l):ms(0);let m=(o.left+h.x)/d.x,g=(o.top+h.y)/d.y,y=o.width/d.x,x=o.height/d.y;if(l&&a){const b=Fn(l),C=Hr(a)?Fn(a):a;let E=b,w=Cg(E);for(;w&&C!==E;){const _=lo(w),R=w.getBoundingClientRect(),A=qr(w),k=R.left+(w.clientLeft+parseFloat(A.paddingLeft))*_.x,N=R.top+(w.clientTop+parseFloat(A.paddingTop))*_.y;m*=_.x,g*=_.y,y*=_.x,x*=_.y,m+=k,g+=N,E=Fn(w),w=Cg(E)}}return Rd({width:y,height:x,x:m,y:g})}function of(e,t){const n=af(e).scrollLeft;return t?t.left+n:Ga(ws(e)).left+n}function tE(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-of(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function m4(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const l=o==="fixed",d=ws(a),h=t?sf(t.floating):!1;if(a===d||h&&l)return n;let m={scrollLeft:0,scrollTop:0},g=ms(1);const y=ms(0),x=ha(a);if((x||!l)&&((Ro(a)!=="body"||rf(d))&&(m=af(a)),x)){const C=Ga(a);g=lo(a),y.x=C.x+a.clientLeft,y.y=C.y+a.clientTop}const b=d&&!x&&!l?tE(d,m):ms(0);return{width:n.width*g.x,height:n.height*g.y,x:n.x*g.x-m.scrollLeft*g.x+y.x+b.x,y:n.y*g.y-m.scrollTop*g.y+y.y+b.y}}function p4(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function g4(e){const t=af(e),n=e.ownerDocument.body,a=hs(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=hs(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let l=-t.scrollLeft+of(e);const d=-t.scrollTop;return qr(n).direction==="rtl"&&(l+=hs(e.clientWidth,n.clientWidth)-a),{width:a,height:o,x:l,y:d}}const y4=25;function v4(e,t,n){n===void 0&&(n="viewport");const a=n==="layoutViewport",o=Fn(e),l=ws(e),d=o.visualViewport;let h=l.clientWidth,m=l.clientHeight,g=0,y=0;if(d){const b=!ky()||t==="fixed";a?b||(g=-d.offsetLeft,y=-d.offsetTop):(h=d.width,m=d.height,b&&(g=d.offsetLeft,y=d.offsetTop))}if(of(l)<=0){const b=l.ownerDocument,C=b.body,E=getComputedStyle(C),w=b.compatMode==="CSS1Compat"&&parseFloat(E.marginLeft)+parseFloat(E.marginRight)||0,_=Math.abs(l.clientWidth-C.clientWidth-w),R=getComputedStyle(l).scrollbarGutter==="stable both-edges"?_/2:_;R<=y4&&(h-=R)}return{width:h,height:m,x:g,y}}function b4(e,t){const n=Ga(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,l=lo(e),d=e.clientWidth*l.x,h=e.clientHeight*l.y,m=o*l.x,g=a*l.y;return{width:d,height:h,x:m,y:g}}function _1(e,t,n){let a;if(t==="viewport"||t==="layoutViewport")a=v4(e,n,t);else if(t==="document")a=g4(ws(e));else if(Hr(t))a=b4(t,n);else{const o=eE(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Rd(a)}function x4(e,t){const n=t.get(e);if(n)return n;let a=nc(e,[],!1).filter(h=>Hr(h)&&Ro(h)!=="body"),o=null;const l=qr(e).position==="fixed";let d=l?qa(e):e;for(;Hr(d)&&!tc(d);){const h=qr(d),m=Ny(d),g=o?o.position:l?"fixed":"";!m&&(g==="fixed"||g==="absolute"&&h.position==="static")?a=a.filter(x=>x!==d):o=h,d=qa(d)}return t.set(e,a),a}function w4(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const d=[...n==="clippingAncestors"?sf(t)?[]:x4(t,this._c):[].concat(n),a],h=_1(t,d[0],o);let m=h.top,g=h.right,y=h.bottom,x=h.left;for(let b=1;b<d.length;b++){const C=_1(t,d[b],o);m=hs(C.top,m),g=aa(C.right,g),y=aa(C.bottom,y),x=hs(C.left,x)}return{width:g-x,height:y-m,x,y:m}}function S4(e){const{width:t,height:n}=JC(e);return{width:t,height:n}}function _4(e,t,n){const a=ha(t),o=ws(t),l=n==="fixed",d=Ga(e,!0,l,t);let h={scrollLeft:0,scrollTop:0};const m=ms(0);
10if((a||!l)&&((Ro(t)!=="body"||rf(o))&&(h=af(t)),a)){const b=Ga(t,!0,l,t);m.x=b.x+t.clientLeft,m.y=b.y+t.clientTop}!a&&o&&(m.x=of(o));const g=o&&!a&&!l?tE(o,h):ms(0),y=d.left+h.scrollLeft-m.x-g.x,x=d.top+h.scrollTop-m.y-g.y;return{x:y,y:x,width:d.width,height:d.height}}function mp(e){return qr(e).position==="static"}function C1(e,t){if(!ha(e)||qr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ws(e)===n&&(n=n.ownerDocument.body),n}function nE(e,t){const n=Fn(e);if(sf(e))return n;if(!ha(e)){let o=qa(e);for(;o&&!tc(o);){if(Hr(o)&&!mp(o))return o;o=qa(o)}return n}let a=C1(e,t);for(;a&&l4(a)&&mp(a);)a=C1(a,t);return a&&tc(a)&&mp(a)&&!Ny(a)?n:a||d4(e)||n}const C4=async function(e){const t=this.getOffsetParent||nE,n=this.getDimensions,a=await n(e.floating);return{reference:_4(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function E4(e){return qr(e).direction==="rtl"}const T4={convertOffsetParentRelativeRectToViewportRelativeRect:m4,getDocumentElement:ws,getClippingRect:w4,getOffsetParent:nE,getElementRects:C4,getClientRects:p4,getDimensions:S4,getScale:lo,isElement:Hr,isRTL:E4};function rE(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function j4(e,t,n){let a=null,o;const l=ws(e);function d(){var y;clearTimeout(o),(y=a)==null||y.disconnect(),a=null}function h(y,x){y===void 0&&(y=!1),x===void 0&&(x=1),d();const b=e.getBoundingClientRect(),{left:C,top:E,width:w,height:_}=b;if(y||t(),!w||!_)return;const R=Ju(E),A=Ju(l.clientWidth-(C+w)),k=Ju(l.clientHeight-(E+_)),N=Ju(C),U={rootMargin:-R+"px "+-A+"px "+-k+"px "+-N+"px",threshold:hs(0,aa(1,x))||1};let Y=!0;function F(W){const ce=W[0].intersectionRatio;if(!rE(b,e.getBoundingClientRect()))return h();if(ce!==x){if(!Y)return h();ce?h(!1,ce):o=setTimeout(()=>{h(!1,1e-7)},1e3)}Y=!1}try{a=new IntersectionObserver(F,{...U,root:l.ownerDocument})}catch{a=new IntersectionObserver(F,U)}a.observe(e)}const m=Fn(e),g=()=>h(n);return m.addEventListener("resize",g),h(!0),()=>{m.removeEventListener("resize",g),d()}}function N4(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:l=!0,elementResize:d=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:m=!1}=a,g=Ay(e),y=o||l?[...g?nc(g):[],...t?nc(t):[]]:[];y.forEach(R=>{o&&R.addEventListener("scroll",n),l&&R.addEventListener("resize",n)});const x=g&&h?j4(g,n,l):null;let b=-1,C=null;d&&(C=new ResizeObserver(R=>{let[A]=R;A&&A.target===g&&C&&t&&(C.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var k;(k=C)==null||k.observe(t)})),n()}),g&&!m&&C.observe(g),t&&C.observe(t));let E,w=m?Ga(e):null;m&&_();function _(){const R=Ga(e);w&&!rE(w,R)&&n(),w=R,E=requestAnimationFrame(_)}return n(),()=>{var R;y.forEach(A=>{o&&A.removeEventListener("scroll",n),l&&A.removeEventListener("resize",n)}),x?.(),(R=C)==null||R.disconnect(),C=null,m&&cancelAnimationFrame(E)}}const k4=s4,A4=a4,O4=t4,R4=o4,P4=n4,E1=e4,M4=i4,D4=(e,t,n)=>{const a=new Map,o=n??{},l={...T4,...o.platform,_c:a};return JD(e,t,{...o,platform:l})};var I4=typeof document<"u",L4=function(){},bd=I4?v.useLayoutEffect:L4;function Pd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!Pd(e[a],t[a]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,o[a]))return!1;for(a=n;a--!==0;){const l=o[a];if(!(l==="_owner"&&e.$$typeof)&&!Pd(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function sE(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function T1(e,t){const n=sE(e);return Math.round(t*n)/n}function pp(e){const t=v.useRef(e);return bd(()=>{t.current=e}),t}function z4(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:o,elements:{reference:l,floating:d}={},transform:h=!0,whileElementsMounted:m,open:g}=e,[y,x]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,C]=v.useState(a);Pd(b,a)||C(a);const[E,w]=v.useState(null),[_,R]=v.useState(null),A=v.useCallback(te=>{te!==U.current&&(U.current=te,w(te))},[]),k=v.useCallback(te=>{te!==Y.current&&(Y.current=te,R(te))},[]),N=l||E,O=d||_,U=v.useRef(null),Y=v.useRef(null),F=v.useRef(y),W=m!=null,ce=pp(m),fe=pp(o),X=pp(g),ae=v.useCallback(()=>
10{if(!U.current||!Y.current)return;const te={placement:t,strategy:n,middleware:b};fe.current&&(te.platform=fe.current),D4(U.current,Y.current,te).then(ue=>{const j={...ue,isPositioned:X.current!==!1};oe.current&&!Pd(F.current,j)&&(F.current=j,xs.flushSync(()=>{x(j)}))})},[b,t,n,fe,X]);bd(()=>{g===!1&&F.current.isPositioned&&(F.current.isPositioned=!1,x(te=>({...te,isPositioned:!1})))},[g]);const oe=v.useRef(!1);bd(()=>(oe.current=!0,()=>{oe.current=!1}),[]),bd(()=>{if(N&&(U.current=N),O&&(Y.current=O),N&&O){if(ce.current)return ce.current(N,O,ae);ae()}},[N,O,ae,ce,W]);const ve=v.useMemo(()=>({reference:U,floating:Y,setReference:A,setFloating:k}),[A,k]),D=v.useMemo(()=>({reference:N,floating:O}),[N,O]),q=v.useMemo(()=>{const te={position:n,left:0,top:0};if(!D.floating)return te;const ue=T1(D.floating,y.x),j=T1(D.floating,y.y);return h?{...te,transform:"translate("+ue+"px, "+j+"px)",...sE(D.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:ue,top:j}},[n,h,D.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:ae,refs:ve,elements:D,floatingStyles:q}),[y,ae,ve,D,q])}const U4=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:o}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?E1({element:a.current,padding:o}).fn(n):{}:a?E1({element:a,padding:o}).fn(n):{}}}},V4=(e,t)=>{const n=k4(e);return{name:n.name,fn:n.fn,options:[e,t]}},F4=(e,t)=>{const n=A4(e);return{name:n.name,fn:n.fn,options:[e,t]}},B4=(e,t)=>({fn:M4(e).fn,options:[e,t]}),$4=(e,t)=>{const n=O4(e);return{name:n.name,fn:n.fn,options:[e,t]}},H4=(e,t)=>{const n=R4(e);return{name:n.name,fn:n.fn,options:[e,t]}},q4=(e,t)=>{const n=P4(e);return{name:n.name,fn:n.fn,options:[e,t]}},G4=(e,t)=>{const n=U4(e);return{name:n.name,fn:n.fn,options:[e,t]}};var K4=Object.defineProperty,Q4=(e,t)=>K4(e,"name",{value:t,configurable:!0});function aE(e){const[t,n]=v.useState(void 0);return Ct(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const a=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const l=o[0];let d,h;if("borderBoxSize"in l){const m=l.borderBoxSize,g=Array.isArray(m)?m[0]:m;d=g.inlineSize,h=g.blockSize}else d=e.offsetWidth,h=e.offsetHeight;n({width:d,height:h})});return a.observe(e,{box:"border-box"}),()=>a.unobserve(e)}else n(void 0)},[e]),t}Q4(aE,"useSize");var Y4=Object.defineProperty,na=(e,t)=>Y4(e,"name",{value:t,configurable:!0}),iE="Popper",[oE,ma]=Bn(iE),[Z4,lE]=oE(iE),W4=na(e=>{const{__scopePopper:t,children:n}=e,[a,o]=v.useState(null),[l,d]=v.useState(void 0);return u.jsx(Z4,{scope:t,anchor:a,onAnchorChange:o,placementState:l,setPlacementState:d,children:n})},"Popper"),X4="PopperAnchor",J4=v.forwardRef(na(function(t,n){const{__scopePopper:a,virtualRef:o,...l}=t,d=lE(X4,a),h=v.useRef(null),m=d.onAnchorChange,g=v.useCallback(w=>{h.current=w,w&&m(w)},[m]),y=Qe(n,g),x=v.useRef(null);v.useEffect(()=>{if(!o)return;const w=x.current;x.current=o.current,w!==x.current&&m(x.current)});const b=d.placementState&&lf(d.placementState),C=b?.[0],E=b?.[1];return o?null:u.jsx(Ve.div,{"data-radix-popper-side":C,"data-radix-popper-align":E,...l,ref:y})},"PopperAnchor")),cE="PopperContent",[e3,pB]=oE(cE),t3=v.forwardRef(na(function(t,n){const{__scopePopper:a,side:o="bottom",sideOffset:l=0,align:d="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:g=!0,collisionBoundary:y=[],collisionPadding:x=0,sticky:b="partial",hideWhenDetached:C=!1,updatePositionStrategy:E="optimized",onPlaced:w,..._}=t,R=lE(cE,a),[A,k]=v.useState(null),N=Qe(n,k),[O,U]=v.useState(null),Y=aE(O),F=Y?.width??0,W=Y?.height??0,ce=o+(d!=="center"?"-"+d:""),fe=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},X=Array.isArray(y)?y:[y],ae=X.length>0,oe={padding:fe,boundary:X.filter(uE),altBoundary:ae},{refs:ve,floatingStyles:D,placement:q,isPositioned:te,middlewareData:ue}=z4({strategy:"fixed",placement:ce,whileElementsMounted:na((...Oe)=>N4(...Oe,{animationFrame:E==="always"}),"whileElementsMounted"),elements:{reference:R.anchor},middleware:[V4({mainAxis:l+W,alignmentAxis:h}),g&&F4({mainAxis:!0,crossAxis:!1,limiter:b==="partial"?B4():void 0,...oe}),g&&$4({...oe}),H4({...oe,apply:na(({elements:Oe,rects:St,availableWidth:Ze,availableHeight:tt})=>{const{width:at,height:zt}=St.reference,on=Oe.floating.style;on.setProperty("--radix-popper-available-width",`${Ze}px`),on.setProperty("--radix-popper-available-height",`${tt}px`),on.setProperty("--radix-popper-anchor-width",`${at}px`),on.setProperty("--radix-popper-anchor-height",`${zt}px`)},"apply")}),O&&G4({element:O,padding:m}),n3({arrowWidth:F,arrowHeight:W}),C&&q4({strategy:"referenceHidden",...oe,boundary:ae?oe.boundary:void 0})]}),j=R.setPlacementState;Ct(()=>(j(q),()=>{j(void 0)}),[q,j]);const[L,V]=lf(q),J=yn(w);Ct(()=>{te&&J?.()},[te,J]);const ge=ue.arrow?.x,be=ue.arrow?.y,ye=ue.arrow?.centerOffset!==0,[qe,de]=v.useState();return Ct(()=>{A&&de(window.getComputedStyle(A).zIndex)},[A]),u.jsx("div",{ref:ve.setFloating,"data-radix-popper-content-wrapper":"",style:{...D,transform:te?D.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:qe,"--radix-popper-transform-origin":[ue.transformOrigin?.x,ue.transformOrigin?.y].join(" "),...ue.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:u.jsx(e3,{scope:a,placedSide:L,placedAlign:V,onArrowChange:U,arrowX:ge,arrowY:be,shouldHideArrow:ye,children:u.jsx(Ve.div,{"data-side":L,"data-align":V,..._,ref:N,style:{..._.style,animation:te?_.style?.animation:"none"}})})})},"PopperContent"));function uE(e){return e!==null}na(uE,"isNotNull");var n3=na(e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:a,middlewareData:o}=t,d=o.arrow?.centerOffset!==0,h=d?0:e.arrowWidth,m=d?0:e.arrowHeight,[g,y]=lf(n),x={start:"0%",center:"50%",end:"100%"}[y],b=(o.arrow?.x??0)+h/2,C=(o.arrow?.y??0)+m/2;let E="",w="";return g==="bottom"?(E=d?x:`${b}px`,w=`${-m}px`):g==="top"?(E=d?x:`${b}px`,w=`${a.floating.height+m}px`):g==="right"?(E=`${-m}px`,w=d?x:`${C}px`):g==="left"&&(E=`${a.floating.width+m}px`,w=d?x:`${C}px`),{data:{x:E,y:w}}}}),"transformOrigin");function lf(e){const[t,n="center"]=e.split("-");return[t,n]}na(lf,"getSideAndAlignFromPlacement");var cf=W4,uf=J4,df=t3,r3=Object.defineProperty,gn=(e,t)=>r3(e,"name",{value:t,configurable:!0}),[Oy,gB]=Bn("Tooltip",[ma]),Ry=ma(),s3="TooltipProvider",a3=700,Eg="tooltip.open",[i3,Py]=Oy(s3),o3=gn(e=>
10{const{__scopeTooltip:t,delayDuration:n=a3,skipDelayDuration:a=300,disableHoverableContent:o=!1,children:l}=e,d=v.useRef(!0),h=v.useRef(!1),m=v.useRef(0);return v.useEffect(()=>{const g=m.current;return()=>window.clearTimeout(g)},[]),u.jsx(i3,{scope:t,isOpenDelayedRef:d,delayDuration:n,onOpen:v.useCallback(()=>{a<=0||(window.clearTimeout(m.current),d.current=!1)},[a]),onClose:v.useCallback(()=>{a<=0||(window.clearTimeout(m.current),m.current=window.setTimeout(()=>d.current=!0,a))},[a]),isPointerInTransitRef:h,onPointerInTransitChange:v.useCallback(g=>{h.current=g},[]),disableHoverableContent:o,children:l})},"TooltipProvider"),Tg="Tooltip",[l3,ff]=Oy(Tg),c3=gn(e=>{const{__scopeTooltip:t,children:n,open:a,defaultOpen:o,onOpenChange:l,disableHoverableContent:d,delayDuration:h}=e,m=Py(Tg,e.__scopeTooltip),g=Ry(t),[y,x]=v.useState(null),[b,C]=v.useState(void 0),E=gr(),w=v.useRef(0),_=d??m.disableHoverableContent,R=h??m.delayDuration,A=v.useRef(!1),[k,N]=$r({prop:a,defaultProp:o??!1,onChange:gn(ce=>{ce?(m.onOpen(),document.dispatchEvent(new CustomEvent(Eg))):m.onClose(),l?.(ce)},"onChange"),caller:Tg}),O=v.useMemo(()=>k?A.current?"delayed-open":"instant-open":"closed",[k]),U=v.useCallback(()=>{window.clearTimeout(w.current),w.current=0,A.current=!1,N(!0)},[N]),Y=v.useCallback(()=>{window.clearTimeout(w.current),w.current=0,N(!1)},[N]),F=v.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>{A.current=!0,N(!0),w.current=0},R)},[R,N]);v.useEffect(()=>()=>{w.current&&(window.clearTimeout(w.current),w.current=0)},[]);const W=b??E;return u.jsx(cf,{...g,children:u.jsx(l3,{scope:t,contentId:W,setContentId:C,open:k,stateAttribute:O,trigger:y,onTriggerChange:x,onTriggerEnter:v.useCallback(()=>{m.isOpenDelayedRef.current?F():U()},[m.isOpenDelayedRef,F,U]),onTriggerLeave:v.useCallback(()=>{_?Y():(window.clearTimeout(w.current),w.current=0)},[Y,_]),onOpen:U,onClose:Y,disableHoverableContent:_,children:n})})},"Tooltip"),j1="TooltipTrigger",u3=v.forwardRef(gn(function(t,n){const{__scopeTooltip:a,...o}=t,l=ff(j1,a),d=Py(j1,a),h=Ry(a),m=v.useRef(null),g=Qe(n,m,l.onTriggerChange),y=v.useRef(!1),x=v.useRef(!1),b=v.useCallback(()=>y.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",b),[b]),u.jsx(uf,{asChild:!0,...h,children:u.jsx(Ve.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...o,ref:g,onPointerMove:xe(t.onPointerMove,C=>{C.pointerType!=="touch"&&!x.current&&!d.isPointerInTransitRef.current&&(l.onTriggerEnter(),x.current=!0)}),onPointerLeave:xe(t.onPointerLeave,()=>{l.onTriggerLeave(),x.current=!1}),onPointerDown:xe(t.onPointerDown,()=>{l.open&&l.onClose(),y.current=!0,document.addEventListener("pointerup",b,{once:!0})}),onFocus:xe(t.onFocus,()=>{y.current||l.onOpen()}),onBlur:xe(t.onBlur,l.onClose),onClick:xe(t.onClick,l.onClose)})})},"TooltipTrigger")),d3="TooltipPortal",[yB,f3]=Oy(d3,{forceMount:void 0}),rc="TooltipContent",h3=v.forwardRef(gn(function(t,n){const a=f3(rc,t.__scopeTooltip),{forceMount:o=a.forceMount,side:l="top",...d}=t,h=ff(rc,t.__scopeTooltip);return u.jsx(rr,{present:o||h.open,children:h.disableHoverableContent?u.jsx(dE,{side:l,...d,ref:n}):u.jsx(m3,{side:l,...d,ref:n})})},"TooltipContent")),m3=v.forwardRef(gn(function(t,n){const a=ff(rc,t.__scopeTooltip),o=Py(rc,t.__scopeTooltip),l=v.useRef(null),d=Qe(n,l),[h,m]=v.useState(null),{trigger:g,onClose:y}=a,x=l.current,{onPointerInTransitChange:b}=o,C=v.useCallback(()=>{m(null),b(!1)},[b]),E=v.useCallback((w,_)=>{const R=w.currentTarget,A={x:w.clientX,y:w.clientY},k=fE(A,R.getBoundingClientRect()),N=hE(A,k),O=mE(_.getBoundingClientRect()),U=gE([...N,...O]);m(U),b(!0)},[b]);return v.useEffect(()=>()=>C(),[C]),v.useEffect(()=>{if(g&&x){const w=gn(R=>E(R,x),"handleTriggerLeave"),_=gn(R=>E(R,g),"handleContentLeave");return g.addEventListener("pointerleave",w),x.addEventListener("pointerleave",_),()=>{g.removeEventListener("pointerleave",w),x.removeEventListener("pointerleave",_)}
10}},[g,x,E,C]),v.useEffect(()=>{if(h){const w=gn(_=>{const R=_.target,A={x:_.clientX,y:_.clientY},k=g?.contains(R)||x?.contains(R),N=!pE(A,h);k?C():N&&(C(),y())},"handleTrackPointerGrace");return document.addEventListener("pointermove",w),()=>document.removeEventListener("pointermove",w)}},[g,x,h,y,C]),u.jsx(dE,{...t,ref:d})},"TooltipContentHoverable")),p3=V_("TooltipContent"),dE=v.forwardRef(gn(function(t,n){const{__scopeTooltip:a,children:o,"aria-label":l,id:d,onEscapeKeyDown:h,onPointerDownOutside:m,...g}=t,y=ff(rc,a),x=Ry(a),{onClose:b}=y;v.useEffect(()=>(document.addEventListener(Eg,b),()=>document.removeEventListener(Eg,b)),[b]),v.useEffect(()=>{if(y.trigger){const E=gn(w=>{w.target instanceof Node&&w.target.contains(y.trigger)&&b()},"handleScroll");return window.addEventListener("scroll",E,{capture:!0}),()=>window.removeEventListener("scroll",E,{capture:!0})}},[y.trigger,b]);const{setContentId:C}=y;return Ct(()=>(C(d),()=>{C(void 0)}),[d,C]),u.jsx(Ao,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:h,onPointerDownOutside:m,onFocusOutside:E=>E.preventDefault(),onDismiss:b,children:u.jsxs(df,{"data-state":y.stateAttribute,role:l?void 0:"tooltip",id:l?void 0:y.contentId,...x,...g,ref:n,style:{...g.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[u.jsx(p3,{children:o}),l?u.jsx(jR,{id:y.contentId,role:"tooltip",children:l}):null]})})},"TooltipContentImpl"));function fE(e,t){const n=Math.abs(t.top-e.y),a=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,a,o,l)){case l:return"left";case o:return"right";case n:return"top";case a:return"bottom";default:throw new Error("unreachable")}}gn(fE,"getExitSideFromRect");function hE(e,t,n=5){const a=[];switch(t){case"top":a.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":a.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":a.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":a.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return a}gn(hE,"getPaddedExitPoints");function mE(e){const{top:t,right:n,bottom:a,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:a},{x:o,y:a}]}gn(mE,"getPointsFromRect");function pE(e,t){const{x:n,y:a}=e;let o=!1;for(let l=0,d=t.length-1;l<t.length;d=l++){const h=t[l],m=t[d],g=h.x,y=h.y,x=m.x,b=m.y;y>a!=b>a&&n<(x-g)*(a-y)/(b-y)+g&&(o=!o)}return o}gn(pE,"isPointInPolygon");function gE(e){const t=e.slice();return t.sort((n,a)=>n.x<a.x?-1:n.x>a.x?1:n.y<a.y?-1:n.y>a.y?1:0),yE(t)}gn(gE,"getHull");function yE(e){if(e.length<=1)return e.slice();const t=[];for(let a=0;a<e.length;a++){const o=e[a];for(;t.length>=2;){const l=t[t.length-1],d=t[t.length-2];if((l.x-d.x)*(o.y-d.y)>=(l.y-d.y)*(o.x-d.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let a=e.length-1;a>=0;a--){const o=e[a];for(;n.length>=2;){const l=n[n.length-1],d=n[n.length-2];if((l.x-d.x)*(o.y-d.y)>=(l.y-d.y)*(o.x-d.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}gn(yE,"getHullPresorted");var g3=o3,y3=c3,v3=u3,vE=h3;const b3=g3,vB=y3,bB=v3,x3=v.forwardRef(({className:e,sideOffset:t=4,...n},a)=>u.jsx(vE,{ref:a,sideOffset:t,className:Pe("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",e),...n}));x3.displayName=vE.displayName;const bE=v.createContext(void 0);function w3({children:e,defaultTheme:t="system",storageKey:n="rv-dealer-theme"}){const[a,o]=v.useState(()=>typeof window<"u"&&localStorage.getItem(n)||t),[l,d]=v.useState("light");v.useEffect(()=>{const m=window.document.documentElement;m.classList.remove("light","dark");let g;a==="system"?g=window.matchMedia("(prefers-color-scheme: dark)").matches?"dar
10k":"light":g=a,m.classList.add(g),d(g)},[a]),v.useEffect(()=>{if(a==="system"){const m=window.matchMedia("(prefers-color-scheme: dark)"),g=()=>{const y=window.document.documentElement;y.classList.remove("light","dark");const x=m.matches?"dark":"light";y.classList.add(x),d(x)};return m.addEventListener("change",g),()=>m.removeEventListener("change",g)}},[a]);const h={theme:a,setTheme:m=>{localStorage.setItem(n,m),o(m)},resolvedTheme:l};return u.jsx(bE.Provider,{value:h,children:e})}function S3(){const e=v.useContext(bE);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e}const _3=yc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 hover-elevate active-elevate-2",{variants:{variant:{default:"bg-primary text-primary-foreground border border-primary-border",destructive:"bg-destructive text-destructive-foreground border border-destructive-border",outline:" border [border-color:var(--button-outline)] shadow-xs active:shadow-none ",secondary:"border bg-secondary text-secondary-foreground border border-secondary-border ",ghost:"border border-transparent"},size:{default:"min-h-9 px-4 py-2",sm:"min-h-8 rounded-md px-3 text-xs",lg:"min-h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),Te=v.forwardRef(({className:e,variant:t,size:n,asChild:a=!1,...o},l)=>{const d=a?z_:"button";return u.jsx(d,{className:Pe(_3({variant:t,size:n,className:e})),ref:l,...o})});Te.displayName="Button";function C3(){const{resolvedTheme:e,setTheme:t}=S3();return u.jsxs(Te,{variant:"ghost",size:"icon",onClick:()=>t(e==="light"?"dark":"light"),"data-testid":"button-theme-toggle",children:[u.jsx(NM,{className:"h-5 w-5 rotate-0 scale-100 transition-all dark:-rotate-90 dark:scale-0"}),u.jsx(sM,{className:"absolute h-5 w-5 rotate-90 scale-0 transition-all dark:rotate-0 dark:scale-100"}),u.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}var E3=Object.defineProperty,Rn=(e,t)=>E3(e,"name",{value:t,configurable:!0}),gp="focusScope.autoFocusOnMount",yp="focusScope.autoFocusOnUnmount",N1={bubbles:!1,cancelable:!0},hf=v.forwardRef(Rn(function(t,n){const{loop:a=!1,trapped:o=!1,onMountAutoFocus:l,onUnmountAutoFocus:d,...h}
vendor: 1,898 bytes, line 10
10=t,[m,g]=v.useState(null),y=yn(l),x=yn(d),b=v.useRef(null),C=Qe(n,g),E=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(o){let _=function(N){if(E.paused||!m)return;const O=N.target;m.contains(O)?b.current=O:ds(b.current,{select:!0})},R=function(N){if(E.paused||!m)return;const O=N.relatedTarget;O!==null&&(m.contains(O)||ds(b.current,{select:!0}))},A=function(N){if(document.activeElement===document.body)for(const U of N)U.removedNodes.length>0&&ds(m)};Rn(_,"handleFocusIn"),Rn(R,"handleFocusOut"),Rn(A,"handleMutations"),document.addEventListener("focusin",_),document.addEventListener("focusout",R);const k=new MutationObserver(A);return m&&k.observe(m,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",R),k.disconnect()}}},[o,m,E.paused]),v.useEffect(()=>{if(m){k1.add(E);const _=document.activeElement;if(!m.contains(_)){const A=new CustomEvent(gp,N1);m.addEventListener(gp,y),m.dispatchEvent(A),A.defaultPrevented||(xE(EE(My(m)),{select:!0}),document.activeElement===_&&ds(m))}return()=>{m.removeEventListener(gp,y),setTimeout(()=>{const A=new CustomEvent(yp,N1);m.addEventListener(yp,x),m.dispatchEvent(A),A.defaultPrevented||ds(_??document.body,{select:!0}),m.removeEventListener(yp,x),k1.remove(E)},0)}}},[m,y,x,E]);const w=v.useCallback(_=>{if(!a&&!o||E.paused)return;const R=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,A=document.activeElement;if(R&&A){const k=_.currentTarget,[N,O]=wE(k);N&&O?!_.shiftKey&&A===O?(_.preventDefault(),a&&ds(N,{select:!0})):_.shiftKey&&A===N&&(_.preventDefault(),a&&ds(O,{select:!0})):A===k&&_.preventDefault()}},[a,o,E.paused]);return u.jsx(Ve.div,{tabIndex:-1,...h,ref:C,onKeyDown:w})},"FocusScope"));function xE(e,{select:t=!1}={}){const n=document.activeElement;for(const a of e)if(ds(a,{select:t}),document.activeElement!==n)return}
10Rn(xE,"focusFirst");function wE(e){const t=My(e),n=jg(t,e),a=jg(t.reverse(),e);return[n,a]}Rn(wE,"getTabbableEdges");function My(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:Rn(a=>{const o=a.tagName==="INPUT"&&a.type==="hidden";return a.disabled||a.hidden||o?NodeFilter.FILTER_SKIP:a.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}Rn(My,"getTabbableCandidates");function jg(e,t){const n=typeof t.checkVisibility=="function"&&t.checkVisibility({checkVisibilityCSS:!0});for(const a of e)if(!(n?!a.checkVisibility({checkVisibilityCSS:!0}):SE(a,{upTo:t})))return a}Rn(jg,"findVisible");function SE(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}Rn(SE,"isHidden");function _E(e){return e instanceof HTMLInputElement&&"select"in e}Rn(_E,"isSelectableInput");function ds(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&_E(e)&&t&&e.select()}}Rn(ds,"focus");var k1=CE();function CE(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Ng(e,t),e.unshift(t)},remove(t){e=Ng(e,t),e[0]?.resume()}}}Rn(CE,"createFocusScopesStack");function Ng(e,t){const n=[...e],a=n.indexOf(t);return a!==-1&&n.splice(a,1),n}Rn(Ng,"arrayRemove");function EE(e){return e.filter(t=>t.tagName!=="A")}Rn(EE,"removeLinks");var T3=Object.defineProperty,Dy=(e,t)=>T3(e,"name",{value:t,configurable:!0}),ed=0,Wi=null;function j3(e){return Po(),e.children}Dy(j3,"FocusGuards");function Po(){v.useEffect(()=>{Wi||(Wi={start:kg(),end:kg()});const{start:e,end:t}=Wi;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),ed++,()=>{ed===1&&(Wi?.start.remove(),Wi?.end.remove(),Wi=null),ed=Math.max(0,ed-1)}},[])}Dy(Po,"useFocusGuards");function kg(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}Dy(kg,"createFocusGuard");var Vr=function(){return Vr=Object.assign||function(t){for(var n,a=1,o=arguments.length;a<o;a++){n=arguments[a];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Vr.apply(this,arguments)};function TE(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n}function N3(e,t,n){if(n||arguments.length===2)for(var a=0,o=t.length,l;a<o;a++)(l||!(a in t))&&(l||(l=Array.prototype.slice.call(t,0,a)),l[a]=t[a]);return e.concat(l||Array.prototype.slice.call(t))}var xd="right-scroll-bar-position",wd="width-before-scroll-bar",k3="with-scroll-bars-hidden",A3="--removed-body-scroll-bar-size";function vp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function O3(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var o=n.value;o!==a&&(n.value=a,n.callback(a,o))}}}})[0];return n.callback=t,n.facade}var R3=typeof window<"u"?v.useLayoutEffect:v.useEffect,A1=new WeakMap;function P3(e,t){var n=O3(null,function(a){return e.forEach(function(o){return vp(o,a)})});return R3(function(){var a=A1.get(n);if(a){var o=new Set(a),l=new Set(e),d=n.current;o.forEach(function(h){l.has(h)||vp(h,null)}),l.forEach(function(h){o.has(h)||vp(h,d)})}A1.set(n,e)},[e]),n}function M3(e){return e}function D3(e,t){t===void 0&&(t=M3);var n=[],a=!1,o={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]:e},useMedium:function(l){var d=t(l,a);return n.push(d),function(){n=n.filter(function(h){return h!==d})}},assignSyncMedium:function(l){for(a=!0;n.length;){var d=n;n=[],d.forEach(l)}n={push:function(h){return l(h)},filter:function(){return n}}},assignMedium:function(l){a=!0;var d=[];if(n.length){var h=n;n=[],h.forEach(l),d=n}var m=function(){var y=d;
vendor: 10,792 bytes, lines 10-50
10d=[],y.forEach(l)},g=function(){return Promise.resolve().then(m)};g(),n={push:function(y){d.push(y),g()},filter:function(y){return d=d.filter(y),n}}}};return o}function I3(e){e===void 0&&(e={});var t=D3(null);return t.options=Vr({async:!0,ssr:!1},e),t}var jE=function(e){var t=e.sideCar,n=TE(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return v.createElement(a,Vr({},n))};jE.isSideCarExport=!0;function L3(e,t){return e.useMedium(t),jE}var NE=I3(),bp=function(){},mf=v.forwardRef(function(e,t){var n=v.useRef(null),a=v.useState({onScrollCapture:bp,onWheelCapture:bp,onTouchMoveCapture:bp}),o=a[0],l=a[1],d=e.forwardProps,h=e.children,m=e.className,g=e.removeScrollBar,y=e.enabled,x=e.shards,b=e.sideCar,C=e.noRelative,E=e.noIsolation,w=e.inert,_=e.allowPinchZoom,R=e.as,A=R===void 0?"div":R,k=e.gapMode,N=TE(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=b,U=P3([n,t]),Y=Vr(Vr({},N),o);return v.createElement(v.Fragment,null,y&&v.createElement(O,{sideCar:NE,removeScrollBar:g,shards:x,noRelative:C,noIsolation:E,inert:w,setCallbacks:l,allowPinchZoom:!!_,lockRef:n,gapMode:k}),d?v.cloneElement(v.Children.only(h),Vr(Vr({},Y),{ref:U})):v.createElement(A,Vr({},Y,{className:m,ref:U}),h))});mf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mf.classNames={fullWidth:wd,zeroRight:xd};var z3=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function U3(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=z3();return t&&e.setAttribute("nonce",t),e}function V3(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function F3(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var B3=function(){var e=0,t=null;return{add:function(n){e==0&&(t=U3())&&(V3(t,n),F3(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},$3=function(){var e=B3();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},kE=function(){var e=$3(),t=function(n){var a=n.styles,o=n.dynamic;return e(a,o),null};return t},H3={left:0,top:0,right:0,gap:0},xp=function(e){return parseInt(e||"",10)||0},q3=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[xp(n),xp(a),xp(o)]},G3=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return H3;var t=q3(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},K3=kE(),co="data-scroll-locked",Q3=function(e,t,n,a){var o=e.left,l=e.top,d=e.right,h=e.gap;return n===void 0&&(n="margin"),` 11 .`.concat(k3,` { 12 overflow: hidden `).concat(a,`; 13 padding-right: `).concat(h,"px ").concat(a,`; 14 } 15 body[`).concat(co,`] { 16 overflow: hidden `).concat(a,`; 17 overscroll-behavior: contain; 18 `).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&` 19 padding-left: `.concat(o,`px; 20 padding-top: `).concat(l,`px; 21 padding-right: `).concat(d,`px; 22 margin-left:0; 23 margin-top:0; 24 margin-right: `).concat(h,"px ").concat(a,`; 25 `),n==="padding"&&"padding-right: ".concat(h,"px ").concat(a,";")].filter(Boolean).join(""),` 26 } 27 28 .`).concat(xd,` { 29 right: `).concat(h,"px ").concat(a,`; 30 } 31 32 .`).concat(wd,` { 33 margin-right: `).concat(h,"px ").concat(a,`; 34 } 35 36 .`).concat(xd," .").concat(xd,` { 37 right: 0 `).concat(a,`; 38 } 39 40 .`).concat(wd," .").concat(wd,` { 41 margin-right: 0 `).concat(a,`; 42 } 43 44 body[`).concat(co,`] { 45 `).concat(A3,": ").concat(h,`px; 46 } 47`)},O1=function(){var e=parseInt(document.body.getAttribute(co)||"0",10);return isFinite(e)?e:0},Y3=function(){v.useEffect(function(){return document.body.setAttribute(co,(O1()+1).toString()),function(){var e=O1()-1;e<=0?document.body.removeAttribute(co):document.body.setAttribute(co,e.toString())}},[])},Z3=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;Y3();var l=v.useMemo(function(){return G3(o)},[o]);return v.createElement(K3,{styles:Q3(l,!t,o,n?"":"!important")})},Ag=!1;if(typeof window<"u")try{var td=Object.defineProperty({},"passive",{get:function(){return Ag=!0,!0}});window.addEventListener("test",td,td),window.removeEventListener("test",td,td)}catch{Ag=!1}var Xi=Ag?{passive:!1}:!1,W3=function(e){return e.tagName==="TEXTAREA"},AE=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!W3(e)&&n[t]==="visible")},X3=function(e){return AE(e,"overflowY")},J3=function(e){return AE(e,"overflowX")},R1=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=OE(e,a);if(o){var l=RE(e,a),d=l[1],h=l[2];if(d>h)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},e5=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},t5=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},OE=function(e,t){return e==="v"?X3(t):J3(t)},RE=function(e,t){return e==="v"?e5(t):t5(t)},n5=function(e,t){return e==="h"&&t==="rtl"?-1:1},r5=function(e,t,n,a,o){var l=n5(e,window.getComputedStyle(t).direction),d=l*a,h=n.target,m=t.contains(h),g=!1,y=d>0,x=0,b=0;do{if(!h)break;var C=RE(e,h),E=C[0],w=C[1],_=C[2],R=w-_-l*E;(E||R)&&OE(e,h)&&(x+=R,b+=E);var A=h.parentNode;h=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!m&&h!==document.body||m&&(t.contains(h)||t===h));return(y&&Math.abs(x)<1||!y&&Math.abs(b)<1)&&(g=!0),g},nd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},P1=function(e){return[e.deltaX,e.deltaY]},M1=function(e){return e&&"current"in e?e.current:e},s5=function(e,t){return e[0]===t[0]&&e[1]===t[1]},a5=function(e){return` 48 .block-interactivity-`.concat(e,` {pointer-events: none;} 49 .allow-interactivity-`).concat(e,` {pointer-events: all;} 50`)},i5=0,Ji=[];function o5(e){var t=v.useRef([]),n=v.useRef([0,0]),a=v.useRef(),o=v.useState(i5++)[0],l=v.useState(kE)[0],d=v.useRef(e);v.useEffect(function(){d.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var w=N3([e.lockRef.current],(e.shards||[]).map(M1),!0).filter(Boolean);return w.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),w.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var h=v.useCallback(function(w,_){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!d.current.allowPinchZoom;var R=nd(w),A=n.current,k="deltaX"in w?w.deltaX:A[0]-R[0],N="deltaY"in w?w.deltaY:A[1]-R[1],O,U=w.target,Y=Math.abs(k)>Math.abs(N)?"h":"v";if("touches"in w&&Y==="h"&&U.type==="range")return!1;var F=window.getSelection(),W=F&&F.anchorNode,ce=W?W===U||W.contains(U):!1;if(ce)return!1;var fe=R1(Y,U);if(!fe)return!0;if(fe?O=Y:(O=Y==="v"?"h":"v",fe=R1(Y,U)),!fe)return!1;if(!a.current&&"changedTouches"in w&&(k||N)&&(a.current=O),!O)return!0;var X=a.current||O;return r5(X,_,w,X==="h"?k:N)},[]),m=v.useCallback(function(w){var _=w;if(!(!Ji.length||Ji[Ji.length-1]!==l)){var R="deltaY"in _?P1(_):nd(_),A=t.current.filter(function(O){return O.name===_.type&&(O.target===_.target||_.target===O.shadowParent)&&s5(O.delta,R)})[0];if(A&&A.should){_.cancelable&&_.preventDefault();return}if(!A){var k=(d.current.shards||[]).map(M1).filter(Boolean).filter(function(O){return O.contains(_.target)}),N=k.length>0?h(_,k[0]):!d.current.noIsolation;N&&_.cancelable&&_.preventDefault()}}},[]),g=v.useCallback(function(w,_,R,A){var k={name:w,delta:_,target:R,should:A,shadowParent:l5(R)};t.current.push(k),setTimeout(function(){t.current=t.current.filter(function(N){return N!==k})},1)},[]),y=v.useCallback(function(w){n.current=nd(w),a.current=void 0},[]),x=v.useCallback(function(w){g(w.type,P1(w),w.target,h(w,e.lockRef.current))},[]),b=v.useCallback(function(w){g(w.type,nd(w),w.target,h(w,e.lockRef.current))},[]);v.useEffect(function(){return Ji.push(l),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",m,Xi),document.addEventListener("touchmove",m,Xi),document.addEventListener("touchstart",y,Xi),function(){Ji=Ji.filter(function(w){return w!==l}),document.removeEventListener("wheel",m,Xi),document.removeEventListener("touchmove",m,Xi),document.removeEventListener("touchstart",y,Xi)}},[]);var C=e.removeScrollBar,E=e.inert;return v.createElement(v.Fragment,null,E?v.createElement(l,{styles:a5(o)}):null,C?v.createElement(Z3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function l5(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const c5=L3(NE,o5);var vc=v.forwardRef(function(e,t){return v.createElement(mf,Vr({},e,{ref:t,sideCar:c5}))});vc.classNames=mf.classNames;var u5=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},eo=new WeakMap,rd=new WeakMap,sd={},wp=0,PE=function(e){return e&&(e.host||PE(e.parentNode))},d5=function(e,t){return t.map(function(n){if(e.contains(n))return n;var a=PE(n);return a&&e.contains(a)?a:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},f5=function(e,t,n,a){var o=d5(t,Array.isArray(e)?e:[e]);sd[n]||(sd[n]=new WeakMap);var l=sd[n],d=[],h=new Set,m=new Set(o),g=function(x){!x||h.has(x)||(h.add(x),g(x.parentNode))};o.forEach(g);var y=function(x){!x||m.has(x)||Array.prototype.forEach.call(x.children,function(b){if(h.has(b))y(b);else try{var C=b.getAttribute(a),E=C!==null&&C!=="false",w=(eo.get(b)||0)+1,_=(l.get(b)||0)+1;eo.set(b,w),l.set(b,_),d.push(b),w===1&&E&&rd.set(b,!0),_===1&&b.setAttribute(n,"true"),E||b.setAttribute(a,"true")}catch(R){console.error("aria-hidden: cannot operate on ",b,R)}})};return y(t),h.clear(),wp++,function(){d.forEach(function(x){var b=eo.get(x)-1,C=l.get(x)-1;eo.set(x,b),l.set(x,C),b||(rd.has(x)||x.removeAttribute(a),rd.delete(x)),C||x.removeAttribute(n)}),wp--,wp||(eo=new WeakMap,eo=new WeakMap,rd=new WeakMap,sd={})}},pf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),o=u5(e);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live], script"))),f5(a,o,n,"aria-hidden")):function(){return null}},h5=Object.defineProperty,sr=(e,t)=>
50h5(e,"name",{value:t,configurable:!0}),Iy="Dialog",[ME,xB]=Bn(Iy),[m5,Pr]=ME(Iy),DE=sr(e=>{const{__scopeDialog:t,children:n,open:a,defaultOpen:o,onOpenChange:l,modal:d=!0}=e,h=v.useRef(null),m=v.useRef(null),[g,y]=$r({prop:a,defaultProp:o??!1,onChange:l,caller:Iy}),[x,b]=v.useState(0),[C,E]=v.useState(0);return u.jsx(m5,{scope:t,triggerRef:h,contentRef:m,contentId:gr(),titleId:gr(),descriptionId:gr(),titlePresent:x>0,descriptionPresent:C>0,setTitleCount:b,setDescriptionCount:E,open:g,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(w=>!w),[y]),modal:d,children:n})},"Dialog"),p5="DialogTrigger",IE=v.forwardRef(sr(function(t,n){const{__scopeDialog:a,...o}=t,l=Pr(p5,a),d=Qe(n,l.triggerRef);return u.jsx(Ve.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":xf(l.open),...o,ref:d,onClick:xe(t.onClick,l.onOpenToggle)})},"DialogTrigger")),LE="DialogPortal",[g5,zE]=ME(LE,{forceMount:void 0}),UE=sr(e=>{const{__scopeDialog:t,forceMount:n,children:a,container:o}=e,l=Pr(LE,t);return u.jsx(g5,{scope:t,forceMount:n,children:v.Children.map(a,d=>u.jsx(rr,{present:n||l.open,children:u.jsx(pc,{asChild:!0,container:o,children:d})}))})},"DialogPortal"),Og="DialogOverlay",gf=v.forwardRef(sr(function(t,n){const a=zE(Og,t.__scopeDialog),{forceMount:o=a.forceMount,...l}=t,d=Pr(Og,t.__scopeDialog);return d.modal?u.jsx(rr,{present:o||d.open,children:u.jsx(v5,{...l,ref:n})}):null},"DialogOverlay")),y5=Or("DialogOverlay.RemoveScroll"),v5=v.forwardRef(sr(function(t,n){const{__scopeDialog:a,...o}=t,l=Pr(Og,a),d=Y_(),h=Qe(n,d);return u.jsx(vc,{as:y5,allowPinchZoom:!0,shards:[l.contentRef],children:u.jsx(Ve.div,{"data-state":xf(l.open),...o,ref:h,style:{pointerEvents:"auto",...o.style}})})},"DialogOverlayImpl")),sc="DialogContent",yf=v.forwardRef(sr(function(t,n){const a=zE(sc,t.__scopeDialog),{forceMount:o=a.forceMount,...l}=t,d=Pr(sc,t.__scopeDialog);return u.jsx(rr,{present:o||d.open,children:d.modal?u.jsx(b5,{...l,ref:n}):u.jsx(x5,{...l,ref:n})})},"DialogContent")),b5=v.forwardRef(sr(function(t,n){const a=Pr(sc,t.__scopeDialog),o=v.useRef(null),l=Qe(n,a.contentRef,o);return v.useEffect(()=>{const d=o.current;if(d)return pf(d)},[]),u.jsx(VE,{...t,ref:l,trapFocus:a.open,disableOutsidePointerEvents:a.open,onCloseAutoFocus:xe(t.onCloseAutoFocus,d=>{d.preventDefault(),a.triggerRef.current?.focus()}),onPointerDownOutside:xe(t.onPointerDownOutside,d=>{const h=d.detail.originalEvent,m=h.button===0&&h.ctrlKey===!0;(h.button===2||m)&&d.preventDefault()}),onFocusOutside:xe(t.onFocusOutside,d=>d.preventDefault())})},"DialogContentModal")),x5=v.forwardRef(sr(function(t,n){const a=Pr(sc,t.__scopeDialog),o=v.useRef(!1),l=v.useRef(!1);return u.jsx(VE,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{t.onCloseAutoFocus?.(d),d.defaultPrevented||(o.current||a.triggerRef.current?.focus(),d.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:d=>{t.onInteractOutside?.(d),d.defaultPrevented||(o.current=!0,d.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const h=d.target;a.triggerRef.current?.contains(h)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&l.current&&d.preventDefault()}})},"DialogContentNonModal")),VE=v.forwardRef(sr(function(t,n){const{__scopeDialog:a,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:d,...h}=t,m=Pr(sc,a);return Po(),u.jsx(u.Fragment,{children:u.jsx(hf,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:d,children:u.jsx(Ao,{role:"dialog",id:m.contentId,"aria-describedby":m.descriptionPresent?m.descriptionId:void 0,"aria-labelledby":m.titlePresent?m.titleId:void 0,"data-state":xf(m.open),...h,ref:n,deferPointerDownOutside:!0,onDismiss:()=>m.onOpenChange(!1)})})})},"DialogContentImpl")),w5="DialogTitle",vf=v.forwardRef(sr(function(t,n){const{__scopeDialog:a,...o}=t,l=Pr(w5,a),{setTitleCount:d}=l;return Ct(()=>(d(h=>h+1),()=>d(h=>h-1)),[d]),u.jsx(Ve.h2,{id:l.titleId,...o,ref:n})},"DialogTitle")),S5="DialogDescription",bf=v.forwardRef(sr(function(t,n){const{__scopeDialog:a,...o}=t,l=Pr(S5,a),{setDescriptionCount:d}=l;return Ct(()=>(d(h=>h+1),()=>d(h=>h-1)),[d]),u.jsx(Ve.p,{id:l.descriptionId,...o,ref:n})},"DialogDescription")),_5="DialogClose",Ly=v.forwardRef(sr(function(t,n){const{__scopeDialog:a,...o}=t,l=Pr(_5,a);return u.jsx(Ve.button,{type:"button",...o,ref:n,onClick:xe(t.onClick,()=>l.onOpenChange(!1))})},"DialogClose"));function xf(e){return e?"open":"closed"}sr(xf,"getState");const C5=DE,E5=IE,Qs=Ly,T5=UE,FE=v.forwardRef(({className:e,...t},n)=>u.jsx(gf,{className:Pe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t,ref:n}));
50FE.displayName=gf.displayName;const j5=yc("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),BE=v.forwardRef(({side:e="right",className:t,children:n,...a},o)=>u.jsxs(T5,{children:[u.jsx(FE,{}),u.jsxs(yf,{ref:o,className:Pe(j5({side:e}),t),...a,children:[n,u.jsxs(Ly,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[u.jsx(Sy,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));BE.displayName=yf.displayName;const N5=({className:e,...t})=>u.jsx("div",{className:Pe("flex flex-col space-y-2 text-center sm:text-left",e),...t});N5.displayName="SheetHeader";const k5=v.forwardRef(({className:e,...t},n)=>u.jsx(vf,{ref:n,className:Pe("text-lg font-semibold text-foreground",e),...t}));k5.displayName=vf.displayName;const A5=v.forwardRef(({className:e,...t},n)=>u.jsx(bf,{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));A5.displayName=bf.displayName;var O5=Object.defineProperty,R5=(e,t)=>O5(e,"name",{value:t,configurable:!0}),P5=v.createContext(void 0);function bc(e){const t=v.useContext(P5);return e||t||"ltr"}R5(bc,"useDirection");var M5=Object.defineProperty,zy=(e,t)=>M5(e,"name",{value:t,configurable:!0}),Sp=!1;function $E(){const[e,t]=v.useState(Sp);return v.useEffect(()=>{Sp||(Sp=!0,t(!0))},[]),e}zy($E,"useIsHydrated");var HE=ca[" useSyncExternalStore ".trim().toString()];function qE(){return()=>{}}zy(qE,"subscribe");function GE(){return HE(qE,()=>!0,()=>!1)}zy(GE,"useIsHydratedModern");var D5=typeof HE=="function"?GE:$E,I5=Object.defineProperty,ri=(e,t)=>I5(e,"name",{value:t,configurable:!0}),_p="rovingFocusGroup.onEntryFocus",L5={bubbles:!1,cancelable:!0},wf="RovingFocusGroup",[Rg,KE,z5]=mc(wf),[U5,Sf]=Bn(wf,[z5]),[V5,F5]=U5(wf),B5=v.forwardRef(ri(function(t,n){return u.jsx(Rg.Provider,{scope:t.__scopeRovingFocusGroup,children:u.jsx(Rg.Slot,{scope:t.__scopeRovingFocusGroup,children:u.jsx($5,{...t,ref:n})})})},"RovingFocusGroup")),$5=v.forwardRef(ri(function(t,n){const{__scopeRovingFocusGroup:a,orientation:o,loop:l=!1,dir:d,currentTabStopId:h,defaultCurrentTabStopId:m,onCurrentTabStopIdChange:g,onEntryFocus:y,preventScrollOnEntryFocus:x=!1,...b}=t,C=v.useRef(null),E=Qe(n,C),w=bc(d),[_,R]=$r({prop:h,defaultProp:m??null,onChange:g,caller:wf}),[A,k]=v.useState(!1),N=yn(y),O=KE(a),U=v.useRef(!1),[Y,F]=v.useState(0);return v.useEffect(()=>{const W=C.current;if(W)return W.addEventListener(_p,N),()=>W.removeEventListener(_p,N)},[N]),u.jsx(V5,{scope:a,orientation:o,dir:w,loop:l,currentTabStopId:_,onItemFocus:v.useCallback(W=>R(W),[R]),onItemShiftTab:v.useCallback(()=>k(!0),[]),onFocusableItemAdd:v.useCallback(()=>F(W=>W+1),[]),onFocusableItemRemove:v.useCallback(()=>F(W=>W-1),[]),children:u.jsx(Ve.div,{tabIndex:A||Y===0?-1:0,"data-orientation":o,...b,ref:E,style:{outline:"none",...t.style},onMouseDown:xe(t.onMouseDown,()=>{U.current=!0}),onFocus:xe(t.onFocus,W=>{const ce=!U.current;if(W.target===W.currentTarget&&ce&&!A){const fe=new CustomEvent(_p,L5);if(W.currentTarget.dispatchEvent(fe),!fe.defaultPrevented){const X=O().filter(q=>q.focusable),ae=X.find(q=>q.active),oe=X.find(q=>q.id===_),D=[ae,oe,...X].filter(Boolean).map(q=>q.ref.current);Uy(D,x)}}U.current=!1}),onBlur:xe(t.onBlur,()=>k(!1))})})},"RovingFocusGroupImpl")),H5="RovingFocusGroupItem",q5=v.forwardRef(ri(function(t,n){const{__scopeRovingFocusGroup:a,focusable:o=!0,active:l=!1,tabStopId:d,children:h,...m}=t,g=gr(),y=d||g,x=F5(H5,a),b=x.currentTabStopId===y,C=KE(a),{onFocusableItemAdd:E,onFocusableItemRemove:w,currentTabStopId:_}=x,R=D5();return Ct(()=>{if(!(!R||!o))return E(),()=>w()},[R,o,E,w]),v.useEffect(()=>{if(!(R||!o))return E(),()=>w()},[R,o,E,w]),u.jsx(Rg.ItemSlot,{scope:a,id:y,focusable:o,active:l,children:u.jsx(Ve.span,{tabIndex:b?0:-1,"data-orientation":x.orientation,...m,ref:n,onMouseDown:xe(t.onMouseDown,A=>{o?x.onItemFocus(y):A.preventDefault()}),onFocus:xe(t.onFocus,()=>x.onItemFocus(y)),onKeyDown:xe(t.onKeyDown,A=>{if(A.key==="Tab"&&A.shiftKey){x.onItemShiftTab();return}if(A.target!==A.currentTarget)return;const k=YE(A,x.orientation,x.dir);if(k!==void 0){if(A.metaKey||A.ctrlKey||A.altKey||A.shiftKey)return;A.preventDefault();let O=C().filter(U=>U.focusable).map(U=>U.ref.current);if(k==="last")O.reverse();else if(k==="prev"||k==="next"){k==="prev"&&O.reverse();const U=O.indexOf(A.currentTarget);O=x.loop?ZE(O,U+1):O.slice(U+1)}setTimeout(()=>Uy(O))}}),children:typeof h=="function"?h({isCurrentTabStop:b,hasTabStop:_!=null}):h})})},"RovingFocusGroupItem")),G5={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function QE(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}ri(QE,"getDirectionAwareKey");
50function YE(e,t,n){const a=QE(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return G5[a]}ri(YE,"getFocusIntent");function Uy(e,t=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:t}),document.activeElement!==n))return}ri(Uy,"focusFirst");function ZE(e,t){return e.map((n,a)=>e[(t+a)%e.length])}ri(ZE,"wrapArray");var WE=B5,XE=q5,K5=Object.defineProperty,ct=(e,t)=>K5(e,"name",{value:t,configurable:!0}),Pg=["Enter"," "],Q5=["ArrowDown","PageUp","Home"],JE=["ArrowUp","PageDown","End"],Y5=[...Q5,...JE],Z5={ltr:[...Pg,"ArrowRight"],rtl:[...Pg,"ArrowLeft"]},W5={ltr:["ArrowLeft"],rtl:["ArrowRight"]},_f="Menu",[ac,X5,J5]=mc(_f),[si,e2]=Bn(_f,[J5,ma,Sf]),Vy=ma(),t2=Sf(),[eI,ai]=si(_f),[tI,xc]=si(_f),nI=ct(e=>{const{__scopeMenu:t,open:n=!1,children:a,dir:o,onOpenChange:l,modal:d=!0}=e,h=Vy(t),[m,g]=v.useState(null),y=v.useRef(!1),x=yn(l),b=bc(o);return v.useEffect(()=>{const C=ct(()=>{y.current=!0,document.addEventListener("pointerdown",E,{capture:!0,once:!0}),document.addEventListener("pointermove",E,{capture:!0,once:!0})},"handleKeyDown"),E=ct(()=>y.current=!1,"handlePointer");return document.addEventListener("keydown",C,{capture:!0}),()=>{document.removeEventListener("keydown",C,{capture:!0}),document.removeEventListener("pointerdown",E,{capture:!0}),document.removeEventListener("pointermove",E,{capture:!0})}},[]),v.useEffect(()=>{if(!n)return;const C=ct(()=>x(!1),"handleBlur");return window.addEventListener("blur",C),()=>window.removeEventListener("blur",C)},[n,x]),u.jsx(cf,{...h,children:u.jsx(eI,{scope:t,open:n,onOpenChange:x,content:m,onContentChange:g,children:u.jsx(tI,{scope:t,onClose:v.useCallback(()=>x(!1),[x]),isUsingKeyboardRef:y,dir:b,modal:d,children:a})})})},"Menu"),n2=v.forwardRef(ct(function(t,n){const{__scopeMenu:a,...o}=t,l=Vy(a);return u.jsx(uf,{...l,...o,ref:n})},"MenuAnchor")),r2="MenuPortal",[rI,s2]=si(r2,{forceMount:void 0}),sI=ct(e=>{const{__scopeMenu:t,forceMount:n,children:a,container:o}=e,l=ai(r2,t);return u.jsx(rI,{scope:t,forceMount:n,children:u.jsx(rr,{present:n||l.open,children:u.jsx(pc,{asChild:!0,container:o,children:a})})})},"MenuPortal"),Ar="MenuContent",[aI,Fy]=si(Ar),iI=v.forwardRef(ct(function(t,n){const a=s2(Ar,t.__scopeMenu),{forceMount:o=a.forceMount,...l}=t,d=ai(Ar,t.__scopeMenu),h=xc(Ar,t.__scopeMenu);return u.jsx(ac.Provider,{scope:t.__scopeMenu,children:u.jsx(rr,{present:o||d.open,children:u.jsx(ac.Slot,{scope:t.__scopeMenu,children:h.modal?u.jsx(oI,{...l,ref:n}):u.jsx(lI,{...l,ref:n})})})})},"MenuContent")),oI=v.forwardRef(ct(function(t,n){const a=ai(Ar,t.__scopeMenu),o=v.useRef(null),l=Qe(n,o);return v.useEffect(()=>{const d=o.current;if(d)return pf(d)},[]),u.jsx(By,{...t,ref:l,trapFocus:a.open,disableOutsidePointerEvents:a.open,disableOutsideScroll:!0,onFocusOutside:xe(t.onFocusOutside,d=>d.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>a.onOpenChange(!1)})},"MenuRootContentModal")),lI=v.forwardRef(ct(function(t,n){const a=ai(Ar,t.__scopeMenu);return u.jsx(By,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>a.onOpenChange(!1)})},"MenuRootContentNonModal")),cI=Or("MenuContent.ScrollLock"),By=v.forwardRef(ct(function(t,n){const{__scopeMenu:a,loop:o=!1,trapFocus:l,onOpenAutoFocus:d,onCloseAutoFocus:h,disableOutsidePointerEvents:m,onEntryFocus:g,onEscapeKeyDown:y,onPointerDownOutside:x,onFocusOutside:b,onInteractOutside:C,onDismiss:E,disableOutsideScroll:w,..._}=t,R=ai(Ar,a),A=xc(Ar,a),k=Vy(a),N=t2(a),O=X5(a),[U,Y]=v.useState(null),F=v.useRef(null),W=Qe(n,F,R.onContentChange),ce=v.useRef(0),fe=v.useRef(""),X=v.useRef(0),ae=v.useRef(null),oe=v.useRef("right"),ve=v.useRef(0),D=w?vc:v.Fragment,q=w?{as:cI,allowPinchZoom:!0}:void 0,te=ct(j=>{const L=fe.current+j,V=O().filter(de=>!de.disabled),J=document.activeElement,ge=V.find(de=>de.ref.current===J)?.textValue,be=V.map(de=>de.textValue),ye=d2(be,L,ge),qe=V.find(de=>de.textValue===ye)?.ref.current;ct((function de(Oe){fe.current=Oe,window.clearTimeout(ce.current),Oe!==""&&(ce.current=window.setTimeout(()=>de(""),1e3))}),"updateSearch")(L),qe&&setTimeout(()=>qe.focus())},"handleTypeaheadSearch");v.useEffect(()=>()=>window.clearTimeout(ce.current),[]),Po();const ue=v.useCallback(j=>oe.current===ae.current?.side&&h2(j,ae.current?.area),[]);return u.jsx(aI,{scope:a,searchRef:fe,onItemEnter:v.useCallback(j=>{ue(j)&&j.preventDefault()},[ue]),onItemLeave:v.useCallback(j=>{ue(j)||(F.current?.focus(),Y(null))},[ue]),onTriggerLeave:v.useCallback(j=>{ue(j)&&j.preventDefault()},[ue]),pointerGraceTimerRef:X,onPointerGraceIntentChange:v.useCallback(j=>{ae.current=j},[]),children:u.jsx(D,{...q,children:u.jsx(hf,{asChild:!0,trapped:l,onMountAutoFocus:xe(d,j=>
50{j.preventDefault(),F.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:h,children:u.jsx(Ao,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:y,onPointerDownOutside:x,onFocusOutside:b,onInteractOutside:C,onDismiss:E,children:u.jsx(WE,{asChild:!0,...N,dir:A.dir,orientation:"vertical",loop:o,currentTabStopId:U,onCurrentTabStopIdChange:Y,onEntryFocus:xe(g,j=>{A.isUsingKeyboardRef.current||j.preventDefault()}),preventScrollOnEntryFocus:!0,children:u.jsx(df,{role:"menu","aria-orientation":"vertical","data-state":Hy(R.open),"data-radix-menu-content":"",dir:A.dir,...k,..._,ref:W,style:{outline:"none",..._.style},onKeyDown:xe(_.onKeyDown,j=>{const V=j.target.closest("[data-radix-menu-content]")===j.currentTarget,J=j.ctrlKey||j.altKey||j.metaKey,ge=j.key.length===1;V&&(j.key==="Tab"&&j.preventDefault(),!J&&ge&&te(j.key));const be=F.current;if(j.target!==be||!Y5.includes(j.key))return;j.preventDefault();const qe=O().filter(de=>!de.disabled).map(de=>de.ref.current);JE.includes(j.key)&&qe.reverse(),c2(qe)}),onBlur:xe(t.onBlur,j=>{j.currentTarget.contains(j.target)||(window.clearTimeout(ce.current),fe.current="")}),onPointerMove:xe(t.onPointerMove,vo(j=>{const L=j.target,V=ve.current!==j.clientX;if(j.currentTarget.contains(L)&&V){const J=j.clientX>ve.current?"right":"left";oe.current=J,ve.current=j.clientX}}))})})})})})})},"MenuContentImpl")),uI=v.forwardRef(ct(function(t,n){const{__scopeMenu:a,...o}=t;return u.jsx(Ve.div,{...o,ref:n})},"MenuLabel")),Mg="MenuItem",D1="menu.itemSelect",$y=v.forwardRef(ct(function(t,n){const{disabled:a=!1,onSelect:o,...l}=t,d=v.useRef(null),h=xc(Mg,t.__scopeMenu),m=Fy(Mg,t.__scopeMenu),g=Qe(n,d),y=v.useRef(!1),x=ct(()=>{const b=d.current;if(!a&&b){const C=new CustomEvent(D1,{bubbles:!0,cancelable:!0});b.addEventListener(D1,E=>o?.(E),{once:!0}),Wd(b,C),C.defaultPrevented?y.current=!1:h.onClose()}},"handleSelect");return u.jsx(a2,{...l,ref:g,disabled:a,onClick:xe(t.onClick,x),onPointerDown:b=>{t.onPointerDown?.(b),y.current=!0},onPointerUp:xe(t.onPointerUp,b=>{y.current||b.currentTarget?.click()}),onKeyDown:xe(t.onKeyDown,b=>{a||b.target!==b.currentTarget||m.searchRef.current!==""&&b.key===" "||Pg.includes(b.key)&&(b.currentTarget.click(),b.preventDefault())})})},"MenuItem")),a2=v.forwardRef(ct(function(t,n){const{__scopeMenu:a,disabled:o=!1,textValue:l,...d}=t,h=Fy(Mg,a),m=t2(a),g=v.useRef(null),y=Qe(n,g),[x,b]=v.useState(!1),[C,E]=v.useState("");return v.useEffect(()=>{const w=g.current;w&&E((w.textContent??"").trim())},[d.children]),u.jsx(ac.ItemSlot,{scope:a,disabled:o,textValue:l??C,children:u.jsx(XE,{asChild:!0,...m,focusable:!o,children:u.jsx(Ve.div,{role:"menuitem","data-highlighted":x?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...d,ref:y,onPointerMove:xe(t.onPointerMove,vo(w=>{o?h.onItemLeave(w):(h.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:xe(t.onPointerLeave,vo(w=>h.onItemLeave(w))),onFocus:xe(t.onFocus,()=>b(!0)),onBlur:xe(t.onBlur,()=>b(!1))})})})},"MenuItemImpl")),dI=v.forwardRef(ct(function(t,n){const{checked:a=!1,onCheckedChange:o,...l}=t;return u.jsx(o2,{scope:t.__scopeMenu,checked:a,children:u.jsx($y,{role:"menuitemcheckbox","aria-checked":ic(a)?"mixed":a,...l,ref:n,"data-state":Cf(a),onSelect:xe(l.onSelect,()=>o?.(ic(a)?!0:!a),{checkForDefaultPrevented:!1})})})},"MenuCheckboxItem")),fI="MenuRadioGroup",[wB,hI]=si(fI,{value:void 0,onValueChange:ct(()=>{},"onValueChange")}),mI="MenuRadioItem",pI=v.forwardRef(ct(function(t,n){const{value:a,...o}=t,l=hI(mI,t.__scopeMenu),d=a===l.value;return u.jsx(o2,{scope:t.__scopeMenu,checked:d,children:u.jsx($y,{role:"menuitemradio","aria-checked":d,...o,ref:n,"data-state":Cf(d),onSelect:xe(o.onSelect,()=>l.onValueChange?.(a),{checkForDefaultPrevented:!1})})})},"MenuRadioItem")),i2="MenuItemIndicator",[o2,gI]=si(i2,{checked:!1}),yI=v.forwardRef(ct(function(t,n){const{__scopeMenu:a,forceMount:o,...l}=t,d=gI(i2,a);return u.jsx(rr,{present:o||ic(d.checked)||d.checked===!0,children:u.jsx(Ve.span,{...l,ref:n,"data-state":Cf(d.checked)})})},"MenuItemIndicator")),vI=v.forwardRef(ct(function(t,n){const{__scopeMenu:a,...o}=t;return u.jsx(Ve.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})},"MenuSeparator")),bI="MenuSub",[SB,l2]=si(bI),ad="MenuSubTrigger",xI=v.forwardRef(ct(function(t,n){const a=ai(ad,t.__scopeMenu),o=xc(ad,t.__scopeMenu),l=l2(ad,t.__scopeMenu),d=Fy(ad,t.__scopeMenu),h=v.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:g}=d,y={__scopeMenu:t.__scopeMenu},x=v.useCallback(()=>{h.current&&window.clearTimeout(h.current),h.current=null},[]);v.useEffect(()=>x,[x]),v.useEffect(()=>{const C=m.current;return()=>{window.clearTimeout(C),g(null)}},[m,g]);const b=Qe(n,l.onTriggerChange);return u.jsx(n2,{asChild:!0,...y,children:u.jsx(a2,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?l.contentId:void 0,"data-state":Hy(a.open),...t,ref:b,onClick:C=>{t.onClick?.(C),!(t.disabled||C.defaultPrevented)&&(C.currentTarget.focu
50s(),a.open||a.onOpenChange(!0))},onPointerMove:xe(t.onPointerMove,vo(C=>{d.onItemEnter(C),!C.defaultPrevented&&!t.disabled&&!a.open&&!h.current&&(d.onPointerGraceIntentChange(null),h.current=window.setTimeout(()=>{a.onOpenChange(!0),x()},100))})),onPointerLeave:xe(t.onPointerLeave,vo(C=>{x();const E=a.content?.getBoundingClientRect();if(E){const w=a.content?.dataset.side,_=w==="right",R=_?-5:5,A=E[_?"left":"right"],k=E[_?"right":"left"];d.onPointerGraceIntentChange({area:[{x:C.clientX+R,y:C.clientY},{x:A,y:E.top},{x:k,y:E.top},{x:k,y:E.bottom},{x:A,y:E.bottom}],side:w}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>d.onPointerGraceIntentChange(null),300)}else{if(d.onTriggerLeave(C),C.defaultPrevented)return;d.onPointerGraceIntentChange(null)}})),onKeyDown:xe(t.onKeyDown,C=>{t.disabled||C.target!==C.currentTarget||d.searchRef.current!==""&&C.key===" "||Z5[o.dir].includes(C.key)&&(a.onOpenChange(!0),a.content?.focus(),C.preventDefault())})})})},"MenuSubTrigger")),wI="MenuSubContent",SI=v.forwardRef(ct(function(t,n){const a=s2(Ar,t.__scopeMenu),{forceMount:o=a.forceMount,align:l="start",...d}=t,h=ai(Ar,t.__scopeMenu),m=xc(Ar,t.__scopeMenu),g=l2(wI,t.__scopeMenu),y=v.useRef(null),x=Qe(n,y);return u.jsx(ac.Provider,{scope:t.__scopeMenu,children:u.jsx(rr,{present:o||h.open,children:u.jsx(ac.Slot,{scope:t.__scopeMenu,children:u.jsx(By,{id:g.contentId,"aria-labelledby":g.triggerId,...d,ref:x,align:l,side:m.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:b=>{m.isUsingKeyboardRef.current&&y.current?.focus(),b.preventDefault()},onCloseAutoFocus:b=>b.preventDefault(),onFocusOutside:xe(t.onFocusOutside,b=>{b.target!==g.trigger&&h.onOpenChange(!1)}),onEscapeKeyDown:xe(t.onEscapeKeyDown,b=>{m.onClose(),b.preventDefault()}),onKeyDown:xe(t.onKeyDown,b=>{const C=b.currentTarget.contains(b.target),E=W5[m.dir].includes(b.key);C&&E&&(h.onOpenChange(!1),g.trigger?.focus(),b.preventDefault())})})})})})},"MenuSubContent"));function Hy(e){return e?"open":"closed"}ct(Hy,"getOpenState");function ic(e){return e==="indeterminate"}ct(ic,"isIndeterminate");function Cf(e){return ic(e)?"indeterminate":e?"checked":"unchecked"}ct(Cf,"getCheckedState");function c2(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}ct(c2,"focusFirst");function u2(e,t){return e.map((n,a)=>e[(t+a)%e.length])}ct(u2,"wrapArray");function d2(e,t,n){const o=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let d=u2(e,Math.max(l,0));o.length===1&&(d=d.filter(g=>g!==n));const m=d.find(g=>g.toLowerCase().startsWith(o.toLowerCase()));return m!==n?m:void 0}ct(d2,"getNextMatch");function f2(e,t){const{x:n,y:a}=e;let o=!1;for(let l=0,d=t.length-1;l<t.length;d=l++){const h=t[l],m=t[d],g=h.x,y=h.y,x=m.x,b=m.y;y>a!=b>a&&n<(x-g)*(a-y)/(b-y)+g&&(o=!o)}return o}ct(f2,"isPointInPolygon");function h2(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return f2(n,t)}ct(h2,"isPointerInGraceArea");function vo(e){return t=>t.pointerType==="mouse"?e(t):void 0}ct(vo,"whenMouse");var _I=nI,CI=n2,EI=sI,TI=iI,jI=uI,NI=$y,kI=dI,AI=pI,OI=yI,RI=vI,PI=xI,MI=SI,DI=Object.defineProperty,yr=(e,t)=>DI(e,"name",{value:t,configurable:!0}),qy="DropdownMenu",[II,_B]=Bn(qy,[e2]),vr=e2(),[LI,m2]=II(qy),zI=yr(e=>{const{__scopeDropdownMenu:t,children:n,dir:a,open:o,defaultOpen:l,onOpenChange:d,modal:h=!0}=e,m=vr(t),g=v.useRef(null),[y,x]=$r({prop:o,defaultProp:l??!1,onChange:d,caller:qy});return u.jsx(LI,{scope:t,triggerId:gr(),triggerRef:g,contentId:gr(),open:y,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(b=>!b),[x]),modal:h,children:u.jsx(_I,{...m,open:y,onOpenChange:x,dir:a,modal:h,children:n})})},"DropdownMenu"),UI="DropdownMenuTrigger",VI=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,disabled:o=!1,...l}=t,d=m2(UI,a),h=vr(a),m=Qe(n,d.triggerRef);return u.jsx(CI,{asChild:!0,...h,children:u.jsx(Ve.button,{type:"button",id:d.triggerId,"aria-haspopup":"menu","aria-expanded":d.open,"aria-controls":d.open?d.contentId:void 0,"data-state":d.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...l,ref:m,onPointerDown:xe(t.onPointerDown,g=>{!o&&g.button===0&&g.ctrlKey===!1&&(d.onOpenToggle(),d.open||g.preventDefault())}),onKeyDown:xe(t.onKeyDown,g=>{o||(["Enter"," "].includes(g.key)&&d.onOpenToggle(),g.key==="ArrowDown"&&d.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(g.key)&&g.preventDefault())})})})},"DropdownMenuTrigger")),FI=yr(e=>{const{__scopeDropdownMenu:t,...n}=e,a=vr(t);return u.jsx(EI,{...a,...n})},"DropdownMenuPortal"),BI="DropdownMenuContent",$I=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,...o}=t,l=m2(BI,a),d=vr(a),h=v.useRef(!1);return u.jsx(TI,{id:l.contentId,"aria-labelledby":l.triggerId,...d,...o,ref:n,onCloseAutoFocus:xe(t.onCloseAutoFocus,m=>{h.current||l.triggerRef.current?.focus(),h.current=!1,m.preventDefault()}),onInteractOutside:xe(t.onInteractOutside,m=>{const g=m.detail.originalEvent,y=g.button===0&&g.ctrlKey===!0,x=g.button===2||y;(!l.modal||x)&&(h.current=!0)}),style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuContent")),HI=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,...o}=t,l=vr(a);return u.jsx(jI,{...l,...o,ref:n})},"DropdownMenuLabel")),qI=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,...o}=t,l=vr(a);return u.jsx(NI,{...l,...o,ref:n})},"DropdownMenuItem")),GI=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,...o}=t,l=vr(a);return u.jsx(kI,{...l,...o,ref:n})},"DropdownMenuCheckboxItem")),KI=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,...o}=t,l=vr(a);return u.jsx(AI,{...l,...o,ref:n})},"DropdownMenuRadioItem")),QI=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,...o}=t,l=vr(a);return u.jsx(OI,{...l,...o,ref:n})},"DropdownMenuItemIndicator")),YI=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,...o}=t,l=vr(a);return u.jsx(RI,{...l,...o,ref:n})},"DropdownMenuSeparator")),ZI=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,...o}=t,l=vr(a);return u.jsx(PI,{...l,...o,ref:n})},"DropdownMenuSubTrigger")),WI=v.forwardRef(yr(function(t,n){const{__scopeDropdownMenu:a,...o}=t,l=vr(a);return u.jsx(MI,{...l,...o,ref:n,style:{...t.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})},"DropdownMenuSubContent")),XI=zI,JI=VI,eL=FI,p2=$I,g2=HI,y2=qI,v2=GI,b2=KI,x2=QI,w2=YI,S2=ZI,_2=WI;const Md=XI,Dd=JI,tL=v.forwardRef(({className:e,inset:t,children:n,...a},o)=>u.jsxs(S2,{ref:o,className:Pe("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a,children:[n,u.jsx(Ed,{className:"ml-auto"})]}));tL.displayName=S2.displayName;const nL=v.forwardRef(({className:e,...t},n)=>u.jsx(_2,{ref:n,className:Pe("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
50de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...t}));nL.displayName=_2.displayName;const oc=v.forwardRef(({className:e,sideOffset:t=4,...n},a)=>u.jsx(eL,{children:u.jsx(p2,{ref:a,sideOffset:t,className:Pe("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n})}));oc.displayName=p2.displayName;const $t=v.forwardRef(({className:e,inset:t,...n},a)=>u.jsx(y2,{ref:a,className:Pe("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...n}));$t.displayName=y2.displayName;const rL=v.forwardRef(({className:e,children:t,checked:n,...a},o)=>u.jsxs(v2,{ref:o,className:Pe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:n,...a,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(x2,{children:u.jsx(rn,{className:"h-4 w-4"})})}),t]}));rL.displayName=v2.displayName;const sL=v.forwardRef(({className:e,children:t,...n},a)=>u.jsxs(b2,{ref:a,className:Pe("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(x2,{children:u.jsx(CP,{className:"h-2 w-2 fill-current"})})}),t]}));sL.displayName=b2.displayName;const aL=v.forwardRef(({className:e,inset:t,...n},a)=>u.jsx(g2,{ref:a,className:Pe("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...n}));aL.displayName=g2.displayName;const bo=v.forwardRef(({className:e,...t},n)=>u.jsx(w2,{ref:n,className:Pe("-mx-1 my-1 h-px bg-muted",e),...t}));bo.displayName=w2.displayName;var iL=Object.defineProperty,vs=(e,t)=>iL(e,"name",{value:t,configurable:!0}),C2="Avatar",[oL,CB]=Bn(C2),lL=[0,()=>{}],[cL,E2]=oL(C2),T2=v.forwardRef(vs(function(t,n){const{__scopeAvatar:a,...o}=t,[l,d]=v.useState("idle"),[h,m]=A2();return u.jsx(cL,{scope:a,imageLoadingStatus:l,setImageLoadingStatus:d,imageCount:h,setImageCount:m,children:u.jsx(Ve.span,{...o,ref:n})})},"Avatar")),uL="AvatarImage",j2=v.forwardRef(vs(function(t,n){const{__scopeAvatar:a,src:o,onLoadingStatusChange:l,...d}=t,h=E2(uL,a);h.setImageCount;const m=k2(o,{referrerPolicy:d.referrerPolicy,crossOrigin:d.crossOrigin,loadingStatus:h.imageLoadingStatus,setLoadingStatus:h.setImageLoadingStatus}),g=yn(x=>{l?.(x)}),y=v.useRef(m);return Ct(()=>{const x=y.current;y.current=m,m!==x&&g(m)},[m,g]),m==="loaded"?u.jsx(Ve.img,{...d,ref:n,src:o}):null},"AvatarImage")),dL="AvatarFallback",N2=v.forwardRef(vs(function(t,n){const{__scopeAvatar:a,delayMs:o,...l}=t,d=E2(dL,a),[h,m]=v.useState(o===void 0);return v.useEffect(()=>{if(o!==void 0){const g=window.setTimeout(()=>m(!0),o);return()=>window.clearTimeout(g)}},[o]),h&&d.imageLoadingStatus!=="loaded"?u.jsx(Ve.span,{...l,ref:n}):null},"AvatarFallback"));function k2(e,{loadingStatus:t,setLoadingStatus:n,referrerPolicy:a,crossOrigin:o}){return Ct(()=>{if(!e){n("error");return}const l=new window.Image,d=vs(m=>{const g=m.currentTarget;n(Dg(g))},"handleLoad"),h=vs(()=>n("error"),"handleError");return l.addEventListener("load",d),l.addEventListener("error",h),a&&(l.referrerPolicy=a),l.crossOrigin=o??null,l.src=e,n(Dg(l)),()=>{l.removeEventListener("load",d),l.removeEventListener("error",h),n("idle")}},[e,o,a,n]),t}vs(k2,"useImageLoadingStatus");
50function Dg(e){return e.complete?e.naturalWidth>0?"loaded":"error":"loading"}vs(Dg,"getImageLoadingStatus");function A2(){return lL}vs(A2,"useImageCount");function fL(e){}vs(fL,"useUpdateImageCount");const O2=v.forwardRef(({className:e,...t},n)=>u.jsx(T2,{ref:n,className:Pe(` 51 after:content-[''] after:block after:absolute after:inset-0 after:rounded-full after:pointer-events-none after:border after:border-black/10 dark:after:border-white/10 52 relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full`,e),...t}));O2.displayName=T2.displayName;const R2=v.forwardRef(({className:e,...t},n)=>u.jsx(j2,{ref:n,className:Pe("aspect-square h-full w-full",e),...t}));R2.displayName=j2.displayName;const P2=v.forwardRef(({className:e,...t},n)=>u.jsx(N2,{ref:n,className:Pe("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));P2.displayName=N2.displayName;const hL=yc("whitespace-nowrap inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 hover-elevate ",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-xs",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-xs",outline:" border [border-color:var(--badge-outline)] shadow-xs"}},defaultVariants:{variant:"default"}});function kt({className:e,variant:t,...n}){return u.jsx("div",{className:Pe(hL({variant:t}),e),...n})}var mL=class M2 extends Error{static kind="ClerkError";clerkError=!0;code;longMessage;docsUrl;cause;get name(){return this.constructor.name}constructor(t){super(new.target.formatMessage(new.target.kind,t.message,t.code,t.docsUrl),{cause:t.cause}),Object.setPrototypeOf(this,M2.prototype),this.code=t.code,this.docsUrl=t.docsUrl,this.longMessage=t.longMessage,this.cause=t.cause}toString(){return`[${this.name}] 53Message:${this.message}`}static formatMessage(t,n,a,o){const l="Clerk:",d=new RegExp(l.replace(" ","\\s*"),"i");return n=n.replace(d,""),n=`${l} ${n.trim()} 54 55(code="${a}") 56 57`,o&&(n+=` 58 59Docs: ${o}`),n}},Gy=class D2 extends mL{static kind="ClerkRuntimeError";clerkRuntimeError=!0;constructor(t,n){super({...n,message:t}),Object.setPrototypeOf(this,D2.prototype)}};const I2=`To use an existing Clerk app, run: 60npx clerk@latest link 61npx clerk@latest env pull 62 63For production keys, run: 64npx clerk@latest env pull --instance prod`,L2="Or copy keys from https://dashboard.clerk.com/~/api-keys into your .env file.",ao=`To create a new Clerk app, run: 65npx clerk@latest init 66 67${I2} 68 69${L2}`,pL=`${I2} 70 71${L2}`,gL=Object.freeze({InvalidProxyUrlErrorMessage:"The proxyUrl passed to Clerk is invali
71d. The expected value for proxyUrl is an absolute URL or a relative path with a leading '/'. (key={{url}})",InvalidPublishableKeyErrorMessage:`The publishableKey passed to Clerk is invalid (key={{key}}, expected format: pk_test_... or pk_live_...). 72 73${ao}`,MissingPublishableKeyErrorMessage:`Clerk keys are missing from your environment. 74 75${ao}`,MissingSecretKeyErrorMessage:`Missing secretKey. 76 77${pL}`,MissingClerkProvider:"{{source}} can only be used within the <ClerkProvider /> component. Learn more: https://clerk.com/docs/components/clerk-provider"});function z2({packageName:e,customMessages:t}){let n=e;function a(l,d){if(!d)return`${n}: ${l}`;let h=l;const m=l.matchAll(/{{([a-zA-Z0-9-_]+)}}/g);for(const g of m){const y=(d[g[1]]||"").toString();h=h.replace(`{{${g[1]}}}`,y)}return`${n}: ${h}`}const o={...gL,...t};return{setPackageName({packageName:l}){return typeof l=="string"&&(n=l),this},setMessages({customMessages:l}){return Object.assign(o,l||{}),this},throwInvalidPublishableKeyError(l){throw new Error(a(o.InvalidPublishableKeyErrorMessage,l))},throwInvalidProxyUrl(l){throw new Error(a(o.InvalidProxyUrlErrorMessage,l))},throwMissingPublishableKeyError(){throw new Error(a(o.MissingPublishableKeyErrorMessage))},throwMissingSecretKeyError(){throw new Error(a(o.MissingSecretKeyErrorMessage))},throwMissingClerkProviderError(l){throw new Error(a(o.MissingClerkProvider,l))},throw(l){throw new Error(a(l))}}}const yL={strict_mfa:{afterMinutes:10,level:"multi_factor"},strict:{afterMinutes:10,level:"second_factor"},moderate:{afterMinutes:60,level:"second_factor"},lax:{afterMinutes:1440,level:"second_factor"}},vL=new Set(["first_factor","second_factor","multi_factor"]),bL=new Set(["strict_mfa","strict","moderate","lax"]),I1=new Set(["o","org","organization"]),L1=new Set(["u","user"]),xL=e=>typeof e=="number"&&e>0,wL=e=>vL.has(e),SL=e=>bL.has(e),z1=e=>typeof e=="number"&&Number.isFinite(e)&&(e===-1||e>=0),Cp=e=>e.replace(/^(org:)*/,"org:"),_L=(e,t)=>{const{orgId:n,orgRole:a,orgPermissions:o}=t,l=e.role!==void 0,d=e.permission!==void 0;return!l&&!d?"skip":l&&typeof e.role!="string"||d&&typeof e.permission!="string"||!n||l&&(typeof a!="string"||!a||Cp(a)!==Cp(e.role))||d&&(!Array.isArray(o)||!o.includes(Cp(e.permission)))?"fail":"pass"},U1=(e,t)=>{const{org:n,user:a}=EL(e),[o,l]=t.split(":"),d=l!==void 0,h=o,m=l||o;if(d&&!I1.has(h)&&!L1.has(h))throw new Error(`Invalid scope: ${h}`);if(d){if(I1.has(h))return n.includes(m);if(L1.has(h))return a.includes(m)}return[...n,...a].includes(m)},CL=(e,t)=>{const{features:n,plans:a}=t,o=e.feature!==void 0,l=e.plan!==void 0;if(!o&&!l)return"skip";if(o&&typeof e.feature!="string"||l&&typeof e.plan!="string")return"fail";if(o){if(typeof n!="string"||!n)return"fail";try{if(!U1(n,e.feature))return"fail"}catch{return"fail"}}if(l){if(typeof a!="string"||!a)return"fail";try{if(!U1(a,e.plan))return"fail"}catch{return"fail"}}return"pass"},EL=e=>{const t=[],n=[];if(!e)return{org:t,user:n};const a=e.split(",");for(let o=0;o<a.length;o++){const l=a[o].trim(),d=l.indexOf(":");if(d===-1)throw new Error(`Invalid claim element (missing colon): ${l}`);const h=l.slice(0,d),m=l.slice(d+1);h==="o"?t.push(m):h==="u"?n.push(m):(h==="ou"||h==="uo")&&(t.push(m),n.push(m))}return{org:t,user:n}},TL=e=>{if(!e)return!1;const t=o=>typeof o=="string"?yL[o]:o,n=typeof e=="string"&&SL(e),a=typeof e=="object"&&wL(e.level)&&xL(e.afterMinutes);return n||a?t.bind(null,e):!1},jL=(e,{factorVerificationAge:t})=>{if(e.reverification===void 0)return"skip";if(!t||!Array.isArray(t)||t.length!==2||!z1(t[0])||!z1(t[1]))return"fail";const n=TL(e.reverification);if(!n)return"fail";const{level:a,afterMinutes:o}=n(),[l,d]=t;if(l===-1&&d===-1)return"fail";const h=l!==-1&&o>l,m=d!==-1&&o>d;switch(a){case"first_factor":return h?"pass":"fail";case"second_factor":return d===-1?h?"pass":"fail":m?"pass":"fail";case"multi_factor":return d===-1?h?"pass":"fail":l===-1?"fail":h&&m?"pass":"fail"}},NL=e=>e.some(t=>t==="pass")&&e.every(t=>t==="pass"||t==="skip"),kL=e=>t=>e.userId?NL([_L(t,e),CL(t,e),jL(t,e)]):!1,AL=({authObject:{sessionId:e,sessionStatus:t,userId:n,actor:a,orgId:o,orgRole:l,orgSlug:d,signOut:h,getToken:m,has:g,sessionClaims:y},options:{treatPendingAsSignedOut:x=!0}})=>{if(e===void 0&&n===void 0)return{actor:void 0,getToken:m,has:()=>!1,isLoaded:!1,isSignedIn:void 0,orgId:void 0,orgRole:void 0,orgSlug:void 0,sessionClaims:void 0,sessionId:e,signOut:h,userId:n};if(e===null&&n===null)return{actor:null,getToken:m,has:()=>!1,isLoaded:!0,isSignedIn:!1,orgId:null,orgRole:null,orgSlug:null,sessionClaims:null,
77sessionId:e,signOut:h,userId:n};if(x&&t==="pending")return{actor:null,getToken:m,has:()=>!1,isLoaded:!0,isSignedIn:!1,orgId:null,orgRole:null,orgSlug:null,sessionClaims:null,sessionId:null,signOut:h,userId:null};if(e&&y&&n&&o&&l)return{actor:a||null,getToken:m,has:g,isLoaded:!0,isSignedIn:!0,orgId:o,orgRole:l,orgSlug:d||null,sessionClaims:y,sessionId:e,signOut:h,userId:n};if(e&&y&&n&&!o)return{actor:a||null,getToken:m,has:g,isLoaded:!0,isSignedIn:!0,orgId:null,orgRole:null,orgSlug:null,sessionClaims:y,sessionId:e,signOut:h,userId:n}},V1=(e,t,n)=>!e&&n?U2(n):OL(t),U2=e=>{const t=e.userId,n=e.user,a=e.sessionId,o=e.sessionStatus,l=e.sessionClaims;return{userId:t,user:n,sessionId:a,session:e.session,sessionStatus:o,sessionClaims:l,organization:e.organization,orgId:e.orgId,orgRole:e.orgRole,orgPermissions:e.orgPermissions,orgSlug:e.orgSlug,actor:e.actor,factorVerificationAge:e.factorVerificationAge}},OL=e=>{const t=e.user?e.user.id:e.user,n=e.user,a=e.session?e.session.id:e.session,o=e.session,l=e.session?.status,d=e.session?e.session.lastActiveToken?.jwt?.claims:null,h=e.session?e.session.factorVerificationAge:null,m=o?.actor,g=e.organization,y=e.organization?e.organization.id:e.organization,x=g?.slug,b=g&&n?.organizationMemberships?.find(E=>E.organization.id===y),C=b&&b.permissions;return{userId:t,user:n,sessionId:a,session:o,sessionStatus:l,sessionClaims:d,organization:g,orgId:y,orgRole:b&&b.role,orgSlug:x,orgPermissions:C,actor:m,factorVerificationAge:h}},RL=[".lcl.dev",".lclstage.dev",".lclclerk.com"],PL=[".lcl.dev",".stg.dev",".lclstage.dev",".stgstage.dev",".dev.lclclerk.com",".stg.lclclerk.com",".accounts.lclclerk.com","accountsstage.dev","accounts.dev"],V2=e=>typeof atob<"u"&&typeof atob=="function"?atob(e):typeof globalThis.Buffer<"u"?globalThis.Buffer.from(e,"base64").toString():e,ML=e=>typeof btoa<"u"&&typeof btoa=="function"?btoa(e):typeof globalThis.Buffer<"u"?globalThis.Buffer.from(e).toString("base64"):e,Ky="pk_live_",F2="pk_test_",DL=/^(([a-z]+)-){2}([0-9]{1,2})\.clerk\.accounts([a-z.]*)(dev|com)$/i;function IL(e){const t=e.startsWith("clerk.")&&RL.some(n=>e.endsWith(n))&&!e.endsWith(".prod.lclclerk.com");return`${DL.test(e)||t?F2:Ky}${ML(`${e}$`).replace(/=+$/,"")}`}function LL(e,t){if(UL(t))return t;const n=e.toLowerCase().replace(/:\d+$/,"");if(!n)throw new Error("Host must not be empty.");return IL(`clerk.${n}`)}function B2(e){if(!e.endsWith("$"))return!1;const t=e.slice(0,-1);return t.includes("$")?!1:t.includes(".")}function Ep(e,t={}){if(e=e||"",!e||!F1(e)){if(t.fatal&&!e)throw new Error(`Publishable key is missing. 78 79${ao}`);if(t.fatal&&!F1(e))throw new Error(`Publishable key not valid (expected format: pk_test_... or pk_live_...). 80 81${ao}`);return null}const n=e.startsWith(Ky)?"production":"development";let a;try{a=V2(e.split("_")[2])}catch{if(t.fatal)throw new Error(`Publishable key not valid: Failed to decode key. 82 83${ao}`);return null}if(!B2(a)){if(t.fatal)throw new Error(`Publishable key not valid: Decoded key has invalid format. 84 85${ao}`);return null}let o=a.slice(0,-1);return t.proxyUrl?o=t.proxyUrl:n!=="development"&&t.domain&&t.isSatellite&&(o=`clerk.${t.domain}`),{instanceType:n,frontendApi:o}}function F1(e=""){try{if(!(e.startsWith(Ky)||e.startsWith(F2)))return!1;const t=e.split("_");if(t.length!==3)return!1;const n=t[2];return n?B2(V2(n)):!1}catch{return!1}}function zL(){const e=new Map;return{isDevOrStagingUrl:t=>{if(!t)return!1;const n=typeof t=="string"?t:t.hostname;let a=e.get(n);return a===void 0&&(a=PL.some(o=>n.endsWith(o)),e.set(n,a)),a}}}function UL(e){return e.startsWith("test_")||e.startsWith("pk_test_")}const Tp={BASE_URL:"/",DEV:!1,MODE:"production",PROD:!0,SSR:!1,VITE_CLERK_PROXY_URL:"/api/__clerk",VITE_CLERK_PUBLISHABLE_KEY:"pk_live_Y2xlcmsuYWlyc3RyZWFtaHVudGVyLmNvbSQ"};var jp={};const B1=(e,t)=>{if(typeof process<"u"&&jp&&typeof jp[e]=="string")return jp[e];if(typeof import.meta<"u"&&Tp&&typeof Tp[e]=="string")return Tp[e];try{return globalThis[e]}catch{}return""},VL=()=>{try{return!1}catch{}return!1},FL=()=>{try{return!1}catch{}return!1},BL=()=>{try{return!0}catch{}return!1},$L="METHOD_CALLED",HL=.1;function $2(e,t){return{event:$L,eventSamplingRate:HL,payload:{method:e,...t}}}const qL="ClerkJS:";function GL(){throw new Error(`${qL} Clerk instance not found. Make sure Clerk is initialized before using any Clerk components.`)}var $1=Object.prototype.hasOwnProperty;function H1(e,t,n){for(n of e.keys())if(Yl(n,t))return n}function Yl(e,t){var n,a,o;if(e===t)return!0;
85if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((a=e.length)===t.length)for(;a--&&Yl(e[a],t[a]););return a===-1}if(n===Set){if(e.size!==t.size)return!1;for(a of e)if(o=a,o&&typeof o=="object"&&(o=H1(t,o),!o)||!t.has(o))return!1;return!0}if(n===Map){if(e.size!==t.size)return!1;for(a of e)if(o=a[0],o&&typeof o=="object"&&(o=H1(t,o),!o)||!Yl(a[1],t.get(o)))return!1;return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((a=e.byteLength)===t.byteLength)for(;a--&&e.getInt8(a)===t.getInt8(a););return a===-1}if(ArrayBuffer.isView(e)){if((a=e.byteLength)===t.byteLength)for(;a--&&e[a]===t[a];);return a===-1}if(!n||typeof e=="object"){a=0;for(n in e)if($1.call(e,n)&&++a&&!$1.call(t,n)||!(n in t)||!Yl(e[n],t[n]))return!1;return Object.keys(t).length===a}}return e!==e&&t!==t}function KL(e,t){if(!e)throw typeof t=="string"?new Error(t):new Error(`${t.displayName} not found`)}const Mo=(e,t)=>{const{assertCtxFn:n=KL}={},a=I.createContext(void 0);return a.displayName=e,[a,()=>{const d=I.useContext(a);return n(d,`${e} not found`),d.value},()=>{const d=I.useContext(a);return d?d.value:{}}]},[Qy,wc]=Mo("ClerkInstanceContext"),[QL,YL]=Mo("InitialStateContext");function ZL({children:e,initialState:t}){const[n]=v.useState(t),a=I.useMemo(()=>({value:n}),[n]);return I.createElement(QL.Provider,{value:a},e)}function H2(){const e=YL();if(e instanceof Promise){if("use"in I&&typeof I.use=="function")return I.use(e);throw new Error("initialState cannot be a promise if React version is less than 19")}return e}I.createContext({});const[WL]=Mo("CheckoutContext"),XL=({children:e,...t})=>I.createElement(WL.Provider,{value:{value:t}},e);function Yy(e){if(!I.useContext(Qy)){if(typeof e=="function"){e();return}throw new Error(`${e} can only be used within the <ClerkProvider /> component. 86 87Possible fixes: 881. Ensure that the <ClerkProvider /> is correctly wrapping your application where this component is used. 892. Check for multiple versions of the \`@clerk/shared\` package in your project. Use a tool like \`npm ls @clerk/shared\` to identify multiple versions, and update your dependencies to only rely on one. 90 91Learn more: https://clerk.com/docs/components/clerk-provider`.trim())}}function JL(e){const t=function(){};let n;return n=new Proxy(t,{get(a,o){if(o!=="then")return o==="toString"?()=>`[${e}]`:o===Symbol.toPrimitive?()=>0:n},apply(){return n},construct(){return n},has(){return!1},set(){return!1}}),n}JL("ClerkMockQueryClient");function e6(){const e=wc(),t=H2(),n=v.useCallback(()=>t?U2(t)?.session:void 0,[t]);return v.useSyncExternalStore(v.useCallback(a=>e.addListener(a,{skipInitialEmit:!0}),[e]),v.useCallback(()=>!e.loaded||!e.__internal_lastEmittedResources?n():e.__internal_lastEmittedResources.session,[e,n]),n)}const q2=()=>(Yy("useClerk"),wc());typeof window<"u"?I.useLayoutEffect:I.useEffect;const q1="useSession",EB=()=>{Yy(q1);const e=e6(),t=wc();return t.telemetry?.record($2(q1)),e===void 0?{isLoaded:!1,isSignedIn:void 0,session:void 0}:e===null?{isLoaded:!0,isSignedIn:!1,session:null}:{isLoaded:!0,isSignedIn:t.isSignedIn,session:e}},G1=Yl;function t6(e){e||GL()}function n6(e){const t=e.clerk;if(t6(t),e.initialState instanceof Promise&&!("use"in I&&typeof I.use=="function"))throw new Error("initialState cannot be a promise if React version is less than 19");const n=I.useMemo(()=>({value:t}),[e.clerkStatus]);return I.createElement(ZL,{initialState:e.initialState},I.createElement(Qy.Provider,{value:n},I.createElement(XL,{value:void 0},e.children)))}const r6=e=>{const t=v.useRef(e);return v.useEffect(()=>{t.current=e},[e]),t.current},Zn=(e,t,n)=>{const a=!!n,o=v.useRef(n);v.useEffect(()=>{o.current=n},[n]),v.useEffect(()=>{if(!a||!e)return()=>{};const l=(...d)=>{o.current&&o.current(...d)};return e.on(t,l),()=>{e.off(t,l)}},[a,t,e,o])},G2=I.createContext(null);G2.displayName="ElementsContext";const s6=(e,t)=>{if(!e)throw new Error(`Could not find Elements context; You need to wrap the part of your app that ${t} in an <Elements> provider.`);return e},Id=e=>e!==null&&typeof e=="object",a6=(e,t,n)=>Id(e)?Object.keys(e).reduce((a,o)=>{const l=!Id(t)||!K2(e[o],t[o]);return n.includes(o)?(l&&console.warn(`Unsupported prop change: options.${o} is not a mutable property.`),a):l?{...a||{},[o]:e[o]}:a},null):null,K1="[object Object]",K2=(e,t)=>
91{if(!Id(e)||!Id(t))return e===t;const n=Array.isArray(e);if(n!==Array.isArray(t))return!1;const a=Object.prototype.toString.call(e)===K1;if(a!==(Object.prototype.toString.call(t)===K1))return!1;if(!a&&!n)return e===t;const o=Object.keys(e),l=Object.keys(t);if(o.length!==l.length)return!1;const d={};for(let x=0;x<o.length;x+=1)d[o[x]]=!0;for(let x=0;x<l.length;x+=1)d[l[x]]=!0;const h=Object.keys(d);if(h.length!==o.length)return!1;const m=e,g=t,y=x=>K2(m[x],g[x]);return h.every(y)},Q1=e=>s6(I.useContext(G2),e),i6=e=>e.charAt(0).toUpperCase()+e.slice(1),o6=(e,t)=>{const n=`${i6(e)}Element`,l=t?d=>{Q1(`mounts <${n}>`);const{id:h,className:m}=d;return I.createElement("div",{id:h,className:m})}:({id:d,className:h,fallback:m,options:g={},onBlur:y,onFocus:x,onReady:b,onChange:C,onEscape:E,onClick:w,onLoadError:_,onLoaderStart:R,onNetworksChange:A,onConfirm:k,onCancel:N,onShippingAddressChange:O,onShippingRateChange:U})=>{const Y=Q1(`mounts <${n}>`),F="elements"in Y?Y.elements:null,[W,ce]=I.useState(null),fe=I.useRef(null),X=I.useRef(null),[ae,oe]=v.useState(!1);Zn(W,"blur",y),Zn(W,"focus",x),Zn(W,"escape",E),Zn(W,"click",w),Zn(W,"loaderror",_),Zn(W,"loaderstart",R),Zn(W,"networkschange",A),Zn(W,"confirm",k),Zn(W,"cancel",N),Zn(W,"shippingaddresschange",O),Zn(W,"shippingratechange",U),Zn(W,"change",C);let ve;b&&(ve=()=>{oe(!0),b(W)}),Zn(W,"ready",ve),I.useLayoutEffect(()=>{if(fe.current===null&&X.current!==null&&F){let q=null;F&&(q=F.create(e,g)),fe.current=q,ce(q),q&&q.mount(X.current)}},[F,g]);const D=r6(g);return I.useEffect(()=>{if(!fe.current)return;const q=a6(g,D,["paymentRequest"]);q&&"update"in fe.current&&fe.current.update(q)},[g,D]),I.useLayoutEffect(()=>()=>{if(fe.current&&typeof fe.current.destroy=="function")try{fe.current.destroy(),fe.current=null}catch{}},[]),I.createElement(I.Fragment,null,!ae&&m,I.createElement("div",{id:d,style:{height:ae?"unset":"0px",visibility:ae?"visible":"hidden"},className:h,ref:X}))};return l.displayName=n,l.__elementType=e,l};o6("payment",typeof window>"u");Mo("PaymentElementContext");Mo("StripeUtilsContext");const[TB,,l6]=Mo("PortalProvider"),c6=()=>{const e=l6();return e&&"getContainer"in e&&e.getContainer?e.getContainer:()=>null},ps=z2({packageName:"@clerk/react"});function u6(e){ps.setMessages(e).setPackageName(e)}const Q2=wc,Y2=e=>{Yy(()=>{ps.throwMissingClerkProviderError({source:e})})};function Np(e,t,n){if(typeof e=="function")return e(t);if(typeof e<"u")return e;if(typeof n<"u")return n}const An=e=>{VL()&&console.error(`Clerk: ${e}`)},Y1=(e,...t)=>{const n={...e};for(const a of t)delete n[a];return n};function uo(){return typeof window<"u"}const d6="You've added multiple <ClerkProvider> components in your React component tree. Wrap your components in a single <ClerkProvider>.",f6=e=>`You've passed multiple children components to <${e}/>. You can only pass a single child component or text.`,h6="Invalid state. Feel free to submit a bug or reach out to support here: https://clerk.com/contact/support",kp="Unsupported usage of isSatellite, domain or proxyUrl. The usage of isSatellite, domain or proxyUrl as function is not supported in non-browser environments.",m6="<UserProfile.Page /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",p6="<UserProfile.Link /> component needs to be a direct child of `<UserProfile />` or `<UserButton />`.",g6="<OrganizationProfile.Page /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",y6="<OrganizationProfile.Link /> component needs to be a direct child of `<OrganizationProfile />` or `<OrganizationSwitcher />`.",v6=e=>`<${e} /> can only accept <${e}.Page /> and <${e}.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.`,b6=e=>`Missing props. <${e}.Page /> component requires the following props: url, label, labelIcon, alongside with children to be rendered inside the page.`,x6=e=>`Missing props. <${e}.Link /> component requires the following props: url, label and labelIcon.`,w6="<UserButton /> can only accept <UserButton.UserProfilePage />, <UserButton.UserProfileLink /> and <UserButton.MenuItems /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.",S6="<UserButton.MenuItems /> component can only accept <UserButton.Action /> and <UserButton.Link /> as its children. Any other provided component will be ignored. Additionally, please ensure that the component is rendered in a client component.",_6="<UserButton.MenuItems /> component needs to be a direct child of `<UserButton />`.",C6="<UserButton.Action /> component needs to be a direct child of `<UserButton.MenuItems />`.",E6="<UserButton.Link /> component needs to be a direct child of `<UserButton.MenuItems />`.",T6="Missing props. <UserButton.Link /> component requires the following props: href, label and labelIcon.",j6="Missing props. <UserButton.Action /> component requires the following props: label.",Sc=e=>t=>{try{return I.Children.only(e)}catch{const n=I.Children.toArray(e);return n.length===1&&I.isValidElement(n[0])?n[0]:ps.throw(f6(t))}},_c=(e,t)=>(e||(e=t),typeof e=="string"&&(e=I.createElement("button",null,e)),e),Cc=e=>(...t)=>{if(e&&typeof e=="function")return e(...t)},N6=e=>B1(`VITE_${e}`)||B1(e),k6=(e,t)=>e!==void 0?e:N6(t)||void 0,A6=e=>{const t=k6(e.publishableKey,"CLERK_PUBLISHABLE_KEY");return{...e,...t!==void 0&&{publishableKey:t}}};function Z1(e){return typeof e=="function"}const Zl=e=>{const[t,n]=v.useState(new Map),a=v.useRef(t),o=v.useRef(new Map),l=v.useRef(new Map);
91a.current=t,o.current=new Map(e.map(h=>[h.id,h.component]));const d=new Set(e.map(h=>h.id));return l.current.forEach((h,m)=>{d.has(m)||l.current.delete(m)}),e.map(h=>{const m=h.id,g=l.current.get(m);if(g)return g;const y=()=>{const b=a.current.get(m),C=o.current.get(m);return b?xs.createPortal(C,b):null},x={id:h.id,mount:b=>n(C=>new Map(C).set(m,b)),unmount:()=>n(b=>{const C=new Map(b);return C.set(m,null),C}),portal:y};return l.current.set(m,x),x})},jn=(e,t)=>!!e&&I.isValidElement(e)&&e?.type===t,Z2=(e,t)=>J2({children:e,reorderItemsLabels:["account","security","billing","apiKeys"],LinkComponent:Tc,PageComponent:Ec,MenuItemsComponent:Tf,componentName:"UserProfile"},t),W2=(e,t)=>J2({children:e,reorderItemsLabels:["general","members","billing","apiKeys"],LinkComponent:Nf,PageComponent:jf,componentName:"OrganizationProfile"},t),X2=e=>{const t=[],n=[Nf,jf,Tf,Ec,Tc];return I.Children.forEach(e,a=>{n.some(o=>jn(a,o))||t.push(a)}),t},J2=(e,t)=>{const{children:n,LinkComponent:a,PageComponent:o,MenuItemsComponent:l,reorderItemsLabels:d,componentName:h}=e,{allowForAnyChildren:m=!1}=t||{},g=[],y=new Map;I.Children.forEach(n,k=>{if(!jn(k,o)&&!jn(k,a)&&!jn(k,l)){k&&!m&&An(v6(h));return}const{props:N}=k,{children:O,label:U,url:Y,labelIcon:F}=N,W=k.key;if(jn(k,o))if(X1(N,d))g.push({label:U});else if(Ap(N))g.push({label:U,labelIcon:F,children:O,url:Y,portalId:W1("page",N,W,y)});else{An(b6(h));return}if(jn(k,a))if(Op(N))g.push({label:U,labelIcon:F,url:Y,portalId:W1("link",N,W,y)});else{An(x6(h));return}});const x=[],b=[],C=[];g.forEach((k,N)=>{if(Ap(k)){x.push({component:k.children,id:k.portalId||N}),b.push({component:k.labelIcon,id:k.portalId||N});return}Op(k)&&C.push({component:k.labelIcon,id:k.portalId||N})});const E=Zl(x),w=Zl(b),_=Zl(C),R=[],A=[];return g.forEach((k,N)=>{if(X1(k,d)){R.push({label:k.label});return}if(Ap(k)){const{portal:O,mount:U,unmount:Y}=E.find(fe=>fe.id===(k.portalId||N)),{portal:F,mount:W,unmount:ce}=w.find(fe=>fe.id===(k.portalId||N));R.push({label:k.label,url:k.url,mount:U,unmount:Y,mountIcon:W,unmountIcon:ce}),A.push({key:`content:${k.portalId||N}`,portal:O}),A.push({key:`label:${k.portalId||N}`,portal:F});return}if(Op(k)){const{portal:O,mount:U,unmount:Y}=_.find(F=>F.id===(k.portalId||N));R.push({label:k.label,url:k.url,mountIcon:U,unmountIcon:Y}),A.push({key:`label:${k.portalId||N}`,portal:O});return}}),{customPages:R,customPagesPortals:A}},W1=(e,t,n,a)=>{if(n!=null)return`${e}:key:${n}`;const o=`${e}:${t.label}:${t.url}`,l=a.get(o)??0;return a.set(o,l+1),`${o}:${l}`},X1=(e,t)=>{const{children:n,label:a,url:o,labelIcon:l}=e;return!n&&!o&&!l&&t.some(d=>d===a)},Ap=e=>{const{children:t,label:n,url:a,labelIcon:o}=e;return!!t&&!!a&&!!o&&!!n},Op=e=>{const{children:t,label:n,url:a,labelIcon:o}=e;return!t&&!!a&&!!o&&!!n},O6=(e,t)=>R6({children:e,reorderItemsLabels:["manageAccount","signOut"],MenuItemsComponent:Tf,MenuActionComponent:tT,MenuLinkComponent:nT,UserProfileLinkComponent:Tc,UserProfilePageComponent:Ec,allowForAnyChildren:t?.allowForAnyChildren??!1}),R6=({children:e,MenuItemsComponent:t,MenuActionComponent:n,MenuLinkComponent:a,UserProfileLinkComponent:o,UserProfilePageComponent:l,reorderItemsLabels:d,allowForAnyChildren:h=!1})=>{const m=[],g=[],y=[],x=new Map;I.Children.forEach(e,_=>{if(!jn(_,t)&&!jn(_,o)&&!jn(_,l)){_&&!h&&An(w6);return}if(jn(_,o)||jn(_,l))return;const{props:R}=_;I.Children.forEach(R.children,A=>{if(!jn(A,n)&&!jn(A,a)){A&&An(S6);return}const{props:k}=A,N=A.key,{label:O,labelIcon:U,href:Y,onClick:F,open:W}=k;if(jn(A,n))if(J1(k,d))m.push({label:O});else if(Pp(k)){const ce={label:O,labelIcon:U};if(F!==void 0)m.push({...ce,onClick:F,portalId:Rp("action",k,N,x)});else if(W!==void 0)m.push({...ce,open:W.startsWith("/")?W:`/${W}`,portalId:Rp("action",k,N,x)});else{An("Custom menu item must have either onClick or open property");return}}else{An(j6);return}if(jn(A,a))if(Mp(k))m.push({label:O,labelIcon:U,href:Y,portalId:Rp("link",k,N,x)});else{An(T6);return}})});const b=[],C=[];m.forEach((_,R)=>{Pp(_)&&b.push({component:_.labelIcon,id:_.portalId||R}),Mp(_)&&C.push({component:_.labelIcon,id:_.portalId||R})});const E=Zl(b),w=Zl(C);return m.forEach((_,R)=>{if(J1(_,d)&&g.push({label:_.label}),Pp(_)){const{portal:A,mount:k,unmount:N}=E.find(U=>U.id===(_.portalId||R)),O={label:_.label,mountIcon:k,unmountIcon:N};"onClick"in _?O.onClick=_.onClick:"open"in _&&(O.open=_.open),g.push(O),y.push({key:`icon:${_.portalId||R}`,portal:A})}if(Mp(_)){const{portal:A,mount:k,unmount:N}=w.find(O=>O.id===(_.portalId||R));g.push({label:_.label,href:_.href,mountIcon:k,unmountIcon:N}),y.push({key:`icon:${_.portalId||R}`,portal:A})}}),{customMenuItems:g,customMenuItemsPortals:y}},Rp=(e,t,n,a)=>
91{if(n!=null)return`${e}:key:${n}`;const o=t.href||t.open||"",l=`${e}:${t.label}:${o}`,d=a.get(l)??0;return a.set(l,d+1),`${l}:${d}`},J1=(e,t)=>{const{children:n,label:a,onClick:o,labelIcon:l}=e;return!n&&!o&&!l&&t.some(d=>d===a)},Pp=e=>{const{label:t,labelIcon:n,onClick:a,open:o}=e;return!!n&&!!t&&(typeof a=="function"||typeof o=="string")},Mp=e=>{const{label:t,href:n,labelIcon:a}=e;return!!n&&!!a&&!!t},P6=e=>{const t=e?.isReady;return n=>new Promise((a,o)=>{const{root:l=document?.body,selector:d,timeout:h=0}=n;if(!l){o(new Error("No root element provided"));return}let m=l;if(d&&(m=l?.querySelector(d)),t(m,d)){a();return}const g=new MutationObserver(y=>{for(const x of y)if(!m&&d&&(m=l?.querySelector(d)),(e.childList&&x.type==="childList"||e.attributes&&x.type==="attributes")&&t(m,d)){g.disconnect(),a();return}});g.observe(l,e),h>0&&setTimeout(()=>{g.disconnect(),o(new Error(`Timeout waiting for ${d}`))},h)})},M6=P6({childList:!0,subtree:!0,isReady:(e,t)=>!!e?.childElementCount&&e?.matches?.(t)&&e.childElementCount>0});function sn(e,t){const n=v.useRef(),[a,o]=v.useState("rendering");return v.useEffect(()=>{if(!e)throw new Error("Clerk: no component name provided, unable to detect mount.");if(typeof window<"u"&&!n.current){const l=`[data-clerk-component="${e}"]`,d=t?.selector;n.current=M6({selector:d?l+d:l}).then(()=>{o("rendered")}).catch(()=>{o("error")})}},[e,t?.selector]),a}const id=e=>"mount"in e,eS=e=>"open"in e,tS=e=>e?.map(({mountIcon:t,unmountIcon:n,...a})=>a);var Ht=class extends I.PureComponent{constructor(...e){super(...e),this.rootRef=I.createRef()}componentDidUpdate(e){if(!id(e)||!id(this.props))return;const t=Y1(e.props||{},"customPages","customMenuItems","children"),n=Y1(this.props.props||{},"customPages","customMenuItems","children"),a=e.props?.customPages?.length!==this.props.props?.customPages?.length,o=e.props?.customMenuItems?.length!==this.props.props?.customMenuItems?.length,l=tS(e.props?.customMenuItems),d=tS(this.props.props?.customMenuItems);(!G1(t,n)||!G1(l,d)||a||o)&&this.rootRef.current&&this.props.updateProps({node:this.rootRef.current,props:this.props.props})}componentDidMount(){this.rootRef.current&&(id(this.props)&&this.props.mount(this.rootRef.current,this.props.props),eS(this.props)&&this.props.open(this.props.props))}componentWillUnmount(){this.rootRef.current&&(id(this.props)&&this.props.unmount(this.rootRef.current),eS(this.props)&&this.props.close())}render(){const{hideRootHtmlElement:e=!1}=this.props,t={ref:this.rootRef,...this.props.rootProps,...this.props.component&&{"data-clerk-component":this.props.component}};return I.createElement(I.Fragment,null,!e&&I.createElement("div",t),this.props.children)}};const ht=(e,t)=>{const n=(typeof t=="string"?t:t?.component)||e.displayName||e.name||"Component";e.displayName=n;const a=typeof t=="string"?void 0:t,o=l=>{Y2(n||"withClerk");const d=Q2(),h=c6();return!d.loaded&&!a?.renderWhileLoading?null:I.createElement(e,{getContainer:h,...l,component:n,clerk:d})};return o.displayName=`withClerk(${n})`,o},Ef=e=>I.createElement(I.Fragment,null,e?.customPagesPortals?.map(({key:t,portal:n})=>v.createElement(n,{key:t})),e?.customMenuItemsPortals?.map(({key:t,portal:n})=>v.createElement(n,{key:t}))),jB=ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountSignIn,unmount:e.unmountSignIn,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"SignIn",renderWhileLoading:!0}),NB=ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountSignUp,unmount:e.unmountSignUp,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"SignUp",renderWhileLoading:!0});function Ec({children:e}){return An(m6),I.createElement(I.Fragment,null,e)}function Tc({children:e}){return An(p6),I.createElement(I.Fragment,null,e)}const D6=ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}},{customPages:d,customPagesPortals:h}=Z2(a.children);return I.createElement(I.Fragment,null,o&&n,I.createElement(Ht,{component:t,mount:e.mountUserProfile,unmount:e.unmountUserProfile,updateProps:e.__internal_updateProps,props:{...a,customPages:d},rootProps:l},I.createElement(Ef,{customPagesPortals:h})))},{component:"UserProfile",renderWhileLoading:!0});Object.assign(D6,{Page:Ec,Link:Tc});const eT=v.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),I6=ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}},{customPages:d,customPagesPortals:h}=Z2(a.children,{allowForAnyChildren:!!a.__experimental_asProvider}),m={...a.userProfileProps,customPages:d},{customMenuItems:g,customMenuItemsPortals:y}=O6(a.children,{allowForAnyChildren:!!a.__experimental_asProvider}),x=X2(a.children),b={mount:e.mountUserButton,unmount:e.unmountUserButton,updateProps:e.__internal_updateProps,props:{...a,userProfileProps:m,customMenuItems:g}},C={customPagesPortals:h,customMenuItemsPortals:y};return I.createElement(eT.Provider,{value:b},o&&n,e.loaded&&I.createElement(Ht,{component:t,...b,hideRootHtmlElement:!!a.__experimental_asProvider,rootProps:l},a.__experimental_asProvider?x:null,I.createElement(Ef,C)))},{component:"UserButton",renderWhileLoading:!0});function Tf({children:e}){return An(_6),I.createElement(I.Fragment,null,e)}function tT({children:e}){return An(C6),I.createElement(I.Fragment,null,e)}function nT({children:e}){return An(E6),I.createElement(I.Fragment,null,e)}function L6(e){const t=v.useContext(eT),n={...t,props:{...t.props,...e}};return I.createElement(Ht,n)}Object.assign(I6,{UserProfilePage:Ec,UserProfileLink:Tc,MenuItems:Tf,Action:tT,Link:nT,__experimental_Outlet:L6});function jf({children:e}){return An(g6),I.createElement(I.Fragment,null,e)}function Nf({children:e}){return An(y6),I.createElement(I.Fragment,null,e)}const z6=ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}},{customPages:d,customPagesPortals:h}=W2(a.children);return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountOrganizationProfile,unmount:e.unmountOrganizationProfile,updateProps:e.__internal_updateProps,props:{...a,customPages:d},rootProps:l},I.createElement(Ef,{customPagesPortals:h})))},{component:"OrganizationProfile",renderWhileLoading:!0});Object.assign(z6,{Page:jf,Link:Nf});ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountCreateOrganization,unmount:e.unmountCreateOrganization,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"CreateOrganization",renderWhileLoading:!0});const rT=v.createContext({mount:()=>{},unmount:()=>{},updateProps:()=>{}}),U6=ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}},{customPages:d,customPagesPortals:h}=W2(a.children,{allowForAnyChildren:!!a.__experimental_asProvider}),m={...a.organizationProfileProps,customPages:d}
91,g=X2(a.children),y={mount:e.mountOrganizationSwitcher,unmount:e.unmountOrganizationSwitcher,updateProps:e.__internal_updateProps,props:{...a,organizationProfileProps:m},rootProps:l,component:t};return e.__experimental_prefetchOrganizationSwitcher(),I.createElement(rT.Provider,{value:y},I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{...y,hideRootHtmlElement:!!a.__experimental_asProvider},a.__experimental_asProvider?g:null,I.createElement(Ef,{customPagesPortals:h}))))},{component:"OrganizationSwitcher",renderWhileLoading:!0});function V6(e){const t=v.useContext(rT),n={...t,props:{...t.props,...e}};return I.createElement(Ht,n)}Object.assign(U6,{OrganizationProfilePage:jf,OrganizationProfileLink:Nf,__experimental_Outlet:V6});ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountOrganizationList,unmount:e.unmountOrganizationList,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"OrganizationList",renderWhileLoading:!0});ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,open:e.openGoogleOneTap,close:e.closeGoogleOneTap,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"GoogleOneTap",renderWhileLoading:!0});ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountWaitlist,unmount:e.unmountWaitlist,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"Waitlist",renderWhileLoading:!0});ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t,{selector:'[data-component-status="ready"]'})==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountPricingTable,unmount:e.unmountPricingTable,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"PricingTable",renderWhileLoading:!0});ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountAPIKeys,unmount:e.unmountAPIKeys,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"ApiKeys",renderWhileLoading:!0});ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.__internal_mountOAuthConsent,unmount:e.__internal_unmountOAuthConsent,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"OAuthConsent",renderWhileLoading:!0});ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.__internal_mountOAuthDeviceVerification,unmount:e.__internal_unmountOAuthDeviceVerification,updateProps:d=>{e.__internal_updateProps(d)},props:a,rootProps:l}))},{component:"OAuthDeviceVerification",renderWhileLoading:!0});ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountUserAvatar,unmount:e.unmountUserAvatar,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"UserAvatar",renderWhileLoading:!0});const kB=ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountTaskChooseOrganization,unmount:e.unmountTaskChooseOrganization,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"TaskChooseOrganization",renderWhileLoading:!0}),AB=ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountTaskResetPassword,unmount:e.unmountTaskResetPassword,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"TaskResetPassword",renderWhileLoading:!0}),OB=ht(({clerk:e,component:t,fallback:n,...a})=>{const o=sn(t)==="rendering"||!e.loaded,l={...o&&n&&{style:{display:"none"}}};return I.createElement(I.Fragment,null,o&&n,e.loaded&&I.createElement(Ht,{component:t,mount:e.mountTaskSetupMFA,unmount:e.unmountTaskSetupMFA,updateProps:e.__internal_updateProps,props:a,rootProps:l}))},{component:"TaskSetupMFA",renderWhileLoading:!0}),F6={actor:void 0,factorVerificationAge:null,orgId:void 0,orgPermissions:void 0,orgRole:void 0,orgSlug:void 0,sessionClaims:void 0,sessionId:void 0,sessionStatus:void 0,userId:void 0};function B6(){const e=wc(),t=H2(),n=v.useCallback(()=>t,[t]),a=v.useSyncExternalStore(v.useCallback(o=>e.addListener(o,{skipInitialEmit:!0}),[e]),v.useCallback(()=>!e.loaded||!e.__internal_lastEmittedResources?n():e.__internal_lastEmittedResources,[e,n]),n);return v.useMemo(()=>a?$6(H6(a)?V1(!1,{},a):V1(!0,a,void 0)):F6,[a])}function $6(e){return{sessionId:e.sessionId,sessionStatus:e.sessionStatus,sessionClaims:e.sessionClaims,userId:e.userId,actor:e.actor,orgId:e.orgId,orgRole:e.orgRole,orgSlug:e.orgSlug,orgPermissions:e.orgPermissions,factorVerificationAge:e.factorVerificationAge}}function H6(e){return!("client"in e)}const sT=e=>new Promise(t=>{const n=a=>{["ready","degraded"].includes(a)&&(t(),e.off("status",n))};e.on("status",n,{notify:!0})}),q6=e=>async t=>{if(!uo())throw new Gy("useAuth().getToken() can only be used in browser environments. To access auth data server-side, see the Auth object reference doc: https://clerk.c
91om/docs/reference/backend/types/auth-object",{code:"clerk_runtime_not_browser"});return await sT(e),e.session?e.session.getToken(t):null},G6=e=>async(...t)=>(await sT(e),e.signOut(...t)),K6=(e={})=>{Y2("useAuth");const{treatPendingAsSignedOut:t}=e??{},n=B6(),a=Q2(),o=v.useCallback(q6(a),[a]),l=v.useCallback(G6(a),[a]);return a.telemetry?.record($2("useAuth",{treatPendingAsSignedOut:t})),Q6({...n,getToken:o,signOut:l},{treatPendingAsSignedOut:t})};function Q6(e,{treatPendingAsSignedOut:t=!0}={}){const{userId:n,orgId:a,orgRole:o,has:l,signOut:d,getToken:h,orgPermissions:m,factorVerificationAge:g,sessionClaims:y}=e??{},x=v.useCallback(C=>l?l(C):kL({userId:n,orgId:a,orgRole:o,orgPermissions:m,factorVerificationAge:g,features:y?.fea||"",plans:y?.pla||""})(C),[l,n,a,o,m,g,y]),b=AL({authObject:{...e,getToken:h,signOut:d,has:x},options:{treatPendingAsSignedOut:t}});return b||ps.throw(h6)}const Y6={initialDelay:125,maxDelayBetweenRetries:0,factor:2,shouldRetry:(e,t)=>t<5,retryImmediately:!1,jitter:!0},Z6=100,aT=async e=>new Promise(t=>setTimeout(t,e)),iT=(e,t)=>t?e*(1+Math.random()):e,W6=e=>{let t=0;const n=()=>{const a=e.initialDelay,o=e.factor;let l=a*Math.pow(o,t);return l=iT(l,e.jitter),Math.min(e.maxDelayBetweenRetries||l,l)};return async()=>{await aT(n()),t++}},X6=async(e,t={})=>{let n=0;const{shouldRetry:a,initialDelay:o,maxDelayBetweenRetries:l,factor:d,retryImmediately:h,jitter:m,onBeforeRetry:g}={...Y6,...t},y=W6({initialDelay:o,maxDelayBetweenRetries:l,factor:d,jitter:m});for(;;)try{return await e()}catch(x){if(n++,!a(x,n))throw x;g&&await g(n),h&&n===1?await aT(iT(Z6,m)):await y()}},J6="loadScript cannot be called when document does not exist",ez="loadScript cannot be called without a src";async function oT(e="",t){const{async:n,defer:a,beforeLoad:o,crossOrigin:l,nonce:d}=t||{};return X6(()=>new Promise((m,g)=>{e||g(new Error(ez)),(!document||!document.body)&&g(new Error(J6));const y=document.createElement("script");l&&y.setAttribute("crossorigin",l),y.async=n||!1,y.defer=a||!1,y.addEventListener("load",()=>{y.remove(),m(y)}),y.addEventListener("error",x=>{y.remove(),g(x.error??new Error(`failed to load script: ${e}`))}),y.src=e,d&&(y.nonce=d),o?.(y),document.body.appendChild(y)}),{shouldRetry:(m,g)=>g<=5})}function tz(e){return e?nz(e)||jc(e):!0}function nz(e){return/^http(s)?:\/\//.test(e||"")}function jc(e){return e.startsWith("/")}function rz(e){return e?!jc(e)||typeof window>"u"||!window.location?.origin?e:new URL(e,window.location.origin).toString():""}function sz(e){if(!e)return"";let t;if(e.match(/^(clerk\.)+\w*$/))t=/(clerk\.)*(?=clerk\.)/;else{if(e.match(/\.clerk.accounts/))return e;t=/^(clerk\.)*/gi}return`clerk.${e.replace(t,"")}`}const lT=(e,t="6.37.0")=>{if(e)return e;const n=az(t);return n?n==="snapshot"?t:n:iz(t)},az=e=>e.trim().replace(/^v/,"").match(/-(.+?)(\.|$)/)?.[1],iz=e=>e.trim().replace(/^v/,"").split(".")[0],{isDevOrStagingUrl:oz}=zL(),Zy=z2({packageName:"@clerk/shared"});function cT(e){return typeof window>"u"||!window[e]?!1:!!window[e]}const Dp=()=>cT("Clerk"),Ip=()=>cT("__internal_ClerkUICtor");function uT(e){if(typeof window>"u"||!window.performance)return!1;const t=performance.getEntriesByName(e,"resource");if(t.length===0)return!1;const n=t[t.length-1];return n.transferSize===0&&n.decodedBodySize===0&&(n.responseEnd===0||n.responseEnd>0&&n.responseStart>0||"responseStatus"in n&&(n.responseStatus>=400||n.responseStatus===0))}const lz=async e=>{const t=e?.scriptLoadTimeout??15e3,n=d=>new Gy("Failed to load Clerk JS"+(d?.message?`, ${d.message}`:""),{code:"failed_to_load_clerk_js",cause:d});if(Dp())return null;if(!e?.publishableKey)return Zy.throwMissingPublishableKeyError(),null;const a=uz(e),o=document.querySelector("script[data-clerk-js-script]");if(o)if(uT(a))o.remove();else try{return await Ld(t,Dp,n(),o),null}catch{o.remove()}const l=Ld(t,Dp,n());return oT(a,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:fT(dT(e))}).catch(d=>{throw n(d)}),l},cz=async e=>{const t=e?.scriptLoadTimeout??15e3,n=d=>new Gy("Failed to load Clerk UI"+(d?.message?`, ${d.message}`:""),{code:"failed_to_load_clerk_ui",cause:d});if(Ip())return null;if(!e?.publishableKey)return Zy.throwMissingPublishableKeyError(),null;const a=dz(e),o=document.querySelector("script[data-clerk-ui-script]");if(o)if(uT(a))o.remove();else try{return await Ld(t,Ip,n(),o),null}catch{o.remove()}const l=Ld(t,Ip,n());return oT(a,{async:!0,crossOrigin:"anonymous",nonce:e.nonce,beforeLoad:fT(fz(e))}).catch(d=>{throw n(d)}),l},uz=e=>{const{__internal_clerkJSUrl:t,__internal_clerkJSVersion:n,proxyUrl:a,domain:o,publishableKey:l}=e;if(t)return t;const d=lT(n);return a&&jc(a)?hT(a,"clerk-js",d,"clerk.browser.js"):`https://${mT({publishableKey:l,proxyUrl:a,domain:o})}/npm/@clerk/clerk-js@${d}/dist/clerk.browser.js`},dz=e=>{const{__internal_clerkUIUrl:t,__internal_clerkUIVersion:n,proxyUrl:a,domain:o,publishableKey:l}=e;if(t)return t;const d=lT(n,"1.38.1");return a&&jc(a)?hT(a,"ui",d,"ui.browser.js"):`https://${mT({publishableKey:l,proxyUrl:a,domain:o})}/npm/@clerk/ui@${d}/dist/ui.browser.js`},dT=e=>{const t={};return e.publishableKey&&(t["data-clerk-publishable-key"]=e.publishableKey),e.proxyUrl&&(t["data-clerk-proxy-url"]=e.proxyUrl),e.domain&&(t["data-clerk-domain"]=e.domain),e.nonce&&(t.nonce=e.nonce),t},fz=e=>dT(e),fT=e=>t=>{for(const n in e)t.setAttribute(n,e[n])},hz=e=>{for(;e.endsWith("/");)e=e.slice(0,-1);return e},hT=(e,t,n,a)=>`${hz(e)}/npm/@clerk/${t}@${n}/dist/${a}`,mT=e=>{const{proxyUrl:t,domain:n,publishableKey:a}=e;if(t&&tz(t)){const o=rz(t);return jc(o)?Ep(a)?.frontendApi||"":o.replace(/http(s)?:\/\//,"")}else return n&&!oz(Ep(a)?.frontendApi||"")?sz(n):Ep(a)?.frontendApi||""};function Ld(e,t,n,a){return new Promise((o,l)=>{let d=!1;const h=(b,C)=>{clearTimeout(b),clearInterval(C)};a?.addEventListener("error",()=>{h(y,x),l(n)});const m=()=>{d||t()&&(d=!0,h(y,x),o(null))},y=setTimeout(()=>{d||(d=!0,h(y,x),t()?o(null):l(n))},e);m();const x=setInterval(()=>{if(d){clearInterval(x);return}m()},100)})}function mz(e){Zy.setPackageName({packageName:e})}
91const nS=new Set,kf=(e,t,n)=>{const a=FL()||BL(),o=e;nS.has(o)||a||(nS.add(o),console.warn(`Clerk - DEPRECATION WARNING: "${e}" is deprecated and will be removed in the next major release. 92${t}`))},rS=(e,t,n,a,o)=>{const{notify:l}=o||{};let d=e.get(n);d||(d=[],e.set(n,d)),d.push(a),l&&t.has(n)&&a(t.get(n))},sS=(e,t,n)=>(e.get(t)||[]).map(a=>a(n)),aS=(e,t,n)=>{const a=e.get(t);a&&(n?a.splice(a.indexOf(n)>>>0,1):e.set(t,[]))},pz=()=>{const e=new Map,t=new Map,n=new Map;return{on:(...o)=>rS(e,t,...o),prioritizedOn:(...o)=>rS(n,t,...o),emit:(o,l)=>{t.set(o,l),sS(n,o,l),sS(e,o,l)},off:(...o)=>aS(e,...o),prioritizedOff:(...o)=>aS(n,...o),internal:{retrieveListeners:o=>e.get(o)||[]}}},to={Status:"status"},gz=()=>pz(),yz="clerk:beforeunload",Ig=["http:","https:","wails:","chrome-extension:"],vz=/^[/\\][/\\]/;function bz(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;let n="";for(let a=t;a<e.length;a++){const o=e.charCodeAt(a);o!==9&&o!==10&&o!==13&&(n+=e[a])}return n}function xz(e,t){if(typeof e=="string"&&vz.test(bz(e))){console.warn(`Clerk: scheme-relative navigation to "${e}" is not allowed. Provide a same-origin path or an absolute URL.`);return}const n=new URL(e,window.location.href);if(!(t?.allowedProtocols??Ig).includes(n.protocol)){console.warn(`Clerk: "${n.protocol}" is not a valid navigation protocol. Aborting navigation. If you think this is a mistake, please open an issue.`);return}window.dispatchEvent(new CustomEvent(yz)),window.location.href=n.href}function wz(e){const t=e.match(/^(\d+)\.(\d+)\.(\d+)/);if(!t)return null;const[,n,a,o]=t;return{major:parseInt(n,10),minor:parseInt(a,10),patch:parseInt(o,10)}}function Sz(e,t){const{major:n,minor:a,patch:o}=e;return t.some(([l,d,h,m])=>n!==l?!1:h===-1?a>d||a===d&&o>=m:a===h&&o>=m)}function _z(e,t){const n=wz(e);return n?Sz(n,t):!1}ht(({clerk:e,...t})=>{const{client:n,session:a}=e,o=(n.signedInSessions?.length??0)>0;return I.useEffect(()=>{a===null&&o?e.redirectToAfterSignOut():e.redirectToSignIn(t)},[]),null},"RedirectToSignIn");ht(({clerk:e,...t})=>(I.useEffect(()=>{e.redirectToSignUp(t)},[]),null),"RedirectToSignUp");ht(({clerk:e,...t})=>(I.useEffect(()=>{e.redirectToTasks(t)},[]),null),"RedirectToTasks");ht(({clerk:e})=>(I.useEffect(()=>{kf("RedirectToUserProfile","Use the `redirectToUserProfile()` method instead."),e.redirectToUserProfile()},[]),null),"RedirectToUserProfile");ht(({clerk:e})=>(I.useEffect(()=>{kf("RedirectToOrganizationProfile","Use the `redirectToOrganizationProfile()` method instead."),e.redirectToOrganizationProfile()},[]),null),"RedirectToOrganizationProfile");ht(({clerk:e})=>(I.useEffect(()=>{kf("RedirectToCreateOrganization","Use the `redirectToCreateOrganization()` method instead."),e.redirectToCreateOrganization()},[]),null),"RedirectToCreateOrganization");ht(({clerk:e,...t})=>(I.useEffect(()=>{e.handleRedirectCallback(t)},[]),null),"AuthenticateWithRedirectCallback");const Cz=()=>({fields:{identifier:null,password:null,code:null},raw:null,global:null}),Ez=()=>({fields:{firstName:null,lastName:null,emailAddress:null,phoneNumber:null,password:null,username:null,code:null,captcha:null,legalAccepted:null},raw:null,global:null}),Tz=()=>({fields:{emailAddress:null},raw:null,global:null}),iS=()=>({pathRoot:"",attempts:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,message:null,status:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient(){return!1},reload(){throw new Error("reload() called before Clerk is loaded")},__internal_toSnapshot(){return{object:"verification",id:"",attempts:null,error:{code:"",message:""},expire_at:null,externalVerificationRedirectURL:null,nonce:null,message:null,status:null,strategy:null,verified_at_client:null}}}),od=()=>({...iS(),supportedStrategies:[],nextAction:"",reload(){throw new Error("reload() called before Clerk is loaded")},__internal_toSnapshot(){return{...iS().__internal_toSnapshot(),next_action:this.nextAction,supported_strategies:this.supportedStrategies}}});var jz=class{constructor(e){this.isomorphicClerk=e,this.signInSignalProxy=this.buildSignInProxy(),this.signUpSignalProxy=this.buildSignUpProxy(),this.waitlistSignalProxy=this.buildWaitlistProxy()}signInSignal(){return this.signInSignalProxy}signUpSignal(){return this.signUpSignalProxy}waitlistSignal(){return this.waitlistSignalProxy}get __internal_waitlist(){return this.state.__internal_waitlist}checkoutSignal(e){return this.buildCheckoutProxy(e)}buildSignInProxy(){const e=this.gateProperty.bind(this),t=()=>
92this.state.signInSignal().signIn??this.client.signIn.__internal_future;return{errors:Cz(),fetchStatus:"idle",signIn:{get status(){return e(t,"status","needs_identifier")},availableStrategies:[],get isTransferable(){return e(t,"isTransferable",!1)},get id(){return e(t,"id",void 0)},get timezone(){return e(t,"timezone",null)},get supportedFirstFactors(){return e(t,"supportedFirstFactors",[])},get ssoBypassFirstFactors(){return e(t,"ssoBypassFirstFactors",[])},get supportedSecondFactors(){return e(t,"supportedSecondFactors",[])},get secondFactorVerification(){return e(t,"secondFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")}})},get identifier(){return e(t,"identifier",null)},get createdSessionId(){return e(t,"createdSessionId",null)},get userData(){return e(t,"userData",{})},get firstFactorVerification(){return e(t,"firstFactorVerification",{status:null,error:null,expireAt:null,externalVerificationRedirectURL:null,nonce:null,attempts:null,message:null,strategy:null,verifiedAtClient:null,verifiedFromTheSameClient:()=>!1,__internal_toSnapshot:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")},pathRoot:"",reload:()=>{throw new Error("__internal_toSnapshot called before Clerk is loaded")}})},get canBeDiscarded(){return e(t,"canBeDiscarded",!1)},get protectCheck(){return e(t,"protectCheck",null)},create:this.gateMethod(t,"create"),password:this.gateMethod(t,"password"),sso:this.gateMethod(t,"sso"),finalize:this.gateMethod(t,"finalize"),reset:this.gateMethod(t,"reset"),submitProtectCheck:this.gateMethod(t,"submitProtectCheck"),emailCode:this.wrapMethods(()=>t().emailCode,["sendCode","verifyCode"]),emailLink:this.wrapStruct(()=>t().emailLink,["sendLink","waitForVerification"],["verification"],{verification:null}),resetPasswordEmailCode:this.wrapMethods(()=>t().resetPasswordEmailCode,["sendCode","verifyCode","submitPassword"]),resetPasswordPhoneCode:this.wrapMethods(()=>t().resetPasswordPhoneCode,["sendCode","verifyCode","submitPassword"]),phoneCode:this.wrapMethods(()=>t().phoneCode,["sendCode","verifyCode"]),mfa:this.wrapMethods(()=>t().mfa,["sendPhoneCode","verifyPhoneCode","sendEmailCode","verifyEmailCode","verifyTOTP","verifyBackupCode"]),ticket:this.gateMethod(t,"ticket"),passkey:this.gateMethod(t,"passkey"),web3:this.gateMethod(t,"web3")}}}buildSignUpProxy(){const e=this.gateProperty.bind(this),t=this.gateMethod.bind(this),n=()=>this.state.signUpSignal().signUp??this.client.signUp.__internal_future;return{errors:Ez(),fetchStatus:"idle",signUp:{get id(){return e(n,"id",void 0)},get timezone(){return e(n,"timezone",null)},get requiredFields(){return e(n,"requiredFields",[])},get optionalFields(){return e(n,"optionalFields",[])},get missingFields(){return e(n,"missingFields",[])},get username(){return e(n,"username",null)},get firstName(){return e(n,"firstName",null)},get lastName(){return e(n,"lastName",null)},get emailAddress(){return e(n,"emailAddress",null)},get phoneNumber(){return e(n,"phoneNumber",null)},get web3Wallet(){return e(n,"web3Wallet",null)},get hasPassword(){return e(n,"hasPassword",!1)},get unsafeMetadata(){return e(n,"unsafeMetadata",{})},get createdSessionId(){return e(n,"createdSessionId",null)},get createdUserId(){return e(n,"createdUserId",null)},get abandonAt(){return e(n,"abandonAt",null)},get legalAcceptedAt(){return e(n,"legalAcceptedAt",null)},get locale(){return e(n,"locale",null)},get status(){return e(n,"status","missing_requirements")},get unverifiedFields(){return e(n,"unverifiedFields",[])},get isTransferable(){return e(n,"isTransferable",!1)},get canBeDiscarded(){return e(n,"canBeDiscarded",!1)},get protectCheck(){return e(n,"protectCheck",null)},create:t(n,"create"),update:t(n,"update"),sso:t(n,"sso"),password:t(n,"password"),ticket:t(n,"ticket"),web3:t(n,"web3"),finalize:t(n,"finalize"),reset:t(n,"reset"),submitProtectCheck:t(n,"submitProtectCheck"),verifications:this.wrapStruct(()=>n().verifications,["sendEmailCode","verifyEmailCode","sendEmailLink","waitForEmailLinkVerification","sendPhoneCode","verifyPhoneCode"],["emailAddress","phoneNumber","web3Wallet","externalAccount","emailLinkVerification"],{emailAddress:od(),phoneNumber:od(),web3Wallet:od(),externalAccount:od(),emailLinkVerification:null})}}}buildWaitlistProxy(){const e=this.gateProperty.bind(this),t=this.gateMethod.bind(this),n=()=>this.state.__internal_waitlist;return{errors:Tz(),fetchStatus:"idle",waitlist:{pathRoot:"/waitlist",get id(){return e(n,"id","")},get createdAt(){return e(n,"createdAt",null)},get updatedAt(){return e(n,"updatedAt",null)},join:t(n,"join"),reload:t(n,"reload")}}}buildCheckoutProxy(e){const t=this.gateProperty.bind(this),n=()=>this.checkout(e),a=()=>n().checkout;return{errors:{raw:null,global:null},fetchStatus:"idle",checkout:{get status(){return t(a,"status","needs_initialization")},get externalClientSecret(){return t(a,"externalClientSecret",null)},get externalGatewayId(){return t(a,"externalGatewayId",null)},get paymentMethod(){return t(a,"paymentMethod",null)},get plan(){return t(a,"plan",null)},get planPeriod(){return t(a,"planPeriod",null)},get totals(){return t(a,"totals",null)},get isImmediatePlanChange(){return t(a,"isImmediatePlanChange",!1)},get freeTrialEndsAt(){return t(a,"freeTrialEndsAt",null)},get payer(){return t(a,"payer",null)},get planPeriodStart(){return t(a,"planPeriodStart",null)},get needsPaymentMethod(){return t(a,"needsPaymentMethod",null)},start:this.gateMethod(a,"start"),update:this.gateMethod(a,"update"),confirm:this.gateMethod(a,"confirm"),finalize:this.gateMethod(a,"finalize")}}}__internal_effect(e){throw new Error("__internal_effect called before Clerk is loaded")}__internal_computed(e){throw new Error("__internal_computed called before Clerk is loaded")}get state(){const e=this.isomorphicClerk.__internal_state;if(!e)throw new Error("Clerk state not ready");return e}get client(){const e=this.isomorphicClerk.client;if(!e)throw new Error("Clerk client not ready");return e}get checkout(){const e=this.isomorphicClerk.__experimental_checkout;if(!e)throw new Error("Clerk checkout not ready");return e}gateProperty(e,t,n){return!uo()||!this.isomorphicClerk.loaded?n:e()[t]}gateMethod(e,t){return(async(...n)=>{if(!uo())return ps.throw(`Attempted to call a method (${t}) that is not supported on the server.`);this.isomorphicClerk.loaded||await new Promise(o=>this.isomorphicClerk.addOnLoaded(o));const a=e();return a[t].apply(a,n)})}wrapMethods(e,t){return Object.fromEntries(t.map(n=>[n,this.gateMethod(e,n)]))}wrapStruct(e,t,n,a){const o={};for(const l of t)o[l]=this.gateMethod(e,l);for(const l of n)Object.defineProperty(o,l,{get:()=>this.gateProperty(e,l,a[l]),enumerable:!0});return o}};typeof globalThis.__BUILD_DISABLE_RHC__>"u"&&(globalThis.__BUILD_DISABLE_RHC__=!1);const Nz={name:"@clerk/react",version:"6.17.5",environment:"production"};var oS=class pT{#e;#t;#n;#r;#s;#a;get publishableKey(){return this.#r}get loaded(){return this.clerkjs?.loaded||!1}get status(){return this.clerkjs?this.clerkjs?.status||(this.clerkjs.loaded?"ready":"loading"):this.#e}static#i;static getOrCreateInstance(t){return(!uo()||!this.#i||t.Clerk&&this.#i.Clerk!==t.Clerk||this.#i.publishableKey!==t.publishableKey)&&(this.#i=new pT(t)),this.#i}static clearInstance(){this.#i=null}get domain(){return typeof window<"u"&&window.location?Np(this.#t,new URL(window.location.href),""):typeof this.#t=="function"?ps.throw(kp):this.#t||""}get proxyUrl(){return typeof window<"u"&&window.location?Np(this.#n,new URL(window.location.href),""):typeof this.#n=="function"?ps.throw(kp):this.#n||""}__internal_getOption(t){return this.clerkjs?.__internal_getOption?this.clerkjs?.__internal_getOption(t):this.options[t]}get __internal_moduleManager(){return this.clerkjs?.__internal_moduleManager}get __internal_protectChallengeLoadTimeoutMs(){return this.clerkjs?.__internal_protectChallengeLoadTimeoutMs}constructor(t){this.clerkjs=null,this.preopenOneTap=null,this.preopenUserVerification=null,this.preopenEnableOrganizationsPrompt=null,this.preopenSignIn=null,this.preopenCheckout=null,this.preopenPlanDetails=null,this.preopenSubscriptionDetail
92s=null,this.preopenSignUp=null,this.preopenUserProfile=null,this.preopenOrganizationProfile=null,this.preopenInviteMembers=null,this.preopenCreateOrganization=null,this.preOpenWaitlist=null,this.premountSignInNodes=new Map,this.premountSignUpNodes=new Map,this.premountUserAvatarNodes=new Map,this.premountUserProfileNodes=new Map,this.premountUserButtonNodes=new Map,this.premountOrganizationProfileNodes=new Map,this.premountCreateOrganizationNodes=new Map,this.premountOrganizationSwitcherNodes=new Map,this.premountOrganizationListNodes=new Map,this.premountMethodCalls=new Map,this.premountWaitlistNodes=new Map,this.premountPricingTableNodes=new Map,this.premountAPIKeysNodes=new Map,this.premountConfigureSSONodes=new Map,this.premountConfigureDirectorySyncNodes=new Map,this.premountOAuthConsentNodes=new Map,this.premountOAuthDeviceVerificationNodes=new Map,this.premountTaskChooseOrganizationNodes=new Map,this.premountTaskResetPasswordNodes=new Map,this.premountTaskSetupMFANodes=new Map,this.premountAddListenerCalls=new Map,this.loadedListeners=[],this.#e="loading",this.#s=gz(),this.__internal_windowNavigate=(n,a)=>{const o=this.clerkjs;if(typeof o?.__internal_windowNavigate=="function"){o.__internal_windowNavigate(n,a);return}uo()&&xz(n,{allowedProtocols:a?.useStaticAllowlistOnly?Ig:[...Ig,...this.options.allowedRedirectProtocols??[]]})},this.setProtectAssertion=n=>{const a=()=>this.clerkjs?.setProtectAssertion(n);this.clerkjs&&this.loaded?a():this.premountMethodCalls.set("setProtectAssertion",a)},this.buildSignInUrl=n=>{const a=()=>this.clerkjs?.buildSignInUrl(n)||"";if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildSignInUrl",a)},this.buildSignUpUrl=n=>{const a=()=>this.clerkjs?.buildSignUpUrl(n)||"";if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildSignUpUrl",a)},this.buildAfterSignInUrl=(...n)=>{const a=()=>this.clerkjs?.buildAfterSignInUrl(...n)||"";if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildAfterSignInUrl",a)},this.buildAfterSignUpUrl=(...n)=>{const a=()=>this.clerkjs?.buildAfterSignUpUrl(...n)||"";if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildAfterSignUpUrl",a)},this.buildAfterSignOutUrl=()=>{const n=()=>this.clerkjs?.buildAfterSignOutUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildAfterSignOutUrl",n)},this.buildNewSubscriptionRedirectUrl=()=>{const n=()=>this.clerkjs?.buildNewSubscriptionRedirectUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildNewSubscriptionRedirectUrl",n)},this.buildAfterMultiSessionSingleSignOutUrl=()=>{const n=()=>this.clerkjs?.buildAfterMultiSessionSingleSignOutUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildAfterMultiSessionSingleSignOutUrl",n)},this.buildUserProfileUrl=()=>{const n=()=>this.clerkjs?.buildUserProfileUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildUserProfileUrl",n)},this.buildCreateOrganizationUrl=()=>{const n=()=>this.clerkjs?.buildCreateOrganizationUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildCreateOrganizationUrl",n)},this.buildOrganizationProfileUrl=()=>{const n=()=>this.clerkjs?.buildOrganizationProfileUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildOrganizationProfileUrl",n)},this.buildWaitlistUrl=()=>{const n=()=>this.clerkjs?.buildWaitlistUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildWaitlistUrl",n)},this.buildTasksUrl=()=>{const n=()=>this.clerkjs?.buildTasksUrl()||"";if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("buildTasksUrl",n)},this.buildUrlWithAuth=n=>{const a=()=>this.clerkjs?.buildUrlWithAuth(n)||"";if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("buildUrlWithAuth",a)},this.handleUnauthenticated=async()=>{const n=()=>this.clerkjs?.handleUnauthenticated();this.clerkjs&&this.loaded?n():this.premountMethodCalls.set("handleUnauthenticated",n)},this.on=(...n)=>{if(this.clerkjs?.on)return this.clerkjs.on(...n);this.#s.on(...n)},this.off=(...n)=>{if(this.clerkjs?.off)return this.clerkjs.off(...n);this.#s.off(...n)},this.addOnLoaded=n=>{this.loadedListeners.push(n),this.loaded&&this.emitLoaded()},this.emitLoaded=()=>
92{this.loadedListeners.forEach(n=>n()),this.loadedListeners=[]},this.beforeLoad=n=>{if(!n)throw new Error("Failed to hydrate latest Clerk JS")},this.replayInterceptedInvocations=n=>{if(!n)throw new Error("Failed to hydrate latest Clerk JS");return this.clerkjs=n,this.premountMethodCalls.forEach(a=>a()),this.premountAddListenerCalls.forEach((a,o)=>{a.handlers.nativeUnsubscribe=n.addListener(o,a.options)}),this.#s.internal.retrieveListeners("status")?.forEach(a=>{this.on("status",a,{notify:!0})}),this.preopenSignIn!==null&&n.openSignIn(this.preopenSignIn),this.preopenCheckout!==null&&n.__internal_openCheckout(this.preopenCheckout),this.preopenPlanDetails!==null&&n.__internal_openPlanDetails(this.preopenPlanDetails),this.preopenSubscriptionDetails!==null&&n.__internal_openSubscriptionDetails(this.preopenSubscriptionDetails),this.preopenSignUp!==null&&n.openSignUp(this.preopenSignUp),this.preopenUserProfile!==null&&n.openUserProfile(this.preopenUserProfile),this.preopenUserVerification!==null&&n.__internal_openReverification(this.preopenUserVerification),this.preopenOneTap!==null&&n.openGoogleOneTap(this.preopenOneTap),this.preopenOrganizationProfile!==null&&n.openOrganizationProfile(this.preopenOrganizationProfile),this.preopenInviteMembers!==null&&n.openInviteMembers(this.preopenInviteMembers),this.preopenCreateOrganization!==null&&n.openCreateOrganization(this.preopenCreateOrganization),this.preOpenWaitlist!==null&&n.openWaitlist(this.preOpenWaitlist),this.preopenEnableOrganizationsPrompt&&n.__internal_openEnableOrganizationsPrompt(this.preopenEnableOrganizationsPrompt),this.premountSignInNodes.forEach((a,o)=>{n.mountSignIn(o,a)}),this.premountSignUpNodes.forEach((a,o)=>{n.mountSignUp(o,a)}),this.premountUserProfileNodes.forEach((a,o)=>{n.mountUserProfile(o,a)}),this.premountUserAvatarNodes.forEach((a,o)=>{n.mountUserAvatar(o,a)}),this.premountUserButtonNodes.forEach((a,o)=>{n.mountUserButton(o,a)}),this.premountOrganizationListNodes.forEach((a,o)=>{n.mountOrganizationList(o,a)}),this.premountWaitlistNodes.forEach((a,o)=>{n.mountWaitlist(o,a)}),this.premountPricingTableNodes.forEach((a,o)=>{n.mountPricingTable(o,a)}),this.premountAPIKeysNodes.forEach((a,o)=>{n.mountAPIKeys(o,a)}),this.premountConfigureSSONodes.forEach((a,o)=>{n.__internal_mountConfigureSSO(o,a)}),typeof n.__internal_mountConfigureDirectorySync=="function"&&this.premountConfigureDirectorySyncNodes.forEach((a,o)=>{n.__internal_mountConfigureDirectorySync(o,a)}),this.premountOAuthConsentNodes.forEach((a,o)=>{n.__internal_mountOAuthConsent(o,a)}),typeof n.__internal_mountOAuthDeviceVerification=="function"&&this.premountOAuthDeviceVerificationNodes.forEach((a,o)=>{n.__internal_mountOAuthDeviceVerification(o,a)}),this.premountTaskChooseOrganizationNodes.forEach((a,o)=>{n.mountTaskChooseOrganization(o,a)}),this.premountTaskResetPasswordNodes.forEach((a,o)=>{n.mountTaskResetPassword(o,a)}),this.premountTaskSetupMFANodes.forEach((a,o)=>{n.mountTaskSetupMFA(o,a)}),typeof this.clerkjs.status>"u"&&this.#s.emit(to.Status,"ready"),this.emitLoaded(),this.clerkjs},this.__experimental_checkout=(...n)=>this.loaded&&this.clerkjs?this.clerkjs.__experimental_checkout(...n):this.#a.checkoutSignal(...n),this.__internal_updateProps=async n=>{const a=await this.#o();if(a&&"__internal_updateProps"in a)return a.__internal_updateProps(n)},this.setActive=n=>this.clerkjs?this.clerkjs.setActive(n):Promise.reject(),this.openSignIn=n=>{this.clerkjs&&this.loaded?this.clerkjs.openSignIn(n):this.preopenSignIn=n},this.closeSignIn=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignIn():this.preopenSignIn=null},this.__internal_openCheckout=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openCheckout(n):this.preopenCheckout=n},this.__internal_closeCheckout=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeCheckout():this.preopenCheckout=null},this.__internal_openPlanDetails=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openPlanDetails(n):this.preopenPlanDetails=n},this.__internal_closePlanDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closePlanDetails():this.preopenPlanDetails=null}
92,this.__internal_openSubscriptionDetails=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openSubscriptionDetails(n):this.preopenSubscriptionDetails=n??null},this.__internal_closeSubscriptionDetails=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeSubscriptionDetails():this.preopenSubscriptionDetails=null},this.__internal_openReverification=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openReverification(n):this.preopenUserVerification=n},this.__internal_closeReverification=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeReverification():this.preopenUserVerification=null},this.__internal_openEnableOrganizationsPrompt=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_openEnableOrganizationsPrompt(n):this.preopenEnableOrganizationsPrompt=n},this.__internal_closeEnableOrganizationsPrompt=()=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_closeEnableOrganizationsPrompt():this.preopenEnableOrganizationsPrompt=null},this.openGoogleOneTap=n=>{this.clerkjs&&this.loaded?this.clerkjs.openGoogleOneTap(n):this.preopenOneTap=n},this.closeGoogleOneTap=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeGoogleOneTap():this.preopenOneTap=null},this.openUserProfile=n=>{this.clerkjs&&this.loaded?this.clerkjs.openUserProfile(n):this.preopenUserProfile=n},this.closeUserProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeUserProfile():this.preopenUserProfile=null},this.openOrganizationProfile=n=>{this.clerkjs&&this.loaded?this.clerkjs.openOrganizationProfile(n):this.preopenOrganizationProfile=n},this.closeOrganizationProfile=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeOrganizationProfile():this.preopenOrganizationProfile=null},this.openInviteMembers=n=>{this.clerkjs&&this.loaded?this.clerkjs.openInviteMembers(n):this.preopenInviteMembers=n},this.closeInviteMembers=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeInviteMembers():this.preopenInviteMembers=null},this.openCreateOrganization=n=>{this.clerkjs&&this.loaded?this.clerkjs.openCreateOrganization(n):this.preopenCreateOrganization=n},this.closeCreateOrganization=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeCreateOrganization():this.preopenCreateOrganization=null},this.openWaitlist=n=>{this.clerkjs&&this.loaded?this.clerkjs.openWaitlist(n):this.preOpenWaitlist=n},this.closeWaitlist=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeWaitlist():this.preOpenWaitlist=null},this.openSignUp=n=>{this.clerkjs&&this.loaded?this.clerkjs.openSignUp(n):this.preopenSignUp=n},this.closeSignUp=()=>{this.clerkjs&&this.loaded?this.clerkjs.closeSignUp():this.preopenSignUp=null},this.mountSignIn=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignIn(n,a):this.premountSignInNodes.set(n,a)},this.unmountSignIn=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignIn(n):this.premountSignInNodes.delete(n)},this.mountSignUp=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountSignUp(n,a):this.premountSignUpNodes.set(n,a)},this.unmountSignUp=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountSignUp(n):this.premountSignUpNodes.delete(n)},this.mountUserAvatar=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserAvatar(n,a):this.premountUserAvatarNodes.set(n,a)},this.unmountUserAvatar=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserAvatar(n):this.premountUserAvatarNodes.delete(n)},this.mountUserProfile=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserProfile(n,a):this.premountUserProfileNodes.set(n,a)},this.unmountUserProfile=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserProfile(n):this.premountUserProfileNodes.delete(n)},this.mountOrganizationProfile=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationProfile(n,a):this.premountOrganizationProfileNodes.set(n,a)},this.unmountOrganizationProfile=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationProfile(n):this.premountOrganizationProfileNodes.delete(n)},this.mountCreateOrganization=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountCreateOrganization(n,a):this.premountCreateOrganizationNodes.set(n,a)},this.unmountCreateOrganization=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountCreateOrganization(n):this.premountCreateOrganizationNodes.delete(n)},this.mountOrganizationSwitcher=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationSwitcher(n,a):this.premountOrganizationSwitcherNodes.set(n,a)},this.unmountOrganizationSwitcher=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationSwitcher(n):this.premountOrganizationSwitcherNodes.delete(n)},this.__experimental_prefetchOrganizationSwitcher=()=>{const n=()=>this.clerkjs?.__experimental_prefetchOrganizationSwitcher();this.clerkjs&&this.loaded?n():this.premountMethodCalls.set("__experimental_prefetchOrganizationSwitcher",n)},this.mountOrganizationList=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountOrganizationList(n,a):this.premountOrganizationListNodes.set(n,a)},this.unmountOrganizationList=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountOrganizationList(n):this.premountOrganizationListNodes.delete(n)},this.mountUserButton=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountUserButton(n,a):this.premountUserButtonNodes.set(n,a)},this.unmountUserButton=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountUserButton(n):this.premountUserButtonNodes.delete(n)},this.mountWaitlist=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountWaitlist(n,a):this.premountWaitlistNodes.set(n,a)},this.unmountWaitlist=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountWaitlist(n):this.premountWaitlistNodes.delete(n)},this.mountPricingTable=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountPricingTable(n,a):this.premountPricingTableNodes.set(n,a)},this.unmountPricingTable=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountPricingTable(n):this.premountPricingTableNodes.delete(n)},this.mountAPIKeys=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountAPIKeys(n,a):this.premountAPIKeysNodes.set(n,a)},this.unmountAPIKeys=n=>
92{this.clerkjs&&this.loaded?this.clerkjs.unmountAPIKeys(n):this.premountAPIKeysNodes.delete(n)},this.__internal_mountConfigureSSO=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountConfigureSSO(n,a):this.premountConfigureSSONodes.set(n,a)},this.__internal_unmountConfigureSSO=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountConfigureSSO(n):this.premountConfigureSSONodes.delete(n)},this.__internal_mountConfigureDirectorySync=(n,a)=>{this.clerkjs&&this.loaded?typeof this.clerkjs.__internal_mountConfigureDirectorySync=="function"&&this.clerkjs.__internal_mountConfigureDirectorySync(n,a):this.premountConfigureDirectorySyncNodes.set(n,a)},this.__internal_unmountConfigureDirectorySync=n=>{this.clerkjs&&this.loaded&&typeof this.clerkjs.__internal_unmountConfigureDirectorySync=="function"&&this.clerkjs.__internal_unmountConfigureDirectorySync(n),this.premountConfigureDirectorySyncNodes.delete(n)},this.__internal_mountOAuthConsent=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_mountOAuthConsent(n,a):this.premountOAuthConsentNodes.set(n,a)},this.__internal_unmountOAuthConsent=n=>{this.clerkjs&&this.loaded?this.clerkjs.__internal_unmountOAuthConsent(n):this.premountOAuthConsentNodes.delete(n)},this.mountOAuthConsent=(n,a)=>{this.__internal_mountOAuthConsent(n,a)},this.unmountOAuthConsent=n=>{this.__internal_unmountOAuthConsent(n)},this.__internal_mountOAuthDeviceVerification=(n,a)=>{this.clerkjs&&this.loaded?typeof this.clerkjs.__internal_mountOAuthDeviceVerification=="function"&&this.clerkjs.__internal_mountOAuthDeviceVerification(n,a):this.premountOAuthDeviceVerificationNodes.set(n,a)},this.__internal_unmountOAuthDeviceVerification=n=>{this.clerkjs&&this.loaded&&typeof this.clerkjs.__internal_unmountOAuthDeviceVerification=="function"&&this.clerkjs.__internal_unmountOAuthDeviceVerification(n),this.premountOAuthDeviceVerificationNodes.delete(n)},this.mountTaskChooseOrganization=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskChooseOrganization(n,a):this.premountTaskChooseOrganizationNodes.set(n,a)},this.unmountTaskChooseOrganization=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskChooseOrganization(n):this.premountTaskChooseOrganizationNodes.delete(n)},this.mountTaskResetPassword=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskResetPassword(n,a):this.premountTaskResetPasswordNodes.set(n,a)},this.unmountTaskResetPassword=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskResetPassword(n):this.premountTaskResetPasswordNodes.delete(n)},this.mountTaskSetupMFA=(n,a)=>{this.clerkjs&&this.loaded?this.clerkjs.mountTaskSetupMFA(n,a):this.premountTaskSetupMFANodes.set(n,a)},this.unmountTaskSetupMFA=n=>{this.clerkjs&&this.loaded?this.clerkjs.unmountTaskSetupMFA(n):this.premountTaskSetupMFANodes.delete(n)},this.addListener=(n,a)=>{if(this.clerkjs)return this.clerkjs.addListener(n,a);{const o=()=>{const l=this.premountAddListenerCalls.get(n);l?.handlers&&(l?.handlers.nativeUnsubscribe?.(),this.premountAddListenerCalls.delete(n))};return this.premountAddListenerCalls.set(n,{options:a,handlers:{unsubscribe:o,nativeUnsubscribe:void 0}}),o}},this.navigate=n=>{const a=()=>this.clerkjs?.navigate(n);this.clerkjs&&this.loaded?a():this.premountMethodCalls.set("navigate",a)},this.redirectWithAuth=async(...n)=>{const a=()=>this.clerkjs?.redirectWithAuth(...n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("redirectWithAuth",a)},this.redirectToSignIn=async n=>{const a=()=>this.clerkjs?.redirectToSignIn(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("redirectToSignIn",a)},this.redirectToSignUp=async n=>{const a=()=>this.clerkjs?.redirectToSignUp(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("redirectToSignUp",a)},this.redirectToUserProfile=async()=>{const n=()=>this.clerkjs?.redirectToUserProfile();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToUserProfile",n)},this.redirectToAfterSignUp=()=>{const n=()=>this.clerkjs?.redirectToAfterSignUp();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToAfterSignUp",n)},this.redirectToAfterSignIn=()=>{const n=()=>this.clerkjs?.redirectToAfterSignIn();this.clerkjs&&this.loaded?n():this.premountMethodCalls.set("redirectToAfterSignIn",n)},this.redirectToAfterSignOut=()=>{const n=()=>this.clerkjs?.redirectToAfterSignOut();this.clerkjs&&this.loaded?n():this.premountMethodCalls.set("redirectToAfterSignOut",n)},this.redirectToOrganizationProfile=async()=>{const n=()=>this.clerkjs?.redirectToOrganizationProfile();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToOrganizationProfile",n)},this.redirectToCreateOrganization=async()=>{const n=()=>this.clerkjs?.redirectToCreateOrganization();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToCreateOrganization",n)},this.redirectToWaitlist=async()=>{const n=()=>this.clerkjs?.redirectToWaitlist();if(this.clerkjs&&this.loaded)return n();this.premountMethodCalls.set("redirectToWaitlist",n)},this.redirectToTasks=async n=>{const a=()=>this.clerkjs?.redirectToTasks(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("redirectToTasks",a)},this.handleRedirectCallback=async n=>{const a=()=>this.clerkjs?.handleRedirectCallback(n);this.clerkjs&&this.loaded?a()?.catch(()=>{}):this.premountMethodCalls.set("handleRedirectCallback",a)},this.__internal_resolvePendingProtectCheck=async n=>{await this.clerkjs?.__internal_resolvePendingProtectCheck?.(n)},this.__internal_resumeAfterProtectCheck=async(n,a)=>{const o=()=>{const l=this.clerkjs;typeof l?.__internal_resumeAfterProtectCheck=="function"&&l.__internal_resumeAfterProtectCheck(n,a)?.catch(()=>{})};this.clerkjs&&this.loaded?o():this.premountMethodCalls.set("__internal_resumeAfterProtectCheck",o)},this.handleGoogleOneTapCallback=async(n,a)=>{const o=()=>this.clerkjs?.handleGoogleOneTapCallback(n,a);this.clerkjs&&this.loaded?o()?.catch(()=>{}):this.premountMethodCalls.set("handleGoogleOneTapCallback",o)},this.__internal_handleResourceCallback=async(n,a,o)=>{const l=()=>this.clerkjs?.__internal_handleResourceCallback(n,a,o);if(this.clerkjs&&this.loaded)return l();this.premountMethodCalls.set("__internal_handleResourceCallback",l)},this.handleEmailLinkVerification=async n=>{const a=()=>this.clerkjs?.handleEmailLinkVerification(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("handleEmailLinkVerification",a)},this.authenticateWithMetamask=async n=>{const a=()=>this.clerkjs?.authenticateWithMetamask(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("authenticateWithMetamask",a)},this.authenticateWithCoinbaseWallet=async n=>{const a=()=>this.clerkjs?.authenticateWithCoinbaseWallet(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("authenticateWithCoinbaseWallet",a)},this.authenticateWithBase=async n=>{const a=()=>this.clerkjs?.authenticateWithBase(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("authenticateWithBase",a)},this.authenticateWithOKXWallet=async n=>{const a=()=>this.clerkjs?.authenticateWithOKXWallet(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("authenticateWithOKXWallet",a)},this.authenticateWithSolana=async n=>{const a=()=>this.clerkjs?.authenticateWithSolana(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("authenticateWithSolana",a)},this.authenticateWithWeb3=async n=>{const a=()=>this.clerkjs?.authenticateWithWeb3(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("authenticateWithWeb3",a)},this.authenticateWithGoogleOneTap=async n=>(await this.#o()).authenticateWithGoogleOneTap(n),this.__internal_loadStripeJs=async()=>(await this.#o()).__internal_loadStripeJs(),this.createOrganization=async n=>{const a=()=>this.clerkjs?.createOrganization(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("createOrganization",a)},this.getOrganization=async n=>{const a=()=>this.clerkjs?.getOrganization(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("getOrganization",a)},this.joinWaitlist=async n=>{const a=()=>
92this.clerkjs?.joinWaitlist(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("joinWaitlist",a)},this.signOut=async(...n)=>{const a=()=>this.clerkjs?.signOut(...n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("signOut",a)},this.__internal_attemptToEnableEnvironmentSetting=n=>{const a=()=>this.clerkjs?.__internal_attemptToEnableEnvironmentSetting(n);if(this.clerkjs&&this.loaded)return a();this.premountMethodCalls.set("__internal_attemptToEnableEnvironmentSetting",a)},this.#r=t?.publishableKey,this.#n=t?.proxyUrl,this.#t=t?.domain,this.options=t,this.Clerk=t?.Clerk||null,this.mode=uo()?"browser":"server",this.#a=new jz(this),this.options.sdkMetadata||(this.options.sdkMetadata=Nz),this.#s.emit(to.Status,"loading"),this.#s.prioritizedOn(to.Status,n=>this.#e=n),this.#r&&this.options.experimental?.runtimeEnvironment==="headless"&&this.options.Clerk?this.loadHeadlessClerk():this.#r&&this.getEntryChunks()}loadHeadlessClerk(){const t=Z1(this.options.Clerk)?new this.options.Clerk(this.#r,{proxyUrl:this.proxyUrl,domain:this.domain}):this.options.Clerk;if(!t){this.#s.emit(to.Status,"error");return}const n=()=>{this.replayInterceptedInvocations(t)};t.loaded?n():t.load(this.options).then(()=>n()).catch(a=>{this.#s.emit(to.Status,"error"),this.emitLoaded()})}get sdkMetadata(){return this.clerkjs?.sdkMetadata||this.options.sdkMetadata||void 0}get instanceType(){return this.clerkjs?.instanceType}get frontendApi(){return this.clerkjs?.frontendApi||""}get isStandardBrowser(){return this.clerkjs?.isStandardBrowser||this.options.standardBrowser||!1}get isSatellite(){return typeof window<"u"&&window.location?Np(this.options.isSatellite,new URL(window.location.href),!1):typeof this.options.isSatellite=="function"?ps.throw(kp):!1}#o(){return new Promise(t=>{this.addOnLoaded(()=>t(this.clerkjs))})}async getEntryChunks(){if(!(this.mode!=="browser"||this.loaded)){typeof window<"u"&&(window.__clerk_publishable_key=this.#r,window.__clerk_proxy_url=this.proxyUrl,window.__clerk_domain=this.domain);try{const t=await this.getClerkJsEntryChunk();if(!t.loaded){this.beforeLoad(t);const n=this.options.standardBrowser!==!1&&!this.options.Clerk||this.options.ui?.ClerkUI?await this.getClerkUIEntryChunk():void 0;await t.load({...this.options,ui:{...this.options.ui,ClerkUI:n}})}t.loaded&&this.replayInterceptedInvocations(t)}catch(t){const n=t;this.#s.emit(to.Status,"error"),console.error(n.stack||n.message||n);return}}}async getClerkJsEntryChunk(){if((!this.options.Clerk||this.options.__internal_clerkJSUrl)&&!__BUILD_DISABLE_RHC__&&await lz({...this.options,publishableKey:this.#r,proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),this.options.Clerk&&!this.options.__internal_clerkJSUrl&&(globalThis.Clerk=Z1(this.options.Clerk)?new this.options.Clerk(this.#r,{proxyUrl:this.proxyUrl,domain:this.domain}):this.options.Clerk),!globalThis.Clerk)throw new Error("Failed to download latest ClerkJS. Contact [email protected].");return globalThis.Clerk}async getClerkUIEntryChunk(){const t=this.options.ui,n=!!this.options.__internal_clerkUIUrl;if(t?.ClerkUI&&!n)return t.ClerkUI;if(!((t||this.options.prefetchUI===!1)&&!n)&&!__BUILD_DISABLE_RHC__){if(await cz({...this.options,publishableKey:this.#r,proxyUrl:this.proxyUrl,domain:this.domain,nonce:this.options.nonce}),!globalThis.__internal_ClerkUICtor)throw new Error("Failed to download latest Clerk UI. Contact [email protected].");return globalThis.__internal_ClerkUICtor}}get version(){return this.clerkjs?.version}get uiVersion(){return this.clerkjs?.uiVersion}get client(){if(this.clerkjs)return this.clerkjs.client}get session(){if(this.clerkjs)return this.clerkjs.session}get user(){if(this.clerkjs)return this.clerkjs.user}get organization(){if(this.clerkjs)return this.clerkjs.organization}get telemetry(){if(this.clerkjs)return this.clerkjs.telemetry}get __internal_environment(){if(this.clerkjs)return this.clerkjs.__internal_environment}get isSignedIn(){return this.clerkjs?this.clerkjs.isSignedIn:!1}get billing(){return this.clerkjs?.billing}get __internal_state(){return this.loaded&&this.clerkjs?this.clerkjs.__internal_state:this.#a}get apiKeys(){return this.clerkjs?.apiKeys}get oauthApplication(){return this.clerkjs?.oauthApplication}__internal_setEnvironment(...t){if(this.clerkjs&&"__internal_setEnvironment"in this.clerkjs)this.clerkjs.__internal_setEnvironment(t);else return}get __internal_lastEmittedResources(){return this.clerkjs?.__internal_lastEmittedResources}get __internal_hasOAuthTransport(){return this.clerkjs?.__internal_hasOAuthTransport||!1}get __internal_oauthTransport(){return this.clerkjs?.__internal_oauthTransport||null}};function kz(){try{return _z(I.version,[[18,0,-1,0],[19,0,0,3],[19,1,1,4],[19,2,2,3],[19,3,3,0]])}catch{return!1}}const Az=kz();function Oz(e){const{initialState:t,children:n,...a}=e,{isomorphicClerk:o,clerkStatus:l}=Mz(A6(a));return I.createElement(n6,{initialState:t,clerk:o,clerkStatus:l},n)}function Rz(e){return I.useContext(Qy)&&ps.throw(d6),I.createElement(Oz,e)}const gT=Rz;gT.displayName="ClerkProvider";const Pz=Az?"shared":"",Mz=e=>{const t=I.useMemo(()=>({clerkUIVariant:Pz,...e}),[e]),n=I.useRef(oS.getOrCreateInstance(t)),[a,o]=I.useState(n.current.status);return I.useEffect(()=>{n.current.__internal_updateProps({appearance:e.appearance})},[e.appearance]),I.useEffect(()=>{n.current.__internal_updateProps({options:e})},[e.localization]),I.useEffect(()=>(n.current.on("status",o),()=>{n.current&&n.current.off("status",o),oS.clearInstance()}),[]),{isomorphicClerk:n.current,clerkStatus:a}};typeof window<"u"&&!window.global&&(window.global=typeof global>"u"?window:global);if(globalThis.__clerkSharedModules){const e=globalThis.__clerkSharedModules.react?.ver
92sion;e&&e!==v.version&&console.warn(`[@clerk/ui/register] React version mismatch detected. Already registered: ${e}, current import: ${v.version}. This may cause issues with the shared @clerk/ui variant.`)}else globalThis.__clerkSharedModules={react:ca,"react-dom":GO,"react-dom/client":aA,"react/jsx-runtime":Wk};ht(({clerk:e,children:t,...n})=>{const{appearance:a,getContainer:o,component:l,...d}=n;t=_c(t,"Invite members");const h=Sc(t)("InviteMembersButton"),m=()=>e.openInviteMembers({appearance:a,getContainer:o}),y={...d,onClick:async x=>(h&&typeof h=="object"&&"props"in h&&await Cc(h.props.onClick)(x),m())};return I.cloneElement(h,y)},{component:"InviteMembersButton",renderWhileLoading:!0});ht(({clerk:e,children:t,...n})=>{const{appearance:a,getContainer:o,component:l,signUpFallbackRedirectUrl:d,forceRedirectUrl:h,fallbackRedirectUrl:m,signUpForceRedirectUrl:g,mode:y,initialValues:x,withSignUp:b,oauthFlow:C,...E}=n;t=_c(t,"Sign in");const w=Sc(t)("SignInButton"),_=()=>{const k={forceRedirectUrl:h,fallbackRedirectUrl:m,signUpFallbackRedirectUrl:d,signUpForceRedirectUrl:g,initialValues:x,withSignUp:b,oauthFlow:C};return y==="modal"?e.openSignIn({...k,appearance:a,getContainer:o}):e.redirectToSignIn({...k,signInFallbackRedirectUrl:m,signInForceRedirectUrl:h})},A={...E,onClick:async k=>(w&&typeof w=="object"&&"props"in w&&await Cc(w.props.onClick)(k),_())};return I.cloneElement(w,A)},{component:"SignInButton",renderWhileLoading:!0});ht(({clerk:e,children:t,...n})=>{const{redirectUrl:a,getContainer:o,component:l,...d}=n;t=_c(t,"Sign in with Metamask");const h=Sc(t)("SignInWithMetamaskButton"),m=async()=>{async function x(){await e.authenticateWithMetamask({redirectUrl:a||void 0})}x()},y={...d,onClick:async x=>(await Cc(h.props.onClick)(x),m())};return I.cloneElement(h,y)},{component:"SignInWithMetamask",renderWhileLoading:!0});ht(({clerk:e,children:t,...n})=>{const{redirectUrl:a="/",sessionId:o,signOutOptions:l,getContainer:d,component:h,...m}=n;l&&kf("SignOutButton `signOutOptions`","Use the `redirectUrl` and `sessionId` props directly instead."),t=_c(t,"Sign out");const g=Sc(t)("SignOutButton"),y=()=>e.signOut({redirectUrl:a,...o!==void 0&&{sessionId:o},...l}),b={...m,onClick:async C=>(await Cc(g.props.onClick)(C),y())};return I.cloneElement(g,b)},{component:"SignOutButton",renderWhileLoading:!0});ht(({clerk:e,children:t,...n})=>{const{appearance:a,unsafeMetadata:o,getContainer:l,component:d,fallbackRedirectUrl:h,forceRedirectUrl:m,signInFallbackRedirectUrl:g,signInForceRedirectUrl:y,mode:x,initialValues:b,oauthFlow:C,...E}=n;t=_c(t,"Sign up");const w=Sc(t)("SignUpButton"),_=()=>{const k={fallbackRedirectUrl:h,forceRedirectUrl:m,signInFallbackRedirectUrl:g,signInForceRedirectUrl:y,initialValues:b,oauthFlow:C};return x==="modal"?e.openSignUp({...k,appearance:a,unsafeMetadata:o,getContainer:l}):e.redirectToSignUp({...k,signUpFallbackRedirectUrl:h,signUpForceRedirectUrl:m})},A={...E,onClick:async k=>(w&&typeof w=="object"&&"props"in w&&await Cc(w.props.onClick)(k),_())};return I.cloneElement(w,A)},{component:"SignUpButton",renderWhileLoading:!0});u6({packageName:"@clerk/react"});mz("@clerk/react");
92class ld extends Error{constructor(t){super("We couldn't finish connecting your signed-in account."),this.reason=t,this.name="AccountSessionError"}reason}function Gr(){const{isLoaded:e,isSignedIn:t,userId:n}=K6(),{signOut:a}=q2(),{data:o,error:l,isLoading:d,isFetching:h,refetch:m}=Vn({queryKey:["/api/auth/user",n],queryFn:async()=>{const x=await fetch("/api/auth/user",{credentials:"include"});if(x.status===401||x.status===503){const C=await x.json().catch(()=>({}));throw new ld(typeof C?.reason=="string"?C.reason:"UNAUTHORIZED")}if(!x.ok)throw new Error(`${x.status}: ${x.statusText}`);const b=await x.json();if(!b||typeof b!="object"||typeof b.id!="string"||b.id.trim().length===0)throw new ld("INVALID_ACCOUNT_RESPONSE");return b},enabled:e&&!!t,retry:x=>x<2,retryDelay:x=>Math.min(500*2**x,2e3),staleTime:1e3*60*5}),g=!e||!!t&&d,y=!!o&&(!o.firstName||!o.lastName||!o.phone);return{user:t?o??null:null,isLoading:g,isAuthenticated:e&&!!t&&!!o,accountSessionError:t&&l?l instanceof ld?l:new ld("ACCOUNT_REQUEST_FAILED"):null,retryAccountSession:()=>m(),isRetryingAccountSession:h,needsProfileCompletion:y,logout:()=>a({redirectUrl:"/"}),isLoggingOut:!1}}function Af(){const{isAuthenticated:e,isLoading:t}=Gr(),{data:n,isLoading:a}=Vn({queryKey:["/api/auth/admin"],enabled:e,retry:!1,staleTime:1e3*60*5});return{isAdmin:e&&(n?.isAdmin??!1),isLoading:t||(e?a:!1)}}const lS=[{href:"/free-price-check",label:"Free Price Check",description:"Get your Airstream's market value",icon:Td},{href:"/consultations",label:"Free Consultations",description:"Book a free buyer or seller call",icon:cM},{href:"/guided-sale",label:"Guided Sale",description:"Full-service selling with expert support",icon:bg},{href:"/my-airstream-feature",label:"My Airstream",description:"Your personal ownership hub",icon:yg},{href:"/community",label:"Share",description:"Join our Community",icon:Nd},{href:"/blog",label:"Blog",description:"Guides, tips & Airstream insights",icon:oP},{href:"/reviews",label:"Reviews",description:"See what our customers say",icon:tf},{href:"/about",label:"About",description:"Learn about Airstream Hunter",icon:Nd},{href:"/contact",label:"Contact",description:"Get in touch with us",icon:wy}];function Dz(){const[e]=da(),[t,n]=v.useState(!1),{user:a,isLoading:o,isAuthenticated:l,logout:d}=Gr(),{isAdmin:h}=Af(),{data:m}=Vn({queryKey:["/api/messages/unread-count"],enabled:l,refetchInterval:3e4}),{data:g}=Vn({queryKey:["/api/broadcasts/unread-count"],enabled:l,refetchInterval:3e4}),y=(m?.count||0)+(g?.count||0),x=(b,C,E)=>b&&C?`${b[0]}${C[0]}`.toUpperCase():b?b[0].toUpperCase():E?E[0].toUpperCase():"U";return u.jsx("header",{className:"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsxs("div",{className:"flex h-16 items-center justify-between gap-4",children:[u.jsxs(ze,{href:"/",className:"flex items-center gap-2","data-testid":"link-home",children:[u.jsx("img",{src:"/favicon.png",alt:"Airstream Hunter",className:"h-10 w-10 shrink-0"}),u.jsx("span",{className:"font-semibold text-sm sm:text-base hidden sm:inline",children:"Airstream Hunter"})]}),u.jsxs("nav",{className:"hidden lg:flex items-center gap-2","data-testid":"nav-main",children:[u.jsx(ze,{href:"/airstreams-for-sale",children:u.jsxs(Te,{variant:"outline",className:"text-sm font-medium border-primary text-primary hover:bg-primary hover:text-primary-foreground","data-testid":"link-nav-showroom",children:[u.jsx(Td,{className:"mr-2 h-4 w-4"}),"Showroom"]})}),u.jsx(ze,{href:"/sell-your-airstream",children:u.jsxs(Te,{variant:"outline",className:"text-sm font-medium border-primary text-primary hover:bg-primary hover:text-primary-foreground","data-testid":"link-nav-sell-your-airstream",children:[u.jsx(yg,{className:"mr-2 h-4 w-4"}),"Sell Your Airstream"]})}),u.jsxs(Md,{children:[u.jsx(Dd,{asChild:!0,children:u.jsxs(Te,{variant:"outline",className:"text-sm font-medium border-primary text-primary hover:bg-primary hover:text-primary-foreground","data-testid":"link-nav-services",children:[u.jsx(bg,{className:"mr-2 h-4 w-4"}),"Our Services",u.jsx(ef,{className:"ml-1 h-4 w-4"})]})}),u.jsx(oc,{align:"start",className:"w-64",children:lS.map(b=>u.jsx(ze,{href:b.href,children:u.jsxs($t,{"data-testid":`link-nav-${b.label.toLowerCase().replace(/\s+/g,"-")}`,className:"py-3",children:[u.jsx(b.icon,{className:"mr-3 h-5 w-5 text-primary"}),u.jsxs("div",{children:[u.jsx("div",{className:"font-medium",children:b.label}),u.jsx("div",{className:"text-xs text-muted-foreground",children:b.description})]})]})},b.href))})]}),u.jsx(ze,{href:l?"/my-airstream":"/get-started?redirect=/my-airstream",children:u.jsxs(Te,{variant:"default",className:"text-sm font-medium","data-testid":"link-nav-my-account",children:[u.jsx(Hl,{className:"mr-2 h-4 w-4"}),"My Account"]})}),h&&u.jsx(ze,{href:"/admin",children:u.jsxs(Te,{variant:"outline",className:"text-sm font-medium border-primary text-primary hover:bg-primary hover:text-primary-foreground","data-testid":"link-nav-admin",children:[u.jsx(dp,{className:"mr-2 h-4 w-4"}),"Admin"]})})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(C3,{}),l&&u.jsx(ze,{href:"/messages",children:u.jsxs(Te,{variant:"ghost",size:"icon",className:"relative","data-testid":"button-messages-header",children:[u.jsx(wy,{className:"h-5 w-5"}),y>0&&u.jsx(kt,{variant:"destructive",className:"absolute -top-1 -right-1 h-5 min-w-5 px-1 text-xs flex items-center justify-center",children:y>99?"99+":y})]})}),!o&&(l?u.jsxs(Md,{children:[u.jsx(Dd,{asChild:!0,children:u.jsx(Te,{variant:"ghost",size:"icon","data-testid":"button-user-menu",children:u.jsxs(O2,{className:"h-8 w-8",children:[u.jsx(R2,{src:a?.profileImageUrl||void 0,alt:a?.firstName||"User"}),u.jsx(P2,{className:"text-xs",children:x(a?.firstName,a?.lastName,a?.email)})]})})}),u.jsxs(oc,{align:"end",className:"w-48",children:[u.jsx(ze,{href:"/my-airstream",children:u.jsxs($t,{"data-testid":"link-my-account",children:[u.jsx(Hl,{className:"mr-2 h-4 w-4"}),"My Account"]})}),h&&u.jsx(ze,{href:"/admin",children:u.jsxs($t,{"data-testid":"link-admin",children:[u.jsx(dp,{className:"mr-2 h-4 w-4"}),"Admin"]})}),u.jsx(bo,{}),u.jsxs($t,{onClick:()=>d(),"data-testid":"button-logout",children:[u.jsx(c1,{className:"mr-2 h-4 w-4"}),"Sign Out"]})]})]}):u.jsx(ze,{href:"/get-started","data-testid":"button-login",children:u.jsxs(Te,{variant:"outline",size:"sm",children:[u.jsx(l1,{className:"mr-2 h-4 w-4"}),"Create Account / Login"]})})),u.jsxs(C5,{open:t,onOpenChange:n,children:[u.jsx(E5,{asChild:!0,className:"lg:hidden",children:u.jsxs(Te,{variant:"ghost",size:"icon","data-testid":"button-mobile-menu",children:[u.jsx(tM,{className:"h-5 w-5"}),u.jsx("span",{className:"sr-only",children:"Open menu"})]})}),u.jsx(BE,{side:"right",className:"w-80",children:u.jsxs("div",{className:"flex flex-col gap-6 pt-6",children:[u.jsx(Qs,{asChild:!0,children:u.jsxs(ze,{href:"/",className:"flex items-center gap-2 px-4","data-testid":"link-mobile-home",children:[u.jsx(NC,{className:"h-5 w-5 text-primary shrink-0"}),u.jsx("span",{className:"font-semibold text-base",children:"Airstream Hunter"})]})}),u.jsxs("nav",{className:"flex flex-col gap-2",children:[u.jsx(Qs,{asChild:!0,children:u.jsx(ze,{href:"/airstreams-for-sale",children:u.jsxs(Te,{variant:"outline",className:"w-full justify-start text-base border-primary text-primary","data-testid":"link-mobile-showroom",children:[u.jsx(Td,{className:"mr-2 h-5 w-5"}),"Showroom"]})})}),u.jsx(Qs,{asChild:!0,children:u.jsx(ze,{href:"/sell-your-airstream",children:u.jsxs(Te,{variant:"outline",className:"w-full justify-start text-base border-primary text-primary","data-testid":"link-mobile-sell-your-airstream",children:[u.jsx(yg,{className:"mr-2 h-5 w-5"}),"Sell Your Airstream"]})})}),u.jsxs("div",{className:"py-2",children:[u.jsxs("p",{className:"text-sm font-medium text-muted-foreground px-4 mb-2 flex items-center gap-2",children:[u.jsx(bg,{className:"h-4 w-4"}),"Our Services"]}),lS.map(b=>u.jsx(Qs,{asChild:!0,children:u.jsx(ze,{href:b.href,children:u.jsxs(Te,{variant:e===b.href?"secondary":"ghost",className:"w-full justify-start text-base h-auto py-3","data-testid":`link-mobile-${b.label.toLowerCase().replace(/\s+/g,"-")}`,children:[u.jsx(b.icon,{className:"mr-3 h-5 w-5 text-primary"}),u.jsxs("div",{className:"text-left",children:[u.jsx("div",{className:"font-medium",children:b.label}),u.jsx("div",{className:"text-xs text-muted-foreground font-normal",children:b.description})]})]})})},b.href))]}),u.jsx(Qs,{asChild:!0,children:u.jsx(ze,{href:l?"/my-airstream":"/get-started?redirect=/my-airstream",children:u.jsxs(Te,{variant:"default",className:"w-full justify-start text-base mt-2","data-testid":"link-mobile-my-account-nav",children:[u.jsx(Hl,{className:"mr-2 h-5 w-5"}),"My Account"]})})})]}),u.jsx("div",{className:"border-t pt-4 flex flex-col gap-2",children:!o&&(l?u.jsxs(u.Fragment,{children:[u.jsx(Qs,{asChild:!0,children:u.jsx(ze,{href:"/my-airstream",children:u.jsxs(Te,{variant:"ghost",className:"w-full justify-start text-base","data-testid":"link-mobile-my-account",children:[u.jsx(Hl,{className:"mr-2 h-5 w-5"}),"My Account"]})})}),h&&u.jsx(Qs,{asChild:!0,children:u.jsx(ze,{href:"/admin",children:u.jsxs(Te,{variant:"ghost",className:"w-full justify-start text-base","data-testid":"link-mobile-admin",children:[u.jsx(dp,{className:"mr-2 h-5 w-5"}),"Admin"]})})}),u.jsxs(Te,{variant:"ghost",className:"w-full justify-start text-base text-destructive",onClick:()=>d(),"data-testid":"button-mobile-logout",children:[u.jsx(c1,{className:"mr-2 h-5 w-5"}),"Sign Out"]})]}):u.jsx(Qs,{asChild:!0,children:u.jsx(ze,{href:"/get-started",children:u.jsxs(Te,{variant:"default",className:"w-full justify-start text-base","data-testid":"button-mobile-login",children:[u.jsx(l1,{className:"mr-2 h-5 w-5"}),"Create Account / Login"]})})}))})]})})]})]})]})})})}const Iz="/assets/MEMBER_SEAL_2025-26_1772472116669-CBCrKlye.png",Lz="/assets/Rvda_1772486297843-CfnM6-VK.webp";function zz(){return u.jsx("footer",{className:"bg-card border-t",children:u.jsxs("div",{className:"container mx-auto px-4 py-12 lg:py-16",children:[u.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8 lg:gap-12",children:[u.jsxs("div",{className:"space-y-4",children:[u.jsxs("h3",{className:"font-semibold text-base flex items-center gap-2",children:[u.jsx(wM,{className:"h-4 w-4 text-primary"}),"Buying"]}),u.jsxs("nav",{className:"flex flex-col gap-2",children:[u.jsx(ze,{href:"/free-price-check",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-pricing",children:"Free Price Check"}),u.jsx(ze,{href:"/consultations",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-consultation",children:"Free Buyer Consultation"}),u.jsx(ze,{href:"/airstreams-for-sale",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-shop",children:"Browse Showroom"}),u.jsx(ze,{href:"/get-started?redirect=/my-airstream",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-account",children:"My A
92ccount"})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsxs("h3",{className:"font-semibold text-base flex items-center gap-2",children:[u.jsx(Ba,{className:"h-4 w-4 text-primary"}),"Selling"]}),u.jsxs("nav",{className:"flex flex-col gap-2",children:[u.jsx(ze,{href:"/free-price-check",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-price-check",children:"Free Price Check"}),u.jsx(ze,{href:"/consultations",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-seller-consultation",children:"Free Seller Consultation"}),u.jsx(ze,{href:"/sell-your-airstream",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-sell",children:"Sell Your Airstream"}),u.jsx(ze,{href:"/get-started?redirect=/my-airstream",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-seller-account",children:"My Account"})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"font-semibold text-base",children:"Company"}),u.jsxs("nav",{className:"flex flex-col gap-2",children:[u.jsx(ze,{href:"/about",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-about",children:"About"}),u.jsx(ze,{href:"/reviews",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-reviews",children:"Reviews"}),u.jsx(ze,{href:"/blog",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-blog",children:"Blog"}),u.jsx(ze,{href:"/contact",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-contact",children:"Contact"})]})]}),u.jsxs("div",{className:"space-y-4",children:[u.jsx("h3",{className:"font-semibold text-base",children:"Community"}),u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx(ze,{href:"/community",className:"text-sm text-muted-foreground hover:text-foreground transition-colors","data-testid":"link-footer-community",children:"Join Community"}),u.jsxs("a",{href:"https://www.facebook.com/groups/airstreamhunter",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-foreground transition-colors flex items-center gap-2","data-testid":"link-facebook-hunter",children:[u.jsx(o1,{className:"h-4 w-4"}),"Airstream Hunter"]}),u.jsxs("a",{href:"https://www.facebook.com/groups/airstreamrestoration",target:"_blank",rel:"noopener noreferrer",className:"text-sm text-muted-foreground hover:text-foreground transition-colors flex items-center gap-2","data-testid":"link-facebook-restoration",children:[u.jsx(o1,{className:"h-4 w-4"}),"Airstream Restoration"]})]})]})]}),u.jsxs("div",{className:"border-t mt-12 pt-8 flex flex-col md:flex-row justify-between items-center gap-4",children:[u.jsxs("div",{className:"flex items-center gap-6",children:[u.jsx("a",{href:"https://www.asba.com",target:"_blank",rel:"noopener noreferrer","data-testid":"link-asba-badge",children:u.jsx("img",{src:Iz,alt:"Arizona Small Business Association Official Member 2025-2026",className:"h-16 w-auto"})}),u.jsx("a",{href:"https://www.rvda.org",target:"_blank",rel:"noopener noreferrer","data-testid":"link-rvda-badge",children:u.jsx("img",{src:Lz,alt:"RVDA - The National RV Dealers Association",className:"h-12 w-auto"})}),u.jsxs("div",{className:"text-sm text-muted-foreground text-center md:text-left",children:[u.jsxs("p",{children:["© ",new Date().getFullYear()," Airstream Hunter. All rights reserved."]}),u.jsx("p",{className:"text-xs mt-1",children:"Airstream Hunter is not endorsed by or affiliated with Airstream, Inc. or Thor Tech, Inc."})]})]}),u.jsxs("div",{className:"flex gap-6",children:[u.jsx(ze,{href:"/privacy#privacy",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Privacy Policy"}),u.jsx(ze,{href:"/privacy#terms",className:"text-sm text-muted-foreground hover:text-foreground transition-colors",children:"Terms of Service"})]})]})]})})}const fo=DE,Uz=IE,Vz=UE,yT=v.forwardRef(({className:e,...t},n)=>u.jsx(gf,{ref:n,className:Pe("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));
92yT.displayName=gf.displayName;const $a=v.forwardRef(({className:e,children:t,...n},a)=>u.jsxs(Vz,{children:[u.jsx(yT,{}),u.jsxs(yf,{ref:a,className:Pe("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...n,children:[t,u.jsxs(Ly,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[u.jsx(Sy,{className:"h-4 w-4"}),u.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));$a.displayName=yf.displayName;const lc=({className:e,...t})=>u.jsx("div",{className:Pe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});lc.displayName="DialogHeader";const Wy=({className:e,...t})=>u.jsx("div",{className:Pe("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Wy.displayName="DialogFooter";const cc=v.forwardRef(({className:e,...t},n)=>u.jsx(vf,{ref:n,className:Pe("text-lg font-semibold leading-none tracking-tight",e),...t}));cc.displayName=vf.displayName;const uc=v.forwardRef(({className:e,...t},n)=>u.jsx(bf,{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));uc.displayName=bf.displayName;const Wl=v.forwardRef(({className:e,type:t,...n},a)=>u.jsx("input",{type:t,className:Pe("flex h-9 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:a,...n}));Wl.displayName="Input";var Fz=Object.defineProperty,Bz=(e,t)=>Fz(e,"name",{value:t,configurable:!0}),$z=v.forwardRef(Bz(function(t,n){return u.jsx(Ve.label,{...t,ref:n,onMouseDown:a=>{a.target.closest("button, input, select, textarea")||(t.onMouseDown?.(a),!a.defaultPrevented&&a.detail>1&&a.preventDefault())}})},"Label")),vT=$z;const Hz=yc("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Xs=v.forwardRef(({className:e,...t},n)=>u.jsx(vT,{ref:n,className:Pe(Hz(),e),...t}));Xs.displayName=vT.displayName;var qz=Object.defineProperty,Gz=(e,t)=>qz(e,"name",{value:t,configurable:!0});function Lg(e,[t,n]){return Math.min(n,Math.max(t,e))}Gz(Lg,"clamp");var Kz=Object.defineProperty,Qz=(e,t)=>Kz(e,"name",{value:t,configurable:!0});function bT(e){const t=v.useRef({value:e,previous:e});return v.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}Qz(bT,"usePrevious");var Yz=Object.defineProperty,nt=(e,t)=>Yz(e,"name",{value:t,configurable:!0}),Zz=[" ","Enter","ArrowUp","ArrowDown"],Wz=[" ","Enter"],xo="Select",[Of,Rf,Xz]=mc(xo),[ii,RB]=Bn(xo,[Xz,ma]),Xy=ma(),[Jz,pa]=ii(xo),[eU,tU]=ii(xo);function xT(e){const{__scopeSelect:t,children:n,open:a,defaultOpen:o,onOpenChange:l,value:d,defaultValue:h,onValueChange:m,dir:g,name:y,autoComplete:x,disabled:b,required:C,form:E,internal_do_not_use_render:w}=e,_=Xy(t),[R,A]=v.useState(null),[k,N]=v.useState(null),[O,U]=v.useState(!1),Y=bc(g),[F,W]=$r({prop:a,defaultProp:o??!1,onChange:l,caller:xo}),[ce,fe]=$r({prop:d,defaultProp:h,onChange:m,caller:xo}),X=v.useRef(null),ae=v.useRef(ce);v.useEffect(()=>{const V=E?R?.ownerDocument.getElementById(E):R?.form;if(V instanceof HTMLFormElement){const J=nt(()=>fe(ae.current),"reset");return V.addEventListener("reset",J),()=>V.removeEventListener("reset",J)}},[E,R,fe]);const oe=R?!!E||!!R.closest("form"):!0,[ve,D]=v.useState(new Set),q=gr(),te=Array.from(ve).map(V=>V.props.value).join(";"),ue=v.useCallback(V=>{D(J=>new Set(J).add(V))},[]),j=v.useCallback(V=>{D(J=>{const ge=new Set(J);return ge.delete(V),ge})},[]),L={required:C,trigger:R,onTriggerChange:A,valueNode:k,onValueNodeChange:N,valueNodeHasChildren:O,onValueNodeHasChildrenChange:U,contentId:q,value:ce,onValueChange:fe,open:F,onOpenChange:W,dir:Y,triggerPointerDownPosRef:X,disabled:b,name:y,autoComplete:x,form:E,nativeOptions:ve,nativeSelectKey:te,isFormControl:oe};return u.jsx(cf,{..._,children:u.jsx(Jz,{scope:t,...L,children:u.jsx(Of.Provider,{scope:t,children:u.jsx(eU,{scope:t,onNativeOptionAdd:ue,onNativeOptionRemove:j,children:OT(w)?w(L):n})})})})}nt(xT,"SelectProvider");var nU=nt(e=>{const{__scopeSelect:t,children:n,...a}=e;return u.jsx(xT,{__scopeSelect:t,...a,internal_do_not_use_render:({isFormControl:o})=>u.jsxs(u.Fragment,{children:[n,o?u.jsx(EU,{__scopeSelect:t}):null]})})},"Select"),rU="SelectTrigger",wT=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,disabled:o=!1,...l}=t,d=Xy(a),h=pa(rU,a),m=h.disabled||o,g=Qe(n,h.onTriggerChange),y=Rf(a),x=v.useRef("touch"),[b,C,E]=ev(_=>{const R=y().filter(N=>!N.disabled),A=R.find(N=>N.value===h.value),k=tv(R,_,A);k!==void 0&&h.onValueChange(k.value)}),w=nt(_=>{m||(h.onOpenChange(!0),E()),_&&(h.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})},"handleOpen");return u.jsx(uf,{asChild:!0,...d,children:u.jsx(Ve.button,{type:"button",role:"combobox","aria-controls":h.open?h.contentId:void 0,"aria-expanded":h.open,"aria-required":h.required,"aria-autocomplete":"none",dir:h.dir,"data-state":h.open?"open":"closed",disabled:m,"data-disabled":m?"":void 0,"data-placeholder":Nc(h.value)?"":void 0,...l,ref:g,onClick:xe(l.onClick,_=>
92{_.currentTarget.focus(),x.current!=="mouse"&&w(_)}),onPointerDown:xe(l.onPointerDown,_=>{x.current=_.pointerType;const R=_.target;R.hasPointerCapture(_.pointerId)&&R.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(w(_),_.preventDefault())}),onKeyDown:xe(l.onKeyDown,_=>{const R=b.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&C(_.key),!(R&&_.key===" ")&&Zz.includes(_.key)&&(w(),_.preventDefault())})})})},"SelectTrigger")),sU="SelectValue",aU=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,className:o,style:l,children:d,placeholder:h="",...m}=t,g=pa(sU,a),{onValueNodeHasChildrenChange:y}=g,x=d!==void 0,b=Qe(n,g.onValueNodeChange);Ct(()=>{y(x)},[y,x]);const C=Nc(g.value);return u.jsx(Ve.span,{...m,asChild:C?!1:m.asChild,ref:b,style:{pointerEvents:"none"},children:u.jsx(v.Fragment,{children:C?h:d},C?"placeholder":"value")})},"SelectValue")),iU=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,children:o,...l}=t;return u.jsx(Ve.span,{"aria-hidden":!0,...l,ref:n,children:o||"â¼"})},"SelectIcon")),oU="SelectPortal",[lU,cU]=ii(oU,{forceMount:void 0}),uU=nt(e=>{const{__scopeSelect:t,forceMount:n,...a}=e;return u.jsx(lU,{scope:e.__scopeSelect,forceMount:n,children:u.jsx(pc,{asChild:!0,...a})})},"SelectPortal"),Ka="SelectContent",ST=v.forwardRef(nt(function(t,n){const a=cU(Ka,t.__scopeSelect),{forceMount:o=a.forceMount,...l}
92=t,d=pa(Ka,t.__scopeSelect),[h,m]=v.useState();return Ct(()=>{m(new DocumentFragment)},[]),u.jsx(rr,{present:o||d.open,children:({present:g})=>g?u.jsx(hU,{...l,ref:n}):u.jsx(dU,{...l,fragment:h})})},"SelectContent")),dU=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,children:o,fragment:l}=t;return l?xs.createPortal(u.jsx(_T,{scope:a,children:u.jsx(Of.Slot,{scope:a,children:u.jsx("div",{ref:n,children:o})})}),l):null},"SelectContentFragment")),Cr=10,[_T,oi]=ii(Ka),fU=Or("SelectContent.RemoveScroll"),hU=v.forwardRef(nt(function(t,n){const{__scopeSelect:a}=t,{position:o="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:d,onPointerDownOutside:h,side:m,sideOffset:g,align:y,alignOffset:x,arrowPadding:b,collisionBoundary:C,collisionPadding:E,sticky:w,hideWhenDetached:_,avoidCollisions:R,...A}=t,k=pa(Ka,a),[N,O]=v.useState(null),[U,Y]=v.useState(null),F=Qe(n,O),[W,ce]=v.useState(null),[fe,X]=v.useState(null),ae=Rf(a),[oe,ve]=v.useState(!1),D=v.useRef(!1);v.useEffect(()=>{if(N)return pf(N)},[N]),Po();const q=v.useCallback(de=>{const[Oe,...St]=ae().map(at=>at.ref.current),[Ze]=St.slice(-1),tt=document.activeElement;for(const at of de)if(at===tt||(at?.scrollIntoView({block:"nearest"}),at===Oe&&U&&(U.scrollTop=0),at===Ze&&U&&(U.scrollTop=U.scrollHeight),at?.focus(),document.activeElement!==tt))return},[ae,U]),te=v.useCallback(()=>q([W,N]),[q,W,N]);v.useEffect(()=>{oe&&te()},[oe,te]);const{onOpenChange:ue,triggerPointerDownPosRef:j}=k;v.useEffect(()=>{if(N){let de={x:0,y:0};const Oe=nt(Ze=>{de={x:Math.abs(Math.round(Ze.pageX)-(j.current?.x??0)),y:Math.abs(Math.round(Ze.pageY)-(j.current?.y??0))}},"handlePointerMove"),St=nt(Ze=>{de.x<=10&&de.y<=10?Ze.preventDefault():Ze.composedPath().includes(N)||ue(!1),document.removeEventListener("pointermove",Oe),j.current=null},"handlePointerUp");return j.current!==null&&(document.addEventListener("pointermove",Oe),document.addEventListener("pointerup",St,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Oe),document.removeEventListener("pointerup",St,{capture:!0})}}},[N,ue,j]),v.useEffect(()=>{const de=nt(()=>ue(!1),"close");return window.addEventListener("blur",de),window.addEventListener("resize",de),()=>{window.removeEventListener("blur",de),window.removeEventListener("resize",de)}},[ue]);const[L,V]=ev(de=>{const Oe=ae().filter(tt=>!tt.disabled),St=Oe.find(tt=>tt.ref.current===document.activeElement),Ze=tv(Oe,de,St);Ze&&setTimeout(()=>Ze.ref.current?.focus())}),J=v.useCallback((de,Oe,St)=>{const Ze=!D.current&&!St;(k.value!==void 0&&k.value===Oe||Ze)&&(ce(de),Ze&&(D.current=!0))},[k.value]),ge=v.useCallback(()=>N?.focus(),[N]),be=v.useCallback((de,Oe,St)=>{const Ze=!D.current&&!St;(k.value!==void 0&&k.value===Oe||Ze)&&X(de)},[k.value]),ye=o==="popper"?cS:mU,qe=ye===cS?{side:m,sideOffset:g,align:y,alignOffset:x,arrowPadding:b,collisionBoundary:C,collisionPadding:E,sticky:w,hideWhenDetached:_,avoidCollisions:R}:{};return u.jsx(_T,{scope:a,content:N,viewport:U,onViewportChange:Y,itemRefCallback:J,selectedItem:W,onItemLeave:ge,itemTextRefCallback:be,focusSelectedItem:te,selectedItemText:fe,position:o,isPositioned:oe,searchRef:L,children:u.jsx(vc,{as:fU,allowPinchZoom:!0,children:u.jsx(hf,{asChild:!0,trapped:k.open,onMountAutoFocus:de=>{de.preventDefault()},onUnmountAutoFocus:xe(l,de=>{k.trigger?.focus({preventScroll:!0}),de.preventDefault()}),children:u.jsx(Ao,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:h,onFocusOutside:de=>de.preventDefault(),onDismiss:()=>k.onOpenChange(!1),children:u.jsx(ye,{role:"listbox",id:k.contentId,"data-state":k.open?"open":"closed",dir:k.dir,onContextMenu:de=>de.preventDefault(),...A,...qe,onPlaced:()=>ve(!0),ref:F,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:xe(A.onKeyDown,de=>{const Oe=de.ctrlKey||de.altKey||de.metaKey;if(de.key==="Tab"&&de.preventDefault(),!Oe&&de.key.length===1&&V(de.key),["ArrowUp","ArrowDown","Home","End"].includes(de.key)){let Ze=ae().filter(tt=>!tt.disabled).map(tt=>tt.ref.current);if(["ArrowUp","End"].includes(de.key)&&(Ze=Ze.slice().reverse()),["ArrowUp","ArrowDown"].includes(de.key)){const tt=de.target,at=Ze.indexOf(tt);Ze=Ze.slice(at+1)}setTimeout(()=>q(Ze)),de.preventDefault()}})})})})})})},"SelectContentImpl")),mU=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,onPlaced:o,...l}
vendor: 4,322 bytes, line 92
92=t,d=pa(Ka,a),h=oi(Ka,a),[m,g]=v.useState(null),[y,x]=v.useState(null),b=Qe(n,x),C=Rf(a),E=v.useRef(!1),w=v.useRef(!0),{viewport:_,selectedItem:R,selectedItemText:A,focusSelectedItem:k}=h,N=v.useCallback(()=>{if(d.trigger&&d.valueNode&&m&&y&&_&&R&&A){const F=d.trigger.getBoundingClientRect(),W=y.getBoundingClientRect(),ce=d.valueNode.getBoundingClientRect(),fe=A.getBoundingClientRect();if(d.dir!=="rtl"){const tt=fe.left-W.left,at=ce.left-tt,zt=F.left-at,on=F.width+zt,ya=Math.max(on,W.width),Zt=window.innerWidth-Cr,Ss=Lg(at,[Cr,Math.max(Cr,Zt-ya)]);m.style.minWidth=on+"px",m.style.left=Ss+"px"}else{const tt=W.right-fe.right,at=window.innerWidth-ce.right-tt,zt=window.innerWidth-F.right-at,on=F.width+zt,ya=Math.max(on,W.width),Zt=window.innerWidth-Cr,Ss=Lg(at,[Cr,Math.max(Cr,Zt-ya)]);m.style.minWidth=on+"px",m.style.right=Ss+"px"}const X=C(),ae=window.innerHeight-Cr*2,oe=_.scrollHeight,ve=window.getComputedStyle(y),D=parseInt(ve.borderTopWidth,10),q=parseInt(ve.paddingTop,10),te=parseInt(ve.borderBottomWidth,10),ue=parseInt(ve.paddingBottom,10),j=D+q+oe+ue+te,L=Math.min(R.offsetHeight*5,j),V=window.getComputedStyle(_),J=parseInt(V.paddingTop,10),ge=parseInt(V.paddingBottom,10),be=F.top+F.height/2-Cr,ye=ae-be,qe=R.offsetHeight/2,de=R.offsetTop+qe,Oe=D+q+de,St=j-Oe;if(Oe<=be){const tt=X.length>0&&R===X[X.length-1].ref.current;m.style.bottom="0px";const at=y.clientHeight-_.offsetTop-_.offsetHeight,zt=Math.max(ye,qe+(tt?ge:0)+at+te),on=Oe+zt;m.style.height=on+"px"}else{const tt=X.length>0&&R===X[0].ref.current;m.style.top="0px";const zt=Math.max(be,D+_.offsetTop+(tt?J:0)+qe)+St;m.style.height=zt+"px",_.scrollTop=Oe-be+_.offsetTop}m.style.margin=`${Cr}px 0`,m.style.minHeight=L+"px",m.style.maxHeight=ae+"px",o?.(),requestAnimationFrame(()=>E.current=!0)}},[C,d.trigger,d.valueNode,m,y,_,R,A,d.dir,o]);Ct(()=>N(),[N]);const[O,U]=v.useState();Ct(()=>{y&&U(window.getComputedStyle(y).zIndex)},[y]);const Y=v.useCallback(F=>{F&&w.current===!0&&(N(),k?.(),w.current=!1)},[N,k]);return u.jsx(pU,{scope:a,contentWrapper:m,shouldExpandOnScrollRef:E,onScrollButtonChange:Y,children:u.jsx("div",{ref:g,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:O},children:u.jsx(Ve.div,{...l,ref:b,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})},"SelectItemAlignedPosition")),cS=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,align:o="start",collisionPadding:l=Cr,...d}=t,h=Xy(a);return u.jsx(df,{...h,...d,ref:n,align:o,collisionPadding:l,style:{boxSizing:"border-box",...d.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)"}})},"SelectPopperPosition")),[pU,Jy]=ii(Ka,{}),uS="SelectViewport",gU=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,nonce:o,...l}=t,d=oi(uS,a),h=Jy(uS,a),m=Qe(n,d.onViewportChange),g=v.useRef(0);return u.jsxs(u.Fragment,{children:[u.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),u.jsx(Of.Slot,{scope:a,children:u.jsx(Ve.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:m,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:xe(l.onScroll,y=>{const x=y.currentTarget,{contentWrapper:b,shouldExpandOnScrollRef:C}=h;if(C?.current&&b){const E=Math.abs(g.current-x.scrollTop);if(E>0){const w=window.innerHeight-Cr*2,_=parseFloat(b.style.minHeight),R=parseFloat(b.style.height),A=Math.max(_,R);if(A<w){const k=A+E,N=Math.min(w,k),O=k-N;b.style.height=N+"px",b.style.bottom==="0px"&&(x.scrollTop=O>0?O:0,b.style.justifyContent="flex-end")}}}g.current=x.scrollTop})})})]})},"SelectViewport")),yU="SelectGroup",[PB,vU]=ii(yU),bU="SelectLabel",CT=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,...o}=t,l=vU(bU,a);return u.jsx(Ve.div,{id:l.id,...o,ref:n})},"SelectLabel")),zg="SelectItem",[xU,ET]=ii(zg),TT=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,value:o,disabled:l=!1,textValue:d,...h}
92=t,m=pa(zg,a),g=oi(zg,a),y=m.value===o,[x,b]=v.useState(d??""),[C,E]=v.useState(!1),w=yn(N=>g.itemRefCallback?.(N,o,l)),_=Qe(n,w),R=gr(),A=v.useRef("touch"),k=nt(()=>{l||(m.onValueChange(o),m.onOpenChange(!1))},"handleSelect");return u.jsx(xU,{scope:a,value:o,disabled:l,textId:R,isSelected:y,onItemTextChange:v.useCallback(N=>{b(O=>O||(N?.textContent??"").trim())},[]),children:u.jsx(Of.ItemSlot,{scope:a,value:o,disabled:l,textValue:x,children:u.jsx(Ve.div,{role:"option","aria-labelledby":R,"data-highlighted":C?"":void 0,"aria-selected":y&&C,"data-state":y?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...h,ref:_,onFocus:xe(h.onFocus,()=>E(!0)),onBlur:xe(h.onBlur,()=>E(!1)),onClick:xe(h.onClick,()=>{A.current!=="mouse"&&k()}),onPointerUp:xe(h.onPointerUp,()=>{A.current==="mouse"&&k()}),onPointerDown:xe(h.onPointerDown,N=>{A.current=N.pointerType}),onPointerMove:xe(h.onPointerMove,N=>{A.current=N.pointerType,l?g.onItemLeave?.():A.current==="mouse"&&N.currentTarget.focus({preventScroll:!0})}),onPointerLeave:xe(h.onPointerLeave,N=>{N.currentTarget===document.activeElement&&g.onItemLeave?.()}),onKeyDown:xe(h.onKeyDown,N=>{l||N.target!==N.currentTarget||g.searchRef?.current!==""&&N.key===" "||(Wz.includes(N.key)&&k(),N.key===" "&&N.preventDefault())})})})})},"SelectItem")),cd="SelectItemText",wU=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,className:o,style:l,...d}=t,h=pa(cd,a),m=oi(cd,a),g=ET(cd,a),y=tU(cd,a),[x,b]=v.useState(null),C=yn(k=>m.itemTextRefCallback?.(k,g.value,g.disabled)),E=Qe(n,b,g.onItemTextChange,C),w=x?.textContent,_=v.useMemo(()=>u.jsx("option",{value:g.value,disabled:g.disabled,children:w},g.value),[g.disabled,g.value,w]),{onNativeOptionAdd:R,onNativeOptionRemove:A}=y;return Ct(()=>(R(_),()=>A(_)),[R,A,_]),u.jsxs(u.Fragment,{children:[u.jsx(Ve.span,{id:g.textId,...d,ref:E}),g.isSelected&&h.valueNode&&!h.valueNodeHasChildren&&!Nc(h.value)?xs.createPortal(d.children,h.valueNode):null]})},"SelectItemText")),SU="SelectItemIndicator",_U=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,...o}=t;return ET(SU,a).isSelected?u.jsx(Ve.span,{"aria-hidden":!0,...o,ref:n}):null},"SelectItemIndicator")),dS="SelectScrollUpButton",jT=v.forwardRef(nt(function(t,n){const a=oi(dS,t.__scopeSelect),o=Jy(dS,t.__scopeSelect),[l,d]=v.useState(!1),h=Qe(n,o.onScrollButtonChange);return Ct(()=>{if(a.viewport&&a.isPositioned){let m=function(){const y=g.scrollTop>0;d(y)};nt(m,"handleScroll");const g=a.viewport;return m(),g.addEventListener("scroll",m),()=>g.removeEventListener("scroll",m)}},[a.viewport,a.isPositioned]),l?u.jsx(kT,{...t,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:g}=a;m&&g&&(m.scrollTop=m.scrollTop-g.offsetHeight)}}):null},"SelectScrollUpButton")),fS="SelectScrollDownButton",NT=v.forwardRef(nt(function(t,n){const a=oi(fS,t.__scopeSelect),o=Jy(fS,t.__scopeSelect),[l,d]=v.useState(!1),h=Qe(n,o.onScrollButtonChange);return Ct(()=>{if(a.viewport&&a.isPositioned){let m=function(){const y=g.scrollHeight-g.clientHeight,x=Math.ceil(g.scrollTop)<y;d(x)};nt(m,"handleScroll");const g=a.viewport;return m(),g.addEventListener("scroll",m),()=>g.removeEventListener("scroll",m)}},[a.viewport,a.isPositioned]),l?u.jsx(kT,{...t,ref:h,onAutoScroll:()=>{const{viewport:m,selectedItem:g}=a;m&&g&&(m.scrollTop=m.scrollTop+g.offsetHeight)}}):null},"SelectScrollDownButton")),kT=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,onAutoScroll:o,...l}=t,d=oi("SelectScrollButton",a),h=v.useRef(null),m=Rf(a),g=v.useCallback(()=>{h.current!==null&&(window.clearInterval(h.current),h.current=null)},[]);return v.useEffect(()=>()=>g(),[g]),Ct(()=>{m().find(x=>x.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[m]),u.jsx(Ve.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:xe(l.onPointerDown,()=>{h.current===null&&(h.current=window.setInterval(o,50))}),onPointerMove:xe(l.onPointerMove,()=>{d.onItemLeave?.(),h.current===null&&(h.current=window.setInterval(o,50))}),onPointerLeave:xe(l.onPointerLeave,()=>{g()})})},"SelectScrollButtonImpl")),AT=v.forwardRef(nt(function(t,n){const{__scopeSelect:a,...o}=t;return u.jsx(Ve.div,{"aria-hidden":!0,...o,ref:n})},"SelectSeparator")),CU="SelectBubbleInput",EU=v.forwardRef(nt(function({__scopeSelect:t,...n},a){const o=pa(CU,t),{value:l,onValueChange:d,required:h,disabled:m,name:g,autoComplete:y,form:x}=o,{nativeOptions:b,nativeSelectKey:C}=o,E=v.useRef(null),w=Qe(a,E),_=l??"",R=bT(_),A=Array.from(b).some(k=>(k.props.value??"")==="");return v.useEffect(()=>{const k=E.current;if(!k)return;const N=window.HTMLSelectElement.prototype,U=Object.getOwnPropertyDescriptor(N,"value").set;if(R!==_&&U){const Y=new Event("change",{bubbles:!0});U.call(k,_),k.dispatchEvent(Y)}},[R,_]),u.jsxs(Ve.select,{"aria-hidden":!0,required:h,tabIndex:-1,name:g,autoComplete:y,disabled:m,form:
92x,onChange:k=>d(k.target.value),...n,style:{...aC,...n.style},ref:w,defaultValue:_,children:[Nc(l)&&!A?u.jsx("option",{value:""}):null,Array.from(b)]},C)},"SelectBubbleInput"));function OT(e){return typeof e=="function"}nt(OT,"isFunction");function Nc(e){return e===""||e===void 0}nt(Nc,"shouldShowPlaceholder");function ev(e){const t=yn(e),n=v.useRef(""),a=v.useRef(0),o=v.useCallback(d=>{const h=n.current+d;t(h),nt((function m(g){n.current=g,window.clearTimeout(a.current),g!==""&&(a.current=window.setTimeout(()=>m(""),1e3))}),"updateSearch")(h)},[t]),l=v.useCallback(()=>{n.current="",window.clearTimeout(a.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(a.current),[]),[n,o,l]}nt(ev,"useTypeaheadSearch");function tv(e,t,n){const o=t.length>1&&Array.from(t).every(g=>g===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let d=RT(e,Math.max(l,0));o.length===1&&(d=d.filter(g=>g!==n));const m=d.find(g=>g.textValue.toLowerCase().startsWith(o.toLowerCase()));return m!==n?m:void 0}nt(tv,"findNextItem");function RT(e,t){return e.map((n,a)=>e[(t+a)%e.length])}nt(RT,"wrapArray");const wo=nU,So=aU,Qa=v.forwardRef(({className:e,children:t,...n},a)=>u.jsxs(wT,{ref:a,className:Pe("flex h-9 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm r
92ing-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,u.jsx(iU,{asChild:!0,children:u.jsx(ef,{className:"h-4 w-4 opacity-50"})})]}));Qa.displayName=wT.displayName;const PT=v.forwardRef(({className:e,...t},n)=>u.jsx(jT,{ref:n,className:Pe("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(CC,{className:"h-4 w-4"})}));PT.displayName=jT.displayName;const MT=v.forwardRef(({className:e,...t},n)=>u.jsx(NT,{ref:n,className:Pe("flex cursor-default items-center justify-center py-1",e),...t,children:u.jsx(ef,{className:"h-4 w-4"})}));MT.displayName=NT.displayName;const Ya=v.forwardRef(({className:e,children:t,position:n="popper",onCloseAutoFocus:a,...o},l)=>u.jsx(uU,{children:u.jsxs(ST,{ref:l,className:Pe("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",n==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,onCloseAutoFocus:d=>{a?a(d):d.preventDefault()},...o,children:[u.jsx(PT,{}),u.jsx(gU,{className:Pe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),u.jsx(MT,{})]})}));Ya.displayName=ST.displayName;const TU=v.forwardRef(({className:e,...t},n)=>u.jsx(CT,{ref:n,className:Pe("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));TU.displayName=CT.displayName;const _n=v.forwardRef(({className:e,children:t,...n},a)=>u.jsxs(TT,{ref:a,className:Pe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[u.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:u.jsx(_U,{children:u.jsx(rn,{className:"h-4 w-4"})})}),u.jsx(wU,{children:t})]}));_n.displayName=TT.displayName;const jU=v.forwardRef(({className:e,...t},n)=>u.jsx(AT,{ref:n,className:Pe("-mx-1 my-1 h-px bg-muted",e),...t}));jU.displayName=AT.displayName;const se=Symbol.for("drizzle:entityKind");function fn(e,t){if(!e||typeof e!="object")return!1;if(e instanceof t)return!0;if(!Object.prototype.hasOwnProperty.call(t,se))throw new Error(`Class "${t.name??"<unknown>"}" doesn't look like a Drizzle entity. If this is incorrect and the class is provided by Drizzle, please report this as a bug.`);let n=Object.getPrototypeOf(e).constructor;if(n)for(;n;){if(se in n&&n[se]===t[se])return!0;n=Object.getPrototypeOf(n)}return!1}class nv{constructor(t,n){this.table=t,this.config=n,this.name=n.name,this.keyAsName=n.keyAsName,this.notNull=n.notNull,this.default=n.default,this.defaultFn=n.defaultFn,this.onUpdateFn=n.onUpdateFn,this.hasDefault=n.hasDefault,this.primary=n.primaryKey,this.isUnique=n.isUnique,this.uniqueName=n.uniqueName,this.uniqueType=n.uniqueType,this.dataType=n.dataType,this.columnType=n.columnType,this.generated=n.generated,this.generatedIdentity=n.generatedIdentity}static[se]="Column";name;keyAsName;primary;notNull;default;defaultFn;onUpdateFn;hasDefault;isUnique;uniqueName;uniqueType;dataType;columnType;enumValues=void 0;generated=void 0;generatedIdentity=void 0;config;mapFromDriverValue(t){return t}mapToDriverValue(t){return t}shouldDisableInsert(){return this.config.generated!==void 0&&this.config.generated.type!=="byDefault"}}class NU{static[se]="ColumnBuilder";config;constructor(t,n,a){this.config={name:t,keyAsName:t==="",notNull:!1,default:void 0,hasDefault:!1,primaryKey:!1,isUnique:!1,uniqueName:void 0,uniqueType:void 0,dataType:n,columnType:a,generated:void 0}}$type(){return this}notNull(){return this.config.notNull=!0,this}default(t){return this.config.default=t,this.config.hasDefault=!0,this}$defaultFn(t){return this.config.defaultFn=t,this.config.hasDefault=!0,this}$default=this.$defaultFn;$onUpdateFn(t){return this.config.onUpdateFn=t,this.config.hasDefault=!0,this}$onUpdate=this.$onUpdateFn;primaryKey(){return this.config.primaryKey=!0,this.config.notNull=!0,this}setName(t){this.config.name===""&&(this.config.name=t)}}const ho=Symbol.for("drizzle:Name");class kU{static[se]="PgForeignKeyBuilder";reference;
92_onUpdate="no action";_onDelete="no action";constructor(t,n){this.reference=()=>{const{name:a,columns:o,foreignColumns:l}=t();return{name:a,columns:o,foreignTable:l[0].table,foreignColumns:l}},n&&(this._onUpdate=n.onUpdate,this._onDelete=n.onDelete)}onUpdate(t){return this._onUpdate=t===void 0?"no action":t,this}onDelete(t){return this._onDelete=t===void 0?"no action":t,this}build(t){return new AU(t,this)}}class AU{constructor(t,n){this.table=t,this.reference=n.reference,this.onUpdate=n._onUpdate,this.onDelete=n._onDelete}static[se]="PgForeignKey";reference;onUpdate;onDelete;getName(){const{name:t,columns:n,foreignColumns:a}=this.reference(),o=n.map(h=>h.name),l=a.map(h=>h.name),d=[this.table[ho],...o,a[0].table[ho],...l];return t??`${d.join("_")}_fk`}}function OU(e,...t){return e(...t)}function RU(e,t){return`${e[ho]}_${t.join("_")}_unique`}function hS(e,t,n){for(let a=t;a<e.length;a++){const o=e[a];if(o==="\\"){a++;continue}if(o==='"')return[e.slice(t,a).replace(/\\/g,""),a+1];if(!n&&(o===","||o==="}"))return[e.slice(t,a).replace(/\\/g,""),a]}return[e.slice(t).replace(/\\/g,""),e.length]}function DT(e,t=0){const n=[];let a=t,o=!1;for(;a<e.length;){const l=e[a];if(l===","){(o||a===t)&&n.push(""),o=!0,a++;continue}if(o=!1,l==="\\"){a+=2;continue}if(l==='"'){const[m,g]=hS(e,a+1,!0);n.push(m),a=g;continue}if(l==="}")return[n,a+1];if(l==="{"){const[m,g]=DT(e,a+1);n.push(m),a=g;continue}const[d,h]=hS(e,a,!1);n.push(d),a=h}return[n,a]}function PU(e){const[t]=DT(e,1);return t}function IT(e){return`{${e.map(t=>Array.isArray(t)?IT(t):typeof t=="string"?`"${t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`:`${t}`).join(",")}}`}class rt extends NU{foreignKeyConfigs=[];static[se]="PgColumnBuilder";array(t){return new DU(this.config.name,this,t)}references(t,n={}){return this.foreignKeyConfigs.push({ref:t,actions:n}),this}unique(t,n){return this.config.isUnique=!0,this.config.uniqueName=t,this.config.uniqueType=n?.nulls,this}generatedAlwaysAs(t){return this.config.generated={as:t,type:"always",mode:"stored"},this}buildForeignKeys(t,n){return this.foreignKeyConfigs.map(({ref:a,actions:o})=>OU((l,d)=>{const h=new kU(()=>{const m=l();return{columns:[t],foreignColumns:[m]}});return d.onUpdate&&h.onUpdate(d.onUpdate),d.onDelete&&h.onDelete(d.onDelete),h.build(n)},a,o))}buildExtraConfigColumn(t){return new MU(t,this.config)}}class $e extends nv{constructor(t,n){n.uniqueName||(n.uniqueName=RU(t,[n.name])),super(t,n),this.table=t}static[se]="PgColumn"}class MU extends $e{static[se]="ExtraConfigColumn";getSQLType(){return this.getSQLType()}indexConfig={order:this.config.order??"asc",nulls:this.config.nulls??"last",opClass:this.config.opClass};defaultConfig={order:"asc",nulls:"last",opClass:void 0};asc(){return this.indexConfig.order="asc",this}desc(){return this.indexConfig.order="desc",this}nullsFirst(){return this.indexConfig.nulls="first",this}nullsLast(){return this.indexConfig.nulls="last",this}op(t){return this.indexConfig.opClass=t,this}}class Lp{static[se]="IndexedColumn";constructor(t,n,a,o){this.name=t,this.keyAsName=n,this.type=a,this.indexConfig=o}name;keyAsName;type;indexConfig}class DU extends rt{static[se]="PgArrayBuilder";constructor(t,n,a){super(t,"array","PgArray"),this.config.baseBuilder=n,this.config.size=a}build(t){const n=this.config.baseBuilder.build(t);return new rv(t,this.config,n)}}class rv extends $e{constructor(t,n,a,o){super(t,n),this.baseColumn=a,this.range=o,this.size=n.size}size;static[se]="PgArray";getSQLType(){return`${this.baseColumn.getSQLType()}[${typeof this.size=="number"?this.size:""}]`}mapFromDriverValue(t){return typeof t=="string"&&(t=PU(t)),t.map(n=>this.baseColumn.mapFromDriverValue(n))}mapToDriverValue(t,n=!1){const a=t.map(o=>o===null?null:fn(this.baseColumn,rv)?this.baseColumn.mapToDriverValue(o,!0):this.baseColumn.mapToDriverValue(o));return n?a:IT(a)}}const mS=Symbol.for("drizzle:isPgEnum");function IU(e){return!!e&&typeof e=="function"&&mS in e&&e[mS]===!0}class LT{static[se]="Subquery";constructor(t,n,a,o=!1,l=[]){this._={brand:"Subquery",sql:t,selectedFields:n,alias:a,isWith:o,usedTables:l}}}const LU={startActiveSpan(e,t){return t()}},mo=Symbol.for("drizzle:ViewBaseConfig"),zp=Symbol.for("drizzle:Schema"),pS=Symbol.for("drizzle:Columns"),gS=Symbol.for("drizzle:ExtraConfigColumns"),Up=Symbol.for("drizzle:OriginalName"),Vp=Symbol.for("drizzle:BaseName"),zd=Symbol.for("drizzle:IsAlias"),yS=Symbol.for("drizzle:ExtraConfigBuilder"),zT=Symbol.for("drizzle:IsDrizzleTable");class tn{static[se]="Table";static Symbol={Name:ho,Schema:zp,OriginalName:Up,Columns:pS,ExtraConfigColumns:gS,BaseName:Vp,IsAlias:zd,ExtraConfigBuilder:yS};[ho];[Up];[zp];[pS];[gS];[Vp];[zd]=!1;[zT]=!0;[yS]=void 0;constructor(t,n,a){this[ho]=this[Up]=t,this[zp]=n,this[Vp]=a}}function MB(e){return typeof e=="object"&&e!==null&&zT in e}function zU(e){return e!=null&&typeof e.getSQL=="function"}function UU(e){const t={sql:"",params:[]};for(const n of e)t.sql+=n.sql,t.params.push(...n.params),n.typings?.length&&(t.typings||(t.typings=[]),t.typings.push(...n.typings));return t}class Tr{static[se]="StringChunk";value;constructor(t){this.value=Array.isArray(t)?t:[t]}getSQL(){return new Ot([this])}}class Ot{constructor(t){this.queryChunks=t;for(const n of t)if(fn(n,tn)){const a=n[tn.Symbol.Schema];this.usedTables.push(a===void 0?n[tn.Symbol.Name]:a+"."+n[tn.Symbol.Name])}}static[se]="SQL";decoder=UT;shouldInlineParams=!1;usedTables=[];append(t){return this.queryChunks.push(...t.queryChunks),this}toQuery(t){return LU.startActiveSpan("drizzle.buildSQL",n=>{const a=this.buildQueryFromSourceParams(this.queryChunks,t);return n?.setAttributes({"drizzle.query.text":a.sql,"drizzle.query.params":JSON.stringify(a.params)}),a})}buildQueryFromSourceParams(t,n){const a=Object.assign({}
92,n,{inlineParams:n.inlineParams||this.shouldInlineParams,paramStartIndex:n.paramStartIndex||{value:0}}),{casing:o,escapeName:l,escapeParam:d,prepareTyping:h,inlineParams:m,paramStartIndex:g}=a;return UU(t.map(y=>{if(fn(y,Tr))return{sql:y.value.join(""),params:[]};if(fn(y,Ug))return{sql:l(y.value),params:[]};if(y===void 0)return{sql:"",params:[]};if(Array.isArray(y)){const x=[new Tr("(")];for(const[b,C]of y.entries())x.push(C),b<y.length-1&&x.push(new Tr(", "));return x.push(new Tr(")")),this.buildQueryFromSourceParams(x,a)}if(fn(y,Ot))return this.buildQueryFromSourceParams(y.queryChunks,{...a,inlineParams:m||y.shouldInlineParams});if(fn(y,tn)){const x=y[tn.Symbol.Schema],b=y[tn.Symbol.Name];return{sql:x===void 0||y[zd]?l(b):l(x)+"."+l(b),params:[]}}if(fn(y,nv)){const x=o.getColumnCasing(y);if(n.invokeSource==="indexes")return{sql:l(x),params:[]};const b=y.table[tn.Symbol.Schema];return{sql:y.table[zd]||b===void 0?l(y.table[tn.Symbol.Name])+"."+l(x):l(b)+"."+l(y.table[tn.Symbol.Name])+"."+l(x),params:[]}}if(fn(y,VU)){const x=y[mo].schema,b=y[mo].name;return{sql:x===void 0||y[mo].isAlias?l(b):l(x)+"."+l(b),params:[]}}if(fn(y,FT)){if(fn(y.value,Vg))return{sql:d(g.value++,y),params:[y],typings:["none"]};const x=y.value===null?null:y.encoder.mapToDriverValue(y.value);if(fn(x,Ot))return this.buildQueryFromSourceParams([x],a);if(m)return{sql:this.mapInlineParam(x,a),params:[]};let b=["none"];return h&&(b=[h(y.encoder)]),{sql:d(g.value++,x),params:[x],typings:b}}return fn(y,Vg)?{sql:d(g.value++,y),params:[y],typings:["none"]}:fn(y,Ot.Aliased)&&y.fieldAlias!==void 0?{sql:l(y.fieldAlias),params:[]}:fn(y,LT)?y._.isWith?{sql:l(y._.alias),params:[]}:this.buildQueryFromSourceParams([new Tr("("),y._.sql,new Tr(") "),new Ug(y._.alias)],a):IU(y)?y.schema?{sql:l(y.schema)+"."+l(y.enumName),params:[]}:{sql:l(y.enumName),params:[]}:zU(y)?y.shouldOmitSQLParens?.()?this.buildQueryFromSourceParams([y.getSQL()],a):this.buildQueryFromSourceParams([new Tr("("),y.getSQL(),new Tr(")")],a):m?{sql:this.mapInlineParam(y,a),params:[]}:{sql:d(g.value++,y),params:[y],typings:["none"]}}))}mapInlineParam(t,{escapeString:n}){if(t===null)return"null";if(typeof t=="number"||typeof t=="boolean")return t.toString();if(typeof t=="string")return n(t);if(typeof t=="object"){const a=t.toString();return n(a==="[object Object]"?JSON.stringify(t):a)}throw new Error("Unexpected param value: "+t)}getSQL(){return this}as(t){return t===void 0?this:new Ot.Aliased(this,t)}mapWith(t){return this.decoder=typeof t=="function"?{mapFromDriverValue:t}:t,this}inlineParams(){return this.shouldInlineParams=!0,this}if(t){return t?this:void 0}}class Ug{constructor(t){this.value=t}static[se]="Name";brand;getSQL(){return new Ot([this])}}const UT={mapFromDriverValue:e=>e},VT={mapToDriverValue:e=>e};({...UT,...VT});class FT{constructor(t,n=VT){this.value=t,this.encoder=n}static[se]="Param";brand;getSQL(){return new Ot([this])}}function _o(e,...t){const n=[];(t.length>0||e.length>0&&e[0]!=="")&&n.push(new Tr(e[0]));for(const[a,o]of t.entries())n.push(o,new Tr(e[a+1]));return new Ot(n)}(e=>{function t(){return new Ot([])}e.empty=t;function n(m){return new Ot(m)}e.fromList=n;function a(m){return new Ot([new Tr(m)])}e.raw=a;function o(m,g){const y=[];for(const[x,b]of m.entries())x>0&&g!==void 0&&y.push(g),y.push(b);return new Ot(y)}e.join=o;function l(m){return new Ug(m)}e.identifier=l;function d(m){return new Vg(m)}e.placeholder=d;function h(m,g){return new FT(m,g)}e.param=h})(_o||(_o={}));(e=>{class t{constructor(a,o){this.sql=a,this.fieldAlias=o}static[se]="SQL.Aliased";isSelectionField=!1;getSQL(){return this.sql}clone(){return new t(this.sql,this.fieldAlias)}}e.Aliased=t})(Ot||(Ot={}));class Vg{constructor(t){this.name=t}static[se]="Placeholder";getSQL(){return new Ot([this])}}const BT=Symbol.for("drizzle:IsDrizzleView");class VU{static[se]="View";[mo];[BT]=!0;constructor({name:t,schema:n,selectedFields:a,query:o}){this[mo]={name:t,originalName:t,schema:n,selectedFields:a,query:o,isExisting:!o,isAlias:!1}}getSQL(){return new Ot([this])}}function DB(e){return typeof e=="object"&&e!==null&&BT in e}nv.prototype.getSQL=function(){return new Ot([this])};tn.prototype.getSQL=function(){return new Ot([this])};LT.prototype.getSQL=function(){return new Ot([this])};function IB(e){return e[tn.Symbol.Columns]}function LB(e){return e[mo].selectedFields}function an(e,t){return{name:typeof e=="string"&&e.length>0?e:"",config:typeof e=="object"?e:t}}typeof TextDecoder>"u"||new TextDecoder;class Pf extends rt{static[se]="PgIntColumnBaseBuilder";generatedAlwaysAsIdentity(t){if(t){const{name:n,...a}=t;this.config.generatedIdentity={type:"always",sequenceName:n,sequenceOptions:a}}else this.config.generatedIdentity={type:"always"};return this.config.hasDefault=!0,this.config.notNull=!0,this}generatedByDefaultAsIdentity(t){if(t){const{name:n,...a}=t;this.config.generatedIdentity={type:"byDefault",sequenceName:n,sequenceOptions:a}}else this.config.generatedIdentity={type:"byDefault"};return this.config.hasDefault=!0,this.config.notNull=!0,this}}class FU extends Pf{static[se]="PgBigInt53Builder";constructor(t){super(t,"number","PgBigInt53")}build(t){return new BU(t,this.config)}}class BU extends $e{static[se]="PgBigInt53";getSQLType(){return"bigint"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}}class $U extends Pf{static[se]="PgBigInt64Builder";constructor(t){super(t,"bigint","PgBigInt64")}build(t){return new HU(t,this.config)}}class HU extends $e{static[se]="PgBigInt64";getSQLType(){return"bigint"}mapFromDriverValue(t){return BigInt(t)}}function qU(e,t){const{name:n,config:a}=an(e,t);return a.mode==="number"?new FU(n):new $U(n)}
92class GU extends rt{static[se]="PgBigSerial53Builder";constructor(t){super(t,"number","PgBigSerial53"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new KU(t,this.config)}}class KU extends $e{static[se]="PgBigSerial53";getSQLType(){return"bigserial"}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}}class QU extends rt{static[se]="PgBigSerial64Builder";constructor(t){super(t,"bigint","PgBigSerial64"),this.config.hasDefault=!0}build(t){return new YU(t,this.config)}}class YU extends $e{static[se]="PgBigSerial64";getSQLType(){return"bigserial"}mapFromDriverValue(t){return BigInt(t)}}function ZU(e,t){const{name:n,config:a}=an(e,t);return a.mode==="number"?new GU(n):new QU(n)}class WU extends rt{static[se]="PgBooleanBuilder";constructor(t){super(t,"boolean","PgBoolean")}build(t){return new XU(t,this.config)}}class XU extends $e{static[se]="PgBoolean";getSQLType(){return"boolean"}}function $T(e){return new WU(e??"")}class JU extends rt{static[se]="PgCharBuilder";constructor(t,n){super(t,"string","PgChar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new e8(t,this.config)}}class e8 extends $e{static[se]="PgChar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"char":`char(${this.length})`}}function t8(e,t={}){const{name:n,config:a}=an(e,t);return new JU(n,a)}class n8 extends rt{static[se]="PgCidrBuilder";constructor(t){super(t,"string","PgCidr")}build(t){return new r8(t,this.config)}}class r8 extends $e{static[se]="PgCidr";getSQLType(){return"cidr"}}function s8(e){return new n8(e??"")}class a8 extends rt{static[se]="PgCustomColumnBuilder";constructor(t,n,a){super(t,"custom","PgCustomColumn"),this.config.fieldConfig=n,this.config.customTypeParams=a}build(t){return new i8(t,this.config)}}class i8 extends $e{static[se]="PgCustomColumn";sqlName;mapTo;mapFrom;constructor(t,n){super(t,n),this.sqlName=n.customTypeParams.dataType(n.fieldConfig),this.mapTo=n.customTypeParams.toDriver,this.mapFrom=n.customTypeParams.fromDriver}getSQLType(){return this.sqlName}mapFromDriverValue(t){return typeof this.mapFrom=="function"?this.mapFrom(t):t}mapToDriverValue(t){return typeof this.mapTo=="function"?this.mapTo(t):t}}function o8(e){return(t,n)=>{const{name:a,config:o}=an(t,n);return new a8(a,o,e)}}class kc extends rt{static[se]="PgDateColumnBaseBuilder";defaultNow(){return this.default(_o`now()`)}}class l8 extends kc{static[se]="PgDateBuilder";constructor(t){super(t,"date","PgDate")}build(t){return new c8(t,this.config)}}class c8 extends $e{static[se]="PgDate";getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?new Date(t):t}mapToDriverValue(t){return t.toISOString()}}class u8 extends kc{static[se]="PgDateStringBuilder";constructor(t){super(t,"string","PgDateString")}build(t){return new d8(t,this.config)}}class d8 extends $e{static[se]="PgDateString";
92getSQLType(){return"date"}mapFromDriverValue(t){return typeof t=="string"?t:t.toISOString().slice(0,-14)}}function f8(e,t){const{name:n,config:a}=an(e,t);return a?.mode==="date"?new l8(n):new u8(n)}class h8 extends rt{static[se]="PgDoublePrecisionBuilder";constructor(t){super(t,"number","PgDoublePrecision")}build(t){return new m8(t,this.config)}}class m8 extends $e{static[se]="PgDoublePrecision";getSQLType(){return"double precision"}mapFromDriverValue(t){return typeof t=="string"?Number.parseFloat(t):t}}function p8(e){return new h8(e??"")}class g8 extends rt{static[se]="PgInetBuilder";constructor(t){super(t,"string","PgInet")}build(t){return new y8(t,this.config)}}class y8 extends $e{static[se]="PgInet";getSQLType(){return"inet"}}function v8(e){return new g8(e??"")}class b8 extends Pf{static[se]="PgIntegerBuilder";constructor(t){super(t,"number","PgInteger")}build(t){return new x8(t,this.config)}}class x8 extends $e{static[se]="PgInteger";getSQLType(){return"integer"}mapFromDriverValue(t){return typeof t=="string"?Number.parseInt(t):t}}function w8(e){return new b8(e??"")}class S8 extends rt{static[se]="PgIntervalBuilder";constructor(t,n){super(t,"string","PgInterval"),this.config.intervalConfig=n}build(t){return new _8(t,this.config)}}class _8 extends $e{static[se]="PgInterval";fields=this.config.intervalConfig.fields;precision=this.config.intervalConfig.precision;getSQLType(){const t=this.fields?` ${this.fields}`:"",n=this.precision?`(${this.precision})`:"";return`interval${t}${n}`}}function C8(e,t={}){const{name:n,config:a}=an(e,t);return new S8(n,a)}class E8 extends rt{static[se]="PgJsonBuilder";constructor(t){super(t,"json","PgJson")}build(t){return new T8(t,this.config)}}class T8 extends $e{static[se]="PgJson";constructor(t,n){super(t,n)}getSQLType(){return"json"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}}function j8(e){return new E8(e??"")}class N8 extends rt{static[se]="PgJsonbBuilder";constructor(t){super(t,"json","PgJsonb")}build(t){return new k8(t,this.config)}}class k8 extends $e{static[se]="PgJsonb";constructor(t,n){super(t,n)}getSQLType(){return"jsonb"}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){if(typeof t=="string")try{return JSON.parse(t)}catch{return t}return t}}function HT(e){return new N8(e??"")}class A8 extends rt{static[se]="PgLineBuilder";constructor(t){super(t,"array","PgLine")}build(t){return new O8(t,this.config)}}class O8 extends $e{static[se]="PgLine";getSQLType(){return"line"}mapFromDriverValue(t){const[n,a,o]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(a),Number.parseFloat(o)]}mapToDriverValue(t){return`{${t[0]},${t[1]},${t[2]}}`}}class R8 extends rt{static[se]="PgLineABCBuilder";constructor(t){super(t,"json","PgLineABC")}build(t){return new P8(t,this.config)}}class P8 extends $e{static[se]="PgLineABC";getSQLType(){return"line"}mapFromDriverValue(t){const[n,a,o]=t.slice(1,-1).split(",");return{a:Number.parseFloat(n),b:Number.parseFloat(a),c:Number.parseFloat(o)}}mapToDriverValue(t){return`{${t.a},${t.b},${t.c}}`}}function M8(e,t){const{name:n,config:a}=an(e,t);return!a?.mode||a.mode==="tuple"?new A8(n):new R8(n)}class D8 extends rt{static[se]="PgMacaddrBuilder";constructor(t){super(t,"string","PgMacaddr")}build(t){return new I8(t,this.config)}}class I8 extends $e{static[se]="PgMacaddr";getSQLType(){return"macaddr"}}function L8(e){return new D8(e??"")}class z8 extends rt{static[se]="PgMacaddr8Builder";constructor(t){super(t,"string","PgMacaddr8")}build(t){return new U8(t,this.config)}}class U8 extends $e{static[se]="PgMacaddr8";getSQLType(){return"macaddr8"}}function V8(e){return new z8(e??"")}class F8 extends rt{static[se]="PgNumericBuilder";constructor(t,n,a){super(t,"string","PgNumeric"),this.config.precision=n,this.config.scale=a}build(t){return new B8(t,this.config)}}class B8 extends $e{static[se]="PgNumeric";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="string"?t:String(t)}getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}}class $8 extends rt{static[se]="PgNumericNumberBuilder";constructor(t,n,a){super(t,"number","PgNumericNumber"),this.config.precision=n,this.config.scale=a}build(t){return new H8(t,this.config)}}class H8 extends $e{static[se]="PgNumericNumber";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue(t){return typeof t=="number"?t:Number(t)}mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}}class q8 extends rt{static[se]="PgNumericBigIntBuilder";constructor(t,n,a){super(t,"bigint","PgNumericBigInt"),this.config.precision=n,this.config.scale=a}build(t){return new G8(t,this.config)}}class G8 extends $e{static[se]="PgNumericBigInt";precision;scale;constructor(t,n){super(t,n),this.precision=n.precision,this.scale=n.scale}mapFromDriverValue=BigInt;mapToDriverValue=String;getSQLType(){return this.precision!==void 0&&this.scale!==void 0?`numeric(${this.precision}, ${this.scale})`:this.precision===void 0?"numeric":`numeric(${this.precision})`}}function K8(e,t){const{name:n,config:a}=an(e,t),o=a?.mode;return o==="number"?new $8(n,a?.precision,a?.scale):o==="bigint"?new q8(n,a?.precision,a?.scale):new F8(n,a?.precision,a?.scale)}class Q8 extends rt{static[se]="PgPointTupleBuilder";constructor(t){super(t,"array","PgPointTuple")}build(t){return new Y8(t,this.config)}}class Y8 extends $e{static[se]="PgPointTuple";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){const[n,a]=t.slice(1,-1).split(",");return[Number.parseFloat(n),Number.parseFloat(a)]}return[t.x,t.y]}mapToDriverValue(t){return`(${t[0]},${t[1]})`}}class Z8 extends rt{static[se]="PgPointObjectBuilder";constructor(t){super(t,"json","PgPointObject")}build(t){return new W8(t,this.config)}}class W8 extends $e{static[se]="PgPointObject";getSQLType(){return"point"}mapFromDriverValue(t){if(typeof t=="string"){const[n,a]=t.slice(1,-1).split(",");return{x:Number.parseFloat(n),y:Number.parseFloat(a)}}return t}mapToDriverValue(t){return`(${t.x},${t.y})`}}function X8(e,t){const{name:n,config:a}=an(e,t);return!a?.mode||a.mode==="tuple"?new Q8(n):new Z8(n)}function J8(e){const t=[];for(let n=0;n<e.length;n+=2)t.push(Number.parseInt(e.slice(n,n+2),16));return new Uint8Array(t)}function vS(e,t){const n=new ArrayBuffer(8),a=new DataView(n);for(let o=0;o<8;o++)a.setUint8(o,e[t+o]);return a.getFloat64(0,!0)}function qT(e){const t=J8(e);let n=0;const a=t[n];n+=1;const o=new DataView(t.buffer),l=o.getUint32(n,a===1);if(n+=4,l&536870912&&(o.getUint32(n,a===1),n+=4),(l&65535)===1){const d=vS(t,n);n+=8;const h=vS(t,n);return n+=8,[d,h]}throw new Error("Unsupported geometry type")}class e9 extends rt{static[se]="PgGeometryBuilder";constructor(t){super(t,"array","PgGeometry")}build(t){return new t9(t,this.config)}}class t9 extends $e{static[se]="PgGeometry";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){return qT(t)}mapToDriverValue(t){return`point(${t[0]} ${t[1]})`}}class n9 extends rt{static[se]="PgGeometryObjectBuilder";constructor(t){super(t,"json","PgGeometryObject")}build(t){return new r9(t,this.config)}}class r9 extends $e{static[se]="PgGeometryObject";getSQLType(){return"geometry(point)"}mapFromDriverValue(t){const n=qT(t);return{x:n[0],y:n[1]}}mapToDriverValue(t){return`point(${t.x} ${t.y})`}}function s9(e,t){const{name:n,config:a}=an(e,t);return!a?.mode||a.mode==="tuple"?new e9(n):new n9(n)}class a9 extends rt{static[se]="PgRealBuilder";constructor(t,n){super(t,"number","PgReal"),this.config.length=n}build(t){return new i9(t,this.config)}}class i9 extends $e{static[se]="PgReal";constructor(t,n){super(t,n)}getSQLType(){return"real"}mapFromDriverValue=t=>typeof t=="string"?Number.parseFloat(t):t}function o9(e){return new a9(e??"")}class l9 extends rt{static[se]="PgSerialBuilder";constructor(t){super(t,"number","PgSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new c9(t,this.config)}}class c9 extends $e{static[se]="PgSerial";
92getSQLType(){return"serial"}}function u9(e){return new l9(e??"")}class d9 extends Pf{static[se]="PgSmallIntBuilder";constructor(t){super(t,"number","PgSmallInt")}build(t){return new f9(t,this.config)}}class f9 extends $e{static[se]="PgSmallInt";getSQLType(){return"smallint"}mapFromDriverValue=t=>typeof t=="string"?Number(t):t}function h9(e){return new d9(e??"")}class m9 extends rt{static[se]="PgSmallSerialBuilder";constructor(t){super(t,"number","PgSmallSerial"),this.config.hasDefault=!0,this.config.notNull=!0}build(t){return new p9(t,this.config)}}class p9 extends $e{static[se]="PgSmallSerial";getSQLType(){return"smallserial"}}function g9(e){return new m9(e??"")}class y9 extends rt{static[se]="PgTextBuilder";constructor(t,n){super(t,"string","PgText"),this.config.enumValues=n.enum}build(t){return new v9(t,this.config)}}class v9 extends $e{static[se]="PgText";enumValues=this.config.enumValues;getSQLType(){return"text"}}function b9(e,t={}){const{name:n,config:a}=an(e,t);return new y9(n,a)}class x9 extends kc{constructor(t,n,a){super(t,"string","PgTime"),this.withTimezone=n,this.precision=a,this.config.withTimezone=n,this.config.precision=a}static[se]="PgTimeBuilder";build(t){return new w9(t,this.config)}}class w9 extends $e{static[se]="PgTime";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`time${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}}function S9(e,t={}){const{name:n,config:a}=an(e,t);return new x9(n,a.withTimezone??!1,a.precision)}class _9 extends kc{static[se]="PgTimestampBuilder";constructor(t,n,a){super(t,"date","PgTimestamp"),this.config.withTimezone=n,this.config.precision=a}build(t){return new C9(t,this.config)}}class C9 extends $e{static[se]="PgTimestamp";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":` (${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){return typeof t=="string"?new Date(this.withTimezone?t:t+"+0000"):t}mapToDriverValue=t=>t.toISOString()}class E9 extends kc{static[se]="PgTimestampStringBuilder";constructor(t,n,a){super(t,"string","PgTimestampString"),this.config.withTimezone=n,this.config.precision=a}build(t){return new T9(t,this.config)}}class T9 extends $e{static[se]="PgTimestampString";withTimezone;precision;constructor(t,n){super(t,n),this.withTimezone=n.withTimezone,this.precision=n.precision}getSQLType(){return`timestamp${this.precision===void 0?"":`(${this.precision})`}${this.withTimezone?" with time zone":""}`}mapFromDriverValue(t){if(typeof t=="string")return t;const n=t.toISOString().slice(0,-1).replace("T"," ");if(this.withTimezone){const a=t.getTimezoneOffset(),o=a<=0?"+":"-";return`${n}${o}${Math.floor(Math.abs(a)/60).toString().padStart(2,"0")}`}return n}}function ra(e,t={}){const{name:n,config:a}=an(e,t);return a?.mode==="string"?new E9(n,a.withTimezone??!1,a.precision):new _9(n,a?.withTimezone??!1,a?.precision)}class j9 extends rt{static[se]="PgUUIDBuilder";constructor(t){super(t,"string","PgUUID")}defaultRandom(){return this.default(_o`gen_random_uuid()`)}build(t){return new N9(t,this.config)}}class N9 extends $e{static[se]="PgUUID";getSQLType(){return"uuid"}}function k9(e){return new j9(e??"")}class A9 extends rt{static[se]="PgVarcharBuilder";constructor(t,n){super(t,"string","PgVarchar"),this.config.length=n.length,this.config.enumValues=n.enum}build(t){return new O9(t,this.config)}}class O9 extends $e{static[se]="PgVarchar";length=this.config.length;enumValues=this.config.enumValues;getSQLType(){return this.length===void 0?"varchar":`varchar(${this.length})`}}function Tt(e,t={}){const{name:n,config:a}=an(e,t);return new A9(n,a)}class R9 extends rt{static[se]="PgBinaryVectorBuilder";constructor(t,n){super(t,"string","PgBinaryVector"),this.config.dimensions=n.dimensions}build(t){return new P9(t,this.config)}}class P9 extends $e{static[se]="PgBinaryVector";dimensions=this.config.dimensions;getSQLType(){return`bit(${this.dimensions})`}}
92function M9(e,t){const{name:n,config:a}=an(e,t);return new R9(n,a)}class D9 extends rt{static[se]="PgHalfVectorBuilder";constructor(t,n){super(t,"array","PgHalfVector"),this.config.dimensions=n.dimensions}build(t){return new I9(t,this.config)}}class I9 extends $e{static[se]="PgHalfVector";dimensions=this.config.dimensions;getSQLType(){return`halfvec(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}}function L9(e,t){const{name:n,config:a}=an(e,t);return new D9(n,a)}class z9 extends rt{static[se]="PgSparseVectorBuilder";constructor(t,n){super(t,"string","PgSparseVector"),this.config.dimensions=n.dimensions}build(t){return new U9(t,this.config)}}class U9 extends $e{static[se]="PgSparseVector";dimensions=this.config.dimensions;getSQLType(){return`sparsevec(${this.dimensions})`}}function V9(e,t){const{name:n,config:a}=an(e,t);return new z9(n,a)}class F9 extends rt{static[se]="PgVectorBuilder";constructor(t,n){super(t,"array","PgVector"),this.config.dimensions=n.dimensions}build(t){return new B9(t,this.config)}}class B9 extends $e{static[se]="PgVector";dimensions=this.config.dimensions;getSQLType(){return`vector(${this.dimensions})`}mapToDriverValue(t){return JSON.stringify(t)}mapFromDriverValue(t){return t.slice(1,-1).split(",").map(n=>Number.parseFloat(n))}}function $9(e,t){const{name:n,config:a}=an(e,t);return new F9(n,a)}function H9(){return{bigint:qU,bigserial:ZU,boolean:$T,char:t8,cidr:s8,customType:o8,date:f8,doublePrecision:p8,inet:v8,integer:w8,interval:C8,json:j8,jsonb:HT,line:M8,macaddr:L8,macaddr8:V8,numeric:K8,point:X8,geometry:s9,real:o9,serial:u9,smallint:h9,smallserial:g9,text:b9,time:S9,timestamp:ra,uuid:k9,varchar:Tt,bit:M9,halfvec:L9,sparsevec:V9,vector:$9}}const Fg=Symbol.for("drizzle:PgInlineForeignKeys"),bS=Symbol.for("drizzle:EnableRLS");class Fp extends tn{static[se]="PgTable";static Symbol=Object.assign({},tn.Symbol,{InlineForeignKeys:Fg,EnableRLS:bS});[Fg]=[];[bS]=!1;[tn.Symbol.ExtraConfigBuilder]=void 0;[tn.Symbol.ExtraConfigColumns]={}}function q9(e,t,n,a,o=e){const l=new Fp(e,a,o),d=typeof t=="function"?t(H9()):t,h=Object.fromEntries(Object.entries(d).map(([y,x])=>{const b=x;b.setName(y);const C=b.build(l);return l[Fg].push(...b.buildForeignKeys(C,l)),[y,C]})),m=Object.fromEntries(Object.entries(d).map(([y,x])=>{const b=x;b.setName(y);const C=b.buildExtraConfigColumn(l);return[y,C]})),g=Object.assign(l,h);return g[tn.Symbol.Columns]=h,g[tn.Symbol.ExtraConfigColumns]=m,n&&(g[Fp.Symbol.ExtraConfigBuilder]=n),Object.assign(g,{enableRLS:()=>(g[Fp.Symbol.EnableRLS]=!0,g)})}const sv=(e,t,n)=>q9(e,t,n,void 0);class GT{constructor(t,n){this.unique=t,this.name=n}static[se]="PgIndexBuilderOn";on(...t){return new Bp(t.map(n=>{if(fn(n,Ot))return n;n=n;const a=new Lp(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=JSON.parse(JSON.stringify(n.defaultConfig)),a}),this.unique,!1,this.name)}onOnly(...t){return new Bp(t.map(n=>{if(fn(n,Ot))return n;n=n;const a=new Lp(n.name,!!n.keyAsName,n.columnType,n.indexConfig);return n.indexConfig=n.defaultConfig,a}),this.unique,!0,this.name)}using(t,...n){return new Bp(n.map(a=>{if(fn(a,Ot))return a;a=a;const o=new Lp(a.name,!!a.keyAsName,a.columnType,a.indexConfig);return a.indexConfig=JSON.parse(JSON.stringify(a.defaultConfig)),o}),this.unique,!0,this.name,t)}}class Bp{static[se]="PgIndexBuilder";config;constructor(t,n,a,o,l="btree"){this.config={name:o,columns:t,unique:n,only:a,method:l}}concurrently(){return this.config.concurrently=!0,this}with(t){return this.config.with=t,this}where(t){return this.config.where=t,this}build(t){return new G9(this.config,t)}}class G9{static[se]="PgIndex";config;constructor(t,n){this.config={...t,table:n}}}function K9(e){return new GT(!1,e)}function zB(e){return new GT(!0,e)}sv("sessions",{sid:Tt("sid").primaryKey(),sess:HT("sess").notNull(),expire:ra("expire").notNull()},e=>[K9("IDX_session_expire").on(e.expire)]);sv("users",{id:Tt("id").primaryKey().default(_o`gen_random_uuid()`),email:Tt("email").unique(),firstName:Tt("first_name"),lastName:Tt("last_name"),profileImageUrl:Tt("profile_image_url"),role:Tt("role"),phone:Tt("phone"),referralSource:Tt("referral_source"),isDisabled:$T("is_disabled").default(!1),accountStatus:Tt("account_status").default("active"),adminNotes:Tt("admin_notes"),bankName:Tt("bank_name"),bankRoutingNumber:Tt("bank_routing_number"),bankAccountNumber:Tt("bank_account_number"),bankAccountHolderName:Tt("bank_account_holder_name"),lastLoginAt:ra("last_login_at"),createdAt:ra("created_at").defaultNow(),updatedAt:ra("updated_at").defaultNow()});const Q9=["AirForums","Airstream Marketplace","Facebook","Google","Instagram","Other","Referral","RVTrader","TikTok","YouTube"];sv("pending_admin_approvals",{id:Tt("id").primaryKey().default(_o`gen_random_uuid()`),userId:Tt("user_id").notNull(),userEmail:Tt("user_email").notNull(),requestedBy:Tt("requested_by").notNull(),requestedByEmail
92:Tt("requested_by_email").notNull(),approvalToken:Tt("approval_token").notNull().unique(),status:Tt("status").default("pending"),expiresAt:ra("expires_at").notNull(),processedAt:ra("processed_at"),processedBy:Tt("processed_by"),createdAt:ra("created_at").defaultNow()});function Y9(){const{user:e,isAuthenticated:t,isLoading:n}=Gr(),{toast:a}=ti(),[o,l]=v.useState(!1),[d,h]=v.useState({firstName:"",lastName:"",phone:"",role:"buyer",referralSource:""});v.useEffect(()=>{if(!n&&t&&e){if(e.role==="admin")return;(!e.firstName||!e.lastName||!e.phone||!e.referralSource)&&(h({firstName:e.firstName||"",lastName:e.lastName||"",phone:e.phone||"",role:e.role||"buyer",referralSource:e.referralSource||""}),l(!0))}},[n,t,e]);const m=tr({mutationFn:async y=>pn("PATCH","/api/auth/user",y),onSuccess:()=>{On.invalidateQueries({queryKey:["/api/auth/user"]}),a({title:"Welcome to Airstream Hunter!",description:"Your profile has been set up successfully."}),l(!1)},onError:()=>{a({title:"Error",description:"Failed to save your profile. Please try again.",variant:"destructive"})}}),g=y=>{if(y.preventDefault(),!d.firstName||!d.lastName||!d.phone||!d.referralSource){a({title:"Please complete all required fields",description:"First name, last name, phone, and referral source are required.",variant:"destructive"});return}m.mutate(d)};return o?u.jsx(fo,{open:o,onOpenChange:()=>{},children:u.jsxs($a,{className:"sm:max-w-md [&>button]:hidden",onPointerDownOutside:y=>y.preventDefault(),onEscapeKeyDown:y=>y.preventDefault(),children:[u.jsxs(lc,{children:[u.jsx(cc,{className:"text-xl",children:"Welcome to Airstream Hunter!"}),u.jsx(uc,{children:"Let's set up your profile to get you started. This only takes a moment."})]}),u.jsxs("form",{onSubmit:g,className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[u.jsxs("div",{className:"space-y-2",children:[u.jsx(Xs,{htmlFor:"firstName",children:"First Name *"}),u.jsx(Wl,{id:"firstName",value:d.firstName,onChange:y=>h({...d,firstName:y.target.value}),placeholder:"John","data-testid":"input-welcome-firstname"})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Xs,{htmlFor:"lastName",children:"Last Name *"}),u.jsx(Wl,{id:"lastName",value:d.lastName,onChange:y=>h({...d,lastName:y.target.value}),placeholder:"Smith","data-testid":"input-welcome-lastname"})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Xs,{htmlFor:"phone",children:"Phone *"}),u.jsx(Wl,{id:"phone",type:"tel",value:d.phone,onChange:y=>h({...d,phone:y.target.value}),placeholder:"(555) 123-4567",required:!0,"data-testid":"input-welcome-phone"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"For account verification and Airstream Hunter use only. Your number is never shown or released to the public."})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Xs,{children:"I'm looking to..."}),u.jsxs(wo,{value:d.role,onValueChange:y=>h({...d,role:y}),children:[u.jsx(Qa,{"data-testid":"select-welcome-role",children:u.jsx(So,{placeholder:"Select your interest"})}),u.jsxs(Ya,{children:[u.jsx(_n,{value:"buyer",children:"Buy an Airstream"}),u.jsx(_n,{value:"seller",children:"Sell an Airstream"}),u.jsx(_n,{value:"both",children:"Buy and Sell"})]})]})]}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Xs,{children:"How did you hear about us? *"}),u.jsxs(wo,{value:d.referralSource,onValueChange:y=>h({...d,referralSource:y}),children:[u.jsx(Qa,{"data-testid":"select-welcome-referral",children:u.jsx(So,{placeholder:"Select an option"})}),u.jsx(Ya,{children:Q9.map(y=>u.jsx(_n,{value:y,children:y},y))})]})]}),u.jsx(Wy,{className:"pt-4",children:u.jsx(Te,{type:"submit",disabled:m.isPending,className:"w-full","data-testid":"button-welcome-submit",children:m.isPending?u.jsxs(u.Fragment,{children:[u.jsx(Fa,{className:"h-4 w-4 mr-2 animate-spin"}),"Saving..."]}):"Get Started"})})]})]})}):null}const kn=v.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Pe("shadcn-card rounded-xl border bg-card border-card-border text-card-foreground shadow-sm",e),...t}));kn.displayName="Card";const av=v.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Pe("flex flex-col space-y-1.5 p-6",e),...t}));
92av.displayName="CardHeader";const iv=v.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Pe("text-2xl font-semibold leading-none tracking-tight",e),...t}));iv.displayName="CardTitle";const Z9=v.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Pe("text-sm text-muted-foreground",e),...t}));Z9.displayName="CardDescription";const Un=v.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Pe("p-6 pt-0",e),...t}));Un.displayName="CardContent";const W9=v.forwardRef(({className:e,...t},n)=>u.jsx("div",{ref:n,className:Pe("flex items-center p-6 pt-0",e),...t}));W9.displayName="CardFooter";function X9({rv:e,featured:t=!1}){const{isAdmin:n}=Af(),{isAuthenticated:a}=Gr(),{toast:o}=ti(),[,l]=da(),{data:d}=Vn({queryKey:["/api/favorites",e.id],enabled:a}),h=d?.isFavorite||!1,m=tr({mutationFn:async()=>h?pn("DELETE",`/api/favorites/${e.id}`):pn("POST",`/api/favorites/${e.id}`),onSuccess:()=>{On.invalidateQueries({queryKey:["/api/favorites"]}),o({title:h?"Removed from Favorites":"Added to Favorites",description:`${e.year} Airstream ${e.model}`})},onError:()=>{o({title:"Error",description:"Failed to update favorites",variant:"destructive"})}}),g=L=>{if(L.preventDefault(),L.stopPropagation(),!a){l("/get-started?redirect=/airstreams-for-sale");return}m.mutate()},y=L=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(L),x=L=>new Intl.NumberFormat("en-US").format(L),b=()=>{On.invalidateQueries({predicate:L=>{const V=L.queryKey[0];return typeof V=="string"&&V.startsWith("/api/rvs")}})},C=tr({mutationFn:async L=>pn("PATCH",`/api/admin/rvs/${e.id}`,L),onSuccess:()=>{b(),o({title:"Updated",description:"Listing updated successfully"})},onError:(L,V)=>{if(L.message.startsWith("409")){window.confirm("This listing has no Premium payment on record. Publish it as a comped (free) Premium listing?")&&C.mutate({...V,comp:!0});return}o({title:"Error",description:"Failed to update listing",variant:"destructive"})}}),E=tr({mutationFn:async()=>pn("DELETE",`/api/admin/rvs/${e.id}`),onSuccess:()=>{b(),o({title:"Deleted",description:"Listing deleted successfully"})},onError:()=>{o({title:"Error",description:"Failed to delete listing",variant:"destructive"})}}),w=(L,V)=>{V.preventDefault(),V.stopPropagation(),C.mutate({[L]:!e[L]})},_=(L,V)=>{V.preventDefault(),V.stopPropagation(),C.mutate({status:L})},R=L=>{L.preventDefault(),L.stopPropagation(),l(`/admin?edit=${e.id}`)},A=L=>{L.preventDefault(),L.stopPropagation(),confirm("Are you sure you want to delete this listing?")&&E.mutate()},N=e.images&&e.images.length>0?e.images:["https://images.unsplash.com/photo-1596464716127-f2a82984de30?w=600&h=400&fit=crop"],O=N.length>1,[U,Y]=v.useState(0),[F,W]=v.useState(!1),ce=v.useRef(null),fe=v.useRef(!1),X=Math.min(U,N.length-1),ae=N[X],oe=typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(prefers-reduced-motion: reduce)").matches;v.useEffect(()=>{if(!e.guidedSale||!F||!O||oe)return;const L=setInterval(()=>{Y(V=>(V+1)%N.length)},1600);return()=>clearInterval(L)},[e.guidedSale,F,O,oe,N.length]);const ve=(L,V)=>{V.preventDefault(),V.stopPropagation(),Y((L+N.length)%N.length)},D=L=>{L.preventDefault(),L.stopPropagation(),Y(V=>(V+1)%N.length)},q=L=>{L.preventDefault(),L.stopPropagation(),Y(V=>(V-1+N.length)%N.length)},te=L=>{ce.current=L.touches[0].clientX,fe.current=!1},ue=L=>{if(ce.current===null||!O)return;const V=L.changedTouches[0].clientX-ce.current;Math.abs(V)>40&&(fe.current=!0,Y(J=>V<0?(J+1)%N.length:(J-1+N.length)%N.length)),ce.current=null},j=L=>{fe.current&&(L.preventDefault(),L.stopPropagation(),fe.current=!1)};return u.jsxs("div",{className:"relative",children:[n&&u.jsx("div",{className:"absolute top-2 right-2 z-20",onClick:L=>{L.preventDefault(),L.stopPropagation()},children:u.jsxs(Md,{children:[u.jsx(Dd,{asChild:!0,onClick:L=>{L.preventDefault(),L.stopPropagation()},children:u.jsx(Te,{variant:"secondary",size:"icon",className:"h-8 w-8 bg-background/90 backdrop-blur-sm shadow-md","data-testid":`button-admin-menu-${e.id}`,children:u.jsx(TC,{className:"h-4 w-4"})})}),u.jsxs(oc,{align:"end",className:"w-48",onClick:L=>{L.preventDefault(),L.stopPropagation()},children:[u.jsxs($t,{onSelect:L=>L.preventDefault(),onClick:L=>w("spotlight",L),className:"gap-2","data-testid":`button-toggle-spotlight-${e.id}`,children:[u.jsx(yo,{className:"h-4 w-4 text-purple-500"}),u.jsx("span",{className:"flex-1",children:"Spotlight"}),e.spotlight&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsxs($t,{onSelect:L=>L.preventDefault(),onClick:L=>w("featured",L),className:"gap-2","data-testid":`button-toggle-featured-${e.id}`,children:[u.jsx(ec,{className:"h-4 w-4 text-primary"}),u.jsx("span",{className:"flex-1",children:"Premium"}),e.featured&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsxs($t,{onSelect:L=>L.preventDefault(),onClick:L=>w("guidedSale",L),className:"gap-2","data-testid":`button-toggle-guided-${e.id}`,children:[u.jsx(go,{className:"h-4 w-4 text-amber-500"}),u.jsx("span",{className:"flex-1",children:"Guided Sale"}),e.guidedSale&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsx(bo,{}),u.jsxs($t,{onSelect:L=>L.preventDefault(),onClick:L=>_("for_sale",L),className:"gap-2","data-testid":`button-status-for-sale-${e.id}`,children:[u.jsx(Ba,{className:"h-4 w-4 text-primary"}),u.jsx("span",{className:"flex-1",children:"For Sale"}),e.status==="for_sale"&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsxs($t,{onSelect:L=>L.preventDefault(),onClick:L=>_("sale_pending",L),className:"gap-2","data-testid":`button-status-pending-${e.id}`,children:[u.jsx(Ba,{className:"h-4 w-4 text-blue-500"}),u.jsx("span",{className:"flex-1",children:"Sale Pending"}),e.status==="sale_pending"&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsxs($t,{onSelect:L=>L.preventDefault(),onClick:L=>_("sold",L),className:"gap-2","data-testid":`button-status-sold-${e.id}`,children:[u.jsx(Ba,{className:"h-4 w-4 text-destructive"}),u.jsx("span",{className:"flex-1",children:"Sold"}),e.status==="sold"&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsx(bo,{}),u.jsxs($t,{onSelect:L=>L.preventDefault(),onClick:R,className:"gap-2","data-testid":`button-edit-listing-${e.id}`,children:[u.jsx(xg,{className:"h-4 w-4"}),u.jsx("span",{children:"Edit Listing"})]}),u.jsxs($t,{onSelect:L=>L.preventDefault(),onClick:A,className:"gap-2 text-destructive focus:text-destructive","data-testid":`button-delete-listing-${e.id}`,children:[u.jsx(jd,{className:"h-4 w-4"}),u.jsx("span",{children:"Delete"})]})]})]})}),u.jsx(ze,{href:`/airstream/${e.slug||e.id}`,children:u.jsxs(kn,{className:`group overflow-visible hover-elevate cursor-pointer transition-shadow hover:ring-4 hover:ring-primary hover:shadow-[0_0_0_1px_hsl(var(--primary)),0_8px_24px_hsl(var(--primary)/0.35)] ${t?"lg:flex lg:flex-row":""} ${e.guidedSale?"ring-2 ring-amber-400 dark:ring-amber-500/80 shadow-amber-500/10":""}`,"data-testid":`card-rv-${e.id}`,children:[u.jsx("div",{className:`relative ${t?"lg:w-2/5":""}`,children:u.jsxs("div",{className:"aspect-[4/3] relative overflow-hidden rounded-t-xl",onMouseEnter:()=>W(!0),onMouseLeave:()=>{W(!1),e.guidedSale&&Y(0)},onTouchStart:te,onTouchEnd:ue,onClickCapture:j,children:[u.jsx("img",{src:ae,alt:`${e.year} ${e.make} ${e.model}`,className:"w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"}),u.jsx("div",{className:`pointer-events-none absolute inset-0 z-[5] rounded-t-xl opacity-0 transition-opacity duration-300 group-hover:opacity-100 ${e.guidedSale?"ring-4 ring-inset ring-amber-400 dark:ring-amber-400 shadow-[inset_0_0_36px_rgba(251,191,36,0.7)]":"ring-4 ring-inset ring-primary shadow-[inset_0_0_36px_hsl(var(--primary)/0.65)]"}`}),O&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"absolute top-2 left-2 z-10 flex items-center gap-1 rounded-full bg-black/60 px-2 py-0.5 text-[11px] font-medium text-white backdrop-blur-sm","data-testid":`badge-photo-count-${e.id}`,children:[u.jsx(KP,{className:"h-3 w-3"}),X+1,"/",N.length]}),u.jsx("button",{type:"button","aria-label":"Previous photo",onClick:q,className:"absolute left-2 top-1/2 z-10 flex h-7 w-7 -translate-y-1/2 items-center justify-center rounded-full bg-background/80 text-foreground opacity-0 shadow-md backdrop-blur-sm transition-opacity duration-200 hover:bg-background group-hover:opacity-100 focus:opacity-100","data-testid":`button-photo-prev-${e.id}`,children:u.jsx(vd,{className:"h-4 w-4"})}
92),u.jsx("button",{type:"button","aria-label":"Next photo",onClick:D,className:"absolute right-2 top-1/2 z-10 flex h-7 w-7 -translate-y-1/2 items-center justify-center rounded-full bg-background/80 text-foreground opacity-0 shadow-md backdrop-blur-sm transition-opacity duration-200 hover:bg-background group-hover:opacity-100 focus:opacity-100","data-testid":`button-photo-next-${e.id}`,children:u.jsx(Ed,{className:"h-4 w-4"})}),N.length<=10&&u.jsx("div",{className:"absolute bottom-2 left-1/2 z-10 flex -translate-x-1/2 gap-1.5 rounded-full bg-black/40 px-2 py-1 opacity-0 backdrop-blur-sm transition-opacity duration-200 group-hover:opacity-100",children:N.map((L,V)=>u.jsx("button",{type:"button","aria-label":`Go to photo ${V+1}`,onClick:J=>ve(V,J),className:`h-1.5 rounded-full transition-all ${V===X?"w-4 bg-white":"w-1.5 bg-white/50"}`,"data-testid":`dot-photo-${e.id}-${V}`},V))})]})]})}),u.jsx(Un,{className:`p-4 ${t?"lg:flex-1 lg:p-6":""}`,children:u.jsxs("div",{className:"space-y-2",children:[u.jsx("div",{children:u.jsxs("h3",{className:"font-semibold text-lg leading-tight",children:[e.year," Airstream ",e.model," ",e.length&&u.jsxs("span",{className:"text-muted-foreground font-normal",children:["· ",e.length," ft"]})]})}),u.jsxs("div",{className:"flex flex-wrap gap-x-3 gap-y-1 text-sm text-muted-foreground",children:[e.location&&u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx(xy,{className:"h-3.5 w-3.5"}),u.jsx("span",{children:e.location})]}),e.layout&&u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx(Nd,{className:"h-3.5 w-3.5"}),u.jsx("span",{children:e.layout})]}),e.type==="Touring Coach"&&e.mileage&&u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx(FP,{className:"h-3.5 w-3.5"}),u.jsxs("span",{children:[x(e.mileage)," mi"]})]})]}),u.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[u.jsx(kt,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-5",children:"Airstream Hunter"}),e.spotlight&&u.jsxs(kt,{className:"text-[10px] px-1.5 py-0 h-5 bg-purple-500 text-white flex items-center gap-0.5",children:[u.jsx(yo,{className:"h-3 w-3"}),"Spotlight"]}),e.featured&&u.jsxs(kt,{className:"text-[10px] px-1.5 py-0 h-5 bg-primary text-primary-foreground flex items-center gap-0.5",children:[u.jsx(ec,{className:"h-3 w-3"}),"Premium"]}),e.guidedSale&&u.jsxs(kt,{className:"text-[10px] px-1.5 py-0 h-5 bg-amber-500 text-white flex items-center gap-0.5",children:[u.jsx(go,{className:"h-3 w-3"}),"Guided Sale"]}),e.dealerId&&u.jsxs(kt,{className:"text-[10px] px-1.5 py-0 h-5 bg-teal-500 text-white flex items-center gap-0.5","data-testid":`badge-dealer-${e.id}`,children:[u.jsx(_C,{className:"h-3 w-3"}),"Dealer"]})]}),u.jsxs("div",{className:"pt-2 flex items-center gap-2 border-t mt-2",children:[u.jsx("p",{className:"text-xl font-bold text-primary",children:y(e.price)}),n?u.jsxs(wo,{value:e.status||"for_sale",onValueChange:L=>{C.mutate({status:L})},disabled:C.isPending,children:[u.jsx(Qa,{className:`w-[90px] h-7 text-xs ${e.status==="sold"?"border-destructive text-destructive":e.status==="sale_pending"?"border-blue-500 text-blue-600":"border-primary text-primary"}`,onClick:L=>L.preventDefault(),"data-testid":`select-status-card-${e.id}`,children:u.jsx(So,{})}),u.jsxs(Ya,{onClick:L=>L.stopPropagation(),children:[u.jsx(_n,{value:"for_sale",children:"For Sale"}),u.jsx(_n,{value:"sale_pending",children:"Pending"}),u.jsx(_n,{value:"sold",children:"Sold"})]})]}):u.jsx(kt,{className:`text-xs ${e.status==="sold"?"bg-red-500 text-white":e.status==="sale_pending"?"bg-blue-500 text-white":"bg-primary text-primary-foreground"}`,children:e.status==="sold"?"Sold":e.status==="sale_pending"?"Pending":"For Sale"}),u.jsx(Te,{variant:h?"default":"outline",size:"sm",className:"h-7 text-xs ml-auto",onClick:g,disabled:m.isPending,"data-testid":`button-favorite-${e.id}`,children:h?"Saved":"Save to Favorites"})]})]})})]})})]})}function J9({listing:e,onClick:t}){const{isAdmin:n}=Af(),{isAuthenticated:a}=Gr(),{toast:o}=ti(),{data:l}=Vn({queryKey:["/api/favorites/external",e.id],enabled:a}),d=l?.isFavorite||!1,h=tr({mutationFn:async()=>d?pn("DELETE",`/api/favorites/external/${e.id}`):pn("POST",`/api/favorites/external/${e.id}`),onSuccess:()=>{On.invalidateQueries({queryKey:["/api/favorites"]}),On.invalidateQueries({queryKey:["/api/favorites/external",e.id]}),o({title:d?"Removed from Favorites":"Added to Favorites",description:`${e.year} Airstream ${e.model}`})},onError:()=>{o({title:"Error",description:"Failed to update favorites",variant:"destructive"})}}),m=w=>{if(w.preventDefault(),w.stopPropagation(),!a){window.location.href="/get-started?redirect=/airstreams-for-sale";return}h.mutate()},g=()=>{On.invalidateQueries({queryKey:["/api/external-listings"]}),On.invalidateQueries({queryKey:["/api/external-listings/spotlight"]})},y=tr({mutationFn:async w=>pn("PATCH",`/api/external-listings/${e.id}`,w),onSuccess:()=>{g(),o({title:"Updated",description:"Listing updated successfully"})},onError:()=>{o({title:"Error",description:"Failed to update listing",variant:"destructive"})}}),x=tr({mutationFn:async()=>pn("DELETE",`/api/external-listings/${e.id}`),onSuccess:()=>{g(),o({title:"Deleted",description:"Listing deleted successfully"})},onError:()=>{o({title:"Error",description:"Failed to delete listing",variant:"destructive"})}}),b=(w,_)=>{_.preventDefault(),_.stopPropagation(),y.mutate({[w]:!e[w]})},C=(w,_)=>{_.preventDefault(),_.stopPropagation(),y.mutate({status:w})},E=w=>{w.preventDefault(),w.stopPropagation(),confirm("Are you sure you want to delete this listing?")&&x.mutate()};return u.jsxs("div",{className:"relative",children:[n&&u.jsx("div",{className:"absolute top-2 right-2 z-20",onClick:w=>{w.preventDefault(),w.stopPropagation()},children:u.jsxs(Md,{children:[u.jsx(Dd,{asChild:!0,onClick:w=>{w.preventDefault(),w.stopPropagation()},children:u.jsx(Te,{variant:"secondary",size:"icon",className:"h-8 w-8 bg-background/90 backdrop-blur-sm shadow-md","data-testid":`button-admin-menu-external-${e.id}`,children:u.jsx(TC,{className:"h-4 w-4"})})}),u.jsxs(oc,{align:"end",className:"w-48",onClick:w=>{w.preventDefault(),w.stopPropagation()},children:[u.jsxs($t,{onSelect:w=>w.preventDefault(),onClick:w=>b("spotlight",w),className:"gap-2","data-testid":`button-toggle-spotlight-external-${e.id}`,children:[u.jsx(yo,{className:"h-4 w-4 text-purple-500"}),u.jsx("span",{className:"flex-1",children:"Spotlight"}),e.spotlight&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsxs($t,{onSelect:w=>w.preventDefault(),onClick:w=>b("featured",w),className:"gap-2","data-testid":`button-toggle-featured-external-${e.id}`,children:[u.jsx(ec,{className:"h-4 w-4 text-primary"}),u.jsx("span",{className:"flex-1",children:"Premium"}),e.featured&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsxs($t,{onSelect:w=>w.preventDefault(),onClick:w=>b("guidedSale",w),className:"gap-2","data-testid":`button-toggle-guided-external-${e.id}`,children:[u.jsx(go,{className:"h-4 w-4 text-amber-500"}),u.jsx("span",{className:"flex-1",children:"Guided Sale"}),e.guidedSale&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsx(bo,{}),u.jsxs($t,{onSelect:w=>w.preventDefault(),onClick:w=>C("for_sale",w),className:"gap-2","data-testid":`button-status-for-sale-external-${e.id}`,children:[u.jsx(Ba,{className:"h-4 w-4 text-primary"}),u.jsx("span",{className:"flex-1",children:"For Sale"}),(e.status==="for_sale"||!e.status)&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsxs($t,{onSelect:w=>w.preventDefault(),onClick:w=>C("sale_pending",w),className:"gap-2","data-testid":`button-status-pending-external-${e.id}`,children:[u.jsx(Ba,{className:"h-4 w-4 text-blue-500"}),u.jsx("span",{className:"flex-1",children:"Sale Pending"}),e.status==="sale_pending"&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsxs($t,{onSelect:w=>w.preventDefault(),onClick:w=>C("sold",w),className:"gap-2","data-testid":`button-status-sold-external-${e.id}`,children:[u.jsx(Ba,{className:"h-4 w-4 text-destructive"}),u.jsx("span",{className:"flex-1",children:"Sold"}),e.status==="sold"&&u.jsx(rn,{className:"h-4 w-4 text-primary"})]}),u.jsx(bo,{}),u.jsxs($t,{onSelect:w=>w.preventDefault(),onClick:E,className:"gap-2 text-destructive focus:text-destructive","data-testid":`button-delete-external-${e.id}`,children:[u.jsx(jd,{className:"h-4 w-4"}),u.jsx("span",{children:"Delete"})]})]})]})}),u.jsx("div",{className:"group cursor-pointer",onClick:t,"data-testid":`external-listing-${e.id}`,children:u.jsxs(kn,{className:"overflow-visible hover-elevate",children:[u.jsx("div",{className:"relative",children:u.jsx("div",{className:"aspect-[4/3] overflow-hidden rounded-t-lg",children:e.imageObjectKey||e.imageUrl?u.jsx("img",{src:e.imageObjectKey||e.imageUrl?.replace(/&/g,"&")||"",alt:`${e.year} Airstream ${e.model}`,className:"w-full h-full object-cover",onError:w=>{const _=w.target;e.imageObjectKey&&e.imageUrl&&_.src!==e.imageUrl.replace(/&/g,"&")?_.src=e.imageUrl.replace(/&/g,"&"):_.src="https://images.unsplash.com/photo-1565793298595-6a879b1d9492?ixlib=rb-4.0.3&auto=format&fit=crop&w=600&q=80"}}):u.jsx("div",{className:"w-full h-full bg-muted flex items-center justify-center",children:u.jsx("span",{className:"text-muted-foreground",children:"No Image"})})})}),u.jsx(Un,{className:"p-4",children:u.jsxs("div",{className:"space-y-2",children:[u.jsx("div",{children:u.jsxs("h3",{className:"font-semibold text-lg leading-tight group-hover:text-primary transition-colors",children:[e.year," Airstream ",e.model," ",e.length&&u.jsxs("span",{className:"text-muted-foreground font-normal",children:["· ",e.length," ft"]})]})}),u.jsx("div",{className:"flex flex-wrap gap-x-3 gap-y-1 text-sm text-muted-foreground",children:e.city&&e.state&&u.jsxs("div",{className:"flex items-center gap-1",children:[u.jsx(xy,{className:"h-3.5 w-3.5"}),u.jsxs("span",{children:[e.city,", ",e.state]})]})}),u.jsxs("div",{className:"flex flex-wrap gap-1.5",children:[u.jsx(kt,{variant:"outline",className:"text-[10px] px-1.5 py-0 h-5",children:e.source}),e.spotlight&&u.jsxs(kt,{className:"text-[10px] px-1.5 py-0 h-5 bg-purple-500 text-white flex items-center gap-0.5",children:[u.jsx(yo,{className:"h-3 w-3"}),"Spotlight"]}),e.featured&&u.jsxs(kt,{className:"text-[10px] px-1.5 py-0 h-5 bg-primary text-primary-foreground flex items-center gap-0.5",children:[u.jsx(ec,{className:"h-3 w-3"}),"Premium"]}),e.guidedSale&&u.jsxs(kt,{className:"text-[10px] px-1.5 py-0 h-5 bg-amber-500 text-white flex items-center gap-0.5",children:[u.jsx(go,{className:"h-3 w-3"}),"Guided Sale"]})]}),u.jsxs("div",{className:"pt-2 flex items-center gap-2 border-t mt
92-2",children:[u.jsx("p",{className:"text-xl font-bold text-primary",children:e.price?`$${e.price.toLocaleString()}`:"Contact"}),n?u.jsxs(wo,{value:e.status||"for_sale",onValueChange:w=>{y.mutate({status:w})},disabled:y.isPending,children:[u.jsx(Qa,{className:`w-[90px] h-7 text-xs ${e.status==="sold"?"border-destructive text-destructive":e.status==="sale_pending"?"border-blue-500 text-blue-600":"border-primary text-primary"}`,onClick:w=>w.preventDefault(),"data-testid":`select-status-card-external-${e.id}`,children:u.jsx(So,{})}),u.jsxs(Ya,{onClick:w=>w.stopPropagation(),children:[u.jsx(_n,{value:"for_sale",children:"For Sale"}),u.jsx(_n,{value:"sale_pending",children:"Pending"}),u.jsx(_n,{value:"sold",children:"Sold"})]})]}):u.jsx(kt,{className:`text-xs ${e.status==="sold"?"bg-red-500 text-white":e.status==="sale_pending"?"bg-blue-500 text-white":"bg-primary text-primary-foreground"}`,children:e.status==="sold"?"Sold":e.status==="sale_pending"?"Pending":"For Sale"}),u.jsx(Te,{variant:d?"default":"outline",size:"sm",className:"h-7 text-xs ml-auto",onClick:m,disabled:h.isPending,"data-testid":`button-favorite-external-${e.id}`,children:d?"Saved":"Save to Favorites"})]})]})})]})})]})}var KT={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},xS=I.createContext&&I.createContext(KT),eV=["attr","size","title"];function tV(e,t){if(e==null)return{};var n,a,o=nV(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)n=l[a],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function nV(e,t){if(e==null)return{};var n={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(t.indexOf(a)!==-1)continue;n[a]=e[a]}return n}function Ud(){return Ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Ud.apply(null,arguments)}function wS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function Vd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wS(Object(n),!0).forEach(function(a){rV(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wS(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function rV(e,t,n){return(t=sV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sV(e){var t=aV(e,"string");return typeof t=="symbol"?t:t+""}function aV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function QT(e){return e&&e.map((t,n)=>I.createElement(t.tag,Vd({key:n},t.attr),QT(t.child)))}function Do(e){return t=>I.createElement(iV,Ud({attr:Vd({},e.attr)},t),QT(e.child))}function iV(e){var t=n=>{var a=e.attr,o=e.size,l=e.title,d=tV(e,eV),h=o||n.size||"1em",m;return n.className&&(m=n.className),e.className&&(m=(m?m+" ":"")+e.className),I.createElement("svg",Ud({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,a,d,{className:m,style:Vd(Vd({color:e.color||n.color},n.style),e.style),height:h,width:h,xmlns:"http://www.w3.org/2000/svg"}),l&&I.createElement("title",null,l),e.children)};return xS!==void 0?I.createElement(xS.Consumer,null,n=>t(n)):t(KT)}function oV(e){return Do({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"},child:[]}]})(e)}function UB(e){return Do({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 0C5.373 0 0 5.373 0 12c0 3.314 1.343 6.314 3.515 8.485l-2.286 2.286C.775 23.225 1.097 24 1.738 24H12c6.627 0 12-5.373 12-12S18.627 0 12 0Zm4.388 3.199c1.104 0 1.999.895 1.999 1.999 0 1.105-.895 2-1.999 2-.946 0-1.739-.657-1.947-1.539v.002c-1.147.162-2.032 1.15-2.032 2.341v.007c1.776.067 3.4.567 4.686 1.363.473-.363 1.064-.58 1.707-.58 1.547 0 2.802 1.254 2.802 2.802 0 1.117-.655 2.081-1.601 2.531-.088 3.256-3.637 5.876-7.997 5.876-4.361 0-7.905-2.617-7.998-5.87-.954-.447-1.614-1.415-1.614-2.538 0-1.548 1.255-2.802 2.803-2.802.645 0 1.239.218 1.712.585 1.275-.79 2.881-1.291 4.64-1.365v-.01c0-1.663 1.263-3.034 2.88-3.207.188-.911.993-1.595 1.959-1.595Zm-8.085 8.376c-.784 0-1.459.78-1.506 1.797-.047 1.016.
9264 1.429 1.426 1.429.786 0 1.371-.369 1.418-1.385.047-1.017-.553-1.841-1.338-1.841Zm7.406 0c-.786 0-1.385.824-1.338 1.841.047 1.017.634 1.385 1.418 1.385.785 0 1.473-.413 1.426-1.429-.046-1.017-.721-1.797-1.506-1.797Zm-3.703 4.013c-.974 0-1.907.048-2.77.135-.147.015-.241.168-.183.305.483 1.154 1.622 1.964 2.953 1.964 1.33 0 2.47-.81 2.953-1.964.057-.137-.037-.29-.184-.305-.863-.087-1.795-.135-2.769-.135Z"},child:[]}]})(e)}function lV(e){return Do({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.678 16.672c0 2.175.002 4.565-.001 6.494-.001.576-.244.814-.817.833-7.045.078-8.927-7.871-4.468-11.334-1.95.016-4.019.007-5.986.007-1.351 0-1.414-.01-1.405-1.351.258-6.583 7.946-8.275 11.323-3.936L11.308.928c-.001-.695.212-.906.906-.925 6.409-.187 9.16 7.308 4.426 11.326l6.131.002c1.097 0 1.241.105 1.228 1.217-.223 6.723-7.802 8.376-11.321 4.124zm.002-15.284l-.003 9.972c6.56-.465 6.598-9.532.003-9.972zm-1.36 21.224l-.001-9.97c-6.927.598-6.29 9.726.002 9.97zM1.4 11.315l9.95.008c-.527-6.829-9.762-6.367-9.95-.008zm11.238 1.365c.682 6.875 9.67 6.284 9.977.01z"},child:[]}]})(e)}function cV(e){return Do({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.48 10.92v3.28h7.84c-.24 1.84-.853 3.187-1.787 4.133-1.147 1.147-2.933 2.4-6.053 2.4-4.827 0-8.6-3.893-8.6-8.72s3.773-8.72 8.6-8.72c2.6 0 4.507 1.027 5.907 2.347l2.307-2.307C18.747 1.44 16.133 0 12.48 0 5.867 0 .307 5.387.307 12s5.56 12 12.173 12c3.573 0 6.267-1.173 8.373-3.36 2.16-2.16 2.84-5.213 2.84-7.667 0-.76-.053-1.467-.173-2.053H12.48z"},child:[]}]})(e)}function uV(e){return Do({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M9.101 23.691v-7.98H6.627v-3.667h2.474v-1.58c0-4.085 1.848-5.978 5.858-5.978.401 0 .955.042 1.468.103a8.68 8.68 0 0 1 1.141.195v3.325a8.623 8.623 0 0 0-.653-.036 26.805 26.805 0 0 0-.733-.009c-.707 0-1.259.096-1.675.309a1.686 1.686 0 0 0-.679.622c-.258.42-.374.995-.374 1.752v1.297h3.919l-.386 2.103-.287 1.564h-3.246v8.245C19.396 23.238 24 18.179 24 12.044c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.628 3.874 10.35 9.101 11.647Z"},child:[]}]})(e)}function dV(e){return Do({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701"},child:[]}]})(e)}function fV({listing:e,isOpen:t,onClose:n}){const{isAuthenticated:a}=Gr();da();const{toast:o}=ti(),[l,d]=v.useState(""),[h,m]=v.useState(!1),[g,y]=v.useState(!1),[x,b]=v.useState(!1),C=tr({mutationFn:async()=>pn("POST","/api/favorites",{listingId:e?.id,listingType:"external"}),onSuccess:()=>{On.invalidateQueries({queryKey:["/api/favorites"]}),o({title:"Saved to Favorites",description:`${e?.year} ${e?.model} has been saved`}),window.open(e?.listingUrl,"_blank","noopener,noreferrer"),A()},onError:()=>{o({title:"Couldn't save",description:"There was an issue saving this listing. Opening it anyway.",variant:"destructive"}),window.open(e?.listingUrl,"_blank","noopener,noreferrer"),A()}});if(!e)return null;const E=()=>{C.mutate()},w=N=>{e&&localStorage.setItem("pendingFavorite",JSON.stringify({type:"external",listingId:e.id,listingTitle:`${e.year} ${e.model}`})),window.location.href="/sign-in"},_=async()=>{if(!l||!l.includes("@")){o({title:"Invalid email",description:"Please enter a valid email address",variant:"destructive"});return}m(!0);try{await pn("POST","/api/email-listing",{email:l,listingId:e.id,listingType:"external"}),y(!0),o({title:"Email sent!",description:"Check your inbox for the listing details"})}catch{m(!1),o({title:"Couldn't send email right now",description:"You can still view this listing - we'll open it in a new tab.",variant:"destructive"}),setTimeout(()=>{window.open(e.listingUrl,"_blank","noopener,noreferrer"),A()},2e3)}},R=()=>{window.open(e.listingUrl,"_blank","noopener,noreferrer"),n(),y(!1),b(!1),d("")},A=()=>{n(),y(!1),b(!1),d("")},k=[{icon:tf,title:"Save Your Favorites",description:"Keep track of listings you love"},{icon:aP,title:"Get New Listing Alerts",description:"Be the first to know when new Airstreams hit the market"},{icon:jP,title:"Unlock Market Pricing",description:"See what similar Airstreams are selling for"}];return a?u.jsx(fo,{open:t,onOpenChange:N=>!N&&A(),children:u.jsxs($a,{className:"sm:max-w-md",children:[u.jsxs(lc,{children:[u.jsx(cc,{className:"text-xl",children:"Save to Favorites?"}),u.jsxs(uc,{children:[e.year," ",e.model," ",e.price?`- $${e.price.toLocaleStr
92ing()}`:""]})]}),u.jsxs("div",{className:"py-4",children:[u.jsxs("p",{className:"text-muted-foreground mb-6",children:["Save this listing to your Favorites before viewing on ",e.source,"?"]}),u.jsxs("div",{className:"flex flex-col gap-3",children:[u.jsx(Te,{size:"lg",className:"w-full gap-2",onClick:E,disabled:C.isPending,"data-testid":"button-save-and-continue",children:C.isPending?u.jsxs(u.Fragment,{children:[u.jsx(Fa,{className:"h-4 w-4 animate-spin"}),"Saving..."]}):u.jsxs(u.Fragment,{children:[u.jsx(cP,{className:"h-4 w-4"}),"Save & Continue"]})}),u.jsxs(Te,{variant:"outline",size:"lg",className:"w-full gap-2",onClick:R,disabled:C.isPending,"data-testid":"button-just-continue",children:[u.jsx(Ql,{className:"h-4 w-4"}),"Just Continue"]})]})]})]})}):g?u.jsx(fo,{open:t,onOpenChange:N=>!N&&A(),children:u.jsx($a,{className:"sm:max-w-md",children:u.jsxs("div",{className:"flex flex-col items-center text-center py-6",children:[u.jsx("div",{className:"p-3 rounded-full bg-primary/10 text-primary mb-4",children:u.jsx(SP,{className:"h-8 w-8"})}),u.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Email Sent!"}),u.jsxs("p",{className:"text-muted-foreground mb-6",children:["We've sent the details for the ",e.year," ",e.model," to ",l]}),u.jsxs("div",{className:"flex flex-col gap-3 w-full",children:[u.jsxs(Te,{onClick:R,className:"w-full gap-2","data-testid":"button-continue-after-email",children:[u.jsx(Ql,{className:"h-4 w-4"}),"Continue to ",e.source]}),u.jsx(Te,{variant:"outline",onClick:A,className:"w-full","data-testid":"button-keep-browsing",children:"Keep Browsing"})]})]})})}):u.jsx(fo,{open:t,onOpenChange:N=>!N&&A(),children:u.jsxs($a,{className:"sm:max-w-md",children:[u.jsxs(lc,{children:[u.jsx(cc,{className:"text-xl",children:"Save This Listing?"}),u.jsxs(uc,{children:[e.year," ",e.model," - $",e.price?.toLocaleString()]})]}),x?u.jsxs("div",{className:"space-y-4 py-4",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"We'll email you the listing details so you can find it later. No account required."}),u.jsxs("div",{className:"space-y-2",children:[u.jsx(Xs,{htmlFor:"email",children:"Email address"}),u.jsx(Wl,{id:"email",type:"email",placeholder:"[email protected]",value:l,onChange:N=>d(N.target.value),onKeyDown:N=>N.key==="Enter"&&_(),"data-testid":"input-email-save"})]}),u.jsxs("div",{className:"flex flex-col gap-2",children:[u.jsx(Te,{className:"w-full",onClick:_,disabled:h,"data-testid":"button-send-email",children:h?u.jsxs(u.Fragment,{children:[u.jsx(Fa,{className:"h-4 w-4 mr-2 animate-spin"}),"Sending..."]}):"Send Listing to My Email"}),u.jsx(Te,{variant:"ghost",onClick:()=>b(!1),"data-testid":"button-back",children:"Back"})]})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"space-y-3 py-4",children:k.map((N,O)=>u.jsxs("div",{className:"flex items-start gap-4",children:[u.jsx("div",{className:"p-2 rounded-md bg-primary/10 text-primary",children:u.jsx(N.icon,{className:"h-5 w-5"})}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("h4",{className:"font-semibold",children:N.title}),u.jsx("p",{className:"text-sm text-muted-foreground",children:N.description})]})]},O))}),u.jsxs("div",{className:"flex flex-col gap-3 pt-4 border-t",children:[u.jsxs(Te,{size:"lg",className:"w-full gap-2",onClick:()=>w(),"data-testid":"button-sign-in-google",children:[u.jsx(cV,{className:"h-4 w-4"}),"Continue with Google"]}),u.jsxs(Te,{size:"lg",variant:"outline",className:"w-full gap-2",onClick:()=>w(),"data-testid":"button-sign-in-apple",children:[u.jsx(dV,{className:"h-4 w-4"}),"Continue with Apple"]}),u.jsxs("div",{className:"relative my-2",children:[u.jsx("div",{className:"absolute inset-0 flex items-center",children:u.jsx("span",{className:"w-full border-t"})}),u.jsx("div",{className:"relative flex justify-center text-xs uppercase",children:u.jsx("span",{className:"bg-background px-2 text-muted-foreground",children:"or just email me this listing"})})]}),u.jsxs(Te,{variant:"secondary",className:"w-full gap-2",onClick:()=>b(!0),"data-testid":"button-email-option",children:[u.jsx(XP,{className:"h-4 w-4"}),"Email Me This Listing"]}),u.jsxs(Te,{variant:"ghost",size:"sm",className:"w-full gap-2 text-muted-foreground",onClick:R,"data-testid":"button-continue-external",children:[u.jsx(Ql,{className:"h-4 w-4"}),"No thanks, continue to ",e.source]})]})]})]})})}var hV=Object.defineProperty,ga=(e,t)=>hV(e,"name",{value:t,configurable:!0}),ov="Popover",[YT,VB]=Bn(ov,[ma]),lv=ma(),[mV,Io]=YT(ov),pV=ga(e=>{const{__scopePopover:t,children:n,open:a,defaultOpen:o,onOpenChange:l,modal:d=!1}
92=e,h=lv(t),m=v.useRef(null),[g,y]=v.useState(!1),[x,b]=$r({prop:a,defaultProp:o??!1,onChange:l,caller:ov});return u.jsx(cf,{...h,children:u.jsx(mV,{scope:t,contentId:gr(),triggerRef:m,open:x,onOpenChange:b,onOpenToggle:v.useCallback(()=>b(C=>!C),[b]),hasCustomAnchor:g,onCustomAnchorAdd:v.useCallback(()=>y(!0),[]),onCustomAnchorRemove:v.useCallback(()=>y(!1),[]),modal:d,children:n})})},"Popover"),gV="PopoverTrigger",yV=v.forwardRef(ga(function(t,n){const{__scopePopover:a,...o}=t,l=Io(gV,a),d=lv(a),h=Qe(n,l.triggerRef),m=u.jsx(Ve.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":cv(l.open),...o,ref:h,onClick:xe(t.onClick,l.onOpenToggle)});return l.hasCustomAnchor?m:u.jsx(uf,{asChild:!0,...d,children:m})},"PopoverTrigger")),ZT="PopoverPortal",[vV,bV]=YT(ZT,{forceMount:void 0}),xV=ga(e=>{const{__scopePopover:t,forceMount:n,children:a,container:o}=e,l=Io(ZT,t);return u.jsx(vV,{scope:t,forceMount:n,children:u.jsx(rr,{present:n||l.open,children:u.jsx(pc,{asChild:!0,container:o,children:a})})})},"PopoverPortal"),dc="PopoverContent",wV=v.forwardRef(ga(function(t,n){const a=bV(dc,t.__scopePopover),{forceMount:o=a.forceMount,...l}=t,d=Io(dc,t.__scopePopover);return u.jsx(rr,{present:o||d.open,children:d.modal?u.jsx(_V,{...l,ref:n}):u.jsx(CV,{...l,ref:n})})},"PopoverContent")),SV=Or("PopoverContent.RemoveScroll"),_V=v.forwardRef(ga(function(t,n){const a=Io(dc,t.__scopePopover),o=v.useRef(null),l=Qe(n,o),d=v.useRef(!1);return v.useEffect(()=>{const h=o.current;if(h)return pf(h)},[]),u.jsx(vc,{as:SV,allowPinchZoom:!0,children:u.jsx(WT,{...t,ref:l,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:xe(t.onCloseAutoFocus,h=>{h.preventDefault(),d.current||a.triggerRef.current?.focus()}),onPointerDownOutside:xe(t.onPointerDownOutside,h=>{const m=h.detail.originalEvent,g=m.button===0&&m.ctrlKey===!0,y=m.button===2||g;d.current=y},{checkForDefaultPrevented:!1}),onFocusOutside:xe(t.onFocusOutside,h=>h.preventDefault(),{checkForDefaultPrevented:!1})})})},"PopoverContentModal")),CV=v.forwardRef(ga(function(t,n){const a=Io(dc,t.__scopePopover),o=v.useRef(!1),l=v.useRef(!1);return u.jsx(WT,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{t.onCloseAutoFocus?.(d),d.defaultPrevented||(o.current||a.triggerRef.current?.focus(),d.preventDefault()),o.current=!1,l.current=!1},onInteractOutside:d=>{t.onInteractOutside?.(d),d.defaultPrevented||(o.current=!0,d.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const h=d.target;a.triggerRef.current?.contains(h)&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&l.current&&d.preventDefault()}})},"PopoverContentNonModal")),WT=v.forwardRef(ga(function(t,n){const{__scopePopover:a,trapFocus:o,onOpenAutoFocus:l,onCloseAutoFocus:d,disableOutsidePointerEvents:h,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:x,...b}=t,C=Io(dc,a),E=lv(a);return Po(),u.jsx(hf,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:l,onUnmountAutoFocus:d,children:u.jsx(Ao,{asChild:!0,disableOutsidePointerEvents:h,onInteractOutside:x,onEscapeKeyDown:m,onPointerDownOutside:g,onFocusOutside:y,onDismiss:()=>C.onOpenChange(!1),deferPointerDownOutside:!0,children:u.jsx(df,{"data-state":cv(C.open),role:"dialog",id:C.contentId,...E,...b,ref:n,style:{...b.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)"}})})})},"PopoverContentImpl"));function cv(e){return e?"open":"closed"}ga(cv,"getState");var EV=pV,TV=yV,jV=xV,XT=wV;const NV=EV,kV=TV,JT=v.forwardRef(({className:e,align:t="center",sideOffset:n=4,...a},o)=>u.jsx(jV,{children:u.jsx(XT,{ref:o,align:t,sideOffset:n,className:Pe("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
92de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-popover-content-transform-origin]",e),...a})}));JT.displayName=XT.displayName;const ql="Airstream Hunter",Js="https://airstreamhunter.com",AV=`${Js}/og-image.png`;function fc(e){const t=e?JSON.stringify(e):"";v.useEffect(()=>{if(!t)return;const n=document.createElement("script");return n.type="application/ld+json",n.textContent=t,document.head.appendChild(n),()=>{n.parentNode&&n.parentNode.removeChild(n)}},[t])}function ej({title:e,description:t="The #1 destination for pre-owned Airstream travel trailers and touring coaches. Free price checks, expert valuations, and quality listings.",image:n=AV,url:a,type:o="website",noIndex:l=!1,structuredData:d,product:h}){const g=!e||e==="Buy and Sell Airstreams Nationwide"?`${ql} - Buy and Sell Airstreams Nationwide`:`${e} | ${ql}`,y=a?`${Js}${a}`:Js,x=n.startsWith("http")?n:`${Js}${n}`,b=h?{"@context":"https://schema.org","@type":"Vehicle",name:h.name,description:h.description,image:h.image,brand:{"@type":"Brand",name:h.brand||"Airstream"},offers:{"@type":"Offer",price:h.price,priceCurrency:h.currency||"USD",availability:`https://schema.org/${h.availability||"InStock"}`,itemCondition:`https://schema.org/${h.condition||"UsedCondition"}`,seller:{"@type":"Organization",name:ql,url:Js}},sku:h.sku,vehicleConfiguration:"Travel Trailer",manufacturer:{"@type":"Organization",name:"Airstream"}}:null;return fc(b),fc(d??null),u.jsxs(UO,{children:[u.jsx("title",{children:g}),u.jsx("meta",{name:"description",content:t}),u.jsx("link",{rel:"canonical",href:y}),l&&u.jsx("meta",{name:"robots",content:"noindex, nofollow"}),u.jsx("meta",{property:"og:title",content:g}),u.jsx("meta",{property:"og:description",content:t}),u.jsx("meta",{property:"og:image",content:x}),u.jsx("meta",{property:"og:image:width",content:"1200"}),u.jsx("meta",{property:"og:image:height",content:"675"}),u.jsx("meta",{property:"og:image:type",content:"image/png"}),u.jsx("meta",{property:"og:url",content:y}),u.jsx("meta",{property:"og:type",content:o}),u.jsx("meta",{property:"og:site_name",content:ql}),u.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),u.jsx("meta",{name:"twitter:title",content:g}),u.jsx("meta",{name:"twitter:description",content:t}),u.jsx("meta",{name:"twitter:image",content:x})]})}function OV({items:e}){return fc({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((t,n)=>({"@type":"ListItem",position:n+1,name:t.name,item:`${Js}${t.url}`}))}),null}function FB({items:e}){return fc({"@context":"https://schema.org","@type":"FAQPage",mainEntity:e.map(t=>({"@type":"Question",name:t.question,acceptedAnswer:{"@type":"Answer",text:t.answer}}))}),null}function RV(){return fc({"@context":"https://schema.org","@type":"AutoDealer",name:ql,description:"Pre-owned Airstream travel trailer and touring coach dealer",url:Js,logo:`${Js}/favicon.png`,email:"[email protected]",priceRange:"$$",openingHoursSpecification:{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],opens:"00:00",closes:"23:59"}}),null}const PV="/assets/airstream_trailer_mountain_campsite-BGfBfhEy.png";function MV(e){if(!e)return"";const t=new Date(e);return isNaN(t.getTime())?"":t.toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})}function $p({value:e,suffix:t=""}){return u.jsxs("span",{className:"tabular-nums font-bold text-white",children:[e.toLocaleString(),t]})}const DV=[{name:"John H.",type:"Seller",quote:"Ward helped us sell our Airstream with a wider range of exposure than we would have otherwise. He helped us communicate with the buyers and guided us through the entire process."},{name:"Jared H.",type:"Seller",quote:"Ward and his team made the transaction smooth. From listing, screening, arranging viewings, to doing the paperwork, I'll use his services again and recommend to everyone!"},{name:"Lowell and Debra",type:"Seller",quote:"We had an exceptional experience with Ward. From the moment we first contacted him regarding the sale of our Airstream to the finalization of the sale, Ward was responsive to our needs and helped negotiate a fair price for us."}
92,{name:"John & Sarah M.",type:"Buyer",quote:"The VIN history report gave us complete confidence in our Flying Cloud purchase. No hidden surprises! Ward walked us through everything and made the process seamless."},{name:"Mike R.",type:"Buyer",quote:"Best Airstream buying experience ever. The market price tool helped us understand fair value and Ward's expertise saved us from making a costly mistake on our first choice."},{name:"Linda K.",type:"Buyer",quote:"Found our dream Bambi here. The team's Airstream expertise made all the difference. They knew exactly what to look for and helped us negotiate a great deal."}];function IV(){Gr();const[e,t]=v.useState(null),{data:n,isLoading:a}=Vn({queryKey:["/api/rvs?spotlight=true"]}),{data:o,isLoading:l}=Vn({queryKey:["/api/external-listings/spotlight"]}),{data:d}=Vn({queryKey:["/api/blog"]}),h=d?.[0],m=v.useMemo(()=>{const x=(n||[]).map(E=>({...E,isExternal:!1})),b=(o||[]).map(E=>({...E,isExternal:!0})),C=[...x,...b];for(let E=C.length-1;E>0;E--){const w=Math.floor(Math.random()*(E+1));[C[E],C[w]]=[C[w],C[E]]}return C},[n,o]),g=a||l,y=[{icon:tf,title:"Free Account",description:"Unlock SOLD listings, save your searches, and much more.",href:"/get-started?redirect=/my-airstream",cta:"Get Free Account"},{icon:Td,title:"Browse Showroom",description:"Shop hundreds of Airstreams for sale nationwide.",href:"/airstreams-for-sale",cta:"Browse Showroom"},{icon:RM,title:"Sell your Airstream",description:"Sell it yourself or get help from the experts.",href:"/sell-your-airstream",cta:"Start Selling"},{icon:Nd,title:"Community",description:"Join our 100,000+ member communities on Facebook.",href:"/community",cta:"Join Community"}];return u.jsxs("div",{className:"flex flex-col",children:[u.jsx(ej,{title:"Buy and Sell Airstreams Nationwide",description:"The #1 marketplace to buy and sell pre-owned Airstream travel trailers and touring coaches. Expert advice, free price checks, and quality listings nationwide.",url:"/"}),u.jsx(RV,{}),u.jsxs("section",{className:"relative min-h-[42vh] flex items-center overflow-hidden",children:[u.jsx("div",{className:"absolute inset-0 bg-cover bg-center scale-105",style:{backgroundImage:`url(${PV})`}}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/70 via-black/50 to-black/80"}),u.jsx("div",{className:"relative z-10 container mx-auto px-4 py-10",children:u.jsxs("div",{className:"max-w-4xl mx-auto text-center space-y-8",children:[u.jsx("div",{className:"space-y-4",children:u.jsxs("h1",{className:"text-5xl sm:text-6xl md:text-7xl lg:text-8xl font-bold text-white tracking-tight",children:[u.jsx("span",{className:"block sm:inline",children:"Airstream"})," ",u.jsx("span",{className:"text-primary",children:"Hunter"})]})}),u.jsx("p",{className:"text-xl md:text-2xl lg:text-3xl text-white/80 max-w-2xl mx-auto leading-relaxed",children:"Buy and Sell Airstreams Nationwide"}),u.jsxs("div",{className:"flex flex-wrap justify-center gap-6 sm:gap-10 pt-8 border-t border-white/10",children:[u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-2xl sm:text-3xl font-bold text-white",children:u.jsx($p,{value:10,suffix:"+"})}),u.jsx("p",{className:"text-xs sm:text-sm text-white/70 mt-1",children:"Years in Business"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-2xl sm:text-3xl font-bold text-white",children:u.jsx($p,{value:1e3,suffix:"+"})}),u.jsx("p",{className:"text-xs sm:text-sm text-white/70 mt-1",children:"Airstreams For Sale"})]}),u.jsxs("div",{className:"text-center",children:[u.jsx("div",{className:"text-2xl sm:text-3xl font-bold text-white",children:u.jsx($p,{value:100,suffix:"K+"})}),u.jsx("p",{className:"text-xs sm:text-sm text-white/70 mt-1",children:"Community Members"})]})]}),u.jsx("p",{className:"text-xs text-white/40",children:"Airstream Hunter is not endorsed by or affiliated with Airstream, Inc. or Thor Tech, Inc."})]})}),u.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-gradient-to-t from-background to-transparent h-24"})]}),u.jsx("section",{className:"pt-16 pb-10 -mt-20 relative z-20",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6 max-w-6xl mx-auto",children:y.map(x=>
92{if(x.communities)return u.jsxs(NV,{children:[u.jsx(kV,{asChild:!0,children:u.jsx(kn,{className:"group h-full border-0 shadow-xl bg-card/95 backdrop-blur-sm hover-elevate transition-all duration-300 overflow-visible cursor-pointer",children:u.jsxs(Un,{className:"p-6 flex flex-col h-full text-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-primary to-primary/70 flex items-center justify-center mb-5 mx-auto shadow-lg group-hover:scale-110 transition-transform duration-300",children:u.jsx(x.icon,{className:"h-7 w-7 text-primary-foreground"})}),u.jsx("h3",{className:"text-xl font-bold mb-2 tracking-tight",children:x.title}),u.jsx("p",{className:"text-sm text-muted-foreground mb-5 flex-1 leading-relaxed",children:x.description}),u.jsx(Te,{size:"sm",className:"mx-auto",children:x.cta})]})})}),u.jsxs(JT,{className:"w-72 p-0",align:"center",children:[u.jsxs("div",{className:"p-4 border-b",children:[u.jsx("h4",{className:"font-semibold text-sm",children:"Join Our Communities"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Choose a group to join on Facebook"})]}),u.jsx("div",{className:"p-2",children:x.communities.map(C=>u.jsxs("a",{href:C.href,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 p-3 rounded-md hover-elevate transition-all","data-testid":`link-community-${C.label.toLowerCase().replace(/\s+/g,"-")}`,children:[u.jsx("div",{className:"w-10 h-10 rounded-full bg-[#1877F2] flex items-center justify-center flex-shrink-0",children:u.jsx(uV,{className:"h-5 w-5 text-white"})}),u.jsx("div",{className:"flex-1 min-w-0",children:u.jsx("div",{className:"font-medium text-sm",children:C.label})}),u.jsx(Ql,{className:"h-4 w-4 text-muted-foreground flex-shrink-0"})]},C.label))})]})]},x.title);const b=u.jsx(kn,{className:"group h-full border-0 shadow-xl bg-card/95 backdrop-blur-sm hover-elevate transition-all duration-300 overflow-visible",children:u.jsxs(Un,{className:"p-6 flex flex-col h-full text-center",children:[u.jsx("div",{className:"w-16 h-16 rounded-2xl bg-gradient-to-br from-primary to-primary/70 flex items-center justify-center mb-5 mx-auto
92shadow-lg group-hover:scale-110 transition-transform duration-300",children:u.jsx(x.icon,{className:"h-7 w-7 text-primary-foreground"})}),u.jsx("h3",{className:"text-xl font-bold mb-2 tracking-tight",children:x.title}),u.jsx("p",{className:"text-sm text-muted-foreground mb-5 flex-1 leading-relaxed",children:x.description}),u.jsx(Te,{size:"sm",className:"mx-auto",children:x.cta})]})});return x.external?u.jsx("a",{href:x.href,target:"_blank",rel:"noopener noreferrer",className:"block",children:b},x.title):u.jsx(ze,{href:x.href,className:"block",children:b},x.title)})})})}),h&&u.jsx("section",{className:"pt-2 pb-10 bg-background",children:u.jsx("div",{className:"container mx-auto px-4 max-w-6xl",children:u.jsx(ze,{href:`/blog/${h.slug}`,className:"block",children:u.jsx(kn,{className:"overflow-hidden hover-elevate transition-all cursor-pointer","data-testid":`card-featured-post-${h.slug}`,children:u.jsxs("div",{className:"flex items-center gap-4 p-3 pr-4 sm:gap-5 sm:p-4 sm:pr-6",children:[h.featuredImage?u.jsx("img",{src:h.featuredImage,alt:h.title,className:"hidden sm:block h-16 w-24 lg:h-20 lg:w-32 flex-shrink-0 rounded-md object-cover",loading:"lazy"}):u.jsx("div",{className:"hidden sm:flex h-16 w-24 lg:h-20 lg:w-32 flex-shrink-0 items-center justify-center rounded-md bg-muted",children:u.jsx(vg,{className:"h-6 w-6 text-muted-foreground/40"})}),u.jsxs("div",{className:"min-w-0 flex-1",children:[u.jsxs("div",{className:"flex items-center gap-2 text-primary mb-1",children:[u.jsx(vg,{className:"h-3.5 w-3.5 flex-shrink-0"}),u.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-widest",children:"Latest from the Blog"})]}),u.jsx("h2",{className:"text-base lg:text-lg font-bold tracking-tight truncate","data-testid":"text-featured-post-title",children:h.title}),h.publishedAt&&u.jsx("p",{className:"text-xs text-muted-foreground",children:MV(h.publishedAt)})]}),u.jsxs(Te,{className:"flex-shrink-0",size:"sm","data-testid":"button-read-featured-post",children:[u.jsx("span",{className:"hidden sm:inline",children:"Read the Article"}),u.jsx("span",{className:"sm:hidden",children:"Read"}),u.jsx(a1,{className:"ml-2 h-4 w-4"})]})]})})})})}),u.jsx("section",{className:"pt-6 pb-16 lg:pb-20 bg-background",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsx("div",{className:"text-center mb-12",children:u.jsx("h2",{className:"text-4xl md:text-5xl font-bold",children:"Spotlight Listings"})}),g?u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[1,2,3].map(x=>u.jsxs(kn,{className:"overflow-hidden",children:[u.jsx("div",{className:"aspect-[4/3] bg-muted animate-pulse"}),u.jsxs(Un,{className:"p-5 space-y-3",children:[u.jsxs("div",{className:"flex gap-2",children:[u.jsx("div",{className:"h-5 w-16 rounded-full bg-muted animate-pulse"}),u.jsx("div",{className:"h-5 w-20 rounded-full bg-muted animate-pulse"})]}),u.jsx("div",{className:"h-6 w-4/5 bg-muted rounded animate-pulse"}),u.jsx("div",{className:"h-4 w-2/3 bg-muted rounded animate-pulse"}),u.jsx("div",{className:"h-8 w-28 bg-muted rounded animate-pulse"})]})]},x))}):m.length>0?u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:m.slice(0,6).map(x=>x.isExternal?u.jsx(J9,{listing:x,onClick:()=>t(x)},x.id):u.jsx(X9,{rv:x},x.id))}):u.jsx(kn,{className:"py-16 text-center",children:u.jsxs(Un,{children:[u.jsx(yo,{className:"h-12 w-12 text-muted-foreground/50 mx-auto mb-4"}),u.jsx("p",{className:"text-muted-foreground",children:"New spotlight listings coming soon"})]})}),u.jsx("div",{className:"text-center mt-12",children:u.jsx(ze,{href:"/airstreams-for-sale",children:u.jsxs(Te,{size:"lg","data-testid":"button-view-all-inventory",children:["Explore All Listings",u.jsx(a1,{className:"h-4 w-4 ml-2"})]})})})]})}),u.jsx("section",{className:"py-20 lg:py-24 bg-background",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("div",{className:"text-center mb-14",children:[u.jsx("p",{className:"text-primary font-medium tracking-widest uppercase text-sm mb-3",children:"Why Airstream Hunter"}),u.jsx("h2",{className:"text-3xl md:text-4xl font-bold mb-3",children:"Since 2016 - Built on Trust"}),u.jsx("p",{className:"text-muted-foreground max-w-2xl mx-auto",children:"We go above and beyond to create an exceptional experience for buyers, sellers and owners."})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-6xl mx-auto",children:DV.map((x,b)=>u.jsx(kn,{className:"h-full",children:u.jsxs(Un,{className:"pt-6 pb-6 px-6 flex flex-col h-full",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("div",{className:"flex gap-1",children:Array.from({length:5}).map((C,E)=>u.jsx(TM,{className:"h-4 w-4 fill-primary text-primary"},E))}),u.jsx(kt,{variant:"outline",children:x.type})]}
92),u.jsx(dM,{className:"h-8 w-8 text-muted-foreground/30 mb-3"}),u.jsx("p",{className:"text-muted-foreground mb-4 flex-1",children:x.quote}),u.jsx("div",{className:"pt-4 border-t",children:u.jsx("p",{className:"font-semibold",children:x.name})})]})},b))}),u.jsx("div",{className:"text-center mt-10",children:u.jsx(ze,{href:"/reviews",children:u.jsx(Te,{variant:"outline","data-testid":"button-view-all-reviews",children:"View All Reviews"})})})]})}),u.jsx("section",{className:"py-20 lg:py-28 bg-primary text-primary-foreground",children:u.jsxs("div",{className:"container mx-auto px-4 text-center",children:[u.jsx("h2",{className:"text-3xl md:text-4xl lg:text-5xl font-bold mb-4 tracking-tight",children:"Let the Fun Begin."}),u.jsx("p",{className:"text-primary-foreground/80 max-w-xl mx-auto mb-10 text-lg",children:"Start your Airstream journey today."}),u.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4",children:[u.jsx(ze,{href:"/get-started?redirect=/my-airstream",children:u.jsx(Te,{size:"lg",variant:"secondary",className:"px-6","data-testid":"button-cta-my-account",children:"Free Account"})}),u.jsx(ze,{href:"/airstreams-for-sale",children:u.jsx(Te,{size:"lg",variant:"outline",className:"px-6 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10","data-testid":"button-cta-inventory",children:"Browse Showroom"})}),u.jsx(ze,{href:"/create-listing",children:u.jsx(Te,{size:"lg",variant:"outline",className:"px-6 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10","data-testid":"button-cta-sell",children:"Sell Your Airstream"})}),u.jsx(ze,{href:"/community",children:u.jsx(Te,{size:"lg",variant:"outline",className:"px-6 border-primary-foreground/30 text-primary-foreground hover:bg-primary-foreground/10","data-testid":"button-cta-community",children:"Join Community"})})]})]})}),u.jsx(fV,{listing:e,isOpen:!!e,onClose:()=>t(null)})]})}var Ac=e=>e.type==="checkbox",Mf=e=>e.type==="file",ea=e=>e instanceof Date,hn=e=>e==null;const uv=e=>typeof e=="object";var At=e=>!hn(e)&&!Array.isArray(e)&&uv(e)&&!ea(e),Bg=e=>At(e)&&e.target?Ac(e.target)?e.target.checked:Mf(e.target)?e.target.files:e.target.value:e,tj=(e,t)=>t.split(".").some((n,a,o)=>!isNaN(Number(n))&&e.has(o.slice(0,a).join("."))),nj=e=>{const t=e.constructor&&e.constructor.prototype;return At(t)&&t.hasOwnProperty("isPrototypeOf")},Df=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Nt(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(Df&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(At(e)&&nj(e)))return e;const a=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(a[o]=Nt(e[o]));return a}const Zs={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change",SUBMIT:"submit",TRIGGER:"trigger",VALID:"valid"},Nr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Er={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},rj="root",dv=["__proto__","constructor","prototype"],LV=/^\w*$/;var Oc=e=>LV.test(e),_t=e=>e===void 0;const zV=/[.[\]'"]/;var If=e=>e.split(zV).filter(Boolean),pe=(e,t,n)=>{if(!t||!At(e))return n;const a=Oc(t)?[t]:If(t);if(a.some(l=>dv.includes(l)))return n;const o=a.reduce((l,d)=>hn(l)?void 0:l[d],e);return _t(o)||o===e?_t(e[t])?n:e[t]:o},Jn=e=>typeof e=="boolean",Sn=e=>typeof e=="function",ft=(e,t,n)=>{let a=-1;const o=Oc(t)?[t]:If(t),l=o.length,d=l-1;for(;++a<l;){const h=o[a];let m=n;if(a!==d){const g=e[h];m=At(g)||Array.isArray(g)?g:isNaN(+o[a+1])?{}:[]}if(dv.includes(h))return;e[h]=m,e=e[h]}};const fv=I.createContext(null);fv.displayName="HookFormControlContext";const hv=()=>I.useContext(fv);var sj=(e,t,n,a=!0)=>{const o={};for(const l in e)Object.defineProperty(o,l,{get:()=>{const d=l;return t._proxyFormState[d]!==Nr.all&&(t._proxyFormState[d]=!a||Nr.all),n&&(n[d]=!0),e[d]}});return o};const mv=Df?I.useLayoutEffect:I.useEffect;function UV(e){const t=hv(),{control:n=t,disabled:a,name:o,exact:l}=e||{},[d,h]=I.useState(()=>({...n._formState,defaultValues:n._defaultValues})),m=I.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return mv(()=>n._subscribe({name:o,formState:m.current,exact:l,callback:g=>{!a&&h({...n._formState,...g,defaultValues:n._defaultValues})}}),[o,a,l]),I.useEffect(()=>{m.current.isValid&&n._setValid(!0)},[n]),I.useMemo(()=>sj(d,n,m.current,!1),[d,n])}var mn=e=>typeof e=="string",$g=(e,t,n,a,o)=>mn(e)?(a&&t.watch.add(e),pe(n,e,o)):Array.isArray(e)?e.map(l=>(a&&t.watch.add(l),pe(n,l))):(a&&(t.watchAll=!0),n),Hg=e=>hn(e)||!uv(e);const SS=(e,t)=>t.length===0&&!Array.isArray(e)&&!nj(e);
92function er(e,t,n=new WeakMap){if(e===t)return!0;if(Hg(e)||Hg(t))return Object.is(e,t);if(ea(e)&&ea(t))return Object.is(e.getTime(),t.getTime());const a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;if(SS(e,a)||SS(t,o))return Object.is(e,t);if(!a.length&&Array.isArray(e)!==Array.isArray(t))return!1;const l=n.get(e);if(l&&l.has(t))return!0;if(l)l.add(t);else{const d=new WeakSet;d.add(t),n.set(e,d)}for(const d of a){const h=e[d];if(!(d in t))return!1;if(d!=="ref"){const m=t[d];if(ea(h)&&ea(m)||(At(h)||Array.isArray(h))&&(At(m)||Array.isArray(m))?!er(h,m,n):!Object.is(h,m))return!1}}return!0}function VV(e){const t=hv(),{control:n=t,name:a,defaultValue:o,disabled:l,exact:d,compute:h}=e||{},m=I.useRef(o),g=I.useRef(h),y=I.useRef(void 0),x=I.useRef(n),b=I.useRef(a);g.current=h;const[C,E]=I.useState(()=>{const N=n._getWatch(a,m.current);return g.current?g.current(N):N}),w=I.useCallback(N=>{const O=$g(a,n._names,N||n._formValues,!1,m.current);return g.current?g.current(O):O},[n._formValues,n._names,a]),_=I.useCallback(N=>{if(!l){const O=$g(a,n._names,N||n._formValues,!1,m.current);if(g.current){const U=g.current(O);er(U,y.current)||(E(U),y.current=U)}else E(O)}},[n._formValues,n._names,l,a]);mv(()=>((x.current!==n||!er(b.current,a))&&(x.current=n,b.current=a,_()),n._subscribe({name:a,formState:{values:!0},exact:d,callback:N=>{_(N.values)}})),[n,d,a,_]),I.useEffect(()=>n._removeUnmounted());const R=x.current!==n,A=b.current,k=I.useMemo(()=>{if(l)return null;const N=!R&&!er(A,a);return R||N?w():null},[l,R,a,A,w]);return k!==null?k:C}function FV(e){const t=hv(),{name:n,disabled:a,control:o=t,shouldUnregister:l,defaultValue:d,exact:h=!0}=e,m=tj(o._names.array,n),g=I.useMemo(()=>pe(o._formValues,n,pe(o._defaultValues,n,d)),[o,n,d]),y=VV({control:o,name:n,defaultValue:g,exact:h}),x=UV({control:o,name:n,exact:h}),b=I.useRef(e),C=I.useRef(null),E=I.useRef(o.register(n,{...e.rules,value:y,...Jn(e.disabled)?{disabled:e.disabled}:{}}));b.current=e;const w=I.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!pe(x.errors,n)},isDirty:{enumerable:!0,get:()=>!!pe(x.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!pe(x.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!pe(x.validatingFields,n)},error:{enumerable:!0,get:()=>pe(x.errors,n)}}),[x,n]),_=I.useCallback(N=>{const O=Bg(N);return pe(o._fields,n)||(E.current=o.register(n,{...b.current.rules,value:O})),E.current.onChange({target:{value:Bg(N),name:n},type:Zs.CHANGE})},[n,o]),R=I.useCallback(()=>E.current.onBlur({target:{value:pe(o._formValues,n),name:n},type:Zs.BLUR}),[n,o._formValues]),A=I.useCallback(N=>{N&&(C.current={focus:()=>Sn(N.focus)&&N.focus(),select:()=>Sn(N.select)&&N.select(),setCustomValidity:U=>Sn(N.setCustomValidity)&&N.setCustomValidity(U),reportValidity:()=>Sn(N.reportValidity)&&N.reportValidity()});const O=pe(o._fields,n);O&&O._f&&N&&(O._f.ref=C.current)},[o._fields,n]),k=I.useMemo(()=>({name:n,value:y,...Jn(a)||x.disabled?{disabled:x.disabled||a}:{},onChange:_,onBlur:R,ref:A}),[n,a,x.disabled,_,R,A,y]);return I.useEffect(()=>{const N=o._options.shouldUnregister||l;E.current=o.register(n,{...b.current.rules,...Jn(b.current.disabled)?{disabled:b.current.disabled}:{}});const O=(U,Y)=>{const F=pe(o._fields,U);F&&F._f&&(F._f.mount=Y)};if(O(n,!0),N){const U=Nt(pe(l?o._defaultValues:o._options.values||o._defaultValues,n,pe(o._options.defaultValues,n,b.current.defaultValue)));ft(o._defaultValues,n,U),_t(pe(o._formValues,n))&&ft(o._formValues,n,U)}if(!m&&o.register(n),C.current){const U=pe(o._fields,n);U&&U._f&&(U._f.ref=C.current)}return()=>{(m?N&&!o._state.action:N)?o.unregister(n):O(n,!1)}},[n,o,m,l]),I.useEffect(()=>{o._setDisabledField({disabled:a,name:n})},[a,n,o]),I.useMemo(()=>({field:k,formState:x,fieldState:w}),[k,x,w])}const BV=e=>e.render(FV(e));var ud=e=>({isOnSubmit:!e||e===Nr.onSubmit,isOnBlur:e===Nr.onBlur,isOnChange:e===Nr.onChange,isOnAll:e===Nr.all,isOnTouch:e===Nr.onTouched}),Hp=(e,t,n)=>{if(n)return!1;if(t.watchAll||t.watch.has(e))return!0;for(const a of t.watch)if(e.startsWith(a)&&e.charAt(a.length)===".")return!0;return!1};const Xl=(e,t,n,a)=>{for(const o of n||Object.keys(e)){if(o==="_f")continue;const l=n?pe(e,o):e[o];if(l){const{_f:d}=l;if(d){if(d.refs&&d.refs[0]&&t(d.refs[0],o)&&!a)return!0;
92if(d.ref&&t(d.ref,d.name)&&!a)return!0;if(Xl(l,t))break}else if((At(l)||Array.isArray(l))&&Xl(l,t))break}}};var _S=(e,t,n)=>{const a=pe(e,n),o=Array.isArray(a)?a:[];return ft(o,rj,t[n]),ft(e,n,o),e},dn=e=>At(e)&&!Object.keys(e).length,Fd=e=>{if(!Df)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},pv=e=>e.type==="radio",Bd=e=>e instanceof RegExp,aj=(e,t,n,a,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[a]:o||!0}}:{};const CS={value:!1,isValid:!1},ES={value:!0,isValid:!0};var ij=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!_t(e[0].attributes.value)?_t(e[0].value)||e[0].value===""?ES:{value:e[0].value,isValid:!0}:ES:CS}return CS};const TS={isValid:!1,value:null};var oj=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,TS):TS;function jS(e,t,n="validate"){if(mn(e)||Array.isArray(e)&&e.every(mn)||Jn(e)&&!e)return{type:n,message:mn(e)?e:"",ref:t}}var no=e=>At(e)&&!Bd(e)?e:{value:e,message:""},NS=async(e,t,n,a,o,l)=>{const{ref:d,refs:h,required:m,maxLength:g,minLength:y,min:x,max:b,pattern:C,validate:E,name:w,valueAsNumber:_,mount:R}=e._f,A=pe(n,w);if(!R||t.has(w))return{};const k=h?h[0]:d,N=X=>{if(o&&k.reportValidity){const ae=Jn(X)?"":X||"";h?h.forEach(oe=>oe.setCustomValidity(ae)):k.setCustomValidity(ae),k.reportValidity()}},O={},U=pv(d),Y=Ac(d),F=U||Y,W=(_||Mf(d))&&_t(d.value)&&_t(A)||Fd(d)&&d.value===""||A===""||Array.isArray(A)&&!A.length,ce=aj.bind(null,w,a,O),fe=(X,ae,oe,ve=Er.maxLength,D=Er.minLength)=>{const q=X?ae:oe;O[w]={type:X?ve:D,message:q,ref:d,...ce(X?ve:D,q)}};if(l?!Array.isArray(A)||!A.length:m&&(!F&&(W||hn(A))||Jn(A)&&!A||Y&&!ij(h).isValid||U&&!oj(h).isValid)){const{value:X,message:ae}=mn(m)?{value:!!m,message:m}:no(m);if(X&&(O[w]={type:Er.required,message:ae,ref:k,...ce(Er.required,ae)},!a))return N(ae),O}if(!W&&(!hn(x)||!hn(b))){let X,ae;const oe=no(b),ve=no(x);if(!hn(A)&&!isNaN(A)){const D=d.valueAsNumber||A&&+A;hn(oe.value)||(X=D>oe.value),hn(ve.value)||(ae=D<ve.value)}else{const D=d.valueAsDate||new Date(A),q=j=>new Date(new Date().toDateString()+" "+j),te=d.type=="time",ue=d.type=="week";mn(oe.value)&&A&&(X=te?q(A)>q(oe.value):ue?A>oe.value:D>new Date(oe.value)),mn(ve.value)&&A&&(ae=te?q(A)<q(ve.value):ue?A<ve.value:D<new Date(ve.value))}if((X||ae)&&(fe(!!X,oe.message,ve.message,Er.max,Er.min),!a))return N(O[w].message),O}if((g||y)&&!W&&(mn(A)||l&&Array.isArray(A))){const X=no(g),ae=no(y),oe=!hn(X.value)&&A.length>+X.value,ve=!hn(ae.value)&&A.length<+ae.value;if((oe||ve)&&(fe(oe,X.message,ae.message),!a))return N(O[w].message),O}if(C&&!W&&mn(A)){const{value:X,message:ae}=no(C);if(Bd(X)&&!A.match(X)&&(O[w]={type:Er.pattern,message:ae,ref:d,...ce(Er.pattern,ae)},!a))return N(ae),O}if(E){if(Sn(E)){const X=await E(A,n),ae=jS(X,k);if(ae&&(O[w]={...ae,...ce(Er.validate,ae.message)},!a))return N(ae.message),O}else if(At(E)){let X={};for(const ae in E){if(!dn(X)&&!a)break;const oe=jS(await E[ae](A,n),k,ae);oe&&(X={...oe,...ce(ae,oe.message)},N(oe.message),a&&(O[w]=X))}if(!dn(X)&&(O[w]={ref:k,...X},!a))return O}}return N(!0),O},Sd=e=>Array.isArray(e)?e:[e],lj=e=>Array.isArray(e)?e.filter(Boolean):[];function $V(e,t){const n=t.length-1;let a=0;for(;a<n;){if(hn(e)){e=void 0;break}e=e[t[a]],a++}return e}function HV(e){for(const t in e)if(e.hasOwnProperty(t)&&!_t(e[t]))return!1;return!0}function Lt(e,t){if(mn(t)&&Object.prototype.hasOwnProperty.call(e,t))return delete e[t],e;const n=Array.isArray(t)?t:Oc(t)?[t]:If(t);if(n.some(d=>dv.includes(String(d))))return e;const a=n.length===1?e:$V(e,n),o=n.length-1,l=n[o];return a&&delete a[l],o!==0&&(At(a)&&dn(a)||Array.isArray(a)&&HV(a))&&Lt(e,n.slice(0,-1)),e}const cj=e=>{const t={};for(const n of Object.keys(e))if(uv(e[n])&&e[n]!==null&&!ea(e[n])){const a=cj(e[n]);for(const o of Object.keys(a))t[`${n}.${o}`]=a[o]}else t[n]=e[n];return t},gv=I.createContext(null);gv.displayName="HookFormContext";const qV=()=>I.useContext(gv),GV=({children:e,watch:t,getValues:n,getFieldState:a,setError:o,clearErrors:l,setValue:d,setValues:h,trigger:m,formState:g,resetField:y,reset:x,resetDefaultValues:b,handleSubmit:C,unregister:E,control:w,register:_,setFocus:R,subscribe:A})=>{const k=I.useMemo(()=>({watch:t,getValues:n,getFieldState:a,setError:o,clearErrors:l,setValue:d,setValues:h,trigger:m,formState:g,resetField:y,reset:x,resetDefaultValues:b,handleSubmit:C,unregister:E,control:w,register:_,setFocus:R,subscribe:A}),[l,w,g,a,n,C,_,x,b,y,o,R,d,h,A,m,E,t]);return I.createElement(gv.Provider,{value:k},I.createElement(fv.Provider,{value:k.control},e))};var kS=()=>{let e=[];return{get observers(){return e},next:o=>{for(const l of e)l.next&&l.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(l=>l!==o)}}),unsubscribe:()=>{e=[]}}};function uj(e,t){const n={};for(const a in e)if(e.hasOwnProperty(a)){const o=e[a],l=t[a];if(o&&At(o)&&l){const d=uj(o,l);At(d)&&(n[a]=d)}else e[a]&&(n[a]=l)}return n}var dj=e=>e.type==="select-multiple",KV=e=>pv(e)||Ac(e),qp=e=>Fd(e)&&e.isConnected;function AS(e){return Array.isArray(e)||At(e)}function fj(e,t,n="",a=[]){for(const o in e){const l=n?`${n}.${o}`:o,d=e[o];AS(d)&&AS(pe(t,l))?fj(d,t,l,a):a.push(l)}return a}var QV=e=>{for(const t in e)if(Sn(e[t]))return!0;return!1};function hj(e){return Array.isArray(e)||At(e)&&!QV(e)}function mj(e){return!!(e&&"_f"in e)}function pj(e){return Array.isArray(e)?!e.some(t=>!_t(t)):!Object.keys(e).length}function qg(e,t){Array.isArray(e)?e[t]=void 0:delete e[t]}function Gg(e,t={},n){for(const a in e){const o=e[a],l=n&&n[a];hj(o)&&(!Array.isArray(o)||!mj(l))?(t[a]=Array.isArray(o)?[]:{}
92,Gg(o,t[a],l),pj(t[a])&&qg(t,a)):_t(o)||(t[a]=!0)}return t}function Ua(e,t,n,a){n||(n=Gg(t,{},a));for(const o in e){const l=e[o],d=a&&a[o];hj(l)&&(!Array.isArray(l)||!mj(d))?(_t(t)||Hg(n[o])?n[o]=Gg(l,Array.isArray(l)?[]:{},d):Ua(l,hn(t)?{}:t[o],n[o],d),pj(n[o])&&qg(n,o)):er(l,t[o])?qg(n,o):n[o]=!0}return n}var gj=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:a})=>_t(e)?e:t?e===""?NaN:e&&+e:n&&mn(e)?new Date(e):a?a(e):e;function OS(e){const t=e.ref;return Mf(t)?t.files:pv(t)?oj(e.refs).value:dj(t)?[...t.selectedOptions].map(({value:n})=>n):Ac(t)?ij(e.refs).value:gj(t.value,e)}var YV=(e,t,n,a)=>{const o={};for(const l of e){const d=pe(t,l);d&&ft(o,l,d._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:a}},Ul=e=>_t(e)?e:Bd(e)?e.source:At(e)?Bd(e.value)?e.value.source:e.value:e;const RS="AsyncFunction";var ZV=e=>{if(!e||!e.validate)return!1;if(Sn(e.validate))return e.validate.constructor.name===RS;if(At(e.validate)){for(const t in e.validate)if(e.validate[t].constructor.name===RS)return!0}return!1},WV=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function PS(e,t,n){const a=pe(e,n);if(a||Oc(n))return{error:a,name:n};const o=n.split(".");for(;o.length;){const l=o.join("."),d=pe(t,l),h=pe(e,l);if(d&&!Array.isArray(d)&&n!==l)return{name:n};if(h&&h.type)return{name:l,error:h};if(h&&h.root&&h.root.type)return{name:`${l}.root`,error:h.root};o.pop()}return{name:n}}var XV=(e,t,n,a)=>{n(e);const o=Object.keys(e).filter(l=>l!=="name");return!o.length||a&&o.length>=Object.keys(t).length||o.find(l=>t[l]===(!a||Nr.all))},JV=(e,t,n)=>!e||!t||e===t||Sd(e).some(a=>a&&(n?a===t||a.startsWith(t+"."):a.startsWith(t)||t.startsWith(a))),e7=(e,t,n,a,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?a.isOnBlur:o.isOnBlur)?!e:(n?a.isOnChange:o.isOnChange)?e:!0,t7=(e,t)=>!lj(pe(e,t)).length&&Lt(e,t);const n7={mode:Nr.onSubmit,reValidateMode:Nr.onChange,shouldFocusError:!0},Gp="form",r7=(e,t)=>{for(const n in e)n in t||delete e[n];Object.assign(e,t)},yj={submitCount:0,isDirty:!1,isReady:!1,isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{}};function s7(e={}){let t={...n7,...e},n={...Nt(yj),isLoading:Sn(t.defaultValues),errors:t.errors||{},disabled:t.disabled||!1},a={},o=At(t.defaultValues)||At(t.values)?Nt(t.defaultValues||t.values)||{}:{},l=t.shouldUnregister?{}:Nt(o),d={action:!1,mount:!1,watch:!1,keepIsValid:!1},h={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set,registerName:new Set};const m={},g={};let y=0,x=ud(t.mode),b=ud(t.reValidateMode);const C={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},E={...C};let w={...E};const _={array:kS(),state:kS()};let R=0;const A=t.criteriaMode===Nr.all,k=(P,$)=>H=>{clearTimeout(g[P]),g[P]=setTimeout($,H)},N=async P=>{if(!d.keepIsValid&&!t.disabled&&(E.isValid||w.isValid||P)){const $=++R;let H;t.resolver?(H=dn((await oe()).errors),$===R&&O()):H=await q({fields:a,onlyCheckValid:!0,eventType:Zs.VALID}),$===R&&H!==n.isValid&&_.state.next({isValid:H})}},O=(P,$)=>{!t.disabled&&(E.isValidating||E.validatingFields||w.isValidating||w.validatingFields)&&((P||Array.from(h.mount)).forEach(H=>{H&&($?ft(n.validatingFields,H,$):Lt(n.validatingFields,H))}),_.state.next({validatingFields:n.validatingFields,isValidating:!dn(n.validatingFields)}))},U=()=>{n.dirtyFields=Ua(o,l,void 0,a)},Y=(P,$=[],H,le,ie=!0,we=!0)=>{if(le&&H&&!t.disabled){if(d.action=!0,we&&Array.isArray(pe(a,P))){const me=H(pe(a,P),le.argA,le.argB);ie&&ft(a,P,me)}if(we&&Array.isArray(pe(n.errors,P))){const me=H(pe(n.errors,P),le.argA,le.argB);ie&&ft(n.errors,P,me),t7(n.errors,P)}if((E.touchedFields||w.touchedFields)&&we&&Array.isArray(pe(n.touchedFields,P))){const me=H(pe(n.touchedFields,P),le.argA,le.argB);ie&&ft(n.touchedFields,P,me)}(E.dirtyFields||w.dirtyFields)&&U(),_.state.next({name:P,isDirty:ue(P,$),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ft(l,P,$)},F=(P,$)=>{ft(n.errors,P,$),n.errors={...n.errors},_.state.next({errors:n.errors})},W=P=>{n.errors=P,_.state.next({errors:n.errors,isValid:!1})},ce=P=>{const $=Oc(P)?[P]:If(P);let H=l,le=o;for(let ie=0;ie<$.length-1;ie++){const we=$[ie];if(H=hn(H)?H:H[we],le=hn(le)?le:le[we],H===null&&le!==null)return!0}return!1},fe=(P,$,H,le)=>{const ie=pe(a,P);
92if(ie){if(ce(P))return;const we=_t(pe(l,P)),me=pe(l,P,_t(H)?pe(o,P):H);_t(me)||le&&le.defaultChecked||$?ft(l,P,$?me:OS(ie._f)):V(P,me),d.mount&&!d.action&&(N(),we&&n.isDirty&&(E.isDirty||w.isDirty)&&(ue()||(n.isDirty=!1,_.state.next({...n}))),e.shouldUnregister&&we&&!_t(pe(l,P))&&Hp(P,h)&&(d.watch=!0))}},X=(P,$,H,le,ie)=>{let we=!1,me=!1;const Se={name:P};if(!t.disabled||le===!0){if(!H||le){const Me=er(pe(o,P),$);(E.isDirty||w.isDirty)&&(me=n.isDirty,n.isDirty=Se.isDirty=!Me||ue(),we=me!==Se.isDirty),me=!!pe(n.dirtyFields,P),Me!==n.isDirty?r7(n.dirtyFields,Ua(o,l,void 0,a)):Me?Lt(n.dirtyFields,P):ft(n.dirtyFields,P,!0),Se.dirtyFields=n.dirtyFields,we=we||(E.dirtyFields||w.dirtyFields)&&me!==!Me}if(H){const Me=pe(n.touchedFields,P);Me||(ft(n.touchedFields,P,H),Se.touchedFields=n.touchedFields,we=we||(E.touchedFields||w.touchedFields)&&Me!==H)}we&&ie&&_.state.next(Se)}return we?Se:{}},ae=(P,$,H,le)=>{const ie=pe(n.errors,P),we=(E.isValid||w.isValid)&&Jn($)&&n.isValid!==$;if(t.delayError&&H?(m[P]=k(P,()=>F(P,H)),m[P](t.delayError)):(clearTimeout(g[P]),delete m[P],H?ft(n.errors,P,H):Lt(n.errors,P),n.errors={...n.errors}),(H?!er(ie,H):ie)||!dn(le)||we){const me={...le,...we&&Jn($)?{isValid:$}:{},errors:n.errors,name:P};n={...n,...me},_.state.next(me)}},oe=async P=>(O(P,!0),await t.resolver(l,t.context,YV(P||h.mount,a,t.criteriaMode,t.shouldUseNativeValidation))),ve=async P=>{const{errors:$}=await oe(P);if(O(P),P){for(const H of P){const le=pe($,H);le?h.array.has(H)&&At(le)&&!Object.keys(le).some(ie=>!Number.isNaN(Number(ie)))?_S(n.errors,{[H]:le},H):ft(n.errors,H,le):Lt(n.errors,H)}n.errors={...n.errors}}else n.errors=$;return $},D=async({name:P,eventType:$})=>{if(e.validate){const H=await e.validate({formValues:l,formState:n,name:P,eventType:$});if(At(H))for(const le in H){const ie=H[le];ie&&at(`${Gp}.${le}`,{message:mn(ie.message)?ie.message:"",type:ie.type||Er.validate})}else mn(H)||!H?at(Gp,{message:H||"",type:Er.validate}):tt(Gp);return H}return!0},q=async({fields:P,onlyCheckValid:$,name:H,eventType:le,context:ie={valid:!0,runRootValidation:!1}})=>{if(e.validate&&(ie.runRootValidation=!0,!await D({name:H,eventType:le})&&(ie.valid=!1,$)))return ie.valid;for(const we in P){const me=P[we];if(me){const{_f:Se,...Me}=me;if(Se){const ut=h.array.has(Se.name),Rt=me._f&&ZV(me._f),En=E.validatingFields||E.isValidating||w.validatingFields||w.isValidating;Rt&&En&&O([Se.name],!0);const xr=await NS(me,h.disabled,l,A,t.shouldUseNativeValidation&&!$,ut);if(Rt&&En&&O([Se.name]),xr[Se.name]&&(ie.valid=!1,$)||(!$&&(pe(xr,Se.name)?ut?_S(n.errors,xr,Se.name):ft(n.errors,Se.name,xr[Se.name]):Lt(n.errors,Se.name)),e.shouldUseNativeValidation&&xr[Se.name]))break}!dn(Me)&&await q({context:ie,onlyCheckValid:$,fields:Me,name:we,eventType:le})}}return ie.valid},te=()=>{for(const P of h.unMount){const $=pe(a,P);$&&($._f.refs?$._f.refs.every(H=>!qp(H)):!qp($._f.ref))&&Zt(P)}h.unMount=new Set},ue=(P,$)=>(P&&$&&ft(l,P,$),!er(d.mount?l:o,o)),j=(P,$,H)=>$g(P,h,{...d.mount?l:_t($)?o:mn(P)?{[P]:$}:$},H,$),L=P=>lj(pe(d.mount?l:o,P,t.shouldUnregister?pe(o,P,[]):[])),V=(P,$,H={},le=!1,ie=!1)=>{const we=pe(a,P);let me=$;if(we){const Se=we._f;Se&&(!Se.disabled&&ft(l,P,gj($,Se)),me=Fd(Se.ref)&&hn($)?"":$,dj(Se.ref)?[...Se.ref.options].forEach(Me=>Me.selected=me.includes(Me.value)):Se.refs?Ac(Se.ref)?Se.refs.forEach(Me=>{(!Me.defaultChecked||!Me.disabled)&&(Array.isArray(me)?Me.checked=!!me.find(ut=>ut===Me.value):Me.checked=me===Me.value||!!me)}):Se.refs.forEach(Me=>Me.checked=Me.value===me):Mf(Se.ref)?Se.ref.value="":(Se.ref.value=me,!Se.ref.type&&!ie&&_.state.next({name:P,values:le?l:Nt(l)})))}(H.shouldDirty||H.shouldTouch)&&X(P,me,H.shouldTouch,H.shouldDirty,!ie),H.shouldValidate&&Oe(P,{delayError:H.delayError})},J=(P,$,H,le=!1,ie=!1)=>{h.array.has(P)&&_.array.next({name:P,values:le?l:Nt(l)});for(const we in $){if(!$.hasOwnProperty(we))return;const me=$[we],Se=P+"."+we,Me=pe(a,Se);(h.array.has(P)||At(me)||Me&&!Me._f)&&!ea(me)?J(Se,me,H,le,ie):V(Se,me,H,le,ie)}},ge=(P,$,H,le,ie=!1)=>{const we=pe(a,P),me=h.array.has(P),Se=le?$:Nt($),Me=pe(l,P),ut=er(Me,Se);if(ut||ft(l,P,Se),me)_.array.next({name:P,values:le?l:Nt(l)}),(E.isDirty||E.dirtyFields||w.isDirty||w.dirtyFields)&&H.shouldDirty&&(U(),ie||_.state.next({name:P,dirtyFields:n.dirtyFields,isDirty:ue(P,Se)}
92));else{const Rt=Array.isArray(Se)&&!Se.length||dn(Se);!we||we._f||hn(Se)||Rt?V(P,Se,H,le,ie):J(P,Se,H,le,ie)}if(!ut&&!ie){const Rt=Hp(P,h),En=le?l:Nt(l);_.state.next({...Rt&&n,name:d.mount||Rt?P:void 0,values:En})}},be=(P,$,H={})=>ge(P,$,H,!1),ye=(P,$={})=>{const H=Sn(P)?P(l):P;if(!er(l,H)){l={...l,...H};const le=cj(H);for(const ie of h.mount)ie in le&&ge(ie,le[ie],$,!0,!0);_.state.next({...n,name:void 0,type:void 0,...y?{values:l}:{}}),$.shouldValidate&&N()}},qe=async P=>{d.mount=!0;const $=P.target;let H=$.name,le=!0;const ie=pe(a,H),we=me=>{le=Number.isNaN(me)||ea(me)&&isNaN(me.getTime())||er(me,pe(l,H,me))};if(ie){let me,Se;const Me=$.type?OS(ie._f):Bg(P),ut=P.type===Zs.BLUR||P.type===Zs.FOCUS_OUT,Rt=!WV(ie._f)&&!e.validate&&!t.resolver&&!pe(n.errors,H)&&!ie._f.deps,En=Rt||e7(ut,pe(n.touchedFields,H),n.isSubmitted,b,x),xr=Hp(H,h,ut);if(ft(l,H,Me),ut){if(!$||!$.readOnly){ie._f.onBlur&&ie._f.onBlur(P);const Qr=m[H];Qr&&Qr(0)}}else ie._f.onChange&&ie._f.onChange(P);const _s=X(H,Me,ut),Lc=!dn(_s)||xr;if(!ut&&_.state.next({name:H,type:P.type,...y?{values:Nt(l)}:{}}),En)return(!Rt||!n.isValid)&&(E.isValid||w.isValid)&&(t.mode==="onBlur"?ut&&N():ut||N()),Lc&&_.state.next({name:H,...xr?{}:_s});if(!t.resolver&&e.validate&&await D({name:H,eventType:P.type}),!ut&&xr&&_.state.next({...n}),t.resolver){const{errors:Qr}=await oe([H]);if(O([H]),we(Me),!le){!dn(_s)&&_.state.next(_s);return}const zo=PS(n.errors,a,H),Uo=PS(Qr,a,zo.name||H);me=Uo.error,H=Uo.name,Se=dn(Qr)}else O([H],!0),me=(await NS(ie,h.disabled,l,A,t.shouldUseNativeValidation))[H],O([H]),we(Me),le&&(me?Se=!1:(E.isValid||w.isValid)&&(Se=await q({fields:a,onlyCheckValid:!0,name:H,eventType:P.type})));le&&(ie._f.deps&&(!Array.isArray(ie._f.deps)||ie._f.deps.length>0)&&Oe(ie._f.deps),ae(H,Se,me,_s))}},de=(P,$)=>{if(pe(n.errors,$)&&P.focus)return P.focus(),1},Oe=async(P,$={})=>{let H,le;const ie=Sd(P);if(t.resolver){const we=await ve(_t(P)?P:ie);H=dn(we),le=P?!ie.some(me=>pe(we,me)):H}else P?(le=(await Promise.all(ie.map(async we=>{const me=pe(a,we);return await q({fields:me&&me._f?{[we]:me}:me,eventType:Zs.TRIGGER})}))).every(Boolean),!(!le&&!n.isValid)&&N()):le=H=await q({fields:a,name:P,eventType:Zs.TRIGGER});if($.delayError&&t.delayError&&mn(P)){const we=pe(n.errors,P);we?(Lt(n.errors,P),m[P]=k(P,()=>F(P,we)),m[P](t.delayError)):(clearTimeout(g[P]),delete m[P])}return _.state.next({...!mn(P)||(E.isValid||w.isValid)&&H!==n.isValid?{}:{name:P},...t.resolver||!P?{isValid:H}:{},errors:n.errors}),$.shouldFocus&&!le&&Xl(a,de,P?ie:h.mount),le},St=(P,$)=>{let H={...d.mount?l:o};return $&&(H=uj($.dirtyFields?n.dirtyFields:n.touchedFields,H)),_t(P)?H:mn(P)?pe(H,P):P.map(le=>pe(H,le))},Ze=(P,$)=>({invalid:!!pe(($||n).errors,P),isDirty:!!pe(($||n).dirtyFields,P),error:pe(($||n).errors,P),isValidating:!!pe(n.validatingFields,P),isTouched:!!pe(($||n).touchedFields,P)}),tt=P=>{const $=P?Sd(P):void 0;$?.forEach(H=>Lt(n.errors,H)),$?$.forEach(H=>{_.state.next({name:H,errors:n.errors})}):(n.errors={},_.state.next({errors:n.errors}))},at=(P,$,H)=>{const le=(pe(a,P,{_f:{}})._f||{}).ref,ie=pe(n.errors,P)||{},{ref:we,message:me,type:Se,...Me}=ie;ft(n.errors,P,{...Me,...$,ref:le}),_.state.next({name:P,errors:n.errors,isValid:!1}),H&&H.shouldFocus&&le&&le.focus&&le.focus()},zt=(P,$)=>{if(Sn(P)){y++;const{unsubscribe:H}=_.state.subscribe({next:ie=>"values"in ie&&P(ie.values||j(void 0,$),ie)});let le=!1;return{unsubscribe:()=>{le||(le=!0,y--,H())}}}return j(P,$,!0)},on=P=>{var $;const H=!!(!(($=P.formState)===null||$===void 0)&&$.values);H&&y++;const{unsubscribe:le}=_.state.subscribe({next:we=>{if(JV(P.name,we.name,P.exact)&&XV(we,P.formState||E,Cn,P.reRenderRoot)){const me={...l};P.callback({values:me,...n,...we,defaultValues:o})}}});if(!H)return le;let ie=!1;return()=>{ie||(ie=!0,y--,le())}},ya=P=>(d.mount=!0,w={...w,...P.formState},on({...P,formState:{...C,...P.formState}})),Zt=(P,$={})=>{for(const H of P?Sd(P):h.mount)h.mount.delete(H),h.array.delete(H),$.keepValue||(Lt(a,H),Lt(l,H)),!$.keepError&&Lt(n.errors,H),!$.keepDirty&&Lt(n.dirtyFields,H),!$.keepTouched&&Lt(n.touchedFields,H),!$.keepIsValidating&&Lt(n.validatingFields,H),!t.shouldUnregister&&!$.keepDefaultValue&&Lt(o,H);_.state.next({values:Nt(l)}
vendor: 4,349 bytes, line 92
92),_.state.next({...n,...$.keepDirty?{isDirty:ue()}:{}}),!$.keepIsValid&&N()},Ss=({disabled:P,name:$})=>{if(Jn(P)&&d.mount||P||h.disabled.has($)){const ie=h.disabled.has($)!==!!P;P?h.disabled.add($):h.disabled.delete($),ie&&d.mount&&!d.action&&N()}},li=(P,$={})=>{let H=pe(a,P);const le=Jn($.disabled)||Jn(t.disabled),ie=!h.registerName.has(P)&&H&&H._f&&!H._f.mount;return ft(a,P,{...H||{},_f:{...H&&H._f?H._f:{ref:{name:P}},name:P,mount:!0,...$}}),h.mount.add(P),H&&!ie?Ss({disabled:Jn($.disabled)?$.disabled:t.disabled,name:P}):fe(P,!0,$.value),{...le?{disabled:$.disabled||t.disabled}:{},...t.progressive?{required:!!$.required,min:Ul($.min),max:Ul($.max),minLength:Ul($.minLength),maxLength:Ul($.maxLength),pattern:Ul($.pattern)}:{},name:P,onChange:qe,onBlur:qe,ref:we=>{if(we){h.registerName.add(P),li(P,$),h.registerName.delete(P),H=pe(a,P);const me=_t(we.value)&&we.querySelectorAll&&we.querySelectorAll("input,select,textarea")[0]||we,Se=KV(me),Me=H._f.refs||[];if(Se?Me.find(Rt=>Rt===me):me===H._f.ref)return;const ut={...H._f};Se?(ut.refs=[...Me.filter(qp),me,...Array.isArray(pe(o,P))?[{}]:[]],ut.ref={type:me.type,name:P}):(ut.ref=me,delete ut.refs),ft(a,P,{_f:ut}),fe(P,!1,void 0,me)}else H=pe(a,P,{}),H._f&&(H._f.mount=!1),(t.shouldUnregister||$.shouldUnregister)&&!(tj(h.array,P)&&d.action)&&h.unMount.add(P)}}},ci=()=>t.shouldFocusError&&!t.shouldUseNativeValidation&&Xl(a,de,h.mount),ui=P=>{Jn(P)&&(_.state.next({disabled:P}),Xl(a,($,H)=>{const le=pe(a,H);le&&($.disabled=le._f.disabled||P,Array.isArray(le._f.refs)&&le._f.refs.forEach(ie=>{ie.disabled=le._f.disabled||P}))},0,!1))},Rc=(P,$)=>async H=>{let le,ie;H&&(H.preventDefault&&H.preventDefault(),H.persist&&H.persist());let we=Nt(l);if(_.state.next({isSubmitting:!0}),t.resolver){const{errors:me,values:Se}=await oe();O(),n.errors=me,we=Nt(Se)}else await q({fields:a,eventType:Zs.SUBMIT});if(h.disabled.size)for(const me of h.disabled)Lt(we,me);if(Lt(n.errors,rj),dn(n.errors)){_.state.next({errors:{}});try{le=await P(we,H)}catch(me){ie=me}}else $&&await $({...n.errors},H),ci(),setTimeout(ci);if(_.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:dn(n.errors)&&!ie,submitCount:n.submitCount+1,errors:n.errors}),ie)throw ie;return le},Pc=(P,$={})=>{pe(a,P)&&(_t($.defaultValue)?be(P,Nt(pe(o,P))):(be(P,$.defaultValue),ft(o,P,Nt($.defaultValue))),$.keepTouched||Lt(n.touchedFields,P),$.keepDirty||(Lt(n.dirtyFields,P),n.isDirty=$.defaultValue?ue(P,Nt(pe(o,P))):ue()),$.keepError||(Lt(n.errors,P),E.isValid&&N()),_.state.next({...n}))},Mc=(P,$={})=>{const H=P?Nt(P):o,le=Nt(H),ie=dn(P),we=le,me=a;if($.keepDefaultValues||(o=H),!$.keepValues){if($.keepDirtyValues){const Se=new Set([...h.mount,...fj(Ua(o,l,void 0,me),n.dirtyFields)]);for(const Me of Array.from(Se)){const ut=pe(n.dirtyFields,Me),Rt=pe(l,Me),En=pe(we,Me);ut&&!_t(Rt)?ft(we,Me,Rt):!ut&&!_t(En)&&be(Me,En)}}else{if(Df&&_t(P))for(const Se of h.mount){const Me=pe(a,Se);if(Me&&Me._f){const ut=Array.isArray(Me._f.refs)?Me._f.refs[0]:Me._f.ref;if(Fd(ut)){const Rt=ut.closest("form");if(Rt){Rt.reset();break}}}}if($.keepFieldsRef)for(const Se of h.mount)be(Se,pe(we,Se));else a={}}if(t.shouldUnregister){if(l=$.keepDefaultValues?Nt(o):{},$.keepFieldsRef)for(const Se of h.mount)ft(l,Se,pe(we,Se))}else l=Nt(we);_.array.next({values:{...we}}),_.state.next({name:void 0,type:void 0,values:{...we}})}h={mount:$.keepDirtyValues?h.mount:new Set,unMount:new Set,array:new Set,registerName:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},d.mount=!E.isValid||!!$.keepIsValid||!!$.keepDirtyValues||!t.shouldUnregister&&!dn(we),d.watch=!!t.shouldUnregister,d.keepIsValid=!!$.keepIsValid,d.action=!1,$.keepErrors||(n.errors={}),_.state.next({submitCount:$.keepSubmitCount?n.submitCount:0,isDirty:ie?!1:$.keepDirty?n.isDirty:$.keepValues?ue():!!($.keepDefaultValues&&!er(P,o)),isSubmitted:$.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ie?{}:$.keepDirtyValues?$.keepDefaultValues&&l?Ua(o,l,void 0,me):n.dirtyFields:$.keepDefaultValues&&P?Ua(o,P,void 0,me):$.keepDirty?n.dirtyFields:{},touchedFields:$.keepTouched?n.touchedFields:{},errors:$.keepErrors?n.errors:{},isSubmitSuccessful:$.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Dc=(P,$)=>Mc(Sn(P)?P(l):P,{...t.resetOptions,...$}),va=(P,$={})=>{const H=pe(a,P),le=H&&H._f;if(le){const ie=le.refs?le.refs[0]:le.ref;
92ie.focus&&setTimeout(()=>{ie.focus(),$.shouldSelect&&Sn(ie.select)&&ie.select()})}},Cn=P=>{const{name:$,type:H,values:le,...ie}=P;n={...n,...ie}},Ic={control:{register:li,unregister:Zt,getFieldState:Ze,handleSubmit:Rc,setError:at,_subscribe:on,_runSchema:oe,_updateIsValidating:O,_focusError:ci,_getWatch:j,_getDirty:ue,_setValid:N,_setFieldArray:Y,_setDisabledField:Ss,_setErrors:W,_getFieldArray:L,_reset:Mc,_resetDefaultValues:()=>Sn(t.defaultValues)&&t.defaultValues().then(P=>{Dc(P,t.resetOptions),_.state.next({isLoading:!1})}),_removeUnmounted:te,_disableForm:ui,_subjects:_,_proxyFormState:E,get _fields(){return a},get _formValues(){return l},get _state(){return d},set _state(P){d=P},get _defaultValues(){return o},get _names(){return h},set _names(P){h=P},get _formState(){return n},get _options(){return t},set _options(P){t={...t,...P},x=ud(t.mode),b=ud(t.reValidateMode)}},subscribe:ya,trigger:Oe,register:li,handleSubmit:Rc,watch:zt,setValue:be,setValues:ye,getValues:St,reset:Dc,resetField:Pc,resetDefaultValues:(P,$={})=>{if(o=Nt(P),!$.keepDirty){const H=Ua(o,l,void 0,a);n.dirtyFields=H,n.isDirty=!dn(H)}$.keepIsValid||N(),_.state.next({...n,defaultValues:o})},clearErrors:tt,unregister:Zt,setError:at,setFocus:va,getFieldState:Ze};return{...Ic,formControl:Ic}}function a7(e={}){const t=I.useRef(void 0),n=I.useRef(void 0),a=I.useRef(e.formControl),[o,l]=I.useState(()=>({...Nt(yj),isLoading:Sn(e.defaultValues),errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Sn(e.defaultValues)?void 0:e.defaultValues}));if(!t.current||e.formControl&&a.current!==e.formControl)if(a.current=e.formControl,e.formControl)t.current={...e.formControl,formState:o},e.defaultValues&&!Sn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:h,...m}=s7(e);t.current={...m,formState:o}}const d=t.current.control;return d._options=e,mv(()=>{const h=d._subscribe({formState:d._proxyFormState,callback:()=>l({...d._formState,defaultValues:d._defaultValues}),reRenderRoot:!0});return l(m=>({...m,isReady:!0})),d._formState.isReady=!0,h},[d]),I.useEffect(()=>d._disableForm(e.disabled),[d,e.disabled]),I.useEffect(()=>{e.mode&&(d._options.mode=e.mode),e.reValidateMode&&(d._options.reValidateMode=e.reValidateMode)},[d,e.mode,e.reValidateMode]),I.useEffect(()=>{e.errors&&(d._setErrors(e.errors),d._focusError())},[d,e.errors]),I.useEffect(()=>{e.shouldUnregister&&d._subjects.state.next({values:d._getWatch()})},[d,e.shouldUnregister]),I.useEffect(()=>{if(d._proxyFormState.isDirty){const h=d._getDirty();h!==o.isDirty&&d._subjects.state.next({isDirty:h})}},[d,o.isDirty]),I.useEffect(()=>{var h;e.values&&!er(e.values,n.current)?(d._reset(e.values,{keepFieldsRef:!0,...d._options.resetOptions}),!((h=d._options.resetOptions)===null||h===void 0)&&h.keepIsValid||d._setValid(),n.current=e.values,l(m=>({...m}))):d._resetDefaultValues()},[d,e.values]),I.useEffect(()=>{d._state.mount||(d._setValid(),d._state.mount=!0),d._state.watch&&(d._state.watch=!1,d._subjects.state.next({...d._formState})),d._removeUnmounted()}),t.current.formState=I.useMemo(()=>sj(o,d),[d,o]),t.current}const MS=(e,t,n)=>{if(e&&"reportValidity"in e){const a=pe(n,t);e.setCustomValidity(a&&a.message||""),e.reportValidity()}},vj=(e,t)=>{for(const n in t.fields){const a=t.fields[n];a&&a.ref&&"reportValidity"in a.ref?MS(a.ref,n,e):a.refs&&a.refs.forEach(o=>MS(o,n,e))}},i7=(e,t)=>{t.shouldUseNativeValidation&&vj(e,t);const n={};for(const a in e){const o=pe(t.fields,a),l=Object.assign(e[a]||{},{ref:o&&o.ref});if(o7(t.names||Object.keys(e),a)){const d=Object.assign({},pe(n,a));ft(d,"root",l),ft(n,a,d)}else ft(n,a,l)}return n},o7=(e,t)=>e.some(n=>n.startsWith(t+"."));var l7=function(e,t){for(var n={};e.length;){var a=e[0],o=a.code,l=a.message,d=a.path.join(".");if(!n[d])if("unionErrors"in a){var h=a.unionErrors[0].errors[0];n[d]={message:h.message,type:h.code}}else n[d]={message:l,type:o};if("unionErrors"in a&&a.unionErrors.forEach(function(y){return y.errors.forEach(function(x){return e.push(x)})}),t){var m=n[d].types,g=m&&m[a.code];n[d]=aj(d,t,n,o,g?[].concat(g,a.message):a.message)}e.shift()}return n},c7=function(e,t,n){return n===void 0&&(n={}),function(a,o,l){try{return Promise.resolve((function(d,h){try{var m=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](a,t)).then(function(g){return l.shouldUseNativeValidation&&vj({},l),{errors:{},values:n.raw?a:g}})}catch(g){return h(g)}return m&&m.then?m.then(void 0,h):m})(0,function(d){if((function(h){return Array.isArray(h?.errors)})(d))return{values:{},errors:i7(l7(d.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw d}))}catch(d){return Promise.reject(d)}}},lt;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{const l={};for(const d of o)l[d]=d;return l},e.getValidEnumValues=o=>{const l=e.objectKeys(o).filter(h=>typeof o[o[h]]!="number"),d={};for(const h of l)d[h]=o[h];return e.objectValues(d)},e.objectValues=o=>e.objectKeys(o).map(function(l){return o[l]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{const l=[];for(const d in o)Object.prototype.hasOwnProperty.call(o,d)&&l.push(d);return l},e.find=(o,l)=>{for(const d of o)if(l(d))return d},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function a(o,l=" | "){return o.map(d=>
vendor: 1,174 bytes, line 92
92typeof d=="string"?`'${d}'`:d).join(l)}e.joinValues=a,e.jsonStringifyReplacer=(o,l)=>typeof l=="bigint"?l.toString():l})(lt||(lt={}));var DS;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(DS||(DS={}));const ke=lt.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ws=e=>{switch(typeof e){case"undefined":return ke.undefined;case"string":return ke.string;case"number":return Number.isNaN(e)?ke.nan:ke.number;case"boolean":return ke.boolean;case"function":return ke.function;case"bigint":return ke.bigint;case"symbol":return ke.symbol;case"object":return Array.isArray(e)?ke.array:e===null?ke.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?ke.promise:typeof Map<"u"&&e instanceof Map?ke.map:typeof Set<"u"&&e instanceof Set?ke.set:typeof Date<"u"&&e instanceof Date?ke.date:ke.object;default:return ke.unknown}},he=lt.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invali
92d_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class bs extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=a=>{this.issues=[...this.issues,a]},this.addIssues=(a=[])=>{this.issues=[...this.issues,...a]};const n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){const n=t||function(l){return l.message},a={_errors:[]},o=l=>{for(const d of l.issues)if(d.code==="invalid_union")d.unionErrors.map(o);else if(d.code==="invalid_return_type")o(d.returnTypeError);else if(d.code==="invalid_arguments")o(d.argumentsError);else if(d.path.length===0)a._errors.push(n(d));else{let h=a,m=0;for(;m<d.path.length;){const g=d.path[m];m===d.path.length-1?(h[g]=h[g]||{_errors:[]},h[g]._errors.push(n(d))):h[g]=h[g]||{_errors:[]},h=h[g],m++}}};return o(this),a}static assert(t){if(!(t instanceof bs))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,lt.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},a=[];for(const o of this.issues)if(o.path.length>0){const l=o.path[0];n[l]=n[l]||[],n[l].push(t(o))}else a.push(t(o));return{formErrors:a,fieldErrors:n}}get formErrors(){return this.flatten()}}bs.create=e=>new bs(e);const Kg=(e,t)=>{let n;switch(e.code){case he.invalid_type:e.received===ke.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case he.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,lt.jsonStringifyReplacer)}`;break;case he.unrecognized_keys:n=`Unrecognized key(s) in object: ${lt.joinValues(e.keys,", ")}`;break;case he.invalid_union:n="Invalid input";break;case he.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${lt.joinValues(e.options)}`;break;case he.invalid_enum_value:n=`Invalid enum value. Expected ${lt.joinValues(e.options)}, received '${e.received}'`;break;case he.invalid_arguments:n="Invalid function arguments";break;case he.invalid_return_type:n="Invalid function return type";break;case he.invalid_date:n="Invalid date";break;case he.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:lt.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case he.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case he.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case he.custom:n="Invalid input";break;case he.invalid_intersection_types:n="Intersection results could not be merged";break;case he.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case he.not_finite:n="Number must be finite";break;default:n=t.defaultError,lt.assertNever(e)}return{message:n}};let u7=Kg;function d7(){return u7}const f7=e=>{const{data:t,path:n,errorMaps:a,issueData:o}=e,l=[...n,...o.path||[]],d={...o,path:l};if(o.message!==void 0)return{...o,path:l,message:o.message};let h="";const m=a.filter(g=>!!g).slice().reverse();for(const g of m)h=g(d,{data:t,defaultError:h}).message;return{...o,path:l,message:h}};function _e(e,t){const n=d7(),a=f7({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Kg?void 0:Kg].filter(o=>!!o)});e.common.issues.push(a)}class nr{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const a=[];for(const o of n){if(o.status==="aborted")return Fe;o.status==="dirty"&&t.dirty(),a.push(o.value)}return{status:t.value,value:a}}static async mergeObjectAsync(t,n){const a=[];for(const o of n){const l=await o.key,d=await o.value;a.push({key:l,value:d})}return nr.mergeObjectSync(t,a)}static mergeObjectSync(t,n){const a={};for(const o of n){const{key:l,value:d}=o;if(l.status==="aborted"||d.status==="aborted")return Fe;l.status==="dirty"&&t.dirty(),d.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof d.value<"u"||o.alwaysSet)&&(a[l.value]=d.value)}return{status:t.value,value:a}}}const Fe=Object.freeze({status:"aborted"}),Gl=e=>({status:"dirty",value:e}),br=e=>
vendor: 32,728 bytes, line 92
92({status:"valid",value:e}),IS=e=>e.status==="aborted",LS=e=>e.status==="dirty",Co=e=>e.status==="valid",$d=e=>typeof Promise<"u"&&e instanceof Promise;var Ae;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(Ae||(Ae={}));class oa{constructor(t,n,a,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=a,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}}const zS=(e,t)=>{if(Co(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;const n=new bs(e.common.issues);return this._error=n,this._error}}};function Xe(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:a,description:o}=e;if(t&&(n||a))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(d,h)=>{const{message:m}=e;return d.code==="invalid_enum_value"?{message:m??h.defaultError}:typeof h.data>"u"?{message:m??a??h.defaultError}:d.code!=="invalid_type"?{message:h.defaultError}:{message:m??n??h.defaultError}},description:o}}class it{get description(){return this._def.description}_getType(t){return Ws(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ws(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new nr,ctx:{common:t.parent.common,data:t.data,parsedType:Ws(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if($d(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){const n=this._parse(t);return Promise.resolve(n)}parse(t,n){const a=this.safeParse(t,n);if(a.success)return a.data;throw a.error}safeParse(t,n){const a={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ws(t)},o=this._parseSync({data:t,path:a.path,parent:a});return zS(a,o)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ws(t)};if(!this["~standard"].async)try{const a=this._parseSync({data:t,path:[],parent:n});return Co(a)?{value:a.value}:{issues:n.common.issues}}catch(a){a?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(a=>Co(a)?{value:a.value}:{issues:n.common.issues})}async parseAsync(t,n){const a=await this.safeParseAsync(t,n);if(a.success)return a.data;throw a.error}async safeParseAsync(t,n){const a={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ws(t)},o=this._parse({data:t,path:a.path,parent:a}),l=await($d(o)?o:Promise.resolve(o));return zS(a,l)}refine(t,n){const a=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,l)=>{const d=t(o),h=()=>l.addIssue({code:he.custom,...a(o)});return typeof Promise<"u"&&d instanceof Promise?d.then(m=>m?!0:(h(),!1)):d?!0:(h(),!1)})}refinement(t,n){return this._refinement((a,o)=>t(a)?!0:(o.addIssue(typeof n=="function"?n(a,o):n),!1))}_refinement(t){return new Ja({schema:this,typeName:Be.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return sa.create(this,this._def)}nullable(){return jo.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Br.create(this)}promise(){return Kd.create(this,this._def)}or(t){return qd.create([this,t],this._def)}and(t){return Gd.create(this,t,this._def)}transform(t){return new Ja({...Xe(this._def),schema:this,typeName:Be.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Zg({...Xe(this._def),innerType:this,defaultValue:n,typeName:Be.ZodDefault})}brand(){return new D7({typeName:Be.ZodBranded,type:this,...Xe(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new Wg({...Xe(this._def),innerType:this,catchValue:n,typeName:Be.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return yv.create(this,t)}readonly(){return Xg.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const h7=/^c[^\s-]{8,}$/i,m7=/^[0-9a-z]+$/,p7=/^[0-9A-HJKMNP-TV-Z]{26}$/i,g7=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,y7=/^[a-z0-9_-]{21}$/i,v7=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,b7=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,x7=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,w7="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Kp;const S7=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,_7=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,C7=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,E7=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,T7=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,j7=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,bj="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",N7=new RegExp(`^${bj}$`);function xj(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);const n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function k7(e){return new RegExp(`^${xj(e)}$`)}function A7(e){let t=`${bj}T${xj(e)}`;const n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function O7(e,t){return!!((t==="v4"||!t)&&S7.test(e)||(t==="v6"||!t)&&C7.test(e))}function R7(e,t){if(!v7.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const a=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(a));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function P7(e,t){return!!((t==="v4"||!t)&&_7.test(e)||(t==="v6"||!t)&&E7.test(e))}class fs extends it{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==ke.string){const l=this._getOrReturnCtx(t);return _e(l,{code:he.invalid_type,expected:ke.string,received:l.parsedType}),Fe}const a=new nr;let o;for(const l of this._def.checks)if(l.kind==="min")t.data.length<l.value&&(o=this._getOrReturnCtx(t,o),_e(o,{code:he.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind==="max")t.data.length>l.value&&(o=this._getOrReturnCtx(t,o),_e(o,{code:he.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),a.dirty());else if(l.kind==="length"){const d=t.data.length>l.value,h=t.data.length<l.value;(d||h)&&(o=this._getOrReturnCtx(t,o),d?_e(o,{code:he.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):h&&_e(o,{code:he.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),a.dirty())}else if(l.kind==="email")x7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"email",code:he.invalid_string,message:l.message}),a.dirty());else if(l.kind==="emoji")Kp||(Kp=new RegExp(w7,"u")),Kp.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"emoji",code:he.invalid_string,message:l.message}),a.dirty());else if(l.kind==="uuid")g7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"uuid",code:he.invalid_string,message:l.message}),a.dirty());else if(l.kind==="nanoid")y7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"nanoid",code:he.invalid_string,message:l.message}),a.dirty());else if(l.kind==="cuid")h7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"cuid",code:he.invalid_string,message:l.message}),a.dirty());else if(l.kind==="cuid2")m7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"cuid2",code:he.invalid_string,message:l.message}),a.dirty());else if(l.kind==="ulid")p7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"ulid",code:he.invalid_string,message:l.message}),a.dirty());else if(l.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),_e(o,{validation:"url",code:he.invalid_string,message:l.message}),a.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"regex",code:he.invalid_string,message:l.message}),a.dirty())):l.kind==="trim"?t.data=t.data.trim():l.kind==="includes"?t.data.includes(l.value,l.position)||(o=this._getOrReturnCtx(t,o),_e(o,{code:he.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),a.dirty()):l.kind==="toLowerCase"?t.data=t.data.toLowerCase():l.kind==="toUpperCase"?t.data=t.data.toUpperCase():l.kind==="startsWith"?t.data.startsWith(l.value)||(o=this._getOrReturnCtx(t,o),_e(o,{code:he.invalid_string,validation:{startsWith:l.value},message:l.message}),a.dirty()):l.kind==="endsWith"?t.data.endsWith(l.value)||(o=this._getOrReturnCtx(t,o),_e(o,{code:he.invalid_string,validation:{endsWith:l.value},message:l.message}),a.dirty()):l.kind==="datetime"?A7(l).test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{code:he.invalid_string,validation:"datetime",message:l.message}),a.dirty()):l.kind==="date"?N7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{code:he.invalid_string,validation:"date",message:l.message}),a.dirty()):l.kind==="time"?k7(l).test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{code:he.invalid_string,validation:"time",message:l.message}),a.dirty()):l.kind==="duration"?b7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"duration",code:he.invalid_string,message:l.message}),a.dirty()):l.kind==="ip"?O7(t.data,l.version)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"ip",code:he.invalid_string,message:l.message}),a.dirty()):l.kind==="jwt"?R7(t.data,l.alg)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"jwt",code:he.invalid_string,message:l.message}),a.dirty()):l.kind==="cidr"?P7(t.data,l.version)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"cidr",code:he.invalid_string,message:l.message}),a.dirty()):l.kind==="base64"?T7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"base64",code:he.invalid_string,message:l.message}),a.dirty()):l.kind==="base64url"?j7.test(t.data)||(o=this._getOrReturnCtx(t,o),_e(o,{validation:"base64url",code:he.invalid_string,message:l.message}),a.dirty()):lt.assertNever(l);return{status:a.value,value:t.data}}_regex(t,n,a){return this.refinement(o=>t.test(o),{validation:n,code:he.invalid_string,...Ae.errToObj(a)})}_addCheck(t){return new fs({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...Ae.errToObj(t)})}url(t){return this._addCheck({kind:"url",...Ae.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...Ae.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...Ae.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...Ae.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...Ae.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...Ae.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...Ae.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...Ae.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...Ae.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...Ae.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...Ae.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...Ae.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...Ae.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...Ae.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...Ae.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...Ae.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...Ae.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...Ae.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...Ae.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...Ae.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...Ae.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...Ae.errToObj(n)})}nonempty(t){return this.min(1,Ae.errToObj(t))}trim(){return new fs({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new fs({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new fs({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}fs.create=e=>new fs({checks:[],typeName:Be.ZodString,coerce:e?.coerce??!1,...Xe(e)});function M7(e,t){const n=(e.toString().split(".")[1]||"").length,a=(t.toString().split(".")[1]||"").length,o=n>a?n:a,l=Number.parseInt(e.toFixed(o).replace(".","")),d=Number.parseInt(t.toFixed(o).replace(".",""));return l%d/10**o}class Za extends it{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==ke.number){const l=this._getOrReturnCtx(t);return _e(l,{code:he.invalid_type,expected:ke.number,received:l.parsedType}),Fe}let a;const o=new nr;for(const l of this._def.checks)l.kind==="int"?lt.isInteger(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{code:he.invalid_type,expected:"integer",received:"float",message:l.message}),o.dirty()):l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(a=this._getOrReturnCtx(t,a),_e(a,{code:he.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(a=this._getOrReturnCtx(t,a),_e(a,{code:he.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),o.dirty()):l.kind==="multipleOf"?M7(t.data,l.value)!==0&&(a=this._getOrReturnCtx(t,a),_e(a,{code:he.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(a=this._getOrReturnCtx(t,a),_e(a,{code:he.not_finite,message:l.message}),o.dirty()):lt.assertNever(l);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,a,o){return new Za({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:a,message:Ae.toString(o)}]})}_addCheck(t){return new Za({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:Ae.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:Ae.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ae.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ae.toString(t)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&<.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const a of this._def.checks){if(a.kind==="finite"||a.kind==="int"||a.kind==="multipleOf")return!0;a.kind==="min"?(n===null||a.value>n)&&(n=a.value):a.kind==="max"&&(t===null||a.value<t)&&(t=a.value)}return Number.isFinite(n)&&Number.isFinite(t)}}Za.create=e=>new Za({checks:[],typeName:Be.ZodNumber,coerce:e?.coerce||!1,...Xe(e)});class Wa extends it{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==ke.bigint)return this._getInvalidInput(t);let a;const o=new nr;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(a=this._getOrReturnCtx(t,a),_e(a,{code:he.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(a=this._getOrReturnCtx(t,a),_e(a,{code:he.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),o.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(a=this._getOrReturnCtx(t,a),_e(a,{code:he.not_multiple_of,multipleOf:l.value,message:l.message}),o.dirty()):lt.assertNever(l);return{status:o.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:ke.bigint,received:n.parsedType}),Fe}gte(t,n){return this.setLimit("min",t,!0,Ae.toString(n))}gt(t,n){return this.setLimit("min",t,!1,Ae.toString(n))}lte(t,n){return this.setLimit("max",t,!0,Ae.toString(n))}lt(t,n){return this.setLimit("max",t,!1,Ae.toString(n))}setLimit(t,n,a,o){return new Wa({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:a,message:Ae.toString(o)}]})}_addCheck(t){return new Wa({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ae.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ae.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:Ae.toString(n)})}get minValue(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}}Wa.create=e=>new Wa({checks:[],typeName:Be.ZodBigInt,coerce:e?.coerce??!1,...Xe(e)});class Hd extends it{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==ke.boolean){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_type,expected:ke.boolean,received:a.parsedType}),Fe}return br(t.data)}}Hd.create=e=>new Hd({typeName:Be.ZodBoolean,coerce:e?.coerce||!1,...Xe(e)});class Eo extends it{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==ke.date){const l=this._getOrReturnCtx(t);return _e(l,{code:he.invalid_type,expected:ke.date,received:l.parsedType}),Fe}if(Number.isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return _e(l,{code:he.invalid_date}),Fe}const a=new nr;let o;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()<l.value&&(o=this._getOrReturnCtx(t,o),_e(o,{code:he.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),a.dirty()):l.kind==="max"?t.data.getTime()>l.value&&(o=this._getOrReturnCtx(t,o),_e(o,{code:he.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),a.dirty()):lt.assertNever(l);return{status:a.value,value:new Date(t.data.getTime())}}_addCheck(t){return new Eo({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:Ae.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:Ae.toString(n)})}get minDate(){let t=null;for(const n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(const n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}}Eo.create=e=>new Eo({checks:[],coerce:e?.coerce||!1,typeName:Be.ZodDate,...Xe(e)});class US extends it{_parse(t){if(this._getType(t)!==ke.symbol){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_type,expected:ke.symbol,received:a.parsedType}),Fe}return br(t.data)}}US.create=e=>new US({typeName:Be.ZodSymbol,...Xe(e)});class VS extends it{_parse(t){if(this._getType(t)!==ke.undefined){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_type,expected:ke.undefined,received:a.parsedType}),Fe}return br(t.data)}}VS.create=e=>new VS({typeName:Be.ZodUndefined,...Xe(e)});class FS extends it{_parse(t){if(this._getType(t)!==ke.null){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_type,expected:ke.null,received:a.parsedType}),Fe}return br(t.data)}}FS.create=e=>new FS({typeName:Be.ZodNull,...Xe(e)});class BS extends it{constructor(){super(...arguments),this._any=!0}_parse(t){return br(t.data)}}BS.create=e=>new BS({typeName:Be.ZodAny,...Xe(e)});class $S extends it{constructor(){super(...arguments),this._unknown=!0}_parse(t){return br(t.data)}}$S.create=e=>new $S({typeName:Be.ZodUnknown,...Xe(e)});class la extends it{_parse(t){const n=this._getOrReturnCtx(t);return _e(n,{code:he.invalid_type,expected:ke.never,received:n.parsedType}),Fe}}la.create=e=>new la({typeName:Be.ZodNever,...Xe(e)});class HS extends it{_parse(t){if(this._getType(t)!==ke.undefined){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_type,expected:ke.void,received:a.parsedType}),Fe}return br(t.data)}}HS.create=e=>new HS({typeName:Be.ZodVoid,...Xe(e)});class Br extends it{_parse(t){const{ctx:n,status:a}=this._processInputParams(t),o=this._def;if(n.parsedType!==ke.array)return _e(n,{code:he.invalid_type,expected:ke.array,received:n.parsedType}),Fe;if(o.exactLength!==null){const d=n.data.length>o.exactLength.value,h=n.data.length<o.exactLength.value;(d||h)&&(_e(n,{code:d?he.too_big:he.too_small,minimum:h?o.exactLength.value:void 0,maximum:d?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),a.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(_e(n,{code:he.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),a.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(_e(n,{code:he.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),a.dirty()),n.common.async)return Promise.all([...n.data].map((d,h)=>o.type._parseAsync(new oa(n,d,n.path,h)))).then(d=>nr.mergeArray(a,d));const l=[...n.data].map((d,h)=>o.type._parseSync(new oa(n,d,n.path,h)));return nr.mergeArray(a,l)}get element(){return this._def.type}min(t,n){return new Br({...this._def,minLength:{value:t,message:Ae.toString(n)}})}max(t,n){return new Br({...this._def,maxLength:{value:t,message:Ae.toString(n)}})}length(t,n){return new Br({...this._def,exactLength:{value:t,message:Ae.toString(n)}})}nonempty(t){return this.min(1,t)}}Br.create=(e,t)=>new Br({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Be.ZodArray,...Xe(t)});function so(e){if(e instanceof Bt){const t={};for(const n in e.shape){const a=e.shape[n];t[n]=sa.create(so(a))}return new Bt({...e._def,shape:()=>t})}else return e instanceof Br?new Br({...e._def,type:so(e.element)}):e instanceof sa?sa.create(so(e.unwrap())):e instanceof jo?jo.create(so(e.unwrap())):e instanceof Xa?Xa.create(e.items.map(t=>so(t))):e}class Bt extends it{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;const t=this._def.shape(),n=lt.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==ke.object){const g=this._getOrReturnCtx(t);return _e(g,{code:he.invalid_type,expected:ke.object,received:g.parsedType}),Fe}const{status:a,ctx:o}=this._processInputParams(t),{shape:l,keys:d}=this._getCached(),h=[];if(!(this._def.catchall instanceof la&&this._def.unknownKeys==="strip"))for(const g in o.data)d.includes(g)||h.push(g);const m=[];for(const g of d){const y=l[g],x=o.data[g];m.push({key:{status:"valid",value:g},value:y._parse(new oa(o,x,o.path,g)),alwaysSet:g in o.data})}if(this._def.catchall instanceof la){const g=this._def.unknownKeys;if(g==="passthrough")for(const y of h)m.push({key:{status:"valid",value:y},value:{status:"valid",value:o.data[y]}});else if(g==="strict")h.length>0&&(_e(o,{code:he.unrecognized_keys,keys:h}),a.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const y of h){const x=o.data[y];m.push({key:{status:"valid",value:y},value:g._parse(new oa(o,x,o.path,y)),alwaysSet:y in o.data})}}return o.common.async?Promise.resolve().then(async()=>{const g=[];for(const y of m){const x=await y.key,b=await y.value;g.push({key:x,value:b,alwaysSet:y.alwaysSet})}return g}).then(g=>nr.mergeObjectSync(a,g)):nr.mergeObjectSync(a,m)}get shape(){return this._def.shape()}strict(t){return Ae.errToObj,new Bt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,a)=>{const o=this._def.errorMap?.(n,a).message??a.defaultError;return n.code==="unrecognized_keys"?{message:Ae.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new Bt({...this._def,unknownKeys:"strip"})}passthrough(){return new Bt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Bt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Bt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Be.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Bt({...this._def,catchall:t})}pick(t){const n={};for(const a of lt.objectKeys(t))t[a]&&this.shape[a]&&(n[a]=this.shape[a]);return new Bt({...this._def,shape:()=>n})}omit(t){const n={};for(const a of lt.objectKeys(this.shape))t[a]||(n[a]=this.shape[a]);return new Bt({...this._def,shape:()=>n})}deepPartial(){return so(this)}partial(t){const n={};for(const a of lt.objectKeys(this.shape)){const o=this.shape[a];t&&!t[a]?n[a]=o:n[a]=o.optional()}return new Bt({...this._def,shape:()=>n})}required(t){const n={};for(const a of lt.objectKeys(this.shape))if(t&&!t[a])n[a]=this.shape[a];else{let l=this.shape[a];for(;l instanceof sa;)l=l._def.innerType;n[a]=l}return new Bt({...this._def,shape:()=>n})}keyof(){return wj(lt.objectKeys(this.shape))}}Bt.create=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strip",catchall:la.create(),typeName:Be.ZodObject,...Xe(t)});Bt.strictCreate=(e,t)=>new Bt({shape:()=>e,unknownKeys:"strict",catchall:la.create(),typeName:Be.ZodObject,...Xe(t)});Bt.lazycreate=(e,t)=>new Bt({shape:e,unknownKeys:"strip",catchall:la.create(),typeName:Be.ZodObject,...Xe(t)});class qd extends it{_parse(t){const{ctx:n}=this._processInputParams(t),a=this._def.options;function o(l){for(const h of l)if(h.result.status==="valid")return h.result;for(const h of l)if(h.result.status==="dirty")return n.common.issues.push(...h.ctx.common.issues),h.result;const d=l.map(h=>new bs(h.ctx.common.issues));return _e(n,{code:he.invalid_union,unionErrors:d}),Fe}if(n.common.async)return Promise.all(a.map(async l=>{const d={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:d}),ctx:d}})).then(o);{let l;const d=[];for(const m of a){const g={...n,common:{...n.common,issues:[]},parent:null},y=m._parseSync({data:n.data,path:n.path,parent:g});if(y.status==="valid")return y;y.status==="dirty"&&!l&&(l={result:y,ctx:g}),g.common.issues.length&&d.push(g.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const h=d.map(m=>new bs(m));return _e(n,{code:he.invalid_union,unionErrors:h}),Fe}}get options(){return this._def.options}}qd.create=(e,t)=>
vendor: 4,409 bytes, line 92
92new qd({options:e,typeName:Be.ZodUnion,...Xe(t)});function Qg(e,t){const n=Ws(e),a=Ws(t);if(e===t)return{valid:!0,data:e};if(n===ke.object&&a===ke.object){const o=lt.objectKeys(t),l=lt.objectKeys(e).filter(h=>o.indexOf(h)!==-1),d={...e,...t};for(const h of l){const m=Qg(e[h],t[h]);if(!m.valid)return{valid:!1};d[h]=m.data}return{valid:!0,data:d}}else if(n===ke.array&&a===ke.array){if(e.length!==t.length)return{valid:!1};const o=[];for(let l=0;l<e.length;l++){const d=e[l],h=t[l],m=Qg(d,h);if(!m.valid)return{valid:!1};o.push(m.data)}return{valid:!0,data:o}}else return n===ke.date&&a===ke.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Gd extends it{_parse(t){const{status:n,ctx:a}=this._processInputParams(t),o=(l,d)=>{if(IS(l)||IS(d))return Fe;const h=Qg(l.value,d.value);return h.valid?((LS(l)||LS(d))&&n.dirty(),{status:n.value,value:h.data}):(_e(a,{code:he.invalid_intersection_types}),Fe)};return a.common.async?Promise.all([this._def.left._parseAsync({data:a.data,path:a.path,parent:a}),this._def.right._parseAsync({data:a.data,path:a.path,parent:a})]).then(([l,d])=>o(l,d)):o(this._def.left._parseSync({data:a.data,path:a.path,parent:a}),this._def.right._parseSync({data:a.data,path:a.path,parent:a}))}}Gd.create=(e,t,n)=>new Gd({left:e,right:t,typeName:Be.ZodIntersection,...Xe(n)});class Xa extends it{_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==ke.array)return _e(a,{code:he.invalid_type,expected:ke.array,received:a.parsedType}),Fe;if(a.data.length<this._def.items.length)return _e(a,{code:he.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Fe;!this._def.rest&&a.data.length>this._def.items.length&&(_e(a,{code:he.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...a.data].map((d,h)=>{const m=this._def.items[h]||this._def.rest;return m?m._parse(new oa(a,d,a.path,h)):null}).filter(d=>!!d);return a.common.async?Promise.all(l).then(d=>nr.mergeArray(n,d)):nr.mergeArray(n,l)}get items(){return this._def.items}rest(t){return new Xa({...this._def,rest:t})}}Xa.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xa({items:e,typeName:Be.ZodTuple,rest:null,...Xe(t)})};class qS extends it{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==ke.map)return _e(a,{code:he.invalid_type,expected:ke.map,received:a.parsedType}),Fe;const o=this._def.keyType,l=this._def.valueType,d=[...a.data.entries()].map(([h,m],g)=>({key:o._parse(new oa(a,h,a.path,[g,"key"])),value:l._parse(new oa(a,m,a.path,[g,"value"]))}));if(a.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const m of d){const g=await m.key,y=await m.value;if(g.status==="aborted"||y.status==="aborted")return Fe;(g.status==="dirty"||y.status==="dirty")&&n.dirty(),h.set(g.value,y.value)}return{status:n.value,value:h}})}else{const h=new Map;for(const m of d){const g=m.key,y=m.value;if(g.status==="aborted"||y.status==="aborted")return Fe;(g.status==="dirty"||y.status==="dirty")&&n.dirty(),h.set(g.value,y.value)}return{status:n.value,value:h}}}}qS.create=(e,t,n)=>new qS({valueType:t,keyType:e,typeName:Be.ZodMap,...Xe(n)});class hc extends it{_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.parsedType!==ke.set)return _e(a,{code:he.invalid_type,expected:ke.set,received:a.parsedType}),Fe;const o=this._def;o.minSize!==null&&a.data.size<o.minSize.value&&(_e(a,{code:he.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&a.data.size>o.maxSize.value&&(_e(a,{code:he.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());const l=this._def.valueType;function d(m){const g=new Set;for(const y of m){if(y.status==="aborted")return Fe;y.status==="dirty"&&n.dirty(),g.add(y.value)}return{status:n.value,value:g}}const h=[...a.data.values()].map((m,g)=>l._parse(new oa(a,m,a.path,g)));return a.common.async?Promise.all(h).then(m=>d(m)):d(h)}min(t,n){return new hc({...this._def,minSize:{value:t,message:Ae.toString(n)}})}max(t,n){return new hc({...this._def,maxSize:{value:t,message:Ae.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}hc.create=(e,t)=>
vendor: 4,655 bytes, line 92
92new hc({valueType:e,minSize:null,maxSize:null,typeName:Be.ZodSet,...Xe(t)});class GS extends it{get schema(){return this._def.getter()}_parse(t){const{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}}GS.create=(e,t)=>new GS({getter:e,typeName:Be.ZodLazy,...Xe(t)});class Yg extends it{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return _e(n,{received:n.data,code:he.invalid_literal,expected:this._def.value}),Fe}return{status:"valid",value:t.data}}get value(){return this._def.value}}Yg.create=(e,t)=>new Yg({value:e,typeName:Be.ZodLiteral,...Xe(t)});function wj(e,t){return new To({values:e,typeName:Be.ZodEnum,...Xe(t)})}class To extends it{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),a=this._def.values;return _e(n,{expected:lt.joinValues(a),received:n.parsedType,code:he.invalid_type}),Fe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),a=this._def.values;return _e(n,{received:n.data,code:he.invalid_enum_value,options:a}),Fe}return br(t.data)}get options(){return this._def.values}get enum(){const t={};for(const n of this._def.values)t[n]=n;return t}get Values(){const t={};for(const n of this._def.values)t[n]=n;return t}get Enum(){const t={};for(const n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return To.create(t,{...this._def,...n})}exclude(t,n=this._def){return To.create(this.options.filter(a=>!t.includes(a)),{...this._def,...n})}}To.create=wj;class KS extends it{_parse(t){const n=lt.getValidEnumValues(this._def.values),a=this._getOrReturnCtx(t);if(a.parsedType!==ke.string&&a.parsedType!==ke.number){const o=lt.objectValues(n);return _e(a,{expected:lt.joinValues(o),received:a.parsedType,code:he.invalid_type}),Fe}if(this._cache||(this._cache=new Set(lt.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const o=lt.objectValues(n);return _e(a,{received:a.data,code:he.invalid_enum_value,options:o}),Fe}return br(t.data)}get enum(){return this._def.values}}KS.create=(e,t)=>new KS({values:e,typeName:Be.ZodNativeEnum,...Xe(t)});class Kd extends it{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==ke.promise&&n.common.async===!1)return _e(n,{code:he.invalid_type,expected:ke.promise,received:n.parsedType}),Fe;const a=n.parsedType===ke.promise?n.data:Promise.resolve(n.data);return br(a.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}}Kd.create=(e,t)=>new Kd({type:e,typeName:Be.ZodPromise,...Xe(t)});class Ja extends it{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Be.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:a}=this._processInputParams(t),o=this._def.effect||null,l={addIssue:d=>{_e(a,d),d.fatal?n.abort():n.dirty()},get path(){return a.path}};if(l.addIssue=l.addIssue.bind(l),o.type==="preprocess"){const d=o.transform(a.data,l);if(a.common.async)return Promise.resolve(d).then(async h=>{if(n.value==="aborted")return Fe;const m=await this._def.schema._parseAsync({data:h,path:a.path,parent:a});return m.status==="aborted"?Fe:m.status==="dirty"||n.value==="dirty"?Gl(m.value):m});{if(n.value==="aborted")return Fe;const h=this._def.schema._parseSync({data:d,path:a.path,parent:a});return h.status==="aborted"?Fe:h.status==="dirty"||n.value==="dirty"?Gl(h.value):h}}if(o.type==="refinement"){const d=h=>{const m=o.refinement(h,l);if(a.common.async)return Promise.resolve(m);if(m instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(a.common.async===!1){const h=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});return h.status==="aborted"?Fe:(h.status==="dirty"&&n.dirty(),d(h.value),{status:n.value,value:h.value})}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(h=>h.status==="aborted"?Fe:(h.status==="dirty"&&n.dirty(),d(h.value).then(()=>({status:n.value,value:h.value}))))}if(o.type==="transform")if(a.common.async===!1){const d=this._def.schema._parseSync({data:a.data,path:a.path,parent:a});if(!Co(d))return Fe;const h=o.transform(d.value,l);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:h}}else return this._def.schema._parseAsync({data:a.data,path:a.path,parent:a}).then(d=>Co(d)?Promise.resolve(o.transform(d.value,l)).then(h=>({status:n.value,value:h})):Fe);lt.assertNever(o)}}
92Ja.create=(e,t,n)=>new Ja({schema:e,typeName:Be.ZodEffects,effect:t,...Xe(n)});Ja.createWithPreprocess=(e,t,n)=>new Ja({schema:t,effect:{type:"preprocess",transform:e},typeName:Be.ZodEffects,...Xe(n)});class sa extends it{_parse(t){return this._getType(t)===ke.undefined?br(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}sa.create=(e,t)=>new sa({innerType:e,typeName:Be.ZodOptional,...Xe(t)});class jo extends it{_parse(t){return this._getType(t)===ke.null?br(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}jo.create=(e,t)=>new jo({innerType:e,typeName:Be.ZodNullable,...Xe(t)});class Zg extends it{_parse(t){const{ctx:n}=this._processInputParams(t);let a=n.data;return n.parsedType===ke.undefined&&(a=this._def.defaultValue()),this._def.innerType._parse({data:a,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Zg.create=(e,t)=>new Zg({innerType:e,typeName:Be.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Xe(t)});class Wg extends it{_parse(t){const{ctx:n}=this._processInputParams(t),a={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:a.data,path:a.path,parent:{...a}});return $d(o)?o.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new bs(a.common.issues)},input:a.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new bs(a.common.issues)},input:a.data})}}removeCatch(){return this._def.innerType}}Wg.create=(e,t)=>new Wg({innerType:e,typeName:Be.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Xe(t)});class QS extends it{_parse(t){if(this._getType(t)!==ke.nan){const a=this._getOrReturnCtx(t);return _e(a,{code:he.invalid_type,expected:ke.nan,received:a.parsedType}),Fe}return{status:"valid",value:t.data}}}QS.create=e=>new QS({typeName:Be.ZodNaN,...Xe(e)});class D7 extends it{_parse(t){const{ctx:n}=this._processInputParams(t),a=n.data;return this._def.type._parse({data:a,path:n.path,parent:n})}unwrap(){return this._def.type}}class yv extends it{_parse(t){const{status:n,ctx:a}=this._processInputParams(t);if(a.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:a.data,path:a.path,parent:a});return l.status==="aborted"?Fe:l.status==="dirty"?(n.dirty(),Gl(l.value)):this._def.out._parseAsync({data:l.value,path:a.path,parent:a})})();{const o=this._def.in._parseSync({data:a.data,path:a.path,parent:a});return o.status==="aborted"?Fe:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:a.path,parent:a})}}static create(t,n){return new yv({in:t,out:n,typeName:Be.ZodPipeline})}}class Xg extends it{_parse(t){const n=this._def.innerType._parse(t),a=o=>(Co(o)&&(o.value=Object.freeze(o.value)),o);return $d(n)?n.then(o=>a(o)):a(n)}unwrap(){return this._def.innerType}}Xg.create=(e,t)=>new Xg({innerType:e,typeName:Be.ZodReadonly,...Xe(t)});var Be;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Be||(Be={}));const Vl=fs.create,BB=Za.create;Wa.create;const $B=Hd.create;Eo.create;la.create;const HB=Br.create,I7=Bt.create;qd.create;Gd.create;Xa.create;const qB=Yg.create,GB=To.create;Kd.create;sa.create;jo.create;const KB=Ja.createWithPreprocess,QB={string:(e=>fs.create({...e,coerce:!0})),number:(e=>Za.create({...e,coerce:!0})),boolean:(e=>Hd.create({...e,coerce:!0})),bigint:(e=>Wa.create({...e,coerce:!0})),date:(e=>Eo.create({...e,coerce:!0}))},vv=v.forwardRef(({className:e,...t},n)=>u.jsx("textarea",{className:Pe("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));vv.displayName="Textarea";function Ys({className:e,...t}){return u.jsx("div",{className:Pe("animate-pulse rounded-md bg-muted",e),...t})}var L7=Object.defineProperty,Lo=(e,t)=>L7(e,"name",{value:t,configurable:!0}),bv="Tabs",[z7,YB]=Bn(bv,[Sf]),Sj=Sf(),[U7,xv]=z7(bv),V7=v.forwardRef(Lo(function(t,n){const{__scopeTabs:a,value:o,onValueChange:l,defaultValue:d,orientation:h="horizontal",dir:m,activationMode:g="automatic",...y}=t,x=bc(m),[b,C]=$r({prop:o,onChange:l,defaultProp:d??"",caller:bv});return u.jsx(U7,{scope:a,baseId:gr(),value:b,onValueChange:C,orientation:h,dir:x,activationMode:g,children:u.jsx(Ve.div,{dir:x,"data-orientation":h,...y,ref:n})})},"Tabs")),F7="TabsList",B7=v.forwardRef(Lo(function(t,n){const{__scopeTabs:a,loop:o=!0,...l}=t,d=xv(F7,a),h=Sj(a);return u.jsx(WE,{asChild:!0,...h,orientation:d.orientation,dir:d.dir,loop:o,children:u.jsx(Ve.div,{role:"tablist","aria-orientation":d.orientation,...l,ref:n})})},"TabsList")),$7="TabsTrigger",H7=v.forwardRef(Lo(function(t,n){const{__scopeTabs:a,value:o,disabled:l=!1,...d}=t,h=xv($7,a),m=Sj(a),g=wv(h.baseId,o),y=Sv(h.baseId,o),x=o===h.value;return u.jsx(XE,{asChild:!0,...m,focusable:!l,active:x,children:u.jsx(Ve.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":y,"data-state":x?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:g,...d,ref:n,onMouseDown:xe(t.onMouseDown,b=>{!l&&b.button===0&&b.ctrlKey===!1?h.onValueChange(o):b.preventDefault()}),onKeyDown:xe(t.onKeyDown,b=>{l||b.target!==b.currentTarget||[" ","Enter"].includes(b.key)&&h.onValueChange(o)}),onFocus:xe(t.onFocus,()=>{const b=h.activationMode!=="manual";!x&&!l&&b&&h.onValueChange(o)})})})},"TabsTrigger")),q7="TabsContent",G7=v.forwardRef(Lo(function(t,n){const{__scopeTabs:a,value:o,forceMount:l,children:d,...h}=t,m=xv(q7,a),g=wv(m.baseId,o),y=Sv(m.baseId,o),x=o===m.value,b=v.useRef(x);return v.useEffect(()=>{const C=requestAnimationFrame(()=>b.current=!1);return()=>cancelAnimationFrame(C)},[]),u.jsx(rr,{present:l||x,children:({present:C})=>u.jsx(Ve.div,{"data-state":x?"active":"inactive","data-orientation":m.orientation,role:"tabpanel","aria-labelledby":g,hidden:!C,id:y,tabIndex:0,...h,ref:n,style:{...t.style,animationDuration:b.current?"0s":void 0},children:C&&d})})},"TabsContent"));function wv(e,t){return`${e}-trigger-${t}`}Lo(wv,"makeTriggerId");function Sv(e,t){return`${e}-content-${t}`}Lo(Sv,"makeContentId");var K7=V7,_j=B7,Cj=H7,Ej=G7;const Q7=K7,Tj=v.forwardRef(({className:e,...t},n)=>u.jsx(_j,{ref:n,className:Pe("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Tj.displayName=_j.displayName;const Jg=v.forwardRef(({className:e,...t},n)=>u.jsx(Cj,{ref:n,className:Pe("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));Jg.displayName=Cj.displayName;const ey=v.forwardRef(({className:e,...t},n)=>u.jsx(Ej,{ref:n,className:Pe("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ey.displayName=Ej.displayName;const Y7=GV,jj=v.createContext({}
92),Z7=({...e})=>u.jsx(jj.Provider,{value:{name:e.name},children:u.jsx(BV,{...e})}),Lf=()=>{const e=v.useContext(jj),t=v.useContext(Nj),{getFieldState:n,formState:a}=qV(),o=n(e.name,a);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:l}=t;return{id:l,name:e.name,formItemId:`${l}-form-item`,formDescriptionId:`${l}-form-item-description`,formMessageId:`${l}-form-item-message`,...o}},Nj=v.createContext({}),kj=v.forwardRef(({className:e,...t},n)=>{const a=v.useId();return u.jsx(Nj.Provider,{value:{id:a},children:u.jsx("div",{ref:n,className:Pe("space-y-2",e),...t})})});kj.displayName="FormItem";const Aj=v.forwardRef(({className:e,...t},n)=>{const{error:a,formItemId:o}=Lf();return u.jsx(Xs,{ref:n,className:Pe(a&&"text-destructive",e),htmlFor:o,...t})});Aj.displayName="FormLabel";const Oj=v.forwardRef(({...e},t)=>{const{error:n,formItemId:a,formDescriptionId:o,formMessageId:l}=Lf();return u.jsx(z_,{ref:t,id:a,"aria-describedby":n?`${o} ${l}`:`${o}`,"aria-invalid":!!n,...e})});Oj.displayName="FormControl";const W7=v.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:a}=Lf();return u.jsx("p",{ref:n,id:a,className:Pe("text-sm text-muted-foreground",e),...t})});W7.displayName="FormDescription";const Rj=v.forwardRef(({className:e,children:t,...n},a)=>{const{error:o,formMessageId:l}=Lf(),d=o?String(o?.message??""):t;return d?u.jsx("p",{ref:a,id:l,className:Pe("text-sm font-medium text-destructive",e),...n,children:d}):null});Rj.displayName="FormMessage";const X7={historyAvailability:{purchaseDate:"purchaseYear",ownershipHistory:"ownershipNotes",previousOwners:"numberOfOwners"},exteriorCondition:{conditionDescription:"overallExterior",overallCondition:"overallExterior"},interiorCondition:{overallCondition:"overallInterior",dinetteStyle:"dinetteArea",bathroomLocation:"bathroomCondition",smoking:"smokingPets",pets:"smokingPets"},electricalLpClimate:{solarDetails:"solarBatteriesInverter",solarPanels:"solarBatteriesInverter"},towingTiresSafety:{hitchSize:"hitchInfo",hitchCoupler:"hitchInfo",brakesBearings:["brakes","wheelBearings"]},accessoriesFinal:{additionalNotes:"otherNotes",certify:"certificationAgreed"}},YS=e=>e==null?!1:typeof e=="string"?e.trim()!=="":Array.isArray(e)?e.length>0:typeof e=="object"?Object.keys(e).length>0:!0;function J7(e){if(!e||typeof e!="object")return e;const t={...e};for(const[n,a]of Object.entries(X7)){const o=e[n];if(!o||typeof o!="object")continue;const l={...o};for(const[d,h]of Object.entries(a)){const m=l[d];if(!YS(m))continue;const g=Array.isArray(h)?h:[h];for(const y of g)YS(l[y])||(l[y]=m)}t[n]=l}return t}const ZS={excellent:4,good:3,fair:2,poor:1,not_applicable:-1},WS={yes:3,no:1},XS=new Set(["hailDamage","waterDamage","waterLeaksDamage","bodyDamage","accidentHistory","floodDamage","fireDamage","structuralDamage","leaks","rustDamage","previousDamage"]);function eF(e,t){if(typeof e=="boolean")return t&&XS.has(t)?e?1:4:e?3:1;if(typeof e!="string")return-1;const n=e.toLowerCase().trim();if(t&&XS.has(t)){if(n==="no"||n==="none"||n==="n/a"||n==="no damage")return 4;if(n==="yes")return 1}if(ZS[n]!==void 0)return ZS[n];if(WS[n]!==void 0)return WS[n];const a=/\b(poor|bad|broken|damaged|cracked|leaking|rusted|rotted|missing|destroyed|non.?functional|not working|doesn.?t work|inoperable)\b/,o=/\b(fair|worn|aged|dated|needs (repair|work|attention|replacing|updating)|some (wear|damage|rust|issues)|minor (damage|issues|rust|wear))\b/,l=/\b(good|great|works? (well|fine|perfectly)|no (issues|problems|damage|leaks|rust)|functional|solid|clean|all good|working good|working great|looks great|looks good|original|intact)\b/,d=/\b(excellent|perfect|like new|brand new|pristine|mint|flawless|outstanding|great condition|great shape|excellent condition)\b/;return a.test(n)?1:d.test(n)?4:l.test(n)?3:o.test(n)?2:n.length>0&&n.length<=100?3:-1}function Pj(e){return e>=90?"Excellent":e>=75?"Very Good":e>=55?"Good":e>=35?"Fair":"Needs Attention"}function tF(e){switch(e){case"Excellent":return"text-emerald-600 dark:text-emerald-400";case"Very Good":return"text-green-600 dark:text-green-400";case"Good":return"text-yellow-600 dark:text-yellow-400";
92case"Fair":return"text-orange-600 dark:text-orange-400";default:return"text-red-600 dark:text-red-400"}}function nF(e){switch(e){case"Excellent":return"bg-emerald-500";case"Very Good":return"bg-green-500";case"Good":return"bg-yellow-500";case"Fair":return"bg-orange-500";default:return"bg-red-500"}}function rF(e){switch(e){case"Excellent":case"Very Good":return"default";case"Good":return"secondary";default:return"outline"}}function sF(e){return e.replace(/([A-Z])/g," $1").replace(/^./,t=>t.toUpperCase()).replace(/([a-z])([A-Z])/g,"$1 $2").replace(/_/g," ").replace(/\b\w/g,t=>t.toUpperCase())}function Mj(e){return typeof e=="boolean"?e?"Yes":"No":typeof e=="string"?e.charAt(0).toUpperCase()+e.slice(1).replace(/_/g," "):String(e)}const aF=new Set(["exteriorNotes","interiorNotes","applianceNotes","plumbingNotes","electricalNotes","towingNotes","additionalNotes","conditionDescription","layoutDescription","usageDescription","includedAccessories","otherNotes","certificationAgreed","signatureName","signatureDate"]),iF=new Set(["purchaseYear","numberOfOwners","titleStatus","availabilityDate","storageType","year","model","length","vin","location","mileage","ownerName","secondOwnerName","email","phone","address","city","state","zipCode","registered","registrationState","purchaseDate","originalOwner","previousOwners","ownershipHistory","whySelected","whySelling","showingInstructions","virtualTourInstructions","dinetteArea","dinetteStyle","sleepingAreas","bathroomLocation","bathroomCondition","smokingPets","pets","smoking","otherAppliances","waterHeaterType","toiletType","towVehicle","towHitchType","tireSize","spareLocation","brakeController"]),oF=[{dataKey:"rigIdentification",name:"Airstream Basics",icon:fP,fields:[{label:"Year",ke
92y:"year"},{label:"Model",key:"model"},{label:"Length",key:"length"},{label:"VIN",key:"vin"},{label:"Location",key:"location"},{label:"Estimated Mileage",key:"mileage"}]},{dataKey:"historyAvailability",name:"History & Availability",icon:jC,fields:[{label:"Number of Owners",key:"numberOfOwners"},{label:"Purchase Year",key:"purchaseYear"},{label:"Accident History",key:"accidentHistory"},{label:"Ownership Notes",key:"ownershipNotes"}]}];function lF(e){const t=[];for(const n of oF){const a=e[n.dataKey];if(!a||typeof a!="object")continue;const o=[];for(const l of n.fields){const d=a[l.key];d!=null&&(typeof d=="string"&&d.trim()===""||o.push({label:l.label,value:Mj(d)}))}o.length>0&&t.push({name:n.name,icon:n.icon,items:o})}return t}function cF(e,t,n){if(!e||typeof e!="object")return null;const a=[];let o=0,l=0;for(const[m,g]of Object.entries(e)){if(aF.has(m)||iF.has(m))continue;const y=eF(g,m);y!==-1&&(a.push({label:sF(m),value:Mj(g),score:y}),o+=y,l++)}if(l===0)return null;const d=l*4,h=Math.round(o/d*100);return{name:t,icon:n,score:o,maxScore:d,percentage:h,rating:Pj(h),details:a}}function uF(e){const t=[[e.exteriorCondition,"Exterior",NC],[e.interiorCondition,"Interior",_M],[e.appliances,"Appliances",UP],[e.plumbingWater,"Plumbing & Water",OP],[e.electricalLpClimate,"Electrical & Climate",BM],[e.towingTiresSafety,"Towing & Safety",MM],[e.historyAvailability,"History",jC],[e.accessoriesFinal,"Accessories",iM]],n=[];let a=0,o=0;for(const[h,m,g]of t){const y=cF(h,m,g);y&&(n.push(y),a+=y.score,o+=y.maxScore)}const l=o>0?Math.round(a/o*100):0,d=Pj(l);return{categories:n,overallRating:d,overallPercentage:l}}function dF({listingId:e,exteriorCondition:t}){const[n,a]=v.useState(!1),[o,l]=v.useState(!1),{data:d,isLoading:h,error:m}=Vn({queryKey:["/api/rvs",e,"condition-scorecard"]});if(h||m||!d)return null;const g=J7(d),{categories:y,overallRating:x}=uF(g),b=lF(g),C=new Set(b.flatMap(w=>w.items.map(_=>`${w.name}:${_.label}`)));if(y.length===0)return null;const E=t||x;return u.jsxs(kn,{className:"border-emerald-500/30 bg-gradient-to-br from-emerald-50/50 to-green-50/30 dark:from-emerald-950/20 dark:to-green-950/10","data-testid":"condition-scorecard",children:[u.jsxs(av,{className:"pb-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs(iv,{className:"text-base flex items-center gap-2",children:[u.jsx(bM,{className:"h-5 w-5 text-emerald-600 dark:text-emerald-400"}),"Seller Condition Report"]}),u.jsxs(kt,{variant:rF(E),"data-testid":"badge-overall-rating",children:[u.jsx(EC,{className:"h-3 w-3 mr-1"}),E]})]}),u.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Based on the Seller's 75-Point Disclosure. All information to be verified by Buyer."})]}),u.jsxs(Un,{className:"space-y-3",children:[u.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:y.slice(0,n?y.length:4).map(w=>{const _=w.icon;return u.jsxs("div",{className:"flex flex-col gap-1.5 p-2.5 rounded-lg bg-white/60 dark:bg-white/5 border border-border/50","data-testid":`scorecard-category-${w.name.toLowerCase().replace(/\s+/g,"-")}`,children:[u.jsxs("div",{className:"flex items-center gap-1.5",children:[u.jsx(_,{className:"h-3.5 w-3.5 text-muted-foreground"}),u.jsx("span",{className:"text-xs font-medium truncate",children:w.name})]}),u.jsx("div",{className:"w-full h-1.5 rounded-full bg-muted overflow-hidden",children:u.jsx("div",{className:`h-full rounded-full transition-all ${nF(w.rating)}`,style:{width:`${w.percentage}%`}})}),u.jsx("span",{className:`text-[11px] font-medium ${tF(w.rating)}`,children:w.rating})]},w.name)})}),u.jsxs("div",{className:"flex gap-2",children:[y.length>4&&u.jsx(Te,{variant:"ghost",size:"sm",className:"flex-1 text-xs",onClick:()=>a(!n),"data-testid":"button-expand-scorecard",children:n?u.jsxs(u.Fragment,{children:[u.jsx(CC,{className:"h-3.5 w-3.5 mr-1"}),"Show Less"]}):u.jsxs(u.Fragment,{children:[u.jsx(ef,{className:"h-3.5 w-3.5 mr-1"}),"All ",y.length," Categories"]})}),u.jsxs(Te,{variant:"outline",size:"sm",className:"flex-1 text-xs",onClick:()=>l(!o),"data-testid":"button-view-full-disclosure",children:[u.jsx(vg,{className:"h-3.5 w-3.5 mr-1"}),o?"Hide Details":"View Full Disclosure"]})]}),o&&u.jsxs("div",{className:"space-y-4 pt-2 border-t","data-testid":"disclosure-details",children:[b.map(w=>{const _=w.icon;return u.jsxs("div",{className:"space-y-2","data-testid":`disclosure-info-${w.name.toLowerCase().replace(/[^a-z0-9]+/g,"-")}`,children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(_,{className:"h-4 w-4 text-muted-foreground"}),u.jsx("h4",{className:"text-sm font-semibold",children:w.name})]}),u.jsx("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 pl-6",children:w.items.map(R=>u.jsxs("div",{className:"flex items-center justify-between text-xs py-0.5",children:[u.jsx("span",{className:"text-muted-foreground",children:R.label}),u.jsx("span",{className:"font-medium text-right",children:R.value})]},R.label))})]},w.name)}),y.map(w=>{const _=w.icon,R=w.name==="History"?w.details.filter(A=>!C.has(`History & Availability:${A.label}`)):w.details;return R.length===0?null:u.jsxs("div",{className:"space-y-2",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(_,{className:"h-4 w-4 text-muted-foreground"}),u.jsx("h4",{className:"text-sm font-semibold",children:w.name}),u.jsx(kt,{variant:"outline",className:"text-[10px] h-4 ml-auto",children:w.rating})]}),u.jsx("div",{className:"grid grid-cols-2 gap-x-4 gap-y-1 pl-6",children:R.map(A=>u.jsxs("div",{className:"flex items-center justify-between text-xs py-0.5",children:[u.jsx("span",{className:"text-muted-foreground",children:A.label}),u.jsx("span",{className:`font-medium ${A.score>=3?"text-emerald-600 dark:text-emerald-400":A.score>=2?"text-yellow-600 dark:text-yellow-400":"text-red-600 dark:text-red-400"}`,children:A.value})]},A.label))})]},w.name)})]})]})]})}function fF({listingId:e}){const{toast:t}=ti(),[n,a]=v.useState(!1),[o,l]=v.useState(""),[d,h]=v.useState("25"),[m,g]=v.useState("9:16"),{data:y=[],isLoading:x,isError:b}=Vn({queryKey:["/api/rvs",e,"videos"],queryFn:async()=>{const O=await fetch(`/api/rvs/${e}/videos`);if(!O.ok)throw new Error("Failed to fetch videos");return O.json()},refetchInterval:O=>O.state.data?.some(F=>F.status==="generating"||F.status==="pending")?5e3:!1}),C=tr({mutationFn:async()=>(await pn("POST",`/api/rvs/${e}/video-prompt`)).json(),onSuccess:O=>{l(O.prompt),a(!0)},onError:()=>{t({title:"Error",description:"Failed to generate video prompt.",variant:"destructive"})}}),E=tr({mutationFn:async O=>(await pn("POST",`/api/rvs/${e}/generate-video`,O)).json(),onSuccess:()=>{a(!1),On.invalidateQueries({queryKey:["/api/rvs",e,"videos"]}),t({title:"Video Generation Started",description:"Your cinematic video is being generated. This may take a few minutes."})},onError:O=>{t({title:"Error",description:O.message||"Failed to start video generation.",variant:"destructive"})}}),w=tr({mutationFn:async O=>pn("DELETE",`/api/videos/${O}`),onSuccess:()=>{On.invalidateQueries({queryKey:["/api/rvs",e,"videos"]}),t({title:"Video Deleted",description:"The video has been removed."})},onError:()=>{t({title:"Error",description:"Failed to delete video.",variant:"destructive"})}}),_=()=>{C.mutate()},R=()=>{E.mutate({prompt:o,durationSeconds:parseInt(d),aspectRatio:m})},A=y.find(O=>O.status==="generating"||O.status==="pending"),k=y.filter(O=>O.status==="complete"),N=y.filter(O=>O.status==="failed");return u.jsxs(u.Fragment,{children:[u.jsxs(kn,{className:"border-dashed","data-testid":"section-vi
92deo-generator",children:[u.jsx(av,{className:"pb-3",children:u.jsxs(iv,{className:"text-base flex items-center gap-2",children:[u.jsx(wg,{className:"h-4 w-4"}),"AI Cinematic Video"]})}),u.jsxs(Un,{className:"space-y-4",children:[x&&u.jsxs("div",{className:"flex items-center gap-2 text-sm text-muted-foreground py-2",children:[u.jsx(Fa,{className:"h-4 w-4 animate-spin"}),"Loading videos..."]}),b&&u.jsxs("div",{className:"flex items-center gap-2 p-3 bg-red-50 dark:bg-red-950/30 rounded-lg border border-red-200 dark:border-red-800",children:[u.jsx(i1,{className:"h-4 w-4 text-red-500"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"Could not load videos. You may not have admin access."})]}),A&&u.jsxs("div",{className:"flex items-center gap-3 p-3 bg-blue-50 dark:bg-blue-950/30 rounded-lg border border-blue-200 dark:border-blue-800","data-testid":"status-video-generating",children:[u.jsx(Fa,{className:"h-5 w-5 animate-spin text-blue-500"}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("p",{className:"text-sm font-medium",children:"Generating video..."}),u.jsx("p",{className:"text-xs text-muted-foreground truncate",children:"This typically takes 2-5 minutes"})]})]}),N.map(O=>u.jsxs("div",{className:"flex items-start gap-3 p-3 bg-red-50 dark:bg-red-950/30 rounded-lg border border-red-200 dark:border-red-800","data-testid":`status-video-failed-${O.id}`,children:[u.jsx(i1,{className:"h-5 w-5 text-red-500 mt-0.5"}),u.jsxs("div",{className:"flex-1 min-w-0",children:[u.jsx("p",{className:"text-sm font-medium",children:"Generation failed"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:O.errorMessage||"An unknown error occurred"})]}),u.jsx(Te,{variant:"ghost",size:"icon",className:"h-8 w-8 shrink-0",onClick:()=>w.mutate(O.id),"data-testid":`button-delete-failed-video-${O.id}`,children:u.jsx(jd,{className:"h-4 w-4"})})]},O.id)),k.length>0&&u.jsx("div",{className:"space-y-3",children:k.map(O=>u.jsxs("div",{className:"space-y-2","data-testid":`video-item-${O.id}`,children:[u.jsx("div",{className:`relative rounded-lg overflow-hidden bg-black mx-auto w-auto ${O.aspectRatio==="16:9"?"aspect-video max-h-[300px]":"aspect-[9/16] max-h-[400px]"}`,children:u.jsx("video",{src:`/api/videos/${O.id}/stream`,controls:!0,playsInline:!0,className:"w-full h-full object-contain","data-testid":`video-player-${O.id}`})}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("a",{href:`/api/videos/${O.id}/download`,download:!0,className:"flex-1",children:u.jsxs(Te,{variant:"outline",size:"sm",className:"w-full","data-testid":`button-download-video-${O.id}`,children:[u.jsx(kP,{className:"h-4 w-4 mr-2"}),"Download"]})}),u.jsx(Te,{variant:"outline",size:"sm",onClick:()=>w.mutate(O.id),disabled:w.isPending,"data-testid":`button-delete-video-${O.id}`,children:u.jsx(jd,{className:"h-4 w-4"})})]}),u.jsxs("p",{className:"text-xs text-muted-foreground",children:["Created ",new Date(O.createdAt).toLocaleDateString()," · ",O.durationSeconds,"s · ",O.aspectRatio," · ",O.resolution]})]},O.id))}),u.jsxs(Te,{variant:"outline",className:"w-full",onClick:_,disabled:!!A||C.isPending,"data-testid":"button-create-video",children:[C.isPending?u.jsx(Fa,{className:"h-4 w-4 mr-2 animate-spin"}):u.jsx(UM,{className:"h-4 w-4 mr-2"}),A?"Generation in progress...":k.length>0?"Create Another Video":"Create Video"]})]})]}),u.jsx(fo,{open:n,onOpenChange:a,children:u.jsxs($a,{className:"max-w-lg","data-testid":"dialog-video-prompt",children:[u.jsxs(lc,{children:[u.jsx(cc,{children:"Generate Cinematic Video"}),u.jsx(uc,{children:"Review and customize the AI prompt for your listing video. The video will be generated in 9:16 vertical format using Google Veo AI, ideal for YouTube Shorts and social media."})]}),u.jsxs("div",{className:"space-y-4 py-2",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-1.5 block",children:"Video Prompt"}),u.jsx(vv,{value:o,onChange:O=>l(O.target.value),rows:6,className:"resize-none",placeholder:"Describe the cinematic video you want to generate...","data-testid":"input-video-prompt"}),u.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"Tip: Include details about camera movement, lighting, and mood for best results."})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-1.5 block",children:"Format"}),u.jsxs(wo,{value:m,onValueChange:g,children:[u.jsx(Qa,{"data-testid":"select-video-format",children:u.jsx(So,{})}),u.jsxs(Ya,{children:[u.jsx(_n,{value:"9:16",children:"Vertical 9:16 (Shorts/Reels)"}),u.jsx(_n,{value:"16:9",children:"Wide 16:9 (YouTube/Web)"})]})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"text-sm font-medium mb-1.5 block",children:"Duration"}),u.jsxs(wo,{value:d,onValueChange:h,children:[u.jsx(Qa,{"data-testid":"select-video-duration",children:u.jsx(So,{})}),u.jsxs(Ya,{children:[u.jsx(_n,{value:"20",children:"20 seconds"}),u.jsx(_n,{value:"25",children:"25 seconds"}),u.jsx(_n,{value:"30",children:"30 seconds"})]})]})]})]}),u.jsxs("div",{className:"text-xs text-muted-foreground bg-muted/50 rounded-lg p-3 space-y-1",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"Resolution:"})," 720p"]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Audio:"})," Ambient background music (+ AI narration if OPENAI_API_KEY is set)"]}),u.jsxs("p",{children:[u.jsx("strong",{children:"Captions:"})," Auto-generated from listing details"]}
92),u.jsxs("p",{children:[u.jsx("strong",{children:"Generation time:"})," ~30 seconds to 2 minutes"]})]})]}),u.jsxs(Wy,{children:[u.jsxs(Te,{variant:"outline",onClick:()=>{C.mutate()},disabled:C.isPending,"data-testid":"button-regenerate-prompt",children:[u.jsx(hM,{className:`h-4 w-4 mr-2 ${C.isPending?"animate-spin":""}`}),"Reset Prompt"]}),u.jsxs(Te,{onClick:R,disabled:E.isPending||!o.trim(),"data-testid":"button-generate-video",children:[E.isPending?u.jsx(Fa,{className:"h-4 w-4 mr-2 animate-spin"}):u.jsx(wg,{className:"h-4 w-4 mr-2"}),"Generate Video"]})]})]})})]})}const hF=I7({name:Vl().min(2,"Name must be at least 2 characters"),email:Vl().email("Please enter a valid email"),phone:Vl().optional(),message:Vl().min(10,"Message must be at least 10 characters"),preferredContact:Vl().default("platform")});function Dj(e){return/^https?:\/\/(www\.)?youtube\.com\//.test(e)||/^https?:\/\/youtu\.be\//.test(e)}function mF(e){return/^https?:\/\/photos\.app\.goo\.gl\//.test(e)||/^https?:\/\/photos\.google\.com\//.test(e)}function JS(e){return Dj(e)||mF(e)}const pF=["https://images.unsplash.com/photo-1523987355523-c7b5b0dd90a7?w=800&h=600&fit=crop","https://images.unsplash.com/photo-1527786356703-4b100091cd2c?w=800&h=600&fit=crop","https://images.unsplash.com/photo-1543465077-db45d34b88a5?w=800&h=600&fit=crop","https://images.unsplash.com/photo-1565361319278-2cf4e5d8d4d4?w=800&h=600&fit=crop"];function Qp(){const{id:e}=d_(),[,t]=da(),{toast:n}=ti(),{isAuthenticated:a,user:o}=Gr(),{isAdmin:l}=Af(),[d,h]=v.useState(0),[m,g]=v.useState(!1),[y,x]=v.useState(null),{data:b,isLoading:C,error:E}=Vn({queryKey:[`/api/rvs/${e}`]}),w=!!E&&E instanceof Error&&E.message.startsWith("410"),_=w||b?.status==="expired";v.useEffect(()=>{b?.year&&b?.model&&fetch(`/api/brochures/specs?year=${b.year}&model=${encodeURIComponent(b.model)}`).then(V=>V.json()).then(V=>{V.specs&&Object.keys(V.specs).length>0&&x(V.specs)}).catch(V=>console.error("Failed to fetch factory specs:",V))},[b?.year,b?.model]),v.useEffect(()=>{e&&fetch(`/api/rvs/${e}/view`,{method:"POST"}).catch(V=>console.error("Failed to track view:",V))},[e]);const{data:R}=Vn({queryKey:["/api/favorites",e],enabled:a&&!!e}),{data:A=[]}=Vn({queryKey:["/api/rvs",b?.id,"client-videos"],queryFn:async()=>{const V=await fetch(`/api/rvs/${b.id}/client-videos`);return V.ok?V.json():[]},enabled:!!b?.guidedSale&&!!b?.id}),k=tr({mutationFn:async()=>R?.isFavorite?pn("DELETE",`/api/favorites/${e}`):pn("POST",`/api/favorites/${e}`),onSuccess:()=>{On.invalidateQueries({queryKey:["/api/favorites",e]}),On.invalidateQueries({queryKey:["/api/favorites"]}),n({title:R?.isFavorite?"Removed from Favorites":"Added to Favorites",description:R?.isFavorite?"This Airstream has been removed from your favorites.":"This Airstream has been added to your favorites!"})},onError:()=>{n({title:"Error",description:"Failed to update favorites. Please try again.",variant:"destructive"})}}),N=()=>{if(!a){window.location.href=`/sign-in?redirect_url=${encodeURIComponent(`/airstream/${e}`)}`;return}k.mutate()},O=o&&(`${o.firstName||""} ${o.lastName||""}`.trim()||o.email?.split("@")[0])||"",U=a7({resolver:c7(hF),defaultValues:{name:O,email:o?.email||"",phone:o?.phone||"",message:b?`I'm interested in the ${b.year} ${b.make} ${b.model}.`:"",preferredContact:"platform"}});v.useEffect(()=>{if(o){const V=`${o.firstName||""} ${o.lastName||""}`.trim()||o.email?.split("@")[0]||"";U.setValue("name",V),U.setValue("email",o.email||""),U.setValue("phone",o.phone||"")}},[o,U]);const Y=tr({mutationFn:async V=>pn("POST","/api/inquiries",{...V,rvId:b?.id}),onSuccess:()=>{n({title:"Message Sent!",description:o?"View your conversation in Messages.":void 0}),U.reset(),o&&(On.invalidateQueries({queryKey:["/api/conversations"]}),On.invalidateQueries({queryKey:["/api/messages/unread-count"]}))},onError:()=>{n({title:"Error",description:"Failed to send message. Please try again.",variant:"destructive"})}}),F=V=>{Y.mutate(V)},W=V=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",maximumFractionDigits:0}).format(V),ce=V=>new Intl.NumberFormat("en-US").format(V);if(C)return u.jsxs("div",{className:"container mx-auto px-4 py-8",children:[u.jsx(Ys,{className:"h-8 w-32 mb-6"}
92),u.jsxs("div",{className:"grid lg:grid-cols-5 gap-8",children:[u.jsxs("div",{className:"lg:col-span-3 space-y-4",children:[u.jsx(Ys,{className:"aspect-[4/3] w-full"}),u.jsx("div",{className:"flex gap-2",children:[1,2,3,4].map(V=>u.jsx(Ys,{className:"w-20 h-16"},V))})]}),u.jsx("div",{className:"lg:col-span-2",children:u.jsx(kn,{children:u.jsxs(Un,{className:"p-6 space-y-4",children:[u.jsx(Ys,{className:"h-6 w-24"}),u.jsx(Ys,{className:"h-10 w-full"}),u.jsx(Ys,{className:"h-4 w-32"}),u.jsx(Ys,{className:"h-10 w-full"}),u.jsx(Ys,{className:"h-10 w-full"})]})})})]})]});if(w)return u.jsxs("div",{className:"container mx-auto px-4 py-16 text-center","data-testid":"expired-listing-page",children:[u.jsx("h1",{className:"text-2xl font-bold mb-4",children:"This Listing Has Expired"}),u.jsx("p",{className:"text-muted-foreground mb-6",children:"This Airstream ad is no longer active. Browse our current inventory to find similar Airstreams for sale."}),u.jsx(ze,{href:"/airstreams-for-sale",children:u.jsx(Te,{"data-testid":"button-browse-active",children:"Browse Active Listings"})})]});if(!b)return u.jsxs("div",{className:"container mx-auto px-4 py-16 text-center",children:[u.jsx("h1",{className:"text-2xl font-bold mb-4",children:"Airstream Not Found"}),u.jsx("p",{className:"text-muted-foreground mb-6",children:"The Airstream you're looking for doesn't exist or has been sold."}),u.jsx(ze,{href:"/airstreams-for-sale",children:u.jsx(Te,{children:"Browse Inventory"})})]});const fe=b.images&&b.images.length>0?b.images:[],X=fe.filter(V=>!JS(V)),ae=fe.filter(V=>JS(V)),oe=X.length>0?X:pF,ve=()=>{h(V=>(V+1)%oe.length)},D=()=>{h(V=>(V-1+oe.length)%oe.length)},q=b,te=`${b.year} ${b.model} Airstream ${b.type==="touring_coach"?"Touring Coach":"Travel Trailer"}`,ue=b.description?b.description.slice(0,155)+(b.description.length>155?"...":""):`${b.year} ${b.model} Airstream for sale. ${b.length?`${b.length} ft`:""} ${q.state?`Located in ${q.state}.`:""} View photos, specs, and contact the seller.`,j=b.images||q.photos||q.imageUrls||[],L=j.length>0?j[0]:void 0;return u.jsxs("div",{className:"min-h-screen bg-background",children:[u.jsx(ej,{title:te,description:ue,image:L,url:`/airstream/${b.slug||b.id}`,type:"product",product:{name:te,description:ue,image:L||"",price:b.price,currency:"USD",availability:b.status==="for_sale"?"InStock":"OutOfStock",condition:"UsedCondition",sku:b.vin||b.id,brand:"Airstream"}}),u.jsx(OV,{items:[{name:"Home",url:"/"},{name:"Inventory",url:"/airstreams-for-sale"},{name:te,url:`/airstream/${b.slug||b.id}`}]}),u.jsxs("div",{className:"container mx-auto px-4 py-8",children:[u.jsxs("button",{onClick:()=>{sessionStorage.getItem("fromInventory")&&window.history.length>1?(sessionStorage.removeItem("fromInventory"),window.history.back()):t("/airstreams-for-sale")},className:"inline-flex items-center text-sm text-muted-foreground hover:text-foreground mb-6 cursor-pointer","data-testid":"link-back-inventory",children:[u.jsx(vd,{className:"h-4 w-4 mr-1"}),"Back to Inventory"]}),u.jsxs("div",{className:"grid lg:grid-cols-5 gap-8 items-start w-full overflow-hidden",children:[u.jsxs("div",{className:"lg:col-span-3 space-y-4 min-w-0 w-full order-2 lg:order-1",children:[u.jsxs("div",{className:"relative w-full aspect-[4/3] bg-muted rounded-lg overflow-hidden",children:[u.jsx("img",{src:oe[d],alt:`${b.year} Airstream ${b.model}`,className:"absolute inset-0 w-full h-full object-cover"}),oe.length>1&&u.jsxs("div",{className:"absolute inset-0 flex items-center justify-between px-4 pointer-events-none",children:[u.jsx(Te,{variant:"ghost",size:"lg",className:"bg-background/80 backdrop-blur-sm rounded-full h-12 w-12 p-0 pointer-events-auto",onClick:D,"data-testid":"button-prev-image",children:u.jsx(vd,{className:"h-8 w-8"})}),u.jsx(Te,{variant:"ghost",size:"lg",className:"bg-background/80 backdrop-blur-sm rounded-full h-12 w-12 p-0 pointer-events-auto",onClick:ve,"data-testid":"button-next-image",children:u.jsx(Ed,{className:"h-8 w-8"})})]}),u.jsxs(fo,{open:m,onOpenChange:g,children:[u.jsx(Uz,{asChild:!0,children:u.jsx(Te,{variant:"ghost",size:"icon",className:"absolute right-2 bottom-2 bg-background/80 backdrop-blur-sm","data-testid":"button-fullscreen-image",children:u.jsx(MP,{className:"h-5 w-5"})})}),u.jsx($a,{className:"max-w-5xl p-0 overflow-hidden",children:u.jsxs("div",{className:"relative aspect-video",children:[u.jsx("img",{src:oe[d],alt:`${b.year} Airstream ${b.model}`,className:"w-full h-full object-contain bg-black"}),oe.length>1&&u.jsxs("div",{className:"absolute inset-0 flex items-center justify-between px-4 pointer-events-none",children:[u.jsx(Te,{variant:"ghost",size:"lg",className:"bg-background/80 rounded-full h-14 w-14 p-0 pointer-events-auto",onClick:D,children:u.jsx(vd,{className:"h-10 w-10"})}),u.jsx(Te,{variant:"ghost",size:"lg",className:"bg-background/80 rounded-full h-14 w-14 p-0 pointer-events-auto",onClick:ve,children:u.jsx(Ed,{className:"h-10 w-10"})})]})]})})]}),u.jsx("div",{className:"absolute bottom-2 left-1/2 -translate-x-1/2 flex gap-1",children:oe.map((V,J)=>u.jsx("button",{className:`w-2 h-2 rounded-full transition-colors ${J===d?"bg-primary":"bg-white/50"}`,onClick:()=>h(J)},J))})]}),oe.length>1&&u.jsx("div",{className:"w-full overflow-x-auto",children:u.jsx("div",{className:"flex gap-2",children:oe.map((V,J)=>u.jsx("button",{onClick:()=>h(J),className:`shrink-0 w-20 h-16 rounded-md overflow-hidden border-2 transition-colors ${J===d?"border-primary":"border-transparent"}`,"data-testid":`button-thumbnail-${J}`,children:u.jsx("img",{src:V,alt:"",className:"w-full h-full object-cover"})},J))})}),ae.length>0&&u.jsx("div",{className:"flex flex-wrap gap-3",children:ae.map((V,J)=>{const ge=Dj(V);return u.jsxs("a",{href:V,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center gap-2 px-4 py-2 rounded-md border transition-colors hover-elevate ${ge?"bg-red-50 dark:bg-red-950/30 border-red-200 dark:border-red-800":"bg-blue-50 dark:bg-blue-950/30 border-blue-200 dark:border-blue-800"}`,"data-testid":`link-external-${J}`,children:[ge?u.jsx(oV,{className:"h-5 w-5 text-red-500"}):u.jsx(lV,{className:"h-5 w-5 text-blue-500"}),u.jsx("span",{className:"font-medium text-sm",children:ge?"Watch Video":"View Photo Album"}),u.jsx(Ql,{className:"h-4 w-4 text-muted-foreground"})]},J)})}),A.length>0&&u.jsxs("div",{className:"space-y-3","data-testid":"section-client-videos",children:[u.jsxs("h3",{className:"font-semibold flex items-center gap-2",children:[u.jsx(wg,{className:"h-5 w-5 text-primary"}),"Walk-Around Videos"]}),u.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:A.map(V=>u.jsxs("div",{className:"space-y-2",children:[u.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:V.type==="exterior"?"Exterior Walk Around":"Interior Walk Through"}
92),u.jsx("video",{controls:!0,playsInline:!0,preload:"metadata",src:V.url,className:"w-full rounded-lg bg-black aspect-video","data-testid":`video-client-${V.type}`,onError:J=>{const be=J.currentTarget.parentElement;if(be&&!be.querySelector("[data-fallback]")){const ye=document.createElement("div");ye.setAttribute("data-fallback","true"),ye.className="text-center py-4";const qe=document.createElement("p");qe.className="text-sm text-muted-foreground mb-2",qe.textContent="Video could not be played in browser.";const de=document.createElement("a");de.href=V.url,de.download="",de.className="text-primary underline text-sm",de.textContent="Download Video",ye.appendChild(qe),ye.appendChild(de),be.appendChild(ye)}}})]},V.id))})]}),b.guidedSale&&u.jsx(dF,{listingId:b.id,exteriorCondition:b.exteriorCondition}),u.jsxs(Q7,{defaultValue:"specs",children:[u.jsxs(Tj,{className:"w-full justify-start",children:[u.jsx(Jg,{value:"specs","data-testid":"tab-specs",children:"Specifications"}),u.jsx(Jg,{value:"features","data-testid":"tab-features",children:"Features"})]}),u.jsx(ey,{value:"specs",className:"mt-6",children:u.jsx(kn,{children:u.jsxs(Un,{className:"p-6",children:[u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-6",children:[b.location&&u.jsxs("div",{className:"md:col-span-3",children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Location"}),u.jsx("p",{className:"font-semibold",children:b.location})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Year"}),u.jsx("p",{className:"font-semibold",children:b.year})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Make"}),u.jsx("p",{className:"font-semibold",children:b.make})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Model"}),u.jsx("p",{className:"font-semibold",children:b.model})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Type"}),u.jsx("p",{className:"font-semibold",children:b.type})]}),b.type==="Touring Coach"&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Mileage"}),u.jsxs("p",{className:"font-semibold",children:[ce(b.mileage)," mi"]})]}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"VIN"}),u.jsx("p",{className:"font-mono text-sm",children:b.vin})]}),b.length&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Length"}),u.jsxs("p",{className:"font-semibold",children:[b.length," ft"]})]}),b.layout&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Layout"}),u.jsx("p",{className:"font-semibold",children:b.layout})]}),b.sleeps&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Sleeps"}),u.jsxs("p",{className:"font-semibold",children:[b.sleeps," people"]})]}),b.slideOuts&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Slide Outs"}),u.jsx("p",{className:"font-semibold",children:b.slideOuts})]}),b.fuelType&&u.jsxs("div",{children:[u.jsx("p",{className:"text-sm text-muted-foreground",children:"Fuel Type"}),u.jsx("p",{className:"font-semibold",children:b.fuelType})]})]}),b.description&&u.jsxs("div",{className:"mt-6 pt-6 border-t",children:[u.jsx("h4",{className:"font-semibold mb-2",children:"Description"}),u.jsx("p",{className:"text-muted-foreground whitespace-pre-line",children:b.description})]}),y&&Object.keys(y).length>0&&u.jsxs("div",{className:"mt-6 pt-6 border-t",children:[u.jsxs("div",{className:"flex items-center justify-between mb-4",children:[u.jsx("h4",{className:"font-semibold",children:"Factory Specifications"}),u.jsx("span",{className:"text-xs text-muted-foreground bg-muted px-2 py-1 rounded",children:"From official Airstream brochure"})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:Object.entries(y).map(([V,J])=>{if(!J||typeof J!="object")return null;const ge=Object.entries(J).filter(([,be])=>be!=null);return ge.length===0?null:u.jsxs("div",{className:"bg-muted/50 rounded-lg p-4",children:[u.jsx("h5",{className:"text-sm font-medium capitalize mb-2",children:V.replace(/_/g," ")}),u.jsx("dl",{className:"space-y-1",children:ge.map(([be,ye])=>u.jsxs("div",{className:"flex justify-between text-sm",children:[u.jsx("dt",{className:"text-muted-foreground capitalize",children:be.replace(/_/g," ")}),u.jsx("dd",{className:"font-medium",children:String(ye)})]},be))})]},V)})})]})]})})}),u.jsx(ey,{value:"features",className:"mt-6",children:u.jsx(kn,{children:u.jsx(Un,{className:"p-6",children:b.features&&b.features.length>0?u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-3",children:b.features.map((V,J)=>u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(EC,{className:"h-4 w-4 text-primary shrink-0"}),u.jsx("span",{className:"text-sm",children:V})]},J))}):u.jsx("p",{className:"text-muted-foreground text-center py-8",children:"No features listed for this RV"})})})})]})]}),u.jsx("div",{className:"lg:col-span-2 order-1 lg:order-2",children:u.jsx(kn,{className:"sticky top-[4.5rem]",children:u.jsxs(Un,{className:"p-6 space-y-4",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex flex-wrap gap-2 mb-2",children:[_&&u.jsx(kt,{variant:"secondary","data-testid":"badge-expired",children:"EXPIRED"}),b.featured&&u.jsxs(kt,{className:"bg-primary text-primary-foreground",children:[u.jsx(ec,{className:"h-3 w-3 mr-1"}),"Premium"]}),b.guidedSale&&u.jsxs(kt,{className:"bg-amber-500 text-white",children:[u.jsx(go,{className:"h-3 w-3 mr-1"}),"Guided Sale"]}),b.spotlight&&u.jsxs(kt,{className:"bg-purple-500 text-white",children:[u.jsx(yo,{className:"h-3 w-3 mr-1"}),"Spotlight"]}),b.dealerId&&u.jsxs(kt,{className:"bg-teal-500 text-white","data-testid":"badge-dealer",children:[u.jsx(_C,{className:"h-3 w-3 mr-1"}),"Dealer"]})]}),u.jsxs("h1",{className:"text-2xl font-bold",children:[b.year," Airstream ",b.model," ",b.length&&u.jsxs("span",{className:"text-muted-foreground font-normal",children:["· ",b.length," ft"]})]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-1 mt-1 text-sm text-muted-foreground",children:[b.location&&u.jsxs("div",{className:"flex items-center gap-1.5 text-primary",children:[u.jsx(xy,{className:"h-4 w-4"}),u.jsx("span",{children:b.location})]}),b.layout&&u.jsx("span",{children:b.layout})]})]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-3",children:[u.jsx("p",{className:"text-4xl font-bold text-primary",children:W(b.price)}),b.status==="sold"&&u.jsx(kt,{className:"bg-red-600 text-white text-sm px-3 py-1","data-testid":"badge-sold",children:"SOLD"}),b.status==="sale_pending"&&u.jsx(kt,{className:"bg-blue-500 text-white text-sm px-3 py-1","data-testid":"badge-sale-pending",children:"SALE PENDING"}),b.status==="for_sale"&&u.jsx(kt,{className:"bg-green-600 text-white text-sm px-3 py-1","data-testid":"badge-available",children:"AVAILABLE!"})]}),u.jsxs("div",{className:"border-t pt-4",children:[b.guidedSale?u.jsxs("div",{className:"flex items-center gap-3","data-testid":"text-seller-name",children:[u.jsx("div",{className:"h-10 w-10 rounded-full bg-amber-500/10 flex items-center justify-center flex-shrink-0",children:u.jsx(go,{className:"h-5 w-5 text-amber-500"})}),u.jsxs("div",{children:[u.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Airstream Hunter Guided Sale"}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Professionally Managed Sale"})]})]}):u.jsxs("p",{className:"text-xs text-muted-foreground mb-2","data-testid":"text-seller-name",children:["Offered For Sale by"," ",u.
92jsx("span",{className:"font-semibold text-foreground",children:"Private Seller"})]}),l&&q.sellerId&&u.jsx(ze,{href:`/admin?tab=accounts&user=${q.sellerId}`,children:u.jsxs(Te,{variant:"outline",size:"sm",className:"w-full mt-3","data-testid":"button-view-seller-account",children:[u.jsx(Hl,{className:"h-3.5 w-3.5 mr-1.5"}),"View Seller Account"]})})]}),b.guidedSale&&u.jsxs("div",{className:"rounded-lg border border-primary/30 bg-primary/5 dark:bg-primary/10 p-4","data-testid":"section-buyer-protection",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx(yM,{className:"h-5 w-5 text-primary"}),u.jsx("span",{className:"font-semibold text-sm",children:"Buyer Protection"})]}),u.jsxs("ul",{className:"space-y-2",children:[u.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(rn,{className:"h-3.5 w-3.5 text-primary flex-shrink-0"}),u.jsx("span",{children:"75-Point Seller Disclosure"})]}),u.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(rn,{className:"h-3.5 w-3.5 text-primary flex-shrink-0"}),u.jsx("span",{children:"Verified Seller"})]}),u.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(rn,{className:"h-3.5 w-3.5 text-primary flex-shrink-0"}),u.jsx("span",{children:"Managed Transaction"})]}),u.jsxs("li",{className:"flex items-center gap-2 text-sm text-muted-foreground",children:[u.jsx(rn,{className:"h-3.5 w-3.5 text-primary flex-shrink-0"}),u.jsx("span",{children:"Dedicated Support"})]})]}),u.jsx(ze,{href:"/guided-sale",children:u.jsx("span",{className:"text-xs text-primary mt-3 inline-block cursor-pointer","data-testid":"link-guided-sale-learn-more",children:"Learn more about Guided Sale â"})})]}),l&&u.jsx(ze,{href:`/admin?tab=listings&edit=${e}`,children:u.jsxs(Te,{variant:"outline",className:"w-full","data-testid":"button-edit-listing",children:[u.jsx(xg,{className:"h-4 w-4 mr-2"}),"Edit Listing"]})}),!l&&a&&o?.id&&q.sellerId&&o.id===q.sellerId&&u.jsx(ze,{href:`/edit-listing/${e}`,children:u.jsxs(Te,{variant:"outline",className:"w-full","data-testid":"button-owner-edit-listing",children:[u.jsx(xg,{className:"h-4 w-4 mr-2"}),"Edit My Listing"]})}),l&&b.id&&u.jsx(fF,{listingId:b.id}),u.jsxs(Te,{variant:R?.isFavorite?"default":"outline",className:"w-full",onClick:N,disabled:k.isPending,"data-testid":"button-add-favorite",children:[u.jsx(tf,{className:`h-4 w-4 mr-2 ${R?.isFavorite?"fill-current":""}`}),R?.isFavorite?"Saved to Favorites":"Add to Favorites"]}),u.jsx("div",{className:"border-t pt-4",children:_?u.jsxs("div",{className:"text-center space-y-3 py-4","data-testid":"expired-contact-notice",children:[u.jsx("p",{className:"font-semibold",children:"This listing has expired"}),u.jsx("p",{className:"text-sm text-muted-foreground",children:"It is no longer accepting inquiries."}),u.jsx(ze,{href:"/airstreams-for-sale",children:u.jsx(Te,{variant:"outline",className:"w-full","data-testid":"button-expired-browse",children:"Browse Active Listings"})})]}):u.jsxs(u.Fragment,{children:[u.jsx("h3",{className:"font-semibold mb-4",children:"Interested in this Airstream?"}),a?u.jsx(Y7,{...U,children:u.jsxs("form",{onSubmit:U.handleSubmit(F),className:"space-y-4",children:[u.jsx(Z7,{control:U.control,name:"message",render:({field:V})=>u.jsxs(kj,{children:[u.jsx(Aj,{children:"Message"}),u.jsx(Oj,{children:u.jsx(vv,{placeholder:"Write your message...",className:"resize-none",rows:3,...V,"data-testid":"input-contact-message"})}),u.jsx(Rj,{})]})}),u.jsx(Te,{type:"submit",className:"w-full",disabled:Y.isPending,"data-testid":"button-submit-inquiry",children:Y.isPending?"Sending...":"Send Inquiry"})]})}):u.jsxs("div",{className:"text-center space-y-4 py-4",children:[u.jsx("p",{className:"text-muted-foreground",children:"Create a free account to message the seller and track your conversations."}),u.jsx("a",{href:"/sign-in",children:u.jsxs(Te,{className:"w-full","data-testid":"button-login-to-inquire",children:[u.jsx(wy,{className:"h-4 w-4 mr-2"}),"Sign In to Send Message"]})}),u.jsx("p",{className:"text-xs text-muted-foreground",children:"Qu
92ick sign-up with Google, Apple, or email"})]})]})})]})})})]})]})]})}const gF=LL(window.location.hostname,"pk_live_Y2xlcmsuYWlyc3RyZWFtaHVudGVyLmNvbSQ"),yF="/api/__clerk",jr="/".replace(/\/$/,"");function e_(e){return jr&&e.startsWith(jr)?e.slice(jr.length)||"/":e}function vF(){const{addListener:e}=q2(),t=dy(),n=v.useRef(void 0);return v.useEffect(()=>e(({user:o})=>{const l=o?.id??null;n.current!==void 0&&n.current!==l&&t.clear(),n.current=l}),[e,t]),null}function t_(){const[e]=da(),t=v.useRef(!1);return v.useEffect(()=>{"scrollRestoration"in window.history&&(window.history.scrollRestoration="auto");const n=()=>{t.current=!0};return window.addEventListener("popstate",n),()=>window.removeEventListener("popstate",n)},[]),v.useEffect(()=>{if(t.current){t.current=!1;return}window.scrollTo(0,0)},[e]),null}function bF(){const[e]=da(),{needsProfileCompletion:t,isLoading:n}=Gr(),a=["/","/airstreams-for-sale","/airstream/","/rv/","/listing/","/free-price-check","/pricing-tool","/airstream-value","/about","/contact","/get-started","/privacy","/community","/reviews","/blog","/guided-sale","/my-airstream-feature","/consultations","/complete-profile","/admin","/admin-approval","/mobile-admin","/disclosure/","/agreement/","/sign-purchase/","/review-purchase/","/reports/","/pay-invoice/","/pay-deposit/","/sign-in","/sign-up","/auth-complete"];return n||!t||e==="/complete-profile"||a.some(l=>l.endsWith("/")?e.startsWith(l):e===l||e.startsWith(l+"?"))?null:u.jsx(EA,{to:"/complete-profile"})}const xF=v.lazy(()=>Ye(()=>import("./inventory-BB5SP0Cn.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),dd=v.lazy(()=>Ye(()=>import("./pricing-tool-CsZnaSPX.js"),__vite__mapDeps([8,9,10,6]))),wF=v.lazy(()=>Ye(()=>import("./about-CUL9LxDN.js"),[])),SF=v.lazy(()=>Ye(()=>import("./contact-CNfOs2WD.js"),__vite__mapDeps([11,12,13]))),_F=v.lazy(()=>Ye(()=>import("./reviews-D_aOI_s3.js"),[])),CF=v.lazy(()=>Ye(()=>import("./guided-sale-D2Nq4C08.js"),__vite__mapDeps([14,9,15,16,17]))),EF=v.lazy(()=>Ye(()=>import("./consultations-MG8E8-bv.js"),__vite__mapDeps([18,19]))),TF=v.lazy(()=>Ye(()=>import("./privacy-rIkkV6J_.js"),[])),jF=v.lazy(()=>Ye(()=>import("./community-BHt4EOOM.js"),__vite__mapDeps([20,13,5]))),NF=v.lazy(()=>Ye(()=>import("./blog-Dl0CPaL1.js"),[])),kF=v.lazy(()=>Ye(()=>import("./blog-post-B-uVK46h.js"),__vite__mapDeps([21,22]))),AF=v.lazy(()=>Ye(()=>import("./price-check-BsQEUSoc.js"),__vite__mapDeps([23,24,2,9,4,25,26,27,22]))),OF=v.lazy(()=>Ye(()=>import("./airstream-value-9cOdqy_x.js"),__vite__mapDeps([28,24,2,9,4,25,26,27,29]))),RF=v.lazy(()=>Ye(()=>import("./become-dealer-7Cm_NkSm.js"),__vite__mapDeps([30,4,22]))),PF=v.lazy(()=>Ye(()=>import("./auth-landing-B9qy1D7L.js"),__vite__mapDeps([31,16]))),MF=v.lazy(()=>Ye(()=>import("./my-airstream-landing-C4NnwImO.js"),__vite__mapDeps([32,16,33]))),DF=v.lazy(()=>Ye(()=>import("./profile-DEIk5OJb.js"),__vite__mapDeps([34,26,16]))),IF=v.lazy(()=>Ye(()=>import("./complete-profile-DSBdrHba.js"),[])),LF=v.lazy(()=>Ye(()=>import("./favorites-nSBuEYPt.js"),__vite__mapDeps([35,1]))),zF=v.lazy(()=>Ye(()=>import("./my-transactions-CHr5d3vE.js"),__vite__mapDeps([36,37,38,39,10,40]))),UF=v.lazy(()=>Ye(()=>import("./my-airstream-DiI37ufl.js"),__vite__mapDeps([41,42,2,43,3,44,40,38,12,25,26,37,45,10,46,9,47,48,4,33,49,16,50,51,19,27,15,22,13,39,6]))),Fl=v.lazy(()=>Ye(()=>import("./create-listing-DSNxivRn.js"),__vite__mapDeps([52,2,9,4,25,26,53,37,38,22,16,27]))),VF=v.lazy(()=>Ye(()=>import("./edit-listing-N0DOuTNQ.js"),__vite__mapDeps([54,9,4,25,26,22,27,16,46]))),FF=v.lazy(()=>Ye(()=>import("./messages-DZAnvVKl.js"),__vite__mapDeps([55,47,22,13,12]))),BF=v.lazy(()=>Ye(()=>import("./my-guided-sale-zCUb75h7.js"),__vite__mapDeps([42,2,43,3,44,40,38,12,25,26,37,45,10,46]))),$F=v.lazy(()=>Ye(()=>import("./admin-GVmBuNjg.js"),__vite__mapDeps([56,26,47,2,9,4,25,19,50,49,12,10,40,48,33,7,57,44,38,43,3,46,16,22,6,5,45,53,15,58,59,29,60,17,27]))),HF=v.lazy(()=>Ye(()=>import("./admin-approval-CE4aFgQ6.js"),__vite__mapDeps([61,59,58]))),Ij=v.lazy(()=>Ye(()=>import("./mobile-admin-D98vD0z7.js"),__vite__mapDeps([62,59,51,10,49]))),qF=v.lazy(()=>Ye(()=>import("./price-check-report-4pcF3x4w.js"),__vite__mapDeps([63,7,57,50]))),GF=v.lazy(()=>Ye(()=>import("./seller-disclosure-BCoEV5Gk.js"),__vite__mapDeps([64,43,3,2,46]))),KF=v.lazy(()=>Ye(()=>import("./agreement-CnT_sroV.js"),__vite__mapDeps([65,2,37,38]))),QF=v.lazy(()=>Ye(()=>
92import("./sign-purchase-agreement-CZ6cCxdI.js"),__vite__mapDeps([66,60,2,58]))),YF=v.lazy(()=>Ye(()=>import("./review-purchase-agreement-DDySpKBl.js"),__vite__mapDeps([67,58]))),ZF=v.lazy(()=>Ye(()=>import("./pay-invoice-DzkiupoD.js"),__vite__mapDeps([68,37,38,45]))),WF=v.lazy(()=>Ye(()=>import("./pay-deposit-DxccDyDu.js"),__vite__mapDeps([69,38]))),XF=v.lazy(()=>Ye(()=>import("./sign-in-B6nG0Hmf.js"),__vite__mapDeps([70,71]))),JF=v.lazy(()=>Ye(()=>import("./sign-up-DEl7YvRl.js"),[])),eB=v.lazy(()=>Ye(()=>import("./auth-complete-fbVoRwt6.js"),__vite__mapDeps([72,71]))),tB=v.lazy(()=>Ye(()=>import("./not-found-Cba-bqNS.js"),[]));function nB(){return u.jsx(v.Suspense,{fallback:null,children:u.jsxs(CA,{children:[u.jsx(Le,{path:"/",component:IV}),u.jsx(Le,{path:"/airstreams-for-sale",component:xF}),u.jsx(Le,{path:"/airstream/:id",component:Qp}),u.jsx(Le,{path:"/rv/:id",component:Qp}),u.jsx(Le,{path:"/listing/:id",component:Qp}),u.jsx(Le,{path:"/free-price-check",component:dd}),u.jsx(Le,{path:"/free-price-check/form",component:dd}),u.jsx(Le,{path:"/pricing-tool",component:dd}),u.jsx(Le,{path:"/pricing-tool/form",component:dd}),u.jsx(Le,{path:"/about",component:wF}),u.jsx(Le,{path:"/contact",component:SF}),u.jsx(Le,{path:"/admin",component:$F}),u.jsx(Le,{path:"/profile",component:DF}),u.jsx(Le,{path:"/get-started",component:PF}),u.jsx(Le,{path:"/complete-profile",component:IF}),u.jsx(Le,{path:"/favorites",component:LF}),u.jsx(Le,{path:"/my-transactions",component:zF}),u.jsx(Le,{path:"/my-airstream",component:UF}),u.jsx(Le,{path:"/my-airstream-feature",component:MF}),u.jsx(Le,{path:"/consultations",component:EF}),u.jsx(Le,{path:"/guided-sale",component:CF}),u.jsx(Le,{path:"/reviews",component:_F}),u.jsx(Le,{path:"/sell-your-airstream",component:Fl}),u.jsx(Le,{path:"/sell-your-airstream/:tier",component:Fl}),u.jsx(Le,{path:"/sell",component:Fl}),u.jsx(Le,{path:"/create-listing",component:Fl}),u.jsx(Le,{path:"/create-listing/:tier",component:Fl}),u.jsx(Le,{path:"/edit-listing/:id",component:VF}),u.jsx(Le,{path:"/messages",component:FF}),u.jsx(Le,{path:"/privacy",component:TF}),u.jsx(Le,{path:"/community",component:jF}),u.jsx(Le,{path:"/blog",component:NF}),u.jsx(Le,{path:"/blog/:slug",component:kF}),u.jsx(Le,{path:"/reports/:id",component:qF}),u.jsx(Le,{path:"/disclosure/:token",component:GF}),u.jsx(Le,{path:"/agreement/:token",component:KF}),u.jsx(Le,{path:"/my-guided-sale",component:BF}),u.jsx(Le,{path:"/price-check",component:AF}),u.jsx(Le,{path:"/airstream-value",component:OF}),u.jsx(Le,{path:"/admin-approval",component:HF}),u.jsx(Le,{path:"/sign-purchase/:token",component:QF}),u.jsx(Le,{path:"/review-purchase/:token",component:YF}),u.jsx(Le,{path:"/mobile-admin",component:Ij}),u.jsx(Le,{path:"/become-a-dealer",component:RF}),u.jsx(Le,{path:"/pay-invoice/:token",component:ZF}),u.jsx(Le,{path:"/pay-deposit/:token",component:WF}),u.jsx(Le,{path:"/sign-in/*?",component:XF}),u.jsx(Le,{path:"/sign-up/*?",component:JF}),u.jsx(Le,{path:"/auth-complete",component:eB}),u.jsx(Le,{component:tB})]})})}function rB(){const[e]=da(),t=e==="/mobile-admin",{accountSessionError:n,retryAccountSession:a,isRetryingAccountSession:o}=Gr();return t?u.jsxs(u.Fragment,{children:[u.jsx(t_,{}),u.jsx(v.Suspense,{fallback:null,children:u.jsx(Ij,{})}),u.jsx(g1,{})]}):u.jsxs(u.Fragment,{children:[u.jsx(t_,{}),u.jsx(bF,{}),n&&u.jsxs("div",{className:"border-b border-amber-300 bg-amber-50 px-4 py-3 text-center text-sm text-amber-950",role:"alert","data-testid":"status-account-session-error",children:[u.jsx("span",{children:"We couldn't finish connecting your signed-in account. "}),u.jsx("button",{type:"button",className:"font-semibold underline underline-offset-2 disabled:opacity-60",onClick:()=>a(),disabled:o,"data-testid":"button-retry-account-session",children:o?"Trying againâ¦":"Try again"})]}),u.jsxs("div",{className:"flex flex-col min-h-screen",children:[u.jsx(Dz,{}),u.jsx("main",{className:"flex-1",children:u.jsx(nB,{})}),u.jsx(zz,{})]}),u.jsx(Y9,{}),u.jsx(g1,{})]})}function sB(){const[,e]=da();return u.jsx(gT,{publishableKey:gF,proxyUrl:yF,signInUrl:`${jr}/sign-in`,signUpUrl:`${jr}/sign-up`,signInForceRedirectUrl:`${jr}/auth-complete`,signUpForceRedirectUrl:`${jr}/auth-complete`,taskUrls:{"choose-organization":`${jr}/auth-complete`,"reset-password":`${jr}/auth-complete`,"setup-mfa":`${jr}/auth-complete`},routerPush:t=>e(e_(t)),routerReplace:t=>e(e_(t),{replace:!0}),children:u.jsxs(XA,{client:On,children:[u.jsx(vF,{}),u.jsx(w3,{defaultTheme:"light",storageKey:"rv-dealer-theme",children:u.jsx(b3,{children:u.jsx(rB,{})})})]})})}function aB(){return u.jsx(O_,{children:u.jsx(f_,{base:jr,children:u.jsx(sB,{})})})}const Yp=new URL(window.location.href);Yp.searchParams.has("__app_refresh")&&(Yp.searchParams.delete("__app_refresh"),window.history.replaceState(window.history.state,"",Yp));ty.createRoot(document.getElementById("root")).render(u.jsx(aB,{}));export{iv as $,$a as A,Te as B,ef as C,jP as D,J9 as E,lc as F,cc as G,uc as H,Wl as I,Wy as J,Fa as K,Xs as L,On as M,pn as N,TM as O,NV as P,ec as Q,X9 as R,wo as S,RM as T,Hl as U,bM as V,a1 as W,Sy as X,SP as Y,a7 as Z,av as _,Qa as a,Q7 as a$,wy as a0,Y7 as a1,Z7 as a2,kj as a3,Aj as a4,Oj as a5,Rj as a6,vv as a7,EC as a8,c7 as a9,EA as aA,FP as aB,O2 as aC,R2 as aD,P2 as aE,W7 as aF,Q9 as aG,XP as aH,uO as aI,GB as aJ,Af as aK,Md as aL,Dd as aM,TC as aN,oc as aO,$t as aP,jd as aQ,i1 as aR,dp as aS,vd as aT,xg as aU,go as aV,W9 as aW,kP as aX,mB as aY,BB as aZ,Uz as a_,I7 as aa,Vl as ab,FB as ac,cM as ad,vg as ae,bg as af,Td as ag,wM as ah,tf as ai,yo as aj,uV as ak,UB as al,Ql as am,d_ as an,OV as ao,rn as ap,yM as aq,Z9 as ar,OP as as,BM as at,qB as au,aP as av,Ba as aw,yg as ax,xy as ay,_C as az,So as b,K9 as b$,Tj as b0,Jg as b1,ey as b2,QB as b3,KB as b4,Pe as b5,yc as b6,J7 as b7,CC as b8,wg as b9,z_ as bA,vB as bB,bB as bC,x3 as bD,UM as bE,gr as bF,rr as bG,Ct as bH,mc as bI,bc as bJ,MB as bK,IB as bL,LB as bM,fn as bN,nv as bO,Ot as bP,DB as bQ,sv as bR,b9 as bS,_o as bT,w8 as bU,Tt as bV,HT as bW,$T as bX,o9 as bY,ra as bZ,zB as b_,Ve as ba,Qe as bb,aE as bc,xe as bd,Bn as be,$r as bf,UP as bg,fP as bh,MM as bi,fB as b
92j,hB as bk,hM as bl,MD as bm,$B as bn,HB as bo,Yd as bp,uA as bq,dA as br,I as bs,qO as bt,b3 as bu,C5 as bv,BE as bw,N5 as bx,k5 as by,A5 as bz,je as c,UE as c0,yf as c1,vf as c2,bf as c3,Ly as c4,xB as c5,gf as c6,DE as c7,IE as c8,_3 as c9,yn as ca,Lg as cb,xs as cc,oB as cd,ei as ce,oV as cf,lV as cg,NC as ch,iM as ci,cB as cj,zz as ck,jC as cl,_M as cm,Sf as cn,WE as co,XE as cp,CP as cq,jB as cr,NB as cs,K6 as ct,q2 as cu,EB as cv,AB as cw,OB as cx,kB as cy,Ya as d,_n as e,kt as f,kV as g,JT as h,da as i,u as j,Gr as k,ti as l,tr as m,Vn as n,ej as o,ze as p,Nd as q,v as r,cP as s,Ed as t,lB as u,kn as v,Un as w,Ys as x,fV as y,fo as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.