PageSourceSearch

https://urbanviewgives.replit.app/assets/index-B813Kiyq.js

js urbanviewgives.replit.app collected 2026-10-03 03:52:48 UTC 828,853 bytes, 71 lines download raw bytes

vendor: 11,004 bytes, line 1
1function B4(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const l=Object.getOwnPropertyDescriptor(r,a);l&&Object.defineProperty(e,a,l.get?l:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function Xj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var np={exports:{}},zl={};var xw;function H4(){if(xw)return zl;xw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,l){var u=null;if(l!==void 0&&(u=""+l),a.key!==void 0&&(u=""+a.key),"key"in a){l={};for(var f in a)f!=="key"&&(l[f]=a[f])}else l=a;return a=l.ref,{$$typeof:e,type:r,key:u,ref:a!==void 0?a:null,props:l}}return zl.Fragment=t,zl.jsx=n,zl.jsxs=n,zl}var vw;function q4(){return vw||(vw=1,np.exports=H4()),np.exports}var c=q4(),sp={exports:{}},Ll={},rp={exports:{}},ip={};var bw;function $4(){return bw||(bw=1,(function(e){function t(P,Y){var Z=P.length;P.push(Y);e:for(;0<Z;){var le=Z-1>>>1,k=P[le];if(0<a(k,Y))P[le]=Y,P[Z]=k,Z=le;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var Y=P[0],Z=P.pop();if(Z!==Y){P[0]=Z;e:for(var le=0,k=P.length,I=k>>>1;le<I;){var J=2*(le+1)-1,se=P[J],ce=J+1,ve=P[ce];if(0>a(se,Z))ce<k&&0>a(ve,se)?(P[le]=ve,P[ce]=Z,le=ce):(P[le]=se,P[J]=Z,le=J);else if(ce<k&&0>a(ve,Z))P[le]=ve,P[ce]=Z,le=ce;else break e}}return Y}function a(P,Y){var Z=P.sortIndex-Y.sortIndex;return Z!==0?Z:P.id-Y.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 u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var p=[],h=[],g=1,x=null,b=3,w=!1,N=!1,S=!1,j=!1,C=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function R(P){for(var Y=n(h);Y!==null;){if(Y.callback===null)r(h);else if(Y.startTime<=P)r(h),Y.sortIndex=Y.expirationTime,t(p,Y);else break;Y=n(h)}}function O(P){if(S=!1,R(P),!N)if(n(p)!==null)N=!0,M||(M=!0,H());else{var Y=n(h);Y!==null&&oe(O,Y.startTime-P)}}var M=!1,V=-1,D=5,F=-1;function W(){return j?!0:!(e.unstable_now()-F<D)}function Q(){if(j=!1,M){var P=e.unstable_now();F=P;var Y=!0;try{e:{N=!1,S&&(S=!1,_(V),V=-1),w=!0;var Z=b;try{t:{for(R(P),x=n(p);x!==null&&!(x.expirationTime>P&&W());){var le=x.callback;if(typeof le=="function"){x.callback=null,b=x.priorityLevel;var k=le(x.expirationTime<=P);if(P=e.unstable_now(),typeof k=="function"){x.callback=k,R(P),Y=!0;break t}x===n(p)&&r(p),R(P)}else r(p);x=n(p)}if(x!==null)Y=!0;else{var I=n(h);I!==null&&oe(O,I.startTime-P),Y=!1}}break e}finally{x=null,b=Z,w=!1}Y=void 0}}finally{Y?H():M=!1}}}var H;if(typeof E=="function")H=function(){E(Q)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,te=ne.port2;ne.port1.onmessage=Q,H=function(){te.postMessage(null)}}else H=function(){C(Q,0)};function oe(P,Y){V=C(function(){P(e.unstable_now())},Y)}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(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(P){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var Z=b;b=Y;try{return P()}finally{b=Z}},e.unstable_requestPaint=function(){j=!0},e.unstable_runWithPriority=function(P,Y){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var Z=b;b=P;try{return Y()}finally{b=Z}},e.unstable_scheduleCallback=function(P,Y,Z){var le=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?le+Z:le):Z=le,P){case 1:var k=-1;break;case 2:k=250;break;case 5:k=1073741823;break;case 4:k=1e4;break;default:k=5e3}return k=Z+k,P={id:g++,callback:Y,priorityLevel:P,startTime:Z,expirationTime:k,sortIndex:-1},Z>le?(P.sortIndex=Z,t(h,P),n(p)===null&&P===n(h)&&(S?(_(V),V=-1):S=!0,oe(O,Z-le))):(P.sortIndex=k,t(p,P),N||w||(N=!0,M||(M=!0,H()))),P},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(P){var Y=b;return function(){var Z=b;b=Y;try{return P.apply(this,arguments)}finally{b=Z}}}})(ip)),ip}var ww;function G4(){return ww||(ww=1,rp.exports=$4()),rp.exports}var ap={exports:{}},qe={};var Sw;function Y4(){if(Sw)return qe;Sw=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.iterator;function b(k){return k===null||typeof k!="object"?null:(k=x&&k[x]||k["@@iterator"],typeof k=="function"?k:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,S={};function j(k,I,J){this.props=k,this.context=I,this.refs=S,this.updater=J||w}j.prototype.isReactComponent={},j.prototype.setState=function(k,I){if(typeof k!="object"&&typeof k!="function"&&k!=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,k,I,"setState")},j.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function C(){}C.prototype=j.prototype;function _(k,I,J){this.props=k,this.context=I,this.refs=S,this.updater=J||w}var E=_.prototype=new C;E.constructor=_,N(E,j.prototype),E.isPureReactComponent=!0;var R=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},M=Object.prototype.hasOwnProperty;function V(k,I,J,se,ce,ve){return J=ve.ref,{$$typeof:e,type:k,key:I,ref:J!==void 0?J:null,props:ve}}function D(k,I){return V(k.type,I,void 0,void 0,void 0,k.props)}function F(k){return typeof k=="object"&&k!==null&&k.$$typeof===e}function W(k){var I={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(J){return I[J]})}var Q=/\/+/g;function H(k,I){return typeof k=="object"&&k!==null&&k.key!=null?W(""+k.key):I.toString(36)}function ne(){}function te(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(ne,ne):(k.status="pending",k.then(function(I){k.status==="pending"&&(k.status="fulfilled",k.value=I)},function(I){k.status==="pending"&&(k.status="rejected",k.reason=I)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function oe(k,I,J,se,ce){var ve=typeof k;(ve==="undefined"||ve==="boolean")&&(k=null);var de=!1;if(k===null)de=!0;else switch(ve){case"bigint":case"string":case"number":de=!0;break;case"object":switch(k.$$typeof){case e:case t:de=!0;break;case g:return de=k._init,oe(de(k._payload),I,J,se,ce)}}if(de)return ce=ce(k),de=se===""?"."+H(k,0):se,R(ce)?(J="",de!=null&&(J=de.replace(Q,"$&/")+"/"),oe(ce,I,J,"",function(Re){return Re})):ce!=null&&(F(ce)&&(ce=D(ce,J+(ce.key==null||k&&k.key===ce.key?"":(""+ce.key).replace(Q,"$&/")+"/")+de)),I.push(ce)),1;de=0;var xe=se===""?".":se+":";if(R(k))for(var Te=0;Te<k.length;Te++)se=k[Te],ve=xe+H(se,Te),de+=oe(se,I,J,ve,ce);else if(Te=b(k),typeof Te=="function")for(k=Te.call(k),Te=0;!(se=k.next()).done;)se=se.value,ve=xe+H(se,Te++),de+=oe(se,I,J,ve,ce);else if(ve==="object"){if(typeof k.then=="function")return oe(te(k),I,J,se,ce);throw I=String(k),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return de}function P(k,I,J){if(k==null)return k;var se=[],ce=0;return oe(k,se,"","",function(ve){return I.call(J,ve,ce++)}),se}function Y(k){if(k._status===-1){var I=k._result;I=I(),I.then(function(J){(k._status===0||k._status===-1)&&(k._status=1,k._result=J)},function(J){(k._status===0||k._status===-1)&&(k._status=2,k._result=J)}),k._status===-1&&(k._status=0,k._result=I)}if(k._status===1)return k._result.default;throw k._result}var Z=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)};function le(){}return qe.Children={map:P,forEach:function(k,I,J){P(k,function(){I.apply(this,arguments)},J)},count:function(k){var I=0;return P(k,function(){I++}),I},toArray:function(k){return P(k,function(I){return I})||[]},only:function(k){if(!F(k))throw Error("React.Children.only expected to receive a single React element child.");return k}},qe.Component=j,qe.Fragment=n,qe.Profiler=a,qe.PureComponent=_,qe.StrictMode=r,qe.Suspense=p,qe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,qe.__COMPILER_RUNTIME={__proto__:null,c:function(k){return O.H.useMemoCache(k)}},qe.cache=function(k){return function(){return k.apply(null,arguments)}},qe.cloneElement=function(k,I,J){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var se=N({},k.props),ce=k.key,ve=void 0;if(I!=null)for(de in I.ref!==void 0&&(ve=void 0),I.key!==void 0&&(ce=""+I.key),I)!M.call(I,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&I.ref===void 0||(se[de]=I[de]);var de=arguments.length-2;if(de===1)se.children=J;else if(1<de){for(var xe=Array(de),Te=0;Te<de;Te++)xe[Te]=arguments[Te+2];se.children=xe}return V(k.type,ce,void 0,void 0,ve,se)},qe.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:l,_context:k},k},qe.createElement=function(k,I,J){var se,ce={},ve=null;
vendor: 25,495 bytes, lines 1-8
1if(I!=null)for(se in I.key!==void 0&&(ve=""+I.key),I)M.call(I,se)&&se!=="key"&&se!=="__self"&&se!=="__source"&&(ce[se]=I[se]);var de=arguments.length-2;if(de===1)ce.children=J;else if(1<de){for(var xe=Array(de),Te=0;Te<de;Te++)xe[Te]=arguments[Te+2];ce.children=xe}if(k&&k.defaultProps)for(se in de=k.defaultProps,de)ce[se]===void 0&&(ce[se]=de[se]);return V(k,ve,void 0,void 0,null,ce)},qe.createRef=function(){return{current:null}},qe.forwardRef=function(k){return{$$typeof:f,render:k}},qe.isValidElement=F,qe.lazy=function(k){return{$$typeof:g,_payload:{_status:-1,_result:k},_init:Y}},qe.memo=function(k,I){return{$$typeof:h,type:k,compare:I===void 0?null:I}},qe.startTransition=function(k){var I=O.T,J={};O.T=J;try{var se=k(),ce=O.S;ce!==null&&ce(J,se),typeof se=="object"&&se!==null&&typeof se.then=="function"&&se.then(le,Z)}catch(ve){Z(ve)}finally{O.T=I}},qe.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},qe.use=function(k){return O.H.use(k)},qe.useActionState=function(k,I,J){return O.H.useActionState(k,I,J)},qe.useCallback=function(k,I){return O.H.useCallback(k,I)},qe.useContext=function(k){return O.H.useContext(k)},qe.useDebugValue=function(){},qe.useDeferredValue=function(k,I){return O.H.useDeferredValue(k,I)},qe.useEffect=function(k,I,J){var se=O.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return se.useEffect(k,I)},qe.useId=function(){return O.H.useId()},qe.useImperativeHandle=function(k,I,J){return O.H.useImperativeHandle(k,I,J)},qe.useInsertionEffect=function(k,I){return O.H.useInsertionEffect(k,I)},qe.useLayoutEffect=function(k,I){return O.H.useLayoutEffect(k,I)},qe.useMemo=function(k,I){return O.H.useMemo(k,I)},qe.useOptimistic=function(k,I){return O.H.useOptimistic(k,I)},qe.useReducer=function(k,I,J){return O.H.useReducer(k,I,J)},qe.useRef=function(k){return O.H.useRef(k)},qe.useState=function(k){return O.H.useState(k)},qe.useSyncExternalStore=function(k,I,J){return O.H.useSyncExternalStore(k,I,J)},qe.useTransition=function(){return O.H.useTransition()},qe.version="19.1.0",qe}var jw;function df(){return jw||(jw=1,ap.exports=Y4()),ap.exports}var op={exports:{}},dn={};var Nw;function K4(){if(Nw)return dn;Nw=1;var e=df();function t(p){var h="https://react.dev/errors/"+p;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)h+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={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},a=Symbol.for("react.portal");function l(p,h,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:x==null?null:""+x,children:p,containerInfo:h,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(p,h){if(p==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,dn.createPortal=function(p,h){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return l(p,h,null,g)},dn.flushSync=function(p){var h=u.T,g=r.p;try{if(u.T=null,r.p=2,p)return p()}finally{u.T=h,r.p=g,r.d.f()}},dn.preconnect=function(p,h){typeof p=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(p,h))},dn.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},dn.preinit=function(p,h){if(typeof p=="string"&&h&&typeof h.as=="string"){var g=h.as,x=f(g,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;g==="style"?r.d.S(p,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:x,integrity:b,fetchPriority:w}):g==="script"&&r.d.X(p,{crossOrigin:x,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},dn.preinitModule=function(p,h){if(typeof p=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var g=f(h.as,h.crossOrigin);r.d.M(p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(p)},dn.preload=function(p,h){if(typeof p=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var g=h.as,x=f(g,h.crossOrigin);r.d.L(p,g,{crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},dn.preloadModule=function(p,h){if(typeof p=="string")if(h){var g=f(h.as,h.crossOrigin);r.d.m(p,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(p)},dn.requestFormReset=function(p){r.d.r(p)},dn.unstable_batchedUpdates=function(p,h){return p(h)},dn.useFormState=function(p,h,g){return u.H.useFormState(p,h,g)},dn.useFormStatus=function(){return u.H.useHostTransitionStatus()},dn.version="19.1.0",dn}var Tw;function Zj(){if(Tw)return op.exports;Tw=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(),op.exports=K4(),op.exports}var Ew;function X4(){if(Ew)return Ll;Ew=1;var e=G4(),t=df(),n=Zj();function r(s){var i="https://react.dev/errors/"+s;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)i+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+s+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function l(s){var i=s,o=s;if(s.alternate)for(;i.return;)i=i.return;else{s=i;do i=s,(i.flags&4098)!==0&&(o=i.return),s=i.return;while(s)}return i.tag===3?o:null}function u(s){if(s.tag===13){var i=s.memoizedState;if(i===null&&(s=s.alternate,s!==null&&(i=s.memoizedState)),i!==null)return i.dehydrated}return null}function f(s){if(l(s)!==s)throw Error(r(188))}function p(s){var i=s.alternate;if(!i){if(i=l(s),i===null)throw Error(r(188));return i!==s?null:s}for(var o=s,d=i;;){var m=o.return;if(m===null)break;var y=m.alternate;if(y===null){if(d=m.return,d!==null){o=d;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===o)return f(m),s;if(y===d)return f(m),i;y=y.sibling}throw Error(r(188))}if(o.return!==d.return)o=m,d=y;else{for(var T=!1,A=m.child;A;){if(A===o){T=!0,o=m,d=y;break}if(A===d){T=!0,d=m,o=y;break}A=A.sibling}if(!T){for(A=y.child;A;){if(A===o){T=!0,o=y,d=m;break}if(A===d){T=!0,d=y,o=m;break}A=A.sibling}if(!T)throw Error(r(189))}}if(o.alternate!==d)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?s:i}function h(s){var i=s.tag;if(i===5||i===26||i===27||i===6)return s;for(s=s.child;s!==null;){if(i=h(s),i!==null)return i;s=s.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),_=Symbol.for("react.consumer"),E=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),F=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function H(s){return s===null||typeof s!="object"?null:(s=Q&&s[Q]||s["@@iterator"],typeof s=="function"?s:null)}var ne=Symbol.for("react.client.reference");function te(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===ne?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case N:return"Fragment";case j:return"Profiler";case S:return"StrictMode";case O:return"Suspense";case M:return"SuspenseList";case F:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case w:return"Portal";case E:return(s.displayName||"Context")+".Provider";case _:return(s._context.displayName||"Context")+".Consumer";case R:var i=s.render;return s=s.displayName,s||(s=i.displayName||i.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case V:return i=s.displayName||null,i!==null?i:te(s.type)||"Memo";case D:i=s._payload,s=s._init;try{return te(s(i))}catch{}}return null}var oe=Array.isArray,P=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},le=[],k=-1;function I(s){return{current:s}}function J(s){0>k||(s.current=le[k],le[k]=null,k--)}function se(s,i){k++,le[k]=s.current,s.current=i}var ce=I(null),ve=I(null),de=I(null),xe=I(null);function Te(s,i){switch(se(de,i),se(ve,s),se(ce,null),i.nodeType){case 9:case 11:s=(s=i.documentElement)&&(s=s.namespaceURI)?G0(s):0;break;default:if(s=i.tagName,i=i.namespaceURI)i=G0(i),s=Y0(i,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}J(ce),se(ce,s)}function Re(){J(ce),J(ve),J(de)}function we(s){s.memoizedState!==null&&se(xe,s);var i=ce.current,o=Y0(i,s.type);i!==o&&(se(ve,s),se(ce,o))}function Pe(s){ve.current===s&&(J(ce),J(ve)),xe.current===s&&(J(xe),Rl._currentValue=Z)}var Be=Object.prototype.hasOwnProperty,it=e.unstable_scheduleCallback,ct=e.unstable_cancelCallback,mn=e.unstable_shouldYield,pn=e.unstable_requestPaint,Ut=e.unstable_now,ma=e.unstable_getCurrentPriorityLevel,wi=e.unstable_ImmediatePriority,_n=e.unstable_UserBlockingPriority,L=e.unstable_NormalPriority,q=e.unstable_LowPriority,ee=e.unstable_IdlePriority,ge=e.log,he=e.unstable_setDisableYieldValue,ue=null,ye=null;function Ve(s){if(typeof ge=="function"&&he(s),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(ue,s)}catch{}}var Me=Math.clz32?Math.clz32:Pn,kt=Math.log,Yt=Math.LN2;function Pn(s){return s>>>=0,s===0?32:31-(kt(s)/Yt|0)|0}var Cr=256,Ms=4194304;function gn(s){var i=s&42;if(i!==0)return i;switch(s&-s){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 s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Ws(s,i,o){var d=s.pendingLanes;if(d===0)return 0;var m=0,y=s.suspendedLanes,T=s.pingedLanes;s=s.warmLanes;var A=d&134217727;return A!==0?(d=A&~y,d!==0?m=gn(d):(T&=A,T!==0?m=gn(T):o||(o=A&~s,o!==0&&(m=gn(o))))):(A=d&~y,A!==0?m=gn(A):T!==0?m=gn(T):o||(o=d&~s,o!==0&&(m=gn(o)))),m===0?0:i!==0&&i!==m&&(i&y)===0&&(y=m&-m,o=i&-i,y>=o||y===32&&(o&4194048)!==0)?i:m}function zs(s,i){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&i)===0}function pa(s,i){switch(s){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 Si(){var s=Cr;return Cr<<=1,(Cr&4194048)===0&&(Cr=256),s}function Ic(){var s=Ms;return Ms<<=1,(Ms&62914560)===0&&(Ms=4194304),s}function Fo(s){for(var i=[],o=0;31>o;o++)i.push(s);return i}function Tt(s,i){s.pendingLanes|=i,i!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function yn(s,i,o,d,m,y){var T=s.pendingLanes;s.pendingLanes=o,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=o,s.entangledLanes&=o,s.errorRecoveryDisabledLanes&=o,s.shellSuspendCounter=0;var A=s.entanglements,z=s.expirationTimes,G=s.hiddenUpdates;for(o=T&~o;0<o;){var re=31-Me(o),ae=1<<re;A[re]=0,z[re]=-1;var K=G[re];if(K!==null)for(G[re]=null,re=0;re<K.length;re++){var X=K[re];X!==null&&(X.lane&=-536870913)}o&=~ae}d!==0&&on(s,d,0),y!==0&&m===0&&s.tag!==0&&(s.suspendedLanes|=y&~(T&~i))}function on(s,i,o){s.pendingLanes|=i,s.suspendedLanes&=~i;var d=31-Me(i);s.entangledLanes|=i,s.entanglements[d]=s.entanglements[d]|1073741824|o&4194090}function gs(s,i){var o=s.entangledLanes|=i;for(s=s.entanglements;o;){var d=31-Me(o),m=1<<d;m&i|s[d]&i&&(s[d]|=i),o&=~m}}function ln(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function en(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function Un(){var s=Y.p;return s!==0?s:(s=window.event,s===void 0?32:fw(s.type))}function _r(s,i){var o=Y.p;try{return Y.p=s,i()}finally{Y.p=o}}var gt=Math.random().toString(36).slice(2),xt="__reactFiber$"+gt,vt="__reactProps$"+gt,cn="__reactContainer$"+gt,Js="__reactEvents$"+gt,ji="__reactListeners$"+gt,Ls="__reactHandles$"+gt,Ar="__reactResources$"+gt,er="__reactMarker$"+gt;function Xf(s){delete s[xt],delete s[vt],delete s[Js],delete s[ji],delete s[Ls]}function ga(s){var i=s[xt];if(i)return i;for(var o=s.parentNode;o;){if(i=o[cn]||o[xt]){if(o=i.alternate,i.child!==null||o!==null&&o.child!==null)for(s=Q0(s);s!==null;){if(o=s[xt])return o;s=Q0(s)}return i}s=o,o=s.parentNode}return null}function ya(s){if(s=s[xt]||s[cn]){var i=s.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return s}return null}function Bo(s){var i=s.tag;if(i===5||i===26||i===27||i===6)return s.stateNode;throw Error(r(33))}function xa(s){var i=s[Ar];return i||(i=s[Ar]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function Kt(s){s[er]=!0}var zx=new Set,Lx={};function Ni(s,i){va(s,i),va(s+"Capture",i)}function va(s,i){for(Lx[s]=i,s=0;s<i.length;s++)zx.add(i[s])}var MA=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]*$"),Vx={},Px={};function zA(s){return Be.call(Px,s)?!0:Be.call(Vx,s)?!1:MA.test(s)?Px[s]=!0:(Vx[s]=!0,!1)}function Fc(s,i,o){if(zA(i))if(o===null)s.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":s.removeAttribute(i);return;case"boolean":var d=i.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){s.removeAttribute(i);return}}s.setAttribute(i,""+o)}}function Bc(s,i,o){if(o===null)s.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(i);return}s.setAttribute(i,""+o)}}function tr(s,i,o,d){if(d===null)s.removeAttribute(o);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(o);return}s.setAttributeNS(i,o,""+d)}}var Zf,Ux;function ba(s){if(Zf===void 0)try{throw Error()}catch(o){var i=o.stack.trim().match(/\n( *(at )?)/);Zf=i&&i[1]||"",Ux=-1<o.stack.indexOf(`
2    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
3`+Zf+s+Ux}var Qf=!1;function Wf(s,i){if(!s||Qf)return"";Qf=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(i){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(X){var K=X}Reflect.construct(s,[],ae)}else{try{ae.call()}catch(X){K=X}s.call(ae.prototype)}}else{try{throw Error()}catch(X){K=X}(ae=s())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(X){if(X&&K&&typeof X.stack=="string")return[X.stack,K.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=d.DetermineComponentFrameRoot(),T=y[0],A=y[1];if(T&&A){var z=T.split(`
4`),G=A.split(`
5`);for(m=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;m<G.length&&!G[m].includes("DetermineComponentFrameRoot");)m++;if(d===z.length||m===G.length)for(d=z.length-1,m=G.length-1;1<=d&&0<=m&&z[d]!==G[m];)m--;for(;1<=d&&0<=m;d--,m--)if(z[d]!==G[m]){if(d!==1||m!==1)do if(d--,m--,0>m||z[d]!==G[m]){var re=`
6`+z[d].replace(" at new "," at ");return s.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",s.displayName)),re}while(1<=d&&0<=m);break}}}finally{Qf=!1,Error.prepareStackTrace=o}return(o=s?s.displayName||s.name:"")?ba(o):""}function LA(s){switch(s.tag){case 26:case 27:case 5:return ba(s.type);case 16:return ba("Lazy");case 13:return ba("Suspense");case 19:return ba("SuspenseList");case 0:case 15:return Wf(s.type,!1);case 11:return Wf(s.type.render,!1);case 1:return Wf(s.type,!0);case 31:return ba("Activity");default:return""}}function Ix(s){try{var i="";do i+=LA(s),s=s.return;while(s);return i}catch(o){return`
7Error generating stack: `+o.message+`
8`+o.stack}}function ts(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Fx(s){var i=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function VA(s){var i=Fx(s)?"checked":"value",o=Object.getOwnPropertyDescriptor(s.constructor.prototype,i),d=""+s[i];if(!s.hasOwnProperty(i)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var m=o.get,y=o.set;return Object.defineProperty(s,i,{configurable:!0,get:function(){return m.call(this)},set:function(T){d=""+T,y.call(this,T)}}),Object.defineProperty(s,i,{enumerable:o.enumerable}),{getValue:function(){return d},setValue:function(T){d=""+T},stopTracking:function(){s._valueTracker=null,delete s[i]}}}}function Hc(s){s._valueTracker||(s._valueTracker=VA(s))}function Bx(s){if(!s)return!1;var i=s._valueTracker;if(!i)return!0;var o=i.getValue(),d="";return s&&(d=Fx(s)?s.checked?"true":"false":s.value),s=d,s!==o?(i.setValue(s),!0):!1}function qc(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var PA=/[\n"\\]/g;function ns(s){return s.replace(PA,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Jf(s,i,o,d,m,y,T,A){s.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?s.type=T:s.removeAttribute("type"),i!=null?T==="number"?(i===0&&s.value===""||s.value!=i)&&(s.value=""+ts(i)):s.value!==""+ts(i)&&(s.value=""+ts(i)):T!=="submit"&&T!=="reset"||s.removeAttribute("value"),i!=null?eh(s,T,ts(i)):o!=null?eh(s,T,ts(o)):d!=null&&s.removeAttribute("value"),m==null&&y!=null&&(s.defaultChecked=!!y),m!=null&&(s.checked=m&&typeof m!="function"&&typeof m!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?s.name=""+ts(A):s.removeAttribute("name")}function Hx(s,i,o,d,m,y,T,A){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(s.type=y),i!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||i!=null))return;o=o!=null?""+ts(o):"",i=i!=null?""+ts(i):o,A||i===s.value||(s.value=i),s.defaultValue=i}d=d??m,d=typeof d!="function"&&typeof d!="symbol"&&!!d,s.checked=A?s.checked:!!d,s.defaultChecked=!!d,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(s.name=T)}function eh(s,i,o){i==="number"&&qc(s.ownerDocument)===s||s.defaultValue===""+o||(s.defaultValue=""+o)}function wa(s,i,o,d){if(s=s.options,i){i={};for(var m=0;m<o.length;m++)i["$"+o[m]]=!0;for(o=0;o<s.length;o++)m=i.hasOwnProperty("$"+s[o].value),s[o].selected!==m&&(s[o].selected=m),m&&d&&(s[o].defaultSelected=!0)}else{for(o=""+ts(o),i=null,m=0;m<s.length;m++){if(s[m].value===o){s[m].selected=!0,d&&(s[m].defaultSelected=!0);return}i!==null||s[m].disabled||(i=s[m])}i!==null&&(i.selected=!0)}}function qx(s,i,o){if(i!=null&&(i=""+ts(i),i!==s.value&&(s.value=i),o==null)){s.defaultValue!==i&&(s.defaultValue=i);return}s.defaultValue=o!=null?""+ts(o):""}function $x(s,i,o,d){if(i==null){if(d!=null){if(o!=null)throw Error(r(92));if(oe(d)){if(1<d.length)throw Error(r(93));d=d[0]}o=d}o==null&&(o=""),i=o}o=ts(i),s.defaultValue=o,d=s.textContent,d===o&&d!==""&&d!==null&&(s.value=d)}function Sa(s,i){if(i){var o=s.firstChild;if(o&&o===s.lastChild&&o.nodeType===3){o.nodeValue=i;return}}s.textContent=i}var UA=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 Gx(s,i,o){var d=i.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?d?s.setProperty(i,""):i==="float"?s.cssFloat="":s[i]="":d?s.setProperty(i,o):typeof o!="number"||o===0||UA.has(i)?i==="float"?s.cssFloat=o:s[i]=(""+o).trim():s[i]=o+"px"}function Yx(s,i,o){if(i!=null&&typeof i!="object")throw Error(r(62));if(s=s.style,o!=null){for(var d in o)!o.hasOwnProperty(d)||i!=null&&i.hasOwnProperty(d)||(d.indexOf("--")===0?s.setProperty(d,""):d==="float"?s.cssFloat="":s[d]="");for(var m in i)d=i[m],i.hasOwnProperty(m)&&o[m]!==d&&Gx(s,m,d)}else for(var y in i)i.hasOwnProperty(y)&&Gx(s,y,i[y])}function th(s){if(s.indexOf("-")===-1)return!1;switch(s){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 IA=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
8-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"]]),FA=/^[\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 $c(s){return FA.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var nh=null;function sh(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var ja=null,Na=null;function Kx(s){var i=ya(s);if(i&&(s=i.stateNode)){var o=s[vt]||null;e:switch(s=i.stateNode,i.type){case"input":if(Jf(s,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),i=o.name,o.type==="radio"&&i!=null){for(o=s;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+ns(""+i)+'"][type="radio"]'),i=0;i<o.length;i++){var d=o[i];if(d!==s&&d.form===s.form){var m=d[vt]||null;if(!m)throw Error(r(90));Jf(d,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(i=0;i<o.length;i++)d=o[i],d.form===s.form&&Bx(d)}break e;case"textarea":qx(s,o.value,o.defaultValue);break e;case"select":i=o.value,i!=null&&wa(s,!!o.multiple,i,!1)}}}var rh=!1;function Xx(s,i,o){if(rh)return s(i,o);rh=!0;try{var d=s(i);return d}finally{if(rh=!1,(ja!==null||Na!==null)&&(Ru(),ja&&(i=ja,s=Na,Na=ja=null,Kx(i),s)))for(i=0;i<s.length;i++)Kx(s[i])}}function Ho(s,i){var o=s.stateNode;if(o===null)return null;var d=o[vt]||null;if(d===null)return null;o=d[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(d=!d.disabled)||(s=s.type,d=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!d;break e;default:s=!1}if(s)return null;if(o&&typeof o!="function")throw Error(r(231,i,typeof o));return o}var nr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ih=!1;if(nr)try{var qo={};Object.defineProperty(qo,"passive",{get:function(){ih=!0}}),window.addEventListener("test",qo,qo),window.removeEventListener("test",qo,qo)}catch{ih=!1}var Rr=null,ah=null,Gc=null;function Zx(){if(Gc)return Gc;var s,i=ah,o=i.length,d,m="value"in Rr?Rr.value:Rr.textContent,y=m.length;for(s=0;s<o&&i[s]===m[s];s++);var T=o-s;for(d=1;d<=T&&i[o-d]===m[y-d];d++);return Gc=m.slice(s,1<d?1-d:void 0)}function Yc(s){var i=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&i===13&&(s=13)):s=i,s===10&&(s=13),32<=s||s===13?s:0}function Kc(){return!0}function Qx(){return!1}function An(s){function i(o,d,m,y,T){this._reactName=o,this._targetInst=m,this.type=d,this.nativeEvent=y,this.target=T,this.currentTarget=null;for(var A in s)s.hasOwnProperty(A)&&(o=s[A],this[A]=o?o(y):y[A]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Kc:Qx,this.isPropagationStopped=Qx,this}return g(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Kc)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Kc)},persist:function(){},isPersistent:Kc}),i}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xc=An(Ti),$o=g({},Ti,{view:0,detail:0}),BA=An($o),oh,lh,Go,Zc=g({},$o,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:uh,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==Go&&(Go&&s.type==="mousemove"?(oh=s.screenX-Go.screenX,lh=s.screenY-Go.screenY):lh=oh=0,Go=s),oh)},movementY:function(s){return"movementY"in s?s.movementY:lh}}),Wx=An(Zc),HA=g({},Zc,{dataTransfer:0}),qA=An(HA),$A=g({},$o,{relatedTarget:0}),ch=An($A),GA=g({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),YA=An(GA),KA=g({},Ti,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),XA=An(KA),ZA=g({},Ti,{data:0}),Jx=An(ZA),QA={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},WA={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"},JA={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eR(s){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(s):(s=JA[s])?!!i[s]:!1}function uh(){return eR}var tR=g({},$o,{key:function(s){if(s.key){var i=QA[s.key]||s.key;if(i!=="Unidentified")return i}
vendor: 4,246 bytes, line 8
8return s.type==="keypress"?(s=Yc(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?WA[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:uh,charCode:function(s){return s.type==="keypress"?Yc(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Yc(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),nR=An(tR),sR=g({},Zc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ev=An(sR),rR=g({},$o,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:uh}),iR=An(rR),aR=g({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),oR=An(aR),lR=g({},Zc,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),cR=An(lR),uR=g({},Ti,{newState:0,oldState:0}),dR=An(uR),fR=[9,13,27,32],dh=nr&&"CompositionEvent"in window,Yo=null;nr&&"documentMode"in document&&(Yo=document.documentMode);var hR=nr&&"TextEvent"in window&&!Yo,tv=nr&&(!dh||Yo&&8<Yo&&11>=Yo),nv=" ",sv=!1;function rv(s,i){switch(s){case"keyup":return fR.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function iv(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Ta=!1;function mR(s,i){switch(s){case"compositionend":return iv(i);case"keypress":return i.which!==32?null:(sv=!0,nv);case"textInput":return s=i.data,s===nv&&sv?null:s;default:return null}}function pR(s,i){if(Ta)return s==="compositionend"||!dh&&rv(s,i)?(s=Zx(),Gc=ah=Rr=null,Ta=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return tv&&i.locale!=="ko"?null:i.data;default:return null}}var gR={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 av(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i==="input"?!!gR[s.type]:i==="textarea"}function ov(s,i,o,d){ja?Na?Na.push(d):Na=[d]:ja=d,i=Lu(i,"onChange"),0<i.length&&(o=new Xc("onChange","change",null,o,d),s.push({event:o,listeners:i}))}var Ko=null,Xo=null;function yR(s){F0(s,0)}function Qc(s){var i=Bo(s);if(Bx(i))return s}function lv(s,i){if(s==="change")return i}var cv=!1;if(nr){var fh;if(nr){var hh="oninput"in document;if(!hh){var uv=document.createElement("div");uv.setAttribute("oninput","return;"),hh=typeof uv.oninput=="function"}fh=hh}else fh=!1;cv=fh&&(!document.documentMode||9<document.documentMode)}function dv(){Ko&&(Ko.detachEvent("onpropertychange",fv),Xo=Ko=null)}function fv(s){if(s.propertyName==="value"&&Qc(Xo)){var i=[];ov(i,Xo,s,sh(s)),Xx(yR,i)}}function xR(s,i,o){s==="focusin"?(dv(),Ko=i,Xo=o,Ko.attachEvent("onpropertychange",fv)):s==="focusout"&&dv()}function vR(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Qc(Xo)}function bR(s,i){if(s==="click")return Qc(i)}function wR(s,i){if(s==="input"||s==="change")return Qc(i)}function SR(s,i){return s===i&&(s!==0||1/s===1/i)||s!==s&&i!==i}var In=typeof Object.is=="function"?Object.is:SR;function Zo(s,i){if(In(s,i))return!0;if(typeof s!="object"||s===null||typeof i!="object"||i===null)return!1;var o=Object.keys(s),d=Object.keys(i);if(o.length!==d.length)return!1;for(d=0;d<o.length;d++){var m=o[d];if(!Be.call(i,m)||!In(s[m],i[m]))return!1}return!0}function hv(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function mv(s,i){var o=hv(s);s=0;for(var d;o;){if(o.nodeType===3){if(d=s+o.textContent.length,s<=i&&d>=i)return{node:o,offset:i-s};s=d}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=hv(o)}}function pv(s,i){return s&&i?s===i?!0:s&&s.nodeType===3?!1:i&&i.nodeType===3?pv(s,i.parentNode):"contains"in s?s.contains(i):s.compareDocumentPosition?!!(s.compareDocumentPosition(i)&16):!1:!1}
vendor: 98,227 bytes, line 8
8function gv(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var i=qc(s.document);i instanceof s.HTMLIFrameElement;){try{var o=typeof i.contentWindow.location.href=="string"}catch{o=!1}if(o)s=i.contentWindow;else break;i=qc(s.document)}return i}function mh(s){var i=s&&s.nodeName&&s.nodeName.toLowerCase();return i&&(i==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||i==="textarea"||s.contentEditable==="true")}var jR=nr&&"documentMode"in document&&11>=document.documentMode,Ea=null,ph=null,Qo=null,gh=!1;function yv(s,i,o){var d=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;gh||Ea==null||Ea!==qc(d)||(d=Ea,"selectionStart"in d&&mh(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),Qo&&Zo(Qo,d)||(Qo=d,d=Lu(ph,"onSelect"),0<d.length&&(i=new Xc("onSelect","select",null,i,o),s.push({event:i,listeners:d}),i.target=Ea)))}function Ei(s,i){var o={};return o[s.toLowerCase()]=i.toLowerCase(),o["Webkit"+s]="webkit"+i,o["Moz"+s]="moz"+i,o}var Ca={animationend:Ei("Animation","AnimationEnd"),animationiteration:Ei("Animation","AnimationIteration"),animationstart:Ei("Animation","AnimationStart"),transitionrun:Ei("Transition","TransitionRun"),transitionstart:Ei("Transition","TransitionStart"),transitioncancel:Ei("Transition","TransitionCancel"),transitionend:Ei("Transition","TransitionEnd")},yh={},xv={};nr&&(xv=document.createElement("div").style,"AnimationEvent"in window||(delete Ca.animationend.animation,delete Ca.animationiteration.animation,delete Ca.animationstart.animation),"TransitionEvent"in window||delete Ca.transitionend.transition);function Ci(s){if(yh[s])return yh[s];if(!Ca[s])return s;var i=Ca[s],o;for(o in i)if(i.hasOwnProperty(o)&&o in xv)return yh[s]=i[o];return s}var vv=Ci("animationend"),bv=Ci("animationiteration"),wv=Ci("animationstart"),NR=Ci("transitionrun"),TR=Ci("transitionstart"),ER=Ci("transitioncancel"),Sv=Ci("transitionend"),jv=new Map,xh="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(" ");xh.push("scrollEnd");function ys(s,i){jv.set(s,i),Ni(i,[s])}var Nv=new WeakMap;function ss(s,i){if(typeof s=="object"&&s!==null){var o=Nv.get(s);return o!==void 0?o:(i={value:s,source:i,stack:Ix(i)},Nv.set(s,i),i)}return{value:s,source:i,stack:Ix(i)}}var rs=[],_a=0,vh=0;function Wc(){for(var s=_a,i=vh=_a=0;i<s;){var o=rs[i];rs[i++]=null;var d=rs[i];rs[i++]=null;var m=rs[i];rs[i++]=null;var y=rs[i];if(rs[i++]=null,d!==null&&m!==null){var T=d.pending;T===null?m.next=m:(m.next=T.next,T.next=m),d.pending=m}y!==0&&Tv(o,m,y)}}function Jc(s,i,o,d){rs[_a++]=s,rs[_a++]=i,rs[_a++]=o,rs[_a++]=d,vh|=d,s.lanes|=d,s=s.alternate,s!==null&&(s.lanes|=d)}function bh(s,i,o,d){return Jc(s,i,o,d),eu(s)}function Aa(s,i){return Jc(s,null,null,i),eu(s)}function Tv(s,i,o){s.lanes|=o;var d=s.alternate;d!==null&&(d.lanes|=o);for(var m=!1,y=s.return;y!==null;)y.childLanes|=o,d=y.alternate,d!==null&&(d.childLanes|=o),y.tag===22&&(s=y.stateNode,s===null||s._visibility&1||(m=!0)),s=y,y=y.return;return s.tag===3?(y=s.stateNode,m&&i!==null&&(m=31-Me(o),s=y.hiddenUpdates,d=s[m],d===null?s[m]=[i]:d.push(i),i.lane=o|536870912),y):null}function eu(s){if(50<Sl)throw Sl=0,Em=null,Error(r(185));for(var i=s.return;i!==null;)s=i,i=s.return;return s.tag===3?s.stateNode:null}var Ra={};function CR(s,i,o,d){this.tag=s,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fn(s,i,o,d){return new CR(s,i,o,d)}function wh(s){return s=s.prototype,!(!s||!s.isReactComponent)}function sr(s,i){var o=s.alternate;return o===null?(o=Fn(s.tag,i,s.key,s.mode),o.elementType=s.elementType,o.type=s.type,o.stateNode=s.stateNode,o.alternate=s,s.alternate=o):(o.pendingProps=i,o.type=s.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=s.flags&65011712,o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,i=s.dependencies,o.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},o.sibling=s.sibling,o.index=s.index,o.ref=s.ref,o.refCleanup=s.refCleanup,o}function Ev(s,i){s.flags&=65011714;var o=s.alternate;return o===null?(s.childLanes=0,s.lanes=i,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=o.childLanes,s.lanes=o.lanes,s.child=o.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=o.memoizedProps,s.memoizedState=o.memoizedState,s.updateQueue=o.updateQueue,s.type=o.type,i=o.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),s}function tu(s,i,o,d,m,y){var T=0;if(d=s,typeof s=="function")wh(s)&&(T=1);else if(typeof s=="string")T=A4(s,o,ce.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case F:return s=Fn(31,o,i,m),s.elementType=F,s.lanes=y,s;case N:return _i(o.children,m,y,i);case S:T=8,m|=24;break;case j:return s=Fn(12,o,i,m|2),s.elementType=j,s.lanes=y,s;case O:return s=Fn(13,o,i,m),s.elementType=O,s.lanes=y,s;case M:return s=Fn(19,o,i,m),s.elementType=M,s.lanes=y,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case C:case E:T=10;break e;case _:T=9;break e;case R:T=11;break e;case V:T=14;break e;case D:T=16,d=null;break e}T=29,o=Error(r(130,s===null?"null":typeof s,"")),d=null}return i=Fn(T,o,i,m),i.elementType=s,i.type=d,i.lanes=y,i}function _i(s,i,o,d){return s=Fn(7,s,d,i),s.lanes=o,s}function Sh(s,i,o){return s=Fn(6,s,null,i),s.lanes=o,s}function jh(s,i,o){return i=Fn(4,s.children!==null?s.children:[],s.key,i),i.lanes=o,i.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},i}var ka=[],Oa=0,nu=null,su=0,is=[],as=0,Ai=null,rr=1,ir="";function Ri(s,i){ka[Oa++]=su,ka[Oa++]=nu,nu=s,su=i}function Cv(s,i,o){is[as++]=rr,is[as++]=ir,is[as++]=Ai,Ai=s;var d=rr;s=ir;var m=32-Me(d)-1;d&=~(1<<m),o+=1;var y=32-Me(i)+m;if(30<y){var T=m-m%5;y=(d&(1<<T)-1).toString(32),d>>=T,m-=T,rr=1<<32-Me(i)+m|o<<m|d,ir=y+s}else rr=1<<y|o<<m|d,ir=s}function Nh(s){s.return!==null&&(Ri(s,1),Cv(s,1,0))}function Th(s){for(;s===nu;)nu=ka[--Oa],ka[Oa]=null,su=ka[--Oa],ka[Oa]=null;for(;s===Ai;)Ai=is[--as],is[as]=null,ir=is[--as],is[as]=null,rr=is[--as],is[as]=null}var xn=null,Et=null,rt=!1,ki=null,Vs=!1,Eh=Error(r(519));function Oi(s){var i=Error(r(418,""));throw el(ss(i,s)),Eh}function _v(s){var i=s.stateNode,o=s.type,d=s.memoizedProps;switch(i[xt]=s,i[vt]=d,o){case"dialog":Ze("cancel",i),Ze("close",i);break;case"iframe":case"object":case"embed":Ze("load",i);break;case"video":case"audio":for(o=0;o<Nl.length;o++)Ze(Nl[o],i);break;case"source":Ze("error",i);break;case"img":case"image":case"link":Ze("error",i),Ze("load",i);break;case"details":Ze("toggle",i);break;case"input":Ze("invalid",i),Hx(i,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0),Hc(i);break;case"select":Ze("invalid",i);break;case"textarea":Ze("invalid",i),$x(i,d.value,d.defaultValue,d.children),Hc(i)}o=d.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||i.textContent===""+o||d.suppressHydrationWarning===!0||$0(i.textContent,o)?(d.popover!=null&&(Ze("beforetoggle",i),Ze("toggle",i)),d.onScroll!=null&&Ze("scroll",i),d.onScrollEnd!=null&&Ze("scrollend",i),d.onClick!=null&&(i.onclick=Vu),i=!0):i=!1,i||Oi(s)}function Av(s){for(xn=s.return;xn;)switch(xn.tag){case 5:case 13:Vs=!1;return;case 27:case 3:Vs=!0;return;default:xn=xn.return}}function Wo(s){if(s!==xn)return!1;if(!rt)return Av(s),rt=!0,!1;var i=s.tag,o;if((o=i!==3&&i!==27)&&((o=i===5)&&(o=s.type,o=!(o!=="form"&&o!=="button")||Bm(s.type,s.memoizedProps)),o=!o),o&&Et&&Oi(s),Av(s),i===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,i=0;s;){if(s.nodeType===8)if(o=s.data,o==="/$"){if(i===0){Et=vs(s.nextSibling);break e}i--}else o!=="$"&&o!=="$!"&&o!=="$?"||i++;s=s.nextSibling}Et=null}}else i===27?(i=Et,Gr(s.type)?(s=Gm,Gm=null,Et=s):Et=i):Et=xn?vs(s.stateNode.nextSibling):null;return!0}function Jo(){Et=xn=null,rt=!1}function Rv(){var s=ki;return s!==null&&(On===null?On=s:On.push.apply(On,s),ki=null),s}function el(s){ki===null?ki=[s]:ki.push(s)}var Ch=I(null),Di=null,ar=null;function kr(s,i,o){se(Ch,i._currentValue),i._currentValue=o}function or(s){s._currentValue=Ch.current,J(Ch)}function _h(s,i,o){for(;s!==null;){var d=s.alternate;if((s.childLanes&i)!==i?(s.childLanes|=i,d!==null&&(d.childLanes|=i)):d!==null&&(d.childLanes&i)!==i&&(d.childLanes|=i),s===o)break;s=s.return}}function Ah(s,i,o,d){var m=s.child;for(m!==null&&(m.return=s);m!==null;){var y=m.dependencies;if(y!==null){var T=m.child;y=y.firstContext;e:for(;y!==null;){var A=y;y=m;for(var z=0;z<i.length;z++)if(A.context===i[z]){y.lanes|=o,A=y.alternate,A!==null&&(A.lanes|=o),_h(y.return,o,s),d||(T=null);break e}y=A.next}}else if(m.tag===18){if(T=m.return,T===null)throw Error(r(341));T.lanes|=o,y=T.alternate,y!==null&&(y.lanes|=o),_h(T,o,s),T=null}else T=m.child;if(T!==null)T.return=m;else for(T=m;T!==null;){if(T===s){T=null;break}if(m=T.sibling,m!==null){m.return=T.return,T=m;break}T=T.return}m=T}}function tl(s,i,o,d){s=null;for(var m=i,y=!1;m!==null;){if(!y){if((m.flags&524288)!==0)y=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var T=m.alternate;if(T===null)throw Error(r(387));if(T=T.memoizedProps,T!==null){var A=m.type;In(m.pendingProps.value,T.value)||(s!==null?s.push(A):s=[A])}}else if(m===xe.current){if(T=m.alternate,T===null)throw Error(r(387));T.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(s!==null?s.push(Rl):s=[Rl])}m=m.return}s!==null&&Ah(i,s,o,d),i.flags|=262144}function ru(s){for(s=s.firstContext;s!==null;){if(!In(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Mi(s){Di=s,ar=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function un(s){return kv(Di,s)}function iu(s,i){return Di===null&&Mi(s),kv(s,i)}function kv(s,i){var o=i._currentValue;if(i={context:i,memoizedValue:o,next:null},ar===null){if(s===null)throw Error(r(308));ar=i,s.dependencies={lanes:0,firstContext:i},s.flags|=524288}else ar=ar.next=i;return o}var _R=typeof AbortController<"u"?AbortController:function(){var s=[],i=this.signal={aborted:!1,addEventListener:function(o,d){s.push(d)}};this.abort=function(){i.aborted=!0,s.forEach(function(o){return o()})}},AR=e.unstable_scheduleCallback,RR=e.unstable_NormalPriority,It={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Rh(){return{controller:new _R,data:new Map,refCount:0}}function nl(s){s.refCount--,s.refCount===0&&AR(RR,function(){s.controller.abort()})}var sl=null,kh=0,Da=0,Ma=null;function kR(s,i){if(sl===null){var o=sl=[];kh=0,Da=Dm(),Ma={status:"pending",value:void 0,then:function(d){o.push(d)}}}return kh++,i.then(Ov,Ov),i}function Ov(){if(--kh===0&&sl!==null){Ma!==null&&(Ma.status="fulfilled");var s=sl;sl=null,Da=0,Ma=null;for(var i=0;i<s.length;i++)(0,s[i])()}}function OR(s,i){var o=[],d={status:"pending",value:null,reason:null,then:function(m){o.push(m)}};return s.then(function(){d.status="fulfilled",d.value=i;for(var m=0;m<o.length;m++)(0,o[m])(i)},function(m){for(d.status="rejected",d.reason=m,m=0;m<o.length;m++)(0,o[m])(void 0)}),d}var Dv=P.S;P.S=function(s,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&kR(s,i),Dv!==null&&Dv(s,i)};var zi=I(null);function Oh(){var s=zi.current;return s!==null?s:yt.pooledCache}function au(s,i){i===null?se(zi,zi.current):se(zi,i.pool)}function Mv(){var s=Oh();return s===null?null:{parent:It._currentValue,pool:s}}var rl=Error(r(460)),zv=Error(r(474)),ou=Error(r(542)),Dh={then:function(){}};function Lv(s){return s=s.status,s==="fulfilled"||s==="rejected"}function lu(){}function Vv(s,i,o){switch(o=s[o],o===void 0?s.push(i):o!==i&&(i.then(lu,lu),i=o),i.status){case"fulfilled":return i.value;case"rejected":throw s=i.reason,Uv(s),s;default:if(typeof i.status=="string")i.then(lu,lu);else{if(s=yt,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=i,s.status="pending",s.then(function(d){if(i.status==="pending"){var m=i;m.status="fulfilled",m.value=d}},function(d){if(i.status==="pending"){var m=i;m.status="rejected",m.reason=d}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw s=i.reason,Uv(s),s}throw il=i,rl}}var il=null;function Pv(){if(il===null)throw Error(r(459));var s=il;return il=null,s}function Uv(s){if(s===rl||s===ou)throw Error(r(483))}var Or=!1;function Mh(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zh(s,i){s=s.updateQueue,i.updateQueue===s&&(i.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Dr(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Mr(s,i,o){var d=s.updateQueue;if(d===null)return null;if(d=d.shared,(at&2)!==0){var m=d.pending;return m===null?i.next=i:(i.next=m.next,m.next=i),d.pending=i,i=eu(s),Tv(s,null,o),i}return Jc(s,d,i,o),eu(s)}function al(s,i,o){if(i=i.updateQueue,i!==null&&(i=i.shared,(o&4194048)!==0)){var d=i.lanes;d&=s.pendingLanes,o|=d,i.lanes=o,gs(s,o)}}function Lh(s,i){var o=s.updateQueue,d=s.alternate;if(d!==null&&(d=d.updateQueue,o===d)){var m=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var T={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?m=y=T:y=y.next=T,o=o.next}while(o!==null);y===null?m=y=i:y=y.next=i}else m=y=i;o={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:y,shared:d.shared,callbacks:d.callbacks},s.updateQueue=o;return}s=o.lastBaseUpdate,s===null?o.firstBaseUpdate=i:s.next=i,o.lastBaseUpdate=i}var Vh=!1;function ol(){if(Vh){var s=Ma;if(s!==null)throw s}}function ll(s,i,o,d){Vh=!1;var m=s.updateQueue;Or=!1;var y=m.firstBaseUpdate,T=m.lastBaseUpdate,A=m.shared.pending;if(A!==null){m.shared.pending=null;var z=A,G=z.next;z.next=null,T===null?y=G:T.next=G,T=z;var re=s.alternate;re!==null&&(re=re.updateQueue,A=re.lastBaseUpdate,A!==T&&(A===null?re.firstBaseUpdate=G:A.next=G,re.lastBaseUpdate=z))}if(y!==null){var ae=m.baseState;T=0,re=G=z=null,A=y;do{var K=A.lane&-536870913,X=K!==A.lane;if(X?(et&K)===K:(d&K)===K){K!==0&&K===Da&&(Vh=!0),re!==null&&(re=re.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var Le=s,ke=A;K=i;var ft=o;switch(ke.tag){case 1:if(Le=ke.payload,typeof Le=="function"){ae=Le.call(ft,ae,K);break e}ae=Le;break e;case 3:Le.flags=Le.flags&-65537|128;case 0:if(Le=ke.payload,K=typeof Le=="function"?Le.call(ft,ae,K):Le,K==null)break e;ae=g({},ae,K);break e;case 2:Or=!0}}K=A.callback,K!==null&&(s.flags|=64,X&&(s.flags|=8192),X=m.callbacks,X===null?m.callbacks=[K]:X.push(K))}else X={lane:K,tag:A.tag,payload:A.payload,callback:A.callback,next:null},re===null?(G=re=X,z=ae):re=re.next=X,T|=K;if(A=A.next,A===null){if(A=m.shared.pending,A===null)break;X=A,A=X.next,X.next=null,m.lastBaseUpdate=X,m.shared.pending=null}}while(!0);re===null&&(z=ae),m.baseState=z,m.firstBaseUpdate=G,m.lastBaseUpdate=re,y===null&&(m.shared.lanes=0),Br|=T,s.lanes=T,s.memoizedState=ae}}function Iv(s,i){if(typeof s!="function")throw Error(r(191,s));s.call(i)}function Fv(s,i){var o=s.callbacks;if(o!==null)for(s.callbacks=null,s=0;s<o.length;s++)Iv(o[s],i)}var za=I(null),cu=I(0);function Bv(s,i){s=mr,se(cu,s),se(za,i),mr=s|i.baseLanes}function Ph(){se(cu,mr),se(za,za.current)}function Uh(){mr=cu.current,J(za),J(cu)}var zr=0,$e=null,ut=null,Ot=null,uu=!1,La=!1,Li=!1,du=0,cl=0,Va=null,DR=0;function At(){throw Error(r(321))}function Ih(s,i){if(i===null)return!1;for(var o=0;o<i.length&&o<s.length;o++)if(!In(s[o],i[o]))return!1;return!0}function Fh(s,i,o,d,m,y){return zr=y,$e=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,P.H=s===null||s.memoizedState===null?Tb:Eb,Li=!1,y=o(d,m),Li=!1,La&&(y=qv(i,o,d,m)),Hv(s),y}function Hv(s){P.H=yu;var i=ut!==null&&ut.next!==null;if(zr=0,Ot=ut=$e=null,uu=!1,cl=0,Va=null,i)throw Error(r(300));s===null||Xt||(s=s.dependencies,s!==null&&ru(s)&&(Xt=!0))}function qv(s,i,o,d){$e=s;var m=0;do{if(La&&(Va=null),cl=0,La=!1,25<=m)throw Error(r(301));if(m+=1,Ot=ut=null,s.updateQueue!=null){var y=s.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}P.H=IR,y=i(o,d)}while(La);return y}function MR(){var s=P.H,i=s.useState()[0];return i=typeof i.then=="function"?ul(i):i,s=s.useState()[0],(ut!==null?ut.memoizedState:null)!==s&&($e.flags|=1024),i}function Bh(){var s=du!==0;return du=0,s}function Hh(s,i,o){i.updateQueue=s.updateQueue,i.flags&=-2053,s.lanes&=~o}function qh(s){if(uu){for(s=s.memoizedState;s!==null;){var i=s.queue;i!==null&&(i.pending=null),s=s.next}uu=!1}zr=0,Ot=ut=$e=null,La=!1,cl=du=0,Va=null}function Rn(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?$e.memoizedState=Ot=s:Ot=Ot.next=s,Ot}function Dt(){if(ut===null){var s=$e.alternate;s=s!==null?s.memoizedState:null}else s=ut.next;var i=Ot===null?$e.memoizedState:Ot.next;if(i!==null)Ot=i,ut=s;else{if(s===null)throw $e.alternate===null?Error(r(467)):Error(r(310));ut=s,s={memoizedState:ut.memoizedState,baseState:ut.baseState,baseQueue:ut.baseQueue,queue:ut.queue,next:null},Ot===null?$e.memoizedState=Ot=s:Ot=Ot.next=s}return Ot}function $h(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ul(s){var i=cl;return cl+=1,Va===null&&(Va=[]),s=Vv(Va,s,i),i=$e,(Ot===null?i.memoizedState:Ot.next)===null&&(i=i.alternate,P.H=i===null||i.memoizedState===null?Tb:Eb),s}function fu(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return ul(s);if(s.$$typeof===E)return un(s)}throw Error(r(438,String(s)))}function Gh(s){var i=null,o=$e.updateQueue;if(o!==null&&(i=o.memoCache),i==null){var d=$e.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(i={data:d.data.map(function(m){return m.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),o===null&&(o=$h(),$e.updateQueue=o),o.memoCache=i,o=i.data[i.index],o===void 0)for(o=i.data[i.index]=Array(s),d=0;d<s;d++)o[d]=W;return i.index++,o}function lr(s,i){return typeof i=="function"?i(s):i}function hu(s){var i=Dt();return Yh(i,ut,s)}function Yh(s,i,o){var d=s.queue;if(d===null)throw Error(r(311));d.lastRenderedReducer=o;var m=s.baseQueue,y=d.pending;if(y!==null){if(m!==null){var T=m.next;m.next=y.next,y.next=T}i.baseQueue=m=y,d.pending=null}if(y=s.baseState,m===null)s.memoizedState=y;else{i=m.next;var A=T=null,z=null,G=i,re=!1;do{var ae=G.lane&-536870913;if(ae!==G.lane?(et&ae)===ae:(zr&ae)===ae){var K=G.revertLane;if(K===0)z!==null&&(z=z.next={lane:0,revertLane:0,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null}),ae===Da&&(re=!0);else if((zr&K)===K){G=G.next,K===Da&&(re=!0);continue}else ae={lane:0,revertLane:G.revertLane,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},z===null?(A=z=ae,T=y):z=z.next=ae,$e.lanes|=K,Br|=K;ae=G.action,Li&&o(y,ae),y=G.hasEagerState?G.eagerState:o(y,ae)}else K={lane:ae,revertLane:G.revertLane,action:G.action,hasEagerState:G.hasEagerState,eagerState:G.eagerState,next:null},z===null?(A=z=K,T=y):z=z.next=K,$e.lanes|=ae,Br|=ae;G=G.next}while(G!==null&&G!==i);if(z===null?T=y:z.next=A,!In(y,s.memoizedState)&&(Xt=!0,re&&(o=Ma,o!==null)))throw o;s.memoizedState=y,s.baseState=T,s.baseQueue=z,d.lastRenderedState=y}return m===null&&(d.lanes=0),[s.memoizedState,d.dispatch]}function Kh(s){var i=Dt(),o=i.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=s;var d=o.dispatch,m=o.pending,y=i.memoizedState;if(m!==null){o.pending=null;var T=m=m.next;do y=s(y,T.action),T=T.next;while(T!==m);In(y,i.memoizedState)||(Xt=!0),i.memoizedState=y,i.baseQueue===null&&(i.baseState=y),o.lastRenderedState=y}return[y,d]}function $v(s,i,o){var d=$e,m=Dt(),y=rt;if(y){if(o===void 0)throw Error(r(407));o=o()}else o=i();var T=!In((ut||m).memoizedState,o);T&&(m.memoizedState=o,Xt=!0),m=m.queue;var A=Kv.bind(null,d,m,s);if(dl(2048,8,A,[s]),m.getSnapshot!==i||T||Ot!==null&&Ot.memoizedState.tag&1){if(d.flags|=2048,Pa(9,mu(),Yv.bind(null,d,m,o,i),null),yt===null)throw Error(r(349));y||(zr&124)!==0||Gv(d,i,o)}return o}function Gv(s,i,o){s.flags|=16384,s={getSnapshot:i,value:o},i=$e.updateQueue,i===null?(i=$h(),$e.updateQueue=i,i.stores=[s]):(o=i.stores,o===null?i.stores=[s]:o.push(s))}function Yv(s,i,o,d){i.value=o,i.getSnapshot=d,Xv(i)&&Zv(s)}function Kv(s,i,o){return o(function(){Xv(i)&&Zv(s)})}function Xv(s){var i=s.getSnapshot;s=s.value;try{var o=i();return!In(s,o)}catch{return!0}}function Zv(s){var i=Aa(s,2);i!==null&&Gn(i,s,2)}function Xh(s){var i=Rn();if(typeof s=="function"){var o=s;if(s=o(),Li){Ve(!0);try{o()}finally{Ve(!1)}}}return i.memoizedState=i.baseState=s,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:lr,lastRenderedState:s},i}function Qv(s,i,o,d){return s.baseState=o,Yh(s,ut,typeof d=="function"?d:lr)}function zR(s,i,o,d,m){if(gu(s))throw Error(r(485));if(s=i.action,s!==null){var y={payload:m,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){y.listeners.push(T)}};P.T!==null?o(!0):y.isTransition=!1,d(y),o=i.pending,o===null?(y.next=i.pending=y,Wv(i,y)):(y.next=o.next,i.pending=o.next=y)}}function Wv(s,i){var o=i.action,d=i.payload,m=s.state;if(i.isTransition){var y=P.T,T={};P.T=T;try{var A=o(m,d),z=P.S;z!==null&&z(T,A),Jv(s,i,A)}catch(G){Zh(s,i,G)}finally{P.T=y}}else try{y=o(m,d),Jv(s,i,y)}catch(G){Zh(s,i,G)}}function Jv(s,i,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(d){eb(s,i,d)},function(d){return Zh(s,i,d)}):eb(s,i,o)}function eb(s,i,o){i.status="fulfilled",i.value=o,tb(i),s.state=o,i=s.pending,i!==null&&(o=i.next,o===i?s.pending=null:(o=o.next,i.next=o,Wv(s,o)))}function Zh(s,i,o){var d=s.pending;if(s.pending=null,d!==null){d=d.next;do i.status="rejected",i.reason=o,tb(i),i=i.next;while(i!==d)}s.action=null}function tb(s){s=s.listeners;for(var i=0;i<s.length;i++)(0,s[i])()}function nb(s,i){return i}function sb(s,i){if(rt){var o=yt.formState;if(o!==null){e:{var d=$e;if(rt){if(Et){t:{for(var m=Et,y=Vs;m.nodeType!==8;){if(!y){m=null;break t}if(m=vs(m.nextSibling),m===null){m=null;break t}}y=m.data,m=y==="F!"||y==="F"?m:null}if(m){Et=vs(m.nextSibling),d=m.data==="F!";break e}}Oi(d)}d=!1}d&&(i=o[0])}}return o=Rn(),o.memoizedState=o.baseState=i,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nb,lastRenderedState:i},o.queue=d,o=Sb.bind(null,$e,d),d.dispatch=o,d=Xh(!1),y=tm.bind(null,$e,!1,d.queue),d=Rn(),m={state:i,dispatch:null,action:s,pending:null},d.queue=m,o=zR.bind(null,$e,m,y,o),m.dispatch=o,d.memoizedState=s,[i,o,!1]}function rb(s){var i=Dt();return ib(i,ut,s)}function ib(s,i,o){if(i=Yh(s,i,nb)[0],s=hu(lr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var d=ul(i)}catch(T){throw T===rl?ou:T}else d=i;i=Dt();var m=i.queue,y=m.dispatch;return o!==i.memoizedState&&($e.flags|=2048,Pa(9,mu(),LR.bind(null,m,o),null)),[d,y,s]}function LR(s,i){s.action=i}function ab(s){var i=Dt(),o=ut;if(o!==null)return ib(i,o,s);Dt(),i=i.memoizedState,o=Dt();var d=o.queue.dispatch;return o.memoizedState=s,[i,d,!1]}function Pa(s,i,o,d){return s={tag:s,create:o,deps:d,inst:i,next:null},i=$e.updateQueue,i===null&&(i=$h(),$e.updateQueue=i),o=i.lastEffect,o===null?i.lastEffect=s.next=s:(d=o.next,o.next=s,s.next=d,i.lastEffect=s),s}function mu(){return{destroy:void 0,resource:void 0}}function ob(){return Dt().memoizedState}function pu(s,i,o,d){var m=Rn();d=d===void 0?null:d,$e.flags|=s,m.memoizedState=Pa(1|i,mu(),o,d)}function dl(s,i,o,d){var m=Dt();d=d===void 0?null:d;var y=m.memoizedState.inst;ut!==null&&d!==null&&Ih(d,ut.memoizedState.deps)?m.memoizedState=Pa(i,y,o,d):($e.flags|=s,m.memoizedState=Pa(1|i,y,o,d))}function lb(s,i){pu(8390656,8,s,i)}function cb(s,i){dl(2048,8,s,i)}function ub(s,i){return dl(4,2,s,i)}function db(s,i){return dl(4,4,s,i)}function fb(s,i){if(typeof i=="function"){s=s();var o=i(s);return function(){typeof o=="function"?o():i(null)}}if(i!=null)return s=s(),i.current=s,function(){i.current=null}}function hb(s,i,o){o=o!=null?o.concat([s]):null,dl(4,4,fb.bind(null,i,s),o)}function Qh(){}function mb(s,i){var o=Dt();i=i===void 0?null:i;var d=o.memoizedState;return i!==null&&Ih(i,d[1])?d[0]:(o.memoizedState=[s,i],s)}function pb(s,i){var o=Dt();i=i===void 0?null:i;var d=o.memoizedState;if(i!==null&&Ih(i,d[1]))return d[0];if(d=s(),Li){Ve(!0);try{s()}finally{Ve(!1)}}return o.memoizedState=[d,i],d}function Wh(s,i,o){return o===void 0||(zr&1073741824)!==0?s.memoizedState=i:(s.memoizedState=o,s=x0(),$e.lanes|=s,Br|=s,o)}function gb(s,i,o,d){return In(o,i)?o:za.current!==null?(s=Wh(s,o,d),In(s,i)||(Xt=!0),s):(zr&42)===0?(Xt=!0,s.memoizedState=o):(s=x0(),$e.lanes|=s,Br|=s,i)}function yb(s,i,o,d,m){var y=Y.p;Y.p=y!==0&&8>y?y:8;var T=P.T,A={};P.T=A,tm(s,!1,i,o);try{var z=m(),G=P.S;if(G!==null&&G(A,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var re=OR(z,d);fl(s,i,re,$n(s))}else fl(s,i,d,$n(s))}catch(ae){fl(s,i,{then:function(){},status:"rejected",reason:ae},$n())}finally{Y.p=y,P.T=T}}function VR(){}function Jh(s,i,o,d){if(s.tag!==5)throw Error(r(476));var m=xb(s).queue;yb(s,m,i,Z,o===null?VR:function(){return vb(s),o(d)})}function xb(s){var i=s.memoizedState;if(i!==null)return i;i={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lr,lastRenderedState:Z},next:null};var o={};return i.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:lr,lastRenderedState:o},next:null},s.memoizedState=i,s=s.alternate,s!==null&&(s.memoizedState=i),i}function vb(s){var i=xb(s).next.queue;fl(s,i,{},$n())}function em(){return un(Rl)}function bb(){return Dt().memoizedState}function wb(){return Dt().memoizedState}function PR(s){for(var i=s.return;i!==null;){switch(i.tag){case 24:case 3:var o=$n();s=Dr(o);var d=Mr(i,s,o);d!==null&&(Gn(d,i,o),al(d,i,o)),i={cache:Rh()},s.payload=i;return}i=i.return}}function UR(s,i,o){var d=$n();o={lane:d,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},gu(s)?jb(i,o):(o=bh(s,i,o,d),o!==null&&(Gn(o,s,d),Nb(o,i,d)))}function Sb(s,i,o){var d=$n();fl(s,i,o,d)}function fl(s,i,o,d){var m={lane:d,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(gu(s))jb(i,m);else{var y=s.alternate;if(s.lanes===0&&(y===null||y.lanes===0)&&(y=i.lastRenderedReducer,y!==null))try{var T=i.lastRenderedState,A=y(T,o);if(m.hasEagerState=!0,m.eagerState=A,In(A,T))return Jc(s,i,m,0),yt===null&&Wc(),!1}catch{}if(o=bh(s,i,m,d),o!==null)return Gn(o,s,d),Nb(o,i,d),!0}return!1}function tm(s,i,o,d){if(d={lane:2,revertLane:Dm(),action:d,hasEagerState:!1,eagerState:null,next:null},gu(s)){if(i)throw Error(r(479))}else i=bh(s,o,d,2),i!==null&&Gn(i,s,2)}function gu(s){var i=s.alternate;return s===$e||i!==null&&i===$e}function jb(s,i){La=uu=!0;var o=s.pending;o===null?i.next=i:(i.next=o.next,o.next=i),s.pending=i}function Nb(s,i,o){if((o&4194048)!==0){var d=i.lanes;d&=s.pendingLanes,o|=d,i.lanes=o,gs(s,o)}}var yu={readContext:un,use:fu,useCallback:At,useContext:At,useEffect:At,useImperativeHandle:At,useLayoutEffect:At,useInsertionEffect:At,useMemo:At,useReducer:At,useRef:At,useState:At,useDebugValue:At,useDeferredValue:At,useTransition:At,useSyncExternalStore:At,useId:At,useHostTransitionStatus:At,useFormState:At,useActionState:At,useOptimistic:At,useMemoCache:At,useCacheRefresh:At},Tb={readContext:un,use:fu,useCallback:function(s,i){return Rn().memoizedState=[s,i===void 0?null:i],s},useContext:un,useEffect:lb,useImperativeHandle:function(s,i,o){o=o!=null?o.concat([s]):null,pu(4194308,4,fb.bind(null,i,s),o)},useLayoutEffect:function(s,i){return pu(4194308,4,s,i)},useInsertionEffect:function(s,i){pu(4,2,s,i)},useMemo:function(s,i){var o=Rn();i=i===void 0?null:i;var d=s();if(Li){Ve(!0);try{s()}finally{Ve(!1)}}return o.memoizedState=[d,i],d},useReducer:function(s,i,o){var d=Rn();if(o!==void 0){var m=o(i);if(Li){Ve(!0);try{o(i)}finally{Ve(!1)}}}else m=i;return d.memoizedState=d.baseState=m,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:m},d.queue=s,s=s.dispatch=UR.bind(null,$e,s),[d.memoizedState,s]},useRef:function(s){var i=Rn();return s={current:s},i.memoizedState=s},useState:function(s){s=Xh(s);var i=s.queue,o=Sb.bind(null,$e,i);return i.dispatch=o,[s.memoizedState,o]},useDebugValue:Qh,useDeferredValue:function(s,i){var o=Rn();return Wh(o,s,i)},useTransition:function(){var s=Xh(!1);return s=yb.bind(null,$e,s.queue,!0,!1),Rn().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,i,o){var d=$e,m=Rn();if(rt){if(o===void 0)throw Error(r(407));o=o()}else{if(o=i(),yt===null)throw Error(r(349));(et&124)!==0||Gv(d,i,o)}m.memoizedState=o;var y={value:o,getSnapshot:i};return m.queue=y,lb(Kv.bind(null,d,y,s),[s]),d.flags|=2048,Pa(9,mu(),Yv.bind(null,d,y,o,i),null),o},useId:function(){var s=Rn(),i=yt.identifierPrefix;if(rt){var o=ir,d=rr;o=(d&~(1<<32-Me(d)-1)).toString(32)+o,i="«"+i+"R"+o,o=du++,0<o&&(i+="H"+o.toString(32)),i+="»"}else o=DR++,i="«"+i+"r"+o.toString(32)+"»";return s.memoizedState=i},useHostTransitionStatus:em,useFormState:sb,useActionState:sb,useOptimistic:function(s){var i=Rn();i.memoizedState=i.baseState=s;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=o,i=tm.bind(null,$e,!0,o),o.dispatch=i,[s,i]},useMemoCache:Gh,useCacheRefresh:function(){return Rn().memoizedState=PR.bind(null,$e)}},Eb={readContext:un,use:fu,useCallback:mb,useContext:un,useEffect:cb,useImperativeHandle:hb,useInsertionEffect:ub,useLayoutEffect:db,useMemo:pb,useReducer:hu,useRef:ob,useState:function(){return hu(lr)},useDebugValue:Qh,useDeferredValue:function(s,i){var o=Dt();return gb(o,ut.memoizedState,s,i)},useTransition:function(){var s=hu(lr)[0],i=Dt().memoizedState;return[typeof s=="boolean"?s:ul(s),i]},useSyncExternalStore:$v,useId:bb,useHostTransitionStatus:em,useFormState:rb,useActionState:rb,useOptimistic:function(s,i){var o=Dt();return Qv(o,ut,s,i)},useMemoCache:Gh,useCacheRefresh:wb},IR={readContext:un,use:fu,useCallback:mb,useContext:un,useEffect:cb,useImperativeHandle:hb,useInsertionEffect:ub,useLayoutEffect:db,useMemo:pb,useReducer:Kh,useRef:ob,useState:function(){return Kh(lr)},useDebugValue:Qh,useDeferredValue:function(s,i){var o=Dt();return ut===null?Wh(o,s,i):gb(o,ut.memoizedState,s,i)},useTransition:function(){var s=Kh(lr)[0],i=Dt().memoizedState;return[typeof s=="boolean"?s:ul(s),i]},useSyncExternalStore:$v,useId:bb,useHostTransitionStatus:em,useFormState:ab,useActionState:ab,useOptimistic:function(s,i){var o=Dt();return ut!==null?Qv(o,ut,s,i):(o.baseState=s,[s,o.queue.dispatch])},useMemoCache:Gh,useCacheRefresh:wb},Ua=null,hl=0;function xu(s){var i=hl;return hl+=1,Ua===null&&(Ua=[]),Vv(Ua,s,i)}function ml(s,i){i=i.props.ref,s.ref=i!==void 0?i:null}function vu(s,i){throw i.$$typeof===x?Error(r(525)):(s=Object.prototype.toString.call(i),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":s)))}function Cb(s){var i=s._init;return i(s._payload)}function _b(s){function i(B,U){if(s){var $=B.deletions;$===null?(B.deletions=[U],B.flags|=16):$.push(U)}}function o(B,U){if(!s)return null;for(;U!==null;)i(B,U),U=U.sibling;return null}function d(B){for(var U=new Map;B!==null;)B.key!==null?U.set(B.key,B):U.set(B.index,B),B=B.sibling;return U}function m(B,U){return B=sr(B,U),B.index=0,B.sibling=null,B}function y(B,U,$){return B.index=$,s?($=B.alternate,$!==null?($=$.index,$<U?(B.flags|=67108866,U):$):(B.flags|=67108866,U)):(B.flags|=1048576,U)}function T(B){return s&&B.alternate===null&&(B.flags|=67108866),B}function A(B,U,$,ie){return U===null||U.tag!==6?(U=Sh($,B.mode,ie),U.return=B,U):(U=m(U,$),U.return=B,U)}function z(B,U,$,ie){var Se=$.type;return Se===N?re(B,U,$.props.children,ie,$.key):U!==null&&(U.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===D&&Cb(Se)===U.type)?(U=m(U,$.props),ml(U,$),U.return=B,U):(U=tu($.type,$.key,$.props,null,B.mode,ie),ml(U,$),U.return=B,U)}function G(B,U,$,ie){return U===null||U.tag!==4||U.stateNode.containerInfo!==$.containerInfo||U.stateNode.implementation!==$.implementation?(U=jh($,B.mode,ie),U.return=B,U):(U=m(U,$.children||[]),U.return=B,U)}function re(B,U,$,ie,Se){return U===null||U.tag!==7?(U=_i($,B.mode,ie,Se),U.return=B,U):(U=m(U,$),U.return=B,U)}function ae(B,U,$){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=Sh(""+U,B.mode,$),U.return=B,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case b:return $=tu(U.type,U.key,U.props,null,B.mode,$),ml($,U),$.return=B,$;case w:return U=jh(U,B.mode,$),U.return=B,U;case D:var ie=U._init;return U=ie(U._payload),ae(B,U,$)}if(oe(U)||H(U))return U=_i(U,B.mode,$,null),U.return=B,U;if(typeof U.then=="function")return ae(B,xu(U),$);if(U.$$typeof===E)return ae(B,iu(B,U),$);vu(B,U)}return null}function K(B,U,$,ie){var Se=U!==null?U.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return Se!==null?null:A(B,U,""+$,ie);if(typeof $=="object"&&$!==null){switch($.$$typeof){case b:return $.key===Se?z(B,U,$,ie):null;case w:return $.key===Se?G(B,U,$,ie):null;case D:return Se=$._init,$=Se($._payload),K(B,U,$,ie)}if(oe($)||H($))return Se!==null?null:re(B,U,$,ie,null);if(typeof $.then=="function")return K(B,U,xu($),ie);if($.$$typeof===E)return K(B,U,iu(B,$),ie);vu(B,$)}return null}function X(B,U,$,ie,Se){if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return B=B.get($)||null,A(U,B,""+ie,Se);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case b:return B=B.get(ie.key===null?$:ie.key)||null,z(U,B,ie,Se);case w:return B=B.get(ie.key===null?$:ie.key)||null,G(U,B,ie,Se);case D:var Ye=ie._init;return ie=Ye(ie._payload),X(B,U,$,ie,Se)}if(oe(ie)||H(ie))return B=B.get($)||null,re(U,B,ie,Se,null);if(typeof ie.then=="function")return X(B,U,$,xu(ie),Se);if(ie.$$typeof===E)return X(B,U,$,iu(U,ie),Se);vu(U,ie)}return null}function Le(B,U,$,ie){for(var Se=null,Ye=null,Ae=U,De=U=0,Qt=null;Ae!==null&&De<$.length;De++){Ae.index>De?(Qt=Ae,Ae=null):Qt=Ae.sibling;var nt=K(B,Ae,$[De],ie);if(nt===null){Ae===null&&(Ae=Qt);break}s&&Ae&&nt.alternate===null&&i(B,Ae),U=y(nt,U,De),Ye===null?Se=nt:Ye.sibling=nt,Ye=nt,Ae=Qt}if(De===$.length)return o(B,Ae),rt&&Ri(B,De),Se;if(Ae===null){for(;De<$.length;De++)Ae=ae(B,$[De],ie),Ae!==null&&(U=y(Ae,U,De),Ye===null?Se=Ae:Ye.sibling=Ae,Ye=Ae);return rt&&Ri(B,De),Se}for(Ae=d(Ae);De<$.length;De++)Qt=X(Ae,B,De,$[De],ie),Qt!==null&&(s&&Qt.alternate!==null&&Ae.delete(Qt.key===null?De:Qt.key),U=y(Qt,U,De),Ye===null?Se=Qt:Ye.sibling=Qt,Ye=Qt);return s&&Ae.forEach(function(Qr){return i(B,Qr)}),rt&&Ri(B,De),Se}function ke(B,U,$,ie){if($==null)throw Error(r(151));for(var Se=null,Ye=null,Ae=U,De=U=0,Qt=null,nt=$.next();Ae!==null&&!nt.done;De++,nt=$.next()){Ae.index>De?(Qt=Ae,Ae=null):Qt=Ae.sibling;var Qr=K(B,Ae,nt.value,ie);if(Qr===null){Ae===null&&(Ae=Qt);break}s&&Ae&&Qr.alternate===null&&i(B,Ae),U=y(Qr,U,De),Ye===null?Se=Qr:Ye.sibling=Qr,Ye=Qr,Ae=Qt}if(nt.done)return o(B,Ae),rt&&Ri(B,De),Se;if(Ae===null){for(;!nt.done;De++,nt=$.next())nt=ae(B,nt.value,ie),nt!==null&&(U=y(nt,U,De),Ye===null?Se=nt:Ye.sibling=nt,Ye=nt);return rt&&Ri(B,De),Se}for(Ae=d(Ae);!nt.done;De++,nt=$.next())nt=X(Ae,B,De,nt.value,ie),nt!==null&&(s&&nt.alternate!==null&&Ae.delete(nt.key===null?De:nt.key),U=y(nt,U,De),Ye===null?Se=nt:Ye.sibling=nt,Ye=nt);return s&&Ae.forEach(function(F4){return i(B,F4)}),rt&&Ri(B,De),Se}function ft(B,U,$,ie){if(typeof $=="object"&&$!==null&&$.type===N&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case b:e:{for(var Se=$.key;U!==null;){if(U.key===Se){if(Se=$.type,Se===N){if(U.tag===7){o(B,U.sibling),ie=m(U,$.props.children),ie.return=B,B=ie;break e}}else if(U.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===D&&Cb(Se)===U.type){o(B,U.sibling),ie=m(U,$.props),ml(ie,$),ie.return=B,B=ie;break e}o(B,U);break}else i(B,U);U=U.sibling}$.type===N?(ie=_i($.props.children,B.mode,ie,$.key),ie.return=B,B=ie):(ie=tu($.type,$.key,$.props,null,B.mode,ie),ml(ie,$),ie.return=B,B=ie)}return T(B);case w:e:{for(Se=$.key;U!==null;){if(U.key===Se)if(U.tag===4&&U.stateNode.containerInfo===$.containerInfo&&U.stateNode.implementation===$.implementation){o(B,U.sibling),ie=m(U,$.children||[]),ie.return=B,B=ie;break e}else{o(B,U);break}else i(B,U);U=U.sibling}ie=jh($,B.mode,ie),ie.return=B,B=ie}return T(B);case D:return Se=$._init,$=Se($._payload),ft(B,U,$,ie)}if(oe($))return Le(B,U,$,ie);if(H($)){if(Se=H($),typeof Se!="function")throw Error(r(150));return $=Se.call($),ke(B,U,$,ie)}if(typeof $.then=="function")return ft(B,U,xu($),ie);if($.$$typeof===E)return ft(B,U,iu(B,$),ie);vu(B,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,U!==null&&U.tag===6?(o(B,U.sibling),ie=m(U,$),ie.return=B,B=ie):(o(B,U),ie=Sh($,B.mode,ie),ie.return=B,B=ie),T(B)):o(B,U)}return function(B,U,$,ie){try{hl=0;var Se=ft(B,U,$,ie);return Ua=null,Se}catch(Ae){if(Ae===rl||Ae===ou)throw Ae;var Ye=Fn(29,Ae,null,B.mode);return Ye.lanes=ie,Ye.return=B,Ye}}}var Ia=_b(!0),Ab=_b(!1),os=I(null),Ps=null;function Lr(s){var i=s.alternate;se(Ft,Ft.current&1),se(os,s),Ps===null&&(i===null||za.current!==null||i.memoizedState!==null)&&(Ps=s)}function Rb(s){if(s.tag===22){if(se(Ft,Ft.current),se(os,s),Ps===null){var i=s.alternate;i!==null&&i.memoizedState!==null&&(Ps=s)}}else Vr()}function Vr(){se(Ft,Ft.current),se(os,os.current)}function cr(s){J(os),Ps===s&&(Ps=null),J(Ft)}var Ft=I(0);function bu(s){for(var i=s;i!==null;){if(i.tag===13){var o=i.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||$m(o)))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}function nm(s,i,o,d){i=s.memoizedState,o=o(d,i),o=o==null?i:g({},i,o),s.memoizedState=o,s.lanes===0&&(s.updateQueue.baseState=o)}var sm={enqueueSetState:function(s,i,o){s=s._reactInternals;var d=$n(),m=Dr(d);m.payload=i,o!=null&&(m.callback=o),i=Mr(s,m,d),i!==null&&(Gn(i,s,d),al(i,s,d))},enqueueReplaceState:function(s,i,o){s=s._reactInternals;var d=$n(),m=Dr(d);m.tag=1,m.payload=i,o!=null&&(m.callback=o),i=Mr(s,m,d),i!==null&&(Gn(i,s,d),al(i,s,d))},enqueueForceUpdate:function(s,i){s=s._reactInternals;var o=$n(),d=Dr(o);d.tag=2,i!=null&&(d.callback=i),i=Mr(s,d,o),i!==null&&(Gn(i,s,o),al(i,s,o))}};function kb(s,i,o,d,m,y,T){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(d,y,T):i.prototype&&i.prototype.isPureReactComponent?!Zo(o,d)||!Zo(m,y):!0}function Ob(s,i,o,d){s=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(o,d),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(o,d),i.state!==s&&sm.enqueueReplaceState(i,i.state,null)}function Vi(s,i){var o=i;if("ref"in i){o={};for(var d in i)d!=="ref"&&(o[d]=i[d])}if(s=s.defaultProps){o===i&&(o=g({},o));for(var m in s)o[m]===void 0&&(o[m]=s[m])}return o}var wu=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function Db(s){wu(s)}function Mb(s){console.error(s)}function zb(s){wu(s)}function Su(s,i){try{var o=s.onUncaughtError;o(i.value,{componentStack:i.stack})}catch(d){setTimeout(function(){throw d})}}function Lb(s,i,o){try{var d=s.onCaughtError;d(o.value,{componentStack:o.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function rm(s,i,o){return o=Dr(o),o.tag=3,o.payload={element:null},o.callback=function(){Su(s,i)},o}function Vb(s){return s=Dr(s),s.tag=3,s}function Pb(s,i,o,d){var m=o.type.getDerivedStateFromError;if(typeof m=="function"){var y=d.value;s.payload=function(){return m(y)},s.callback=function(){Lb(i,o,d)}}var T=o.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(s.callback=function(){Lb(i,o,d),typeof m!="function"&&(Hr===null?Hr=new Set([this]):Hr.add(this));var A=d.stack;this.componentDidCatch(d.value,{componentStack:A!==null?A:""})})}function FR(s,i,o,d,m){if(o.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(i=o.alternate,i!==null&&tl(i,o,m,!0),o=os.current,o!==null){switch(o.tag){case 13:return Ps===null?_m():o.alternate===null&&Ct===0&&(Ct=3),o.flags&=-257,o.flags|=65536,o.lanes=m,d===Dh?o.flags|=16384:(i=o.updateQueue,i===null?o.updateQueue=new Set([d]):i.add(d),Rm(s,d,m)),!1;case 22:return o.flags|=65536,d===Dh?o.flags|=16384:(i=o.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([d])},o.updateQueue=i):(o=i.retryQueue,o===null?i.retryQueue=new Set([d]):o.add(d)),Rm(s,d,m)),!1}throw Error(r(435,o.tag))}return Rm(s,d,m),_m(),!1}if(rt)return i=os.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=m,d!==Eh&&(s=Error(r(422),{cause:d}),el(ss(s,o)))):(d!==Eh&&(i=Error(r(423),{cause:d}),el(ss(i,o))),s=s.current.alternate,s.flags|=65536,m&=-m,s.lanes|=m,d=ss(d,o),m=rm(s.stateNode,d,m),Lh(s,m),Ct!==4&&(Ct=2)),!1;var y=Error(r(520),{cause:d});if(y=ss(y,o),wl===null?wl=[y]:wl.push(y),Ct!==4&&(Ct=2),i===null)return!0;d=ss(d,o),o=i;do{switch(o.tag){case 3:return o.flags|=65536,s=m&-m,o.lanes|=s,s=rm(o.stateNode,d,s),Lh(o,s),!1;case 1:if(i=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Hr===null||!Hr.has(y))))return o.flags|=65536,m&=-m,o.lanes|=m,m=Vb(m),Pb(m,s,o,d),Lh(o,m),!1}o=o.return}while(o!==null);return!1}var Ub=Error(r(461)),Xt=!1;function tn(s,i,o,d){i.child=s===null?Ab(i,null,o,d):Ia(i,s.child,o,d)}function Ib(s,i,o,d,m){o=o.render;var y=i.ref;if("ref"in d){var T={};for(var A in d)A!=="ref"&&(T[A]=d[A])}else T=d;return Mi(i),d=Fh(s,i,o,T,y,m),A=Bh(),s!==null&&!Xt?(Hh(s,i,m),ur(s,i,m)):(rt&&A&&Nh(i),i.flags|=1,tn(s,i,d,m),i.child)}function Fb(s,i,o,d,m){if(s===null){var y=o.type;return typeof y=="function"&&!wh(y)&&y.defaultProps===void 0&&o.compare===null?(i.tag=15,i.type=y,Bb(s,i,y,d,m)):(s=tu(o.type,null,d,i,i.mode,m),s.ref=i.ref,s.return=i,i.child=s)}if(y=s.child,!fm(s,m)){var T=y.memoizedProps;if(o=o.compare,o=o!==null?o:Zo,o(T,d)&&s.ref===i.ref)return ur(s,i,m)}return i.flags|=1,s=sr(y,d),s.ref=i.ref,s.return=i,i.child=s}function Bb(s,i,o,d,m){if(s!==null){var y=s.memoizedProps;if(Zo(y,d)&&s.ref===i.ref)if(Xt=!1,i.pendingProps=d=y,fm(s,m))(s.flags&131072)!==0&&(Xt=!0);else return i.lanes=s.lanes,ur(s,i,m)}return im(s,i,o,d,m)}function Hb(s,i,o){var d=i.pendingProps,m=d.children,y=s!==null?s.memoizedState:null;if(d.mode==="hidden"){if((i.flags&128)!==0){if(d=y!==null?y.baseLanes|o:o,s!==null){for(m=i.child=s.child,y=0;m!==null;)y=y|m.lanes|m.childLanes,m=m.sibling;i.childLanes=y&~d}else i.childLanes=0,i.child=null;return qb(s,i,d,o)}if((o&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},s!==null&&au(i,y!==null?y.cachePool:null),y!==null?Bv(i,y):Ph(),Rb(i);else return i.lanes=i.childLanes=536870912,qb(s,i,y!==null?y.baseLanes|o:o,o)}else y!==null?(au(i,y.cachePool),Bv(i,y),Vr(),i.memoizedState=null):(s!==null&&au(i,null),Ph(),Vr());return tn(s,i,m,o),i.child}function qb(s,i,o,d){var m=Oh();return m=m===null?null:{parent:It._currentValue,pool:m},i.memoizedState={baseLanes:o,cachePool:m},s!==null&&au(i,null),Ph(),Rb(i),s!==null&&tl(s,i,d,!0),null}function ju(s,i){var o=i.ref;if(o===null)s!==null&&s.ref!==null&&(i.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(r(284));(s===null||s.ref!==o)&&(i.flags|=4194816)}}function im(s,i,o,d,m){return Mi(i),o=Fh(s,i,o,d,void 0,m),d=Bh(),s!==null&&!Xt?(Hh(s,i,m),ur(s,i,m)):(rt&&d&&Nh(i),i.flags|=1,tn(s,i,o,m),i.child)}function $b(s,i,o,d,m,y){return Mi(i),i.updateQueue=null,o=qv(i,d,o,m),Hv(s),d=Bh(),s!==null&&!Xt?(Hh(s,i,y),ur(s,i,y)):(rt&&d&&Nh(i),i.flags|=1,tn(s,i,o,y),i.child)}function Gb(s,i,o,d,m){if(Mi(i),i.stateNode===null){var y=Ra,T=o.contextType;typeof T=="object"&&T!==null&&(y=un(T)),y=new o(d,y),i.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=sm,i.stateNode=y,y._reactInternals=i,y=i.stateNode,y.props=d,y.state=i.memoizedState,y.refs={},Mh(i),T=o.contextType,y.context=typeof T=="object"&&T!==null?un(T):Ra,y.state=i.memoizedState,T=o.getDerivedStateFromProps,typeof T=="function"&&(nm(i,o,T,d),y.state=i.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(T=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),T!==y.state&&sm.enqueueReplaceState(y,y.state,null),ll(i,d,y,m),ol(),y.state=i.memoizedState),typeof y.componentDidMount=="function"&&(i.flags|=4194308),d=!0}else if(s===null){y=i.stateNode;var A=i.memoizedProps,z=Vi(o,A);y.props=z;var G=y.context,re=o.contextType;T=Ra,typeof re=="object"&&re!==null&&(T=un(re));var ae=o.getDerivedStateFromProps;re=typeof ae=="function"||typeof y.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,re||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(A||G!==T)&&Ob(i,y,d,T),Or=!1;var K=i.memoizedState;y.state=K,ll(i,d,y,m),ol(),G=i.memoizedState,A||K!==G||Or?(typeof ae=="function"&&(nm(i,o,ae,d),G=i.memoizedState),(z=Or||kb(i,o,z,d,K,G,T))?(re||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(i.flags|=4194308)):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=d,i.memoizedState=G),y.props=d,y.state=G,y.context=T,d=z):(typeof y.componentDidMount=="function"&&(i.flags|=4194308),d=!1)}else{y=i.stateNode,zh(s,i),T=i.memoizedProps,re=Vi(o,T),y.props=re,ae=i.pendingProps,K=y.context,G=o.contextType,z=Ra,typeof G=="object"&&G!==null&&(z=un(G)),A=o.getDerivedStateFromProps,(G=typeof A=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(T!==ae||K!==z)&&Ob(i,y,d,z),Or=!1,K=i.memoizedState,y.state=K,ll(i,d,y,m),ol();var X=i.memoizedState;T!==ae||K!==X||Or||s!==null&&s.dependencies!==null&&ru(s.dependencies)?(typeof A=="function"&&(nm(i,o,A,d),X=i.memoizedState),(re=Or||kb(i,o,re,d,K,X,z)||s!==null&&s.dependencies!==null&&ru(s.dependencies))?(G||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(d,X,z),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(d,X,z)),typeof y.componentDidUpdate=="function"&&(i.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof y.componentDidUpdate!="function"||T===s.memoizedProps&&K===s.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||T===s.memoizedProps&&K===s.memoizedState||(i.flags|=1024),i.memoizedProps=d,i.memoizedState=X),y.props=d,y.state=X,y.context=z,d=re):(typeof y.componentDidUpdate!="function"||T===s.memoizedProps&&K===s.memoizedState||(i.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||T===s.memoizedProps&&K===s.memoizedState||(i.flags|=1024),d=!1)}return y=d,ju(s,i),d=(i.flags&128)!==0,y||d?(y=i.stateNode,o=d&&typeof o.getDerivedStateFromError!="function"?null:y.render(),i.flags|=1,s!==null&&d?(i.child=Ia(i,s.child,null,m),i.child=Ia(i,null,o,m)):tn(s,i,o,m),i.memoizedState=y.state,s=i.child):s=ur(s,i,m),s}function Yb(s,i,o,d){return Jo(),i.flags|=256,tn(s,i,o,d),i.child}var am={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function om(s){return{baseLanes:s,cachePool:Mv()}}function lm(s,i,o){return s=s!==null?s.childLanes&~o:0,i&&(s|=ls),s}function Kb(s,i,o){var d=i.pendingProps,m=!1,y=(i.flags&128)!==0,T;if((T=y)||(T=s!==null&&s.memoizedState===null?!1:(Ft.current&2)!==0),T&&(m=!0,i.flags&=-129),T=(i.flags&32)!==0,i.flags&=-33,s===null){if(rt){if(m?Lr(i):Vr(),rt){var A=Et,z;if(z=A){e:{for(z=A,A=Vs;z.nodeType!==8;){if(!A){A=null;break e}if(z=vs(z.nextSibling),z===null){A=null;break e}}A=z}A!==null?(i.memoizedState={dehydrated:A,treeContext:Ai!==null?{id:rr,overflow:ir}:null,retryLane:536870912,hydrationErrors:null},z=Fn(18,null,null,0),z.stateNode=A,z.return=i,i.child=z,xn=i,Et=null,z=!0):z=!1}z||Oi(i)}if(A=i.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return $m(A)?i.lanes=32:i.lanes=536870912,null;cr(i)}return A=d.children,d=d.fallback,m?(Vr(),m=i.mode,A=Nu({mode:"hidden",children:A},m),d=_i(d,m,o,null),A.return=i,d.return=i,A.sibling=d,i.child=A,m=i.child,m.memoizedState=om(o),m.childLanes=lm(s,T,o),i.memoizedState=am,d):(Lr(i),cm(i,A))}if(z=s.memoizedState,z!==null&&(A=z.dehydrated,A!==null)){if(y)i.flags&256?(Lr(i),i.flags&=-257,i=um(s,i,o)):i.memoizedState!==null?(Vr(),i.child=s.child,i.flags|=128,i=null):(Vr(),m=d.fallback,A=i.mode,d=Nu({mode:"visible",children:d.children},A),m=_i(m,A,o,null),m.flags|=2,d.return=i,m.return=i,d.sibling=m,i.child=d,Ia(i,s.child,null,o),d=i.child,d.memoizedState=om(o),d.childLanes=lm(s,T,o),i.memoizedState=am,i=m);else if(Lr(i),$m(A)){if(T=A.nextSibling&&A.nextSibling.dataset,T)var G=T.dgst;T=G,d=Error(r(419)),d.stack="",d.digest=T,el({value:d,source:null,stack:null}),i=um(s,i,o)}else if(Xt||tl(s,i,o,!1),T=(o&s.childLanes)!==0,Xt||T){if(T=yt,T!==null&&(d=o&-o,d=(d&42)!==0?1:ln(d),d=(d&(T.suspendedLanes|o))!==0?0:d,d!==0&&d!==z.retryLane))throw z.retryLane=d,Aa(s,d),Gn(T,s,d),Ub;A.data==="$?"||_m(),i=um(s,i,o)}else A.data==="$?"?(i.flags|=192,i.child=s.child,i=null):(s=z.treeContext,Et=vs(A.nextSibling),xn=i,rt=!0,ki=null,Vs=!1,s!==null&&(is[as++]=rr,is[as++]=ir,is[as++]=Ai,rr=s.id,ir=s.overflow,Ai=i),i=cm(i,d.children),i.flags|=4096);return i}return m?(Vr(),m=d.fallback,A=i.mode,z=s.child,G=z.sibling,d=sr(z,{mode:"hidden",children:d.children}),d.subtreeFlags=z.subtreeFlags&65011712,G!==null?m=sr(G,m):(m=_i(m,A,o,null),m.flags|=2),m.return=i,d.return=i,d.sibling=m,i.child=d,d=m,m=i.child,A=s.child.memoizedState,A===null?A=om(o):(z=A.cachePool,z!==null?(G=It._currentValue,z=z.parent!==G?{parent:G,pool:G}:z):z=Mv(),A={baseLanes:A.baseLanes|o,cachePool:z}),m.memoizedState=A,m.childLanes=lm(s,T,o),i.memoizedState=am,d):(Lr(i),o=s.child,s=o.sibling,o=sr(o,{mode:"visible",children:d.children}),o.return=i,o.sibling=null,s!==null&&(T=i.deletions,T===null?(i.deletions=[s],i.flags|=16):T.push(s)),i.child=o,i.memoizedState=null,o)}function cm(s,i){return i=Nu({mode:"visible",children:i},s.mode),i.return=s,s.child=i}function Nu(s,i){return s=Fn(22,s,null,i),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function um(s,i,o){return Ia(i,s.child,null,o),s=cm(i,i.pendingProps.children),s.flags|=2,i.memoizedState=null,s}function Xb(s,i,o){s.lanes|=i;var d=s.alternate;d!==null&&(d.lanes|=i),_h(s.return,i,o)}function dm(s,i,o,d,m){var y=s.memoizedState;y===null?s.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:d,tail:o,tailMode:m}:(y.isBackwards=i,y.rendering=null,y.renderingStartTime=0,y.last=d,y.tail=o,y.tailMode=m)}function Zb(s,i,o){var d=i.pendingProps,m=d.revealOrder,y=d.tail;if(tn(s,i,d.children,o),d=Ft.current,(d&2)!==0)d=d&1|2,i.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=i.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&Xb(s,o,i);else if(s.tag===19)Xb(s,o,i);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===i)break e;for(;s.sibling===null;){if(s.return===null||s.return===i)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}d&=1}switch(se(Ft,d),m){case"forwards":for(o=i.child,m=null;o!==null;)s=o.alternate,s!==null&&bu(s)===null&&(m=o),o=o.sibling;o=m,o===null?(m=i.child,i.child=null):(m=o.sibling,o.sibling=null),dm(i,!1,m,o,y);break;case"backwards":for(o=null,m=i.child,i.child=null;m!==null;){if(s=m.alternate,s!==null&&bu(s)===null){i.child=m;break}s=m.sibling,m.sibling=o,o=m,m=s}dm(i,!0,o,null,y);break;case"together":dm(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function ur(s,i,o){if(s!==null&&(i.dependencies=s.dependencies),Br|=i.lanes,(o&i.childLanes)===0)if(s!==null){if(tl(s,i,o,!1),(o&i.childLanes)===0)return null}else return null;if(s!==null&&i.child!==s.child)throw Error(r(153));if(i.child!==null){for(s=i.child,o=sr(s,s.pendingProps),i.child=o,o.return=i;s.sibling!==null;)s=s.sibling,o=o.sibling=sr(s,s.pendingProps),o.return=i;o.sibling=null}return i.child}function fm(s,i){return(s.lanes&i)!==0?!0:(s=s.dependencies,!!(s!==null&&ru(s)))}function BR(s,i,o){switch(i.tag){case 3:Te(i,i.stateNode.containerInfo),kr(i,It,s.memoizedState.cache),Jo();break;case 27:case 5:we(i);break;case 4:Te(i,i.stateNode.containerInfo);break;case 10:kr(i,i.type,i.memoizedProps.value);break;case 13:var d=i.memoizedState;if(d!==null)return d.dehydrated!==null?(Lr(i),i.flags|=128,null):(o&i.child.childLanes)!==0?Kb(s,i,o):(Lr(i),s=ur(s,i,o),s!==null?s.sibling:null);Lr(i);break;case 19:var m=(s.flags&128)!==0;if(d=(o&i.childLanes)!==0,d||(tl(s,i,o,!1),d=(o&i.childLanes)!==0),m){if(d)return Zb(s,i,o);i.flags|=128}if(m=i.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),se(Ft,Ft.current),d)break;return null;case 22:case 23:return i.lanes=0,Hb(s,i,o);case 24:kr(i,It,s.memoizedState.cache)}return ur(s,i,o)}function Qb(s,i,o){if(s!==null)if(s.memoizedProps!==i.pendingProps)Xt=!0;else{if(!fm(s,o)&&(i.flags&128)===0)return Xt=!1,BR(s,i,o);Xt=(s.flags&131072)!==0}else Xt=!1,rt&&(i.flags&1048576)!==0&&Cv(i,su,i.index);switch(i.lanes=0,i.tag){case 16:e:{s=i.pendingProps;var d=i.elementType,m=d._init;if(d=m(d._payload),i.type=d,typeof d=="function")wh(d)?(s=Vi(d,s),i.tag=1,i=Gb(null,i,d,s,o)):(i.tag=0,i=im(null,i,d,s,o));else{if(d!=null){if(m=d.$$typeof,m===R){i.tag=11,i=Ib(null,i,d,s,o);break e}else if(m===V){i.tag=14,i=Fb(null,i,d,s,o);break e}}throw i=te(d)||d,Error(r(306,i,""))}}return i;case 0:return im(s,i,i.type,i.pendingProps,o);case 1:return d=i.type,m=Vi(d,i.pendingProps),Gb(s,i,d,m,o);case 3:e:{if(Te(i,i.stateNode.containerInfo),s===null)throw Error(r(387));d=i.pendingProps;var y=i.memoizedState;m=y.element,zh(s,i),ll(i,d,null,o);var T=i.memoizedState;if(d=T.cache,kr(i,It,d),d!==y.cache&&Ah(i,[It],o,!0),ol(),d=T.element,y.isDehydrated)if(y={element:d,isDehydrated:!1,cache:T.cache},i.updateQueue.baseState=y,i.memoizedState=y,i.flags&256){i=Yb(s,i,d,o);break e}else if(d!==m){m=ss(Error(r(424)),i),el(m),i=Yb(s,i,d,o);break e}else for(s=i.stateNode.containerInfo,s.nodeType===9?s=s.body:s=s.nodeName==="HTML"?s.ownerDocument.body:s,Et=vs(s.firstChild),xn=i,rt=!0,ki=null,Vs=!0,o=Ab(i,null,d,o),i.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(Jo(),d===m){i=ur(s,i,o);break e}tn(s,i,d,o)}i=i.child}return i;case 26:return ju(s,i),s===null?(o=tw(i.type,null,i.pendingProps,null))?i.memoizedState=o:rt||(o=i.type,s=i.pendingProps,d=Pu(de.current).createElement(o),d[xt]=i,d[vt]=s,sn(d,o,s),Kt(d),i.stateNode=d):i.memoizedState=tw(i.type,s.memoizedProps,i.pendingProps,s.memoizedState),null;case 27:return we(i),s===null&&rt&&(d=i.stateNode=W0(i.type,i.pendingProps,de.current),xn=i,Vs=!0,m=Et,Gr(i.type)?(Gm=m,Et=vs(d.firstChild)):Et=m),tn(s,i,i.pendingProps.children,o),ju(s,i),s===null&&(i.flags|=4194304),i.child;case 5:return s===null&&rt&&((m=d=Et)&&(d=g4(d,i.type,i.pendingProps,Vs),d!==null?(i.stateNode=d,xn=i,Et=vs(d.firstChild),Vs=!1,m=!0):m=!1),m||Oi(i)),we(i),m=i.type,y=i.pendingProps,T=s!==null?s.memoizedProps:null,d=y.children,Bm(m,y)?d=null:T!==null&&Bm(m,T)&&(i.flags|=32),i.memoizedState!==null&&(m=Fh(s,i,MR,null,null,o),Rl._currentValue=m),ju(s,i),tn(s,i,d,o),i.child;case 6:return s===null&&rt&&((s=o=Et)&&(o=y4(o,i.pendingProps,Vs),o!==null?(i.stateNode=o,xn=i,Et=null,s=!0):s=!1),s||Oi(i)),null;case 13:return Kb(s,i,o);case 4:return Te(i,i.stateNode.containerInfo),d=i.pendingProps,s===null?i.child=Ia(i,null,d,o):tn(s,i,d,o),i.child;case 11:return Ib(s,i,i.type,i.pendingProps,o);case 7:return tn(s,i,i.pendingProps,o),i.child;case 8:return tn(s,i,i.pendingProps.children,o),i.child;case 12:return tn(s,i,i.pendingProps.children,o),i.child;case 10:return d=i.pendingProps,kr(i,i.type,d.value),tn(s,i,d.children,o),i.child;case 9:return m=i.type._context,d=i.pendingProps.children,Mi(i),m=un(m),d=d(m),i.flags|=1,tn(s,i,d,o),i.child;case 14:return Fb(s,i,i.type,i.pendingProps,o);case 15:return Bb(s,i,i.type,i.pendingProps,o);case 19:return Zb(s,i,o);case 31:return d=i.pendingProps,o=i.mode,d={mode:d.mode,children:d.children},s===null?(o=Nu(d,o),o.ref=i.ref,i.child=o,o.return=i,i=o):(o=sr(s.child,d),o.ref=i.ref,i.child=o,o.return=i,i=o),i;case 22:return Hb(s,i,o);case 24:return Mi(i),d=un(It),s===null?(m=Oh(),m===null&&(m=yt,y=Rh(),m.pooledCache=y,y.refCount++,y!==null&&(m.pooledCacheLanes|=o),m=y),i.memoizedState={parent:d,cache:m},Mh(i),kr(i,It,m)):((s.lanes&o)!==0&&(zh(s,i),ll(i,null,null,o),ol()),m=s.memoizedState,y=i.memoizedState,m.parent!==d?(m={parent:d,cache:d},i.memoizedState=m,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=m),kr(i,It,d)):(d=y.cache,kr(i,It,d),d!==m.cache&&Ah(i,[It],o,!0))),tn(s,i,i.pendingProps.children,o),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function dr(s){s.flags|=4}function Wb(s,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!aw(i)){if(i=os.current,i!==null&&((et&4194048)===et?Ps!==null:(et&62914560)!==et&&(et&536870912)===0||i!==Ps))throw il=Dh,zv;s.flags|=8192}}function Tu(s,i){i!==null&&(s.flags|=4),s.flags&16384&&(i=s.tag!==22?Ic():536870912,s.lanes|=i,qa|=i)}function pl(s,i){if(!rt)switch(s.tailMode){case"hidden":i=s.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?s.tail=null:o.sibling=null;break;case"collapsed":o=s.tail;for(var d=null;o!==null;)o.alternate!==null&&(d=o),o=o.sibling;d===null?i||s.tail===null?s.tail=null:s.tail.sibling=null:d.sibling=null}}function jt(s){var i=s.alternate!==null&&s.alternate.child===s.child,o=0,d=0;if(i)for(var m=s.child;m!==null;)o|=m.lanes|m.childLanes,d|=m.subtreeFlags&65011712,d|=m.flags&65011712,m.return=s,m=m.sibling;else for(m=s.child;m!==null;)o|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=s,m=m.sibling;return s.subtreeFlags|=d,s.childLanes=o,i}function HR(s,i,o){var d=i.pendingProps;switch(Th(i),i.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jt(i),null;case 1:return jt(i),null;case 3:return o=i.stateNode,d=null,s!==null&&(d=s.memoizedState.cache),i.memoizedState.cache!==d&&(i.flags|=2048),or(It),Re(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(s===null||s.child===null)&&(Wo(i)?dr(i):s===null||s.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,Rv())),jt(i),null;case 26:return o=i.memoizedState,s===null?(dr(i),o!==null?(jt(i),Wb(i,o)):(jt(i),i.flags&=-16777217)):o?o!==s.memoizedState?(dr(i),jt(i),Wb(i,o)):(jt(i),i.flags&=-16777217):(s.memoizedProps!==d&&dr(i),jt(i),i.flags&=-16777217),null;case 27:Pe(i),o=de.current;var m=i.type;if(s!==null&&i.stateNode!=null)s.memoizedProps!==d&&dr(i);else{if(!d){if(i.stateNode===null)throw Error(r(166));return jt(i),null}s=ce.current,Wo(i)?_v(i):(s=W0(m,d,o),i.stateNode=s,dr(i))}return jt(i),null;case 5:if(Pe(i),o=i.type,s!==null&&i.stateNode!=null)s.memoizedProps!==d&&dr(i);else{if(!d){if(i.stateNode===null)throw Error(r(166));return jt(i),null}if(s=ce.current,Wo(i))_v(i);else{switch(m=Pu(de.current),s){case 1:s=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:s=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":s=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":s=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":s=m.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof d.is=="string"?m.createElement("select",{is:d.is}):m.createElement("select"),d.multiple?s.multiple=!0:d.size&&(s.size=d.size);break;default:s=typeof d.is=="string"?m.createElement(o,{is:d.is}):m.createElement(o)}}s[xt]=i,s[vt]=d;e:for(m=i.child;m!==null;){if(m.tag===5||m.tag===6)s.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===i)break e;for(;m.sibling===null;){if(m.return===null||m.return===i)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}i.stateNode=s;e:switch(sn(s,o,d),o){case"button":case"input":case"select":case"textarea":s=!!d.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&dr(i)}}return jt(i),i.flags&=-16777217,null;case 6:if(s&&i.stateNode!=null)s.memoizedProps!==d&&dr(i);else{if(typeof d!="string"&&i.stateNode===null)throw Error(r(166));if(s=de.current,Wo(i)){if(s=i.stateNode,o=i.memoizedProps,d=null,m=xn,m!==null)switch(m.tag){case 27:case 5:d=m.memoizedProps}s[xt]=i,s=!!(s.nodeValue===o||d!==null&&d.suppressHydrationWarning===!0||$0(s.nodeValue,o)),s||Oi(i)}else s=Pu(s).createTextNode(d),s[xt]=i,i.stateNode=s}return jt(i),null;case 13:if(d=i.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(m=Wo(i),d!==null&&d.dehydrated!==null){if(s===null){if(!m)throw Error(r(318));if(m=i.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(r(317));m[xt]=i}else Jo(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;jt(i),m=!1}else m=Rv(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=m),m=!0;if(!m)return i.flags&256?(cr(i),i):(cr(i),null)}if(cr(i),(i.flags&128)!==0)return i.lanes=o,i;if(o=d!==null,s=s!==null&&s.memoizedState!==null,o){d=i.child,m=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(m=d.alternate.memoizedState.cachePool.pool);var y=null;d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(y=d.memoizedState.cachePool.pool),y!==m&&(d.flags|=2048)}return o!==s&&o&&(i.child.flags|=8192),Tu(i,i.updateQueue),jt(i),null;case 4:return Re(),s===null&&Vm(i.stateNode.containerInfo),jt(i),null;case 10:return or(i.type),jt(i),null;case 19:if(J(Ft),m=i.memoizedState,m===null)return jt(i),null;if(d=(i.flags&128)!==0,y=m.rendering,y===null)if(d)pl(m,!1);else{if(Ct!==0||s!==null&&(s.flags&128)!==0)for(s=i.child;s!==null;){if(y=bu(s),y!==null){for(i.flags|=128,pl(m,!1),s=y.updateQueue,i.updateQueue=s,Tu(i,s),i.subtreeFlags=0,s=o,o=i.child;o!==null;)Ev(o,s),o=o.sibling;return se(Ft,Ft.current&1|2),i.child}s=s.sibling}m.tail!==null&&Ut()>_u&&(i.flags|=128,d=!0,pl(m,!1),i.lanes=4194304)}else{if(!d)if(s=bu(y),s!==null){if(i.flags|=128,d=!0,s=s.updateQueue,i.updateQueue=s,Tu(i,s),pl(m,!0),m.tail===null&&m.tailMode==="hidden"&&!y.alternate&&!rt)return jt(i),null}else 2*Ut()-m.renderingStartTime>_u&&o!==536870912&&(i.flags|=128,d=!0,pl(m,!1),i.lanes=4194304);m.isBackwards?(y.sibling=i.child,i.child=y):(s=m.last,s!==null?s.sibling=y:i.child=y,m.last=y)}return m.tail!==null?(i=m.tail,m.rendering=i,m.tail=i.sibling,m.renderingStartTime=Ut(),i.sibling=null,s=Ft.current,se(Ft,d?s&1|2:s&1),i):(jt(i),null);case 22:case 23:return cr(i),Uh(),d=i.memoizedState!==null,s!==null?s.memoizedState!==null!==d&&(i.flags|=8192):d&&(i.flags|=8192),d?(o&536870912)!==0&&(i.flags&128)===0&&(jt(i),i.subtreeFlags&6&&(i.flags|=8192)):jt(i),o=i.updateQueue,o!==null&&Tu(i,o.retryQueue),o=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),d=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(d=i.memoizedState.cachePool.pool),d!==o&&(i.flags|=2048),s!==null&&J(zi),null;case 24:return o=null,s!==null&&(o=s.memoizedState.cache),i.memoizedState.cache!==o&&(i.flags|=2048),or(It),jt(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function qR(s,i){switch(Th(i),i.tag){case 1:return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 3:return or(It),Re(),s=i.flags,(s&65536)!==0&&(s&128)===0?(i.flags=s&-65537|128,i):null;case 26:case 27:case 5:return Pe(i),null;case 13:if(cr(i),s=i.memoizedState,s!==null&&s.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Jo()}return s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 19:return J(Ft),null;case 4:return Re(),null;case 10:return or(i.type),null;case 22:case 23:return cr(i),Uh(),s!==null&&J(zi),s=i.flags,s&65536?(i.flags=s&-65537|128,i):null;case 24:return or(It),null;case 25:return null;default:return null}}function Jb(s,i){switch(Th(i),i.tag){case 3:or(It),Re();break;case 26:case 27:case 5:Pe(i);break;case 4:Re();break;case 13:cr(i);break;case 19:J(Ft);break;case 10:or(i.type);break;case 22:case 23:cr(i),Uh(),s!==null&&J(zi);break;case 24:or(It)}}function gl(s,i){try{var o=i.updateQueue,d=o!==null?o.lastEffect:null;if(d!==null){var m=d.next;o=m;do{if((o.tag&s)===s){d=void 0;var y=o.create,T=o.inst;d=y(),T.destroy=d}o=o.next}while(o!==m)}}catch(A){mt(i,i.return,A)}}function Pr(s,i,o){try{var d=i.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var y=m.next;d=y;do{if((d.tag&s)===s){var T=d.inst,A=T.destroy;if(A!==void 0){T.destroy=void 0,m=i;var z=o,G=A;try{G()}catch(re){mt(m,z,re)}}}d=d.next}while(d!==y)}}catch(re){mt(i,i.return,re)}}function e0(s){var i=s.updateQueue;if(i!==null){var o=s.stateNode;try{Fv(i,o)}catch(d){mt(s,s.return,d)}}}function t0(s,i,o){o.props=Vi(s.type,s.memoizedProps),o.state=s.memoizedState;try{o.componentWillUnmount()}catch(d){mt(s,i,d)}}function yl(s,i){try{var o=s.ref;if(o!==null){switch(s.tag){case 26:case 27:case 5:var d=s.stateNode;break;case 30:d=s.stateNode;break;default:d=s.stateNode}typeof o=="function"?s.refCleanup=o(d):o.current=d}}catch(m){mt(s,i,m)}}function Us(s,i){var o=s.ref,d=s.refCleanup;if(o!==null)if(typeof d=="function")try{d()}catch(m){mt(s,i,m)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(m){mt(s,i,m)}else o.current=null}function n0(s){var i=s.type,o=s.memoizedProps,d=s.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":o.autoFocus&&d.focus();break e;case"img":o.src?d.src=o.src:o.srcSet&&(d.srcset=o.srcSet)}}catch(m){mt(s,s.return,m)}}function hm(s,i,o){try{var d=s.stateNode;d4(d,s.type,o,i),d[vt]=i}catch(m){mt(s,s.return,m)}}function s0(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&Gr(s.type)||s.tag===4}function mm(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||s0(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&Gr(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function pm(s,i,o){var d=s.tag;if(d===5||d===6)s=s.stateNode,i?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(s,i):(i=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,i.appendChild(s),o=o._reactRootContainer,o!=null||i.onclick!==null||(i.onclick=Vu));else if(d!==4&&(d===27&&Gr(s.type)&&(o=s.stateNode,i=null),s=s.child,s!==null))for(pm(s,i,o),s=s.sibling;s!==null;)pm(s,i,o),s=s.sibling}function Eu(s,i,o){var d=s.tag;if(d===5||d===6)s=s.stateNode,i?o.insertBefore(s,i):o.appendChild(s);else if(d!==4&&(d===27&&Gr(s.type)&&(o=s.stateNode),s=s.child,s!==null))for(Eu(s,i,o),s=s.sibling;s!==null;)Eu(s,i,o),s=s.sibling}function r0(s){var i=s.stateNode,o=s.memoizedProps;try{for(var d=s.type,m=i.attributes;m.length;)i.removeAttributeNode(m[0]);sn(i,d,o),i[xt]=s,i[vt]=o}catch(y){mt(s,s.return,y)}}var fr=!1,Rt=!1,gm=!1,i0=typeof WeakSet=="function"?WeakSet:Set,Zt=null;function $R(s,i){if(s=s.containerInfo,Im=qu,s=gv(s),mh(s)){if("selectionStart"in s)var o={start:s.selectionStart,end:s.selectionEnd};else e:{o=(o=s.ownerDocument)&&o.defaultView||window;var d=o.getSelection&&o.getSelection();if(d&&d.rangeCount!==0){o=d.anchorNode;var m=d.anchorOffset,y=d.focusNode;d=d.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var T=0,A=-1,z=-1,G=0,re=0,ae=s,K=null;t:for(;;){for(var X;ae!==o||m!==0&&ae.nodeType!==3||(A=T+m),ae!==y||d!==0&&ae.nodeType!==3||(z=T+d),ae.nodeType===3&&(T+=ae.nodeValue.length),(X=ae.firstChild)!==null;)K=ae,ae=X;for(;;){if(ae===s)break t;if(K===o&&++G===m&&(A=T),K===y&&++re===d&&(z=T),(X=ae.nextSibling)!==null)break;ae=K,K=ae.parentNode}ae=X}o=A===-1||z===-1?null:{start:A,end:z}}else o=null}o=o||{start:0,end:0}}else o=null;for(Fm={focusedElem:s,selectionRange:o},qu=!1,Zt=i;Zt!==null;)if(i=Zt,s=i.child,(i.subtreeFlags&1024)!==0&&s!==null)s.return=i,Zt=s;else for(;Zt!==null;){switch(i=Zt,y=i.alternate,s=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&y!==null){s=void 0,o=i,m=y.memoizedProps,y=y.memoizedState,d=o.stateNode;try{var Le=Vi(o.type,m,o.elementType===o.type);s=d.getSnapshotBeforeUpdate(Le,y),d.__reactInternalSnapshotBeforeUpdate=s}catch(ke){mt(o,o.return,ke)}}break;case 3:if((s&1024)!==0){if(s=i.stateNode.containerInfo,o=s.nodeType,o===9)qm(s);else if(o===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":qm(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=i.sibling,s!==null){s.return=i.return,Zt=s;break}Zt=i.return}}function a0(s,i,o){var d=o.flags;switch(o.tag){case 0:case 11:case 15:Ur(s,o),d&4&&gl(5,o);break;case 1:if(Ur(s,o),d&4)if(s=o.stateNode,i===null)try{s.componentDidMount()}catch(T){mt(o,o.return,T)}else{var m=Vi(o.type,i.memoizedProps);i=i.memoizedState;try{s.componentDidUpdate(m,i,s.__reactInternalSnapshotBeforeUpdate)}catch(T){mt(o,o.return,T)}}d&64&&e0(o),d&512&&yl(o,o.return);break;case 3:if(Ur(s,o),d&64&&(s=o.updateQueue,s!==null)){if(i=null,o.child!==null)switch(o.child.tag){case 27:case 5:i=o.child.stateNode;break;case 1:i=o.child.stateNode}try{Fv(s,i)}catch(T){mt(o,o.return,T)}}break;case 27:i===null&&d&4&&r0(o);case 26:case 5:Ur(s,o),i===null&&d&4&&n0(o),d&512&&yl(o,o.return);break;case 12:Ur(s,o);break;case 13:Ur(s,o),d&4&&c0(s,o),d&64&&(s=o.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(o=e4.bind(null,o),x4(s,o))));break;case 22:if(d=o.memoizedState!==null||fr,!d){i=i!==null&&i.memoizedState!==null||Rt,m=fr;var y=Rt;fr=d,(Rt=i)&&!y?Ir(s,o,(o.subtreeFlags&8772)!==0):Ur(s,o),fr=m,Rt=y}break;case 30:break;default:Ur(s,o)}}function o0(s){var i=s.alternate;i!==null&&(s.alternate=null,o0(i)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(i=s.stateNode,i!==null&&Xf(i)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var bt=null,kn=!1;function hr(s,i,o){for(o=o.child;o!==null;)l0(s,i,o),o=o.sibling}function l0(s,i,o){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(ue,o)}catch{}switch(o.tag){case 26:Rt||Us(o,i),hr(s,i,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Rt||Us(o,i);var d=bt,m=kn;Gr(o.type)&&(bt=o.stateNode,kn=!1),hr(s,i,o),El(o.stateNode),bt=d,kn=m;break;case 5:Rt||Us(o,i);case 6:if(d=bt,m=kn,bt=null,hr(s,i,o),bt=d,kn=m,bt!==null)if(kn)try{(bt.nodeType===9?bt.body:bt.nodeName==="HTML"?bt.ownerDocument.body:bt).removeChild(o.stateNode)}catch(y){mt(o,i,y)}else try{bt.removeChild(o.stateNode)}catch(y){mt(o,i,y)}break;case 18:bt!==null&&(kn?(s=bt,Z0(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,o.stateNode),Ml(s)):Z0(bt,o.stateNode));break;case 4:d=bt,m=kn,bt=o.stateNode.containerInfo,kn=!0,hr(s,i,o),bt=d,kn=m;break;case 0:case 11:case 14:case 15:Rt||Pr(2,o,i),Rt||Pr(4,o,i),hr(s,i,o);break;case 1:Rt||(Us(o,i),d=o.stateNode,typeof d.componentWillUnmount=="function"&&t0(o,i,d)),hr(s,i,o);break;case 21:hr(s,i,o);break;case 22:Rt=(d=Rt)||o.memoizedState!==null,hr(s,i,o),Rt=d;break;default:hr(s,i,o)}}function c0(s,i){if(i.memoizedState===null&&(s=i.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Ml(s)}catch(o){mt(i,i.return,o)}}function GR(s){switch(s.tag){case 13:case 19:var i=s.stateNode;return i===null&&(i=s.stateNode=new i0),i;case 22:return s=s.stateNode,i=s._retryCache,i===null&&(i=s._retryCache=new i0),i;default:throw Error(r(435,s.tag))}}function ym(s,i){var o=GR(s);i.forEach(function(d){var m=t4.bind(null,s,d);o.has(d)||(o.add(d),d.then(m,m))})}function Bn(s,i){var o=i.deletions;if(o!==null)for(var d=0;d<o.length;d++){var m=o[d],y=s,T=i,A=T;e:for(;A!==null;){switch(A.tag){case 27:if(Gr(A.type)){bt=A.stateNode,kn=!1;break e}break;case 5:bt=A.stateNode,kn=!1;break e;case 3:case 4:bt=A.stateNode.containerInfo,kn=!0;break e}A=A.return}if(bt===null)throw Error(r(160));l0(y,T,m),bt=null,kn=!1,y=m.alternate,y!==null&&(y.return=null),m.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)u0(i,s),i=i.sibling}var xs=null;function u0(s,i){var o=s.alternate,d=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Bn(i,s),Hn(s),d&4&&(Pr(3,s,s.return),gl(3,s),Pr(5,s,s.return));break;case 1:Bn(i,s),Hn(s),d&512&&(Rt||o===null||Us(o,o.return)),d&64&&fr&&(s=s.updateQueue,s!==null&&(d=s.callbacks,d!==null&&(o=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=o===null?d:o.concat(d))));break;case 26:var m=xs;if(Bn(i,s),Hn(s),d&512&&(Rt||o===null||Us(o,o.return)),d&4){var y=o!==null?o.memoizedState:null;if(d=s.memoizedState,o===null)if(d===null)if(s.stateNode===null){e:{d=s.type,o=s.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":y=m.getElementsByTagName("title")[0],(!y||y[er]||y[xt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=m.createElement(d),m.head.insertBefore(y,m.querySelector("head > title"))),sn(y,d,o),y[xt]=s,Kt(y),d=y;break e;case"link":var T=rw("link","href",m).get(d+(o.href||""));if(T){for(var A=0;A<T.length;A++)if(y=T[A],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){T.splice(A,1);break t}}y=m.createElement(d),sn(y,d,o),m.head.appendChild(y);break;case"meta":if(T=rw("meta","content",m).get(d+(o.content||""))){for(A=0;A<T.length;A++)if(y=T[A],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){T.splice(A,1);break t}}y=m.createElement(d),sn(y,d,o),m.head.appendChild(y);break;default:throw Error(r(468,d))}y[xt]=s,Kt(y),d=y}s.stateNode=d}else iw(m,s.type,s.stateNode);else s.stateNode=sw(m,d,s.memoizedProps);else y!==d?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,d===null?iw(m,s.type,s.stateNode):sw(m,d,s.memoizedProps)):d===null&&s.stateNode!==null&&hm(s,s.memoizedProps,o.memoizedProps)}break;case 27:Bn(i,s),Hn(s),d&512&&(Rt||o===null||Us(o,o.return)),o!==null&&d&4&&hm(s,s.memoizedProps,o.memoizedProps);break;case 5:if(Bn(i,s),Hn(s),d&512&&(Rt||o===null||Us(o,o.return)),s.flags&32){m=s.stateNode;try{Sa(m,"")}catch(X){mt(s,s.return,X)}}d&4&&s.stateNode!=null&&(m=s.memoizedProps,hm(s,m,o!==null?o.memoizedProps:m)),d&1024&&(gm=!0);break;case 6:if(Bn(i,s),Hn(s),d&4){if(s.stateNode===null)throw Error(r(162));d=s.memoizedProps,o=s.stateNode;try{o.nodeValue=d}catch(X){mt(s,s.return,X)}}break;case 3:if(Fu=null,m=xs,xs=Uu(i.containerInfo),Bn(i,s),xs=m,Hn(s),d&4&&o!==null&&o.memoizedState.isDehydrated)try{Ml(i.containerInfo)}catch(X){mt(s,s.return,X)}gm&&(gm=!1,d0(s));break;case 4:d=xs,xs=Uu(s.stateNode.containerInfo),Bn(i,s),Hn(s),xs=d;break;case 12:Bn(i,s),Hn(s);break;case 13:Bn(i,s),Hn(s),s.child.flags&8192&&s.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(jm=Ut()),d&4&&(d=s.updateQueue,d!==null&&(s.updateQueue=null,ym(s,d)));break;case 22:m=s.memoizedState!==null;var z=o!==null&&o.memoizedState!==null,G=fr,re=Rt;if(fr=G||m,Rt=re||z,Bn(i,s),Rt=re,fr=G,Hn(s),d&8192)e:for(i=s.stateNode,i._visibility=m?i._visibility&-2:i._visibility|1,m&&(o===null||z||fr||Rt||Pi(s)),o=null,i=s;;){if(i.tag===5||i.tag===26){if(o===null){z=o=i;try{if(y=z.stateNode,m)T=y.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{A=z.stateNode;var ae=z.memoizedProps.style,K=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;A.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(X){mt(z,z.return,X)}}}else if(i.tag===6){if(o===null){z=i;try{z.stateNode.nodeValue=m?"":z.memoizedProps}catch(X){mt(z,z.return,X)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===s)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===s)break e;for(;i.sibling===null;){if(i.return===null||i.return===s)break e;o===i&&(o=null),i=i.return}o===i&&(o=null),i.sibling.return=i.return,i=i.sibling}d&4&&(d=s.updateQueue,d!==null&&(o=d.retryQueue,o!==null&&(d.retryQueue=null,ym(s,o))));break;case 19:Bn(i,s),Hn(s),d&4&&(d=s.updateQueue,d!==null&&(s.updateQueue=null,ym(s,d)));break;case 30:break;case 21:break;default:Bn(i,s),Hn(s)}}function Hn(s){var i=s.flags;if(i&2){try{for(var o,d=s.return;d!==null;){if(s0(d)){o=d;break}d=d.return}if(o==null)throw Error(r(160));switch(o.tag){case 27:var m=o.stateNode,y=mm(s);Eu(s,y,m);break;case 5:var T=o.stateNode;o.flags&32&&(Sa(T,""),o.flags&=-33);var A=mm(s);Eu(s,A,T);break;case 3:case 4:var z=o.stateNode.containerInfo,G=mm(s);pm(s,G,z);break;default:throw Error(r(161))}}catch(re){mt(s,s.return,re)}s.flags&=-3}i&4096&&(s.flags&=-4097)}function d0(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var i=s;d0(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),s=s.sibling}}function Ur(s,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)a0(s,i.alternate,i),i=i.sibling}function Pi(s){for(s=s.child;s!==null;){var i=s;switch(i.tag){case 0:case 11:case 14:case 15:Pr(4,i,i.return),Pi(i);break;case 1:Us(i,i.return);var o=i.stateNode;typeof o.componentWillUnmount=="function"&&t0(i,i.return,o),Pi(i);break;case 27:El(i.stateNode);case 26:case 5:Us(i,i.return),Pi(i);break;case 22:i.memoizedState===null&&Pi(i);break;case 30:Pi(i);break;default:Pi(i)}s=s.sibling}}function Ir(s,i,o){for(o=o&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var d=i.alternate,m=s,y=i,T=y.flags;switch(y.tag){case 0:case 11:case 15:Ir(m,y,o),gl(4,y);break;case 1:if(Ir(m,y,o),d=y,m=d.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(G){mt(d,d.return,G)}if(d=y,m=d.updateQueue,m!==null){var A=d.stateNode;try{var z=m.shared.hiddenCallbacks;if(z!==null)for(m.shared.hiddenCallbacks=null,m=0;m<z.length;m++)Iv(z[m],A)}catch(G){mt(d,d.return,G)}}o&&T&64&&e0(y),yl(y,y.return);break;case 27:r0(y);case 26:case 5:Ir(m,y,o),o&&d===null&&T&4&&n0(y),yl(y,y.return);break;case 12:Ir(m,y,o);break;case 13:Ir(m,y,o),o&&T&4&&c0(m,y);break;case 22:y.memoizedState===null&&Ir(m,y,o),yl(y,y.return);break;case 30:break;default:Ir(m,y,o)}i=i.sibling}}function xm(s,i){var o=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(o=s.memoizedState.cachePool.pool),s=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(s=i.memoizedState.cachePool.pool),s!==o&&(s!=null&&s.refCount++,o!=null&&nl(o))}function vm(s,i){s=null,i.alternate!==null&&(s=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==s&&(i.refCount++,s!=null&&nl(s))}function Is(s,i,o,d){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)f0(s,i,o,d),i=i.sibling}function f0(s,i,o,d){var m=i.flags;switch(i.tag){case 0:case 11:case 15:Is(s,i,o,d),m&2048&&gl(9,i);break;case 1:Is(s,i,o,d);break;case 3:Is(s,i,o,d),m&2048&&(s=null,i.alternate!==null&&(s=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==s&&(i.refCount++,s!=null&&nl(s)));break;case 12:if(m&2048){Is(s,i,o,d),s=i.stateNode;try{var y=i.memoizedProps,T=y.id,A=y.onPostCommit;typeof A=="function"&&A(T,i.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(z){mt(i,i.return,z)}}else Is(s,i,o,d);break;case 13:Is(s,i,o,d);break;case 23:break;case 22:y=i.stateNode,T=i.alternate,i.memoizedState!==null?y._visibility&2?Is(s,i,o,d):xl(s,i):y._visibility&2?Is(s,i,o,d):(y._visibility|=2,Fa(s,i,o,d,(i.subtreeFlags&10256)!==0)),m&2048&&xm(T,i);break;case 24:Is(s,i,o,d),m&2048&&vm(i.alternate,i);break;default:Is(s,i,o,d)}}function Fa(s,i,o,d,m){for(m=m&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var y=s,T=i,A=o,z=d,G=T.flags;switch(T.tag){case 0:case 11:case 15:Fa(y,T,A,z,m),gl(8,T);break;case 23:break;case 22:var re=T.stateNode;T.memoizedState!==null?re._visibility&2?Fa(y,T,A,z,m):xl(y,T):(re._visibility|=2,Fa(y,T,A,z,m)),m&&G&2048&&xm(T.alternate,T);break;case 24:Fa(y,T,A,z,m),m&&G&2048&&vm(T.alternate,T);break;default:Fa(y,T,A,z,m)}i=i.sibling}}function xl(s,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var o=s,d=i,m=d.flags;switch(d.tag){case 22:xl(o,d),m&2048&&xm(d.alternate,d);break;case 24:xl(o,d),m&2048&&vm(d.alternate,d);break;default:xl(o,d)}i=i.sibling}}var vl=8192;function Ba(s){if(s.subtreeFlags&vl)for(s=s.child;s!==null;)h0(s),s=s.sibling}function h0(s){switch(s.tag){case 26:Ba(s),s.flags&vl&&s.memoizedState!==null&&k4(xs,s.memoizedState,s.memoizedProps);break;case 5:Ba(s);break;case 3:case 4:var i=xs;xs=Uu(s.stateNode.containerInfo),Ba(s),xs=i;break;case 22:s.memoizedState===null&&(i=s.alternate,i!==null&&i.memoizedState!==null?(i=vl,vl=16777216,Ba(s),vl=i):Ba(s));break;default:Ba(s)}}function m0(s){var i=s.alternate;if(i!==null&&(s=i.child,s!==null)){i.child=null;do i=s.sibling,s.sibling=null,s=i;while(s!==null)}}function bl(s){var i=s.deletions;if((s.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var d=i[o];Zt=d,g0(d,s)}m0(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)p0(s),s=s.sibling}function p0(s){switch(s.tag){case 0:case 11:case 15:bl(s),s.flags&2048&&Pr(9,s,s.return);break;case 3:bl(s);break;case 12:bl(s);break;case 22:var i=s.stateNode;s.memoizedState!==null&&i._visibility&2&&(s.return===null||s.return.tag!==13)?(i._visibility&=-3,Cu(s)):bl(s);break;default:bl(s)}}function Cu(s){var i=s.deletions;if((s.flags&16)!==0){if(i!==null)for(var o=0;o<i.length;o++){var d=i[o];Zt=d,g0(d,s)}m0(s)}for(s=s.child;s!==null;){switch(i=s,i.tag){case 0:case 11:case 15:Pr(8,i,i.return),Cu(i);break;case 22:o=i.stateNode,o._visibility&2&&(o._visibility&=-3,Cu(i));break;default:Cu(i)}s=s.sibling}}function g0(s,i){for(;Zt!==null;){var o=Zt;switch(o.tag){case 0:case 11:case 15:Pr(8,o,i);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var d=o.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:nl(o.memoizedState.cache)}if(d=o.child,d!==null)d.return=o,Zt=d;else e:for(o=s;Zt!==null;){d=Zt;var m=d.sibling,y=d.return;if(o0(d),d===o){Zt=null;break e}if(m!==null){m.return=y,Zt=m;break e}Zt=y}}}var YR={getCacheForType:function(s){var i=un(It),o=i.data.get(s);return o===void 0&&(o=s(),i.data.set(s,o)),o}},KR=typeof WeakMap=="function"?WeakMap:Map,at=0,yt=null,Xe=null,et=0,ot=0,qn=null,Fr=!1,Ha=!1,bm=!1,mr=0,Ct=0,Br=0,Ui=0,wm=0,ls=0,qa=0,wl=null,On=null,Sm=!1,jm=0,_u=1/0,Au=null,Hr=null,nn=0,qr=null,$a=null,Ga=0,Nm=0,Tm=null,y0=null,Sl=0,Em=null;function $n(){if((at&2)!==0&&et!==0)return et&-et;if(P.T!==null){var s=Da;return s!==0?s:Dm()}return Un()}function x0(){ls===0&&(ls=(et&536870912)===0||rt?Si():536870912);var s=os.current;return s!==null&&(s.flags|=32),ls}function Gn(s,i,o){(s===yt&&(ot===2||ot===9)||s.cancelPendingCommit!==null)&&(Ya(s,0),$r(s,et,ls,!1)),Tt(s,o),((at&2)===0||s!==yt)&&(s===yt&&((at&2)===0&&(Ui|=o),Ct===4&&$r(s,et,ls,!1)),Fs(s))}function v0(s,i,o){if((at&6)!==0)throw Error(r(327));var d=!o&&(i&124)===0&&(i&s.expiredLanes)===0||zs(s,i),m=d?QR(s,i):Am(s,i,!0),y=d;do{if(m===0){Ha&&!d&&$r(s,i,0,!1);break}else{if(o=s.current.alternate,y&&!XR(o)){m=Am(s,i,!1),y=!1;continue}if(m===2){if(y=i,s.errorRecoveryDisabledLanes&y)var T=0;else T=s.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){i=T;e:{var A=s;m=wl;var z=A.current.memoizedState.isDehydrated;if(z&&(Ya(A,T).flags|=256),T=Am(A,T,!1),T!==2){if(bm&&!z){A.errorRecoveryDisabledLanes|=y,Ui|=y,m=4;break e}y=On,On=m,y!==null&&(On===null?On=y:On.push.apply(On,y))}m=T}if(y=!1,m!==2)continue}}if(m===1){Ya(s,0),$r(s,i,0,!0);break}e:{switch(d=s,y=m,y){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:$r(d,i,ls,!Fr);break e;case 2:On=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(m=jm+300-Ut(),10<m)){if($r(d,i,ls,!Fr),Ws(d,0,!0)!==0)break e;d.timeoutHandle=K0(b0.bind(null,d,o,On,Au,Sm,i,ls,Ui,qa,Fr,y,2,-0,0),m);break e}b0(d,o,On,Au,Sm,i,ls,Ui,qa,Fr,y,0,-0,0)}}break}while(!0);Fs(s)}function b0(s,i,o,d,m,y,T,A,z,G,re,ae,K,X){if(s.timeoutHandle=-1,ae=i.subtreeFlags,(ae&8192||(ae&16785408)===16785408)&&(Al={stylesheets:null,count:0,unsuspend:R4},h0(i),ae=O4(),ae!==null)){s.cancelPendingCommit=ae(C0.bind(null,s,i,y,o,d,m,T,A,z,re,1,K,X)),$r(s,y,T,!G);return}C0(s,i,y,o,d,m,T,A,z)}function XR(s){for(var i=s;;){var o=i.tag;if((o===0||o===11||o===15)&&i.flags&16384&&(o=i.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var d=0;d<o.length;d++){var m=o[d],y=m.getSnapshot;m=m.value;try{if(!In(y(),m))return!1}catch{return!1}}if(o=i.child,i.subtreeFlags&16384&&o!==null)o.return=i,i=o;else{if(i===s)break;for(;i.sibling===null;){if(i.return===null||i.return===s)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function $r(s,i,o,d){i&=~wm,i&=~Ui,s.suspendedLanes|=i,s.pingedLanes&=~i,d&&(s.warmLanes|=i),d=s.expirationTimes;for(var m=i;0<m;){var y=31-Me(m),T=1<<y;d[y]=-1,m&=~T}o!==0&&on(s,o,i)}function Ru(){return(at&6)===0?(jl(0),!1):!0}function Cm(){if(Xe!==null){if(ot===0)var s=Xe.return;else s=Xe,ar=Di=null,qh(s),Ua=null,hl=0,s=Xe;for(;s!==null;)Jb(s.alternate,s),s=s.return;Xe=null}}function Ya(s,i){var o=s.timeoutHandle;o!==-1&&(s.timeoutHandle=-1,h4(o)),o=s.cancelPendingCommit,o!==null&&(s.cancelPendingCommit=null,o()),Cm(),yt=s,Xe=o=sr(s.current,null),et=i,ot=0,qn=null,Fr=!1,Ha=zs(s,i),bm=!1,qa=ls=wm=Ui=Br=Ct=0,On=wl=null,Sm=!1,(i&8)!==0&&(i|=i&32);var d=s.entangledLanes;if(d!==0)for(s=s.entanglements,d&=i;0<d;){var m=31-Me(d),y=1<<m;i|=s[m],d&=~y}return mr=i,Wc(),o}function w0(s,i){$e=null,P.H=yu,i===rl||i===ou?(i=Pv(),ot=3):i===zv?(i=Pv(),ot=4):ot=i===Ub?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,qn=i,Xe===null&&(Ct=1,Su(s,ss(i,s.current)))}function S0(){var s=P.H;return P.H=yu,s===null?yu:s}function j0(){var s=P.A;return P.A=YR,s}function _m(){Ct=4,Fr||(et&4194048)!==et&&os.current!==null||(Ha=!0),(Br&134217727)===0&&(Ui&134217727)===0||yt===null||$r(yt,et,ls,!1)}function Am(s,i,o){var d=at;at|=2;var m=S0(),y=j0();(yt!==s||et!==i)&&(Au=null,Ya(s,i)),i=!1;var T=Ct;e:do try{if(ot!==0&&Xe!==null){var A=Xe,z=qn;switch(ot){case 8:Cm(),T=6;break e;case 3:case 2:case 9:case 6:os.current===null&&(i=!0);var G=ot;if(ot=0,qn=null,Ka(s,A,z,G),o&&Ha){T=0;break e}break;default:G=ot,ot=0,qn=null,Ka(s,A,z,G)}}ZR(),T=Ct;break}catch(re){w0(s,re)}while(!0);return i&&s.shellSuspendCounter++,ar=Di=null,at=d,P.H=m,P.A=y,Xe===null&&(yt=null,et=0,Wc()),T}function ZR(){for(;Xe!==null;)N0(Xe)}function QR(s,i){var o=at;at|=2;var d=S0(),m=j0();yt!==s||et!==i?(Au=null,_u=Ut()+500,Ya(s,i)):Ha=zs(s,i);e:do try{if(ot!==0&&Xe!==null){i=Xe;var y=qn;t:switch(ot){case 1:ot=0,qn=null,Ka(s,i,y,1);break;case 2:case 9:if(Lv(y)){ot=0,qn=null,T0(i);break}i=function(){ot!==2&&ot!==9||yt!==s||(ot=7),Fs(s)},y.then(i,i);break e;case 3:ot=7;break e;case 4:ot=5;break e;case 7:Lv(y)?(ot=0,qn=null,T0(i)):(ot=0,qn=null,Ka(s,i,y,7));break;case 5:var T=null;switch(Xe.tag){case 26:T=Xe.memoizedState;case 5:case 27:var A=Xe;if(!T||aw(T)){ot=0,qn=null;var z=A.sibling;if(z!==null)Xe=z;else{var G=A.return;G!==null?(Xe=G,ku(G)):Xe=null}break t}}ot=0,qn=null,Ka(s,i,y,5);break;case 6:ot=0,qn=null,Ka(s,i,y,6);break;case 8:Cm(),Ct=6;break e;default:throw Error(r(462))}}WR();break}catch(re){w0(s,re)}while(!0);return ar=Di=null,P.H=d,P.A=m,at=o,Xe!==null?0:(yt=null,et=0,Wc(),Ct)}function WR(){for(;Xe!==null&&!mn();)N0(Xe)}function N0(s){var i=Qb(s.alternate,s,mr);s.memoizedProps=s.pendingProps,i===null?ku(s):Xe=i}function T0(s){var i=s,o=i.alternate;switch(i.tag){case 15:case 0:i=$b(o,i,i.pendingProps,i.type,void 0,et);break;case 11:i=$b(o,i,i.pendingProps,i.type.render,i.ref,et);break;case 5:qh(i);default:Jb(o,i),i=Xe=Ev(i,mr),i=Qb(o,i,mr)}s.memoizedProps=s.pendingProps,i===null?ku(s):Xe=i}function Ka(s,i,o,d){ar=Di=null,qh(i),Ua=null,hl=0;var m=i.return;try{if(FR(s,m,i,o,et)){Ct=1,Su(s,ss(o,s.current)),Xe=null;return}}catch(y){if(m!==null)throw Xe=m,y;Ct=1,Su(s,ss(o,s.current)),Xe=null;return}i.flags&32768?(rt||d===1?s=!0:Ha||(et&536870912)!==0?s=!1:(Fr=s=!0,(d===2||d===9||d===3||d===6)&&(d=os.current,d!==null&&d.tag===13&&(d.flags|=16384))),E0(i,s)):ku(i)}function ku(s){var i=s;do{if((i.flags&32768)!==0){E0(i,Fr);return}s=i.return;var o=HR(i.alternate,i,mr);if(o!==null){Xe=o;return}if(i=i.sibling,i!==null){Xe=i;return}Xe=i=s}while(i!==null);Ct===0&&(Ct=5)}function E0(s,i){do{var o=qR(s.alternate,s);if(o!==null){o.flags&=32767,Xe=o;return}if(o=s.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!i&&(s=s.sibling,s!==null)){Xe=s;return}Xe=s=o}while(s!==null);Ct=6,Xe=null}function C0(s,i,o,d,m,y,T,A,z){s.cancelPendingCommit=null;do Ou();while(nn!==0);if((at&6)!==0)throw Error(r(327));if(i!==null){if(i===s.current)throw Error(r(177));if(y=i.lanes|i.childLanes,y|=vh,yn(s,o,y,T,A,z),s===yt&&(Xe=yt=null,et=0),$a=i,qr=s,Ga=o,Nm=y,Tm=m,y0=d,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,n4(L,function(){return O0(),null})):(s.callbackNode=null,s.callbackPriority=0),d=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||d){d=P.T,P.T=null,m=Y.p,Y.p=2,T=at,at|=4;try{$R(s,i,o)}finally{at=T,Y.p=m,P.T=d}}nn=1,_0(),A0(),R0()}}function _0(){if(nn===1){nn=0;var s=qr,i=$a,o=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||o){o=P.T,P.T=null;var d=Y.p;Y.p=2;var m=at;at|=4;try{u0(i,s);var y=Fm,T=gv(s.containerInfo),A=y.focusedElem,z=y.selectionRange;if(T!==A&&A&&A.ownerDocument&&pv(A.ownerDocument.documentElement,A)){if(z!==null&&mh(A)){var G=z.start,re=z.end;if(re===void 0&&(re=G),"selectionStart"in A)A.selectionStart=G,A.selectionEnd=Math.min(re,A.value.length);else{var ae=A.ownerDocument||document,K=ae&&ae.defaultView||window;if(K.getSelection){var X=K.getSelection(),Le=A.textContent.length,ke=Math.min(z.start,Le),ft=z.end===void 0?ke:Math.min(z.end,Le);!X.extend&&ke>ft&&(T=ft,ft=ke,ke=T);var B=mv(A,ke),U=mv(A,ft);if(B&&U&&(X.rangeCount!==1||X.anchorNode!==B.node||X.anchorOffset!==B.offset||X.focusNode!==U.node||X.focusOffset!==U.offset)){var $=ae.createRange();$.setStart(B.node,B.offset),X.removeAllRanges(),ke>ft?(X.addRange($),X.extend(U.node,U.offset)):($.setEnd(U.node,U.offset),X.addRange($))}}}}for(ae=[],X=A;X=X.parentNode;)X.nodeType===1&&ae.push({element:X,left:X.scrollLeft,top:X.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<ae.length;A++){var ie=ae[A];ie.element.scrollLeft=ie.left,ie.element.scrollTop=ie.top}}qu=!!Im,Fm=Im=null}finally{at=m,Y.p=d,P.T=o}}s.current=i,nn=2}}function A0(){if(nn===2){nn=0;var s=qr,i=$a,o=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||o){o=P.T,P.T=null;var d=Y.p;Y.p=2;var m=at;at|=4;try{a0(s,i.alternate,i)}finally{at=m,Y.p=d,P.T=o}}nn=3}}function R0(){if(nn===4||nn===3){nn=0,pn();var s=qr,i=$a,o=Ga,d=y0;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?nn=5:(nn=0,$a=qr=null,k0(s,s.pendingLanes));var m=s.pendingLanes;if(m===0&&(Hr=null),en(o),i=i.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(ue,i,void 0,(i.current.flags&128)===128)}catch{}if(d!==null){i=P.T,m=Y.p,Y.p=2,P.T=null;try{for(var y=s.onRecoverableError,T=0;T<d.length;T++){var A=d[T];y(A.value,{componentStack:A.stack})}}finally{P.T=i,Y.p=m}}(Ga&3)!==0&&Ou(),Fs(s),m=s.pendingLanes,(o&4194090)!==0&&(m&42)!==0?s===Em?Sl++:(Sl=0,Em=s):Sl=0,jl(0)}}function k0(s,i){(s.pooledCacheLanes&=i)===0&&(i=s.pooledCache,i!=null&&(s.pooledCache=null,nl(i)))}function Ou(s){return _0(),A0(),R0(),O0()}function O0(){if(nn!==5)return!1;var s=qr,i=Nm;Nm=0;var o=en(Ga),d=P.T,m=Y.p;try{Y.p=32>o?32:o,P.T=null,o=Tm,Tm=null;var y=qr,T=Ga;if(nn=0,$a=qr=null,Ga=0,(at&6)!==0)throw Error(r(331));var A=at;if(at|=4,p0(y.current),f0(y,y.current,T,o),at=A,jl(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(ue,y)}catch{}return!0}finally{Y.p=m,P.T=d,k0(s,i)}}function D0(s,i,o){i=ss(o,i),i=rm(s.stateNode,i,2),s=Mr(s,i,2),s!==null&&(Tt(s,2),Fs(s))}function mt(s,i,o){if(s.tag===3)D0(s,s,o);else for(;i!==null;){if(i.tag===3){D0(i,s,o);break}else if(i.tag===1){var d=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Hr===null||!Hr.has(d))){s=ss(o,s),o=Vb(2),d=Mr(i,o,2),d!==null&&(Pb(o,d,i,s),Tt(d,2),Fs(d));break}}i=i.return}}function Rm(s,i,o){var d=s.pingCache;if(d===null){d=s.pingCache=new KR;var m=new Set;d.set(i,m)}else m=d.get(i),m===void 0&&(m=new Set,d.set(i,m));m.has(o)||(bm=!0,m.add(o),s=JR.bind(null,s,i,o),i.then(s,s))}function JR(s,i,o){var d=s.pingCache;d!==null&&d.delete(i),s.pingedLanes|=s.suspendedLanes&o,s.warmLanes&=~o,yt===s&&(et&o)===o&&(Ct===4||Ct===3&&(et&62914560)===et&&300>Ut()-jm?(at&2)===0&&Ya(s,0):wm|=o,qa===et&&(qa=0)),Fs(s)}function M0(s,i){i===0&&(i=Ic()),s=Aa(s,i),s!==null&&(Tt(s,i),Fs(s))}function e4(s){var i=s.memoizedState,o=0;i!==null&&(o=i.retryLane),M0(s,o)}function t4(s,i){var o=0;switch(s.tag){case 13:var d=s.stateNode,m=s.memoizedState;m!==null&&(o=m.retryLane);break;case 19:d=s.stateNode;break;case 22:d=s.stateNode._retryCache;break;default:throw Error(r(314))}d!==null&&d.delete(i),M0(s,o)}function n4(s,i){return it(s,i)}var Du=null,Xa=null,km=!1,Mu=!1,Om=!1,Ii=0;function Fs(s){s!==Xa&&s.next===null&&(Xa===null?Du=Xa=s:Xa=Xa.next=s),Mu=!0,km||(km=!0,r4())}function jl(s,i){if(!Om&&Mu){Om=!0;do for(var o=!1,d=Du;d!==null;){if(s!==0){var m=d.pendingLanes;if(m===0)var y=0;else{var T=d.suspendedLanes,A=d.pingedLanes;y=(1<<31-Me(42|s)+1)-1,y&=m&~(T&~A),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,P0(d,y))}else y=et,y=Ws(d,d===yt?y:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(y&3)===0||zs(d,y)||(o=!0,P0(d,y));d=d.next}while(o);Om=!1}}function s4(){z0()}function z0(){Mu=km=!1;var s=0;Ii!==0&&(f4()&&(s=Ii),Ii=0);for(var i=Ut(),o=null,d=Du;d!==null;){var m=d.next,y=L0(d,i);y===0?(d.next=null,o===null?Du=m:o.next=m,m===null&&(Xa=o)):(o=d,(s!==0||(y&3)!==0)&&(Mu=!0)),d=m}jl(s)}function L0(s,i){for(var o=s.suspendedLanes,d=s.pingedLanes,m=s.expirationTimes,y=s.pendingLanes&-62914561;0<y;){var T=31-Me(y),A=1<<T,z=m[T];z===-1?((A&o)===0||(A&d)!==0)&&(m[T]=pa(A,i)):z<=i&&(s.expiredLanes|=A),y&=~A}if(i=yt,o=et,o=Ws(s,s===i?o:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),d=s.callbackNode,o===0||s===i&&(ot===2||ot===9)||s.cancelPendingCommit!==null)return d!==null&&d!==null&&ct(d),s.callbackNode=null,s.callbackPriority=0;if((o&3)===0||zs(s,o)){if(i=o&-o,i===s.callbackPriority)return i;switch(d!==null&&ct(d),en(o)){case 2:case 8:o=_n;break;case 32:o=L;break;case 268435456:o=ee;break;default:o=L}return d=V0.bind(null,s),o=it(o,d),s.callbackPriority=i,s.callbackNode=o,i}return d!==null&&d!==null&&ct(d),s.callbackPriority=2,s.callbackNode=null,2}function V0(s,i){if(nn!==0&&nn!==5)return s.callbackNode=null,s.callbackPriority=0,null;var o=s.callbackNode;if(Ou()&&s.callbackNode!==o)return null;var d=et;return d=Ws(s,s===yt?d:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),d===0?null:(v0(s,d,i),L0(s,Ut()),s.callbackNode!=null&&s.callbackNode===o?V0.bind(null,s):null)}function P0(s,i){if(Ou())return null;v0(s,i,!0)}function r4(){m4(function(){(at&6)!==0?it(wi,s4):z0()})}function Dm(){return Ii===0&&(Ii=Si()),Ii}function U0(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:$c(""+s)}function I0(s,i){var o=i.ownerDocument.createElement("input");return o.name=i.name,o.value=i.value,s.id&&o.setAttribute("form",s.id),i.parentNode.insertBefore(o,i),s=new FormData(s),o.parentNode.removeChild(o),s}function i4(s,i,o,d,m){if(i==="submit"&&o&&o.stateNode===m){var y=U0((m[vt]||null).action),T=d.submitter;T&&(i=(i=T[vt]||null)?U0(i.formAction):T.getAttribute("formAction"),i!==null&&(y=i,T=null));var A=new Xc("action","action",null,d,m);s.push({event:A,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ii!==0){var z=T?I0(m,T):new FormData(m);Jh(o,{pending:!0,data:z,method:m.method,action:y},null,z)}}else typeof y=="function"&&(A.preventDefault(),z=T?I0(m,T):new FormData(m),Jh(o,{pending:!0,data:z,method:m.method,action:y},y,z))},currentTarget:m}]})}}
vendor: 4,931 bytes, line 8
8for(var Mm=0;Mm<xh.length;Mm++){var zm=xh[Mm],a4=zm.toLowerCase(),o4=zm[0].toUpperCase()+zm.slice(1);ys(a4,"on"+o4)}ys(vv,"onAnimationEnd"),ys(bv,"onAnimationIteration"),ys(wv,"onAnimationStart"),ys("dblclick","onDoubleClick"),ys("focusin","onFocus"),ys("focusout","onBlur"),ys(NR,"onTransitionRun"),ys(TR,"onTransitionStart"),ys(ER,"onTransitionCancel"),ys(Sv,"onTransitionEnd"),va("onMouseEnter",["mouseout","mouseover"]),va("onMouseLeave",["mouseout","mouseover"]),va("onPointerEnter",["pointerout","pointerover"]),va("onPointerLeave",["pointerout","pointerover"]),Ni("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ni("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ni("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ni("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ni("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ni("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nl="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(" "),l4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Nl));function F0(s,i){i=(i&4)!==0;for(var o=0;o<s.length;o++){var d=s[o],m=d.event;d=d.listeners;e:{var y=void 0;if(i)for(var T=d.length-1;0<=T;T--){var A=d[T],z=A.instance,G=A.currentTarget;if(A=A.listener,z!==y&&m.isPropagationStopped())break e;y=A,m.currentTarget=G;try{y(m)}catch(re){wu(re)}m.currentTarget=null,y=z}else for(T=0;T<d.length;T++){if(A=d[T],z=A.instance,G=A.currentTarget,A=A.listener,z!==y&&m.isPropagationStopped())break e;y=A,m.currentTarget=G;try{y(m)}catch(re){wu(re)}m.currentTarget=null,y=z}}}}function Ze(s,i){var o=i[Js];o===void 0&&(o=i[Js]=new Set);var d=s+"__bubble";o.has(d)||(B0(i,s,2,!1),o.add(d))}function Lm(s,i,o){var d=0;i&&(d|=4),B0(o,s,d,i)}var zu="_reactListening"+Math.random().toString(36).slice(2);function Vm(s){if(!s[zu]){s[zu]=!0,zx.forEach(function(o){o!=="selectionchange"&&(l4.has(o)||Lm(o,!1,s),Lm(o,!0,s))});var i=s.nodeType===9?s:s.ownerDocument;i===null||i[zu]||(i[zu]=!0,Lm("selectionchange",!1,i))}}function B0(s,i,o,d){switch(fw(i)){case 2:var m=z4;break;case 8:m=L4;break;default:m=Qm}o=m.bind(null,i,o,s),m=void 0,!ih||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(m=!0),d?m!==void 0?s.addEventListener(i,o,{capture:!0,passive:m}):s.addEventListener(i,o,!0):m!==void 0?s.addEventListener(i,o,{passive:m}):s.addEventListener(i,o,!1)}function Pm(s,i,o,d,m){var y=d;if((i&1)===0&&(i&2)===0&&d!==null)e:for(;;){if(d===null)return;var T=d.tag;if(T===3||T===4){var A=d.stateNode.containerInfo;if(A===m)break;if(T===4)for(T=d.return;T!==null;){var z=T.tag;if((z===3||z===4)&&T.stateNode.containerInfo===m)return;T=T.return}for(;A!==null;){if(T=ga(A),T===null)return;if(z=T.tag,z===5||z===6||z===26||z===27){d=y=T;continue e}A=A.parentNode}}d=d.return}Xx(function(){var G=y,re=sh(o),ae=[];e:{var K=jv.get(s);if(K!==void 0){var X=Xc,Le=s;switch(s){case"keypress":if(Yc(o)===0)break e;case"keydown":case"keyup":X=nR;break;case"focusin":Le="focus",X=ch;break;case"focusout":Le="blur",X=ch;break;case"beforeblur":case"afterblur":X=ch;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":X=Wx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":X=qA;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":X=iR;break;case vv:case bv:case wv:X=YA;break;case Sv:X=oR;break;case"scroll":case"scrollend":X=BA;break;case"wheel":X=cR;break;case"copy":case"cut":case"paste":X=XA;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":X=ev;break;case"toggle":case"beforetoggle":X=dR}var ke=(i&4)!==0,ft=!ke&&(s==="scroll"||s==="scrollend"),B=ke?K!==null?K+"Capture":null:K;ke=[];for(var U=G,$;U!==null;){var ie=U;if($=ie.stateNode,ie=ie.tag,ie!==5&&ie!==26&&ie!==27||$===null||B===null||(ie=Ho(U,B),ie!=null&&ke.push(Tl(U,ie,$))),ft)break;U=U.return}0<ke.length&&(K=new X(K,Le,null,o,re),ae.push({event:K,listeners:ke}))}}if((i&7)===0){e:{if(K=s==="mouseover"||s==="pointerover",X=s==="mouseout"||s==="pointerout",K&&o!==nh&&(Le=o.relatedTarget||o.fromElement)&&(ga(Le)||Le[cn]))break e;if((X||K)&&(K=re.window===re?re:(K=re.ownerDocument)?K.defaultView||K.parentWindow:window,X?(Le=o.relatedTarget||o.toElement,X=G,Le=Le?ga(Le):null,Le!==null&&(ft=l(Le),ke=Le.tag,Le!==ft||ke!==5&&ke!==27&&ke!==6)&&(Le=null)):(X=null,
vendor: 5,872 bytes, lines 8-9
8Le=G),X!==Le)){if(ke=Wx,ie="onMouseLeave",B="onMouseEnter",U="mouse",(s==="pointerout"||s==="pointerover")&&(ke=ev,ie="onPointerLeave",B="onPointerEnter",U="pointer"),ft=X==null?K:Bo(X),$=Le==null?K:Bo(Le),K=new ke(ie,U+"leave",X,o,re),K.target=ft,K.relatedTarget=$,ie=null,ga(re)===G&&(ke=new ke(B,U+"enter",Le,o,re),ke.target=$,ke.relatedTarget=ft,ie=ke),ft=ie,X&&Le)t:{for(ke=X,B=Le,U=0,$=ke;$;$=Za($))U++;for($=0,ie=B;ie;ie=Za(ie))$++;for(;0<U-$;)ke=Za(ke),U--;for(;0<$-U;)B=Za(B),$--;for(;U--;){if(ke===B||B!==null&&ke===B.alternate)break t;ke=Za(ke),B=Za(B)}ke=null}else ke=null;X!==null&&H0(ae,K,X,ke,!1),Le!==null&&ft!==null&&H0(ae,ft,Le,ke,!0)}}e:{if(K=G?Bo(G):window,X=K.nodeName&&K.nodeName.toLowerCase(),X==="select"||X==="input"&&K.type==="file")var Se=lv;else if(av(K))if(cv)Se=wR;else{Se=vR;var Ye=xR}else X=K.nodeName,!X||X.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?G&&th(G.elementType)&&(Se=lv):Se=bR;if(Se&&(Se=Se(s,G))){ov(ae,Se,o,re);break e}Ye&&Ye(s,K,G),s==="focusout"&&G&&K.type==="number"&&G.memoizedProps.value!=null&&eh(K,"number",K.value)}switch(Ye=G?Bo(G):window,s){case"focusin":(av(Ye)||Ye.contentEditable==="true")&&(Ea=Ye,ph=G,Qo=null);break;case"focusout":Qo=ph=Ea=null;break;case"mousedown":gh=!0;break;case"contextmenu":case"mouseup":case"dragend":gh=!1,yv(ae,o,re);break;case"selectionchange":if(jR)break;case"keydown":case"keyup":yv(ae,o,re)}var Ae;if(dh)e:{switch(s){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Ta?rv(s,o)&&(De="onCompositionEnd"):s==="keydown"&&o.keyCode===229&&(De="onCompositionStart");De&&(tv&&o.locale!=="ko"&&(Ta||De!=="onCompositionStart"?De==="onCompositionEnd"&&Ta&&(Ae=Zx()):(Rr=re,ah="value"in Rr?Rr.value:Rr.textContent,Ta=!0)),Ye=Lu(G,De),0<Ye.length&&(De=new Jx(De,s,null,o,re),ae.push({event:De,listeners:Ye}),Ae?De.data=Ae:(Ae=iv(o),Ae!==null&&(De.data=Ae)))),(Ae=hR?mR(s,o):pR(s,o))&&(De=Lu(G,"onBeforeInput"),0<De.length&&(Ye=new Jx("onBeforeInput","beforeinput",null,o,re),ae.push({event:Ye,listeners:De}),Ye.data=Ae)),i4(ae,s,G,o,re)}F0(ae,i)})}function Tl(s,i,o){return{instance:s,listener:i,currentTarget:o}}function Lu(s,i){for(var o=i+"Capture",d=[];s!==null;){var m=s,y=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||y===null||(m=Ho(s,o),m!=null&&d.unshift(Tl(s,m,y)),m=Ho(s,i),m!=null&&d.push(Tl(s,m,y))),s.tag===3)return d;s=s.return}return[]}function Za(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function H0(s,i,o,d,m){for(var y=i._reactName,T=[];o!==null&&o!==d;){var A=o,z=A.alternate,G=A.stateNode;if(A=A.tag,z!==null&&z===d)break;A!==5&&A!==26&&A!==27||G===null||(z=G,m?(G=Ho(o,y),G!=null&&T.unshift(Tl(o,G,z))):m||(G=Ho(o,y),G!=null&&T.push(Tl(o,G,z)))),o=o.return}T.length!==0&&s.push({event:i,listeners:T})}var c4=/\r\n?/g,u4=/\u0000|\uFFFD/g;function q0(s){return(typeof s=="string"?s:""+s).replace(c4,`
9`).replace(u4,"")}function $0(s,i){return i=q0(i),q0(s)===i}function Vu(){}function dt(s,i,o,d,m,y){switch(o){case"children":typeof d=="string"?i==="body"||i==="textarea"&&d===""||Sa(s,d):(typeof d=="number"||typeof d=="bigint")&&i!=="body"&&Sa(s,""+d);break;case"className":Bc(s,"class",d);break;case"tabIndex":Bc(s,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":Bc(s,o,d);break;case"style":Yx(s,d,y);break;case"data":if(i!=="object"){Bc(s,"data",d);break}case"src":case"href":if(d===""&&(i!=="a"||o!=="href")){s.removeAttribute(o);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){s.removeAttribute(o);break}d=$c(""+d),s.setAttribute(o,d);break;case"action":case"formAction":if(typeof d=="function"){s.setAttribute(o,"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 y=="function"&&(o==="formAction"?(i!=="input"&&dt(s,i,"name",m.name,m,null),dt(s,i,"formEncType",m.formEncType,m,null),dt(s,i,"formMethod",m.formMethod,m,null),dt(s,i,"formTarget",m.formTarget,m,null)):(dt(s,i,"encType",m.encType,m,null),dt(s,i,"method",m.method,m,null),dt(s,i,"target",m.target,m,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){s.removeAttribute(o);break}d=$c(""+d),s.setAttribute(o,d);break;case"onClick":d!=null&&(s.onclick=Vu);break;case"onScroll":d!=null&&Ze("scroll",s);break;case"onScrollEnd":d!=null&&Ze("scrollend",s);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(o=d.__html,o!=null){if(m.children!=null)throw Error(r(60));s.innerHTML=o}}break;case"multiple":s.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":s.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){s.removeAttribute("xlink:href");break}o=$c(""+d),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?s.setAttribute(o,""+d):s.removeAttribute(o);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
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":d&&typeof d!="function"&&typeof d!="symbol"?s.setAttribute(o,""):s.removeAttribute(o);break;case"capture":case"download":d===!0?s.setAttribute(o,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?s.setAttribute(o,d):s.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?s.setAttribute(o,d):s.removeAttribute(o);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?s.removeAttribute(o):s.setAttribute(o,d);break;case"popover":Ze("beforetoggle",s),Ze("toggle",s),Fc(s,"popover",d);break;case"xlinkActuate":tr(s,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":tr(s,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":tr(s,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":tr(s,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":tr(s,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":tr(s,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":tr(s,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":tr(s,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":tr(s,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":Fc(s,"is",d);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=IA.get(o)||o,Fc(s,o,d))}}function Um(s,i,o,d,m,y){switch(o){case"style":Yx(s,d,y);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(r(61));if(o=d.__html,o!=null){if(m.children!=null)throw Error(r(60));s.innerHTML=o}}break;case"children":typeof d=="string"?Sa(s,d):(typeof d=="number"||typeof d=="bigint")&&Sa(s,""+d);break;case"onScroll":d!=null&&Ze("scroll",s);break;case"onScrollEnd":d!=null&&Ze("scrollend",s);break;case"onClick":d!=null&&(s.onclick=Vu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Lx.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(m=o.endsWith("Capture"),i=o.slice(2,m?o.length-7:void 0),y=s[vt]||null,y=y!=null?y[o]:null,typeof y=="function"&&s.removeEventListener(i,y,m),typeof d=="function")){typeof y!="function"&&y!==null&&(o in s?s[o]=null:s.hasAttribute(o)&&s.removeAttribute(o)),s.addEventListener(i,d,m);break e}o in s?s[o]=d:d===!0?s.setAttribute(o,""):Fc(s,o,d)}}}function sn(s,i,o){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ze("error",s),Ze("load",s);var d=!1,m=!1,y;for(y in o)if(o.hasOwnProperty(y)){var T=o[y];if(T!=null)switch(y){case"src":d=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:dt(s,i,y,T,o,null)}}m&&dt(s,i,"srcSet",o.srcSet,o,null),d&&dt(s,i,"src",o.src,o,null);return;case"input":Ze("invalid",s);var A=y=T=m=null,z=null,G=null;for(d in o)if(o.hasOwnProperty(d)){var re=o[d];if(re!=null)switch(d){case"name":m=re;break;case"type":T=re;break;case"checked":z=re;break;case"defaultChecked":G=re;break;case"value":y=re;break;case"defaultValue":A=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,i));break;default:dt(s,i,d,re,o,null)}}Hx(s,y,A,z,G,T,m,!1),Hc(s);return;case"select":Ze("invalid",s),d=T=y=null;for(m in o)if(o.hasOwnProperty(m)&&(A=o[m],A!=null))switch(m){case"value":y=A;break;case"defaultValue":T=A;break;case"multiple":d=A;default:dt(s,i,m,A,o,null)}i=y,o=T,s.multiple=!!d,i!=null?wa(s,!!d,i,!1):o!=null&&wa(s,!!d,o,!0);return;case"textarea":Ze("invalid",s),y=m=d=null;for(T in o)if(o.hasOwnProperty(T)&&(A=o[T],A!=null))switch(T){case"value":d=A;break;case"defaultValue":m=A;break;case"children":y=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:dt(s,i,T,A,o,null)}$x(s,d,m,y),Hc(s);return;case"option":for(z in o)o.hasOwnProperty(z)&&(d=o[z],d!=null)&&(z==="selected"?s.selected=d&&typeof d!="function"&&typeof d!="symbol":dt(s,i,z,d,o,null));return;case"dialog":Ze("beforetoggle",s),Ze("toggle",s),Ze("cancel",s),Ze("close",s
vendor: 3,748 bytes, line 9
9);break;case"iframe":case"object":Ze("load",s);break;case"video":case"audio":for(d=0;d<Nl.length;d++)Ze(Nl[d],s);break;case"image":Ze("error",s),Ze("load",s);break;case"details":Ze("toggle",s);break;case"embed":case"source":case"link":Ze("error",s),Ze("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(G in o)if(o.hasOwnProperty(G)&&(d=o[G],d!=null))switch(G){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:dt(s,i,G,d,o,null)}return;default:if(th(i)){for(re in o)o.hasOwnProperty(re)&&(d=o[re],d!==void 0&&Um(s,i,re,d,o,void 0));return}}for(A in o)o.hasOwnProperty(A)&&(d=o[A],d!=null&&dt(s,i,A,d,o,null))}function d4(s,i,o,d){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,y=null,T=null,A=null,z=null,G=null,re=null;for(X in o){var ae=o[X];if(o.hasOwnProperty(X)&&ae!=null)switch(X){case"checked":break;case"value":break;case"defaultValue":z=ae;default:d.hasOwnProperty(X)||dt(s,i,X,null,d,ae)}}for(var K in d){var X=d[K];if(ae=o[K],d.hasOwnProperty(K)&&(X!=null||ae!=null))switch(K){case"type":y=X;break;case"name":m=X;break;case"checked":G=X;break;case"defaultChecked":re=X;break;case"value":T=X;break;case"defaultValue":A=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(r(137,i));break;default:X!==ae&&dt(s,i,K,X,d,ae)}}Jf(s,T,A,z,G,re,y,m);return;case"select":X=T=A=K=null;for(y in o)if(z=o[y],o.hasOwnProperty(y)&&z!=null)switch(y){case"value":break;case"multiple":X=z;default:d.hasOwnProperty(y)||dt(s,i,y,null,d,z)}for(m in d)if(y=d[m],z=o[m],d.hasOwnProperty(m)&&(y!=null||z!=null))switch(m){case"value":K=y;break;case"defaultValue":A=y;break;case"multiple":T=y;default:y!==z&&dt(s,i,m,y,d,z)}i=A,o=T,d=X,K!=null?wa(s,!!o,K,!1):!!d!=!!o&&(i!=null?wa(s,!!o,i,!0):wa(s,!!o,o?[]:"",!1));return;case"textarea":X=K=null;for(A in o)if(m=o[A],o.hasOwnProperty(A)&&m!=null&&!d.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:dt(s,i,A,null,d,m)}for(T in d)if(m=d[T],y=o[T],d.hasOwnProperty(T)&&(m!=null||y!=null))switch(T){case"value":K=m;break;case"defaultValue":X=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(r(91));break;default:m!==y&&dt(s,i,T,m,d,y)}qx(s,K,X);return;case"option":for(var Le in o)K=o[Le],o.hasOwnProperty(Le)&&K!=null&&!d.hasOwnProperty(Le)&&(Le==="selected"?s.selected=!1:dt(s,i,Le,null,d,K));for(z in d)K=d[z],X=o[z],d.hasOwnProperty(z)&&K!==X&&(K!=null||X!=null)&&(z==="selected"?s.selected=K&&typeof K!="function"&&typeof K!="symbol":dt(s,i,z,K,d,X));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 ke in o)K=o[ke],o.hasOwnProperty(ke)&&K!=null&&!d.hasOwnProperty(ke)&&dt(s,i,ke,null,d,K);for(G in d)if(K=d[G],X=o[G],d.hasOwnProperty(G)&&K!==X&&(K!=null||X!=null))switch(G){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,i));break;default:dt(s,i,G,K,d,X)}return;default:if(th(i)){for(var ft in o)K=o[ft],o.hasOwnProperty(ft)&&K!==void 0&&!d.hasOwnProperty(ft)&&Um(s,i,ft,void 0,d,K);for(re in d)K=d[re],X=o[re],!d.hasOwnProperty(re)||K===X||K===void 0&&X===void 0||Um(s,i,re,K,d,X);return}}for(var B in o)K=o[B],o.hasOwnProperty(B)&&K!=null&&!d.hasOwnProperty(B)&&dt(s,i,B,null,d,K);for(ae in d)K=d[ae],X=o[ae],!d.hasOwnProperty(ae)||K===X||K==null&&X==null||dt(s,i,ae,K,d,X)}var Im=null,Fm=null;function Pu(s){return s.nodeType===9?s:s.ownerDocument}function G0(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}
vendor: 4,394 bytes, line 9
9function Y0(s,i){if(s===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&i==="foreignObject"?0:s}function Bm(s,i){return s==="textarea"||s==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Hm=null;function f4(){var s=window.event;return s&&s.type==="popstate"?s===Hm?!1:(Hm=s,!0):(Hm=null,!1)}var K0=typeof setTimeout=="function"?setTimeout:void 0,h4=typeof clearTimeout=="function"?clearTimeout:void 0,X0=typeof Promise=="function"?Promise:void 0,m4=typeof queueMicrotask=="function"?queueMicrotask:typeof X0<"u"?function(s){return X0.resolve(null).then(s).catch(p4)}:K0;function p4(s){setTimeout(function(){throw s})}function Gr(s){return s==="head"}function Z0(s,i){var o=i,d=0,m=0;do{var y=o.nextSibling;if(s.removeChild(o),y&&y.nodeType===8)if(o=y.data,o==="/$"){if(0<d&&8>d){o=d;var T=s.ownerDocument;if(o&1&&El(T.documentElement),o&2&&El(T.body),o&4)for(o=T.head,El(o),T=o.firstChild;T;){var A=T.nextSibling,z=T.nodeName;T[er]||z==="SCRIPT"||z==="STYLE"||z==="LINK"&&T.rel.toLowerCase()==="stylesheet"||o.removeChild(T),T=A}}if(m===0){s.removeChild(y),Ml(i);return}m--}else o==="$"||o==="$?"||o==="$!"?m++:d=o.charCodeAt(0)-48;else d=0;o=y}while(o);Ml(i)}function qm(s){var i=s.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var o=i;switch(i=i.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":qm(o),Xf(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}s.removeChild(o)}}function g4(s,i,o,d){for(;s.nodeType===1;){var m=o;if(s.nodeName.toLowerCase()!==i.toLowerCase()){if(!d&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(d){if(!s[er])switch(i){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(y=s.getAttribute("rel"),y==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(y!==m.rel||s.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||s.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||s.getAttribute("title")!==(m.title==null?null:m.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(y=s.getAttribute("src"),(y!==(m.src==null?null:m.src)||s.getAttribute("type")!==(m.type==null?null:m.type)||s.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&y&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(i==="input"&&s.type==="hidden"){var y=m.name==null?null:""+m.name;if(m.type==="hidden"&&s.getAttribute("name")===y)return s}else return s;if(s=vs(s.nextSibling),s===null)break}return null}function y4(s,i,o){if(i==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!o||(s=vs(s.nextSibling),s===null))return null;return s}function $m(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function x4(s,i){var o=s.ownerDocument;if(s.data!=="$?"||o.readyState==="complete")i();else{var d=function(){i(),o.removeEventListener("DOMContentLoaded",d)};o.addEventListener("DOMContentLoaded",d),s._reactRetry=d}}function vs(s){for(;s!=null;s=s.nextSibling){var i=s.nodeType;if(i===1||i===3)break;if(i===8){if(i=s.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return s}var Gm=null;function Q0(s){s=s.previousSibling;for(var i=0;s;){if(s.nodeType===8){var o=s.data;if(o==="$"||o==="$!"||o==="$?"){if(i===0)return s;i--}else o==="/$"&&i++}s=s.previousSibling}return null}function W0(s,i,o){switch(i=Pu(o),s){case"html":if(s=i.documentElement,!s)throw Error(r(452));return s;case"head":if(s=i.head,!s)throw Error(r(453));return s;case"body":if(s=i.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function El(s){for(var i=s.attributes;i.length;)s.removeAttributeNode(i[0]);Xf(s)}var cs=new Map,J0=new Set;function Uu(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var pr=Y.d;Y.d={f:v4,r:b4,D:w4,C:S4,L:j4,m:N4,X:E4,S:T4,M:C4};function v4(){var s=pr.f(),i=Ru();return s||i}function b4(s){var i=ya(s);i!==null&&i.tag===5&&i.type==="form"?vb(i):pr.r(s)}var Qa=typeof document>"u"?null:document;function ew(s,i,o){var d=Qa;if(d&&typeof i=="string"&&i){var m=ns(i);
vendor: 5,543 bytes, line 9
9m='link[rel="'+s+'"][href="'+m+'"]',typeof o=="string"&&(m+='[crossorigin="'+o+'"]'),J0.has(m)||(J0.add(m),s={rel:s,crossOrigin:o,href:i},d.querySelector(m)===null&&(i=d.createElement("link"),sn(i,"link",s),Kt(i),d.head.appendChild(i)))}}function w4(s){pr.D(s),ew("dns-prefetch",s,null)}function S4(s,i){pr.C(s,i),ew("preconnect",s,i)}function j4(s,i,o){pr.L(s,i,o);var d=Qa;if(d&&s&&i){var m='link[rel="preload"][as="'+ns(i)+'"]';i==="image"&&o&&o.imageSrcSet?(m+='[imagesrcset="'+ns(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(m+='[imagesizes="'+ns(o.imageSizes)+'"]')):m+='[href="'+ns(s)+'"]';var y=m;switch(i){case"style":y=Wa(s);break;case"script":y=Ja(s)}cs.has(y)||(s=g({rel:"preload",href:i==="image"&&o&&o.imageSrcSet?void 0:s,as:i},o),cs.set(y,s),d.querySelector(m)!==null||i==="style"&&d.querySelector(Cl(y))||i==="script"&&d.querySelector(_l(y))||(i=d.createElement("link"),sn(i,"link",s),Kt(i),d.head.appendChild(i)))}}function N4(s,i){pr.m(s,i);var o=Qa;if(o&&s){var d=i&&typeof i.as=="string"?i.as:"script",m='link[rel="modulepreload"][as="'+ns(d)+'"][href="'+ns(s)+'"]',y=m;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Ja(s)}if(!cs.has(y)&&(s=g({rel:"modulepreload",href:s},i),cs.set(y,s),o.querySelector(m)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(_l(y)))return}d=o.createElement("link"),sn(d,"link",s),Kt(d),o.head.appendChild(d)}}}function T4(s,i,o){pr.S(s,i,o);var d=Qa;if(d&&s){var m=xa(d).hoistableStyles,y=Wa(s);i=i||"default";var T=m.get(y);if(!T){var A={loading:0,preload:null};if(T=d.querySelector(Cl(y)))A.loading=5;else{s=g({rel:"stylesheet",href:s,"data-precedence":i},o),(o=cs.get(y))&&Ym(s,o);var z=T=d.createElement("link");Kt(z),sn(z,"link",s),z._p=new Promise(function(G,re){z.onload=G,z.onerror=re}),z.addEventListener("load",function(){A.loading|=1}),z.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Iu(T,i,d)}T={type:"stylesheet",instance:T,count:1,state:A},m.set(y,T)}}}function E4(s,i){pr.X(s,i);var o=Qa;if(o&&s){var d=xa(o).hoistableScripts,m=Ja(s),y=d.get(m);y||(y=o.querySelector(_l(m)),y||(s=g({src:s,async:!0},i),(i=cs.get(m))&&Km(s,i),y=o.createElement("script"),Kt(y),sn(y,"link",s),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(m,y))}}function C4(s,i){pr.M(s,i);var o=Qa;if(o&&s){var d=xa(o).hoistableScripts,m=Ja(s),y=d.get(m);y||(y=o.querySelector(_l(m)),y||(s=g({src:s,async:!0,type:"module"},i),(i=cs.get(m))&&Km(s,i),y=o.createElement("script"),Kt(y),sn(y,"link",s),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},d.set(m,y))}}function tw(s,i,o,d){var m=(m=de.current)?Uu(m):null;if(!m)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(i=Wa(o.href),o=xa(m).hoistableStyles,d=o.get(i),d||(d={type:"style",instance:null,count:0,state:null},o.set(i,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){s=Wa(o.href);var y=xa(m).hoistableStyles,T=y.get(s);if(T||(m=m.ownerDocument||m,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(s,T),(y=m.querySelector(Cl(s)))&&!y._p&&(T.instance=y,T.state.loading=5),cs.has(s)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},cs.set(s,o),y||_4(m,s,o,T.state))),i&&d===null)throw Error(r(528,""));return T}if(i&&d!==null)throw Error(r(529,""));return null;case"script":return i=o.async,o=o.src,typeof o=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ja(o),o=xa(m).hoistableScripts,d=o.get(i),d||(d={type:"script",instance:null,count:0,state:null},o.set(i,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function Wa(s){return'href="'+ns(s)+'"'}function Cl(s){return'link[rel="stylesheet"]['+s+"]"}function nw(s){return g({},s,{"data-precedence":s.precedence,precedence:null})}function _4(s,i,o,d){s.querySelector('link[rel="preload"][as="style"]['+i+"]")?d.loading=1:(i=s.createElement("link"),d.preload=i,i.addEventListener("load",function(){return d.loading|=1}),i.addEventListener("error",function(){return d.loading|=2}),sn(i,"link",o),Kt(i),s.head.appendChild(i))}function Ja(s){return'[src="'+ns(s)+'"]'}function _l(s){return"script[async]"+s}function sw(s,i,o){if(i.count++,i.instance===null)switch(i.type){case"style":var d=s.querySelector('style[data-href~="'+ns(o.href)+'"]');if(d)return i.instance=d,Kt(d),d;var m=g({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return d=(s.ownerDocument||s).createElement("style"),Kt(d),sn(d,"style",m),Iu(d,o.precedence,s),i.instance=d;case"stylesheet":m=Wa(o.href);var y=s.querySelector(Cl(m));if(y)return i.state.loading|=4,i.instance=y,Kt(y),y;d=nw(o),(m=cs.get(m))&&Ym(d,m),y=(s.ownerDocument||s).createElement("link"),Kt(y);var T=y;return T._p=new Promise(function(A,z){T.onload=A,T.onerror=z}),sn(y,"link",d),i.state.loading|=4,Iu(y,o.precedence,s),i.instance=y;case"script":return y=Ja(o.src),(m=s.querySelector(_l(y)))?(i.instance=m,Kt(m),m):(d=o,(m=cs.get(y))&&(d=g({},o),Km(d,m)),s=s.ownerDocument||s,m=s.createElement("script"),Kt(m),sn(m,"link",d),s.head.appendChild(m),i.instance=m);case"void":return null;default:throw Error(r(443,i.type))}
vendor: 12,155 bytes, line 9
9else i.type==="stylesheet"&&(i.state.loading&4)===0&&(d=i.instance,i.state.loading|=4,Iu(d,o.precedence,s));return i.instance}function Iu(s,i,o){for(var d=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=d.length?d[d.length-1]:null,y=m,T=0;T<d.length;T++){var A=d[T];if(A.dataset.precedence===i)y=A;else if(y!==m)break}y?y.parentNode.insertBefore(s,y.nextSibling):(i=o.nodeType===9?o.head:o,i.insertBefore(s,i.firstChild))}function Ym(s,i){s.crossOrigin==null&&(s.crossOrigin=i.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=i.referrerPolicy),s.title==null&&(s.title=i.title)}function Km(s,i){s.crossOrigin==null&&(s.crossOrigin=i.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=i.referrerPolicy),s.integrity==null&&(s.integrity=i.integrity)}var Fu=null;function rw(s,i,o){if(Fu===null){var d=new Map,m=Fu=new Map;m.set(o,d)}else m=Fu,d=m.get(o),d||(d=new Map,m.set(o,d));if(d.has(s))return d;for(d.set(s,null),o=o.getElementsByTagName(s),m=0;m<o.length;m++){var y=o[m];if(!(y[er]||y[xt]||s==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var T=y.getAttribute(i)||"";T=s+T;var A=d.get(T);A?A.push(y):d.set(T,[y])}}return d}function iw(s,i,o){s=s.ownerDocument||s,s.head.insertBefore(o,i==="title"?s.querySelector("head > title"):null)}function A4(s,i,o){if(o===1||i.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;return i.rel==="stylesheet"?(s=i.disabled,typeof i.precedence=="string"&&s==null):!0;case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function aw(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Al=null;function R4(){}function k4(s,i,o){if(Al===null)throw Error(r(475));var d=Al;if(i.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var m=Wa(o.href),y=s.querySelector(Cl(m));if(y){s=y._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(d.count++,d=Bu.bind(d),s.then(d,d)),i.state.loading|=4,i.instance=y,Kt(y);return}y=s.ownerDocument||s,o=nw(o),(m=cs.get(m))&&Ym(o,m),y=y.createElement("link"),Kt(y);var T=y;T._p=new Promise(function(A,z){T.onload=A,T.onerror=z}),sn(y,"link",o),i.instance=y}d.stylesheets===null&&(d.stylesheets=new Map),d.stylesheets.set(i,s),(s=i.state.preload)&&(i.state.loading&3)===0&&(d.count++,i=Bu.bind(d),s.addEventListener("load",i),s.addEventListener("error",i))}}function O4(){if(Al===null)throw Error(r(475));var s=Al;return s.stylesheets&&s.count===0&&Xm(s,s.stylesheets),0<s.count?function(i){var o=setTimeout(function(){if(s.stylesheets&&Xm(s,s.stylesheets),s.unsuspend){var d=s.unsuspend;s.unsuspend=null,d()}},6e4);return s.unsuspend=i,function(){s.unsuspend=null,clearTimeout(o)}}:null}function Bu(){if(this.count--,this.count===0){if(this.stylesheets)Xm(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var Hu=null;function Xm(s,i){s.stylesheets=null,s.unsuspend!==null&&(s.count++,Hu=new Map,i.forEach(D4,s),Hu=null,Bu.call(s))}function D4(s,i){if(!(i.state.loading&4)){var o=Hu.get(s);if(o)var d=o.get(null);else{o=new Map,Hu.set(s,o);for(var m=s.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<m.length;y++){var T=m[y];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(o.set(T.dataset.precedence,T),d=T)}d&&o.set(null,d)}m=i.instance,T=m.getAttribute("data-precedence"),y=o.get(T)||d,y===d&&o.set(null,m),o.set(T,m),this.count++,d=Bu.bind(this),m.addEventListener("load",d),m.addEventListener("error",d),y?y.parentNode.insertBefore(m,y.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(m,s.firstChild)),i.state.loading|=4}}var Rl={$$typeof:E,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function M4(s,i,o,d,m,y,T,A){this.tag=1,this.containerInfo=s,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=Fo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Fo(0),this.hiddenUpdates=Fo(null),this.identifierPrefix=d,this.onUncaughtError=m,this.onCaughtError=y,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function ow(s,i,o,d,m,y,T,A,z,G,re,ae){return s=new M4(s,i,o,T,A,z,G,ae),i=1,y===!0&&(i|=24),y=Fn(3,null,null,i),s.current=y,y.stateNode=s,i=Rh(),i.refCount++,s.pooledCache=i,i.refCount++,y.memoizedState={element:d,isDehydrated:o,cache:i},Mh(y),s}function lw(s){return s?(s=Ra,s):Ra}function cw(s,i,o,d,m,y){m=lw(m),d.context===null?d.context=m:d.pendingContext=m,d=Dr(i),d.payload={element:o},y=y===void 0?null:y,y!==null&&(d.callback=y),o=Mr(s,d,i),o!==null&&(Gn(o,s,i),al(o,s,i))}function uw(s,i){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var o=s.retryLane;s.retryLane=o!==0&&o<i?o:i}}function Zm(s,i){uw(s,i),(s=s.alternate)&&uw(s,i)}function dw(s){if(s.tag===13){var i=Aa(s,67108864);i!==null&&Gn(i,s,67108864),Zm(s,67108864)}}var qu=!0;function z4(s,i,o,d){var m=P.T;P.T=null;var y=Y.p;try{Y.p=2,Qm(s,i,o,d)}finally{Y.p=y,P.T=m}}function L4(s,i,o,d){var m=P.T;P.T=null;var y=Y.p;try{Y.p=8,Qm(s,i,o,d)}finally{Y.p=y,P.T=m}}function Qm(s,i,o,d){if(qu){var m=Wm(d);if(m===null)Pm(s,i,d,$u,o),hw(s,d);else if(P4(m,s,i,o,d))d.stopPropagation();else if(hw(s,d),i&4&&-1<V4.indexOf(s)){for(;m!==null;){var y=ya(m);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var T=gn(y.pendingLanes);if(T!==0){var A=y;for(A.pendingLanes|=2,A.entangledLanes|=2;T;){var z=1<<31-Me(T);A.entanglements[1]|=z,T&=~z}Fs(y),(at&6)===0&&(_u=Ut()+500,jl(0))}}break;case 13:A=Aa(y,2),A!==null&&Gn(A,y,2),Ru(),Zm(y,2)}if(y=Wm(d),y===null&&Pm(s,i,d,$u,o),y===m)break;m=y}m!==null&&d.stopPropagation()}else Pm(s,i,d,null,o)}}function Wm(s){return s=sh(s),Jm(s)}var $u=null;function Jm(s){if($u=null,s=ga(s),s!==null){var i=l(s);if(i===null)s=null;else{var o=i.tag;if(o===13){if(s=u(i),s!==null)return s;s=null}else if(o===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;s=null}else i!==s&&(s=null)}}return $u=s,null}function fw(s){switch(s){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(ma()){case wi:return 2;case _n:return 8;case L:case q:return 32;case ee:return 268435456;default:return 32}default:return 32}}var ep=!1,Yr=null,Kr=null,Xr=null,kl=new Map,Ol=new Map,Zr=[],V4="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 hw(s,i){switch(s){case"focusin":case"focusout":Yr=null;break;case"dragenter":case"dragleave":Kr=null;break;case"mouseover":case"mouseout":Xr=null;break;case"pointerover":case"pointerout":kl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ol.delete(i.pointerId)}}function Dl(s,i,o,d,m,y){return s===null||s.nativeEvent!==y?(s={blockedOn:i,domEventName:o,eventSystemFlags:d,nativeEvent:y,targetContainers:[m]},i!==null&&(i=ya(i),i!==null&&dw(i)),s):(s.eventSystemFlags|=d,i=s.targetContainers,m!==null&&i.indexOf(m)===-1&&i.push(m),s)}function P4(s,i,o,d,m){switch(i){case"focusin":return Yr=Dl(Yr,s,i,o,d,m),!0;case"dragenter":return Kr=Dl(Kr,s,i,o,d,m),!0;case"mouseover":return Xr=Dl(Xr,s,i,o,d,m),!0;case"pointerover":var y=m.pointerId;return kl.set(y,Dl(kl.get(y)||null,s,i,o,d,m)),!0;case"gotpointercapture":return y=m.pointerId,Ol.set(y,Dl(Ol.get(y)||null,s,i,o,d,m)),!0}return!1}function mw(s){var i=ga(s.target);if(i!==null){var o=l(i);if(o!==null){if(i=o.tag,i===13){if(i=u(o),i!==null){s.blockedOn=i,_r(s.priority,function(){if(o.tag===13){var d=$n();d=ln(d);var m=Aa(o,d);m!==null&&Gn(m,o,d),Zm(o,d)}});return}}else if(i===3&&o.stateNode.current.memoizedState.isDehydrated){s.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}s.blockedOn=null}function Gu(s){if(s.blockedOn!==null)return!1;for(var i=s.targetContainers;0<i.length;){var o=Wm(s.nativeEvent);if(o===null){o=s.nativeEvent;var d=new o.constructor(o.type,o);nh=d,o.target.dispatchEvent(d),nh=null}else return i=ya(o),i!==null&&dw(i),s.blockedOn=o,!1;i.shift()}return!0}function pw(s,i,o){Gu(s)&&o.delete(i)}function U4(){ep=!1,Yr!==null&&Gu(Yr)&&(Yr=null),Kr!==null&&Gu(Kr)&&(Kr=null),Xr!==null&&Gu(Xr)&&(Xr=null),kl.forEach(pw),Ol.forEach(pw)}function Yu(s,i){s.blockedOn===i&&(s.blockedOn=null,ep||(ep=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,U4)))}var Ku=null;function gw(s){Ku!==s&&(Ku=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ku===s&&(Ku=null);for(var i=0;i<s.length;i+=3){var o=s[i],d=s[i+1],m=s[i+2];if(typeof d!="function"){if(Jm(d||o)===null)continue;break}var y=ya(o);y!==null&&(s.splice(i,3),i-=3,Jh(y,{pending:!0,data:m,method:o.method,action:d},d,m))}}))}function Ml(s){function i(z){return Yu(z,s)}Yr!==null&&Yu(Yr,s),Kr!==null&&Yu(Kr,s),Xr!==null&&Yu(Xr,s),kl.forEach(i),Ol.forEach(i);for(var o=0;o<Zr.length;o++){var d=Zr[o];d.blockedOn===s&&(d.blockedOn=null)}for(;0<Zr.length&&(o=Zr[0],o.blockedOn===null);)mw(o),o.blockedOn===null&&Zr.shift();if(o=(s.ownerDocument||s).$$reactFormReplay,o!=null)for(d=0;d<o.length;d+=3){var m=o[d],y=o[d+1],T=m[vt]||null;if(typeof y=="function")T||gw(o);else if(T){var A=null;if(y&&y.hasAttribute("formAction")){if(m=y,T=y[vt]||null)A=T.formAction;else if(Jm(m)!==null)continue}else A=T.action;typeof A=="function"?o[d+1]=A:(o.splice(d,3),d-=3),gw(o)}}}function tp(s){this._internalRoot=s}Xu.prototype.render=tp.prototype.render=function(s){var i=this._internalRoot;if(i===null)throw Error(r(409));var o=i.current,d=$n();cw(o,d,s,i,null,null)},Xu.prototype.unmount=tp.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var i=s.containerInfo;cw(s.current,2,null,s,null,null),Ru(),i[cn]=null}};function Xu(s){this._internalRoot=s}Xu.prototype.unstable_scheduleHydration=function(s){if(s){var i=Un();s={blockedOn:null,target:s,priority:i};for(var o=0;o<Zr.length&&i!==0&&i<Zr[o].priority;o++);Zr.splice(o,0,s),o===0&&mw(s)}};var yw=t.version;if(yw!=="19.1.0")throw Error(r(527,yw,"19.1.0"));Y.findDOMNode=function(s){var i=s._reactInternals;if(i===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=p(i),s=s!==null?h(s):null,s=s===null?null:s.stateNode,s};var I4={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.1.0"};
9if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zu.isDisabled&&Zu.supportsFiber)try{ue=Zu.inject(I4),ye=Zu}catch{}}return Ll.createRoot=function(s,i){if(!a(s))throw Error(r(299));var o=!1,d="",m=Db,y=Mb,T=zb,A=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(y=i.onCaughtError),i.onRecoverableError!==void 0&&(T=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(A=i.unstable_transitionCallbacks)),i=ow(s,1,!1,null,null,o,d,m,y,T,A,null),s[cn]=i.current,Vm(s),new tp(i)},Ll.hydrateRoot=function(s,i,o){if(!a(s))throw Error(r(299));var d=!1,m="",y=Db,T=Mb,A=zb,z=null,G=null;return o!=null&&(o.unstable_strictMode===!0&&(d=!0),o.identifierPrefix!==void 0&&(m=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(T=o.onCaughtError),o.onRecoverableError!==void 0&&(A=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(z=o.unstable_transitionCallbacks),o.formState!==void 0&&(G=o.formState)),i=ow(s,1,!0,i,o??null,d,m,y,T,A,z,G),i.context=lw(null),o=i.current,d=$n(),d=ln(d),m=Dr(d),m.callback=null,Mr(o,m,d),o=d,i.current.lanes=o,Tt(i,o),Fs(i),s[cn]=i.current,Vm(s),new Xu(i)},Ll.version="19.1.0",Ll}var Cw;function Z4(){if(Cw)return sp.exports;Cw=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(),sp.exports=X4(),sp.exports}var Q4=Z4();function W4(e,t){if(e instanceof RegExp)return{keys:!1,pattern:e};var n,r,a,l,u=[],f="",p=e.split("/");for(p[0]||p.shift();a=p.shift();)n=a[0],n==="*"?(u.push(n),f+=a[1]==="?"?"(?:/(.*))?":"/(.*)"):n===":"?(r=a.indexOf("?",1),l=a.indexOf(".",1),u.push(a.substring(1,~r?r:~l?l:a.length)),f+=~r&&!~l?"(?:/([^/]+?))?":"/([^/]+?)",~l&&(f+=(~r?"?":"")+"\\"+a.substring(l))):f+="/"+a;return{keys:u,pattern:new RegExp("^"+f+(t?"(?=$|/)":"/?$"),"i")}}var v=df();const me=Xj(v),ff=B4({__proto__:null,default:me},[v]);var lp={exports:{}},cp={};var _w;function J4(){if(_w)return cp;_w=1;var e=df();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,r=e.useState,a=e.useEffect,l=e.useLayoutEffect,u=e.useDebugValue;function f(x,b){var w=b(),N=r({inst:{value:w,getSnapshot:b}}),S=N[0].inst,j=N[1];return l(function(){S.value=w,S.getSnapshot=b,p(S)&&j({inst:S})},[x,w,b]),a(function(){return p(S)&&j({inst:S}),x(function(){p(S)&&j({inst:S})})},[x]),u(w),w}function p(x){var b=x.getSnapshot;x=x.value;try{var w=b();return!n(x,w)}catch{return!0}}function h(x,b){return b()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return cp.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:g,cp}var Aw;function ek(){return Aw||(Aw=1,lp.exports=J4()),lp.exports}var tk=ek();const nk=ff.useInsertionEffect,sk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",rk=sk?v.useLayoutEffect:v.useEffect,ik=nk||rk,Qj=e=>{const t=v.useRef([e,(...n)=>t[0](...n)]).current;return ik(()=>{t[0]=e}),t[1]},ak="popstate",sy="pushState",ry="replaceState",ok="hashchange",Rw=[ak,sy,ry,ok],lk=e=>{for(const t of Rw)addEventListener(t,e);return()=>{for(const t of Rw)removeEventListener(t,e)}},Wj=(e,t)=>tk.useSyncExternalStore(lk,e,t),kw=()=>location.search,ck=({ssrSearch:e}={})=>Wj(kw,e!=null?()=>e:kw),Ow=()=>location.pathname,uk=({ssrPath:e}={})=>Wj(Ow,e!=null?()=>e:Ow),dk=(e,{replace:t=!1,state:n=null}={})=>history[t?ry:sy](n,"",e),fk=(e={})=>[uk(e),dk],Dw=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Dw]>"u"){for(const e of[sy,ry]){const t=history[e];history[e]=function(){const n=t.apply(this,arguments),r=new Event(e);return r.arguments=arguments,dispatchEvent(r),n}}Object.defineProperty(window,Dw,{value:!0})}const hk=(e,t)=>t.toLowerCase().indexOf(e.toLowerCase())?"~"+t:t.slice(e.length)||"/",Jj=(e="")=>e==="/"?"":e,mk=(e,t)=>e[0]==="~"?e.slice(1):Jj(t)+e,pk=(e="",t)=>hk(Mw(Jj(e)),Mw(t)),Mw=e=>{try{return decodeURI(e)}catch{return e}},eN={hook:fk,searchHook:ck,parser:W4,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,t,n)=>e(t,n)},tN=v.createContext(eN),yc=()=>v.useContext(tN),nN={},sN=v.createContext(nN),gk=()=>v.useContext(sN),hf=e=>{const[t,n]=e.hook(e);return[pk(e.base,t),Qj((r,a)=>e.aroundNav(n,mk(r,e.base),a))]},Co=()=>hf(yc()),rN=(e,t,n,r)=>{const{pattern:a,keys:l}=t instanceof RegExp?{keys:!1,pattern:t}:e(t||"*",r),u=a.exec(n)||[],[f,...p]=u;return f!==void 0?[!0,(()=>{const h=l!==!1?Object.fromEntries(l.map((x,b)=>[x,p[b]])):u.groups;let g={...p};return h&&Object.assign(g,h),g})(),...r?[f]:[]]:[!1,null]},iN=({children:e,...t})=>{const n=yc(),r=t.hook?eN:n;let a=r;const[l,u=t.ssrSearch??""]=t.ssrPath?.split("?")??[];l&&(t.ssrSearch=u,t.ssrPath=l),t.hrefs=t.hrefs??t.hook?.hrefs,t.searchHook=t.searchHook??t.hook?.searchHook;let f=v.useRef({}),p=f.current,h=p;for(let g in r){const x=g==="base"?r[g]+(t[g]??""):t[g]??r[g];p===h&&x!==h[g]&&(f.current=h={...h}),h[g]=x,(x!==r[g]||x!==a[g])&&(a=h)}return v.createElement(tN.Provider,{value:a,children:e})},zw=({children:e,component:t},n)=>t?v.createElement(t,{params:n}):typeof e=="function"?e(n):e,yk=e=>{let t=v.useRef(nN);const n=t.current;return t.current=Object.keys(e).length!==Object.keys(n).length||Object.entries(e).some(([r,a])=>a!==n[r])?e:n},fn=({path:e,nest:t,match:n,...r})=>{const a=yc(),[l]=hf(a),[u,f,p]=n??rN(a.parser,e,l,t),h=yk({...gk(),...f});if(!u)return null;const g=p?v.createElement(iN,{base:p},zw(r,h)):zw(r,h);return v.createElement(sN.Provider,{value:h,children:g})},Xn=v.forwardRef((e,t)=>
9{const n=yc(),[r,a]=hf(n),{to:l="",href:u=l,onClick:f,asChild:p,children:h,className:g,replace:x,state:b,transition:w,...N}=e,S=Qj(C=>{C.ctrlKey||C.metaKey||C.altKey||C.shiftKey||C.button!==0||(f?.(C),C.defaultPrevented||(C.preventDefault(),a(u,e)))}),j=n.hrefs(u[0]==="~"?u.slice(1):n.base+u,n);return p&&v.isValidElement(h)?v.cloneElement(h,{onClick:S,href:j}):v.createElement("a",{...N,onClick:S,href:j,className:g?.call?g(r===u):g,children:h,ref:t})}),aN=e=>Array.isArray(e)?e.flatMap(t=>aN(t&&t.type===v.Fragment?t.props.children:t)):[e],xk=({children:e,location:t})=>{const n=yc(),[r]=hf(n);for(const a of aN(e)){let l=0;if(v.isValidElement(a)&&(l=rN(n.parser,a.props.path,t||r,a.props.nest))[0])return v.cloneElement(a,{match:l})}return null};var _o=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(){}},vk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},bk=class{#e=vk;#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)}},Yi=new bk;function wk(e){setTimeout(e,0)}var Wi=typeof window>"u"||"Deno"in globalThis;function jn(){}function Sk(e,t){return typeof e=="function"?e(t):e}function Qp(e){return typeof e=="number"&&e>=0&&e!==1/0}function oN(e,t){return Math.max(e+(t||0)-Date.now(),0)}function oi(e,t){return typeof e=="function"?e(t):e}function ds(e,t){return typeof e=="function"?e(t):e}function Lw(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:l,queryKey:u,stale:f}=e;if(u){if(r){if(t.queryHash!==iy(u,t.options))return!1}else if(!sc(t.queryKey,u))return!1}if(n!=="all"){const p=t.isActive();if(n==="active"&&!p||n==="inactive"&&p)return!1}return!(typeof f=="boolean"&&t.isStale()!==f||a&&a!==t.state.fetchStatus||l&&!l(t))}function Vw(e,t){const{exact:n,status:r,predicate:a,mutationKey:l}=e;if(l){if(!t.options.mutationKey)return!1;if(n){if(Ji(t.options.mutationKey)!==Ji(l))return!1}else if(!sc(t.options.mutationKey,l))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function iy(e,t){return(t?.queryKeyHashFn||Ji)(e)}function Ji(e){return JSON.stringify(e,(t,n)=>Wp(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function sc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>sc(e[n],t[n])):!1}var jk=Object.prototype.hasOwnProperty;function lN(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=Pw(e)&&Pw(t);if(!r&&!(Wp(e)&&Wp(t)))return t;const l=(r?e:Object.keys(e)).length,u=r?t:Object.keys(t),f=u.length,p=r?new Array(f):{};let h=0;for(let g=0;g<f;g++){const x=r?g:u[g],b=e[x],w=t[x];if(b===w){p[x]=b,(r?g<l:jk.call(e,x))&&h++;continue}if(b===null||w===null||typeof b!="object"||typeof w!="object"){p[x]=w;continue}const N=lN(b,w,n+1);p[x]=N,N===b&&h++}return l===f&&h===l?e:p}function Cd(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 Pw(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Wp(e){if(!Uw(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!Uw(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Uw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Nk(e){return new Promise(t=>{Yi.setTimeout(t,e)})}function Jp(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?lN(e,t):t}function Tk(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ek(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var ay=Symbol();function cN(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===ay?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function oy(e,t){return typeof e=="function"?e(...t):!!e}function Ck(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??=t(),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var _k=class extends _o{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Wi&&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: 21,151 bytes, line 9
9this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},ly=new _k;function eg(){let e,t;const n=new Promise((a,l)=>{e=a,t=l});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var Ak=wk;function Rk(){let e=[],t=0,n=f=>{f()},r=f=>{f()},a=Ak;const l=f=>{t?e.push(f):a(()=>{n(f)})},u=()=>{const f=e;e=[],f.length&&a(()=>{r(()=>{f.forEach(p=>{n(p)})})})};return{batch:f=>{let p;t++;try{p=f()}finally{t--,t||u()}return p},batchCalls:f=>(...p)=>{l(()=>{f(...p)})},schedule:l,setNotifyFunction:f=>{n=f},setBatchNotifyFunction:f=>{r=f},setScheduler:f=>{a=f}}}var Gt=Rk(),kk=class extends _o{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Wi&&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}},_d=new kk;function Ok(e){return Math.min(1e3*2**e,3e4)}function uN(e){return(e??"online")==="online"?_d.isOnline():!0}var tg=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function dN(e){let t=!1,n=0,r;const a=eg(),l=()=>a.status!=="pending",u=S=>{if(!l()){const j=new tg(S);b(j),e.onCancel?.(j)}},f=()=>{t=!0},p=()=>{t=!1},h=()=>ly.isFocused()&&(e.networkMode==="always"||_d.isOnline())&&e.canRun(),g=()=>uN(e.networkMode)&&e.canRun(),x=S=>{l()||(r?.(),a.resolve(S))},b=S=>{l()||(r?.(),a.reject(S))},w=()=>new Promise(S=>{r=j=>{(l()||h())&&S(j)},e.onPause?.()}).then(()=>{r=void 0,l()||e.onContinue?.()}),N=()=>{if(l())return;let S;const j=n===0?e.initialPromise:void 0;try{S=j??e.fn()}catch(C){S=Promise.reject(C)}Promise.resolve(S).then(x).catch(C=>{if(l())return;const _=e.retry??(Wi?0:3),E=e.retryDelay??Ok,R=typeof E=="function"?E(n,C):E,O=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,C);if(t||!O){b(C);return}n++,e.onFail?.(n,C),Nk(R).then(()=>h()?void 0:w()).then(()=>{t?b(C):N()})})};return{promise:a,status:()=>a.status,cancel:u,continue:()=>(r?.(),a),cancelRetry:f,continueRetry:p,canStart:g,start:()=>(g()?N():w().then(N),a)}}var fN=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qp(this.gcTime)&&(this.#e=Yi.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Wi?1/0:300*1e3))}clearGcTimeout(){this.#e&&(Yi.clearTimeout(this.#e),this.#e=void 0)}},Dk=class extends fN{#e;#t;#n;#r;#s;#a;#o;constructor(e){super(),this.#o=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#r=e.client,this.#n=this.#r.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=Fw(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#s?.promise}setOptions(e){if(this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=Fw(this.options);t.data!==void 0&&(this.setState(Iw(t.data,t.dataUpdatedAt)),this.#e=t)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,t){const n=Jp(this.state.data,e,this.options);return this.#i({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#i({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#s?.promise;return this.#s?.cancel(e),t?t.then(jn).catch(jn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>ds(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ay||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>oi(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:!oN(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#s?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#s?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.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.#s&&(this.#o?this.#s.cancel({revert:!0}):this.#s.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#s?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#s)return this.#s.continueRetry(),this.#s.promise}if(e&&this.setOptions(e),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const n=new AbortController,r=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(this.#o=!0,n.signal)})},a=()=>{const f=cN(this.options,t),h=(()=>{const g={client:this.#r,queryKey:this.queryKey,meta:this.meta};return r(g),g})();return this.#o=!1,this.options.persister?this.options.persister(f,h,this):f(h)},u=(()=>{const f={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:a};return r(f),f})();this.options.behavior?.onFetch(u,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==u.fetchOptions?.meta)&&this.#i({type:"fetch",meta:u.fetchOptions?.meta}),this.#s=dN({initialPromise:t?.initialPromise,fn:u.fetchFn,onCancel:f=>{f instanceof tg&&f.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(f,p)=>{this.#i({type:"failed",failureCount:f,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:u.options.retry,retryDelay:u.options.retryDelay,networkMode:u.options.networkMode,canRun:()=>!0});try{const f=await this.#s.start();if(f===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(f),this.#n.config.onSuccess?.(f,this),this.#n.config.onSettled?.(f,this.state.error,this),f}catch(f){if(f instanceof tg){if(f.silent)return this.#s.promise;if(f.revert){if(this.state.data===void 0)throw f;return this.state.data}}throw this.#i({type:"error",error:f}),this.#n.config.onError?.(f,this),this.#n.config.onSettled?.(this.state.data,f,this),f}finally{this.scheduleGc()}}#i(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,...hN(n.data,this.options),fetchMeta:e.meta??null};case"success":const r={...n,...Iw(e.data,e.dataUpdatedAt),dataUpdateCount:n.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?r:void 0,r;case"error":const a=e.error;return{...n,error:a,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:a,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...n,isInvalidated:!0};case"setState":return{...n,...e.state}}};this.state=t(this.state),Gt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function hN(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:uN(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function Iw(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Fw(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Mk=class extends _o{constructor(e,t){super(),this.options=t,this.#e=e,this.#i=null,this.#o=eg(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#s;#a;#o;#i;#p;#f;#h;#c;#u;#l;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Bw(this.#t,this.options)?this.#d():this.updateResult(),this.#v())}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.#b(),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 ds(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&&!Cd(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const r=this.hasListeners();r&&Hw(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),r&&(this.#t!==n||ds(this.options.enabled,this.#t)!==ds(t.enabled,this.#t)||oi(this.options.staleTime,this.#t)!==oi(t.staleTime,this.#t))&&this.#g();const a=this.#y();r&&(this.#t!==n||ds(this.options.enabled,this.#t)!==ds(t.enabled,this.#t)||a!==this.#l)&&this.#x(a)}getOptimisticResult(e){const t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return Lk(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,r)=>(this.trackProp(r),t?.(r),r==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#o.status==="pending"&&this.#o.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,r))})}trackProp(e){this.#m.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.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(jn)),t}#g(){this.#b();const e=oi(this.options.staleTime,this.#t);if(Wi||this.#r.isStale||!Qp(e))return;const n=oN(this.#r.dataUpdatedAt,e)+1;this.#c=Yi.setTimeout(()=>{this.#r.isStale||this.updateResult()},n)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#x(e){this.#w(),this.#l=e,!(Wi||ds(this.options.enabled,this.#t)===!1||!Qp(this.#l)||this.#l===0)&&(this.#u=Yi.setInterval(()=>{(this.options.refetchIntervalInBackground||ly.isFocused())&&this.#d()},this.#l))}#v(){this.#g(),this.#x(this.#y())}#b(){this.#c&&(Yi.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(Yi.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,r=this.options,a=this.#r,l=this.#s,u=this.#a,p=e!==n?e.state:this.#n,{state:h}=e;let g={...h},x=!1,b;if(t._optimisticResults){const D=this.hasListeners(),F=!D&&Bw(e,t),W=D&&Hw(e,n,t,r);(F||W)&&(g={...g,...hN(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:w,errorUpdatedAt:N,status:S}=g;b=g.data;let j=!1;if(t.placeholderData!==void 0&&b===void 0&&S==="pending"){let D;a?.isPlaceholderData&&t.placeholderData===u?.placeholderData?(D=a.data,j=!0):D=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,D!==void 0&&(S="success",b=Jp(a?.data,D,t),x=!0)}if(t.select&&b!==void 0&&!j)if(a&&b===l?.data&&t.select===this.#p)b=this.#f;else try{this.#p=t.select,b=t.select(b),b=Jp(a?.data,b,t),this.#f=b,this.#i=null}catch(D){this.#i=D}this.#i&&(w=this.#i,b=this.#f,N=Date.now(),S="error");const C=g.fetchStatus==="fetching",_=S==="pending",E=S==="error",R=_&&C,O=b!==void 0,V={status:S,fetchStatus:g.fetchStatus,isPending:_,isSuccess:S==="success",isError:E,isInitialLoading:R,isLoading:R,data:b,dataUpdatedAt:g.dataUpdatedAt,error:w,errorUpdatedAt:N,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:C,isRefetching:C&&!_,isLoadingError:E&&!O,isPaused:g.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:E&&O,isStale:cy(e,t),refetch:this.refetch,promise:this.#o,isEnabled:ds(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const D=V.data!==void 0,F=V.status==="error"&&!D,W=ne=>{F?ne.reject(V.error):D&&ne.resolve(V.data)},Q=()=>{const ne=this.#o=V.promise=eg();W(ne)},H=this.#o;switch(H.status){case"pending":e.queryHash===n.queryHash&&W(H);break;case"fulfilled":(F||V.data!==H.value)&&Q();break;case"rejected":(!F||V.error!==H.reason)&&Q();break}}return V}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.#h=this.#t),Cd(t,e))return;this.#r=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:r}=this.options,a=typeof r=="function"?r():r;if(a==="all"||!a&&!this.#m.size)return!0;const l=new Set(a??this.#m);return this.options.throwOnError&&l.add("error"),Object.keys(this.#r).some(u=>{const f=u;return this.#r[f]!==e[f]&&l.has(f)})};this.#j({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.#v()}#j(e){Gt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function zk(e,t){return ds(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function Bw(e,t){return zk(e,t)||e.state.data!==void 0&&ng(e,t,t.refetchOnMount)}function ng(e,t,n){if(ds(t.enabled,e)!==!1&&oi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&cy(e,t)}return!1}function Hw(e,t,n,r){return(e!==t||ds(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&cy(e,n)}function cy(e,t){return ds(t.enabled,e)!==!1&&e.isStaleByTime(oi(t.staleTime,e))}function Lk(e,t){return!Cd(e.getCurrentResult(),t)}function qw(e){return{onFetch:(t,n)=>{const r=t.options,a=t.fetchOptions?.meta?.fetchMore?.direction,l=t.state.data?.pages||[],u=t.state.data?.pageParams||[];let f={pages:[],pageParams:[]},p=0;const h=async()=>{let g=!1;const x=N=>{Ck(N,()=>t.signal,()=>g=!0)},b=cN(t.options,t.fetchOptions),w=async(N,S,j)=>{if(g)return Promise.reject();if(S==null&&N.pages.length)return Promise.resolve(N);const _=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:S,direction:j?"backward":"forward",meta:t.options.meta};return x(M),M})(),E=await b(_),{maxPages:R}=t.options,O=j?Ek:Tk;return{pages:O(N.pages,E,R),pageParams:O(N.pageParams,S,R)}};if(a&&l.length){const N=a==="backward",S=N?Vk:$w,j={pages:l,pageParams:u},C=S(r,j);f=await w(j,C,N)}else{const N=e??l.length;do{const S=p===0?u[0]??r.initialPageParam:$w(r,f);if(p>0&&S==null)break;f=await w(f,S),p++}while(p<N)}return f};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function $w(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Vk(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Pk=class extends fN{#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||mN(),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=dN({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(l,u)=>{this.#s({type:"failed",failureCount:l,error:u})},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 r=this.state.status==="pending",a=!this.#r.canStart();try{if(r)t();else{this.#s({type:"pending",variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);const u=await this.options.onMutate?.(e,n);u!==this.state.context&&this.#s({type:"pending",context:u,variables:e,isPaused:a})}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(u){Promise.reject(u)}try{await this.options.onError?.(l,e,this.state.context,n)}catch(u){Promise.reject(u)}try{await this.#n.config.onSettled?.(void 0,l,this.state.variables,this.state.context,this,n)}catch(u){Promise.reject(u)}try{await this.options.onSettled?.(void 0,l,e,this.state.context,n)}catch(u){Promise.reject(u)}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),Gt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function mN(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Uk=class extends _o{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 r=new Pk({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}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 r=n.indexOf(e);r!==-1&&n.splice(r,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 r=this.#t.get(t)?.find(a=>a.state.status==="pending");return!r||r===e}else return!0}runNext(e){const t=Qu(e);return typeof t=="string"?this.#t.get(t)?.find(r=>
9r!==e&&r.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Gt.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=>Vw(t,n))}findAll(e={}){return this.getAll().filter(t=>Vw(e,t))}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return Gt.batch(()=>Promise.all(e.map(t=>t.continue().catch(jn))))}};function Qu(e){return e.options.scope?.id}var Ik=class extends _o{#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),Cd(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&Ji(n.mutationKey)!==Ji(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??mN();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){Gt.batch(()=>{if(this.#r&&this.hasListeners()){const n=this.#t.variables,r=this.#t.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(t?.type==="success"){try{this.#r.onSuccess?.(t.data,n,r,a)}catch(l){Promise.reject(l)}
vendor: 5,802 bytes, line 9
9try{this.#r.onSettled?.(t.data,null,n,r,a)}catch(l){Promise.reject(l)}}else if(t?.type==="error"){try{this.#r.onError?.(t.error,n,r,a)}catch(l){Promise.reject(l)}try{this.#r.onSettled?.(void 0,t.error,n,r,a)}catch(l){Promise.reject(l)}}}this.listeners.forEach(n=>{n(this.#t)})})}},Fk=class extends _o{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const r=t.queryKey,a=t.queryHash??iy(r,t);let l=this.get(a);return l||(l=new Dk({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),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(){Gt.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=>Lw(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>Lw(e,n)):t}notify(e){Gt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Gt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Bk=class{#e;#t;#n;#r;#s;#a;#o;#i;constructor(e={}){this.#e=e.queryCache||new Fk,this.#t=e.mutationCache||new Uk,this.#n=e.defaultOptions||{},this.#r=new Map,this.#s=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=ly.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=_d.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#i?.(),this.#i=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),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(oi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),l=this.#e.get(r.queryHash)?.state.data,u=Sk(t,l);if(u!==void 0)return this.#e.build(this,r).setData(u,{...n,manual:!0})}setQueriesData(e,t,n){return Gt.batch(()=>this.#e.findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){const t=this.#e;Gt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return Gt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Gt.batch(()=>this.#e.findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(jn).catch(jn)}invalidateQueries(e,t={}){return Gt.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},r=Gt.batch(()=>this.#e.findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let l=a.fetch(void 0,n);return n.throwOnError||(l=l.catch(jn)),a.state.fetchStatus==="paused"?Promise.resolve():l}));return Promise.all(r).then(jn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(oi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(jn).catch(jn)}fetchInfiniteQuery(e){return e.behavior=qw(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(jn).catch(jn)}ensureInfiniteQueryData(e){return e.behavior=qw(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return _d.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(Ji(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(r=>{sc(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){this.#s.set(Ji(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#s.values()],n={};return t.forEach(r=>{sc(e,r.mutationKey)&&Object.assign(n,r.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=iy(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===ay&&(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()}},pN=v.createContext(void 0),Tr=e=>{const t=v.useContext(pN);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Hk=({client:e,children:t})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(pN.Provider,{value:e,children:t})),gN=v.createContext(!1),qk=()=>v.useContext(gN);gN.Provider;function $k(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}
9var Gk=v.createContext($k()),Yk=()=>v.useContext(Gk),Kk=(e,t,n)=>{const r=n?.state.error&&typeof e.throwOnError=="function"?oy(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Xk=e=>{v.useEffect(()=>{e.clearReset()},[e])},Zk=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||oy(n,[e.error,r])),Qk=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Wk=(e,t)=>e.isLoading&&e.isFetching&&!t,Jk=(e,t)=>e?.suspense&&t.isPending,Gw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function eO(e,t,n){const r=qk(),a=Yk(),l=Tr(),u=l.defaultQueryOptions(e);l.getDefaultOptions().queries?._experimental_beforeQuery?.(u);const f=l.getQueryCache().get(u.queryHash);u._optimisticResults=r?"isRestoring":"optimistic",Qk(u),Kk(u,a,f),Xk(a);const p=!l.getQueryCache().get(u.queryHash),[h]=v.useState(()=>new t(l,u)),g=h.getOptimisticResult(u),x=!r&&e.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(b=>{const w=x?h.subscribe(Gt.batchCalls(b)):jn;return h.updateResult(),w},[h,x]),()=>h.getCurrentResult(),()=>h.getCurrentResult()),v.useEffect(()=>{h.setOptions(u)},[u,h]),Jk(u,g))throw Gw(u,h,a);if(Zk({result:g,errorResetBoundary:a,throwOnError:u.throwOnError,query:f,suspense:u.suspense}))throw g.error;return l.getDefaultOptions().queries?._experimental_afterQuery?.(u,g),u.experimental_prefetchInRender&&!Wi&&Wk(g,r)&&(p?Gw(u,h,a):f?.promise)?.catch(jn).finally(()=>{h.updateResult()}),u.notifyOnChangeProps?g:h.trackResult(g)}function ua(e,t){return eO(e,Mk)}function xc(e,t){const n=Tr(),[r]=v.useState(()=>new Ik(n,e));v.useEffect(()=>{r.setOptions(e)},[r,e]);const a=v.useSyncExternalStore(v.useCallback(u=>r.subscribe(Gt.batchCalls(u)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),l=v.useCallback((u,f)=>{r.mutate(u,f).catch(jn)},[r]);if(a.error&&oy(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:l,mutateAsync:a.mutate}}const tO=1,nO=1e6;let up=0;function sO(){return up=(up+1)%Number.MAX_SAFE_INTEGER,up.toString()}const dp=new Map,Yw=e=>{if(dp.has(e))return;const t=setTimeout(()=>{dp.delete(e),Gl({type:"REMOVE_TOAST",toastId:e})},nO);dp.set(e,t)},rO=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,tO)};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?Yw(n):e.toasts.forEach(r=>{Yw(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}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 Gl(e){pd=rO(pd,e),md.forEach(t=>{t(pd)})}function iO({...e}){const t=sO(),n=a=>Gl({type:"UPDATE_TOAST",toast:{...a,id:t}}),r=()=>Gl({type:"DISMISS_TOAST",toastId:t});return Gl({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:a=>{a||r()}}}),{id:t,dismiss:r,update:n}}function Vn(){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:iO,dismiss:n=>Gl({type:"DISMISS_TOAST",toastId:n})}}var Ts=Zj();const aO=Xj(Ts);function Fe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(a){if(e?.(a),n===!1||!a.defaultPrevented)return t?.(a)}}function Kw(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function uy(...e){return t=>{let n=!1;const r=e.map(a=>{const l=Kw(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<r.length;a++){const l=r[a];typeof l=="function"?l():Kw(e[a],null)}}}}function pt(...e){return v.useCallback(uy(...e),e)}function oO(e,t){const n=v.createContext(t),r=l=>{const{children:u,...f}=l,p=v.useMemo(()=>f,Object.values(f));return c.jsx(n.Provider,{value:p,children:u})};r.displayName=e+"Provider";function a(l){const u=v.useContext(n);if(u)return u;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[r,a]}function da(e,t=[]){let n=[];function r(l,u){const f=v.createContext(u),p=n.length;n=[...n,u];const h=x=>{const{scope:b,children:w,...N}=x,S=b?.[e]?.[p]||f,j=v.useMemo(()=>N,Object.values(N));return c.jsx(S.Provider,{value:j,children:w})};h.displayName=l+"Provider";function g(x,b){const w=b?.[e]?.[p]||f,N=v.useContext(w);if(N)return N;if(u!==void 0)return u;throw new Error(`\`${x}\` must be used within \`${l}\``)}return[h,g]}const a=()=>{const l=n.map(u=>v.createContext(u));return function(f){const p=f?.[e]||l;return v.useMemo(()=>({[`__scope${e}`]:{...f,[e]:p}}),[f,p])}};return a.scopeName=e,[r,lO(a,...t)]}function lO(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(l){const u=r.reduce((f,{useScope:p,scopeName:h})=>{const x=p(l)[`__scope${h}`];return{...f,...x}},{});return v.useMemo(()=>({[`__scope${t.scopeName}`]:u}),[u])}};return n.scopeName=t.scopeName,n}function rc(e){const t=cO(e),n=v.forwardRef((r,a)=>{const{children:l,...u}=r,f=v.Children.toArray(l),p=f.find(dO);if(p){const h=p.props.children,g=f.map(x=>x===p?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:x);return c.jsx(t,{...u,ref:a,children:v.isValidElement(h)?v.cloneElement(h,void 0,g):null})}return c.jsx(t,{...u,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}function cO(e){const t=v.forwardRef((n,r)=>{const{children:a,...l}=n;if(v.isValidElement(a)){const u=hO(a),f=fO(l,a.props);return a.type!==v.Fragment&&(f.ref=r?uy(r,u):u),v.cloneElement(a,f)}return v.Children.count(a)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var yN=Symbol("radix.slottable");function uO(e){const t=({children:n})=>c.jsx(c.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=yN,t}function dO(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===yN}function fO(e,t){const n={...t};for(const r in t){const a=e[r],l=t[r];/^on[A-Z]/.test(r)?a&&l?n[r]=(...f)=>{const p=l(...f);return a(...f),p}:a&&(n[r]=a):r==="style"?n[r]={...a,...l}
vendor: 8,892 bytes, line 9
9:r==="className"&&(n[r]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function hO(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)}function xN(e){const t=e+"CollectionProvider",[n,r]=da(t),[a,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),u=S=>{const{scope:j,children:C}=S,_=me.useRef(null),E=me.useRef(new Map).current;return c.jsx(a,{scope:j,itemMap:E,collectionRef:_,children:C})};u.displayName=t;const f=e+"CollectionSlot",p=rc(f),h=me.forwardRef((S,j)=>{const{scope:C,children:_}=S,E=l(f,C),R=pt(j,E.collectionRef);return c.jsx(p,{ref:R,children:_})});h.displayName=f;const g=e+"CollectionItemSlot",x="data-radix-collection-item",b=rc(g),w=me.forwardRef((S,j)=>{const{scope:C,children:_,...E}=S,R=me.useRef(null),O=pt(j,R),M=l(g,C);return me.useEffect(()=>(M.itemMap.set(R,{ref:R,...E}),()=>{M.itemMap.delete(R)})),c.jsx(b,{[x]:"",ref:O,children:_})});w.displayName=g;function N(S){const j=l(e+"CollectionConsumer",S);return me.useCallback(()=>{const _=j.collectionRef.current;if(!_)return[];const E=Array.from(_.querySelectorAll(`[${x}]`));return Array.from(j.itemMap.values()).sort((M,V)=>E.indexOf(M.ref.current)-E.indexOf(V.ref.current))},[j.collectionRef,j.itemMap])}return[{Provider:u,Slot:h,ItemSlot:w},N,r]}var mO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],We=mO.reduce((e,t)=>{const n=rc(`Primitive.${t}`),r=v.forwardRef((a,l)=>{const{asChild:u,...f}=a,p=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(p,{...f,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vN(e,t){e&&Ts.flushSync(()=>e.dispatchEvent(t))}function _s(e){const t=v.useRef(e);return v.useEffect(()=>{t.current=e}),v.useMemo(()=>(...n)=>t.current?.(...n),[])}function pO(e,t=globalThis?.document){const n=_s(e);v.useEffect(()=>{const r=a=>{a.key==="Escape"&&n(a)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var gO="DismissableLayer",sg="dismissableLayer.update",yO="dismissableLayer.pointerDownOutside",xO="dismissableLayer.focusOutside",Xw,bN=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vc=v.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:a,onFocusOutside:l,onInteractOutside:u,onDismiss:f,...p}=e,h=v.useContext(bN),[g,x]=v.useState(null),b=g?.ownerDocument??globalThis?.document,[,w]=v.useState({}),N=pt(t,V=>x(V)),S=Array.from(h.layers),[j]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),C=S.indexOf(j),_=g?S.indexOf(g):-1,E=h.layersWithOutsidePointerEventsDisabled.size>0,R=_>=C,O=bO(V=>{const D=V.target,F=[...h.branches].some(W=>W.contains(D));!R||F||(a?.(V),u?.(V),V.defaultPrevented||f?.())},b),M=wO(V=>{const D=V.target;[...h.branches].some(W=>W.contains(D))||(l?.(V),u?.(V),V.defaultPrevented||f?.())},b);return pO(V=>{_===h.layers.size-1&&(r?.(V),!V.defaultPrevented&&f&&(V.preventDefault(),f()))},b),v.useEffect(()=>{if(g)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(Xw=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(g)),h.layers.add(g),Zw(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=Xw)}},[g,b,n,h]),v.useEffect(()=>()=>{g&&(h.layers.delete(g),h.layersWithOutsidePointerEventsDisabled.delete(g),Zw())},[g,h]),v.useEffect(()=>{const V=()=>w({});return document.addEventListener(sg,V),()=>document.removeEventListener(sg,V)},[]),c.jsx(We.div,{...p,ref:N,style:{pointerEvents:E?R?"auto":"none":void 0,...e.style},onFocusCapture:Fe(e.onFocusCapture,M.onFocusCapture),onBlurCapture:Fe(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:Fe(e.onPointerDownCapture,O.onPointerDownCapture)})});vc.displayName=gO;var vO="DismissableLayerBranch",wN=v.forwardRef((e,t)=>{const n=v.useContext(bN),r=v.useRef(null),a=pt(t,r);return v.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),c.jsx(We.div,{...e,ref:a})});wN.displayName=vO;function bO(e,t=globalThis?.document){const n=_s(e),r=v.useRef(!1),a=v.useRef(()=>{});return v.useEffect(()=>{const l=f=>{if(f.target&&!r.current){let p=function(){SN(yO,n,h,{discrete:!0})};const h={originalEvent:f};f.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=p,t.addEventListener("click",a.current,{once:!0})):p()}else t.removeEventListener("click",a.current);r.current=!1},u=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(u),t.removeEventListener("pointerdown",l),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function wO(e,t=globalThis?.document){const n=_s(e),r=v.useRef(!1);return v.useEffect(()=>{const a=l=>{l.target&&!r.current&&SN(xO,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Zw(){const e=new CustomEvent(sg);document.dispatchEvent(e)}function SN(e,t,n,{discrete:r}){const a=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?vN(a,l):a.dispatchEvent(l)}var SO=vc,jO=wN,an=globalThis?.document?v.useLayoutEffect:()=>{},NO="Portal",bc=v.forwardRef((e,t)=>{const{container:n,...r}=e,[a,l]=v.useState(!1);an(()=>l(!0),[]);const u=n||a&&globalThis?.document?.body;return u?aO.createPortal(c.jsx(We.div,{...r,ref:t}),u):null});bc.displayName=NO;function TO(e,t){return v.useReducer((n,r)=>t[n][r]??n,e)}var gi=e=>{const{present:t,children:n}=e,r=EO(t),a=typeof n=="function"?n({present:r.isPresent}):v.Children.only(n),l=pt(r.ref,CO(a));return typeof n=="function"||r.isPresent?v.cloneElement(a,{ref:l}):null};gi.displayName="Presence";function EO(e){const[t,n]=v.useState(),r=v.useRef(null),a=v.useRef(e),l=v.useRef("none"),u=e?"mounted":"unmounted",[f,p]=TO(u,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const h=Wu(r.current);l.current=f==="mounted"?h:"none"},[f]),an(()=>{const h=r.current,g=a.current;if(g!==e){const b=l.current,w=Wu(h);e?p("MOUNT"):w==="none"||h?.display==="none"?p("UNMOUNT"):p(g&&b!==w?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,p]),an(()=>{if(t){let h;const g=t.ownerDocument.defaultView??window,x=w=>{const S=Wu(r.current).includes(CSS.escape(w.animationName));if(w.target===t&&S&&(p("ANIMATION_END"),!a.current)){const j=t.style.animationFillMode;t.style.animationFillMode="forwards",h=g.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=j)})}},b=w=>{w.target===t&&(l.current=Wu(r.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",x),t.addEventListener("animationend",x),()=>{g.clearTimeout(h),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",x),t.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[t,p]),{isPresent:["mounted","unmountSuspended"].includes(f),ref:v.useCallback(h=>{r.current=h?getComputedStyle(h):null,n(h)},[])}}function Wu(e){return e?.animationName||"none"}function CO(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)}var _O=ff[" useInsertionEffect ".trim().toString()]||an;function ic({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[a,l,u]=AO({defaultProp:t,onChange:n}),f=e!==void 0,p=f?e:a;{const g=v.useRef(e!==void 0);v.useEffect(()=>{const x=g.current;x!==f&&console.warn(`${r} is changing from ${x?"controlled":"uncontrolled"} to ${f?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),g.current=f},[f,r])}const h=v.useCallback(g=>{if(f){const x=RO(g)?g(e):g;x!==e&&u.current?.(x)}else l(g)},[f,e,l,u]);return[p,h]}function AO({defaultProp:e,onChange:t}){const[n,r]=v.useState(e),a=v.useRef(n),l=v.useRef(t);return _O(()=>{l.current=t},[t]),v.useEffect(()=>{a.current!==n&&(l.current?.(n),a.current=n)},[n,a]),[n,r,l]}function RO(e){return typeof e=="function"}var jN=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"}),kO="VisuallyHidden",mf=v.forwardRef((e,t)=>
9c.jsx(We.span,{...e,ref:t,style:{...jN,...e.style}}));mf.displayName=kO;var OO=mf,dy="ToastProvider",[fy,DO,MO]=xN("Toast"),[NN]=da("Toast",[MO]),[zO,pf]=NN(dy),TN=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:a="right",swipeThreshold:l=50,children:u}=e,[f,p]=v.useState(null),[h,g]=v.useState(0),x=v.useRef(!1),b=v.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${dy}\`. Expected non-empty \`string\`.`),c.jsx(fy.Provider,{scope:t,children:c.jsx(zO,{scope:t,label:n,duration:r,swipeDirection:a,swipeThreshold:l,toastCount:h,viewport:f,onViewportChange:p,onToastAdd:v.useCallback(()=>g(w=>w+1),[]),onToastRemove:v.useCallback(()=>g(w=>w-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:b,children:u})})};TN.displayName=dy;var EN="ToastViewport",LO=["F8"],rg="toast.viewportPause",ig="toast.viewportResume",CN=v.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=LO,label:a="Notifications ({hotkey})",...l}=e,u=pf(EN,n),f=DO(n),p=v.useRef(null),h=v.useRef(null),g=v.useRef(null),x=v.useRef(null),b=pt(t,x,u.onViewportChange),w=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),N=u.toastCount>0;v.useEffect(()=>{const j=C=>{r.length!==0&&r.every(E=>C[E]||C.code===E)&&x.current?.focus()};return document.addEventListener("keydown",j),()=>document.removeEventListener("keydown",j)},[r]),v.useEffect(()=>{const j=p.current,C=x.current;if(N&&j&&C){const _=()=>{if(!u.isClosePausedRef.current){const M=new CustomEvent(rg);C.dispatchEvent(M),u.isClosePausedRef.current=!0}},E=()=>{if(u.isClosePausedRef.current){const M=new CustomEvent(ig);C.dispatchEvent(M),u.isClosePausedRef.current=!1}},R=M=>{!j.contains(M.relatedTarget)&&E()},O=()=>{j.contains(document.activeElement)||E()};return j.addEventListener("focusin",_),j.addEventListener("focusout",R),j.addEventListener("pointermove",_),j.addEventListener("pointerleave",O),window.addEventListener("blur",_),window.addEventListener("focus",E),()=>{j.removeEventListener("focusin",_),j.removeEventListener("focusout",R),j.removeEventListener("pointermove",_),j.removeEventListener("pointerleave",O),window.removeEventListener("blur",_),window.removeEventListener("focus",E)}}},[N,u.isClosePausedRef]);const S=v.useCallback(({tabbingDirection:j})=>{const _=f().map(E=>{const R=E.ref.current,O=[R,...XO(R)];return j==="forwards"?O:O.reverse()});return(j==="forwards"?_.reverse():_).flat()},[f]);return v.useEffect(()=>{const j=x.current;if(j){const C=_=>{const E=_.altKey||_.ctrlKey||_.metaKey;if(_.key==="Tab"&&!E){const O=document.activeElement,M=_.shiftKey;if(_.target===j&&M){h.current?.focus();return}const F=S({tabbingDirection:M?"backwards":"forwards"}),W=F.findIndex(Q=>Q===O);fp(F.slice(W+1))?_.preventDefault():M?h.current?.focus():g.current?.focus()}};return j.addEventListener("keydown",C),()=>j.removeEventListener("keydown",C)}},[f,S]),c.jsxs(jO,{ref:p,role:"region","aria-label":a.replace("{hotkey}",w),tabIndex:-1,style:{pointerEvents:N?void 0:"none"},children:[N&&c.jsx(ag,{ref:h,onFocusFromOutsideViewport:()=>{const j=S({tabbingDirection:"forwards"});fp(j)}}),c.jsx(fy.Slot,{scope:n,children:c.jsx(We.ol,{tabIndex:-1,...l,ref:b})}),N&&c.jsx(ag,{ref:g,onFocusFromOutsideViewport:()=>{const j=S({tabbingDirection:"backwards"});fp(j)}})]})});CN.displayName=EN;var _N="ToastFocusProxy",ag=v.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...a}=e,l=pf(_N,n);return c.jsx(mf,{tabIndex:0,...a,ref:t,style:{position:"fixed"},onFocus:u=>{const f=u.relatedTarget;!l.viewport?.contains(f)&&r()}})});ag.displayName=_N;var wc="Toast",VO="toast.swipeStart",PO="toast.swipeMove",UO="toast.swipeCancel",IO="toast.swipeEnd",AN=v.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:a,onOpenChange:l,...u}=e,[f,p]=ic({prop:r,defaultProp:a??!0,onChange:l,caller:wc});return c.jsx(gi,{present:n||f,children:c.jsx(HO,{open:f,...u,ref:t,onClose:()=>p(!1),onPause:_s(e.onPause),onResume:_s(e.onResume),onSwipeStart:Fe(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Fe(e.onSwipeMove,h=>{const{x:g,y:x}=h.detail.delta;
9h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${g}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:Fe(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Fe(e.onSwipeEnd,h=>{const{x:g,y:x}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${g}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),p(!1)})})})});AN.displayName=wc;var[FO,BO]=NN(wc,{onClose(){}}),HO=v.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:a,open:l,onClose:u,onEscapeKeyDown:f,onPause:p,onResume:h,onSwipeStart:g,onSwipeMove:x,onSwipeCancel:b,onSwipeEnd:w,...N}=e,S=pf(wc,n),[j,C]=v.useState(null),_=pt(t,te=>C(te)),E=v.useRef(null),R=v.useRef(null),O=a||S.duration,M=v.useRef(0),V=v.useRef(O),D=v.useRef(0),{onToastAdd:F,onToastRemove:W}=S,Q=_s(()=>{j?.contains(document.activeElement)&&S.viewport?.focus(),u()}),H=v.useCallback(te=>{!te||te===1/0||(window.clearTimeout(D.current),M.current=new Date().getTime(),D.current=window.setTimeout(Q,te))},[Q]);v.useEffect(()=>{const te=S.viewport;if(te){const oe=()=>{H(V.current),h?.()},P=()=>{const Y=new Date().getTime()-M.current;V.current=V.current-Y,window.clearTimeout(D.current),p?.()};return te.addEventListener(rg,P),te.addEventListener(ig,oe),()=>{te.removeEventListener(rg,P),te.removeEventListener(ig,oe)}}},[S.viewport,O,p,h,H]),v.useEffect(()=>{l&&!S.isClosePausedRef.current&&H(O)},[l,O,S.isClosePausedRef,H]),v.useEffect(()=>(F(),()=>W()),[F,W]);const ne=v.useMemo(()=>j?LN(j):null,[j]);return S.viewport?c.jsxs(c.Fragment,{children:[ne&&c.jsx(qO,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:ne}),c.jsx(FO,{scope:n,onClose:Q,children:Ts.createPortal(c.jsx(fy.ItemSlot,{scope:n,children:c.jsx(SO,{asChild:!0,onEscapeKeyDown:Fe(f,()=>{S.isFocusedToastEscapeKeyDownRef.current||Q(),S.isFocusedToastEscapeKeyDownRef.current=!1}),children:c.jsx(We.li,{tabIndex:0,"data-state":l?"open":"closed","data-swipe-direction":S.swipeDirection,...N,ref:_,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Fe(e.onKeyDown,te=>{te.key==="Escape"&&(f?.(te.nativeEvent),te.nativeEvent.defaultPrevented||(S.isFocusedToastEscapeKeyDownRef.current=!0,Q()))}),onPointerDown:Fe(e.onPointerDown,te=>{te.button===0&&(E.current={x:te.clientX,y:te.clientY})}),onPointerMove:Fe(e.onPointerMove,te=>{if(!E.current)return;const oe=te.clientX-E.current.x,P=te.clientY-E.current.y,Y=!!R.current,Z=["left","right"].includes(S.swipeDirection),le=["left","up"].includes(S.swipeDirection)?Math.min:Math.max,k=Z?le(0,oe):0,I=Z?0:le(0,P),J=te.pointerType==="touch"?10:2,se={x:k,y:I},ce={originalEvent:te,delta:se};Y?(R.current=se,Ju(PO,x,ce,{discrete:!1})):Qw(se,S.swipeDirection,J)?(R.current=se,Ju(VO,g,ce,{discrete:!1}),te.target.setPointerCapture(te.pointerId)):(Math.abs(oe)>J||Math.abs(P)>J)&&(E.current=null)}),onPointerUp:Fe(e.onPointerUp,te=>{const oe=R.current,P=te.target;if(P.hasPointerCapture(te.pointerId)&&P.releasePointerCapture(te.pointerId),R.current=null,E.current=null,oe){const Y=te.currentTarget,Z={originalEvent:te,delta:oe};Qw(oe,S.swipeDirection,S.swipeThreshold)?Ju(IO,w,Z,{discrete:!0}):Ju(UO,b,Z,{discrete:!0}),Y.addEventListener("click",le=>le.preventDefault(),{once:!0})}})})})}),S.viewport)})]}):null}),qO=e=>{const{__scopeToast:t,children:n,...r}=e,a=pf(wc,t),[l,u]=v.useState(!1),[f,p]=v.useState(!1);return YO(()=>u(!0)),v.useEffect(()=>{const h=window.setTimeout(()=>p(!0),1e3);return()=>window.clearTimeout(h)},[]),f?null:c.jsx(bc,{asChild:!0,children:c.jsx(mf,{...r,children:l&&c.jsxs(c.Fragment,{children:[a.label," ",n]})})})},$O="ToastTitle",RN=v.forwardRef((e,t)=>
9{const{__scopeToast:n,...r}=e;return c.jsx(We.div,{...r,ref:t})});RN.displayName=$O;var GO="ToastDescription",kN=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return c.jsx(We.div,{...r,ref:t})});kN.displayName=GO;var ON="ToastAction",DN=v.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?c.jsx(zN,{altText:n,asChild:!0,children:c.jsx(hy,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ON}\`. Expected non-empty \`string\`.`),null)});DN.displayName=ON;var MN="ToastClose",hy=v.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,a=BO(MN,n);return c.jsx(zN,{asChild:!0,children:c.jsx(We.button,{type:"button",...r,ref:t,onClick:Fe(e.onClick,a.onClose)})})});hy.displayName=MN;var zN=v.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...a}=e;return c.jsx(We.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...a,ref:t})});function LN(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),KO(r)){const a=r.ariaHidden||r.hidden||r.style.display==="none",l=r.dataset.radixToastAnnounceExclude==="";if(!a)if(l){const u=r.dataset.radixToastAnnounceAlt;u&&t.push(u)}else t.push(...LN(r))}}),t}function Ju(e,t,n,{discrete:r}){const a=n.originalEvent.currentTarget,l=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),r?vN(a,l):a.dispatchEvent(l)}var Qw=(e,t,n=0)=>{const r=Math.abs(e.x),a=Math.abs(e.y),l=r>a;return t==="left"||t==="right"?l&&r>n:!l&&a>n};function YO(e=()=>{}){const t=_s(e);an(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function KO(e){return e.nodeType===e.ELEMENT_NODE}function XO(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function fp(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ZO=TN,VN=CN,PN=AN,UN=RN,IN=kN,FN=DN,BN=hy;function HN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=HN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qN(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=HN(e))&&(r&&(r+=" "),r+=t);return r}const Ww=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,Jw=qN,my=(e,t)=>n=>{var r;if(t?.variants==null)return Jw(e,n?.class,n?.className);const{variants:a,defaultVariants:l}=t,u=Object.keys(a).map(h=>{const g=n?.[h],x=l?.[h];if(g===null)return null;const b=Ww(g)||Ww(x);return a[h][b]}),f=n&&Object.entries(n).reduce((h,g)=>{let[x,b]=g;return b===void 0||(h[x]=b),h},{}),p=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((h,g)=>{let{class:x,className:b,...w}=g;return Object.entries(w).every(N=>{let[S,j]=N;return Array.isArray(j)?j.includes({...l,...f}[S]):{...l,...f}[S]===j})?[...h,x,b]:h},[]);return Jw(e,u,p,n?.class,n?.className)};const QO=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),WO=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),e1=e=>{const t=WO(e);return t.charAt(0).toUpperCase()+t.slice(1)},$N=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),JO=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};var e3={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 t3=v.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:l,iconNode:u,...f},p)=>v.createElement("svg",{ref:p,...e3,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:$N("lucide",a),...!l&&!JO(f)&&{"aria-hidden":"true"},...f},[...u.map(([h,g])=>v.createElement(h,g)),...Array.isArray(l)?l:[l]]));const Oe=(e,t)=>
9{const n=v.forwardRef(({className:r,...a},l)=>v.createElement(t3,{ref:l,iconNode:t,className:$N(`lucide-${QO(e1(e))}`,`lucide-${e}`,r),...a}));return n.displayName=e1(e),n};const n3=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],GN=Oe("archive",n3);const s3=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],ii=Oe("arrow-right",s3);const r3=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],i3=Oe("arrow-up",r3);const a3=[["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"}]],o3=Oe("book-open",a3);const l3=[["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"}]],c3=Oe("building-2",l3);const u3=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],YN=Oe("calendar",u3);const d3=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],f3=Oe("chart-column",d3);const h3=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],gf=Oe("check",h3);const m3=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Sc=Oe("chevron-down",m3);const p3=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],g3=Oe("chevron-left",p3);const y3=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],KN=Oe("chevron-right",y3);const x3=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],v3=Oe("chevron-up",x3);const b3=[["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"}]],w3=Oe("circle-alert",b3);const S3=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]],jc=Oe("circle-plus",S3);const j3=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],py=Oe("copy",j3);const N3=[["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"}]],Nc=Oe("external-link",N3);const T3=[["path",{d:"M17.5 22h.5a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"rslqgf"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 19a2 2 0 1 1 4 0v1a2 2 0 1 1-4 0v-4a6 6 0 0 1 12 0v4a2 2 0 1 1-4 0v-1a2 2 0 1 1 4 0",key:"9f7x3i"}]],og=Oe("file-audio",T3);const E3=[["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"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]],XN=Oe("file-image",E3);const C3=[["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"}]],_3=Oe("file",C3);const A3=[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]],R3=Oe("footprints",A3);const k3=[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]],yf=Oe("grip-vertical",k3);const O3=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],D3=Oe("image",O3);const M3=[["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",ke
9y:"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"}]],z3=Oe("images",M3);const L3=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],V3=Oe("layout-dashboard",L3);const P3=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],t1=Oe("link",P3);const U3=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],St=Oe("loader-circle",U3);const I3=[["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"}]],F3=Oe("log-out",I3);const B3=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],H3=Oe("menu",B3);const q3=[["path",{d:"M5 12h14",key:"1ays0h"}]],$3=Oe("minus",q3);const G3=[["circle",{cx:"8",cy:"18",r:"4",key:"1fc0mg"}],["path",{d:"M12 18V2l7 4",key:"g04rme"}]],Ad=Oe("music-2",G3);const Y3=[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]],K3=Oe("music",Y3);const X3=[["polygon",{points:"3 11 22 2 13 21 11 13 3 11",key:"1ltx0t"}]],Z3=Oe("navigation",X3);const Q3=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],ZN=Oe("pause",Q3);const W3=[["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"}]],gy=Oe("pencil",W3);const J3=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],xo=Oe("play",J3);const eD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],yy=Oe("plus",eD);const tD=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],nD=Oe("radio",tD);const sD=[["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"}]],QN=Oe("rotate-ccw",sD);const rD=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],WN=Oe("rotate-cw",rD);const iD=[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]],fa=Oe("save",iD);const aD=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],oD=Oe("search",aD);const lD=[["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"}]],JN=Oe("settings",lD);const cD=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],uD=Oe("share-2",cD);const dD=[["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"}]],ea=Oe("star",dD);const fD=[["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"}]],xf=Oe("trash-2",fD);const hD=[["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"}]],n1=Oe("trash",hD);const mD=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],pD=Oe("triangle-alert",mD);const gD=[["path",{d:"M7 21h10",key:"1b0cd5"}],["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}]],yD=Oe("tv-minimal",gD);
vendor: 1,235 bytes, line 9
9const xD=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],Rd=Oe("upload",xD);const vD=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],e2=Oe("volume-2",vD);const bD=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ks=Oe("x",bD),wD=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},SD=(e,t)=>({classGroupId:e,validator:t}),t2=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),kd="-",s1=[],jD="arbitrary..",ND=e=>{const t=ED(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{if(u.startsWith("[")&&u.endsWith("]"))return TD(u);const f=u.split(kd),p=f[0]===""&&f.length>1?1:0;return n2(f,p,t)},getConflictingClassGroupIds:(u,f)=>{if(f){const p=r[u],h=n[u];return p?h?wD(h,p):p:h||s1}return n[u]||s1}}}
vendor: 6,714 bytes, line 9
9,n2=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const a=e[t],l=n.nextPart.get(a);if(l){const h=n2(e,t+1,l);if(h)return h}const u=n.validators;if(u===null)return;const f=t===0?e.join(kd):e.slice(t).join(kd),p=u.length;for(let h=0;h<p;h++){const g=u[h];if(g.validator(f))return g.classGroupId}},TD=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?jD+r:void 0})(),ED=e=>{const{theme:t,classGroups:n}=e;return CD(n,t)},CD=(e,t)=>{const n=t2();for(const r in e){const a=e[r];xy(a,n,r,t)}return n},xy=(e,t,n,r)=>{const a=e.length;for(let l=0;l<a;l++){const u=e[l];_D(u,t,n,r)}},_D=(e,t,n,r)=>{if(typeof e=="string"){AD(e,t,n);return}if(typeof e=="function"){RD(e,t,n,r);return}kD(e,t,n,r)},AD=(e,t,n)=>{const r=e===""?t:s2(t,e);r.classGroupId=n},RD=(e,t,n,r)=>{if(OD(e)){xy(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(SD(n,e))},kD=(e,t,n,r)=>{const a=Object.entries(e),l=a.length;for(let u=0;u<l;u++){const[f,p]=a[u];xy(p,s2(t,f),n,r)}},s2=(e,t)=>{let n=e;const r=t.split(kd),a=r.length;for(let l=0;l<a;l++){const u=r[l];let f=n.nextPart.get(u);f||(f=t2(),n.nextPart.set(u,f)),n=f}return n},OD=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,DD=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const a=(l,u)=>{n[l]=u,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(l){let u=n[l];if(u!==void 0)return u;if((u=r[l])!==void 0)return a(l,u),u},set(l,u){l in n?n[l]=u:a(l,u)}}},lg="!",r1=":",MD=[],i1=(e,t,n,r,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:a}),zD=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=a=>{const l=[];let u=0,f=0,p=0,h;const g=a.length;for(let S=0;S<g;S++){const j=a[S];if(u===0&&f===0){if(j===r1){l.push(a.slice(p,S)),p=S+1;continue}if(j==="/"){h=S;continue}}j==="["?u++:j==="]"?u--:j==="("?f++:j===")"&&f--}const x=l.length===0?a:a.slice(p);let b=x,w=!1;x.endsWith(lg)?(b=x.slice(0,-1),w=!0):x.startsWith(lg)&&(b=x.slice(1),w=!0);const N=h&&h>p?h-p:void 0;return i1(l,w,b,N)};if(t){const a=t+r1,l=r;r=u=>u.startsWith(a)?l(u.slice(a.length)):i1(MD,!1,u,void 0,!0)}if(n){const a=r;r=l=>n({className:l,parseClassName:a})}return r},LD=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let a=[];for(let l=0;l<n.length;l++){const u=n[l],f=u[0]==="[",p=t.has(u);f||p?(a.length>0&&(a.sort(),r.push(...a),a=[]),r.push(u)):a.push(u)}return a.length>0&&(a.sort(),r.push(...a)),r}},VD=e=>({cache:DD(e.cacheSize),parseClassName:zD(e),sortModifiers:LD(e),...ND(e)}),PD=/\s+/,UD=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a,sortModifiers:l}=t,u=[],f=e.trim().split(PD);let p="";for(let h=f.length-1;h>=0;h-=1){const g=f[h],{isExternal:x,modifiers:b,hasImportantModifier:w,baseClassName:N,maybePostfixModifierPosition:S}=n(g);if(x){p=g+(p.length>0?" "+p:p);continue}let j=!!S,C=r(j?N.substring(0,S):N);if(!C){if(!j){p=g+(p.length>0?" "+p:p);continue}if(C=r(N),!C){p=g+(p.length>0?" "+p:p);continue}j=!1}const _=b.length===0?"":b.length===1?b[0]:l(b).join(":"),E=w?_+lg:_,R=E+C;if(u.indexOf(R)>-1)continue;u.push(R);const O=a(C,j);for(let M=0;M<O.length;++M){const V=O[M];u.push(E+V)}p=g+(p.length>0?" "+p:p)}return p},ID=(...e)=>{let t=0,n,r,a="";for(;t<e.length;)(n=e[t++])&&(r=r2(n))&&(a&&(a+=" "),a+=r);return a},r2=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=r2(e[r]))&&(n&&(n+=" "),n+=t);return n},FD=(e,...t)=>{let n,r,a,l;const u=p=>{const h=t.reduce((g,x)=>x(g),e());return n=VD(h),r=n.cache.get,a=n.cache.set,l=f,f(p)},f=p=>{const h=r(p);if(h)return h;const g=UD(p,n);return a(p,g),g};return l=u,(...p)=>l(ID(...p))},BD=[],Bt=e=>{const t=n=>n[e]||BD;return t.isThemeGetter=!0,t},i2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,a2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,HD=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,qD=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$D=/\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$/,GD=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,YD=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,KD=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Wr=e=>HD.test(e),Ge=e=>!!e&&!Number.isNaN(Number(e)),Jr=e=>!!e&&Number.isInteger(Number(e)),hp=e=>e.endsWith("%")&&Ge(e.slice(0,-1)),gr=e=>qD.test(e),o2=()=>!0,XD=e=>$D.test(e)&&!GD.test(e),vy=()=>!1,ZD=e=>YD.test(e),QD=e=>KD.test(e),WD=e=>!je(e)&&!Ee(e),JD=e=>yi(e,u2,vy),je=e=>i2.test(e),Fi=e=>yi(e,d2,XD),a1=e=>yi(e,oM,Ge),eM=e=>yi(e,h2,o2),tM=e=>yi(e,f2,vy),o1=e=>yi(e,l2,vy),nM=e=>yi(e,c2,QD),ed=e=>yi(e,m2,ZD),Ee=e=>a2.test(e),Vl=e=>ha(e,d2),sM=e=>ha(e,f2),l1=e=>ha(e,l2),rM=e=>ha(e,u2),iM=e=>ha(e,c2),td=e=>ha(e,m2,!0),aM=e=>ha(e,h2,!0),yi=(e,t,n)=>{const r=i2.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ha=(e,t,n=!1)=>{const r=a2.exec(e);return r?r[1]?t(r[1]):n:!1},l2=e=>e==="position"||e==="percentage",c2=e=>e==="image"||e==="url",u2=e=>e==="length"||e==="size"||e==="bg-size",d2=e=>e==="length",oM=e=>e==="number",f2=e=>e==="family-name",h2=e=>e==="number"||e==="weight",m2=e=>e==="shadow",lM=()=>{const e=Bt("color"),t=Bt("font"),n=Bt("text"),r=Bt("font-weight"),a=Bt("tracking"),l=Bt("leading"),u=Bt("breakpoint"),f=Bt("container"),p=Bt("spacing"),h=Bt("radius"),g=Bt("shadow"),x=Bt("inset-shadow"),b=Bt("text-shadow"),w=Bt("drop-shadow"),N=Bt("blur"),S=Bt("perspective"),j=Bt("aspect"),C=Bt("ease"),_=Bt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],R=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],O=()=>[...R(),Ee,je],M=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],D=()=>[Ee,je,p],F=()=>[Wr,"full","auto",...D()],W=()=>[Jr,"none","subgrid",Ee,je],Q=()=>["auto",{span:["full",Jr,Ee,je]},Jr,Ee,je],H=()=>[Jr,"auto",Ee,je],ne=()=>["auto","min","max","fr",Ee,je],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],P=()=>["auto",...D()],Y=()=>[Wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],Z=()=>[Wr,"screen","full","dvw","lvw","svw","min","max","fit",...D()],le=()=>[Wr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...D()],k=()=>[e,Ee,je],I=()=>[...R(),l1,o1,{position:[Ee,je]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],se=()=>["auto","cover","contain",rM,JD,{size:[Ee,je]}],ce=()=>[hp,Vl,Fi],ve=()=>["","none","full",h,Ee,je],de=()=>
vendor: 7,126 bytes, line 9
9["",Ge,Vl,Fi],xe=()=>["solid","dashed","dotted","double"],Te=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Re=()=>[Ge,hp,l1,o1],we=()=>["","none",N,Ee,je],Pe=()=>["none",Ge,Ee,je],Be=()=>["none",Ge,Ee,je],it=()=>[Ge,Ee,je],ct=()=>[Wr,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[gr],breakpoint:[gr],color:[o2],container:[gr],"drop-shadow":[gr],ease:["in","out","in-out"],font:[WD],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[gr],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[gr],shadow:[gr],spacing:["px",Ge],text:[gr],"text-shadow":[gr],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Wr,je,Ee,j]}],container:["container"],columns:[{columns:[Ge,je,Ee,f]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:F()}],"inset-x":[{"inset-x":F()}],"inset-y":[{"inset-y":F()}],start:[{"inset-s":F(),start:F()}],end:[{"inset-e":F(),end:F()}],"inset-bs":[{"inset-bs":F()}],"inset-be":[{"inset-be":F()}],top:[{top:F()}],right:[{right:F()}],bottom:[{bottom:F()}],left:[{left:F()}],visibility:["visible","invisible","collapse"],z:[{z:[Jr,"auto",Ee,je]}],basis:[{basis:[Wr,"full","auto",f,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ge,Wr,"auto","initial","none",je]}],grow:[{grow:["",Ge,Ee,je]}],shrink:[{shrink:["",Ge,Ee,je]}],order:[{order:[Jr,"first","last","none",Ee,je]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pbs:[{pbs:D()}],pbe:[{pbe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],m:[{m:P()}],mx:[{mx:P()}],my:[{my:P()}],ms:[{ms:P()}],me:[{me:P()}],mbs:[{mbs:P()}],mbe:[{mbe:P()}],mt:[{mt:P()}],mr:[{mr:P()}],mb:[{mb:P()}],ml:[{ml:P()}],"space-x":[{"space-x":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...le()]}],"min-block-size":[{"min-block":["auto",...le()]}],"max-block-size":[{"max-block":["none",...le()]}],w:[{w:[f,"screen",...Y()]}],"min-w":[{"min-w":[f,"screen","none",...Y()]}],"max-w":[{"max-w":[f,"screen","none","prose",{screen:[u]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,Vl,Fi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,aM,eM]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",hp,je]}],"font-family":[{font:[sM,tM,t]}],"font-features":[{"font-features":[je]}],"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:[a,Ee,je]}],"line-clamp":[{"line-clamp":[Ge,"none",Ee,a1]}],leading:[{leading:[l,...D()]}],"list-image":[{"list-image":["none",Ee,je]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Ee,je]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:k()}],"text-color":[{text:k()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...xe(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",Ee,Fi]}],"text-decoration-color":[{decoration:k()}],"underline-offset":[{"underline-offset":[Ge,"auto",Ee,je]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:D()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Ee,je]}],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,je]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:I()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:se()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Jr,Ee,je],radial:["",Ee,je],conic:[Jr,Ee,je]},iM,nM]}],"bg-color":[{bg:k()}],"gradient-from-pos":[{from:ce()}
vendor: 7,403 bytes, line 9
9],"gradient-via-pos":[{via:ce()}],"gradient-to-pos":[{to:ce()}],"gradient-from":[{from:k()}],"gradient-via":[{via:k()}],"gradient-to":[{to:k()}],rounded:[{rounded:ve()}],"rounded-s":[{"rounded-s":ve()}],"rounded-e":[{"rounded-e":ve()}],"rounded-t":[{"rounded-t":ve()}],"rounded-r":[{"rounded-r":ve()}],"rounded-b":[{"rounded-b":ve()}],"rounded-l":[{"rounded-l":ve()}],"rounded-ss":[{"rounded-ss":ve()}],"rounded-se":[{"rounded-se":ve()}],"rounded-ee":[{"rounded-ee":ve()}],"rounded-es":[{"rounded-es":ve()}],"rounded-tl":[{"rounded-tl":ve()}],"rounded-tr":[{"rounded-tr":ve()}],"rounded-br":[{"rounded-br":ve()}],"rounded-bl":[{"rounded-bl":ve()}],"border-w":[{border:de()}],"border-w-x":[{"border-x":de()}],"border-w-y":[{"border-y":de()}],"border-w-s":[{"border-s":de()}],"border-w-e":[{"border-e":de()}],"border-w-bs":[{"border-bs":de()}],"border-w-be":[{"border-be":de()}],"border-w-t":[{"border-t":de()}],"border-w-r":[{"border-r":de()}],"border-w-b":[{"border-b":de()}],"border-w-l":[{"border-l":de()}],"divide-x":[{"divide-x":de()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":de()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...xe(),"hidden","none"]}],"divide-style":[{divide:[...xe(),"hidden","none"]}],"border-color":[{border:k()}],"border-color-x":[{"border-x":k()}],"border-color-y":[{"border-y":k()}],"border-color-s":[{"border-s":k()}],"border-color-e":[{"border-e":k()}],"border-color-bs":[{"border-bs":k()}],"border-color-be":[{"border-be":k()}],"border-color-t":[{"border-t":k()}],"border-color-r":[{"border-r":k()}],"border-color-b":[{"border-b":k()}],"border-color-l":[{"border-l":k()}],"divide-color":[{divide:k()}],"outline-style":[{outline:[...xe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,Ee,je]}],"outline-w":[{outline:["",Ge,Vl,Fi]}],"outline-color":[{outline:k()}],shadow:[{shadow:["","none",g,td,ed]}],"shadow-color":[{shadow:k()}],"inset-shadow":[{"inset-shadow":["none",x,td,ed]}],"inset-shadow-color":[{"inset-shadow":k()}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:k()}],"ring-offset-w":[{"ring-offset":[Ge,Fi]}],"ring-offset-color":[{"ring-offset":k()}],"inset-ring-w":[{"inset-ring":de()}],"inset-ring-color":[{"inset-ring":k()}],"text-shadow":[{"text-shadow":["none",b,td,ed]}],"text-shadow-color":[{"text-shadow":k()}],opacity:[{opacity:[Ge,Ee,je]}],"mix-blend":[{"mix-blend":[...Te(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Te()}],"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":[Ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":Re()}],"mask-image-linear-to-pos":[{"mask-linear-to":Re()}],"mask-image-linear-from-color":[{"mask-linear-from":k()}],"mask-image-linear-to-color":[{"mask-linear-to":k()}],"mask-image-t-from-pos":[{"mask-t-from":Re()}],"mask-image-t-to-pos":[{"mask-t-to":Re()}],"mask-image-t-from-color":[{"mask-t-from":k()}],"mask-image-t-to-color":[{"mask-t-to":k()}],"mask-image-r-from-pos":[{"mask-r-from":Re()}],"mask-image-r-to-pos":[{"mask-r-to":Re()}],"mask-image-r-from-color":[{"mask-r-from":k()}],"mask-image-r-to-color":[{"mask-r-to":k()}],"mask-image-b-from-pos":[{"mask-b-from":Re()}],"mask-image-b-to-pos":[{"mask-b-to":Re()}],"mask-image-b-from-color":[{"mask-b-from":k()}],"mask-image-b-to-color":[{"mask-b-to":k()}],"mask-image-l-from-pos":[{"mask-l-from":Re()}],"mask-image-l-to-pos":[{"mask-l-to":Re()}],"mask-image-l-from-color":[{"mask-l-from":k()}],"mask-image-l-to-color":[{"mask-l-to":k()}],"mask-image-x-from-pos":[{"mask-x-from":Re()}],"mask-image-x-to-pos":[{"mask-x-to":Re()}],"mask-image-x-from-color":[{"mask-x-from":k()}],"mask-image-x-to-color":[{"mask-x-to":k()}],"mask-image-y-from-pos":[{"mask-y-from":Re()}],"mask-image-y-to-pos":[{"mask-y-to":Re()}],"mask-image-y-from-color":[{"mask-y-from":k()}],"mask-image-y-to-color":[{"mask-y-to":k()}],"mask-image-radial":[{"mask-radial":[Ee,je]}],"mask-image-radial-from-pos":[{"mask-radial-from":Re()}],"mask-image-radial-to-pos":[{"mask-radial-to":Re()}],"mask-image-radial-from-color":[{"mask-radial-from":k()}],"mask-image-radial-to-color":[{"mask-radial-to":k()}],"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":R()}],"mask-image-conic-pos":[{"mask-conic":[Ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":Re()}],"mask-image-conic-to-pos":[{"mask-conic-to":Re()}],"mask-image-conic-from-color":[{"mask-conic-from":k()}],"mask-image-conic-to-color":[{"mask-conic-to":k()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:I()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:se()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Ee,je]}],filter:[{filter:["","none",Ee,je]}],blur:[{blur:we()}],brightness:[{brightness:[Ge,Ee,je]}],contrast:[{contrast:[Ge,Ee,je]}],"drop-shadow":[{"drop-shadow":["","none",w,td,ed]}],"drop-shadow-color":[{"drop-shadow":k()}],grayscale:[{grayscale:["",Ge,Ee,je]}],"hue-rotate":[{"hue-rotate":[Ge,Ee,je]}],invert:[{invert:["",Ge,Ee,je]}],saturate:[{saturate:[Ge,Ee,je]}],sepia:[{sepia:["",Ge,Ee,je]}],"backdrop-filter":[{"backdrop-filter":["","none",Ee,je]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[Ge,Ee,je]}],"backdrop-contrast":[{"backdrop-contrast":[Ge,Ee,je]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ge,Ee,je]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ge,Ee,je]}],"backdrop-invert":[{"backdrop-invert":["",Ge,Ee,je]}],"backdrop-opacity":[{"backdrop-opacity":[Ge,Ee,je]}],"backdrop-saturate":[{"backdrop-saturate":[Ge,Ee,je]}],"backdrop-sepia":[{"backdrop-sepia":["",Ge,Ee,je]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Ee,je]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ge,"initial",Ee,je]}],ease:[{ease:["linear","initial",C,Ee,je]}],delay:[{delay:[Ge,Ee,je]}],animate:[{animate:["none",_,Ee,je]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Ee,je]}],"perspective-origin":[{"perspective-origin":O()}],rotate:[{rotate:Pe()}],"rotate-x":[{"rotate-x":Pe()}],"rotate-y":[{"rotate-y":Pe()}],"rotate-z":[{"rotate-z":Pe()}],scale:[{scale:Be()}],"scale-x":[{"scale-x":Be()}],"scale-y":[{"scale-y":Be()}],"scale-z":[{"scale-z":Be()}],"scale-3d":["scale-3d"],skew:[{skew:it()}],"skew-x":[{"skew-x":it()}],"skew-y":[{"skew-y":it()}],transform:[{transform:[Ee,je,"","none","gpu","cpu"]}],"transform-origin":[{origin:O()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ct()}],"translate-x":[{"translate-x":ct()}],"translate-y":[{"translate-y":ct()}],"translate-z":[{"translate-z":ct()}],"translate-none":["translate-none"],accent:[{accent:k()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:k()}
9],"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,je]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mbs":[{"scroll-mbs":D()}],"scroll-mbe":[{"scroll-mbe":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pbs":[{"scroll-pbs":D()}],"scroll-pbe":[{"scroll-pbe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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,je]}],fill:[{fill:["none",...k()]}],"stroke-w":[{stroke:[Ge,Vl,Fi,a1]}],stroke:[{stroke:["none",...k()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},cM=FD(lM);function Qe(...e){return cM(qN(e))}const uM=ZO,p2=v.forwardRef(({className:e,...t},n)=>c.jsx(VN,{ref:n,className:Qe("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}));p2.displayName=VN.displayName;const dM=my("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"}}),g2=v.forwardRef(({className:e,variant:t,...n},r)=>c.jsx(PN,{ref:r,className:Qe(dM({variant:t}),e),...n}));g2.displayName=PN.displayName;const fM=v.forwardRef(({className:e,...t},n)=>c.jsx(FN,{ref:n,className:Qe("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}));fM.displayName=FN.displayName;const y2=v.forwardRef(({className:e,...t},n)=>c.jsx(BN,{ref:n,className:Qe("absolute right-2 top-2 rounded-md p-1 text-foreground
vendor: 13,121 bytes, line 9
9/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:c.jsx(Ks,{className:"h-4 w-4"})}));y2.displayName=BN.displayName;const x2=v.forwardRef(({className:e,...t},n)=>c.jsx(UN,{ref:n,className:Qe("text-sm font-semibold",e),...t}));x2.displayName=UN.displayName;const v2=v.forwardRef(({className:e,...t},n)=>c.jsx(IN,{ref:n,className:Qe("text-sm opacity-90",e),...t}));v2.displayName=IN.displayName;function hM(){const{toasts:e}=Vn();return c.jsxs(uM,{children:[e.map(function({id:t,title:n,description:r,action:a,...l}){return c.jsxs(g2,{...l,children:[c.jsxs("div",{className:"grid gap-1",children:[n&&c.jsx(x2,{children:n}),r&&c.jsx(v2,{children:r})]}),a,c.jsx(y2,{})]},t)}),c.jsx(p2,{})]})}var mM=ff[" useId ".trim().toString()]||(()=>{}),pM=0;function ho(e){const[t,n]=v.useState(mM());return an(()=>{n(r=>r??String(pM++))},[e]),t?`radix-${t}`:""}const gM=["top","right","bottom","left"],ui=Math.min,Zn=Math.max,Od=Math.round,nd=Math.floor,$s=e=>({x:e,y:e}),yM={left:"right",right:"left",bottom:"top",top:"bottom"};function cg(e,t,n){return Zn(e,ui(t,n))}function vr(e,t){return typeof e=="function"?e(t):e}function br(e){return e.split("-")[0]}function Ao(e){return e.split("-")[1]}function by(e){return e==="x"?"y":"x"}function wy(e){return e==="y"?"height":"width"}function qs(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Sy(e){return by(qs(e))}function xM(e,t,n){n===void 0&&(n=!1);const r=Ao(e),a=Sy(e),l=wy(a);let u=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(u=Dd(u)),[u,Dd(u)]}function vM(e){const t=Dd(e);return[ug(e),t,ug(t)]}function ug(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const c1=["left","right"],u1=["right","left"],bM=["top","bottom"],wM=["bottom","top"];function SM(e,t,n){switch(e){case"top":case"bottom":return n?t?u1:c1:t?c1:u1;case"left":case"right":return t?bM:wM;default:return[]}}function jM(e,t,n,r){const a=Ao(e);let l=SM(br(e),n==="start",r);return a&&(l=l.map(u=>u+"-"+a),t&&(l=l.concat(l.map(ug)))),l}function Dd(e){const t=br(e);return yM[t]+e.slice(t.length)}function NM(e){return{top:0,right:0,bottom:0,left:0,...e}}function b2(e){return typeof e!="number"?NM(e):{top:e,right:e,bottom:e,left:e}}function Md(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function d1(e,t,n){let{reference:r,floating:a}=e;const l=qs(t),u=Sy(t),f=wy(u),p=br(t),h=l==="y",g=r.x+r.width/2-a.width/2,x=r.y+r.height/2-a.height/2,b=r[f]/2-a[f]/2;let w;switch(p){case"top":w={x:g,y:r.y-a.height};break;case"bottom":w={x:g,y:r.y+r.height};break;case"right":w={x:r.x+r.width,y:x};break;case"left":w={x:r.x-a.width,y:x};break;default:w={x:r.x,y:r.y}}switch(Ao(t)){case"start":w[u]-=b*(n&&h?-1:1);break;case"end":w[u]+=b*(n&&h?-1:1);break}return w}async function TM(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:l,rects:u,elements:f,strategy:p}=e,{boundary:h="clippingAncestors",rootBoundary:g="viewport",elementContext:x="floating",altBoundary:b=!1,padding:w=0}=vr(t,e),N=b2(w),j=f[b?x==="floating"?"reference":"floating":x],C=Md(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(j)))==null||n?j:j.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(f.floating)),boundary:h,rootBoundary:g,strategy:p})),_=x==="floating"?{x:r,y:a,width:u.floating.width,height:u.floating.height}:u.reference,E=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f.floating)),R=await(l.isElement==null?void 0:l.isElement(E))?await(l.getScale==null?void 0:l.getScale(E))||{x:1,y:1}:{x:1,y:1},O=Md(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:_,offsetParent:E,strategy:p}):_);return{top:(C.top-O.top+N.top)/R.y,bottom:(O.bottom-C.bottom+N.bottom)/R.y,left:(C.left-O.left+N.left)/R.x,right:(O.right-C.right+N.right)/R.x}}const EM=50,CM=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:l=[],platform:u}=n,f=u.detectOverflow?u:{...u,detectOverflow:TM},p=await(u.isRTL==null?void 0:u.isRTL(t));let h=await u.getElementRects({reference:e,floating:t,strategy:a}),{x:g,y:x}=d1(h,r,p),b=r,w=0;const N={};for(let S=0;S<l.length;S++){const j=l[S];if(!j)continue;const{name:C,fn:_}=j,{x:E,y:R,data:O,reset:M}=await _({x:g,y:x,initialPlacement:r,placement:b,strategy:a,middlewareData:N,rects:h,platform:f,elements:{reference:e,floating:t}});g=E??g,x=R??x,N[C]={...N[C],...O},M&&w<EM&&(w++,typeof M=="object"&&(M.placement&&(b=M.placement),M.rects&&(h=M.rects===!0?await u.getElementRects({reference:e,floating:t,strategy:a}):M.rects),{x:g,y:x}=d1(h,b,p)),S=-1)}return{x:g,y:x,placement:b,strategy:a,middlewareData:N}},_M=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:l,platform:u,elements:f,middlewareData:p}=t,{element:h,padding:g=0}=vr(e,t)||{};if(h==null)return{};const x=b2(g),b={x:n,y:r},w=Sy(a),N=wy(w),S=await u.getDimensions(h),j=w==="y",C=j?"top":"left",_=j?"bottom":"right",E=j?"clientHeight":"clientWidth",R=l.reference[N]+l.reference[w]-b[w]-l.floating[N],O=b[w]-l.reference[w],M=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h));let V=M?M[E]:0;(!V||!await(u.isElement==null?void 0:u.isElement(M)))&&(V=f.floating[E]||l.floating[N]);const D=R/2-O/2,F=V/2-S[N]/2-1,W=ui(x[C],F),Q=ui(x[_],F),H=W,ne=V-S[N]-Q,te=V/2-S[N]/2+D,oe=cg(H,te,ne),P=!p.arrow&&Ao(a)!=null&&te!==oe&&l.reference[N]/2-(te<H?W:Q)-S[N]/2<0,Y=P?te<H?te-H:te-ne:0;return{[w]:b[w]+Y,data:{[w]:oe,centerOffset:te-oe-Y,...P&&{alignmentOffset:Y}},reset:P}}}),AM=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:l,rects:u,initialPlacement:f,platform:p,elements:h}=t,{mainAxis:g=!0,crossAxis:x=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:S=!0,...j}=vr(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const C=br(a),_=qs(f),E=br(f)===f,R=await(p.isRTL==null?void 0:p.isRTL(h.floating)),O=b||(E||!S?[Dd(f)]:vM(f)),M=N!=="none";!b&&M&&O.push(...jM(f,S,N,R));const V=[f,...O],D=await p.detectOverflow(t,j),F=[];let W=((r=l.flip)==null?void 0:r.overflows)||[];if(g&&F.push(D[C]),x){const te=xM(a,u,R);F.push(D[te[0]],D[te[1]])}if(W=[...W,{placement:a,overflows:F}],!F.every(te=>te<=0)){var Q,H;const te=(((Q=l.flip)==null?void 0:Q.index)||0)+1,oe=V[te];if(oe&&(!(x==="alignment"?_!==qs(oe):!1)||W.every(Z=>qs(Z.placement)===_?Z.overflows[0]>0:!0)))return{data:{index:te,overflows:W},reset:{placement:oe}};let P=(H=W.filter(Y=>Y.overflows[0]<=0).sort((Y,Z)=>Y.overflows[1]-Z.overflows[1])[0])==null?void 0:H.placement;if(!P)switch(w){case"bestFit":{var ne;const Y=(ne=W.filter(Z=>{if(M){const le=qs(Z.placement);return le===_||le==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(le=>le>0).reduce((le,k)=>le+k,0)]).sort((Z,le)=>Z[1]-le[1])[0])==null?void 0:ne[0];Y&&(P=Y);break}case"initialPlacement":P=f;break}if(a!==P)return{reset:{placement:P}}}return{}}}};function f1(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function h1(e){return gM.some(t=>e[t]>=0)}const RM=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:a="referenceHidden",...l}=vr(e,t);switch(a){case"referenceHidden":{const u=await r.detectOverflow(t,{...l,elementContext:"reference"}),f=f1(u,n.reference);return{data:{referenceHiddenOffsets:f,referenceHidden:h1(f)}}}case"escaped":{const u=await r.detectOverflow(t,{...l,altBoundary:!0}),f=f1(u,n.floating);return{data:{escapedOffsets:f,escaped:h1(f)}}}default:return{}}}}},w2=new Set(["left","top"]);async function kM(e,t){const{placement:n,platform:r,elements:a}=e,l=await(r.isRTL==null?void 0:r.isRTL(a.floating)),u=br(n),f=Ao(n),p=qs(n)==="y",h=w2.has(u)?-1:1,g=l&&p?-1:1,x=vr(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:N}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return f&&typeof N=="number"&&(w=f==="end"?N*-1:N),p?{x:w*g,y:b*h}:{x:b*h,y:w*g}}const OM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:l,placement:u,middlewareData:f}=t,p=await kM(t,e);return u===((n=f.offset)==null?void 0:n.placement)&&(r=f.arrow)!=null&&r.alignmentOffset?{}:{x:a+p.x,y:l+p.y,data:{...p,placement:u}}}}},DM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:l}=t,{mainAxis:u=!0,crossAxis:f=!1,limiter:p={fn:C=>{let{x:_,y:E}=C;return{x:_,y:E}}},...h}=vr(e,t),g={x:n,y:r},x=await l.detectOverflow(t,h),b=qs(br(a)),w=by(b);let N=g[w],S=g[b];if(u){const C=w==="y"?"top":"left",_=w==="y"?"bottom":"right",E=N+x[C],R=N-x[_];N=cg(E,N,R)}if(f){const C=b==="y"?"top":"left",_=b==="y"?"bottom":"right",E=S+x[C],R=S-x[_];S=cg(E,S,R)}const j=p.fn({...t,[w]:N,[b]:S});return{...j,data:{x:j.x-n,y:j.y-r,enabled:{[w]:u,[b]:f}}}}}},MM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:a,rects:l,middlewareData:u}=t,{offset:f=0,mainAxis:p=!0,crossAxis:h=!0}=vr(e,t),g={x:n,y:r},x=qs(a),b=by(x);let w=g[b],N=g[x];const S=vr(f,t),j=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(p){const E=b==="y"?"height":"width",R=l.reference[b]-l.floating[E]+j.mainAxis,O=l.reference[b]+l.reference[E]-j.mainAxis;w<R?w=R:w>O&&(w=O)}if(h){var C,_;const E=b==="y"?"width":"height",R=w2.has(br(a)),O=l.reference[x]-l.floating[E]+(R&&((C=u.offset)==null?void 0:C[x])||0)+(R?0:j.crossAxis),M=l.reference[x]+l.reference[E]+(R?0:((_=u.offset)==null?void 0:_[x])||0)-(R?j.crossAxis:0);N<O?N=O:N>M&&(N=M)}return{[b]:w,[x]:N}}}},zM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:a,rects:l,platform:u,elements:f}=t,{apply:p=()=>{},...h}=vr(e,t),g=await u.detectOverflow(t,h),x=br(a),b=Ao(a),w=qs(a)==="y",{width:N,height:S}=l.floating;let j,C;x==="top"||x==="bottom"?(j=x,C=b===(await(u.isRTL==null?void 0:u.isRTL(f.floating))?"start":"end")?"left":"right"):(C=x,j=b==="end"?"top":"bottom");const _=S-g.top-g.bottom,E=N-g.left-g.right,R=ui(S-g[j],_),O=ui(N-g[C],E),M=!t.middlewareData.shift;let V=R,D=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(V=_),M&&!b){const W=Zn(g.left,0),Q=Zn(g.right,0),H=Zn(g.top,0),ne=Zn(g.bottom,0);w?D=N-2*(W!==0||Q!==0?W+Q:Zn(g.left,g.right)):V=S-2*(H!==0||ne!==0?H+ne:Zn(g.top,g.bottom))}await p({...t,availableWidth:D,availableHeight:V});const F=await u.getDimensions(f.floating);return N!==F.width||S!==F.height?{reset:{rects:!0}}:{}}}};function vf(){return typeof window<"u"}function Ro(e){return S2(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Zs(e){var t;return(t=(S2(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function S2(e){return vf()?e instanceof Node||e instanceof Wn(e).Node:!1}function As(e){return vf()?e instanceof Element||e instanceof Wn(e).Element:!1}function Er(e){return vf()?e instanceof HTMLElement||e instanceof Wn(e).HTMLElement:!1}function m1(e){return!vf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot}function Tc(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Rs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&a!=="inline"&&a!=="contents"}function LM(e){return/^(table|td|th)$/.test(Ro(e))}function bf(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const VM=/transform|translate|scale|rotate|perspective|filter/,PM=/paint|layout|strict|content/,Bi=e=>!!e&&e!=="none";let mp;function jy(e){const t=As(e)?Rs(e):e;return Bi(t.transform)||Bi(t.translate)||Bi(t.scale)||Bi(t.rotate)||Bi(t.perspective)||!Ny()&&(Bi(t.backdropFilter)||Bi(t.filter))||VM.test(t.willChange||"")||PM.test(t.contain||"")}function UM(e){let t=di(e);for(;Er(t)&&!vo(t);){if(jy(t))return t;if(bf(t))return null;t=di(t)}return null}function Ny(){return mp==null&&(mp=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),mp}function vo(e){return/^(html|body|#document)$/.test(Ro(e))}function Rs(e){return Wn(e).getComputedStyle(e)}function wf(e){return As(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function di(e){if(Ro(e)==="html")return e;const t=e.assignedSlot||e.parentNode||m1(e)&&e.host||Zs(e);return m1(t)?t.host:t}function j2(e){const t=di(e);return vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Er(t)&&Tc(t)?t:j2(t)}function ac(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const a=j2(e),l=a===((r=e.ownerDocument)==null?void 0:r.body),u=Wn(a);if(l){const f=dg(u);
vendor: 4,302 bytes, line 9
9return t.concat(u,u.visualViewport||[],Tc(a)?a:[],f&&n?ac(f):[])}else return t.concat(a,ac(a,[],n))}function dg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function N2(e){const t=Rs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Er(e),l=a?e.offsetWidth:n,u=a?e.offsetHeight:r,f=Od(n)!==l||Od(r)!==u;return f&&(n=l,r=u),{width:n,height:r,$:f}}function Ty(e){return As(e)?e:e.contextElement}function mo(e){const t=Ty(e);if(!Er(t))return $s(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:l}=N2(t);let u=(l?Od(n.width):n.width)/r,f=(l?Od(n.height):n.height)/a;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const IM=$s(0);function T2(e){const t=Wn(e);return!Ny()||!t.visualViewport?IM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function FM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wn(e)?!1:t}function ta(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=Ty(e);let u=$s(1);t&&(r?As(r)&&(u=mo(r)):u=mo(e));const f=FM(l,n,r)?T2(l):$s(0);let p=(a.left+f.x)/u.x,h=(a.top+f.y)/u.y,g=a.width/u.x,x=a.height/u.y;if(l){const b=Wn(l),w=r&&As(r)?Wn(r):r;let N=b,S=dg(N);for(;S&&r&&w!==N;){const j=mo(S),C=S.getBoundingClientRect(),_=Rs(S),E=C.left+(S.clientLeft+parseFloat(_.paddingLeft))*j.x,R=C.top+(S.clientTop+parseFloat(_.paddingTop))*j.y;p*=j.x,h*=j.y,g*=j.x,x*=j.y,p+=E,h+=R,N=Wn(S),S=dg(N)}}return Md({width:g,height:x,x:p,y:h})}function Sf(e,t){const n=wf(e).scrollLeft;return t?t.left+n:ta(Zs(e)).left+n}function E2(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sf(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function BM(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const l=a==="fixed",u=Zs(r),f=t?bf(t.floating):!1;if(r===u||f&&l)return n;let p={scrollLeft:0,scrollTop:0},h=$s(1);const g=$s(0),x=Er(r);if((x||!x&&!l)&&((Ro(r)!=="body"||Tc(u))&&(p=wf(r)),x)){const w=ta(r);h=mo(r),g.x=w.x+r.clientLeft,g.y=w.y+r.clientTop}const b=u&&!x&&!l?E2(u,p):$s(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-p.scrollLeft*h.x+g.x+b.x,y:n.y*h.y-p.scrollTop*h.y+g.y+b.y}}function HM(e){return Array.from(e.getClientRects())}function qM(e){const t=Zs(e),n=wf(e),r=e.ownerDocument.body,a=Zn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Zn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let u=-n.scrollLeft+Sf(e);const f=-n.scrollTop;return Rs(r).direction==="rtl"&&(u+=Zn(t.clientWidth,r.clientWidth)-a),{width:a,height:l,x:u,y:f}}const p1=25;function $M(e,t){const n=Wn(e),r=Zs(e),a=n.visualViewport;let l=r.clientWidth,u=r.clientHeight,f=0,p=0;if(a){l=a.width,u=a.height;const g=Ny();(!g||g&&t==="fixed")&&(f=a.offsetLeft,p=a.offsetTop)}const h=Sf(r);if(h<=0){const g=r.ownerDocument,x=g.body,b=getComputedStyle(x),w=g.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,N=Math.abs(r.clientWidth-x.clientWidth-w);N<=p1&&(l-=N)}else h<=p1&&(l+=h);return{width:l,height:u,x:f,y:p}}function GM(e,t){const n=ta(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,l=Er(e)?mo(e):$s(1),u=e.clientWidth*l.x,f=e.clientHeight*l.y,p=a*l.x,h=r*l.y;return{width:u,height:f,x:p,y:h}}function g1(e,t,n){let r;if(t==="viewport")r=$M(e,n);else if(t==="document")r=qM(Zs(e));else if(As(t))r=GM(t,n);else{const a=T2(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Md(r)}function C2(e,t){const n=di(e);return n===t||!As(n)||vo(n)?!1:Rs(n).position==="fixed"||C2(n,t)}function YM(e,t){const n=t.get(e);if(n)return n;let r=ac(e,[],!1).filter(f=>As(f)&&Ro(f)!=="body"),a=null;const l=Rs(e).position==="fixed";let u=l?di(e):e;for(;As(u)&&!vo(u);){const f=Rs(u),p=jy(u);!p&&f.position==="fixed"&&(a=null),(l?!p&&!a:!p&&f.position==="static"&&!!a&&(a.position==="absolute"||a.position==="fixed")||Tc(u)&&!p&&C2(e,u))?r=r.filter(g=>g!==u):a=f,u=di(u)}return t.set(e,r),r}function KM(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const u=[...n==="clippingAncestors"?bf(t)?[]:YM(t,this._c):[].concat(n),r],f=g1(t,u[0],a);let p=f.top,h=f.right,g=f.bottom,x=f.left;for(let b=1;b<u.length;b++){const w=g1(t,u[b],a);p=Zn(w.top,p),h=ui(w.right,h),g=ui(w.bottom,g),x=Zn(w.left,x)}return{width:h-x,height:g-p,x,y:p}}function XM(e){const{width:t,height:n}=N2(e);return{width:t,height:n}}
vendor: 4,456 bytes, line 9
9function ZM(e,t,n){const r=Er(t),a=Zs(t),l=n==="fixed",u=ta(e,!0,l,t);let f={scrollLeft:0,scrollTop:0};const p=$s(0);function h(){p.x=Sf(a)}if(r||!r&&!l)if((Ro(t)!=="body"||Tc(a))&&(f=wf(t)),r){const w=ta(t,!0,l,t);p.x=w.x+t.clientLeft,p.y=w.y+t.clientTop}else a&&h();l&&!r&&a&&h();const g=a&&!r&&!l?E2(a,f):$s(0),x=u.left+f.scrollLeft-p.x-g.x,b=u.top+f.scrollTop-p.y-g.y;return{x,y:b,width:u.width,height:u.height}}function pp(e){return Rs(e).position==="static"}function y1(e,t){if(!Er(e)||Rs(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Zs(e)===n&&(n=n.ownerDocument.body),n}function _2(e,t){const n=Wn(e);if(bf(e))return n;if(!Er(e)){let a=di(e);for(;a&&!vo(a);){if(As(a)&&!pp(a))return a;a=di(a)}return n}let r=y1(e,t);for(;r&&LM(r)&&pp(r);)r=y1(r,t);return r&&vo(r)&&pp(r)&&!jy(r)?n:r||UM(e)||n}const QM=async function(e){const t=this.getOffsetParent||_2,n=this.getDimensions,r=await n(e.floating);return{reference:ZM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function WM(e){return Rs(e).direction==="rtl"}const JM={convertOffsetParentRelativeRectToViewportRelativeRect:BM,getDocumentElement:Zs,getClippingRect:KM,getOffsetParent:_2,getElementRects:QM,getClientRects:HM,getDimensions:XM,getScale:mo,isElement:As,isRTL:WM};function A2(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function e5(e,t){let n=null,r;const a=Zs(e);function l(){var f;clearTimeout(r),(f=n)==null||f.disconnect(),n=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),l();const h=e.getBoundingClientRect(),{left:g,top:x,width:b,height:w}=h;if(f||t(),!b||!w)return;const N=nd(x),S=nd(a.clientWidth-(g+b)),j=nd(a.clientHeight-(x+w)),C=nd(g),E={rootMargin:-N+"px "+-S+"px "+-j+"px "+-C+"px",threshold:Zn(0,ui(1,p))||1};let R=!0;function O(M){const V=M[0].intersectionRatio;if(V!==p){if(!R)return u();V?u(!1,V):r=setTimeout(()=>{u(!1,1e-7)},1e3)}V===1&&!A2(h,e.getBoundingClientRect())&&u(),R=!1}try{n=new IntersectionObserver(O,{...E,root:a.ownerDocument})}catch{n=new IntersectionObserver(O,E)}n.observe(e)}return u(!0),l}function t5(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:a=!0,ancestorResize:l=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,h=Ty(e),g=a||l?[...h?ac(h):[],...t?ac(t):[]]:[];g.forEach(C=>{a&&C.addEventListener("scroll",n,{passive:!0}),l&&C.addEventListener("resize",n)});const x=h&&f?e5(h,n):null;let b=-1,w=null;u&&(w=new ResizeObserver(C=>{let[_]=C;_&&_.target===h&&w&&t&&(w.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var E;(E=w)==null||E.observe(t)})),n()}),h&&!p&&w.observe(h),t&&w.observe(t));let N,S=p?ta(e):null;p&&j();function j(){const C=ta(e);S&&!A2(S,C)&&n(),S=C,N=requestAnimationFrame(j)}return n(),()=>{var C;g.forEach(_=>{a&&_.removeEventListener("scroll",n),l&&_.removeEventListener("resize",n)}),x?.(),(C=w)==null||C.disconnect(),w=null,p&&cancelAnimationFrame(N)}}const n5=OM,s5=DM,r5=AM,i5=zM,a5=RM,x1=_M,o5=MM,l5=(e,t,n)=>{const r=new Map,a={platform:JM,...n},l={...a.platform,_c:r};return CM(e,t,{...a,platform:l})};var c5=typeof document<"u",u5=function(){},gd=c5?v.useLayoutEffect:u5;function zd(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,a;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!zd(e[r],t[r]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,a[r]))return!1;for(r=n;r--!==0;){const l=a[r];if(!(l==="_owner"&&e.$$typeof)&&!zd(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function R2(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function v1(e,t){const n=R2(e);return Math.round(t*n)/n}function gp(e){const t=v.useRef(e);return gd(()=>{t.current=e}),t}function d5(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:a,elements:{reference:l,floating:u}={},transform:f=!0,whileElementsMounted:p,open:h}=e,[g,x]=v.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,w]=v.useState(r);zd(b,r)||w(r);const[N,S]=v.useState(null),[j,C]=v.useState(null),_=v.useCallback(Z=>{Z!==M.current&&(M.current=Z,S(Z))},[]),E=v.useCallback(Z=>{Z!==V.current&&(V.current=Z,C(Z))}
vendor: 4,309 bytes, line 9
9,[]),R=l||N,O=u||j,M=v.useRef(null),V=v.useRef(null),D=v.useRef(g),F=p!=null,W=gp(p),Q=gp(a),H=gp(h),ne=v.useCallback(()=>{if(!M.current||!V.current)return;const Z={placement:t,strategy:n,middleware:b};Q.current&&(Z.platform=Q.current),l5(M.current,V.current,Z).then(le=>{const k={...le,isPositioned:H.current!==!1};te.current&&!zd(D.current,k)&&(D.current=k,Ts.flushSync(()=>{x(k)}))})},[b,t,n,Q,H]);gd(()=>{h===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,x(Z=>({...Z,isPositioned:!1})))},[h]);const te=v.useRef(!1);gd(()=>(te.current=!0,()=>{te.current=!1}),[]),gd(()=>{if(R&&(M.current=R),O&&(V.current=O),R&&O){if(W.current)return W.current(R,O,ne);ne()}},[R,O,ne,W,F]);const oe=v.useMemo(()=>({reference:M,floating:V,setReference:_,setFloating:E}),[_,E]),P=v.useMemo(()=>({reference:R,floating:O}),[R,O]),Y=v.useMemo(()=>{const Z={position:n,left:0,top:0};if(!P.floating)return Z;const le=v1(P.floating,g.x),k=v1(P.floating,g.y);return f?{...Z,transform:"translate("+le+"px, "+k+"px)",...R2(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:le,top:k}},[n,f,P.floating,g.x,g.y]);return v.useMemo(()=>({...g,update:ne,refs:oe,elements:P,floatingStyles:Y}),[g,ne,oe,P,Y])}const f5=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:a}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?x1({element:r.current,padding:a}).fn(n):{}:r?x1({element:r,padding:a}).fn(n):{}}}},h5=(e,t)=>{const n=n5(e);return{name:n.name,fn:n.fn,options:[e,t]}},m5=(e,t)=>{const n=s5(e);return{name:n.name,fn:n.fn,options:[e,t]}},p5=(e,t)=>({fn:o5(e).fn,options:[e,t]}),g5=(e,t)=>{const n=r5(e);return{name:n.name,fn:n.fn,options:[e,t]}},y5=(e,t)=>{const n=i5(e);return{name:n.name,fn:n.fn,options:[e,t]}},x5=(e,t)=>{const n=a5(e);return{name:n.name,fn:n.fn,options:[e,t]}},v5=(e,t)=>{const n=f5(e);return{name:n.name,fn:n.fn,options:[e,t]}};var b5="Arrow",k2=v.forwardRef((e,t)=>{const{children:n,width:r=10,height:a=5,...l}=e;return c.jsx(We.svg,{...l,ref:t,width:r,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:c.jsx("polygon",{points:"0,0 30,0 15,10"})})});k2.displayName=b5;var w5=k2;function O2(e){const[t,n]=v.useState(void 0);return an(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(a=>{if(!Array.isArray(a)||!a.length)return;const l=a[0];let u,f;if("borderBoxSize"in l){const p=l.borderBoxSize,h=Array.isArray(p)?p[0]:p;u=h.inlineSize,f=h.blockSize}else u=e.offsetWidth,f=e.offsetHeight;n({width:u,height:f})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Ey="Popper",[D2,jf]=da(Ey),[S5,M2]=D2(Ey),z2=e=>{const{__scopePopper:t,children:n}=e,[r,a]=v.useState(null);return c.jsx(S5,{scope:t,anchor:r,onAnchorChange:a,children:n})};z2.displayName=Ey;var L2="PopperAnchor",V2=v.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...a}=e,l=M2(L2,n),u=v.useRef(null),f=pt(t,u),p=v.useRef(null);return v.useEffect(()=>{const h=p.current;p.current=r?.current||u.current,h!==p.current&&l.onAnchorChange(p.current)}),r?null:c.jsx(We.div,{...a,ref:f})});V2.displayName=L2;var Cy="PopperContent",[j5,N5]=D2(Cy),P2=v.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:a=0,align:l="center",alignOffset:u=0,arrowPadding:f=0,avoidCollisions:p=!0,collisionBoundary:h=[],collisionPadding:g=0,sticky:x="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:N,...S}=e,j=M2(Cy,n),[C,_]=v.useState(null),E=pt(t,xe=>_(xe)),[R,O]=v.useState(null),M=O2(R),V=M?.width??0,D=M?.height??0,F=r+(l!=="center"?"-"+l:""),W=typeof g=="number"?g:{top:0,right:0,bottom:0,left:0,...g},Q=Array.isArray(h)?h:[h],H=Q.length>0,ne={padding:W,boundary:Q.filter(E5),altBoundary:H},{refs:te,floatingStyles:oe,placement:P,isPositioned:Y,middlewareData:Z}=d5({strategy:"fixed",placement:F,whileElementsMounted:(...xe)=>t5(...xe,{animationFrame:w==="always"}),elements:{reference:j.anchor},middleware:[h5({mainAxis:a+D,alignmentAxis:u}),p&&m5({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?p5():void 0,...ne}),p&&g5({...ne}),y5({...ne,apply:({elements:xe,rects:Te,availableWidth:Re,availableHeight:we})=>{const{width:Pe,height:Be}=Te.reference,it=xe.floating.style;it.setProperty("--radix-popper-available-width",`${Re}
9px`),it.setProperty("--radix-popper-available-height",`${we}px`),it.setProperty("--radix-popper-anchor-width",`${Pe}px`),it.setProperty("--radix-popper-anchor-height",`${Be}px`)}}),R&&v5({element:R,padding:f}),C5({arrowWidth:V,arrowHeight:D}),b&&x5({strategy:"referenceHidden",...ne})]}),[le,k]=F2(P),I=_s(N);an(()=>{Y&&I?.()},[Y,I]);const J=Z.arrow?.x,se=Z.arrow?.y,ce=Z.arrow?.centerOffset!==0,[ve,de]=v.useState();return an(()=>{C&&de(window.getComputedStyle(C).zIndex)},[C]),c.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:Y?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ve,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(j5,{scope:n,placedSide:le,onArrowChange:O,arrowX:J,arrowY:se,shouldHideArrow:ce,children:c.jsx(We.div,{"data-side":le,"data-align":k,...S,ref:E,style:{...S.style,animation:Y?void 0:"none"}})})})});P2.displayName=Cy;var U2="PopperArrow",T5={top:"bottom",right:"left",bottom:"top",left:"right"},I2=v.forwardRef(function(t,n){const{__scopePopper:r,...a}=t,l=N5(U2,r),u=T5[l.placedSide];return c.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[u]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:c.jsx(w5,{...a,ref:n,style:{...a.style,display:"block"}})})});I2.displayName=U2;function E5(e){return e!==null}var C5=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:a}=t,u=a.arrow?.centerOffset!==0,f=u?0:e.arrowWidth,p=u?0:e.arrowHeight,[h,g]=F2(n),x={start:"0%",center:"50%",end:"100%"}[g],b=(a.arrow?.x??0)+f/2,w=(a.arrow?.y??0)+p/2;let N="",S="";return h==="bottom"?(N=u?x:`${b}px`,S=`${-p}px`):h==="top"?(N=u?x:`${b}px`,S=`${r.floating.height+p}px`):h==="right"?(N=`${-p}px`,S=u?x:`${w}px`):h==="left"&&(N=`${r.floating.width+p}px`,S=u?x:`${w}px`),{data:{x:N,y:S}}}});function F2(e){const[t,n="center"]=e.split("-");return[t,n]}var _5=z2,B2=V2,H2=P2,q2=I2,[Nf]=da("Tooltip",[jf]),_y=jf(),$2="TooltipProvider",A5=700,b1="tooltip.open",[R5,G2]=Nf($2),Y2=e=>{const{__scopeTooltip:t,delayDuration:n=A5,skipDelayDuration:r=300,disableHoverableContent:a=!1,children:l}=e,u=v.useRef(!0),f=v.useRef(!1),p=v.useRef(0);return v.useEffect(()=>{const h=p.current;return()=>window.clearTimeout(h)},[]),c.jsx(R5,{scope:t,isOpenDelayedRef:u,delayDuration:n,onOpen:v.useCallback(()=>{window.clearTimeout(p.current),u.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>u.current=!0,r)},[r]),isPointerInTransitRef:f,onPointerInTransitChange:v.useCallback(h=>{f.current=h},[]),disableHoverableContent:a,children:l})};Y2.displayName=$2;var K2="Tooltip",[gH,Ec]=Nf(K2),fg="TooltipTrigger",k5=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=Ec(fg,n),l=G2(fg,n),u=_y(n),f=v.useRef(null),p=pt(t,f,a.onTriggerChange),h=v.useRef(!1),g=v.useRef(!1),x=v.useCallback(()=>h.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),c.jsx(B2,{asChild:!0,...u,children:c.jsx(We.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...r,ref:p,onPointerMove:Fe(e.onPointerMove,b=>{b.pointerType!=="touch"&&!g.current&&!l.isPointerInTransitRef.current&&(a.onTriggerEnter(),g.current=!0)}),onPointerLeave:Fe(e.onPointerLeave,()=>{a.onTriggerLeave(),g.current=!1}),onPointerDown:Fe(e.onPointerDown,()=>{a.open&&a.onClose(),h.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:Fe(e.onFocus,()=>{h.current||a.onOpen()}),onBlur:Fe(e.onBlur,a.onClose),onClick:Fe(e.onClick,a.onClose)})})});k5.displayName=fg;var Ay="TooltipPortal",[O5,D5]=Nf(Ay,{forceMount:void 0}),X2=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:a}=e,l=Ec(Ay,t);return c.jsx(O5,{scope:t,forceMount:n,children:c.jsx(gi,{present:n||l.open,children:c.jsx(bc,{asChild:!0,container:a,children:r})})})};X2.displayName=Ay;var bo="TooltipContent",Z2=v.forwardRef((e,t)=>
vendor: 4,215 bytes, line 9
9{const n=D5(bo,e.__scopeTooltip),{forceMount:r=n.forceMount,side:a="top",...l}=e,u=Ec(bo,e.__scopeTooltip);return c.jsx(gi,{present:r||u.open,children:u.disableHoverableContent?c.jsx(Q2,{side:a,...l,ref:t}):c.jsx(M5,{side:a,...l,ref:t})})}),M5=v.forwardRef((e,t)=>{const n=Ec(bo,e.__scopeTooltip),r=G2(bo,e.__scopeTooltip),a=v.useRef(null),l=pt(t,a),[u,f]=v.useState(null),{trigger:p,onClose:h}=n,g=a.current,{onPointerInTransitChange:x}=r,b=v.useCallback(()=>{f(null),x(!1)},[x]),w=v.useCallback((N,S)=>{const j=N.currentTarget,C={x:N.clientX,y:N.clientY},_=U5(C,j.getBoundingClientRect()),E=I5(C,_),R=F5(S.getBoundingClientRect()),O=H5([...E,...R]);f(O),x(!0)},[x]);return v.useEffect(()=>()=>b(),[b]),v.useEffect(()=>{if(p&&g){const N=j=>w(j,g),S=j=>w(j,p);return p.addEventListener("pointerleave",N),g.addEventListener("pointerleave",S),()=>{p.removeEventListener("pointerleave",N),g.removeEventListener("pointerleave",S)}}},[p,g,w,b]),v.useEffect(()=>{if(u){const N=S=>{const j=S.target,C={x:S.clientX,y:S.clientY},_=p?.contains(j)||g?.contains(j),E=!B5(C,u);_?b():E&&(b(),h())};return document.addEventListener("pointermove",N),()=>document.removeEventListener("pointermove",N)}},[p,g,u,h,b]),c.jsx(Q2,{...e,ref:l})}),[z5,L5]=Nf(K2,{isInside:!1}),V5=uO("TooltipContent"),Q2=v.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":a,onEscapeKeyDown:l,onPointerDownOutside:u,...f}=e,p=Ec(bo,n),h=_y(n),{onClose:g}=p;return v.useEffect(()=>(document.addEventListener(b1,g),()=>document.removeEventListener(b1,g)),[g]),v.useEffect(()=>{if(p.trigger){const x=b=>{b.target?.contains(p.trigger)&&g()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[p.trigger,g]),c.jsx(vc,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:x=>x.preventDefault(),onDismiss:g,children:c.jsxs(H2,{"data-state":p.stateAttribute,...h,...f,ref:t,style:{...f.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:[c.jsx(V5,{children:r}),c.jsx(z5,{scope:n,isInside:!0,children:c.jsx(OO,{id:p.contentId,role:"tooltip",children:a||r})})]})})});Z2.displayName=bo;var W2="TooltipArrow",P5=v.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,a=_y(n);return L5(W2,n).isInside?null:c.jsx(q2,{...a,...r,ref:t})});P5.displayName=W2;function U5(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,a,l)){case l:return"left";case a:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function I5(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function F5(e){const{top:t,right:n,bottom:r,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:r},{x:a,y:r}]}function B5(e,t){const{x:n,y:r}=e;let a=!1;for(let l=0,u=t.length-1;l<t.length;u=l++){const f=t[l],p=t[u],h=f.x,g=f.y,x=p.x,b=p.y;g>r!=b>r&&n<(x-h)*(r-g)/(b-g)+h&&(a=!a)}return a}function H5(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),q5(t)}function q5(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const a=e[r];for(;t.length>=2;){const l=t[t.length-1],u=t[t.length-2];if((l.x-u.x)*(a.y-u.y)>=(l.y-u.y)*(a.x-u.x))t.pop();else break}t.push(a)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const a=e[r];for(;n.length>=2;){const l=n[n.length-1],u=n[n.length-2];if((l.x-u.x)*(a.y-u.y)>=(l.y-u.y)*(a.x-u.x))n.pop();else break}n.push(a)}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)}var $5=Y2,G5=X2,J2=Z2;const Y5=$5,K5=v.forwardRef(({className:e,sideOffset:t=4,...n},r)=>
vendor: 23,764 bytes, line 9
9c.jsx(G5,{children:c.jsx(J2,{ref:r,sideOffset:t,className:Qe("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground 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})}));K5.displayName=J2.displayName;const Ry=v.createContext({});function Cc(e){const t=v.useRef(null);return t.current===null&&(t.current=e()),t.current}const X5=typeof window<"u",ky=X5?v.useLayoutEffect:v.useEffect,Tf=v.createContext(null);function Oy(e,t){e.indexOf(t)===-1&&e.push(t)}function Ld(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Xs=(e,t,n)=>n>t?t:n<e?e:n;let Dy=()=>{};const wr={},eT=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function tT(e){return typeof e=="object"&&e!==null}const nT=e=>/^0[^.\s]+$/u.test(e);function sT(e){let t;return()=>(t===void 0&&(t=e()),t)}const ms=e=>e,Z5=(e,t)=>n=>t(e(n)),_c=(...e)=>e.reduce(Z5),oc=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class My{constructor(){this.subscriptions=[]}add(t){return Oy(this.subscriptions,t),()=>Ld(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let l=0;l<a;l++){const u=this.subscriptions[l];u&&u(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Es=e=>e*1e3,hs=e=>e/1e3;function rT(e,t){return t?e*(1e3/t):0}const iT=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Q5=1e-7,W5=12;function J5(e,t,n,r,a){let l,u,f=0;do u=t+(n-t)/2,l=iT(u,r,a)-e,l>0?n=u:t=u;while(Math.abs(l)>Q5&&++f<W5);return u}function Ac(e,t,n,r){if(e===t&&n===r)return ms;const a=l=>J5(l,0,1,e,n);return l=>l===0||l===1?l:iT(a(l),t,r)}const aT=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,oT=e=>t=>1-e(1-t),lT=Ac(.33,1.53,.69,.99),zy=oT(lT),cT=aT(zy),uT=e=>(e*=2)<1?.5*zy(e):.5*(2-Math.pow(2,-10*(e-1))),Ly=e=>1-Math.sin(Math.acos(e)),dT=oT(Ly),fT=aT(Ly),ez=Ac(.42,0,1,1),tz=Ac(0,0,.58,1),hT=Ac(.42,0,.58,1),nz=e=>Array.isArray(e)&&typeof e[0]!="number",mT=e=>Array.isArray(e)&&typeof e[0]=="number",sz={linear:ms,easeIn:ez,easeInOut:hT,easeOut:tz,circIn:Ly,circInOut:fT,circOut:dT,backIn:zy,backInOut:cT,backOut:lT,anticipate:uT},rz=e=>typeof e=="string",w1=e=>{if(mT(e)){Dy(e.length===4);const[t,n,r,a]=e;return Ac(t,n,r,a)}else if(rz(e))return sz[e];return e},sd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function iz(e,t){let n=new Set,r=new Set,a=!1,l=!1;const u=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function p(g){u.has(g)&&(h.schedule(g),e()),g(f)}const h={schedule:(g,x=!1,b=!1)=>{const N=b&&a?n:r;return x&&u.add(g),N.has(g)||N.add(g),g},cancel:g=>{r.delete(g),u.delete(g)},process:g=>{if(f=g,a){l=!0;return}a=!0,[n,r]=[r,n],n.forEach(p),n.clear(),a=!1,l&&(l=!1,h.process(g))}};return h}const az=40;function pT(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=sd.reduce((E,R)=>(E[R]=iz(l),E),{}),{setup:f,read:p,resolveKeyframes:h,preUpdate:g,update:x,preRender:b,render:w,postRender:N}=u,S=()=>{const E=wr.useManualTiming?a.timestamp:performance.now();n=!1,wr.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(E-a.timestamp,az),1)),a.timestamp=E,a.isProcessing=!0,f.process(a),p.process(a),h.process(a),g.process(a),x.process(a),b.process(a),w.process(a),N.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(S))},j=()=>{n=!0,r=!0,a.isProcessing||e(S)};return{schedule:sd.reduce((E,R)=>{const O=u[R];return E[R]=(M,V=!1,D=!1)=>(n||j(),O.schedule(M,V,D)),E},{}),cancel:E=>{for(let R=0;R<sd.length;R++)u[sd[R]].cancel(E)},state:a,steps:u}}const{schedule:ht,cancel:Sr,state:rn,steps:yp}=pT(typeof requestAnimationFrame<"u"?requestAnimationFrame:ms,!0);let yd;function oz(){yd=void 0}const Tn={now:()=>(yd===void 0&&Tn.set(rn.isProcessing||wr.useManualTiming?rn.timestamp:performance.now()),yd),set:e=>{yd=e,queueMicrotask(oz)}},gT=e=>t=>typeof t=="string"&&t.startsWith(e),yT=gT("--"),lz=gT("var(--"),Vy=e=>lz(e)?cz.test(e.split("/*")[0].trim()):!1,cz=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function S1(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const ko={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},lc={...ko,transform:e=>Xs(0,1,e)},rd={...ko,default:1},Yl=e=>Math.round(e*1e5)/1e5,Py=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function uz(e){return e==null}const dz=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Uy=(e,t)=>n=>!!(typeof n=="string"&&dz.test(n)&&n.startsWith(e)||t&&!uz(n)&&Object.prototype.hasOwnProperty.call(n,t)),xT=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,l,u,f]=r.match(Py);return{[e]:parseFloat(a),[t]:parseFloat(l),[n]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},fz=e=>Xs(0,255,e),xp={...ko,transform:e=>Math.round(fz(e))},Ki={test:Uy("rgb","red"),parse:xT("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xp.transform(e)+", "+xp.transform(t)+", "+xp.transform(n)+", "+Yl(lc.transform(r))+")"};function hz(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const hg={test:Uy("#"),parse:hz,transform:Ki.transform},Rc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ti=Rc("deg"),Gs=Rc("%"),Ne=Rc("px"),mz=Rc("vh"),pz=Rc("vw"),j1={...Gs,parse:e=>Gs.parse(e)/100,transform:e=>Gs.transform(e*100)},oo={test:Uy("hsl","hue"),parse:xT("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Gs.transform(Yl(t))+", "+Gs.transform(Yl(n))+", "+Yl(lc.transform(r))+")"},Lt={test:e=>Ki.test(e)||hg.test(e)||oo.test(e),parse:e=>Ki.test(e)?Ki.parse(e):oo.test(e)?oo.parse(e):hg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ki.transform(e):oo.transform(e),getAnimatableNone:e=>{const t=Lt.parse(e);return t.alpha=0,Lt.transform(t)}},gz=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function yz(e){return isNaN(e)&&typeof e=="string"&&(e.match(Py)?.length||0)+(e.match(gz)?.length||0)>0}const vT="number",bT="color",xz="var",vz="var(",N1="${}",bz=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function cc(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let l=0;const f=t.replace(bz,p=>(Lt.test(p)?(r.color.push(l),a.push(bT),n.push(Lt.parse(p))):p.startsWith(vz)?(r.var.push(l),a.push(xz),n.push(p)):(r.number.push(l),a.push(vT),n.push(parseFloat(p))),++l,N1)).split(N1);return{values:n,split:f,indexes:r,types:a}}function wT(e){return cc(e).values}function ST(e){const{split:t,types:n}=cc(e),r=t.length;return a=>{let l="";for(let u=0;u<r;u++)if(l+=t[u],a[u]!==void 0){const f=n[u];f===vT?l+=Yl(a[u]):f===bT?l+=Lt.transform(a[u]):l+=a[u]}return l}}const wz=e=>typeof e=="number"?0:Lt.test(e)?Lt.getAnimatableNone(e):e;function Sz(e){const t=wT(e);return ST(e)(t.map(wz))}const Cs={test:yz,parse:wT,createTransformer:ST,getAnimatableNone:Sz};function vp(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jz({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,l=0,u=0;if(!t)a=l=u=n;else{const f=n<.5?n*(1+t):n+t-n*t,p=2*n-f;a=vp(p,f,e+1/3),l=vp(p,f,e),u=vp(p,f,e-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:r}}function Vd(e,t){return n=>n>0?t:e}const Nt=(e,t,n)=>e+(t-e)*n,bp=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},Nz=[hg,Ki,oo],Tz=e=>Nz.find(t=>t.test(e));function T1(e){const t=Tz(e);if(!t)return!1;let n=t.parse(e);return t===oo&&(n=jz(n)),n}const E1=(e,t)=>{const n=T1(e),r=T1(t);if(!n||!r)return Vd(e,t);const a={...n};return l=>(a.red=bp(n.red,r.red,l),a.green=bp(n.green,r.green,l),a.blue=bp(n.blue,r.blue,l),a.alpha=Nt(n.alpha,r.alpha,l),Ki.transform(a))},mg=new Set(["none","hidden"]);function Ez(e,t){return mg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function Cz(e,t){return n=>Nt(e,t,n)}function Iy(e){return typeof e=="number"?Cz:typeof e=="string"?Vy(e)?Vd:Lt.test(e)?E1:Rz:Array.isArray(e)?jT:typeof e=="object"?Lt.test(e)?E1:_z:Vd}function jT(e,t){const n=[...e],r=n.length,a=e.map((l,u)=>Iy(l)(l,t[u]));return l=>{for(let u=0;u<r;u++)n[u]=a[u](l);return n}}function _z(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Iy(e[a])(e[a],t[a]));return a=>{for(const l in r)n[l]=r[l](a);return n}}function Az(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],u=e.indexes[l][r[l]],f=e.values[u]??0;n[a]=f,r[l]++}return n}const Rz=(e,t)=>{const n=Cs.createTransformer(t),r=cc(e),a=cc(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?mg.has(e)&&!a.values.length||mg.has(t)&&!r.values.length?Ez(e,t):_c(jT(Az(r,a),a.values),n):Vd(e,t)};function NT(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Nt(e,t,n):Iy(e)(e,t)}const kz=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ht.update(t,n),stop:()=>Sr(t),now:()=>rn.isProcessing?rn.timestamp:Tn.now()}},TT=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let l=0;l<a;l++)r+=Math.round(e(l/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},Pd=2e4;function Fy(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Pd;)t+=n,r=e.next(t);return t>=Pd?1/0:t}function Oz(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(Fy(r),Pd);return{type:"keyframes",ease:l=>r.next(a*l).value/t,duration:hs(a)}}const Dz=5;function ET(e,t,n){const r=Math.max(t-Dz,0);return rT(n-e(r),t-r)}const _t={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},wp=.001;function Mz({duration:e=_t.duration,bounce:t=_t.bounce,velocity:n=_t.velocity,mass:r=_t.mass}){let a,l,u=1-t;u=Xs(_t.minDamping,_t.maxDamping,u),e=Xs(_t.minDuration,_t.maxDuration,hs(e)),u<1?(a=h=>{const g=h*u,x=g*e,b=g-n,w=pg(h,u),N=Math.exp(-x);return wp-b/w*N},l=h=>{const x=h*u*e,b=x*n+n,w=Math.pow(u,2)*Math.pow(h,2)*e,N=Math.exp(-x),S=pg(Math.pow(h,2),u);return(-a(h)+wp>0?-1:1)*((b-w)*N)/S}):(a=h=>{const g=Math.exp(-h*e),x=(h-n)*e+1;return-wp+g*x},l=h=>{const g=Math.exp(-h*e),x=(n-h)*(e*e);return g*x});const f=5/e,p=Lz(a,l,f);if(e=Es(e),isNaN(p))return{stiffness:_t.stiffness,damping:_t.damping,duration:e};{const h=Math.pow(p,2)*r;return{stiffness:h,damping:u*2*Math.sqrt(r*h),duration:e}}}const zz=12;function Lz(e,t,n){let r=n;for(let a=1;a<zz;a++)r=r-e(r)/t(r);return r}function pg(e,t){return e*Math.sqrt(1-t*t)}const Vz=["duration","bounce"],Pz=["stiffness","damping","mass"];function C1(e,t){return t.some(n=>e[n]!==void 0)}function Uz(e){let t={velocity:_t.velocity,stiffness:_t.stiffness,damping:_t.damping,mass:_t.mass,isResolvedFromDuration:!1,...e};if(!C1(e,Pz)&&C1(e,Vz))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,l=2*Xs(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:_t.mass,stiffness:a,damping:l}}else{const n=Mz({...e,velocity:0});t={...t,...n,mass:_t.mass},t.isResolvedFromDuration=!0}return t}function Ud(e=_t.visualDuration,t=_t.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],f={done:!1,value:l},{stiffness:p,damping:h,mass:g,duration:x,velocity:b,isResolvedFromDuration:w}=Uz({...n,velocity:-hs(n.velocity||0)}),N=b||0,S=h/(2*Math.sqrt(p*g)),j=u-l,C=hs(Math.sqrt(p/g)),_=Math.abs(j)<5;r||(r=_?_t.restSpeed.granular:_t.restSpeed.default),a||(a=_?_t.restDelta.granular:_t.restDelta.default);let E;if(S<1){const O=pg(C,S);E=M=>{const V=Math.exp(-S*C*M);return u-V*((N+S*C*j)/O*Math.sin(O*M)+j*Math.cos(O*M))}}else if(S===1)E=O=>u-Math.exp(-C*O)*(j+(N+C*j)*O);else{const O=C*Math.sqrt(S*S-1);E=M=>{const V=Math.exp(-S*C*M),D=Math.min(O*M,300);return u-V*((N+S*C*j)*Math.sinh(D)+O*j*Math.cosh(D))/O}}const R={calculatedDuration:w&&x||null,next:O=>{const M=E(O);if(w)f.done=O>=x;else{let V=O===0?N:0;S<1&&(V=O===0?Es(N):ET(E,O,M));const D=Math.abs(V)<=r,F=Math.abs(u-M)<=a;f.done=D&&F}return f.value=f.done?u:M,f},toString:()=>{const O=Math.min(Fy(R),Pd),M=TT(V=>R.next(O*V).value,O,30);return O+"ms "+M},toTransition:()=>{}};return R}Ud.applyToOptions=e=>{const t=Oz(e,100,Ud);return e.ease=t.ease,e.duration=Es(t.duration),e.type="keyframes",e};function gg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:f,max:p,restDelta:h=.5,restSpeed:g}){const x=e[0],b={done:!1,value:x},w=D=>f!==void 0&&D<f||p!==void 0&&D>p,N=D=>f===void 0?p:p===void 0||Math.abs(f-D)<Math.abs(p-D)?f:p;let S=n*t;const j=x+S,C=u===void 0?j:u(j);C!==j&&(S=C-x);const _=D=>-S*Math.exp(-D/r),E=D=>C+_(D),R=D=>{const F=_(D),W=E(D);b.done=Math.abs(F)<=h,b.value=b.done?C:W};let O,M;const V=D=>{w(b.value)&&(O=D,M=Ud({keyframes:[b.value,N(b.value)],velocity:ET(E,D,b.value),damping:a,stiffness:l,restDelta:h,restSpeed:g}))};return V(0),{calculatedDuration:null,next:D=>{let F=!1;return!M&&O===void 0&&(F=!0,R(D),V(D)),O!==void 0&&D>=O?M.next(D-O):(!F&&R(D),b)}}}function Iz(e,t,n){const r=[],a=n||wr.mix||NT,l=e.length-1;for(let u=0;u<l;u++){let f=a(e[u],e[u+1]);if(t){const p=Array.isArray(t)?t[u]||ms:t;f=_c(p,f)}r.push(f)}return r}function CT(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const l=e.length;if(Dy(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[l-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=Iz(t,r,a),p=f.length,h=g=>{if(u&&g<e[0])return t[0];let x=0;if(p>1)for(;x<e.length-2&&!(g<e[x+1]);x++);const b=oc(e[x],e[x+1],g);return f[x](b)};return n?g=>h(Xs(e[0],e[l-1],g)):h}function Fz(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=oc(0,t,r);e.push(Nt(n,1,a))}}function Bz(e){const t=[0];return Fz(t,e.length-1),t}function Hz(e,t){return e.map(n=>n*t)}function qz(e,t){return e.map(()=>t||hT).splice(0,e.length-1)}function Kl({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=nz(r)?r.map(w1):w1(r),l={done:!1,value:t[0]},u=Hz(n&&n.length===t.length?n:Bz(t),e),f=CT(u,t,{ease:Array.isArray(a)?a:qz(t,a)});return{calculatedDuration:e,next:p=>(l.value=f(p),l.done=p>=e,l)}}const $z=e=>e!==null;function By(e,{repeat:t,repeatType:n="loop"},r,a=1){const l=e.filter($z),f=a<0||t&&n!=="loop"&&t%2===1?0:l.length-1;return!f||r===void 0?l[f]:r}const Gz={decay:gg,inertia:gg,tween:Kl,keyframes:Kl,spring:Ud};function _T(e){typeof e.type=="string"&&(e.type=Gz[e.type])}class Hy{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const Yz=e=>e/100;class Ef extends Hy{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==Tn.now()&&this.tick(Tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;_T(t);const{type:n=Kl,repeat:r=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=t;let{keyframes:f}=t;const p=n||Kl;p!==Kl&&typeof f[0]!="number"&&(this.mixKeyframes=_c(Yz,NT(f[0],f[1])),f=[0,100]);const h=p({...t,keyframes:f});l==="mirror"&&(this.mirroredGenerator=p({...t,keyframes:[...f].reverse(),velocity:-u})),h.calculatedDuration===null&&(h.calculatedDuration=Fy(h));const{calculatedDuration:g}=h;this.calculatedDuration=g,this.resolvedDuration=g+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=h}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:l,mirroredGenerator:u,resolvedDuration:f,calculatedDuration:p}=this;if(this.startTime===null)return r.next(0);const{delay:h=0,keyframes:g,repeat:x,repeatType:b,repeatDelay:w,type:N,onUpdate:S,finalKeyframe:j}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const C=this.currentTime-h*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?C<0:C>a;this.currentTime=Math.max(C,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let E=this.currentTime,R=r;if(x){const D=Math.min(this.currentTime,a)/f;let F=Math.floor(D),W=D%1;!W&&D>=1&&(W=1),W===1&&F--,F=Math.min(F,x+1),F%2&&(b==="reverse"?(W=1-W,w&&(W-=w/f)):b==="mirror"&&(R=u)),E=Xs(0,1,W)*f}const O=_?{done:!1,value:g[0]}:R.next(E);l&&!_&&(O.value=l(O.value));let{done:M}=O;!_&&p!==null&&(M=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const V=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return V&&N!==gg&&(O.value=By(g,this.options,j,this.speed)),S&&S(O.value),V&&this.finish(),O}then(t,n){return this.finished.then(t,n)}get duration(){return hs(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+hs(t)}get time(){return hs(this.currentTime)}set time(t){t=Es(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(Tn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=hs(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=kz,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),this.options.onPlay?.();const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),t.observe(this)}}function Kz(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Xi=e=>e*180/Math.PI,yg=e=>{const t=Xi(Math.atan2(e[1],e[0]));return xg(t)},Xz={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:yg,rotateZ:yg,skewX:e=>Xi(Math.atan(e[1])),skewY:e=>Xi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},xg=e=>(e=e%360,e<0&&(e+=360),e),_1=yg,A1=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),R1=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Zz={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:A1,scaleY:R1,scale:e=>(A1(e)+R1(e))/2,rotateX:e=>xg(Xi(Math.atan2(e[6],e[5]))),rotateY:e=>xg(Xi(Math.atan2(-e[2],e[0]))),rotateZ:_1,rotate:_1,skewX:e=>Xi(Math.atan(e[4])),skewY:e=>Xi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function vg(e){return e.includes("scale")?1:0}function bg(e,t){if(!e||e==="none")return vg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=Zz,a=n;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=Xz,a=f}if(!a)return vg(t);const l=r[t],u=a[1].split(",").map(Wz);return typeof l=="function"?l(u):u[l]}const Qz=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return bg(n,t)};function Wz(e){return parseFloat(e.trim())}const Oo=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Do=new Set(Oo),k1=e=>e===ko||e===Ne,Jz=new Set(["x","y","z"]),e6=Oo.filter(e=>!Jz.has(e));function t6(e){const t=[];return e6.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ai={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>bg(t,"x"),y:(e,{transform:t})=>bg(t,"y")};ai.translateX=ai.x;ai.translateY=ai.y;const Qi=new Set;let wg=!1,Sg=!1,jg=!1;function AT(){if(Sg){const e=Array.from(Qi).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=t6(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([l,u])=>{r.getValue(l)?.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}Sg=!1,wg=!1,Qi.forEach(e=>e.complete(jg)),Qi.clear()}function RT(){Qi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Sg=!0)})}function n6(){jg=!0,RT(),AT(),jg=!1}class qy{constructor(t,n,r,a,l,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=l,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Qi.add(this),wg||(wg=!0,ht.read(RT),ht.resolveKeyframes(AT))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const l=a?.get(),u=t[t.length-1];if(l!==void 0)t[0]=l;else if(r&&n){const f=r.readValue(n,u);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=u),a&&l===void 0&&a.set(t[0])}Kz(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Qi.delete(this)}cancel(){this.state==="scheduled"&&(Qi.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const s6=e=>e.startsWith("--");function kT(e,t,n){s6(t)?e.style.setProperty(t,n):e.style[t]=n}const r6={};function OT(e,t){const n=sT(e);return()=>r6[t]??n()}const i6=OT(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),DT=OT(()=>{try{document.createElement("div").animate({opacity:0}
vendor: 5,090 bytes, line 9
9,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Bl=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,O1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Bl([0,.65,.55,1]),circOut:Bl([.55,0,1,.45]),backIn:Bl([.31,.01,.66,-.59]),backOut:Bl([.33,1.53,.69,.99])};function MT(e,t){if(e)return typeof e=="function"?DT()?TT(e,t):"ease-out":mT(e)?Bl(e):Array.isArray(e)?e.map(n=>MT(n,t)||O1.easeOut):O1[e]}function a6(e,t,n,{delay:r=0,duration:a=300,repeat:l=0,repeatType:u="loop",ease:f="easeOut",times:p}={},h=void 0){const g={[t]:n};p&&(g.offset=p);const x=MT(f,a);Array.isArray(x)&&(g.easing=x);const b={delay:r,duration:a,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),e.animate(g,b)}function zT(e){return typeof e=="function"&&"applyToOptions"in e}function o6({type:e,...t}){return zT(e)&&DT()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class LT extends Hy{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:l,allowFlatten:u=!1,finalKeyframe:f,onComplete:p}=t;this.isPseudoElement=!!l,this.allowFlatten=u,this.options=t,Dy(typeof t.type!="string");const h=o6(t);this.animation=a6(n,r,a,h,l),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const g=By(a,this.options,f,this.speed);this.updateMotionValue&&this.updateMotionValue(g),kT(n,r,g),this.animation.cancel()}p?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){const t=this.options?.element;!this.isPseudoElement&&t?.isConnected&&this.animation.commitStyles?.()}get duration(){const t=this.animation.effect?.getComputedTiming?.().duration||0;return hs(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+hs(t)}get time(){return hs(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Es(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,t&&i6()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),ms):a(this)}}const VT={anticipate:uT,backInOut:cT,circInOut:fT};function l6(e){return e in VT}function c6(e){typeof e.ease=="string"&&l6(e.ease)&&(e.ease=VT[e.ease])}const Sp=10;class u6 extends LT{constructor(t){c6(t),_T(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:l,...u}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const f=new Ef({...u,autoplay:!1}),p=Math.max(Sp,Tn.now()-this.startTime),h=Xs(0,Sp,p-Sp),g=f.sample(p).value,{name:x}=this.options;l&&x&&kT(l,x,g),n.setWithVelocity(f.sample(Math.max(0,p-h)).value,g,h),f.stop()}}const D1=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Cs.test(e)||e==="0")&&!e.startsWith("url("));function d6(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function f6(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const l=e[e.length-1],u=D1(a,t),f=D1(l,t);return!u||!f?!1:d6(e)||(n==="spring"||zT(n))&&r}function Ng(e){e.duration=0,e.type="keyframes"}const h6=new Set(["opacity","clipPath","filter","transform"]),m6=sT(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function p6(e){const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:l,type:u}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:h}=t.owner.getProps();return m6()&&n&&h6.has(n)&&(n!=="transform"||!h)&&!p&&!r&&a!=="mirror"&&l!==0&&u!=="inertia"}const g6=40;class y6 extends Hy{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",keyframes:f,name:p,motionValue:h,element:g,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Tn.now();
9const b={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:l,repeatType:u,name:p,motionValue:h,element:g,...x},w=g?.KeyframeResolver||qy;this.keyframeResolver=new w(f,(N,S,j)=>this.onKeyframesResolved(N,S,b,!j),p,h,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:l,type:u,velocity:f,delay:p,isHandoff:h,onUpdate:g}=r;this.resolvedAt=Tn.now(),f6(t,l,u,f)||((wr.instantAnimations||!p)&&g?.(By(t,r,n)),t[0]=t[t.length-1],Ng(r),r.repeat=0);const b={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>g6?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=!h&&p6(b),N=b.motionValue?.owner?.current,S=w?new u6({...b,element:N}):new Ef(b);S.finished.then(()=>{this.notifyFinished()}).catch(ms),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),n6()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}function PT(e,t,n,r=0,a=1){const l=Array.from(e).sort((h,g)=>h.sortNodePosition(g)).indexOf(t),u=e.size,f=(u-1)*r;return typeof n=="function"?n(l,u):a===1?l*r:f-l*r}const x6=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function v6(e){const t=x6.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function UT(e,t,n=1){const[r,a]=v6(e);if(!r)return;const l=window.getComputedStyle(t).getPropertyValue(r);if(l){const u=l.trim();return eT(u)?parseFloat(u):u}return Vy(a)?UT(a,t,n+1):a}const b6={type:"spring",stiffness:500,damping:25,restSpeed:10},w6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),S6={type:"keyframes",duration:.8},j6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},N6=(e,{keyframes:t})=>t.length>2?S6:Do.has(e)?e.startsWith("scale")?w6(t[1]):b6:j6,T6=e=>e!==null;function E6(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(T6),l=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[l]}function IT(e,t){if(e?.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function $y(e,t){const n=e?.[t]??e?.default??e;return n!==e?IT(n,e):n}function C6({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:l,repeatType:u,repeatDelay:f,from:p,elapsed:
vendor: 15,180 bytes, line 9
9h,...g}){return!!Object.keys(g).length}const Gy=(e,t,n,r={},a,l)=>u=>{const f=$y(r,e)||{},p=f.delay||r.delay||0;let{elapsed:h=0}=r;h=h-Es(p);const g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-h,onUpdate:b=>{t.set(b),f.onUpdate&&f.onUpdate(b)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:l?void 0:a};C6(f)||Object.assign(g,N6(e,g)),g.duration&&(g.duration=Es(g.duration)),g.repeatDelay&&(g.repeatDelay=Es(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let x=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Ng(g),g.delay===0&&(x=!0)),(wr.instantAnimations||wr.skipAnimations||a?.shouldSkipAnimations)&&(x=!0,Ng(g),g.delay=0),g.allowFlatten=!f.type&&!f.ease,x&&!l&&t.get()!==void 0){const b=E6(g.keyframes,f);if(b!==void 0){ht.update(()=>{g.onUpdate(b),g.onComplete()});return}}return f.isSync?new Ef(g):new y6(g)};function M1(e){const t=[{},{}];return e?.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Yy(e,t,n,r){if(typeof t=="function"){const[a,l]=M1(r);t=t(n!==void 0?n:e.custom,a,l)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,l]=M1(r);t=t(n!==void 0?n:e.custom,a,l)}return t}function po(e,t,n){const r=e.getProps();return Yy(r,t,n!==void 0?n:r.custom,e)}const FT=new Set(["width","height","top","left","right","bottom",...Oo]),z1=30,_6=e=>!isNaN(parseFloat(e)),Xl={current:void 0};class A6{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{const a=Tn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Tn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=_6(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new My);const r=this.events[t].add(n);return t==="change"?()=>{r(),ht.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return Xl.current&&Xl.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=Tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>z1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,z1);return rT(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function na(e,t){return new A6(e,t)}const Tg=e=>Array.isArray(e);function R6(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,na(n))}function k6(e){return Tg(e)?e[e.length-1]||0:e}function O6(e,t){const n=po(e,t);let{transitionEnd:r={},transition:a={},...l}=n||{};l={...l,...r};for(const u in l){const f=k6(l[u]);R6(e,u,f)}}const Jt=e=>!!(e&&e.getVelocity);function D6(e){return!!(Jt(e)&&e.add)}function Eg(e,t){const n=e.getValue("willChange");if(D6(n))return n.add(t);if(!n&&wr.WillChange){const r=new wr.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ky(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const M6="framerAppearId",BT="data-"+Ky(M6);function HT(e){return e.props[BT]}function z6({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function qT(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:l,transitionEnd:u,...f}=t;const p=e.getDefaultTransition();l=l?IT(l,p):p;const h=l?.reduceMotion;r&&(l=r);const g=[],x=a&&e.animationState&&e.animationState.getState()[a];for(const b in f){const w=e.getValue(b,e.latestValues[b]??null),N=f[b];if(N===void 0||x&&z6(x,b))continue;const S={delay:n,...$y(l||{},b)},j=w.get();if(j!==void 0&&!w.isAnimating&&!Array.isArray(N)&&N===j&&!S.velocity)continue;let C=!1;if(window.MotionHandoffAnimation){const R=HT(e);if(R){const O=window.MotionHandoffAnimation(R,b,ht);O!==null&&(S.startTime=O,C=!0)}}Eg(e,b);const _=h??e.shouldReduceMotion;w.start(Gy(b,w,N,_&&FT.has(b)?{type:!1}:S,e,C));const E=w.animation;E&&g.push(E)}if(u){const b=()=>ht.update(()=>{u&&O6(e,u)});g.length?Promise.all(g).then(b):b()}return g}function Cg(e,t,n={}){const r=po(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const l=r?()=>Promise.all(qT(e,r,n)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:h=0,staggerChildren:g,staggerDirection:x}=a;return L6(e,t,p,h,g,x,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[p,h]=f==="beforeChildren"?[l,u]:[u,l];return p().then(()=>h())}else return Promise.all([l(),u(n.delay)])}function L6(e,t,n=0,r=0,a=0,l=1,u){const f=[];for(const p of e.variantChildren)p.notify("AnimationStart",t),f.push(Cg(p,t,{...u,delay:n+(typeof r=="function"?0:r)+PT(e.variantChildren,p,r,a,l)}).then(()=>p.notify("AnimationComplete",t)));return Promise.all(f)}function V6(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(l=>Cg(e,l,n));r=Promise.all(a)}else if(typeof t=="string")r=Cg(e,t,n);else{const a=typeof t=="function"?po(e,t,n.custom):t;r=Promise.all(qT(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const P6={test:e=>e==="auto",parse:e=>e},$T=e=>t=>t.test(e),GT=[ko,Ne,Gs,ti,pz,mz,P6],L1=e=>GT.find($T(e));function U6(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nT(e):!0}const I6=new Set(["brightness","contrast","saturate","opacity"]);function F6(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Py)||[];if(!r)return e;const a=n.replace(r,"");let l=I6.has(t)?1:0;return r!==n&&(l*=100),t+"("+l+a+")"}const B6=/\b([a-z-]*)\(.*?\)/gu,_g={...Cs,getAnimatableNone:e=>{const t=e.match(B6);return t?t.map(F6).join(" "):e}},Ag={...Cs,getAnimatableNone:e=>{const t=Cs.parse(e);return Cs.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},V1={...ko,transform:Math.round},H6={rotate:ti,rotateX:ti,rotateY:ti,rotateZ:ti,scale:rd,scaleX:rd,scaleY:rd,scaleZ:rd,skew:ti,skewX:ti,skewY:ti,distance:Ne,translateX:Ne,translateY:Ne,translateZ:Ne,x:Ne,y:Ne,z:Ne,perspective:Ne,transformPerspective:Ne,opacity:lc,originX:j1,originY:j1,originZ:Ne},Xy={borderWidth:Ne,borderTopWidth:Ne,borderRightWidth:Ne,borderBottomWidth:Ne,borderLeftWidth:Ne,borderRadius:Ne,borderTopLeftRadius:Ne,borderTopRightRadius:Ne,borderBottomRightRadius:Ne,borderBottomLeftRadius:Ne,width:Ne,maxWidth:Ne,height:Ne,maxHeight:Ne,top:Ne,right:Ne,bottom:Ne,left:Ne,inset:Ne,insetBlock:Ne,insetBlockStart:Ne,insetBlockEnd:Ne,insetInline:Ne,insetInlineStart:Ne,insetInlineEnd:Ne,padding:Ne,paddingTop:Ne,paddingRight:Ne,paddingBottom:Ne,paddingLeft:Ne,paddingBlock:Ne,paddingBlockStart:Ne,paddingBlockEnd:Ne,paddingInline:Ne,paddingInlineStart:Ne,paddingInlineEnd:Ne,margin:Ne,marginTop:Ne,marginRight:Ne,marginBottom:Ne,marginLeft:Ne,marginBlock:Ne,marginBlockStart:Ne,marginBlockEnd:Ne,marginInline:Ne,marginInlineStart:Ne,marginInlineEnd:Ne,fontSize:Ne,backgroundPositionX:Ne,backgroundPositionY:Ne,...H6,zIndex:V1,fillOpacity:lc,strokeOpacity:lc,numOctaves:V1},q6={...Xy,color:Lt,backgroundColor:Lt,outlineColor:Lt,fill:Lt,stroke:Lt,borderColor:Lt,borderTopColor:Lt,borderRightColor:Lt,borderBottomColor:Lt,borderLeftColor:Lt,filter:_g,WebkitFilter:_g,mask:Ag,WebkitMask:Ag},YT=e=>q6[e],$6=new Set([_g,Ag]);function KT(e,t){let n=YT(e);return $6.has(n)||(n=Cs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const G6=new Set(["auto","none","0"]);function Y6(e,t,n){let r=0,a;for(;r<e.length&&!a;){const l=e[r];typeof l=="string"&&!G6.has(l)&&cc(l).values.length&&(a=e[r]),r++}if(a&&n)for(const l of t)e[l]=KT(n,a)}class K6 extends qy{constructor(t,n,r,a,l){super(t,n,r,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let g=0;g<t.length;g++){let x=t[g];if(typeof x=="string"&&(x=x.trim(),Vy(x))){const b=UT(x,n.current);b!==void 0&&(t[g]=b),g===t.length-1&&(this.finalKeyframe=x)}}if(this.resolveNoneKeyframes(),!FT.has(r)||t.length!==2)return;const[a,l]=t,u=L1(a),f=L1(l),p=S1(a),h=S1(l);if(p!==h&&ai[r]){this.needsMeasurement=!0;return}if(u!==f)if(k1(u)&&k1(f))for(let g=0;g<t.length;g++){const x=t[g];typeof x=="string"&&(t[g]=parseFloat(x))}else ai[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||U6(t[a]))&&r.push(a);r.length&&Y6(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=ai[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const l=r.length-1,u=r[l];r[l]=ai[n](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,p])=>{t.getValue(f).set(p)}),this.resolveNoneKeyframes()}}const X6=new Set(["opacity","clipPath","filter","transform"]);function Zy(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){const a=document.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(r=>r!=null)}const XT=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Rg(e){return tT(e)&&"offsetHeight"in e}const{schedule:Qy}=pT(queueMicrotask,!1),ws={x:!1,y:!1};function ZT(){return ws.x||ws.y}function Z6(e){return e==="x"||e==="y"?ws[e]?null:(ws[e]=!0,()=>{ws[e]=!1}):ws.x||ws.y?null:(ws.x=ws.y=!0,()=>{ws.x=ws.y=!1})}function QT(e,t){const n=Zy(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function Q6(e){return!(e.pointerType==="touch"||ZT())}function W6(e,t,n={}){const[r,a,l]=QT(e,n);return r.forEach(u=>{let f=!1,p=!1,h;const g=()=>{u.removeEventListener("pointerleave",N)},x=j=>{h&&(h(j),h=void 0),g()},b=j=>{f=!1,window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",b),p&&(p=!1,x(j))},w=()=>{f=!0,window.addEventListener("pointerup",b,a),window.addEventListener("pointercancel",b,a)},N=j=>{if(j.pointerType!=="touch"){if(f){p=!0;return}x(j)}},S=j=>{if(!Q6(j))return;p=!1;const C=t(u,j);typeof C=="function"&&(h=C,u.addEventListener("pointerleave",N,a))};u.addEventListener("pointerenter",S,a),u.addEventListener("pointerdown",w,a)}),l}const WT=(e,t)=>t?e===t?!0:WT(e,t.parentElement):!1,Wy=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,J6=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function e8(e){return J6.has(e.tagName)||e.isContentEditable===!0}const t8=new Set(["INPUT","SELECT","TEXTAREA"]);function n8(e){return t8.has(e.tagName)||e.isContentEditable===!0}const xd=new WeakSet;function P1(e){return t=>{t.key==="Enter"&&e(t)}}function jp(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const s8=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=P1(()=>{if(xd.has(n))return;jp(n,"down");const a=P1(()=>{jp(n,"up")}),l=()=>jp(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",l,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function U1(e){return Wy(e)&&!ZT()}const I1=new WeakSet;function r8(e,t,n={}){const[r,a,l]=QT(e,n),u=f=>{const p=f.currentTarget;if(!U1(f)||I1.has(f))return;xd.add(p),n.stopPropagation&&I1.add(f);const h=t(p,f),g=(w,N)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",b),xd.has(p)&&xd.delete(p),U1(w)&&typeof h=="function"&&h(w,{success:N})},x=w=>{g(w,p===window||p===document||n.useGlobalTarget||WT(p,w.target))},b=w=>{g(w,!1)};window.addEventListener("pointerup",x,a),window.addEventListener("pointercancel",b,a)};return r.forEach(f=>{(n.useGlobalTarget?window:f).addEventListener("pointerdown",u,a),Rg(f)&&(f.addEventListener("focus",h=>s8(h,a)),!e8(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),l}function Jy(e){return tT(e)&&"ownerSVGElement"in e}const vd=new WeakMap;let bd;const JT=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:Jy(r)&&"getBBox"in r?r.getBBox()[t]:r[n],i8=JT("inline","width","offsetWidth"),a8=JT("block","height","offsetHeight");function o8({target:e,borderBoxSize:t}){vd.get(e)?.forEach(n=>{n(e,{get width(){return i8(e,t)},get height(){return a8(e,t)}})})}function l8(e){e.forEach(o8)}function c8(){typeof ResizeObserver>"u"||(bd=new ResizeObserver(l8))}function u8(e,t){bd||c8();const n=Zy(e);return n.forEach(r=>{let a=vd.get(r);a||(a=new Set,vd.set(r,a)),a.add(t),bd?.observe(r)}),()=>{n.forEach(r=>{const a=vd.get(r);a?.delete(t),a?.size||bd?.unobserve(r)})}}const wd=new Set;let lo;function d8(){lo=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};wd.forEach(t=>t(e))},window.addEventListener("resize",lo)}function f8(e){return wd.add(e),lo||d8(),()=>{wd.delete(e),!wd.size&&typeof lo=="function"&&(window.removeEventListener("resize",lo),lo=void 0)}}function F1(e,t){return typeof e=="function"?f8(e):u8(e,t)}function h8(e){return Jy(e)&&e.tagName==="svg"}function m8(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],a=e[1+n],l=e[2+n],u=e[3+n],f=CT(a,l,u);return t?f(r):f}function p8(e,t,n={}){const r=e.get();let a=null,l=r,u;const f=typeof r=="string"?r.replace(/[\d.-]/g,""):void 0,p=()=>{a&&(a.stop(),a=null)},h=()=>{p();const g=H1(e.get()),x=H1(l);g!==x&&(a=new Ef({keyframes:[g,x],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...n,onUp
9date:u}))};if(e.attach((g,x)=>{l=g,u=b=>x(B1(b,f)),ht.postRender(()=>{h(),e.events.animationStart?.notify(),a?.then(()=>{e.events.animationComplete?.notify()})})},p),Jt(t)){const g=t.on("change",b=>e.set(B1(b,f))),x=e.on("destroy",g);return()=>{g(),x()}}return p}function B1(e,t){return t?e+t:e}function H1(e){return typeof e=="number"?e:parseFloat(e)}const g8=[...GT,Lt,Cs],y8=e=>g8.find($T(e)),q1=()=>({translate:0,scale:1,origin:0,originPoint:0}),co=()=>({x:q1(),y:q1()}),$1=()=>({min:0,max:0}),qt=()=>({x:$1(),y:$1()}),x8=new WeakMap;function Cf(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function uc(e){return typeof e=="string"||Array.isArray(e)}const ex=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tx=["initial",...ex];function _f(e){return Cf(e.animate)||tx.some(t=>uc(e[t]))}function eE(e){return!!(_f(e)||e.variants)}function v8(e,t,n){for(const r in t){const a=t[r],l=n[r];if(Jt(a))e.addValue(r,a);else if(Jt(l))e.addValue(r,na(a,{owner:e}));else if(l!==a)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=e.getStaticValue(r);e.addValue(r,na(u!==void 0?u:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const kg={current:null},tE={current:!1},b8=typeof window<"u";
vendor: 4,292 bytes, line 9
9function w8(){if(tE.current=!0,!!b8)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>kg.current=e.matches;e.addEventListener("change",t),t()}else kg.current=!1}const G1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let Id={};function nE(e){Id=e}function S8(){return Id}class j8{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:l,blockInitialAnimation:u,visualState:f},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=qy,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const w=Tn.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,ht.render(this.render,!1,!0))};const{latestValues:h,renderState:g}=f;this.latestValues=h,this.baseTarget={...h},this.initialValues=n.initial?{...h}:{},this.renderState=g,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=l,this.options=p,this.blockInitialAnimation=!!u,this.isControllingVariants=_f(n),this.isVariantNode=eE(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:x,...b}=this.scrapeMotionValuesFromProps(n,{},this);for(const w in b){const N=b[w];h[w]!==void 0&&Jt(N)&&N.set(h[w])}}mount(t){if(this.hasBeenMounted)for(const n in this.initialValues)this.values.get(n)?.jump(this.initialValues[n]),this.latestValues[n]=this.initialValues[n];this.current=t,x8.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(tE.current||w8(),this.shouldReduceMotion=kg.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),Sr(this.notifyUpdate),Sr(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&X6.has(t)&&this.current instanceof HTMLElement){const{factory:u,keyframes:f,times:p,ease:h,duration:g}=n.accelerate,x=new LT({element:this.current,name:t,keyframes:f,times:p,ease:h,duration:Es(g)}),b=u(x);this.valueSubscriptions.set(t,()=>{b(),x.cancel()});return}const r=Do.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&ht.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Id){const n=Id[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;
vendor: 8,375 bytes, line 9
9if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):qt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<G1.length;r++){const a=G1[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,u=t[l];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=v8(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=na(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(eT(r)||nT(r))?r=parseFloat(r):!y8(r)&&Cs.test(n)&&(r=KT(t,n)),this.setBaseTarget(t,Jt(r)?r.get():r)),Jt(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=Yy(this.props,n,this.presenceContext?.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Jt(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new My),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Qy.render(this.render)}}class sE extends j8{constructor(){super(...arguments),this.KeyframeResolver=K6}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Jt(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class xi{constructor(t){this.isMounted=!1,this.node=t}update(){}}function rE({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function N8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function T8(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Np(e){return e===void 0||e===1}function Og({scale:e,scaleX:t,scaleY:n}){return!Np(e)||!Np(t)||!Np(n)}function Gi(e){return Og(e)||iE(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iE(e){return Y1(e.x)||Y1(e.y)}function Y1(e){return e&&e!=="0%"}function Fd(e,t,n){const r=e-n,a=t*r;return n+a}function K1(e,t,n,r,a){return a!==void 0&&(e=Fd(e,a,r)),Fd(e,n,r)+t}function Dg(e,t=0,n=1,r,a){e.min=K1(e.min,t,n,r,a),e.max=K1(e.max,t,n,r,a)}function aE(e,{x:t,y:n}){Dg(e.x,t.translate,t.scale,t.originPoint),Dg(e.y,n.translate,n.scale,n.originPoint)}const X1=.999999999999,Z1=1.0000000000001;function E8(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let l,u;for(let f=0;f<a;f++){l=n[f],u=l.projectionDelta;const{visualElement:p}=l.options;p&&p.props.style&&p.props.style.display==="contents"||(r&&l.options.layoutScroll&&l.scroll&&l!==l.root&&fo(e,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,aE(e,u)),r&&Gi(l.latestValues)&&fo(e,l.latestValues))}t.x<Z1&&t.x>X1&&(t.x=1),t.y<Z1&&t.y>X1&&(t.y=1)}function uo(e,t){e.min=e.min+t,e.max=e.max+t}function Q1(e,t,n,r,a=.5){const l=Nt(e.min,e.max,a);Dg(e,t,n,l,r)}function W1(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function fo(e,t){Q1(e.x,W1(t.x,e.x),t.scaleX,t.scale,t.originX),Q1(e.y,W1(t.y,e.y),t.scaleY,t.scale,t.originY)}function oE(e,t){return rE(T8(e.getBoundingClientRect(),t))}function C8(e,t,n){const r=oE(e,n),{scroll:a}=t;return a&&(uo(r.x,a.offset.x),uo(r.y,a.offset.y)),r}const _8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},A8=Oo.length;function R8(e,t,n){let r="",a=!0;for(let l=0;l<A8;l++){const u=Oo[l],f=e[u];if(f===void 0)continue;let p=!0;if(typeof f=="number")p=f===(u.startsWith("scale")?1:0);else{const h=parseFloat(f);p=u.startsWith("scale")?h===1:h===0}if(!p||n){const h=XT(f,Xy[u]);if(!p){a=!1;const g=_8[u]||u;r+=`${g}(${h}) `}n&&(t[u]=h)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function nx(e,t,n){const{style:r,vars:a,transformOrigin:l}=e;let u=!1,f=!1;for(const p in t){const h=t[p];if(Do.has(p)){u=!0;continue}else if(yT(p)){a[p]=h;continue}else{const g=XT(h,Xy[p]);p.startsWith("origin")?(f=!0,l[p]=g):r[p]=g}}if(t.transform||(u||n?r.transform=R8(t,e.transform,n):r.transform&&(r.transform="none")),f){const{originX:p="50%",originY:h="50%",originZ:g=0}=l;r.transformOrigin=`${p} ${h} ${g}`}}function lE(e,{style:t,vars:n},r,a){const l=e.style;let u;for(u in t)l[u]=t[u];a?.applyProjectionStyles(l,r);for(u in n)l.setProperty(u,n[u])}function J1(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Pl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ne.test(e))e=parseFloat(e);else return e;const n=J1(e,t.target.x),r=J1(e,t.target.y);return`${n}% ${r}%`}},k8={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=Cs.parse(e);if(a.length>5)return r;const l=Cs.createTransformer(e),u=typeof a[0]!="number"?1:0,f=n.x.scale*t.x,p=n.y.scale*t.y;a[0+u]/=f,a[1+u]/=p;const h=Nt(f,p,.5);return typeof a[2+u]=="number"&&(a[2+u]/=h),typeof a[3+u]=="number"&&(a[3+u]/=h),l(a)}},Mg={borderRadius:{...Pl,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Pl,borderTopRightRadius:Pl,borderBottomLeftRadius:Pl,borderBottomRightRadius:Pl,boxShadow:k8};function cE(e,{layout:t,layoutId:n}){return Do.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Mg[e]||e==="opacity")}function sx(e,t,n){const r=e.style,a=t?.style,l={};if(!r)return l;for(const u in r)(Jt(r[u])||a&&Jt(a[u])||cE(u,e)||n?.getValue(u)?.liveStyle!==void 0)&&(l[u]=r[u]);return l}function O8(e){return window.getComputedStyle(e)}class D8 extends sE{constructor(){super(...arguments),this.type="html",this.renderInstance=lE}readValueFromInstance(t,n){if(Do.has(n))return this.projection?.isProjecting?vg(n):Qz(t,n);{const r=O8(t),a=(yT(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return oE(t,n)}build(t,n,r){nx(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return sx(t,n,r)}}const M8={offset:"stroke-dashoffset",array:"stroke-dasharray"},z8={offset:"strokeDashoffset",array:"strokeDasharray"};function L8(e,t,n=1,r=0,a=!0){e.pathLength=1;const l=a?M8:z8;e[l.offset]=`${-r}`,e[l.array]=`${t} ${n}`}const V8=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function uE(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...f}
vendor: 4,230 bytes, line 9
9,p,h,g){if(nx(e,f,h),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:b}=e;x.transform&&(b.transform=x.transform,delete x.transform),(b.transform||x.transformOrigin)&&(b.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),b.transform&&(b.transformBox=g?.transformBox??"fill-box",delete x.transformBox);for(const w of V8)x[w]!==void 0&&(b[w]=x[w],delete x[w]);t!==void 0&&(x.x=t),n!==void 0&&(x.y=n),r!==void 0&&(x.scale=r),a!==void 0&&L8(x,a,l,u,!1)}const dE=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),fE=e=>typeof e=="string"&&e.toLowerCase()==="svg";function P8(e,t,n,r){lE(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(dE.has(a)?a:Ky(a),t.attrs[a])}function hE(e,t,n){const r=sx(e,t,n);for(const a in e)if(Jt(e[a])||Jt(t[a])){const l=Oo.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[l]=e[a]}return r}class U8 extends sE{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=qt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Do.has(n)){const r=YT(n);return r&&r.default||0}return n=dE.has(n)?n:Ky(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return hE(t,n,r)}build(t,n,r){uE(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){P8(t,n,r,a)}mount(t){this.isSVGTag=fE(t.tagName),super.mount(t)}}const I8=tx.length;function mE(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?mE(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<I8;n++){const r=tx[n],a=e.props[r];(uc(a)||a===!1)&&(t[r]=a)}return t}function pE(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const F8=[...ex].reverse(),B8=ex.length;function H8(e){return t=>Promise.all(t.map(({animation:n,options:r})=>V6(e,n,r)))}function q8(e){let t=H8(e),n=eS(),r=!0,a=!1;const l=h=>(g,x)=>{const b=po(e,x,h==="exit"?e.presenceContext?.custom:void 0);if(b){const{transition:w,transitionEnd:N,...S}=b;g={...g,...S,...N}}return g};function u(h){t=h(e)}function f(h){const{props:g}=e,x=mE(e.parent)||{},b=[],w=new Set;let N={},S=1/0;for(let C=0;C<B8;C++){const _=F8[C],E=n[_],R=g[_]!==void 0?g[_]:x[_],O=uc(R),M=_===h?E.isActive:null;M===!1&&(S=C);let V=R===x[_]&&R!==g[_]&&O;if(V&&(r||a)&&e.manuallyAnimateOnMount&&(V=!1),E.protectedKeys={...N},!E.isActive&&M===null||!R&&!E.prevProp||Cf(R)||typeof R=="boolean")continue;if(_==="exit"&&E.isActive&&M!==!0){E.prevResolvedValues&&(N={...N,...E.prevResolvedValues});continue}const D=$8(E.prevProp,R);let F=D||_===h&&E.isActive&&!V&&O||C>S&&O,W=!1;const Q=Array.isArray(R)?R:[R];let H=Q.reduce(l(_),{});M===!1&&(H={});const{prevResolvedValues:ne={}}=E,te={...ne,...H},oe=Z=>{F=!0,w.has(Z)&&(W=!0,w.delete(Z)),E.needsAnimating[Z]=!0;const le=e.getValue(Z);le&&(le.liveStyle=!1)};for(const Z in te){const le=H[Z],k=ne[Z];if(N.hasOwnProperty(Z))continue;let I=!1;Tg(le)&&Tg(k)?I=!pE(le,k):I=le!==k,I?le!=null?oe(Z):w.add(Z):le!==void 0&&w.has(Z)?oe(Z):E.protectedKeys[Z]=!0}E.prevProp=R,E.prevResolvedValues=H,E.isActive&&(N={...N,...H}),(r||a)&&e.blockInitialAnimation&&(F=!1);const P=V&&D;F&&(!P||W)&&b.push(...Q.map(Z=>{const le={type:_};if(typeof Z=="string"&&(r||a)&&!P&&e.manuallyAnimateOnMount&&e.parent){const{parent:k}=e,I=po(k,Z);if(k.enteringChildren&&I){const{delayChildren:J}=I.transition||{};le.delay=PT(k.enteringChildren,e,J)}}return{animation:Z,options:le}}))}if(w.size){const C={};if(typeof g.initial!="boolean"){const _=po(e,Array.isArray(g.initial)?g.initial[0]:g.initial);_&&_.transition&&(C.transition=_.transition)}w.forEach(_=>{const E=e.getBaseTarget(_),R=e.getValue(_);R&&(R.liveStyle=!0),C[_]=E??null}),b.push({animation:C})}let j=!!b.length;return r&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(j=!1),r=!1,a=!1,j?t(b):Prom
vendor: 4,267 bytes, line 9
9ise.resolve()}function p(h,g){if(n[h].isActive===g)return Promise.resolve();e.variantChildren?.forEach(b=>b.animationState?.setActive(h,g)),n[h].isActive=g;const x=f(h);for(const b in n)n[b].protectedKeys={};return x}return{animateChanges:f,setActive:p,setAnimateFunction:u,getState:()=>n,reset:()=>{n=eS(),a=!0}}}function $8(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!pE(t,e):!1}function Hi(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function eS(){return{animate:Hi(!0),whileInView:Hi(),whileHover:Hi(),whileTap:Hi(),whileDrag:Hi(),whileFocus:Hi(),exit:Hi()}}function tS(e,t){e.min=t.min,e.max=t.max}function bs(e,t){tS(e.x,t.x),tS(e.y,t.y)}function nS(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const gE=1e-4,G8=1-gE,Y8=1+gE,yE=.01,K8=0-yE,X8=0+yE;function En(e){return e.max-e.min}function Z8(e,t,n){return Math.abs(e-t)<=n}function sS(e,t,n,r=.5){e.origin=r,e.originPoint=Nt(t.min,t.max,e.origin),e.scale=En(n)/En(t),e.translate=Nt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=G8&&e.scale<=Y8||isNaN(e.scale))&&(e.scale=1),(e.translate>=K8&&e.translate<=X8||isNaN(e.translate))&&(e.translate=0)}function Zl(e,t,n,r){sS(e.x,t.x,n.x,r?r.originX:void 0),sS(e.y,t.y,n.y,r?r.originY:void 0)}function rS(e,t,n){e.min=n.min+t.min,e.max=e.min+En(t)}function Q8(e,t,n){rS(e.x,t.x,n.x),rS(e.y,t.y,n.y)}function iS(e,t,n){e.min=t.min-n.min,e.max=e.min+En(t)}function Bd(e,t,n){iS(e.x,t.x,n.x),iS(e.y,t.y,n.y)}function aS(e,t,n,r,a){return e-=t,e=Fd(e,1/n,r),a!==void 0&&(e=Fd(e,1/a,r)),e}function W8(e,t=0,n=1,r=.5,a,l=e,u=e){if(Gs.test(t)&&(t=parseFloat(t),t=Nt(u.min,u.max,t/100)-u.min),typeof t!="number")return;let f=Nt(l.min,l.max,r);e===l&&(f-=t),e.min=aS(e.min,t,n,f,a),e.max=aS(e.max,t,n,f,a)}function oS(e,t,[n,r,a],l,u){W8(e,t[n],t[r],t[a],t.scale,l,u)}const J8=["x","scaleX","originX"],eL=["y","scaleY","originY"];function lS(e,t,n,r){oS(e.x,t,J8,n?n.x:void 0,r?r.x:void 0),oS(e.y,t,eL,n?n.y:void 0,r?r.y:void 0)}function cS(e){return e.translate===0&&e.scale===1}function xE(e){return cS(e.x)&&cS(e.y)}function uS(e,t){return e.min===t.min&&e.max===t.max}function tL(e,t){return uS(e.x,t.x)&&uS(e.y,t.y)}function dS(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function vE(e,t){return dS(e.x,t.x)&&dS(e.y,t.y)}function fS(e){return En(e.x)/En(e.y)}function hS(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Bs(e){return[e("x"),e("y")]}function nL(e,t,n){let r="";const a=e.x.translate/t.x,l=e.y.translate/t.y,u=n?.z||0;if((a||l||u)&&(r=`translate3d(${a}px, ${l}px, ${u}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:g,rotateX:x,rotateY:b,skewX:w,skewY:N}=n;h&&(r=`perspective(${h}px) ${r}`),g&&(r+=`rotate(${g}deg) `),x&&(r+=`rotateX(${x}deg) `),b&&(r+=`rotateY(${b}deg) `),w&&(r+=`skewX(${w}deg) `),N&&(r+=`skewY(${N}deg) `)}const f=e.x.scale*t.x,p=e.y.scale*t.y;return(f!==1||p!==1)&&(r+=`scale(${f}, ${p})`),r||"none"}const bE=["TopLeft","TopRight","BottomLeft","BottomRight"],sL=bE.length,mS=e=>typeof e=="string"?parseFloat(e):e,pS=e=>typeof e=="number"||Ne.test(e);function rL(e,t,n,r,a,l){a?(e.opacity=Nt(0,n.opacity??1,iL(r)),e.opacityExit=Nt(t.opacity??1,0,aL(r))):l&&(e.opacity=Nt(t.opacity??1,n.opacity??1,r));for(let u=0;u<sL;u++){const f=`border${bE[u]}Radius`;let p=gS(t,f),h=gS(n,f);if(p===void 0&&h===void 0)continue;p||(p=0),h||(h=0),p===0||h===0||pS(p)===pS(h)?(e[f]=Math.max(Nt(mS(p),mS(h),r),0),(Gs.test(h)||Gs.test(p))&&(e[f]+="%")):e[f]=h}(t.rotate||n.rotate)&&(e.rotate=Nt(t.rotate||0,n.rotate||0,r))}function gS(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const iL=wE(0,.5,dT),aL=wE(.5,.95,ms);function wE(e,t,n){return r=>r<e?0:r>t?1:n(oc(e,t,r))}function oL(e,t,n){const r=Jt(e)?e:na(e);return r.start(Gy("",r,t,n)),r.animation}function dc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}const lL=(e,t)=>e.depth-t.depth;class cL{constructor(){this.children=[],this.isDirty=!1}add(t){Oy(this.children,t),this.isDirty=!0}remove(t){Ld(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(lL),this.isDirty=!1,this.children.forEac
vendor: 4,185 bytes, line 9
9h(t)}}function uL(e,t){const n=Tn.now(),r=({timestamp:a})=>{const l=a-n;l>=t&&(Sr(r),e(l-t))};return ht.setup(r,!0),()=>Sr(r)}function Sd(e){return Jt(e)?e.get():e}class dL{constructor(){this.members=[]}add(t){Oy(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const a=r.instance;(!a||a.isConnected===!1)&&!r.snapshot&&(Ld(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(Ld(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){for(let n=this.members.indexOf(t)-1;n>=0;n--){const r=this.members[n];if(r.isPresent!==!1&&r.instance?.isConnected!==!1)return this.promote(r),!0}return!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:a}=r.options,{layoutDependency:l}=t.options;(a===void 0||a!==l)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root?.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{t.options.onExitComplete?.(),t.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}}const jd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Tp=["","X","Y","Z"],fL=1e3;let hL=0;function Ep(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function SE(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=HT(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ht,!(a||l))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&SE(r)}function jE({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(u={},f=t?.()){this.id=hL++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(gL),this.nodes.forEach(bL),this.nodes.forEach(wL),this.nodes.forEach(yL)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new cL)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new My),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const p=this.eventHandlers.get(u);p&&p.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=Jy(u)&&!h8(u),this.instance=u;const{layoutId:f,layout:p,visualElement:h}=this.options;if(h&&!h.current&&h.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||f)&&(this.isLayoutDirty=!0),e){let g,x=0;const b=()=>this.root.updateBlockedByResize=!1;ht.read(()=>{x=window.innerWidth}),e(u,()=>{const w=window.innerWidth;w!==x&&(x=w,this.root.updateBlockedByResize=!0,g&&g(),g=uL(b,250),jd.hasAnimatedSinceResize&&(jd.hasAnimatedSinceResize=!1,this.nodes.forEac
vendor: 9,115 bytes, line 9
9h(vS)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&h&&(f||p)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeLayoutChanged:b,layout:w})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||h.getDefaultTransition()||EL,{onLayoutAnimationStart:S,onLayoutAnimationComplete:j}=h.getProps(),C=!this.targetLayout||!vE(this.targetLayout,w),_=!x&&b;if(this.options.layoutRoot||this.resumeFrom||_||x&&(C||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const E={...$y(N,"layout"),onPlay:S,onComplete:j};(h.shouldReduceMotion||this.options.layoutRoot)&&(E.delay=0,E.type=!1),this.startAnimation(E),this.setAnimationOrigin(g,_)}else x||vS(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=w})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Sr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(SL),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&SE(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const x=this.path[g];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:f,layout:p}=this.options;if(f===void 0&&!p)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(yS);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(xS);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(vL),this.nodes.forEach(mL),this.nodes.forEach(pL)):this.nodes.forEach(xS),this.clearAllSnapshots();const f=Tn.now();rn.delta=Xs(0,1e3/60,f-rn.timestamp),rn.timestamp=f,rn.isProcessing=!0,yp.update.process(rn),yp.preRender.process(rn),yp.render.process(rn),rn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Qy.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(xL),this.sharedNodes.forEach(jL)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ht.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ht.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!En(this.snapshot.measuredBox.x)&&!En(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=qt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f&&this.instance){const p=r(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:p,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!a)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!xE(this.projectionDelta),p=this.getTransformTemplate(),h=p?p(this.latestValues,""):void 0,g=h!==this.prevTransformTemplateValue;u&&this.instance&&(f||Gi(this.latestValues)||g)&&(a(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let p=this.removeElementScroll(f);return u&&(p=this.removeTransform(p)),CL(p),{animationId:this.root.animationId,measuredBox:f,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return qt();const f=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(_L))){const{scroll:h}=this.root;h&&(uo(f.x,h.offset.x),uo(f.y,h.offset.y))}return f}removeElementScroll(u){const f=qt();if(bs(f,u),this.scroll?.wasRoot)return f;for(let p=0;p<this.path.length;p++){const h=this.path[p],{scroll:g,options:x}=h;h!==this.root&&g&&x.layoutScroll&&(g.wasRoot&&bs(f,u),uo(f.x,g.offset.x),uo(f.y,g.offset.y))}return f}applyTransform(u,f=!1){const p=qt();bs(p,u);for(let h=0;h<this.path.length;h++){const g=this.path[h];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&fo(p,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Gi(g.latestValues)&&fo(p,g.latestValues)}return Gi(this.latestValues)&&fo(p,this.latestValues),p}removeTransform(u){const f=qt();bs(f,u);for(let p=0;p<this.path.length;p++){const h=this.path[p];if(!h.instance||!Gi(h.latestValues))continue;Og(h.latestValues)&&h.updateSnapshot();const g=qt(),x=h.measurePageBox();bs(g,x),lS(f,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,g)}return Gi(this.latestValues)&&lS(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==rn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==f;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!this.layout||!(g||x))return;this.resolvedRelativeTargetAt=rn.timestamp;const b=this.getClosestProjectingParent();b&&this.linkedParentVersion!==b.layoutVersion&&!b.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(b&&b.layout?this.createRelativeTarget(b,this.layout.layoutBox,b.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=qt(),this.targetWithTransforms=qt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Q8(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):bs(this.target,this.layout.layoutBox),aE(this.target,this.targetDelta)):bs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?this.createRelativeTarget(b,this.target,b.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Og(this.parent.latestValues)||iE(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,f,p){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=qt(),this.relativeTargetOrigin=qt(),Bd(this.relativeTargetOrigin,f,p),bs(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){const u=this.getLead(),f=!!this.resumingFrom||this!==u;let p=!0;
vendor: 4,768 bytes, line 9
9if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(p=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===rn.timestamp&&(p=!1),p)return;const{layout:h,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(h||g))return;bs(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,b=this.treeScale.y;E8(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=qt());const{target:w}=u;if(!w){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(nS(this.prevProjectionDelta.x,this.projectionDelta.x),nS(this.prevProjectionDelta.y,this.projectionDelta.y)),Zl(this.projectionDelta,this.layoutCorrected,w,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==b||!hS(this.projectionDelta.x,this.prevProjectionDelta.x)||!hS(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",w))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=co(),this.projectionDelta=co(),this.projectionDeltaWithTransform=co()}setAnimationOrigin(u,f=!1){const p=this.snapshot,h=p?p.latestValues:{},g={...this.latestValues},x=co();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=qt(),w=p?p.source:void 0,N=this.layout?this.layout.source:void 0,S=w!==N,j=this.getStack(),C=!j||j.members.length<=1,_=!!(S&&!C&&this.options.crossfade===!0&&!this.path.some(TL));this.animationProgress=0;let E;this.mixTargetDelta=R=>{const O=R/1e3;bS(x.x,u.x,O),bS(x.y,u.y,O),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bd(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),NL(this.relativeTarget,this.relativeTargetOrigin,b,O),E&&tL(this.relativeTarget,E)&&(this.isProjectionDirty=!1),E||(E=qt()),bs(E,this.relativeTarget)),S&&(this.animationValues=g,rL(g,h,this.latestValues,O,_,C)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=O},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Sr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ht.update(()=>{jd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=na(0)),this.motionValue.jump(0,!1),this.currentAnimation=oL(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),u.onUpdate&&u.onUpdate(f)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fL),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:p,layout:h,latestValues:g}=u;if(!(!f||!p||!h)){if(this!==u&&this.layout&&h&&NE(this.options.animationType,this.layout.layoutBox,h.layoutBox)){p=this.target||qt();const x=En(this.layout.layoutBox.x);p.x.min=u.target.x.min,p.x.max=p.x.min+x;const b=En(this.layout.layoutBox.y);p.y.min=u.target.y.min,p.y.max=p.y.min+b}bs(f,p),fo(f,g),Zl(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new dL),this.sharedNodes.get(u).add(f);const h=f.options.initialPromotionConfig;f.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;
vendor: 16,643 bytes, lines 9-17
9return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:p}={}){const h=this.getStack();h&&h.promote(this,p),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:p}=u;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(f=!0),!f)return;const h={};p.z&&Ep("z",u,h,this.animationValues);for(let g=0;g<Tp.length;g++)Ep(`rotate${Tp[g]}`,u,h,this.animationValues),Ep(`skew${Tp[g]}`,u,h,this.animationValues);u.render();for(const g in h)u.setStaticValue(g,h[g]),this.animationValues&&(this.animationValues[g]=h[g]);u.scheduleRender()}applyProjectionStyles(u,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=Sd(f?.pointerEvents)||"",u.transform=p?p(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=Sd(f?.pointerEvents)||""),this.hasProjected&&!Gi(this.latestValues)&&(u.transform=p?p({},""):"none",this.hasProjected=!1);return}u.visibility="";const g=h.animationValues||h.latestValues;this.applyTransformsToTarget();let x=nL(this.projectionDeltaWithTransform,this.treeScale,g);p&&(x=p(g,x)),u.transform=x;const{x:b,y:w}=this.projectionDelta;u.transformOrigin=`${b.origin*100}% ${w.origin*100}% 0`,h.animationValues?u.opacity=h===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:u.opacity=h===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const N in Mg){if(g[N]===void 0)continue;const{correct:S,applyTo:j,isCSSVariable:C}=Mg[N],_=x==="none"?g[N]:S(g[N],h);if(j){const E=j.length;for(let R=0;R<E;R++)u[j[R]]=_}else C?this.options.visualElement.renderState.vars[N]=_:u[N]=_}this.options.layoutId&&(u.pointerEvents=h===this?Sd(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(yS),this.root.sharedNodes.clear()}}}function mL(e){e.updateLayout()}function pL(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:r}=e.layout,{animationType:a}=e.options,l=t.source!==e.layout.source;a==="size"?Bs(g=>{const x=l?t.measuredBox[g]:t.layoutBox[g],b=En(x);x.min=n[g].min,x.max=x.min+b}):NE(a,t.layoutBox,n)&&Bs(g=>{const x=l?t.measuredBox[g]:t.layoutBox[g],b=En(n[g]);x.max=x.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const u=co();Zl(u,n,t.layoutBox);const f=co();l?Zl(f,e.applyTransform(r,!0),t.measuredBox):Zl(f,n,t.layoutBox);const p=!xE(u);let h=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:b}=g;if(x&&b){const w=qt();Bd(w,t.layoutBox,x.layoutBox);const N=qt();Bd(N,n,b.layoutBox),vE(w,N)||(h=!0),g.options.layoutRoot&&(e.relativeTarget=N,e.relativeTargetOrigin=w,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:f,layoutDelta:u,hasLayoutChanged:p,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function gL(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function yL(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xL(e){e.clearSnapshot()}function yS(e){e.clearMeasurements()}function xS(e){e.isLayoutDirty=!1}function vL(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vS(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function bL(e){e.resolveTargetDelta()}function wL(e){e.calcProjection()}function SL(e){e.resetSkewAndRotation()}function jL(e){e.removeLeadSnapshot()}function bS(e,t,n){e.translate=Nt(t.translate,0,n),e.scale=Nt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function wS(e,t,n,r){e.min=Nt(t.min,n.min,r),e.max=Nt(t.max,n.max,r)}function NL(e,t,n,r){wS(e.x,t.x,n.x,r),wS(e.y,t.y,n.y,r)}function TL(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const EL={duration:.45,ease:[.4,0,.1,1]},SS=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),jS=SS("applewebkit/")&&!SS("chrome/")?Math.round:ms;function NS(e){e.min=jS(e.min),e.max=jS(e.max)}function CL(e){NS(e.x),NS(e.y)}function NE(e,t,n){return e==="position"||e==="preserve-aspect"&&!Z8(fS(t),fS(n),.2)}function _L(e){return e!==e.root&&e.scroll?.wasRoot}const AL=jE({attachResizeListener:(e,t)=>dc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Cp={current:void 0},TE=jE({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Cp.current){const e=new AL({});e.mount(window),e.setOptions({layoutScroll:!0}),Cp.current=e}return Cp.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),kc=v.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function TS(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function RL(...e){return t=>{let n=!1;const r=e.map(a=>{const l=TS(a,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<r.length;a++){const l=r[a];typeof l=="function"?l():TS(e[a],null)}}}}function kL(...e){return v.useCallback(RL(...e),e)}class OL extends v.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,a=Rg(r)&&r.offsetWidth||0,l=Rg(r)&&r.offsetHeight||0,u=this.props.sizeRef.current;u.height=n.offsetHeight||0,u.width=n.offsetWidth||0,u.top=n.offsetTop,u.left=n.offsetLeft,u.right=a-u.width-u.left,u.bottom=l-u.height-u.top}return null}componentDidUpdate(){}render(){return this.props.children}}function DL({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:l}){const u=v.useId(),f=v.useRef(null),p=v.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:h}=v.useContext(kc),g=e.props?.ref??e?.ref,x=kL(f,g);return v.useInsertionEffect(()=>{const{width:b,height:w,top:N,left:S,right:j,bottom:C}=p.current;if(t||l===!1||!f.current||!b||!w)return;const _=n==="left"?`left: ${S}`:`right: ${j}`,E=r==="bottom"?`bottom: ${C}`:`top: ${N}`;f.current.dataset.motionPopId=u;const R=document.createElement("style");h&&(R.nonce=h);const O=a??document.head;return O.appendChild(R),R.sheet&&R.sheet.insertRule(`
10          [data-motion-pop-id="${u}"] {
11            position: absolute !important;
12            width: ${b}px !important;
13            height: ${w}px !important;
14            ${_}px !important;
15            ${E}px !important;
16          }
17        `),()=>{O.contains(R)&&O.removeChild(R)}},[t]),c.jsx(OL,{isPresent:t,childRef:f,sizeRef:p,pop:l,children:l===!1?e:v.cloneElement(e,{ref:x})})}const ML=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:l,mode:u,anchorX:f,anchorY:p,root:h})=>{const g=Cc(zL),x=v.useId();let b=!0,w=v.useMemo(()=>(b=!1,{id:x,initial:t,isPresent:n,custom:a,onExitComplete:N=>{g.set(N,!0);for(const S of g.values())if(!S)return;r&&r()},register:N=>(g.set(N,!1),()=>g.delete(N))}),[n,g,r]);return l&&b&&(w={...w}),v.useMemo(()=>{g.forEach((N,S)=>g.set(S,!1))},[n]),v.useEffect(()=>{!n&&!g.size&&r&&r()},[n]),e=c.jsx(DL,{pop:u==="popLayout",isPresent:n,anchorX:f,anchorY:p,root:h,children:e}),c.jsx(Tf.Provider,{value:w,children:e})};function zL(){return new Map}function EE(e=!0){const t=v.useContext(Tf);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,l=v.useId();v.useEffect(()=>{if(e)return a(l)},[e]);const u=v.useCallback(()=>e&&r&&r(l),[l,r,e]);return!n&&r?[!1,u]:[!0]}const id=e=>e.key||"";function ES(e){const t=[];return v.Children.forEach(e,n=>{v.isValidElement(n)&&t.push(n)}),t}const Mo=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:l="sync",propagate:u=!1,anchorX:f="left",anchorY:p="top",root:h})=>{const[g,x]=EE(u),b=v.useMemo(()=>ES(e),[e]),w=u&&!g?[]:b.map(id),N=v.useRef(!0),S=v.useRef(b),j=Cc(()=>new Map),C=v.useRef(new Set),[_,E]=v.useState(b),[R,O]=v.useState(b);ky(()=>{N.current=!1,S.current=b;for(let D=0;D<R.length;D++){const F=id(R[D]);w.includes(F)?(j.delete(F),C.current.delete(F)):j.get(F)!==!0&&j.set(F,!1)}},[R,w.length,w.join("-")]);const M=[];if(b!==_){let D=[...b];for(let F=0;F<R.length;F++){const W=R[F],Q=id(W);w.includes(Q)||(D.splice(F,0,W),M.push(W))}return l==="wait"&&M.length&&(D=M),O(ES(D)),E(b),null}const{forceRender:V}=v.useContext(Ry);return c.jsx(c.Fragment,{children:R.map(D=>{const F=id(D),W=u&&!g?!1:b===R||w.includes(F),Q=()=>{if(C.current.has(F))return;if(C.current.add(F),j.has(F))j.set(F,!0);else return;let H=!0;j.forEach(ne=>{ne||(H=!1)}),H&&(V?.(),O(S.current),u&&x?.(),r&&r())};return c.jsx(ML,{isPresent:W,initial:!N.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:l,root:h,onExitComplete:W?void 0:Q,anchorX:f,anchorY:p,children:D},F)})})},CE=v.createContext({strict:!1}),CS={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let _S=!1;function LL(){if(_S)return;const e={};for(const t in CS)e[t]={isEnabled:n=>CS[t].some(r=>!!n[r])};nE(e),_S=!0}function _E(){return LL(),S8()}function VL(e){const t=_E();for(const n in e)t[n]={...t[n],...e[n]};nE(t)}const PL=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function Hd(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||PL.has(e)}let AE=e=>!Hd(e);function UL(e){typeof e=="function"&&(AE=t=>t.startsWith("on")?!Hd(t):e(t))}try{UL(require("@emotion/is-prop-valid").default)}catch{}function IL(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(AE(a)||n===!0&&Hd(a)||!t&&!Hd(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Af=v.createContext({});function FL(e,t){if(_f(e)){const{initial:n,animate:r}=e;return{initial:n===!1||uc(n)?n:void 0,animate:uc(r)?r:void 0}}return e.inherit!==!1?t:{}}function BL(e){const{initial:t,animate:n}=FL(e,v.useContext(Af));return v.useMemo(()=>({initial:t,animate:n}),[AS(t),AS(n)])}function AS(e){return Array.isArray(e)?e.join(" "):e}const rx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function RE(e,t,n){for(const r in t)!Jt(t[r])&&!cE(r,n)&&(e[r]=t[r])}function HL({transformTemplate:e},t){return v.useMemo(()=>{const n=rx();return nx(n,t,e),Object.assign({},n.vars,n.style)},[t])}function qL(e,t){const n=e.style||{},r={};return RE(r,n,e),Object.assign(r,HL(e,t)),r}function $L(e,t){const n={},r=qL(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const kE=()=>({...rx(),attrs:{}});function GL(e,t,n,r){const a=v.useMemo(()=>{const l=kE();return uE(l,t,fE(r),e.transformTemplate,e.style),{...l.attrs,style:{...l.style}}},[t]);if(e.style){const l={};RE(l,e.style,e),a.style={...l,...a.style}}return a}const YL=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ix(e){return typeof e!="string"||e.includes("-")?!1:!!(YL.indexOf(e)>-1||/[A-Z]/u.test(e))}function KL(e,t,n,{latestValues:r},a,l=!1,u){const p=(u??ix(e)?GL:$L)(t,r,a,e),h=IL(t,typeof e=="string",l),g=e!==v.Fragment?{...h,...p,ref:n}:{},{children:x}=t,b=v.useMemo(()=>Jt(x)?x.get():x,[x]);return v.createElement(e,{...g,children:b})}function XL({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:ZL(n,r,a,e),renderState:t()}}function ZL(e,t,n,r){const a={},l=r(e,{});for(const b in l)a[b]=Sd(l[b]);let{initial:u,animate:f}=e;const p=_f(e),h=eE(e);t&&h&&!p&&e.inherit!==!1&&(u===void 0&&(u=t.initial),f===void 0&&(f=t.animate));let g=n?n.initial===!1:!1;g=g||u===!1;const x=g?f:u;if(x&&typeof x!="boolean"&&!Cf(x)){const b=Array.isArray(x)?x:[x];for(let w=0;w<b.length;w++){const N=Yy(e,b[w]);if(N){const{transitionEnd:S,transition:j,...C}=N;for(const _ in C){let E=C[_];if(Array.isArray(E)){const R=g?E.length-1:0;E=E[R]}E!==null&&(a[_]=E)}for(const _ in S)a[_]=S[_]}}}return a}const OE=e=>(t,n)=>{const r=v.useContext(Af),a=v.useContext(Tf),l=()=>XL(e,t,r,a);return n?l():Cc(l)},QL=OE({scrapeMotionValuesFromProps:sx,createRenderState:rx}),WL=OE({scrapeMotionValuesFromProps:hE,createRenderState:kE}),JL=Symbol.for("motionComponentSymbol");function eV(e,t,n){const r=v.useRef(n);v.useInsertionEffect(()=>{r.current=n});const a=v.useRef(null);return v.useCallback(l=>{l&&e.onMount?.(l);const u=r.current;if(typeof u=="function")if(l){const f=u(l);typeof f=="function"&&(a.current=f)}else a.current?(a.current(),a.current=null):u(l);else u&&(u.current=l);t&&(l?t.mount(l):t.unmount())},[t])}const DE=v.createContext({});function ro(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function tV(e,t,n,r,a,l){const{visualElement:u}=v.useContext(Af),f=v.useContext(CE),p=v.useContext(Tf),h=v.useContext(kc),g=h.reducedMotion,x=h.skipAnimations,b=v.useRef(null),w=v.useRef(!1);r=r||f.renderer,!b.current&&r&&(b.current=r(e,{visualState:t,parent:u,props:n,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:g,skipAnimations:x,isSVG:l}),w.current&&b.current&&(b.current.manuallyAnimateOnMount=!0));const N=b.current,S=v.useContext(DE);N&&!N.projection&&a&&(N.type==="html"||N.type==="svg")&&nV(b.current,n,a,S);const j=v.useRef(!1);v.useInsertionEffect(()=>{N&&j.current&&N.update(n,p)});const C=n[BT],_=v.useRef(!!C&&typeof window<"u"&&!window.MotionHandoffIsComplete?.(C)&&window.MotionHasOptimisedAnimation?.(C));return ky(()=>{w.current=!0,N&&(j.current=!0,window.MotionIsMounted=!0,N.updateFeatures(),N.scheduleRenderMicrotask(),_.current&&N.animationState&&N.animationState.animateChanges())}),v.useEffect(()=>{N&&(!_.current&&N.animationState&&N.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(C)}),_.current=!1),N.enteringChildren=void 0)}),N}function nV(e,t,n,r){const{layoutId:a,layout:l,drag:u,dragConstraints:f,layoutScroll:p,layoutRoot:h,layoutCrossfade:g}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:ME(e.parent)),e.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||f&&ro(f),visualElement:e,animationType:typeof l=="string"?l:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:p,layoutRoot:h})}function ME(e){if(e)return e.options.allowProjection!==!1?e.projection:ME(e.parent)}function _p(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&VL(r);const l=n?n==="svg":ix(e),u=l?WL:QL;function f(h,g){let x;
vendor: 18,421 bytes, line 17
17const b={...v.useContext(kc),...h,layoutId:sV(h)},{isStatic:w}=b,N=BL(h),S=u(h,w);if(!w&&typeof window<"u"){rV();const j=iV(b);x=j.MeasureLayout,N.visualElement=tV(e,S,b,a,j.ProjectionNode,l)}return c.jsxs(Af.Provider,{value:N,children:[x&&N.visualElement?c.jsx(x,{visualElement:N.visualElement,...b}):null,KL(e,h,eV(S,N.visualElement,g),S,w,t,l)]})}f.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const p=v.forwardRef(f);return p[JL]=e,p}function sV({layoutId:e}){const t=v.useContext(Ry).id;return t&&e!==void 0?t+"-"+e:e}function rV(e,t){v.useContext(CE).strict}function iV(e){const t=_E(),{drag:n,layout:r}=t;if(!n&&!r)return{};const a={...n,...r};return{MeasureLayout:n?.isEnabled(e)||r?.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function aV(e,t){if(typeof Proxy>"u")return _p;const n=new Map,r=(l,u)=>_p(l,u,e,t),a=(l,u)=>r(l,u);return new Proxy(a,{get:(l,u)=>u==="create"?r:(n.has(u)||n.set(u,_p(u,void 0,e,t)),n.get(u))})}const oV=(e,t)=>t.isSVG??ix(e)?new U8(t):new D8(t,{allowProjection:e!==v.Fragment});class lV extends xi{constructor(t){super(t),t.animationState||(t.animationState=q8(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Cf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let cV=0;class uV extends xi{constructor(){super(...arguments),this.id=cV++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const dV={animation:{Feature:lV},exit:{Feature:uV}};function Oc(e){return{point:{x:e.pageX,y:e.pageY}}}const fV=e=>t=>Wy(t)&&e(t,Oc(t));function Ql(e,t,n,r){return dc(e,t,fV(n),r)}const zE=({current:e})=>e?e.ownerDocument.defaultView:null,RS=(e,t)=>Math.abs(e-t);function hV(e,t){const n=RS(e.x,t.x),r=RS(e.y,t.y);return Math.sqrt(n**2+r**2)}const kS=new Set(["auto","scroll"]);class LE{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:u=3,element:f}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const w=Rp(this.lastMoveEventInfo,this.history),N=this.startEvent!==null,S=hV(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!N&&!S)return;const{point:j}=w,{timestamp:C}=rn;this.history.push({...j,timestamp:C});const{onStart:_,onMove:E}=this.handlers;N||(_&&_(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),E&&E(this.lastMoveEvent,w)},this.handlePointerMove=(w,N)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=Ap(N,this.transformPagePoint),ht.update(this.updatePoint,!0)},this.handlePointerUp=(w,N)=>{this.end();const{onEnd:S,onSessionEnd:j,resumeAnimation:C}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const _=Rp(w.type==="pointercancel"?this.lastMoveEventInfo:Ap(N,this.transformPagePoint),this.history);this.startEvent&&S&&S(w,_),j&&j(w,_)},!Wy(t))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=u,this.contextWindow=a||window;const p=Oc(t),h=Ap(p,this.transformPagePoint),{point:g}=h,{timestamp:x}=rn;this.history=[{...g,timestamp:x}];const{onSessionStart:b}=n;b&&b(t,Rp(h,this.history)),this.removeListeners=_c(Ql(this.contextWindow,"pointermove",this.handlePointerMove),Ql(this.contextWindow,"pointerup",this.handlePointerUp),Ql(this.contextWindow,"pointercancel",this.handlePointerUp)),f&&this.startScrollTracking(f)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(kS.has(r.overflowX)||kS.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,a=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},l={x:a.x-n.x,y:a.y-n.y};l.x===0&&l.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=l.x,this.lastMoveEventInfo.point.y+=l.y):this.history.length>0&&(this.history[0].x-=l.x,this.history[0].y-=l.y),this.scrollPositions.set(t,a),ht.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Sr(this.updatePoint)}}function Ap(e,t){return t?{point:t(e.point)}:e}function OS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Rp({point:e},t){return{point:e,delta:OS(e,VE(t)),offset:OS(e,mV(t)),velocity:pV(t,.1)}}function mV(e){return e[0]}function VE(e){return e[e.length-1]}function pV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=VE(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Es(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>Es(t)*2&&(r=e[1]);const l=hs(a.timestamp-r.timestamp);if(l===0)return{x:0,y:0};const u={x:(a.x-r.x)/l,y:(a.y-r.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function gV(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?Nt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?Nt(n,e,r.max):Math.min(e,n)),e}function DS(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function yV(e,{top:t,left:n,bottom:r,right:a}){return{x:DS(e.x,n,a),y:DS(e.y,t,r)}}function MS(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function xV(e,t){return{x:MS(e.x,t.x),y:MS(e.y,t.y)}}function vV(e,t){let n=.5;const r=En(e),a=En(t);return a>r?n=oc(t.min,t.max-r,e.min):r>a&&(n=oc(e.min,e.max-a,t.min)),Xs(0,1,n)}function bV(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const zg=.35;function wV(e=zg){return e===!1?e=0:e===!0&&(e=zg),{x:zS(e,"left","right"),y:zS(e,"top","bottom")}}function zS(e,t,n){return{min:LS(e,t),max:LS(e,n)}}function LS(e,t){return typeof e=="number"?e:e[t]||0}const SV=new WeakMap;class jV{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=qt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=x=>{n&&this.snapToCursor(Oc(x).point),this.stopAnimation()},u=(x,b)=>{const{drag:w,dragPropagation:N,onDragStart:S}=this.getProps();if(w&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Z6(w),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Bs(C=>{let _=this.getAxisMotionValue(C).get()||0;if(Gs.test(_)){const{projection:E}=this.visualElement;if(E&&E.layout){const R=E.layout.layoutBox[C];R&&(_=En(R)*(parseFloat(_)/100))}}this.originPoint[C]=_}),S&&ht.update(()=>S(x,b),!1,!0),Eg(this.visualElement,"transform");const{animationState:j}=this.visualElement;j&&j.setActive("whileDrag",!0)},f=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b;const{dragPropagation:w,dragDirectionLock:N,onDirectionLock:S,onDrag:j}=this.getProps();if(!w&&!this.openDragLock)return;const{offset:C}=b;if(N&&this.currentDirection===null){this.currentDirection=TV(C),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",b.point,C),this.updateAxis("y",b.point,C),this.visualElement.render(),j&&ht.update(()=>j(x,b),!1,!0)},p=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b,this.stop(x,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>{const{dragSnapToOrigin:x}=this.getProps();(x||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:g}=this.getProps();this.panSession=new LE(t,{onSessionStart:l,onStart:u,onMove:f,onSessionEnd:p,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:r,contextWindow:zE(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!r)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&ht.postRender(()=>f(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!ad(t,a,this.currentDirection))return;const l=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=gV(u,this.constraints[t],this.elastic[t])),l.set(u)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;t&&ro(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=yV(r.layoutBox,t):this.constraints=!1,this.elastic=wV(n),a!==this.constraints&&!ro(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Bs(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=bV(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ro(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=C8(r,a.root,this.visualElement.getTransformPagePoint());let u=xV(a.layout.layoutBox,l);if(n){const f=n(N8(u));this.hasMutatedConstraints=!!f,f&&(u=rE(f))}return u}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),p=this.constraints||{},h=Bs(g=>{if(!ad(g,n,this.currentDirection))return;let x=p&&p[g]||{};u&&(x={min:0,max:0});const b=a?200:1e6,w=a?40:1e7,N={type:"inertia",velocity:r?t[g]:0,bounceStiffness:b,bounceDamping:w,timeConstant:750,restDelta:1,restSpeed:10,...l,...x};return this.startAxisValueAnimation(g,N)});return Promise.all(h).then(f)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return Eg(this.visualElement,t),r.start(Gy(t,r,0,n,this.visualElement,!1))}stopAnimation(){Bs(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Bs(n=>{const{drag:r}=this.getProps();if(!ad(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:u,max:f}=a.layout.layoutBox[n],p=l.get()||0;l.set(t[n]-Nt(u,f,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!ro(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Bs(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const p=f.get();a[u]=vV({min:p,max:p},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Bs(u=>{if(!ad(u,t,null))return;const f=this.getAxisMotionValue(u),{min:p,max:h}=this.constraints[u];f.set(Nt(p,h,a[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;SV.set(this.visualElement,this);const t=this.visualElement.current,n=Ql(t,"pointerdown",h=>{const{drag:g,dragListener:x=!0}=this.getProps(),b=h.target,w=b!==t&&n8(b);g&&x&&!w&&this.start(h)});let r;const a=()=>{const{dragConstraints:h}=this.getProps();ro(h)&&h.current&&(this.constraints=this.resolveRefConstraints(),r||(r=NV(t,h.current,()=>this.scalePositionWithinConstraints())))},{projection:l}=this.visualElement,u=l.addEventListener("measure",a);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),ht.read(a);const f=dc(window,"resize",()=>this.scalePositionWithinConstraints()),p=l.addEventListener("didUpdate",(({delta:h,hasLayoutChanged:g})=>{this.isDragging&&g&&(Bs(x=>{const b=this.getAxisMotionValue(x);b&&(this.originPoint[x]+=h[x].translate,b.set(b.get()+h[x].translate))}),this.visualElement.render())}));return()=>{f(),n(),u(),p&&p(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:u=zg,dragMomentum:f=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:f}}}function VS(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function NV(e,t,n){const r=F1(e,VS(n)),a=F1(t,VS(n));return()=>{r(),a()}}function ad(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function TV(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class EV extends xi{constructor(t){super(t),this.removeGroupControls=ms,this.removeListeners=ms,this.controls=new jV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ms}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const kp=e=>(t,n)=>{e&&ht.update(()=>e(t,n),!1,!0)};class CV extends xi{constructor(){super(...arguments),this.removePointerDownListener=ms}onPointerDown(t){this.session=new LE(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:zE(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:kp(t),onStart:kp(n),onMove:kp(r),onEnd:(l,u)=>{delete this.session,a&&ht.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=Ql(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Op=!1;class _V extends v.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:l}=t;l&&(n.group&&n.group.add(l),r&&r.register&&a&&r.register(l),Op&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),jd.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:l}=this.props,{projection:u}=r;return u&&(u.isPresent=l,t.layoutDependency!==n&&u.setOptions({...u.options,layoutDependency:n}),Op=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==l?u.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?u.promote():u.relegate()||ht.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Qy.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Op=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function PE(e){const[t,n]=EE(),r=v.useContext(Ry);return c.jsx(_V,{...e,layoutGroup:r,switchLayoutGroup:v.useContext(DE),isPresent:t,safeToRemove:n})}const AV={pan:{Feature:CV},drag:{Feature:EV,ProjectionNode:TE,MeasureLayout:PE}};function PS(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=r[a];l&&ht.postRender(()=>l(t,Oc(t)))}class RV extends xi{mount(){const{current:t}=this.node;t&&(this.unmount=W6(t,(n,r)=>(PS(this.node,r,"Start"),a=>PS(this.node,a,"End"))))}unmount(){}}class kV extends xi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=_c(dc(this.node.current,"focus",()=>this.onFocus()),dc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function US(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=r[a];l&&ht.postRender(()=>l(t,Oc(t)))}class OV extends xi{mount(){const{current:t}=this.node;if(!t)return;
17const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=r8(t,(a,l)=>(US(this.node,l,"Start"),(u,{success:f})=>US(this.node,u,f?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:r?.tap===!1})}unmount(){}}const Lg=new WeakMap,Dp=new WeakMap,DV=e=>{const t=Lg.get(e.target);t&&t(e)},MV=e=>{e.forEach(DV)};function zV({root:e,...t}){const n=e||document;Dp.has(n)||Dp.set(n,{});const r=Dp.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(MV,{root:e,...t})),r[a]}function LV(e,t,n){const r=zV(t);return Lg.set(e,n),r.observe(e),()=>{Lg.delete(e),r.unobserve(e)}}const VV={some:0,all:1};class PV extends xi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:l}=t,u={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:VV[a]},f=p=>{const{isIntersecting:h}=p;if(this.isInView===h||(this.isInView=h,l&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:g,onViewportLeave:x}=this.node.getProps(),b=h?g:x;b&&b(p)};return LV(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(UV(t,n))&&this.startObserver()}unmount(){}}function UV({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const IV={inView:{Feature:PV},tap:{Feature:OV},focus:{Feature:kV},hover:{Feature:RV}},FV={layout:{ProjectionNode:TE,MeasureLayout:PE}},BV={...dV,...IV,...AV,...FV},hn=aV(BV,oV);function qd(e){const t=Cc(()=>na(e)),{isStatic:n}=v.useContext(kc);if(n){const[,r]=v.useState(e);v.useEffect(()=>t.on("change",r),[])}return t}function UE(e,t){const n=qd(t()),r=()=>n.set(t());return r(),ky(()=>{const a=()=>ht.preRender(r,!1,!0),l=e.map(u=>u.on("change",a));return()=>{l.forEach(u=>u()),Sr(r)}}),n}function HV(e){Xl.current=[],e();const t=UE(Xl.current,e);return Xl.current=void 0,t}function qV(e,t,n,r){if(typeof e=="function")return HV(e);const l=m8(t,n,r),u=Array.isArray(e)?IS(e,l):IS([e],([p])=>l(p)),f=Array.isArray(e)?void 0:e.accelerate;return f&&!f.isTransformed&&typeof t!="function"&&Array.isArray(n)&&r?.clamp!==!1&&(u.accelerate={...f,times:t,keyframes:n,isTransformed:!0}),u}function IS(e,t){const n=Cc(()=>[]);return UE(e,()=>{n.length=0;const r=e.length;for(let a=0;a<r;a++)n[a]=e[a].get();return t(n)})}function $V(e,t={}){const{isStatic:n}=v.useContext(kc),r=()=>Jt(e)?e.get():e;if(n)return qV(r);const a=qd(r());return v.useInsertionEffect(()=>p8(a,e,t),[a,JSON.stringify(t)]),a}function FS(e,t={}){return $V(e,{type:"spring",...t})}const GV={some:0,all:1};function YV(e,t,{root:n,margin:r,amount:a="some"}={}){const l=Zy(e),u=new WeakMap,f=h=>{h.forEach(g=>{const x=u.get(g.target);if(g.isIntersecting!==!!x)if(g.isIntersecting){const b=t(g.target,g);typeof b=="function"?u.set(g.target,b):p.unobserve(g.target)}else typeof x=="function"&&(x(g),u.delete(g.target))})},p=new IntersectionObserver(f,{root:n,rootMargin:r,threshold:typeof a=="number"?a:GV[a]});return l.forEach(h=>p.observe(h)),()=>p.disconnect()}function KV(e,{root:t,margin:n,amount:r,once:a=!1,initial:l=!1}={}){const[u,f]=v.useState(l);return v.useEffect(()=>{if(!e.current||a&&u)return;const p=()=>(f(!0),a?void 0:()=>f(!1)),h={root:t&&t.current||void 0,margin:n,amount:r};return YV(e.current,p,h)},[t,e,n,a,r]),u}const XV=new Set([204,205,304]),ZV="application/json, application/problem+json";function IE(e){return typeof Request<"u"&&e instanceof Request}function QV(e,t){return t?t.toUpperCase():IE(e)?e.method.toUpperCase():"GET"}function WV(e){return typeof URL<"u"&&e instanceof URL}function JV(e){return typeof e=="string"?e:WV(e)?e.toString():e.url}function eP(...e){const t=new Headers;for(const n of e)n&&new Headers(n).forEach((r,a)=>{t.set(a,r)});return t}function FE(e){const t=e.get("content-type");return t?t.split(";",1)[0].trim().toLowerCase():null}function Vg(e){return e==="application/json"||!!e?.endsWith("+json")}function BE(e){return!!(e&&(e.startsWith("text/")||e==="application/xml"||e==="text/xml"||e.endsWith("+xml")||e==="application/x-www-form-urlencoded"))}function HE(e,t){return!!(t==="HEAD"||XV.has(e.status)||e.headers.get("content-length")==="0"||e.body===null)}function qE(e){return e.charCodeAt(0)===65279?e.slice(1):e}function $E(e){const t=e.trimStart();return t.startsWith("{")||t.startsWith("[")}function Ul(e,t){if(!e||typeof e!="object")return;const n=e[t];
17if(typeof n!="string")return;const r=n.trim();return r===""?void 0:r}function tP(e,t=300){return e.length>t?`${e.slice(0,t-1)}…`:e}function nP(e,t){const n=`HTTP ${e.status} ${e.statusText}`;if(typeof t=="string"){const u=t.trim();return u?`${n}: ${tP(u)}`:n}const r=Ul(t,"title"),a=Ul(t,"detail"),l=Ul(t,"message")??Ul(t,"error_description")??Ul(t,"error");return r&&a?`${n}: ${r} — ${a}`:a?`${n}: ${a}`:l?`${n}: ${l}`:r?`${n}: ${r}`:n}class sP extends Error{name="ApiError";status;statusText;data;headers;response;method;url;constructor(t,n,r){super(nP(t,n)),Object.setPrototypeOf(this,new.target.prototype),this.status=t.status,this.statusText=t.statusText,this.data=n,this.headers=t.headers,this.response=t,this.method=r.method,this.url=t.url||r.url}}class rP extends Error{name="ResponseParseError";status;statusText;headers;response;method;url;rawBody;cause;constructor(t,n,r,a){super(`Failed to parse response from ${a.method} ${t.url||a.url} (${t.status} ${t.statusText}) as JSON`),Object.setPrototypeOf(this,new.target.prototype),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers,this.response=t,this.method=a.method,this.url=t.url||a.url,this.rawBody=n,this.cause=r}}async function iP(e,t){const n=await e.text(),r=qE(n);if(r.trim()==="")return null;try{return JSON.parse(r)}catch(a){throw new rP(e,n,a,t)}}async function aP(e,t){if(HE(e,t))return null;const n=FE(e.headers);if(n&&!Vg(n)&&!BE(n))return typeof e.blob=="function"?e.blob():e.text();const r=await e.text(),a=qE(r);if(a.trim()==="")return null;if(Vg(n)||$E(a))try{return JSON.parse(a)}catch{return r}return r}function oP(e){const t=FE(e.headers);return Vg(t)?"json":BE(t)||t==null?"text":"blob"}async function lP(e,t,n){if(HE(e,n.method))return null;switch(t==="auto"?oP(e):t){case"json":return iP(e,n);case"text":{const a=await e.text();return a===""?null:a}case"blob":if(typeof e.blob!="function")throw new TypeError('Blob responses are not supported in this runtime. Use responseType "json" or "text" instead.');return e.blob()}}async function Qs(e,t={}){e=e;const{responseType:n="auto",headers:r,...a}=t,l=QV(e,a.method);if(a.body!=null&&(l==="GET"||l==="HEAD"))throw new TypeError(`customFetch: ${l} requests cannot have a body.`);const u=eP(IE(e)?e.headers:void 0,r);typeof a.body=="string"&&!u.has("content-type")&&$E(a.body)&&u.set("content-type","application/json"),n==="json"&&!u.has("accept")&&u.set("accept",ZV);const f={method:l,url:JV(e)},p=await fetch(e,{...a,method:l,headers:u});if(!p.ok){const h=await aP(p,l);throw new sP(p,h,f)}return await lP(p,n,f)}const cP=e=>{const t=new URLSearchParams;Object.entries(e||{}).forEach(([r,a])=>{a!==void 0&&t.append(r,a===null?"null":a.toString())});const n=t.toString();return n.length>0?`/api/organizations?${n}`:"/api/organizations"},uP=async(e,t)=>Qs(cP(e),{...t,method:"GET"}),sa=e=>["/api/organizations",...e?[e]:[]],dP=(e,t)=>{const{query:n,request:r}={};return{queryKey:n?.queryKey??sa(e),queryFn:({signal:u})=>uP(e,{signal:u,...r}),...n}};function Rf(e,t){const n=dP(e);return{...ua(n),queryKey:n.queryKey}}const fP=()=>"/api/organizations",hP=async(e,t)=>Qs(fP(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),mP=e=>{const t=["createOrganization"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:l=>{const{data:u}=l??{};return hP(u,r)},...n}},kf=e=>xc(mP()),pP=()=>"/api/organizations/current",gP=async e=>Qs(pP(),{...e,method:"GET"}),zo=()=>["/api/organizations/current"],yP=e=>{const{query:t,request:n}={};return{queryKey:t?.queryKey??zo(),queryFn:({signal:l})=>gP({signal:l,...n}),...t}};function Dc(e){const t=yP();return{...ua(t),queryKey:t.queryKey}}const xP=()=>"/api/organizations/stats",vP=async e=>Qs(xP(),{...e,method:"GET"}),Mc=()=>["/api/organizations/stats"],bP=e=>{const{query:t,request:n}={};return{queryKey:t?.queryKey??Mc(),queryFn:({signal:l})=>vP({signal:l,...n}),...t}};function wP(e){const t=bP();return{...ua(t),queryKey:t.queryKey}}const SP=e=>`/api/organizations/${e}`,jP=async(e,t)=>Qs(SP(e),{...t,method:"GET"}),NP=e=>[`/api/organizations/${e}`],TP=(e,t)=>{const{query:n,request:r}=t??{};return{queryKey:n?.queryKey??NP(e),queryFn:({signal:u})=>jP(e,{signal:u,...r}),enabled:!!e,...n}};function EP(e,t){const n=TP(e,t);return{...ua(n),queryKey:n.queryKey}}const CP=e=>`/api/organizations/${e}`,_P=async(e,t,n)=>Qs(CP(e),{...n,method:"PUT",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)}),AP=e=>{const t=["updateOrganization"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:l=>{const{id:u,data:f}=l??{};return _P(u,f,r)},...n}},Lo=e=>xc(AP()),RP=e=>`/api/organizations/${e}`,kP=async(e,t,n)=>Qs(RP(e),{...n,method:"DELETE",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(t)}),OP=e=>{const t=["deleteOrganization"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:l=>{const{id:u,data:f}=l??{};return kP(u,f,r)},...n}},DP=e=>xc(OP()),MP=()=>"/api/admin/login",zP=async(e,t)=>Qs(MP(),{...t,method:"POST",headers:{"Content-Type":"application/json",...t?.headers},body:JSON.stringify(e)}),LP=e=>{const t=["adminLogin"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:l=>{const{data:u}=l??{};return zP(u,r)},...n}},VP=e=>xc(LP()),PP=()=>"/api/admin/logout",UP=async e=>Qs(PP(),{...e,method:"POST"}),IP=e=>{const t=["adminLogout"],{mutation:n,request:r}={mutation:{mutationKey:t},request:void 0};return{mutationFn:()=>UP(r),...n}},FP=e=>xc(IP()),BP=()=>"/api/admin/status",HP=async e=>Qs(BP(),{...e,method:"GET"}),GE=()=>["/api/admin/status"],qP=e=>{const{query:t,request:n}={};return{queryKey:t?.queryKey??GE(),queryFn:({signal:l})=>HP({signal:l,...n}),...t}};function $P(e){const t=qP();return{...ua(t),queryKey:t.queryKey}}async function GP(){const e=await fetch("/api/settings");if(!e.ok)throw new Error("Failed to load settings");return e.json()}function Of(){return ua({queryKey:["site-settings"],queryFn:GP,staleTime:6e4})}const YE="/assets/SiriusXMUrbanView-OnK_1777547693871-14EyrGvE.png",Mp=[{href:"/",label:"Home"},{href:"/about",label:"About"},{href:"/archive",label:"Archive"},{href:"/faqs",label:"FAQs"}];function zp({label:e,href:t,className:n}){return t.startsWith("http")?c.jsx("a",{href:t,target:"_blank",rel:"noopener noreferrer",className:n,children:e}):c.jsx(Xn,{href:t,className:n,children:e})}function YP(){const[e]=Co(),{data:t}=Dc(),{data:n}=Of(),[r,a]=v.useState(!1),[l,u]=v.useState(!1),f=v.useRef(null),p=e==="/";v.useEffect(()=>{const j=()=>a(window.scrollY>12);return window.addEventListener("scroll",j,{passive:!0}),j(),()=>window.removeEventListener("scroll",j)},[]),v.useEffect(()=>{const j=f.current;if(!j)return;const C=new ResizeObserver(([_])=>{document.documentElement.style.setProperty("--header-height",`${_.contentRect.height}px`)});return C.observe(j),()=>C.disconnect()},[]),v.useEffect(()=>{u(!1)},[e]),v.useEffect(()=>(l?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[l]);const h=p&&!r&&!l,g=n?.nav_cta_text||"GIVE NOW",x=n?.nav_cta_url||t?.donateUrl||"",b=n?.nav_btn2_text||"",w=n?.nav_btn2_url||"",N="bg-primary hover:bg-primary/85 text-white text-xs font-bold tracking-[0.15em] uppercase px-7 py-3 rounded-full transition-colors ml-2",S="border border-white/30 hover:border-white text-white text-xs font-bold tracking-[0.15em] uppercase px-7 py-3 rounded-full transition-colors ml-2";return n?.footer_tune_in_text,n?.footer_tune_in_url,c.jsxs("header",{ref:f,className:["fixed top-0 left-0 right-0 z-50 transition-all duration-500",h?"bg-transparent":"bg-[#0a0a0a] border-b border-white/10 shadow-lg"].join(" "),children:[c.jsxs("div",{className:"mx-auto max-w-[1600px] h-20 md:h-32 flex items-center justify-between px-8 md:px-12 lg:px-[72px] xl:px-[96px] pt-4 md:pt-0",children:[c.jsx(Xn,{href:"/",className:"shrink-0 flex items-center",onClick:j=>{e==="/"&&(j.preventDefault(),window.location.reload())}
17,children:c.jsx("img",{src:YE,alt:"SiriusXM Urban View",className:"object-contain w-32 h-32 md:w-40 md:h-40"})}),c.jsxs("nav",{className:"hidden md:flex items-center gap-8",children:[Mp.map(j=>{const C=e===j.href;return c.jsxs(Xn,{href:j.href,className:["relative text-base font-light tracking-normal transition-colors duration-200 pb-1",C?"text-white":"text-white/70 hover:text-white"].join(" "),style:{fontFamily:"'Inter', sans-serif"},children:[j.label,C&&c.jsx(hn.span,{layoutId:"nav-indicator",className:"absolute bottom-0 left-0 right-0 h-0.5 bg-primary rounded-full",transition:{type:"spring",stiffness:380,damping:32}})]},j.href)}),t&&(()=>{const j=n?.nav_org_url||"/",C=j.startsWith("http"),_="hidden lg:flex flex-col items-start border-l border-white/15 pl-6 ml-2 group",E=c.jsxs(c.Fragment,{children:[c.jsx("span",{className:"text-[9px] font-bold tracking-[0.22em] uppercase text-[#3ab54a] leading-none mb-0.5",style:{fontFamily:"'Inter', sans-serif"},children:n?.nav_org_label||"Org of the Month"}),c.jsx("span",{className:"text-white/80 group-hover:text-white text-xs font-semibold leading-tight transition-colors max-w-[220px] truncate",style:{fontFamily:"'Inter', sans-serif"},children:n?.nav_org_display_name||t.name})]});return C?c.jsx("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:_,children:E}):c.jsx(Xn,{href:j,className:_,children:E})})(),b&&w&&c.jsx(zp,{label:b,href:w,className:S}),x&&c.jsx(zp,{label:g,href:x,className:N})]}),c.jsx("button",{className:"md:hidden text-white hover:text-[#3ab54a] p-2 transition-colors",onClick:()=>u(!l),"aria-label":"Toggle menu",children:l?c.jsx(Ks,{className:"w-8 h-8"}):c.jsx(H3,{className:"w-8 h-8"})})]}),c.jsx(Mo,{children:l&&c.jsxs(hn.div,{initial:{opacity:0,x:"100%"},animate:{opacity:1,x:0},exit:{opacity:0,x:"100%"},transition:{duration:.28,ease:[.32,0,.16,1]},className:"md:hidden fixed inset-0 z-40 bg-[#0a0a0a] flex flex-col",children:[c.jsxs("div",{className:"flex items-center justify-between px-6 h-20 border-b border-white/8 shrink-0",children:[c.jsxs(Xn,{href:"/",className:"text-white font-black uppercase tracking-tight text-lg",style:{fontFamily:"'Oswald', sans-serif"},onClick:()=>u(!1),children:["Urban View ",c.jsx("span",{className:"text-[#3ab54a]",children:"Gives."})]}),c.jsx("button",{className:"text-white/70 hover:text-white transition-colors p-1",onClick:()=>u(!1),"aria-label":"Close menu",children:c.jsx(Ks,{className:"w-8 h-8"})})]}),c.jsxs("nav",{className:"flex-1 overflow-y-auto px-6 pt-2",children:[Mp.map((j,C)=>{const _=e===j.href,E=String(C+1).padStart(2,"0");return c.jsxs("div",{children:[c.jsxs(Xn,{href:j.href,className:"flex items-center justify-between py-6 group",onClick:()=>u(!1),children:[c.jsx("span",{className:["text-4xl font-normal transition-colors",_?"text-[#3ab54a]":"text-white group-hover:text-[#3ab54a]"].join(" "),style:{fontFamily:"'Inter', sans-serif"},children:j.label}),c.jsx("span",{className:"text-sm text-white/25 font-mono ml-4 shrink-0",children:E})]}),c.jsx("div",{className:"h-px bg-white/8"})]},j.href)}),t&&(()=>{const j=n?.nav_org_url||"/",C=j.startsWith("http"),_="flex items-center justify-between py-5 group",E=c.jsxs("div",{children:[c.jsx("p",{className:"text-[10px] font-bold tracking-[0.28em] uppercase text-[#3ab54a] mb-1",style:{fontFamily:"'Inter', sans-serif"},children:n?.nav_org_label||"Org of the Month"}),c.jsx("p",{className:"text-white/70 group-hover:text-white text-base font-semibold transition-colors",style:{fontFamily:"'Inter', sans-serif"},children:n?.nav_org_display_name||t.name})]}),R=c.jsx("span",{className:"text-sm text-white/25 font-mono ml-4 shrink-0",children:String(Mp.length+1).padStart(2,"0")});return c.jsxs(c.Fragment,{children:[C?c.jsxs("a",{href:j,target:"_blank",rel:"noopener noreferrer",className:_,children:[E,R]}):c.jsxs(Xn,{href:j,className:_,onClick:()=>u(!1),children:[E,R]}),c.jsx("div",{className:"h-px bg-white/8"})]})})()]}),c.jsx("div",{className:"px-6 pb-10 pt-6 shrink-0 space-y-3",children:b&&w&&c.jsx(zp,{label:b,href:w,className:"block border border-white/20 text-white text-xs font-bold tracking-[0.15em] uppercase py-3 rounded-xl text-center transition-colors hover:border-white/50"})})]})})]})}var KE={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},BS=me.createContext&&me.createContext(KE),KP=["attr","size","title"];function XP(e,t){if(e==null)return{};var n,r,a=ZP(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(r=0;r<l.length;r++)n=l[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function ZP(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $d(){return $d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$d.apply(null,arguments)}function HS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};
vendor: 4,288 bytes, line 17
17t%2?HS(Object(n),!0).forEach(function(r){QP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QP(e,t,n){return(t=WP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WP(e){var t=JP(e,"string");return typeof t=="symbol"?t:t+""}function JP(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XE(e){return e&&e.map((t,n)=>me.createElement(t.tag,Gd({key:n},t.attr),XE(t.child)))}function ax(e){return t=>me.createElement(eU,$d({attr:Gd({},e.attr)},t),XE(e.child))}function eU(e){var t=n=>{var{attr:r,size:a,title:l}=e,u=XP(e,KP),f=a||n.size||"1em",p;return n.className&&(p=n.className),e.className&&(p=(p?p+" ":"")+e.className),me.createElement("svg",$d({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,u,{className:p,style:Gd(Gd({color:e.color||n.color},n.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),l&&me.createElement("title",null,l),e.children)};return BS!==void 0?me.createElement(BS.Consumer,null,n=>t(n)):t(KE)}function tU(e){return ax({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z"},child:[]}]})(e)}function nU(e){return ax({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12.186 24h-.007c-3.581-.024-6.334-1.205-8.184-3.509C2.35 18.44 1.5 15.586 1.472 12.01v-.017c.03-3.579.879-6.43 2.525-8.482C5.845 1.205 8.6.024 12.18 0h.014c2.746.02 5.043.725 6.826 2.098 1.677 1.29 2.858 3.13 3.509 5.467l-2.04.569c-1.104-3.96-3.898-5.984-8.304-6.015-2.91.022-5.11.936-6.54 2.717C4.307 6.504 3.616 8.914 3.589 12c.027 3.086.718 5.496 2.057 7.164 1.43 1.783 3.631 2.698 6.54 2.717 2.623-.02 4.358-.631 5.8-2.045 1.647-1.613 1.618-3.593 1.09-4.798-.31-.71-.873-1.3-1.634-1.75-.192 1.352-.622 2.446-1.284 3.272-.886 1.102-2.14 1.704-3.73 1.79-1.202.065-2.361-.218-3.259-.801-1.063-.689-1.685-1.74-1.752-2.964-.065-1.19.408-2.285 1.33-3.082.88-.76 2.119-1.207 3.583-1.291a13.853 13.853 0 0 1 3.02.142c-.126-.742-.375-1.332-.75-1.757-.513-.586-1.308-.883-2.359-.89h-.029c-.844 0-1.992.232-2.721 1.32L7.734 7.847c.98-1.454 2.568-2.256 4.478-2.256h.044c3.194.02 5.097 1.975 5.287 5.388.108.046.216.094.321.142 1.49.7 2.58 1.761 3.154 3.07.797 1.82.871 4.79-1.548 7.158-1.85 1.81-4.094 2.628-7.277 2.65Zm1.003-11.69c-.242 0-.487.007-.739.021-1.836.103-2.98.946-2.916 2.143.067 1.256 1.452 1.839 2.784 1.767 1.224-.065 2.818-.543 3.086-3.71a10.5 10.5 0 0 0-2.215-.221z"},child:[]}]})(e)}function sU(e){return ax({attr:{role:"img",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M7.0301.084c-1.2768.0602-2.1487.264-2.911.5634-.7888.3075-1.4575.72-2.1228 1.3877-.6652.6677-1.075 1.3368-1.3802 2.127-.2954.7638-.4956 1.6365-.552 2.914-.0564 1.2775-.0689 1.6882-.0626 4.947.0062 3.2586.0206 3.6671.0825 4.9473.061 1.2765.264 2.1482.5635 2.9107.308.7889.72 1.4573 1.388 2.1228.6679.6655 1.3365 1.0743 2.1285 1.38.7632.295 1.6361.4961 2.9134.552 1.2773.056 1.6884.069 4.9462.0627 3.2578-.0062 3.668-.0207 4.9478-.0814 1.28-.0607 2.147-.2652 2.9098-.5633.7889-.3086 1.4578-.72 2.1228-1.3881.665-.6682 1.0745-1.3378 1.3795-2.1284.2957-.7632.4966-1.636.552-2.9124.056-1.2809.0692-1.6898.063-4.948-.0063-3.2583-.021-3.6668-.0817-4.9465-.0607-1.2797-.264-2.1487-.5633-2.9117-.3084-.7889-.72-1.4568-1.3876-2.1228C21.2982 1.33 20.628.9208 19.8378.6165 19.074.321 18.2017.1197 16.9244.0645 15.6471.0093 15.236-.005 11.977.0014 8.718.0076 8.31.0215 7.0301.0839m.1402 21.6932c-1.17-.0509-1.8053-.2453-2.2287-.408-.5606-.216-.96-.4771-1.3819-.895-.422-.4178-.6811-.8186-.9-1.378-.1644-.4234-.3624-1.058-.4171-2.228-.0595-1.2645-.072-1.6442-.079-4.848-.007-3.2037.0053-3.583.0607-4.848.05-1.169.2456-1.805.408-2.2282.216-.5613.4762-.96.895-1.3816.4188-.4217.8184-.6814 1.3783-.9003.423-.1651 1.0575-.3614 2.227-.4171 1.2655-.06 1.6447-.072 4.848-.079 3.2033-.00
177 3.5835.005 4.8495.0608 1.169.0508 1.8053.2445 2.228.408.5608.216.96.4754 1.3816.895.4217.4194.6816.8176.9005 1.3787.1653.4217.3617 1.056.4169 2.2263.0602 1.2655.0739 1.645.0796 4.848.0058 3.203-.0055 3.5834-.061 4.848-.051 1.17-.245 1.8055-.408 2.2294-.216.5604-.4763.96-.8954 1.3814-.419.4215-.8181.6811-1.3783.9-.4224.1649-1.0577.3617-2.2262.4174-1.2656.0595-1.6448.072-4.8493.079-3.2045.007-3.5825-.006-4.848-.0608M16.953 5.5864A1.44 1.44 0 1 0 18.39 4.144a1.44 1.44 0 0 0-1.437 1.4424M5.8385 12.012c.0067 3.4032 2.7706 6.1557 6.173 6.1493 3.4026-.0065 6.157-2.7701 6.1506-6.1733-.0065-3.4032-2.771-6.1565-6.174-6.1498-3.403.0067-6.156 2.771-6.1496 6.1738M8 12.0077a4 4 0 1 1 4.008 3.9921A3.9996 3.9996 0 0 1 8 12.0077"},child:[]}]})(e)}const rU="/assets/siriusxm-logo_1777556881445-CcazYnV4.png",ZE={fontFamily:"'Oswald', sans-serif"},qi={fontFamily:"'Inter', sans-serif"};function od({children:e}){return c.jsx("p",{className:"text-white text-base font-bold tracking-[0.12em] uppercase mb-5",style:ZE,children:e})}const iU="https://www.siriusxm.com/player/channel-linear/entity/fb5bc33e-a51e-d1dd-d547-3d80e0b8324c";function aU(){const{data:e}=Of(),t=e?.footer_tune_in_text||"SiriusXM Urban View, Channel 126",n=e?.footer_tune_in_url||iU,r=e?.footer_phone||"+1 866-801-8255",a=e?.footer_instagram||"https://www.instagram.com/urbanviewradio/",l=e?.footer_twitter||"https://x.com/UrbanViewRadio",u=e?.footer_threads||"https://www.threads.net/@urbanviewradio",f=e?.footer_btn_text||"",p=e?.footer_btn_url||"";return c.jsxs("footer",{className:"bg-black text-white",children:[c.jsxs("div",{className:"container mx-auto max-w-6xl px-10 md:px-6 pt-16 pb-12 md:pt-24 md:pb-16 grid grid-cols-2 md:grid-cols-4 gap-8 md:gap-12",children:[c.jsxs("div",{className:"flex flex-col",children:[c.jsx(od,{children:"Navigate"}),c.jsx("div",{className:"flex flex-col gap-3",children:[{href:"/",label:"Home"},{href:"/about",label:"About Initiative"},{href:"/archive",label:"Archive"},{href:"/faqs",label:"FAQs"}].map(h=>c.jsx(Xn,{href:h.href,className:"text-white/45 hover:text-white transition-colors text-base",style:qi,children:h.label},h.href))})]}),c.jsxs("div",{className:"flex flex-col",children:[c.jsx(od,{children:"Tune In"}),c.jsx("div",{className:"flex flex-col gap-2",children:c.jsx("a",{href:n,target:"_blank",rel:"noopener noreferrer",className:"text-white/45 text-base hover:text-white transition-colors",style:qi,children:t})}),c.jsx("p",{className:"text-white text-base font-bold tracking-[0.12em] uppercase mt-6 mb-3",style:ZE,children:"Call In Live"}),c.jsx("a",{href:`tel:${r.replace(/[^+\d]/g,"")}`,className:"text-white/45 text-base hover:text-white transition-colors",style:qi,children:r}),f&&p&&c.jsx("a",{href:p,target:p.startsWith("http")?"_blank":void 0,rel:p.startsWith("http")?"noopener noreferrer":void 0,className:"mt-5 inline-block bg-[#3ab54a] hover:bg-[#45f68e] text-black text-xs font-bold tracking-[0.15em] uppercase px-5 py-2.5 rounded-full transition-colors text-center",style:qi,children:f})]}),c.jsxs("div",{className:"flex flex-col col-span-1",children:[c.jsx(od,{children:"Connect"}),c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("a",{href:l,target:"_blank",rel:"noopener noreferrer",className:"w-9 h-9 rounded-full border border-white/20 flex items-center justify-center text-white/50 hover:border-white/60 hover:text-white transition-colors","aria-label":"X (Twitter)",children:c.jsx(tU,{className:"w-3.5 h-3.5"})}),c.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"w-9 h-9 rounded-full border border-white/20 flex items-center justify-center text-white/50 hover:border-white/60 hover:text-white transition-colors","aria-label":"Instagram",children:c.jsx(sU,{className:"w-3.5 h-3.5"})}),c.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"w-9 h-9 rounded-full border border-white/20 flex items-center justify-center text-white/50 hover:border-white/60 hover:text-white transition-colors","aria-label":"Threads",children:c.jsx(nU,{className:"w-3.5 h-3.5"})})]})]}),c.jsxs("div",{className:"hidden md:flex flex-col col-span-1",children:[c.jsx(od,{children:"Stay Updated"}),c.jsxs("div",{className:"flex",children:[c.jsx("input",{type:"email",placeholder:"Enter your email",className:"bg-transparent border border-white/20 text-white/70 placeholder-white/25 text-xs px-3 py-2.5 flex-1 min-w-0 focus:outline-none focus:border-[#3ab54a] transition-colors",style:qi}),c.jsx("button",{className:"bg-[#3ab54a] hover:bg-[#2ea040] px-3 py-2.5 flex items-center justify-center transition-colors flex-shrink-0","aria-label":"Subscribe",children:c.jsx(ii,{className:"w-3.5 h-3.5 text-white"})})]}),c.jsx("p",{className:"text-white/25 text-xs leading-relaxed mt-3",style:qi,children:"Get updates on our monthly featured organization."})]})]}),c.jsxs("div",{className:"container mx-auto max-w-6xl px-10 md:px-6 py-8",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("img",{src:YE,alt:"SiriusXM Urban Vie
17w",className:"h-14 w-auto object-contain"}),c.jsx("a",{href:"https://www.siriusxm.com",target:"_blank",rel:"noopener noreferrer","aria-label":"Visit SiriusXM website",className:"hidden md:block",children:c.jsx("img",{src:rU,alt:"SiriusXM",className:"h-16 w-auto object-contain",style:{mixBlendMode:"screen"}})})]}),c.jsx("div",{className:"border-t border-white/10 mb-4"}),c.jsxs("p",{className:"text-white/20 text-xs tracking-widest uppercase",style:qi,children:["© ",new Date().getFullYear()," SiriusXM Urban View · Channel 126 · All Rights Reserved"]})]})]})}function oU({children:e}){const t=v.useRef(null),[n,r]=v.useState(440),[a,l]=v.useState(!1);return v.useEffect(()=>{const u=t.current;if(!u)return;const f=new ResizeObserver(([p])=>{r(Math.ceil(p.contentRect.height))});return f.observe(u),()=>f.disconnect()},[]),v.useEffect(()=>{const u=()=>l(window.scrollY>300);return window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),c.jsxs("div",{className:"relative bg-black",children:[c.jsx("div",{ref:t,className:"fixed bottom-0 left-0 right-0 z-0",children:c.jsx(aU,{})}),c.jsxs("div",{className:"relative z-10 bg-black min-h-screen",style:{marginBottom:n},children:[c.jsx(YP,{}),c.jsx("main",{className:"pt-24",children:e})]}),c.jsx("button",{onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),"aria-label":"Back to top",className:`fixed bottom-6 right-6 z-50 w-12 h-12 rounded-full bg-[#1a1a1a] border border-white/15 flex items-center justify-center text-white hover:border-white/40 hover:bg-[#252525] transition-all duration-300 ${a?"opacity-100 translate-y-0":"opacity-0 translate-y-4 pointer-events-none"}`,children:c.jsx(i3,{className:"w-5 h-5"})})]})}const ox=["January","February","March","April","May","June","July","August","September","October","November","December"],lU="TALK THAT EMPOWERS AND BECOMES ACTION";function cU(e){return/youtube\.com|youtu\.be|soundcloud\.com|spotify\.com|open\.spotify|mixcloud\.com/i.test(e)}function QE({src:e,autoPlay:t=!1,onClose:n,onEnded:r,onTimeUpdate:a}){const l=v.useRef(null),[u,f]=v.useState(!1),[p,h]=v.useState(0),[g,x]=v.useState(0),[b,w]=v.useState(1),N=v.useRef(null),S=v.useRef(null),j=v.useRef(!1),C=v.useRef(!1);v.useEffect(()=>{h(0),x(0),f(!1)},[e]),v.useEffect(()=>{if(!t)return;const F=l.current;if(!F)return;F.load();const W=()=>{F.play().then(()=>f(!0)).catch(()=>{})};return F.addEventListener("canplay",W,{once:!0}),()=>{F.removeEventListener("canplay",W)}},[t,e]);const _=F=>{const W=Math.floor(F/60),Q=Math.floor(F%60);return`${W}:${Q.toString().padStart(2,"0")}`},E=()=>{const F=l.current;F&&(u?(F.pause(),f(!1)):F.play().then(()=>f(!0)).catch(()=>f(!1)))},R=F=>{const W=l.current;W&&(W.currentTime=Math.max(0,Math.min(g,W.currentTime+F)))},O=F=>{const W=l.current,Q=S.current;if(!W||!Q||!g)return;const H=Q.getBoundingClientRect();W.currentTime=Math.max(0,Math.min(g,(F-H.left)/H.width*g))},M=F=>{F.preventDefault(),C.current=!0,O(F.clientX);const W=H=>{C.current&&O(H.clientX)},Q=()=>{C.current=!1,document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",Q)};document.addEventListener("mousemove",W),document.addEventListener("mouseup",Q)},V=F=>{const W=N.current;if(!W)return;const Q=W.getBoundingClientRect(),H=Math.max(0,Math.min(1,(F-Q.left)/Q.width));w(H),l.current&&(l.current.volume=H)},D=F=>{F.preventDefault(),j.current=!0,V(F.clientX);const W=H=>{j.current&&V(H.clientX)},Q=()=>{j.current=!1,document.removeEventListener("mousemove",W),document.removeEventListener("mouseup",Q)};document.addEventListener("mousemove",W),document.addEventListener("mouseup",Q)};if(!cU(e)){const F=g?p/g*100:0;return c.jsxs("div",{className:"flex items-center gap-3 md:gap-4 bg-[#141414] px-4 md:px-6 py-3 select-none w-full rounded-xl",children:[c.jsx("audio",{ref:l,src:e,preload:"metadata",onTimeUpdate:W=>{h(W.currentTarget.currentTime),a?.(W.currentTarget.currentTime)},onLoadedMetadata:W=>{const Q=W.currentTarget.duration;isFinite(Q)&&Q>0&&x(Q)},onEnded:()=>{f(!1),r?.()}}),c.jsx("div",{className:"w-0.5 h-7 bg-[#3ab54a] rounded-full shrink-0"}),c.jsxs("button",{onClick:()=>R(-30),className:"flex flex-col items-center gap-0.5 text-white/40 hover:text-white transition-colors shrink-0","aria-label":"Skip back 30 seconds",children:[c.jsx(QN,{className:"w-4 h-4"}),c.jsx("span",{className:"text-[8px] font-bold leading-none",style:{fontFamily:"'Inter', sans-serif"},children:"30"})]}),c.jsx("button",{onClick:E,className:"w-11 h-11 rounded-full bg-[#3ab54a] hover:bg-[#45c455] flex items-center justify-center transition-colors shrink-0 shadow-lg shadow-[#3ab54a]/20","aria-label":u?"Pause":"Play",children:u?c.jsx(ZN,{className:"w-4 h-4 text-white",f
17ill:"currentColor"}):c.jsx(xo,{className:"w-4 h-4 text-white ml-0.5",fill:"currentColor"})}),c.jsxs("button",{onClick:()=>R(30),className:"flex flex-col items-center gap-0.5 text-white/40 hover:text-white transition-colors shrink-0","aria-label":"Skip forward 30 seconds",children:[c.jsx(WN,{className:"w-4 h-4"}),c.jsx("span",{className:"text-[8px] font-bold leading-none",style:{fontFamily:"'Inter', sans-serif"},children:"30"})]}),c.jsx("span",{className:"text-[11px] text-white/50 font-mono tabular-nums shrink-0",children:_(p)}),c.jsxs("div",{ref:S,className:"flex-1 h-[4px] bg-white/15 rounded-full cursor-pointer relative min-w-0 group",onMouseDown:M,children:[c.jsx("div",{className:"absolute left-0 top-0 h-full bg-white/70 rounded-full pointer-events-none",style:{width:`${F}%`}}),c.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full shadow-md pointer-events-none transition-transform group-hover:scale-125",style:{left:`calc(${F}% - 6px)`}})]}),c.jsx("span",{className:"text-[11px] text-white/50 font-mono tabular-nums shrink-0",children:_(g)}),c.jsxs("div",{className:"hidden md:flex items-center gap-2 shrink-0",children:[c.jsx(e2,{className:"w-3.5 h-3.5 text-white/35"}),c.jsxs("div",{ref:N,className:"w-16 h-[4px] bg-white/15 rounded-full cursor-pointer relative group",onMouseDown:D,children:[c.jsx("div",{className:"absolute left-0 top-0 h-full bg-[#3ab54a] rounded-full pointer-events-none",style:{width:`${b*100}%`}}),c.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full pointer-events-none transition-transform group-hover:scale-125",style:{left:`calc(${b*100}% - 6px)`}})]})]}),n&&c.jsx("button",{onClick:n,className:"w-9 h-9 rounded-full border border-white/20 hover:border-white/50 bg-white/5 hover:bg-white/10 flex items-center justify-center text-white/50 hover:text-white transition-colors shrink-0","aria-label":"Close player",children:c.jsx(Sc,{className:"w-4 h-4 rotate-180"})})]})}return c.jsx("iframe",{src:e,className:"w-full border-0 rounded-xl",style:{height:152},allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"})}function uU(e){return 1-Math.pow(1-e,4)}function dU({prefix:e,value:t,suffix:n,label:r,delay:a,noAnimate:l}){const u=v.useRef(null),f=KV(u,{once:!0,margin:"-60px"}),[p,h]=v.useState(l?t:0);return v.useEffect(()=>{if(l){h(t);return}if(!f)return;const g=1800,x=performance.now();let b;function w(N){const S=Math.min((N-x)/g,1);h(Math.round(uU(S)*t)),S<1&&(b=requestAnimationFrame(w))}return b=requestAnimationFrame(w),()=>cancelAnimationFrame(b)},[f,t,l]),c.jsxs(hn.div,{ref:u,initial:{opacity:0,y:30},animate:f?{opacity:1,y:0}:{},transition:{duration:.6,delay:a},className:"flex flex-col items-center justify-center text-center px-6 py-8",children:[c.jsxs("span",{className:"text-5xl md:text-7xl lg:text-8xl font-bold leading-none mb-3 tabular-nums text-black",style:{fontFamily:"'Oswald', sans-serif"},children:[e,p,n]}),c.jsx("span",{className:"text-xs md:text-sm font-bold uppercase tracking-[0.2em] text-black/60",style:{fontFamily:"'Inter', sans-serif"},children:r})]})}function fU({org:e,onPrev:t,onNext:n,hasPrev:r,hasNext:a,playlistOpen:l,onTogglePlaylist:u,tracklistOrgs:f=[],onSelectOrg:p,currentTime:h,onCurrentTimeChange:g,autoPlay:x}){const b=e.guestImageUrl||e.imageUrl,w=e.interviewTitle||e.name,N=`${ox[(e.month??1)-1]} ${e.year}`,S=v.useRef(null),[j,C]=v.useState(1);v.useLayoutEffect(()=>{if(!S.current)return;const E=S.current,R=parseFloat(getComputedStyle(E).lineHeight);if(!isNaN(R)&&R>0){const O=Math.round(E.clientHeight/R);C(O)}},[w]);const _=j>=3;return c.jsxs("div",{className:"bg-[#111] rounded-xl overflow-hidden border border-white/8",children:[c.jsxs("div",{className:"flex flex-col md:flex-row",children:[c.jsxs("div",{className:"relative md:w-[34%] shrink-0 aspect-[16/9] md:aspect-auto md:min-h-[260px] bg-zinc-900",children:[b?c.jsx("img",{src:b,alt:e.name,className:"w-full h-full object-cover object-top absolute inset-0"}):c.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:c.jsx(xo,{className:"w-12 h-12 text-white/10"})}),(e.radioBadge??"EXCLUSIVE")&&c.jsx("span",{className:"absolute bottom-3 left-3 bg-black/80 backdrop-blur-sm text-white text-[9px] font-bold tracking-[0.2em] uppercase px-2.5 py-1.5 rounded",children:e.radioBadge||"EXCLUSIVE"})]}),c.jsxs("div",{className:"flex-1 flex flex-col p-4 md:pl-10 md:pr-12 md:py-8 gap-3 md:gap-4 min-w-0",children:[c.jsxs("div",{className:"flex items-center justify-between gap-4",children:[c.jsxs("p",{className:"text-white/45 text-xs md:text-sm leading-tight",style:{fontFamily:"'Inter', sans-serif"},children:[N," · ",e.radioLabel||"Org of the Month"]}),c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[c.jsx("button",{onClick:t,disabled:!r,className:"w-7 h-7 rounded-full border border-white/15 flex items-center justify-center text-white/50 hover:border-white/40 hover:text-white transition-colors disabled:opacity-20 disabled:cursor-not-allowed","aria-label":"Previous",children:c.jsx(g3,{className:"w-4 h-4"})}),c.jsx("button",{onClick:n,disabled:!a,className:"w-7 h-7 rounded-full border border-white/15 flex items-center justify-center text-white/50 hover:border-white/40 hover:text-white transition-colors disabled:opacity-20 disabled:cursor-not-allowed","aria-label":"Next",children:c.jsx(KN,{className:"w-4 h-4"})})]})]}),c.jsxs("div",{ref:S,className:`leading-snug ${_?"pb-4 md:pb-6":""}`,children:[e.learnMoreUrl?c.jsx("a",{href:e.learnMoreUrl,target:"_blank",rel:"noopener noreferrer",className:"text-base md:text-xl xl:text-2xl font-normal text-white leading-snug capitalize hover:text-white/70 transition-colors inline-block",style:{fontFamily:"'Inter', sans-serif"},children:e.interviewTitle||e.name}):c.jsx("h3",{className:"text-base md:text-xl xl:text-2xl font-normal text-white leading-snug capitalize",style:{fontFamily:"'Inter', sans-serif"},children:e.interviewTitle||e.name}),e.guestTitle&&c.jsx("p",{className:"text-[#3ab54a] text-xs font-bold uppercase tracking-[0.15em] mt-1.5",style:{fontFamily:"'Inter', sans-serif"},children:e.guestTitle})]}),e.audioEmbedUrl?c.jsx("div",{className:"mt-1",children:c.jsx(QE,{src:e.audioEmbedUrl,autoPlay:x,onEnded:n,onTimeUpdate:g})}):c.jsx("div",{className:"flex-1"}),e.donateUrl&&c.jsx("div",{className:"flex items-center justify-end gap-3 pt-0",children:c.jsxs("a",{href:e.donateUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1.5 border border-[#3ab54a]/50 hover:border-[#3ab54a] text-[#3ab54a] hover:text-[#3ab54a] text-[10px] font-bold tracking-[0.15em] uppercase px-4 py-2 rounded-full transition-colors",style:{fontFamily:"'Inter', sans-serif"},children:["Give ",c.jsx(Nc,{className:"w-3 h-3"})]})})]})]}),c.jsxs("button",{onClick:u,className:"w-full flex items-center justify-center gap-2 py-3 border-t border-white/10 text-white/40 hover:text-white hover:bg-white/5 transition-colors text-[11px] font-bold tracking-[0.2em] uppercase",style:{fontFamily:"'Inter', sans-serif"},children:[l?"View Less":"View More",c.jsx(Sc,{className:"w-3.5 h-3.5 transition-transform duration-300",style:{transform:l?"rotate(180deg)":"rotate(0deg)"}})]}),c.jsx(Mo,{initial:!1,children:l&&c.jsx(hn.div,{initial:{height:0,opacity:0}
17,animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},style:{overflow:"hidden"},children:c.jsx("div",{className:"max-h-[340px] overflow-y-auto overflow-x-hidden [&::-webkit-scrollbar]:hidden p-2",children:f.map((E,R)=>c.jsx(hU,{org:E,number:R+1,isFeatured:E.id===e.id,onClick:()=>p(E),currentTime:E.id===e.id?h:void 0},E.id))})},"playlist")})]})}function hU({org:e,number:t,isFeatured:n,onClick:r,currentTime:a}){const l=e.guestImageUrl||e.imageUrl,u=e.interviewTitle||e.name,f=e.name,p=h=>`${Math.floor(h/60)}:${String(Math.floor(h%60)).padStart(2,"0")}`;return c.jsxs("button",{onClick:r,className:`w-full flex items-center gap-4 py-3 px-3 rounded-lg transition-colors text-left group ${n?"bg-white/8":"hover:bg-white/5"}`,children:[c.jsx("span",{className:`w-6 text-right text-sm tabular-nums shrink-0 ${n?"text-[#3ab54a]":"text-white/30 group-hover:text-white/50"}`,style:{fontFamily:"'Inter', sans-serif"},children:n?c.jsx(xo,{className:"w-3.5 h-3.5 text-[#3ab54a] fill-current inline"}):String(t).padStart(2,"0")}),c.jsx("div",{className:"w-10 h-10 rounded shrink-0 bg-zinc-800 overflow-hidden",children:l?c.jsx("img",{src:l,alt:e.name,className:"w-full h-full object-cover object-top"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsx(xo,{className:"w-3 h-3 text-white/20"})})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:`text-sm font-semibold truncate leading-snug ${n?"text-[#3ab54a]":"text-white group-hover:text-white"}`,style:{fontFamily:"'Inter', sans-serif"},children:f!==u||e.guestTitle?`${u} — ${e.guestTitle||f}`:u}),c.jsxs("p",{className:"text-xs text-white/35 truncate mt-0.5",style:{fontFamily:"'Inter', sans-serif"},children:[ox[(e.month??1)-1]," ",e.year]})]}),c.jsx("span",{className:`text-[11px] shrink-0 tabular-nums ${n&&a?"text-[#3ab54a]":e.audioDuration?"text-white/30":e.audioEmbedUrl?"text-white/25":"text-white/20 italic"}`,style:{fontFamily:"'Inter', sans-serif"},children:n&&a!=null&&a>0?p(a):e.audioDuration??(e.audioEmbedUrl?"—":"Audio coming soon")})]})}function mU({src:e}){const t=v.useRef(null),[n,r]=v.useState(!1),a=v.useRef(!1),l=v.useRef({x:0,y:0}),u=qd(0),f=qd(0),p=FS(u,{stiffness:500,damping:32,mass:.3}),h=FS(f,{stiffness:500,damping:32,mass:.3});v.useLayoutEffect(()=>{const b=()=>{const w=window.innerWidth*.88-80,N=window.innerHeight*.72-80;l.current={x:w,y:N},u.set(w),f.set(N),p.set(w),h.set(N)};return b(),window.addEventListener("resize",b),()=>window.removeEventListener("resize",b)},[]),v.useEffect(()=>{a.current=n},[n]),v.useEffect(()=>{const x=b=>{if(a.current)return;const{x:w,y:N}=l.current;Math.hypot(b.clientX-(w+80),b.clientY-(N+80))<192?(u.set(b.clientX-80),f.set(b.clientY-80)):(p.set(w),h.set(N),u.set(w),f.set(N))};return document.addEventListener("mousemove",x),()=>document.removeEventListener("mousemove",x)},[]);const g=()=>{const x=t.current;x&&(n?(x.pause(),r(!1)):(x.play().catch(()=>{}),r(!0)))};return c.jsxs("div",{className:"hidden md:block absolute inset-0 z-20 pointer-events-none",children:[e&&c.jsx("audio",{ref:t,src:e,onEnded:()=>r(!1)}),c.jsxs(hn.button,{onClick:g,className:"absolute w-[160px] h-[160px] rounded-full flex items-center justify-center pointer-events-auto cursor-pointer",style:{x:p,y:h},initial:{opacity:0}
17,animate:{opacity:1},transition:{delay:.6,duration:.6},"aria-label":n?"Pause":"Play",children:[c.jsx("div",{className:`absolute inset-0 rounded-full ${n?"ring-pulsate":""}`,style:{border:"2px solid rgba(255,255,255,0.88)"}}),c.jsx(Mo,{mode:"wait",children:c.jsx(hn.span,{className:"text-white font-bold text-[13px] uppercase tracking-[0.25em] select-none",style:{fontFamily:"'Oswald', sans-serif"},initial:{opacity:0,y:6},animate:{opacity:1,y:0},exit:{opacity:0,y:-6},transition:{duration:.18},children:n?"PAUSE":"PLAY"},n?"pause":"play")})]})]})}const pU=["/images/c01.webp","/images/c02.webp","/images/c03.webp","/images/c04.webp","/images/c05.webp","/images/c07.webp","/images/c08.webp","/images/c09.webp","/images/c10.webp","/images/c11.webp","/images/c12.webp","/images/c13.webp","/images/c15.webp","/images/c16.webp","/images/c20.webp","/images/c21.webp","/images/c22.webp","/images/c23.webp","/images/c24.webp","/images/c25.webp","/images/c26.webp","/images/c28.webp","/images/c29.webp","/images/c30.webp","/images/c33.webp","/images/c34.webp","/images/c35.webp","/images/c36.webp","/images/c37.webp","/images/c38.webp","/images/c39.webp","/images/c40.webp","/images/c41.png","/images/c42.jpg","/images/c43.jpg","/images/c44.png","/images/c45.jpeg","/images/c46.jpg","/images/c47.jpg","/images/c48.jpg","/images/c49.jpg","/images/farmasis-group.webp","/images/kayaking-group.jpg","/images/c50.webp","/images/c51.jpg","/images/c52.png","/images/c53.jpg","/images/c54.jpg"],gU={"/images/c01.webp":67,"/images/c02.webp":63,"/images/c03.webp":75,"/images/c04.webp":56,"/images/c05.webp":67,"/images/c07.webp":58,"/images/c08.webp":75,"/images/c09.webp":56,"/images/c10.webp":50,"/images/c11.webp":67,"/images/c12.webp":62,"/images/c13.webp":67,"/images/c15.webp":63,"/images/c16.webp":56,"/images/c20.webp":67,"/images/c21.webp":45,"/images/c22.webp":52,"/images/c23.webp":54,"/images/c24.webp":62,"/images/c25.webp":67,"/images/c26.webp":69,"/images/c28.webp":67,"/images/c29.webp":61,"/images/c30.webp":50,"/images/c33.webp":100,"/images/c34.webp":66,"/images/c35.webp":56,"/images/c36.webp":67,"/images/c37.webp":67,"/images/c38.webp":43,"/images/c39.webp":49,"/images/c40.webp":67,"/images/c41.png":78,"/images/c42.jpg":93,"/images/c43.jpg":100,"/images/c44.png":79,"/images/c45.jpeg":107,"/images/c46.jpg":112,"/images/c47.jpg":150,"/images/c48.jpg":149,"/images/c49.jpg":92,"/images/farmasis-group.webp":75,"/images/kayaking-group.jpg":75,"/images/c50.webp":103,"/images/c51.jpg":79,"/images/c52.png":98,"/images/c53.jpg":68,"/images/c54.jpg":68},qS=[{width:"14%",dur:22,offset:0},{width:"22%",dur:28,offset:0},{width:"19%",dur:20,offset:0},{width:"22%",dur:32,offset:0},{width:"23%",dur:25,offset:0}];function yU(e,t){const n=[...e];let r=t*1664525+1013904223&2147483647;for(let a=n.length-1;a>0;a--){r=r*1664525+1013904223&2147483647;const l=r%(a+1);[n[a],n[l]]=[n[l],n[a]]}return n}const xU=[10,10,10,9,9],$S=["/images/c50.webp","/images/c51.jpg","/images/c42.jpg","/images/c47.jpg","/images/c46.jpg","/images/farmasis-group.webp","/images/c53.jpg","/images/c48.jpg"];function vU(){const e=v.useMemo(()=>Math.floor(Math.random()*999983),[]),t=v.useMemo(()=>{const n=new Set($S),r=pU.filter(p=>!n.has(p)),a=yU(r,e),l=qS.map(()=>[]);$S.forEach((p,h)=>l[h%5].push(p));let u=0;const f=xU.map((p,h)=>{const g=a.slice(u,u+2);u+=2;const x=l[h],b=p-2-x.length,w=a.slice(u,u+b);return u+=b,[...g,...x,...w]});return qS.map((p,h)=>({...p,images:f[h]}))},[e]);return c.jsxs("div",{className:"absolute left-0 right-0 bottom-0 -top-[180px] md:inset-0 flex gap-[3px] overflow-hidden scale-[2.2] md:scale-100 origin-[95%_0%] md:origin-center translate-y-[12%] md:translate-y-0","aria-hidden":"true",children:[t.map((n,r)=>{const a=[...n.images,...n.images];return c.jsx("div",{className:"flex flex-col gap-[3px] shrink-0 min-w-0",style:{width:n.width,animation:`mosaicScroll${r} ${n.dur}s linear infinite`,animationDelay:`${n.offset}s`,willChange:"transform"},children:a.map((l,u)=>{const f=gU[l]??67;return c.jsx("div",{className:"relative overflow-hidden shrink-0 w-full",style:{paddingBottom:`${f}%`},children:c.jsx("img",{src:l,alt:"",loading:"lazy",decoding:"async",className:"absolute inset-0 w-full h-full object-cover object-top"})},u)})},r)}),c.jsx("style",{children:`
18        @keyframes mosaicScroll0 { from { transform: translateY(0); } to { transform: translateY(-50%); } }
19        @keyframes mosaicScroll1 { from { transform: translateY(0); } to { transform: translateY(-50%); } }
20        @keyframes mosaicScroll2 { from { transform: translateY(0); } to { transform: translateY(-50%); } }
21        @keyframes mosaicScroll3 { from { transform: translateY(0); } to { transform: translateY(-50%); } }
22        @keyframes mosaicScroll4 { from { transform: translateY(0); } to { transform: translateY(-50%); } }
23      `})]})}function bU(){const{data:e,isLoading:t}=Dc(),{data:n}=Of(),{data:r}=Rf(),[a,l]=v.useState(0),[u,f]=v.useState(!1),[p,h]=v.useState(!1),[g,x]=v.useState(0),[b,w]=v.useState(!1),N=v.useRef(null),[S,j]=v.useState(!1);v.useLayoutEffect(()=>{const M=N.current;if(!M)return;const V=()=>{const F=window.matchMedia("(min-width: 1280px)").matches,W=window.innerHeight-96;j(F&&M.scrollHeight<=W)},D=new ResizeObserver(V);return D.observe(M),window.addEventListener("resize",V),V(),()=>{D.disconnect(),window.removeEventListener("resize",V)}}
23,[e?.id,e?.shortDescription,e?.fullDescription,u]),Object.fromEntries([...r??[]].sort((M,V)=>M.year!==V.year?(M.year??0)-(V.year??0):(M.month??0)-(V.month??0)).map((M,V)=>[M.id,V+1]));const C=(r??[]).filter(M=>M.audioEmbedUrl&&M.showInRadio).sort((M,V)=>{const D=M.sortOrder??1/0,F=V.sortOrder??1/0;return D!==F?D-F:V.year!==M.year?(V.year??0)-(M.year??0):(V.month??0)-(M.month??0)}),_=Math.min(a,Math.max(0,C.length-1)),E=C[_],R=C,O=()=>{x(0),w(!0),l(M=>Math.min(C.length-1,M+1))};return c.jsxs("div",{className:"flex flex-col w-full",children:[c.jsxs("section",{className:"-mt-20 md:-mt-32 relative bg-[#0a0a0a] min-h-screen flex flex-col justify-center pt-20 md:pt-32 pb-[52px] px-10 md:px-6 [clip-path:inset(-180px_0px_0px_0px)] md:[clip-path:none] md:overflow-hidden",children:[c.jsx(vU,{}),c.jsx("div",{className:"absolute left-0 right-0 bottom-0 -top-[180px] md:inset-0 bg-gradient-to-r from-black/80 via-black/50 to-black/10"}),c.jsx("div",{className:"absolute left-0 right-0 bottom-0 -top-[180px] md:inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent"}),c.jsx("div",{className:"container mx-auto max-w-6xl relative z-10",children:c.jsxs(hn.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.7},className:"flex flex-col items-start",children:[c.jsx("p",{className:"hidden md:block text-[#3ab54a] text-xs font-bold tracking-[0.3em] uppercase mb-6",style:{fontFamily:"'Inter', sans-serif"},children:n?.hero_eyebrow||"SiriusXM Urban View · Channel 126"}),c.jsxs("h1",{className:"text-[4.75rem] sm:text-[4.5rem] lg:text-[6rem] xl:text-[9rem] font-bold uppercase leading-[0.9] tracking-tighter text-white mt-1",style:{fontFamily:"'Oswald', sans-serif"},children:["Urban View",c.jsx("br",{}),c.jsx("span",{className:"text-[#3ab54a]",children:"Gives."})]}),c.jsx("p",{className:"text-white/60 text-lg md:text-xl max-w-xl mt-8 leading-relaxed",style:{fontFamily:"'Inter', sans-serif"},children:n?.hero_subtext||"Every month, we shine a light on a nonprofit doing powerful work in the community — and we ask our listeners to show up for them."}),c.jsxs("div",{className:"flex flex-wrap gap-4 mt-10",children:[!t&&e&&c.jsxs("a",{href:"#featured",className:"bg-[#3ab54a] hover:bg-[#2ea040] text-white font-bold tracking-[0.12em] uppercase text-xs md:text-sm px-5 py-3 md:px-8 md:py-4 rounded-full transition-colors flex items-center gap-2",style:{fontFamily:"'Inter', sans-serif"},onClick:M=>{M.preventDefault(),document.getElementById("featured")?.scrollIntoView({behavior:"smooth"})},children:["Org of the Month ",c.jsx(ii,{className:"w-4 h-4"})]}),c.jsxs(Xn,{href:"/archive",className:"border border-white/30 hover:border-white text-white font-bold tracking-[0.12em] uppercase text-xs md:text-sm px-5 py-3 md:px-8 md:py-4 rounded-full transition-colors flex items-center gap-2",style:{fontFamily:"'Inter', sans-serif"},children:["See All Organizations ",c.jsx(ii,{className:"w-4 h-4"})]})]})]})}),c.jsx(mU,{src:n?.hero_audio_url??""}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 bg-[#3ab54a] overflow-hidden flex items-center",style:{height:52},children:c.jsx("div",{className:"flex items-center whitespace-nowrap animate-marquee-ticker",children:Array.from({length:12}).map((M,V)=>c.jsx("span",{className:"text-black text-base uppercase tracking-[0.02em] mx-6 shrink-0",style:{fontFamily:"'Oswald', sans-serif",fontWeight:300},children:n?.ticker_text||lU},V))})})]}),c.jsx("section",{className:"bg-white overflow-hidden",children:c.jsx("div",{className:"mx-auto max-w-[1600px] px-4 md:px-8 py-12 md:py-16",children:c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4",children:[{prefix:"",value:Number(n?.stats_year_founded??2024),suffix:"",label:"Year Founded",noAnimate:!0},{prefix:"",value:Number(n?.stats_orgs_featured??27),suffix:"",label:"Organizations Featured",noAnimate:!0},{prefix:"$",value:Number((n?.stats_dollars_directed??"250").replace(/[^0-9.]/g,"")),suffix:"k+",label:"Directed to Nonprofits",noAnimate:!1},{prefix:"",value:Number(n?.stats_years_running??3),suffix:"",label:"Years Running",noAnimate:!1}].map((M,V)=>c.jsx("div",{className:"bg-white",children:c.jsx(dU,{...M,delay:V*.15})},M.label))})})}),c.jsx("section",{id:"featured",ref:N,className:`bg-[#1a1a1a] text-white pt-8 md:pt-20 lg:pt-40 pb-20 md:pb-24 lg:pb-52 px-10 md:px-6 ${S?"xl:sticky":"xl:static"} xl:top-[var(--header-height,80px)] z-[1] rounded-b-[2rem] overflow-hidden`,children:c.jsx("div",{className:"container mx-auto max-w-6xl",children:t?c.jsxs("div",{className:"flex flex-col gap-6 animate-pulse",children:[c.jsx("div",{className:"h-4 bg-white/10 rounded w-48"}),c.jsx("div",{className:"h-24 bg-white/10 rounded w-3/4"}),c.jsx("div",{className:"h-6 bg-white/10 rounded w-full max-w-2xl"}),c.jsx("div",{className:"h-6 bg-white/10 rounded w-4/5 max-w-2xl"})]}):e?c.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-[minmax(340px,1fr)_minmax(0,3fr)] ga
23p-12 xl:gap-20 items-start",children:[c.jsx("div",{className:"relative min-w-0",children:c.jsxs("div",{children:[c.jsx(YN,{className:"w-6 h-6 text-[#3ab54a] mb-3 xl:mb-0 xl:absolute xl:left-0 xl:-top-9"}),c.jsxs("p",{className:"text-white text-2xl md:text-5xl font-bold uppercase leading-tight mb-1 whitespace-nowrap",style:{fontFamily:"'Oswald', sans-serif",letterSpacing:"0.02em"},children:[ox[(e.month??1)-1]," '",String(e.year??"").slice(-2)]}),e.dateRange&&c.jsx("p",{className:"text-white/40 text-sm font-medium",style:{fontFamily:"'Inter', sans-serif"},children:e.dateRange})]})}),c.jsxs("div",{className:"min-w-0 flex flex-col gap-4 md:gap-6 xl:gap-8",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-white text-xl md:text-2xl font-normal tracking-normal pb-3 md:pb-4",style:{fontFamily:"'Inter', sans-serif"},children:"Organization of the Month"}),c.jsx("div",{className:"border-b border-white/20"})]}),c.jsx(hn.h2,{initial:{opacity:0,y:24},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"text-[clamp(2rem,7vw,6rem)] font-bold uppercase leading-[0.9] tracking-tight text-white",style:{fontFamily:"'Oswald', sans-serif"},children:e.name}),e.imageUrl&&c.jsx("div",{className:"w-full aspect-[16/7] overflow-hidden rounded-lg bg-black/40",children:c.jsx("img",{src:e.imageUrl,alt:e.name,className:"w-full h-full object-cover object-center"})}),c.jsx("p",{className:"text-white/75 text-base md:text-2xl leading-relaxed max-w-3xl",style:{fontFamily:"'Inter', sans-serif"},children:e.shortDescription}),e.fullDescription&&c.jsx("div",{className:"text-white/55 text-base leading-relaxed max-w-3xl whitespace-pre-wrap",style:{fontFamily:"'Inter', sans-serif"},dangerouslySetInnerHTML:{__html:e.fullDescription}}),c.jsxs("div",{className:"flex flex-col sm:flex-row flex-wrap gap-3 items-start",children:[e.donateUrl&&c.jsxs("a",{href:e.donateUrl,target:"_blank",rel:"noopener noreferrer","aria-label":`Give today to ${e.name}`,className:"bg-[#3ab54a] hover:bg-[#2ea040] text-white font-bold tracking-[0.12em] uppercase text-xs md:text-sm px-5 py-3 md:px-8 md:py-4 rounded-full transition-colors flex items-center gap-2",style:{fontFamily:"'Inter', sans-serif"},children:["Give Today ",c.jsx(Nc,{className:"w-4 h-4"})]}),e.learnMoreUrl&&c.jsx("a",{href:e.learnMoreUrl,target:"_blank",rel:"noopener noreferrer","aria-label":`Learn more about ${e.name}`,className:"border border-white/25 hover:border-white/60 text-white/70 hover:text-white font-bold tracking-[0.12em] uppercase text-xs md:text-sm px-5 py-3 md:px-8 md:py-4 rounded-full transition-colors",style:{fontFamily:"'Inter', sans-serif"},children:"Learn More"}),e.audioEmbedUrl&&c.jsx("button",{onClick:()=>f(M=>!M),className:`flex items-center gap-2 font-bold tracking-[0.12em] uppercase text-xs md:text-sm px-5 py-3 md:px-8 md:py-4 rounded-full border transition-colors ${u?"bg-white/10 border-white/20 text-white":"border-white/25 hover:border-white/60 text-white/70 hover:text-white"}`,style:{fontFamily:"'Inter', sans-serif"},children:u?c.jsxs(c.Fragment,{children:[c.jsx(Ks,{className:"w-4 h-4"})," Close"]}):c.jsxs(c.Fragment,{children:[c.jsx(xo,{className:"w-4 h-4",fill:"currentColor"})," Listen"]})})]}),c.jsx(Mo,{children:e.audioEmbedUrl&&u&&c.jsx(hn.div,{initial:{opacity:0,y:-6,scaleY:.95},animate:{opacity:1,y:0,scaleY:1},exit:{opacity:0,y:-6,scaleY:.95},transition:{duration:.2,ease:"easeOut"},style:{transformOrigin:"top"},children:c.jsx(QE,{src:e.audioEmbedUrl,autoPlay:!0,onClose:()=>f(!1)})},"featured-player")})]})]}):c.jsx("div",{className:"text-center py-16",children:c.jsx("p",{className:"text-white/40 text-lg",style:{fontFamily:"'Inter', sans-serif"},children:"No organization is currently featured. Check back soon."})})})}),C.length>0&&E&&c.jsx("section",{id:"radio",className:"bg-[#0a0a0a] pt-10 md:pt-14 pb-14 px-10 md:px-6 relative z-10 overflow-hidden",children:c.jsxs("div",{className:"container mx-auto max-w-6xl",children:[c.jsxs("div",{className:"flex items-end justify-between mb-8",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-[#3ab54a] text-[10px] font-bold uppercase tracking-[0.25em] mb-3",style:{fontFamily:"'Inter', sans-serif"},children:n?.radio_eyebrow||"Organization Spotlight"}),c.jsx("h2",{className:"text-4xl md:text-5xl font-bold text-white uppercase leading-none",style:{fontFamily:"'Oswald', sans-serif",letterSpacing:"0.02em"},children:n?.radio_heading||"From the Radio"})]}),(()=>{const M=n?.radio_link_text||"See the Archive",V=n?.radio_link_url||"/archive",D=V.startsWith("http"),F="group flex items-center gap-2 text-white font-bold text-sm hover:text-[#3ab54a] transition-colors shrink-0";return D?c.jsxs("a",{href:V,target:"_blank",rel:"noopener noreferrer",className:F,children:[M," ",c.jsx(ii,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]}):c.jsxs(Xn,{href:V,className:F,children:[M," ",c.jsx(ii,{className:"w-4 h-4 group-hover:translate-x-1 transition-transform"})]})})()]}),c.jsx(fU,{org:E,hasPrev:_>0,hasNext:_<C.length-1,onPrev:()=>{x(0),w(!0),l(M=>Math.max(0,M-1))},onNext:O,playlistOpen:p,onTogglePlaylist:()=>h(M=>!M),tracklistOrgs:R,onSelectOrg:M=>{x(0),w(!0),l(C.indexOf(M))},currentTime:g,onCurrentTimeChange:x,autoPlay:b})]})}),c.jsx("section",{className:"bg-[#f2ede4] py-20 px-10 md:px-6 relative z-10 overflow-hidden",children:c.jsx("div",{className:"container mx-auto max-w-6xl",children:c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-[#3ab54a] text-xs font-bold tracking-[0.25em] uppercase mb-4",style:{fontFamily:"'Inter', sans-serif"},children:"The Initiative"}),c.jsxs("h2",{className:"text-4xl md:text-5xl font-bold uppercase text-[#0a0a0a]",style:{fontFamily:"'Oswald', sans-serif",lineHeight:1.1},children:["Talk That Empowers —",c.jsx("br",{}),"And Becomes Action."]})]}),c.jsxs("div",{className:"flex flex-col gap-6",children:[c.jsx("p",{className:"text-[#0a0a0a]/65 text-lg leading-relaxed",style:{fontFamily:"'Inter', sans-serif"}
23,children:"Urban View Gives is our commitment to turning powerful conversations into real-world support for the nonprofits and community organizations fighting on the front lines."}),c.jsxs(Xn,{href:"/about",className:"text-[#3ab54a] font-bold text-sm tracking-[0.15em] uppercase flex items-center gap-2 hover:gap-3 transition-all",style:{fontFamily:"'Inter', sans-serif"},children:["About the Initiative ",c.jsx(ii,{className:"w-4 h-4"})]})]})]})})})]})}function wU(e){return/\.(mp3|wav|m4a|ogg|aac)(\?|$)/i.test(e)}function SU({src:e}){const t=v.useRef(null),[n,r]=v.useState(!1),[a,l]=v.useState(0),[u,f]=v.useState(0),[p,h]=v.useState(1),g=v.useRef(null),x=v.useRef(!1),b=E=>{const R=Math.floor(E/60),O=Math.floor(E%60);return`${R}:${O.toString().padStart(2,"0")}`},w=()=>{const E=t.current;E&&(n?(E.pause(),r(!1)):(E.play(),r(!0)))},N=E=>{const R=t.current;R&&(R.currentTime=Math.max(0,Math.min(u,R.currentTime+E)))},S=E=>{const R=t.current;if(!R||!u)return;const O=E.currentTarget.getBoundingClientRect();R.currentTime=(E.clientX-O.left)/O.width*u},j=E=>{const R=g.current;if(!R)return;const O=R.getBoundingClientRect(),M=Math.max(0,Math.min(1,(E-O.left)/O.width));h(M),t.current&&(t.current.volume=M)},C=E=>{E.preventDefault(),x.current=!0,j(E.clientX);const R=M=>{x.current&&j(M.clientX)},O=()=>{x.current=!1,document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",O)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",O)},_=u?a/u*100:0;return e?wU(e)?c.jsxs("div",{className:"flex items-center gap-3 px-1 py-1 select-none",children:[c.jsx("audio",{ref:t,src:e,onTimeUpdate:E=>l(E.currentTarget.currentTime),onLoadedMetadata:E=>f(E.currentTarget.duration),onEnded:()=>r(!1)}),c.jsxs("button",{onClick:()=>N(-30),className:"flex flex-col items-center gap-0.5 text-white/40 hover:text-white transition-colors shrink-0",children:[c.jsx(QN,{className:"w-4 h-4"}),c.jsx("span",{className:"text-[8px] font-semibold leading-none",style:{fontFamily:"'Inter', sans-serif"},children:"30"})]}),c.jsx("button",{onClick:w,className:"w-10 h-10 rounded-full bg-[#3ab54a] hover:bg-[#45c455] flex items-center justify-center transition-colors shrink-0","aria-label":n?"Pause":"Play",children:n?c.jsx(ZN,{className:"w-4 h-4 text-white",fill:"currentColor"}):c.jsx(xo,{className:"w-4 h-4 text-white ml-0.5",fill:"currentColor"})}),c.jsxs("button",{onClick:()=>N(30),className:"flex flex-col items-center gap-0.5 text-white/40 hover:text-white transition-colors shrink-0",children:[c.jsx(WN,{className:"w-4 h-4"}),c.jsx("span",{className:"text-[8px] font-semibold leading-none",style:{fontFamily:"'Inter', sans-serif"},children:"30"})]}),c.jsx("span",{className:"text-[10px] text-white/40 font-mono tabular-nums shrink-0",children:b(a)}),c.jsxs("div",{className:"flex-1 h-[5px] bg-white/15 rounded-full cursor-pointer relative min-w-0",onClick:S,children:[c.jsx("div",{className:"absolute left-0 top-0 h-full bg-white/70 rounded-full pointer-events-none",style:{width:`${_}%`}}),c.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full shadow pointer-events-none",style:{left:`calc(${_}% - 6px)`}})]}),c.jsx("span",{className:"text-[10px] text-white/40 font-mono tabular-nums shrink-0",children:b(u)}),c.jsxs("div",{className:"flex items-center gap-1.5 shrink-0",children:[c.jsx(e2,{className:"w-3.5 h-3.5 text-white/30"}),c.jsxs("div",{ref:g,className:"w-16 h-[5px] bg-white/15 rounded-full cursor-pointer relative",onMouseDown:C,children:[c.jsx("div",{className:"absolute left-0 top-0 h-full bg-[#3ab54a] rounded-full pointer-events-none",style:{width:`${p*100}%`}}),c.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 w-3 h-3 bg-white rounded-full pointer-events-none",style:{left:`calc(${p*100}% - 6px)`}})]})]})]}):c.jsx("iframe",{src:e,className:"w-full border-0 rounded-xl",style:{height:152},allow:"autoplay; clipboard-write; encrypted-media; fullscreen; picture-in-picture"}):null}function jU(){const{data:e}=Of(),t=e?.about_audio_url??"",n=[{number:"01",heading:"Spotlight",body:"Each month we select one organization and dedicate our full platform to telling their story across SiriusXM Urban Vie
23w programming."},{number:"02",heading:"Amplify",body:"We interview their leaders, share their mission, and get our audience personally invested in the work they're doing on the ground."},{number:"03",heading:"Mobilize",body:"We direct our listeners straight to the organization's own donation page — no middlemen, no fees, no transactions on our end."}];return c.jsxs("div",{className:"flex flex-col w-full",children:[c.jsx("section",{className:"bg-[#0a0a0a] pt-20 pb-24 px-10 md:px-6",children:c.jsx("div",{className:"container mx-auto max-w-6xl",children:c.jsxs(hn.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.6},children:[c.jsx("p",{className:"text-[#3ab54a] text-xs font-bold tracking-[0.3em] uppercase mb-6",style:{fontFamily:"'Inter', sans-serif"},children:"The Initiative"}),c.jsx("h1",{className:"text-[clamp(3rem,10vw,8.5rem)] font-bold uppercase leading-[0.88] tracking-tight text-white max-w-5xl",style:{fontFamily:"'Oswald', sans-serif"},children:"Urban View Gives shines a light on those making a difference."})]})})}),c.jsx("section",{className:"bg-[#f2ede4] py-24 px-10 md:px-6",children:c.jsxs("div",{className:"container mx-auto max-w-4xl",children:[c.jsxs("p",{className:"text-[#0a0a0a]/80 text-xl md:text-2xl leading-relaxed font-medium mb-8",style:{fontFamily:"'Inter', sans-serif"},children:["At ",c.jsx("a",{href:"https://www.siriusxm.com/player/channel-linear/entity/fb5bc33e-a51e-d1dd-d547-3d80e0b8324c?intcmp=OTHER_NA_www%3Achannel%3ASiriusXM-Urban-View_LISTENLIVE_Content&visitorid=79870345767903411851276652304438116055&visitnumber=2&_branch_match_id=1578708373601311543&utm_source=SiriusXM%20Landing%20Page&utm_medium=.com&_branch_referrer=H4sIAAAAAAAAAyWMTQuCQBQAf03dUldd1wKJCKPoC7Ki27LWWo%2FyKW%2FXtlO%2FPaHTzFzmYW1rJr5vPrWn2tZ7AT59Ktz6vuxCXJRTQHut22x%2FXOYHuZtJ59wgml0fClG%2FeiuAoDOX7ehEpcLRGbSTm1VxzHeb1TmX8watRjt8gwGLXV1qysJ%2FNQS3TIxTEUQxF4kY92Qs5SwUScLDKIjjKGUsCTgffklXmgjwLktqnOkvhaoUwQ%2Fz5VTEwAAAAA%3D%3D",target:"_blank",rel:"noopener noreferrer",className:"underline decoration-[#3ab54a] underline-offset-2 hover:text-[#3ab54a] transition-colors",children:"SiriusXM Urban View"}),", Channel 126, we believe in the power of community, conversation, and action."]}),c.jsx("p",{className:"text-[#0a0a0a]/60 text-lg leading-relaxed mb-6",style:{fontFamily:"'Inter', sans-serif"},children:"Urban View Gives is our commitment to generosity — a monthly Giving Initiative that spotlights the incredible work of nonprofits, grassroots organizations, and community leaders who are on the front lines of creating positive change."}),c.jsx("p",{className:"text-[#0a0a0a]/60 text-lg leading-relaxed mb-6",style:{fontFamily:"'Inter', sans-serif"},children:"Every month, we select a different organization to feature across our programming. We tell their stories, interview their leaders, and encourage our listeners to support their vital work. This is about more than just awareness; it's about mobilizing our powerful audience to create tangible impact."}),c.jsx("p",{className:"text-[#0a0a0a]/60 text-lg leading-relaxed",style:{fontFamily:"'Inter', sans-serif"},children:"Whether it's supporting education, fighting for social justice, providing disaster relief, or uplifting marginalized voices, Urban View Gives is our way of saying: we see you, we support you, and we are standing with you."})]})}),c.jsx("section",{className:"bg-[#0a0a0a] py-20 px-10 md:px-6",children:c.jsxs("div",{className:"container mx-auto max-w-6xl",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-12",children:[c.jsx("div",{className:"w-8 h-px bg-[#3ab54a]"}),c.jsx("p",{className:"text-[#3ab54a] text-[10px] font-bold tracking-[0.3em] uppercase",style:{fontFamily:"'Inter', sans-serif"},children:"The Origin"}),c.jsx("div",{className:"flex-1 h-px bg-white/8"})]}),c.jsxs(hn.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},children:[c.jsxs("h2",{className:"text-4xl md:text-6xl font-bold uppercase text-white leading-tight mb-2",style:{fontFamily:"'Oswald', sans-serif"}
23,children:["How Urban View Gives Got ",c.jsx("span",{className:"text-[#3ab54a]",children:"Started"})]}),c.jsx("p",{className:"text-white/40 text-sm mb-8",style:{fontFamily:"'Inter', sans-serif"},children:"Karen Hunter · SiriusXM Urban View, Channel 126"}),t?c.jsx(SU,{src:t}):c.jsx("p",{className:"text-white/30 text-sm italic",style:{fontFamily:"'Inter', sans-serif"},children:"Audio coming soon — set a URL in the admin panel."})]})]})}),c.jsx("section",{className:"bg-white py-20 px-10 md:px-6",children:c.jsxs("div",{className:"container mx-auto max-w-6xl",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-14",children:[c.jsx("div",{className:"w-8 h-px bg-[#3ab54a]"}),c.jsx("p",{className:"text-[#3ab54a] text-[10px] font-bold tracking-[0.3em] uppercase",style:{fontFamily:"'Inter', sans-serif"},children:"How It Works"}),c.jsx("div",{className:"flex-1 h-px bg-black/10"})]}),c.jsx("div",{className:"divide-y divide-black/[0.08]",children:n.map((r,a)=>c.jsxs(hn.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.5,delay:a*.1},className:"group grid grid-cols-[3rem_1fr_2fr] md:grid-cols-[5rem_1fr_2fr] items-start gap-6 md:gap-12 py-8 md:py-10 px-6 -mx-6 hover:bg-black/[0.03] transition-colors",children:[c.jsx("span",{className:"text-4xl md:text-6xl font-bold leading-none tabular-nums text-transparent select-none pt-1",style:{fontFamily:"'Oswald', sans-serif",WebkitTextStroke:"1px rgba(0,0,0,0.15)"},children:r.number}),c.jsx("h3",{className:"text-2xl md:text-4xl font-bold uppercase text-[#0a0a0a] group-hover:text-[#3ab54a] transition-colors duration-300 pt-0.5",style:{fontFamily:"'Oswald', sans-serif"},children:r.heading}),c.jsx("p",{className:"text-black/50 text-sm md:text-base leading-relaxed",style:{fontFamily:"'Inter', sans-serif"},children:r.body})]},r.number))})]})}),c.jsx("section",{className:"bg-[#0a0a0a] py-20 px-10 md:px-6",children:c.jsx("div",{className:"container mx-auto max-w-4xl",children:c.jsxs("div",{className:"border-l-4 border-[#3ab54a] pl-8",children:[c.jsx("h3",{className:"text-3xl md:text-4xl font-bold uppercase text-white mb-4",style:{fontFamily:"'Oswald', sans-serif"},children:"Our Policy"}),c.jsxs("p",{className:"text-white/65 text-lg leading-relaxed",style:{fontFamily:"'Inter', sans-serif"},children:[c.jsx("span",{className:"text-white font-semibold",children:"Urban View Gives does not collect money."})," We act solely as a spotlight and a conduit. When you choose to give, you are directed straight to the organization's own website to make your donation securely and directly. We take no fees and process no transactions."]})]})})}),c.jsx("section",{className:"bg-[#3ab54a] py-16 px-10 md:px-6",children:c.jsxs("div",{className:"container mx-auto max-w-6xl flex flex-col md:flex-row items-center justify-between gap-6",children:[c.jsx("h2",{className:"text-3xl md:text-5xl font-bold uppercase text-black leading-tight",style:{fontFamily:"'Oswald', sans-serif"},children:"See Every Organization We've Featured"}),c.jsxs(Xn,{href:"/archive",className:"bg-black text-white font-bold tracking-[0.12em] uppercase text-sm px-8 py-4 rounded-full transition-colors hover:bg-black/80 flex items-center gap-2 whitespace-nowrap",style:{fontFamily:"'Inter', sans-serif"},children:["View Archive ",c.jsx(ii,{className:"w-4 h-4"})]})]})})]})}const NU=[{q:"What is Urban View Gives?",a:"Urban View Gives is a monthly spotlight initiative by SiriusXM Urban View (Channel 126) that highlights nonprofits and community organizations doing impactful work. Each month, we feature a new organization to raise awareness and encourage our listeners to support their mission."},{q:"Does Urban View collect the donations?",a:"No. Urban View Gives does not collect, process, or handle any donations. All 'Give' links on our site direct you straight to the featured organization's official donation page."},{q:"Are my donations tax-deductible?",a:"We only feature registered 501(c)(3) nonprofit organizations. Donations made directly to these organizations through their respective websites are typically tax-deductible to the extent allowed by law. Please verify with the specific organization and your tax advisor."},{q:"How are the organizations selected?",a:"Organizations are selected by the Urban Vie
23w editorial team based on their impact, community reach, and alignment with our audience's values. We look for groups making a tangible difference in areas like education, social justice, health, and community empowerment."},{q:"Can I suggest an organization for a future spotlight?",a:"Currently, we do not have an open submission process for organizations. Our team researches and selects the featured nonprofits internally. However, we are always paying attention to the groups our listeners care about."},{q:"Is there a minimum donation amount?",a:"Since donations go directly to the featured organizations, any minimums are set by them. Most organizations accept donations of any size. Every contribution, no matter how small, helps make a difference."},{q:"Where can I find past featured organizations?",a:"You can view all of our previously featured nonprofits in the Archive section of this website. We encourage you to continue supporting them even after their featured month has ended."}];function TU({q:e,a:t,index:n,open:r,onToggle:a}){return c.jsxs(hn.div,{initial:{opacity:0,y:16},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.4,delay:n*.05},className:"border-b border-black/[0.08] hover:bg-black/[0.03] transition-colors -mx-6 px-6",children:[c.jsxs("button",{onClick:a,className:"w-full flex items-start justify-between gap-6 py-7 text-left group",children:[c.jsx("span",{className:"text-[#0a0a0a] text-xl md:text-2xl font-bold leading-tight group-hover:text-[#3ab54a] transition-colors",style:{fontFamily:"'Inter', sans-serif"},children:e}),c.jsx("span",{className:"text-[#3ab54a] mt-1 shrink-0",children:r?c.jsx($3,{className:"w-5 h-5"}):c.jsx(yy,{className:"w-5 h-5"})})]}),c.jsx(Mo,{children:r&&c.jsx(hn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3},className:"overflow-hidden",children:c.jsx("p",{className:"text-black/50 text-base md:text-lg leading-relaxed pb-7 max-w-3xl",style:{fontFamily:"'Inter', sans-serif"},children:t})})})]})}function EU(){const[e,t]=v.useState(null),n=r=>t(a=>a===r?null:r);return c.jsxs("div",{className:"flex flex-col w-full",children:[c.jsx("section",{className:"bg-[#0a0a0a] pt-20 pb-20 px-10 md:px-6",children:c.jsxs("div",{className:"container mx-auto max-w-6xl",children:[c.jsx("p",{className:"text-[#3ab54a] text-xs font-bold tracking-[0.3em] uppercase mb-6",style:{fontFamily:"'Inter', sans-serif"},children:"Got questions?"}),c.jsxs("h1",{className:"text-[clamp(3.5rem,11vw,9rem)] font-bold uppercase leading-[0.88] tracking-tight text-white",style:{fontFamily:"'Oswald', sans-serif"},children:["Frequently",c.jsx("br",{}),"Asked",c.jsx("br",{}),c.jsx("span",{className:"text-[#3ab54a]",children:"Questions."})]})]})}),c.jsx("div",{className:"w-full h-1 bg-[#3ab54a]"}),c.jsx("section",{className:"bg-white py-16 px-10 md:px-6 flex-1",children:c.jsx("div",{className:"container mx-auto max-w-4xl",children:NU.map((r,a)=>c.jsx(TU,{q:r.q,a:r.a,index:a,open:e===a,onToggle:()=>n(a)},a))})}),c.jsx("section",{className:"bg-[#3ab54a] py-16 px-10 md:px-6",children:c.jsxs("div",{className:"container mx-auto max-w-6xl flex flex-col md:flex-row items-center justify-between gap-6",children:[c.jsx("h2",{className:"text-[#0a0a0a] uppercase font-bold leading-tight tracking-tight text-3xl md:text-4xl max-w-xl",style:{fontFamily:"'Oswald', sans-serif"},children:"Ready to see the full list of organizations we've spotlighted?"}),c.jsxs(Xn,{href:"/archive",className:"bg-[#0a0a0a] hover:bg-zinc-800 text-white font-bold tracking-[0.12em] uppercase text-sm px-8 py-4 rounded-full transition-colors flex items-center gap-2 whitespace-nowrap",style:{fontFamily:"'Inter', sans-serif"},children:["View Archive ",c.jsx(ii,{className:"w-4 h-4"})]})]})})]})}const CU=["January","February","March","April","May","June","July","August","September","October","November","December"];function _U(){const{data:e,isLoading:t}=Rf({archive:!0}),n=Object.fromEntries([...e??[]].sort((g,x)=>
23g.year!==x.year?(g.year??0)-(x.year??0):(g.month??0)-(x.month??0)).map((g,x)=>[g.id,x+1])),r=(e??[]).reduce((g,x)=>(g[x.year]||(g[x.year]=[]),g[x.year].push(x),g),{}),a=Object.keys(r).map(Number).sort((g,x)=>x-g),[l,u]=v.useState(()=>new Set(a)),f=new Set(a),p=g=>{u(x=>{const b=new Set(x);return b.has(g)?b.delete(g):b.add(g),b})},h=g=>l.has(g)||!l.size&&f.has(g);return c.jsxs("div",{className:"flex flex-col w-full min-h-screen",children:[c.jsx("section",{className:"bg-[#0a0a0a] pt-20 pb-16 px-10 md:px-6",children:c.jsxs("div",{className:"container mx-auto max-w-6xl",children:[c.jsx("p",{className:"text-[#3ab54a] text-xs font-bold tracking-[0.3em] uppercase mb-4",style:{fontFamily:"'Inter', sans-serif"},children:"Urban View Gives"}),c.jsx("h1",{className:"text-[clamp(4rem,12vw,10rem)] font-bold uppercase leading-[0.88] text-white tracking-tight",style:{fontFamily:"'Oswald', sans-serif"},children:"Archive"}),c.jsx("p",{className:"text-white/40 text-lg mt-6 max-w-xl",style:{fontFamily:"'Inter', sans-serif"},children:"Every organization we've spotlighted — with full details and direct links to give."})]})}),c.jsx("div",{className:"w-full h-1 bg-[#3ab54a]"}),c.jsxs("div",{className:"flex-1 bg-white",children:[t&&c.jsx("div",{className:"flex flex-col gap-4 container mx-auto max-w-6xl px-6 py-20 animate-pulse",children:[...Array(5)].map((g,x)=>c.jsx("div",{className:"h-24 bg-black/5 rounded"},x))}),!t&&e?.length===0&&c.jsx("div",{className:"flex items-center justify-center py-32 px-6",children:c.jsx("p",{className:"text-black/30 text-lg",style:{fontFamily:"'Inter', sans-serif"},children:"No archived organizations yet."})}),!t&&a.map(g=>{const x=h(g);return c.jsxs("div",{className:"flex flex-col w-full",children:[c.jsx("button",{onClick:()=>p(g),className:"w-full text-left bg-gray-100 border-y border-black/10 py-8 px-6 sticky top-[var(--header-height,80px)] z-30 hover:bg-gray-200/70 transition-colors",children:c.jsxs("div",{className:"container mx-auto max-w-6xl flex items-center gap-6",children:[c.jsx("h2",{className:"text-[clamp(3rem,9vw,7rem)] font-bold text-[#0a0a0a] leading-none tracking-tight",style:{fontFamily:"'Oswald', sans-serif"},children:g}),c.jsx("div",{className:"w-16 h-1 bg-[#3ab54a] shrink-0"}),c.jsxs("p",{className:"text-black/35 text-sm hidden sm:block flex-1",style:{fontFamily:"'Inter', sans-serif"},children:[r[g].length," organization",r[g].length!==1?"s":""," featured"]}),c.jsx(Sc,{className:"w-5 h-5 text-black/40 shrink-0 transition-transform duration-300",style:{transform:x?"rotate(180deg)":"rotate(0deg)"}})]})}),c.jsx(Mo,{initial:!1,children:x&&c.jsx(hn.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.3,ease:"easeInOut"},style:{overflow:"hidden"},children:r[g].map((b,w)=>c.jsx(hn.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.35,delay:w*.04},className:"border-b border-black/10 px-6 py-12 hover:bg-black/[0.03] transition-colors group",children:c.jsxs("div",{className:"container mx-auto max-w-6xl grid grid-cols-1 lg:grid-cols-12 gap-8 items-start",children:[c.jsx("div",{className:"hidden lg:flex lg:col-span-2 items-start pt-1",children:c.jsx("span",{className:"text-6xl font-bold leading-none select-none tabular-nums",style:{fontFamily:"'Oswald', sans-serif",color:"transparent",WebkitTextStroke:"1px rgba(0,0,0,0.15)"},children:String(n[b.id??-1]??0).padStart(2,"0")})}),c.jsxs("div",{className:"lg:col-span-2 flex flex-col gap-1 pt-1",children:[c.jsx("p",{className:"text-[#3ab54a] text-xs font-bold tracking-[0.2em] uppercase",style:{fontFamily:"'Inter', sans-serif"},children:CU[(b.month??1)-1]}),b.dateRange&&c.jsx("p",{className:"text-black/30 text-xs",style:{fontFamily:"'Inter', sans-serif"},children:b.dateRange})]}),c.jsxs("div",{className:"lg:col-span-5 flex flex-col gap-4",children:[c.jsx("h3",{className:"text-[clamp(1.8rem,4vw,3.5rem)] font-bold uppercase leading-tight text-[#0a0a0a] group-hover:text-[#3ab54a] transition-colors",style:{fontFamily:"'Oswald', sans-serif"},children:b.name}),c.jsx("p",{className:"text-black/55 text-base leading-relaxed max-w-2xl",style:{fontFamily:"'Inter', sans-serif"}
23,children:b.shortDescription}),b.totalRaised&&c.jsxs("p",{className:"text-[#3ab54a] text-sm font-bold tracking-wider uppercase",style:{fontFamily:"'Inter', sans-serif"},children:[b.totalRaised," raised"]})]}),c.jsxs("div",{className:"lg:col-span-3 flex flex-row lg:flex-col gap-3 lg:items-end",children:[b.donateUrl&&c.jsxs("a",{href:b.donateUrl,target:"_blank",rel:"noopener noreferrer","aria-label":`Give again to ${b.name}`,onClick:N=>N.stopPropagation(),className:"flex-1 lg:flex-none text-center bg-[#3ab54a] hover:bg-[#2ea040] text-white font-bold tracking-[0.12em] uppercase text-xs px-6 py-3 rounded-full transition-colors flex items-center justify-center gap-2",style:{fontFamily:"'Inter', sans-serif"},children:["Give Again ",c.jsx(Nc,{className:"w-3.5 h-3.5"})]}),b.learnMoreUrl&&c.jsx("a",{href:b.learnMoreUrl,target:"_blank",rel:"noopener noreferrer","aria-label":`Learn more about ${b.name}`,onClick:N=>N.stopPropagation(),className:"flex-1 lg:flex-none text-center border border-black/20 hover:border-black/50 text-black/50 hover:text-black font-bold tracking-[0.12em] uppercase text-xs px-6 py-3 rounded-full transition-colors",style:{fontFamily:"'Inter', sans-serif"},children:"Learn More"})]})]})},b.id))},"content")})]},g)}),c.jsx("div",{className:"py-20"})]})]})}function AU(){const[,e]=Co(),t=Tr(),[n,r]=v.useState(""),[a,l]=v.useState(""),u=VP(),f=p=>{p.preventDefault(),l(""),u.mutate({data:{password:n}},{onSuccess:()=>{t.setQueryData(GE(),{authenticated:!0}),e("/admin/dashboard")},onError:()=>l("Incorrect password. Please try again.")})};return c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-zinc-950 p-4",children:c.jsxs("form",{onSubmit:f,className:"w-[440px] max-w-full rounded-2xl border border-zinc-800 bg-zinc-900 p-8 shadow-2xl",children:[c.jsx("h1",{className:"text-center text-xl font-bold uppercase tracking-wide text-white",children:"Admin Login"}),c.jsx("p",{className:"mt-2 text-center text-sm text-zinc-400",children:"Enter the admin password to continue."}),a&&c.jsx("p",{className:"mt-6 rounded-lg border border-red-500/40 bg-red-950/30 px-3 py-2 text-sm text-red-300",children:a}),c.jsx("label",{className:"mt-6 block text-sm font-medium text-zinc-300",htmlFor:"admin-password",children:"Password"}),c.jsx("input",{id:"admin-password",name:"password",type:"password",autoComplete:"current-password",value:n,onChange:p=>r(p.target.value),className:"mt-2 w-full rounded-lg border border-zinc-700 bg-zinc-800 px-3 py-3 text-white outline-none focus:border-[#3ab54a]",required:!0,autoFocus:!0}),c.jsx("button",{type:"submit",disabled:u.isPending,className:"mt-6 w-full rounded-lg bg-[#3ab54a] px-4 py-3 font-semibold text-white transition-colors hover:bg-[#319d40] disabled:cursor-not-allowed disabled:opacity-60",children:u.isPending?"Signing in...":"Sign in"})]})})}const RU=[{label:"Dashboard",href:"/admin/dashboard",icon:V3},{label:"Current Org",href:"/admin/current-org",icon:ea},{label:"Add New Org",href:"/admin/add-org",icon:jc},{label:"Archive",href:"/admin/archive",icon:GN},{label:"Media Library",href:"/admin/media",icon:z3},{label:"Radio / Playlist",href:"/admin/radio",icon:Ad},{divider:!0},{label:"Navigation",href:"/admin/nav",icon:Z3},{label:"Hero & Play Button",href:"/admin/hero",icon:yD},{label:"Ticker",href:"/admin/ticker",icon:KN},{label:"Site Settings",href:"/admin/site-settings",icon:JN}];function Ln({children:e}){const[t,n]=Co(),{data:r,isLoading:a}=$P(),l=FP();if(v.useEffect(()=>{!a&&!r?.authenticated&&n("/admin")},[a,r,n]),a||!r?.authenticated)return c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-zinc-950",children:c.jsx(St,{className:"w-8 h-8 animate-spin text-[#3ab54a]"})});const u=()=>{l.mutate(void 0,{onSuccess:()=>n("/admin")})};return c.jsxs("div",{className:"min-h-screen flex bg-zinc-950 text-white font-sans",children:[c.jsxs("aside",{className:"w-56 flex-shrink-0 flex flex-col bg-zinc-900 border-r border-zinc-800",children:[c.jsxs("div",{className:"px-5 py-5 border-b border-zinc-800",children:[c.jsx("p",{className:"text-[10px] font-bold uppercase tracking-widest text-zinc-500 mb-1",children:"Admin Portal"}),c.jsx("p",{className:"text-sm font-bold text-white leading-tight",children:"Urban Vie
23w Gives"})]}),c.jsx("nav",{className:"flex-1 py-4 space-y-0.5 px-2",children:RU.map((f,p)=>{if("divider"in f)return c.jsx("div",{className:"my-2 mx-1 border-t border-zinc-800"},`divider-${p}`);const{label:h,href:g,icon:x}=f,b=t===g||g!=="/admin/dashboard"&&t.startsWith(g);return c.jsxs("button",{onClick:()=>n(g),className:`w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm transition-colors text-left ${b?"bg-[#3ab54a]/15 text-[#3ab54a] font-semibold":"text-zinc-400 hover:text-white hover:bg-zinc-800"}`,children:[c.jsx(x,{className:"w-4 h-4 flex-shrink-0"}),h]},g)})}),c.jsxs("div",{className:"p-3 border-t border-zinc-800 space-y-1",children:[c.jsxs("button",{onClick:()=>window.open("/","_blank"),className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-zinc-400 hover:text-white hover:bg-zinc-800 transition-colors",children:[c.jsx(Nc,{className:"w-4 h-4"})," View Site"]}),c.jsxs("button",{onClick:u,className:"w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm text-red-400 hover:text-red-300 hover:bg-red-950/30 transition-colors",children:[c.jsx(F3,{className:"w-4 h-4"})," Sign Out"]})]})]}),c.jsx("main",{className:"flex-1 overflow-y-auto bg-zinc-950",children:e})]})}const GS=["January","February","March","April","May","June","July","August","September","October","November","December"];function kU(){const[,e]=Co(),{data:t}=wP(),{data:n}=Dc(),r=[{label:"Add New Org",icon:jc,href:"/admin/add-org",color:"bg-[#3ab54a]/10 text-[#3ab54a] hover:bg-[#3ab54a]/20"},{label:"Edit Current Org",icon:ea,href:"/admin/current-org",color:"bg-blue-500/10 text-blue-400 hover:bg-blue-500/20"},{label:"View Archive",icon:GN,href:"/admin/archive",color:"bg-orange-500/10 text-orange-400 hover:bg-orange-500/20"},{label:"Site Settings",icon:JN,href:"/admin/site-settings",color:"bg-purple-500/10 text-purple-400 hover:bg-purple-500/20"}];return c.jsx(Ln,{children:c.jsxs("div",{className:"p-8 max-w-5xl mx-auto",children:[c.jsx("h1",{className:"text-3xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Dashboard"}),c.jsx("p",{className:"text-zinc-400 text-sm mb-8",children:"Manage all content for Urban View Gives"}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4 mb-8",children:[c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-5",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx(c3,{className:"w-5 h-5 text-[#3ab54a]"}),c.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-zinc-500",children:"Organizations"})]}),c.jsx("p",{className:"text-4xl font-bold",children:t?.totalOrganizations??"—"}),c.jsx("p",{className:"text-xs text-zinc-500 mt-1",children:"featured total"})]}),c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-5",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx(YN,{className:"w-5 h-5 text-[#3ab54a]"}),c.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-zinc-500",children:"Years Active"})]}),c.jsx("p",{className:"text-4xl font-bold",children:t?.totalYears??"—"}),c.jsx("p",{className:"text-xs text-zinc-500 mt-1",children:t?.yearsActive?.join(", ")})]}),c.jsxs("div",{className:`bg-zinc-900 border rounded-xl p-5 ${t?.hasCurrent?"border-[#3ab54a]/40":"border-red-500/40"}`,children:[c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx(ea,{className:`w-5 h-5 ${t?.hasCurrent?"text-[#3ab54a]":"text-red-400"}`}),c.jsx("span",{className:"text-xs font-bold uppercase tracking-widest text-zinc-500",children:"Current Month"})]}),c.jsx("p",{className:"text-xl font-bold",children:n?.name??(t?.hasCurrent===!1?"Not Set":"—")}),n&&c.jsxs("p",{className:"text-xs text-zinc-500 mt-1",children:[GS[n.month-1]," ",n.year," · ",n.dateRange]})]})]}),c.jsxs("div",{className:"mb-8",children:[c.jsxs("h2",{className:"text-xs font-bold uppercase tracking-widest text-zinc-500 mb-3 flex items-center gap-2",children:[c.jsx("span",{className:"text-[#3ab54a]",children:"↗"})," Quick Actions"]}),c.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-4 gap-3",children:r.map(({label:a,icon:l,href:u,color:f})=>c.jsxs("button",{onClick:()=>e(u),className:`flex flex-col items-center gap-2 p-5 rounded-xl border border-zinc-800 transition-all text-sm font-semibold ${f}`,children:[c.jsx(l,{className:"w-6 h-6"}),a]},u))})]}),n&&c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6",children:[c.jsxs("div",{className:"flex items-start justify-between mb-4",children:[c.jsxs("div",{children:[c.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-1",children:"Current Org of the Month"}),c.jsx("h3",{className:"text-2xl font-bold",children:n.name}),c.jsxs("p",{className:"text-zinc-400 text-sm mt-1",children:[GS[n.month-1]," ",n.year," · ",n.dateRange]})]}),c.jsx("button",{onClick:()=>e("/admin/current-org"),className:"px-4 py-2 bg-zinc-800 hover:bg-zinc-700 text-sm font-semibold rounded-lg transition-colors",children:"Edit"})]}),c.jsx("p",{className:"text-zinc-400 text-sm line-clamp-2",children:n.shortDescription}),c.jsxs("div",{className:"mt-4 flex flex-wrap gap-3 text-xs",children:[n.donateUrl&&c.jsx("span",{className:"bg-[#3ab54a]/10 text-[#3ab54a] px-3 py-1 rounded-full",children:"✓ Donate URL"}),n.audioEmbedUrl&&c.jsx("span",{className:"bg-blue-500/10 text-blue-400 px-3 py-1 rounded-full",children:"✓ Audio Segment"}),n.imageUrl&&c.jsx("span",{className:"bg-purple-500/10 text-purple-400 px-3 py-1 rounded-full",children:"✓ Image"}),n.learnMoreUrl&&c.jsx("span",{className:"bg-orange-500/10 text-orange-400 px-3 py-1 rounded-full",children:"✓ Learn More URL"})]})]})]})})}var zc=e=>e.type==="checkbox",Zi=e=>e instanceof Date,zn=e=>e==null;const WE=e=>typeof e=="object";var Pt=e=>!zn(e)&&!Array.isArray(e)&&WE(e)&&!Zi(e),JE=e=>Pt(e)&&e.target?zc(e.target)?e.target.checked:e.target.value:e,OU=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,eC=(e,t)=>e.has(OU(t)),DU=e=>{const t=e.constructor&&e.constructor.prototype;return Pt(t)&&t.hasOwnProperty("isPrototypeOf")},lx=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Mt(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(lx&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(Pt(e)&&DU(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const a in e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=Mt(e[a]));return r}var Df=e=>/^\w*$/.test(e),wt=e=>e===void 0,cx=e=>Array.isArray(e)?e.filter(Boolean):[],ux=e=>cx(e.replace(/["|']|\]/g,"").split(/\.|\[/)),pe=(e,t,n)=>{if(!t||!Pt(e))return n;const r=(Df(t)?[t]:ux(t)).reduce((a,l)=>zn(a)?a:a[l],e);return wt(r)||r===e?wt(e[t])?n:e[t]:r},Kn=e=>typeof e=="boolean",Nn=e=>typeof e=="function",lt=(e,t,n)=>{let r=-1;const a=Df(t)?[t]:ux(t),l=a.length,u=l-1;for(;++r<l;){const f=a[r];let p=n;if(r!==u){const h=e[f];p=Pt(h)||Array.isArray(h)?h:isNaN(+a[r+1])?{}:[]}if(f==="__proto__"||f==="constructor"||f==="prototype")return;e[f]=p,e=e[f]}};const Yd={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},js={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},yr={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},dx=me.createContext(null);dx.displayName="HookFormControlContext";const fx=()=>me.useContext(dx);var tC=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const l in e)Object.defineProperty(a,l,{get:()=>{const u=l;return t._proxyFormState[u]!==js.all&&(t._proxyFormState[u]=!r||js.all),n&&(n[u]=!0),e[u]}});return a};const hx=typeof window<"u"?me.useLayoutEffect:me.useEffect;function MU(e){const t=fx(),{control:n=t,disabled:r,name:a,exact:l}=e||{},[u,f]=me.useState(n._formState),p=me.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return hx(()=>n._subscribe({name:a,formState:p.current,exact:l,callback:h=>{!r&&f({...n._formState,...h})}}),[a,r,l]),me.useEffect(()=>{p.current.isValid&&n._setValid(!0)},[n]),me.useMemo(()=>tC(u,n,p.current,!1),[u,n])}var Qn=e=>typeof e=="string",Pg=(e,t,n,r,a)=>Qn(e)?(r&&t.watch.add(e),pe(n,e,a)):Array.isArray(e)?e.map(l=>(r&&t.watch.add(l),pe(n,l))):(r&&(t.watchAll=!0),n),Ug=e=>zn(e)||!WE(e);function Ns(e,t,n=new WeakSet){if(Ug(e)||Ug(t))return Object.is(e,t);if(Zi(e)&&Zi(t))return Object.is(e.getTime(),t.getTime());const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const l of r){const u=e[l];if(!a.includes(l))return!1;if(l!=="ref"){const f=t[l];if(Zi(u)&&Zi(f)||Pt(u)&&Pt(f)||Array.isArray(u)&&Array.isArray(f)?!Ns(u,f,n):!Object.is(u,f))return!1}}return!0}function zU(e){const t=fx(),{control:n=t,name:r,defaultValue:a,disabled:l,exact:u,compute:f}=e||{},p=me.useRef(a),h=me.useRef(f),g=me.useRef(void 0),x=me.useRef(n),b=me.useRef(r);h.current=f;const[w,N]=me.useState(()=>{const R=n._getWatch(r,p.current);return h.current?h.current(R):R}),S=me.useCallback(R=>{const O=Pg(r,n._names,R||n._formValues,!1,p.current);return h.current?h.current(O):O},[n._formValues,n._names,r]),j=me.useCallback(R=>
23{if(!l){const O=Pg(r,n._names,R||n._formValues,!1,p.current);if(h.current){const M=h.current(O);Ns(M,g.current)||(N(M),g.current=M)}else N(O)}},[n._formValues,n._names,l,r]);hx(()=>((x.current!==n||!Ns(b.current,r))&&(x.current=n,b.current=r,j()),n._subscribe({name:r,formState:{values:!0},exact:u,callback:R=>{j(R.values)}})),[n,u,r,j]),me.useEffect(()=>n._removeUnmounted());const C=x.current!==n,_=b.current,E=me.useMemo(()=>{if(l)return null;const R=!C&&!Ns(_,r);return C||R?S():null},[l,C,r,_,S]);return E!==null?E:w}function LU(e){const t=fx(),{name:n,disabled:r,control:a=t,shouldUnregister:l,defaultValue:u,exact:f=!0}=e,p=eC(a._names.array,n),h=me.useMemo(()=>pe(a._formValues,n,pe(a._defaultValues,n,u)),[a,n,u]),g=zU({control:a,name:n,defaultValue:h,exact:f}),x=MU({control:a,name:n,exact:f}),b=me.useRef(e),w=me.useRef(void 0),N=me.useRef(a.register(n,{...e.rules,value:g,...Kn(e.disabled)?{disabled:e.disabled}:{}}));b.current=e;const S=me.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]),j=me.useCallback(R=>N.current.onChange({target:{value:JE(R),name:n},type:Yd.CHANGE}),[n]),C=me.useCallback(()=>N.current.onBlur({target:{value:pe(a._formValues,n),name:n},type:Yd.BLUR}),[n,a._formValues]),_=me.useCallback(R=>{const O=pe(a._fields,n);O&&O._f&&R&&(O._f.ref={focus:()=>Nn(R.focus)&&R.focus(),select:()=>Nn(R.select)&&R.select(),setCustomValidity:M=>Nn(R.setCustomValidity)&&R.setCustomValidity(M),reportValidity:()=>Nn(R.reportValidity)&&R.reportValidity()})},[a._fields,n]),E=me.useMemo(()=>({name:n,value:g,...Kn(r)||x.disabled?{disabled:x.disabled||r}:{},onChange:j,onBlur:C,ref:_}),[n,r,x.disabled,j,C,_,g]);return me.useEffect(()=>{const R=a._options.shouldUnregister||l,O=w.current;O&&O!==n&&!p&&a.unregister(O),a.register(n,{...b.current.rules,...Kn(b.current.disabled)?{disabled:b.current.disabled}:{}});const M=(V,D)=>{const F=pe(a._fields,V);F&&F._f&&(F._f.mount=D)};if(M(n,!0),R){const V=Mt(pe(a._options.defaultValues,n,b.current.defaultValue));lt(a._defaultValues,n,V),wt(pe(a._formValues,n))&&lt(a._formValues,n,V)}return!p&&a.register(n),w.current=n,()=>{(p?R&&!a._state.action:R)?a.unregister(n):M(n,!1)}},[n,a,p,l]),me.useEffect(()=>{a._setDisabledField({disabled:r,name:n})},[r,n,a]),me.useMemo(()=>({field:E,formState:x,fieldState:S}),[E,x,S])}const VU=e=>e.render(LU(e)),mx=me.createContext(null);mx.displayName="HookFormContext";const PU=()=>me.useContext(mx),UU=e=>{const{children:t,watch:n,getValues:r,getFieldState:a,setError:l,clearErrors:u,setValue:f,trigger:p,formState:h,resetField:g,reset:x,handleSubmit:b,unregister:w,control:N,register:S,setFocus:j,subscribe:C}=e;return me.createElement(mx.Provider,{value:me.useMemo(()=>({watch:n,getValues:r,getFieldState:a,setError:l,clearErrors:u,setValue:f,trigger:p,formState:h,resetField:g,reset:x,handleSubmit:b,unregister:w,control:N,register:S,setFocus:j,subscribe:C}),[u,N,h,a,r,b,S,x,g,l,j,f,C,p,w,n])},me.createElement(dx.Provider,{value:N},t))};var nC=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},Wl=e=>Array.isArray(e)?e:[e],YS=()=>{let e=[];return{get observers(){return e},next:a=>{for(const l of e)l.next&&l.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(l=>l!==a)}}),unsubscribe:()=>{e=[]}}};function sC(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const a=e[r],l=t[r];if(a&&Pt(a)&&l){const u=sC(a,l);Pt(u)&&(n[r]=u)}else e[r]&&(n[r]=l)}return n}var Sn=e=>Pt(e)&&!Object.keys(e).length,px=e=>e.type==="file",Kd=e=>{if(!lx)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},rC=e=>e.type==="select-multiple",gx=e=>e.type==="radio",IU=e=>gx(e)||zc(e),Lp=e=>Kd(e)&&e.isConnected;function FU(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=wt(e)?r++:e[t[r++]];return e}function BU(e){for(const t in e)if(e.hasOwnProperty(t)&&!wt(e[t]))return!1;return!0}function zt(e,t){const n=Array.isArray(t)?t:Df(t)?[t]:ux(t),r=n.length===1?e:FU(e,n),a=n.length-1,l=n[a];return r&&delete r[l],a!==0&&(Pt(r)&&Sn(r)||Array.isArray(r)&&BU(r))&&zt(e,n.slice(0,-1)),e}var HU=e=>{for(const t in e)if(Nn(e[t]))return!0;return!1};function iC(e){return Array.isArray(e)||Pt(e)&&!HU(e)}function Ig(e,t={}){for(const n in e){const r=e[n];iC(r)?(t[n]=Array.isArray(r)?[]:{},Ig(r,t[n])):wt(r)||(t[n]=!0)}return t}function io(e,t,n){n||(n=Ig(t));for(const r in e){const a=e[r];if(iC(a))wt(t)||Ug(n[r])?n[r]=Ig(a,Array.isArray(a)?[]:{}):io(a,zn(t)?{}:t[r],n[r]);else{const l=t[r];n[r]=!Ns(a,l)}}return n}const KS={value:!1,isValid:!1},XS={value:!0,isValid:!0};var aC=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&&!wt(e[0].attributes.value)?wt(e[0].value)||e[0].value===""?XS:{value:e[0].value,isValid:!0}:XS:KS}return KS},oC=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>wt(e)?e:t?e===""?NaN:e&&+e:n&&Qn(e)?new Date(e):r?r(e):e;const ZS={isValid:!1,value:null};var lC=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ZS):ZS;function QS(e){const t=e.ref;return px(t)?t.files:gx(t)?lC(e.refs).value:rC(t)?[...t.selectedOptions].map(({value:n})=>n):zc(t)?aC(e.refs).value:oC(wt(t.value)?e.ref.value:t.value,e)}var qU=(e,t,n,r)=>{const a={};for(const l of e){const u=pe(t,l);u&&lt(a,l,u._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},Xd=e=>e instanceof RegExp,Il=e=>wt(e)?e:Xd(e)?e.source:Pt(e)?Xd(e.value)?e.value.source:e.value:e,WS=e=>({isOnSubmit:!e||e===js.onSubmit,isOnBlur:e===js.onBlur,isOnChange:e===js.onChange,isOnAll:e===js.all,isOnTouch:e===js.onTouched});const JS="AsyncFunction";var $U=e=>!!e&&!!e.validate&&!!(Nn(e.validate)&&e.validate.constructor.name===JS||Pt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===JS)),GU=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),ej=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const Jl=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const l=pe(e,a);if(l){const{_f:u,...f}=l;if(u){if(u.refs&&u.refs[0]&&t(u.refs[0],a)&&!r)return!0;
vendor: 4,201 bytes, line 23
23if(u.ref&&t(u.ref,u.name)&&!r)return!0;if(Jl(f,t))break}else if(Pt(f)&&Jl(f,t))break}}};function tj(e,t,n){const r=pe(e,n);if(r||Df(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const l=a.join("."),u=pe(t,l),f=pe(e,l);if(u&&!Array.isArray(u)&&n!==l)return{name:n};if(f&&f.type)return{name:l,error:f};if(f&&f.root&&f.root.type)return{name:`${l}.root`,error:f.root};a.pop()}return{name:n}}var YU=(e,t,n,r)=>{n(e);const{name:a,...l}=e;return Sn(l)||Object.keys(l).length>=Object.keys(t).length||Object.keys(l).find(u=>t[u]===(!r||js.all))},KU=(e,t,n)=>!e||!t||e===t||Wl(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),XU=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,ZU=(e,t)=>!cx(pe(e,t)).length&&zt(e,t),QU=(e,t,n)=>{const r=Wl(pe(e,n));return lt(r,"root",t[n]),lt(e,n,r),e};function nj(e,t,n="validate"){if(Qn(e)||Array.isArray(e)&&e.every(Qn)||Kn(e)&&!e)return{type:n,message:Qn(e)?e:"",ref:t}}var eo=e=>Pt(e)&&!Xd(e)?e:{value:e,message:""},sj=async(e,t,n,r,a,l)=>{const{ref:u,refs:f,required:p,maxLength:h,minLength:g,min:x,max:b,pattern:w,validate:N,name:S,valueAsNumber:j,mount:C}=e._f,_=pe(n,S);if(!C||t.has(S))return{};const E=f?f[0]:u,R=H=>{a&&E.reportValidity&&(E.setCustomValidity(Kn(H)?"":H||""),E.reportValidity())},O={},M=gx(u),V=zc(u),D=M||V,F=(j||px(u))&&wt(u.value)&&wt(_)||Kd(u)&&u.value===""||_===""||Array.isArray(_)&&!_.length,W=nC.bind(null,S,r,O),Q=(H,ne,te,oe=yr.maxLength,P=yr.minLength)=>{const Y=H?ne:te;O[S]={type:H?oe:P,message:Y,ref:u,...W(H?oe:P,Y)}};if(l?!Array.isArray(_)||!_.length:p&&(!D&&(F||zn(_))||Kn(_)&&!_||V&&!aC(f).isValid||M&&!lC(f).isValid)){const{value:H,message:ne}=Qn(p)?{value:!!p,message:p}:eo(p);if(H&&(O[S]={type:yr.required,message:ne,ref:E,...W(yr.required,ne)},!r))return R(ne),O}if(!F&&(!zn(x)||!zn(b))){let H,ne;const te=eo(b),oe=eo(x);if(!zn(_)&&!isNaN(_)){const P=u.valueAsNumber||_&&+_;zn(te.value)||(H=P>te.value),zn(oe.value)||(ne=P<oe.value)}else{const P=u.valueAsDate||new Date(_),Y=k=>new Date(new Date().toDateString()+" "+k),Z=u.type=="time",le=u.type=="week";Qn(te.value)&&_&&(H=Z?Y(_)>Y(te.value):le?_>te.value:P>new Date(te.value)),Qn(oe.value)&&_&&(ne=Z?Y(_)<Y(oe.value):le?_<oe.value:P<new Date(oe.value))}if((H||ne)&&(Q(!!H,te.message,oe.message,yr.max,yr.min),!r))return R(O[S].message),O}if((h||g)&&!F&&(Qn(_)||l&&Array.isArray(_))){const H=eo(h),ne=eo(g),te=!zn(H.value)&&_.length>+H.value,oe=!zn(ne.value)&&_.length<+ne.value;if((te||oe)&&(Q(te,H.message,ne.message),!r))return R(O[S].message),O}if(w&&!F&&Qn(_)){const{value:H,message:ne}=eo(w);if(Xd(H)&&!_.match(H)&&(O[S]={type:yr.pattern,message:ne,ref:u,...W(yr.pattern,ne)},!r))return R(ne),O}if(N){if(Nn(N)){const H=await N(_,n),ne=nj(H,E);if(ne&&(O[S]={...ne,...W(yr.validate,ne.message)},!r))return R(ne.message),O}else if(Pt(N)){let H={};for(const ne in N){if(!Sn(H)&&!r)break;const te=nj(await N[ne](_,n),E,ne);te&&(H={...te,...W(ne,te.message)},R(te.message),r&&(O[S]=H))}if(!Sn(H)&&(O[S]={ref:E,...H},!r))return O}}return R(!0),O};const WU={mode:js.onSubmit,reValidateMode:js.onChange,shouldFocusError:!0};function JU(e={}){let t={...WU,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Nn(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Pt(t.defaultValues)||Pt(t.values)?Mt(t.defaultValues||t.values)||{}:{},l=t.shouldUnregister?{}:Mt(a),u={action:!1,mount:!1,watch:!1,keepIsValid:!1},f={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,h=0;const g={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={...g};let b={...x};const w={array:YS(),state:YS()},N=t.criteriaMode===js.all,S=L=>q=>{clearTimeout(h),h=setTimeout(L,q)},j=async L=>{if(!u.keepIsValid&&!t.disabled&&(x.isValid||b.isValid||L)){let q;t.resolver?(q=Sn((await D()).errors),C()):q=await W(r,!0),q!==n.isValid&&w.state.next({isValid:q})}},C=(L,q)=>{!t.disabled&&(x.isValidating||x.validatingFields||b.isValidating||b.validatingFields)&&((L||Array.from(f.mount)).forEac
23h(ee=>{ee&&(q?lt(n.validatingFields,ee,q):zt(n.validatingFields,ee))}),w.state.next({validatingFields:n.validatingFields,isValidating:!Sn(n.validatingFields)}))},_=(L,q=[],ee,ge,he=!0,ue=!0)=>{if(ge&&ee&&!t.disabled){if(u.action=!0,ue&&Array.isArray(pe(r,L))){const ye=ee(pe(r,L),ge.argA,ge.argB);he&&lt(r,L,ye)}if(ue&&Array.isArray(pe(n.errors,L))){const ye=ee(pe(n.errors,L),ge.argA,ge.argB);he&&lt(n.errors,L,ye),ZU(n.errors,L)}if((x.touchedFields||b.touchedFields)&&ue&&Array.isArray(pe(n.touchedFields,L))){const ye=ee(pe(n.touchedFields,L),ge.argA,ge.argB);he&&lt(n.touchedFields,L,ye)}(x.dirtyFields||b.dirtyFields)&&(n.dirtyFields=io(a,l)),w.state.next({name:L,isDirty:H(L,q),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else lt(l,L,q)},E=(L,q)=>{lt(n.errors,L,q),w.state.next({errors:n.errors})},R=L=>{n.errors=L,w.state.next({errors:n.errors,isValid:!1})},O=(L,q,ee,ge)=>{const he=pe(r,L);if(he){const ue=pe(l,L,wt(ee)?pe(a,L):ee);wt(ue)||ge&&ge.defaultChecked||q?lt(l,L,q?ue:QS(he._f)):oe(L,ue),u.mount&&!u.action&&j()}},M=(L,q,ee,ge,he)=>{let ue=!1,ye=!1;const Ve={name:L};if(!t.disabled){if(!ee||ge){(x.isDirty||b.isDirty)&&(ye=n.isDirty,n.isDirty=Ve.isDirty=H(),ue=ye!==Ve.isDirty);const Me=Ns(pe(a,L),q);ye=!!pe(n.dirtyFields,L),Me?zt(n.dirtyFields,L):lt(n.dirtyFields,L,!0),Ve.dirtyFields=n.dirtyFields,ue=ue||(x.dirtyFields||b.dirtyFields)&&ye!==!Me}if(ee){const Me=pe(n.touchedFields,L);Me||(lt(n.touchedFields,L,ee),Ve.touchedFields=n.touchedFields,ue=ue||(x.touchedFields||b.touchedFields)&&Me!==ee)}ue&&he&&w.state.next(Ve)}return ue?Ve:{}},V=(L,q,ee,ge)=>{const he=pe(n.errors,L),ue=(x.isValid||b.isValid)&&Kn(q)&&n.isValid!==q;if(t.delayError&&ee?(p=S(()=>E(L,ee)),p(t.delayError)):(clearTimeout(h),p=null,ee?lt(n.errors,L,ee):zt(n.errors,L)),(ee?!Ns(he,ee):he)||!Sn(ge)||ue){const ye={...ge,...ue&&Kn(q)?{isValid:q}:{},errors:n.errors,name:L};n={...n,...ye},w.state.next(ye)}},D=async L=>(C(L,!0),await t.resolver(l,t.context,qU(L||f.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),F=async L=>{const{errors:q}=await D(L);if(C(L),L)for(const ee of L){const ge=pe(q,ee);ge?lt(n.errors,ee,ge):zt(n.errors,ee)}else n.errors=q;return q},W=async(L,q,ee={valid:!0})=>{for(const ge in L){const he=L[ge];if(he){const{_f:ue,...ye}=he;if(ue){const Ve=f.array.has(ue.name),Me=he._f&&$U(he._f);Me&&x.validatingFields&&C([ue.name],!0);const kt=await sj(he,f.disabled,l,N,t.shouldUseNativeValidation&&!q,Ve);if(Me&&x.validatingFields&&C([ue.name]),kt[ue.name]&&(ee.valid=!1,q||e.shouldUseNativeValidation))break;!q&&(pe(kt,ue.name)?Ve?QU(n.errors,kt,ue.name):lt(n.errors,ue.name,kt[ue.name]):zt(n.errors,ue.name))}!Sn(ye)&&await W(ye,q,ee)}}return ee.valid},Q=()=>{for(const L of f.unMount){const q=pe(r,L);q&&(q._f.refs?q._f.refs.every(ee=>!Lp(ee)):!Lp(q._f.ref))&&Te(L)}f.unMount=new Set},H=(L,q)=>!t.disabled&&(L&&q&&lt(l,L,q),!Ns(I(),a)),ne=(L,q,ee)=>Pg(L,f,{...u.mount?l:wt(q)?a:Qn(L)?{[L]:q}:q},ee,q),te=L=>cx(pe(u.mount?l:a,L,t.shouldUnregister?pe(a,L,[]):[])),oe=(L,q,ee={})=>{const ge=pe(r,L);let he=q;if(ge){const ue=ge._f;ue&&(!ue.disabled&&lt(l,L,oC(q,ue)),he=Kd(ue.ref)&&zn(q)?"":q,rC(ue.ref)?[...ue.ref.options].forEach(ye=>ye.selected=he.includes(ye.value)):ue.refs?zc(ue.ref)?ue.refs.forEach(ye=>{(!ye.defaultChecked||!ye.disabled)&&(Array.isArray(he)?ye.checked=!!he.find(Ve=>Ve===ye.value):ye.checked=he===ye.value||!!he)}):ue.refs.forEach(ye=>ye.checked=ye.value===he):px(ue.ref)?ue.ref.value="":(ue.ref.value=he,ue.ref.type||w.state.next({name:L,values:Mt(l)})))}(ee.shouldDirty||ee.shouldTouch)&&M(L,he,ee.shouldTouch,ee.shouldDirty,!0),ee.shouldValidate&&k(L)},P=(L,q,ee)=>{for(const ge in q){if(!q.hasOwnProperty(ge))return;const he=q[ge],ue=L+"."+ge,ye=pe(r,ue);(f.array.has(L)||Pt(he)||ye&&!ye._f)&&!Zi(he)?P(ue,he,ee):oe(ue,he,ee)}},Y=(L,q,ee={})=>{const ge=pe(r,L),he=f.array.has(L),ue=Mt(q);lt(l,L,ue),he?(w.array.next({name:L,values:Mt(l)}),(x.isDirty||x.dirtyFields||b.isDirty||b.dirtyFields)&&ee.shouldDirty&&w.state.next({name:L,dirtyFields:io(a,l),isDirty:H(L,ue)})):ge&&!ge._f&&!zn(ue)?P(L,ue,ee):oe(L,ue,ee),ej(L,f)?w.state.next({...n,name:L,values:Mt(l)}):w.state.next({name:u.mount?L:void 0,values:Mt(l)})},Z=async L=>{u.mount=!0;const q=L.target;let ee=q.name,ge=!0;const he=pe(r,ee),ue=Me=>{ge=Number.isNaN(Me)||Zi(Me)&&isNaN(Me.getTime())||Ns(Me,pe(l,ee,Me))},ye=WS(t.mode),Ve=WS(t.reValidateMode);if(he){let Me,kt;const Yt=q.type?QS(he._f):JE(L),Pn=L.type===Yd.BLUR||L.type===Yd.FOCUS_OUT,Cr=!GU(he._f)&&!t.resolver&&!pe(n.errors,ee)&&!he._f.deps||XU(Pn,pe(n.touchedFields,ee),n.isSubmitted,Ve,
23ye),Ms=ej(ee,f,Pn);lt(l,ee,Yt),Pn?(!q||!q.readOnly)&&(he._f.onBlur&&he._f.onBlur(L),p&&p(0)):he._f.onChange&&he._f.onChange(L);const gn=M(ee,Yt,Pn),Ws=!Sn(gn)||Ms;if(!Pn&&w.state.next({name:ee,type:L.type,values:Mt(l)}),Cr)return(x.isValid||b.isValid)&&(t.mode==="onBlur"?Pn&&j():Pn||j()),Ws&&w.state.next({name:ee,...Ms?{}:gn});if(!Pn&&Ms&&w.state.next({...n}),t.resolver){const{errors:zs}=await D([ee]);if(C([ee]),ue(Yt),ge){const pa=tj(n.errors,r,ee),Si=tj(zs,r,pa.name||ee);Me=Si.error,ee=Si.name,kt=Sn(zs)}}else C([ee],!0),Me=(await sj(he,f.disabled,l,N,t.shouldUseNativeValidation))[ee],C([ee]),ue(Yt),ge&&(Me?kt=!1:(x.isValid||b.isValid)&&(kt=await W(r,!0)));ge&&(he._f.deps&&(!Array.isArray(he._f.deps)||he._f.deps.length>0)&&k(he._f.deps),V(ee,kt,Me,gn))}},le=(L,q)=>{if(pe(n.errors,q)&&L.focus)return L.focus(),1},k=async(L,q={})=>{let ee,ge;const he=Wl(L);if(t.resolver){const ue=await F(wt(L)?L:he);ee=Sn(ue),ge=L?!he.some(ye=>pe(ue,ye)):ee}else L?(ge=(await Promise.all(he.map(async ue=>{const ye=pe(r,ue);return await W(ye&&ye._f?{[ue]:ye}:ye)}))).every(Boolean),!(!ge&&!n.isValid)&&j()):ge=ee=await W(r);return w.state.next({...!Qn(L)||(x.isValid||b.isValid)&&ee!==n.isValid?{}:{name:L},...t.resolver||!L?{isValid:ee}:{},errors:n.errors}),q.shouldFocus&&!ge&&Jl(r,le,L?he:f.mount),ge},I=(L,q)=>{let ee={...u.mount?l:a};return q&&(ee=sC(q.dirtyFields?n.dirtyFields:n.touchedFields,ee)),wt(L)?ee:Qn(L)?pe(ee,L):L.map(ge=>pe(ee,ge))},J=(L,q)=>({invalid:!!pe((q||n).errors,L),isDirty:!!pe((q||n).dirtyFields,L),error:pe((q||n).errors,L),isValidating:!!pe(n.validatingFields,L),isTouched:!!pe((q||n).touchedFields,L)}),se=L=>{const q=L?Wl(L):void 0;q?.forEach(ee=>zt(n.errors,ee)),q?q.forEach(ee=>{w.state.next({name:ee,errors:n.errors})}):w.state.next({errors:{}})},ce=(L,q,ee)=>{const ge=(pe(r,L,{_f:{}})._f||{}).ref,he=pe(n.errors,L)||{},{ref:ue,message:ye,type:Ve,...Me}=he;lt(n.errors,L,{...Me,...q,ref:ge}),w.state.next({name:L,errors:n.errors,isValid:!1}),ee&&ee.shouldFocus&&ge&&ge.focus&&ge.focus()},ve=(L,q)=>Nn(L)?w.state.subscribe({next:ee=>"values"in ee&&L(ne(void 0,q),ee)}):ne(L,q,!0),de=L=>w.state.subscribe({next:q=>{KU(L.name,q.name,L.exact)&&YU(q,L.formState||x,ma,L.reRenderRoot)&&L.callback({values:{...l},...n,...q,defaultValues:a})}}).unsubscribe,xe=L=>(u.mount=!0,b={...b,...L.formState},de({...L,formState:{...g,...L.formState}})),Te=(L,q={})=>{for(const ee of L?Wl(L):f.mount)f.mount.delete(ee),f.array.delete(ee),q.keepValue||(zt(r,ee),zt(l,ee)),!q.keepError&&zt(n.errors,ee),!q.keepDirty&&zt(n.dirtyFields,ee),!q.keepTouched&&zt(n.touchedFields,ee),!q.keepIsValidating&&zt(n.validatingFields,ee),!t.shouldUnregister&&!q.keepDefaultValue&&zt(a,ee);w.state.next({values:Mt(l)}),w.state.next({...n,...q.keepDirty?{isDirty:H()}:{}}),!q.keepIsValid&&j()},Re=({disabled:L,name:q})=>{if(Kn(L)&&u.mount||L||f.disabled.has(q)){const he=f.disabled.has(q)!==!!L;L?f.disabled.add(q):f.disabled.delete(q),he&&u.mount&&!u.action&&j()}},we=(L,q={})=>{let ee=pe(r,L);const ge=Kn(q.disabled)||Kn(t.disabled);return lt(r,L,{...ee||{},_f:{...ee&&ee._f?ee._f:{ref:{name:L}},name:L,mount:!0,...q}}),f.mount.add(L),ee?Re({disabled:Kn(q.disabled)?q.disabled:t.disabled,name:L}):O(L,!0,q.value),{...ge?{disabled:q.disabled||t.disabled}:{},...t.progressive?{required:!!q.required,min:Il(q.min),max:Il(q.max),minLength:Il(q.minLength),maxLength:Il(q.maxLength),pattern:Il(q.pattern)}:{},name:L,onChange:Z,onBlur:Z,ref:he=>{if(he){we(L,q),ee=pe(r,L);const ue=wt(he.value)&&he.querySelectorAll&&he.querySelectorAll("input,select,textarea")[0]||he,ye=IU(ue),Ve=ee._f.refs||[];if(ye?Ve.find(Me=>Me===ue):ue===ee._f.ref)return;lt(r,L,{_f:{...ee._f,...ye?{refs:[...Ve.filter(Lp),ue,...Array.isArray(pe(a,L))?[{}]:[]],ref:{type:ue.type,name:L}}:{ref:ue}}}),O(L,!1,void 0,ue)}else ee=pe(r,L,{}),ee._f&&(ee._f.mount=!1),(t.shouldUnregister||q.shouldUnregister)&&!(eC(f.array,L)&&u.action)&&f.unMount.add(L)}}},Pe=()=>t.shouldFocusError&&Jl(r,le,f.mount),Be=L=>{Kn(L)&&(w.state.next({disabled:L}),Jl(r,(q,ee)=>{const ge=pe(r,ee);ge&&(q.disabled=ge._f.disabled||L,Array.isArray(ge._f.refs)&&ge._f.refs.forEac
vendor: 4,357 bytes, line 23
23h(he=>{he.disabled=ge._f.disabled||L}))},0,!1))},it=(L,q)=>async ee=>{let ge;ee&&(ee.preventDefault&&ee.preventDefault(),ee.persist&&ee.persist());let he=Mt(l);if(w.state.next({isSubmitting:!0}),t.resolver){const{errors:ue,values:ye}=await D();C(),n.errors=ue,he=Mt(ye)}else await W(r);if(f.disabled.size)for(const ue of f.disabled)zt(he,ue);if(zt(n.errors,"root"),Sn(n.errors)){w.state.next({errors:{}});try{await L(he,ee)}catch(ue){ge=ue}}else q&&await q({...n.errors},ee),Pe(),setTimeout(Pe);if(w.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Sn(n.errors)&&!ge,submitCount:n.submitCount+1,errors:n.errors}),ge)throw ge},ct=(L,q={})=>{pe(r,L)&&(wt(q.defaultValue)?Y(L,Mt(pe(a,L))):(Y(L,q.defaultValue),lt(a,L,Mt(q.defaultValue))),q.keepTouched||zt(n.touchedFields,L),q.keepDirty||(zt(n.dirtyFields,L),n.isDirty=q.defaultValue?H(L,Mt(pe(a,L))):H()),q.keepError||(zt(n.errors,L),x.isValid&&j()),w.state.next({...n}))},mn=(L,q={})=>{const ee=L?Mt(L):a,ge=Mt(ee),he=Sn(L),ue=he?a:ge;if(q.keepDefaultValues||(a=ee),!q.keepValues){if(q.keepDirtyValues){const ye=new Set([...f.mount,...Object.keys(io(a,l))]);for(const Ve of Array.from(ye)){const Me=pe(n.dirtyFields,Ve),kt=pe(l,Ve),Yt=pe(ue,Ve);Me&&!wt(kt)?lt(ue,Ve,kt):!Me&&!wt(Yt)&&Y(Ve,Yt)}}else{if(lx&&wt(L))for(const ye of f.mount){const Ve=pe(r,ye);if(Ve&&Ve._f){const Me=Array.isArray(Ve._f.refs)?Ve._f.refs[0]:Ve._f.ref;if(Kd(Me)){const kt=Me.closest("form");if(kt){kt.reset();break}}}}if(q.keepFieldsRef)for(const ye of f.mount)Y(ye,pe(ue,ye));else r={}}l=t.shouldUnregister?q.keepDefaultValues?Mt(a):{}:Mt(ue),w.array.next({values:{...ue}}),w.state.next({values:{...ue}})}f={mount:q.keepDirtyValues?f.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},u.mount=!x.isValid||!!q.keepIsValid||!!q.keepDirtyValues||!t.shouldUnregister&&!Sn(ue),u.watch=!!t.shouldUnregister,u.keepIsValid=!!q.keepIsValid,u.action=!1,q.keepErrors||(n.errors={}),w.state.next({submitCount:q.keepSubmitCount?n.submitCount:0,isDirty:he?!1:q.keepDirty?n.isDirty:!!(q.keepDefaultValues&&!Ns(L,a)),isSubmitted:q.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:he?{}:q.keepDirtyValues?q.keepDefaultValues&&l?io(a,l):n.dirtyFields:q.keepDefaultValues&&L?io(a,L):q.keepDirty?n.dirtyFields:{},touchedFields:q.keepTouched?n.touchedFields:{},errors:q.keepErrors?n.errors:{},isSubmitSuccessful:q.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:a})},pn=(L,q)=>mn(Nn(L)?L(l):L,{...t.resetOptions,...q}),Ut=(L,q={})=>{const ee=pe(r,L),ge=ee&&ee._f;if(ge){const he=ge.refs?ge.refs[0]:ge.ref;he.focus&&setTimeout(()=>{he.focus(),q.shouldSelect&&Nn(he.select)&&he.select()})}},ma=L=>{n={...n,...L}},_n={control:{register:we,unregister:Te,getFieldState:J,handleSubmit:it,setError:ce,_subscribe:de,_runSchema:D,_updateIsValidating:C,_focusError:Pe,_getWatch:ne,_getDirty:H,_setValid:j,_setFieldArray:_,_setDisabledField:Re,_setErrors:R,_getFieldArray:te,_reset:mn,_resetDefaultValues:()=>Nn(t.defaultValues)&&t.defaultValues().then(L=>{pn(L,t.resetOptions),w.state.next({isLoading:!1})}),_removeUnmounted:Q,_disableForm:Be,_subjects:w,_proxyFormState:x,get _fields(){return r},get _formValues(){return l},get _state(){return u},set _state(L){u=L},get _defaultValues(){return a},get _names(){return f},set _names(L){f=L},get _formState(){return n},get _options(){return t},set _options(L){t={...t,...L}}},subscribe:xe,trigger:k,register:we,handleSubmit:it,watch:ve,setValue:Y,getValues:I,reset:pn,resetField:ct,clearErrors:se,unregister:Te,setError:ce,setFocus:Ut,getFieldState:J};return{..._n,formControl:_n}}function yx(e={}){const t=me.useRef(void 0),n=me.useRef(void 0),[r,a]=me.useState({isDirty:!1,isValidating:!1,isLoading:Nn(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Nn(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Nn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:u,...f}=JU(e);t.current={...f,formState:r}}const l=t.current.control;return l._options=e,hx(()=>{const u=l._subscribe({formState:l._proxyFormState,callback:()=>a({...l._formState}
23),reRenderRoot:!0});return a(f=>({...f,isReady:!0})),l._formState.isReady=!0,u},[l]),me.useEffect(()=>l._disableForm(e.disabled),[l,e.disabled]),me.useEffect(()=>{e.mode&&(l._options.mode=e.mode),e.reValidateMode&&(l._options.reValidateMode=e.reValidateMode)},[l,e.mode,e.reValidateMode]),me.useEffect(()=>{e.errors&&(l._setErrors(e.errors),l._focusError())},[l,e.errors]),me.useEffect(()=>{e.shouldUnregister&&l._subjects.state.next({values:l._getWatch()})},[l,e.shouldUnregister]),me.useEffect(()=>{if(l._proxyFormState.isDirty){const u=l._getDirty();u!==r.isDirty&&l._subjects.state.next({isDirty:u})}},[l,r.isDirty]),me.useEffect(()=>{var u;e.values&&!Ns(e.values,n.current)?(l._reset(e.values,{keepFieldsRef:!0,...l._options.resetOptions}),!((u=l._options.resetOptions)===null||u===void 0)&&u.keepIsValid||l._setValid(),n.current=e.values,a(f=>({...f}))):l._resetDefaultValues()},[l,e.values]),me.useEffect(()=>{l._state.mount||(l._setValid(),l._state.mount=!0),l._state.watch&&(l._state.watch=!1,l._subjects.state.next({...l._formState})),l._removeUnmounted()}),t.current.formState=me.useMemo(()=>tC(r,l),[l,r]),t.current}const rj=(e,t,n)=>{if(e&&"reportValidity"in e){const r=pe(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},cC=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?rj(r.ref,n,e):r.refs&&r.refs.forEach(a=>rj(a,n,e))}},e7=(e,t)=>{t.shouldUseNativeValidation&&cC(e,t);const n={};for(const r in e){const a=pe(t.fields,r),l=Object.assign(e[r]||{},{ref:a&&a.ref});if(t7(t.names||Object.keys(e),r)){const u=Object.assign({},pe(n,r));lt(u,"root",l),lt(n,r,u)}else lt(n,r,l)}return n},t7=(e,t)=>e.some(n=>n.startsWith(t+"."));var n7=function(e,t){for(var n={};e.length;){var r=e[0],a=r.code,l=r.message,u=r.path.join(".");if(!n[u])if("unionErrors"in r){var f=r.unionErrors[0].errors[0];n[u]={message:f.message,type:f.code}}else n[u]={message:l,type:a};if("unionErrors"in r&&r.unionErrors.forEach(function(g){return g.errors.forEach(function(x){return e.push(x)})}),t){var p=n[u].types,h=p&&p[r.code];n[u]=nC(u,t,n,a,h?[].concat(h,r.message):r.message)}e.shift()}return n},xx=function(e,t,n){return n===void 0&&(n={}),function(r,a,l){try{return Promise.resolve((function(u,f){try{var p=Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(h){return l.shouldUseNativeValidation&&cC({},l),{errors:{},values:n.raw?r:h}})}catch(h){return f(h)}return p&&p.then?p.then(void 0,f):p})(0,function(u){if((function(f){return Array.isArray(f?.errors)})(u))return{values:{},errors:e7(n7(u.errors,!l.shouldUseNativeValidation&&l.criteriaMode==="all"),l)};throw u}))}catch(u){return Promise.reject(u)}}},st;(function(e){e.assertEqual=a=>{};function t(a){}e.assertIs=t;function n(a){throw new Error}e.assertNever=n,e.arrayToEnum=a=>{const l={};for(const u of a)l[u]=u;return l},e.getValidEnumValues=a=>{const l=e.objectKeys(a).filter(f=>typeof a[a[f]]!="number"),u={};for(const f of l)u[f]=a[f];return e.objectValues(u)},e.objectValues=a=>e.objectKeys(a).map(function(l){return a[l]}),e.objectKeys=typeof Object.keys=="function"?a=>Object.keys(a):a=>{const l=[];for(const u in a)Object.prototype.hasOwnProperty.call(a,u)&&l.push(u);return l},e.find=(a,l)=>{for(const u of a)if(l(u))return u},e.isInteger=typeof Number.isInteger=="function"?a=>Number.isInteger(a):a=>typeof a=="number"&&Number.isFinite(a)&&Math.floor(a)===a;function r(a,l=" | "){return a.map(u=>typeof u=="string"?`'${u}'`:u).join(l)}e.joinValues=r,e.jsonStringifyReplacer=(a,l)=>typeof l=="bigint"?l.toString():l})(st||(st={}));var ij;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(ij||(ij={}));const Ce=st.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),si=e=>{switch(typeof e){case"undefined":return Ce.undefined;case"string":return Ce.string;case"number":return Number.isNaN(e)?Ce.nan:Ce.number;case"boolean":return Ce.boolean;case"function":return Ce.function;case"bigint":return Ce.bigint;case"symbol":return Ce.symbol;case"object":return Array.isArray(e)?Ce.array:e===null?Ce.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ce.promise:typeof Map<"u"&&e instanceof Map?Ce.map:typeof Set<"u"&&e instanceof Set?Ce.set:typeof Date<"u"&&e instanceof Date?Ce.date:Ce.object;default:return Ce.unknown}}
vendor: 16,373 bytes, line 23
23,fe=st.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]);class jr extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};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},r={_errors:[]},a=l=>{for(const u of l.issues)if(u.code==="invalid_union")u.unionErrors.map(a);else if(u.code==="invalid_return_type")a(u.returnTypeError);else if(u.code==="invalid_arguments")a(u.argumentsError);else if(u.path.length===0)r._errors.push(n(u));else{let f=r,p=0;for(;p<u.path.length;){const h=u.path[p];p===u.path.length-1?(f[h]=f[h]||{_errors:[]},f[h]._errors.push(n(u))):f[h]=f[h]||{_errors:[]},f=f[h],p++}}};return a(this),r}static assert(t){if(!(t instanceof jr))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,st.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){const n={},r=[];for(const a of this.issues)if(a.path.length>0){const l=a.path[0];n[l]=n[l]||[],n[l].push(t(a))}else r.push(t(a));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}}jr.create=e=>new jr(e);const Fg=(e,t)=>{let n;switch(e.code){case fe.invalid_type:e.received===Ce.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case fe.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,st.jsonStringifyReplacer)}`;break;case fe.unrecognized_keys:n=`Unrecognized key(s) in object: ${st.joinValues(e.keys,", ")}`;break;case fe.invalid_union:n="Invalid input";break;case fe.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${st.joinValues(e.options)}`;break;case fe.invalid_enum_value:n=`Invalid enum value. Expected ${st.joinValues(e.options)}, received '${e.received}'`;break;case fe.invalid_arguments:n="Invalid function arguments";break;case fe.invalid_return_type:n="Invalid function return type";break;case fe.invalid_date:n="Invalid date";break;case fe.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}"`:st.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case fe.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 fe.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 fe.custom:n="Invalid input";break;case fe.invalid_intersection_types:n="Intersection results could not be merged";break;case fe.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case fe.not_finite:n="Number must be finite";break;default:n=t.defaultError,st.assertNever(e)}return{message:n}};let s7=Fg;function r7(){return s7}const i7=e=>{const{data:t,path:n,errorMaps:r,issueData:a}=e,l=[...n,...a.path||[]],u={...a,path:l};if(a.message!==void 0)return{...a,path:l,message:a.message};let f="";const p=r.filter(h=>!!h).slice().reverse();for(const h of p)f=h(u,{data:t,defaultError:f}).message;return{...a,path:l,message:f}};function be(e,t){const n=r7(),r=i7({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===Fg?void 0:Fg].filter(a=>!!a)});e.common.issues.push(r)}class es{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){const r=[];for(const a of n){if(a.status==="aborted")return Ue;a.status==="dirty"&&t.dirty(),r.push(a.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){const r=[];for(const a of n){const l=await a.key,u=await a.value;r.push({key:l,value:u})}return es.mergeObjectSync(t,r)}static mergeObjectSync(t,n){const r={};for(const a of n){const{key:l,value:u}=a;if(l.status==="aborted"||u.status==="aborted")return Ue;l.status==="dirty"&&t.dirty(),u.status==="dirty"&&t.dirty(),l.value!=="__proto__"&&(typeof u.value<"u"||a.alwaysSet)&&(r[l.value]=u.value)}return{status:t.value,value:r}}}const Ue=Object.freeze({status:"aborted"}),Hl=e=>({status:"dirty",value:e}),ps=e=>({status:"valid",value:e}),aj=e=>e.status==="aborted",oj=e=>e.status==="dirty",wo=e=>e.status==="valid",Zd=e=>typeof Promise<"u"&&e instanceof Promise;var _e;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(_e||(_e={}));class fi{constructor(t,n,r,a){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=a}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 lj=(e,t)=>{if(wo(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 jr(e.common.issues);return this._error=n,this._error}}};function Ke(e){if(!e)return{};const{errorMap:t,invalid_type_error:n,required_error:r,description:a}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:a}:{errorMap:(u,f)=>{const{message:p}=e;return u.code==="invalid_enum_value"?{message:p??f.defaultError}:typeof f.data>"u"?{message:p??r??f.defaultError}:u.code!=="invalid_type"?{message:f.defaultError}:{message:p??n??f.defaultError}},description:a}}class tt{get description(){return this._def.description}_getType(t){return si(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:si(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new es,ctx:{common:t.parent.common,data:t.data,parsedType:si(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){const n=this._parse(t);if(Zd(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 r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){const r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:si(t)},a=this._parseSync({data:t,path:r.path,parent:r});return lj(r,a)}"~validate"(t){const n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:si(t)};if(!this["~standard"].async)try{const r=this._parseSync({data:t,path:[],parent:n});return wo(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>wo(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){const r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){const r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:si(t)},a=this._parse({data:t,path:r.path,parent:r}),l=await(Zd(a)?a:Promise.resolve(a));return lj(r,l)}refine(t,n){const r=a=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(a):n;return this._refinement((a,l)=>{const u=t(a),f=()=>l.addIssue({code:fe.custom,...r(a)});return typeof Promise<"u"&&u instanceof Promise?u.then(p=>p?!0:(f(),!1)):u?!0:(f(),!1)})}refinement(t,n){return this._refinement((r,a)=>t(r)?!0:(a.addIssue(typeof n=="function"?n(r,a):n),!1))}_refinement(t){return new No({schema:this,typeName:Ie.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 li.create(this,this._def)}nullable(){return To.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Ys.create(this)}promise(){return ef.create(this,this._def)}or(t){return Wd.create([this,t],this._def)}and(t){return Jd.create(this,t,this._def)}transform(t){return new No({...Ke(this._def),schema:this,typeName:Ie.ZodEffects,effect:{type:"transform",transform:t}})}default(t){const n=typeof t=="function"?t:()=>t;return new Hg({...Ke(this._def),innerType:this,defaultValue:n,typeName:Ie.ZodDefault})}brand(){return new _7({typeName:Ie.ZodBranded,type:this,...Ke(this._def)})}catch(t){const n=typeof t=="function"?t:()=>t;return new qg({...Ke(this._def),innerType:this,catchValue:n,typeName:Ie.ZodCatch})}describe(t){const n=this.constructor;return new n({...this._def,description:t})}pipe(t){return vx.create(this,t)}readonly(){return $g.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const a7=/^c[^\s-]{8,}$/i,o7=/^[0-9a-z]+$/,l7=/^[0-9A-HJKMNP-TV-Z]{26}$/i,c7=/^[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,u7=/^[a-z0-9_-]{21}$/i,d7=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,f7=/^[-+]?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)?)??$/,h7=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,m7="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Vp;const p7=/^(?:(?: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])$/,g7=/^(?:(?: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])$/,y7=/^(([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]))$/,x7=/^(([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])$/,v7=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,b7=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,uC="((\\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])))",w7=new RegExp(`^${uC}$`);function dC(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 S7(e){return new RegExp(`^${dC(e)}$`)}function j7(e){let t=`${uC}T${dC(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 N7(e,t){return!!((t==="v4"||!t)&&p7.test(e)||(t==="v6"||!t)&&y7.test(e))}function T7(e,t){if(!d7.test(e))return!1;try{const[n]=e.split(".");if(!n)return!1;const r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),a=JSON.parse(atob(r));return!(typeof a!="object"||a===null||"typ"in a&&a?.typ!=="JWT"||!a.alg||t&&a.alg!==t)}catch{return!1}}function E7(e,t){return!!((t==="v4"||!t)&&g7.test(e)||(t==="v6"||!t)&&x7.test(e))}class xr extends tt{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==Ce.string){const l=this._getOrReturnCtx(t);return be(l,{code:fe.invalid_type,expected:Ce.string,received:l.parsedType}),Ue}const r=new es;let a;for(const l of this._def.checks)if(l.kind==="min")t.data.length<l.value&&(a=this._getOrReturnCtx(t,a),be(a,{code:fe.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),r.dirty());else if(l.kind==="max")t.data.length>l.value&&(a=this._getOrReturnCtx(t,a),be(a,{code:fe.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!1,message:l.message}),r.dirty());else if(l.kind==="length"){const u=t.data.length>l.value,f=t.data.length<l.value;(u||f)&&(a=this._getOrReturnCtx(t,a),u?be(a,{code:fe.too_big,maximum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}):f&&be(a,{code:fe.too_small,minimum:l.value,type:"string",inclusive:!0,exact:!0,message:l.message}),r.dirty())}else if(l.kind==="email")h7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"email",code:fe.invali
vendor: 5,882 bytes, line 23
23d_string,message:l.message}),r.dirty());else if(l.kind==="emoji")Vp||(Vp=new RegExp(m7,"u")),Vp.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"emoji",code:fe.invalid_string,message:l.message}),r.dirty());else if(l.kind==="uuid")c7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"uuid",code:fe.invalid_string,message:l.message}),r.dirty());else if(l.kind==="nanoid")u7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"nanoid",code:fe.invalid_string,message:l.message}),r.dirty());else if(l.kind==="cuid")a7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"cuid",code:fe.invalid_string,message:l.message}),r.dirty());else if(l.kind==="cuid2")o7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"cuid2",code:fe.invalid_string,message:l.message}),r.dirty());else if(l.kind==="ulid")l7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"ulid",code:fe.invalid_string,message:l.message}),r.dirty());else if(l.kind==="url")try{new URL(t.data)}catch{a=this._getOrReturnCtx(t,a),be(a,{validation:"url",code:fe.invalid_string,message:l.message}),r.dirty()}else l.kind==="regex"?(l.regex.lastIndex=0,l.regex.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"regex",code:fe.invalid_string,message:l.message}),r.dirty())):l.kind==="trim"?t.data=t.data.trim():l.kind==="includes"?t.data.includes(l.value,l.position)||(a=this._getOrReturnCtx(t,a),be(a,{code:fe.invalid_string,validation:{includes:l.value,position:l.position},message:l.message}),r.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)||(a=this._getOrReturnCtx(t,a),be(a,{code:fe.invalid_string,validation:{startsWith:l.value},message:l.message}),r.dirty()):l.kind==="endsWith"?t.data.endsWith(l.value)||(a=this._getOrReturnCtx(t,a),be(a,{code:fe.invalid_string,validation:{endsWith:l.value},message:l.message}),r.dirty()):l.kind==="datetime"?j7(l).test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{code:fe.invalid_string,validation:"datetime",message:l.message}),r.dirty()):l.kind==="date"?w7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{code:fe.invalid_string,validation:"date",message:l.message}),r.dirty()):l.kind==="time"?S7(l).test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{code:fe.invalid_string,validation:"time",message:l.message}),r.dirty()):l.kind==="duration"?f7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"duration",code:fe.invalid_string,message:l.message}),r.dirty()):l.kind==="ip"?N7(t.data,l.version)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"ip",code:fe.invalid_string,message:l.message}),r.dirty()):l.kind==="jwt"?T7(t.data,l.alg)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"jwt",code:fe.invalid_string,message:l.message}),r.dirty()):l.kind==="cidr"?E7(t.data,l.version)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"cidr",code:fe.invalid_string,message:l.message}),r.dirty()):l.kind==="base64"?v7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"base64",code:fe.invalid_string,message:l.message}),r.dirty()):l.kind==="base64url"?b7.test(t.data)||(a=this._getOrReturnCtx(t,a),be(a,{validation:"base64url",code:fe.invalid_string,message:l.message}),r.dirty()):st.assertNever(l);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(a=>t.test(a),{validation:n,code:fe.invalid_string,..._e.errToObj(r)})}_addCheck(t){return new xr({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",..._e.errToObj(t)})}url(t){return this._addCheck({kind:"url",..._e.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",..._e.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",..._e.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",..._e.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",..._e.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",..._e.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",..._e.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",..._e.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",..._e.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",..._e.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",..._e.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",..._e.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,..._e.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,..._e.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",..._e.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,..._e.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,..._e.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,..._e.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,..._e.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,..._e.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,..._e.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,..._e.errToObj(n)})}nonempty(t){return this.min(1,_e.errToObj(t))}trim(){return new xr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new xr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new xr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}
vendor: 17,355 bytes, line 23
23get 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}}xr.create=e=>new xr({checks:[],typeName:Ie.ZodString,coerce:e?.coerce??!1,...Ke(e)});function C7(e,t){const n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,a=n>r?n:r,l=Number.parseInt(e.toFixed(a).replace(".","")),u=Number.parseInt(t.toFixed(a).replace(".",""));return l%u/10**a}class ra extends tt{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)!==Ce.number){const l=this._getOrReturnCtx(t);return be(l,{code:fe.invalid_type,expected:Ce.number,received:l.parsedType}),Ue}let r;const a=new es;for(const l of this._def.checks)l.kind==="int"?st.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{code:fe.invalid_type,expected:"integer",received:"float",message:l.message}),a.dirty()):l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:fe.too_small,minimum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:fe.too_big,maximum:l.value,type:"number",inclusive:l.inclusive,exact:!1,message:l.message}),a.dirty()):l.kind==="multipleOf"?C7(t.data,l.value)!==0&&(r=this._getOrReturnCtx(t,r),be(r,{code:fe.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):l.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),be(r,{code:fe.not_finite,message:l.message}),a.dirty()):st.assertNever(l);return{status:a.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,_e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_e.toString(n))}setLimit(t,n,r,a){return new ra({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:_e.toString(a)}]})}_addCheck(t){return new ra({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:_e.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:_e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:_e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:_e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:_e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_e.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:_e.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:_e.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:_e.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"&&st.isInteger(t.value))}get isFinite(){let t=null,n=null;for(const r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}}ra.create=e=>new ra({checks:[],typeName:Ie.ZodNumber,coerce:e?.coerce||!1,...Ke(e)});class ia extends tt{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)!==Ce.bigint)return this._getInvalidInput(t);let r;const a=new es;for(const l of this._def.checks)l.kind==="min"?(l.inclusive?t.data<l.value:t.data<=l.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:fe.too_small,type:"bigint",minimum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="max"?(l.inclusive?t.data>l.value:t.data>=l.value)&&(r=this._getOrReturnCtx(t,r),be(r,{code:fe.too_big,type:"bigint",maximum:l.value,inclusive:l.inclusive,message:l.message}),a.dirty()):l.kind==="multipleOf"?t.data%l.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),be(r,{code:fe.not_multiple_of,multipleOf:l.value,message:l.message}),a.dirty()):st.assertNever(l);return{status:a.value,value:t.data}}_getInvalidInput(t){const n=this._getOrReturnCtx(t);return be(n,{code:fe.invalid_type,expected:Ce.bigint,received:n.parsedType}),Ue}gte(t,n){return this.setLimit("min",t,!0,_e.toString(n))}gt(t,n){return this.setLimit("min",t,!1,_e.toString(n))}lte(t,n){return this.setLimit("max",t,!0,_e.toString(n))}lt(t,n){return this.setLimit("max",t,!1,_e.toString(n))}setLimit(t,n,r,a){return new ia({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:_e.toString(a)}]})}_addCheck(t){return new ia({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:_e.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:_e.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:_e.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:_e.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:_e.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}}ia.create=e=>new ia({checks:[],typeName:Ie.ZodBigInt,coerce:e?.coerce??!1,...Ke(e)});class Qd extends tt{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==Ce.boolean){const r=this._getOrReturnCtx(t);return be(r,{code:fe.invalid_type,expected:Ce.boolean,received:r.parsedType}),Ue}return ps(t.data)}}Qd.create=e=>new Qd({typeName:Ie.ZodBoolean,coerce:e?.coerce||!1,...Ke(e)});class So extends tt{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==Ce.date){const l=this._getOrReturnCtx(t);return be(l,{code:fe.invalid_type,expected:Ce.date,received:l.parsedType}),Ue}if(Number.isNaN(t.data.getTime())){const l=this._getOrReturnCtx(t);return be(l,{code:fe.invalid_date}),Ue}const r=new es;let a;for(const l of this._def.checks)l.kind==="min"?t.data.getTime()<l.value&&(a=this._getOrReturnCtx(t,a),be(a,{code:fe.too_small,message:l.message,inclusive:!0,exact:!1,minimum:l.value,type:"date"}),r.dirty()):l.kind==="max"?t.data.getTime()>l.value&&(a=this._getOrReturnCtx(t,a),be(a,{code:fe.too_big,message:l.message,inclusive:!0,exact:!1,maximum:l.value,type:"date"}),r.dirty()):st.assertNever(l);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new So({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:_e.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:_e.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}}So.create=e=>new So({checks:[],coerce:e?.coerce||!1,typeName:Ie.ZodDate,...Ke(e)});class cj extends tt{_parse(t){if(this._getType(t)!==Ce.symbol){const r=this._getOrReturnCtx(t);return be(r,{code:fe.invalid_type,expected:Ce.symbol,received:r.parsedType}),Ue}return ps(t.data)}}cj.create=e=>new cj({typeName:Ie.ZodSymbol,...Ke(e)});class uj extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return be(r,{code:fe.invalid_type,expected:Ce.undefined,received:r.parsedType}),Ue}return ps(t.data)}}uj.create=e=>new uj({typeName:Ie.ZodUndefined,...Ke(e)});class dj extends tt{_parse(t){if(this._getType(t)!==Ce.null){const r=this._getOrReturnCtx(t);return be(r,{code:fe.invalid_type,expected:Ce.null,received:r.parsedType}),Ue}return ps(t.data)}}dj.create=e=>new dj({typeName:Ie.ZodNull,...Ke(e)});class fj extends tt{constructor(){super(...arguments),this._any=!0}_parse(t){return ps(t.data)}}fj.create=e=>new fj({typeName:Ie.ZodAny,...Ke(e)});class hj extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(t){return ps(t.data)}}hj.create=e=>new hj({typeName:Ie.ZodUnknown,...Ke(e)});class hi extends tt{_parse(t){const n=this._getOrReturnCtx(t);return be(n,{code:fe.invalid_type,expected:Ce.never,received:n.parsedType}),Ue}}hi.create=e=>new hi({typeName:Ie.ZodNever,...Ke(e)});class mj extends tt{_parse(t){if(this._getType(t)!==Ce.undefined){const r=this._getOrReturnCtx(t);return be(r,{code:fe.invalid_type,expected:Ce.void,received:r.parsedType}),Ue}return ps(t.data)}}mj.create=e=>new mj({typeName:Ie.ZodVoid,...Ke(e)});class Ys extends tt{_parse(t){const{ctx:n,status:r}=this._processInputParams(t),a=this._def;if(n.parsedType!==Ce.array)return be(n,{code:fe.invalid_type,expected:Ce.array,received:n.parsedType}),Ue;if(a.exactLength!==null){const u=n.data.length>a.exactLength.value,f=n.data.length<a.exactLength.value;(u||f)&&(be(n,{code:u?fe.too_big:fe.too_small,minimum:f?a.exactLength.value:void 0,maximum:u?a.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:a.exactLength.message}),r.dirty())}if(a.minLength!==null&&n.data.length<a.minLength.value&&(be(n,{code:fe.too_small,minimum:a.minLength.value,type:"array",inclusive:!0,exact:!1,message:a.minLength.message}),r.dirty()),a.maxLength!==null&&n.data.length>a.maxLength.value&&(be(n,{code:fe.too_big,maximum:a.maxLength.value,type:"array",inclusive:!0,exact:!1,message:a.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((u,f)=>a.type._parseAsync(new fi(n,u,n.path,f)))).then(u=>es.mergeArray(r,u));const l=[...n.data].map((u,f)=>a.type._parseSync(new fi(n,u,n.path,f)));return es.mergeArray(r,l)}get element(){return this._def.type}min(t,n){return new Ys({...this._def,minLength:{value:t,message:_e.toString(n)}})}max(t,n){return new Ys({...this._def,maxLength:{value:t,message:_e.toString(n)}})}length(t,n){return new Ys({...this._def,exactLength:{value:t,message:_e.toString(n)}})}nonempty(t){return this.min(1,t)}}Ys.create=(e,t)=>new Ys({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Ie.ZodArray,...Ke(t)});function ao(e){if(e instanceof Vt){const t={};for(const n in e.shape){const r=e.shape[n];t[n]=li.create(ao(r))}return new Vt({...e._def,shape:()=>t})}else return e instanceof Ys?new Ys({...e._def,type:ao(e.element)}):e instanceof li?li.create(ao(e.unwrap())):e instanceof To?To.create(ao(e.unwrap())):e instanceof aa?aa.create(e.items.map(t=>ao(t))):e}class Vt extends tt{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=st.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==Ce.object){const h=this._getOrReturnCtx(t);return be(h,{code:fe.invalid_type,expected:Ce.object,received:h.parsedType}),Ue}const{status:r,ctx:a}=this._processInputParams(t),{shape:l,keys:u}=this._getCached(),f=[];if(!(this._def.catchall instanceof hi&&this._def.unknownKeys==="strip"))for(const h in a.data)u.includes(h)||f.push(h);const p=[];for(const h of u){const g=l[h],x=a.data[h];p.push({key:{status:"valid",value:h},value:g._parse(new fi(a,x,a.path,h)),alwaysSet:h in a.data})}if(this._def.catchall instanceof hi){const h=this._def.unknownKeys;if(h==="passthrough")for(const g of f)p.push({key:{status:"valid",value:g},value:{status:"valid",value:a.data[g]}});else if(h==="strict")f.length>0&&(be(a,{code:fe.unrecognized_keys,keys:f}),r.dirty());else if(h!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const h=this._def.catchall;for(const g of f){const x=a.data[g];p.push({key:{status:"valid",value:g},value:h._parse(new fi(a,x,a.path,g)),alwaysSet:g in a.data})}}return a.common.async?Promise.resolve().then(async()=>{const h=[];for(const g of p){const x=await g.key,b=await g.value;h.push({key:x,value:b,alwaysSet:g.alwaysSet})}return h}).then(h=>es.mergeObjectSync(r,h)):es.mergeObjectSync(r,p)}get shape(){return this._def.shape()}strict(t){return _e.errToObj,new Vt({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{const a=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:_e.errToObj(t).message??a}:{message:a}}}:{}})}strip(){return new Vt({...this._def,unknownKeys:"strip"})}passthrough(){return new Vt({...this._def,unknownKeys:"passthrough"})}extend(t){return new Vt({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new Vt({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:Ie.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new Vt({...this._def,catchall:t})}pick(t){const n={};for(const r of st.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new Vt({...this._def,shape:()=>n})}omit(t){const n={};for(const r of st.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new Vt({...this._def,shape:()=>n})}deepPartial(){return ao(this)}partial(t){const n={};for(const r of st.objectKeys(this.shape)){const a=this.shape[r];t&&!t[r]?n[r]=a:n[r]=a.optional()}return new Vt({...this._def,shape:()=>n})}required(t){const n={};for(const r of st.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let l=this.shape[r];for(;l instanceof li;)l=l._def.innerType;n[r]=l}return new Vt({...this._def,shape:()=>n})}keyof(){return fC(st.objectKeys(this.shape))}}Vt.create=(e,t)=>new Vt({shape:()=>e,unknownKeys:"strip",catchall:hi.create(),typeName:Ie.ZodObject,...Ke(t)});Vt.strictCreate=(e,t)=>new Vt({shape:()=>e,unknownKeys:"strict",catchall:hi.create(),typeName:Ie.ZodObject,...Ke(t)});Vt.lazycreate=(e,t)=>new Vt({shape:e,unknownKeys:"strip",catchall:hi.create(),typeName:Ie.ZodObject,...Ke(t)});class Wd extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),r=this._def.options;function a(l){for(const f of l)if(f.result.status==="valid")return f.result;for(const f of l)if(f.result.status==="dirty")return n.common.issues.push(...f.ctx.common.issues),f.result;const u=l.map(f=>new jr(f.ctx.common.issues));return be(n,{code:fe.invalid_union,unionErrors:u}),Ue}if(n.common.async)return Promise.all(r.map(async l=>{const u={...n,common:{...n.common,issues:[]},parent:null};return{result:await l._parseAsync({data:n.data,path:n.path,parent:u}),ctx:u}})).then(a);{let l;const u=[];for(const p of r){const h={...n,common:{...n.common,issues:[]},parent:null},g=p._parseSync({data:n.data,path:n.path,parent:h});if(g.status==="valid")return g;g.status==="dirty"&&!l&&(l={result:g,ctx:h}),h.common.issues.length&&u.push(h.common.issues)}if(l)return n.common.issues.push(...l.ctx.common.issues),l.result;const f=u.map(p=>new jr(p));return be(n,{code:fe.invalid_union,unionErrors:f}),Ue}}get options(){return this._def.options}}Wd.create=(e,t)=>new Wd({options:e,typeName:Ie.ZodUnion,...Ke(t)});function Bg(e,t){const n=si(e),r=si(t);if(e===t)return{valid:!0,data:e};if(n===Ce.object&&r===Ce.object){const a=st.objectKeys(t),l=st.objectKeys(e).filter(f=>a.indexOf(f)!==-1),u={...e,...t};for(const f of l){const p=Bg(e[f],t[f]);if(!p.valid)return{valid:!1};u[f]=p.data}return{valid:!0,data:u}}else if(n===Ce.array&&r===Ce.array){if(e.length!==t.length)return{valid:!1};const a=[];for(let l=0;l<e.length;l++){const u=e[l],f=t[l],p=Bg(u,f);if(!p.valid)return{valid:!1};a.push(p.data)}return{valid:!0,data:a}}else return n===Ce.date&&r===Ce.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}class Jd extends tt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=(l,u)=>{if(aj(l)||aj(u))return Ue;const f=Bg(l.value,u.value);return f.valid?((oj(l)||oj(u))&&n.dirty(),{status:n.value,value:f.data}
vendor: 4,144 bytes, line 23
23):(be(r,{code:fe.invalid_intersection_types}),Ue)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([l,u])=>a(l,u)):a(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}}Jd.create=(e,t,n)=>new Jd({left:e,right:t,typeName:Ie.ZodIntersection,...Ke(n)});class aa extends tt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.array)return be(r,{code:fe.invalid_type,expected:Ce.array,received:r.parsedType}),Ue;if(r.data.length<this._def.items.length)return be(r,{code:fe.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Ue;!this._def.rest&&r.data.length>this._def.items.length&&(be(r,{code:fe.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());const l=[...r.data].map((u,f)=>{const p=this._def.items[f]||this._def.rest;return p?p._parse(new fi(r,u,r.path,f)):null}).filter(u=>!!u);return r.common.async?Promise.all(l).then(u=>es.mergeArray(n,u)):es.mergeArray(n,l)}get items(){return this._def.items}rest(t){return new aa({...this._def,rest:t})}}aa.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new aa({items:e,typeName:Ie.ZodTuple,rest:null,...Ke(t)})};class pj extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.map)return be(r,{code:fe.invalid_type,expected:Ce.map,received:r.parsedType}),Ue;const a=this._def.keyType,l=this._def.valueType,u=[...r.data.entries()].map(([f,p],h)=>({key:a._parse(new fi(r,f,r.path,[h,"key"])),value:l._parse(new fi(r,p,r.path,[h,"value"]))}));if(r.common.async){const f=new Map;return Promise.resolve().then(async()=>{for(const p of u){const h=await p.key,g=await p.value;if(h.status==="aborted"||g.status==="aborted")return Ue;(h.status==="dirty"||g.status==="dirty")&&n.dirty(),f.set(h.value,g.value)}return{status:n.value,value:f}})}else{const f=new Map;for(const p of u){const h=p.key,g=p.value;if(h.status==="aborted"||g.status==="aborted")return Ue;(h.status==="dirty"||g.status==="dirty")&&n.dirty(),f.set(h.value,g.value)}return{status:n.value,value:f}}}}pj.create=(e,t,n)=>new pj({valueType:t,keyType:e,typeName:Ie.ZodMap,...Ke(n)});class fc extends tt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==Ce.set)return be(r,{code:fe.invalid_type,expected:Ce.set,received:r.parsedType}),Ue;const a=this._def;a.minSize!==null&&r.data.size<a.minSize.value&&(be(r,{code:fe.too_small,minimum:a.minSize.value,type:"set",inclusive:!0,exact:!1,message:a.minSize.message}),n.dirty()),a.maxSize!==null&&r.data.size>a.maxSize.value&&(be(r,{code:fe.too_big,maximum:a.maxSize.value,type:"set",inclusive:!0,exact:!1,message:a.maxSize.message}),n.dirty());const l=this._def.valueType;function u(p){const h=new Set;for(const g of p){if(g.status==="aborted")return Ue;g.status==="dirty"&&n.dirty(),h.add(g.value)}return{status:n.value,value:h}}const f=[...r.data.values()].map((p,h)=>l._parse(new fi(r,p,r.path,h)));return r.common.async?Promise.all(f).then(p=>u(p)):u(f)}min(t,n){return new fc({...this._def,minSize:{value:t,message:_e.toString(n)}})}max(t,n){return new fc({...this._def,maxSize:{value:t,message:_e.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}}fc.create=(e,t)=>new fc({valueType:e,minSize:null,maxSize:null,typeName:Ie.ZodSet,...Ke(t)});class gj extends tt{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})}}gj.create=(e,t)=>new gj({getter:e,typeName:Ie.ZodLazy,...Ke(t)});class yj extends tt{_parse(t){if(t.data!==this._def.value){const n=this._getOrReturnCtx(t);return be(n,{received:n.data,code:fe.invalid_literal,expected:this._def.value}),Ue}return{status:"valid",value:t.data}}get value(){return this._def.value}}yj.create=(e,t)=>
vendor: 4,437 bytes, line 23
23new yj({value:e,typeName:Ie.ZodLiteral,...Ke(t)});function fC(e,t){return new jo({values:e,typeName:Ie.ZodEnum,...Ke(t)})}class jo extends tt{_parse(t){if(typeof t.data!="string"){const n=this._getOrReturnCtx(t),r=this._def.values;return be(n,{expected:st.joinValues(r),received:n.parsedType,code:fe.invalid_type}),Ue}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){const n=this._getOrReturnCtx(t),r=this._def.values;return be(n,{received:n.data,code:fe.invalid_enum_value,options:r}),Ue}return ps(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 jo.create(t,{...this._def,...n})}exclude(t,n=this._def){return jo.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}}jo.create=fC;class xj extends tt{_parse(t){const n=st.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==Ce.string&&r.parsedType!==Ce.number){const a=st.objectValues(n);return be(r,{expected:st.joinValues(a),received:r.parsedType,code:fe.invalid_type}),Ue}if(this._cache||(this._cache=new Set(st.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){const a=st.objectValues(n);return be(r,{received:r.data,code:fe.invalid_enum_value,options:a}),Ue}return ps(t.data)}get enum(){return this._def.values}}xj.create=(e,t)=>new xj({values:e,typeName:Ie.ZodNativeEnum,...Ke(t)});class ef extends tt{unwrap(){return this._def.type}_parse(t){const{ctx:n}=this._processInputParams(t);if(n.parsedType!==Ce.promise&&n.common.async===!1)return be(n,{code:fe.invalid_type,expected:Ce.promise,received:n.parsedType}),Ue;const r=n.parsedType===Ce.promise?n.data:Promise.resolve(n.data);return ps(r.then(a=>this._def.type.parseAsync(a,{path:n.path,errorMap:n.common.contextualErrorMap})))}}ef.create=(e,t)=>new ef({type:e,typeName:Ie.ZodPromise,...Ke(t)});class No extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Ie.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){const{status:n,ctx:r}=this._processInputParams(t),a=this._def.effect||null,l={addIssue:u=>{be(r,u),u.fatal?n.abort():n.dirty()},get path(){return r.path}};if(l.addIssue=l.addIssue.bind(l),a.type==="preprocess"){const u=a.transform(r.data,l);if(r.common.async)return Promise.resolve(u).then(async f=>{if(n.value==="aborted")return Ue;const p=await this._def.schema._parseAsync({data:f,path:r.path,parent:r});return p.status==="aborted"?Ue:p.status==="dirty"||n.value==="dirty"?Hl(p.value):p});{if(n.value==="aborted")return Ue;const f=this._def.schema._parseSync({data:u,path:r.path,parent:r});return f.status==="aborted"?Ue:f.status==="dirty"||n.value==="dirty"?Hl(f.value):f}}if(a.type==="refinement"){const u=f=>{const p=a.refinement(f,l);if(r.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return f};if(r.common.async===!1){const f=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return f.status==="aborted"?Ue:(f.status==="dirty"&&n.dirty(),u(f.value),{status:n.value,value:f.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(f=>f.status==="aborted"?Ue:(f.status==="dirty"&&n.dirty(),u(f.value).then(()=>({status:n.value,value:f.value}))))}if(a.type==="transform")if(r.common.async===!1){const u=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!wo(u))return Ue;const f=a.transform(u.value,l);if(f instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:f}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(u=>wo(u)?Promise.resolve(a.transform(u.value,l)).then(f=>({status:n.value,value:f})):Ue);st.assertNever(a)}}No.create=(e,t,n)=>new No({schema:e,typeName:Ie.ZodEffects,effect:t,...Ke(n)});No.createWithPreprocess=(e,t,n)=>new No({schema:t,effect:{type:"preprocess",transform:e},typeName:Ie.ZodEffects,...Ke(n)});class li extends tt{_parse(t){return this._getType(t)===Ce.undefined?ps(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}li.create=(e,t)=>
23new li({innerType:e,typeName:Ie.ZodOptional,...Ke(t)});class To extends tt{_parse(t){return this._getType(t)===Ce.null?ps(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}}To.create=(e,t)=>new To({innerType:e,typeName:Ie.ZodNullable,...Ke(t)});class Hg extends tt{_parse(t){const{ctx:n}=this._processInputParams(t);let r=n.data;return n.parsedType===Ce.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}}Hg.create=(e,t)=>new Hg({innerType:e,typeName:Ie.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Ke(t)});class qg extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},a=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Zd(a)?a.then(l=>({status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new jr(r.common.issues)},input:r.data})})):{status:"valid",value:a.status==="valid"?a.value:this._def.catchValue({get error(){return new jr(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}}qg.create=(e,t)=>new qg({innerType:e,typeName:Ie.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Ke(t)});class vj extends tt{_parse(t){if(this._getType(t)!==Ce.nan){const r=this._getOrReturnCtx(t);return be(r,{code:fe.invalid_type,expected:Ce.nan,received:r.parsedType}),Ue}return{status:"valid",value:t.data}}}vj.create=e=>new vj({typeName:Ie.ZodNaN,...Ke(e)});class _7 extends tt{_parse(t){const{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}}class vx extends tt{_parse(t){const{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{const l=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return l.status==="aborted"?Ue:l.status==="dirty"?(n.dirty(),Hl(l.value)):this._def.out._parseAsync({data:l.value,path:r.path,parent:r})})();{const a=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?Ue:a.status==="dirty"?(n.dirty(),{status:"dirty",value:a.value}):this._def.out._parseSync({data:a.value,path:r.path,parent:r})}}static create(t,n){return new vx({in:t,out:n,typeName:Ie.ZodPipeline})}}class $g extends tt{_parse(t){const n=this._def.innerType._parse(t),r=a=>(wo(a)&&(a.value=Object.freeze(a.value)),a);return Zd(n)?n.then(a=>r(a)):r(n)}unwrap(){return this._def.innerType}}$g.create=(e,t)=>new $g({innerType:e,typeName:Ie.ZodReadonly,...Ke(t)});var Ie;(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"})(Ie||(Ie={}));const He=xr.create;ra.create;ia.create;const hc=Qd.create;So.create;hi.create;Ys.create;const bx=Vt.create;Wd.create;Jd.create;aa.create;jo.create;ef.create;li.create;To.create;const Eo={string:(e=>xr.create({...e,coerce:!0})),number:(e=>ra.create({...e,coerce:!0})),boolean:(e=>Qd.create({...e,coerce:!0})),bigint:(e=>ia.create({...e,coerce:!0})),date:(e=>So.create({...e,coerce:!0}))},ze=v.forwardRef(({className:e,type:t,...n},r)=>c.jsx("input",{type:t,className:Qe("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors 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-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,...n}));ze.displayName="Input";const mi=v.forwardRef(({className:e,...t},n)=>
23c.jsx("textarea",{className:Qe("flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...t}));mi.displayName="Textarea";function hC(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])}var Mf="Checkbox",[A7]=da(Mf),[R7,wx]=A7(Mf);function k7(e){const{__scopeCheckbox:t,checked:n,children:r,defaultChecked:a,disabled:l,form:u,name:f,onCheckedChange:p,required:h,value:g="on",internal_do_not_use_render:x}=e,[b,w]=ic({prop:n,defaultProp:a??!1,onChange:p,caller:Mf}),[N,S]=v.useState(null),[j,C]=v.useState(null),_=v.useRef(!1),E=N?!!u||!!N.closest("form"):!0,R={checked:b,disabled:l,setChecked:w,control:N,setControl:S,name:f,form:u,value:g,hasConsumerStoppedPropagationRef:_,required:h,defaultChecked:ci(a)?!1:a,isFormControl:E,bubbleInput:j,setBubbleInput:C};return c.jsx(R7,{scope:t,...R,children:O7(x)?x(R):r})}var mC="CheckboxTrigger",pC=v.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},a)=>{const{control:l,value:u,disabled:f,checked:p,required:h,setControl:g,setChecked:x,hasConsumerStoppedPropagationRef:b,isFormControl:w,bubbleInput:N}=wx(mC,e),S=pt(a,g),j=v.useRef(p);return v.useEffect(()=>{const C=l?.form;if(C){const _=()=>x(j.current);return C.addEventListener("reset",_),()=>C.removeEventListener("reset",_)}},[l,x]),c.jsx(We.button,{type:"button",role:"checkbox","aria-checked":ci(p)?"mixed":p,"aria-required":h,"data-state":bC(p),"data-disabled":f?"":void 0,disabled:f,value:u,...r,ref:S,onKeyDown:Fe(t,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:Fe(n,C=>{x(_=>ci(_)?!0:!_),N&&w&&(b.current=C.isPropagationStopped(),b.current||C.stopPropagation())})})});pC.displayName=mC;var Sx=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,name:r,checked:a,defaultChecked:l,required:u,disabled:f,value:p,onCheckedChange:h,form:g,...x}=e;return c.jsx(k7,{__scopeCheckbox:n,checked:a,defaultChecked:l,disabled:f,required:u,onCheckedChange:h,name:r,form:g,value:p,internal_do_not_use_render:({isFormControl:b})=>c.jsxs(c.Fragment,{children:[c.jsx(pC,{...x,ref:t,__scopeCheckbox:n}),b&&c.jsx(vC,{__scopeCheckbox:n})]})})});Sx.displayName=Mf;var gC="CheckboxIndicator",yC=v.forwardRef((e,t)=>{const{__scopeCheckbox:n,forceMount:r,...a}=e,l=wx(gC,n);return c.jsx(gi,{present:r||ci(l.checked)||l.checked===!0,children:c.jsx(We.span,{"data-state":bC(l.checked),"data-disabled":l.disabled?"":void 0,...a,ref:t,style:{pointerEvents:"none",...e.style}})})});yC.displayName=gC;var xC="CheckboxBubbleInput",vC=v.forwardRef(({__scopeCheckbox:e,...t},n)=>{const{control:r,hasConsumerStoppedPropagationRef:a,checked:l,defaultChecked:u,required:f,disabled:p,name:h,value:g,form:x,bubbleInput:b,setBubbleInput:w}=wx(xC,e),N=pt(n,w),S=hC(l),j=O2(r);v.useEffect(()=>{const _=b;if(!_)return;const E=window.HTMLInputElement.prototype,O=Object.getOwnPropertyDescriptor(E,"checked").set,M=!a.current;if(S!==l&&O){const V=new Event("click",{bubbles:M});_.indeterminate=ci(l),O.call(_,ci(l)?!1:l),_.dispatchEvent(V)}},[b,S,l,a]);const C=v.useRef(ci(l)?!1:l);return c.jsx(We.input,{type:"checkbox","aria-hidden":!0,defaultChecked:u??C.current,required:f,disabled:p,name:h,value:g,form:x,...t,tabIndex:-1,ref:N,style:{...t.style,...j,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});vC.displayName=xC;function O7(e){return typeof e=="function"}function ci(e){return e==="indeterminate"}function bC(e){return ci(e)?"indeterminate":e?"checked":"unchecked"}const pi=v.forwardRef(({className:e,...t},n)=>c.jsx(Sx,{ref:n,className:Qe("grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:c.jsx(yC,{className:Qe("grid place-content-center text-current"),children:c.jsx(gf,{className:"h-4 w-4"})})}));pi.displayName=Sx.displayName;const D7={mp3:"audio/mpeg",m4a:"audio/mp4",mp4:"audio/mp4",wav:"audio/wav",ogg:"audio/ogg",flac:"audio/flac",aac:"audio/aac",opus:"audio/ogg",jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",svg:"image/svg+xml",avif:"image/avif"};function M7(e){if(e.type&&e.type!=="application/octet-stream")return e.type;const t=e.name.toLowerCase().split(".").pop()??"";return D7[t]??"application/octet-stream"}const Pp=5*1024*1024;function Jn({label:e,hint:t,value:n,onChange:r,onDuration:a,accept:l,type:u="any"}){const f=v.useRef(null),p=v.useRef(null),[h,g]=v.useState(!1),[x,b]=v.useState(!1),[w,N]=v.useState(0),[S,j]=v.useState(null),[C,_]=v.useState(!1),[E,R]=v.useState(""),O=l??(u==="image"?"image/*":u==="audio"?"audio/*":"*/*"),M=u==="image"?XN:u==="audio"?og:Rd,V=()=>{navigator.clipboard.writeText(n),g(!0),setTimeout(()=>g(!1),1500)},D=Q=>{const H=Q.trim();H&&(r(H),R(""),_(!1))},F=async Q=>{const H=M7(Q),ne=crypto.randomUUID(),te=Math.max(1,Math.ceil(Q.size/Pp));b(!0),N(0),j(null);try{let oe="",P=Q.name,Y=Q.size;
23for(let le=0;le<te;le++){const k=le*Pp,I=Math.min(k+Pp,Q.size),J=Q.slice(k,I),se=await fetch("/api/storage/uploads/chunk",{method:"POST",headers:{"Content-Type":H,"X-Upload-Id":ne,"X-Chunk-Index":String(le),"X-Total-Chunks":String(te),"X-File-Name":encodeURIComponent(Q.name)},body:J});if(!se.ok){const ve=await se.text().catch(()=>"");throw new Error(`Upload failed (${se.status})${ve?`: ${ve}`:""}`)}const ce=await se.json();N(Math.round((le+1)/te*90)),ce.done&&ce.objectPath&&(oe=ce.objectPath,P=ce.metadata?.name??Q.name,Y=ce.metadata?.size??Q.size)}if(!oe)throw new Error("Upload did not complete");const Z=await fetch("/api/storage/media/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:P,objectPath:oe,contentType:H,size:Y})});if(!Z.ok)throw new Error(`Registration failed (${Z.status})`);N(100),r(`/api/storage${oe}`)}catch(oe){j(oe.message??"Upload failed")}finally{b(!1)}},W=n?decodeURIComponent(n.split("/").pop()??n):null;return c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-bold uppercase tracking-widest text-zinc-400 mb-1",children:e}),n?c.jsxs("div",{className:"bg-zinc-800 border border-zinc-700 rounded-lg p-3 flex items-start gap-3",children:[u==="image"&&c.jsx("img",{src:n,alt:"",className:"w-14 h-14 object-cover rounded-md flex-shrink-0 bg-zinc-700",onError:Q=>{Q.target.style.display="none"}}),u==="audio"&&c.jsx("div",{className:"flex-shrink-0 w-10 h-10 rounded-md bg-zinc-700 flex items-center justify-center",children:c.jsx(og,{className:"w-5 h-5 text-[#3ab54a]"})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-xs text-zinc-300 truncate",children:W??n}),u==="audio"&&n&&c.jsx("audio",{controls:!0,src:n,preload:"metadata",className:"mt-2 w-full h-8 max-w-xs",style:{colorScheme:"dark",accentColor:"#3ab54a"},onLoadedMetadata:Q=>{const H=Q.currentTarget.duration;isFinite(H)&&H>0&&a?.(H)}})]}),c.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[c.jsx("button",{type:"button",onClick:V,className:"p-1.5 rounded text-zinc-400 hover:text-white hover:bg-zinc-700 transition-colors",title:"Copy URL",children:h?c.jsx(gf,{className:"w-3.5 h-3.5 text-[#3ab54a]"}):c.jsx(py,{className:"w-3.5 h-3.5"})}),u==="audio"&&c.jsx("button",{type:"button",onClick:()=>{_(!0),R("")},className:"p-1.5 rounded text-zinc-400 hover:text-white hover:bg-zinc-700 transition-colors",title:"Paste a URL instead",children:c.jsx(t1,{className:"w-3.5 h-3.5"})}),c.jsx("button",{type:"button",onClick:()=>f.current?.click(),disabled:x,className:"p-1.5 rounded text-zinc-400 hover:text-white hover:bg-zinc-700 transition-colors",title:"Replace file",children:c.jsx(Rd,{className:"w-3.5 h-3.5"})}),c.jsx("button",{type:"button",onClick:()=>r(""),className:"p-1.5 rounded text-zinc-400 hover:text-red-400 hover:bg-red-950/30 transition-colors",title:"Remove",children:c.jsx(Ks,{className:"w-3.5 h-3.5"})})]})]}):C&&u==="audio"?c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{ref:p,type:"url",value:E,onChange:Q=>R(Q.target.value),placeholder:"https://… or /assets/audio/file.mp3",autoFocus:!0,className:"flex-1 bg-zinc-800 border border-zinc-700 focus:border-[#3ab54a] rounded-lg px-3 py-2 text-sm text-white placeholder:text-zinc-600 outline-none transition-colors",onKeyDown:Q=>{Q.key==="Enter"&&(Q.preventDefault(),D(E)),Q.key==="Escape"&&(_(!1),R(""))}}),c.jsx("button",{type:"button",onClick:()=>D(E),disabled:!E.trim(),className:"px-3 py-2 rounded-lg bg-[#3ab54a] hover:bg-[#45f68e] disabled:opacity-40 text-black text-sm font-bold transition-colors",children:"Use"}),c.jsx("button",{type:"button",onClick:()=>{_(!1),R("")},className:"px-3 py-2 rounded-lg border border-zinc-700 text-zinc-400 hover:text-white text-sm transition-colors",children:"Cancel"})]}):c.jsxs("div",{className:"space-y-2",children:[c.jsx("button",{type:"button",onClick:()=>f.current?.click(),disabled:x,className:"w-full flex items-center justify-center gap-2 border border-dashed border-zinc-600 hover:border-[#3ab54a] rounded-lg p-4 text-sm text-zinc-400 hover:text-[#3ab54a] transition-colors disabled:opacity-50",children:x?c.jsxs(c.Fragment,{children:[c.jsx(St,{className:"w-4 h-4 animate-spin"}),"Uploading… ",w,"%"]}):c.jsxs(c.Fragment,{children:[c.jsx(M,{className:"w-4 h-4"}),"Choose ",u==="image"?"Image":u==="audio"?"Audio File":"File"]})}),u==="audio"&&!x&&c.jsxs("button",{type:"button",onClick:()=>{_(!0),setTimeout(()=>
23p.current?.focus(),0)},className:"w-full flex items-center justify-center gap-2 border border-zinc-700 hover:border-zinc-500 rounded-lg px-4 py-2.5 text-sm text-zinc-500 hover:text-zinc-300 transition-colors",children:[c.jsx(t1,{className:"w-3.5 h-3.5"}),"Paste a URL"]})]}),x&&c.jsx("div",{className:"mt-1 h-1 bg-zinc-700 rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full bg-[#3ab54a] transition-all",style:{width:`${w}%`}})}),S&&c.jsx("p",{className:"text-xs text-red-400 mt-1",children:S}),c.jsx("input",{ref:f,type:"file",accept:O,className:"hidden",onChange:Q=>{const H=Q.target.files?.[0];H&&F(H),Q.target.value=""}}),t&&!C&&c.jsx("p",{className:"text-xs text-zinc-600 mt-1",children:t})]})}const z7=["January","February","March","April","May","June","July","August","September","October","November","December"],L7=bx({name:He().min(1),slug:He().min(1),month:Eo.number().min(1).max(12),year:Eo.number().min(2e3),dateRange:He().min(1),shortDescription:He().min(1),fullDescription:He().optional(),imageUrl:He().optional(),learnMoreUrl:He().optional(),donateUrl:He().optional(),interviewTitle:He().optional(),guestImageUrl:He().optional(),audioEmbedUrl:He().optional(),audioDuration:He().optional(),videoEmbedUrl:He().optional(),totalRaised:He().optional(),showInArchive:hc().default(!0)});function us({label:e,hint:t,children:n}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-bold uppercase tracking-widest text-zinc-400 mb-1",children:e}),n,t&&c.jsx("p",{className:"text-xs text-zinc-600 mt-1",children:t})]})}function V7(){const{toast:e}=Vn(),t=Tr(),{data:n,isLoading:r}=Dc(),a=Lo(),[l,u]=v.useState(!1),f=yx({resolver:xx(L7),defaultValues:{name:"",slug:"",month:1,year:new Date().getFullYear(),dateRange:"1-31",shortDescription:"",showInArchive:!0}});v.useEffect(()=>{n&&f.reset({name:n.name,slug:n.slug,month:n.month,year:n.year,dateRange:n.dateRange,shortDescription:n.shortDescription,fullDescription:n.fullDescription??"",imageUrl:n.imageUrl??"",learnMoreUrl:n.learnMoreUrl??"",donateUrl:n.donateUrl??"",interviewTitle:n.interviewTitle??"",guestImageUrl:n.guestImageUrl??"",audioEmbedUrl:n.audioEmbedUrl??"",audioDuration:n.audioDuration??"",videoEmbedUrl:n.videoEmbedUrl??"",totalRaised:n.totalRaised??"",showInArchive:n.showInArchive})},[n,f]);const p=h=>{n&&a.mutate({id:n.id,data:{...h,isCurrent:!0}},{onSuccess:()=>{e({title:"Saved",description:"Current org updated."}),u(!0),setTimeout(()=>u(!1),2e3),t.invalidateQueries({queryKey:zo()}),t.invalidateQueries({queryKey:sa()}),t.invalidateQueries({queryKey:Mc()})},onError:()=>e({variant:"destructive",title:"Error",description:"Failed to save."})})};return c.jsx(Ln,{children:c.jsxs("div",{className:"p-8 max-w-3xl mx-auto",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-3xl font-bold uppercase tracking-wide",style:{fontFamily:"'Oswald', sans-serif"},children:"Current Org"}),c.jsx("p",{className:"text-zinc-400 text-sm mt-1",children:"The organization spotlighted this month on the homepage"})]}),c.jsxs("button",{onClick:f.handleSubmit(p),disabled:a.isPending,className:"flex items-center gap-2 px-5 py-2.5 bg-[#3ab54a] hover:bg-[#45f68e] text-black font-bold rounded-lg transition-colors disabled:opacity-50",children:[a.isPending?c.jsx(St,{className:"w-4 h-4 animate-spin"}):c.jsx(fa,{className:"w-4 h-4"}),l?"Saved!":"Save Changes"]})]}),r?c.jsx("div",{className:"flex justify-center py-20",children:c.jsx(St,{className:"w-8 h-8 animate-spin text-[#3ab54a]"})}):n?c.jsxs("form",{onSubmit:f.handleSubmit(p),className:"space-y-6",children:[c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Identity"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(us,{label:"Organization Name",children:c.jsx(ze,{...f.register("name"),className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsx(us,{label:"Slug",hint:"URL-friendly ID (no spaces)",children:c.jsx(ze,{...f.register("slug"),className:"bg-zinc-800 border-zinc-700 text-white"})})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[c.jsx(us,{label:"Month",children:c.jsx("select",{...f.register("month",{valueAsNumber:!0}),className:"w-full bg-zinc-800 border border-zinc-700 text-white rounded-md px-3 py-2 text-sm",children:z7.map((h,g)=>c.jsx("option",{value:g+1,children:h},g))})}),c.jsx(us,{label:"Year",children:c.jsx(ze,{type:"number",...f.register("year",{valueAsNumber:!0}),className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsx(us,{label:"Date Range",hint:'e.g. "1-31"',children:c.jsx(ze,{...f.register("dateRange"),className:"bg-zinc-800 border-zinc-700 text-white"})})]})]}),c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Descriptions"}),c.jsx(us,{label:"Short Description",hint:"Shown in the hero section on the homepage",children:c.jsx(mi,{...f.register("shortDescription"),rows:3,className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsx(us,{label:"Full Description",hint:"Optional extended text",children:c.jsx(mi,{...f.register("fullDescription"),rows:5,className:"bg-zinc-800 border-zinc-700 text-white"})})]}),c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Links"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(us,{label:"Donate / Give Now URL",children:c.jsx(ze,{...f.register("donateUrl"),placeholder:"https://...",className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsx(us,{label:"Learn More URL (Website)",children:c.jsx(ze,{...f.register("learnMoreUrl"),placeholder:"https://...",className:"bg-zinc-800 border-zinc-700 text-white"})})]})]}),c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Media"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Jn,{label:"Org Image",type:"image",value:f.watch("imageUrl")??"",onChange:h=>f.setValue("imageUrl",h)}),c.jsx(Jn,{label:"Guest / Founder Photo",type:"image",value:f.watch("guestImageUrl")??"",onChange:h=>f.setValue("guestImageUrl",h)})]}),c.jsx(Jn,{label:"Audio Segment",type:"audio",hint:"Upload .mp3 or paste a URL — adds a 'Listen' button to the hero",value:f.watch("audioEmbedUrl")??"",onChange:h=>f.setValue("audioEmbedUrl",h),onDuration:h=>{if(!f.getValues("audioDuration")){const g=Math.floor(h/60),x=Math.floor(h%60);f.setValue("audioDuration",`${g}:${x.toString().padStart(2,"0")}`)}}}),c.jsx(us,{label:"Audio Duration",hint:'e.g. "47:10" — auto-fills from the uploaded file',children:c.jsx(ze,{...f.register("audioDuration"),placeholder:"MM:SS",className:"bg-zinc-800 border-zinc-700 text-white font-mono"})}),c.jsx(us,{label:"Video Embed URL",children:c.jsx(ze,{...f.register("videoEmbedUrl"),placeholder:"YouTube embed URL",className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsxs("p",{className:"text-xs text-zinc-600",children:["The interview title is managed in ",c.jsx("strong",{className:"text-zinc-400",children:"Radio / Playlist"}),"."]})]}),c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Archive"}),c.jsx(us,{label:"Total Raised (optional)",hint:'e.g. "$50,000+"',children:c.jsx(ze,{...f.register("totalRaised"),className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[c.jsx(pi,{checked:f.watch("showInArchive"),onCheckedChange:h=>f.setValue("showInArchive",!!h)}),c.jsx("span",{className:"text-sm text-zinc-300",children:"Show in Archive page"})]})]})]}):c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-8 text-center text-zinc-400",children:["No current org set. Use ",c.jsx("strong",{children:"Add New Org"}),' and check "Set as Current".']})]})})}const P7=["January","February","March","April","May","June","July","August","September","October","November","December"],U7=bx({name:He().min(1,"Required"),slug:He().min(1,"Required"),month:Eo.number().min(1).max(12),year:Eo.number().min(2e3),dateRange:He().min(1,"Required"),shortDescription:He().min(1,"Required"),fullDescription:He().optional(),imageUrl:He().optional(),learnMoreUrl:He().optional(),donateUrl:He().optional(),interviewTitle:He().optional(),guestImageUrl:He().optional(),audioEmbedUrl:He().optional(),audioDuration:He().optional(),videoEmbedUrl:He().optional(),totalRaised:He().optional(),isCurrent:hc().default(!0),showInArchive:hc().default(!0)});function Dn({label:e,hint:t,children:n,error:r}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-bold uppercase tracking-widest text-zinc-400 mb-1",children:e}),n,t&&!r&&c.jsx("p",{className:"text-xs text-zinc-600 mt-1",children:t}),r&&c.jsx("p",{className:"text-xs text-red-400 mt-1",children:r})]})}function I7(){const{toast:e}=Vn(),t=Tr(),[,n]=Co(),r=kf(),a=new Date,l=yx({resolver:xx(U7),defaultValues:{month:a.getMonth()+1,year:a.getFullYear(),dateRange:"1-31",isCurrent:!0,showInArchive:!0}}),u=l.formState.errors,f=h=>h.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,""),p=h=>{r.mutate({data:h},{onSuccess:()=>{e({title:"Created",description:`${h.name} has been added.`}),t.invalidateQueries({queryKey:zo()}),t.invalidateQueries({queryKey:sa()}),t.invalidateQueries({queryKey:Mc()}),n("/admin/dashboard")},onError:g=>{const x=g?.response?.data?.error;e({variant:"destructive",title:"Error",description:x??"Failed to create organization."})}})};return c.jsx(Ln,{children:c.jsxs("div",{className:"p-8 max-w-3xl mx-auto",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-3xl font-bold uppercase tracking-wide",style:{fontFamily:"'Oswald', sans-serif"},children:"Add New Org"}),c.jsx("p",{className:"text-zinc-400 text-sm mt-1",children:"Promote a new organization as the monthly spotlight"})]}),c.jsxs("button",{onClick:l.handleSubmit(p),disabled:r.isPending,className:"flex items-center gap-2 px-5 py-2.5 bg-[#3ab54a] hover:bg-[#45f68e] text-black font-bold rounded-lg transition-colors disabled:opacity-50",children:[r.isPending?c.jsx(St,{className:"w-4 h-4 animate-spin"}):c.jsx(jc,{className:"w-4 h-4"}),"Add Organization"]})]}),c.jsxs("form",{onSubmit:l.handleSubmit(p),className:"space-y-6",children:[c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Identity"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Dn,{label:"Organization Name",error:u.name?.message,children:c.jsx(ze,{...l.register("name"),className:"bg-zinc-800 border-zinc-700 text-white",onCh
23ange:h=>{l.setValue("name",h.target.value),l.getValues("slug")||l.setValue("slug",f(h.target.value))}})}),c.jsx(Dn,{label:"Slug",hint:"Auto-generated, but editable",error:u.slug?.message,children:c.jsx(ze,{...l.register("slug"),className:"bg-zinc-800 border-zinc-700 text-white"})})]}),c.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[c.jsx(Dn,{label:"Month",children:c.jsx("select",{...l.register("month",{valueAsNumber:!0}),className:"w-full bg-zinc-800 border border-zinc-700 text-white rounded-md px-3 py-2 text-sm",children:P7.map((h,g)=>c.jsx("option",{value:g+1,children:h},g))})}),c.jsx(Dn,{label:"Year",children:c.jsx(ze,{type:"number",...l.register("year",{valueAsNumber:!0}),className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsx(Dn,{label:"Date Range",hint:'e.g. "1-31"',children:c.jsx(ze,{...l.register("dateRange"),className:"bg-zinc-800 border-zinc-700 text-white"})})]})]}),c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Descriptions"}),c.jsx(Dn,{label:"Short Description",hint:"Shown in the hero/featured section",error:u.shortDescription?.message,children:c.jsx(mi,{...l.register("shortDescription"),rows:3,className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsx(Dn,{label:"Full Description",hint:"Optional — extended background",children:c.jsx(mi,{...l.register("fullDescription"),rows:5,className:"bg-zinc-800 border-zinc-700 text-white"})})]}),c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Links"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Dn,{label:"Donate / Give Now URL",children:c.jsx(ze,{...l.register("donateUrl"),placeholder:"https://...",className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsx(Dn,{label:"Learn More URL (Website)",children:c.jsx(ze,{...l.register("learnMoreUrl"),placeholder:"https://...",className:"bg-zinc-800 border-zinc-700 text-white"})})]})]}),c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Media"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Dn,{label:"Org Image URL",children:c.jsx(ze,{...l.register("imageUrl"),placeholder:"https://...",className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsx(Dn,{label:"Guest / Founder Photo URL",children:c.jsx(ze,{...l.register("guestImageUrl"),placeholder:"https://...",className:"bg-zinc-800 border-zinc-700 text-white"})})]}),c.jsx(Dn,{label:"Interview Guest Title",hint:"Shown on audio player card",children:c.jsx(ze,{...l.register("interviewTitle"),placeholder:"e.g. Founder — Jane Doe",className:"bg-zinc-800 border-zinc-700 text-white"})}),c.jsx(Jn,{label:"Audio Segment",type:"audio",hint:"Upload .mp3 or paste a URL — adds a 'Listen' button to the hero",value:l.watch("audioEmbedUrl")??"",onChange:h=>l.setValue("audioEmbedUrl",h),onDuration:h=>{if(!l.getValues("audioDuration")){const g=Math.floor(h/60),x=Math.floor(h%60);l.setValue("audioDuration",`${g}:${x.toString().padStart(2,"0")}`)}}}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Dn,{label:"Audio Duration",hint:'e.g. "47:10" — auto-fills from the uploaded file',children:c.jsx(ze,{...l.register("audioDuration"),placeholder:"MM:SS",className:"bg-zinc-800 border-zinc-700 text-white font-mono"})}),c.jsx(Dn,{label:"Video Embed URL",children:c.jsx(ze,{...l.register("videoEmbedUrl"),placeholder:"YouTube embed URL",className:"bg-zinc-800 border-zinc-700 text-white"})})]})]}),c.jsxs("section",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-4",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a] mb-4",children:"Settings"}),c.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[c.jsx(pi,{checked:l.watch("isCurrent"),onCheckedChange:h=>l.setValue("isCurrent",!!h)}),c.jsxs("div",{children:[c.jsx("span",{className:"text-sm font-bold text-white",children:"Set as Current Month Spotlight"}),c.jsx("p",{className:"text-xs text-zinc-500",children:"Will unset the previous current org automatically"})]})]}),c.jsxs("label",{className:"flex items-center gap-3 cursor-pointer",children:[c.jsx(pi,{checked:l.watch("showInArchive"),onCheckedChange:h=>l.setValue("showInArchive",!!h)}),c.jsx("span",{className:"text-sm text-zinc-300",children:"Show in Archive page"})]})]})]})]})})}function F7(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>r=>{t.forEach(a=>a(r))},t)}const zf=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vo(e){const t=Object.prototype.toString.call(e);return t==="[object Window]"||t==="[object global]"}function jx(e){return"nodeType"in e}function Cn(e){var t,n;return e?Vo(e)?e:jx(e)&&(t=(n=e.ownerDocument)==null?void 0:n.defaultView)!=null?t:window:window}function Nx(e){const{Document:t}=Cn(e);return e instanceof t}function Lc(e){return Vo(e)?!1:e instanceof Cn(e).HTMLElement}function wC(e){return e instanceof Cn(e).SVGElement}function Po(e){return e?Vo(e)?e.document:jx(e)?Nx(e)?e:Lc(e)||wC(e)?e.ownerDocument:document:document:document}const ks=zf?v.useLayoutEffect:v.useEffect;function Lf(e){const t=v.useRef(e);return ks(()=>{t.current=e}),v.useCallback(function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];return t.current==null?void 0:t.current(...r)},[])}function B7(){const e=v.useRef(null),t=v.useCallback((r,a)=>{e.current=setInterval(r,a)},[]),n=v.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[t,n]}
23function mc(e,t){t===void 0&&(t=[e]);const n=v.useRef(e);return ks(()=>{n.current!==e&&(n.current=e)},t),n}function Vc(e,t){const n=v.useRef();return v.useMemo(()=>{const r=e(n.current);return n.current=r,r},[...t])}function tf(e){const t=Lf(e),n=v.useRef(null),r=v.useCallback(a=>{a!==n.current&&t?.(a,n.current),n.current=a},[]);return[n,r]}function nf(e){const t=v.useRef();return v.useEffect(()=>{t.current=e},[e]),t.current}let Up={};function Pc(e,t){return v.useMemo(()=>{if(t)return t;const n=Up[e]==null?0:Up[e]+1;return Up[e]=n,e+"-"+n},[e,t])}function SC(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return r.reduce((l,u)=>{const f=Object.entries(u);for(const[p,h]of f){const g=l[p];g!=null&&(l[p]=g+e*h)}return l},{...t})}}const go=SC(1),pc=SC(-1);function H7(e){return"clientX"in e&&"clientY"in e}function Vf(e){if(!e)return!1;const{KeyboardEvent:t}=Cn(e.target);return t&&e instanceof t}function q7(e){if(!e)return!1;const{TouchEvent:t}=Cn(e.target);return t&&e instanceof t}function sf(e){if(q7(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return H7(e)?{x:e.clientX,y:e.clientY}:null}const Nr=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Nr.Translate.toString(e),Nr.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),bj="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function $7(e){return e.matches(bj)?e:e.querySelector(bj)}const G7={display:"none"};function Y7(e){let{id:t,value:n}=e;return me.createElement("div",{id:t,style:G7},n)}function K7(e){let{id:t,announcement:n,ariaLiveType:r="assertive"}=e;const a={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return me.createElement("div",{id:t,style:a,role:"status","aria-live":r,"aria-atomic":!0},n)}function X7(){const[e,t]=v.useState("");return{announce:v.useCallback(r=>{r!=null&&t(r)},[]),announcement:e}}const jC=v.createContext(null);function Z7(e){const t=v.useContext(jC);v.useEffect(()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}function Q7(){const[e]=v.useState(()=>new Set),t=v.useCallback(r=>(e.add(r),()=>e.delete(r)),[e]);return[v.useCallback(r=>{let{type:a,event:l}=r;e.forEach(u=>{var f;return(f=u[a])==null?void 0:f.call(u,l)})},[e]),t]}const W7={draggable:`
24    To pick up a draggable item, press the space bar.
25    While dragging, use the arrow keys to move the item.
26    Press space again to drop the item in its new position, or press escape to cancel.
27  `},J7={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function e9(e){let{announcements:t=J7,container:n,hiddenTextDescribedById:r,screenReaderInstructions:a=W7}=e;const{announce:l,announcement:u}=X7(),f=Pc("DndLiveRegion"),[p,h]=v.useState(!1);if(v.useEffect(()=>{h(!0)},[]),Z7(v.useMemo(()=>({onDragStart(x){let{active:b}=x;l(t.onDragStart({active:b}))},onDragMove(x){let{active:b,over:w}=x;t.onDragMove&&l(t.onDragMove({active:b,over:w}))},onDragOver(x){let{active:b,over:w}=x;l(t.onDragOver({active:b,over:w}))},onDragEnd(x){let{active:b,over:w}=x;l(t.onDragEnd({active:b,over:w}))},onDragCancel(x){let{active:b,over:w}=x;
27l(t.onDragCancel({active:b,over:w}))}}),[l,t])),!p)return null;const g=me.createElement(me.Fragment,null,me.createElement(Y7,{id:r,value:a.draggable}),me.createElement(K7,{id:f,announcement:u}));return n?Ts.createPortal(g,n):g}var $t;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})($t||($t={}));function rf(){}function Gg(e,t){return v.useMemo(()=>({sensor:e,options:t??{}}),[e,t])}function NC(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return v.useMemo(()=>[...t].filter(r=>r!=null),[...t])}const Os=Object.freeze({x:0,y:0});function TC(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function t9(e,t){const n=sf(e);if(!n)return"0 0";const r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+"% "+r.y+"%"}function EC(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function n9(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function wj(e){let{left:t,top:n,height:r,width:a}=e;return[{x:t,y:n},{x:t+a,y:n},{x:t,y:n+r},{x:t+a,y:n+r}]}function CC(e,t){if(!e||e.length===0)return null;const[n]=e;return n[t]}function Sj(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}const _C=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=Sj(t,t.left,t.top),l=[];for(const u of r){const{id:f}=u,p=n.get(f);if(p){const h=TC(Sj(p),a);l.push({id:f,data:{droppableContainer:u,value:h}})}}return l.sort(EC)},s9=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=wj(t),l=[];for(const u of r){const{id:f}=u,p=n.get(f);if(p){const h=wj(p),g=a.reduce((b,w,N)=>b+TC(h[N],w),0),x=Number((g/4).toFixed(4));l.push({id:f,data:{droppableContainer:u,value:x}})}}return l.sort(EC)};function r9(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),a=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height),u=a-r,f=l-n;if(r<a&&n<l){const p=t.width*t.height,h=e.width*e.height,g=u*f,x=g/(p+h-g);return Number(x.toFixed(4))}return 0}const i9=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const a=[];for(const l of r){const{id:u}=l,f=n.get(u);if(f){const p=r9(f,t);p>0&&a.push({id:u,data:{droppableContainer:l,value:p}})}}return a.sort(n9)};function a9(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function AC(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Os}function o9(e){return function(n){for(var r=arguments.length,a=new Array(r>1?r-1:0),l=1;l<r;l++)a[l-1]=arguments[l];return a.reduce((u,f)=>({...u,top:u.top+e*f.y,bottom:u.bottom+e*f.y,left:u.left+e*f.x,right:u.right+e*f.x}),{...n})}}const l9=o9(1);function RC(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}else if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function c9(e,t,n){const r=RC(t);if(!r)return e;const{scaleX:a,scaleY:l,x:u,y:f}=r,p=e.left-u-(1-a)*parseFloat(n),h=e.top-f-(1-l)*parseFloat(n.slice(n.indexOf(" ")+1)),g=a?e.width/a:e.width,x=l?e.height/l:e.height;return{width:g,height:x,top:h,right:p+g,bottom:h+x,left:p}}const u9={ignoreTransform:!1};function Uo(e,t){t===void 0&&(t=u9);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:h,transformOrigin:g}=Cn(e).getComputedStyle(e);h&&(n=c9(n,h,g))}const{top:r,left:a,width:l,height:u,bottom:f,right:p}=n;return{top:r,left:a,width:l,height:u,bottom:f,right:p}}function jj(e){return Uo(e,{ignoreTransform:!0})}function d9(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function f9(e,t){return t===void 0&&(t=Cn(e).getComputedStyle(e)),t.position==="fixed"}function h9(e,t){t===void 0&&(t=Cn(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(a=>{const l=t[a];return typeof l=="string"?n.test(l):!1})}function Pf(e,t){const n=[];function r(a){if(t!=null&&n.length>=t||!a)return n;if(Nx(a)&&a.scrollingElement!=null&&!n.includes(a.scrollingElement))return n.push(a.scrollingElement),n;if(!Lc(a)||wC(a)||n.includes(a))return n;const l=Cn(e).getComputedStyle(a);return a!==e&&h9(a,l)&&n.push(a),f9(a,l)?n:r(a.parentNode)}return e?r(e):n}function kC(e){const[t]=Pf(e,1);return t??null}function Ip(e){return!zf||!e?null:Vo(e)?e:jx(e)?Nx(e)||e===Po(e).scrollingElement?window:Lc(e)?e:null:null}function OC(e){return Vo(e)?e.scrollX:e.scrollLeft}function DC(e){return Vo(e)?e.scrollY:e.scrollTop}function Yg(e){return{x:OC(e),y:DC(e)}}var Wt;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Wt||(Wt={}));function MC(e){return!zf||!e?!1:e===document.scrollingElement}function zC(e){const t={x:0,y:0},n=MC(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height},a=e.scrollTop<=t.y,l=e.scrollLeft<=t.x,u=e.scrollTop>=r.y,f=e.scrollLeft>=r.x;return{isTop:a,isLeft:l,isBottom:u,isRight:f,maxScroll:r,minScroll:t}}const m9={x:.2,y:.2};function p9(e,t,n,r,a){let{top:l,left:u,right:f,bottom:p}=n;r===void 0&&(r=10),a===void 0&&(a=m9);const{isTop:h,isBottom:g,isLeft:x,isRight:b}=zC(e),w={x:0,y:0},N={x:0,y:0},S={height:t.height*a.y,width:t.width*a.x};return!h&&l<=t.top+S.height?(w.y=Wt.Backward,N.y=r*Math.abs((t.top+S.height-l)/S.height)):!g&&p>=t.bottom-S.height&&(w.y=Wt.Forward,N.y=r*Math.abs((t.bottom-S.height-p)/S.height)),!b&&f>=t.right-S.width?(w.x=Wt.Forward,N.x=r*Math.abs((t.right-S.width-f)/S.width)):!x&&u<=t.left+S.width&&(w.x=Wt.Backward,N.x=r*Math.abs((t.left+S.width-u)/S.width)),{direction:w,speed:N}}function g9(e){if(e===document.scrollingElement){const{innerWidth:l,innerHe
27ight:u}=window;return{top:0,left:0,right:l,bottom:u,width:l,height:u}}const{top:t,left:n,right:r,bottom:a}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:a,width:e.clientWidth,height:e.clientHeight}}function LC(e){return e.reduce((t,n)=>go(t,Yg(n)),Os)}function y9(e){return e.reduce((t,n)=>t+OC(n),0)}function x9(e){return e.reduce((t,n)=>t+DC(n),0)}function VC(e,t){if(t===void 0&&(t=Uo),!e)return;const{top:n,left:r,bottom:a,right:l}=t(e);kC(e)&&(a<=0||l<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const v9=[["x",["left","right"],y9],["y",["top","bottom"],x9]];class Tx{constructor(t,n){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const r=Pf(n),a=LC(r);this.rect={...t},this.width=t.width,this.height=t.height;for(const[l,u,f]of v9)for(const p of u)Object.defineProperty(this,p,{get:()=>{const h=f(r),g=a[l]-h;return this.rect[p]+g},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class ec{constructor(t){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(n=>{var r;return(r=this.target)==null?void 0:r.removeEventListener(...n)})},this.target=t}add(t,n,r){var a;(a=this.target)==null||a.addEventListener(t,n,r),this.listeners.push([t,n,r])}}function b9(e){const{EventTarget:t}=Cn(e);return e instanceof t?e:Po(e)}function Fp(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return typeof t=="number"?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t?r>t.y:!1}var fs;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(fs||(fs={}));function Nj(e){e.preventDefault()}function w9(e){e.stopPropagation()}var Je;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Je||(Je={}));const PC={start:[Je.Space,Je.Enter],cancel:[Je.Esc],end:[Je.Space,Je.Enter,Je.Tab]},S9=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case Je.Right:return{...n,x:n.x+25};case Je.Left:return{...n,x:n.x-25};case Je.Down:return{...n,y:n.y+25};case Je.Up:return{...n,y:n.y-25}}};class Ex{constructor(t){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=t;const{event:{target:n}}=t;this.props=t,this.listeners=new ec(Po(n)),this.windowListeners=new ec(Cn(n)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(fs.Resize,this.handleCancel),this.windowListeners.add(fs.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(fs.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:t,onStart:n}=this.props,r=t.node.current;r&&VC(r),n(Os)}handleKeyDown(t){if(Vf(t)){const{active:n,context:r,options:a}=this.props,{keyboardCodes:l=PC,coordinateGetter:u=S9,scrollBehavior:f="smooth"}=a,{code:p}=t;if(l.end.includes(p)){this.handleEnd(t);return}if(l.cancel.includes(p)){this.handleCancel(t);return}const{collisionRect:h}=r.current,g=h?{x:h.left,y:h.top}:Os;this.referenceCoordinates||(this.referenceCoordinates=g);const x=u(t,{active:n,context:r.current,currentCoordinates:g});if(x){const b=pc(x,g),w={x:0,y:0},{scrollableAncestors:N}=r.current;for(const S of N){const j=t.code,{isTop:C,isRight:_,isLeft:E,isBottom:R,maxScroll:O,minScroll:M}=zC(S),V=g9(S),D={x:Math.min(j===Je.Right?V.right-V.width/2:V.right,Math.max(j===Je.Right?V.left:V.left+V.width/2,x.x)),y:Math.min(j===Je.Down?V.bottom-V.height/2:V.bottom,Math.max(j===Je.Down?V.top:V.top+V.height/2,x.y))},F=j===Je.Right&&!_||j===Je.Left&&!E,W=j===Je.Down&&!R||j===Je.Up&&!C;if(F&&D.x!==x.x){const Q=S.scrollLeft+b.x,H=j===Je.Right&&Q<=O.x||j===Je.Left&&Q>=M.x;if(H&&!b.y){S.scrollTo({left:Q,behavior:f});return}H?w.x=S.scrollLeft-Q:w.x=j===Je.Right?S.scrollLeft-O.x:S.scrollLeft-M.x,w.x&&S.scrollBy({left:-w.x,behavior:f});break}else if(W&&D.y!==x.y){const Q=S.scrollTop+b.y,H=j===Je.Down&&Q<=O.y||j===Je.Up&&Q>=M.y;
27if(H&&!b.x){S.scrollTo({top:Q,behavior:f});return}H?w.y=S.scrollTop-Q:w.y=j===Je.Down?S.scrollTop-O.y:S.scrollTop-M.y,w.y&&S.scrollBy({top:-w.y,behavior:f});break}}this.handleMove(t,go(pc(x,this.referenceCoordinates),w))}}}handleMove(t,n){const{onMove:r}=this.props;t.preventDefault(),r(n)}handleEnd(t){const{onEnd:n}=this.props;t.preventDefault(),this.detach(),n()}handleCancel(t){const{onCancel:n}=this.props;t.preventDefault(),this.detach(),n()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Ex.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=PC,onActivation:a}=t,{active:l}=n;const{code:u}=e.nativeEvent;if(r.start.includes(u)){const f=l.activatorNode.current;return f&&e.target!==f?!1:(e.preventDefault(),a?.({event:e.nativeEvent}),!0)}return!1}}];function Tj(e){return!!(e&&"distance"in e)}function Ej(e){return!!(e&&"delay"in e)}class Cx{constructor(t,n,r){var a;r===void 0&&(r=b9(t.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=t,this.events=n;const{event:l}=t,{target:u}=l;this.props=t,this.events=n,this.document=Po(u),this.documentListeners=new ec(this.document),this.listeners=new ec(r),this.windowListeners=new ec(Cn(u)),this.initialCoordinates=(a=sf(l))!=null?a:Os,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:t,props:{options:{activationConstraint:n,bypassActivationConstraint:r}}}=this;if(this.listeners.add(t.move.name,this.handleMove,{passive:!1}),this.listeners.add(t.end.name,this.handleEnd),t.cancel&&this.listeners.add(t.cancel.name,this.handleCancel),this.windowListeners.add(fs.Resize,this.handleCancel),this.windowListeners.add(fs.DragStart,Nj),this.windowListeners.add(fs.VisibilityChange,this.handleCancel),this.windowListeners.add(fs.ContextMenu,Nj),this.documentListeners.add(fs.Keydown,this.handleKeydown),n){if(r!=null&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Ej(n)){this.timeoutId=setTimeout(this.handleStart,n.delay),this.handlePending(n);return}if(Tj(n)){this.handlePending(n);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(t,n){const{active:r,onPending:a}=this.props;a(r,t,this.initialCoordinates,n)}handleStart(){const{initialCoordinates:t}=this,{onStart:n}=this.props;t&&(this.activated=!0,this.documentListeners.add(fs.Click,w9,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(fs.SelectionChange,this.removeTextSelection),n(t))}handleMove(t){var n;const{activated:r,initialCoordinates:a,props:l}=this,{onMove:u,options:{activationConstraint:f}}=l;if(!a)return;const p=(n=sf(t))!=null?n:Os,h=pc(a,p);if(!r&&f){if(Tj(f)){if(f.tolerance!=null&&Fp(h,f.tolerance))return this.handleCancel();if(Fp(h,f.distance))return this.handleStart()}if(Ej(f)&&Fp(h,f.tolerance))return this.handleCancel();this.handlePending(f,h);return}t.cancelable&&t.preventDefault(),u(p)}handleEnd(){const{onAbort:t,onEnd:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleCancel(){const{onAbort:t,onCancel:n}=this.props;this.detach(),this.activated||t(this.props.active),n()}handleKeydown(t){t.code===Je.Esc&&this.handleCancel()}removeTextSelection(){var t;(t=this.document.getSelection())==null||t.removeAllRanges()}}const j9={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class Uf extends Cx{constructor(t){const{event:n}=t,r=Po(n.target);super(t,j9,r)}}Uf.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];const N9={move:{name:"mousemove"},end:{name:"mouseup"}};var Kg;(function(e){e[e.RightClick=2]="RightClick"})(Kg||(Kg={}));class T9 extends Cx{constructor(t){super(t,N9,Po(t.event.target))}}T9.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button===Kg.RightClick?!1:(r?.({event:n}),!0)}}];const Bp={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class E9 extends Cx{constructor(t){super(t,Bp)}static setup(){return window.addEventListener(Bp.move.name,t,{capture:!1,passive:!1}),function(){window.removeEventListener(Bp.move.name,t)};function t(){}}}E9.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:a}=n;return a.length>1?!1:(r?.({event:n}),!0)}}];var tc;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(tc||(tc={}));var af;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="Rever
27sedTreeOrder"})(af||(af={}));function C9(e){let{acceleration:t,activator:n=tc.Pointer,canScroll:r,draggingRect:a,enabled:l,interval:u=5,order:f=af.TreeOrder,pointerCoordinates:p,scrollableAncestors:h,scrollableAncestorRects:g,delta:x,threshold:b}=e;const w=A9({delta:x,disabled:!l}),[N,S]=B7(),j=v.useRef({x:0,y:0}),C=v.useRef({x:0,y:0}),_=v.useMemo(()=>{switch(n){case tc.Pointer:return p?{top:p.y,bottom:p.y,left:p.x,right:p.x}:null;case tc.DraggableRect:return a}},[n,a,p]),E=v.useRef(null),R=v.useCallback(()=>{const M=E.current;if(!M)return;const V=j.current.x*C.current.x,D=j.current.y*C.current.y;M.scrollBy(V,D)},[]),O=v.useMemo(()=>f===af.TreeOrder?[...h].reverse():h,[f,h]);v.useEffect(()=>{if(!l||!h.length||!_){S();return}for(const M of O){if(r?.(M)===!1)continue;const V=h.indexOf(M),D=g[V];if(!D)continue;const{direction:F,speed:W}=p9(M,D,_,t,b);for(const Q of["x","y"])w[Q][F[Q]]||(W[Q]=0,F[Q]=0);if(W.x>0||W.y>0){S(),E.current=M,N(R,u),j.current=W,C.current=F;return}}j.current={x:0,y:0},C.current={x:0,y:0},S()},[t,R,r,S,l,u,JSON.stringify(_),JSON.stringify(w),N,h,O,g,JSON.stringify(b)])}const _9={x:{[Wt.Backward]:!1,[Wt.Forward]:!1},y:{[Wt.Backward]:!1,[Wt.Forward]:!1}};function A9(e){let{delta:t,disabled:n}=e;const r=nf(t);return Vc(a=>{if(n||!r||!a)return _9;const l={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[Wt.Backward]:a.x[Wt.Backward]||l.x===-1,[Wt.Forward]:a.x[Wt.Forward]||l.x===1},y:{[Wt.Backward]:a.y[Wt.Backward]||l.y===-1,[Wt.Forward]:a.y[Wt.Forward]||l.y===1}}},[n,t,r])}function R9(e,t){const n=t!=null?e.get(t):void 0,r=n?n.node.current:null;return Vc(a=>{var l;return t==null?null:(l=r??a)!=null?l:null},[r,t])}function k9(e,t){return v.useMemo(()=>e.reduce((n,r)=>{const{sensor:a}=r,l=a.activators.map(u=>({eventName:u.eventName,handler:t(u.handler,r)}));return[...n,...l]},[]),[e,t])}var gc;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(gc||(gc={}));var Xg;(function(e){e.Optimized="optimized"})(Xg||(Xg={}));const Cj=new Map;function O9(e,t){let{dragging:n,dependencies:r,config:a}=t;const[l,u]=v.useState(null),{frequency:f,measure:p,strategy:h}=a,g=v.useRef(e),x=j(),b=mc(x),w=v.useCallback(function(C){C===void 0&&(C=[]),!b.current&&u(_=>_===null?C:_.concat(C.filter(E=>!_.includes(E))))},[b]),N=v.useRef(null),S=Vc(C=>{if(x&&!n)return Cj;if(!C||C===Cj||g.current!==e||l!=null){const _=new Map;for(let E of e){if(!E)continue;if(l&&l.length>0&&!l.includes(E.id)&&E.rect.current){_.set(E.id,E.rect.current);continue}const R=E.node.current,O=R?new Tx(p(R),R):null;E.rect.current=O,O&&_.set(E.id,O)}return _}return C},[e,l,n,x,p]);return v.useEffect(()=>{g.current=e},[e]),v.useEffect(()=>{x||w()},[n,x]),v.useEffect(()=>{l&&l.length>0&&u(null)},[JSON.stringify(l)]),v.useEffect(()=>{x||typeof f!="number"||N.current!==null||(N.current=setTimeout(()=>{w(),N.current=null},f))},[f,x,w,...r]),{droppableRects:S,measureDroppableContainers:w,measuringScheduled:l!=null};function j(){switch(h){case gc.Always:return!1;case gc.BeforeDragging:return n;default:return!n}}}function _x(e,t){return Vc(n=>e?n||(typeof t=="function"?t(e):e):null,[t,e])}function D9(e,t){return _x(e,t)}function M9(e){let{callback:t,disabled:n}=e;const r=Lf(t),a=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:l}=window;return new l(r)},[r,n]);return v.useEffect(()=>()=>a?.disconnect(),[a]),a}function If(e){let{callback:t,disabled:n}=e;const r=Lf(t),a=v.useMemo(()=>{if(n||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:l}=window;return new l(r)},[n]);return v.useEffect(()=>()=>a?.disconnect(),[a]),a}function z9(e){return new Tx(Uo(e),e)}function _j(e,t,n){t===void 0&&(t=z9);const[r,a]=v.useState(null);function l(){a(p=>{if(!e)return null;if(e.isConnected===!1){var h;return(h=p??n)!=null?h:null}const g=t(e);return JSON.stringify(p)===JSON.stringify(g)?p:g})}const u=M9({callback(p){if(e)for(const h of p){const{type:g,target:x}=h;if(g==="childList"&&x instanceof HTMLElement&&x.contains(e)){l();break}}}}),f=If({callback:l});return ks(()=>
27{l(),e?(f?.observe(e),u?.observe(document.body,{childList:!0,subtree:!0})):(f?.disconnect(),u?.disconnect())},[e]),r}function L9(e){const t=_x(e);return AC(e,t)}const Aj=[];function V9(e){const t=v.useRef(e),n=Vc(r=>e?r&&r!==Aj&&e&&t.current&&e.parentNode===t.current.parentNode?r:Pf(e):Aj,[e]);return v.useEffect(()=>{t.current=e},[e]),n}function P9(e){const[t,n]=v.useState(null),r=v.useRef(e),a=v.useCallback(l=>{const u=Ip(l.target);u&&n(f=>f?(f.set(u,Yg(u)),new Map(f)):null)},[]);return v.useEffect(()=>{const l=r.current;if(e!==l){u(l);const f=e.map(p=>{const h=Ip(p);return h?(h.addEventListener("scroll",a,{passive:!0}),[h,Yg(h)]):null}).filter(p=>p!=null);n(f.length?new Map(f):null),r.current=e}return()=>{u(e),u(l)};function u(f){f.forEach(p=>{const h=Ip(p);h?.removeEventListener("scroll",a)})}},[a,e]),v.useMemo(()=>e.length?t?Array.from(t.values()).reduce((l,u)=>go(l,u),Os):LC(e):Os,[e,t])}function Rj(e,t){t===void 0&&(t=[]);const n=v.useRef(null);return v.useEffect(()=>{n.current=null},t),v.useEffect(()=>{const r=e!==Os;r&&!n.current&&(n.current=e),!r&&n.current&&(n.current=null)},[e]),n.current?pc(e,n.current):Os}function U9(e){v.useEffect(()=>{if(!zf)return;const t=e.map(n=>{let{sensor:r}=n;return r.setup==null?void 0:r.setup()});return()=>{for(const n of t)n?.()}},e.map(t=>{let{sensor:n}=t;return n}))}function I9(e,t){return v.useMemo(()=>e.reduce((n,r)=>{let{eventName:a,handler:l}=r;return n[a]=u=>{l(u,t)},n},{}),[e,t])}function UC(e){return v.useMemo(()=>e?d9(e):null,[e])}const kj=[];function F9(e,t){t===void 0&&(t=Uo);const[n]=e,r=UC(n?Cn(n):null),[a,l]=v.useState(kj);function u(){l(()=>e.length?e.map(p=>MC(p)?r:new Tx(t(p),p)):kj)}const f=If({callback:u});return ks(()=>{f?.disconnect(),u(),e.forEach(p=>f?.observe(p))},[e]),a}function IC(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return Lc(t)?t:e}function B9(e){let{measure:t}=e;const[n,r]=v.useState(null),a=v.useCallback(h=>{for(const{target:g}of h)if(Lc(g)){r(x=>{const b=t(g);return x?{...x,width:b.width,height:b.height}:b});break}},[t]),l=If({callback:a}),u=v.useCallback(h=>{const g=IC(h);l?.disconnect(),g&&l?.observe(g),r(g?t(g):null)},[t,l]),[f,p]=tf(u);return v.useMemo(()=>({nodeRef:f,rect:n,setRef:p}),[n,f,p])}const H9=[{sensor:Uf,options:{}},{sensor:Ex,options:{}}],q9={current:{}},Nd={draggable:{measure:jj},droppable:{measure:jj,strategy:gc.WhileDragging,frequency:Xg.Optimized},dragOverlay:{measure:Uo}};class nc extends Map{get(t){var n;return t!=null&&(n=super.get(t))!=null?n:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(t=>{let{disabled:n}=t;return!n})}getNodeFor(t){var n,r;return(n=(r=this.get(t))==null?void 0:r.node.current)!=null?n:void 0}}const $9={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new nc,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:rf},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Nd,measureDroppableContainers:rf,windowRect:null,measuringScheduled:!1},FC={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:rf,draggableNodes:new Map,over:null,measureDroppableContainers:rf},Uc=v.createContext(FC),BC=v.createContext($9);function G9(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new nc}}}function Y9(e,t){switch(t.type){case $t.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case $t.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case $t.DragEnd:case $t.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case $t.RegisterDroppable:{const{element:n}=t,{id:r}=n,a=new nc(e.droppable.containers);return a.set(r,n),{...e,droppable:{...e.droppable,containers:a}}}case $t.SetDroppableDisabled:{const{id:n,key:r,disabled:a}=t,l=e.droppable.containers.get(n);if(!l||r!==l.key)return e;
27const u=new nc(e.droppable.containers);return u.set(n,{...l,disabled:a}),{...e,droppable:{...e.droppable,containers:u}}}case $t.UnregisterDroppable:{const{id:n,key:r}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;const l=new nc(e.droppable.containers);return l.delete(n),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function K9(e){let{disabled:t}=e;const{active:n,activatorEvent:r,draggableNodes:a}=v.useContext(Uc),l=nf(r),u=nf(n?.id);return v.useEffect(()=>{if(!t&&!r&&l&&u!=null){if(!Vf(l)||document.activeElement===l.target)return;const f=a.get(u);if(!f)return;const{activatorNode:p,node:h}=f;if(!p.current&&!h.current)return;requestAnimationFrame(()=>{for(const g of[p.current,h.current]){if(!g)continue;const x=$7(g);if(x){x.focus();break}}})}},[r,t,a,u,l]),null}function HC(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((a,l)=>l({transform:a,...r}),n):n}function X9(e){return v.useMemo(()=>({draggable:{...Nd.draggable,...e?.draggable},droppable:{...Nd.droppable,...e?.droppable},dragOverlay:{...Nd.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Z9(e){let{activeNode:t,measure:n,initialRect:r,config:a=!0}=e;const l=v.useRef(!1),{x:u,y:f}=typeof a=="boolean"?{x:a,y:a}:a;ks(()=>{if(!u&&!f||!t){l.current=!1;return}if(l.current||!r)return;const h=t?.node.current;if(!h||h.isConnected===!1)return;const g=n(h),x=AC(g,r);if(u||(x.x=0),f||(x.y=0),l.current=!0,Math.abs(x.x)>0||Math.abs(x.y)>0){const b=kC(h);b&&b.scrollBy({top:x.y,left:x.x})}},[t,u,f,r,n])}const Ff=v.createContext({...Os,scaleX:1,scaleY:1});var ri;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(ri||(ri={}));const qC=v.memo(function(t){var n,r,a,l;let{id:u,accessibility:f,autoScroll:p=!0,children:h,sensors:g=H9,collisionDetection:x=i9,measuring:b,modifiers:w,...N}=t;const S=v.useReducer(Y9,void 0,G9),[j,C]=S,[_,E]=Q7(),[R,O]=v.useState(ri.Uninitialized),M=R===ri.Initialized,{draggable:{active:V,nodes:D,translate:F},droppable:{containers:W}}=j,Q=V!=null?D.get(V):null,H=v.useRef({initial:null,translated:null}),ne=v.useMemo(()=>{var Tt;return V!=null?{id:V,data:(Tt=Q?.data)!=null?Tt:q9,rect:H}:null},[V,Q]),te=v.useRef(null),[oe,P]=v.useState(null),[Y,Z]=v.useState(null),le=mc(N,Object.values(N)),k=Pc("DndDescribedBy",u),I=v.useMemo(()=>W.getEnabled(),[W]),J=X9(b),{droppableRects:se,measureDroppableContainers:ce,measuringScheduled:ve}=O9(I,{dragging:M,dependencies:[F.x,F.y],config:J.droppable}),de=R9(D,V),xe=v.useMemo(()=>Y?sf(Y):null,[Y]),Te=Fo(),Re=D9(de,J.draggable.measure);Z9({activeNode:V!=null?D.get(V):null,config:Te.layoutShiftCompensation,initialRect:Re,measure:J.draggable.measure});const we=_j(de,J.draggable.measure,Re),Pe=_j(de?de.parentElement:null),Be=v.useRef({activatorEvent:null,active:null,activeNode:de,collisionRect:null,collisions:null,droppableRects:se,draggableNodes:D,draggingNode:null,draggingNodeRect:null,droppableContainers:W,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),it=W.getNodeFor((n=Be.current.over)==null?void 0:n.id),ct=B9({measure:J.dragOverlay.measure}),mn=(r=ct.nodeRef.current)!=null?r:de,pn=M?(a=ct.rect)!=null?a:we:null,Ut=!!(ct.nodeRef.current&&ct.rect),ma=L9(Ut?null:we),wi=UC(mn?Cn(mn):null),_n=V9(M?it??de:null),L=F9(_n),q=HC(w,{transform:{x:F.x-ma.x,y:F.y-ma.y,scaleX:1,scaleY:1},activatorEvent:Y,active:ne,activeNodeRect:we,containerNodeRect:Pe,draggingNodeRect:pn,over:Be.current.over,overlayNodeRect:ct.rect,scrollableAncestors:_n,scrollableAncestorRects:L,windowRect:wi}),ee=xe?go(xe,F):null,ge=P9(_n),he=Rj(ge),ue=Rj(ge,[we]),ye=go(q,he),Ve=pn?l9(pn,q):null,Me=ne&&Ve?x({active:ne,collisionRect:Ve,droppableRects:se,droppableContainers:I,pointerCoordinates:ee}):null,kt=CC(Me,"id"),[Yt,Pn]=v.useState(null),Cr=Ut?q:go(q,ue),Ms=a9(Cr,(l=Yt?.rect)!=null?l:null,we),gn=v.useRef(null),Ws=v.useCallback((Tt,yn)=>{let{sensor:on,options:gs}=yn;if(te.current==null)return;const ln=D.get(te.current);if(!ln)return;const en=Tt.nativeEvent,Un=new on({active:te.current,activeNode:ln,event:en,options:gs,context:Be,onAbort(gt){if(!D.get(gt))return;const{onDragAbort:vt}=le.current,cn={id:gt};vt?.(cn),_({type:"onDragAbort",event:cn})},onPending(gt,xt,vt,cn){if(!D.get(gt))return;const{onDragPending:ji}=le.current,Ls={id:gt,constraint:xt,initialCoordinates:vt,offset:cn};ji?.(Ls),_({type:"onDragPending",event:Ls})},onStart(gt){const xt=te.current;if(xt==null)return;const vt=D.get(xt);if(!vt)return;const{onDragStart:cn}=le.current,Js={activatorEvent:en,active:{id:xt,data:vt.data,rect:H}};Ts.unstable_batchedUpdates(()=>{cn?.(Js),O(ri.Initializing),C({type:$t.DragStart,initialCoordinates:gt,active:xt}),_({type:"onDragStart",event:Js}),P(gn.current),Z(en)})},onMove(gt){C({type:$t.DragMove,coordinates:gt})},onEnd:_r($t.DragEnd),onCancel:_r($t.DragCancel)});gn.current=Un;function _r(gt){return async function(){const{active:vt,collisions:cn,over:Js,scrollAdjustedTranslate:ji}=Be.current;let Ls=null;if(vt&&ji){const{cancelDrop:Ar}=le.current;Ls={activatorEvent:en,active:vt,collisions:cn,delta:ji,over:Js},gt===$t.DragEnd&&typeof Ar=="function"&&await Promise.resolve(Ar(Ls))&&(gt=$t.DragCancel)}te.current=null,Ts.unstable_batchedUpdates(()=>{C({type:gt}),O(ri.Uninitialized),Pn(null),P(null),Z(null),gn.current=null;const Ar=gt===$t.DragEnd?"onDragEnd":"onDragCancel";if(Ls){const er=le.current[Ar];er?.(Ls),_({type:Ar,event:Ls})}})}}},[D]),zs=v.useCallback((Tt,yn)=>(on,gs)=>{const ln=on.nativeEvent,en=D.get(gs);if(te.current!==null||!en||ln.dndKit||ln.defaultPrevented)return;const Un={active:en};Tt(on,yn.options,Un)===!0&&(ln.dndKit={capturedBy:yn.sensor},te.current=gs,Ws(on,yn))},[D,Ws]),pa=k9(g,zs);U9(g),ks(()=>{we&&R===ri.Initializing&&O(ri.Initialized)},[we,R]),v.useEffect(()=>{const{onDragMove:Tt}=le.current,{active:yn,activatorEvent:on,collisions:gs,over:ln}=Be.current;if(!yn||!on)return;const en={active:yn,activatorEvent:on,collisions:gs,delta:{x:ye.x,y:ye.y},over:ln};Ts.unstable_batchedUpdates(()=>{Tt?.(en),_({type:"onDragMove",event:en})})},[ye.x,ye.y]),v.useEffect(()=>{const{active:Tt,activatorEvent:yn,collisions:on,droppableContainers:gs,scrollAdjustedTranslate:ln}=Be.current;if(!Tt||te.current==null||!yn||!ln)return;const{onDragOver:en}=le.current,Un=gs.get(kt),_r=Un&&Un.rect.current?{id:Un.id,rect:Un.rect.current,data:Un.data,disabled:Un.disabled}:null,gt={active:Tt,activatorEvent:yn,collisions:on,delta:{x:ln.x,y:ln.y},over:_r};Ts.unstable_batchedUpdates(()=>{Pn(_r),en?.(gt),_({type:"onDragOver",event:gt})})},[kt]),ks(()=>{Be.current={activatorEvent:Y,active:ne,activeNode:de,collisionRect:Ve,collisions:Me,droppableRects:se,draggableNodes:D,draggingNode:mn,draggingNodeRect:pn,droppableContainers:W,over:Yt,scrollableAncestors:_n,scrollAdjustedTranslate:ye},H.current={initial:pn,translated:Ve}},[ne,de,Me,Ve,D,mn,pn,se,W,Yt,_n,ye]),C9({...Te,delta:F,draggingRect:Ve,pointerCoordinates:ee,scrollableAncestors:_n,scrollableAncestorRects:L});const Si=v.useMemo(()=>({active:ne,activeNode:de,activeNodeRect:we,activatorEvent:Y,collisions:Me,containerNodeRect:Pe,dragOverlay:ct,draggableNodes:D,droppableContainers:W,droppableRects:se,over:Yt,measureDroppableContainers:ce,scrollableAncestors:_n,scrollableAncestorRects:L,measuringConfiguration:J,measuringScheduled:ve,windowRect:wi}),[ne,de,we,Y,Me,Pe,ct,D,W,se,Yt,ce,_n,L,J,ve,wi]),Ic=v.useMemo(()=>({activatorEvent:Y,activators:pa,active:ne,activeNodeRect:we,ariaDescribedById:{draggable:k},dispatch:C,draggableNodes:D,over:Yt,measureDroppableContainers:ce}),[Y,pa,ne,we,C,k,D,Yt,ce]);return me.createElement(jC.Provider,{value:E},me.createElement(Uc.Provider,{value:Ic},me.createElement(BC.Provider,{value:Si},me.createElement(Ff.Provider,{value:Ms},h)),me.createElement(K9,{disabled:f?.restoreFocus===!1})),me.createElement(e9,{...f,hiddenTextDescribedById:k}));function Fo(){const Tt=oe?.autoScrollEnabled===!1,yn=typeof p=="object"?p.enabled===!1:p===!1,on=M&&!Tt&&!yn;return typeof p=="object"?{...p,enabled:on}:{enabled:on}}}),Q9=v.createContext(null),Oj="button",W9="Draggable";function J9(e){let{id:t,data:n,disabled:r=!1,attributes:a}=e;const l=Pc(W9),{activators:u,activatorEvent:f,active:p,activeNodeRect:h,ariaDescribedById:g,draggableNodes:x,over:b}=v.useContext(Uc),{role:w=Oj,roleDescription:N="draggable",tabIndex:S=0}=a??{},j=p?.id===t,C=v.useContext(j?Ff:Q9),[_,E]=tf(),[R,O]=tf(),M=I9(u,t),V=mc(n);ks(()=>(x.set(t,{id:t,key:l,node:_,activatorNode:R,data:V}),()=>{const F=x.get(t);F&&F.key===l&&x.delete(t)}),[x,t]);const D=v.useMemo(()=>({role:w,tabIndex:S,"aria-disabled":r,"aria-pressed":j&&w===Oj?!0:void 0,"aria-roledescription":N,"aria-describedby":g.draggable}),[r,w,S,j,N,g.draggable]);return{active:p,activatorEvent:f,activeNodeRect:h,attributes:D,isDragging:j,listeners:r?void 0:M,node:_,over:b,setNodeRef:E,setActivatorNodeRef:O,transform:C}}function $C(){return v.useContext(BC)}const eI="Droppable",tI={timeout:25};function nI(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:a}=e;const l=Pc(eI),{active:u,dispatch:f,over:p,measureDroppableContainers:h}=v.useContext(Uc),g=v.useRef({disabled:n}),x=v.useRef(!1),b=v.useRef(null),w=v.useRef(null),{disabled:N,updateMeasurementsFor:S,timeout:j}={...tI,...a},C=mc(S??r),_=v.useCallback(()=>
27{if(!x.current){x.current=!0;return}w.current!=null&&clearTimeout(w.current),w.current=setTimeout(()=>{h(Array.isArray(C.current)?C.current:[C.current]),w.current=null},j)},[j]),E=If({callback:_,disabled:N||!u}),R=v.useCallback((D,F)=>{E&&(F&&(E.unobserve(F),x.current=!1),D&&E.observe(D))},[E]),[O,M]=tf(R),V=mc(t);return v.useEffect(()=>{!E||!O.current||(E.disconnect(),x.current=!1,E.observe(O.current))},[O,E]),v.useEffect(()=>(f({type:$t.RegisterDroppable,element:{id:r,key:l,disabled:n,node:O,rect:b,data:V}}),()=>f({type:$t.UnregisterDroppable,key:l,id:r})),[r]),v.useEffect(()=>{n!==g.current.disabled&&(f({type:$t.SetDroppableDisabled,id:r,key:l,disabled:n}),g.current.disabled=n)},[r,l,n,f]),{active:u,rect:b,isOver:p?.id===r,node:O,over:p,setNodeRef:M}}function sI(e){let{animation:t,children:n}=e;const[r,a]=v.useState(null),[l,u]=v.useState(null),f=nf(n);return!n&&!r&&f&&a(f),ks(()=>{if(!l)return;const p=r?.key,h=r?.props.id;if(p==null||h==null){a(null);return}Promise.resolve(t(h,l)).then(()=>{a(null)})},[t,r,l]),me.createElement(me.Fragment,null,n,r?v.cloneElement(r,{ref:u}):null)}const rI={x:0,y:0,scaleX:1,scaleY:1};function iI(e){let{children:t}=e;return me.createElement(Uc.Provider,{value:FC},me.createElement(Ff.Provider,{value:rI},t))}const aI={position:"fixed",touchAction:"none"},oI=e=>Vf(e)?"transform 250ms ease":void 0,lI=v.forwardRef((e,t)=>{let{as:n,activatorEvent:r,adjustScale:a,children:l,className:u,rect:f,style:p,transform:h,transition:g=oI}=e;if(!f)return null;const x=a?h:{...h,scaleX:1,scaleY:1},b={...aI,width:f.width,height:f.height,top:f.top,left:f.left,transform:Nr.Transform.toString(x),transformOrigin:a&&r?t9(r,f):void 0,transition:typeof g=="function"?g(r):g,...p};return me.createElement(n,{className:u,style:b,ref:t},l)}),cI=e=>t=>{let{active:n,dragOverlay:r}=t;const a={},{styles:l,className:u}=e;if(l!=null&&l.active)for(const[f,p]of Object.entries(l.active))p!==void 0&&(a[f]=n.node.style.getPropertyValue(f),n.node.style.setProperty(f,p));if(l!=null&&l.dragOverlay)for(const[f,p]of Object.entries(l.dragOverlay))p!==void 0&&r.node.style.setProperty(f,p);return u!=null&&u.active&&n.node.classList.add(u.active),u!=null&&u.dragOverlay&&r.node.classList.add(u.dragOverlay),function(){for(const[p,h]of Object.entries(a))n.node.style.setProperty(p,h);u!=null&&u.active&&n.node.classList.remove(u.active)}},uI=e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Nr.Transform.toString(t)},{transform:Nr.Transform.toString(n)}]},dI={duration:250,easing:"ease",keyframes:uI,sideEffects:cI({styles:{active:{opacity:"0"}}})};function fI(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:a}=e;return Lf((l,u)=>{if(t===null)return;const f=n.get(l);if(!f)return;const p=f.node.current;if(!p)return;const h=IC(u);if(!h)return;const{transform:g}=Cn(u).getComputedStyle(u),x=RC(g);if(!x)return;const b=typeof t=="function"?t:hI(t);return VC(p,a.draggable.measure),b({active:{id:l,data:f.data,node:p,rect:a.draggable.measure(p)},draggableNodes:n,dragOverlay:{node:u,rect:a.dragOverlay.measure(h)},droppableContainers:r,measuringConfiguration:a,transform:x})})}function hI(e){const{duration:t,easing:n,sideEffects:r,keyframes:a}={...dI,...e};return l=>{let{active:u,dragOverlay:f,transform:p,...h}=l;if(!t)return;const g={x:f.rect.left-u.rect.left,y:f.rect.top-u.rect.top},x={scaleX:p.scaleX!==1?u.rect.width*p.scaleX/f.rect.width:1,scaleY:p.scaleY!==1?u.rect.height*p.scaleY/f.rect.height:1},b={x:p.x-g.x,y:p.y-g.y,...x},w=a({...h,active:u,dragOverlay:f,transform:{initial:p,final:b}}),[N]=w,S=w[w.length-1];if(JSON.stringify(N)===JSON.stringify(S))return;const j=r?.({active:u,dragOverlay:f,...h}),C=f.node.animate(w,{duration:t,easing:n,fill:"forwards"});return new Promise(_=>{C.onfinish=()=>{j?.(),_()}})}}let Dj=0;function mI(e){return v.useMemo(()=>{if(e!=null)return Dj++,Dj},[e])}const pI=me.memo(e=>
27{let{adjustScale:t=!1,children:n,dropAnimation:r,style:a,transition:l,modifiers:u,wrapperElement:f="div",className:p,zIndex:h=999}=e;const{activatorEvent:g,active:x,activeNodeRect:b,containerNodeRect:w,draggableNodes:N,droppableContainers:S,dragOverlay:j,over:C,measuringConfiguration:_,scrollableAncestors:E,scrollableAncestorRects:R,windowRect:O}=$C(),M=v.useContext(Ff),V=mI(x?.id),D=HC(u,{activatorEvent:g,active:x,activeNodeRect:b,containerNodeRect:w,draggingNodeRect:j.rect,over:C,overlayNodeRect:j.rect,scrollableAncestors:E,scrollableAncestorRects:R,transform:M,windowRect:O}),F=_x(b),W=fI({config:r,draggableNodes:N,droppableContainers:S,measuringConfiguration:_}),Q=F?j.setRef:void 0;return me.createElement(iI,null,me.createElement(sI,{animation:W},x&&V?me.createElement(lI,{key:V,id:x.id,ref:Q,as:f,activatorEvent:g,adjustScale:t,className:p,transition:l,rect:F,style:{zIndex:h,...a},transform:D},n):null))});function Bf(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function gI(e,t){return e.reduce((n,r,a)=>{const l=t.get(r);return l&&(n[a]=l),n},Array(e.length))}function ld(e){return e!==null&&e>=0}function yI(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function xI(e){return typeof e=="boolean"?{draggable:e,droppable:e}:e}const GC=e=>{let{rects:t,activeIndex:n,overIndex:r,index:a}=e;const l=Bf(t,r,n),u=t[a],f=l[a];return!f||!u?null:{x:f.left-u.left,y:f.top-u.top,scaleX:f.width/u.width,scaleY:f.height/u.height}},cd={scaleX:1,scaleY:1},YC=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:a,rects:l,overIndex:u}=e;const f=(t=l[n])!=null?t:r;if(!f)return null;if(a===n){const h=l[u];return h?{x:0,y:n<u?h.top+h.height-(f.top+f.height):h.top-f.top,...cd}:null}const p=vI(l,a,n);return a>n&&a<=u?{x:0,y:-f.height-p,...cd}:a<n&&a>=u?{x:0,y:f.height+p,...cd}:{x:0,y:0,...cd}};function vI(e,t,n){const r=e[t],a=e[t-1],l=e[t+1];return r?n<t?a?r.top-(a.top+a.height):l?l.top-(r.top+r.height):0:l?l.top-(r.top+r.height):a?r.top-(a.top+a.height):0:0}const KC="Sortable",XC=me.createContext({activeIndex:-1,containerId:KC,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:GC,disabled:{draggable:!1,droppable:!1}});function ZC(e){let{children:t,id:n,items:r,strategy:a=GC,disabled:l=!1}=e;const{active:u,dragOverlay:f,droppableRects:p,over:h,measureDroppableContainers:g}=$C(),x=Pc(KC,n),b=f.rect!==null,w=v.useMemo(()=>r.map(M=>typeof M=="object"&&"id"in M?M.id:M),[r]),N=u!=null,S=u?w.indexOf(u.id):-1,j=h?w.indexOf(h.id):-1,C=v.useRef(w),_=!yI(w,C.current),E=j!==-1&&S===-1||_,R=xI(l);ks(()=>{_&&N&&g(w)},[_,w,N,g]),v.useEffect(()=>{C.current=w},[w]);const O=v.useMemo(()=>({activeIndex:S,containerId:x,disabled:R,disableTransforms:E,items:w,overIndex:j,useDragOverlay:b,sortedRects:gI(w,p),strategy:a}),[S,x,R.draggable,R.droppable,E,w,j,p,b,a]);return me.createElement(XC.Provider,{value:O},t)}const bI=e=>{let{id:t,items:n,activeIndex:r,overIndex:a}=e;return Bf(n,r,a).indexOf(t)},wI=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:a,items:l,newIndex:u,previousItems:f,previousContainerId:p,transition:h}=e;return!h||!r||f!==l&&a===u?!1:n?!0:u!==a&&t===p},SI={duration:200,easing:"ease"},QC="transform",jI=Nr.Transition.toString({property:QC,duration:0,easing:"linear"}),NI={roleDescription:"sortable"};function TI(e){let{disabled:t,index:n,node:r,rect:a}=e;const[l,u]=v.useState(null),f=v.useRef(n);return ks(()=>{if(!t&&n!==f.current&&r.current){const p=a.current;if(p){const h=Uo(r.current,{ignoreTransform:!0}),g={x:p.left-h.left,y:p.top-h.top,scaleX:p.width/h.width,scaleY:p.height/h.height};(g.x||g.y)&&u(g)}}n!==f.current&&(f.current=n)},[t,n,r,a]),v.useEffect(()=>{l&&u(null)},[l]),l}function WC(e){let{animateLayoutChanges:t=wI,attributes:n,disabled:r,data:a,getNewIndex:l=bI,id:u,strategy:f,resizeObserverConfig:p,transition:h=SI}=e;const{items:g,containerId:x,activeIndex:b,disabled:w,disableTransforms:N,sortedRects:S,overIndex:j,useDragOverlay:C,strategy:_}=v.useContext(XC),E=EI(r,w),R=g.indexOf(u),O=v.useMemo(()=>({sortable:{containerId:x,index:R,items:g},...a}),[x,a,R,g]),M=v.useMemo(()=>g.slice(g.indexOf(u)),[g,u]),{rect:V,node:D,isOver:F,setNodeRef:W}=nI({id:u,data:O,disabled:E.droppable,resizeObserverConfig:{updateMeasurementsFor:
27M,...p}}),{active:Q,activatorEvent:H,activeNodeRect:ne,attributes:te,setNodeRef:oe,listeners:P,isDragging:Y,over:Z,setActivatorNodeRef:le,transform:k}=J9({id:u,data:O,attributes:{...NI,...n},disabled:E.draggable}),I=F7(W,oe),J=!!Q,se=J&&!N&&ld(b)&&ld(j),ce=!C&&Y,ve=ce&&se?k:null,xe=se?ve??(f??_)({rects:S,activeNodeRect:ne,activeIndex:b,overIndex:j,index:R}):null,Te=ld(b)&&ld(j)?l({id:u,items:g,activeIndex:b,overIndex:j}):R,Re=Q?.id,we=v.useRef({activeId:Re,items:g,newIndex:Te,containerId:x}),Pe=g!==we.current.items,Be=t({active:Q,containerId:x,isDragging:Y,isSorting:J,id:u,index:R,items:g,newIndex:we.current.newIndex,previousItems:we.current.items,previousContainerId:we.current.containerId,transition:h,wasDragging:we.current.activeId!=null}),it=TI({disabled:!Be,index:R,node:D,rect:V});return v.useEffect(()=>{J&&we.current.newIndex!==Te&&(we.current.newIndex=Te),x!==we.current.containerId&&(we.current.containerId=x),g!==we.current.items&&(we.current.items=g)},[J,Te,x,g]),v.useEffect(()=>{if(Re===we.current.activeId)return;if(Re!=null&&we.current.activeId==null){we.current.activeId=Re;return}const mn=setTimeout(()=>{we.current.activeId=Re},50);return()=>clearTimeout(mn)},[Re]),{active:Q,activeIndex:b,attributes:te,data:O,rect:V,index:R,newIndex:Te,items:g,isOver:F,isSorting:J,isDragging:Y,listeners:P,node:D,overIndex:j,over:Z,setNodeRef:I,setActivatorNodeRef:le,setDroppableNodeRef:W,setDraggableNodeRef:oe,transform:it??xe,transition:ct()};function ct(){if(it||Pe&&we.current.newIndex===R)return jI;if(!(ce&&!Vf(H)||!h)&&(J||Be))return Nr.Transition.toString({...h,property:QC})}}function EI(e,t){var n,r;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(n=e?.draggable)!=null?n:t.draggable,droppable:(r=e?.droppable)!=null?r:t.droppable}}function of(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&typeof t.sortable=="object"&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const CI=[Je.Down,Je.Right,Je.Up,Je.Left],_I=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:l,over:u,scrollableAncestors:f}}=t;if(CI.includes(e.code)){if(e.preventDefault(),!n||!r)return;const p=[];l.getEnabled().forEach(x=>{if(!x||x!=null&&x.disabled)return;const b=a.get(x.id);if(b)switch(e.code){case Je.Down:r.top<b.top&&p.push(x);break;case Je.Up:r.top>b.top&&p.push(x);break;case Je.Left:r.left>b.left&&p.push(x);break;case Je.Right:r.left<b.left&&p.push(x);break}});const h=s9({collisionRect:r,droppableRects:a,droppableContainers:p});let g=CC(h,"id");if(g===u?.id&&h.length>1&&(g=h[1].id),g!=null){const x=l.get(n.id),b=l.get(g),w=b?a.get(b.id):null,N=b?.node.current;if(N&&w&&x&&b){const j=Pf(N).some((M,V)=>f[V]!==M),C=JC(x,b),_=AI(x,b),E=j||!C?{x:0,y:0}:{x:_?r.width-w.width:0,y:_?r.height-w.height:0},R={x:w.left,y:w.top};return E.x&&E.y?R:pc(R,E)}}}};function JC(e,t){return!of(e)||!of(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function AI(e,t){return!of(e)||!of(t)||!JC(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var Hp="focusScope.autoFocusOnMount",qp="focusScope.autoFocusOnUnmount",Mj={bubbles:!1,cancelable:!0},RI="FocusScope",Ax=v.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:a,onUnmountAutoFocus:l,...u}=e,[f,p]=v.useState(null),h=_s(a),g=_s(l),x=v.useRef(null),b=pt(t,S=>p(S)),w=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(r){let S=function(E){if(w.paused||!f)return;const R=E.target;f.contains(R)?x.current=R:ni(x.current,{select:!0})},j=function(E){if(w.paused||!f)return;const R=E.relatedTarget;R!==null&&(f.contains(R)||ni(x.current,{select:!0}))},C=function(E){if(document.activeElement===document.body)for(const O of E)O.removedNodes.length>0&&ni(f)};document.addEventListener("focusin",S),document.addEventListener("focusout",j);const _=new MutationObserver(C);return f&&_.observe(f,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",j),_.disconnect()}}},[r,f,w.paused]),v.useEffect(()=>{if(f){Lj.add(w);const S=document.activeElement;if(!f.contains(S)){const C=new CustomEvent(Hp,Mj);f.addEventListener(Hp,h),f.dispatchEvent(C),C.defaultPrevented||(kI(LI(e_(f)),{select:!0}),document.activeElement===S&&ni(f))}return()=>{f.removeEventListener(Hp,h),setTimeout(()=>{const C=new CustomEvent(qp,Mj);f.addEventListener(qp,g),f.dispatchEvent(C),C.defaultPrevented||ni(S??document.body,{select:!0}),f.removeEventListener(qp,g),Lj.remove(w)},0)}}},[f,h,g,w]);const N=v.useCallback(S=>{if(!n&&!r||w.paused)return;const j=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,C=document.activeElement;if(j&&C){const _=S.currentTarget,[E,R]=OI(_);E&&R?!S.shiftKey&&C===R?(S.preventDefault(),n&&ni(E,{select:!0})):S.shiftKey&&C===E&&(S.preventDefault(),n&&ni(R,{select:!0})):C===_&&S.preventDefault()}},[n,r,w.paused]);return c.jsx(We.div,{tabIndex:-1,...u,ref:b,onKeyDown:N})});Ax.displayName=RI;function kI(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ni(r,{select:t}),document.activeElement!==n)return}function OI(e){const t=e_(e),n=zj(t,e),r=zj(t.reverse(),e);return[n,r]}function e_(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const a=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||a?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function zj(e,t){for(const n of e)if(!DI(n,{upTo:t}))return n}function DI(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}function MI(e){return e instanceof HTMLInputElement&&"select"in e}function ni(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&MI(e)&&t&&e.select()}}var Lj=zI();function zI(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Vj(e,t),e.unshift(t)},remove(t){e=Vj(e,t),e[0]?.resume()}}}function Vj(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function LI(e){return e.filter(t=>t.tagName!=="A")}var $p=0;function t_(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pj()),document.body.insertAdjacentElement("beforeend",e[1]??Pj()),$p++,()=>{$p===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),$p--}},[])}function Pj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 5,651 bytes, lines 27-42
27style.position="fixed",e.style.pointerEvents="none",e}var Hs=function(){return Hs=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Hs.apply(this,arguments)};function n_(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n}function VI(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,l;r<a;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var Td="right-scroll-bar-position",Ed="width-before-scroll-bar",PI="with-scroll-bars-hidden",UI="--removed-body-scroll-bar-size";function Gp(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function II(e,t){var n=v.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var a=n.value;a!==r&&(n.value=r,n.callback(r,a))}}}})[0];return n.callback=t,n.facade}var FI=typeof window<"u"?v.useLayoutEffect:v.useEffect,Uj=new WeakMap;function BI(e,t){var n=II(null,function(r){return e.forEach(function(a){return Gp(a,r)})});return FI(function(){var r=Uj.get(n);if(r){var a=new Set(r),l=new Set(e),u=n.current;a.forEach(function(f){l.has(f)||Gp(f,null)}),l.forEach(function(f){a.has(f)||Gp(f,u)})}Uj.set(n,e)},[e]),n}function HI(e){return e}function qI(e,t){t===void 0&&(t=HI);var n=[],r=!1,a={read:function(){if(r)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 u=t(l,r);return n.push(u),function(){n=n.filter(function(f){return f!==u})}},assignSyncMedium:function(l){for(r=!0;n.length;){var u=n;n=[],u.forEach(l)}n={push:function(f){return l(f)},filter:function(){return n}}},assignMedium:function(l){r=!0;var u=[];if(n.length){var f=n;n=[],f.forEach(l),u=n}var p=function(){var g=u;u=[],g.forEach(l)},h=function(){return Promise.resolve().then(p)};h(),n={push:function(g){u.push(g),h()},filter:function(g){return u=u.filter(g),n}}}};return a}function $I(e){e===void 0&&(e={});var t=qI(null);return t.options=Hs({async:!0,ssr:!1},e),t}var s_=function(e){var t=e.sideCar,n=n_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return v.createElement(r,Hs({},n))};s_.isSideCarExport=!0;function GI(e,t){return e.useMedium(t),s_}var r_=$I(),Yp=function(){},Hf=v.forwardRef(function(e,t){var n=v.useRef(null),r=v.useState({onScrollCapture:Yp,onWheelCapture:Yp,onTouchMoveCapture:Yp}),a=r[0],l=r[1],u=e.forwardProps,f=e.children,p=e.className,h=e.removeScrollBar,g=e.enabled,x=e.shards,b=e.sideCar,w=e.noRelative,N=e.noIsolation,S=e.inert,j=e.allowPinchZoom,C=e.as,_=C===void 0?"div":C,E=e.gapMode,R=n_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=b,M=BI([n,t]),V=Hs(Hs({},R),a);return v.createElement(v.Fragment,null,g&&v.createElement(O,{sideCar:r_,removeScrollBar:h,shards:x,noRelative:w,noIsolation:N,inert:S,setCallbacks:l,allowPinchZoom:!!j,lockRef:n,gapMode:E}),u?v.cloneElement(v.Children.only(f),Hs(Hs({},V),{ref:M})):v.createElement(_,Hs({},V,{className:p,ref:M}),f))});Hf.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Hf.classNames={fullWidth:Ed,zeroRight:Td};var YI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function KI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=YI();return t&&e.setAttribute("nonce",t),e}function XI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ZI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var QI=function(){var e=0,t=null;return{add:function(n){e==0&&(t=KI())&&(XI(t,n),ZI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},WI=function(){var e=QI();return function(t,n){v.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},i_=function(){var e=WI(),t=function(n){var r=n.styles,a=n.dynamic;return e(r,a),null};return t},JI={left:0,top:0,right:0,gap:0},Kp=function(e){return parseInt(e||"",10)||0},eF=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Kp(n),Kp(r),Kp(a)]},tF=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return JI;var t=eF(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},nF=i_(),yo="data-scroll-locked",sF=function(e,t,n,r){var a=e.left,l=e.top,u=e.right,f=e.gap;return n===void 0&&(n="margin"),`
28  .`.concat(PI,` {
29   overflow: hidden `).concat(r,`;
30   padding-right: `).concat(f,"px ").concat(r,`;
31  }
32  body[`).concat(yo,`] {
33    overflow: hidden `).concat(r,`;
34    overscroll-behavior: contain;
35    `).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
36    padding-left: `.concat(a,`px;
37    padding-top: `).concat(l,`px;
38    padding-right: `).concat(u,`px;
39    margin-left:0;
40    margin-top:0;
41    margin-right: `).concat(f,"px ").concat(r,`;
42    `),n==="padding"&&"padding-right: ".concat(f,"px ").concat(r,";
42")].filter(Boolean).join(""),`
43  }
44  
45  .`).concat(Td,` {
46    right: `).concat(f,"px ").concat(r,`;
47  }
48  
49  .`).concat(Ed,` {
50    margin-right: `).concat(f,"px ").concat(r,`;
51  }
52  
53  .`).concat(Td," .").concat(Td,` {
54    right: 0 `).concat(r,`;
55  }
56  
57  .`).concat(Ed," .").concat(Ed,` {
58    margin-right: 0 `).concat(r,`;
59  }
60  
61  body[`).concat(yo,`] {
62    `).concat(UI,": ").concat(f,`px;
63  }
64`)},Ij=function(){var e=parseInt(document.body.getAttribute(yo)||"0",10);return isFinite(e)?e:0},rF=function(){v.useEffect(function(){return document.body.setAttribute(yo,(Ij()+1).toString()),function(){var e=Ij()-1;e<=0?document.body.removeAttribute(yo):document.body.setAttribute(yo,e.toString())}},[])},iF=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,a=r===void 0?"margin":r;rF();var l=v.useMemo(function(){return tF(a)},[a]);return v.createElement(nF,{styles:sF(l,!t,a,n?"":"!important")})},Zg=!1;if(typeof window<"u")try{var ud=Object.defineProperty({},"passive",{get:function(){return Zg=!0,!0}});window.addEventListener("test",ud,ud),window.removeEventListener("test",ud,ud)}catch{Zg=!1}var to=Zg?{passive:!1}:!1,aF=function(e){return e.tagName==="TEXTAREA"},a_=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!aF(e)&&n[t]==="visible")},oF=function(e){return a_(e,"overflowY")},lF=function(e){return a_(e,"overflowX")},Fj=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var a=o_(e,r);if(a){var l=l_(e,r),u=l[1],f=l[2];if(u>f)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},cF=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},uF=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},o_=function(e,t){return e==="v"?oF(t):lF(t)},l_=function(e,t){return e==="v"?cF(t):uF(t)},dF=function(e,t){return e==="h"&&t==="rtl"?-1:1},fF=function(e,t,n,r,a){var l=dF(e,window.getComputedStyle(t).direction),u=l*r,f=n.target,p=t.contains(f),h=!1,g=u>0,x=0,b=0;do{if(!f)break;var w=l_(e,f),N=w[0],S=w[1],j=w[2],C=S-j-l*N;(N||C)&&o_(e,f)&&(x+=C,b+=N);var _=f.parentNode;f=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!p&&f!==document.body||p&&(t.contains(f)||t===f));return(g&&Math.abs(x)<1||!g&&Math.abs(b)<1)&&(h=!0),h},dd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Bj=function(e){return[e.deltaX,e.deltaY]},Hj=function(e){return e&&"current"in e?e.current:e},hF=function(e,t){return e[0]===t[0]&&e[1]===t[1]},mF=function(e){return`
65  .block-interactivity-`.concat(e,` {pointer-events: none;}
66  .allow-interactivity-`).concat(e,` {pointer-events: all;}
67`)},pF=0,no=[];function gF(e){var t=v.useRef([]),n=v.useRef([0,0]),r=v.useRef(),a=v.useState(pF++)[0],l=v.useState(i_)[0],u=v.useRef(e);v.useEffect(function(){u.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var S=VI([e.lockRef.current],(e.shards||[]).map(Hj),!0).filter(Boolean);return S.forEach(function(j){return j.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),S.forEach(function(j){return j.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=v.useCallback(function(S,j){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!u.current.allowPinchZoom;var C=dd(S),_=n.current,E="deltaX"in S?S.deltaX:_[0]-C[0],R="deltaY"in S?S.deltaY:_[1]-C[1],O,M=S.target,V=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in S&&V==="h"&&M.type==="range")return!1;var D=window.getSelection(),F=D&&D.anchorNode,W=F?F===M||F.contains(M):!1;if(W)return!1;var Q=Fj(V,M);if(!Q)return!0;if(Q?O=V:(O=V==="v"?"h":"v",Q=Fj(V,M)),!Q)return!1;if(!r.current&&"changedTouches"in S&&(E||R)&&(r.current=O),!O)return!0;var H=r.current||O;return fF(H,j,S,H==="h"?E:R)},[]),p=v.useCallback(function(S){var j=S;if(!(!no.length||no[no.length-1]!==l)){var C="deltaY"in j?Bj(j):dd(j),_=t.current.filter(function(O){return O.name===j.type&&(O.target===j.target||j.target===O.shadowParent)&&hF(O.delta,C)})[0];if(_&&_.should){j.cancelable&&j.preventDefault();return}
vendor: 4,338 bytes, line 67
67if(!_){var E=(u.current.shards||[]).map(Hj).filter(Boolean).filter(function(O){return O.contains(j.target)}),R=E.length>0?f(j,E[0]):!u.current.noIsolation;R&&j.cancelable&&j.preventDefault()}}},[]),h=v.useCallback(function(S,j,C,_){var E={name:S,delta:j,target:C,should:_,shadowParent:yF(C)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),g=v.useCallback(function(S){n.current=dd(S),r.current=void 0},[]),x=v.useCallback(function(S){h(S.type,Bj(S),S.target,f(S,e.lockRef.current))},[]),b=v.useCallback(function(S){h(S.type,dd(S),S.target,f(S,e.lockRef.current))},[]);v.useEffect(function(){return no.push(l),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:b}),document.addEventListener("wheel",p,to),document.addEventListener("touchmove",p,to),document.addEventListener("touchstart",g,to),function(){no=no.filter(function(S){return S!==l}),document.removeEventListener("wheel",p,to),document.removeEventListener("touchmove",p,to),document.removeEventListener("touchstart",g,to)}},[]);var w=e.removeScrollBar,N=e.inert;return v.createElement(v.Fragment,null,N?v.createElement(l,{styles:mF(a)}):null,w?v.createElement(iF,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yF(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const xF=GI(r_,gF);var Rx=v.forwardRef(function(e,t){return v.createElement(Hf,Hs({},e,{ref:t,sideCar:xF}))});Rx.classNames=Hf.classNames;var vF=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},so=new WeakMap,fd=new WeakMap,hd={},Xp=0,c_=function(e){return e&&(e.host||c_(e.parentNode))},bF=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=c_(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},wF=function(e,t,n,r){var a=bF(t,Array.isArray(e)?e:[e]);hd[n]||(hd[n]=new WeakMap);var l=hd[n],u=[],f=new Set,p=new Set(a),h=function(x){!x||f.has(x)||(f.add(x),h(x.parentNode))};a.forEach(h);var g=function(x){!x||p.has(x)||Array.prototype.forEach.call(x.children,function(b){if(f.has(b))g(b);else try{var w=b.getAttribute(r),N=w!==null&&w!=="false",S=(so.get(b)||0)+1,j=(l.get(b)||0)+1;so.set(b,S),l.set(b,j),u.push(b),S===1&&N&&fd.set(b,!0),j===1&&b.setAttribute(n,"true"),N||b.setAttribute(r,"true")}catch(C){console.error("aria-hidden: cannot operate on ",b,C)}})};return g(t),f.clear(),Xp++,function(){u.forEach(function(x){var b=so.get(x)-1,w=l.get(x)-1;so.set(x,b),l.set(x,w),b||(fd.has(x)||x.removeAttribute(r),fd.delete(x)),w||x.removeAttribute(n)}),Xp--,Xp||(so=new WeakMap,so=new WeakMap,fd=new WeakMap,hd={})}},u_=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),a=vF(e);return a?(r.push.apply(r,Array.from(a.querySelectorAll("[aria-live], script"))),wF(r,a,n,"aria-hidden")):function(){return null}},qf="Dialog",[d_]=da(qf),[SF,Ds]=d_(qf),f_=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:a,onOpenChange:l,modal:u=!0}=e,f=v.useRef(null),p=v.useRef(null),[h,g]=ic({prop:r,defaultProp:a??!1,onChange:l,caller:qf});return c.jsx(SF,{scope:t,triggerRef:f,contentRef:p,contentId:ho(),titleId:ho(),descriptionId:ho(),open:h,onOpenChange:g,onOpenToggle:v.useCallback(()=>g(x=>!x),[g]),modal:u,children:n})};f_.displayName=qf;var h_="DialogTrigger",jF=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ds(h_,n),l=pt(t,a.triggerRef);return c.jsx(We.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Dx(a.open),...r,ref:l,onClick:Fe(e.onClick,a.onOpenToggle)})});jF.displayName=h_;var kx="DialogPortal",[NF,m_]=d_(kx,{forceMount:void 0}),p_=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:a}=e,l=Ds(kx,t);return c.jsx(NF,{scope:t,forceMount:n,children:v.Children.map(r,u=>c.jsx(gi,{present:n||l.open,children:c.jsx(bc,{asChild:!0,container:a,children:u})}))})};p_.displayName=kx;var lf="DialogOverlay",g_=v.forwardRef((e,t)=>{const n=m_(lf,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,l=Ds(lf,e.__scopeDialog);return l.modal?c.jsx(gi,{present:r||l.open,children:c.jsx(EF,{...a,ref:t})}):null});g_.displayName=lf;var TF=rc("DialogOverlay.RemoveScroll"),EF=v.forwardRef((e,t)=>
vendor: 2,464 bytes, line 67
67{const{__scopeDialog:n,...r}=e,a=Ds(lf,n);return c.jsx(Rx,{as:TF,allowPinchZoom:!0,shards:[a.contentRef],children:c.jsx(We.div,{"data-state":Dx(a.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),oa="DialogContent",y_=v.forwardRef((e,t)=>{const n=m_(oa,e.__scopeDialog),{forceMount:r=n.forceMount,...a}=e,l=Ds(oa,e.__scopeDialog);return c.jsx(gi,{present:r||l.open,children:l.modal?c.jsx(CF,{...a,ref:t}):c.jsx(_F,{...a,ref:t})})});y_.displayName=oa;var CF=v.forwardRef((e,t)=>{const n=Ds(oa,e.__scopeDialog),r=v.useRef(null),a=pt(t,n.contentRef,r);return v.useEffect(()=>{const l=r.current;if(l)return u_(l)},[]),c.jsx(x_,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Fe(e.onCloseAutoFocus,l=>{l.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Fe(e.onPointerDownOutside,l=>{const u=l.detail.originalEvent,f=u.button===0&&u.ctrlKey===!0;(u.button===2||f)&&l.preventDefault()}),onFocusOutside:Fe(e.onFocusOutside,l=>l.preventDefault())})}),_F=v.forwardRef((e,t)=>{const n=Ds(oa,e.__scopeDialog),r=v.useRef(!1),a=v.useRef(!1);return c.jsx(x_,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{e.onCloseAutoFocus?.(l),l.defaultPrevented||(r.current||n.triggerRef.current?.focus(),l.preventDefault()),r.current=!1,a.current=!1},onInteractOutside:l=>{e.onInteractOutside?.(l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(a.current=!0));const u=l.target;n.triggerRef.current?.contains(u)&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&a.current&&l.preventDefault()}})}),x_=v.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:a,onCloseAutoFocus:l,...u}=e,f=Ds(oa,n),p=v.useRef(null),h=pt(t,p);return t_(),c.jsxs(c.Fragment,{children:[c.jsx(Ax,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:a,onUnmountAutoFocus:l,children:c.jsx(vc,{role:"dialog",id:f.contentId,"aria-describedby":f.descriptionId,"aria-labelledby":f.titleId,"data-state":Dx(f.open),...u,ref:h,onDismiss:()=>f.onOpenChange(!1)})}),c.jsxs(c.Fragment,{children:[c.jsx(AF,{titleId:f.titleId}),c.jsx(kF,{contentRef:p,descriptionId:f.descriptionId})]})]})}),Ox="DialogTitle",v_=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ds(Ox,n);return c.jsx(We.h2,{id:a.titleId,...r,ref:t})});v_.displayName=Ox;var b_="DialogDescription",w_=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ds(b_,n);return c.jsx(We.p,{id:a.descriptionId,...r,ref:t})});
67w_.displayName=b_;var S_="DialogClose",j_=v.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,a=Ds(S_,n);return c.jsx(We.button,{type:"button",...r,ref:t,onClick:Fe(e.onClick,()=>a.onOpenChange(!1))})});j_.displayName=S_;function Dx(e){return e?"open":"closed"}var N_="DialogTitleWarning",[xH,T_]=oO(N_,{contentName:oa,titleName:Ox,docsSlug:"dialog"}),AF=({titleId:e})=>{const t=T_(N_),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
68
69If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
70
71For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},RF="DialogDescriptionWarning",kF=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${T_(RF).contentName}}.`;return v.useEffect(()=>{const a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},OF=f_,DF=p_,E_=g_,C_=y_,__=v_,A_=w_,MF=j_;const zF=OF,LF=DF,R_=v.forwardRef(({className:e,...t},n)=>c.jsx(E_,{ref:n,className:Qe("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}));R_.displayName=E_.displayName;const k_=v.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(LF,{children:[c.jsx(R_,{}),c.jsxs(C_,{ref:r,className:Qe("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,c.jsxs(MF,{className:"absolute right-4 top-4 roun
71ded-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:[c.jsx(Ks,{className:"h-4 w-4"}),c.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));k_.displayName=C_.displayName;const O_=({className:e,...t})=>c.jsx("div",{className:Qe("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});O_.displayName="DialogHeader";const D_=v.forwardRef(({className:e,...t},n)=>c.jsx(__,{ref:n,className:Qe("text-lg font-semibold leading-none tracking-tight",e),...t}));D_.displayName=__.displayName;const VF=v.forwardRef(({className:e,...t},n)=>c.jsx(A_,{ref:n,className:Qe("text-sm text-muted-foreground",e),...t}));VF.displayName=A_.displayName;var PF=Symbol.for("react.lazy"),cf=ff[" use ".trim().toString()];function UF(e){return typeof e=="object"&&e!==null&&"then"in e}function M_(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===PF&&"_payload"in e&&UF(e._payload)}function z_(e){const t=IF(e),n=v.forwardRef((r,a)=>{let{children:l,...u}=r;M_(l)&&typeof cf=="function"&&(l=cf(l._payload));const f=v.Children.toArray(l),p=f.find(BF);if(p){const h=p.props.children,g=f.map(x=>x===p?v.Children.count(h)>1?v.Children.only(null):v.isValidElement(h)?h.props.children:null:x);return c.jsx(t,{...u,ref:a,children:v.isValidElement(h)?v.cloneElement(h,void 0,g):null})}return c.jsx(t,{...u,ref:a,children:l})});return n.displayName=`${e}.Slot`,n}var L_=z_("Slot");function IF(e){const t=v.forwardRef((n,r)=>{let{children:a,...l}=n;if(M_(a)&&typeof cf=="function"&&(a=cf(a._payload)),v.isValidElement(a)){const u=qF(a),f=HF(l,a.props);return a.type!==v.Fragment&&(f.ref=r?uy(r,u):u),v.cloneElement(a,f)}return v.Children.count(a)>1?v.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var FF=Symbol("radix.slottable");function BF(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===FF}function HF(e,t){const n={...t};for(const r in t){const a=e[r],l=t[r];/^on[A-Z]/.test(r)?a&&l?n[r]=(...f)=>{const p=l(...f);return a(...f),p}:a&&(n[r]=a):r==="style"?n[r]={...a,...l}:r==="className"&&(n[r]=[a,l].filter(Boolean).join(" "))}return{...e,...n}}function qF(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)}var $F=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],GF=$F.reduce((e,t)=>{const n=z_(`Primitive.${t}`),r=v.forwardRef((a,l)=>{const{asChild:u,...f}=a,p=u?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),c.jsx(p,{...f,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),YF="Label",V_=v.forwardRef((e,t)=>c.jsx(GF.label,{...e,ref:t,onMouseDown:n=>{n.target.closest("button, input, select, textarea")||(e.onMouseDown?.(n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));V_.displayName=YF;var P_=V_;const KF=my("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),U_=v.forwardRef(({className:e,...t},n)=>c.jsx(P_,{ref:n,className:Qe(KF(),e),...t}));U_.displayName=P_.displayName;const XF=UU,I_=v.createContext(null),Mn=({...e})=>c.jsx(I_.Provider,{value:{name:e.name},children:c.jsx(VU,{...e})}),$f=()=>{const e=v.useContext(I_),t=v.useContext(F_),{getFieldState:n,formState:r}=PU();if(!e)throw new Error("useFormField should be used within <FormField>");if(!t)throw new Error("useFormField should be used within <FormItem>");const a=n(e.name,r),{id:l}=t;return{id:l,name:e.name,formItemId:`${l}-form-item`,formDescriptionId:`${l}-form-item-description`,formMessageId:`${l}-form-item-message`,...a}},F_=v.createContext(null),vn=v.forwardRef(({className:e,...t},n)=>{const r=v.useId();return c.jsx(F_.Provider,{value:{id:r},children:c.jsx("div",{ref:n,className:Qe("space-y-2",e),...t})})});vn.displayName="FormItem";const bn=v.forwardRef(({className:e,...t},n)=>{const{error:r,formItemId:a}=$f();return c.jsx(U_,{ref:n,className:Qe(r&&"text-destructive",e),htmlFor:a,...t})});bn.displayName="FormLabel";const wn=v.forwardRef(({...e},t)=>{const{error:n,formItemId:r,formDescriptionId:a,formMessageId:l}=$f();return c.jsx(L_,{ref:t,id:r,"aria-describedby":n?`${a} ${l}`:`${a}`,"aria-invalid":!!n,...e})});wn.displayName="FormControl";const ql=v.forwardRef(({className:e,...t},n)=>{const{formDescriptionId:r}=$f();return c.jsx("p",{ref:n,id:r,className:Qe("text-[0.8rem] text-muted-foreground",e),...t})});ql.displayName="FormDescription";const Yn=v.forwardRef(({className:e,children:t,...n},r)=>{const{error:a,formMessageId:l}=$f(),u=a?String(a?.message??""):t;return u?c.jsx("p",{ref:r,id:l,className:Qe("text-[0.8rem] font-medium text-destructive",e),...n,children:u}):null});Yn.displayName="FormMessage";const ZF=my("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors 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 shadow-sm 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",link:"text-primary underline-offset-4 hover:underline"},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"}}),Qg=v.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...a},l)=>{const u=r?L_:"button";return c.jsx(u,{className:Qe(ZF({variant:t,size:n,className:e})),ref:l,...a})});Qg.displayName="Button";function qj(e,[t,n]){return Math.min(n,Math.max(t,e))}var QF=v.createContext(void 0);function WF(e){const t=v.useContext(QF);return e||t||"ltr"}var JF=[" ","Enter","ArrowUp","ArrowDown"],eB=[" ","Enter"],la="Select",[Gf,Yf,tB]=xN(la),[Io]=da(la,[tB,jf]),Kf=jf(),[nB,vi]=Io(la),[sB,rB]=Io(la),B_=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:a,onOpenChange:l,value:u,defaultValue:f,onValueChange:p,dir:h,name:g,autoComplete:x,disabled:b,required:w,form:N}=e,S=Kf(t),[j,C]=v.useState(null),[_,E]=v.useState(null),[R,O]=v.useState(!1),M=WF(h),[V,D]=ic({prop:r,defaultProp:a??!1,onChange:l,caller:la}),[F,W]=ic({prop:u,defaultProp:f,onChange:p,caller:la}),Q=v.useRef(null),H=j?N||!!j.closest("form"):!0,[ne,te]=v.useState(new Set),oe=Array.from(ne).map(P=>P.props.value).join(";");return c.jsx(_5,{...S,children:c.jsxs(nB,{required:w,scope:t,trigger:j,onTriggerChange:C,valueNode:_,onValueNodeChange:E,valueNodeHasChildren:R,onValueNodeHasChildrenChange:O,contentId:ho(),value:F,onValueChange:W,open:V,onOpenChange:D,dir:M,triggerPointerDownPosRef:Q,disabled:b,children:[c.jsx(Gf.Provider,{scope:t,children:c.jsx(sB,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(P=>{te(Y=>new Set(Y).add(P))},[]),onNativeOptionRemove:v.useCallback(P=>{te(Y=>{const Z=new Set(Y);return Z.delete(P),Z})},[]),children:n})}),H?c.jsxs(fA,{"aria-hidden":!0,required:w,tabIndex:-1,name:g,autoComplete:x,value:F,onChange:P=>W(P.target.value),disabled:b,form:N,children:[F===void 0?c.jsx("option",{value:""}):null,Array.from(ne)]},oe):null]})})};B_.displayName=la;var H_="SelectTrigger",q_=v.forwardRef((e,t)=>
vendor: 17,865 bytes, line 71
71{const{__scopeSelect:n,disabled:r=!1,...a}=e,l=Kf(n),u=vi(H_,n),f=u.disabled||r,p=pt(t,u.onTriggerChange),h=Yf(n),g=v.useRef("touch"),[x,b,w]=mA(S=>{const j=h().filter(E=>!E.disabled),C=j.find(E=>E.value===u.value),_=pA(j,S,C);_!==void 0&&u.onValueChange(_.value)}),N=S=>{f||(u.onOpenChange(!0),w()),S&&(u.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return c.jsx(B2,{asChild:!0,...l,children:c.jsx(We.button,{type:"button",role:"combobox","aria-controls":u.contentId,"aria-expanded":u.open,"aria-required":u.required,"aria-autocomplete":"none",dir:u.dir,"data-state":u.open?"open":"closed",disabled:f,"data-disabled":f?"":void 0,"data-placeholder":hA(u.value)?"":void 0,...a,ref:p,onClick:Fe(a.onClick,S=>{S.currentTarget.focus(),g.current!=="mouse"&&N(S)}),onPointerDown:Fe(a.onPointerDown,S=>{g.current=S.pointerType;const j=S.target;j.hasPointerCapture(S.pointerId)&&j.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(N(S),S.preventDefault())}),onKeyDown:Fe(a.onKeyDown,S=>{const j=x.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&b(S.key),!(j&&S.key===" ")&&JF.includes(S.key)&&(N(),S.preventDefault())})})})});q_.displayName=H_;var $_="SelectValue",G_=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,children:l,placeholder:u="",...f}=e,p=vi($_,n),{onValueNodeHasChildrenChange:h}=p,g=l!==void 0,x=pt(t,p.onValueNodeChange);return an(()=>{h(g)},[h,g]),c.jsx(We.span,{...f,ref:x,style:{pointerEvents:"none"},children:hA(p.value)?c.jsx(c.Fragment,{children:u}):l})});G_.displayName=$_;var iB="SelectIcon",Y_=v.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...a}=e;return c.jsx(We.span,{"aria-hidden":!0,...a,ref:t,children:r||"▼"})});Y_.displayName=iB;var aB="SelectPortal",K_=e=>c.jsx(bc,{asChild:!0,...e});K_.displayName=aB;var ca="SelectContent",X_=v.forwardRef((e,t)=>{const n=vi(ca,e.__scopeSelect),[r,a]=v.useState();if(an(()=>{a(new DocumentFragment)},[]),!n.open){const l=r;return l?Ts.createPortal(c.jsx(Z_,{scope:e.__scopeSelect,children:c.jsx(Gf.Slot,{scope:e.__scopeSelect,children:c.jsx("div",{children:e.children})})}),l):null}return c.jsx(Q_,{...e,ref:t})});X_.displayName=ca;var Ss=10,[Z_,bi]=Io(ca),oB="SelectContentImpl",lB=rc("SelectContent.RemoveScroll"),Q_=v.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:l,onPointerDownOutside:u,side:f,sideOffset:p,align:h,alignOffset:g,arrowPadding:x,collisionBoundary:b,collisionPadding:w,sticky:N,hideWhenDetached:S,avoidCollisions:j,...C}=e,_=vi(ca,n),[E,R]=v.useState(null),[O,M]=v.useState(null),V=pt(t,xe=>R(xe)),[D,F]=v.useState(null),[W,Q]=v.useState(null),H=Yf(n),[ne,te]=v.useState(!1),oe=v.useRef(!1);v.useEffect(()=>{if(E)return u_(E)},[E]),t_();const P=v.useCallback(xe=>{const[Te,...Re]=H().map(Be=>Be.ref.current),[we]=Re.slice(-1),Pe=document.activeElement;for(const Be of xe)if(Be===Pe||(Be?.scrollIntoView({block:"nearest"}),Be===Te&&O&&(O.scrollTop=0),Be===we&&O&&(O.scrollTop=O.scrollHeight),Be?.focus(),document.activeElement!==Pe))return},[H,O]),Y=v.useCallback(()=>P([D,E]),[P,D,E]);v.useEffect(()=>{ne&&Y()},[ne,Y]);const{onOpenChange:Z,triggerPointerDownPosRef:le}=_;v.useEffect(()=>{if(E){let xe={x:0,y:0};const Te=we=>{xe={x:Math.abs(Math.round(we.pageX)-(le.current?.x??0)),y:Math.abs(Math.round(we.pageY)-(le.current?.y??0))}},Re=we=>{xe.x<=10&&xe.y<=10?we.preventDefault():E.contains(we.target)||Z(!1),document.removeEventListener("pointermove",Te),le.current=null};return le.current!==null&&(document.addEventListener("pointermove",Te),document.addEventListener("pointerup",Re,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Te),document.removeEventListener("pointerup",Re,{capture:!0})}}},[E,Z,le]),v.useEffect(()=>{const xe=()=>Z(!1);return window.addEventListener("blur",xe),window.addEventListener("resize",xe),()=>{window.removeEventListener("blur",xe),window.removeEventListener("resize",xe)}},[Z]);const[k,I]=mA(xe=>{const Te=H().filter(Pe=>!Pe.disabled),Re=Te.find(Pe=>Pe.ref.current===document.activeElement),we=pA(Te,xe,Re);we&&setTimeout(()=>we.ref.current.focus())}),J=v.useCallback((xe,Te,Re)=>{const we=!oe.current&&!Re;(_.value!==void 0&&_.value===Te||we)&&(F(xe),we&&(oe.current=!0))},[_.value]),se=v.useCallback(()=>E?.focus(),[E]),ce=v.useCallback((xe,Te,Re)=>{const we=!oe.current&&!Re;(_.value!==void 0&&_.value===Te||we)&&Q(xe)},[_.value]),ve=r==="popper"?Wg:W_,de=ve===Wg?{side:f,sideOffset:p,align:h,alignOffset:g,arrowPadding:x,collisionBoundary:b,collisionPadding:w,sticky:N,hideWhenDetached:S,avoidCollisions:j}:{};return c.jsx(Z_,{scope:n,content:E,viewport:O,onViewportChange:M,itemRefCallback:J,selectedItem:D,onItemLeave:se,itemTextRefCallback:ce,focusSelectedItem:Y,selectedItemText:W,position:r,isPositioned:ne,searchRef:k,children:c.jsx(Rx,{as:lB,allowPinchZoom:!0,children:c.jsx(Ax,{asChild:!0,trapped:_.open,onMountAutoFocus:xe=>{xe.preventDefault()},onUnmountAutoFocus:Fe(a,xe=>{_.trigger?.focus({preventScroll:!0}),xe.preventDefault()}),children:c.jsx(vc,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:xe=>xe.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:c.jsx(ve,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:xe=>xe.preventDefault(),...C,...de,onPlaced:()=>te(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:Fe(C.onKeyDown,xe=>{const Te=xe.ctrlKey||xe.altKey||xe.metaKey;if(xe.key==="Tab"&&xe.preventDefault(),!Te&&xe.key.length===1&&I(xe.key),["ArrowUp","ArrowDown","Home","End"].includes(xe.key)){let we=H().filter(Pe=>!Pe.disabled).map(Pe=>Pe.ref.current);if(["ArrowUp","End"].includes(xe.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(xe.key)){const Pe=xe.target,Be=we.indexOf(Pe);we=we.slice(Be+1)}setTimeout(()=>P(we)),xe.preventDefault()}})})})})})})});Q_.displayName=oB;var cB="SelectItemAlignedPosition",W_=v.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...a}=e,l=vi(ca,n),u=bi(ca,n),[f,p]=v.useState(null),[h,g]=v.useState(null),x=pt(t,V=>g(V)),b=Yf(n),w=v.useRef(!1),N=v.useRef(!0),{viewport:S,selectedItem:j,selectedItemText:C,focusSelectedItem:_}=u,E=v.useCallback(()=>{if(l.trigger&&l.valueNode&&f&&h&&S&&j&&C){const V=l.trigger.getBoundingClientRect(),D=h.getBoundingClientRect(),F=l.valueNode.getBoundingClientRect(),W=C.getBoundingClientRect();if(l.dir!=="rtl"){const Pe=W.left-D.left,Be=F.left-Pe,it=V.left-Be,ct=V.width+it,mn=Math.max(ct,D.width),pn=window.innerWidth-Ss,Ut=qj(Be,[Ss,Math.max(Ss,pn-mn)]);f.style.minWidth=ct+"px",f.style.left=Ut+"px"}else{const Pe=D.right-W.right,Be=window.innerWidth-F.right-Pe,it=window.innerWidth-V.right-Be,ct=V.width+it,mn=Math.max(ct,D.width),pn=window.innerWidth-Ss,Ut=qj(Be,[Ss,Math.max(Ss,pn-mn)]);f.style.minWidth=ct+"px",f.style.right=Ut+"px"}const Q=b(),H=window.innerHeight-Ss*2,ne=S.scrollHeight,te=window.getComputedStyle(h),oe=parseInt(te.borderTopWidth,10),P=parseInt(te.paddingTop,10),Y=parseInt(te.borderBottomWidth,10),Z=parseInt(te.paddingBottom,10),le=oe+P+ne+Z+Y,k=Math.min(j.offsetHeight*5,le),I=window.getComputedStyle(S),J=parseInt(I.paddingTop,10),se=parseInt(I.paddingBottom,10),ce=V.top+V.height/2-Ss,ve=H-ce,de=j.offsetHeight/2,xe=j.offsetTop+de,Te=oe+P+xe,Re=le-Te;if(Te<=ce){const Pe=Q.length>0&&j===Q[Q.length-1].ref.current;f.style.bottom="0px";const Be=h.clientHeight-S.offsetTop-S.offsetHeight,it=Math.max(ve,de+(Pe?se:0)+Be+Y),ct=Te+it;f.style.height=ct+"px"}else{const Pe=Q.length>0&&j===Q[0].ref.current;f.style.top="0px";const it=Math.max(ce,oe+S.offsetTop+(Pe?J:0)+de)+Re;f.style.height=it+"px",S.scrollTop=Te-ce+S.offsetTop}f.style.margin=`${Ss}px 0`,f.style.minHeight=k+"px",f.style.maxHeight=H+"px",r?.(),requestAnimationFrame(()=>w.current=!0)}},[b,l.trigger,l.valueNode,f,h,S,j,C,l.dir,r]);an(()=>E(),[E]);const[R,O]=v.useState();an(()=>{h&&O(window.getComputedStyle(h).zIndex)},[h]);const M=v.useCallback(V=>{V&&N.current===!0&&(E(),_?.(),N.current=!1)},[E,_]);return c.jsx(dB,{scope:n,contentWrapper:f,shouldExpandOnScrollRef:w,onScrollButtonChange:M,children:c.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:R},children:c.jsx(We.div,{...a,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});W_.displayName=cB;var uB="SelectPopperPosition",Wg=v.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:a=Ss,...l}=e,u=Kf(n);return c.jsx(H2,{...u,...l,ref:t,align:r,collisionPadding:a,style:{boxSizing:"border-box",...l.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)"}})});Wg.displayName=uB;var[dB,Mx]=Io(ca,{}),Jg="SelectViewport",J_=v.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...a}=e,l=bi(Jg,n),u=Mx(Jg,n),f=pt(t,l.onViewportChange),p=v.useRef(0);return c.jsxs(c.Fragment,{children:[c.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:r}),c.jsx(Gf.Slot,{scope:n,children:c.jsx(We.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:f,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Fe(a.onScroll,h=>{const g=h.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:b}=u;if(b?.current&&x){const w=Math.abs(p.current-g.scrollTop);if(w>0){const N=window.innerHeight-Ss*2,S=parseFloat(x.style.minHeight),j=parseFloat(x.style.height),C=Math.max(S,j);if(C<N){const _=C+w,E=Math.min(N,_),R=_-E;x.style.height=E+"px",x.style.bottom==="0px"&&(g.scrollTop=R>0?R:0,x.style.justifyContent="flex-end")}}}p.current=g.scrollTop})})})]})});J_.displayName=Jg;var eA="SelectGroup",[fB,hB]=Io(eA),mB=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=ho();return c.jsx(fB,{scope:n,id:a,children:c.jsx(We.div,{role:"group","aria-labelledby":a,...r,ref:t})})});mB.displayName=eA;var tA="SelectLabel",nA=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=hB(tA,n);return c.jsx(We.div,{id:a.id,...r,ref:t})});nA.displayName=tA;var uf="SelectItem",[pB,sA]=Io(uf),rA=v.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:a=!1,textValue:l,...u}=e,f=vi(uf,n),p=bi(uf,n),h=f.value===r,[g,x]=v.useState(l??""),[b,w]=v.useState(!1),N=pt(t,_=>p.itemRefCallback?.(_,r,a)),S=ho(),j=v.useRef("touch"),C=()=>{a||(f.onValueChange(r),f.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return c.jsx(pB,{scope:n,value:r,disabled:a,textId:S,isSelected:h,onItemTextChange:v.useCallback(_=>{x(E=>E||(_?.textContent??"").trim())},[]),children:c.jsx(Gf.ItemSlot,{scope:n,value:r,disabled:a,textValue:g,children:c.jsx(We.div,{role:"option","aria-labelledby":S,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...u,ref:N,onFocus:Fe(u.onFocus,()=>w(!0)),onBlur:Fe(u.onBlur,()=>w(!1)),onClick:Fe(u.onClick,()=>{j.current!=="mouse"&&C()}),onPointerUp:Fe(u.onPointerUp,()=>{j.current==="mouse"&&C()}),onPointerDown:Fe(u.onPointerDown,_=>{j.current=_.pointerType}),onPointerMove:Fe(u.onPointerMove,_=>{j.current=_.pointerType,a?p.onItemLeave?.():j.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Fe(u.onPointerLeave,_=>{_.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:Fe(u.onKeyDown,_=>{p.searchRef?.current!==""&&_.key===" "||(eB.includes(_.key)&&C(),_.key===" "&&_.preventDefault())})})})})});rA.displayName=uf;var $l="SelectItemText",iA=v.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:a,...l}=e,u=vi($l,n),f=bi($l,n),p=sA($l,n),h=rB($l,n),[g,x]=v.useState(null),b=pt(t,C=>x(C),p.onItemTextChange,C=>f.itemTextRefCallback?.(C,p.value,p.disabled)),w=g?.textContent,N=v.useMemo(()=>c.jsx("option",{value:p.value,disabled:p.disabled,children:w},p.value),[p.disabled,p.value,w]),{onNativeOptionAdd:S,onNativeOptionRemove:j}=h;return an(()=>(S(N),()=>j(N)),[S,j,N]),c.jsxs(c.Fragment,{children:[c.jsx(We.span,{id:p.textId,...l,ref:b}),p.isSelected&&u.valueNode&&!u.valueNodeHasChildren?Ts.createPortal(l.children,u.valueNode):null]})});iA.displayName=$l;var aA="SelectItemIndicator",oA=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return sA(aA,n).isSelected?c.jsx(We.span,{"aria-hidden":!0,...r,ref:t}):null});oA.displayName=aA;var ey="SelectScrollUpButton",lA=v.forwardRef((e,t)=>{const n=bi(ey,e.__scopeSelect),r=Mx(ey,e.__scopeSelect),[a,l]=v.useState(!1),u=pt(t,r.onScrollButtonChange);return an(()=>{if(n.viewport&&n.isPositioned){let f=function(){const h=p.scrollTop>0;l(h)};const p=n.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),a?c.jsx(uA,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=n;f&&p&&(f.scrollTop=f.scrollTop-p.offsetHeight)}}):null});lA.displayName=ey;var ty="SelectScrollDownButton",cA=v.forwardRef((e,t)=>{const n=bi(ty,e.__scopeSelect),r=Mx(ty,e.__scopeSelect),[a,l]=v.useState(!1),u=pt(t,r.onScrollButtonChange);return an(()=>{if(n.viewport&&n.isPositioned){let f=function(){const h=p.scrollHeight-p.clientHeight,g=Math.ceil(p.scrollTop)<h;l(g)};const p=n.viewport;return f(),p.addEventListener("scroll",f),()=>p.removeEventListener("scroll",f)}},[n.viewport,n.isPositioned]),a?c.jsx(uA,{...e,ref:u,onAutoScroll:()=>{const{viewport:f,selectedItem:p}=n;f&&p&&(f.scrollTop=f.scrollTop+p.offsetHeight)}}):null});cA.displayName=ty;var uA=v.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...a}=e,l=bi("SelectScrollButton",n),u=v.useRef(null),f=Yf(n),p=v.useCallback(()=>{u.current!==null&&(window.clearInterval(u.current),u.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),an(()=>{f().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[f]),c.jsx(We.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:Fe(a.onPointerDown,()=>{u.current===null&&(u.current=window.setInterval(r,50))}),onPointerMove:Fe(a.onPointerMove,()=>{l.onItemLeave?.(),u.current===null&&(u.current=window.setInterval(r,50))}),onPointerLeave:Fe(a.onPointerLeave,()=>{p()})})}),gB="SelectSeparator",dA=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return c.jsx(We.div,{"aria-hidden":!0,...r,ref:t})});dA.displayName=gB;var ny="SelectArrow",yB=v.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,a=Kf(n),l=vi(ny,n),u=bi(ny,n);return l.open&&u.position==="popper"?c.jsx(q2,{...a,...r,ref:t}):null});yB.displayName=ny;var xB="SelectBubbleInput",fA=v.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const a=v.useRef(null),l=pt(r,a),u=hC(t);return v.useEffect(()=>{const f=a.current;if(!f)return;const p=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(p,"value").set;if(u!==t&&g){const x=new Event("change",{bubbles:!0});g.call(f,t),f.dispatchEvent(x)}},[u,t]),c.jsx(We.select,{...n,style:{...jN,...n.style},ref:l,defaultValue:t})});fA.displayName=xB;function hA(e){return e===""||e===void 0}function mA(e){const t=_s(e),n=v.useRef(""),r=v.useRef(0),a=v.useCallback(u=>{const f=n.current+u;t(f),(function p(h){n.current=h,window.clearTimeout(r.current),h!==""&&(r.current=window.setTimeout(()=>p(""),1e3))})(f)},[t]),l=v.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,a,l]}function pA(e,t,n){const a=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let u=vB(e,Math.max(l,0));a.length===1&&(u=u.filter(h=>h!==n));const p=u.find(h=>h.textValue.toLowerCase().startsWith(a.toLowerCase()));return p!==n?p:void 0}function vB(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var bB=B_,gA=q_,wB=G_,SB=Y_,jB=K_,yA=X_,NB=J_,xA=nA,vA=rA,TB=iA,EB=oA,bA=lA,wA=cA,SA=dA;const CB=bB,_B=wB,jA=v.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(gA,{ref:r,className:Qe("flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...n,children:[t,c.jsx(SB,{asChild:!0,children:c.jsx(Sc,{className:"h-4 w-4 opacity-50"})})]}));jA.displayName=gA.displayName;const NA=v.forwardRef(({className:e,...t},n)=>c.jsx(bA,{ref:n,className:Qe("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(v3,{className:"h-4 w-4"})}));NA.displayName=bA.displayName;const TA=v.forwardRef(({className:e,...t},n)=>c.jsx(wA,{ref:n,className:Qe("flex cursor-default items-center justify-center py-1",e),...t,children:c.jsx(Sc,{className:"h-4 w-4"})}));TA.displayName=wA.displayName;const EA=v.forwardRef(({className:e,children:t,position:n="popper",...r},a)=>c.jsx(jB,{children:c.jsxs(yA,{ref:a,className:Qe("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]:sli
71de-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,...r,children:[c.jsx(NA,{}),c.jsx(NB,{className:Qe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),c.jsx(TA,{})]})}));EA.displayName=yA.displayName;const AB=v.forwardRef(({className:e,...t},n)=>c.jsx(xA,{ref:n,className:Qe("px-2 py-1.5 text-sm font-semibold",e),...t}));AB.displayName=xA.displayName;const CA=v.forwardRef(({className:e,children:t,...n},r)=>c.jsxs(vA,{ref:r,className:Qe("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...n,children:[c.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:c.jsx(EB,{children:c.jsx(gf,{className:"h-4 w-4"})})}),c.jsx(TB,{children:t})]}));CA.displayName=vA.displayName;const RB=v.forwardRef(({className:e,...t},n)=>c.jsx(SA,{ref:n,className:Qe("-mx-1 my-1 h-px bg-muted",e),...t}));RB.displayName=SA.displayName;const kB=bx({name:He().min(1,"Name is required"),slug:He().min(1,"Slug is required"),month:Eo.number().min(1).max(12),year:Eo.number().min(2e3),dateRange:He().min(1,"Date range is required"),shortDescription:He().min(1,"Short description is required"),fullDescription:He().optional(),imageUrl:He().optional(),learnMoreUrl:He().optional(),donateUrl:He().optional(),interviewTitle:He().optional(),guestImageUrl:He().optional(),audioEmbedUrl:He().optional(),audioDuration:He().optional(),videoEmbedUrl:He().optional(),totalRaised:He().optional(),isCurrent:hc().default(!1),showInArchive:hc().default(!0)});function $j({isOpen:e,onClose:t,orgId:n,defaultYear:r,onSaved:a}){const{toast:l}=Vn(),u=Tr(),f=!!n,p=kf(),h=Lo(),{data:g}=EP(n,{query:{enabled:f&&!!n,queryKey:["org",n]}}),x=()=>({name:"",slug:"",month:new Date().getMonth()+1,year:r??new Date().getFullYear(),dateRange:"1-30",shortDescription:"",fullDescription:"",imageUrl:"",learnMoreUrl:"",donateUrl:"",interviewTitle:"",guestImageUrl:"",audioEmbedUrl:"",audioDuration:"",videoEmbedUrl:"",totalRaised:"",isCurrent:!1,showInArchive:!0}),b=yx({resolver:xx(kB),defaultValues:x()});v.useEffect(()=>{e&&(f&&g?b.reset({name:g.name,slug:g.slug,month:g.month,year:g.year,dateRange:g.dateRange,shortDescription:g.shortDescription,fullDescription:g.fullDescription||"",imageUrl:g.imageUrl||"",learnMoreUrl:g.learnMoreUrl||"",donateUrl:g.donateUrl||"",interviewTitle:g.interviewTitle||"",guestImageUrl:g.guestImageUrl||"",audioEmbedUrl:g.audioEmbedUrl||"",audioDuration:g.audioDuration||"",videoEmbedUrl:g.videoEmbedUrl||"",totalRaised:g.totalRaised||"",isCurrent:g.isCurrent,showInArchive:g.showInArchive}):f||b.reset(x()))},[e,f,g]);const w=()=>{u.invalidateQueries({queryKey:sa()}),u.invalidateQueries({queryKey:zo()}),u.invalidateQueries({queryKey:Mc()})},N=j=>{const C={...j,fullDescription:j.fullDescription||null,imageUrl:j.imageUrl||null,learnMoreUrl:j.learnMoreUrl||null,donateUrl:j.donateUrl||null,interviewTitle:j.interviewTitle||null,guestImageUrl:j.guestImageUrl||null,audioEmbedUrl:j.audioEmbedUrl||null,audioDuration:j.audioDuration||null,videoEmbedUrl:j.videoEmbedUrl||null,totalRaised:j.totalRaised||null};f&&n?h.mutate({id:n,data:C},{onSuccess:()=>{l({title:"Saved",description:"Organization updated."}),w(),a?.(),t()},onError:()=>{l({variant:"destructive",title:"Error",description:"Failed to update organization."})}}):p.mutate({data:C},{onSuccess:()=>{l({title:"Added",description:"Organization created."}),w(),a?.(),t()},onError:_=>{const E=_?.data?.error??(_ instanceof Error?_.message:null);l({variant:"destructive",title:"Error",description:E??"Failed to create organization."})}})},S=p.isPending||h.isPending;return c.jsx(zF,{open:e,onOpenChange:j=>!j&&t(),children:c.jsxs(k_,{className:"max-w-3xl max-h-[90vh] overflow-y-auto bg-white dark:bg-zinc-950",children:[c.jsx(O_,{children:c.jsx(D_,{children:f?"Edit Organization":`Add Organization${r?` — ${r}`:""}`})}),c.jsx(XF,{...b,children:c.jsxs("form",{onSubmit:b.handleSubmit(N),className:"space-y-6 pt-4",children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsx(Mn,{control:b.control,name:"name",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Organization Name"}),c.jsx(wn,{children:c.jsx(ze,{placeholder:"e.g. The Hope Center",...j})}),c.jsx(Yn,{})]})}),c.jsx(Mn,{control:b.control,name:"slug",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Slug"}),c.jsx(wn,{children:c.jsx(ze,{placeholder:"e.g. the-hope-center",...j})}),c.jsx(ql,{children:"URL friendly name"}),c.jsx(Yn,{})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[c.jsx(Mn,{control:b.control,name:"month",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Month"}),c.jsxs(CB,{onValueChange:j.onChange,value:j.value.toString(),children:[c.jsx(wn,{children:c.jsx(jA,{children:c.jsx(_B,{placeholder:"Select month"})})}),c.jsx(EA,{children:Array.from({length:12},(C,_)=>_+1).map(C=>c.jsx(CA,{value:C.toString(),children:new Date(0,C-1).toLocaleStr
71ing("default",{month:"long"})},C))})]}),c.jsx(Yn,{})]})}),c.jsx(Mn,{control:b.control,name:"year",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Year"}),c.jsx(wn,{children:c.jsx(ze,{type:"number",...j})}),c.jsx(Yn,{})]})}),c.jsx(Mn,{control:b.control,name:"dateRange",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Date Range"}),c.jsx(wn,{children:c.jsx(ze,{placeholder:"e.g. 1-30",...j})}),c.jsx(Yn,{})]})})]}),c.jsx(Mn,{control:b.control,name:"shortDescription",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Short Description (Hero Text)"}),c.jsx(wn,{children:c.jsx(mi,{placeholder:"A powerful, brief description for the hero section.",className:"h-20 text-lg font-medium",...j})}),c.jsx(Yn,{})]})}),c.jsx(Mn,{control:b.control,name:"fullDescription",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Full Description (Optional)"}),c.jsx(wn,{children:c.jsx(mi,{placeholder:"More detailed background about the organization.",className:"h-32",...j})}),c.jsx(Yn,{})]})}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsx(Jn,{label:"Org Image",type:"image",value:b.watch("imageUrl")??"",onChange:j=>b.setValue("imageUrl",j)}),c.jsx(Mn,{control:b.control,name:"donateUrl",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Donate URL"}),c.jsx(wn,{children:c.jsx(ze,{placeholder:"https://...",...j})}),c.jsx(Yn,{})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsx(Mn,{control:b.control,name:"learnMoreUrl",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Learn More URL (Website)"}),c.jsx(wn,{children:c.jsx(ze,{placeholder:"https://...",...j})}),c.jsx(Yn,{})]})}),c.jsx(Mn,{control:b.control,name:"totalRaised",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Total Raised (Optional)"}),c.jsx(wn,{children:c.jsx(ze,{placeholder:"e.g. $50,000+",...j})}),c.jsx(Yn,{})]})})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsx(Jn,{label:"Guest / Founder Photo",type:"image",hint:"Circular headshot shown in the tracklist",value:b.watch("guestImageUrl")??"",onChange:j=>b.setValue("guestImageUrl",j)}),c.jsx(Mn,{control:b.control,name:"videoEmbedUrl",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Video Embed URL"}),c.jsx(wn,{children:c.jsx(ze,{placeholder:"e.g. YouTube embed URL",...j})}),c.jsx(Yn,{})]})})]}),c.jsx(Jn,{label:"Audio Segment",type:"audio",hint:"Upload .mp3 or paste a URL — adds a 'Listen' button to the hero",value:b.watch("audioEmbedUrl")??"",onChange:j=>b.setValue("audioEmbedUrl",j),onDuration:j=>{if(!b.getValues("audioDuration")){const C=Math.floor(j/60),_=Math.floor(j%60);b.setValue("audioDuration",`${C}:${_.toString().padStart(2,"0")}`)}}}),c.jsx(Mn,{control:b.control,name:"audioDuration",render:({field:j})=>c.jsxs(vn,{children:[c.jsx(bn,{children:"Audio Duration"}),c.jsx(wn,{children:c.jsx(ze,{placeholder:"MM:SS",className:"font-mono",...j})}),c.jsx(ql,{children:'e.g. "47:10" — auto-fills from the uploaded file'}),c.jsx(Yn,{})]})}),c.jsxs("p",{className:"text-xs text-zinc-500",children:["The interview title is managed in ",c.jsx("strong",{children:"Radio / Playlist"}),"."]}),c.jsxs("div",{className:"flex gap-8 border-t pt-6 bg-gray-50 dark:bg-zinc-900/50 p-4 rounded-lg",children:[c.jsx(Mn,{control:b.control,name:"isCurrent",render:({field:j})=>c.jsxs(vn,{className:"flex flex-row items-start space-x-3 space-y-0",children:[c.jsx(wn,{children:c.jsx(pi,{checked:j.value,onCheckedChange:j.onChange,className:"mt-1"})}),c.jsxs("div",{className:"space-y-1 leading-none",children:[c.jsx(bn,{className:"text-base font-bold text-primary",children:"Current Month Spotlight"}),c.jsx(ql,{children:"Set this as the active organization shown on the homepage."})]})]})}),c.jsx(Mn,{control:b.control,name:"showInArchive",render:({field:j})=>c.jsxs(vn,{className:"flex flex-row items-start space-x-3 space-y-0",children:[c.jsx(wn,{children:c.jsx(pi,{checked:j.value,onCheckedChange:j.onChange,className:"mt-1"})}),c.jsxs("div",{className:"space-y-1 leading-none",children:[c.jsx(bn,{className:"text-base font-bold",children:"Show in Archive"}),c.jsx(ql,{children:"Display this organization on the Archive page."})]})]})})]}),c.jsxs("div",{className:"flex justify-end gap-3 pt-6 border-t",children:[c.jsx(Qg,{type:"button",variant:"outline",onClick:t,disabled:S,children:"Cancel"}),c.jsx(Qg,{type:"submit",disabled:S,className:"font-bold px-8",children:S?"Saving...":"Save Organization"})]})]})})]})})}const _A=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function OB({org:e,onEdit:t,onDelete:n,onSetCurrent:r}){const{attributes:a,listeners:l,setNodeRef:u,transform:f,transition:p,isDragging:h}=WC({id:e.id});return c.jsxs("tr",{ref:u,style:{transform:Nr.Transform.toString(f),transition:p,opacity:h?.3:1,position:"relative",zIndex:h?20:void 0,background:h?"rgb(39 39 42)":void 0},className:`border-b border-zinc-800/50 last:border-0 ${e.isCurrent?"bg-[#3ab54a]/5":"hover:bg-zinc-800/30"} transition-colors`,children:[c.jsx("td",{className:"pl-2 pr-1 py-3 w-6",children:c.jsx("button",{...a,...l,className:"cursor-grab active:cursor-grabbing text-zinc-600 hover:text-zinc-400 p-0.5 rounded touch-none",title:"Drag to reorder within year, or drag to another year section",children:c.jsx(yf,{className:"w-4 h-4"})})}),c.jsx("td",{className:"px-3 py-3",children:e.isCurrent?c.jsxs("span",{className:"flex items-center gap-1.5 text-[#3ab54a] text-xs font-bold",children:[c.jsx(ea,{className:"w-3.5 h-3.5 fill-[#3ab54a]"}),"Current"]}):c.jsx("button",{onClick:()=>r(e.id,e.name),className:"text-xs text-zinc-500 hover:text-[#3ab54a] border border-zinc-700 hover:border-[#3ab54a] px-2 py-0.5 rounded transition-colors whitespace-nowrap",children:"Set Current"})}),c.jsx("td",{className:"px-4 py-3 font-semibold text-white",children:e.name}),c.jsx("td",{className:"px-4 py-3 text-zinc-400",children:_A[(e.month??1)-1]}),c.jsx("td",{className:"px-4 py-3 text-zinc-500",children:e.dateRange}),c.jsx("td",{className:"px-4 py-3",children:c.jsx("span",{className:`text-xs px-2 py-0.5 rounded-full ${e.showInArchive?"bg-[#3ab54a]/10 text-[#3ab54a]":"bg-zinc-800 text-zinc-500"}`,children:e.showInArchive?"Visible":"Hidden"})}),c.jsx("td",{className:"px-4 py-3 text-right",children:c.jsxs("div",{className:"flex items-center justify-end gap-1",children:[c.jsx("button",{onClick:()=>t(e.id),className:"p-1.5 rounded hover:bg-zinc-700 text-zinc-400 hover:text-blue-400 transition-colors",children:c.jsx(gy,{className:"w-3.5 h-3.5"})}),c.jsx("button",{onClick:()=>n(e.id,e.name),className:"p-1.5 rounded hover:bg-zinc-700 text-zinc-400 hover:text-red-400 transition-colors",children:c.jsx(xf,{className:"w-3.5 h-3.5"})})]})})]})}function DB({org:e}){return c.jsxs("div",{className:"bg-zinc-800 border border-[#3ab54a]/60 rounded-lg px-4 py-2.5 flex items-center gap-3 shadow-2xl cursor-grabbing",children:[c.jsx(yf,{className:"w-4 h-4 text-[#3ab54a] shrink-0"}),c.jsx("span",{className:"font-semibold text-white text-sm",children:e.name}),c.jsxs("span",{className:"text-zinc-400 text-xs ml-auto",children:[_A[(e.month??1)-1]," ",e.year]})]})}function MB({year:e,orgs:t,onEdit:n,onDelete:r,onSetCurrent:a,onAddToYear:l}){return c.jsxs("div",{className:"mb-8",children:[c.jsxs("div",{className:"flex items-center gap-4 mb-3",children:[c.jsx("h2",{className:"text-2xl font-bold text-[#3ab54a]",style:{fontFamily:"'Oswald', sans-serif"},children:e}),c.jsx("div",{className:"flex-1 h-px bg-zinc-800"}),c.jsxs("span",{className:"text-xs text-zinc-500",children:[t.length," org",t.length!==1?"s":""]}),c.jsxs("button",{onClick:()=>l(e),className:"flex items-center gap-1.5 text-xs font-medium text-zinc-400 hover:text-[#3ab54a] border border-zinc-700 hover:border-[#3ab54a] px-3 py-1.5 rounded-lg transition-colors",children:[c.jsx(yy,{className:"w-3.5 h-3.5"}),"Add Org"]})]}),c.jsx("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{children:c.jsxs("tr",{className:"border-b border-zinc-800 text-xs text-zinc-500 uppercase tracking-wider",children:[c.jsx("th",{className:"pl-2 pr-1 py-3 w-6"}),c.jsx("th",{className:"px-3 py-3 text-left w-28"}),c.jsx("th",{className:"px-4 py-3 text-left",children:"Organization"}),c.jsx("th",{className:"px-4 py-3 text-left",children:"Month"}),c.jsx("th",{className:"px-4 py-3 text-left",children:"Date Range"}),c.jsx("th",{className:"px-4 py-3 text-left",children:"Archive"}),c.jsx("th",{className:"px-4 py-3 text-right",children:"Actions"})]})}),c.jsx(ZC,{items:t.map(u=>u.id),strategy:YC,children:c.jsxs("tbody",{children:[t.map(u=>c.jsx(OB,{org:u,onEdit:n,onDelete:r,onSetCurrent:a}
71,u.id)),t.length===0&&c.jsx("tr",{children:c.jsxs("td",{colSpan:7,className:"px-4 py-8 text-center text-zinc-600 text-sm italic",children:["Drag an org here to move it to ",e]})})]})})]})})]})}function zB(){const{toast:e}=Vn(),t=Tr(),[n,r]=v.useState(null),[a,l]=v.useState(null),[u,f]=v.useState(null),[p,h]=v.useState({}),[g,x]=v.useState(""),[b,w]=v.useState(null),{data:N,isLoading:S}=Rf(),j=DP(),C=Lo(),_=()=>{t.invalidateQueries({queryKey:sa()}),t.invalidateQueries({queryKey:zo()}),t.invalidateQueries({queryKey:Mc()})};v.useEffect(()=>{if(!N)return;const H={};for(const ne of N)H[ne.id]=ne;h(H)},[N]);const R=Object.values(p).reduce((H,ne)=>(H[ne.year]||(H[ne.year]=[]),H[ne.year].push(ne),H),{});for(const H of Object.keys(R))R[Number(H)].sort((ne,te)=>(ne.sortOrder??0)-(te.sortOrder??0));const O=Object.keys(R).map(Number).sort((H,ne)=>ne-H),M=NC(Gg(Uf,{activationConstraint:{distance:5}}),Gg(Ex,{coordinateGetter:_I})),V=H=>{f(p[H.active.id]??null)},D=H=>{const{active:ne,over:te}=H;if(f(null),!te||ne.id===te.id)return;const oe=p[ne.id],P=p[te.id];if(!(!oe||!P))if(oe.year===P.year){const Y=R[oe.year]??[],Z=Y.findIndex(I=>I.id===ne.id),le=Y.findIndex(I=>I.id===te.id);if(Z===-1||le===-1)return;const k=Bf(Y,Z,le);h(I=>{const J={...I};return k.forEach((se,ce)=>{J[se.id]={...se,sortOrder:ce}}),J}),fetch("/api/organizations/reorder",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k.map((I,J)=>({id:I.id,sortOrder:J})))}).then(I=>{if(!I.ok)throw new Error("Reorder failed");_()}).catch(()=>e({variant:"destructive",title:"Error",description:"Failed to save order."}))}else{const Y=P.year,Z=oe.year;h(le=>({...le,[oe.id]:{...oe,year:Y}})),C.mutate({id:oe.id,data:{year:Y}},{onSuccess:()=>{e({title:"Moved",description:`${oe.name} moved to ${Y}.`}),_()},onError:()=>{h(le=>({...le,[oe.id]:{...oe,year:Z}})),e({variant:"destructive",title:"Error",description:"Failed to move organization."})}})}},F=(H,ne)=>{x(""),w({id:H,name:ne})},W=()=>{if(!b||g!=="DELETE")return;const{id:H,name:ne}=b;j.mutate({id:H,data:{confirmation:"DELETE"}},{onSuccess:()=>{e({title:"Deleted",description:`${ne} removed.`}),w(null),x(""),_()},onError:te=>{const oe=te?.response?.data?.error;e({variant:"destructive",title:"Error",description:oe??"Failed to delete."})}})},Q=(H,ne)=>{C.mutate({id:H,data:{isCurrent:!0}},{onSuccess:()=>{e({title:"Updated",description:`${ne} is now the current org.`}),_()},onError:()=>e({variant:"destructive",title:"Error",description:"Failed to update."})})};return c.jsxs(Ln,{children:[c.jsxs("div",{className:"p-8 max-w-5xl mx-auto",children:[c.jsxs("div",{className:"flex items-start justify-between mb-8",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-3xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Archive"}),c.jsx("p",{className:"text-zinc-400 text-sm",children:"Drag within a year to reorder · drag to a different year section to reassign"})]}),c.jsxs("button",{onClick:()=>l(-1),className:"flex items-center gap-2 px-4 py-2 bg-[#3ab54a] hover:bg-[#45f68e] text-black font-bold rounded-lg transition-colors text-sm",children:[c.jsx(yy,{className:"w-4 h-4"}),"Add New Org"]})]}),S?c.jsx("div",{className:"flex justify-center py-20",children:c.jsx(St,{className:"w-8 h-8 animate-spin text-[#3ab54a]"})}):O.length===0?c.jsx("div",{className:"text-center py-20 text-zinc-500",children:"No organizations yet."}):c.jsxs(qC,{sensors:M,collisionDetection:_C,onDragStart:V,onDragEnd:D,children:[O.map(H=>c.jsx(MB,{year:H,orgs:R[H]??[],onEdit:r,onDelete:F,onSetCurrent:Q,onAddToYear:l},H)),c.jsx(pI,{dropAnimation:null,children:u?c.jsx(DB,{org:u}):null})]})]}),c.jsx($j,{isOpen:!!n,onClose:()=>r(null),orgId:n,onSaved:_}),c.jsx($j,{isOpen:a!==null,onClose:()=>l(null),orgId:null,defaultYear:a&&a>0?a:void 0,onSaved:()=>{l(null),_()}}),b&&c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/75 p-4",children:c.jsxs("div",{className:"w-full max-w-md rounded-2xl border border-red-900/60 bg-zinc-900 p-6 shadow-2xl",children:[c.jsx("h2",{className:"mb-2 text-lg font-bold uppercase tracking-wider text-red-400",children:"Permanently delete organization?"}),c.jsxs("p",{className:"mb-4 text-sm text-zinc-300",children:["This removes ",c.jsx("strong",{className:"text-white",children:b.name})," from the database. This cannot be undone. Type ",c.jsx("strong",{className:"text-white",children:"DELETE"})," to confirm."]}),c.jsx("input",{value:g,onChange:H=>x(H.target.value),placeholder:"Type DELETE",autoComplete:"off",className:"mb-5 w-full rounded-lg border border-zinc-700 bg-zinc-800 px-3 py-2 text-white outline-none focus:border-red-500"}),c.jsxs("div",{className:"flex justify-end gap-3",children:[c.jsx("button",{onClick:()=>{w(null),x("")},className:"px-5 py-2 text-sm text-zinc-400 transition-colors hover:text-white",children:"Cancel"}),c.jsx("button",{onClick:W,disabled:g!=="DELETE"||j.isPending,className:"rounded-lg bg-red-600 px-5 py-2 text-sm font-bold text-white transition-colors hover:bg-red-500 disabled:cursor-not-allowed disabled:opacity-50",children:j.isPending?"Deleting...":"Delete permanently"})]})]})})]})}async function LB(){const e=await fetch("/api/settings");if(!e.ok)throw new Error("Failed to load settings");return e.json()}async function VB(e){const t=await fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"include"});if(!t.ok)throw new Error("Failed to save settings");return t.json()}function Ht({label:e,hint:t,children:n}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:e}),n,t&&c.jsx("p",{className:"text-xs text-zinc-600 mt-1.5",children:t})]})}function ei({title:e,children:t,keys:n,settings:r,onSave:a,isSaving:l,savedKey:u}){const f=n.join(","),p=u===f;return c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-5 mb-5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a]",children:e}),c.jsxs("button",{onClick:()=>a(n),disabled:l,className:"flex items-center gap-1.5 px-4 py-1.5 bg-[#3ab54a] hover:bg-[#45f68e] text-black text-xs font-bold rounded-lg transition-colors disabled:opacity-50",children:[l?c.jsx(St,{className:"w-3 h-3 animate-spin"}):c.jsx(fa,{className:"w-3 h-3"}),p?"Saved!":"Save"]})]}),t]})}const PB=[{value:"footer",label:"Footer",Icon:R3},{value:"radio",label:"Radio Section",Icon:nD},{value:"stats",label:"Stats",Icon:f3},{value:"about",label:"About Page",Icon:o3},{value:"social",label:"Social Share",Icon:uD}];function UB(){const{toast:e}=Vn(),[t,n]=v.useState({}),[r,a]=v.useState(!0),[l,u]=v.useState(!1),[f,p]=v.useState(null),[h,g]=v.useState("footer");v.useEffect(()=>{LB().then(n).catch(()=>e({variant:"destructive",title:"Error",description:"Could not load settings."})).finally(()=>a(!1))},[]);const x=(S,j)=>n(C=>({...C,[S]:j})),w={settings:t,onSave:async S=>{const j={};for(const C of S)j[C]=t[C]??"";u(!0);try{const C=await VB(j);n(C);const _=S.join(",");p(_),setTimeout(()=>p(null),2e3),e({title:"Saved"})}catch{e({variant:"destructive",title:"Error",description:"Failed to save."})}finally{u(!1)}},isSaving:l,savedKey:f},N=(S,j)=>c.jsx(ze,{value:t[S]??"",onChange:C=>x(S,C.target.value),className:"bg-zinc-800 border-zinc-700 text-white",...j});return r?c.jsx(Ln,{children:c.jsx("div",{className:"flex justify-center py-20",children:c.jsx(St,{className:"w-8 h-8 animate-spin text-[#3ab54a]"})})}):c.jsx(Ln,{children:c.jsxs("div",{className:"flex min-h-screen",children:[c.jsxs("aside",{className:"w-52 flex-shrink-0 border-r border-zinc-800 bg-zinc-900/50 py-8 px-3 space-y-0.5",children:[c.jsx("p",{className:"text-[10px] font-bold uppercase tracking-widest text-zinc-600 px-3 mb-3",children:"Site Settings"}),PB.map(({value:S,label:j,Icon:C})=>c.jsxs("button",{onClick:()=>g(S),className:`w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm transition-colors text-left ${h===S?"bg-[#3ab54a]/15 text-[#3ab54a] font-semibold":"text-zinc-400 hover:text-white hover:bg-zinc-800"}`,children:[c.jsx(C,{className:"w-4 h-4 flex-shrink-0"}),j]},S))]}),c.jsxs("div",{className:"flex-1 overflow-y-auto p-8 max-w-2xl",children:[h==="footer"&&c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"text-2xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Footer"}),c.jsx("p",{className:"text-zinc-500 text-sm mb-8",children:"Links, social handles, and footer CTA shown at the bottom of every page"}),c.jsxs(ei,{title:"Tune In & Call In",keys:["footer_tune_in_text","footer_tune_in_url","footer_phone"],...w,children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Ht,{label:"Tune-In Channel Text",hint:'e.g. "SiriusXM Urban Vie
71w, Channel 126"',children:N("footer_tune_in_text")}),c.jsx(Ht,{label:"Listen Link",hint:"URL for the listen/stream button",children:N("footer_tune_in_url",{placeholder:"https://siriusxm.com/..."})})]}),c.jsx(Ht,{label:"Call-In Phone Number",children:N("footer_phone",{placeholder:"+1 866-801-8255"})})]}),c.jsxs(ei,{title:"Social Links",keys:["footer_instagram","footer_twitter","footer_threads"],...w,children:[c.jsx(Ht,{label:"Instagram URL",children:N("footer_instagram",{placeholder:"https://www.instagram.com/..."})}),c.jsx(Ht,{label:"X / Twitter URL",children:N("footer_twitter",{placeholder:"https://x.com/..."})}),c.jsx(Ht,{label:"Threads URL",children:N("footer_threads",{placeholder:"https://www.threads.net/..."})})]}),c.jsxs(ei,{title:"Footer CTA Button",keys:["footer_btn_text","footer_btn_url"],...w,children:[c.jsx("p",{className:"text-xs text-zinc-500 -mt-2 mb-1",children:"Optional button in the footer (leave blank to hide)"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Ht,{label:"Button Label",children:N("footer_btn_text",{placeholder:"e.g. GIVE NOW"})}),c.jsx(Ht,{label:"Button Link",children:N("footer_btn_url",{placeholder:"https://..."})})]})]})]}),h==="radio"&&c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"text-2xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Radio Section"}),c.jsx("p",{className:"text-zinc-500 text-sm mb-8",children:'Labels and links for the "From the Radio" tracklist on the homepage'}),c.jsx(ei,{title:"Labels & Archive Link",keys:["radio_eyebrow","radio_heading","radio_link_text","radio_link_url"],...w,children:c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Ht,{label:"Eyebrow Label",hint:"Small green text above the heading",children:N("radio_eyebrow",{placeholder:"Organization Spotlight"})}),c.jsx(Ht,{label:"Section Heading",hint:"Large bold heading",children:N("radio_heading",{placeholder:"From the Radio"})}),c.jsx(Ht,{label:"Archive Link Text",hint:"Text for the top-right link",children:N("radio_link_text",{placeholder:"See the Archive"})}),c.jsx(Ht,{label:"Archive Link URL",hint:"Full URL or relative path",children:N("radio_link_url",{placeholder:"/archive"})})]})}),c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6",children:[c.jsx("p",{className:"text-xs font-bold uppercase tracking-widest text-zinc-500 mb-4",children:"Section Preview"}),c.jsxs("div",{className:"flex items-start justify-between mb-3",children:[c.jsx("p",{className:"text-[#3ab54a] text-xs font-bold uppercase tracking-widest",children:t.radio_eyebrow||"Organization Spotlight"}),c.jsxs("span",{className:"text-white font-bold text-sm flex items-center gap-1",children:[t.radio_link_text||"See the Archive"," →"]})]}),c.jsx("h2",{className:"text-3xl font-bold text-white uppercase",style:{fontFamily:"'Oswald', sans-serif"},children:t.radio_heading||"From the Radio"})]})]}),h==="stats"&&c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"text-2xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Stats"}),c.jsx("p",{className:"text-zinc-500 text-sm mb-8",children:"The four numbers shown in the stats strip on the homepage"}),c.jsxs(ei,{title:"Homepage Statistics",keys:["stats_year_founded","stats_orgs_featured","stats_dollars_directed","stats_years_running"],...w,children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx(Ht,{label:"Year Founded",children:N("stats_year_founded",{placeholder:"2024"})}),c.jsx(Ht,{label:"Organizations Featured",children:N("stats_orgs_featured",{placeholder:"27"})}),c.jsx(Ht,{label:"Dollars Directed",hint:'Include prefix/suffix, e.g. "$250k+"',children:N("stats_dollars_directed",{placeholder:"$250k+"})}),c.jsx(Ht,{label:"Years Running",children:N("stats_years_running",{placeholder:"3"})})]}),c.jsx("div",{className:"mt-4 grid grid-cols-4 gap-3 bg-white rounded-lg px-4 py-5",children:[{val:t.stats_year_founded||"2024",label:"Year Founded"},{val:t.stats_orgs_featured||"27",label:"Organizations Featured"},{val:t.stats_dollars_directed||"$250k+",label:"Directed to Nonprofits"},{val:t.stats_years_running||"3",label:"Years Running"}].map(({val:S,label:j})=>c.jsxs("div",{className:"flex flex-col items-center text-center",children:[c.jsx("span",{className:"text-3xl font-bold leading-none text-black",style:{fontFamily:"'Oswald', sans-serif"},children:S}),c.jsx("span",{className:"text-[9px] font-bold uppercase tracking-widest text-black/50 mt-1.5 leading-tight",children:j})]},j))})]})]}),h==="about"&&c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"text-2xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"About Page"}),c.jsx("p",{className:"text-zinc-500 text-sm mb-8",children:'Content for the "How Urban Vie
71w Gives Got Started" section'}),c.jsxs(ei,{title:"Origin Audio",keys:["about_audio_url"],...w,children:[c.jsx("p",{className:"text-xs text-zinc-500 -mt-2 mb-1",children:"Paste a direct .mp3 URL or a SoundCloud/Spotify embed URL."}),c.jsx(Ht,{label:"Audio URL",hint:"Direct .mp3 link or SoundCloud/Spotify embed URL",children:N("about_audio_url",{placeholder:"https://soundcloud.com/... or https://example.com/audio.mp3"})}),t.about_audio_url&&c.jsxs("div",{className:"mt-3 bg-zinc-800 rounded-lg p-3",children:[c.jsx("p",{className:"text-xs text-zinc-500 uppercase tracking-widest mb-2",children:"Current URL"}),c.jsx("p",{className:"text-xs text-zinc-300 font-mono truncate",children:t.about_audio_url})]})]})]}),h==="social"&&c.jsxs(c.Fragment,{children:[c.jsx("h1",{className:"text-2xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Social Share"}),c.jsx("p",{className:"text-zinc-500 text-sm mb-8",children:"The image and text shown when this site is shared on social media (Facebook, X, LinkedIn, iMessage, etc.)"}),c.jsxs(ei,{title:"Share Image",keys:["og_image_url"],...w,children:[c.jsxs("p",{className:"text-xs text-zinc-500 -mt-2 mb-3",children:["Recommended size: ",c.jsx("strong",{className:"text-zinc-300",children:"1200 × 630 px"})," · JPEG or PNG · Upload below then click Save."]}),c.jsx(Jn,{label:"Social Share Image",type:"image",accept:"image/jpeg,image/png,image/webp",value:t.og_image_url??"",onChange:S=>x("og_image_url",S)}),t.og_image_url&&c.jsxs("div",{className:"mt-4 rounded-xl overflow-hidden border border-zinc-700 bg-zinc-800",children:[c.jsx("img",{src:t.og_image_url,alt:"Social share preview",className:"w-full object-cover max-h-48"}),c.jsxs("div",{className:"px-3 py-2 bg-zinc-900 border-t border-zinc-800",children:[c.jsx("p",{className:"text-[10px] text-zinc-500 uppercase tracking-widest",children:"Preview"}),c.jsx("p",{className:"text-xs text-zinc-300 font-semibold mt-0.5",children:"Urban View Gives | SiriusXM Urban View Channel 126"}),c.jsx("p",{className:"text-[11px] text-zinc-500 truncate",children:"urbanviewgives.replit.app"})]})]})]}),c.jsxs(ei,{title:"Share Text",keys:["og_title","og_description"],...w,children:[c.jsx("p",{className:"text-xs text-zinc-500 -mt-2 mb-3",children:"Overrides the default title and description shown in social link previews."}),c.jsx(Ht,{label:"Title",hint:"Shown as the bold headline in the link preview",children:N("og_title",{placeholder:"Urban View Gives | SiriusXM Urban View Channel 126"})}),c.jsx(Ht,{label:"Description",hint:"1–2 sentence summary shown under the title",children:N("og_description",{placeholder:"SiriusXM Urban View Channel 126 monthly giving spotlight — highlighting nonprofits making a difference."})})]}),c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-5 text-xs text-zinc-500 space-y-1",children:[c.jsx("p",{className:"text-[#3ab54a] font-bold uppercase tracking-widest text-[10px] mb-2",children:"How it works"}),c.jsx("p",{children:"• Upload an image and save — it becomes the preview image on all social platforms."}),c.jsx("p",{children:"• Facebook and X/Twitter cache previews. Use their debugger tools to refresh after an update:"}),c.jsxs("div",{className:"flex gap-3 mt-2",children:[c.jsx("a",{href:"https://developers.facebook.com/tools/debug/",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-[#3ab54a] underline transition-colors",children:"Facebook Debugger ↗"}),c.jsx("a",{href:"https://cards-dev.twitter.com/validator",target:"_blank",rel:"noopener noreferrer",className:"text-zinc-400 hover:text-[#3ab54a] underline transition-colors",children:"X Card Validator ↗"})]})]})]})]})]})})}function IB(e={}){const t=e.basePath??"/api/storage",[n,r]=v.useState(!1),[a,l]=v.useState(null),[u,f]=v.useState(0),p=v.useCallback(async b=>{const w=await fetch(`${t}/uploads/request-url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:b.name,size:b.size,contentType:b.type||"application/octet-stream"})});if(!w.ok){const N=await w.json().catch(()=>({}));throw new Error(N.error||"Failed to get upload URL")}return w.json()},[]),h=v.useCallback(async(b,w)=>{if(!(await fetch(w,{method:"PUT",body:b,headers:{"Content-Type":b.type||"application/octet-stream"}})).ok)throw new Error("Failed to upload file to storage")},[]),g=v.useCallback(async b=>{r(!0),l(null),f(0);try{f(10);const w=await p(b);return f(30),await h(b,w.uploadURL),f(100),e.onSuccess?.(w),w}catch(w){const N=w instanceof Error?w:new Error("Upload failed");return l(N),e.onError?.(N),null}finally{r(!1)}},[p,h,e]),x=v.useCallback(async b=>{const w=await fetch(`${t}/uploads/request-url`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:b.name,size:b.size,contentType:b.type||"application/octet-stream"})});if(!w.ok)throw new Error("Failed to get upload URL");return{method:"PUT",url:(await w.json()).uploadURL,headers:{"Content-Type":b.type||"application/octet-stream"}}},[]);return{uploadFile:g,getUploadParameters:x,isUploading:n,error:a,progress:u}}function FB({contentType:e}){return e.startsWith("image/")?c.jsx(XN,{className:"w-5 h-5 text-blue-400"}):e.startsWith("audio/")?c.jsx(og,{className:"w-5 h-5 text-[#3ab54a]"}):c.jsx(_3,{className:"w-5 h-5 text-zinc-400"})}function BB(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function HB(e){return new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})}function qB(){const{toast:e}=Vn(),t=Tr(),n=v.useRef(null),[r,a]=v.useState(null),[l,u]=v.useState("all"),[f,p]=v.useState(null),[h,g]=v.useState(null),{data:x=[],isLoading:b}=ua({queryKey:["media-files"],queryFn:async()=>{const E=await fetch("/api/storage/media");if(!E.ok)throw new Error("Failed to load media");return E.json()}}),{uploadFile:w,isUploading:N,progress:S}=IB({onSuccess:async E=>{await fetch("/api/storage/media/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:E.metadata.name,objectPath:E.objectPath,contentType:E.metadata.contentType,size:E.metadata.size})}),t.invalidateQueries({queryKey:["media-files"]}),e({title:"Uploaded",description:E.metadata.name})},onError:E=>e({variant:"destructive",title:"Upload failed",description:E.message})}),j=E=>{const R=`/api/storage${E.objectPath}`;navigator.clipboard.writeText(R),a(E.id),setTimeout(()=>a(null),1500)},C=async E=>{g(E.id);try{if(!(await fetch(`/api/storage/media/${E.id}`,{method:"DELETE"})).ok)throw new Error("Delete failed");t.invalidateQueries({queryKey:["media-files"]}),e({title:"Deleted",description:`${E.name} has been removed.`})}catch{e({variant:"destructive",title:"Error",description:"Failed to delete file."})}finally{g(null),p(null)}},_=l==="all"?x:x.filter(E=>l==="image"?E.contentType.startsWith("image/"):E.contentType.startsWith("audio/"));return c.jsx(Ln,{children:c.jsxs("div",{className:"p-8 max-w-5xl mx-auto",children:[c.jsxs("div",{className:"flex items-center justify-between mb-8",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-3xl font-bold uppercase tracking-wide",style:{fontFamily:"'Oswald', sans-serif"},children:"Media Library"}),c.jsx("p",{className:"text-zinc-400 text-sm mt-1",children:"All uploaded images and audio files"})]}),c.jsxs("button",{onClick:()=>n.current?.click(),disabled:N,className:"flex items-center gap-2 px-5 py-2.5 bg-[#3ab54a] hover:bg-[#45f68e] text-black font-bold rounded-lg transition-colors disabled:opacity-50",children:[N?c.jsx(St,{className:"w-4 h-4 animate-spin"}):c.jsx(Rd,{className:"w-4 h-4"}),N?`Uploading ${S}%`:"Upload File"]}),c.jsx("input",{ref:n,type:"file",accept:"image/*,audio/*",className:"hidden",onChange:E=>{const R=E.target.files?.[0];R&&w(R),E.target.value=""}})]}),N&&c.jsx("div",{className:"mb-6 h-1.5 bg-zinc-800 rounded-full overflow-hidden",children:c.jsx("div",{className:"h-full bg-[#3ab54a] transition-all duration-300",style:{width:`${S}%`}})}),c.jsx("div",{className:"flex gap-1 mb-6 bg-zinc-900 border border-zinc-800 rounded-lg p-1 
71w-fit",children:["all","image","audio"].map(E=>c.jsxs("button",{onClick:()=>u(E),className:`flex items-center gap-1.5 px-4 py-1.5 rounded-md text-sm font-medium transition-colors ${l===E?"bg-zinc-700 text-white":"text-zinc-400 hover:text-white"}`,children:[E==="image"&&c.jsx(D3,{className:"w-3.5 h-3.5"}),E==="audio"&&c.jsx(K3,{className:"w-3.5 h-3.5"}),E.charAt(0).toUpperCase()+E.slice(1),E==="all"&&c.jsxs("span",{className:"ml-1 text-xs text-zinc-500",children:["(",x.length,")"]})]},E))}),b?c.jsx("div",{className:"flex justify-center py-20",children:c.jsx(St,{className:"w-8 h-8 animate-spin text-[#3ab54a]"})}):_.length===0?c.jsxs("div",{className:"border-2 border-dashed border-zinc-700 rounded-xl p-16 text-center cursor-pointer hover:border-[#3ab54a] transition-colors",onClick:()=>n.current?.click(),children:[c.jsx(Rd,{className:"w-10 h-10 text-zinc-600 mx-auto mb-3"}),c.jsx("p",{className:"text-zinc-400 font-medium",children:"No files yet"}),c.jsx("p",{className:"text-zinc-600 text-sm mt-1",children:"Click to upload your first file"})]}):c.jsx("div",{className:"grid grid-cols-1 gap-3",children:_.map(E=>{const R=`/api/storage${E.objectPath}`,O=E.contentType.startsWith("image/"),M=E.contentType.startsWith("audio/"),V=f===E.id,D=h===E.id;return c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-4 flex items-center gap-4",children:[c.jsx("div",{className:"w-14 h-14 flex-shrink-0 rounded-lg overflow-hidden bg-zinc-800 flex items-center justify-center",children:O?c.jsx("img",{src:R,alt:E.name,className:"w-full h-full object-cover"}):c.jsx(FB,{contentType:E.contentType})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsx("p",{className:"text-sm font-medium text-white truncate",children:E.name}),c.jsxs("p",{className:"text-xs text-zinc-500 mt-0.5",children:[E.contentType," · ",BB(E.size)," · ",HB(E.uploadedAt)]}),M&&c.jsx("audio",{controls:!0,className:"mt-2 h-7 w-full max-w-xs",src:R}),c.jsx("p",{className:"text-xs text-zinc-600 font-mono mt-1 truncate",children:R})]}),c.jsxs("div",{className:"flex gap-1 flex-shrink-0 items-center",children:[c.jsxs("button",{onClick:()=>j(E),className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium rounded-lg border border-zinc-700 text-zinc-300 hover:text-white hover:border-[#3ab54a] transition-colors",children:[r===E.id?c.jsx(gf,{className:"w-3.5 h-3.5 text-[#3ab54a]"}):c.jsx(py,{className:"w-3.5 h-3.5"}),r===E.id?"Copied!":"Copy URL"]}),V?c.jsxs("div",{className:"flex items-center gap-1",children:[c.jsxs("button",{onClick:()=>C(E),disabled:D,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-bold rounded-lg bg-red-600 hover:bg-red-500 text-white transition-colors disabled:opacity-50",children:[D?c.jsx(St,{className:"w-3.5 h-3.5 animate-spin"}):c.jsx(pD,{className:"w-3.5 h-3.5"}),"Confirm"]}),c.jsx("button",{onClick:()=>p(null),className:"px-3 py-1.5 text-xs rounded-lg border border-zinc-700 text-zinc-400 hover:text-white transition-colors",children:"Cancel"})]}):c.jsx("button",{onClick:()=>p(E.id),className:"p-1.5 rounded-lg border border-zinc-700 text-zinc-500 hover:text-red-400 hover:border-red-800 transition-colors",title:"Delete file",children:c.jsx(xf,{className:"w-3.5 h-3.5"})})]})]},E.id)})})]})})}async function $B(){const e=await fetch("/api/settings");if(!e.ok)throw new Error("Failed to load settings");return e.json()}async function GB(e){const t=await fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"include"});if(!t.ok)throw new Error("Failed to save settings");return t.json()}function $i({label:e,hint:t,children:n}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:e}),n,t&&c.jsx("p",{className:"text-xs text-zinc-600 mt-1.5",children:t})]})}function Zp({title:e,keys:t,children:n,onSave:r,isSaving:a,savedKey:l}
71){const u=t.join(",");return c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-5 mb-5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a]",children:e}),c.jsxs("button",{onClick:()=>r(t),disabled:a,className:"flex items-center gap-1.5 px-4 py-1.5 bg-[#3ab54a] hover:bg-[#45f68e] text-black text-xs font-bold rounded-lg transition-colors disabled:opacity-50",children:[a?c.jsx(St,{className:"w-3 h-3 animate-spin"}):c.jsx(fa,{className:"w-3 h-3"}),l===u?"Saved!":"Save"]})]}),n]})}function YB(){const{toast:e}=Vn(),{data:t}=Dc(),[n,r]=v.useState({}),[a,l]=v.useState(!0),[u,f]=v.useState(!1),[p,h]=v.useState(null);v.useEffect(()=>{$B().then(r).catch(()=>e({variant:"destructive",title:"Error",description:"Could not load settings."})).finally(()=>l(!1))},[]);const g=(N,S)=>r(j=>({...j,[N]:S})),x=async N=>{const S={};for(const j of N)S[j]=n[j]??"";f(!0);try{const j=await GB(S);r(j);const C=N.join(",");h(C),setTimeout(()=>h(null),2e3),e({title:"Saved"})}catch{e({variant:"destructive",title:"Error",description:"Failed to save."})}finally{f(!1)}},b=(N,S)=>c.jsx(ze,{value:n[N]??"",onChange:j=>g(N,j.target.value),className:"bg-zinc-800 border-zinc-700 text-white",...S}),w={isSaving:u,savedKey:p,onSave:x};return a?c.jsx(Ln,{children:c.jsx("div",{className:"flex justify-center py-20",children:c.jsx(St,{className:"w-8 h-8 animate-spin text-[#3ab54a]"})})}):c.jsx(Ln,{children:c.jsxs("div",{className:"p-8 max-w-3xl mx-auto",children:[c.jsx("h1",{className:"text-3xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Navigation"}),c.jsx("p",{className:"text-zinc-400 text-sm mb-8",children:"Control what appears in the top navigation bar"}),c.jsxs(Zp,{title:"Org of the Month Link",keys:["nav_org_label","nav_org_display_name","nav_org_url"],...w,children:[c.jsx("p",{className:"text-xs text-zinc-500 -mt-2 mb-3",children:"The label, display name, and destination link shown in the desktop nav and mobile menu"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx($i,{label:"Display Name (white text)",hint:"The org name shown below the label. Leave blank to use the current org's name automatically",children:b("nav_org_display_name",{placeholder:t?.name??"Kayak Black"})}),c.jsx($i,{label:"Link URL",hint:'Where clicking it goes. Defaults to "/" (homepage)',children:b("nav_org_url",{placeholder:"/"})})]}),c.jsx($i,{label:"Label Text (green text)",hint:'Shown in all-caps green above the org name. Defaults to "Org of the Month"',children:b("nav_org_label",{placeholder:"Org of the Month"})}),c.jsxs("div",{className:"mt-4 bg-[#111] rounded-lg px-5 py-4 space-y-3",children:[c.jsx("p",{className:"text-[8px] font-bold tracking-[0.3em] uppercase text-zinc-500",children:"Desktop Nav Preview"}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("div",{className:"border-l border-white/15 pl-4 inline-flex flex-col items-start",children:[c.jsx("span",{className:"text-[9px] font-bold tracking-[0.22em] uppercase text-[#3ab54a] leading-none mb-1",children:n.nav_org_label||"Org of the Month"}),c.jsx("span",{className:"text-white/80 text-xs font-semibold",children:n.nav_org_display_name||t?.name||"—"})]}),n.nav_org_url&&c.jsxs("a",{href:n.nav_org_url,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-1 text-[10px] text-[#3ab54a] hover:underline font-mono truncate max-w-[220px]",children:[c.jsx(Nc,{className:"w-3 h-3 shrink-0"}),n.nav_org_url]}
71)]})]})]}),c.jsxs(Zp,{title:"Primary CTA Button",keys:["nav_cta_text","nav_cta_url"],...w,children:[c.jsx("p",{className:"text-xs text-zinc-500 -mt-2 mb-3",children:"The green button in the top-right corner of every page"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx($i,{label:"Button Label",children:b("nav_cta_text",{placeholder:"GIVE NOW"})}),c.jsx($i,{label:"Button URL",hint:"Full URL (https://...) or relative path",children:b("nav_cta_url",{placeholder:"https://..."})})]}),(n.nav_cta_text||n.nav_cta_url)&&c.jsxs("div",{className:"mt-4 bg-[#111] rounded-lg px-5 py-4",children:[c.jsx("p",{className:"text-[8px] font-bold tracking-[0.3em] uppercase text-zinc-500 mb-3",children:"Button Preview"}),c.jsx("span",{className:"bg-[#3ab54a] text-white text-xs font-bold tracking-[0.15em] uppercase px-7 py-3 rounded-full",children:n.nav_cta_text||"GIVE NOW"})]})]}),c.jsxs(Zp,{title:"Secondary Button",keys:["nav_btn2_text","nav_btn2_url"],...w,children:[c.jsx("p",{className:"text-xs text-zinc-500 -mt-2 mb-3",children:"Optional second button to the left of the primary CTA (leave blank to hide)"}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsx($i,{label:"Button Label",children:b("nav_btn2_text",{placeholder:"LEARN MORE"})}),c.jsx($i,{label:"Button URL",children:b("nav_btn2_url",{placeholder:"https://..."})})]})]})]})})}async function KB(){const e=await fetch("/api/settings");if(!e.ok)throw new Error("Failed to load settings");return e.json()}async function XB(e){const t=await fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"include"});if(!t.ok)throw new Error("Failed to save settings");return t.json()}function Gj({label:e,hint:t,children:n}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:e}),n,t&&c.jsx("p",{className:"text-xs text-zinc-600 mt-1.5",children:t})]})}function Yj({title:e,keys:t,children:n,onSave:r,isSaving:a,savedKey:l}
71){const u=t.join(",");return c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-5 mb-5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a]",children:e}),c.jsxs("button",{onClick:()=>r(t),disabled:a,className:"flex items-center gap-1.5 px-4 py-1.5 bg-[#3ab54a] hover:bg-[#45f68e] text-black text-xs font-bold rounded-lg transition-colors disabled:opacity-50",children:[a?c.jsx(St,{className:"w-3 h-3 animate-spin"}):c.jsx(fa,{className:"w-3 h-3"}),l===u?"Saved!":"Save"]})]}),n]})}function ZB(){const{toast:e}=Vn(),[t,n]=v.useState({}),[r,a]=v.useState(!0),[l,u]=v.useState(!1),[f,p]=v.useState(null);v.useEffect(()=>{KB().then(n).catch(()=>e({variant:"destructive",title:"Error",description:"Could not load settings."})).finally(()=>a(!1))},[]);const h=(w,N)=>n(S=>({...S,[w]:N})),g=async w=>{const N={};for(const S of w)N[S]=t[S]??"";u(!0);try{const S=await XB(N);n(S);const j=w.join(",");p(j),setTimeout(()=>p(null),2e3),e({title:"Saved"})}catch{e({variant:"destructive",title:"Error",description:"Failed to save."})}finally{u(!1)}},x=(w,N)=>c.jsx(ze,{value:t[w]??"",onChange:S=>h(w,S.target.value),className:"bg-zinc-800 border-zinc-700 text-white",...N}),b={isSaving:l,savedKey:f,onSave:g};return r?c.jsx(Ln,{children:c.jsx("div",{className:"flex justify-center py-20",children:c.jsx(St,{className:"w-8 h-8 animate-spin text-[#3ab54a]"})})}):c.jsx(Ln,{children:c.jsxs("div",{className:"p-8 max-w-3xl mx-auto",children:[c.jsx("h1",{className:"text-3xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Hero Section"}),c.jsx("p",{className:"text-zinc-400 text-sm mb-8",children:"Edit the full-screen opening section of the homepage"}),c.jsxs(Yj,{title:"Hero Text",keys:["hero_eyebrow","hero_subtext"],...b,children:[c.jsx(Gj,{label:"Eyebrow Label",hint:'Small green text above the headline. Defaults to "SiriusXM Urban View · Channel 126"',children:x("hero_eyebrow",{placeholder:"SiriusXM Urban View · Channel 126"})}),c.jsx(Gj,{label:"Subtext",hint:"The supporting sentence below the headline",children:c.jsx(mi,{value:t.hero_subtext??"",onChange:w=>h("hero_subtext",w.target.value),rows:3,className:"bg-zinc-800 border-zinc-700 text-white",placeholder:"Every month, we shine a light on a nonprofit doing powerful work..."})}),c.jsxs("div",{className:"mt-4 bg-[#0a0a0a] rounded-xl px-8 py-8 space-y-3",children:[c.jsx("p",{className:"text-[#3ab54a] text-[10px] font-bold tracking-[0.3em] uppercase",children:t.hero_eyebrow||"SiriusXM Urban View · Channel 126"}),c.jsxs("p",{className:"text-white text-4xl font-bold uppercase leading-tight",style:{fontFamily:"'Oswald', sans-serif"},children:["Urban View",c.jsx("br",{}),c.jsx("span",{className:"text-[#3ab54a]",children:"Gives."})]}),c.jsx("p",{className:"text-white/60 text-sm max-w-xs leading-relaxed",style:{fontFamily:"'Inter', sans-serif"},children:t.hero_subtext||"Every month, we shine a light on a nonprofit doing powerful work in the community."})]})]}),c.jsxs(Yj,{title:"Hero Play Button",keys:["hero_audio_url"],...b,children:[c.jsx("p",{className:"text-xs text-zinc-500 -mt-2 mb-3",children:"The floating circular PLAY button that follows your cursor on de
71sktop. Upload an audio file or paste a direct .mp3 URL."}),c.jsx(Jn,{label:"Play Button Audio",type:"audio",hint:"Upload an .mp3 or paste a direct audio URL",value:t.hero_audio_url??"",onChange:w=>h("hero_audio_url",w)}),t.hero_audio_url&&c.jsxs("div",{className:"mt-3 bg-[#111] rounded-lg px-5 py-4 flex items-center gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full border-2 border-white/80 flex items-center justify-center shrink-0",children:c.jsx("span",{className:"text-white font-bold text-[10px] uppercase tracking-[0.2em]",style:{fontFamily:"'Oswald', sans-serif"},children:"PLAY"})}),c.jsx("p",{className:"text-xs text-zinc-400 font-mono truncate",children:t.hero_audio_url})]})]})]})})}const Kj="TALK THAT EMPOWERS AND BECOMES ACTION · ";async function QB(){const e=await fetch("/api/settings");if(!e.ok)throw new Error("Failed to load settings");return e.json()}async function WB(e){const t=await fetch("/api/settings",{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify(e),credentials:"include"});if(!t.ok)throw new Error("Failed to save settings");return t.json()}function JB(){const{toast:e}=Vn(),[t,n]=v.useState({}),[r,a]=v.useState(!0),[l,u]=v.useState(!1),[f,p]=v.useState(!1);v.useEffect(()=>{QB().then(n).catch(()=>e({variant:"destructive",title:"Error",description:"Could not load settings."})).finally(()=>a(!1))},[]);const h=t.ticker_text??"",g=async()=>{u(!0);try{const x=await WB({ticker_text:h});n(x),p(!0),setTimeout(()=>p(!1),2e3),e({title:"Saved"})}catch{e({variant:"destructive",title:"Error",description:"Failed to save."})}finally{u(!1)}};return r?c.jsx(Ln,{children:c.jsx("div",{className:"flex justify-center py-20",children:c.jsx(St,{className:"w-8 h-8 animate-spin text-[#3ab54a]"})})}):c.jsx(Ln,{children:c.jsxs("div",{className:"p-8 max-w-3xl mx-auto",children:[c.jsx("h1",{className:"text-3xl font-bold uppercase tracking-wide mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Ticker"}),c.jsx("p",{className:"text-zinc-400 text-sm mb-8",children:"The scrolling green banner at the bottom of the hero section"}),c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-6 space-y-5",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("h2",{className:"text-xs font-bold uppercase tracking-widest text-[#3ab54a]",children:"Scrolling Text"}),c.jsxs("button",{onClick:g,disabled:l,className:"flex items-center gap-1.5 px-4 py-1.5 bg-[#3ab54a] hover:bg-[#45f68e] text-black text-xs font-bold rounded-lg transition-colors disabled:opacity-50",children:[l?c.jsx(St,{className:"w-3 h-3 animate-spin"}):c.jsx(fa,{className:"w-3 h-3"}),f?"Saved!":"Save"]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Ticker Text"}),c.jsx(ze,{value:h,onChange:x=>n(b=>({...b,ticker_text:x.target.value})),className:"bg-zinc-800 border-zinc-700 text-white font-mono",placeholder:Kj}),c.jsxs("p",{className:"text-xs text-zinc-600 mt-1.5",children:["Add ",c.jsx("span",{className:"text-zinc-400 font-mono",children:" · "})," at the end to visually separate repeated segments as it scrolls"]})]}),c.jsxs("div",{children:[c.jsx("p",{className:"text-[9px] font-bold uppercase tracking-widest text-zinc-500 mb-2",children:"Live Preview"}),c.jsx("div",{className:"bg-[#3ab54a] overflow-hidden rounded-lg",style:{height:44},children:c.jsx("div",{className:"flex items-center h-full whitespace-nowrap animate-marquee-ticker",children:Array.from({length:8}).map((x,b)=>c.jsx("span",{className:"text-black text-sm uppercase tracking-[0.02em] mx-6 shrink-0",style:{fontFamily:"'Oswald', sans-serif",fontWeight:300},children:h||Kj},b))})})]}),c.jsxs("div",{className:"pt-2 border-t border-zinc-800",children:[c.jsx("p",{className:"text-[9px] font-bold uppercase tracking-widest text-zinc-500 mb-2",children:"Tips"}),c.jsxs("ul",{className:"text-xs text-zinc-500 space-y-1 list-disc list-inside",children:[c.jsx("li",{children:"Keep it short — the text repeats continuously across the full width"}),c.jsx("li",{children:"Use ALL CAPS for the Oswald style that matches the site"}),c.jsxs("li",{children:["End with ",c.jsx("span",{className:"text-zinc-400 font-mono",children:" · "})," for clean visual separation"]})]})]})]})]})})}const AA=["January","February","March","April","May","June","July","August","September","October","November","December"];function RA(e){if(!e)return"";if(/^\d+:\d{2}$/.test(e.trim()))return e.trim();const t=parseInt(e,10);if(isNaN(t)||t<=0)return e;const n=Math.floor(t/60),r=t%60;return`${n}:${r.toString().padStart(2,"0")}`}function kA({org:e,onEdit:t,onDelete:n,onDuplicate:r,dragHandleProps:a,dragRef:l,isDragging:u,style:f,isSelectMode:p,isSelected:h,onToggleSelected:g}){const[x,b]=v.useState(!1),w=e.guestImageUrl||e.imageUrl,N=RA(e.audioDuration);return c.jsxs("div",{ref:l,style:f,onMouseEnter:()=>b(!0),onMouseLeave:()=>b(!1),className:`flex items-center gap-3 bg-zinc-900 border rounded-xl px-3 py-3 group transition-all ${u?"border-[#3ab54a]/40 opacity-60":"border-zinc-800 hover:border-zinc-700"} ${h?"bg-zinc-800/60 border-zinc-600":""}`,children:[p?c.jsx("div",{className:"shrink-0",onClick:S=>S.stopPropagation(),children:c.jsx(pi,{checked:h,onCheckedChange:g,className:"border-zinc-600 data-[state=checked]:bg-[#3ab54a] data-[state=checked]:border-[#3ab54a]"})}):c.jsx("button",{...a,className:"p-1 text-zinc-700 hover:text-zinc-400 cursor-grab active:cursor-grabbing touch-none shrink-0","aria-label":"Drag to reorder",children:c.jsx(yf,{className:"w-4 h-4"})}),c.jsx("div",{className:"w-16 h-16 rounded-lg overflow-hidden bg-zinc-800 shrink-0",children:w?c.jsx("img",{src:w,alt:"",className:"w-full h-full object-cover"}):c.jsx("div",{className:"w-full h-full flex items-center justify-center",children:c.jsx(Ad,{className:"w-6 h-6 text-zinc-600"})})}),c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-0.5",children:[c.jsx("span",{className:"text-white font-bold text-sm leading-snug",style:{fontFamily:"'Oswald', sans-serif"},children:e.interviewTitle||c.jsx("span",{className:"text-zinc-500 italic",children:"No title"})}),e.showInRadio&&c.jsx(ea,{className:"w-3.5 h-3.5 text-[#3ab54a] fill-[#3ab54a] shrink-0"}),e.radioBadge&&c.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest border border-zinc-600 text-zinc-400 px-1.5 py-0.5 rounded shrink-0",children:e.radioBadge})]}),e.guestTitle&&c.jsx("p",{className:"text-zinc-400 text-xs mb-1 truncate",children:e.guestTitle}),(e.audioEmbedUrl||N)&&c.jsxs("div",{className:"flex items-center gap-1.5 text-zinc-500 text-xs",children:[c.jsx(Ad,{className:"w-3 h-3"}),c.jsx("span",{children:"Audio"}),N&&c.jsxs("span",{className:"text-zinc-600",children:[" ",N]})]}),!e.audioEmbedUrl&&c.jsx("p",{className:"text-amber-500/60 text-xs",children:"No audio — won't appear on site"})]}),!p&&c.jsxs("div",{className:`flex items-center gap-1 shrink-0 transition-opacity ${x?"opacity-100":"opacity-0"}`,children:[c.jsx("button",{onClick:t,className:"w-8 h-8 flex items-center justify-center rounded-lg text-zinc-400 hover:text-white hover:bg-zinc-800 transition-colors",title:"Edit episode",children:c.jsx(gy,{className:"w-4 h-4"})}),c.jsx("button",{onClick:r,className:"w-8 h-8 flex items-center justify-center rounded-lg text-zinc-400 hover:text-white hover:bg-zinc-800 transition-colors",title:"Duplicate episode",children:c.jsx(py,{className:"w-4 h-4"})}),c.jsx("button",{onClick:n,className:"w-8 h-8 flex items-center justify-center rounded-lg text-zinc-600 hover:text-red-400 hover:bg-red-400/10 transition-colors",title:"Remove from playlist",children:c.jsx(xf,{className:"w-4 h-4"})})]})]})}function eH(e){const{attributes:t,listeners:n,setNodeRef:r,transform:a,transition:l,isDragging:u}=WC({id:e.org.id}),f={transform:Nr.Transform.toString(a),transition:l,zIndex:u?50:void 0};return c.jsx(kA,{...e,dragHandleProps:{...t,...n},dragRef:r,isDragging:u,style:f})}function tH({org:e,onClose:t,onSaved:n}){const{toast:r}=Vn(),a=Lo(),[l,u]=v.useState({interviewTitle:e.interviewTitle??"",guestTitle:e.guestTitle??"",radioLabel:e.radioLabel??"",radioBadge:e.radioBadge??"",guestImageUrl:e.guestImageUrl??"",audioEmbedUrl:e.audioEmbedUrl??"",audioDuration:e.audioDuration??"",sortOrder:e.sortOrder!=null?String(e.sortOrder):"0",month:e.month,year:e.year,showInRadio:e.showInRadio??!1}),[f,p]=v.useState(!1),h=(b,w)=>u(N=>({...N,[b]:w})),g=RA(l.audioDuration),x=()=>{p(!0),a.mutate({id:e.id,data:{month:l.month,year:l.year,interviewTitle:l.interviewTitle||null,guestTitle:l.guestTitle||null,radioLabel:l.radioLabel||null,radioBadge:l.radioBadge||null,guestImageUrl:l.guestImageUrl||null,audioEmbedUrl:l.audioEmbedUrl||null,audioDuration:l.audioDuration||null,sortOrder:l.sortOrder?parseFloat(l.sortOrder):null,showInRadio:l.showInRadio}},{onSuccess:()=>{r({title:"Saved",description:`${e.name} updated.`}),n()},onError:b=>{r({variant:"destructive",title:"Error",description:b.message||"Failed to save."}),p(!1)}})};return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.75)"},onMouseDown:b=>{b.target===b.currentTarget&&t()},children:c.jsxs("div",{className:"bg-zinc-900 border border-zinc-700 rounded-2xl w-full max-w-xl max-h-[92vh] overflow-y-auto shadow-2xl",onClick:b=>b.stopPropagation(),children:[c.jsxs("div",{className:"flex items-center justify-between px-6 py-5 border-b border-zinc-800",children:[c.jsx("h2",{className:"text-lg font-bold uppercase tracking-wider text-white",style:{fontFamily:"'Oswald', sans-serif"},children:"Edit Episode"}),c.jsx("button",{onClick:t,className:"text-zinc-500 hover:text-white transition-colors",children:c.jsx(Ks,{className:"w-5 h-5"})})]}),c.jsxs("div",{className:"px-6 py-5 space-y-5",children:[c.jsxs("div",{children:[c.jsxs("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:["Title ",c.jsx("span",{className:"text-[#3ab54a]",children:"*"})]}),c.jsx(ze,{value:l.interviewTitle,onChange:b=>h("interviewTitle",b.target.value),placeholder:"e.g. R. Eric Campbell, Founder | CEO of Kayak Black",className:"bg-zinc-800 border-zinc-700 text-white"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Subtitle"}),c.jsx(ze,{value:l.guestTitle,onChange:b=>h("guestTitle",b.target.value),placeholder:"e.g. Karen Hunter Show | Urban Vie
71w Gives",className:"bg-zinc-800 border-zinc-700 text-white"}),c.jsx("p",{className:"text-zinc-600 text-[10px] mt-1",children:"Shown in green below the title on the player"})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:["Label"," ",c.jsx("span",{className:"text-zinc-600 normal-case font-normal tracking-normal",children:"(next to the date)"})]}),c.jsx(ze,{value:l.radioLabel,onChange:b=>h("radioLabel",b.target.value),placeholder:"e.g. Org of the Month",className:"bg-zinc-800 border-zinc-700 text-white"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Badge"}),c.jsx(ze,{value:l.radioBadge,onChange:b=>h("radioBadge",b.target.value),placeholder:"e.g. Exclusive",className:"bg-zinc-800 border-zinc-700 text-white"})]}),c.jsx("div",{children:c.jsx(Jn,{label:"Cover Photo",type:"image",hint:"Guest or founder photo shown in the tracklist",value:l.guestImageUrl,onChange:b=>h("guestImageUrl",b)})}),c.jsx("div",{children:c.jsx(Jn,{label:"Audio File",type:"audio",hint:"Upload .mp3 or paste a URL",value:l.audioEmbedUrl,onChange:b=>h("audioEmbedUrl",b),onDuration:b=>{if(!l.audioDuration){const w=Math.floor(b/60),N=Math.floor(b%60);h("audioDuration",`${w}:${N.toString().padStart(2,"0")}`)}}})}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Duration"}),c.jsx(ze,{type:"text",value:l.audioDuration,onChange:b=>h("audioDuration",b.target.value),placeholder:"e.g. 47:10",className:"bg-zinc-800 border-zinc-700 text-white font-mono"}),g&&g!==l.audioDuration&&c.jsxs("p",{className:"text-zinc-500 text-xs mt-1",children:["→ ",g]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Month"}),c.jsx("select",{value:l.month,onChange:b=>h("month",parseInt(b.target.value)),className:"w-full bg-zinc-800 border border-zinc-700 text-white rounded-md px-3 py-2 text-sm",children:AA.map((b,w)=>c.jsx("option",{value:w+1,children:b},w))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Year"}),c.jsx(ze,{type:"number",value:l.year,onChange:b=>h("year",parseInt(b.target.value)),className:"bg-zinc-800 border-zinc-700 text-white"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Display Order"}),c.jsx(ze,{type:"number",min:0,value:l.sortOrder,onChange:b=>h("sortOrder",b.target.value),className:"bg-zinc-800 border-zinc-700 text-white"})]}),c.jsxs("button",{type:"button",onClick:()=>h("showInRadio",!l.showInRadio),className:`flex items-center gap-2 px-4 py-2.5 rounded-lg font-bold text-sm transition-colors border ${l.showInRadio?"bg-[#3ab54a]/10 border-[#3ab54a]/40 text-[#3ab54a]":"bg-zinc-800 border-zinc-700 text-zinc-500"}`,children:[c.jsx(ea,{className:`w-4 h-4 ${l.showInRadio?"fill-[#3ab54a]":""}`}),l.showInRadio?"Featured (shown on homepage)":"Not featured (hidden)"]})]}),c.jsxs("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-zinc-800",children:[c.jsx("button",{onClick:t,className:"px-5 py-2 text-sm text-zinc-400 hover:text-white transition-colors",children:"Cancel"}),c.jsxs("button",{onClick:x,disabled:f,className:"flex items-center gap-2 px-6 py-2 bg-[#3ab54a] hover:bg-[#45c455] text-black font-bold text-sm rounded-lg transition-colors disabled:opacity-50",children:[f?c.jsx(St,{className:"w-4 h-4 animate-spin"}):c.jsx(fa,{className:"w-4 h-4"}),"Save Changes"]})]})]})})}function nH({onClose:e,onCreated:t}){const{toast:n}=Vn(),r=kf(),a=new Date,[l,u]=v.useState({name:"",month:a.getMonth()+1,year:a.getFullYear(),interviewTitle:"",guestTitle:"",radioLabel:"",radioBadge:"",guestImageUrl:"",audioEmbedUrl:"",audioDuration:"",showInRadio:!0}),[f,p]=v.useState(!1),h=(x,b)=>u(w=>({...w,[x]:b})),g=()=>{if(!l.name.trim()){n({variant:"destructive",title:"Name required",description:"Enter an organization name."});return}p(!0);const x=l.name.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"");r.mutate({data:{name:l.name,slug:x,month:l.month,year:l.year,dateRange:"1-31",shortDe
71scription:l.name,interviewTitle:l.interviewTitle||null,guestTitle:l.guestTitle||null,radioLabel:l.radioLabel||null,radioBadge:l.radioBadge||null,guestImageUrl:l.guestImageUrl||null,audioEmbedUrl:l.audioEmbedUrl||null,audioDuration:l.audioDuration||null,showInRadio:l.showInRadio,isCurrent:!1,showInArchive:!0}},{onSuccess:()=>{n({title:"Episode added",description:`${l.name} has been created.`}),t()},onError:b=>{n({variant:"destructive",title:"Error",description:b.message||"Failed to create episode."}),p(!1)}})};return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.75)"},onMouseDown:x=>{x.target===x.currentTarget&&e()},children:c.jsxs("div",{className:"bg-zinc-900 border border-zinc-700 rounded-2xl w-full max-w-xl max-h-[92vh] overflow-y-auto shadow-2xl",onClick:x=>x.stopPropagation(),children:[c.jsxs("div",{className:"flex items-center justify-between px-6 py-5 border-b border-zinc-800",children:[c.jsx("h2",{className:"text-lg font-bold uppercase tracking-wider text-white",style:{fontFamily:"'Oswald', sans-serif"},children:"Add Episode"}),c.jsx("button",{onClick:e,className:"text-zinc-500 hover:text-white transition-colors",children:c.jsx(Ks,{className:"w-5 h-5"})})]}),c.jsxs("div",{className:"px-6 py-5 space-y-5",children:[c.jsxs("div",{children:[c.jsxs("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:["Organization Name ",c.jsx("span",{className:"text-[#3ab54a]",children:"*"})]}),c.jsx(ze,{value:l.name,onChange:x=>h("name",x.target.value),placeholder:"e.g. National Medical Fellowships",className:"bg-zinc-800 border-zinc-700 text-white",autoFocus:!0})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Month"}),c.jsx("select",{value:l.month,onChange:x=>h("month",parseInt(x.target.value)),className:"w-full bg-zinc-800 border border-zinc-700 text-white rounded-md px-3 py-2 text-sm",children:AA.map((x,b)=>c.jsx("option",{value:b+1,children:x},b))})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Year"}),c.jsx(ze,{type:"number",value:l.year,onChange:x=>h("year",parseInt(x.target.value)),className:"bg-zinc-800 border-zinc-700 text-white"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Interview Title"}),c.jsx(ze,{value:l.interviewTitle,onChange:x=>h("interviewTitle",x.target.value),placeholder:"e.g. Michellene Davis, President & CEO",className:"bg-zinc-800 border-zinc-700 text-white"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Subtitle"}),c.jsx(ze,{value:l.guestTitle,onChange:x=>h("guestTitle",x.target.value),placeholder:"e.g. Karen Hunter Show | Urban View Gives",className:"bg-zinc-800 border-zinc-700 text-white"}),c.jsx("p",{className:"text-zinc-600 text-[10px] mt-1",children:"Shown in green below the title on the player"})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:["Label"," ",c.jsx("span",{className:"text-zinc-600 normal-case font-normal tracking-normal",children:"(next to the date)"})]}),c.jsx(ze,{value:l.radioLabel,onChange:x=>h("radioLabel",x.target.value),placeholder:"e.g. Org of the Month",className:"bg-zinc-800 border-zinc-700 text-white"})]}),c.jsxs("div",{children:[c.jsxs("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:["Badge"," ",c.jsx("span",{className:"text-zinc-600 normal-case font-normal tracking-normal",children:"(shown on image, e.g. Exclusive)"})]}),c.jsx(ze,{value:l.radioBadge,onChange:x=>h("radioBadge",x.target.value),placeholder:"e.g. Exclusive",className:"bg-zinc-800 border-zinc-700 text-white"})]}),c.jsx("div",{children:c.jsx(Jn,{label:"Cover Photo",type:"image",hint:"Guest or founder photo shown in the tracklist",value:l.guestImageUrl,onChange:x=>h("guestImageUrl",x)})}),c.jsx("div",{children:c.jsx(Jn,{label:"Audio File",type:"audio",hint:"Upload .mp3 or paste a URL",value:l.audioEmbedUrl,onChange:x=>h("audioEmbedUrl",x),onDuration:x=>
71{if(!l.audioDuration){const b=Math.floor(x/60),w=Math.floor(x%60);h("audioDuration",`${b}:${w.toString().padStart(2,"0")}`)}}})}),c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] font-bold uppercase tracking-widest text-zinc-400 mb-1.5",children:"Duration"}),c.jsx(ze,{type:"text",value:l.audioDuration,onChange:x=>h("audioDuration",x.target.value),placeholder:"e.g. 47:10",className:"bg-zinc-800 border-zinc-700 text-white font-mono"})]}),c.jsxs("button",{type:"button",onClick:()=>h("showInRadio",!l.showInRadio),className:`flex items-center gap-2 px-4 py-2.5 rounded-lg font-bold text-sm transition-colors border ${l.showInRadio?"bg-[#3ab54a]/10 border-[#3ab54a]/40 text-[#3ab54a]":"bg-zinc-800 border-zinc-700 text-zinc-500"}`,children:[c.jsx(ea,{className:`w-4 h-4 ${l.showInRadio?"fill-[#3ab54a]":""}`}),l.showInRadio?"Visible on site":"Hidden from site"]})]}),c.jsxs("div",{className:"flex items-center justify-end gap-3 px-6 py-4 border-t border-zinc-800",children:[c.jsx("button",{onClick:e,className:"px-5 py-2 text-sm text-zinc-400 hover:text-white transition-colors",children:"Cancel"}),c.jsxs("button",{onClick:g,disabled:f,className:"flex items-center gap-2 px-6 py-2 bg-[#3ab54a] hover:bg-[#45c455] text-black font-bold text-sm rounded-lg transition-colors disabled:opacity-50",children:[f?c.jsx(St,{className:"w-4 h-4 animate-spin"}):c.jsx(jc,{className:"w-4 h-4"}),"Add Episode"]})]})]})})}function sH({org:e,onClose:t,onRemoved:n}){const{toast:r}=Vn(),a=Lo(),[l,u]=v.useState(!1),f=()=>{u(!0),a.mutate({id:e.id,data:{showInRadio:!1}},{onSuccess:()=>{r({title:"Removed",description:`${e.name} has been removed from the playlist.`}),n()},onError:()=>{r({variant:"destructive",title:"Error",description:"Failed to remove from playlist."}),u(!1)}})};return c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.75)"},onMouseDown:p=>{p.target===p.currentTarget&&t()},children:c.jsxs("div",{className:"bg-zinc-900 border border-zinc-700 rounded-2xl w-full max-w-md p-6 shadow-2xl",children:[c.jsx("h2",{className:"text-lg font-bold uppercase tracking-wider text-white mb-2",style:{fontFamily:"'Oswald', sans-serif"},children:"Remove from Playlist"}),c.jsxs("p",{className:"text-zinc-400 text-sm mb-6",children:["Remove"," ",c.jsx("strong",{className:"text-white",children:e.name})," ","from the Radio / Playlist? The organization will remain in the Archive and other sections."]}),c.jsxs("div",{className:"flex gap-3 justify-end",children:[c.jsx("button",{onClick:t,className:"px-5 py-2 text-sm text-zinc-400 hover:text-white transition-colors",children:"Cancel"}),c.jsxs("button",{onClick:f,disabled:l,className:"flex items-center gap-2 px-5 py-2 bg-red-600 hover:bg-red-500 text-white font-bold text-sm rounded-lg transition-colors disabled:opacity-50",children:[l?c.jsx(St,{className:"w-4 h-4 animate-spin"}):c.jsx(xf,{className:"w-4 h-4"}),"Remove"]})]})]})})}function rH(){const e=Tr(),{toast:t}=Vn(),{data:n,isLoading:r}=Rf(),a=Lo(),l=kf(),[u,f]=v.useState([]),[p,h]=v.useState(!1),[g,x]=v.useState(!1),[b,w]=v.useState(""),[N,S]=v.useState(null),[j,C]=v.useState(null),[_,E]=v.useState(!1),[R,O]=v.useState(!1),[M,V]=v.useState(new Set),[D,F]=v.useState(!1),[W,Q]=v.useState(!1),H=NC(Gg(Uf,{activationConstraint:{distance:6}})),ne=(n??[]).filter(I=>I.showInRadio).slice().sort((I,J)=>{const se=I.sortOrder??1/0,ce=J.sortOrder??1/0;return se!==ce?se-ce:J.year!==I.year?J.year-I.year:J.month-I.month});v.useEffect(()=>{n&&(f(ne.map(I=>I.id)),h(!1))},[n]);const te=Object.fromEntries(ne.map(I=>[I.id,I])),oe=u.filter(I=>{const J=te[I];if(!J)return!1;if(!b)return!0;const se=b.toLowerCase();return J.name.toLowerCase().includes(se)||(J.interviewTitle??"").toLowerCase().includes(se)||(J.guestTitle??"").toLowerCase().includes(se)}),P=I=>{const{active:J,over:se}=I;!se||J.id===se.id||(f(ce=>{const ve=ce.indexOf(J.id),de=ce.indexOf(se.id);return Bf(ce,ve,de)}),h(!0))},Y=async()=>{x(!0);const I=u.map((J,se)=>new Promise((ce,ve)=>{a.mutate({id:J,data:{sortOrder:se+1}},{onSuccess:()=>ce(),onError:ve})}));
71try{await Promise.all(I),e.invalidateQueries({queryKey:sa()}),h(!1)}catch{}finally{x(!1)}},Z=()=>e.invalidateQueries({queryKey:sa()}),le=I=>{const J=`${I.name} (Copy)`,se=`${J.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}-${Date.now()}`;l.mutate({data:{name:J,slug:se,month:I.month,year:I.year,dateRange:"1-31",shortDescription:J,interviewTitle:I.interviewTitle,guestTitle:I.guestTitle,radioLabel:I.radioLabel,radioBadge:I.radioBadge,guestImageUrl:I.guestImageUrl,audioEmbedUrl:I.audioEmbedUrl,audioDuration:I.audioDuration,sortOrder:null,showInRadio:!1,isCurrent:!1,showInArchive:!0}},{onSuccess:ce=>{Z(),t({title:"Duplicated",description:`${I.name} copied — opening editor.`}),S(ce)},onError:()=>{t({variant:"destructive",title:"Error",description:"Failed to duplicate episode."})}})},k=ne.filter(I=>I.showInRadio&&I.audioEmbedUrl).length;return c.jsxs(Ln,{children:[c.jsxs("div",{className:"p-8 max-w-4xl mx-auto",children:[c.jsxs("div",{className:"flex items-start justify-between mb-6 gap-4 flex-wrap",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-3xl font-bold uppercase tracking-wide text-white mb-1",style:{fontFamily:"'Oswald', sans-serif"},children:"Radio / Playlist"}),c.jsx("p",{className:"text-zinc-500 text-sm",children:r?"Loading…":`${ne.length} episodes · ${k} visible on site`})]}),c.jsxs("div",{className:"flex items-center gap-2 shrink-0",children:[p&&c.jsxs("button",{onClick:Y,disabled:g,className:"flex items-center gap-2 px-5 py-2.5 bg-[#3ab54a] hover:bg-[#45c455] text-black font-bold text-sm rounded-lg transition-colors disabled:opacity-50",children:[g?c.jsx(St,{className:"w-4 h-4 animate-spin"}):c.jsx(fa,{className:"w-4 h-4"}),"Save Order"]}),c.jsx("button",{onClick:()=>{O(!R),V(new Set)},className:`flex items-center gap-2 px-5 py-2.5 font-bold text-sm rounded-lg transition-colors border ${R?"bg-red-600/20 border-red-600/40 text-red-400 hover:bg-red-600/30":"bg-zinc-800 hover:bg-zinc-700 border-zinc-700 text-white"}`,children:R?c.jsxs(c.Fragment,{children:[c.jsx(Ks,{className:"w-4 h-4"}),"Done"]}):c.jsxs(c.Fragment,{children:[c.jsx(gy,{className:"w-4 h-4"}),"Edit"]})}),c.jsxs("button",{onClick:()=>E(!0),className:"flex items-center gap-2 px-5 py-2.5 bg-zinc-800 hover:bg-zinc-700 border border-zinc-700 text-white font-bold text-sm rounded-lg transition-colors",children:[c.jsx(jc,{className:"w-4 h-4 text-[#3ab54a]"}),"Add Episode"]})]})]}),R&&M.size>0&&c.jsxs("div",{className:"flex items-center justify-between bg-zinc-800/80 border border-zinc-700 rounded-lg px-4 py-3 mb-4",children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(pi,{checked:M.size===oe.length&&oe.length>0,onCheckedChange:I=>{V(I?new Set(oe):new Set)},className:"border-zinc-600 data-[state=checked]:bg-[#3ab54a] data-[state=checked]:border-[#3ab54a]"}),c.jsxs("span",{className:"text-white text-sm font-medium",children:[M.size," selected"]})]}),c.jsxs("button",{onClick:()=>Q(!0),disabled:D,className:"flex items-center gap-2 px-4 py-2 bg-red-600 hover:bg-red-500 text-white font-bold text-sm rounded-lg transition-colors disabled:opacity-50",children:[D?c.jsx(St,{className:"w-4 h-4 animate-spin"}):c.jsx(n1,{className:"w-4 h-4"}),"Remove Selected"]})]}),c.jsxs("div",{className:"relative mb-4",children:[c.jsx(oD,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-zinc-500 pointer-events-none"}),c.jsx(ze,{value:b,onChange:I=>w(I.target.value),placeholder:"Search episodes…",className:"bg-zinc-900 border-zinc-800 text-white pl-9 focus-visible:border-zinc-600"}),b&&c.jsx("button",{onClick:()=>w(""),className:"absolute right-3 top-1/2 -translate-y-1/2 text-zinc-500 hover:text-white",children:c.jsx(Ks,{className:"w-4 h-4"})})]}),!r&&ne.length>1&&!b&&c.jsxs("div",{className:"flex items-center gap-1.5 text-zinc-600 text-xs mb-3 ml-1",children:[c.jsx(yf,{className:"w-3.5 h-3.5"}),c.jsx("span",{children:"Drag rows to reorder"})]}),r?c.jsx("div",{className:"flex justify-center py-20",children:c.jsx(St,{className:"w-8 h-8 animate-spin text-[#3ab54a]"})}):oe.length===0?c.jsxs("div",{className:"bg-zinc-900 border border-zinc-800 rounded-xl p-12 text-center",children:[c.jsx(Ad,{className:"w-10 h-10 text-zinc-700 mx-auto mb-3"}),c.jsx("p",{className:"text-zinc-400 text-sm",children:b?"No episodes match your search.":'No episodes yet. Click "Add Episode" to get started.'})]}):R?c.jsx("div",{className:"flex flex-col gap-2",children:oe.map(I=>{const J=te[I];return J?c.jsx(kA,{org:J,onEdit:()=>S(J),onDelete:()=>C(J),onDuplicate:()=>le(J),dragHandleProps:{},dragRef:()=>{},isDragging:!1,style:{},isSelectMode:!0,isSelected:M.has(I),onToggleSelected:()=>{V(se=>{const ce=new Set(se);return ce.has(I)?ce.delete(I):ce.add(I),ce})}},I):null})}):c.jsx(qC,{sensors:H,collisionDetection:_C,onDragEnd:P,children:c.jsx(ZC,{items:u,strategy:YC,children:c.jsx("div",{className:"flex flex-col gap-2",children:oe.map(I=>{const J=te[I];return J?c.jsx(eH,{org:J,onEdit:()=>S(J),onDelete:()=>C(J),onDuplicate:()=>le(J)},I):null})})})})]}),N&&c.jsx(tH,{org:N,onClose:()=>S(null),onSaved:()=>{S(null),Z()}}),j&&c.jsx(sH,{org:j,onClose:()=>C(null),onRemoved:()=>{C(null),Z()}}),W&&c.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",style:{background:"rgba(0,0,0,0.75)"},onMouseDown:I=>{I.target===I.currentTarget&&Q(!1)},children:c.jsxs("div",{className:"bg-zinc-900 border border-zinc-700 rounded-2xl w-full max-w-md p-6 shadow-2xl",children:[c.jsxs("h2",{className:"text-lg font-bold uppercase tracking-wider text-white mb-2",style:{fontFamily:"'Oswald', sans-serif"},children:["Remove ",M.size," Episodes"]}),c.jsx("p",{className:"text-zinc-400 text-sm mb-6",children:"These episodes will be removed from the Radio / Playlist only. The organizations and their files will remain in the Archive and Media Library, and can be added back later."}),c.jsxs("div",{className:"flex gap-3 justify-end",children:[c.jsx("button",{onClick:()=>Q(!1),className:"px-5 py-2 text-sm text-zinc-400 hover:text-white transition-colors",children:"Cancel"}),c.jsxs("button",{onClick:()=>{F(!0);const J=Array.from(M).map(se=>new Promise((ce,ve)=>{a.mutate({id:se,data:{showInRadio:!1}},{onSuccess:()=>ce(),onError:de=>ve(de)})}));Promise.all(J).then(()=>{t({title:"Removed from playlist",description:`${M.size} episode${M.size===1?"":"s"} hidden from Radio / Playlist. Archive data was kept.`}
71),V(new Set),O(!1),Q(!1),Z(),e.invalidateQueries({queryKey:zo()})}).catch(()=>{t({variant:"destructive",title:"Error",description:"Some episodes failed to delete. Please refresh and try again."})}).finally(()=>F(!1))},disabled:D,className:"flex items-center gap-2 px-5 py-2 bg-red-600 hover:bg-red-500 text-white font-bold text-sm rounded-lg transition-colors disabled:opacity-50",children:[D?c.jsx(St,{className:"w-4 h-4 animate-spin"}):c.jsx(n1,{className:"w-4 h-4"}),D?"Removing...":"Remove"]})]})]})}),_&&c.jsx(nH,{onClose:()=>E(!1),onCreated:()=>{E(!1),Z()}})]})}const OA=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Qe("rounded-xl border bg-card text-card-foreground shadow",e),...t}));OA.displayName="Card";const iH=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Qe("flex flex-col space-y-1.5 p-6",e),...t}));iH.displayName="CardHeader";const aH=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Qe("font-semibold leading-none tracking-tight",e),...t}));aH.displayName="CardTitle";const oH=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Qe("text-sm text-muted-foreground",e),...t}));oH.displayName="CardDescription";const DA=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Qe("p-6 pt-0",e),...t}));DA.displayName="CardContent";const lH=v.forwardRef(({className:e,...t},n)=>c.jsx("div",{ref:n,className:Qe("flex items-center p-6 pt-0",e),...t}));lH.displayName="CardFooter";function cH(){return c.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-gray-50",children:c.jsx(OA,{className:"w-full max-w-md mx-4",children:c.jsxs(DA,{className:"pt-6",children:[c.jsxs("div",{className:"flex mb-4 gap-2",children:[c.jsx(w3,{className:"h-8 w-8 text-red-500"}),c.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"404 Page Not Found"})]}),c.jsx("p",{className:"mt-4 text-sm text-gray-600",children:"Did you forget to add the page to the router?"})]})})})}function uH(){const[e]=Co();return v.useEffect(()=>{window.scrollTo(0,0)},[e]),null}const dH=new Bk,fH="/".replace(/\/$/,"");function Fl({component:e}){return c.jsx(oU,{children:c.jsx(e,{})})}function hH(){return c.jsxs(xk,{children:[c.jsx(fn,{path:"/",component:()=>c.jsx(Fl,{component:bU})}),c.jsx(fn,{path:"/about",component:()=>c.jsx(Fl,{component:jU})}),c.jsx(fn,{path:"/faqs",component:()=>c.jsx(Fl,{component:EU})}),c.jsx(fn,{path:"/archive",component:()=>c.jsx(Fl,{component:_U})}),c.jsx(fn,{path:"/admin/dashboard",component:kU}),c.jsx(fn,{path:"/admin/current-org",component:V7}),c.jsx(fn,{path:"/admin/add-org",component:I7}),c.jsx(fn,{path:"/admin/archive",component:zB}),c.jsx(fn,{path:"/admin/site-settings",component:UB}),c.jsx(fn,{path:"/admin/media",component:qB}),c.jsx(fn,{path:"/admin/nav",component:YB}),c.jsx(fn,{path:"/admin/hero",component:ZB}),c.jsx(fn,{path:"/admin/ticker",component:JB}),c.jsx(fn,{path:"/admin/radio",component:rH}),c.jsx(fn,{path:"/admin",component:AU}),c.jsx(fn,{component:()=>c.jsx(Fl,{component:cH})})]})}function mH(){return c.jsx(Hk,{client:dH,children:c.jsxs(Y5,{children:[c.jsxs(iN,{base:fH,children:[c.jsx(uH,{}),c.jsx(hH,{})]}),c.jsx(hM,{})]})})}Q4.createRoot(document.getElementById("root")).render(c.jsx(mH,{}));

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.