vendor: 5,255 bytes, line 1
1function LC(e,n){for(var r=0;r<n.length;r++){const s=n[r];if(typeof s!="string"&&!Array.isArray(s)){for(const l in s)if(l!=="default"&&!(l in e)){const u=Object.getOwnPropertyDescriptor(s,l);u&&Object.defineProperty(e,l,u.get?u:{enumerable:!0,get:()=>s[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&s(f)}).observe(document,{childList:!0,subtree:!0});function r(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(l){if(l.ep)return;l.ep=!0;const u=r(l);fetch(l.href,u)}})();function F0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bh={exports:{}},Do={};var kx;function PC(){if(kx)return Do;kx=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(s,l,u){var f=null;if(u!==void 0&&(f=""+u),l.key!==void 0&&(f=""+l.key),"key"in l){u={};for(var h in l)h!=="key"&&(u[h]=l[h])}else u=l;return l=u.ref,{$$typeof:e,type:s,key:f,ref:l!==void 0?l:null,props:u}}return Do.Fragment=n,Do.jsx=r,Do.jsxs=r,Do}var Dx;function zC(){return Dx||(Dx=1,bh.exports=PC()),bh.exports}var o=zC(),wh={exports:{}},Fo={},jh={exports:{}},_h={};var Fx;function qC(){return Fx||(Fx=1,(function(e){function n(D,$){var Z=D.length;D.push($);e:for(;0<Z;){var J=Z-1>>>1,N=D[J];if(0<l(N,$))D[J]=$,D[Z]=N,Z=J;else break e}}function r(D){return D.length===0?null:D[0]}function s(D){if(D.length===0)return null;var $=D[0],Z=D.pop();if(Z!==$){D[0]=Z;e:for(var J=0,N=D.length,K=N>>>1;J<K;){var re=2*(J+1)-1,ne=D[re],me=re+1,Se=D[me];if(0>l(ne,Z))me<N&&0>l(Se,ne)?(D[J]=Se,D[me]=Z,J=me):(D[J]=ne,D[re]=Z,J=re);else if(me<N&&0>l(Se,Z))D[J]=Se,D[me]=Z,J=me;else break e}}return $}function l(D,$){var Z=D.sortIndex-$.sortIndex;return Z!==0?Z:D.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,h=f.now();e.unstable_now=function(){return f.now()-h}}var p=[],g=[],y=1,x=null,w=3,E=!1,C=!1,_=!1,S=!1,A=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function F(D){for(var $=r(g);$!==null;){if($.callback===null)s(g);else if($.startTime<=D)s(g),$.sortIndex=$.expirationTime,n(p,$);else break;$=r(g)}}function L(D){if(_=!1,F(D),!C)if(r(p)!==null)C=!0,z||(z=!0,ee());else{var $=r(g);$!==null&&de(L,$.startTime-D)}}var z=!1,P=-1,H=5,ie=-1;function pe(){return S?!0:!(e.unstable_now()-ie<H)}function be(){if(S=!1,z){var D=e.unstable_now();ie=D;var $=!0;try{e:{C=!1,_&&(_=!1,T(P),P=-1),E=!0;var Z=w;try{t:{for(F(D),x=r(p);x!==null&&!(x.expirationTime>D&&pe());){var J=x.callback;if(typeof J=="function"){x.callback=null,w=x.priorityLevel;var N=J(x.expirationTime<=D);if(D=e.unstable_now(),typeof N=="function"){x.callback=N,F(D),$=!0;break t}x===r(p)&&s(p),F(D)}else s(p);x=r(p)}if(x!==null)$=!0;else{var K=r(g);K!==null&&de(L,K.startTime-D),$=!1}}break e}finally{x=null,w=Z,E=!1}$=void 0}}finally{$?ee():z=!1}}}var ee;if(typeof M=="function")ee=function(){M(be)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,te=oe.port2;oe.port1.onmessage=be,ee=function(){te.postMessage(null)}}else ee=function(){A(be,0)};function de(D,$){P=A(function(){D(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(D){D.callback=null},e.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<D?Math.floor(1e3/D):5},e.unstable_getCurrentPriorityLevel=function(){return w},e.unstable_next=function(D){switch(w){case 1:case 2:case 3:var $=3;break;default:$=w}var Z=w;w=$;try{return D()}finally{w=Z}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(D,$){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var Z=w;w=D;try{return $()}finally{w=Z}},e.unstable_scheduleCallback=function(D,$,Z){var J=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?J+Z:J):Z=J,D){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=Z+N,D={id:y++,callback:$,priorityLevel:D,startTime:Z,expirationTime:N,sortIndex:-1},Z>J?(D.sortIndex=Z,n(g,D),r(p)===null&&D===r(g)&&(_?(T(P),P=-1):_=!0,de(L,Z-J))):(D.sortIndex=N,n(p,D),C||E||(C=!0,z||(z=!0,ee()))),D},e.unstable_shouldYield=pe,e.unstable_wrapCallback=function(D){var $=w;return function(){var Z=w;w=$;try{return D.apply(this,arguments)}finally{w=Z}}}})(_h)),_h}var Lx;
vendor: 32,858 bytes, lines 1-8
1function UC(){return Lx||(Lx=1,jh.exports=qC()),jh.exports}var Eh={exports:{}},He={};var Px;function IC(){if(Px)return He;Px=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.iterator;function w(N){return N===null||typeof N!="object"?null:(N=x&&N[x]||N["@@iterator"],typeof N=="function"?N:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function S(N,K,re){this.props=N,this.context=K,this.refs=_,this.updater=re||E}S.prototype.isReactComponent={},S.prototype.setState=function(N,K){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,K,"setState")},S.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function A(){}A.prototype=S.prototype;function T(N,K,re){this.props=N,this.context=K,this.refs=_,this.updater=re||E}var M=T.prototype=new A;M.constructor=T,C(M,S.prototype),M.isPureReactComponent=!0;var F=Array.isArray,L={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function P(N,K,re,ne,me,Se){return re=Se.ref,{$$typeof:e,type:N,key:K,ref:re!==void 0?re:null,props:Se}}function H(N,K){return P(N.type,K,void 0,void 0,void 0,N.props)}function ie(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function pe(N){var K={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(re){return K[re]})}var be=/\/+/g;function ee(N,K){return typeof N=="object"&&N!==null&&N.key!=null?pe(""+N.key):K.toString(36)}function oe(){}function te(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(oe,oe):(N.status="pending",N.then(function(K){N.status==="pending"&&(N.status="fulfilled",N.value=K)},function(K){N.status==="pending"&&(N.status="rejected",N.reason=K)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function de(N,K,re,ne,me){var Se=typeof N;(Se==="undefined"||Se==="boolean")&&(N=null);var fe=!1;if(N===null)fe=!0;else switch(Se){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(N.$$typeof){case e:case n:fe=!0;break;case y:return fe=N._init,de(fe(N._payload),K,re,ne,me)}}if(fe)return me=me(N),fe=ne===""?"."+ee(N,0):ne,F(me)?(re="",fe!=null&&(re=fe.replace(be,"$&/")+"/"),de(me,K,re,"",function(Le){return Le})):me!=null&&(ie(me)&&(me=H(me,re+(me.key==null||N&&N.key===me.key?"":(""+me.key).replace(be,"$&/")+"/")+fe)),K.push(me)),1;fe=0;var le=ne===""?".":ne+":";if(F(N))for(var Ce=0;Ce<N.length;Ce++)ne=N[Ce],Se=le+ee(ne,Ce),fe+=de(ne,K,re,Se,me);else if(Ce=w(N),typeof Ce=="function")for(N=Ce.call(N),Ce=0;!(ne=N.next()).done;)ne=ne.value,Se=le+ee(ne,Ce++),fe+=de(ne,K,re,Se,me);else if(Se==="object"){if(typeof N.then=="function")return de(te(N),K,re,ne,me);throw K=String(N),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return fe}function D(N,K,re){if(N==null)return N;var ne=[],me=0;return de(N,ne,"","",function(Se){return K.call(re,Se,me++)}),ne}function $(N){if(N._status===-1){var K=N._result;K=K(),K.then(function(re){(N._status===0||N._status===-1)&&(N._status=1,N._result=re)},function(re){(N._status===0||N._status===-1)&&(N._status=2,N._result=re)}),N._status===-1&&(N._status=0,N._result=K)}if(N._status===1)return N._result.default;throw N._result}var Z=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function J(){}return He.Children={map:D,forEach:function(N,K,re){D(N,function(){K.apply(this,arguments)},re)},count:function(N){var K=0;return D(N,function(){K++}),K},toArray:function(N){return D(N,function(K){return K})||[]},only:function(N){if(!ie(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},He.Component=S,He.Fragment=r,He.Profiler=l,He.PureComponent=T,He.StrictMode=s,He.Suspense=p,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,He.__COMPILER_RUNTIME={__proto__:null,c:function(N){return L.H.useMemoCache(N)}},He.cache=function(N){return function(){return N.apply(null,arguments)}},He.cloneElement=function(N,K,re){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ne=C({},N.props),me=N.key,Se=void 0;if(K!=null)for(fe in K.ref!==void 0&&(Se=void 0),K.key!==void 0&&(me=""+K.key),K)!z.call(K,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&K.ref===void 0||(ne[fe]=K[fe]);var fe=arguments.length-2;if(fe===1)ne.children=re;else if(1<fe){for(var le=Array(fe),Ce=0;Ce<fe;Ce++)le[Ce]=arguments[Ce+2];ne.children=le}return P(N.type,me,void 0,void 0,Se,ne)},He.createContext=function(N){return N={$$typeof:f,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},He.createElement=function(N,K,re){var ne,me={},Se=null;if(K!=null)for(ne in K.key!==void 0&&(Se=""+K.key),K)z.call(K,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(me[ne]=K[ne]);var fe=arguments.length-2;if(fe===1)me.children=re;else if(1<fe){for(var le=Array(fe),Ce=0;Ce<fe;Ce++)le[Ce]=arguments[Ce+2];me.children=le}if(N&&N.defaultProps)for(ne in fe=N.defaultProps,fe)me[ne]===void 0&&(me[ne]=fe[ne]);return P(N,Se,void 0,void 0,null,me)},He.createRef=function(){return{current:null}},He.forwardRef=function(N){return{$$typeof:h,render:N}},He.isValidElement=ie,He.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:$}},He.memo=function(N,K){return{$$typeof:g,type:N,compare:K===void 0?null:K}},He.startTransition=function(N){var K=L.T,re={};L.T=re;try{var ne=N(),me=L.S;me!==null&&me(re,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(J,Z)}catch(Se){Z(Se)}finally{L.T=K}},He.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},He.use=function(N){return L.H.use(N)},He.useActionState=function(N,K,re){return L.H.useActionState(N,K,re)},He.useCallback=function(N,K){return L.H.useCallback(N,K)},He.useContext=function(N){return L.H.useContext(N)},He.useDebugValue=function(){},He.useDeferredValue=function(N,K){return L.H.useDeferredValue(N,K)},He.useEffect=function(N,K,re){var ne=L.H;if(typeof re=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ne.useEffect(N,K)},He.useId=function(){return L.H.useId()},He.useImperativeHandle=function(N,K,re){return L.H.useImperativeHandle(N,K,re)},He.useInsertionEffect=function(N,K){return L.H.useInsertionEffect(N,K)},He.useLayoutEffect=function(N,K){return L.H.useLayoutEffect(N,K)},He.useMemo=function(N,K){return L.H.useMemo(N,K)},He.useOptimistic=function(N,K){return L.H.useOptimistic(N,K)},He.useReducer=function(N,K,re){return L.H.useReducer(N,K,re)},He.useRef=function(N){return L.H.useRef(N)},He.useState=function(N){return L.H.useState(N)},He.useSyncExternalStore=function(N,K,re){return L.H.useSyncExternalStore(N,K,re)},He.useTransition=function(){return L.H.useTransition()},He.version="19.1.0",He}var zx;function ju(){return zx||(zx=1,Eh.exports=IC()),Eh.exports}var Sh={exports:{}},nn={};var qx;function VC(){if(qx)return nn;qx=1;var e=ju();function n(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var s={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},l=Symbol.for("react.portal");function u(p,g,y){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:x==null?null:""+x,children:p,containerInfo:g,implementation:y}}var f=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return nn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,nn.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(n(299));return u(p,g,null,y)},nn.flushSync=function(p){var g=f.T,y=s.p;try{if(f.T=null,s.p=2,p)return p()}finally{f.T=g,s.p=y,s.d.f()}},nn.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(p,g))},nn.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},nn.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,x=h(y,g.crossOrigin),w=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?s.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:w,fetchPriority:E}):y==="script"&&s.d.X(p,{crossOrigin:x,integrity:w,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},nn.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);s.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(p)},nn.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,x=h(y,g.crossOrigin);s.d.L(p,y,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},nn.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=h(g.as,g.crossOrigin);s.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(p)},nn.requestFormReset=function(p){s.d.r(p)},nn.unstable_batchedUpdates=function(p,g){return p(g)},nn.useFormState=function(p,g,y){return f.H.useFormState(p,g,y)},nn.useFormStatus=function(){return f.H.useHostTransitionStatus()},nn.version="19.1.0",nn}var Ux;function L0(){if(Ux)return Sh.exports;Ux=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(n){console.error(n)}}return e(),Sh.exports=VC(),Sh.exports}var Ix;function HC(){if(Ix)return Fo;Ix=1;var e=UC(),n=ju(),r=L0();function s(t){var a="https://react.dev/errors/"+t;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)a+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function u(t){var a=t,i=t;if(t.alternate)for(;a.return;)a=a.return;else{t=a;do a=t,(a.flags&4098)!==0&&(i=a.return),t=a.return;while(t)}return a.tag===3?i:null}function f(t){if(t.tag===13){var a=t.memoizedState;if(a===null&&(t=t.alternate,t!==null&&(a=t.memoizedState)),a!==null)return a.dehydrated}return null}function h(t){if(u(t)!==t)throw Error(s(188))}function p(t){var a=t.alternate;if(!a){if(a=u(t),a===null)throw Error(s(188));return a!==t?null:t}for(var i=t,c=a;;){var d=i.return;if(d===null)break;var m=d.alternate;if(m===null){if(c=d.return,c!==null){i=c;continue}break}if(d.child===m.child){for(m=d.child;m;){if(m===i)return h(d),t;if(m===c)return h(d),a;m=m.sibling}throw Error(s(188))}if(i.return!==c.return)i=d,c=m;else{for(var b=!1,j=d.child;j;){if(j===i){b=!0,i=d,c=m;break}if(j===c){b=!0,c=d,i=m;break}j=j.sibling}if(!b){for(j=m.child;j;){if(j===i){b=!0,i=m,c=d;break}if(j===c){b=!0,c=m,i=d;break}j=j.sibling}if(!b)throw Error(s(189))}}if(i.alternate!==c)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:a}function g(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t;for(t=t.child;t!==null;){if(a=g(t),a!==null)return a;t=t.sibling}return null}var y=Object.assign,x=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),T=Symbol.for("react.consumer"),M=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),pe=Symbol.for("react.memo_cache_sentinel"),be=Symbol.iterator;function ee(t){return t===null||typeof t!="object"?null:(t=be&&t[be]||t["@@iterator"],typeof t=="function"?t:null)}var oe=Symbol.for("react.client.reference");function te(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===oe?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case C:return"Fragment";case S:return"Profiler";case _:return"StrictMode";case L:return"Suspense";case z:return"SuspenseList";case ie:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case M:return(t.displayName||"Context")+".Provider";case T:return(t._context.displayName||"Context")+".Consumer";case F:var a=t.render;return t=t.displayName,t||(t=a.displayName||a.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case P:return a=t.displayName||null,a!==null?a:te(t.type)||"Memo";case H:a=t._payload,t=t._init;try{return te(t(a))}catch{}}return null}var de=Array.isArray,D=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},J=[],N=-1;function K(t){return{current:t}}function re(t){0>N||(t.current=J[N],J[N]=null,N--)}function ne(t,a){N++,J[N]=t.current,t.current=a}var me=K(null),Se=K(null),fe=K(null),le=K(null);function Ce(t,a){switch(ne(fe,a),ne(Se,t),ne(me,null),a.nodeType){case 9:case 11:t=(t=a.documentElement)&&(t=t.namespaceURI)?ox(t):0;break;default:if(t=a.tagName,a=a.namespaceURI)a=ox(a),t=lx(a,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}re(me),ne(me,t)}function Le(){re(me),re(Se),re(fe)}function We(t){t.memoizedState!==null&&ne(le,t);var a=me.current,i=lx(a,t.type);a!==i&&(ne(Se,t),ne(me,i))}function $e(t){Se.current===t&&(re(me),re(Se)),le.current===t&&(re(le),Ao._currentValue=Z)}var rt=Object.prototype.hasOwnProperty,bt=e.unstable_scheduleCallback,Ht=e.unstable_cancelCallback,Ka=e.unstable_shouldYield,Qa=e.unstable_requestPaint,Jt=e.unstable_now,sd=e.unstable_getCurrentPriorityLevel,id=e.unstable_ImmediatePriority,Li=e.unstable_UserBlockingPriority,O=e.unstable_NormalPriority,I=e.unstable_LowPriority,Y=e.unstable_IdlePriority,ge=e.log,ce=e.unstable_setDisableYieldValue,ae=null,ve=null;function Ye(t){if(typeof ge=="function"&&ce(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode(ae,t)}catch{}}var Ue=Math.clz32?Math.clz32:ua,Qt=Math.log,Sa=Math.LN2;function ua(t){return t>>>=0,t===0?32:31-(Qt(t)/Sa|0)|0}var ys=256,Za=4194304;function Xn(t){var a=t&42;if(a!==0)return a;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function vs(t,a,i){var c=t.pendingLanes;if(c===0)return 0;var d=0,m=t.suspendedLanes,b=t.pingedLanes;t=t.warmLanes;var j=c&134217727;return j!==0?(c=j&~m,c!==0?d=Xn(c):(b&=j,b!==0?d=Xn(b):i||(i=j&~t,i!==0&&(d=Xn(i))))):(j=c&~m,j!==0?d=Xn(j):b!==0?d=Xn(b):i||(i=c&~t,i!==0&&(d=Xn(i)))),d===0?0:a!==0&&a!==d&&(a&m)===0&&(m=d&-d,i=a&-a,m>=i||m===32&&(i&4194048)!==0)?a:d}function Xa(t,a){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&a)===0}function od(t,a){switch(t){case 1:case 2:case 4:case 8:case 64:return a+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 a+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 Pi(){var t=ys;return ys<<=1,(ys&4194048)===0&&(ys=256),t}function Gp(){var t=Za;return Za<<=1,(Za&62914560)===0&&(Za=4194304),t}function ld(t){for(var a=[],i=0;31>i;i++)a.push(t);return a}function zi(t,a){t.pendingLanes|=a,a!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ES(t,a,i,c,d,m){var b=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var j=t.entanglements,R=t.expirationTimes,V=t.hiddenUpdates;for(i=b&~i;0<i;){var Q=31-Ue(i),W=1<<Q;j[Q]=0,R[Q]=-1;var B=V[Q];if(B!==null)for(V[Q]=null,Q=0;Q<B.length;Q++){var G=B[Q];G!==null&&(G.lane&=-536870913)}i&=~W}c!==0&&$p(t,c,0),m!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=m&~(b&~a))}function $p(t,a,i){t.pendingLanes|=a,t.suspendedLanes&=~a;var c=31-Ue(a);t.entangledLanes|=a,t.entanglements[c]=t.entanglements[c]|1073741824|i&4194090}function Yp(t,a){var i=t.entangledLanes|=a;for(t=t.entanglements;i;){var c=31-Ue(i),d=1<<c;d&a|t[c]&a&&(t[c]|=a),i&=~d}}function cd(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function ud(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Kp(){var t=$.p;return t!==0?t:(t=window.event,t===void 0?32:Cx(t.type))}function SS(t,a){var i=$.p;try{return $.p=t,a()}finally{$.p=i}}var Wa=Math.random().toString(36).slice(2),en="__reactFiber$"+Wa,pn="__reactProps$"+Wa,xs="__reactContainer$"+Wa,dd="__reactEvents$"+Wa,NS="__reactListeners$"+Wa,CS="__reactHandles$"+Wa,Qp="__reactResources$"+Wa,qi="__reactMarker$"+Wa;function fd(t){delete t[en],delete t[pn],delete t[dd],delete t[NS],delete t[CS]}function bs(t){var a=t[en];if(a)return a;for(var i=t.parentNode;i;){if(a=i[xs]||i[en]){if(i=a.alternate,a.child!==null||i!==null&&i.child!==null)for(t=fx(t);t!==null;){if(i=t[en])return i;t=fx(t)}return a}t=i,i=t.parentNode}return null}function ws(t){if(t=t[en]||t[xs]){var a=t.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return t}return null}function Ui(t){var a=t.tag;if(a===5||a===26||a===27||a===6)return t.stateNode;throw Error(s(33))}function js(t){var a=t[Qp];return a||(a=t[Qp]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Bt(t){t[qi]=!0}var Zp=new Set,Xp={};function zr(t,a){_s(t,a),_s(t+"Capture",a)}function _s(t,a){for(Xp[t]=a,t=0;t<a.length;t++)Zp.add(a[t])}var TS=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]*$"),Wp={},Jp={};function AS(t){return rt.call(Jp,t)?!0:rt.call(Wp,t)?!1:TS.test(t)?Jp[t]=!0:(Wp[t]=!0,!1)}function wl(t,a,i){if(AS(a))if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(a);return;case"boolean":var c=a.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){t.removeAttribute(a);return}}t.setAttribute(a,""+i)}}function jl(t,a,i){if(i===null)t.removeAttribute(a);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttribute(a,""+i)}}function Na(t,a,i,c){if(c===null)t.removeAttribute(i);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(a,i,""+c)}}var hd,eg;function Es(t){if(hd===void 0)try{throw Error()}catch(i){var a=i.stack.trim().match(/\n( *(at )?)/);hd=a&&a[1]||"",eg=-1<i.stack.indexOf(` 2 at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return` 3`+hd+t+eg}var md=!1;function pd(t,a){if(!t||md)return"";md=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(a){var W=function(){throw Error()};if(Object.defineProperty(W.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(W,[])}catch(G){var B=G}Reflect.construct(t,[],W)}else{try{W.call()}catch(G){B=G}t.call(W.prototype)}}else{try{throw Error()}catch(G){B=G}(W=t())&&typeof W.catch=="function"&&W.catch(function(){})}}catch(G){if(G&&B&&typeof G.stack=="string")return[G.stack,B.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=c.DetermineComponentFrameRoot(),b=m[0],j=m[1];if(b&&j){var R=b.split(` 4`),V=j.split(` 5`);for(d=c=0;c<R.length&&!R[c].includes("DetermineComponentFrameRoot");)c++;for(;d<V.length&&!V[d].includes("DetermineComponentFrameRoot");)d++;if(c===R.length||d===V.length)for(c=R.length-1,d=V.length-1;1<=c&&0<=d&&R[c]!==V[d];)d--;for(;1<=c&&0<=d;c--,d--)if(R[c]!==V[d]){if(c!==1||d!==1)do if(c--,d--,0>d||R[c]!==V[d]){var Q=` 6`+R[c].replace(" at new "," at ");return t.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",t.displayName)),Q}while(1<=c&&0<=d);break}}}finally{md=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Es(i):""}function RS(t){switch(t.tag){case 26:case 27:case 5:return Es(t.type);case 16:return Es("Lazy");case 13:return Es("Suspense");case 19:return Es("SuspenseList");case 0:case 15:return pd(t.type,!1);case 11:return pd(t.type.render,!1);case 1:return pd(t.type,!0);case 31:return Es("Activity");default:return""}}function tg(t){try{var a="";do a+=RS(t),t=t.return;while(t);return a}catch(i){return` 7Error generating stack: `+i.message+` 8`+i.stack}}function Pn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ng(t){var a=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function OS(t){var a=ng(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,a),c=""+t[a];if(!t.hasOwnProperty(a)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var d=i.get,m=i.set;return Object.defineProperty(t,a,{configurable:!0,get:function(){return d.call(this)},set:function(b){c=""+b,m.call(this,b)}}),Object.defineProperty(t,a,{enumerable:i.enumerable}),{getValue:function(){return c},setValue:function(b){c=""+b},stopTracking:function(){t._valueTracker=null,delete t[a]}}}}function _l(t){t._valueTracker||(t._valueTracker=OS(t))}function ag(t){if(!t)return!1;var a=t._valueTracker;if(!a)return!0;var i=a.getValue(),c="";return t&&(c=ng(t)?t.checked?"true":"false":t.value),t=c,t!==i?(a.setValue(t),!0):!1}function El(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var MS=/[\n"\\]/g;function zn(t){return t.replace(MS,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function gd(t,a,i,c,d,m,b,j){t.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?t.type=b:t.removeAttribute("type"),a!=null?b==="number"?(a===0&&t.value===""||t.value!=a)&&(t.value=""+Pn(a)):t.value!==""+Pn(a)&&(t.value=""+Pn(a)):b!=="submit"&&b!=="reset"||t.removeAttribute("value"),a!=null?yd(t,b,Pn(a)):i!=null?yd(t,b,Pn(i)):c!=null&&t.removeAttribute("value"),d==null&&m!=null&&(t.defaultChecked=!!m),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?t.name=""+Pn(j):t.removeAttribute("name")}function rg(t,a,i,c,d,m,b,j){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.type=m),a!=null||i!=null){if(!(m!=="submit"&&m!=="reset"||a!=null))return;i=i!=null?""+Pn(i):"",a=a!=null?""+Pn(a):i,j||a===t.value||(t.value=a),t.defaultValue=a}c=c??d,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=j?t.checked:!!c,t.defaultChecked=!!c,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(t.name=b)}function yd(t,a,i){a==="number"&&El(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Ss(t,a,i,c){if(t=t.options,a){a={};for(var d=0;d<i.length;d++)a["$"+i[d]]=!0;for(i=0;i<t.length;i++)d=a.hasOwnProperty("$"+t[i].value),t[i].selected!==d&&(t[i].selected=d),d&&c&&(t[i].defaultSelected=!0)}else{for(i=""+Pn(i),a=null,d=0;d<t.length;d++){if(t[d].value===i){t[d].selected=!0,c&&(t[d].defaultSelected=!0);return}a!==null||t[d].disabled||(a=t[d])}a!==null&&(a.selected=!0)}}function sg(t,a,i){if(a!=null&&(a=""+Pn(a),a!==t.value&&(t.value=a),i==null)){t.defaultValue!==a&&(t.defaultValue=a);return}t.defaultValue=i!=null?""+Pn(i):""}function ig(t,a,i,c){if(a==null){if(c!=null){if(i!=null)throw Error(s(92));if(de(c)){if(1<c.length)throw Error(s(93));c=c[0]}i=c}i==null&&(i=""),a=i}i=Pn(a),t.defaultValue=i,c=t.textContent,c===i&&c!==""&&c!==null&&(t.value=c)}function Ns(t,a){if(a){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=a;return}}t.textContent=a}var kS=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 og(t,a,i){var c=a.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?c?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="":c?t.setProperty(a,i):typeof i!="number"||i===0||kS.has(a)?a==="float"?t.cssFloat=i:t[a]=(""+i).trim():t[a]=i+"px"}function lg(t,a,i){if(a!=null&&typeof a!="object")throw Error(s(62));if(t=t.style,i!=null){for(var c in i)!i.hasOwnProperty(c)||a!=null&&a.hasOwnProperty(c)||(c.indexOf("--")===0?t.setProperty(c,""):c==="float"?t.cssFloat="":t[c]="");for(var d in a)c=a[d],a.hasOwnProperty(d)&&i[d]!==c&&og(t,d,c)}else for(var m in a)a.hasOwnProperty(m)&&og(t,m,a[m])}function vd(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var DS=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),FS=/^[\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 Sl(t){return FS.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var xd=null;function bd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Cs=null,Ts=null;function cg(t){var a=ws(t);if(a&&(t=a.stateNode)){var i=t[pn]||null;e:switch(t=a.stateNode,a.type){case"input":if(gd(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),a=i.name,i.type==="radio"&&a!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+zn(""+a)+'"][type="radio"]'),a=0;a<i.length;a++){var c=i[a];if(c!==t&&c.form===t.form){var d=c[pn]||null;if(!d)throw Error(s(90));gd(c,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(a=0;a<i.length;a++)c=i[a],c.form===t.form&&ag(c)}break e;case"textarea":sg(t,i.value,i.defaultValue);break e;case"select":a=i.value,a!=null&&Ss(t,!!i.multiple,a,!1)}}}var wd=!1;
vendor: 9,286 bytes, line 8
8function ug(t,a,i){if(wd)return t(a,i);wd=!0;try{var c=t(a);return c}finally{if(wd=!1,(Cs!==null||Ts!==null)&&(uc(),Cs&&(a=Cs,t=Ts,Ts=Cs=null,cg(a),t)))for(a=0;a<t.length;a++)cg(t[a])}}function Ii(t,a){var i=t.stateNode;if(i===null)return null;var c=i[pn]||null;if(c===null)return null;i=c[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(s(231,a,typeof i));return i}var Ca=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),jd=!1;if(Ca)try{var Vi={};Object.defineProperty(Vi,"passive",{get:function(){jd=!0}}),window.addEventListener("test",Vi,Vi),window.removeEventListener("test",Vi,Vi)}catch{jd=!1}var Ja=null,_d=null,Nl=null;function dg(){if(Nl)return Nl;var t,a=_d,i=a.length,c,d="value"in Ja?Ja.value:Ja.textContent,m=d.length;for(t=0;t<i&&a[t]===d[t];t++);var b=i-t;for(c=1;c<=b&&a[i-c]===d[m-c];c++);return Nl=d.slice(t,1<c?1-c:void 0)}function Cl(t){var a=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&a===13&&(t=13)):t=a,t===10&&(t=13),32<=t||t===13?t:0}function Tl(){return!0}function fg(){return!1}function gn(t){function a(i,c,d,m,b){this._reactName=i,this._targetInst=d,this.type=c,this.nativeEvent=m,this.target=b,this.currentTarget=null;for(var j in t)t.hasOwnProperty(j)&&(i=t[j],this[j]=i?i(m):m[j]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Tl:fg,this.isPropagationStopped=fg,this}return y(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Tl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Tl)},persist:function(){},isPersistent:Tl}),a}var qr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Al=gn(qr),Hi=y({},qr,{view:0,detail:0}),LS=gn(Hi),Ed,Sd,Bi,Rl=y({},Hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cd,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Bi&&(Bi&&t.type==="mousemove"?(Ed=t.screenX-Bi.screenX,Sd=t.screenY-Bi.screenY):Sd=Ed=0,Bi=t),Ed)},movementY:function(t){return"movementY"in t?t.movementY:Sd}}),hg=gn(Rl),PS=y({},Rl,{dataTransfer:0}),zS=gn(PS),qS=y({},Hi,{relatedTarget:0}),Nd=gn(qS),US=y({},qr,{animationName:0,elapsedTime:0,pseudoElement:0}),IS=gn(US),VS=y({},qr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),HS=gn(VS),BS=y({},qr,{data:0}),mg=gn(BS),GS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$S={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"},YS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function KS(t){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(t):(t=YS[t])?!!a[t]:!1}function Cd(){return KS}var QS=y({},Hi,{key:function(t){if(t.key){var a=GS[t.key]||t.key;if(a!=="Unidentified")return a}return t.type==="keypress"?(t=Cl(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$S[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cd,charCode:function(t){return t.type==="keypress"?Cl(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Cl(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ZS=gn(QS),XS=y({},Rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),pg=gn(XS),WS=y({},Hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cd}),JS=gn(WS),eN=y({},qr,{propertyName:0,elapsedTime:0,pseudoElement:0}),tN=gn(eN),nN=y({},Rl,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),aN=gn(nN),rN=y({},qr,{newState:0,oldState:0}),sN=gn(rN),iN=[9,13,27,32],Td=Ca&&"CompositionEvent"in window,Gi=null;Ca&&"documentMode"in document&&(Gi=document.documentMode);var oN=Ca&&"TextEvent"in window&&!Gi,gg=Ca&&(!Td||Gi&&8<Gi&&11>=Gi),yg=" ",vg=!1;function xg(t,a){switch(t){case"keyup":return iN.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var As=!1;function lN(t,a){switch(t){case"compositionend":return bg(a);case"keypress":return a.which!==32?null:(vg=!0,yg);case"textInput":return t=a.data,t===yg&&vg?null:t;default:return null}}function cN(t,a){if(As)return t==="compositionend"||!Td&&xg(t,a)?(t=dg(),Nl=_d=Ja=null,As=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return gg&&a.locale!=="ko"?null:a.data;default:return null}}var uN={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 wg(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a==="input"?!!uN[t.type]:a==="textarea"}function jg(t,a,i,c){Cs?Ts?Ts.push(c):Ts=[c]:Cs=c,a=gc(a,"onChange"),0<a.length&&(i=new Al("onChange","change",null,i,c),t.push({event:i,listeners:a}))}var $i=null,Yi=null;function dN(t){nx(t,0)}function Ol(t){var a=Ui(t);if(ag(a))return t}function _g(t,a){if(t==="change")return a}var Eg=!1;if(Ca){var Ad;if(Ca){var Rd="oninput"in document;if(!Rd){var Sg=document.createElement("div");Sg.setAttribute("oninput","return;"),Rd=typeof Sg.oninput=="function"}Ad=Rd}else Ad=!1;Eg=Ad&&(!document.documentMode||9<document.documentMode)}function Ng(){$i&&($i.detachEvent("onpropertychange",Cg),Yi=$i=null)}function Cg(t){if(t.propertyName==="value"&&Ol(Yi)){var a=[];jg(a,Yi,t,bd(t)),ug(dN,a)}}function fN(t,a,i){t==="focusin"?(Ng(),$i=a,Yi=i,$i.attachEvent("onpropertychange",Cg)):t==="focusout"&&Ng()}function hN(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ol(Yi)}function mN(t,a){if(t==="click")return Ol(a)}function pN(t,a){if(t==="input"||t==="change")return Ol(a)}function gN(t,a){return t===a&&(t!==0||1/t===1/a)||t!==t&&a!==a}var En=typeof Object.is=="function"?Object.is:gN;function Ki(t,a){if(En(t,a))return!0;if(typeof t!="object"||t===null||typeof a!="object"||a===null)return!1;var i=Object.keys(t),c=Object.keys(a);if(i.length!==c.length)return!1;for(c=0;c<i.length;c++){var d=i[c];if(!rt.call(a,d)||!En(t[d],a[d]))return!1}return!0}function Tg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ag(t,a){var i=Tg(t);t=0;for(var c;i;){if(i.nodeType===3){if(c=t+i.textContent.length,t<=a&&c>=a)return{node:i,offset:a-t};t=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Tg(i)}}function Rg(t,a){return t&&a?t===a?!0:t&&t.nodeType===3?!1:a&&a.nodeType===3?Rg(t,a.parentNode):"contains"in t?t.contains(a):t.compareDocumentPosition?!!(t.compareDocumentPosition(a)&16):!1:!1}function Og(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var a=El(t.document);a instanceof t.HTMLIFrameElement;){try{var i=typeof a.contentWindow.location.href=="string"}catch{i=!1}if(i)t=a.contentWindow;else break;a=El(t.document)}return a}function Od(t){var a=t&&t.nodeName&&t.nodeName.toLowerCase();return a&&(a==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||a==="textarea"||t.contentEditable==="true")}var yN=Ca&&"documentMode"in document&&11>=document.documentMode,Rs=null,Md=null,Qi=null,kd=!1;function Mg(t,a,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;kd||Rs==null||Rs!==El(c)||(c=Rs,"selectionStart"in c&&Od(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focu
vendor: 72,756 bytes, line 8
8sNode:c.focusNode,focusOffset:c.focusOffset}),Qi&&Ki(Qi,c)||(Qi=c,c=gc(Md,"onSelect"),0<c.length&&(a=new Al("onSelect","select",null,a,i),t.push({event:a,listeners:c}),a.target=Rs)))}function Ur(t,a){var i={};return i[t.toLowerCase()]=a.toLowerCase(),i["Webkit"+t]="webkit"+a,i["Moz"+t]="moz"+a,i}var Os={animationend:Ur("Animation","AnimationEnd"),animationiteration:Ur("Animation","AnimationIteration"),animationstart:Ur("Animation","AnimationStart"),transitionrun:Ur("Transition","TransitionRun"),transitionstart:Ur("Transition","TransitionStart"),transitioncancel:Ur("Transition","TransitionCancel"),transitionend:Ur("Transition","TransitionEnd")},Dd={},kg={};Ca&&(kg=document.createElement("div").style,"AnimationEvent"in window||(delete Os.animationend.animation,delete Os.animationiteration.animation,delete Os.animationstart.animation),"TransitionEvent"in window||delete Os.transitionend.transition);function Ir(t){if(Dd[t])return Dd[t];if(!Os[t])return t;var a=Os[t],i;for(i in a)if(a.hasOwnProperty(i)&&i in kg)return Dd[t]=a[i];return t}var Dg=Ir("animationend"),Fg=Ir("animationiteration"),Lg=Ir("animationstart"),vN=Ir("transitionrun"),xN=Ir("transitionstart"),bN=Ir("transitioncancel"),Pg=Ir("transitionend"),zg=new Map,Fd="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(" ");Fd.push("scrollEnd");function Wn(t,a){zg.set(t,a),zr(a,[t])}var qg=new WeakMap;function qn(t,a){if(typeof t=="object"&&t!==null){var i=qg.get(t);return i!==void 0?i:(a={value:t,source:a,stack:tg(a)},qg.set(t,a),a)}return{value:t,source:a,stack:tg(a)}}var Un=[],Ms=0,Ld=0;function Ml(){for(var t=Ms,a=Ld=Ms=0;a<t;){var i=Un[a];Un[a++]=null;var c=Un[a];Un[a++]=null;var d=Un[a];Un[a++]=null;var m=Un[a];if(Un[a++]=null,c!==null&&d!==null){var b=c.pending;b===null?d.next=d:(d.next=b.next,b.next=d),c.pending=d}m!==0&&Ug(i,d,m)}}function kl(t,a,i,c){Un[Ms++]=t,Un[Ms++]=a,Un[Ms++]=i,Un[Ms++]=c,Ld|=c,t.lanes|=c,t=t.alternate,t!==null&&(t.lanes|=c)}function Pd(t,a,i,c){return kl(t,a,i,c),Dl(t)}function ks(t,a){return kl(t,null,null,a),Dl(t)}function Ug(t,a,i){t.lanes|=i;var c=t.alternate;c!==null&&(c.lanes|=i);for(var d=!1,m=t.return;m!==null;)m.childLanes|=i,c=m.alternate,c!==null&&(c.childLanes|=i),m.tag===22&&(t=m.stateNode,t===null||t._visibility&1||(d=!0)),t=m,m=m.return;return t.tag===3?(m=t.stateNode,d&&a!==null&&(d=31-Ue(i),t=m.hiddenUpdates,c=t[d],c===null?t[d]=[a]:c.push(a),a.lane=i|536870912),m):null}function Dl(t){if(50<wo)throw wo=0,Bf=null,Error(s(185));for(var a=t.return;a!==null;)t=a,a=t.return;return t.tag===3?t.stateNode:null}var Ds={};function wN(t,a,i,c){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Sn(t,a,i,c){return new wN(t,a,i,c)}function zd(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ta(t,a){var i=t.alternate;return i===null?(i=Sn(t.tag,a,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=a,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,a=t.dependencies,i.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Ig(t,a){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=a,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,a=i.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),t}function Fl(t,a,i,c,d,m){var b=0;if(c=t,typeof t=="function")zd(t)&&(b=1);else if(typeof t=="string")b=_C(t,i,me.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case ie:return t=Sn(31,i,a,d),t.elementType=ie,t.lanes=m,t;case C:return Vr(i.children,d,m,a);case _:b=8,d|=24;break;case S:return t=Sn(12,i,a,d|2),t.elementType=S,t.lanes=m,t;case L:return t=Sn(13,i,a,d),t.elementType=L,t.lanes=m,t;case z:return t=Sn(19,i,a,d),t.elementType=z,t.lanes=m,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:case M:b=10;break e;case T:b=9;break e;case F:b=11;break e;case P:b=14;break e;case H:b=16,c=null;break e}b=29,i=Error(s(130,t===null?"null":typeof t,"")),c=null}return a=Sn(b,i,a,d),a.elementType=t,a.type=c,a.lanes=m,a}function Vr(t,a,i,c){return t=Sn(7,t,c,a),t.lanes=i,t}function qd(t,a,i){return t=Sn(6,t,null,a),t.lanes=i,t}function Ud(t,a,i){return a=Sn(4,t.children!==null?t.children:[],t.key,a),a.lanes=i,a.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},a}var Fs=[],Ls=0,Ll=null,Pl=0,In=[],Vn=0,Hr=null,Aa=1,Ra="";function Br(t,a){Fs[Ls++]=Pl,Fs[Ls++]=Ll,Ll=t,Pl=a}function Vg(t,a,i){In[Vn++]=Aa,In[Vn++]=Ra,In[Vn++]=Hr,Hr=t;var c=Aa;t=Ra;var d=32-Ue(c)-1;c&=~(1<<d),i+=1;var m=32-Ue(a)+d;if(30<m){var b=d-d%5;m=(c&(1<<b)-1).toString(32),c>>=b,d-=b,Aa=1<<32-Ue(a)+d|i<<d|c,Ra=m+t}else Aa=1<<m|i<<d|c,Ra=t}function Id(t){t.return!==null&&(Br(t,1),Vg(t,1,0))}function Vd(t){for(;t===Ll;)Ll=Fs[--Ls],Fs[Ls]=null,Pl=Fs[--Ls],Fs[Ls]=null;for(;t===Hr;)Hr=In[--Vn],In[Vn]=null,Ra=In[--Vn],In[Vn]=null,Aa=In[--Vn],In[Vn]=null}var cn=null,Et=null,st=!1,Gr=null,da=!1,Hd=Error(s(519));function $r(t){var a=Error(s(418,""));throw Wi(qn(a,t)),Hd}function Hg(t){var a=t.stateNode,i=t.type,c=t.memoizedProps;switch(a[en]=t,a[pn]=c,i){case"dialog":Xe("cancel",a),Xe("close",a);break;case"iframe":case"object":case"embed":Xe("load",a);break;case"video":case"audio":for(i=0;i<_o.length;i++)Xe(_o[i],a);break;case"source":Xe("error",a);break;case"img":case"image":case"link":Xe("error",a),Xe("load",a);break;case"details":Xe("toggle",a);break;case"input":Xe("invalid",a),rg(a,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0),_l(a);break;case"select":Xe("invalid",a);break;case"textarea":Xe("invalid",a),ig(a,c.value,c.defaultValue,c.children),_l(a)}i=c.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||a.textContent===""+i||c.suppressHydrationWarning===!0||ix(a.textContent,i)?(c.popover!=null&&(Xe("beforetoggle",a),Xe("toggle",a)),c.onScroll!=null&&Xe("scroll",a),c.onScrollEnd!=null&&Xe("scrollend",a),c.onClick!=null&&(a.onclick=yc),a=!0):a=!1,a||$r(t)}function Bg(t){for(cn=t.return;cn;)switch(cn.tag){case 5:case 13:da=!1;return;case 27:case 3:da=!0;return;default:cn=cn.return}}function Zi(t){if(t!==cn)return!1;if(!st)return Bg(t),st=!0,!1;var a=t.tag,i;if((i=a!==3&&a!==27)&&((i=a===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||ih(t.type,t.memoizedProps)),i=!i),i&&Et&&$r(t),Bg(t),a===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));e:{for(t=t.nextSibling,a=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(a===0){Et=ea(t.nextSibling);break e}a--}else i!=="$"&&i!=="$!"&&i!=="$?"||a++;t=t.nextSibling}Et=null}}else a===27?(a=Et,pr(t.type)?(t=uh,uh=null,Et=t):Et=a):Et=cn?ea(t.stateNode.nextSibling):null;return!0}function Xi(){Et=cn=null,st=!1}function Gg(){var t=Gr;return t!==null&&(xn===null?xn=t:xn.push.apply(xn,t),Gr=null),t}function Wi(t){Gr===null?Gr=[t]:Gr.push(t)}var Bd=K(null),Yr=null,Oa=null;function er(t,a,i){ne(Bd,a._currentValue),a._currentValue=i}function Ma(t){t._currentValue=Bd.current,re(Bd)}function Gd(t,a,i){for(;t!==null;){var c=t.alternate;if((t.childLanes&a)!==a?(t.childLanes|=a,c!==null&&(c.childLanes|=a)):c!==null&&(c.childLanes&a)!==a&&(c.childLanes|=a),t===i)break;t=t.return}}function $d(t,a,i,c){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var m=d.dependencies;if(m!==null){var b=d.child;m=m.firstContext;e:for(;m!==null;){var j=m;m=d;for(var R=0;R<a.length;R++)if(j.context===a[R]){m.lanes|=i,j=m.alternate,j!==null&&(j.lanes|=i),Gd(m.return,i,t),c||(b=null);break e}m=j.next}}else if(d.tag===18){if(b=d.return,b===null)throw Error(s(341));b.lanes|=i,m=b.alternate,m!==null&&(m.lanes|=i),Gd(b,i,t),b=null}else b=d.child;if(b!==null)b.return=d;else for(b=d;b!==null;){if(b===t){b=null;break}if(d=b.sibling,d!==null){d.return=b.return,b=d;break}b=b.return}d=b}}function Ji(t,a,i,c){t=null;for(var d=a,m=!1;d!==null;){if(!m){if((d.flags&524288)!==0)m=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var b=d.alternate;if(b===null)throw Error(s(387));if(b=b.memoizedProps,b!==null){var j=d.type;En(d.pendingProps.value,b.value)||(t!==null?t.push(j):t=[j])}}else if(d===le.current){if(b=d.alternate,b===null)throw Error(s(387));b.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(Ao):t=[Ao])}d=d.return}t!==null&&$d(a,t,i,c),a.flags|=262144}function zl(t){for(t=t.firstContext;t!==null;){if(!En(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Kr(t){Yr=t,Oa=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function tn(t){return $g(Yr,t)}function ql(t,a){return Yr===null&&Kr(t),$g(t,a)}function $g(t,a){var i=a._currentValue;if(a={context:a,memoizedValue:i,next:null},Oa===null){if(t===null)throw Error(s(308));Oa=a,t.dependencies={lanes:0,firstContext:a},t.flags|=524288}else Oa=Oa.next=a;return i}var jN=typeof AbortController<"u"?AbortController:function(){var t=[],a=this.signal={aborted:!1,addEventListener:function(i,c){t.push(c)}};this.abort=function(){a.aborted=!0,t.forEach(function(i){return i()})}},_N=e.unstable_scheduleCallback,EN=e.unstable_NormalPriority,zt={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Yd(){return{controller:new jN,data:new Map,refCount:0}}function eo(t){t.refCount--,t.refCount===0&&_N(EN,function(){t.controller.abort()})}var to=null,Kd=0,Ps=0,zs=null;function SN(t,a){if(to===null){var i=to=[];Kd=0,Ps=Xf(),zs={status:"pending",value:void 0,then:function(c){i.push(c)}}}return Kd++,a.then(Yg,Yg),a}function Yg(){if(--Kd===0&&to!==null){zs!==null&&(zs.status="fulfilled");var t=to;to=null,Ps=0,zs=null;for(var a=0;a<t.length;a++)(0,t[a])()}}function NN(t,a){var i=[],c={status:"pending",value:null,reason:null,then:function(d){i.push(d)}};return t.then(function(){c.status="fulfilled",c.value=a;for(var d=0;d<i.length;d++)(0,i[d])(a)},function(d){for(c.status="rejected",c.reason=d,d=0;d<i.length;d++)(0,i[d])(void 0)}),c}var Kg=D.S;D.S=function(t,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&SN(t,a),Kg!==null&&Kg(t,a)};var Qr=K(null);function Qd(){var t=Qr.current;return t!==null?t:pt.pooledCache}function Ul(t,a){a===null?ne(Qr,Qr.current):ne(Qr,a.pool)}function Qg(){var t=Qd();return t===null?null:{parent:zt._currentValue,pool:t}}var no=Error(s(460)),Zg=Error(s(474)),Il=Error(s(542)),Zd={then:function(){}};function Xg(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Vl(){}function Wg(t,a,i){switch(i=t[i],i===void 0?t.push(a):i!==a&&(a.then(Vl,Vl),a=i),a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,ey(t),t;default:if(typeof a.status=="string")a.then(Vl,Vl);else{if(t=pt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=a,t.status="pending",t.then(function(c){if(a.status==="pending"){var d=a;d.status="fulfilled",d.value=c}},function(c){if(a.status==="pending"){var d=a;d.status="rejected",d.reason=c}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw t=a.reason,ey(t),t}throw ao=a,no}}var ao=null;function Jg(){if(ao===null)throw Error(s(459));var t=ao;return ao=null,t}function ey(t){if(t===no||t===Il)throw Error(s(483))}var tr=!1;function Xd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wd(t,a){t=t.updateQueue,a.updateQueue===t&&(a.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function nr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ar(t,a,i){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(ot&2)!==0){var d=c.pending;return d===null?a.next=a:(a.next=d.next,d.next=a),c.pending=a,a=Dl(t),Ug(t,null,i),a}return kl(t,c,a,i),Dl(t)}function ro(t,a,i){if(a=a.updateQueue,a!==null&&(a=a.shared,(i&4194048)!==0)){var c=a.lanes;c&=t.pendingLanes,i|=c,a.lanes=i,Yp(t,i)}}function Jd(t,a){var i=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var d=null,m=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};m===null?d=m=b:m=m.next=b,i=i.next}while(i!==null);m===null?d=m=a:m=m.next=a}else d=m=a;i={baseState:c.baseState,firstBaseUpdate:d,lastBaseUpdate:m,shared:c.shared,callbacks:c.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=a:t.next=a,i.lastBaseUpdate=a}var ef=!1;function so(){if(ef){var t=zs;if(t!==null)throw t}}function io(t,a,i,c){ef=!1;var d=t.updateQueue;tr=!1;var m=d.firstBaseUpdate,b=d.lastBaseUpdate,j=d.shared.pending;if(j!==null){d.shared.pending=null;var R=j,V=R.next;R.next=null,b===null?m=V:b.next=V,b=R;var Q=t.alternate;Q!==null&&(Q=Q.updateQueue,j=Q.lastBaseUpdate,j!==b&&(j===null?Q.firstBaseUpdate=V:j.next=V,Q.lastBaseUpdate=R))}if(m!==null){var W=d.baseState;b=0,Q=V=R=null,j=m;do{var B=j.lane&-536870913,G=B!==j.lane;if(G?(et&B)===B:(c&B)===B){B!==0&&B===Ps&&(ef=!0),Q!==null&&(Q=Q.next={lane:0,tag:j.tag,payload:j.payload,callback:null,next:null});e:{var Fe=t,ke=j;B=a;var ht=i;switch(ke.tag){case 1:if(Fe=ke.payload,typeof Fe=="function"){W=Fe.call(ht,W,B);break e}W=Fe;break e;case 3:Fe.flags=Fe.flags&-65537|128;case 0:if(Fe=ke.payload,B=typeof Fe=="function"?Fe.call(ht,W,B):Fe,B==null)break e;W=y({},W,B);break e;case 2:tr=!0}}B=j.callback,B!==null&&(t.flags|=64,G&&(t.flags|=8192),G=d.callbacks,G===null?d.callbacks=[B]:G.push(B))}else G={lane:B,tag:j.tag,payload:j.payload,callback:j.callback,next:null},Q===null?(V=Q=G,R=W):Q=Q.next=G,b|=B;if(j=j.next,j===null){if(j=d.shared.pending,j===null)break;G=j,j=G.next,G.next=null,d.lastBaseUpdate=G,d.shared.pending=null}}while(!0);Q===null&&(R=W),d.baseState=R,d.firstBaseUpdate=V,d.lastBaseUpdate=Q,m===null&&(d.shared.lanes=0),dr|=b,t.lanes=b,t.memoizedState=W}}function ty(t,a){if(typeof t!="function")throw Error(s(191,t));t.call(a)}function ny(t,a){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)ty(i[t],a)}var qs=K(null),Hl=K(0);function ay(t,a){t=qa,ne(Hl,t),ne(qs,a),qa=t|a.baseLanes}function tf(){ne(Hl,qa),ne(qs,qs.current)}function nf(){qa=Hl.current,re(qs),re(Hl)}var rr=0,Be=null,dt=null,Mt=null,Bl=!1,Us=!1,Zr=!1,Gl=0,oo=0,Is=null,CN=0;function Tt(){throw Error(s(321))}function af(t,a){if(a===null)return!1;for(var i=0;i<a.length&&i<t.length;i++)if(!En(t[i],a[i]))return!1;return!0}function rf(t,a,i,c,d,m){return rr=m,Be=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,D.H=t===null||t.memoizedState===null?Uy:Iy,Zr=!1,m=i(c,d),Zr=!1,Us&&(m=sy(a,i,c,d)),ry(t),m}function ry(t){D.H=Xl;var a=dt!==null&&dt.next!==null;if(rr=0,Mt=dt=Be=null,Bl=!1,oo=0,Is=null,a)throw Error(s(300));t===null||Gt||(t=t.dependencies,t!==null&&zl(t)&&(Gt=!0))}function sy(t,a,i,c){Be=t;var d=0;do{if(Us&&(Is=null),oo=0,Us=!1,25<=d)throw Error(s(301));if(d+=1,Mt=dt=null,t.updateQueue!=null){var m=t.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}D.H=DN,m=a(i,c)}while(Us);return m}function TN(){var t=D.H,a=t.useState()[0];return a=typeof a.then=="function"?lo(a):a,t=t.useState()[0],(dt!==null?dt.memoizedState:null)!==t&&(Be.flags|=1024),a}function sf(){var t=Gl!==0;return Gl=0,t}function of(t,a,i){a.updateQueue=t.updateQueue,a.flags&=-2053,t.lanes&=~i}function lf(t){if(Bl){for(t=t.memoizedState;t!==null;){var a=t.queue;a!==null&&(a.pending=null),t=t.next}Bl=!1}rr=0,Mt=dt=Be=null,Us=!1,oo=Gl=0,Is=null}function yn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Be.memoizedState=Mt=t:Mt=Mt.next=t,Mt}function kt(){if(dt===null){var t=Be.alternate;t=t!==null?t.memoizedState:null}else t=dt.next;var a=Mt===null?Be.memoizedState:Mt.next;if(a!==null)Mt=a,dt=t;else{if(t===null)throw Be.alternate===null?Error(s(467)):Error(s(310));dt=t,t={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},Mt===null?Be.memoizedState=Mt=t:Mt=Mt.next=t}return Mt}function cf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function lo(t){var a=oo;return oo+=1,Is===null&&(Is=[]),t=Wg(Is,t,a),a=Be,(Mt===null?a.memoizedState:Mt.next)===null&&(a=a.alternate,D.H=a===null||a.memoizedState===null?Uy:Iy),t}function $l(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return lo(t);if(t.$$typeof===M)return tn(t)}throw Error(s(438,String(t)))}function uf(t){var a=null,i=Be.updateQueue;if(i!==null&&(a=i.memoCache),a==null){var c=Be.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(a={data:c.data.map(function(d){return d.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),i===null&&(i=cf(),Be.updateQueue=i),i.memoCache=a,i=a.data[a.index],i===void 0)for(i=a.data[a.index]=Array(t),c=0;c<t;c++)i[c]=pe;return a.index++,i}function ka(t,a){return typeof a=="function"?a(t):a}function Yl(t){var a=kt();return df(a,dt,t)}function df(t,a,i){var c=t.queue;if(c===null)throw Error(s(311));c.lastRenderedReducer=i;var d=t.baseQueue,m=c.pending;if(m!==null){if(d!==null){var b=d.next;d.next=m.next,m.next=b}a.baseQueue=d=m,c.pending=null}if(m=t.baseState,d===null)t.memoizedState=m;else{a=d.next;var j=b=null,R=null,V=a,Q=!1;do{var W=V.lane&-536870913;if(W!==V.lane?(et&W)===W:(rr&W)===W){var B=V.revertLane;if(B===0)R!==null&&(R=R.next={lane:0,revertLane:0,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null}),W===Ps&&(Q=!0);else if((rr&B)===B){V=V.next,B===Ps&&(Q=!0);continue}else W={lane:0,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},R===null?(j=R=W,b=m):R=R.next=W,Be.lanes|=B,dr|=B;W=V.action,Zr&&i(m,W),m=V.hasEagerState?V.eagerState:i(m,W)}else B={lane:W,revertLane:V.revertLane,action:V.action,hasEagerState:V.hasEagerState,eagerState:V.eagerState,next:null},R===null?(j=R=B,b=m):R=R.next=B,Be.lanes|=W,dr|=W;V=V.next}while(V!==null&&V!==a);if(R===null?b=m:R.next=j,!En(m,t.memoizedState)&&(Gt=!0,Q&&(i=zs,i!==null)))throw i;t.memoizedState=m,t.baseState=b,t.baseQueue=R,c.lastRenderedState=m}return d===null&&(c.lanes=0),[t.memoizedState,c.dispatch]}function ff(t){var a=kt(),i=a.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var c=i.dispatch,d=i.pending,m=a.memoizedState;if(d!==null){i.pending=null;var b=d=d.next;do m=t(m,b.action),b=b.next;while(b!==d);En(m,a.memoizedState)||(Gt=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),i.lastRenderedState=m}return[m,c]}function iy(t,a,i){var c=Be,d=kt(),m=st;if(m){if(i===void 0)throw Error(s(407));i=i()}else i=a();var b=!En((dt||d).memoizedState,i);b&&(d.memoizedState=i,Gt=!0),d=d.queue;var j=cy.bind(null,c,d,t);if(co(2048,8,j,[t]),d.getSnapshot!==a||b||Mt!==null&&Mt.memoizedState.tag&1){if(c.flags|=2048,Vs(9,Kl(),ly.bind(null,c,d,i,a),null),pt===null)throw Error(s(349));m||(rr&124)!==0||oy(c,a,i)}return i}function oy(t,a,i){t.flags|=16384,t={getSnapshot:a,value:i},a=Be.updateQueue,a===null?(a=cf(),Be.updateQueue=a,a.stores=[t]):(i=a.stores,i===null?a.stores=[t]:i.push(t))}function ly(t,a,i,c){a.value=i,a.getSnapshot=c,uy(a)&&dy(t)}function cy(t,a,i){return i(function(){uy(a)&&dy(t)})}function uy(t){var a=t.getSnapshot;t=t.value;try{var i=a();return!En(t,i)}catch{return!0}}function dy(t){var a=ks(t,2);a!==null&&Rn(a,t,2)}function hf(t){var a=yn();if(typeof t=="function"){var i=t;if(t=i(),Zr){Ye(!0);try{i()}finally{Ye(!1)}}}return a.memoizedState=a.baseState=t,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:t},a}function fy(t,a,i,c){return t.baseState=i,df(t,dt,typeof c=="function"?c:ka)}function AN(t,a,i,c,d){if(Zl(t))throw Error(s(485));if(t=a.action,t!==null){var m={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){m.listeners.push(b)}};D.T!==null?i(!0):m.isTransition=!1,c(m),i=a.pending,i===null?(m.next=a.pending=m,hy(a,m)):(m.next=i.next,a.pending=i.next=m)}}function hy(t,a){var i=a.action,c=a.payload,d=t.state;if(a.isTransition){var m=D.T,b={};D.T=b;try{var j=i(d,c),R=D.S;R!==null&&R(b,j),my(t,a,j)}catch(V){mf(t,a,V)}finally{D.T=m}}else try{m=i(d,c),my(t,a,m)}catch(V){mf(t,a,V)}}function my(t,a,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(c){py(t,a,c)},function(c){return mf(t,a,c)}):py(t,a,i)}function py(t,a,i){a.status="fulfilled",a.value=i,gy(a),t.state=i,a=t.pending,a!==null&&(i=a.next,i===a?t.pending=null:(i=i.next,a.next=i,hy(t,i)))}function mf(t,a,i){var c=t.pending;if(t.pending=null,c!==null){c=c.next;do a.status="rejected",a.reason=i,gy(a),a=a.next;while(a!==c)}t.action=null}function gy(t){t=t.listeners;for(var a=0;a<t.length;a++)(0,t[a])()}function yy(t,a){return a}function vy(t,a){if(st){var i=pt.formState;if(i!==null){e:{var c=Be;if(st){if(Et){t:{for(var d=Et,m=da;d.nodeType!==8;){if(!m){d=null;break t}if(d=ea(d.nextSibling),d===null){d=null;break t}}m=d.data,d=m==="F!"||m==="F"?d:null}if(d){Et=ea(d.nextSibling),c=d.data==="F!";break e}}$r(c)}c=!1}c&&(a=i[0])}}return i=yn(),i.memoizedState=i.baseState=a,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yy,lastRenderedState:a},i.queue=c,i=Py.bind(null,Be,c),c.dispatch=i,c=hf(!1),m=xf.bind(null,Be,!1,c.queue),c=yn(),d={state:a,dispatch:null,action:t,pending:null},c.queue=d,i=AN.bind(null,Be,d,m,i),d.dispatch=i,c.memoizedState=t,[a,i,!1]}function xy(t){var a=kt();return by(a,dt,t)}function by(t,a,i){if(a=df(t,a,yy)[0],t=Yl(ka)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var c=lo(a)}catch(b){throw b===no?Il:b}else c=a;a=kt();var d=a.queue,m=d.dispatch;return i!==a.memoizedState&&(Be.flags|=2048,Vs(9,Kl(),RN.bind(null,d,i),null)),[c,m,t]}function RN(t,a){t.action=a}function wy(t){var a=kt(),i=dt;if(i!==null)return by(a,i,t);kt(),a=a.memoizedState,i=kt();var c=i.queue.dispatch;return i.memoizedState=t,[a,c,!1]}function Vs(t,a,i,c){return t={tag:t,create:i,deps:c,inst:a,next:null},a=Be.updateQueue,a===null&&(a=cf(),Be.updateQueue=a),i=a.lastEffect,i===null?a.lastEffect=t.next=t:(c=i.next,i.next=t,t.next=c,a.lastEffect=t),t}function Kl(){return{destroy:void 0,resource:void 0}}function jy(){return kt().memoizedState}function Ql(t,a,i,c){var d=yn();c=c===void 0?null:c,Be.flags|=t,d.memoizedState=Vs(1|a,Kl(),i,c)}function co(t,a,i,c){var d=kt();c=c===void 0?null:c;var m=d.memoizedState.inst;dt!==null&&c!==null&&af(c,dt.memoizedState.deps)?d.memoizedState=Vs(a,m,i,c):(Be.flags|=t,d.memoizedState=Vs(1|a,m,i,c))}function _y(t,a){Ql(8390656,8,t,a)}function Ey(t,a){co(2048,8,t,a)}function Sy(t,a){return co(4,2,t,a)}function Ny(t,a){return co(4,4,t,a)}function Cy(t,a){if(typeof a=="function"){t=t();var i=a(t);return function(){typeof i=="function"?i():a(null)}}if(a!=null)return t=t(),a.current=t,function(){a.current=null}}function Ty(t,a,i){i=i!=null?i.concat([t]):null,co(4,4,Cy.bind(null,a,t),i)}function pf(){}function Ay(t,a){var i=kt();a=a===void 0?null:a;var c=i.memoizedState;return a!==null&&af(a,c[1])?c[0]:(i.memoizedState=[t,a],t)}function Ry(t,a){var i=kt();a=a===void 0?null:a;var c=i.memoizedState;if(a!==null&&af(a,c[1]))return c[0];if(c=t(),Zr){Ye(!0);try{t()}finally{Ye(!1)}}return i.memoizedState=[c,a],c}function gf(t,a,i){return i===void 0||(rr&1073741824)!==0?t.memoizedState=a:(t.memoizedState=i,t=kv(),Be.lanes|=t,dr|=t,i)}function Oy(t,a,i,c){return En(i,a)?i:qs.current!==null?(t=gf(t,i,c),En(t,a)||(Gt=!0),t):(rr&42)===0?(Gt=!0,t.memoizedState=i):(t=kv(),Be.lanes|=t,dr|=t,a)}function My(t,a,i,c,d){var m=$.p;$.p=m!==0&&8>m?m:8;var b=D.T,j={};D.T=j,xf(t,!1,a,i);try{var R=d(),V=D.S;if(V!==null&&V(j,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Q=NN(R,c);uo(t,a,Q,An(t))}else uo(t,a,c,An(t))}catch(W){uo(t,a,{then:function(){},status:"rejected",reason:W},An())}finally{$.p=m,D.T=b}}function ON(){}function yf(t,a,i,c){if(t.tag!==5)throw Error(s(476));var d=ky(t).queue;My(t,d,a,Z,i===null?ON:function(){return Dy(t),i(c)})}function ky(t){var a=t.memoizedState;if(a!==null)return a;a={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:Z},next:null};var i={};return a.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ka,lastRenderedState:i},next:null},t.memoizedState=a,t=t.alternate,t!==null&&(t.memoizedState=a),a}function Dy(t){var a=ky(t).next.queue;uo(t,a,{},An())}function vf(){return tn(Ao)}function Fy(){return kt().memoizedState}function Ly(){return kt().memoizedState}function MN(t){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var i=An();t=nr(i);var c=ar(a,t,i);c!==null&&(Rn(c,a,i),ro(c,a,i)),a={cache:Yd()},t.payload=a;return}a=a.return}}function kN(t,a,i){var c=An();i={lane:c,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Zl(t)?zy(a,i):(i=Pd(t,a,i,c),i!==null&&(Rn(i,t,c),qy(i,a,c)))}function Py(t,a,i){var c=An();uo(t,a,i,c)}function uo(t,a,i,c){var d={lane:c,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Zl(t))zy(a,d);else{var m=t.alternate;if(t.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var b=a.lastRenderedState,j=m(b,i);if(d.hasEagerState=!0,d.eagerState=j,En(j,b))return kl(t,a,d,0),pt===null&&Ml(),!1}catch{}if(i=Pd(t,a,d,c),i!==null)return Rn(i,t,c),qy(i,a,c),!0}return!1}function xf(t,a,i,c){if(c={lane:2,revertLane:Xf(),action:c,hasEagerState:!1,eagerState:null,next:null},Zl(t)){if(a)throw Error(s(479))}else a=Pd(t,i,c,2),a!==null&&Rn(a,t,2)}function Zl(t){var a=t.alternate;return t===Be||a!==null&&a===Be}function zy(t,a){Us=Bl=!0;var i=t.pending;i===null?a.next=a:(a.next=i.next,i.next=a),t.pending=a}function qy(t,a,i){if((i&4194048)!==0){var c=a.lanes;c&=t.pendingLanes,i|=c,a.lanes=i,Yp(t,i)}}var Xl={readContext:tn,use:$l,useCallback:Tt,useContext:Tt,useEffect:Tt,useImperativeHandle:Tt,useLayoutEffect:Tt,useInsertionEffect:Tt,useMemo:Tt,useReducer:Tt,useRef:Tt,useState:Tt,useDebugValue:Tt,useDeferredValue:Tt,useTransition:Tt,useSyncExternalStore:Tt,useId:Tt,useHostTransitionStatus:Tt,useFormState:Tt,useActionState:Tt,useOptimistic:Tt,useMemoCache:Tt,useCacheRefresh:Tt},Uy={readContext:tn,use:$l,useCallback:function(t,a){return yn().memoizedState=[t,a===void 0?null:a],t},useContext:tn,useEffect:_y,useImperativeHandle:function(t,a,i){i=i!=null?i.concat([t]):null,Ql(4194308,4,Cy.bind(null,a,t),i)},useLayoutEffect:function(t,a){return Ql(4194308,4,t,a)},useInsertionEffect:function(t,a){Ql(4,2,t,a)},useMemo:function(t,a){var i=yn();a=a===void 0?null:a;var c=t();if(Zr){Ye(!0);try{t()}finally{Ye(!1)}}return i.memoizedState=[c,a],c},useReducer:function(t,a,i){var c=yn();if(i!==void 0){var d=i(a);if(Zr){Ye(!0);try{i(a)}finally{Ye(!1)}}}else d=a;return c.memoizedState=c.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},c.queue=t,t=t.dispatch=kN.bind(null,Be,t),[c.memoizedState,t]},useRef:function(t){var a=yn();return t={current:t},a.memoizedState=t},useState:function(t){t=hf(t);var a=t.queue,i=Py.bind(null,Be,a);return a.dispatch=i,[t.memoizedState,i]},useDebugValue:pf,useDeferredValue:function(t,a){var i=yn();return gf(i,t,a)},useTransition:function(){var t=hf(!1);return t=My.bind(null,Be,t.queue,!0,!1),yn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,a,i){var c=Be,d=yn();if(st){if(i===void 0)throw Error(s(407));i=i()}else{if(i=a(),pt===null)throw Error(s(349));(et&124)!==0||oy(c,a,i)}d.memoizedState=i;var m={value:i,getSnapshot:a};return d.queue=m,_y(cy.bind(null,c,m,t),[t]),c.flags|=2048,Vs(9,Kl(),ly.bind(null,c,m,i,a),null),i},useId:function(){var t=yn(),a=pt.identifierPrefix;if(st){var i=Ra,c=Aa;i=(c&~(1<<32-Ue(c)-1)).toString(32)+i,a="«"+a+"R"+i,i=Gl++,0<i&&(a+="H"+i.toString(32)),a+="»"}else i=CN++,a="«"+a+"r"+i.toString(32)+"»";return t.memoizedState=a},useHostTransitionStatus:vf,useFormState:vy,useActionState:vy,useOptimistic:function(t){var a=yn();a.memoizedState=a.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=i,a=xf.bind(null,Be,!0,i),i.dispatch=a,[t,a]},useMemoCache:uf,useCacheRefresh:function(){return yn().memoizedState=MN.bind(null,Be)}},Iy={readContext:tn,use:$l,useCallback:Ay,useContext:tn,useEffect:Ey,useImperativeHandle:Ty,useInsertionEffect:Sy,useLayoutEffect:Ny,useMemo:Ry,useReducer:Yl,useRef:jy,useState:function(){return Yl(ka)},useDebugValue:pf,useDeferredValue:function(t,a){var i=kt();return Oy(i,dt.memoizedState,t,a)},useTransition:function(){var t=Yl(ka)[0],a=kt().memoizedState;return[typeof t=="boolean"?t:lo(t),a]},useSyncExternalStore:iy,useId:Fy,useHostTransitionStatus:vf,useFormState:xy,useActionState:xy,useOptimistic:function(t,a){var i=kt();return fy(i,dt,t,a)},useMemoCache:uf,useCacheRefresh:Ly},DN={readContext:tn,use:$l,useCallback:Ay,useContext:tn,useEffect:Ey,useImperativeHandle:Ty,useInsertionEffect:Sy,useLayoutEffect:Ny,useMemo:Ry,useReducer:ff,useRef:jy,useState:function(){return ff(ka)},useDebugValue:pf,useDeferredValue:function(t,a){var i=kt();return dt===null?gf(i,t,a):Oy(i,dt.memoizedState,t,a)},useTransition:function(){var t=ff(ka)[0],a=kt().memoizedState;return[typeof t=="boolean"?t:lo(t),a]},useSyncExternalStore:iy,useId:Fy,useHostTransitionStatus:vf,useFormState:wy,useActionState:wy,useOptimistic:function(t,a){var i=kt();return dt!==null?fy(i,dt,t,a):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:uf,useCacheRefresh:Ly},Hs=null,fo=0;function Wl(t){var a=fo;return fo+=1,Hs===null&&(Hs=[]),Wg(Hs,t,a)}function ho(t,a){a=a.props.ref,t.ref=a!==void 0?a:null}function Jl(t,a){throw a.$$typeof===x?Error(s(525)):(t=Object.prototype.toString.call(a),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":t)))}function Vy(t){var a=t._init;return a(t._payload)}function Hy(t){function a(q,k){if(t){var U=q.deletions;U===null?(q.deletions=[k],q.flags|=16):U.push(k)}}function i(q,k){if(!t)return null;for(;k!==null;)a(q,k),k=k.sibling;return null}function c(q){for(var k=new Map;q!==null;)q.key!==null?k.set(q.key,q):k.set(q.index,q),q=q.sibling;return k}function d(q,k){return q=Ta(q,k),q.index=0,q.sibling=null,q}function m(q,k,U){return q.index=U,t?(U=q.alternate,U!==null?(U=U.index,U<k?(q.flags|=67108866,k):U):(q.flags|=67108866,k)):(q.flags|=1048576,k)}function b(q){return t&&q.alternate===null&&(q.flags|=67108866),q}function j(q,k,U,X){return k===null||k.tag!==6?(k=qd(U,q.mode,X),k.return=q,k):(k=d(k,U),k.return=q,k)}function R(q,k,U,X){var we=U.type;return we===C?Q(q,k,U.props.children,X,U.key):k!==null&&(k.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===H&&Vy(we)===k.type)?(k=d(k,U.props),ho(k,U),k.return=q,k):(k=Fl(U.type,U.key,U.props,null,q.mode,X),ho(k,U),k.return=q,k)}function V(q,k,U,X){return k===null||k.tag!==4||k.stateNode.containerInfo!==U.containerInfo||k.stateNode.implementation!==U.implementation?(k=Ud(U,q.mode,X),k.return=q,k):(k=d(k,U.children||[]),k.return=q,k)}function Q(q,k,U,X,we){return k===null||k.tag!==7?(k=Vr(U,q.mode,X,we),k.return=q,k):(k=d(k,U),k.return=q,k)}function W(q,k,U){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=qd(""+k,q.mode,U),k.return=q,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case w:return U=Fl(k.type,k.key,k.props,null,q.mode,U),ho(U,k),U.return=q,U;case E:return k=Ud(k,q.mode,U),k.return=q,k;case H:var X=k._init;return k=X(k._payload),W(q,k,U)}if(de(k)||ee(k))return k=Vr(k,q.mode,U,null),k.return=q,k;if(typeof k.then=="function")return W(q,Wl(k),U);if(k.$$typeof===M)return W(q,ql(q,k),U);Jl(q,k)}return null}function B(q,k,U,X){var we=k!==null?k.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return we!==null?null:j(q,k,""+U,X);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case w:return U.key===we?R(q,k,U,X):null;case E:return U.key===we?V(q,k,U,X):null;case H:return we=U._init,U=we(U._payload),B(q,k,U,X)}if(de(U)||ee(U))return we!==null?null:Q(q,k,U,X,null);if(typeof U.then=="function")return B(q,k,Wl(U),X);if(U.$$typeof===M)return B(q,k,ql(q,U),X);Jl(q,U)}return null}function G(q,k,U,X,we){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return q=q.get(U)||null,j(k,q,""+X,we);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case w:return q=q.get(X.key===null?U:X.key)||null,R(k,q,X,we);case E:return q=q.get(X.key===null?U:X.key)||null,V(k,q,X,we);case H:var Ke=X._init;return X=Ke(X._payload),G(q,k,U,X,we)}if(de(X)||ee(X))return q=q.get(U)||null,Q(k,q,X,we,null);if(typeof X.then=="function")return G(q,k,U,Wl(X),we);if(X.$$typeof===M)return G(q,k,U,ql(k,X),we);Jl(k,X)}return null}function Fe(q,k,U,X){for(var we=null,Ke=null,Te=k,De=k=0,Yt=null;Te!==null&&De<U.length;De++){Te.index>De?(Yt=Te,Te=null):Yt=Te.sibling;var nt=B(q,Te,U[De],X);if(nt===null){Te===null&&(Te=Yt);break}t&&Te&&nt.alternate===null&&a(q,Te),k=m(nt,k,De),Ke===null?we=nt:Ke.sibling=nt,Ke=nt,Te=Yt}if(De===U.length)return i(q,Te),st&&Br(q,De),we;if(Te===null){for(;De<U.length;De++)Te=W(q,U[De],X),Te!==null&&(k=m(Te,k,De),Ke===null?we=Te:Ke.sibling=Te,Ke=Te);return st&&Br(q,De),we}for(Te=c(Te);De<U.length;De++)Yt=G(Te,q,De,U[De],X),Yt!==null&&(t&&Yt.alternate!==null&&Te.delete(Yt.key===null?De:Yt.key),k=m(Yt,k,De),Ke===null?we=Yt:Ke.sibling=Yt,Ke=Yt);return t&&Te.forEach(function(br){return a(q,br)}),st&&Br(q,De),we}function ke(q,k,U,X){if(U==null)throw Error(s(151));for(var we=null,Ke=null,Te=k,De=k=0,Yt=null,nt=U.next();Te!==null&&!nt.done;De++,nt=U.next()){Te.index>De?(Yt=Te,Te=null):Yt=Te.sibling;var br=B(q,Te,nt.value,X);if(br===null){Te===null&&(Te=Yt);break}t&&Te&&br.alternate===null&&a(q,Te),k=m(br,k,De),Ke===null?we=br:Ke.sibling=br,Ke=br,Te=Yt}if(nt.done)return i(q,Te),st&&Br(q,De),we;if(Te===null){for(;!nt.done;De++,nt=U.next())nt=W(q,nt.value,X),nt!==null&&(k=m(nt,k,De),Ke===null?we=nt:Ke.sibling=nt,Ke=nt);return st&&Br(q,De),we}for(Te=c(Te);!nt.done;De++,nt=U.next())nt=G(Te,q,De,nt.value,X),nt!==null&&(t&&nt.alternate!==null&&Te.delete(nt.key===null?De:nt.key),k=m(nt,k,De),Ke===null?we=nt:Ke.sibling=nt,Ke=nt);return t&&Te.forEach(function(FC){return a(q,FC)}),st&&Br(q,De),we}function ht(q,k,U,X){if(typeof U=="object"&&U!==null&&U.type===C&&U.key===null&&(U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case w:e:{for(var we=U.key;k!==null;){if(k.key===we){if(we=U.type,we===C){if(k.tag===7){i(q,k.sibling),X=d(k,U.props.children),X.return=q,q=X;break e}}else if(k.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===H&&Vy(we)===k.type){i(q,k.sibling),X=d(k,U.props),ho(X,U),X.return=q,q=X;break e}i(q,k);break}else a(q,k);k=k.sibling}U.type===C?(X=Vr(U.props.children,q.mode,X,U.key),X.return=q,q=X):(X=Fl(U.type,U.key,U.props,null,q.mode,X),ho(X,U),X.return=q,q=X)}return b(q);case E:e:{for(we=U.key;k!==null;){if(k.key===we)if(k.tag===4&&k.stateNode.containerInfo===U.containerInfo&&k.stateNode.implementation===U.implementation){i(q,k.sibling),X=d(k,U.children||[]),X.return=q,q=X;break e}else{i(q,k);break}else a(q,k);k=k.sibling}X=Ud(U,q.mode,X),X.return=q,q=X}return b(q);case H:return we=U._init,U=we(U._payload),ht(q,k,U,X)}if(de(U))return Fe(q,k,U,X);if(ee(U)){if(we=ee(U),typeof we!="function")throw Error(s(150));return U=we.call(U),ke(q,k,U,X)}if(typeof U.then=="function")return ht(q,k,Wl(U),X);if(U.$$typeof===M)return ht(q,k,ql(q,U),X);Jl(q,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(U=""+U,k!==null&&k.tag===6?(i(q,k.sibling),X=d(k,U),X.return=q,q=X):(i(q,k),X=qd(U,q.mode,X),X.return=q,q=X),b(q)):i(q,k)}return function(q,k,U,X){try{fo=0;var we=ht(q,k,U,X);return Hs=null,we}catch(Te){if(Te===no||Te===Il)throw Te;var Ke=Sn(29,Te,null,q.mode);return Ke.lanes=X,Ke.return=q,Ke}}}var Bs=Hy(!0),By=Hy(!1),Hn=K(null),fa=null;function sr(t){var a=t.alternate;ne(qt,qt.current&1),ne(Hn,t),fa===null&&(a===null||qs.current!==null||a.memoizedState!==null)&&(fa=t)}function Gy(t){if(t.tag===22){if(ne(qt,qt.current),ne(Hn,t),fa===null){var a=t.alternate;a!==null&&a.memoizedState!==null&&(fa=t)}}else ir()}function ir(){ne(qt,qt.current),ne(Hn,Hn.current)}function Da(t){re(Hn),fa===t&&(fa=null),re(qt)}var qt=K(0);function ec(t){for(var a=t;a!==null;){if(a.tag===13){var i=a.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||ch(i)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function bf(t,a,i,c){a=t.memoizedState,i=i(c,a),i=i==null?a:y({},a,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var wf={enqueueSetState:function(t,a,i){t=t._reactInternals;var c=An(),d=nr(c);d.payload=a,i!=null&&(d.callback=i),a=ar(t,d,c),a!==null&&(Rn(a,t,c),ro(a,t,c))},enqueueReplaceState:function(t,a,i){t=t._reactInternals;var c=An(),d=nr(c);d.tag=1,d.payload=a,i!=null&&(d.callback=i),a=ar(t,d,c),a!==null&&(Rn(a,t,c),ro(a,t,c))},enqueueForceUpdate:function(t,a){t=t._reactInternals;var i=An(),c=nr(i);c.tag=2,a!=null&&(c.callback=a),a=ar(t,c,i),a!==null&&(Rn(a,t,i),ro(a,t,i))}};function $y(t,a,i,c,d,m,b){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(c,m,b):a.prototype&&a.prototype.isPureReactComponent?!Ki(i,c)||!Ki(d,m):!0}function Yy(t,a,i,c){t=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(i,c),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(i,c),a.state!==t&&wf.enqueueReplaceState(a,a.state,null)}function Xr(t,a){var i=a;if("ref"in a){i={};for(var c in a)c!=="ref"&&(i[c]=a[c])}if(t=t.defaultProps){i===a&&(i=y({},i));for(var d in t)i[d]===void 0&&(i[d]=t[d])}return i}var tc=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function Ky(t){tc(t)}function Qy(t){console.error(t)}function Zy(t){tc(t)}function nc(t,a){try{var i=t.onUncaughtError;i(a.value,{componentStack:a.stack})}catch(c){setTimeout(function(){throw c})}}function Xy(t,a,i){try{var c=t.onCaughtError;c(i.value,{componentStack:i.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function jf(t,a,i){return i=nr(i),i.tag=3,i.payload={element:null},i.callback=function(){nc(t,a)},i}function Wy(t){return t=nr(t),t.tag=3,t}function Jy(t,a,i,c){var d=i.type.getDerivedStateFromError;if(typeof d=="function"){var m=c.value;t.payload=function(){return d(m)},t.callback=function(){Xy(a,i,c)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(t.callback=function(){Xy(a,i,c),typeof d!="function"&&(fr===null?fr=new Set([this]):fr.add(this));var j=c.stack;this.componentDidCatch(c.value,{componentStack:j!==null?j:""})})}function FN(t,a,i,c,d){if(i.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(a=i.alternate,a!==null&&Ji(a,i,d,!0),i=Hn.current,i!==null){switch(i.tag){case 13:return fa===null?$f():i.alternate===null&&St===0&&(St=3),i.flags&=-257,i.flags|=65536,i.lanes=d,c===Zd?i.flags|=16384:(a=i.updateQueue,a===null?i.updateQueue=new Set([c]):a.add(c),Kf(t,c,d)),!1;case 22:return i.flags|=65536,c===Zd?i.flags|=16384:(a=i.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([c])},i.updateQueue=a):(i=a.retryQueue,i===null?a.retryQueue=new Set([c]):i.add(c)),Kf(t,c,d)),!1}throw Error(s(435,i.tag))}return Kf(t,c,d),$f(),!1}if(st)return a=Hn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=d,c!==Hd&&(t=Error(s(422),{cause:c}),Wi(qn(t,i)))):(c!==Hd&&(a=Error(s(423),{cause:c}),Wi(qn(a,i))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,c=qn(c,i),d=jf(t.stateNode,c,d),Jd(t,d),St!==4&&(St=2)),!1;var m=Error(s(520),{cause:c});if(m=qn(m,i),bo===null?bo=[m]:bo.push(m),St!==4&&(St=2),a===null)return!0;c=qn(c,i),i=a;do{switch(i.tag){case 3:return i.flags|=65536,t=d&-d,i.lanes|=t,t=jf(i.stateNode,c,t),Jd(i,t),!1;case 1:if(a=i.type,m=i.stateNode,(i.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(fr===null||!fr.has(m))))return i.flags|=65536,d&=-d,i.lanes|=d,d=Wy(d),Jy(d,t,i,c),Jd(i,d),!1}i=i.return}while(i!==null);return!1}var ev=Error(s(461)),Gt=!1;function Zt(t,a,i,c){a.child=t===null?By(a,null,i,c):Bs(a,t.child,i,c)}function tv(t,a,i,c,d){i=i.render;var m=a.ref;if("ref"in c){var b={};for(var j in c)j!=="ref"&&(b[j]=c[j])}else b=c;return Kr(a),c=rf(t,a,i,b,m,d),j=sf(),t!==null&&!Gt?(of(t,a,d),Fa(t,a,d)):(st&&j&&Id(a),a.flags|=1,Zt(t,a,c,d),a.child)}function nv(t,a,i,c,d){if(t===null){var m=i.type;return typeof m=="function"&&!zd(m)&&m.defaultProps===void 0&&i.compare===null?(a.tag=15,a.type=m,av(t,a,m,c,d)):(t=Fl(i.type,null,c,a,a.mode,d),t.ref=a.ref,t.return=a,a.child=t)}if(m=t.child,!Rf(t,d)){var b=m.memoizedProps;if(i=i.compare,i=i!==null?i:Ki,i(b,c)&&t.ref===a.ref)return Fa(t,a,d)}return a.flags|=1,t=Ta(m,c),t.ref=a.ref,t.return=a,a.child=t}function av(t,a,i,c,d){if(t!==null){var m=t.memoizedProps;if(Ki(m,c)&&t.ref===a.ref)if(Gt=!1,a.pendingProps=c=m,Rf(t,d))(t.flags&131072)!==0&&(Gt=!0);else return a.lanes=t.lanes,Fa(t,a,d)}return _f(t,a,i,c,d)}function rv(t,a,i){var c=a.pendingProps,d=c.children,m=t!==null?t.memoizedState:null;if(c.mode==="hidden"){if((a.flags&128)!==0){if(c=m!==null?m.baseLanes|i:i,t!==null){for(d=a.child=t.child,m=0;d!==null;)m=m|d.lanes|d.childLanes,d=d.sibling;a.childLanes=m&~c}else a.childLanes=0,a.child=null;return sv(t,a,c,i)}if((i&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ul(a,m!==null?m.cachePool:null),m!==null?ay(a,m):tf(),Gy(a);else return a.lanes=a.childLanes=536870912,sv(t,a,m!==null?m.baseLanes|i:i,i)}else m!==null?(Ul(a,m.cachePool),ay(a,m),ir(),a.memoizedState=null):(t!==null&&Ul(a,null),tf(),ir());return Zt(t,a,d,i),a.child}function sv(t,a,i,c){var d=Qd();return d=d===null?null:{parent:zt._currentValue,pool:d},a.memoizedState={baseLanes:i,cachePool:d},t!==null&&Ul(a,null),tf(),Gy(a),t!==null&&Ji(t,a,c,!0),null}function ac(t,a){var i=a.ref;if(i===null)t!==null&&t.ref!==null&&(a.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(t===null||t.ref!==i)&&(a.flags|=4194816)}}function _f(t,a,i,c,d){return Kr(a),i=rf(t,a,i,c,void 0,d),c=sf(),t!==null&&!Gt?(of(t,a,d),Fa(t,a,d)):(st&&c&&Id(a),a.flags|=1,Zt(t,a,i,d),a.child)}function iv(t,a,i,c,d,m){return Kr(a),a.updateQueue=null,i=sy(a,c,i,d),ry(t),c=sf(),t!==null&&!Gt?(of(t,a,m),Fa(t,a,m)):(st&&c&&Id(a),a.flags|=1,Zt(t,a,i,m),a.child)}function ov(t,a,i,c,d){if(Kr(a),a.stateNode===null){var m=Ds,b=i.contextType;typeof b=="object"&&b!==null&&(m=tn(b)),m=new i(c,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=wf,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=c,m.state=a.memoizedState,m.refs={},Xd(a),b=i.contextType,m.context=typeof b=="object"&&b!==null?tn(b):Ds,m.state=a.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(bf(a,i,b,c),m.state=a.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(b=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),b!==m.state&&wf.enqueueReplaceState(m,m.state,null),io(a,c,m,d),so(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),c=!0}else if(t===null){m=a.stateNode;var j=a.memoizedProps,R=Xr(i,j);m.props=R;var V=m.context,Q=i.contextType;b=Ds,typeof Q=="object"&&Q!==null&&(b=tn(Q));var W=i.getDerivedStateFromProps;Q=typeof W=="function"||typeof m.getSnapshotBeforeUpdate=="function",j=a.pendingProps!==j,Q||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(j||V!==b)&&Yy(a,m,c,b),tr=!1;var B=a.memoizedState;m.state=B,io(a,c,m,d),so(),V=a.memoizedState,j||B!==V||tr?(typeof W=="function"&&(bf(a,i,W,c),V=a.memoizedState),(R=tr||$y(a,i,R,c,B,V,b))?(Q||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=c,a.memoizedState=V),m.props=c,m.state=V,m.context=b,c=R):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),c=!1)}else{m=a.stateNode,Wd(t,a),b=a.memoizedProps,Q=Xr(i,b),m.props=Q,W=a.pendingProps,B=m.context,V=i.contextType,R=Ds,typeof V=="object"&&V!==null&&(R=tn(V)),j=i.getDerivedStateFromProps,(V=typeof j=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(b!==W||B!==R)&&Yy(a,m,c,R),tr=!1,B=a.memoizedState,m.state=B,io(a,c,m,d),so();var G=a.memoizedState;b!==W||B!==G||tr||t!==null&&t.dependencies!==null&&zl(t.dependencies)?(typeof j=="function"&&(bf(a,i,j,c),G=a.memoizedState),(Q=tr||$y(a,i,Q,c,B,G,R)||t!==null&&t.dependencies!==null&&zl(t.dependencies))?(V||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(c,G,R),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(c,G,R)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||b===t.memoizedProps&&B===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&B===t.memoizedState||(a.flags|=1024),a.memoizedProps=c,a.memoizedState=G),m.props=c,m.state=G,m.context=R,c=Q):(typeof m.componentDidUpdate!="function"||b===t.memoizedProps&&B===t.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&B===t.memoizedState||(a.flags|=1024),c=!1)}return m=c,ac(t,a),c=(a.flags&128)!==0,m||c?(m=a.stateNode,i=c&&typeof i.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,t!==null&&c?(a.child=Bs(a,t.child,null,d),a.child=Bs(a,null,i,d)):Zt(t,a,i,d),a.memoizedState=m.state,t=a.child):t=Fa(t,a,d),t}function lv(t,a,i,c){return Xi(),a.flags|=256,Zt(t,a,i,c),a.child}var Ef={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sf(t){return{baseLanes:t,cachePool:Qg()}}function Nf(t,a,i){return t=t!==null?t.childLanes&~i:0,a&&(t|=Bn),t}function cv(t,a,i){var c=a.pendingProps,d=!1,m=(a.flags&128)!==0,b;if((b=m)||(b=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),b&&(d=!0,a.flags&=-129),b=(a.flags&32)!==0,a.flags&=-33,t===null){if(st){if(d?sr(a):ir(),st){var j=Et,R;if(R=j){e:{for(R=j,j=da;R.nodeType!==8;){if(!j){j=null;break e}if(R=ea(R.nextSibling),R===null){j=null;break e}}j=R}j!==null?(a.memoizedState={dehydrated:j,treeContext:Hr!==null?{id:Aa,overflow:Ra}:null,retryLane:536870912,hydrationErrors:null},R=Sn(18,null,null,0),R.stateNode=j,R.return=a,a.child=R,cn=a,Et=null,R=!0):R=!1}R||$r(a)}if(j=a.memoizedState,j!==null&&(j=j.dehydrated,j!==null))return ch(j)?a.lanes=32:a.lanes=536870912,null;Da(a)}return j=c.children,c=c.fallback,d?(ir(),d=a.mode,j=rc({mode:"hidden",children:j},d),c=Vr(c,d,i,null),j.return=a,c.return=a,j.sibling=c,a.child=j,d=a.child,d.memoizedState=Sf(i),d.childLanes=Nf(t,b,i),a.memoizedState=Ef,c):(sr(a),Cf(a,j))}if(R=t.memoizedState,R!==null&&(j=R.dehydrated,j!==null)){if(m)a.flags&256?(sr(a),a.flags&=-257,a=Tf(t,a,i)):a.memoizedState!==null?(ir(),a.child=t.child,a.flags|=128,a=null):(ir(),d=c.fallback,j=a.mode,c=rc({mode:"visible",children:c.children},j),d=Vr(d,j,i,null),d.flags|=2,c.return=a,d.return=a,c.sibling=d,a.child=c,Bs(a,t.child,null,i),c=a.child,c.memoizedState=Sf(i),c.childLanes=Nf(t,b,i),a.memoizedState=Ef,a=d);else if(sr(a),ch(j)){if(b=j.nextSibling&&j.nextSibling.dataset,b)var V=b.dgst;b=V,c=Error(s(419)),c.stack="",c.digest=b,Wi({value:c,source:null,stack:null}),a=Tf(t,a,i)}else if(Gt||Ji(t,a,i,!1),b=(i&t.childLanes)!==0,Gt||b){if(b=pt,b!==null&&(c=i&-i,c=(c&42)!==0?1:cd(c),c=(c&(b.suspendedLanes|i))!==0?0:c,c!==0&&c!==R.retryLane))throw R.retryLane=c,ks(t,c),Rn(b,t,c),ev;j.data==="$?"||$f(),a=Tf(t,a,i)}else j.data==="$?"?(a.flags|=192,a.child=t.child,a=null):(t=R.treeContext,Et=ea(j.nextSibling),cn=a,st=!0,Gr=null,da=!1,t!==null&&(In[Vn++]=Aa,In[Vn++]=Ra,In[Vn++]=Hr,Aa=t.id,Ra=t.overflow,Hr=a),a=Cf(a,c.children),a.flags|=4096);return a}return d?(ir(),d=c.fallback,j=a.mode,R=t.child,V=R.sibling,c=Ta(R,{mode:"hidden",children:c.children}),c.subtreeFlags=R.subtreeFlags&65011712,V!==null?d=Ta(V,d):(d=Vr(d,j,i,null),d.flags|=2),d.return=a,c.return=a,c.sibling=d,a.child=c,c=d,d=a.child,j=t.child.memoizedState,j===null?j=Sf(i):(R=j.cachePool,R!==null?(V=zt._currentValue,R=R.parent!==V?{parent:V,pool:V}:R):R=Qg(),j={baseLanes:j.baseLanes|i,cachePool:R}),d.memoizedState=j,d.childLanes=Nf(t,b,i),a.memoizedState=Ef,c):(sr(a),i=t.child,t=i.sibling,i=Ta(i,{mode:"visible",children:c.children}),i.return=a,i.sibling=null,t!==null&&(b=a.deletions,b===null?(a.deletions=[t],a.flags|=16):b.push(t)),a.child=i,a.memoizedState=null,i)}function Cf(t,a){return a=rc({mode:"visible",children:a},t.mode),a.return=t,t.child=a}function rc(t,a){return t=Sn(22,t,null,a),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Tf(t,a,i){return Bs(a,t.child,null,i),t=Cf(a,a.pendingProps.children),t.flags|=2,a.memoizedState=null,t}function uv(t,a,i){t.lanes|=a;var c=t.alternate;c!==null&&(c.lanes|=a),Gd(t.return,a,i)}function Af(t,a,i,c,d){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:c,tail:i,tailMode:d}:(m.isBackwards=a,m.rendering=null,m.renderingStartTime=0,m.last=c,m.tail=i,m.tailMode=d)}function dv(t,a,i){var c=a.pendingProps,d=c.revealOrder,m=c.tail;if(Zt(t,a,c.children,i),c=qt.current,(c&2)!==0)c=c&1|2,a.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=a.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&uv(t,i,a);else if(t.tag===19)uv(t,i,a);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===a)break e;for(;t.sibling===null;){if(t.return===null||t.return===a)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}c&=1}switch(ne(qt,c),d){case"forwards":for(i=a.child,d=null;i!==null;)t=i.alternate,t!==null&&ec(t)===null&&(d=i),i=i.sibling;i=d,i===null?(d=a.child,a.child=null):(d=i.sibling,i.sibling=null),Af(a,!1,d,i,m);break;case"backwards":for(i=null,d=a.child,a.child=null;d!==null;){if(t=d.alternate,t!==null&&ec(t)===null){a.child=d;break}t=d.sibling,d.sibling=i,i=d,d=t}Af(a,!0,i,null,m);break;case"together":Af(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Fa(t,a,i){if(t!==null&&(a.dependencies=t.dependencies),dr|=a.lanes,(i&a.childLanes)===0)if(t!==null){if(Ji(t,a,i,!1),(i&a.childLanes)===0)return null}else return null;if(t!==null&&a.child!==t.child)throw Error(s(153));if(a.child!==null){for(t=a.child,i=Ta(t,t.pendingProps),a.child=i,i.return=a;t.sibling!==null;)t=t.sibling,i=i.sibling=Ta(t,t.pendingProps),i.return=a;i.sibling=null}return a.child}function Rf(t,a){return(t.lanes&a)!==0?!0:(t=t.dependencies,!!(t!==null&&zl(t)))}function LN(t,a,i){switch(a.tag){case 3:Ce(a,a.stateNode.containerInfo),er(a,zt,t.memoizedState.cache),Xi();break;case 27:case 5:We(a);break;case 4:Ce(a,a.stateNode.containerInfo);break;case 10:er(a,a.type,a.memoizedProps.value);break;case 13:var c=a.memoizedState;if(c!==null)return c.dehydrated!==null?(sr(a),a.flags|=128,null):(i&a.child.childLanes)!==0?cv(t,a,i):(sr(a),t=Fa(t,a,i),t!==null?t.sibling:null);sr(a);break;case 19:var d=(t.flags&128)!==0;if(c=(i&a.childLanes)!==0,c||(Ji(t,a,i,!1),c=(i&a.childLanes)!==0),d){if(c)return dv(t,a,i);a.flags|=128}if(d=a.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),ne(qt,qt.current),c)break;return null;case 22:case 23:return a.lanes=0,rv(t,a,i);case 24:er(a,zt,t.memoizedState.cache)}return Fa(t,a,i)}function fv(t,a,i){if(t!==null)if(t.memoizedProps!==a.pendingProps)Gt=!0;else{if(!Rf(t,i)&&(a.flags&128)===0)return Gt=!1,LN(t,a,i);Gt=(t.flags&131072)!==0}else Gt=!1,st&&(a.flags&1048576)!==0&&Vg(a,Pl,a.index);switch(a.lanes=0,a.tag){case 16:e:{t=a.pendingProps;var c=a.elementType,d=c._init;if(c=d(c._payload),a.type=c,typeof c=="function")zd(c)?(t=Xr(c,t),a.tag=1,a=ov(null,a,c,t,i)):(a.tag=0,a=_f(null,a,c,t,i));else{if(c!=null){if(d=c.$$typeof,d===F){a.tag=11,a=tv(null,a,c,t,i);break e}else if(d===P){a.tag=14,a=nv(null,a,c,t,i);break e}}throw a=te(c)||c,Error(s(306,a,""))}}return a;case 0:return _f(t,a,a.type,a.pendingProps,i);case 1:return c=a.type,d=Xr(c,a.pendingProps),ov(t,a,c,d,i);case 3:e:{if(Ce(a,a.stateNode.containerInfo),t===null)throw Error(s(387));c=a.pendingProps;var m=a.memoizedState;d=m.element,Wd(t,a),io(a,c,null,i);var b=a.memoizedState;if(c=b.cache,er(a,zt,c),c!==m.cache&&$d(a,[zt],i,!0),so(),c=b.element,m.isDehydrated)if(m={element:c,isDehydrated:!1,cache:b.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=lv(t,a,c,i);break e}else if(c!==d){d=qn(Error(s(424)),a),Wi(d),a=lv(t,a,c,i);break e}else for(t=a.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Et=ea(t.firstChild),cn=a,st=!0,Gr=null,da=!0,i=By(a,null,c,i),a.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Xi(),c===d){a=Fa(t,a,i);break e}Zt(t,a,c,i)}a=a.child}return a;case 26:return ac(t,a),t===null?(i=gx(a.type,null,a.pendingProps,null))?a.memoizedState=i:st||(i=a.type,t=a.pendingProps,c=vc(fe.current).createElement(i),c[en]=a,c[pn]=t,Wt(c,i,t),Bt(c),a.stateNode=c):a.memoizedState=gx(a.type,t.memoizedProps,a.pendingProps,t.memoizedState),null;case 27:return We(a),t===null&&st&&(c=a.stateNode=hx(a.type,a.pendingProps,fe.current),cn=a,da=!0,d=Et,pr(a.type)?(uh=d,Et=ea(c.firstChild)):Et=d),Zt(t,a,a.pendingProps.children,i),ac(t,a),t===null&&(a.flags|=4194304),a.child;case 5:return t===null&&st&&((d=c=Et)&&(c=uC(c,a.type,a.pendingProps,da),c!==null?(a.stateNode=c,cn=a,Et=ea(c.firstChild),da=!1,d=!0):d=!1),d||$r(a)),We(a),d=a.type,m=a.pendingProps,b=t!==null?t.memoizedProps:null,c=m.children,ih(d,m)?c=null:b!==null&&ih(d,b)&&(a.flags|=32),a.memoizedState!==null&&(d=rf(t,a,TN,null,null,i),Ao._currentValue=d),ac(t,a),Zt(t,a,c,i),a.child;case 6:return t===null&&st&&((t=i=Et)&&(i=dC(i,a.pendingProps,da),i!==null?(a.stateNode=i,cn=a,Et=null,t=!0):t=!1),t||$r(a)),null;case 13:return cv(t,a,i);case 4:return Ce(a,a.stateNode.containerInfo),c=a.pendingProps,t===null?a.child=Bs(a,null,c,i):Zt(t,a,c,i),a.child;case 11:return tv(t,a,a.type,a.pendingProps,i);case 7:return Zt(t,a,a.pendingProps,i),a.child;case 8:return Zt(t,a,a.pendingProps.children,i),a.child;case 12:return Zt(t,a,a.pendingProps.children,i),a.child;case 10:return c=a.pendingProps,er(a,a.type,c.value),Zt(t,a,c.children,i),a.child;case 9:return d=a.type._context,c=a.pendingProps.children,Kr(a),d=tn(d),c=c(d),a.flags|=1,Zt(t,a,c,i),a.child;case 14:return nv(t,a,a.type,a.pendingProps,i);case 15:return av(t,a,a.type,a.pendingProps,i);case 19:return dv(t,a,i);case 31:return c=a.pendingProps,i=a.mode,c={mode:c.mode,children:c.children},t===null?(i=rc(c,i),i.ref=a.ref,a.child=i,i.return=a,a=i):(i=Ta(t.child,c),i.ref=a.ref,a.child=i,i.return=a,a=i),a;case 22:return rv(t,a,i);case 24:return Kr(a),c=tn(zt),t===null?(d=Qd(),d===null&&(d=pt,m=Yd(),d.pooledCache=m,m.refCount++,m!==null&&(d.pooledCacheLanes|=i),d=m),a.memoizedState={parent:c,cache:d},Xd(a),er(a,zt,d)):((t.lanes&i)!==0&&(Wd(t,a),io(a,null,null,i),so()),d=t.memoizedState,m=a.memoizedState,d.parent!==c?(d={parent:c,cache:c},a.memoizedState=d,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=d),er(a,zt,c)):(c=m.cache,er(a,zt,c),c!==d.cache&&$d(a,[zt],i,!0))),Zt(t,a,a.pendingProps.children,i),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function La(t){t.flags|=4}function hv(t,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!wx(a)){if(a=Hn.current,a!==null&&((et&4194048)===et?fa!==null:(et&62914560)!==et&&(et&536870912)===0||a!==fa))throw ao=Zd,Zg;t.flags|=8192}}function sc(t,a){a!==null&&(t.flags|=4),t.flags&16384&&(a=t.tag!==22?Gp():536870912,t.lanes|=a,Ks|=a)}function mo(t,a){if(!st)switch(t.tailMode){case"hidden":a=t.tail;for(var i=null;a!==null;)a.alternate!==null&&(i=a),a=a.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var c=null;i!==null;)i.alternate!==null&&(c=i),i=i.sibling;c===null?a||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function wt(t){var a=t.alternate!==null&&t.alternate.child===t.child,i=0,c=0;if(a)for(var d=t.child;d!==null;)i|=d.lanes|d.childLanes,c|=d.subtreeFlags&65011712,c|=d.flags&65011712,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)i|=d.lanes|d.childLanes,c|=d.subtreeFlags,c|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=c,t.childLanes=i,a}function PN(t,a,i){var c=a.pendingProps;switch(Vd(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wt(a),null;case 1:return wt(a),null;case 3:return i=a.stateNode,c=null,t!==null&&(c=t.memoizedState.cache),a.memoizedState.cache!==c&&(a.flags|=2048),Ma(zt),Le(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(Zi(a)?La(a):t===null||t.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,Gg())),wt(a),null;case 26:return i=a.memoizedState,t===null?(La(a),i!==null?(wt(a),hv(a,i)):(wt(a),a.flags&=-16777217)):i?i!==t.memoizedState?(La(a),wt(a),hv(a,i)):(wt(a),a.flags&=-16777217):(t.memoizedProps!==c&&La(a),wt(a),a.flags&=-16777217),null;case 27:$e(a),i=fe.current;var d=a.type;if(t!==null&&a.stateNode!=null)t.memoizedProps!==c&&La(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return wt(a),null}t=me.current,Zi(a)?Hg(a):(t=hx(d,c,i),a.stateNode=t,La(a))}return wt(a),null;case 5:if($e(a),i=a.type,t!==null&&a.stateNode!=null)t.memoizedProps!==c&&La(a);else{if(!c){if(a.stateNode===null)throw Error(s(166));return wt(a),null}if(t=me.current,Zi(a))Hg(a);else{switch(d=vc(fe.current),t){case 1:t=d.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=d.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=d.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=d.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof c.is=="string"?d.createElement("select",{is:c.is}):d.createElement("select"),c.multiple?t.multiple=!0:c.size&&(t.size=c.size);break;default:t=typeof c.is=="string"?d.createElement(i,{is:c.is}):d.createElement(i)}}t[en]=a,t[pn]=c;e:for(d=a.child;d!==null;){if(d.tag===5||d.tag===6)t.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===a)break e;for(;d.sibling===null;){if(d.return===null||d.return===a)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}a.stateNode=t;e:switch(Wt(t,i,c),i){case"button":case"input":case"select":case"textarea":t=!!c.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&La(a)}}return wt(a),a.flags&=-16777217,null;case 6:if(t&&a.stateNode!=null)t.memoizedProps!==c&&La(a);else{if(typeof c!="string"&&a.stateNode===null)throw Error(s(166));if(t=fe.current,Zi(a)){if(t=a.stateNode,i=a.memoizedProps,c=null,d=cn,d!==null)switch(d.tag){case 27:case 5:c=d.memoizedProps}t[en]=a,t=!!(t.nodeValue===i||c!==null&&c.suppressHydrationWarning===!0||ix(t.nodeValue,i)),t||$r(a)}else t=vc(t).createTextNode(c),t[en]=a,a.stateNode=t}return wt(a),null;case 13:if(c=a.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=Zi(a),c!==null&&c.dehydrated!==null){if(t===null){if(!d)throw Error(s(318));if(d=a.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[en]=a}else Xi(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;wt(a),d=!1}else d=Gg(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=d),d=!0;if(!d)return a.flags&256?(Da(a),a):(Da(a),null)}if(Da(a),(a.flags&128)!==0)return a.lanes=i,a;if(i=c!==null,t=t!==null&&t.memoizedState!==null,i){c=a.child,d=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(d=c.alternate.memoizedState.cachePool.pool);var m=null;c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),m!==d&&(c.flags|=2048)}return i!==t&&i&&(a.child.flags|=8192),sc(a,a.updateQueue),wt(a),null;case 4:return Le(),t===null&&th(a.stateNode.containerInfo),wt(a),null;case 10:return Ma(a.type),wt(a),null;case 19:if(re(qt),d=a.memoizedState,d===null)return wt(a),null;if(c=(a.flags&128)!==0,m=d.rendering,m===null)if(c)mo(d,!1);else{if(St!==0||t!==null&&(t.flags&128)!==0)for(t=a.child;t!==null;){if(m=ec(t),m!==null){for(a.flags|=128,mo(d,!1),t=m.updateQueue,a.updateQueue=t,sc(a,t),a.subtreeFlags=0,t=i,i=a.child;i!==null;)Ig(i,t),i=i.sibling;return ne(qt,qt.current&1|2),a.child}t=t.sibling}d.tail!==null&&Jt()>lc&&(a.flags|=128,c=!0,mo(d,!1),a.lanes=4194304)}else{if(!c)if(t=ec(m),t!==null){if(a.flags|=128,c=!0,t=t.updateQueue,a.updateQueue=t,sc(a,t),mo(d,!0),d.tail===null&&d.tailMode==="hidden"&&!m.alternate&&!st)return wt(a),null}else 2*Jt()-d.renderingStartTime>lc&&i!==536870912&&(a.flags|=128,c=!0,mo(d,!1),a.lanes=4194304);d.isBackwards?(m.sibling=a.child,a.child=m):(t=d.last,t!==null?t.sibling=m:a.child=m,d.last=m)}return d.tail!==null?(a=d.tail,d.rendering=a,d.tail=a.sibling,d.renderingStartTime=Jt(),a.sibling=null,t=qt.current,ne(qt,c?t&1|2:t&1),a):(wt(a),null);case 22:case 23:return Da(a),nf(),c=a.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(a.flags|=8192):c&&(a.flags|=8192),c?(i&536870912)!==0&&(a.flags&128)===0&&(wt(a),a.subtreeFlags&6&&(a.flags|=8192)):wt(a),i=a.updateQueue,i!==null&&sc(a,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048),t!==null&&re(Qr),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),a.memoizedState.cache!==i&&(a.flags|=2048),Ma(zt),wt(a),null;case 25:return null;case 30:return null}throw Error(s(156,a.tag))}function zN(t,a){switch(Vd(a),a.tag){case 1:return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 3:return Ma(zt),Le(),t=a.flags,(t&65536)!==0&&(t&128)===0?(a.flags=t&-65537|128,a):null;case 26:case 27:case 5:return $e(a),null;case 13:if(Da(a),t=a.memoizedState,t!==null&&t.dehydrated!==null){if(a.alternate===null)throw Error(s(340));Xi()}return t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 19:return re(qt),null;case 4:return Le(),null;case 10:return Ma(a.type),null;case 22:case 23:return Da(a),nf(),t!==null&&re(Qr),t=a.flags,t&65536?(a.flags=t&-65537|128,a):null;case 24:return Ma(zt),null;case 25:return null;default:return null}}function mv(t,a){switch(Vd(a),a.tag){case 3:Ma(zt),Le();break;case 26:case 27:case 5:$e(a);break;case 4:Le();break;case 13:Da(a);break;case 19:re(qt);break;case 10:Ma(a.type);break;case 22:case 23:Da(a),nf(),t!==null&&re(Qr);break;case 24:Ma(zt)}}function po(t,a){try{var i=a.updateQueue,c=i!==null?i.lastEffect:null;if(c!==null){var d=c.next;i=d;do{if((i.tag&t)===t){c=void 0;var m=i.create,b=i.inst;c=m(),b.destroy=c}i=i.next}while(i!==d)}}catch(j){mt(a,a.return,j)}}function or(t,a,i){try{var c=a.updateQueue,d=c!==null?c.lastEffect:null;if(d!==null){var m=d.next;c=m;do{if((c.tag&t)===t){var b=c.inst,j=b.destroy;if(j!==void 0){b.destroy=void 0,d=a;var R=i,V=j;try{V()}catch(Q){mt(d,R,Q)}}}c=c.next}while(c!==m)}}catch(Q){mt(a,a.return,Q)}}function pv(t){var a=t.updateQueue;if(a!==null){var i=t.stateNode;try{ny(a,i)}catch(c){mt(t,t.return,c)}}}function gv(t,a,i){i.props=Xr(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(c){mt(t,a,c)}}function go(t,a){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var c=t.stateNode;break;case 30:c=t.stateNode;break;default:c=t.stateNode}typeof i=="function"?t.refCleanup=i(c):i.current=c}}catch(d){mt(t,a,d)}}function ha(t,a){var i=t.ref,c=t.refCleanup;if(i!==null)if(typeof c=="function")try{c()}catch(d){mt(t,a,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(d){mt(t,a,d)}else i.current=null}function yv(t){var a=t.type,i=t.memoizedProps,c=t.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":i.autoFocus&&c.focus();break e;case"img":i.src?c.src=i.src:i.srcSet&&(c.srcset=i.srcSet)}}catch(d){mt(t,t.return,d)}}function Of(t,a,i){try{var c=t.stateNode;sC(c,t.type,i,a),c[pn]=a}catch(d){mt(t,t.return,d)}}function vv(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&pr(t.type)||t.tag===4}function Mf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||vv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&pr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function kf(t,a,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,a?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,a):(a=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,a.appendChild(t),i=i._reactRootContainer,i!=null||a.onclick!==null||(a.onclick=yc));else if(c!==4&&(c===27&&pr(t.type)&&(i=t.stateNode,a=null),t=t.child,t!==null))for(kf(t,a,i),t=t.sibling;t!==null;)kf(t,a,i),t=t.sibling}function ic(t,a,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,a?i.insertBefore(t,a):i.appendChild(t);else if(c!==4&&(c===27&&pr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(ic(t,a,i),t=t.sibling;t!==null;)ic(t,a,i),t=t.sibling}function xv(t){var a=t.stateNode,i=t.memoizedProps;try{for(var c=t.type,d=a.attributes;d.length;)a.removeAttributeNode(d[0]);Wt(a,c,i),a[en]=t,a[pn]=i}catch(m){mt(t,t.return,m)}}var Pa=!1,At=!1,Df=!1,bv=typeof WeakSet=="function"?WeakSet:Set,$t=null;function qN(t,a){if(t=t.containerInfo,rh=Ec,t=Og(t),Od(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var c=i.getSelection&&i.getSelection();if(c&&c.rangeCount!==0){i=c.anchorNode;var d=c.anchorOffset,m=c.focusNode;c=c.focusOffset;try{i.nodeType,m.nodeType}catch{i=null;break e}var b=0,j=-1,R=-1,V=0,Q=0,W=t,B=null;t:for(;;){for(var G;W!==i||d!==0&&W.nodeType!==3||(j=b+d),W!==m||c!==0&&W.nodeType!==3||(R=b+c),W.nodeType===3&&(b+=W.nodeValue.length),(G=W.firstChild)!==null;)B=W,W=G;for(;;){if(W===t)break t;if(B===i&&++V===d&&(j=b),B===m&&++Q===c&&(R=b),(G=W.nextSibling)!==null)break;W=B,B=W.parentNode}W=G}i=j===-1||R===-1?null:{start:j,end:R}}else i=null}i=i||{start:0,end:0}}else i=null;for(sh={focusedElem:t,selectionRange:i},Ec=!1,$t=a;$t!==null;)if(a=$t,t=a.child,(a.subtreeFlags&1024)!==0&&t!==null)t.return=a,$t=t;else for(;$t!==null;){switch(a=$t,m=a.alternate,t=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&m!==null){t=void 0,i=a,d=m.memoizedProps,m=m.memoizedState,c=i.stateNode;try{var Fe=Xr(i.type,d,i.elementType===i.type);t=c.getSnapshotBeforeUpdate(Fe,m),c.__reactInternalSnapshotBeforeUpdate=t}catch(ke){mt(i,i.return,ke)}}break;case 3:if((t&1024)!==0){if(t=a.stateNode.containerInfo,i=t.nodeType,i===9)lh(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":lh(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=a.sibling,t!==null){t.return=a.return,$t=t;break}$t=a.return}}function wv(t,a,i){var c=i.flags;switch(i.tag){case 0:case 11:case 15:lr(t,i),c&4&&po(5,i);break;case 1:if(lr(t,i),c&4)if(t=i.stateNode,a===null)try{t.componentDidMount()}catch(b){mt(i,i.return,b)}else{var d=Xr(i.type,a.memoizedProps);a=a.memoizedState;try{t.componentDidUpdate(d,a,t.__reactInternalSnapshotBeforeUpdate)}catch(b){mt(i,i.return,b)}}c&64&&pv(i),c&512&&go(i,i.return);break;case 3:if(lr(t,i),c&64&&(t=i.updateQueue,t!==null)){if(a=null,i.child!==null)switch(i.child.tag){case 27:case 5:a=i.child.stateNode;break;case 1:a=i.child.stateNode}try{ny(t,a)}catch(b){mt(i,i.return,b)}}break;case 27:a===null&&c&4&&xv(i);case 26:case 5:lr(t,i),a===null&&c&4&&yv(i),c&512&&go(i,i.return);break;case 12:lr(t,i);break;case 13:lr(t,i),c&4&&Ev(t,i),c&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=KN.bind(null,i),fC(t,i))));break;case 22:if(c=i.memoizedState!==null||Pa,!c){a=a!==null&&a.memoizedState!==null||At,d=Pa;var m=At;Pa=c,(At=a)&&!m?cr(t,i,(i.subtreeFlags&8772)!==0):lr(t,i),Pa=d,At=m}break;case 30:break;default:lr(t,i)}}function jv(t){var a=t.alternate;a!==null&&(t.alternate=null,jv(a)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(a=t.stateNode,a!==null&&fd(a)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var yt=null,vn=!1;function za(t,a,i){for(i=i.child;i!==null;)_v(t,a,i),i=i.sibling}function _v(t,a,i){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.onCommitFiberUnmount(ae,i)}catch{}switch(i.tag){case 26:At||ha(i,a),za(t,a,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:At||ha(i,a);var c=yt,d=vn;pr(i.type)&&(yt=i.stateNode,vn=!1),za(t,a,i),So(i.stateNode),yt=c,vn=d;break;case 5:At||ha(i,a);case 6:if(c=yt,d=vn,yt=null,za(t,a,i),yt=c,vn=d,yt!==null)if(vn)try{(yt.nodeType===9?yt.body:yt.nodeName==="HTML"?yt.ownerDocument.body:yt).removeChild(i.stateNode)}catch(m){mt(i,a,m)}else try{yt.removeChild(i.stateNode)}catch(m){mt(i,a,m)}break;case 18:yt!==null&&(vn?(t=yt,dx(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),ko(t)):dx(yt,i.stateNode));break;case 4:c=yt,d=vn,yt=i.stateNode.containerInfo,vn=!0,za(t,a,i),yt=c,vn=d;break;case 0:case 11:case 14:case 15:At||or(2,i,a),At||or(4,i,a),za(t,a,i);break;case 1:At||(ha(i,a),c=i.stateNode,typeof c.componentWillUnmount=="function"&&gv(i,a,c)),za(t,a,i);break;case 21:za(t,a,i);break;case 22:At=(c=At)||i.memoizedState!==null,za(t,a,i),At=c;break;default:za(t,a,i)}}function Ev(t,a){if(a.memoizedState===null&&(t=a.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ko(t)}catch(i){mt(a,a.return,i)}}function UN(t){switch(t.tag){case 13:case 19:var a=t.stateNode;return a===null&&(a=t.stateNode=new bv),a;case 22:return t=t.stateNode,a=t._retryCache,a===null&&(a=t._retryCache=new bv),a;default:throw Error(s(435,t.tag))}}function Ff(t,a){var i=UN(t);a.forEach(function(c){var d=QN.bind(null,t,c);i.has(c)||(i.add(c),c.then(d,d))})}
vendor: 3,836 bytes, line 8
8function Nn(t,a){var i=a.deletions;if(i!==null)for(var c=0;c<i.length;c++){var d=i[c],m=t,b=a,j=b;e:for(;j!==null;){switch(j.tag){case 27:if(pr(j.type)){yt=j.stateNode,vn=!1;break e}break;case 5:yt=j.stateNode,vn=!1;break e;case 3:case 4:yt=j.stateNode.containerInfo,vn=!0;break e}j=j.return}if(yt===null)throw Error(s(160));_v(m,b,d),yt=null,vn=!1,m=d.alternate,m!==null&&(m.return=null),d.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Sv(a,t),a=a.sibling}var Jn=null;function Sv(t,a){var i=t.alternate,c=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Nn(a,t),Cn(t),c&4&&(or(3,t,t.return),po(3,t),or(5,t,t.return));break;case 1:Nn(a,t),Cn(t),c&512&&(At||i===null||ha(i,i.return)),c&64&&Pa&&(t=t.updateQueue,t!==null&&(c=t.callbacks,c!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?c:i.concat(c))));break;case 26:var d=Jn;if(Nn(a,t),Cn(t),c&512&&(At||i===null||ha(i,i.return)),c&4){var m=i!==null?i.memoizedState:null;if(c=t.memoizedState,i===null)if(c===null)if(t.stateNode===null){e:{c=t.type,i=t.memoizedProps,d=d.ownerDocument||d;t:switch(c){case"title":m=d.getElementsByTagName("title")[0],(!m||m[qi]||m[en]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=d.createElement(c),d.head.insertBefore(m,d.querySelector("head > title"))),Wt(m,c,i),m[en]=t,Bt(m),c=m;break e;case"link":var b=xx("link","href",d).get(c+(i.href||""));if(b){for(var j=0;j<b.length;j++)if(m=b[j],m.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&m.getAttribute("rel")===(i.rel==null?null:i.rel)&&m.getAttribute("title")===(i.title==null?null:i.title)&&m.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(j,1);break t}}m=d.createElement(c),Wt(m,c,i),d.head.appendChild(m);break;case"meta":if(b=xx("meta","content",d).get(c+(i.content||""))){for(j=0;j<b.length;j++)if(m=b[j],m.getAttribute("content")===(i.content==null?null:""+i.content)&&m.getAttribute("name")===(i.name==null?null:i.name)&&m.getAttribute("property")===(i.property==null?null:i.property)&&m.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&m.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(j,1);break t}}m=d.createElement(c),Wt(m,c,i),d.head.appendChild(m);break;default:throw Error(s(468,c))}m[en]=t,Bt(m),c=m}t.stateNode=c}else bx(d,t.type,t.stateNode);else t.stateNode=vx(d,c,t.memoizedProps);else m!==c?(m===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):m.count--,c===null?bx(d,t.type,t.stateNode):vx(d,c,t.memoizedProps)):c===null&&t.stateNode!==null&&Of(t,t.memoizedProps,i.memoizedProps)}break;case 27:Nn(a,t),Cn(t),c&512&&(At||i===null||ha(i,i.return)),i!==null&&c&4&&Of(t,t.memoizedProps,i.memoizedProps);break;case 5:if(Nn(a,t),Cn(t),c&512&&(At||i===null||ha(i,i.return)),t.flags&32){d=t.stateNode;try{Ns(d,"")}catch(G){mt(t,t.return,G)}}c&4&&t.stateNode!=null&&(d=t.memoizedProps,Of(t,d,i!==null?i.memoizedProps:d)),c&1024&&(Df=!0);break;case 6:if(Nn(a,t),Cn(t),c&4){if(t.stateNode===null)throw Error(s(162));c=t.memoizedProps,i=t.stateNode;try{i.nodeValue=c}catch(G){mt(t,t.return,G)}}break;case 3:if(wc=null,d=Jn,Jn=xc(a.containerInfo),Nn(a,t),Jn=d,Cn(t),c&4&&i!==null&&i.memoizedState.isDehydrated)try{ko(a.containerInfo)}catch(G){mt(t,t.return,G)}Df&&(Df=!1,Nv(t));break;case 4:c=Jn,Jn=xc(t.stateNode.containerInfo),Nn(a,t),Cn(t),Jn=c;break;case 12:Nn(a,t),Cn(t);break;case 13:Nn(a,t),Cn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(If=Jt()),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Ff(t,c)));break;case 22:d=t.memoizedState!==null;var R=i!==null&&i.memoizedState!==null,V=Pa,Q=At;if(Pa=V||d,At=Q||R,Nn(a,t),At=Q,Pa=V,Cn(t),c&8192)e:for(a=t.stateNode,a._visibility=d?a._visibility&-2:a._visibility|1,d&&(i===null||R||Pa||At||Wr(t)),i=null,a=t;;
vendor: 21,187 bytes, line 8
8){if(a.tag===5||a.tag===26){if(i===null){R=i=a;try{if(m=R.stateNode,d)b=m.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{j=R.stateNode;var W=R.memoizedProps.style,B=W!=null&&W.hasOwnProperty("display")?W.display:null;j.style.display=B==null||typeof B=="boolean"?"":(""+B).trim()}}catch(G){mt(R,R.return,G)}}}else if(a.tag===6){if(i===null){R=a;try{R.stateNode.nodeValue=d?"":R.memoizedProps}catch(G){mt(R,R.return,G)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===t)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===t)break e;for(;a.sibling===null;){if(a.return===null||a.return===t)break e;i===a&&(i=null),a=a.return}i===a&&(i=null),a.sibling.return=a.return,a=a.sibling}c&4&&(c=t.updateQueue,c!==null&&(i=c.retryQueue,i!==null&&(c.retryQueue=null,Ff(t,i))));break;case 19:Nn(a,t),Cn(t),c&4&&(c=t.updateQueue,c!==null&&(t.updateQueue=null,Ff(t,c)));break;case 30:break;case 21:break;default:Nn(a,t),Cn(t)}}function Cn(t){var a=t.flags;if(a&2){try{for(var i,c=t.return;c!==null;){if(vv(c)){i=c;break}c=c.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var d=i.stateNode,m=Mf(t);ic(t,m,d);break;case 5:var b=i.stateNode;i.flags&32&&(Ns(b,""),i.flags&=-33);var j=Mf(t);ic(t,j,b);break;case 3:case 4:var R=i.stateNode.containerInfo,V=Mf(t);kf(t,V,R);break;default:throw Error(s(161))}}catch(Q){mt(t,t.return,Q)}t.flags&=-3}a&4096&&(t.flags&=-4097)}function Nv(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var a=t;Nv(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),t=t.sibling}}function lr(t,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)wv(t,a.alternate,a),a=a.sibling}function Wr(t){for(t=t.child;t!==null;){var a=t;switch(a.tag){case 0:case 11:case 14:case 15:or(4,a,a.return),Wr(a);break;case 1:ha(a,a.return);var i=a.stateNode;typeof i.componentWillUnmount=="function"&&gv(a,a.return,i),Wr(a);break;case 27:So(a.stateNode);case 26:case 5:ha(a,a.return),Wr(a);break;case 22:a.memoizedState===null&&Wr(a);break;case 30:Wr(a);break;default:Wr(a)}t=t.sibling}}function cr(t,a,i){for(i=i&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var c=a.alternate,d=t,m=a,b=m.flags;switch(m.tag){case 0:case 11:case 15:cr(d,m,i),po(4,m);break;case 1:if(cr(d,m,i),c=m,d=c.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(V){mt(c,c.return,V)}if(c=m,d=c.updateQueue,d!==null){var j=c.stateNode;try{var R=d.shared.hiddenCallbacks;if(R!==null)for(d.shared.hiddenCallbacks=null,d=0;d<R.length;d++)ty(R[d],j)}catch(V){mt(c,c.return,V)}}i&&b&64&&pv(m),go(m,m.return);break;case 27:xv(m);case 26:case 5:cr(d,m,i),i&&c===null&&b&4&&yv(m),go(m,m.return);break;case 12:cr(d,m,i);break;case 13:cr(d,m,i),i&&b&4&&Ev(d,m);break;case 22:m.memoizedState===null&&cr(d,m,i),go(m,m.return);break;case 30:break;default:cr(d,m,i)}a=a.sibling}}function Lf(t,a){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(t=a.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&eo(i))}function Pf(t,a){t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&eo(t))}function ma(t,a,i,c){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Cv(t,a,i,c),a=a.sibling}function Cv(t,a,i,c){var d=a.flags;switch(a.tag){case 0:case 11:case 15:ma(t,a,i,c),d&2048&&po(9,a);break;case 1:ma(t,a,i,c);break;case 3:ma(t,a,i,c),d&2048&&(t=null,a.alternate!==null&&(t=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==t&&(a.refCount++,t!=null&&eo(t)));break;case 12:if(d&2048){ma(t,a,i,c),t=a.stateNode;try{var m=a.memoizedProps,b=m.id,j=m.onPostCommit;typeof j=="function"&&j(b,a.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){mt(a,a.return,R)}}else ma(t,a,i,c);break;case 13:ma(t,a,i,c);break;case 23:break;case 22:m=a.stateNode,b=a.alternate,a.memoizedState!==null?m._visibility&2?ma(t,a,i,c):yo(t,a):m._visibility&2?ma(t,a,i,c):(m._visibility|=2,Gs(t,a,i,c,(a.subtreeFlags&10256)!==0)),d&2048&&Lf(b,a);break;case 24:ma(t,a,i,c),d&2048&&Pf(a.alternate,a);break;default:ma(t,a,i,c)}}function Gs(t,a,i,c,d){for(d=d&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var m=t,b=a,j=i,R=c,V=b.flags;switch(b.tag){case 0:case 11:case 15:Gs(m,b,j,R,d),po(8,b);break;case 23:break;case 22:var Q=b.stateNode;b.memoizedState!==null?Q._visibility&2?Gs(m,b,j,R,d):yo(m,b):(Q._visibility|=2,Gs(m,b,j,R,d)),d&&V&2048&&Lf(b.alternate,b);break;case 24:Gs(m,b,j,R,d),d&&V&2048&&Pf(b.alternate,b);break;default:Gs(m,b,j,R,d)}a=a.sibling}}function yo(t,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var i=t,c=a,d=c.flags;switch(c.tag){case 22:yo(i,c),d&2048&&Lf(c.alternate,c);break;case 24:yo(i,c),d&2048&&Pf(c.alternate,c);break;default:yo(i,c)}a=a.sibling}}var vo=8192;function $s(t){if(t.subtreeFlags&vo)for(t=t.child;t!==null;)Tv(t),t=t.sibling}function Tv(t){switch(t.tag){case 26:$s(t),t.flags&vo&&t.memoizedState!==null&&SC(Jn,t.memoizedState,t.memoizedProps);break;case 5:$s(t);break;case 3:case 4:var a=Jn;Jn=xc(t.stateNode.containerInfo),$s(t),Jn=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=vo,vo=16777216,$s(t),vo=a):$s(t));break;default:$s(t)}}function Av(t){var a=t.alternate;if(a!==null&&(t=a.child,t!==null)){a.child=null;do a=t.sibling,t.sibling=null,t=a;while(t!==null)}}function xo(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];$t=c,Ov(c,t)}Av(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rv(t),t=t.sibling}function Rv(t){switch(t.tag){case 0:case 11:case 15:xo(t),t.flags&2048&&or(9,t,t.return);break;case 3:xo(t);break;case 12:xo(t);break;case 22:var a=t.stateNode;t.memoizedState!==null&&a._visibility&2&&(t.return===null||t.return.tag!==13)?(a._visibility&=-3,oc(t)):xo(t);break;default:xo(t)}}function oc(t){var a=t.deletions;if((t.flags&16)!==0){if(a!==null)for(var i=0;i<a.length;i++){var c=a[i];$t=c,Ov(c,t)}Av(t)}for(t=t.child;t!==null;){switch(a=t,a.tag){case 0:case 11:case 15:or(8,a,a.return),oc(a);break;case 22:i=a.stateNode,i._visibility&2&&(i._visibility&=-3,oc(a));break;default:oc(a)}t=t.sibling}}function Ov(t,a){for(;$t!==null;){var i=$t;switch(i.tag){case 0:case 11:case 15:or(8,i,a);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var c=i.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:eo(i.memoizedState.cache)}if(c=i.child,c!==null)c.return=i,$t=c;else e:for(i=t;$t!==null;){c=$t;var d=c.sibling,m=c.return;if(jv(c),c===i){$t=null;break e}if(d!==null){d.return=m,$t=d;break e}$t=m}}}var IN={getCacheForType:function(t){var a=tn(zt),i=a.data.get(t);return i===void 0&&(i=t(),a.data.set(t,i)),i}},VN=typeof WeakMap=="function"?WeakMap:Map,ot=0,pt=null,Ze=null,et=0,lt=0,Tn=null,ur=!1,Ys=!1,zf=!1,qa=0,St=0,dr=0,Jr=0,qf=0,Bn=0,Ks=0,bo=null,xn=null,Uf=!1,If=0,lc=1/0,cc=null,fr=null,Xt=0,hr=null,Qs=null,Zs=0,Vf=0,Hf=null,Mv=null,wo=0,Bf=null;function An(){if((ot&2)!==0&&et!==0)return et&-et;if(D.T!==null){var t=Ps;return t!==0?t:Xf()}return Kp()}function kv(){Bn===0&&(Bn=(et&536870912)===0||st?Pi():536870912);var t=Hn.current;return t!==null&&(t.flags|=32),Bn}function Rn(t,a,i){(t===pt&&(lt===2||lt===9)||t.cancelPendingCommit!==null)&&(Xs(t,0),mr(t,et,Bn,!1)),zi(t,i),((ot&2)===0||t!==pt)&&(t===pt&&((ot&2)===0&&(Jr|=i),St===4&&mr(t,et,Bn,!1)),pa(t))}function Dv(t,a,i){if((ot&6)!==0)throw Error(s(327));var c=!i&&(a&124)===0&&(a&t.expiredLanes)===0||Xa(t,a),d=c?GN(t,a):Yf(t,a,!0),m=c;do{if(d===0){Ys&&!c&&mr(t,a,0,!1);break}else{if(i=t.current.alternate,m&&!HN(i)){d=Yf(t,a,!1),m=!1;continue}if(d===2){if(m=a,t.errorRecoveryDisabledLanes&m)var b=0;else b=t.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){a=b;e:{var j=t;d=bo;var R=j.current.memoizedState.isDehydrated;if(R&&(Xs(j,b).flags|=256),b=Yf(j,b,!1),b!==2){if(zf&&!R){j.errorRecoveryDisabledLanes|=m,Jr|=m,d=4;break e}m=xn,xn=d,m!==null&&(xn===null?xn=m:xn.push.apply(xn,m))}d=b}if(m=!1,d!==2)continue}}if(d===1){Xs(t,0),mr(t,a,0,!0);break}e:{switch(c=t,m=d,m){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a)break;case 6:mr(c,a,Bn,!ur);break e;case 2:xn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(d=If+300-Jt(),10<d)){if(mr(c,a,Bn,!ur),vs(c,0,!0)!==0)break e;c.timeoutHandle=cx(Fv.bind(null,c,i,xn,cc,Uf,a,Bn,Jr,Ks,ur,m,2,-0,0),d);break e}Fv(c,i,xn,cc,Uf,a,Bn,Jr,Ks,ur,m,0,-0,0)}}break}while(!0);pa(t)}function Fv(t,a,i,c,d,m,b,j,R,V,Q,W,B,G){if(t.timeoutHandle=-1,W=a.subtreeFlags,(W&8192||(W&16785408)===16785408)&&(To={stylesheets:null,count:0,unsuspend:EC},Tv(a),W=NC(),W!==null)){t.cancelPendingCommit=W(Vv.bind(null,t,a,m,i,c,d,b,j,R,Q,1,B,G)),mr(t,m,b,!V);return}Vv(t,a,m,i,c,d,b,j,R)}function HN(t){for(var a=t;;){var i=a.tag;if((i===0||i===11||i===15)&&a.flags&16384&&(i=a.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var c=0;c<i.length;c++){var d=i[c],m=d.getSnapshot;d=d.value;try{if(!En(m(),d))return!1}catch{return!1}}if(i=a.child,a.subtreeFlags&16384&&i!==null)i.return=a,a=i;else{if(a===t)break;for(;a.sibling===null;){if(a.return===null||a.return===t)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function mr(t,a,i,c){a&=~qf,a&=~Jr,t.suspendedLanes|=a,t.pingedLanes&=~a,c&&(t.warmLanes|=a),c=t.expirationTimes;for(var d=a;0<d;){var m=31-Ue(d),b=1<<m;c[m]=-1,d&=~b}i!==0&&$p(t,i,a)}function uc(){return(ot&6)===0?(jo(0),!1):!0}function Gf(){if(Ze!==null){if(lt===0)var t=Ze.return;else t=Ze,Oa=Yr=null,lf(t),Hs=null,fo=0,t=Ze;for(;t!==null;)mv(t.alternate,t),t=t.return;Ze=null}}function Xs(t,a){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,oC(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Gf(),pt=t,Ze=i=Ta(t.current,null),et=a,lt=0,Tn=null,ur=!1,Ys=Xa(t,a),zf=!1,Ks=Bn=qf=Jr=dr=St=0,xn=bo=null,Uf=!1,(a&8)!==0&&(a|=a&32);var c=t.entangledLanes;if(c!==0)for(t=t.entanglements,c&=a;0<c;){var d=31-Ue(c),m=1<<d;a|=t[d],c&=~m}return qa=a,Ml(),i}function Lv(t,a){Be=null,D.H=Xl,a===no||a===Il?(a=Jg(),lt=3):a===Zg?(a=Jg(),lt=4):lt=a===ev?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Tn=a,Ze===null&&(St=1,nc(t,qn(a,t.current)))}function Pv(){var t=D.H;return D.H=Xl,t===null?Xl:t}function zv(){var t=D.A;return D.A=IN,t}function $f(){St=4,ur||(et&4194048)!==et&&Hn.current!==null||(Ys=!0),(dr&134217727)===0&&(Jr&134217727)===0||pt===null||mr(pt,et,Bn,!1)}function Yf(t,a,i){var c=ot;ot|=2;var d=Pv(),m=zv();(pt!==t||et!==a)&&(cc=null,Xs(t,a)),a=!1;var b=St;e:do try{if(lt!==0&&Ze!==null){var j=Ze,R=Tn;switch(lt){case 8:Gf(),b=6;break e;case 3:case 2:case 9:case 6:Hn.current===null&&(a=!0);var V=lt;if(lt=0,Tn=null,Ws(t,j,R,V),i&&Ys){b=0;break e}break;default:V=lt,lt=0,Tn=null,Ws(t,j,R,V)}}BN(),b=St;break}catch(Q){Lv(t,Q)}while(!0);return a&&t.shellSuspendCounter++,Oa=Yr=null,ot=c,D.H=d,D.A=m,Ze===null&&(pt=null,et=0,Ml()),b}function BN(){for(;Ze!==null;)qv(Ze)}function GN(t,a){var i=ot;ot|=2;var c=Pv(),d=zv();pt!==t||et!==a?(cc=null,lc=Jt()+500,Xs(t,a)):Ys=Xa(t,a);e:do try{if(lt!==0&&Ze!==null){a=Ze;var m=Tn;t:switch(lt){case 1:lt=0,Tn=null,Ws(t,a,m,1);break;case 2:case 9:if(Xg(m)){lt=0,Tn=null,Uv(a);break}a=function(){lt!==2&<!==9||pt!==t||(lt=7),pa(t)},m.then(a,a);break e;case 3:lt=7;break e;case 4:lt=5;break e;case 7:Xg(m)?(lt=0,Tn=null,Uv(a)):(lt=0,Tn=null,Ws(t,a,m,7));break;case 5:var b=null;switch(Ze.tag){case 26:b=Ze.memoizedState;case 5:case 27:var j=Ze;if(!b||wx(b)){lt=0,Tn=null;var R=j.sibling;if(R!==null)Ze=R;else{var V=j.return;V!==null?(Ze=V,dc(V)):Ze=null}break t}}lt=0,Tn=null,Ws(t,a,m,5);break;case 6:lt=0,Tn=null,Ws(t,a,m,6);break;case 8:Gf(),St=6;break e;default:throw Error(s(462))}}$N();break}catch(Q){Lv(t,Q)}while(!0);return Oa=Yr=null,D.H=c,D.A=d,ot=i,Ze!==null?0:(pt=null,et=0,Ml(),St)}function $N(){for(;Ze!==null&&!Ka();)qv(Ze)}function qv(t){var a=fv(t.alternate,t,qa);t.memoizedProps=t.pendingProps,a===null?dc(t):Ze=a}function Uv(t){var a=t,i=a.alternate;switch(a.tag){case 15:case 0:a=iv(i,a,a.pendingProps,a.type,void 0,et);break;case 11:a=iv(i,a,a.pendingProps,a.type.render,a.ref,et);break;case 5:lf(a);default:mv(i,a),a=Ze=Ig(a,qa),a=fv(i,a,qa)}t.memoizedProps=t.pendingProps,a===null?dc(t):Ze=a}function Ws(t,a,i,c){Oa=Yr=null,lf(a),Hs=null,fo=0;var d=a.return;try{if(FN(t,d,a,i,et)){St=1,nc(t,qn(i,t.current)),Ze=null;return}}catch(m){if(d!==null)throw Ze=d,m;St=1,nc(t,qn(i,t.current)),Ze=null;return}a.flags&32768?(st||c===1?t=!0:Ys||(et&536870912)!==0?t=!1:(ur=t=!0,(c===2||c===9||c===3||c===6)&&(c=Hn.current,c!==null&&c.tag===13&&(c.flags|=16384))),Iv(a,t)):dc(a)}function dc(t){var a=t;do{if((a.flags&32768)!==0){Iv(a,ur);return}t=a.return;var i=PN(a.alternate,a,qa);if(i!==null){Ze=i;return}if(a=a.sibling,a!==null){Ze=a;return}Ze=a=t}while(a!==null);St===0&&(St=5)}function Iv(t,a){do{var i=zN(t.alternate,t);if(i!==null){i.flags&=32767,Ze=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!a&&(t=t.sibling,t!==null)){Ze=t;return}Ze=t=i}while(t!==null);St=6,Ze=null}function Vv(t,a,i,c,d,m,b,j,R){t.cancelPendingCommit=null;do fc();while(Xt!==0);if((ot&6)!==0)throw Error(s(327));if(a!==null){if(a===t.current)throw Error(s(177));if(m=a.lanes|a.childLanes,m|=Ld,ES(t,i,m,b,j,R),t===pt&&(Ze=pt=null,et=0),Qs=a,hr=t,Zs=i,Vf=m,Hf=d,Mv=c,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ZN(O,function(){return Yv(),null})):(t.callbackNode=null,t.callbackPriority=0),c=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||c){c=D.T,D.T=null,d=$.p,$.p=2,b=ot,ot|=4;try{qN(t,a,i)}finally{ot=b,$.p=d,D.T=c}}Xt=1,Hv(),Bv(),Gv()}}function Hv(){if(Xt===1){Xt=0;var t=hr,a=Qs,i=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||i){i=D.T,D.T=null;var c=$.p;$.p=2;var d=ot;ot|=4;try{Sv(a,t);var m=sh,b=Og(t.containerInfo),j=m.focusedElem,R=m.selectionRange;if(b!==j&&j&&j.ownerDocument&&Rg(j.ownerDocument.documentElement,j)){if(R!==null&&Od(j)){var V=R.start,Q=R.end;if(Q===void 0&&(Q=V),"selectionStart"in j)j.selectionStart=V,j.selectionEnd=Math.min(Q,j.value.length);else{var W=j.ownerDocument||document,B=W&&W.defaultView||window;if(B.getSelection){var G=B.getSelection(),Fe=j.textContent.length,ke=Math.min(R.start,Fe),ht=R.end===void 0?ke:Math.min(R.end,Fe);!G.extend&&ke>ht&&(b=ht,ht=ke,ke=b);var q=Ag(j,ke),k=Ag(j,ht);if(q&&k&&(G.rangeCount!==1||G.anchorNode!==q.node||G.anchorOffset!==q.offset||G.focusNode!==k.node||G.focusOffset!==k.offset)){var U=W.createRange();U.setStart(q.node,q.offset),G.removeAllRanges(),ke>ht?(G.addRange(U),G.extend(k.node,k.offset)):(U.setEnd(k.node,k.offset),G.addRange(U))}}}}for(W=[],G=j;G=G.parentNode;)G.nodeType===1&&W.push({element:G,left:G.scrollLeft,top:G.scrollTop});for(typeof j.focus=="function"&&j.focus(),j=0;j<W.length;j++){var X=W[j];X.element.scrollLeft=X.left,X.element.scrollTop=X.top}}Ec=!!rh,sh=rh=null}finally{ot=d,$.p=c,D.T=i}}t.current=a,Xt=2}}function Bv(){if(Xt===2){Xt=0;var t=hr,a=Qs,i=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||i){i=D.T,D.T=null;var c=$.p;$.p=2;var d=ot;ot|=4;try{wv(t,a.alternate,a)}finally{ot=d,$.p=c,D.T=i}}Xt=3}}function Gv(){if(Xt===4||Xt===3){Xt=0,Qa();var t=hr,a=Qs,i=Zs,c=Mv;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Xt=5:(Xt=0,Qs=hr=null,$v(t,t.pendingLanes));var d=t.pendingLanes;if(d===0&&(fr=null),ud(i),a=a.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot(ae,a,void 0,(a.current.flags&128)===128)}catch{}if(c!==null){a=D.T,d=$.p,$.p=2,D.T=null;try{for(var m=t.onRecoverableError,b=0;b<c.length;b++){var j=c[b];m(j.value,{componentStack:j.stack})}}finally{D.T=a,$.p=d}}(Zs&3)!==0&&fc(),pa(t),d=t.pendingLanes,(i&4194090)!==0&&(d&42)!==0?t===Bf?wo++:(wo=0,Bf=t):wo=0,jo(0)}}function $v(t,a){(t.pooledCacheLanes&=a)===0&&(a=t.pooledCache,a!=null&&(t.pooledCache=null,eo(a)))}function fc(t){return Hv(),Bv(),Gv(),Yv()}function Yv(){if(Xt!==5)return!1;var t=hr,a=Vf;Vf=0;var i=ud(Zs),c=D.T,d=$.p;try{$.p=32>i?32:i,D.T=null,i=Hf,Hf=null;var m=hr,b=Zs;if(Xt=0,Qs=hr=null,Zs=0,(ot&6)!==0)throw Error(s(331));var j=ot;if(ot|=4,Rv(m.current),Cv(m,m.current,b,i),ot=j,jo(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot(ae,m)}catch{}return!0}finally{$.p=d,D.T=c,$v(t,a)}}function Kv(t,a,i){a=qn(i,a),a=jf(t.stateNode,a,2),t=ar(t,a,2),t!==null&&(zi(t,2),pa(t))}function mt(t,a,i){if(t.tag===3)Kv(t,t,i);else for(;a!==null;){if(a.tag===3){Kv(a,t,i);break}else if(a.tag===1){var c=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(fr===null||!fr.has(c))){t=qn(i,t),i=Wy(2),c=ar(a,i,2),c!==null&&(Jy(i,c,a,t),zi(c,2),pa(c));break}}a=a.return}}function Kf(t,a,i){var c=t.pingCache;if(c===null){c=t.pingCache=new VN;var d=new Set;c.set(a,d)}else d=c.get(a),d===void 0&&(d=new Set,c.set(a,d));d.has(i)||(zf=!0,d.add(i),t=YN.bind(null,t,a,i),a.then(t,t))}function YN(t,a,i){var c=t.pingCache;c!==null&&c.delete(a),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,pt===t&&(et&i)===i&&(St===4||St===3&&(et&62914560)===et&&300>Jt()-If?(ot&2)===0&&Xs(t,0):qf|=i,Ks===et&&(Ks=0)),pa(t)}function Qv(t,a){a===0&&(a=Gp()),t=ks(t,a),t!==null&&(zi(t,a),pa(t))}function KN(t){var a=t.memoizedState,i=0;a!==null&&(i=a.retryLane),Qv(t,i)}function QN(t,a){var i=0;switch(t.tag){case 13:var c=t.stateNode,d=t.memoizedState;d!==null&&(i=d.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error(s(314))}c!==null&&c.delete(a),Qv(t,i)}function ZN(t,a){return bt(t,a)}var hc=null,Js=null,Qf=!1,mc=!1,Zf=!1,es=0;function pa(t){t!==Js&&t.next===null&&(Js===null?hc=Js=t:Js=Js.next=t),mc=!0,Qf||(Qf=!0,WN())}function jo(t,a){if(!Zf&&mc){Zf=!0;do for(var i=!1,c=hc;c!==null;){if(t!==0){var d=c.pendingLanes;if(d===0)var m=0;else{var b=c.suspendedLanes,j=c.pingedLanes;m=(1<<31-Ue(42|t)+1)-1,m&=d&~(b&~j),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(i=!0,Jv(c,m))}else m=et,m=vs(c,c===pt?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(m&3)===0||Xa(c,m)||(i=!0,Jv(c,m));c=c.next}while(i);Zf=!1}}function XN(){Zv()}function Zv(){mc=Qf=!1;var t=0;es!==0&&(iC()&&(t=es),es=0);for(var a=Jt(),i=null,c=hc;c!==null;){var d=c.next,m=Xv(c,a);m===0?(c.next=null,i===null?hc=d:i.next=d,d===null&&(Js=i)):(i=c,(t!==0||(m&3)!==0)&&(mc=!0)),c=d}jo(t)}function Xv(t,a){for(var i=t.suspendedLanes,c=t.pingedLanes,d=t.expirationTimes,m=t.pendingLanes&-62914561;0<m;){var b=31-Ue(m),j=1<<b,R=d[b];R===-1?((j&i)===0||(j&c)!==0)&&(d[b]=od(j,a)):R<=a&&(t.expiredLanes|=j),m&=~j}if(a=pt,i=et,i=vs(t,t===a?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c=t.callbackNode,i===0||t===a&&(lt===2||lt===9)||t.cancelPendingCommit!==null)return c!==null&&c!==null&&Ht(c),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Xa(t,i)){if(a=i&-i,a===t.callbackPriority)return a;switch(c!==null&&Ht(c),ud(i)){case 2:case 8:i=Li;break;case 32:i=O;break;case 268435456:i=Y;break;default:i=O}return c=Wv.bind(null,t),i=bt(i,c),t.callbackPriority=a,t.callbackNode=i,a}return c!==null&&c!==null&&Ht(c),t.callbackPriority=2,t.callbackNode=null,2}function Wv(t,a){if(Xt!==0&&Xt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(fc()&&t.callbackNode!==i)return null;var c=et;return c=vs(t,t===pt?c:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),c===0?null:(Dv(t,c,a),Xv(t,Jt()),t.callbackNode!=null&&t.callbackNode===i?Wv.bind(null,t):null)}function Jv(t,a){if(fc())return null;Dv(t,a,!0)}function WN(){lC(function(){(ot&6)!==0?bt(id,XN):Zv()})}function Xf(){return es===0&&(es=Pi()),es}function ex(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Sl(""+t)}function tx(t,a){var i=a.ownerDocument.createElement("input");return i.name=a.name,i.value=a.value,t.id&&i.setAttribute("form",t.id),a.parentNode.insertBefore(i,a),t=new FormData(t),i.parentNode.removeChild(i),t}function JN(t,a,i,c,d){if(a==="submit"&&i&&i.stateNode===d){var m=ex((d[pn]||null).action),b=c.submitter;b&&(a=(a=b[pn]||null)?ex(a.formAction):b.getAttribute("formAction"),a!==null&&(m=a,b=null));var j=new Al("action","action",null,c,d);t.push({event:j,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(es!==0){var R=b?tx(d,b):new FormData(d);yf(i,{pending:!0,data:R,method:d.method,action:m},null,R)}}else typeof m=="function"&&(j.preventDefault(),R=b?tx(d,b):new FormData(d),yf(i,{pending:!0,data:R,method:d.method,action:m},m,R))},currentTarget:d}]})}}for(var Wf=0;Wf<Fd.length;Wf++){var Jf=Fd[Wf],eC=Jf.toLowerCase(),tC=Jf[0].toUpperCase()+Jf.slice(1);Wn(eC,"on"+tC)}Wn(Dg,"onAnimationEnd"),Wn(Fg,"onAnimationIteration"),Wn(Lg,"onAnimationStart"),Wn("dblclick","onDoubleClick"),Wn("focusin","onFocus"),Wn("focusout","onBlur"),Wn(vN,"onTransitionRun"),Wn(xN,"onTransitionStart"),Wn(bN,"onTransitionCancel"),Wn(Pg,"onTransitionEnd"),_s("onMouseEnter",["mouseout","mouseover"]),_s("onMouseLeave",["mouseout","mouseover"]),_s("onPointerEnter",["pointerout","pointerover"]),_s("onPointerLeave",["pointerout","pointerover"]),zr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),zr("onSelect","focusout contextmenu dragend focu
8sin keydown keyup mousedown mouseup selectionchange".split(" ")),zr("onBeforeInput",["compositionend","keypress","textInput","paste"]),zr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),zr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),zr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _o="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(" "),nC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_o));function nx(t,a){a=(a&4)!==0;for(var i=0;i<t.length;i++){var c=t[i],d=c.event;c=c.listeners;e:{var m=void 0;if(a)for(var b=c.length-1;0<=b;b--){var j=c[b],R=j.instance,V=j.currentTarget;if(j=j.listener,R!==m&&d.isPropagationStopped())break e;m=j,d.currentTarget=V;try{m(d)}catch(Q){tc(Q)}d.currentTarget=null,m=R}else for(b=0;b<c.length;b++){if(j=c[b],R=j.instance,V=j.currentTarget,j=j.listener,R!==m&&d.isPropagationStopped())break e;m=j,d.currentTarget=V;try{m(d)}catch(Q){tc(Q)}d.currentTarget=null,m=R}}}}function Xe(t,a){var i=a[dd];i===void 0&&(i=a[dd]=new Set);var c=t+"__bubble";i.has(c)||(ax(a,t,2,!1),i.add(c))}function eh(t,a,i){var c=0;a&&(c|=4),ax(i,t,c,a)}var pc="_reactListening"+Math.random().toString(36).slice(2);function th(t){if(!t[pc]){t[pc]=!0,Zp.forEach(function(i){i!=="selectionchange"&&(nC.has(i)||eh(i,!1,t),eh(i,!0,t))});var a=t.nodeType===9?t:t.ownerDocument;a===null||a[pc]||(a[pc]=!0,eh("selectionchange",!1,a))}}function ax(t,a,i,c){switch(Cx(a)){case 2:var d=AC;break;case 8:d=RC;break;default:d=ph}i=d.bind(null,a,i,t),d=void 0,!jd||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(d=!0),c?d!==void 0?t.addEventListener(a,i,{capture:!0,passive:d}):t.addEventListener(a,i,!0):d!==void 0?t.addEventListener(a,i,{passive:d}):t.addEventListener(a,i,!1)}function nh(t,a,i,c,d){var m=c;if((a&1)===0&&(a&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var j=c.stateNode.containerInfo;if(j===d)break;if(b===4)for(b=c.return;b!==null;){var R=b.tag;if((R===3||R===4)&&b.stateNode.containerInfo===d)return;b=b.return}for(;j!==null;){if(b=bs(j),b===null)return;if(R=b.tag,R===5||R===6||R===26||R===27){c=m=b;continue e}j=j.parentNode}}c=c.return}ug(function(){var V=m,Q=bd(i),W=[];e:{var B=zg.get(t);if(B!==void 0){var G=Al,Fe=t;switch(t){case"keypress":if(Cl(i)===0)break e;case"keydown":case"keyup":G=ZS;break;case"focusin":Fe="focus",G=Nd;break;case"focusout":Fe="blur",G=Nd;break;case"beforeblur":case"afterblur":G=Nd;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":G=hg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":G=zS;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":G=JS;break;case Dg:case Fg:case Lg:G=IS;break;case Pg:G=tN;break;case"scroll":case"scrollend":G=LS;break;case"wheel":G=aN;break;case"copy":case"cut":case"paste":G=HS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":G=pg;break;case"toggle":case"beforetoggle":G=sN}var ke=(a&4)!==0,ht=!ke&&(t==="scroll"||t==="scrollend"),q=ke?B!==null?B+"Capture":null:B;ke=[];for(var k=V,U;k!==null;){var X=k;if(U=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||U===null||q===null||(X=Ii(k,q),X!=null&&ke.push(Eo(k,X,U))),ht)break;k=k.return}0<ke.length&&(B=new G(B,Fe,null,i,Q),W.push({event:B,listeners:ke}))}}if((a&7)===0){e:{if(B=t==="mouseover"||t==="pointerover",G=t==="mouseout"||t==="pointerout",B&&i!==xd&&(Fe=i.relatedTarget||i.fromElement)&&(bs(Fe)||Fe[xs]))break e;if((G||B)&&(B=Q.window===Q?Q:(B=Q.ownerDocument)?B.defaultView||B.parentWindow:window,G?(Fe=i.relatedTarget||i.toElement,G=V,Fe=Fe?bs(Fe):null,Fe!==null&&(ht=u(Fe),ke=Fe.tag,Fe!==ht||ke!==5&&ke!==27&&ke!==6)&&(Fe=null)):(G=null,Fe=V),G!==Fe)){if(ke=hg,X="onMouseLeave",q="onMouseEnter",k="mouse",(t==="pointerout"||t==="pointerover")&&(ke=pg,X="onPointerLeave",q="onPointerEnter",k="pointer"),ht=G==null?B:Ui(G),U=Fe==null?B:Ui(Fe),B=new ke(X,k+"leave",G,i,Q),B.target=ht,B.relatedTarget=U,X=null,bs(Q)===V&&(ke=new ke(q,k+"enter",Fe,i,Q),ke.target=U,ke.relatedTarget=ht,X=ke),ht=X,G&&Fe)t:{for(ke=G,q=Fe,k=0,U=ke;U;U=ei(U))k++;for(U=0,X=q;X;X=ei(X))U++;for(;0<k-U;)ke=ei(ke),k--;for(;0<U-k;)q=ei(q),U--;for(;k--;){if(ke===q||q!==null&&ke===q.alternate)break t;ke=ei(ke),q=ei(q)}ke=null}else ke=null;G!==null&&rx(W,B,G,ke,!1),Fe!==null&&ht!==null&&rx(W,ht,Fe,ke,!0)}}
vendor: 5,204 bytes, lines 8-9
8e:{if(B=V?Ui(V):window,G=B.nodeName&&B.nodeName.toLowerCase(),G==="select"||G==="input"&&B.type==="file")var we=_g;else if(wg(B))if(Eg)we=pN;else{we=hN;var Ke=fN}else G=B.nodeName,!G||G.toLowerCase()!=="input"||B.type!=="checkbox"&&B.type!=="radio"?V&&vd(V.elementType)&&(we=_g):we=mN;if(we&&(we=we(t,V))){jg(W,we,i,Q);break e}Ke&&Ke(t,B,V),t==="focusout"&&V&&B.type==="number"&&V.memoizedProps.value!=null&&yd(B,"number",B.value)}switch(Ke=V?Ui(V):window,t){case"focusin":(wg(Ke)||Ke.contentEditable==="true")&&(Rs=Ke,Md=V,Qi=null);break;case"focusout":Qi=Md=Rs=null;break;case"mousedown":kd=!0;break;case"contextmenu":case"mouseup":case"dragend":kd=!1,Mg(W,i,Q);break;case"selectionchange":if(yN)break;case"keydown":case"keyup":Mg(W,i,Q)}var Te;if(Td)e:{switch(t){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else As?xg(t,i)&&(De="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(De="onCompositionStart");De&&(gg&&i.locale!=="ko"&&(As||De!=="onCompositionStart"?De==="onCompositionEnd"&&As&&(Te=dg()):(Ja=Q,_d="value"in Ja?Ja.value:Ja.textContent,As=!0)),Ke=gc(V,De),0<Ke.length&&(De=new mg(De,t,null,i,Q),W.push({event:De,listeners:Ke}),Te?De.data=Te:(Te=bg(i),Te!==null&&(De.data=Te)))),(Te=oN?lN(t,i):cN(t,i))&&(De=gc(V,"onBeforeInput"),0<De.length&&(Ke=new mg("onBeforeInput","beforeinput",null,i,Q),W.push({event:Ke,listeners:De}),Ke.data=Te)),JN(W,t,V,i,Q)}nx(W,a)})}function Eo(t,a,i){return{instance:t,listener:a,currentTarget:i}}function gc(t,a){for(var i=a+"Capture",c=[];t!==null;){var d=t,m=d.stateNode;if(d=d.tag,d!==5&&d!==26&&d!==27||m===null||(d=Ii(t,i),d!=null&&c.unshift(Eo(t,d,m)),d=Ii(t,a),d!=null&&c.push(Eo(t,d,m))),t.tag===3)return c;t=t.return}return[]}function ei(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function rx(t,a,i,c,d){for(var m=a._reactName,b=[];i!==null&&i!==c;){var j=i,R=j.alternate,V=j.stateNode;if(j=j.tag,R!==null&&R===c)break;j!==5&&j!==26&&j!==27||V===null||(R=V,d?(V=Ii(i,m),V!=null&&b.unshift(Eo(i,V,R))):d||(V=Ii(i,m),V!=null&&b.push(Eo(i,V,R)))),i=i.return}b.length!==0&&t.push({event:a,listeners:b})}var aC=/\r\n?/g,rC=/\u0000|\uFFFD/g;function sx(t){return(typeof t=="string"?t:""+t).replace(aC,` 9`).replace(rC,"")}function ix(t,a){return a=sx(a),sx(t)===a}function yc(){}function ft(t,a,i,c,d,m){switch(i){case"children":typeof c=="string"?a==="body"||a==="textarea"&&c===""||Ns(t,c):(typeof c=="number"||typeof c=="bigint")&&a!=="body"&&Ns(t,""+c);break;case"className":jl(t,"class",c);break;case"tabIndex":jl(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":jl(t,i,c);break;case"style":lg(t,c,m);break;case"data":if(a!=="object"){jl(t,"data",c);break}case"src":case"href":if(c===""&&(a!=="a"||i!=="href")){t.removeAttribute(i);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(i);break}c=Sl(""+c),t.setAttribute(i,c);break;case"action":case"formAction":if(typeof c=="function"){t.setAttribute(i,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof m=="function"&&(i==="formAction"?(a!=="input"&&ft(t,a,"name",d.name,d,null),ft(t,a,"formEncType",d.formEncType,d,null),ft(t,a,"formMethod",d.formMethod,d,null),ft(t,a,"formTarget",d.formTarget,d,null)):(ft(t,a,"encType",d.encType,d,null),ft(t,a,"method",d.method,d,null),ft(t,a,"target",d.target,d,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(i);break}c=Sl(""+c),t.setAttribute(i,c);break;case"onClick":c!=null&&(t.onclick=yc);break;case"onScroll":c!=null&&Xe("scroll",t);break;case"onScrollEnd":c!=null&&Xe("scrollend",t);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(i=c.__html,i!=null){if(d.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}i=Sl(""+c),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,""+c):t.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
9ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":c===!0?t.setAttribute(i,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(i,c):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?t.setAttribute(i,c):t.removeAttribute(i);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(i):t.setAttribute(i,c);break;case"popover":Xe("beforetoggle",t),Xe("toggle",t),wl(t,"popover",c);break;case"xlinkActuate":Na(t,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":Na(t,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":Na(t,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":Na(t,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":Na(t,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":Na(t,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":Na(t,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":Na(t,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":Na(t,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":wl(t,"is",c);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=DS.get(i)||i,wl(t,i,c))}}function ah(t,a,i,c,d,m){switch(i){case"style":lg(t,c,m);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(s(61));if(i=c.__html,i!=null){if(d.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof c=="string"?Ns(t,c):(typeof c=="number"||typeof c=="bigint")&&Ns(t,""+c);break;case"onScroll":c!=null&&Xe("scroll",t);break;case"onScrollEnd":c!=null&&Xe("scrollend",t);break;case"onClick":c!=null&&(t.onclick=yc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xp.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(d=i.endsWith("Capture"),a=i.slice(2,d?i.length-7:void 0),m=t[pn]||null,m=m!=null?m[i]:null,typeof m=="function"&&t.removeEventListener(a,m,d),typeof c=="function")){typeof m!="function"&&m!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(a,c,d);break e}i in t?t[i]=c:c===!0?t.setAttribute(i,""):wl(t,i,c)}}}function Wt(t,a,i){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xe("error",t),Xe("load",t);var c=!1,d=!1,m;for(m in i)if(i.hasOwnProperty(m)){var b=i[m];if(b!=null)switch(m){case"src":c=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:ft(t,a,m,b,i,null)}}d&&ft(t,a,"srcSet",i.srcSet,i,null),c&&ft(t,a,"src",i.src,i,null);return;case"input":Xe("invalid",t);var j=m=b=d=null,R=null,V=null;for(c in i)if(i.hasOwnProperty(c)){var Q=i[c];if(Q!=null)switch(c){case"name":d=Q;break;case"type":b=Q;break;case"checked":R=Q;break;case"defaultChecked":V=Q;break;case"value":m=Q;break;case"defaultValue":j=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(s(137,a));break;default:ft(t,a,c,Q,i,null)}}rg(t,m,j,R,V,b,d,!1),_l(t);return;case"select":Xe("invalid",t),c=b=m=null;for(d in i)if(i.hasOwnProperty(d)&&(j=i[d],j!=null))switch(d){case"value":m=j;break;case"defaultValue":b=j;break;case"multiple":c=j;default:ft(t,a,d,j,i,null)}a=m,i=b,t.multiple=!!c,a!=null?Ss(t,!!c,a,!1):i!=null&&Ss(t,!!c,i,!0);return;case"textarea":Xe("invalid",t),m=d=c=null;for(b in i)if(i.hasOwnProperty(b)&&(j=i[b],j!=null))switch(b){case"value":c=j;break;case"defaultValue":d=j;break;case"children":m=j;break;case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(91));break;default:ft(t,a,b,j,i,null)}ig(t,c,d,m),_l(t);return;case"option":for(R in i)i.hasOwnProperty(R)&&(c=i[R],c!=null)&&(R==="selected"?t.selected=c&&typeof c!="function"&&typeof c!="symbol":ft(t,a,R,c,i,null));return;case"dialog":Xe("beforetoggle",t),Xe("toggle",t),Xe("cancel",t),Xe("close",t);break;case"iframe":case"object":Xe("load",t);break;case"video":case"audio":for(c=0;c<_o.length;c++)Xe(_o[c],t);break;case"image":Xe("error",t),Xe("load",t);break;case"details":Xe("toggle",t);break;case"embed":case"source":case"link":Xe("error",t),Xe("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(V in i)if(i.hasOwnProperty(V)&&(c=i[V],c!=null))switch(V){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:ft(t,a,V,c,i,null)}return;default:if(vd(a)){for(Q in i)i.hasOwnProperty(Q)&&(c=i[Q],c!==void 0&&ah(t,a,Q,c,i,void 0));return}}for(j in i)i.hasOwnProperty(j)&&(c=i[j],c!=null&&ft(t,a,j,c,i,null))}function sC(t,a,i,c){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,m=null,b=null,j=null,R=null,V=null,Q=null;for(G in i){var W=i[G];if(i.hasOwnProperty(G)&&W!=null)switch(G){case"checked":break;case"value":break;case"defaultValue":R=W;default:c.hasOwnProperty(G)||ft(t,a,G,null,c,W)}}for(var B in c){var G=c[B];if(W=i[B],c.hasOwnProperty(B)&&(G!=null||W!=null))switch(B){case"type":m=G;break;case"name":d=G;break;case"checked":V=G;break;case"defaultChecked":Q=G;break;case"value":b=G;break;case"defaultValue":j=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(s(137,a));break;default:G!==W&&ft(t,a,B,G,c,W)}}gd(t,b,j,R,V,Q,m,d);return;case"select":G=b=j=B=null;for(m in i)if(R=i[m],i.hasOwnProperty(m)&&R!=null)switch(m){case"value":break;case"multiple":G=R;default:c.hasOwnProperty(m)||ft(t,a,m,null,c,R)}for(d in c)if(m=c[d],R=i[d],c.hasOwnProperty(d)&&(m!=null||R!=null))switch(d){case"value":B=m;break;case"defaultValue":j=m;break;case"multiple":b=m;default:m!==R&&ft(t,a,d,m,c,R)}a=j,i=b,c=G,B!=null?Ss(t,!!i,B,!1):!!c!=!!i&&(a!=null?Ss(t,!!i,a,!0):Ss(t,!!i,i?[]:"",!1));return;case"textarea":G=B=null;for(j in i)if(d=i[j],i.hasOwnProperty(j)&&d!=null&&!c.hasOwnProperty(j))switch(j){case"value":break;case"children":break;default:ft(t,a,j,null,c,d)}for(b in c)if(d=c[b],m=i[b],c.hasOwnProperty(b)&&(d!=null||m!=null))switch(b){case"value":B=d;break;case"defaultValue":G=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==m&&ft(t,a,b,d,c,m)}sg(t,B,G);return;case"option":for(var Fe in i)B=i[Fe],i.hasOwnProperty(Fe)&&B!=null&&!c.hasOwnProperty(Fe)&&(Fe==="selected"?t.selected=!1:ft(t,a,Fe,null,c,B));for(R in c)B=c[R],G=i[R],c.hasOwnProperty(R)&&B!==G&&(B!=null||G!=null)&&(R==="selected"?t.selected=B&&typeof B!="function"&&typeof B!="symbol":ft(t,a,R,B,c,G));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 i)B=i[ke],i.hasOwnProperty(ke)&&B!=null&&!c.hasOwnProperty(ke)&&ft(t,a,ke,null,c,B);for(V in c)if(B=c[V],G=i[V],c.hasOwnProperty(V)&&B!==G&&(B!=null||G!=null))switch(V){case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,a));break;default:ft(t,a,V,B,c,G)}return;default:if(vd(a)){for(var ht in i)B=i[ht],i.hasOwnProperty(ht)&&B!==void 0&&!c.hasOwnProperty(ht)&&ah(t,a,ht,void 0,c,B);for(Q in c)B=c[Q],G=i[Q],!c.hasOwnProperty(Q)||B===G||B===void 0&&G===void 0||ah(t,a,Q,B,c,G);return}}for(var q in i)B=i[q],i.hasOwnProperty(q)&&B!=null&&!c.hasOwnProperty(q)&&ft(t,a,q,null,c,B);for(W in c)B=c[W],G=i[W],!c.hasOwnProperty(W)||B===G||B==null&&G==null||ft(t,a,W,B,c,G)}var rh=null,sh=null;function vc(t){return t.nodeType===9?t:t.ownerDocument}function ox(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lx(t,a){if(t===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&a==="foreignObject"?0:t}function ih(t,a){return t==="textarea"||t==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var oh=null;function iC(){var t=window.event;return t&&t.type==="popstate"?t===oh?!1:(oh=t,!0):(oh=null,!1)}var cx=typeof setTimeout=="function"?setTimeout:void 0,oC=typeof clearTimeout=="function"?clearTimeout:void 0,ux=typeof Promise=="function"?Promise:void 0,lC=typeof queueMicrotask=="function"?queueMicrotask:typeof ux<"u"?function(t){return ux.resolve(null).then(t).cat
vendor: 4,568 bytes, line 9
9ch(cC)}:cx;function cC(t){setTimeout(function(){throw t})}function pr(t){return t==="head"}function dx(t,a){var i=a,c=0,d=0;do{var m=i.nextSibling;if(t.removeChild(i),m&&m.nodeType===8)if(i=m.data,i==="/$"){if(0<c&&8>c){i=c;var b=t.ownerDocument;if(i&1&&So(b.documentElement),i&2&&So(b.body),i&4)for(i=b.head,So(i),b=i.firstChild;b;){var j=b.nextSibling,R=b.nodeName;b[qi]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&b.rel.toLowerCase()==="stylesheet"||i.removeChild(b),b=j}}if(d===0){t.removeChild(m),ko(a);return}d--}else i==="$"||i==="$?"||i==="$!"?d++:c=i.charCodeAt(0)-48;else c=0;i=m}while(i);ko(a)}function lh(t){var a=t.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var i=a;switch(a=a.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":lh(i),fd(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function uC(t,a,i,c){for(;t.nodeType===1;){var d=i;if(t.nodeName.toLowerCase()!==a.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[qi])switch(a){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(m=t.getAttribute("rel"),m==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(m!==d.rel||t.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(m=t.getAttribute("src"),(m!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&m&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(a==="input"&&t.type==="hidden"){var m=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===m)return t}else return t;if(t=ea(t.nextSibling),t===null)break}return null}function dC(t,a,i){if(a==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=ea(t.nextSibling),t===null))return null;return t}function ch(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function fC(t,a){var i=t.ownerDocument;if(t.data!=="$?"||i.readyState==="complete")a();else{var c=function(){a(),i.removeEventListener("DOMContentLoaded",c)};i.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function ea(t){for(;t!=null;t=t.nextSibling){var a=t.nodeType;if(a===1||a===3)break;if(a===8){if(a=t.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return t}var uh=null;function fx(t){t=t.previousSibling;for(var a=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(a===0)return t;a--}else i==="/$"&&a++}t=t.previousSibling}return null}function hx(t,a,i){switch(a=vc(i),t){case"html":if(t=a.documentElement,!t)throw Error(s(452));return t;case"head":if(t=a.head,!t)throw Error(s(453));return t;case"body":if(t=a.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function So(t){for(var a=t.attributes;a.length;)t.removeAttributeNode(a[0]);fd(t)}var Gn=new Map,mx=new Set;function xc(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ua=$.d;$.d={f:hC,r:mC,D:pC,C:gC,L:yC,m:vC,X:bC,S:xC,M:wC};function hC(){var t=Ua.f(),a=uc();return t||a}function mC(t){var a=ws(t);a!==null&&a.tag===5&&a.type==="form"?Dy(a):Ua.r(t)}var ti=typeof document>"u"?null:document;function px(t,a,i){var c=ti;if(c&&typeof a=="string"&&a){var d=zn(a);d='link[rel="'+t+'"][href="'+d+'"]',typeof i=="string"&&(d+='[crossorigin="'+i+'"]'),mx.has(d)||(mx.add(d),t={rel:t,crossOrigin:i,href:a},c.querySelector(d)===null&&(a=c.createElement("link"),Wt(a,"link",t),Bt(a),c.head.appendChild(a)))}}function pC(t){Ua.D(t),px("dns-prefetch",t,null)}function gC(t,a){Ua.C(t,a),px("preconnect",t,a)}function yC(t,a,i){Ua.L(t,a,i);var c=ti;if(c&&t&&a){var d='link[rel="preload"][as="'+zn(a)+'"]';a==="image"&&i&&i.imageSrcSet?(d+='[imagesrcset="'+zn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(d+='[imagesizes="'+zn(i.imageSizes)+'"]')):d+='[href="'+zn(t)+'"]';var m=d;switch(a){case"style":m=ni(t);break;case"script":m=ai(t)}Gn.has(m)||(t=y({rel:"preload",href:a==="image"&&i&&i.imageSrcSet?void 0:t,as:a},i),Gn.set(m,t),c.querySelector(d)!==null||a==="style"&&c.querySelector(No(m))||a==="script"&&c.querySelector(Co(m))||(a=c.createElement("link"),Wt(a,"link",t),Bt(a),c.head.appendChild(a)))}}
vendor: 4,906 bytes, line 9
9function vC(t,a){Ua.m(t,a);var i=ti;if(i&&t){var c=a&&typeof a.as=="string"?a.as:"script",d='link[rel="modulepreload"][as="'+zn(c)+'"][href="'+zn(t)+'"]',m=d;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=ai(t)}if(!Gn.has(m)&&(t=y({rel:"modulepreload",href:t},a),Gn.set(m,t),i.querySelector(d)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(Co(m)))return}c=i.createElement("link"),Wt(c,"link",t),Bt(c),i.head.appendChild(c)}}}function xC(t,a,i){Ua.S(t,a,i);var c=ti;if(c&&t){var d=js(c).hoistableStyles,m=ni(t);a=a||"default";var b=d.get(m);if(!b){var j={loading:0,preload:null};if(b=c.querySelector(No(m)))j.loading=5;else{t=y({rel:"stylesheet",href:t,"data-precedence":a},i),(i=Gn.get(m))&&dh(t,i);var R=b=c.createElement("link");Bt(R),Wt(R,"link",t),R._p=new Promise(function(V,Q){R.onload=V,R.onerror=Q}),R.addEventListener("load",function(){j.loading|=1}),R.addEventListener("error",function(){j.loading|=2}),j.loading|=4,bc(b,a,c)}b={type:"stylesheet",instance:b,count:1,state:j},d.set(m,b)}}}function bC(t,a){Ua.X(t,a);var i=ti;if(i&&t){var c=js(i).hoistableScripts,d=ai(t),m=c.get(d);m||(m=i.querySelector(Co(d)),m||(t=y({src:t,async:!0},a),(a=Gn.get(d))&&fh(t,a),m=i.createElement("script"),Bt(m),Wt(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(d,m))}}function wC(t,a){Ua.M(t,a);var i=ti;if(i&&t){var c=js(i).hoistableScripts,d=ai(t),m=c.get(d);m||(m=i.querySelector(Co(d)),m||(t=y({src:t,async:!0,type:"module"},a),(a=Gn.get(d))&&fh(t,a),m=i.createElement("script"),Bt(m),Wt(m,"link",t),i.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},c.set(d,m))}}function gx(t,a,i,c){var d=(d=fe.current)?xc(d):null;if(!d)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(a=ni(i.href),i=js(d).hoistableStyles,c=i.get(a),c||(c={type:"style",instance:null,count:0,state:null},i.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=ni(i.href);var m=js(d).hoistableStyles,b=m.get(t);if(b||(d=d.ownerDocument||d,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(t,b),(m=d.querySelector(No(t)))&&!m._p&&(b.instance=m,b.state.loading=5),Gn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Gn.set(t,i),m||jC(d,t,i,b.state))),a&&c===null)throw Error(s(528,""));return b}if(a&&c!==null)throw Error(s(529,""));return null;case"script":return a=i.async,i=i.src,typeof i=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ai(i),i=js(d).hoistableScripts,c=i.get(a),c||(c={type:"script",instance:null,count:0,state:null},i.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function ni(t){return'href="'+zn(t)+'"'}function No(t){return'link[rel="stylesheet"]['+t+"]"}function yx(t){return y({},t,{"data-precedence":t.precedence,precedence:null})}function jC(t,a,i,c){t.querySelector('link[rel="preload"][as="style"]['+a+"]")?c.loading=1:(a=t.createElement("link"),c.preload=a,a.addEventListener("load",function(){return c.loading|=1}),a.addEventListener("error",function(){return c.loading|=2}),Wt(a,"link",i),Bt(a),t.head.appendChild(a))}function ai(t){return'[src="'+zn(t)+'"]'}function Co(t){return"script[async]"+t}function vx(t,a,i){if(a.count++,a.instance===null)switch(a.type){case"style":var c=t.querySelector('style[data-href~="'+zn(i.href)+'"]');if(c)return a.instance=c,Bt(c),c;var d=y({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),Bt(c),Wt(c,"style",d),bc(c,i.precedence,t),a.instance=c;case"stylesheet":d=ni(i.href);var m=t.querySelector(No(d));if(m)return a.state.loading|=4,a.instance=m,Bt(m),m;c=yx(i),(d=Gn.get(d))&&dh(c,d),m=(t.ownerDocument||t).createElement("link"),Bt(m);var b=m;return b._p=new Promise(function(j,R){b.onload=j,b.onerror=R}),Wt(m,"link",c),a.state.loading|=4,bc(m,i.precedence,t),a.instance=m;case"script":return m=ai(i.src),(d=t.querySelector(Co(m)))?(a.instance=d,Bt(d),d):(c=i,(d=Gn.get(m))&&(c=y({},i),fh(c,d)),t=t.ownerDocument||t,d=t.createElement("script"),Bt(d),Wt(d,"link",c),t.head.appendChild(d),a.instance=d);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(c=a.instance,a.state.loading|=4,bc(c,i.precedence,t));return a.instance}function bc(t,a,i){for(var c=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=c.length?c[c.length-1]:null,m=d,b=0;b<c.length;b++){var j=c[b];
vendor: 9,703 bytes, line 9
9if(j.dataset.precedence===a)m=j;else if(m!==d)break}m?m.parentNode.insertBefore(t,m.nextSibling):(a=i.nodeType===9?i.head:i,a.insertBefore(t,a.firstChild))}function dh(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.title==null&&(t.title=a.title)}function fh(t,a){t.crossOrigin==null&&(t.crossOrigin=a.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=a.referrerPolicy),t.integrity==null&&(t.integrity=a.integrity)}var wc=null;function xx(t,a,i){if(wc===null){var c=new Map,d=wc=new Map;d.set(i,c)}else d=wc,c=d.get(i),c||(c=new Map,d.set(i,c));if(c.has(t))return c;for(c.set(t,null),i=i.getElementsByTagName(t),d=0;d<i.length;d++){var m=i[d];if(!(m[qi]||m[en]||t==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var b=m.getAttribute(a)||"";b=t+b;var j=c.get(b);j?j.push(m):c.set(b,[m])}}return c}function bx(t,a,i){t=t.ownerDocument||t,t.head.insertBefore(i,a==="title"?t.querySelector("head > title"):null)}function _C(t,a,i){if(i===1||a.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;return a.rel==="stylesheet"?(t=a.disabled,typeof a.precedence=="string"&&t==null):!0;case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function wx(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var To=null;function EC(){}function SC(t,a,i){if(To===null)throw Error(s(475));var c=To;if(a.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var d=ni(i.href),m=t.querySelector(No(d));if(m){t=m._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(c.count++,c=jc.bind(c),t.then(c,c)),a.state.loading|=4,a.instance=m,Bt(m);return}m=t.ownerDocument||t,i=yx(i),(d=Gn.get(d))&&dh(i,d),m=m.createElement("link"),Bt(m);var b=m;b._p=new Promise(function(j,R){b.onload=j,b.onerror=R}),Wt(m,"link",i),a.instance=m}c.stylesheets===null&&(c.stylesheets=new Map),c.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(c.count++,a=jc.bind(c),t.addEventListener("load",a),t.addEventListener("error",a))}}function NC(){if(To===null)throw Error(s(475));var t=To;return t.stylesheets&&t.count===0&&hh(t,t.stylesheets),0<t.count?function(a){var i=setTimeout(function(){if(t.stylesheets&&hh(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(i)}}:null}function jc(){if(this.count--,this.count===0){if(this.stylesheets)hh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var _c=null;function hh(t,a){t.stylesheets=null,t.unsuspend!==null&&(t.count++,_c=new Map,a.forEach(CC,t),_c=null,jc.call(t))}function CC(t,a){if(!(a.state.loading&4)){var i=_c.get(t);if(i)var c=i.get(null);else{i=new Map,_c.set(t,i);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<d.length;m++){var b=d[m];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),c=b)}c&&i.set(null,c)}d=a.instance,b=d.getAttribute("data-precedence"),m=i.get(b)||c,m===c&&i.set(null,d),i.set(b,d),this.count++,c=jc.bind(this),d.addEventListener("load",c),d.addEventListener("error",c),m?m.parentNode.insertBefore(d,m.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),a.state.loading|=4}}var Ao={$$typeof:M,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function TC(t,a,i,c,d,m,b,j){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ld(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ld(0),this.hiddenUpdates=ld(null),this.identifierPrefix=c,this.onUncaughtError=d,this.onCaughtError=m,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function jx(t,a,i,c,d,m,b,j,R,V,Q,W){return t=new TC(t,a,i,b,j,R,V,W),a=1,m===!0&&(a|=24),m=Sn(3,null,null,a),t.current=m,m.stateNode=t,a=Yd(),a.refCount++,t.pooledCache=a,a.refCount++,m.memoizedState={element:c,isDehydrated:i,cache:a},Xd(m),t}function _x(t){return t?(t=Ds,t):Ds}function Ex(t,a,i,c,d,m){d=_x(d),c.context===null?c.context=d:c.pendingContext=d,c=nr(a),c.payload={element:i},m=m===void 0?null:m,m!==null&&(c.callback=m),i=ar(t,c,a),i!==null&&(Rn(i,t,a),ro(i,t,a))}function Sx(t,a){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<a?i:a}}function mh(t,a){Sx(t,a),(t=t.alternate)&&Sx(t,a)}function Nx(t){if(t.tag===13){var a=ks(t,67108864);a!==null&&Rn(a,t,67108864),mh(t,67108864)}}var Ec=!0;function AC(t,a,i,c){var d=D.T;D.T=null;var m=$.p;try{$.p=2,ph(t,a,i,c)}finally{$.p=m,D.T=d}}function RC(t,a,i,c){var d=D.T;D.T=null;var m=$.p;try{$.p=8,ph(t,a,i,c)}finally{$.p=m,D.T=d}}function ph(t,a,i,c){if(Ec){var d=gh(c);if(d===null)nh(t,a,c,Sc,i),Tx(t,c);else if(MC(d,t,a,i,c))c.stopPropagation();else if(Tx(t,c),a&4&&-1<OC.indexOf(t)){for(;d!==null;){var m=ws(d);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var b=Xn(m.pendingLanes);if(b!==0){var j=m;for(j.pendingLanes|=2,j.entangledLanes|=2;b;){var R=1<<31-Ue(b);j.entanglements[1]|=R,b&=~R}pa(m),(ot&6)===0&&(lc=Jt()+500,jo(0))}}break;case 13:j=ks(m,2),j!==null&&Rn(j,m,2),uc(),mh(m,2)}if(m=gh(c),m===null&&nh(t,a,c,Sc,i),m===d)break;d=m}d!==null&&c.stopPropagation()}else nh(t,a,c,null,i)}}function gh(t){return t=bd(t),yh(t)}var Sc=null;function yh(t){if(Sc=null,t=bs(t),t!==null){var a=u(t);if(a===null)t=null;else{var i=a.tag;if(i===13){if(t=f(a),t!==null)return t;t=null}else if(i===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;t=null}else a!==t&&(t=null)}}return Sc=t,null}function Cx(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(sd()){case id:return 2;case Li:return 8;case O:case I:return 32;case Y:return 268435456;default:return 32}default:return 32}}var vh=!1,gr=null,yr=null,vr=null,Ro=new Map,Oo=new Map,xr=[],OC="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 Tx(t,a){switch(t){case"focusin":case"focusout":gr=null;break;case"dragenter":case"dragleave":yr=null;break;case"mouseover":case"mouseout":vr=null;break;case"pointerover":case"pointerout":Ro.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(a.pointerId)}}function Mo(t,a,i,c,d,m){return t===null||t.nativeEvent!==m?(t={blockedOn:a,domEventName:i,eventSystemFlags:c,nativeEvent:m,targetContainers:[d]},a!==null&&(a=ws(a),a!==null&&Nx(a)),t):(t.eventSystemFlags|=c,a=t.targetContainers,d!==null&&a.indexOf(d)===-1&&a.push(d),t)}function MC(t,a,i,c,d){switch(a){case"focusin":return gr=Mo(gr,t,a,i,c,d),!0;case"dragenter":return yr=Mo(yr,t,a,i,c,d),!0;case"mouseover":return vr=Mo(vr,t,a,i,c,d),!0;case"pointerover":var m=d.pointerId;return Ro.set(m,Mo(Ro.get(m)||null,t,a,i,c,d)),!0;case"gotpointercapture":return m=d.pointerId,Oo.set(m,Mo(Oo.get(m)||null,t,a,i,c,d)),!0}return!1}function Ax(t){var a=bs(t.target);if(a!==null){var i=u(a);if(i!==null){if(a=i.tag,a===13){if(a=f(i),a!==null){t.blockedOn=a,SS(t.priority,function(){if(i.tag===13){var c=An();c=cd(c);var d=ks(i,c);d!==null&&Rn(d,i,c),mh(i,c)}});return}}else if(a===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Nc(t){if(t.blockedOn!==null)return!1;for(var a=t.targetContainers;0<a.length;){var i=gh(t.nativeEvent);if(i===null){i=t.nativeEvent;var c=new i.constructor(i.type,i);xd=c,i.target.dispatchEvent(c),xd=null}else return a=ws(i),a!==null&&Nx(a),t.blockedOn=i,!1;a.shift()}return!0}function Rx(t,a,i){Nc(t)&&i.delete(a)}function kC(){vh=!1,gr!==null&&Nc(gr)&&(gr=null),yr!==null&&Nc(yr)&&(yr=null),vr!==null&&Nc(vr)&&(vr=null),Ro.forEac
9h(Rx),Oo.forEach(Rx)}function Cc(t,a){t.blockedOn===a&&(t.blockedOn=null,vh||(vh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,kC)))}var Tc=null;function Ox(t){Tc!==t&&(Tc=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Tc===t&&(Tc=null);for(var a=0;a<t.length;a+=3){var i=t[a],c=t[a+1],d=t[a+2];if(typeof c!="function"){if(yh(c||i)===null)continue;break}var m=ws(i);m!==null&&(t.splice(a,3),a-=3,yf(m,{pending:!0,data:d,method:i.method,action:c},c,d))}}))}function ko(t){function a(R){return Cc(R,t)}gr!==null&&Cc(gr,t),yr!==null&&Cc(yr,t),vr!==null&&Cc(vr,t),Ro.forEach(a),Oo.forEach(a);for(var i=0;i<xr.length;i++){var c=xr[i];c.blockedOn===t&&(c.blockedOn=null)}for(;0<xr.length&&(i=xr[0],i.blockedOn===null);)Ax(i),i.blockedOn===null&&xr.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(c=0;c<i.length;c+=3){var d=i[c],m=i[c+1],b=d[pn]||null;if(typeof m=="function")b||Ox(i);else if(b){var j=null;if(m&&m.hasAttribute("formAction")){if(d=m,b=m[pn]||null)j=b.formAction;else if(yh(d)!==null)continue}else j=b.action;typeof j=="function"?i[c+1]=j:(i.splice(c,3),c-=3),Ox(i)}}}function xh(t){this._internalRoot=t}Ac.prototype.render=xh.prototype.render=function(t){var a=this._internalRoot;if(a===null)throw Error(s(409));var i=a.current,c=An();Ex(i,c,t,a,null,null)},Ac.prototype.unmount=xh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var a=t.containerInfo;Ex(t.current,2,null,t,null,null),uc(),a[xs]=null}};function Ac(t){this._internalRoot=t}Ac.prototype.unstable_scheduleHydration=function(t){if(t){var a=Kp();t={blockedOn:null,target:t,priority:a};for(var i=0;i<xr.length&&a!==0&&a<xr[i].priority;i++);xr.splice(i,0,t),i===0&&Ax(t)}};var Mx=n.version;if(Mx!=="19.1.0")throw Error(s(527,Mx,"19.1.0"));$.findDOMNode=function(t){var a=t._reactInternals;if(a===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=p(a),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var DC={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rc.isDisabled&&Rc.supportsFiber)try{ae=Rc.inject(DC),ve=Rc}catch{}}return Fo.createRoot=function(t,a){if(!l(t))throw Error(s(299));var i=!1,c="",d=Ky,m=Qy,b=Zy,j=null;return a!=null&&(a.unstable_strictMode===!0&&(i=!0),a.identifierPrefix!==void 0&&(c=a.identifierPrefix),a.onUncaughtError!==void 0&&(d=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(j=a.unstable_transitionCallbacks)),a=jx(t,1,!1,null,null,i,c,d,m,b,j,null),t[xs]=a.current,th(t),new xh(a)},Fo.hydrateRoot=function(t,a,i){if(!l(t))throw Error(s(299));var c=!1,d="",m=Ky,b=Qy,j=Zy,R=null,V=null;return i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(d=i.identifierPrefix),i.onUncaughtError!==void 0&&(m=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(j=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(R=i.unstable_transitionCallbacks),i.formState!==void 0&&(V=i.formState)),a=jx(t,1,!0,a,i??null,c,d,m,b,j,R,V),a.context=_x(null),i=a.current,c=An(),c=cd(c),d=nr(c),d.callback=null,ar(i,d,c),i=c,a.current.lanes=i,zi(a,i),pa(a),t[xs]=a.current,th(t),new Ac(a)},Fo.version="19.1.0",Fo}var Vx;function BC(){if(Vx)return wh.exports;Vx=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(n){console.error(n)}}return e(),wh.exports=HC(),wh.exports}var GC=BC();function $C(e,n){if(e instanceof RegExp)return{keys:!1,pattern:e};var r,s,l,u,f=[],h="",p=e.split("/");for(p[0]||p.shift();l=p.shift();)r=l[0],r==="*"?(f.push(r),h+=l[1]==="?"?"(?:/(.*))?":"/(.*)"):r===":"?(s=l.indexOf("?",1),u=l.indexOf(".",1),f.push(l.substring(1,~s?s:~u?u:l.length)),h+=~s&&!~u?"(?:/([^/]+?))?":"/([^/]+?)",~u&&(h+=(~s?"?":"")+"\\"+l.substring(u))):h+="/"+l;return{keys:f,pattern:new RegExp("^"+h+(n?"(?=$|/)":"/?$"),"i")}}var v=ju();const xe=F0(v),_u=LC({__proto__:null,default:xe},[v]);
9var Nh={exports:{}},Ch={};var Hx;function YC(){if(Hx)return Ch;Hx=1;var e=ju();function n(x,w){return x===w&&(x!==0||1/x===1/w)||x!==x&&w!==w}var r=typeof Object.is=="function"?Object.is:n,s=e.useState,l=e.useEffect,u=e.useLayoutEffect,f=e.useDebugValue;function h(x,w){var E=w(),C=s({inst:{value:E,getSnapshot:w}}),_=C[0].inst,S=C[1];return u(function(){_.value=E,_.getSnapshot=w,p(_)&&S({inst:_})},[x,E,w]),l(function(){return p(_)&&S({inst:_}),x(function(){p(_)&&S({inst:_})})},[x]),f(E),E}function p(x){var w=x.getSnapshot;x=x.value;try{var E=w();return!r(x,E)}catch{return!0}}function g(x,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:h;return Ch.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:y,Ch}var Bx;function KC(){return Bx||(Bx=1,Nh.exports=YC()),Nh.exports}var QC=KC();const ZC=_u.useInsertionEffect,XC=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",WC=XC?v.useLayoutEffect:v.useEffect,JC=ZC||WC,P0=e=>{const n=v.useRef([e,(...r)=>n[0](...r)]).current;return JC(()=>{n[0]=e}),n[1]},eT="popstate",Lm="pushState",Pm="replaceState",tT="hashchange",Gx=[eT,Lm,Pm,tT],nT=e=>{for(const n of Gx)addEventListener(n,e);return()=>{for(const n of Gx)removeEventListener(n,e)}},z0=(e,n)=>QC.useSyncExternalStore(nT,e,n),$x=()=>location.search,aT=({ssrSearch:e}={})=>z0($x,e!=null?()=>e:$x),Yx=()=>location.pathname,rT=({ssrPath:e}={})=>z0(Yx,e!=null?()=>e:Yx),sT=(e,{replace:n=!1,state:r=null}={})=>history[n?Pm:Lm](r,"",e),iT=(e={})=>[rT(e),sT],Kx=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Kx]>"u"){for(const e of[Lm,Pm]){const n=history[e];history[e]=function(){const r=n.apply(this,arguments),s=new Event(e);return s.arguments=arguments,dispatchEvent(s),r}}Object.defineProperty(window,Kx,{value:!0})}const oT=(e,n)=>n.toLowerCase().indexOf(e.toLowerCase())?"~"+n:n.slice(e.length)||"/",q0=(e="")=>e==="/"?"":e,lT=(e,n)=>e[0]==="~"?e.slice(1):q0(n)+e,cT=(e="",n)=>oT(Qx(q0(e)),Qx(n)),Qx=e=>{try{return decodeURI(e)}catch{return e}},U0={hook:iT,searchHook:aT,parser:$C,base:"",ssrPath:void 0,ssrSearch:void 0,ssrContext:void 0,hrefs:e=>e,aroundNav:(e,n,r)=>e(n,r)},I0=v.createContext(U0),Si=()=>v.useContext(I0),V0={},H0=v.createContext(V0),uT=()=>v.useContext(H0),Eu=e=>{const[n,r]=e.hook(e);return[cT(e.base,n),P0((s,l)=>e.aroundNav(r,lT(s,e.base),l))]},Su=()=>Eu(Si()),zm=(e,n,r,s)=>{const{pattern:l,keys:u}=n instanceof RegExp?{keys:!1,pattern:n}:e(n||"*",s),f=l.exec(r)||[],[h,...p]=f;return h!==void 0?[!0,(()=>{const g=u!==!1?Object.fromEntries(u.map((x,w)=>[x,p[w]])):f.groups;let y={...p};return g&&Object.assign(y,g),y})(),...s?[h]:[]]:[!1,null]},dT=e=>zm(Si().parser,e,Su()[0]),B0=({children:e,...n})=>{const r=Si(),s=n.hook?U0:r;let l=s;const[u,f=n.ssrSearch??""]=n.ssrPath?.split("?")??[];u&&(n.ssrSearch=f,n.ssrPath=u),n.hrefs=n.hrefs??n.hook?.hrefs,n.searchHook=n.searchHook??n.hook?.searchHook;let h=v.useRef({}),p=h.current,g=p;for(let y in s){const x=y==="base"?s[y]+(n[y]??""):n[y]??s[y];p===g&&x!==g[y]&&(h.current=g={...g}),g[y]=x,(x!==s[y]||x!==l[y])&&(l=g)}return v.createElement(I0.Provider,{value:l,children:e})},Zx=({children:e,component:n},r)=>n?v.createElement(n,{params:r}):typeof e=="function"?e(r):e,fT=e=>{let n=v.useRef(V0);const r=n.current;return n.current=Object.keys(e).length!==Object.keys(r).length||Object.entries(e).some(([s,l])=>l!==r[s])?e:r},Ut=({path:e,nest:n,match:r,...s})=>{const l=Si(),[u]=Eu(l),[f,h,p]=r??zm(l.parser,e,u,n),g=fT({...uT(),...h});if(!f)return null;const y=p?v.createElement(B0,{base:p},Zx(s,g)):Zx(s,g);return v.createElement(H0.Provider,{value:g,children:y})},Ie=v.forwardRef((e,n)=>{const r=Si(),[s,l]=Eu(r),{to:u="",href:f=u,onClick:h,asChild:p,children:g,className:y,replace:x,state:w,transition:E,...C}=e,_=P0(A=>{A.ctrlKey||A.metaKey||A.altKey||A.shiftKey||A.button!==0||(h?.(A),A.defaultPrevented||(A.preventDefault(),l(f,e)))}),S=r.hrefs(f[0]==="~"?f.slice(1):r.base+f,r);return p&&v.isValidElement(g)?v.cloneElement(g,{onClick:_,href:S}):v.createElement("a",{...C,onClick:_,href:S,className:y?.call?y(s===f):y,children:g,ref:n})}),G0=e=>Array.isArray(e)?e.flatMap(n=>G0(n&&n.type===v.Fragment?n.props.children:n)):[e],hT=({children:e,location:n})=>{const r=Si(),[s]=Eu(r);for(const l of G0(e)){let u=0;if(v.isValidElement(l)&&(u=zm(r.parser,l.props.path,n||s,l.props.nest))[0])return v.cloneElement(l,{match:u})}return null};var Ni=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(){}},mT={setTimeout:(e,n)=>setTimeout(e,n),clearTimeout:e=>clearTimeout(e),setInterval:(e,n)=>setInterval(e,n),clearInterval:e=>clearInterval(e)},pT=class{#e=mT;#t=!1;setTimeoutProvider(e){this.#e=e}setTimeout(e,n){return this.#e.setTimeout(e,n)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,n){return this.#e.setInterval(e,n)}clearInterval(e){this.#e.clearInterval(e)}},rs=new pT;function gT(e){setTimeout(e,0)}var is=typeof window>"u"||"Deno"in globalThis;function fn(){}function yT(e,n){return typeof e=="function"?e(n):e}function Qh(e){return typeof e=="number"&&e>=0&&e!==1/0}function $0(e,n){return Math.max(e+(n||0)-Date.now(),0)}function Tr(e,n){return typeof e=="function"?e(n):e}function $n(e,n){return typeof e=="function"?e(n):e}function Xx(e,n){const{type:r="all",exact:s,fetchStatus:l,predicate:u,queryKey:f,stale:h}=e;if(f){if(s){if(n.queryHash!==qm(f,n.options))return!1}else if(!Ko(n.queryKey,f))return!1}if(r!=="all"){const p=n.isActive();if(r==="active"&&!p||r==="inactive"&&p)return!1}return!(typeof h=="boolean"&&n.isStale()!==h||l&&l!==n.state.fetchStatus||u&&!u(n))}function Wx(e,n){const{exact:r,status:s,predicate:l,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(r){if(os(n.options.mutationKey)!==os(u))return!1}else if(!Ko(n.options.mutationKey,u))return!1}return!(s&&n.state.status!==s||l&&!l(n))}function qm(e,n){return(n?.queryKeyHashFn||os)(e)}function os(e){return JSON.stringify(e,(n,r)=>Zh(r)?Object.keys(r).sort().reduce((s,l)=>(s[l]=r[l],s),{}):r)}function Ko(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(r=>Ko(e[r],n[r])):!1}var vT=Object.prototype.hasOwnProperty;function Y0(e,n,r=0){if(e===n)return e;if(r>500)return n;const s=Jx(e)&&Jx(n);if(!s&&!(Zh(e)&&Zh(n)))return n;const u=(s?e:Object.keys(e)).length,f=s?n:Object.keys(n),h=f.length,p=s?new Array(h):{};let g=0;for(let y=0;y<h;y++){const x=s?y:f[y],w=e[x],E=n[x];if(w===E){p[x]=w,(s?y<u:vT.call(e,x))&&g++;continue}if(w===null||E===null||typeof w!="object"||typeof E!="object"){p[x]=E;continue}const C=Y0(w,E,r+1);p[x]=C,C===w&&g++}return u===h&&g===u?e:p}function Qc(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const r in e)if(e[r]!==n[r])return!1;return!0}function Jx(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Zh(e){if(!eb(e))return!1;const n=e.constructor;if(n===void 0)return!0;const r=n.prototype;return!(!eb(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function eb(e){return Object.prototype.toString.call(e)==="[object Object]"}function xT(e){return new Promise(n=>{rs.setTimeout(n,e)})}function Xh(e,n,r){return typeof r.structuralSharing=="function"?r.structuralSharing(e,n):r.structuralSharing!==!1?Y0(e,n):n}function bT(e,n,r=0){const s=[...e,n];return r&&s.length>r?s.slice(1):s}
vendor: 20,642 bytes, line 9
9function wT(e,n,r=0){const s=[n,...e];return r&&s.length>r?s.slice(0,-1):s}var Um=Symbol();function K0(e,n){return!e.queryFn&&n?.initialPromise?()=>n.initialPromise:!e.queryFn||e.queryFn===Um?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Im(e,n){return typeof e=="function"?e(...n):!!e}function jT(e,n,r){let s=!1,l;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(l??=n(),s||(s=!0,l.aborted?r():l.addEventListener("abort",r,{once:!0})),l)}),e}var _T=class extends Ni{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!is&&window.addEventListener){const n=()=>e();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",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(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(n=>{n(e)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Vm=new _T;function Wh(){let e,n;const r=new Promise((l,u)=>{e=l,n=u});r.status="pending",r.catch(()=>{});function s(l){Object.assign(r,l),delete r.resolve,delete r.reject}return r.resolve=l=>{s({status:"fulfilled",value:l}),e(l)},r.reject=l=>{s({status:"rejected",reason:l}),n(l)},r}var ET=gT;function ST(){let e=[],n=0,r=h=>{h()},s=h=>{h()},l=ET;const u=h=>{n?e.push(h):l(()=>{r(h)})},f=()=>{const h=e;e=[],h.length&&l(()=>{s(()=>{h.forEach(p=>{r(p)})})})};return{batch:h=>{let p;n++;try{p=h()}finally{n--,n||f()}return p},batchCalls:h=>(...p)=>{u(()=>{h(...p)})},schedule:u,setNotifyFunction:h=>{r=h},setBatchNotifyFunction:h=>{s=h},setScheduler:h=>{l=h}}}var Vt=ST(),NT=class extends Ni{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!is&&window.addEventListener){const n=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}}}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(r=>{r(e)}))}isOnline(){return this.#e}},Zc=new NT;function CT(e){return Math.min(1e3*2**e,3e4)}function Q0(e){return(e??"online")==="online"?Zc.isOnline():!0}var Jh=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Z0(e){let n=!1,r=0,s;const l=Wh(),u=()=>l.status!=="pending",f=_=>{if(!u()){const S=new Jh(_);w(S),e.onCancel?.(S)}},h=()=>{n=!0},p=()=>{n=!1},g=()=>Vm.isFocused()&&(e.networkMode==="always"||Zc.isOnline())&&e.canRun(),y=()=>Q0(e.networkMode)&&e.canRun(),x=_=>{u()||(s?.(),l.resolve(_))},w=_=>{u()||(s?.(),l.reject(_))},E=()=>new Promise(_=>{s=S=>{(u()||g())&&_(S)},e.onPause?.()}).then(()=>{s=void 0,u()||e.onContinue?.()}),C=()=>{if(u())return;let _;const S=r===0?e.initialPromise:void 0;try{_=S??e.fn()}catch(A){_=Promise.reject(A)}Promise.resolve(_).then(x).catch(A=>{if(u())return;const T=e.retry??(is?0:3),M=e.retryDelay??CT,F=typeof M=="function"?M(r,A):M,L=T===!0||typeof T=="number"&&r<T||typeof T=="function"&&T(r,A);if(n||!L){w(A);return}r++,e.onFail?.(r,A),xT(F).then(()=>g()?void 0:E()).then(()=>{n?w(A):C()})})};return{promise:l,status:()=>l.status,cancel:f,continue:()=>(s?.(),l),cancelRetry:h,continueRetry:p,canStart:y,start:()=>(y()?C():E().then(C),l)}}var X0=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Qh(this.gcTime)&&(this.#e=rs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(is?1/0:300*1e3))}clearGcTimeout(){this.#e&&(rs.clearTimeout(this.#e),this.#e=void 0)}},TT=class extends X0{#e;#t;#n;#r;#a;#i;#o;constructor(e){super(),this.#o=!1,this.#i=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=nb(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#i,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=nb(this.options);n.data!==void 0&&(this.setState(tb(n.data,n.dataUpdatedAt)),this.#e=n)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(e,n){const r=Xh(this.state.data,e,this.options);return this.#s({data:r,type:"success",dataUpdatedAt:n?.updatedAt,manual:n?.manual}),r}setState(e,n){this.#s({type:"setState",state:e,setStateOptions:n})}cancel(e){const n=this.#a?.promise;return this.#a?.cancel(e),n?n.then(fn).catch(fn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>$n(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Um||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>Tr(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:!$0(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(n=>n.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(n=>n.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.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(n=>n!==e),this.observers.length||(this.#a&&(this.#o?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#s({type:"invalidate"})}async fetch(e,n){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&n?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){const h=this.observers.find(p=>p.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#o=!0,r.signal)})},l=()=>{const h=K0(this.options,n),g=(()=>{const y={client:this.#r,queryKey:this.queryKey,meta:this.meta};return s(y),y})();return this.#o=!1,this.options.persister?this.options.persister(h,g,this):h(g)},f=(()=>{const h={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:this.#r,state:this.state,fetchFn:l};return s(h),h})();this.options.behavior?.onFetch(f,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==f.fetchOptions?.meta)&&this.#s({type:"fetch",meta:f.fetchOptions?.meta}),this.#a=Z0({initialPromise:n?.initialPromise,fn:f.fetchFn,onCancel:h=>{h instanceof Jh&&h.revert&&this.setState({...this.#t,fetchStatus:"idle"}),r.abort()},onFail:(h,p)=>{this.#s({type:"failed",failureCount:h,error:p})},onPause:()=>{this.#s({type:"pause"})},onContinue:()=>{this.#s({type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0});try{const h=await this.#a.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#n.config.onSuccess?.(h,this),this.#n.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Jh){if(h.silent)return this.#a.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#s({type:"error",error:h}),this.#n.config.onError?.(h,this),this.#n.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#s(e){const n=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...W0(r.data,this.options),fetchMeta:e.meta??null};case"success":const s={...r,...tb(e.data,e.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=e.manual?s:void 0,s;case"error":const l=e.error;return{...r,error:l,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=n(this.state),Vt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function W0(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Q0(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function tb(e,n){return{data:e,dataUpdatedAt:n??Date.now(),error:null,isInvalidated:!1,status:"success"}}function nb(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,r=n!==void 0,s=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var AT=class extends Ni{constructor(e,n){super(),this.options=n,this.#e=e,this.#s=null,this.#o=Wh(),this.bindMethods(),this.setOptions(n)}#e;#t=void 0;#n=void 0;#r=void 0;#a;#i;#o;#s;#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),ab(this.#t,this.options)?this.#d():this.updateResult(),this.#x())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return em(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return em(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#w(),this.#t.removeObserver(this)}setOptions(e){const n=this.options,r=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 $n(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#t.setOptions(this.options),n._defaulted&&!Qc(this.options,n)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&rb(this.#t,r,this.options,n)&&this.#d(),this.updateResult(),s&&(this.#t!==r||$n(this.options.enabled,this.#t)!==$n(n.enabled,this.#t)||Tr(this.options.staleTime,this.#t)!==Tr(n.staleTime,this.#t))&&this.#g();const l=this.#y();s&&(this.#t!==r||$n(this.options.enabled,this.#t)!==$n(n.enabled,this.#t)||l!==this.#l)&&this.#v(l)}getOptimisticResult(e){const n=this.#e.getQueryCache().build(this.#e,e),r=this.createResult(n,e);return OT(this,r)&&(this.#r=r,this.#i=this.options,this.#a=this.#t.state),r}getCurrentResult(){return this.#r}trackResult(e,n){return new Proxy(e,{get:(r,s)=>(this.trackProp(s),n?.(s),s==="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(r,s))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const n=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,n);return r.fetch().then(()=>this.createResult(r,n))}fetch(e){return this.#d({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#d(e){this.#j();let n=this.#t.fetch(this.options,e);return e?.throwOnError||(n=n.catch(fn)),n}#g(){this.#b();const e=Tr(this.options.staleTime,this.#t);if(is||this.#r.isStale||!Qh(e))return;const r=$0(this.#r.dataUpdatedAt,e)+1;this.#c=rs.setTimeout(()=>{this.#r.isStale||this.updateResult()},r)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#w(),this.#l=e,!(is||$n(this.options.enabled,this.#t)===!1||!Qh(this.#l)||this.#l===0)&&(this.#u=rs.setInterval(()=>{(this.options.refetchIntervalInBackground||Vm.isFocused())&&this.#d()},this.#l))}#x(){this.#g(),this.#v(this.#y())}#b(){this.#c&&(rs.clearTimeout(this.#c),this.#c=void 0)}#w(){this.#u&&(rs.clearInterval(this.#u),this.#u=void 0)}createResult(e,n){const r=this.#t,s=this.options,l=this.#r,u=this.#a,f=this.#i,p=e!==r?e.state:this.#n,{state:g}=e;let y={...g},x=!1,w;if(n._optimisticResults){const H=this.hasListeners(),ie=!H&&ab(e,n),pe=H&&rb(e,r,n,s);(ie||pe)&&(y={...y,...W0(g.data,e.options)}),n._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:E,errorUpdatedAt:C,status:_}=y;w=y.data;let S=!1;if(n.placeholderData!==void 0&&w===void 0&&_==="pending"){let H;l?.isPlaceholderData&&n.placeholderData===f?.placeholderData?(H=l.data,S=!0):H=typeof n.placeholderData=="function"?n.placeholderData(this.#h?.state.data,this.#h):n.placeholderData,H!==void 0&&(_="success",w=Xh(l?.data,H,n),x=!0)}if(n.select&&w!==void 0&&!S)if(l&&w===u?.data&&n.select===this.#p)w=this.#f;else try{this.#p=n.select,w=n.select(w),w=Xh(l?.data,w,n),this.#f=w,this.#s=null}catch(H){this.#s=H}this.#s&&(E=this.#s,w=this.#f,C=Date.now(),_="error");const A=y.fetchStatus==="fetching",T=_==="pending",M=_==="error",F=T&&A,L=w!==void 0,P={status:_,fetchStatus:y.fetchStatus,isPending:T,isSuccess:_==="success",isError:M,isInitialLoading:F,isLoading:F,data:w,dataUpdatedAt:y.dataUpdatedAt,error:E,errorUpdatedAt:C,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:y.dataUpdateCount>0||y.errorUpdateCount>0,isFetchedAfterMount:y.dataUpdateCount>p.dataUpdateCount||y.errorUpdateCount>p.errorUpdateCount,isFetching:A,isRefetching:A&&!T,isLoadingError:M&&!L,isPaused:y.fetchStatus==="paused",isPlaceholderData:x,isRefetchError:M&&L,isStale:Hm(e,n),refetch:this.refetch,promise:this.#o,isEnabled:$n(n.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const H=P.data!==void 0,ie=P.status==="error"&&!H,pe=oe=>{ie?oe.reject(P.error):H&&oe.resolve(P.data)},be=()=>{const oe=this.#o=P.promise=Wh();pe(oe)},ee=this.#o;switch(ee.status){case"pending":e.queryHash===r.queryHash&&pe(ee);break;case"fulfilled":(ie||P.data!==ee.value)&&be();break;case"rejected":(!ie||P.error!==ee.reason)&&be();break}}return P}updateResult(){const e=this.#r,n=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#i=this.options,this.#a.data!==void 0&&(this.#h=this.#t),Qc(n,e))return;this.#r=n;const r=()=>{if(!e)return!0;const{notifyOnChangeProps:s}=this.options,l=typeof s=="function"?s():s;if(l==="all"||!l&&!this.#m.size)return!0;const u=new Set(l??this.#m);return this.options.throwOnError&&u.add("error"),Object.keys(this.#r).some(f=>{const h=f;return this.#r[h]!==e[h]&&u.has(h)})};this.#_({listeners:r()})}#j(){const e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;const n=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(n?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#x()}#_(e){Vt.batch(()=>{e.listeners&&this.listeners.forEach(n=>{n(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function RT(e,n){return $n(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function ab(e,n){return RT(e,n)||e.state.data!==void 0&&em(e,n,n.refetchOnMount)}function em(e,n,r){if($n(n.enabled,e)!==!1&&Tr(n.staleTime,e)!=="static"){const s=typeof r=="function"?r(e):r;return s==="always"||s!==!1&&Hm(e,n)}return!1}function rb(e,n,r,s){return(e!==n||$n(s.enabled,e)===!1)&&(!r.suspense||e.state.status!=="error")&&Hm(e,r)}function Hm(e,n){return $n(n.enabled,e)!==!1&&e.isStaleByTime(Tr(n.staleTime,e))}function OT(e,n){return!Qc(e.getCurrentResult(),n)}function sb(e){return{onFetch:(n,r)=>{const s=n.options,l=n.fetchOptions?.meta?.fetchMore?.direction,u=n.state.data?.pages||[],f=n.state.data?.pageParams||[];let h={pages:[],pageParams:[]},p=0;const g=async()=>{let y=!1;const x=C=>{jT(C,()=>n.signal,()=>y=!0)},w=K0(n.options,n.fetchOptions),E=async(C,_,S)=>{if(y)return Promise.reject();if(_==null&&C.pages.length)return Promise.resolve(C);const T=(()=>{const z={client:n.client,queryKey:n.queryKey,pageParam:_,direction:S?"backward":"forward",meta:n.options.meta};return x(z),z})(),M=await w(T),{maxPages:F}=n.options,L=S?wT:bT;return{pages:L(C.pages,M,F),pageParams:L(C.pageParams,_,F)}};if(l&&u.length){const C=l==="backward",_=C?MT:ib,S={pages:u,pageParams:f},A=_(s,S);h=await E(S,A,C)}else{const C=e??u.length;do{const _=p===0?f[0]??s.initialPageParam:ib(s,h);if(p>0&&_==null)break;h=await E(h,_),p++}while(p<C)}return h};n.options.persister?n.fetchFn=()=>n.options.persister?.(g,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},r):n.fetchFn=g}}}function ib(e,{pages:n,pageParams:r}){const s=n.length-1;return n.length>0?e.getNextPageParam(n[s],n,r[s],r):void 0}function MT(e,{pages:n,pageParams:r}){return n.length>0?e.getPreviousPageParam?.(n[0],n,r[0],r):void 0}var kT=class extends X0{#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||J0(),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(n=>n!==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 n=()=>{this.#a({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=Z0({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(u,f)=>{this.#a({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#a({type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",l=!this.#r.canStart();try{if(s)n();else{this.#a({type:"pending",variables:e,isPaused:l}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,r);const f=await this.options.onMutate?.(e,r);f!==this.state.context&&this.#a({type:"pending",context:f,variables:e,isPaused:l})}const u=await this.#r.start();return await this.#n.config.onSuccess?.(u,e,this.state.context,this,r),await this.options.onSuccess?.(u,e,this.state.context,r),await this.#n.config.onSettled?.(u,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(u,null,e,this.state.context,r),this.#a({type:"success",data:u}),u}catch(u){try{await this.#n.config.onError?.(u,e,this.state.context,this,r)}catch(f){Promise.reject(f)}try{await this.options.onError?.(u,e,this.state.context,r)}catch(f){Promise.reject(f)}try{await this.#n.config.onSettled?.(void 0,u,this.state.variables,this.state.context,this,r)}catch(f){Promise.reject(f)}try{await this.options.onSettled?.(void 0,u,e,this.state.context,r)}catch(f){Promise.reject(f)}throw this.#a({type:"error",error:u}),u}finally{this.#n.runNext(this)}}#a(e){const n=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};
9case"pending":return{...r,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{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Vt.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function J0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var DT=class extends Ni{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,n,r){const s=new kT({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(n),state:r});return this.add(s),s}add(e){this.#e.add(e);const n=Oc(e);if(typeof n=="string"){const r=this.#t.get(n);r?r.push(e):this.#t.set(n,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#e.delete(e)){const n=Oc(e);if(typeof n=="string"){const r=this.#t.get(n);if(r)if(r.length>1){const s=r.indexOf(e);s!==-1&&r.splice(s,1)}else r[0]===e&&this.#t.delete(n)}}this.notify({type:"removed",mutation:e})}canRun(e){const n=Oc(e);if(typeof n=="string"){const s=this.#t.get(n)?.find(l=>l.state.status==="pending");return!s||s===e}else return!0}runNext(e){const n=Oc(e);return typeof n=="string"?this.#t.get(n)?.find(s=>s!==e&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Vt.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 n={exact:!0,...e};return this.getAll().find(r=>Wx(n,r))}findAll(e={}){return this.getAll().filter(n=>Wx(e,n))}notify(e){Vt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}resumePausedMutations(){const e=this.getAll().filter(n=>n.state.isPaused);return Vt.batch(()=>Promise.all(e.map(n=>n.continue().catch(fn))))}};function Oc(e){return e.options.scope?.id}var FT=class extends Ni{#e;#t=void 0;#n;#r;constructor(n,r){super(),this.#e=n,this.setOptions(r),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){const r=this.options;this.options=this.#e.defaultMutationOptions(n),Qc(this.options,r)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),r?.mutationKey&&this.options.mutationKey&&os(r.mutationKey)!==os(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(n){this.#a(),this.#i(n)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#i()}mutate(n,r){return this.#r=r,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(n)}#a(){const n=this.#n?.state??J0();this.#t={...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset}}#i(n){Vt.batch(()=>{if(this.#r&&this.hasListeners()){const r=this.#t.variables,s=this.#t.context,l={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(n?.type==="success"){try{this.#r.onSuccess?.(n.data,r,s,l)}catch(u){Promise.reject(u)}try{this.#r.onSettled?.(n.data,null,r,s,l)}catch(u){Promise.reject(u)}}else if(n?.type==="error"){try{this.#r.onError?.(n.error,r,s,l)}catch(u){Promise.reject(u)}try{this.#r.onSettled?.(void 0,n.error,r,s,l)}catch(u){Promise.reject(u)}}}this.listeners.forEach(r=>{r(this.#t)})})}},LT=class extends Ni{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,n,r){const s=n.queryKey,l=n.queryHash??qm(s,n);let u=this.get(l);return u||(u=new TT({client:e,queryKey:s,queryHash:l,options:e.defaultQueryOptions(n),state:r,defaultOptions:e.getQueryDefaults(s)}),this.add(u)),u}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const n=this.#e.get(e.queryHash);n&&(e.destroy(),n===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Vt.batch(()=>
vendor: 2,873 bytes, line 9
9{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const n={exact:!0,...e};return this.getAll().find(r=>Xx(n,r))}findAll(e={}){const n=this.getAll();return Object.keys(e).length>0?n.filter(r=>Xx(e,r)):n}notify(e){Vt.batch(()=>{this.listeners.forEach(n=>{n(e)})})}onFocus(){Vt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Vt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},PT=class{#e;#t;#n;#r;#a;#i;#o;#s;constructor(e={}){this.#e=e.queryCache||new LT,this.#t=e.mutationCache||new DT,this.#n=e.defaultOptions||{},this.#r=new Map,this.#a=new Map,this.#i=0}mount(){this.#i++,this.#i===1&&(this.#o=Vm.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Zc.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#i--,this.#i===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),r=this.#e.build(this,n),s=r.state.data;return s===void 0?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(Tr(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(s))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:n,state:r})=>{const s=r.data;return[n,s]})}setQueryData(e,n,r){const s=this.defaultQueryOptions({queryKey:e}),u=this.#e.get(s.queryHash)?.state.data,f=yT(n,u);if(f!==void 0)return this.#e.build(this,s).setData(f,{...r,manual:!0})}setQueriesData(e,n,r){return Vt.batch(()=>this.#e.findAll(e).map(({queryKey:s})=>[s,this.setQueryData(s,n,r)]))}getQueryState(e){const n=this.defaultQueryOptions({queryKey:e});return this.#e.get(n.queryHash)?.state}removeQueries(e){const n=this.#e;Vt.batch(()=>{n.findAll(e).forEach(r=>{n.remove(r)})})}resetQueries(e,n){const r=this.#e;return Vt.batch(()=>(r.findAll(e).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const r={revert:!0,...n},s=Vt.batch(()=>this.#e.findAll(e).map(l=>l.cancel(r)));return Promise.all(s).then(fn).catch(fn)}invalidateQueries(e,n={}){return Vt.batch(()=>(this.#e.findAll(e).forEach(r=>{r.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},n)))}refetchQueries(e,n={}){const r={...n,cancelRefetch:n.cancelRefetch??!0},s=Vt.batch(()=>this.#e.findAll(e).filter(l=>!l.isDisabled()&&!l.isStatic()).map(l=>{let u=l.fetch(void 0,r);return r.throwOnError||(u=u.catch(fn)),l.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(s).then(fn)}fetchQuery(e){const n=this.defaultQueryOptions(e);
9n.retry===void 0&&(n.retry=!1);const r=this.#e.build(this,n);return r.isStaleByTime(Tr(n.staleTime,r))?r.fetch(n):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(fn).catch(fn)}fetchInfiniteQuery(e){return e.behavior=sb(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(fn).catch(fn)}ensureInfiniteQueryData(e){return e.behavior=sb(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Zc.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,n){this.#r.set(os(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...this.#r.values()],r={};return n.forEach(s=>{Ko(e,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(e,n){this.#a.set(os(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...this.#a.values()],r={};return n.forEach(s=>{Ko(e,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const n={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=qm(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===Um&&(n.enabled=!1),n}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()}},ew=v.createContext(void 0),wa=e=>{const n=v.useContext(ew);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},zT=({client:e,children:n})=>(v.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),o.jsx(ew.Provider,{value:e,children:n})),tw=v.createContext(!1),qT=()=>v.useContext(tw);tw.Provider;function UT(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var IT=v.createContext(UT()),VT=()=>v.useContext(IT),HT=(e,n,r)=>{const s=r?.state.error&&typeof e.throwOnError=="function"?Im(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||s)&&(n.isReset()||(e.retryOnMount=!1))},BT=e=>{v.useEffect(()=>{e.clearReset()},[e])},GT=({result:e,errorResetBoundary:n,throwOnError:r,query:s,suspense:l})=>e.isError&&!n.isReset()&&!e.isFetching&&s&&(l&&e.data===void 0||Im(r,[e.error,s])),$T=e=>{if(e.suspense){const r=l=>l==="static"?l:Math.max(l??1e3,1e3),s=e.staleTime;e.staleTime=typeof s=="function"?(...l)=>r(s(...l)):r(s),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},YT=(e,n)=>e.isLoading&&e.isFetching&&!n,KT=(e,n)=>e?.suspense&&n.isPending,ob=(e,n,r)=>n.fetchOptimistic(e).catch(()=>{r.clearReset()});function QT(e,n,r){const s=qT(),l=VT(),u=wa(),f=u.defaultQueryOptions(e);u.getDefaultOptions().queries?._experimental_beforeQuery?.(f);const h=u.getQueryCache().get(f.queryHash);f._optimisticResults=s?"isRestoring":"optimistic",$T(f),HT(f,l,h),BT(l);const p=!u.getQueryCache().get(f.queryHash),[g]=v.useState(()=>new n(u,f)),y=g.getOptimisticResult(f),x=!s&&e.subscribed!==!1;if(v.useSyncExternalStore(v.useCallback(w=>{const E=x?g.subscribe(Vt.batchCalls(w)):fn;return g.updateResult(),E},[g,x]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),v.useEffect(()=>{g.setOptions(f)},[f,g]),KT(f,y))throw ob(f,g,l);if(GT({result:y,errorResetBoundary:l,throwOnError:f.throwOnError,query:h,suspense:f.suspense}))throw y.error;return u.getDefaultOptions().queries?._experimental_afterQuery?.(f,y),f.experimental_prefetchInRender&&!is&&YT(y,s)&&(p?ob(f,g,l):h?.promise)?.catch(fn).finally(()=>{g.updateResult()}),f.notifyOnChangeProps?y:g.trackResult(y)}function $a(e,n){return QT(e,AT)}function ja(e,n){const r=wa(),[s]=v.useState(()=>new FT(r,e));v.useEffect(()=>{s.setOptions(e)},[s,e]);const l=v.useSyncExternalStore(v.useCallback(f=>s.subscribe(Vt.batchCalls(f)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),u=v.useCallback((f,h)=>{s.mutate(f,h).catch(fn)},[s]);if(l.error&&Im(s.options.throwOnError,[l.error]))throw l.error;return{...l,mutate:u,mutateAsync:l.mutate}}const ZT=1,XT=1e6;let Th=0;function WT(){return Th=(Th+1)%Number.MAX_SAFE_INTEGER,Th.toString()}const Ah=new Map,lb=e=>{if(Ah.has(e))return;const n=setTimeout(()=>{Ah.delete(e),Go({type:"REMOVE_TOAST",toastId:e})},XT);Ah.set(e,n)}
9,JT=(e,n)=>{switch(n.type){case"ADD_TOAST":return{...e,toasts:[n.toast,...e.toasts].slice(0,ZT)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(r=>r.id===n.toast.id?{...r,...n.toast}:r)};case"DISMISS_TOAST":{const{toastId:r}=n;return r?lb(r):e.toasts.forEach(s=>{lb(s.id)}),{...e,toasts:e.toasts.map(s=>s.id===r||r===void 0?{...s,open:!1}:s)}}case"REMOVE_TOAST":return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(r=>r.id!==n.toastId)}}},Hc=[];let Bc={toasts:[]};function Go(e){Bc=JT(Bc,e),Hc.forEach(n=>{n(Bc)})}function e2({...e}){const n=WT(),r=l=>Go({type:"UPDATE_TOAST",toast:{...l,id:n}}),s=()=>Go({type:"DISMISS_TOAST",toastId:n});return Go({type:"ADD_TOAST",toast:{...e,id:n,open:!0,onOpenChange:l=>{l||s()}}}),{id:n,dismiss:s,update:r}}function _a(){const[e,n]=v.useState(Bc);return v.useEffect(()=>(Hc.push(n),()=>{const r=Hc.indexOf(n);r>-1&&Hc.splice(r,1)}),[e]),{...e,toast:e2,dismiss:r=>Go({type:"DISMISS_TOAST",toastId:r})}}var Ci=L0();const t2=F0(Ci);function ue(e,n,{checkForDefaultPrevented:r=!0}={}){return function(l){if(e?.(l),r===!1||!l.defaultPrevented)return n?.(l)}}function cb(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function sl(...e){return n=>{let r=!1;const s=e.map(l=>{const u=cb(l,n);return!r&&typeof u=="function"&&(r=!0),u});if(r)return()=>{for(let l=0;l<s.length;l++){const u=s[l];typeof u=="function"?u():cb(e[l],null)}}}}function Je(...e){return v.useCallback(sl(...e),e)}function n2(e,n){const r=v.createContext(n),s=u=>{const{children:f,...h}=u,p=v.useMemo(()=>h,Object.values(h));return o.jsx(r.Provider,{value:p,children:f})};s.displayName=e+"Provider";function l(u){const f=v.useContext(r);if(f)return f;if(n!==void 0)return n;throw new Error(`\`${u}\` must be used within \`${e}\``)}return[s,l]}function Ln(e,n=[]){let r=[];function s(u,f){const h=v.createContext(f),p=r.length;r=[...r,f];const g=x=>{const{scope:w,children:E,...C}=x,_=w?.[e]?.[p]||h,S=v.useMemo(()=>C,Object.values(C));return o.jsx(_.Provider,{value:S,children:E})};g.displayName=u+"Provider";function y(x,w){const E=w?.[e]?.[p]||h,C=v.useContext(E);if(C)return C;if(f!==void 0)return f;throw new Error(`\`${x}\` must be used within \`${u}\``)}return[g,y]}const l=()=>{const u=r.map(f=>v.createContext(f));return function(h){const p=h?.[e]||u;return v.useMemo(()=>({[`__scope${e}`]:{...h,[e]:p}}),[h,p])}};return l.scopeName=e,[s,a2(l,...n)]}function a2(...e){const n=e[0];if(e.length===1)return n;const r=()=>{const s=e.map(l=>({useScope:l(),scopeName:l.scopeName}));return function(u){const f=s.reduce((h,{useScope:p,scopeName:g})=>{const x=p(u)[`__scope${g}`];return{...h,...x}},{});return v.useMemo(()=>({[`__scope${n.scopeName}`]:f}),[f])}};return r.scopeName=n.scopeName,r}function yi(e){const n=r2(e),r=v.forwardRef((s,l)=>{const{children:u,...f}=s,h=v.Children.toArray(u),p=h.find(i2);if(p){const g=p.props.children,y=h.map(x=>x===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:x);return o.jsx(n,{...f,ref:l,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return o.jsx(n,{...f,ref:l,children:u})});return r.displayName=`${e}.Slot`,r}function r2(e){const n=v.forwardRef((r,s)=>{const{children:l,...u}=r;if(v.isValidElement(l)){const f=l2(l),h=o2(u,l.props);return l.type!==v.Fragment&&(h.ref=s?sl(s,f):f),v.cloneElement(l,h)}return v.Children.count(l)>1?v.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var nw=Symbol("radix.slottable");function s2(e){const n=({children:r})=>o.jsx(o.Fragment,{children:r});return n.displayName=`${e}.Slottable`,n.__radixId=nw,n}function i2(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===nw}function o2(e,n){const r={...n};for(const s in n){const l=e[s],u=n[s];/^on[A-Z]/.test(s)?l&&u?r[s]=(...h)=>{const p=u(...h);return l(...h),p}:l&&(r[s]=l):s==="style"?r[s]={...l,...u}:s==="className"&&(r[s]=[l,u].filter(Boolean).join(" "))}return{...e,...r}}function l2(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function il(e){const n=e+"CollectionProvider",[r,s]=Ln(n),[l,u]=r(n,{collectionRef:{current:null},itemMap:new Map}),f=_=>{const{scope:S,children:A}=_,T=xe.useRef(null),M=xe.useRef(new Map).current;return o.jsx(l,{scope:S,itemMap:M,collectionRef:T,children:A})};f.displayName=n;const h=e+"CollectionSlot",p=yi(h),g=xe.forwardRef((_,S)=>{const{scope:A,children:T}=_,M=u(h,A),F=Je(S,M.collectionRef);return o.jsx(p,{ref:F,children:T})});g.displayName=h;const y=e+"CollectionItemSlot",x="data-radix-collection-item",w=yi(y),E=xe.forwardRef((_,S)=>{const{scope:A,children:T,...M}=_,F=xe.useRef(null),L=Je(S,F),z=u(y,A);return xe.useEffect(()=>(z.itemMap.set(F,{ref:F,...M}
vendor: 8,796 bytes, line 9
9),()=>{z.itemMap.delete(F)})),o.jsx(w,{[x]:"",ref:L,children:T})});E.displayName=y;function C(_){const S=u(e+"CollectionConsumer",_);return xe.useCallback(()=>{const T=S.collectionRef.current;if(!T)return[];const M=Array.from(T.querySelectorAll(`[${x}]`));return Array.from(S.itemMap.values()).sort((z,P)=>M.indexOf(z.ref.current)-M.indexOf(P.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:f,Slot:g,ItemSlot:E},C,s]}var c2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Me=c2.reduce((e,n)=>{const r=yi(`Primitive.${n}`),s=v.forwardRef((l,u)=>{const{asChild:f,...h}=l,p=f?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(p,{...h,ref:u})});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{});function Bm(e,n){e&&Ci.flushSync(()=>e.dispatchEvent(n))}function jn(e){const n=v.useRef(e);return v.useEffect(()=>{n.current=e}),v.useMemo(()=>(...r)=>n.current?.(...r),[])}function u2(e,n=globalThis?.document){const r=jn(e);v.useEffect(()=>{const s=l=>{l.key==="Escape"&&r(l)};return n.addEventListener("keydown",s,{capture:!0}),()=>n.removeEventListener("keydown",s,{capture:!0})},[r,n])}var d2="DismissableLayer",tm="dismissableLayer.update",f2="dismissableLayer.pointerDownOutside",h2="dismissableLayer.focusOutside",ub,aw=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ti=v.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:u,onInteractOutside:f,onDismiss:h,...p}=e,g=v.useContext(aw),[y,x]=v.useState(null),w=y?.ownerDocument??globalThis?.document,[,E]=v.useState({}),C=Je(n,P=>x(P)),_=Array.from(g.layers),[S]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),A=_.indexOf(S),T=y?_.indexOf(y):-1,M=g.layersWithOutsidePointerEventsDisabled.size>0,F=T>=A,L=p2(P=>{const H=P.target,ie=[...g.branches].some(pe=>pe.contains(H));!F||ie||(l?.(P),f?.(P),P.defaultPrevented||h?.())},w),z=g2(P=>{const H=P.target;[...g.branches].some(pe=>pe.contains(H))||(u?.(P),f?.(P),P.defaultPrevented||h?.())},w);return u2(P=>{T===g.layers.size-1&&(s?.(P),!P.defaultPrevented&&h&&(P.preventDefault(),h()))},w),v.useEffect(()=>{if(y)return r&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(ub=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(y)),g.layers.add(y),db(),()=>{r&&g.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=ub)}},[y,w,r,g]),v.useEffect(()=>()=>{y&&(g.layers.delete(y),g.layersWithOutsidePointerEventsDisabled.delete(y),db())},[y,g]),v.useEffect(()=>{const P=()=>E({});return document.addEventListener(tm,P),()=>document.removeEventListener(tm,P)},[]),o.jsx(Me.div,{...p,ref:C,style:{pointerEvents:M?F?"auto":"none":void 0,...e.style},onFocusCapture:ue(e.onFocusCapture,z.onFocusCapture),onBlurCapture:ue(e.onBlurCapture,z.onBlurCapture),onPointerDownCapture:ue(e.onPointerDownCapture,L.onPointerDownCapture)})});Ti.displayName=d2;var m2="DismissableLayerBranch",rw=v.forwardRef((e,n)=>{const r=v.useContext(aw),s=v.useRef(null),l=Je(n,s);return v.useEffect(()=>{const u=s.current;if(u)return r.branches.add(u),()=>{r.branches.delete(u)}},[r.branches]),o.jsx(Me.div,{...e,ref:l})});rw.displayName=m2;function p2(e,n=globalThis?.document){const r=jn(e),s=v.useRef(!1),l=v.useRef(()=>{});return v.useEffect(()=>{const u=h=>{if(h.target&&!s.current){let p=function(){sw(f2,r,g,{discrete:!0})};const g={originalEvent:h};h.pointerType==="touch"?(n.removeEventListener("click",l.current),l.current=p,n.addEventListener("click",l.current,{once:!0})):p()}else n.removeEventListener("click",l.current);s.current=!1},f=window.setTimeout(()=>{n.addEventListener("pointerdown",u)},0);return()=>{window.clearTimeout(f),n.removeEventListener("pointerdown",u),n.removeEventListener("click",l.current)}},[n,r]),{onPointerDownCapture:()=>s.current=!0}}function g2(e,n=globalThis?.document){const r=jn(e),s=v.useRef(!1);return v.useEffect(()=>{const l=u=>{u.target&&!s.current&&sw(h2,r,{originalEvent:u},{discrete:!1})};return n.addEventListener("focusin",l),()=>n.removeEventListener("focusin",l)},[n,r]),{onFocusCapture:()=>s.current=!0,onBlurCapture:()=>s.current=!1}}function db(){const e=new CustomEvent(tm);document.dispatchEvent(e)}function sw(e,n,r,{discrete:s}){const l=r.originalEvent.target,u=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),s?Bm(l,u):l.dispatchEvent(u)}var y2=Ti,v2=rw,Kt=globalThis?.document?v.useLayoutEffect:()=>{},x2="Portal",Ai=v.forwardRef((e,n)=>{const{container:r,...s}=e,[l,u]=v.useState(!1);Kt(()=>u(!0),[]);const f=r||l&&globalThis?.document?.body;return f?t2.createPortal(o.jsx(Me.div,{...s,ref:n}),f):null});Ai.displayName=x2;function b2(e,n){return v.useReducer((r,s)=>n[r][s]??r,e)}var _n=e=>{const{present:n,children:r}=e,s=w2(n),l=typeof r=="function"?r({present:s.isPresent}):v.Children.only(r),u=Je(s.ref,j2(l));return typeof r=="function"||s.isPresent?v.cloneElement(l,{ref:u}):null};_n.displayName="Presence";function w2(e){const[n,r]=v.useState(),s=v.useRef(null),l=v.useRef(e),u=v.useRef("none"),f=e?"mounted":"unmounted",[h,p]=b2(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const g=Mc(s.current);u.current=h==="mounted"?g:"none"},[h]),Kt(()=>{const g=s.current,y=l.current;if(y!==e){const w=u.current,E=Mc(g);e?p("MOUNT"):E==="none"||g?.display==="none"?p("UNMOUNT"):p(y&&w!==E?"ANIMATION_OUT":"UNMOUNT"),l.current=e}},[e,p]),Kt(()=>{if(n){let g;const y=n.ownerDocument.defaultView??window,x=E=>{const _=Mc(s.current).includes(CSS.escape(E.animationName));if(E.target===n&&_&&(p("ANIMATION_END"),!l.current)){const S=n.style.animationFillMode;n.style.animationFillMode="forwards",g=y.setTimeout(()=>{n.style.animationFillMode==="forwards"&&(n.style.animationFillMode=S)})}},w=E=>{E.target===n&&(u.current=Mc(s.current))};return n.addEventListener("animationstart",w),n.addEventListener("animationcancel",x),n.addEventListener("animationend",x),()=>{y.clearTimeout(g),n.removeEventListener("animationstart",w),n.removeEventListener("animationcancel",x),n.removeEventListener("animationend",x)}}else p("ANIMATION_END")},[n,p]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(g=>{s.current=g?getComputedStyle(g):null,r(g)},[])}}function Mc(e){return e?.animationName||"none"}function j2(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var _2=_u[" useInsertionEffect ".trim().toString()]||Kt;function ra({prop:e,defaultProp:n,onChange:r=()=>{},caller:s}){const[l,u,f]=E2({defaultProp:n,onChange:r}),h=e!==void 0,p=h?e:l;{const y=v.useRef(e!==void 0);v.useEffect(()=>{const x=y.current;x!==h&&console.warn(`${s} is changing from ${x?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),y.current=h},[h,s])}const g=v.useCallback(y=>{if(h){const x=S2(y)?y(e):y;x!==e&&f.current?.(x)}else u(y)},[h,e,u,f]);return[p,g]}function E2({defaultProp:e,onChange:n}){const[r,s]=v.useState(e),l=v.useRef(r),u=v.useRef(n);return _2(()=>{u.current=n},[n]),v.useEffect(()=>{l.current!==r&&(u.current?.(r),l.current=r)},[r,l]),[r,s,u]}function S2(e){return typeof e=="function"}var iw=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"}),N2="VisuallyHidden",Nu=v.forwardRef((e,n)=>o.jsx(Me.span,{...e,ref:n,style:{...iw,...e.style}}));Nu.displayName=N2;var C2=Nu,Gm="ToastProvider",[$m,T2,A2]=il("Toast"),[ow]=Ln("Toast",[A2]),[R2,Cu]=ow(Gm),lw=e=>{const{__scopeToast:n,label:r="Notification",duration:s=5e3,swipeDirection:l="right",swipeThreshold:u=50,children:f}=e,[h,p]=v.useState(null),[g,y]=v.useState(0),x=v.useRef(!1),w=v.useRef(!1);return r.trim()||console.error(`Invalid prop \`label\` supplied to \`${Gm}\`. Expected non-empty \`string\`.`),o.jsx($m.Provider,{scope:n,children:o.jsx(R2,{scope:n,label:r,duration:s,swipeDirection:l,swipeThreshold:u,toastCount:g,viewport:h,onViewportChange:p,onToastAdd:v.useCallback(()=>y(E=>E+1),[]),onToastRemove:v.useCallback(()=>y(E=>E-1),[]),isFocusedToastEscapeKeyDownRef:x,isClosePausedRef:w,children:f})})};lw.displayName=Gm;var cw="ToastViewport",O2=["F8"],nm="toast.viewportPause",am="toast.viewportResume",uw=v.forwardRef((e,n
9)=>{const{__scopeToast:r,hotkey:s=O2,label:l="Notifications ({hotkey})",...u}=e,f=Cu(cw,r),h=T2(r),p=v.useRef(null),g=v.useRef(null),y=v.useRef(null),x=v.useRef(null),w=Je(n,x,f.onViewportChange),E=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),C=f.toastCount>0;v.useEffect(()=>{const S=A=>{s.length!==0&&s.every(M=>A[M]||A.code===M)&&x.current?.focus()};return document.addEventListener("keydown",S),()=>document.removeEventListener("keydown",S)},[s]),v.useEffect(()=>{const S=p.current,A=x.current;if(C&&S&&A){const T=()=>{if(!f.isClosePausedRef.current){const z=new CustomEvent(nm);A.dispatchEvent(z),f.isClosePausedRef.current=!0}},M=()=>{if(f.isClosePausedRef.current){const z=new CustomEvent(am);A.dispatchEvent(z),f.isClosePausedRef.current=!1}},F=z=>{!S.contains(z.relatedTarget)&&M()},L=()=>{S.contains(document.activeElement)||M()};return S.addEventListener("focusin",T),S.addEventListener("focusout",F),S.addEventListener("pointermove",T),S.addEventListener("pointerleave",L),window.addEventListener("blur",T),window.addEventListener("focus",M),()=>{S.removeEventListener("focusin",T),S.removeEventListener("focusout",F),S.removeEventListener("pointermove",T),S.removeEventListener("pointerleave",L),window.removeEventListener("blur",T),window.removeEventListener("focus",M)}}},[C,f.isClosePausedRef]);const _=v.useCallback(({tabbingDirection:S})=>{const T=h().map(M=>{const F=M.ref.current,L=[F,...B2(F)];return S==="forwards"?L:L.reverse()});return(S==="forwards"?T.reverse():T).flat()},[h]);return v.useEffect(()=>{const S=x.current;if(S){const A=T=>{const M=T.altKey||T.ctrlKey||T.metaKey;if(T.key==="Tab"&&!M){const L=document.activeElement,z=T.shiftKey;if(T.target===S&&z){g.current?.focus();return}const ie=_({tabbingDirection:z?"backwards":"forwards"}),pe=ie.findIndex(be=>be===L);Rh(ie.slice(pe+1))?T.preventDefault():z?g.current?.focus():y.current?.focus()}};return S.addEventListener("keydown",A),()=>S.removeEventListener("keydown",A)}},[h,_]),o.jsxs(v2,{ref:p,role:"region","aria-label":l.replace("{hotkey}",E),tabIndex:-1,style:{pointerEvents:C?void 0:"none"},children:[C&&o.jsx(rm,{ref:g,onFocusFromOutsideViewport:()=>{const S=_({tabbingDirection:"forwards"});Rh(S)}}),o.jsx($m.Slot,{scope:r,children:o.jsx(Me.ol,{tabIndex:-1,...u,ref:w})}),C&&o.jsx(rm,{ref:y,onFocusFromOutsideViewport:()=>{const S=_({tabbingDirection:"backwards"});Rh(S)}})]})});uw.displayName=cw;var dw="ToastFocusProxy",rm=v.forwardRef((e,n)=>{const{__scopeToast:r,onFocusFromOutsideViewport:s,...l}=e,u=Cu(dw,r);return o.jsx(Nu,{tabIndex:0,...l,ref:n,style:{position:"fixed"},onFocus:f=>{const h=f.relatedTarget;!u.viewport?.contains(h)&&s()}})});rm.displayName=dw;var ol="Toast",M2="toast.swipeStart",k2="toast.swipeMove",D2="toast.swipeCancel",F2="toast.swipeEnd",fw=v.forwardRef((e,n)=>{const{forceMount:r,open:s,defaultOpen:l,onOpenChange:u,...f}=e,[h,p]=ra({prop:s,defaultProp:l??!0,onChange:u,caller:ol});return o.jsx(_n,{present:r||h,children:o.jsx(z2,{open:h,...f,ref:n,onClose:()=>p(!1),onPause:jn(e.onPause),onResume:jn(e.onResume),onSwipeStart:ue(e.onSwipeStart,g=>{g.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ue(e.onSwipeMove,g=>{const{x:y,y:x}=g.detail.delta;g.currentTarget.setAttribute("data-swipe","move"),g.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${y}px`),g.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${x}px`)}),onSwipeCancel:ue(e.onSwipeCancel,g=>{g.currentTarget.setAttribute("data-swipe","cancel"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),g.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),g.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ue(e.onSwipeEnd,g=>{const{x:y,y:x}=g.detail.delta;g.currentTarget.setAttribute("data-swipe","end"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),g.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),g.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${y}px`),g.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${x}px`),p(!1)})})})});fw.displayName=ol;var[L2,P2]=ow(ol,{onClose(){}}
9),z2=v.forwardRef((e,n)=>{const{__scopeToast:r,type:s="foreground",duration:l,open:u,onClose:f,onEscapeKeyDown:h,onPause:p,onResume:g,onSwipeStart:y,onSwipeMove:x,onSwipeCancel:w,onSwipeEnd:E,...C}=e,_=Cu(ol,r),[S,A]=v.useState(null),T=Je(n,te=>A(te)),M=v.useRef(null),F=v.useRef(null),L=l||_.duration,z=v.useRef(0),P=v.useRef(L),H=v.useRef(0),{onToastAdd:ie,onToastRemove:pe}=_,be=jn(()=>{S?.contains(document.activeElement)&&_.viewport?.focus(),f()}),ee=v.useCallback(te=>{!te||te===1/0||(window.clearTimeout(H.current),z.current=new Date().getTime(),H.current=window.setTimeout(be,te))},[be]);v.useEffect(()=>{const te=_.viewport;if(te){const de=()=>{ee(P.current),g?.()},D=()=>{const $=new Date().getTime()-z.current;P.current=P.current-$,window.clearTimeout(H.current),p?.()};return te.addEventListener(nm,D),te.addEventListener(am,de),()=>{te.removeEventListener(nm,D),te.removeEventListener(am,de)}}},[_.viewport,L,p,g,ee]),v.useEffect(()=>{u&&!_.isClosePausedRef.current&&ee(L)},[u,L,_.isClosePausedRef,ee]),v.useEffect(()=>(ie(),()=>pe()),[ie,pe]);const oe=v.useMemo(()=>S?xw(S):null,[S]);return _.viewport?o.jsxs(o.Fragment,{children:[oe&&o.jsx(q2,{__scopeToast:r,role:"status","aria-live":s==="foreground"?"assertive":"polite",children:oe}),o.jsx(L2,{scope:r,onClose:be,children:Ci.createPortal(o.jsx($m.ItemSlot,{scope:r,children:o.jsx(y2,{asChild:!0,onEscapeKeyDown:ue(h,()=>{_.isFocusedToastEscapeKeyDownRef.current||be(),_.isFocusedToastEscapeKeyDownRef.current=!1}),children:o.jsx(Me.li,{tabIndex:0,"data-state":u?"open":"closed","data-swipe-direction":_.swipeDirection,...C,ref:T,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ue(e.onKeyDown,te=>{te.key==="Escape"&&(h?.(te.nativeEvent),te.nativeEvent.defaultPrevented||(_.isFocusedToastEscapeKeyDownRef.current=!0,be()))}),onPointerDown:ue(e.onPointerDown,te=>{te.button===0&&(M.current={x:te.clientX,y:te.clientY})}),onPointerMove:ue(e.onPointerMove,te=>{if(!M.current)return;const de=te.clientX-M.current.x,D=te.clientY-M.current.y,$=!!F.current,Z=["left","right"].includes(_.swipeDirection),J=["left","up"].includes(_.swipeDirection)?Math.min:Math.max,N=Z?J(0,de):0,K=Z?0:J(0,D),re=te.pointerType==="touch"?10:2,ne={x:N,y:K},me={originalEvent:te,delta:ne};$?(F.current=ne,kc(k2,x,me,{discrete:!1})):fb(ne,_.swipeDirection,re)?(F.current=ne,kc(M2,y,me,{discrete:!1}),te.target.setPointerCapture(te.pointerId)):(Math.abs(de)>re||Math.abs(D)>re)&&(M.current=null)}),onPointerUp:ue(e.onPointerUp,te=>{const de=F.current,D=te.target;if(D.hasPointerCapture(te.pointerId)&&D.releasePointerCapture(te.pointerId),F.current=null,M.current=null,de){const $=te.currentTarget,Z={originalEvent:te,delta:de};fb(de,_.swipeDirection,_.swipeThreshold)?kc(F2,E,Z,{discrete:!0}):kc(D2,w,Z,{discrete:!0}),$.addEventListener("click",J=>J.preventDefault(),{once:!0})}})})})}),_.viewport)})]}):null}),q2=e=>{const{__scopeToast:n,children:r,...s}=e,l=Cu(ol,n),[u,f]=v.useState(!1),[h,p]=v.useState(!1);return V2(()=>f(!0)),v.useEffect(()=>{const g=window.setTimeout(()=>p(!0),1e3);return()=>window.clearTimeout(g)},[]),h?null:o.jsx(Ai,{asChild:!0,children:o.jsx(Nu,{...s,children:u&&o.jsxs(o.Fragment,{children:[l.label," ",r]})})})},U2="ToastTitle",hw=v.forwardRef((e,n)=>{const{__scopeToast:r,...s}=e;return o.jsx(Me.div,{...s,ref:n})});hw.displayName=U2;var I2="ToastDescription",mw=v.forwardRef((e,n)=>{const{__scopeToast:r,...s}=e;return o.jsx(Me.div,{...s,ref:n})});mw.displayName=I2;var pw="ToastAction",gw=v.forwardRef((e,n)=>{const{altText:r,...s}=e;return r.trim()?o.jsx(vw,{altText:r,asChild:!0,children:o.jsx(Ym,{...s,ref:n})}):(console.error(`Invalid prop \`altText\` supplied to \`${pw}\`. Expected non-empty \`string\`.`),null)});gw.displayName=pw;var yw="ToastClose",Ym=v.forwardRef((e,n)=>{const{__scopeToast:r,...s}=e,l=P2(yw,r);return o.jsx(vw,{asChild:!0,children:o.jsx(Me.button,{type:"button",...s,ref:n,onClick:ue(e.onClick,l.onClose)})})});Ym.displayName=yw;var vw=v.forwardRef((e,n)=>{const{__scopeToast:r,altText:s,...l}=e;return o.jsx(Me.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":s||void 0,...l,ref:n})});function xw(e){const n=[];
9return Array.from(e.childNodes).forEach(s=>{if(s.nodeType===s.TEXT_NODE&&s.textContent&&n.push(s.textContent),H2(s)){const l=s.ariaHidden||s.hidden||s.style.display==="none",u=s.dataset.radixToastAnnounceExclude==="";if(!l)if(u){const f=s.dataset.radixToastAnnounceAlt;f&&n.push(f)}else n.push(...xw(s))}}),n}function kc(e,n,r,{discrete:s}){const l=r.originalEvent.currentTarget,u=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});n&&l.addEventListener(e,n,{once:!0}),s?Bm(l,u):l.dispatchEvent(u)}var fb=(e,n,r=0)=>{const s=Math.abs(e.x),l=Math.abs(e.y),u=s>l;return n==="left"||n==="right"?u&&s>r:!u&&l>r};function V2(e=()=>{}){const n=jn(e);Kt(()=>{let r=0,s=0;return r=window.requestAnimationFrame(()=>s=window.requestAnimationFrame(n)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(s)}},[n])}function H2(e){return e.nodeType===e.ELEMENT_NODE}function B2(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const l=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||l?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function Rh(e){const n=document.activeElement;return e.some(r=>r===n?!0:(r.focus(),document.activeElement!==n))}var G2=lw,bw=uw,ww=fw,jw=hw,_w=mw,Ew=gw,Sw=Ym;function Nw(e){var n,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(n=0;n<l;n++)e[n]&&(r=Nw(e[n]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function Cw(){for(var e,n,r=0,s="",l=arguments.length;r<l;r++)(e=arguments[r])&&(n=Nw(e))&&(s&&(s+=" "),s+=n);return s}const hb=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,mb=Cw,ll=(e,n)=>r=>{var s;if(n?.variants==null)return mb(e,r?.class,r?.className);const{variants:l,defaultVariants:u}=n,f=Object.keys(l).map(g=>{const y=r?.[g],x=u?.[g];if(y===null)return null;const w=hb(y)||hb(x);return l[g][w]}),h=r&&Object.entries(r).reduce((g,y)=>{let[x,w]=y;return w===void 0||(g[x]=w),g},{}),p=n==null||(s=n.compoundVariants)===null||s===void 0?void 0:s.reduce((g,y)=>{let{class:x,className:w,...E}=y;return Object.entries(E).every(C=>{let[_,S]=C;return Array.isArray(S)?S.includes({...u,...h}[_]):{...u,...h}[_]===S})?[...g,x,w]:g},[]);return mb(e,f,p,r?.class,r?.className)};const $2=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Y2=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,r,s)=>s?s.toUpperCase():r.toLowerCase()),pb=e=>{const n=Y2(e);return n.charAt(0).toUpperCase()+n.slice(1)},Tw=(...e)=>e.filter((n,r,s)=>!!n&&n.trim()!==""&&s.indexOf(n)===r).join(" ").trim(),K2=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};var Q2={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 Z2=v.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:r=2,absoluteStrokeWidth:s,className:l="",children:u,iconNode:f,...h},p)=>v.createElement("svg",{ref:p,...Q2,width:n,height:n,stroke:e,strokeWidth:s?Number(r)*24/Number(n):r,className:Tw("lucide",l),...!u&&!K2(h)&&{"aria-hidden":"true"},...h},[...f.map(([g,y])=>v.createElement(g,y)),...Array.isArray(u)?u:[u]]));const qe=(e,n)=>{const r=v.forwardRef(({className:s,...l},u)=>v.createElement(Z2,{ref:u,iconNode:n,className:Tw(`lucide-${$2(pb(e))}`,`lucide-${e}`,s),...l}));return r.displayName=pb(e),r};const X2=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],W2=qe("arrow-left",X2);const J2=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Oh=qe("arrow-right",J2);const eA=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],sm=qe("award",eA);const tA=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],nA=qe("book-marked",tA);const aA=[["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"}]],Km=qe("book-open",aA);const rA=[["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"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]],sA=qe("calendar-days",rA);const iA=[["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"}]],oA=qe("calendar",iA);const lA=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Tu=qe("check",lA);const cA=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qo=qe("chevron-down",cA);const uA=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Gc=qe("chevron-right",uA);const dA=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],fA=qe("chevron-up",dA);const hA=[["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"}]],im=qe("circle-alert",hA);const mA=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}
9]],pA=qe("circle-check-big",mA);const gA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],yA=qe("circle-question-mark",gA);const vA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],xA=qe("circle-x",vA);const bA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],wA=qe("circle",bA);const jA=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Aw=qe("clock",jA);const _A=[["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"}]],Rw=qe("external-link",_A);const EA=[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],SA=qe("file-text",EA);const NA=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Qm=qe("globe",NA);const CA=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],Xc=qe("graduation-cap",CA);const TA=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],AA=qe("headphones",TA);const RA=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Ow=qe("heart",RA);const OA=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],MA=qe("house",OA);const kA=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],Mw=qe("languages",kA);const DA=[["path",{d:"m10 17 5-5-5-5",key:"1bsop3"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}]],gb=qe("log-in",DA);const FA=[["path",{d:"M21.2 8.4c.5.38.8.97.8 1.6v10a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V10a2 2 0 0 1 .8-1.6l8-6a2 2 0 0 1 2.4 0l8 6Z",key:"1jhwl8"}],["path",{d:"m22 10-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 10",key:"1qfld7"}]],LA=qe("mail-open",FA);const PA=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Wc=qe("mail",PA);const zA=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Zm=qe("map-pin",zA);const qA=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],UA=qe("menu",qA);const IA=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],VA=qe("phone",IA);const HA=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],kw=qe("plus",HA);const BA=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],GA=qe("search",BA);const $A=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],yb=qe("send",$A);const YA=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
vendor: 3,595 bytes, line 9
9y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jc=qe("shield-check",YA);const KA=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],QA=qe("shield",KA);const ZA=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],XA=qe("sliders-horizontal",ZA);const WA=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Xm=qe("square-pen",WA);const JA=[["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"}]],eR=qe("star",JA);const tR=[["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"}]],vb=qe("trash-2",tR);const nR=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],vi=qe("users",nR);const aR=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],rR=qe("user",aR);const sR=[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]],iR=qe("video",sR);const oR=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],cl=qe("x",oR),lR=(e,n)=>{const r=new Array(e.length+n.length);for(let s=0;s<e.length;s++)r[s]=e[s];for(let s=0;s<n.length;s++)r[e.length+s]=n[s];return r},cR=(e,n)=>({classGroupId:e,validator:n}),Dw=(e=new Map,n=null,r)=>({nextPart:e,validators:n,classGroupId:r}),eu="-",xb=[],uR="arbitrary..",dR=e=>{const n=hR(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:s}=e;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return fR(f);const h=f.split(eu),p=h[0]===""&&h.length>1?1:0;return Fw(h,p,n)},getConflictingClassGroupIds:(f,h)=>{if(h){const p=s[f],g=r[f];return p?g?lR(g,p):p:g||xb}return r[f]||xb}}},Fw=(e,n,r)=>{if(e.length-n===0)return r.classGroupId;const l=e[n],u=r.nextPart.get(l);if(u){const g=Fw(e,n+1,u);if(g)return g}const f=r.validators;if(f===null)return;const h=n===0?e.join(eu):e.slice(n).join(eu),p=f.length;for(let g=0;g<p;g++){const y=f[g];if(y.validator(h))return y.classGroupId}},fR=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),r=n.indexOf(":"),s=n.slice(0,r);return s?uR+s:void 0})(),hR=e=>{const{theme:n,classGroups:r}=e;return mR(r,n)},mR=(e,n)=>{const r=Dw();for(const s in e){const l=e[s];Wm(l,r,s,n)}return r},Wm=(e,n,r,s)=>{const l=e.length;for(let u=0;u<l;u++){const f=e[u];pR(f,n,r,s)}}
vendor: 7,098 bytes, line 9
9,pR=(e,n,r,s)=>{if(typeof e=="string"){gR(e,n,r);return}if(typeof e=="function"){yR(e,n,r,s);return}vR(e,n,r,s)},gR=(e,n,r)=>{const s=e===""?n:Lw(n,e);s.classGroupId=r},yR=(e,n,r,s)=>{if(xR(e)){Wm(e(s),n,r,s);return}n.validators===null&&(n.validators=[]),n.validators.push(cR(r,e))},vR=(e,n,r,s)=>{const l=Object.entries(e),u=l.length;for(let f=0;f<u;f++){const[h,p]=l[f];Wm(p,Lw(n,h),r,s)}},Lw=(e,n)=>{let r=e;const s=n.split(eu),l=s.length;for(let u=0;u<l;u++){const f=s[u];let h=r.nextPart.get(f);h||(h=Dw(),r.nextPart.set(f,h)),r=h}return r},xR=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,bR=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,r=Object.create(null),s=Object.create(null);const l=(u,f)=>{r[u]=f,n++,n>e&&(n=0,s=r,r=Object.create(null))};return{get(u){let f=r[u];if(f!==void 0)return f;if((f=s[u])!==void 0)return l(u,f),f},set(u,f){u in r?r[u]=f:l(u,f)}}},om="!",bb=":",wR=[],wb=(e,n,r,s,l)=>({modifiers:e,hasImportantModifier:n,baseClassName:r,maybePostfixModifierPosition:s,isExternal:l}),jR=e=>{const{prefix:n,experimentalParseClassName:r}=e;let s=l=>{const u=[];let f=0,h=0,p=0,g;const y=l.length;for(let _=0;_<y;_++){const S=l[_];if(f===0&&h===0){if(S===bb){u.push(l.slice(p,_)),p=_+1;continue}if(S==="/"){g=_;continue}}S==="["?f++:S==="]"?f--:S==="("?h++:S===")"&&h--}const x=u.length===0?l:l.slice(p);let w=x,E=!1;x.endsWith(om)?(w=x.slice(0,-1),E=!0):x.startsWith(om)&&(w=x.slice(1),E=!0);const C=g&&g>p?g-p:void 0;return wb(u,E,w,C)};if(n){const l=n+bb,u=s;s=f=>f.startsWith(l)?u(f.slice(l.length)):wb(wR,!1,f,void 0,!0)}if(r){const l=s;s=u=>r({className:u,parseClassName:l})}return s},_R=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((r,s)=>{n.set(r,1e6+s)}),r=>{const s=[];let l=[];for(let u=0;u<r.length;u++){const f=r[u],h=f[0]==="[",p=n.has(f);h||p?(l.length>0&&(l.sort(),s.push(...l),l=[]),s.push(f)):l.push(f)}return l.length>0&&(l.sort(),s.push(...l)),s}},ER=e=>({cache:bR(e.cacheSize),parseClassName:jR(e),sortModifiers:_R(e),...dR(e)}),SR=/\s+/,NR=(e,n)=>{const{parseClassName:r,getClassGroupId:s,getConflictingClassGroupIds:l,sortModifiers:u}=n,f=[],h=e.trim().split(SR);let p="";for(let g=h.length-1;g>=0;g-=1){const y=h[g],{isExternal:x,modifiers:w,hasImportantModifier:E,baseClassName:C,maybePostfixModifierPosition:_}=r(y);if(x){p=y+(p.length>0?" "+p:p);continue}let S=!!_,A=s(S?C.substring(0,_):C);if(!A){if(!S){p=y+(p.length>0?" "+p:p);continue}if(A=s(C),!A){p=y+(p.length>0?" "+p:p);continue}S=!1}const T=w.length===0?"":w.length===1?w[0]:u(w).join(":"),M=E?T+om:T,F=M+A;if(f.indexOf(F)>-1)continue;f.push(F);const L=l(A,S);for(let z=0;z<L.length;++z){const P=L[z];f.push(M+P)}p=y+(p.length>0?" "+p:p)}return p},CR=(...e)=>{let n=0,r,s,l="";for(;n<e.length;)(r=e[n++])&&(s=Pw(r))&&(l&&(l+=" "),l+=s);return l},Pw=e=>{if(typeof e=="string")return e;let n,r="";for(let s=0;s<e.length;s++)e[s]&&(n=Pw(e[s]))&&(r&&(r+=" "),r+=n);return r},TR=(e,...n)=>{let r,s,l,u;const f=p=>{const g=n.reduce((y,x)=>x(y),e());return r=ER(g),s=r.cache.get,l=r.cache.set,u=h,h(p)},h=p=>{const g=s(p);if(g)return g;const y=NR(p,r);return l(p,y),y};return u=f,(...p)=>u(CR(...p))},AR=[],It=e=>{const n=r=>r[e]||AR;return n.isThemeGetter=!0,n},zw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,qw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,RR=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,OR=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,MR=/\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$/,kR=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,DR=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FR=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,wr=e=>RR.test(e),Ge=e=>!!e&&!Number.isNaN(Number(e)),jr=e=>!!e&&Number.isInteger(Number(e)),Mh=e=>e.endsWith("%")&&Ge(e.slice(0,-1)),Ia=e=>OR.test(e),Uw=()=>!0,LR=e=>MR.test(e)&&!kR.test(e),Jm=()=>!1,PR=e=>DR.test(e),zR=e=>FR.test(e),qR=e=>!je(e)&&!_e(e),UR=e=>Fr(e,Hw,Jm),je=e=>zw.test(e),ts=e=>Fr(e,Bw,LR),jb=e=>Fr(e,KR,Ge),IR=e=>Fr(e,$w,Uw),VR=e=>Fr(e,Gw,Jm),_b=e=>Fr(e,Iw,Jm),HR=e=>Fr(e,Vw,zR),Dc=e=>Fr(e,Yw,PR),_e=e=>qw.test(e),Lo=e=>ms(e,Bw),BR=e=>ms(e,Gw),Eb=e=>ms(e,Iw),GR=e=>ms(e,Hw),$R=e=>ms(e,Vw),Fc=e=>ms(e,Yw,!0),YR=e=>ms(e,$w,!0),Fr=(e,n,r)=>{const s=zw.exec(e);return s?s[1]?n(s[1]):r(s[2]):!1},ms=(e,n,r=!1)=>{const s=qw.exec(e);return s?s[1]?n(s[1]):r:!1},Iw=e=>e==="position"||e==="percentage",Vw=e=>e==="image"||e==="url",Hw=e=>e==="length"||e==="size"||e==="bg-size",Bw=e=>e==="length",KR=e=>e==="number",Gw=e=>e==="family-name",$w=e=>e==="number"||e==="weight",Yw=e=>e==="shadow",QR=()=>{const e=It("color"),n=It("font"),r=It("text"),s=It("font-weight"),l=It("tracking"),u=It("leading"),f=It("breakpoint"),h=It("container"),p=It("spacing"),g=It("radius"),y=It("shadow"),x=It("inset-shadow"),w=It("text-shadow"),E=It("drop-shadow"),C=It("blur"),_=It("perspective"),S=It("aspect"),A=It("ease"),T=It("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],F=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],L=()=>[...F(),_e,je],z=()=>["auto","hidden","clip","visible","scroll"],P=()=>["auto","contain","none"],H=()=>[_e,je,p],ie=()=>[wr,"full","auto",...H()],pe=()=>[jr,"none","subgrid",_e,je],be=()=>["auto",{span:["full",jr,_e,je]},jr,_e,je],ee=()=>[jr,"auto",_e,je],oe=()=>["auto","min","max","fr",_e,je],te=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],de=()=>["start","end","center","stretch","center-safe","end-safe"],D=()=>["auto",...H()],$=()=>[wr,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...H()],Z=()=>[wr,"screen","full","dvw","lvw","svw","min","max","fit",...H()],J=()=>[wr,"screen","full","lh","dvh","lvh","svh","min","max","fit",...H()],N=()=>[e,_e,je],K=()=>[...F(),Eb,_b,{position:[_e,je]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],ne=()=>["auto","cover","contain",GR,UR,{size:[_e,je]}],me=()=>[Mh,Lo,ts],Se=()=>["","none","full",g,_e,je],fe=()=>["",Ge,Lo,ts],le=()=>["solid","dashed","dotted","double"],Ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Le=()=>[Ge,Mh,Eb,_b],We=()=>["","none",C,_e,je],$e=()=>["none",Ge,_e,je],rt=()=>["none",Ge,_e,je],bt=()=>[Ge,_e,je],Ht=()=>[wr,"full",...H()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ia],breakpoint:[Ia],color:[Uw],container:[Ia],"drop-shadow":[Ia],ease:["in","out","in-out"],font:[qR],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ia],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ia],shadow:[Ia],spacing:["px",Ge],text:[Ia],"text-shadow":[Ia],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",wr,je,_e,S]}
vendor: 6,016 bytes, line 9
9],container:["container"],columns:[{columns:[Ge,je,_e,h]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:L()}],overflow:[{overflow:z()}],"overflow-x":[{"overflow-x":z()}],"overflow-y":[{"overflow-y":z()}],overscroll:[{overscroll:P()}],"overscroll-x":[{"overscroll-x":P()}],"overscroll-y":[{"overscroll-y":P()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{"inset-s":ie(),start:ie()}],end:[{"inset-e":ie(),end:ie()}],"inset-bs":[{"inset-bs":ie()}],"inset-be":[{"inset-be":ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[jr,"auto",_e,je]}],basis:[{basis:[wr,"full","auto",h,...H()]}],"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,_e,je]}],shrink:[{shrink:["",Ge,_e,je]}],order:[{order:[jr,"first","last","none",_e,je]}],"grid-cols":[{"grid-cols":pe()}],"col-start-end":[{col:be()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":pe()}],"row-start-end":[{row:be()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":oe()}],"auto-rows":[{"auto-rows":oe()}],gap:[{gap:H()}],"gap-x":[{"gap-x":H()}],"gap-y":[{"gap-y":H()}],"justify-content":[{justify:[...te(),"normal"]}],"justify-items":[{"justify-items":[...de(),"normal"]}],"justify-self":[{"justify-self":["auto",...de()]}],"align-content":[{content:["normal",...te()]}],"align-items":[{items:[...de(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...de(),{baseline:["","last"]}]}],"place-content":[{"place-content":te()}],"place-items":[{"place-items":[...de(),"baseline"]}],"place-self":[{"place-self":["auto",...de()]}],p:[{p:H()}],px:[{px:H()}],py:[{py:H()}],ps:[{ps:H()}],pe:[{pe:H()}],pbs:[{pbs:H()}],pbe:[{pbe:H()}],pt:[{pt:H()}],pr:[{pr:H()}],pb:[{pb:H()}],pl:[{pl:H()}],m:[{m:D()}],mx:[{mx:D()}],my:[{my:D()}],ms:[{ms:D()}],me:[{me:D()}],mbs:[{mbs:D()}],mbe:[{mbe:D()}],mt:[{mt:D()}],mr:[{mr:D()}],mb:[{mb:D()}],ml:[{ml:D()}],"space-x":[{"space-x":H()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":H()}],"space-y-reverse":["space-y-reverse"],size:[{size:$()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...J()]}],"min-block-size":[{"min-block":["auto",...J()]}],"max-block-size":[{"max-block":["none",...J()]}],w:[{w:[h,"screen",...$()]}],"min-w":[{"min-w":[h,"screen","none",...$()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...$()]}],h:[{h:["screen","lh",...$()]}],"min-h":[{"min-h":["screen","lh","none",...$()]}],"max-h":[{"max-h":["screen","lh",...$()]}],"font-size":[{text:["base",r,Lo,ts]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[s,YR,IR]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Mh,je]}],"font-family":[{font:[BR,VR,n]}],"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:[l,_e,je]}],"line-clamp":[{"line-clamp":[Ge,"none",_e,jb]}],leading:[{leading:[u,...H()]}],"list-image":[{"list-image":["none",_e,je]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",_e,je]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:N()}],"text-color":[{text:N()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...le(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",_e,ts]}],"text-decoration-color":[{decoration:N()}],"underline-offset":[{"underline-offset":[Ge,"auto",_e,je]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:H()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",_e,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",_e,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:K()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:ne()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]}
vendor: 7,514 bytes, line 9
9,jr,_e,je],radial:["",_e,je],conic:[jr,_e,je]},$R,HR]}],"bg-color":[{bg:N()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:N()}],"gradient-via":[{via:N()}],"gradient-to":[{to:N()}],rounded:[{rounded:Se()}],"rounded-s":[{"rounded-s":Se()}],"rounded-e":[{"rounded-e":Se()}],"rounded-t":[{"rounded-t":Se()}],"rounded-r":[{"rounded-r":Se()}],"rounded-b":[{"rounded-b":Se()}],"rounded-l":[{"rounded-l":Se()}],"rounded-ss":[{"rounded-ss":Se()}],"rounded-se":[{"rounded-se":Se()}],"rounded-ee":[{"rounded-ee":Se()}],"rounded-es":[{"rounded-es":Se()}],"rounded-tl":[{"rounded-tl":Se()}],"rounded-tr":[{"rounded-tr":Se()}],"rounded-br":[{"rounded-br":Se()}],"rounded-bl":[{"rounded-bl":Se()}],"border-w":[{border:fe()}],"border-w-x":[{"border-x":fe()}],"border-w-y":[{"border-y":fe()}],"border-w-s":[{"border-s":fe()}],"border-w-e":[{"border-e":fe()}],"border-w-bs":[{"border-bs":fe()}],"border-w-be":[{"border-be":fe()}],"border-w-t":[{"border-t":fe()}],"border-w-r":[{"border-r":fe()}],"border-w-b":[{"border-b":fe()}],"border-w-l":[{"border-l":fe()}],"divide-x":[{"divide-x":fe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":fe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...le(),"hidden","none"]}],"divide-style":[{divide:[...le(),"hidden","none"]}],"border-color":[{border:N()}],"border-color-x":[{"border-x":N()}],"border-color-y":[{"border-y":N()}],"border-color-s":[{"border-s":N()}],"border-color-e":[{"border-e":N()}],"border-color-bs":[{"border-bs":N()}],"border-color-be":[{"border-be":N()}],"border-color-t":[{"border-t":N()}],"border-color-r":[{"border-r":N()}],"border-color-b":[{"border-b":N()}],"border-color-l":[{"border-l":N()}],"divide-color":[{divide:N()}],"outline-style":[{outline:[...le(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,_e,je]}],"outline-w":[{outline:["",Ge,Lo,ts]}],"outline-color":[{outline:N()}],shadow:[{shadow:["","none",y,Fc,Dc]}],"shadow-color":[{shadow:N()}],"inset-shadow":[{"inset-shadow":["none",x,Fc,Dc]}],"inset-shadow-color":[{"inset-shadow":N()}],"ring-w":[{ring:fe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:N()}],"ring-offset-w":[{"ring-offset":[Ge,ts]}],"ring-offset-color":[{"ring-offset":N()}],"inset-ring-w":[{"inset-ring":fe()}],"inset-ring-color":[{"inset-ring":N()}],"text-shadow":[{"text-shadow":["none",w,Fc,Dc]}],"text-shadow-color":[{"text-shadow":N()}],opacity:[{opacity:[Ge,_e,je]}],"mix-blend":[{"mix-blend":[...Ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Ce()}],"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":Le()}],"mask-image-linear-to-pos":[{"mask-linear-to":Le()}],"mask-image-linear-from-color":[{"mask-linear-from":N()}],"mask-image-linear-to-color":[{"mask-linear-to":N()}],"mask-image-t-from-pos":[{"mask-t-from":Le()}],"mask-image-t-to-pos":[{"mask-t-to":Le()}],"mask-image-t-from-color":[{"mask-t-from":N()}],"mask-image-t-to-color":[{"mask-t-to":N()}],"mask-image-r-from-pos":[{"mask-r-from":Le()}],"mask-image-r-to-pos":[{"mask-r-to":Le()}],"mask-image-r-from-color":[{"mask-r-from":N()}],"mask-image-r-to-color":[{"mask-r-to":N()}],"mask-image-b-from-pos":[{"mask-b-from":Le()}],"mask-image-b-to-pos":[{"mask-b-to":Le()}],"mask-image-b-from-color":[{"mask-b-from":N()}],"mask-image-b-to-color":[{"mask-b-to":N()}],"mask-image-l-from-pos":[{"mask-l-from":Le()}],"mask-image-l-to-pos":[{"mask-l-to":Le()}],"mask-image-l-from-color":[{"mask-l-from":N()}],"mask-image-l-to-color":[{"mask-l-to":N()}],"mask-image-x-from-pos":[{"mask-x-from":Le()}],"mask-image-x-to-pos":[{"mask-x-to":Le()}],"mask-image-x-from-color":[{"mask-x-from":N()}],"mask-image-x-to-color":[{"mask-x-to":N()}],"mask-image-y-from-pos":[{"mask-y-from":Le()}],"mask-image-y-to-pos":[{"mask-y-to":Le()}],"mask-image-y-from-color":[{"mask-y-from":N()}],"mask-image-y-to-color":[{"mask-y-to":N()}],"mask-image-radial":[{"mask-radial":[_e,je]}],"mask-image-radial-from-pos":[{"mask-radial-from":Le()}],"mask-image-radial-to-pos":[{"mask-radial-to":Le()}],"mask-image-radial-from-color":[{"mask-radial-from":N()}],"mask-image-radial-to-color":[{"mask-radial-to":N()}],"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":F()}],"mask-image-conic-pos":[{"mask-conic":[Ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":Le()}],"mask-image-conic-to-pos":[{"mask-conic-to":Le()}],"mask-image-conic-from-color":[{"mask-conic-from":N()}],"mask-image-conic-to-color":[{"mask-conic-to":N()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:K()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:ne()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",_e,je]}],filter:[{filter:["","none",_e,je]}],blur:[{blur:We()}],brightness:[{brightness:[Ge,_e,je]}],contrast:[{contrast:[Ge,_e,je]}],"drop-shadow":[{"drop-shadow":["","none",E,Fc,Dc]}],"drop-shadow-color":[{"drop-shadow":N()}],grayscale:[{grayscale:["",Ge,_e,je]}],"hue-rotate":[{"hue-rotate":[Ge,_e,je]}],invert:[{invert:["",Ge,_e,je]}],saturate:[{saturate:[Ge,_e,je]}],sepia:[{sepia:["",Ge,_e,je]}],"backdrop-filter":[{"backdrop-filter":["","none",_e,je]}],"backdrop-blur":[{"backdrop-blur":We()}],"backdrop-brightness":[{"backdrop-brightness":[Ge,_e,je]}],"backdrop-contrast":[{"backdrop-contrast":[Ge,_e,je]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ge,_e,je]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ge,_e,je]}],"backdrop-invert":[{"backdrop-invert":["",Ge,_e,je]}],"backdrop-opacity":[{"backdrop-opacity":[Ge,_e,je]}],"backdrop-saturate":[{"backdrop-saturate":[Ge,_e,je]}],"backdrop-sepia":[{"backdrop-sepia":["",Ge,_e,je]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":H()}],"border-spacing-x":[{"border-spacing-x":H()}],"border-spacing-y":[{"border-spacing-y":H()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",_e,je]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ge,"initial",_e,je]}],ease:[{ease:["linear","initial",A,_e,je]}],delay:[{delay:[Ge,_e,je]}],animate:[{animate:["none",T,_e,je]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[_,_e,je]}],"perspective-origin":[{"perspective-origin":L()}],rotate:[{rotate:$e()}],"rotate-x":[{"rotate-x":$e()}],"rotate-y":[{"rotate-y":$e()}],"rotate-z":[{"rotate-z":$e()}],scale:[{scale:rt()}],"scale-x":[{"scale-x":rt()}],"scale-y":[{"scale-y":rt()}],"scale-z":[{"scale-z":rt()}],"scale-3d":["scale-3d"],skew:[{skew:bt()}],"skew-x":[{"skew-x":bt()}],"skew-y":[{"skew-y":bt()}],transform:[{transform:[_e,je,"","none","gpu","cpu"]}],"transform-origin":[{origin:L()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ht()}],"translate-x":[{"translate-x":Ht()}],"translate-y":[{"translate-y":Ht()}],"translate-z":[{"translate-z":Ht()}],"translate-none":["translate-none"],accent:[{accent:N()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:N()}
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",_e,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":H()}],"scroll-mx":[{"scroll-mx":H()}],"scroll-my":[{"scroll-my":H()}],"scroll-ms":[{"scroll-ms":H()}],"scroll-me":[{"scroll-me":H()}],"scroll-mbs":[{"scroll-mbs":H()}],"scroll-mbe":[{"scroll-mbe":H()}],"scroll-mt":[{"scroll-mt":H()}],"scroll-mr":[{"scroll-mr":H()}],"scroll-mb":[{"scroll-mb":H()}],"scroll-ml":[{"scroll-ml":H()}],"scroll-p":[{"scroll-p":H()}],"scroll-px":[{"scroll-px":H()}],"scroll-py":[{"scroll-py":H()}],"scroll-ps":[{"scroll-ps":H()}],"scroll-pe":[{"scroll-pe":H()}],"scroll-pbs":[{"scroll-pbs":H()}],"scroll-pbe":[{"scroll-pbe":H()}],"scroll-pt":[{"scroll-pt":H()}],"scroll-pr":[{"scroll-pr":H()}],"scroll-pb":[{"scroll-pb":H()}],"scroll-pl":[{"scroll-pl":H()}],"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",_e,je]}],fill:[{fill:["none",...N()]}],"stroke-w":[{stroke:[Ge,Lo,ts,jb]}],stroke:[{stroke:["none",...N()]}],"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"]}},ZR=TR(QR);function Re(...e){return ZR(Cw(e))}const XR=G2,Kw=v.forwardRef(({className:e,...n},r)=>o.jsx(bw,{ref:r,className:Re("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),...n}));Kw.displayName=bw.displayName;const WR=ll("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"}}),Qw=v.forwardRef(({className:e,variant:n,...r},s)=>o.jsx(ww,{ref:s,className:Re(WR({variant:n}),e),...r}));Qw.displayName=ww.displayName;const JR=v.forwardRef(({className:e,...n},r)=>o.jsx(Ew,{ref:r,className:Re("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),...n}));JR.displayName=Ew.displayName;const Zw=v.forwardRef(({className:e,...n},r)=>o.jsx(Sw,{ref:r,className:Re("absolute right-2 top-2 rounded-md p-1 text-muted-foreground opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-destructive-foreground group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-status-error group-[.destructive]:focus:ring-offset-destructive",e),"toast-close":"",...n,children:o.jsx(cl,{className:"h-4 w-4"})}));Zw.displayName=Sw.displayName;const Xw=v.forwardRef(({className:e,...n},r)=>o.jsx(jw,{ref:r,className:Re("text-sm font-semibold",e),...n}));Xw.displayName=jw.displayName;const Ww=v.forwardRef(({className:e,...n},r)=>o.jsx(_w,{ref:r,className:Re("text-sm opacity-90",e),...n}));Ww.displayName=_w.displayName;function eO(){const{toasts:e}=_a();
vendor: 5,805 bytes, line 9
9return o.jsxs(XR,{children:[e.map(function({id:n,title:r,description:s,action:l,...u}){return o.jsxs(Qw,{...u,children:[o.jsxs("div",{className:"grid gap-1",children:[r&&o.jsx(Xw,{children:r}),s&&o.jsx(Ww,{children:s})]}),l,o.jsx(Zw,{})]},n)}),o.jsx(Kw,{})]})}var tO=_u[" useId ".trim().toString()]||(()=>{}),nO=0;function Yn(e){const[n,r]=v.useState(tO());return Kt(()=>{r(s=>s??String(nO++))},[e]),n?`radix-${n}`:""}const aO=["top","right","bottom","left"],Or=Math.min,Mn=Math.max,tu=Math.round,Lc=Math.floor,xa=e=>({x:e,y:e}),rO={left:"right",right:"left",bottom:"top",top:"bottom"};function lm(e,n,r){return Mn(e,Or(n,r))}function Ha(e,n){return typeof e=="function"?e(n):e}function Ba(e){return e.split("-")[0]}function Ri(e){return e.split("-")[1]}function ep(e){return e==="x"?"y":"x"}function tp(e){return e==="y"?"height":"width"}function va(e){const n=e[0];return n==="t"||n==="b"?"y":"x"}function np(e){return ep(va(e))}function sO(e,n,r){r===void 0&&(r=!1);const s=Ri(e),l=np(e),u=tp(l);let f=l==="x"?s===(r?"end":"start")?"right":"left":s==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(f=nu(f)),[f,nu(f)]}function iO(e){const n=nu(e);return[cm(e),n,cm(n)]}function cm(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Sb=["left","right"],Nb=["right","left"],oO=["top","bottom"],lO=["bottom","top"];function cO(e,n,r){switch(e){case"top":case"bottom":return r?n?Nb:Sb:n?Sb:Nb;case"left":case"right":return n?oO:lO;default:return[]}}function uO(e,n,r,s){const l=Ri(e);let u=cO(Ba(e),r==="start",s);return l&&(u=u.map(f=>f+"-"+l),n&&(u=u.concat(u.map(cm)))),u}function nu(e){const n=Ba(e);return rO[n]+e.slice(n.length)}function dO(e){return{top:0,right:0,bottom:0,left:0,...e}}function Jw(e){return typeof e!="number"?dO(e):{top:e,right:e,bottom:e,left:e}}function au(e){const{x:n,y:r,width:s,height:l}=e;return{width:s,height:l,top:r,left:n,right:n+s,bottom:r+l,x:n,y:r}}function Cb(e,n,r){let{reference:s,floating:l}=e;const u=va(n),f=np(n),h=tp(f),p=Ba(n),g=u==="y",y=s.x+s.width/2-l.width/2,x=s.y+s.height/2-l.height/2,w=s[h]/2-l[h]/2;let E;switch(p){case"top":E={x:y,y:s.y-l.height};break;case"bottom":E={x:y,y:s.y+s.height};break;case"right":E={x:s.x+s.width,y:x};break;case"left":E={x:s.x-l.width,y:x};break;default:E={x:s.x,y:s.y}}switch(Ri(n)){case"start":E[f]-=w*(r&&g?-1:1);break;case"end":E[f]+=w*(r&&g?-1:1);break}return E}async function fO(e,n){var r;n===void 0&&(n={});const{x:s,y:l,platform:u,rects:f,elements:h,strategy:p}=e,{boundary:g="clippingAncestors",rootBoundary:y="viewport",elementContext:x="floating",altBoundary:w=!1,padding:E=0}=Ha(n,e),C=Jw(E),S=h[w?x==="floating"?"reference":"floating":x],A=au(await u.getClippingRect({element:(r=await(u.isElement==null?void 0:u.isElement(S)))==null||r?S:S.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(h.floating)),boundary:g,rootBoundary:y,strategy:p})),T=x==="floating"?{x:s,y:l,width:f.floating.width,height:f.floating.height}:f.reference,M=await(u.getOffsetParent==null?void 0:u.getOffsetParent(h.floating)),F=await(u.isElement==null?void 0:u.isElement(M))?await(u.getScale==null?void 0:u.getScale(M))||{x:1,y:1}:{x:1,y:1},L=au(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:T,offsetParent:M,strategy:p}):T);return{top:(A.top-L.top+C.top)/F.y,bottom:(L.bottom-A.bottom+C.bottom)/F.y,left:(A.left-L.left+C.left)/F.x,right:(L.right-A.right+C.right)/F.x}}const hO=50,mO=async(e,n,r)=>{const{placement:s="bottom",strategy:l="absolute",middleware:u=[],platform:f}=r,h=f.detectOverflow?f:{...f,detectOverflow:fO},p=await(f.isRTL==null?void 0:f.isRTL(n));let g=await f.getElementRects({reference:e,floating:n,strategy:l}),{x:y,y:x}=Cb(g,s,p),w=s,E=0;const C={};for(let _=0;_<u.length;_++){const S=u[_];if(!S)continue;const{name:A,fn:T}=S,{x:M,y:F,data:L,reset:z}=await T({x:y,y:x,initialPlacement:s,placement:w,strategy:l,middlewareData:C,rects:g,platform:h,elements:{reference:e,floating:n}});y=M??y,x=F??x,C[A]={...C[A],...L},z&&E<hO&&(E++,typeof z=="object"&&(z.placement&&(w=z.placement),z.rects&&(g=z.rects===!0?await f.getElementRects({reference:e,floating:n,strategy:l}):z.rects),{x:y,y:x}=Cb(g,w,p)),_=-1)}return{x:y,y:x,placement:w,strategy:l,middlewareData:C}},pO=e=>({name:"arrow",options:e,async fn(n){const{x:r,y:s,placement:l,rects:u,platform:f,elements:h,middlewareData:p}=n,{element:g,padding:y=0}=Ha(e,n)||{};if(g==null)return{};const x=Jw(y),w={x:r,y:s},E=np(l),C=tp(E),_=await f.getDimensions(g),S=E==="y",A=S?"top":"left",T=S?"bottom":"right",M=S?"clientHeight":"clientWidth",F=u.reference[C]+u.reference[E]-w[E]-u.floating[C],L=w[E]-u.reference[E],z=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let P=z?z[M]:0;(!P||!await(f.isElement==null?void 0:f.isElement(z)))&&(P=h.floating[M]||u.floating[C]);const H=F/2-L/2,ie=P/2-_[C]/2-1,pe=Or(x[A],ie),be=Or(x[T],ie),ee=pe,oe=P-_[C]-be,te=P/2-_[C]/2+H,de=lm(ee,te,oe),D=!p.arrow&&Ri(l)!=null&&te!==de&&u.reference[C]/2-(te<ee?pe:be)-_[C]/2<0,$=D?te<ee?te-ee:te-oe:0;return{[E]:w[E]+$,data:{[E]:de,centerOffset:te-de-$,...D&&{alignmentOffset:$}},reset:D}}}),gO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(n){var r,s;const{placement:l,middlewareData:u,rects:f,initialPlacement:h,platform:p,elements:g}=n,{mainAxis:y=!0,crossAxis:x=!0,fallbackPlacements:w,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:_=!0,...S}=Ha(e,n);if((r=u.arrow)!=null&&r.alignmentOffset)return{};const A=Ba(l),T=va(h),M=Ba(h)===h,F=await(p.isRTL==null?void 0:p.isRTL(g.floating)),L=w||(M||!_?[nu(h)]:iO(h)),z=C!=="none";!w&&z&&L.push(...uO(h,_,C,F));const P=[h,...L],H=await p.detectOverflow(n,S),ie=[];let pe=((s=u.flip)==null?void 0:s.overflows)||[];
vendor: 4,240 bytes, line 9
9if(y&&ie.push(H[A]),x){const te=sO(l,f,F);ie.push(H[te[0]],H[te[1]])}if(pe=[...pe,{placement:l,overflows:ie}],!ie.every(te=>te<=0)){var be,ee;const te=(((be=u.flip)==null?void 0:be.index)||0)+1,de=P[te];if(de&&(!(x==="alignment"?T!==va(de):!1)||pe.every(Z=>va(Z.placement)===T?Z.overflows[0]>0:!0)))return{data:{index:te,overflows:pe},reset:{placement:de}};let D=(ee=pe.filter($=>$.overflows[0]<=0).sort(($,Z)=>$.overflows[1]-Z.overflows[1])[0])==null?void 0:ee.placement;if(!D)switch(E){case"bestFit":{var oe;const $=(oe=pe.filter(Z=>{if(z){const J=va(Z.placement);return J===T||J==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(J=>J>0).reduce((J,N)=>J+N,0)]).sort((Z,J)=>Z[1]-J[1])[0])==null?void 0:oe[0];$&&(D=$);break}case"initialPlacement":D=h;break}if(l!==D)return{reset:{placement:D}}}return{}}}};function Tb(e,n){return{top:e.top-n.height,right:e.right-n.width,bottom:e.bottom-n.height,left:e.left-n.width}}function Ab(e){return aO.some(n=>e[n]>=0)}const yO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(n){const{rects:r,platform:s}=n,{strategy:l="referenceHidden",...u}=Ha(e,n);switch(l){case"referenceHidden":{const f=await s.detectOverflow(n,{...u,elementContext:"reference"}),h=Tb(f,r.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Ab(h)}}}case"escaped":{const f=await s.detectOverflow(n,{...u,altBoundary:!0}),h=Tb(f,r.floating);return{data:{escapedOffsets:h,escaped:Ab(h)}}}default:return{}}}}},ej=new Set(["left","top"]);async function vO(e,n){const{placement:r,platform:s,elements:l}=e,u=await(s.isRTL==null?void 0:s.isRTL(l.floating)),f=Ba(r),h=Ri(r),p=va(r)==="y",g=ej.has(f)?-1:1,y=u&&p?-1:1,x=Ha(n,e);let{mainAxis:w,crossAxis:E,alignmentAxis:C}=typeof x=="number"?{mainAxis:x,crossAxis:0,alignmentAxis:null}:{mainAxis:x.mainAxis||0,crossAxis:x.crossAxis||0,alignmentAxis:x.alignmentAxis};return h&&typeof C=="number"&&(E=h==="end"?C*-1:C),p?{x:E*y,y:w*g}:{x:w*g,y:E*y}}const xO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(n){var r,s;const{x:l,y:u,placement:f,middlewareData:h}=n,p=await vO(n,e);return f===((r=h.offset)==null?void 0:r.placement)&&(s=h.arrow)!=null&&s.alignmentOffset?{}:{x:l+p.x,y:u+p.y,data:{...p,placement:f}}}}},bO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(n){const{x:r,y:s,placement:l,platform:u}=n,{mainAxis:f=!0,crossAxis:h=!1,limiter:p={fn:A=>{let{x:T,y:M}=A;return{x:T,y:M}}},...g}=Ha(e,n),y={x:r,y:s},x=await u.detectOverflow(n,g),w=va(Ba(l)),E=ep(w);let C=y[E],_=y[w];if(f){const A=E==="y"?"top":"left",T=E==="y"?"bottom":"right",M=C+x[A],F=C-x[T];C=lm(M,C,F)}if(h){const A=w==="y"?"top":"left",T=w==="y"?"bottom":"right",M=_+x[A],F=_-x[T];_=lm(M,_,F)}const S=p.fn({...n,[E]:C,[w]:_});return{...S,data:{x:S.x-r,y:S.y-s,enabled:{[E]:f,[w]:h}}}}}},wO=function(e){return e===void 0&&(e={}),{options:e,fn(n){const{x:r,y:s,placement:l,rects:u,middlewareData:f}=n,{offset:h=0,mainAxis:p=!0,crossAxis:g=!0}=Ha(e,n),y={x:r,y:s},x=va(l),w=ep(x);let E=y[w],C=y[x];const _=Ha(h,n),S=typeof _=="number"?{mainAxis:_,crossAxis:0}:{mainAxis:0,crossAxis:0,..._};if(p){const M=w==="y"?"height":"width",F=u.reference[w]-u.floating[M]+S.mainAxis,L=u.reference[w]+u.reference[M]-S.mainAxis;E<F?E=F:E>L&&(E=L)}if(g){var A,T;const M=w==="y"?"width":"height",F=ej.has(Ba(l)),L=u.reference[x]-u.floating[M]+(F&&((A=f.offset)==null?void 0:A[x])||0)+(F?0:S.crossAxis),z=u.reference[x]+u.reference[M]+(F?0:((T=f.offset)==null?void 0:T[x])||0)-(F?S.crossAxis:0);C<L?C=L:C>z&&(C=z)}return{[w]:E,[x]:C}}}},jO=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(n){var r,s;const{placement:l,rects:u,platform:f,elements:h}=n,{apply:p=()=>{},...g}=Ha(e,n),y=await f.detectOverflow(n,g),x=Ba(l),w=Ri(l),E=va(l)==="y",{width:C,height:_}=u.floating;let S,A;x==="top"||x==="bottom"?(S=x,A=w===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(A=x,S=w==="end"?"top":"bottom");const T=_-y.top-y.bottom,M=C-y.left-y.right,F=Or(_-y[S],T),L=Or(C-y[A],M),z=!n.middlewareData.shift;let P=F,H=L;if((r=n.middlewareData.shift)!=null&&r.enabled.x&&(H=M),(s=n.middlewareData.shift)!=null&&s.enabled.y&&(P=T),z&&!w){const pe=Mn(y.left,0),be=Mn(y.right,0),ee=Mn(y.top,0),oe=Mn(y.bottom,0);
9E?H=C-2*(pe!==0||be!==0?pe+be:Mn(y.left,y.right)):P=_-2*(ee!==0||oe!==0?ee+oe:Mn(y.top,y.bottom))}await p({...n,availableWidth:H,availableHeight:P});const ie=await f.getDimensions(h.floating);return C!==ie.width||_!==ie.height?{reset:{rects:!0}}:{}}}};function Au(){return typeof window<"u"}function Oi(e){return tj(e)?(e.nodeName||"").toLowerCase():"#document"}function Dn(e){var n;return(e==null||(n=e.ownerDocument)==null?void 0:n.defaultView)||window}function Ea(e){var n;return(n=(tj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:n.documentElement}function tj(e){return Au()?e instanceof Node||e instanceof Dn(e).Node:!1}function sa(e){return Au()?e instanceof Element||e instanceof Dn(e).Element:!1}function Ya(e){return Au()?e instanceof HTMLElement||e instanceof Dn(e).HTMLElement:!1}function Rb(e){return!Au()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Dn(e).ShadowRoot}function ul(e){const{overflow:n,overflowX:r,overflowY:s,display:l}=ia(e);return/auto|scroll|overlay|hidden|clip/.test(n+s+r)&&l!=="inline"&&l!=="contents"}function _O(e){return/^(table|td|th)$/.test(Oi(e))}function Ru(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}const EO=/transform|translate|scale|rotate|perspective|filter/,SO=/paint|layout|strict|content/,ns=e=>!!e&&e!=="none";let kh;function ap(e){const n=sa(e)?ia(e):e;return ns(n.transform)||ns(n.translate)||ns(n.scale)||ns(n.rotate)||ns(n.perspective)||!rp()&&(ns(n.backdropFilter)||ns(n.filter))||EO.test(n.willChange||"")||SO.test(n.contain||"")}function NO(e){let n=Mr(e);for(;Ya(n)&&!xi(n);){if(ap(n))return n;if(Ru(n))return null;n=Mr(n)}return null}function rp(){return kh==null&&(kh=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),kh}function xi(e){return/^(html|body|#document)$/.test(Oi(e))}function ia(e){return Dn(e).getComputedStyle(e)}function Ou(e){return sa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mr(e){if(Oi(e)==="html")return e;const n=e.assignedSlot||e.parentNode||Rb(e)&&e.host||Ea(e);return Rb(n)?n.host:n}function nj(e){const n=Mr(e);return xi(n)?e.ownerDocument?e.ownerDocument.body:e.body:Ya(n)&&ul(n)?n:nj(n)}function Zo(e,n,r){var s;n===void 0&&(n=[]),r===void 0&&(r=!0);const l=nj(e),u=l===((s=e.ownerDocument)==null?void 0:s.body),f=Dn(l);if(u){const h=um(f);
vendor: 4,302 bytes, line 9
9return n.concat(f,f.visualViewport||[],ul(l)?l:[],h&&r?Zo(h):[])}else return n.concat(l,Zo(l,[],r))}function um(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function aj(e){const n=ia(e);let r=parseFloat(n.width)||0,s=parseFloat(n.height)||0;const l=Ya(e),u=l?e.offsetWidth:r,f=l?e.offsetHeight:s,h=tu(r)!==u||tu(s)!==f;return h&&(r=u,s=f),{width:r,height:s,$:h}}function sp(e){return sa(e)?e:e.contextElement}function pi(e){const n=sp(e);if(!Ya(n))return xa(1);const r=n.getBoundingClientRect(),{width:s,height:l,$:u}=aj(n);let f=(u?tu(r.width):r.width)/s,h=(u?tu(r.height):r.height)/l;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const CO=xa(0);function rj(e){const n=Dn(e);return!rp()||!n.visualViewport?CO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function TO(e,n,r){return n===void 0&&(n=!1),!r||n&&r!==Dn(e)?!1:n}function ls(e,n,r,s){n===void 0&&(n=!1),r===void 0&&(r=!1);const l=e.getBoundingClientRect(),u=sp(e);let f=xa(1);n&&(s?sa(s)&&(f=pi(s)):f=pi(e));const h=TO(u,r,s)?rj(u):xa(0);let p=(l.left+h.x)/f.x,g=(l.top+h.y)/f.y,y=l.width/f.x,x=l.height/f.y;if(u){const w=Dn(u),E=s&&sa(s)?Dn(s):s;let C=w,_=um(C);for(;_&&s&&E!==C;){const S=pi(_),A=_.getBoundingClientRect(),T=ia(_),M=A.left+(_.clientLeft+parseFloat(T.paddingLeft))*S.x,F=A.top+(_.clientTop+parseFloat(T.paddingTop))*S.y;p*=S.x,g*=S.y,y*=S.x,x*=S.y,p+=M,g+=F,C=Dn(_),_=um(C)}}return au({width:y,height:x,x:p,y:g})}function Mu(e,n){const r=Ou(e).scrollLeft;return n?n.left+r:ls(Ea(e)).left+r}function sj(e,n){const r=e.getBoundingClientRect(),s=r.left+n.scrollLeft-Mu(e,r),l=r.top+n.scrollTop;return{x:s,y:l}}function AO(e){let{elements:n,rect:r,offsetParent:s,strategy:l}=e;const u=l==="fixed",f=Ea(s),h=n?Ru(n.floating):!1;if(s===f||h&&u)return r;let p={scrollLeft:0,scrollTop:0},g=xa(1);const y=xa(0),x=Ya(s);if((x||!x&&!u)&&((Oi(s)!=="body"||ul(f))&&(p=Ou(s)),x)){const E=ls(s);g=pi(s),y.x=E.x+s.clientLeft,y.y=E.y+s.clientTop}const w=f&&!x&&!u?sj(f,p):xa(0);return{width:r.width*g.x,height:r.height*g.y,x:r.x*g.x-p.scrollLeft*g.x+y.x+w.x,y:r.y*g.y-p.scrollTop*g.y+y.y+w.y}}function RO(e){return Array.from(e.getClientRects())}function OO(e){const n=Ea(e),r=Ou(e),s=e.ownerDocument.body,l=Mn(n.scrollWidth,n.clientWidth,s.scrollWidth,s.clientWidth),u=Mn(n.scrollHeight,n.clientHeight,s.scrollHeight,s.clientHeight);let f=-r.scrollLeft+Mu(e);const h=-r.scrollTop;return ia(s).direction==="rtl"&&(f+=Mn(n.clientWidth,s.clientWidth)-l),{width:l,height:u,x:f,y:h}}const Ob=25;function MO(e,n){const r=Dn(e),s=Ea(e),l=r.visualViewport;let u=s.clientWidth,f=s.clientHeight,h=0,p=0;if(l){u=l.width,f=l.height;const y=rp();(!y||y&&n==="fixed")&&(h=l.offsetLeft,p=l.offsetTop)}const g=Mu(s);if(g<=0){const y=s.ownerDocument,x=y.body,w=getComputedStyle(x),E=y.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,C=Math.abs(s.clientWidth-x.clientWidth-E);C<=Ob&&(u-=C)}else g<=Ob&&(u+=g);return{width:u,height:f,x:h,y:p}}function kO(e,n){const r=ls(e,!0,n==="fixed"),s=r.top+e.clientTop,l=r.left+e.clientLeft,u=Ya(e)?pi(e):xa(1),f=e.clientWidth*u.x,h=e.clientHeight*u.y,p=l*u.x,g=s*u.y;return{width:f,height:h,x:p,y:g}}function Mb(e,n,r){let s;if(n==="viewport")s=MO(e,r);else if(n==="document")s=OO(Ea(e));else if(sa(n))s=kO(n,r);else{const l=rj(e);s={x:n.x-l.x,y:n.y-l.y,width:n.width,height:n.height}}return au(s)}function ij(e,n){const r=Mr(e);return r===n||!sa(r)||xi(r)?!1:ia(r).position==="fixed"||ij(r,n)}function DO(e,n){const r=n.get(e);if(r)return r;let s=Zo(e,[],!1).filter(h=>sa(h)&&Oi(h)!=="body"),l=null;const u=ia(e).position==="fixed";let f=u?Mr(e):e;for(;sa(f)&&!xi(f);){const h=ia(f),p=ap(f);!p&&h.position==="fixed"&&(l=null),(u?!p&&!l:!p&&h.position==="static"&&!!l&&(l.position==="absolute"||l.position==="fixed")||ul(f)&&!p&&ij(e,f))?s=s.filter(y=>y!==f):l=h,f=Mr(f)}return n.set(e,s),s}function FO(e){let{element:n,boundary:r,rootBoundary:s,strategy:l}=e;const f=[...r==="clippingAncestors"?Ru(n)?[]:DO(n,this._c):[].concat(r),s],h=Mb(n,f[0],l);let p=h.top,g=h.right,y=h.bottom,x=h.left;for(let w=1;w<f.length;w++){const E=Mb(n,f[w],l);p=Mn(E.top,p),g=Or(E.right,g),y=Or(E.bottom,y),x=Mn(E.left,x)}return{width:g-x,height:y-p,x,y:p}}function LO(e){const{width:n,height:r}=aj(e);return{width:n,height:r}}
vendor: 4,582 bytes, line 9
9function PO(e,n,r){const s=Ya(n),l=Ea(n),u=r==="fixed",f=ls(e,!0,u,n);let h={scrollLeft:0,scrollTop:0};const p=xa(0);function g(){p.x=Mu(l)}if(s||!s&&!u)if((Oi(n)!=="body"||ul(l))&&(h=Ou(n)),s){const E=ls(n,!0,u,n);p.x=E.x+n.clientLeft,p.y=E.y+n.clientTop}else l&&g();u&&!s&&l&&g();const y=l&&!s&&!u?sj(l,h):xa(0),x=f.left+h.scrollLeft-p.x-y.x,w=f.top+h.scrollTop-p.y-y.y;return{x,y:w,width:f.width,height:f.height}}function Dh(e){return ia(e).position==="static"}function kb(e,n){if(!Ya(e)||ia(e).position==="fixed")return null;if(n)return n(e);let r=e.offsetParent;return Ea(e)===r&&(r=r.ownerDocument.body),r}function oj(e,n){const r=Dn(e);if(Ru(e))return r;if(!Ya(e)){let l=Mr(e);for(;l&&!xi(l);){if(sa(l)&&!Dh(l))return l;l=Mr(l)}return r}let s=kb(e,n);for(;s&&_O(s)&&Dh(s);)s=kb(s,n);return s&&xi(s)&&Dh(s)&&!ap(s)?r:s||NO(e)||r}const zO=async function(e){const n=this.getOffsetParent||oj,r=this.getDimensions,s=await r(e.floating);return{reference:PO(e.reference,await n(e.floating),e.strategy),floating:{x:0,y:0,width:s.width,height:s.height}}};function qO(e){return ia(e).direction==="rtl"}const UO={convertOffsetParentRelativeRectToViewportRelativeRect:AO,getDocumentElement:Ea,getClippingRect:FO,getOffsetParent:oj,getElementRects:zO,getClientRects:RO,getDimensions:LO,getScale:pi,isElement:sa,isRTL:qO};function lj(e,n){return e.x===n.x&&e.y===n.y&&e.width===n.width&&e.height===n.height}function IO(e,n){let r=null,s;const l=Ea(e);function u(){var h;clearTimeout(s),(h=r)==null||h.disconnect(),r=null}function f(h,p){h===void 0&&(h=!1),p===void 0&&(p=1),u();const g=e.getBoundingClientRect(),{left:y,top:x,width:w,height:E}=g;if(h||n(),!w||!E)return;const C=Lc(x),_=Lc(l.clientWidth-(y+w)),S=Lc(l.clientHeight-(x+E)),A=Lc(y),M={rootMargin:-C+"px "+-_+"px "+-S+"px "+-A+"px",threshold:Mn(0,Or(1,p))||1};let F=!0;function L(z){const P=z[0].intersectionRatio;if(P!==p){if(!F)return f();P?f(!1,P):s=setTimeout(()=>{f(!1,1e-7)},1e3)}P===1&&!lj(g,e.getBoundingClientRect())&&f(),F=!1}try{r=new IntersectionObserver(L,{...M,root:l.ownerDocument})}catch{r=new IntersectionObserver(L,M)}r.observe(e)}return f(!0),u}function VO(e,n,r,s){s===void 0&&(s={});const{ancestorScroll:l=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:p=!1}=s,g=sp(e),y=l||u?[...g?Zo(g):[],...n?Zo(n):[]]:[];y.forEach(A=>{l&&A.addEventListener("scroll",r,{passive:!0}),u&&A.addEventListener("resize",r)});const x=g&&h?IO(g,r):null;let w=-1,E=null;f&&(E=new ResizeObserver(A=>{let[T]=A;T&&T.target===g&&E&&n&&(E.unobserve(n),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=E)==null||M.observe(n)})),r()}),g&&!p&&E.observe(g),n&&E.observe(n));let C,_=p?ls(e):null;p&&S();function S(){const A=ls(e);_&&!lj(_,A)&&r(),_=A,C=requestAnimationFrame(S)}return r(),()=>{var A;y.forEach(T=>{l&&T.removeEventListener("scroll",r),u&&T.removeEventListener("resize",r)}),x?.(),(A=E)==null||A.disconnect(),E=null,p&&cancelAnimationFrame(C)}}const HO=xO,BO=bO,GO=gO,$O=jO,YO=yO,Db=pO,KO=wO,QO=(e,n,r)=>{const s=new Map,l={platform:UO,...r},u={...l.platform,_c:s};return mO(e,n,{...l,platform:u})};var ZO=typeof document<"u",XO=function(){},$c=ZO?v.useLayoutEffect:XO;function ru(e,n){if(e===n)return!0;if(typeof e!=typeof n)return!1;if(typeof e=="function"&&e.toString()===n.toString())return!0;let r,s,l;if(e&&n&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!==n.length)return!1;for(s=r;s--!==0;)if(!ru(e[s],n[s]))return!1;return!0}if(l=Object.keys(e),r=l.length,r!==Object.keys(n).length)return!1;for(s=r;s--!==0;)if(!{}.hasOwnProperty.call(n,l[s]))return!1;for(s=r;s--!==0;){const u=l[s];if(!(u==="_owner"&&e.$$typeof)&&!ru(e[u],n[u]))return!1}return!0}return e!==e&&n!==n}function cj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Fb(e,n){const r=cj(e);return Math.round(n*r)/r}function Fh(e){const n=v.useRef(e);return $c(()=>{n.current=e}),n}function WO(e){e===void 0&&(e={});const{placement:n="bottom",strategy:r="absolute",middleware:s=[],platform:l,elements:{reference:u,floating:f}={},transform:h=!0,whileElementsMounted:p,open:g}=e,[y,x]=v.useState({x:0,y:0,strategy:r,placement:n,middlewareData:{},isPositioned:!1}),[w,E]=v.useState(s);ru(w,s)||E(s);const[C,_]=v.useState(null),[S,A]=v.useState(null),T=v.useCallback(Z=>{Z!==z.current&&(z.current=Z,_(Z))},[]),M=v.useCallback(Z=>{Z!==P.current&&(P.current=Z,A(Z))},[]),F=u||C,L=f||S,z=v.useRef(null),P=v.useRef(null),H=v.useRef(y),ie=p!=null,pe=Fh(p),be=Fh(l),ee=Fh(g),oe=v.useCallback(()=>
vendor: 5,313 bytes, line 9
9{if(!z.current||!P.current)return;const Z={placement:n,strategy:r,middleware:w};be.current&&(Z.platform=be.current),QO(z.current,P.current,Z).then(J=>{const N={...J,isPositioned:ee.current!==!1};te.current&&!ru(H.current,N)&&(H.current=N,Ci.flushSync(()=>{x(N)}))})},[w,n,r,be,ee]);$c(()=>{g===!1&&H.current.isPositioned&&(H.current.isPositioned=!1,x(Z=>({...Z,isPositioned:!1})))},[g]);const te=v.useRef(!1);$c(()=>(te.current=!0,()=>{te.current=!1}),[]),$c(()=>{if(F&&(z.current=F),L&&(P.current=L),F&&L){if(pe.current)return pe.current(F,L,oe);oe()}},[F,L,oe,pe,ie]);const de=v.useMemo(()=>({reference:z,floating:P,setReference:T,setFloating:M}),[T,M]),D=v.useMemo(()=>({reference:F,floating:L}),[F,L]),$=v.useMemo(()=>{const Z={position:r,left:0,top:0};if(!D.floating)return Z;const J=Fb(D.floating,y.x),N=Fb(D.floating,y.y);return h?{...Z,transform:"translate("+J+"px, "+N+"px)",...cj(D.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:J,top:N}},[r,h,D.floating,y.x,y.y]);return v.useMemo(()=>({...y,update:oe,refs:de,elements:D,floatingStyles:$}),[y,oe,de,D,$])}const JO=e=>{function n(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:e,fn(r){const{element:s,padding:l}=typeof e=="function"?e(r):e;return s&&n(s)?s.current!=null?Db({element:s.current,padding:l}).fn(r):{}:s?Db({element:s,padding:l}).fn(r):{}}}},eM=(e,n)=>{const r=HO(e);return{name:r.name,fn:r.fn,options:[e,n]}},tM=(e,n)=>{const r=BO(e);return{name:r.name,fn:r.fn,options:[e,n]}},nM=(e,n)=>({fn:KO(e).fn,options:[e,n]}),aM=(e,n)=>{const r=GO(e);return{name:r.name,fn:r.fn,options:[e,n]}},rM=(e,n)=>{const r=$O(e);return{name:r.name,fn:r.fn,options:[e,n]}},sM=(e,n)=>{const r=YO(e);return{name:r.name,fn:r.fn,options:[e,n]}},iM=(e,n)=>{const r=JO(e);return{name:r.name,fn:r.fn,options:[e,n]}};var oM="Arrow",uj=v.forwardRef((e,n)=>{const{children:r,width:s=10,height:l=5,...u}=e;return o.jsx(Me.svg,{...u,ref:n,width:s,height:l,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:o.jsx("polygon",{points:"0,0 30,0 15,10"})})});uj.displayName=oM;var lM=uj;function dj(e){const[n,r]=v.useState(void 0);return Kt(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const s=new ResizeObserver(l=>{if(!Array.isArray(l)||!l.length)return;const u=l[0];let f,h;if("borderBoxSize"in u){const p=u.borderBoxSize,g=Array.isArray(p)?p[0]:p;f=g.inlineSize,h=g.blockSize}else f=e.offsetWidth,h=e.offsetHeight;r({width:f,height:h})});return s.observe(e,{box:"border-box"}),()=>s.unobserve(e)}else r(void 0)},[e]),n}var ip="Popper",[fj,Mi]=Ln(ip),[cM,hj]=fj(ip),mj=e=>{const{__scopePopper:n,children:r}=e,[s,l]=v.useState(null);return o.jsx(cM,{scope:n,anchor:s,onAnchorChange:l,children:r})};mj.displayName=ip;var pj="PopperAnchor",gj=v.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:s,...l}=e,u=hj(pj,r),f=v.useRef(null),h=Je(n,f),p=v.useRef(null);return v.useEffect(()=>{const g=p.current;p.current=s?.current||f.current,g!==p.current&&u.onAnchorChange(p.current)}),s?null:o.jsx(Me.div,{...l,ref:h})});gj.displayName=pj;var op="PopperContent",[uM,dM]=fj(op),yj=v.forwardRef((e,n)=>{const{__scopePopper:r,side:s="bottom",sideOffset:l=0,align:u="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:p=!0,collisionBoundary:g=[],collisionPadding:y=0,sticky:x="partial",hideWhenDetached:w=!1,updatePositionStrategy:E="optimized",onPlaced:C,..._}=e,S=hj(op,r),[A,T]=v.useState(null),M=Je(n,le=>T(le)),[F,L]=v.useState(null),z=dj(F),P=z?.width??0,H=z?.height??0,ie=s+(u!=="center"?"-"+u:""),pe=typeof y=="number"?y:{top:0,right:0,bottom:0,left:0,...y},be=Array.isArray(g)?g:[g],ee=be.length>0,oe={padding:pe,boundary:be.filter(hM),altBoundary:ee},{refs:te,floatingStyles:de,placement:D,isPositioned:$,middlewareData:Z}=WO({strategy:"fixed",placement:ie,whileElementsMounted:(...le)=>VO(...le,{animationFrame:E==="always"}),elements:{reference:S.anchor},middleware:[eM({mainAxis:l+H,alignmentAxis:f}),p&&tM({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?nM():void 0,...oe}),p&&aM({...oe}),rM({...oe,apply:({elements:le,rects:Ce,availableWidth:Le,availableHeight:We})=>{const{width:$e,height:rt}=Ce.reference,bt=le.floating.style;bt.setProperty("--radix-popper-available-width",`${Le}px`),bt.setProperty("--radix-popper-available-height",`${We}px`),bt.setProperty("--radix-popper-anchor-width",`${$e}px`),bt.setProperty("--radix-popper-anchor-height",`${rt}px`)}}),F&&iM({element:F,padding:h}),mM({arrowWidth:P,arrowHeight:H}),w&&sM({strategy:"referenceHidden",...oe})]}),[J,N]=bj(D),K=jn(C);Kt(()=>{$&&K?.()},[$,K]);const re=Z.arrow?.x,ne=Z.arrow?.y,me=Z.arrow?.centerOffset!==0,[Se,fe]=v.useState();return Kt(()=>{A&&fe(window.getComputedStyle(A).zIndex)},[A]),o.jsx("div",{ref:te.setFloating,"data-radix-popper-content-wrapper":"",style:{...de,transform:$?de.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Se,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:o.jsx(uM,{scope:r,placedSide:J,onArrowChange:L,arrowX:re,arrowY:ne,shouldHideArrow:me,children:o.jsx(Me.div,{"data-side":J,"data-align":N,..._,ref:M,style:{..._.style,animation:$?void 0:"none"}})})})});yj.displayName=op;var vj="PopperArrow",fM={top:"bottom",right:"left",bottom:"top",left:"r
9ight"},xj=v.forwardRef(function(n,r){const{__scopePopper:s,...l}=n,u=dM(vj,s),f=fM[u.placedSide];return o.jsx("span",{ref:u.onArrowChange,style:{position:"absolute",left:u.arrowX,top:u.arrowY,[f]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[u.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[u.placedSide],visibility:u.shouldHideArrow?"hidden":void 0},children:o.jsx(lM,{...l,ref:r,style:{...l.style,display:"block"}})})});xj.displayName=vj;function hM(e){return e!==null}var mM=e=>({name:"transformOrigin",options:e,fn(n){const{placement:r,rects:s,middlewareData:l}=n,f=l.arrow?.centerOffset!==0,h=f?0:e.arrowWidth,p=f?0:e.arrowHeight,[g,y]=bj(r),x={start:"0%",center:"50%",end:"100%"}[y],w=(l.arrow?.x??0)+h/2,E=(l.arrow?.y??0)+p/2;let C="",_="";return g==="bottom"?(C=f?x:`${w}px`,_=`${-p}px`):g==="top"?(C=f?x:`${w}px`,_=`${s.floating.height+p}px`):g==="right"?(C=`${-p}px`,_=f?x:`${E}px`):g==="left"&&(C=`${s.floating.width+p}px`,_=f?x:`${E}px`),{data:{x:C,y:_}}}});function bj(e){const[n,r="center"]=e.split("-");return[n,r]}var wj=mj,lp=gj,cp=yj,up=xj,[ku]=Ln("Tooltip",[Mi]),dp=Mi(),jj="TooltipProvider",pM=700,Lb="tooltip.open",[gM,_j]=ku(jj),Ej=e=>{const{__scopeTooltip:n,delayDuration:r=pM,skipDelayDuration:s=300,disableHoverableContent:l=!1,children:u}=e,f=v.useRef(!0),h=v.useRef(!1),p=v.useRef(0);return v.useEffect(()=>{const g=p.current;return()=>window.clearTimeout(g)},[]),o.jsx(gM,{scope:n,isOpenDelayedRef:f,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(p.current),f.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>f.current=!0,s)},[s]),isPointerInTransitRef:h,onPointerInTransitChange:v.useCallback(g=>{h.current=g},[]),disableHoverableContent:l,children:u})};Ej.displayName=jj;var Sj="Tooltip",[wP,dl]=ku(Sj),dm="TooltipTrigger",yM=v.forwardRef((e,n)=>{const{__scopeTooltip:r,...s}=e,l=dl(dm,r),u=_j(dm,r),f=dp(r),h=v.useRef(null),p=Je(n,h,l.onTriggerChange),g=v.useRef(!1),y=v.useRef(!1),x=v.useCallback(()=>g.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",x),[x]),o.jsx(lp,{asChild:!0,...f,children:o.jsx(Me.button,{"aria-describedby":l.open?l.contentId:void 0,"data-state":l.stateAttribute,...s,ref:p,onPointerMove:ue(e.onPointerMove,w=>{w.pointerType!=="touch"&&!y.current&&!u.isPointerInTransitRef.current&&(l.onTriggerEnter(),y.current=!0)}),onPointerLeave:ue(e.onPointerLeave,()=>{l.onTriggerLeave(),y.current=!1}),onPointerDown:ue(e.onPointerDown,()=>{l.open&&l.onClose(),g.current=!0,document.addEventListener("pointerup",x,{once:!0})}),onFocus:ue(e.onFocus,()=>{g.current||l.onOpen()}),onBlur:ue(e.onBlur,l.onClose),onClick:ue(e.onClick,l.onClose)})})});yM.displayName=dm;var fp="TooltipPortal",[vM,xM]=ku(fp,{forceMount:void 0}),Nj=e=>{const{__scopeTooltip:n,forceMount:r,children:s,container:l}=e,u=dl(fp,n);return o.jsx(vM,{scope:n,forceMount:r,children:o.jsx(_n,{present:r||u.open,children:o.jsx(Ai,{asChild:!0,container:l,children:s})})})};Nj.displayName=fp;var bi="TooltipContent",Cj=v.forwardRef((e,n)=>{const r=xM(bi,e.__scopeTooltip),{forceMount:s=r.forceMount,side:l="top",...u}=e,f=dl(bi,e.__scopeTooltip);return o.jsx(_n,{present:s||f.open,children:f.disableHoverableContent?o.jsx(Tj,{side:l,...u,ref:n}):o.jsx(bM,{side:l,...u,ref:n})})}),bM=v.forwardRef((e,n)=>{const r=dl(bi,e.__scopeTooltip),s=_j(bi,e.__scopeTooltip),l=v.useRef(null),u=Je(n,l),[f,h]=v.useState(null),{trigger:p,onClose:g}=r,y=l.current,{onPointerInTransitChange:x}=s,w=v.useCallback(()=>{h(null),x(!1)},[x]),E=v.useCallback((C,_)=>{const S=C.currentTarget,A={x:C.clientX,y:C.clientY},T=SM(A,S.getBoundingClientRect()),M=NM(A,T),F=CM(_.getBoundingClientRect()),L=AM([...M,...F]);h(L),x(!0)},[x]);return v.useEffect(()=>()=>w(),[w]),v.useEffect(()=>{if(p&&y){const C=S=>E(S,y),_=S=>E(S,p);return p.addEventListener("pointerleave",C),y.addEventListener("pointerleave",_),()=>{p.removeEventListener("pointerleave",C),y.removeEventListener("pointerleave",_)}
vendor: 7,668 bytes, line 9
9}},[p,y,E,w]),v.useEffect(()=>{if(f){const C=_=>{const S=_.target,A={x:_.clientX,y:_.clientY},T=p?.contains(S)||y?.contains(S),M=!TM(A,f);T?w():M&&(w(),g())};return document.addEventListener("pointermove",C),()=>document.removeEventListener("pointermove",C)}},[p,y,f,g,w]),o.jsx(Tj,{...e,ref:u})}),[wM,jM]=ku(Sj,{isInside:!1}),_M=s2("TooltipContent"),Tj=v.forwardRef((e,n)=>{const{__scopeTooltip:r,children:s,"aria-label":l,onEscapeKeyDown:u,onPointerDownOutside:f,...h}=e,p=dl(bi,r),g=dp(r),{onClose:y}=p;return v.useEffect(()=>(document.addEventListener(Lb,y),()=>document.removeEventListener(Lb,y)),[y]),v.useEffect(()=>{if(p.trigger){const x=w=>{w.target?.contains(p.trigger)&&y()};return window.addEventListener("scroll",x,{capture:!0}),()=>window.removeEventListener("scroll",x,{capture:!0})}},[p.trigger,y]),o.jsx(Ti,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:x=>x.preventDefault(),onDismiss:y,children:o.jsxs(cp,{"data-state":p.stateAttribute,...g,...h,ref:n,style:{...h.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:[o.jsx(_M,{children:s}),o.jsx(wM,{scope:r,isInside:!0,children:o.jsx(C2,{id:p.contentId,role:"tooltip",children:l||s})})]})})});Cj.displayName=bi;var Aj="TooltipArrow",EM=v.forwardRef((e,n)=>{const{__scopeTooltip:r,...s}=e,l=dp(r);return jM(Aj,r).isInside?null:o.jsx(up,{...l,...s,ref:n})});EM.displayName=Aj;function SM(e,n){const r=Math.abs(n.top-e.y),s=Math.abs(n.bottom-e.y),l=Math.abs(n.right-e.x),u=Math.abs(n.left-e.x);switch(Math.min(r,s,l,u)){case u:return"left";case l:return"right";case r:return"top";case s:return"bottom";default:throw new Error("unreachable")}}function NM(e,n,r=5){const s=[];switch(n){case"top":s.push({x:e.x-r,y:e.y+r},{x:e.x+r,y:e.y+r});break;case"bottom":s.push({x:e.x-r,y:e.y-r},{x:e.x+r,y:e.y-r});break;case"left":s.push({x:e.x+r,y:e.y-r},{x:e.x+r,y:e.y+r});break;case"right":s.push({x:e.x-r,y:e.y-r},{x:e.x-r,y:e.y+r});break}return s}function CM(e){const{top:n,right:r,bottom:s,left:l}=e;return[{x:l,y:n},{x:r,y:n},{x:r,y:s},{x:l,y:s}]}function TM(e,n){const{x:r,y:s}=e;let l=!1;for(let u=0,f=n.length-1;u<n.length;f=u++){const h=n[u],p=n[f],g=h.x,y=h.y,x=p.x,w=p.y;y>s!=w>s&&r<(x-g)*(s-y)/(w-y)+g&&(l=!l)}return l}function AM(e){const n=e.slice();return n.sort((r,s)=>r.x<s.x?-1:r.x>s.x?1:r.y<s.y?-1:r.y>s.y?1:0),RM(n)}function RM(e){if(e.length<=1)return e.slice();const n=[];for(let s=0;s<e.length;s++){const l=e[s];for(;n.length>=2;){const u=n[n.length-1],f=n[n.length-2];if((u.x-f.x)*(l.y-f.y)>=(u.y-f.y)*(l.x-f.x))n.pop();else break}n.push(l)}n.pop();const r=[];for(let s=e.length-1;s>=0;s--){const l=e[s];for(;r.length>=2;){const u=r[r.length-1],f=r[r.length-2];if((u.x-f.x)*(l.y-f.y)>=(u.y-f.y)*(l.x-f.x))r.pop();else break}r.push(l)}return r.pop(),n.length===1&&r.length===1&&n[0].x===r[0].x&&n[0].y===r[0].y?n:n.concat(r)}var OM=Ej,MM=Nj,Rj=Cj;const kM=OM,DM=v.forwardRef(({className:e,sideOffset:n=4,...r},s)=>o.jsx(MM,{children:o.jsx(Rj,{ref:s,sideOffset:n,className:Re("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),...r})}));DM.displayName=Rj.displayName;const Pb={en:{"nav.home":"Home","nav.about_eft":"About EFT","nav.find_therapist":"Find a Therapist","nav.training":"Training","nav.resources":"Resources","nav.contact":"Contact","nav.about":"About GCCEFT","nav.get_help":"Get Help","nav.research":"Research","nav.certification":"Certification","nav.join_directory":"Join Directory","nav.login":"Sign In","nav.logout":"Sign Out","nav.admin":"Admin","hero.title":"Emotionally Focused Therapy in the Gulf","hero.subtitle":"A calm, trust-anchored clinical hub for the Gulf region â speaking to the heart, not just the mind.","hero.cta_primary":"Find a Therapist","hero.cta_secondary":"Learn About EFT","hero.trust_strip":"Serving the Gulf Cooperation Council","cta.find_therapist":"Find a Therapist","cta.learn_eft":"Learn About EFT","cta.professional_training":"Professional Training","cta.get_help":"Get Help","cta.view_all_therapists":"View All Therapists","cta.register_now":"Register Now","cta.view_all_events":"View All Events","cta.explore_resources":"Explore Resources","cta.contact_us":"Contact Us","home.pathway.public_title":"Seeking Support","home.pathway.public_desc":"Find a certified EFT therapist and begin your healing journey.","home.pathway.therapist_title":"For Professionals","home.pathway.therapist_desc":"Access training, supervision, and join the directory.","home.pathway.training_title":"Training & Certification","home.pathway.training_desc":"Build your EFT skills through ICEEFT-aligned intensive training.","home.eft.title":"What is EFT?","home.eft.desc":"Emotionally Focused Therapy is a structured approach to couples, family, and individual therapy based on attachment theory and the science of emotions.","home.eft.learn_more":"Learn More","about_eft.title":"About Emotionally Focused Therapy","about_eft.subtitle":"An attachment-based approach to healing emotional bonds and building resilient relationships.","about_eft.couples.title":"EFT for Couples (EFCT)","about_eft.couples.desc":"Helps partners identify and shift distressing interaction patterns, fostering deeper emotional connection.","about_eft.individuals.title":"EFT for Individuals (EFIT)","about_eft.individuals.desc":"Supports individuals in healing attachment wounds, reducing anxiety, depression, and trauma responses.","about_eft.families.title":"EFT for Families (EFFT)","about_eft.families.desc":"Strengthens parent-child bonds and improves family communication through an attachment lens.","about_eft.evidence.title":"Evidence-Informed Approach","about_eft.evidence.desc":"EFT is one of the most thoroughly researched approaches in couple and family therapy.","get_help.title":"Starting Your Journey","get_help.subtitle":"Taking the first step toward therapy can feel daunting. Here is what you can expect.","get_help.step1.title":"Understand EFT","get_help.step1.desc":"Learn what Emotionally Focused Therapy is and how it might help you.","get_help.step2.title":"Find a Therapist","get_help.step2.desc":"Browse our directory of certified EFT therapists across the GCC.","get_help.step3.title":"Book a Session","get_help.step3.desc":"Contact your chosen therapist to arrange an initial consultation.","get_help.faq.title":"Common Questions","get_help.faq.q1":"How long does EFT therapy typically take?","get_help.faq.a1":"EFT for couples typically takes 8â20 sessions. Individual EFT may vary depending on your goals and history.","get_help.faq.q2":"Is EFT suitable for everyone?","get_help.faq.a2":"EFT is effective for most adults. Your therapist will conduct an initial assessment to ensure it is a good fit.","get_help.faq.q3":"Can I access therapy online?","get_help.faq.a3":"Yes. Many of our therapists offer secure online sessions, making EFT accessible across the GCC.","get_help.faq.q4":"Is therapy confidential?","get_help.faq.a4":"Yes. Therapists in the GCC are bound by professional co
9des of ethics that protect your confidentiality.","training.title":"Professional Training","training.subtitle":"ICEEFT-aligned training for licensed mental health professionals. Build your EFT skills through intensive, experiential learning.","training.level1_title":"Level 1: EFT Externship","training.level1_desc":"A 3â4 day experiential introduction to the EFT model. Required first step toward ICEEFT certification.","training.level2_title":"Level 2: Core Skills","training.level2_desc":"Advanced training for those who have completed an Externship. Deepens clinical skills with live supervision.","training.supervision_title":"Certification Supervision","training.supervision_desc":"Required supervision hours for therapists pursuing ICEEFT certification.","training.all_levels":"All Levels","training.level1_filter":"Level 1 (Externship)","training.level2_filter":"Level 2 (Core Skills)","training.supervision_filter":"Supervision","training.no_events":"No upcoming events found for the selected filter.","training.cme_hours":"CME Hours","training.register":"Register","training.online":"Online","training.prerequisites":"Prerequisites","resources.title":"Resources","resources.subtitle":"Curated reading and learning materials on Emotionally Focused Therapy for the public and professionals.","resources.all":"All","resources.public":"For the Public","resources.professional":"For Professionals","resources.book":"Book","resources.article":"Article","resources.video":"Video","resources.access":"Access Resource","resources.no_access_link":"Available in libraries and bookstores","resources.filter_type":"Type","resources.filter_audience":"Audience","resources.arabic_available":"Available in Arabic","certification.title":"Certification","certification.subtitle":"The path to becoming an ICEEFT Certified EFT Therapist.","certification.step.externship":"Step 1: Externship","certification.step.core_skills":"Step 2: Core Skills","certification.step.supervision":"Step 3: Supervision","certification.step.certification":"Step 4: Certification","research.title":"Research & Evidence","research.subtitle":"EFT is one of the most thoroughly researched approaches in couple and family therapy.","about.title":"About GCCEFT","about.subtitle":"A regional hub for Emotionally Focused Therapy in the Gulf Cooperation Council.","about.mission":"Our Mission","about.mission_desc":"To make evidence-informed, attachment-based therapy accessible to individuals, couples, and families across the GCC.","contact.title":"Contact Us","contact.subtitle":"We welcome enquiries from members of the public and professionals alike.","contact.inquiry_type":"Inquiry Type","contact.first_name":"First Name","contact.last_name":"Last Name","contact.email":"Email Address","contact.subject":"Subject","contact.message":"Message","contact.submit":"Send Message","contact.success":"Thank you â we will be in touch soon.","contact.inquiry.general":"General Enquiry","contact.
9inquiry.therapist":"Finding a Therapist","contact.inquiry.training":"Training & Certification","contact.inquiry.media":"Media / Press","contact.inquiry.other":"Other","admin.title":"Admin Dashboard","admin.stats.therapists":"Approved Therapists","admin.stats.pending":"Pending Applications","admin.stats.events":"Training Events","admin.stats.resources":"Resources","admin.pending.title":"Pending Applications","admin.pending.approve":"Approve","admin.pending.reject":"Reject","admin.pending.none":"No pending applications","admin.events.title":"Training Events","admin.events.add":"Add Event","admin.resources.title":"Resources","admin.resources.add":"Add Resource","admin.sign_in_required":"Please sign in to access the admin dashboard.","admin.sign_in":"Sign In","join.title":"Join the Therapist Directory","join.subtitle":"Submit your profile for review. Approved listings are visible to the public.","join.submit":"Submit Profile","login.title":"Sign In","login.subtitle":"Sign in to access the therapist directory and admin features.","filter.all_countries":"All countries","filter.any_language":"Any language","filter.all_modalities":"All modalities","filter.any_format":"Any format","filter.any_gender":"Any gender","filter.any_cert":"Any certification","filter.filters":"Filters","filter.clear":"Clear","filter.country":"Country","filter.language":"Language","filter.modality":"Modality","filter.format":"Format","filter.gender":"Gender","filter.iceeft_status":"ICEEFT Status","dir.found":"therapist found","dir.found_plural":"therapists found","dir.no_results":"No therapists found","dir.adjust_filters":"Try adjusting your filters.","dir.browse_intro":"Browse certified EFT therapists across the GCC. Filter by location, specialty, and more.","dir.coming_soon":"Our therapist directory is coming soon.","dir.coming_soon_contact":"If you are a certified EFT therapist practicing in the Gulf region, contact us to be listed.","profile.credentials":"Credentials","profile.license_number":"License Number","profile.issuing_authority":"Issuing Authority","profile.modalities":"Specialties","profile.languages":"Languages","profile.format":"Practice Format","profile.areas":"Areas of Focus","profile.contact":"Contact This Therapist","footer.disclaimer":"GCCEFT is an informational directory and educational hub. It is not a provider of psychiatric care.","footer.iceeft":"ICEEFT Affiliated","footer.rights":"All rights reserved.","common.loading":"Loading...","common.back":"Back","common.learn_more":"Learn More","common.read_more":"Read More","common.close":"Close","common.save":"Save","common.cancel":"Cancel","common.delete":"Delete","common.edit":"Edit","home.eft.section_title":"What is Emotionally Focused Therapy?","home.eft.section_desc":"Emotionally Focused Therapy (EFT) is a structured, short-term approach to psychotherapy based on attachment science. It helps individuals, couples, and families identify negative interaction patterns, understand the underlying emotional needs, and create new, secure bonds of trust and connection.","home.eft.read_more":"Read more about EFT â","home.pathway.public_sub":"Connect with certified EFT therapists across the GCC region for couples, families, and individuals.","home.pathway.therapist_sub":"Discover how Emotionally Focused Therapy heals relational wounds and fosters secure attachments.","home.pathway.training_sub":"Join our ICEEFT-certified training programs and connect with a community of mental health professionals.","home.pathways.title":"How Can We Help You?","home.pathways.subtitle":"Whether you are seeking support, curious about EFT, or a professional looking to grow â we are here for you.","home.badge.evidence":"Evidence-Informed","home.badge.evidence_sub":"ICEEFT-aligned approach","home.eft.eyebrow":"About EFT","home.eft.point1":"Helps couples reconnect and break negative interaction cycles","home.eft.point2":"Supports individuals healing from anxiety, depression, and trauma","home.eft.point3":"Strengthens family bonds through attachment-focused care","home.quote.text":"People need to be loved and to know that love is there â especially when the road is hard.","home.quote.attribution":"Core insight of Emotionally Focused Therapy","home.stats.countries":"GCC Countries Served","home.stats.therapists":"Certified EFT Therapists","home.stats.years":"Years of EFT Research","home.stats.outcomes":"Positive Couple Outcomes","home.cta_bottom.title":"Ready to Take the First Step?","home.cta_bottom.desc":"Find an EFT therapist near you, or get in touch â we are here to help.","contact.sending":"Sending...","login.title_full":"Sign In to GCCEFT","login.desc":"Sign in to submit your therapist profile, access the professional directory, or manage platform resources.","login.cta":"Continue to Sign In","login.privacy":"Secure sign-in. Your privacy is protected.","join.sign_in_required":"Sign In Required","join.sign_in_required_desc":"You must be signed in to submit a therapist profile for the GCCEFT directory.","join.sign_in_cta":"Sign In to Continue","join.page_title":"Join the GCCEFT Directory","join.page_desc":"Submit your professional profile to be listed in the GCCEFT therapist directory. All applications are reviewed before approval.","join.section.personal":"Personal Information","join.section.credentials":"Regulatory Credentials","join.section.practice":"Practice Details","join.section.about":"About You","join.section.contact":"Contact Information","join.field.full_name":"Full Name","join.field.professional_title":"Professional Title","join.field.gender":"Gender","join.field.license_number":"License Number","join.field.issuing_authority":"Issuing Authority","join.field.iceeft_status":"ICEEFT Status","join.field.country":"Country","join.field.city":"City","join.field.practice_format":"Practice Format","join.field.modalities":"Modalities","join.field.languages":"Languages","join.field.bio":"Professional Bio","join.field.areas_of_focus":"Areas of Focus","join.field.contact_email":"Contact Email","join.field.contact_phone":"Contact Phone","join.field.website_url":"Website URL","join.field.select_all_apply":"(select all that apply)","join.submit_label":"Submit Profile for Review","join.submitting":"Submitting...","join.disclaimer":"By submitting, you confirm that all information is accurate and that you agree to GCCEFT's professional standards.","profile.back":"Back to Directory","profile.not_found":"Therapist not found","profile.visit_website":"Visit website","profile.about":"About","profile.iceeft_status":"ICEEFT Status","footer.for_public":"For the Public","footer.for_professionals":"For Professionals","footer.organisation":"Organisation","footer.tagline":"The regional hub for Emotionally Focused Therapy in the Gulf Cooperation Council.","contact.subtitle_full":"We welcome inquiries from the public, professionals, and partners.","contact.message_received":"Message Received","contact.message_received_desc":"Thank y
9ou for contacting GCCEFT. We aim to respond within 2â3 business days.","contact.send":"Send Message","contact.privacy":"Your information is kept confidential and used only to respond to your inquiry.","contact.inq.general":"General Inquiry","contact.inq.directory":"Therapist Directory Application","contact.inq.training":"Training Questions","contact.inq.partnership":"Partnership Proposal","contact.inq.media":"Media Request","contact.select_type":"Select inquiry type","contact.first_name_ph":"Your first name","contact.last_name_ph":"Your last name","contact.email_ph":"[email protected]","contact.subject_ph":"Brief subject line","contact.message_ph":"Your message...","contact.response_time":"Response Time","contact.response_days":"2â3 business days"},ar:{"nav.home":"Ø§ÙØ±Ø¦ÙØ³ÙØ©","nav.about_eft":"Ø¹Ù Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر","nav.find_therapist":"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬","nav.training":"Ø§ÙØªØ¯Ø±Ùب","nav.resources":"اÙÙ
صادر","nav.contact":"Ø§ØªØµÙ Ø¨ÙØ§","nav.about":"ع٠GCCEFT","nav.get_help":"Ø§ØØµÙ عÙ٠اÙÙ
ساعدة","nav.research":"Ø§ÙØ£Ø¨ØØ§Ø«","nav.certification":"Ø§ÙØ§Ø¹ØªÙ
اد","nav.join_directory":"Ø§ÙØ¶Ù
Ø¥ÙÙ Ø§ÙØ¯ÙÙÙ","nav.login":"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ","nav.logout":"تسجÙÙ Ø§ÙØ®Ø±Ùج","nav.admin":"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©","hero.title":"Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙ Ø§ÙØ®ÙÙØ¬","hero.subtitle":"Ù
Ø±ÙØ² Ø¥ÙÙÙÙÙÙÙ ÙØ§Ø¯Ø¦ ÙÙ
ÙØ«ÙÙ ÙÙ
ÙØ·ÙØ© Ø§ÙØ®ÙÙØ¬ â ÙØ®Ø§Ø·Ø¨ اÙÙÙØ¨ ÙÙÙØ³ Ø§ÙØ¹ÙÙ ÙÙØ·.","hero.cta_primary":"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬","hero.cta_secondary":"تعÙÙ
Ø¹Ù Ø§ÙØ¹Ùاج","hero.trust_strip":"ÙØ®Ø¯Ù
دÙÙ Ù
Ø¬ÙØ³ Ø§ÙØªØ¹Ø§ÙÙ Ø§ÙØ®ÙÙØ¬Ù","cta.find_therapist":"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬","cta.learn_eft":"تعÙÙ
Ø¹Ù Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر","cta.professional_training":"Ø§ÙØªØ¯Ø±Ùب اÙÙ
ÙÙÙ","cta.get_help":"Ø§ØØµÙ عÙ٠اÙÙ
ساعدة","cta.view_all_therapists":"عرض جÙ
ÙØ¹ اÙÙ
Ø¹Ø§ÙØ¬ÙÙ","cta.register_now":"Ø³Ø¬Ù Ø§ÙØ¢Ù","cta.view_all_events":"عرض جÙ
ÙØ¹ اÙÙØ¹Ø§ÙÙØ§Øª","cta.explore_resources":"Ø§Ø³ØªÙØ´Ù اÙÙ
صادر","cta.contact_us":"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§","home.pathway.public_title":"ØªØ¨ØØ« Ø¹Ù Ø§ÙØ¯Ø¹Ù
","home.pathway.public_desc":"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬ EFT Ù
عتÙ
د ÙØ§Ø¨Ø¯Ø£ رØÙØ© Ø§ÙØªØ¹Ø§ÙÙ.","home.pathway.therapist_title":"ÙÙÙ
ÙÙÙÙÙ","home.pathway.therapist_desc":"اÙÙØµÙ٠إÙÙ Ø§ÙØªØ¯Ø±Ùب ÙØ§ÙØ¥Ø´Ø±Ø§Ù ÙØ§ÙØ§ÙØ¶Ù
اÙ
Ø¥ÙÙ Ø§ÙØ¯ÙÙÙ.","home.pathway.training_title":"Ø§ÙØªØ¯Ø±Ùب ÙØ§ÙاعتÙ
اد","home.pathway.training_desc":"Ø·ÙÙØ± Ù
ÙØ§Ø±Ø§ØªÙ ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر Ù
Ù Ø®ÙØ§Ù ØªØ¯Ø±ÙØ¨ Ù
ÙØ«Ù.","home.eft.title":"Ù
ا ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعرØ","home.eft.desc":"Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙ ÙÙØ¬ Ø¹ÙØ§Ø¬Ù Ù
ÙØ¸Ù
ÙÙØ£Ø²Ùاج ÙØ§ÙØ¹Ø§Ø¦ÙØ§Øª ÙØ§ÙØ£ÙØ±Ø§Ø¯ ÙØ³ØªÙد Ø¥ÙÙ ÙØ¸Ø±ÙØ© Ø§ÙØªØ¹ÙÙ ÙØ¹ÙÙ
اÙÙ
شاعر.","home.eft.learn_more":"اعر٠اÙÙ
Ø²ÙØ¯","about_eft.title":"Ø¹Ù Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر","about_eft.subtitle":"ÙÙØ¬ ÙØ§Ø¦Ù
عÙÙ Ø§ÙØªØ¹ÙÙ ÙØ´Ùاء Ø§ÙØ±Ùابط Ø§ÙØ¹Ø§Ø·ÙÙØ© ÙØ¨Ùاء Ø¹ÙØ§Ùات صØÙØ©.","about_eft.couples.title":"Ø§ÙØ¹Ùاج ÙÙØ£Ø²Ùاج (EFCT)","about_eft.couples.desc":"ÙØ³Ø§Ø¹Ø¯ Ø§ÙØ´Ø±Ùاء عÙÙ ØªØØ¯Ùد Ø£ÙÙ
اط Ø§ÙØªÙاع٠اÙÙ
ؤÙÙ
Ø© ÙØªØºÙÙØ±ÙØ§Ø ÙØªØ¹Ø²Ùز Ø§ÙØªÙØ§ØµÙ Ø§ÙØ¹Ø§Ø·ÙÙ Ø§ÙØ¹Ù
ÙÙ.","about_eft.individuals.title":"Ø§ÙØ¹Ùاج ÙÙØ£Ùراد (EFIT)","about_eft.individuals.desc":"ÙØ¯Ø¹Ù
Ø§ÙØ£Ùراد ÙÙ Ø´ÙØ§Ø¡ Ø¬Ø±ÙØ Ø§ÙØªØ¹ÙÙØ ÙØ§ÙØØ¯ Ù
٠اÙÙÙÙ ÙØ§ÙØ§ÙØªØ¦Ø§Ø¨ ÙØ§Ø³ØªØ¬Ø§Ø¨Ø§Øª Ø§ÙØµØ¯Ù
Ø©.","about_eft.families.title":"Ø§ÙØ¹Ùاج ÙÙØ¹Ø§Ø¦Ùات (EFFT)","about_eft.families.desc":"ÙØ¹Ø²Ø² Ø±ÙØ§Ø¨Ø· اÙÙØ§ÙدÙÙ ÙØ§ÙØ·ÙÙ ÙÙØØ³Ù Ø§ÙØªÙØ§ØµÙ Ø§ÙØ£Ø³Ø±Ù Ù
Ù Ø®ÙØ§Ù Ù
ÙØ¸Ùر Ø§ÙØªØ¹ÙÙ.","about_eft.evidence.title":"ÙÙØ¬ ÙØ§Ø¦Ù
عÙÙ Ø§ÙØ£Ø¯ÙØ©","about_eft.evidence.desc":"ÙÙØ¹Ø¯Ù Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر Ù
Ù Ø£ÙØ«Ø± Ø§ÙØ£Ø³Ø§ÙÙØ¨ Ø§ÙØ¹ÙØ§Ø¬ÙØ© Ø¨ØØ«Ø§Ù ÙÙ Ø§ÙØ¹Ùاج Ø§ÙØ²ÙØ¬Ù ÙØ§ÙأسرÙ.","get_help.title":"Ø¨Ø¯Ø§ÙØ© رØÙتÙ","get_help.subtitle":"ÙØ¯ ØªØ¨Ø¯Ù Ø§ÙØ®Ø·ÙØ© Ø§ÙØ£ÙÙÙ ÙØÙ Ø§ÙØ¹Ùاج Ù
رÙÙØ©. Ø¥ÙÙÙ Ù
ا ÙÙ
ÙÙ٠تÙÙØ¹Ù.","get_help.step1.title":"تعرÙ٠عÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر","get_help.step1.desc":"تعÙÙÙ
Ù
ا ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙÙÙ ÙÙ
ÙÙ Ø£Ù ÙØ³Ø§Ø¹Ø¯Ù.","get_help.step2.title":"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬","get_help.step2.desc":"ØªØµÙØ دÙÙÙÙØ§ ÙÙ
Ø¹Ø§ÙØ¬Ù Ø§ÙØ¹Ùاج اÙÙ
عتÙ
دÙ٠عبر دÙÙ Ø§ÙØ®ÙÙØ¬.","get_help.step3.title":"Ø§ØØ¬Ø² Ø¬ÙØ³Ø©","get_help.step3.desc":"ØªÙØ§ØµÙ Ù
ع اÙÙ
Ø¹Ø§ÙØ¬ Ø§ÙØ°Ù Ø§Ø®ØªØ±ØªÙ ÙØªØ±ØªÙب استشارة Ø£ÙÙÙØ©.","get_help.faq.title":"Ø£Ø³Ø¦ÙØ© شائعة","get_help.faq.q1":"ÙÙ
ØªØ³ØªØºØ±Ù Ø¬ÙØ³Ø§Øª Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر عادةØ","get_help.faq.a1":"ÙØ³ØªØºØ±Ù Ø¹ÙØ§Ø¬ Ø§ÙØ£Ø²Ùاج عادة٠Ù
Ù 8 Ø¥ÙÙ 20 Ø¬ÙØ³Ø©. ÙØ¯ ÙØªÙØ§ÙØª Ø§ÙØ¹Ùاج اÙÙØ±Ø¯Ù ØØ³Ø¨ Ø£Ù
9داÙÙ ÙØªØ§Ø±ÙØ®Ù.","get_help.faq.q2":"ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر Ù
ÙØ§Ø³Ø¨ ÙÙØ¬Ù
ÙØ¹Ø","get_help.faq.a2":"Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙØ¹Ùا٠ÙÙ
عظÙ
Ø§ÙØ¨Ø§ÙغÙÙ. سÙÙØ¬Ø±Ù Ù
Ø¹Ø§ÙØ¬Ù تÙÙÙÙ
ا٠أÙÙÙØ§Ù ÙÙØªØ£Ùد Ù
Ù Ù
ÙØ§Ø¡Ù
ØªÙ ÙØØ§ÙØªÙ.","get_help.faq.q3":"ÙÙ ÙÙ
ÙÙÙÙ Ø§ÙØØµÙ٠عÙÙ Ø¹ÙØ§Ø¬ عبر Ø§ÙØ¥ÙØªØ±ÙØªØ","get_help.faq.a3":"ÙØ¹Ù
. ÙØ«Ùر Ù
Ù Ù
Ø¹Ø§ÙØ¬ÙÙØ§ ÙÙØ¯Ù
ÙÙ Ø¬ÙØ³Ø§Øª Ø¢Ù
ÙØ© عبر Ø§ÙØ¥ÙØªØ±ÙØªØ Ù
Ù
ا ÙØªÙØ Ø§ÙÙØµÙ٠إÙÙ Ø§ÙØ¹Ùاج Ù٠جÙ
ÙØ¹ Ø£ÙØØ§Ø¡ Ø§ÙØ®ÙÙØ¬.","get_help.faq.q4":"ÙÙ Ø§ÙØ¹Ùاج Ø³Ø±ÙØ","get_help.faq.a4":"ÙØ¹Ù
. اÙÙ
Ø¹Ø§ÙØ¬ÙÙ ÙÙ Ø§ÙØ®ÙÙØ¬ Ù
ÙØªØ²Ù
Ù٠بÙÙØ§Ø¹Ø¯ Ø£Ø®ÙØ§ÙÙØ§Øª Ù
ÙÙÙØ© تØÙ
Ù Ø³Ø±ÙØªÙ.","training.title":"Ø§ÙØªØ¯Ø±Ùب اÙÙ
ÙÙÙ","training.subtitle":"ØªØ¯Ø±ÙØ¨ Ù
ØªÙØ§ÙÙ Ù
ع ICEEFT ÙÙÙ
ÙÙÙÙÙ Ø§ÙØµØÙÙ٠اÙÙÙØ³ÙÙ٠اÙÙ
رخصÙÙ. Ø·ÙÙØ± Ù
ÙØ§Ø±Ø§ØªÙ ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر.","training.level1_title":"اÙÙ
ستÙÙ Ø§ÙØ£ÙÙ: Ø§ÙØªØ¯Ø±Ùب Ø§ÙØªÙ
ÙÙØ¯Ù","training.level1_desc":"Ù
ÙØ¯Ù
Ø© ØªØ¬Ø±ÙØ¨ÙØ© Ù
ÙØ«ÙØ© 3-4 Ø£ÙØ§Ù
ÙÙÙ
ÙØ°Ø¬ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر. Ø§ÙØ®Ø·ÙØ© Ø§ÙØ£ÙÙ٠اÙÙ
Ø·ÙÙØ¨Ø© ÙØÙ Ø§Ø¹ØªÙ
اد ICEEFT.","training.level2_title":"اÙÙ
ستÙÙ Ø§ÙØ«Ø§ÙÙ: اÙÙ
ÙØ§Ø±Ø§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ©","training.level2_desc":"ØªØ¯Ø±ÙØ¨ Ù
ØªÙØ¯Ù
ÙÙ
٠أتÙ
ÙØ§ Ø§ÙØªØ¯Ø±Ùب Ø§ÙØªÙ
ÙÙØ¯Ù. ÙØ¹Ù
Ù٠اÙÙ
ÙØ§Ø±Ø§Øª Ø§ÙØ³Ø±ÙØ±ÙØ© Ù
ع إشرا٠Ù
باشر.","training.supervision_title":"Ø§ÙØ¥Ø´Ø±Ø§Ù ÙÙØ§Ø¹ØªÙ
اد","training.supervision_desc":"ساعات Ø§ÙØ¥Ø´Ø±Ø§Ù اÙÙ
Ø·ÙÙØ¨Ø© ÙÙÙ
Ø¹Ø§ÙØ¬ÙÙ Ø§ÙØ³Ø§Ø¹Ù٠إÙ٠اعتÙ
اد ICEEFT.","training.all_levels":"جÙ
ÙØ¹ اÙÙ
ستÙÙØ§Øª","training.level1_filter":"اÙÙ
ستÙÙ 1 (Ø§ÙØªÙ
ÙÙØ¯Ù)","training.level2_filter":"اÙÙ
ستÙÙ 2 (اÙÙ
ÙØ§Ø±Ø§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ©)","training.supervision_filter":"Ø§ÙØ¥Ø´Ø±Ø§Ù","training.no_events":"ÙØ§ ØªÙØ¬Ø¯ ÙØ¹Ø§ÙÙØ§Øª ÙØ§Ø¯Ù
Ø© ÙÙÙÙØªØ± اÙÙ
ØØ¯Ø¯.","training.cme_hours":"ساعات CME","training.register":"سجÙÙ Ø§ÙØ¢Ù","training.online":"عبر Ø§ÙØ¥ÙØªØ±ÙØª","training.prerequisites":"اÙÙ
ØªØ·ÙØ¨Ø§Øª Ø§ÙØ³Ø§Ø¨ÙØ©","resources.title":"اÙÙ
صادر","resources.subtitle":"Ù
ÙØ§Ø¯ ÙØ±Ø§Ø¡Ø© ÙØªØ¹ÙÙ
Ù
ختارة ØÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙØ¹Ù
ÙÙ
ÙØ§ÙÙ
ÙÙÙÙÙ.","resources.all":"اÙÙÙ","resources.public":"ÙÙØ¹Ù
ÙÙ
","resources.professional":"ÙÙÙ
ÙÙÙÙÙ","resources.book":"ÙØªØ§Ø¨","resources.article":"Ù
ÙØ§ÙØ©","resources.video":"ÙÙØ¯ÙÙ","resources.access":"اÙÙØµÙ٠إÙ٠اÙÙ
صدر","resources.no_access_link":"Ù
تÙÙØ± Ù٠اÙÙ
ÙØªØ¨Ø§Øª ÙØ§ÙÙ
ÙØªØ¨Ø§Øª","resources.filter_type":"اÙÙÙØ¹","resources.filter_audience":"Ø§ÙØ¬Ù
ÙÙØ±","resources.arabic_available":"Ù
تÙÙØ± Ø¨Ø§ÙØ¹Ø±Ø¨ÙØ©","certification.title":"Ø§ÙØ§Ø¹ØªÙ
اد","certification.subtitle":"Ù
سار Ø§ÙØØµÙ٠عÙÙ Ø´ÙØ§Ø¯Ø© ICEEFT ÙÙ
Ø¹Ø§ÙØ¬ Ù
عتÙ
د.","certification.step.externship":"Ø§ÙØ®Ø·ÙØ© 1: Ø§ÙØªØ¯Ø±Ùب Ø§ÙØªÙ
ÙÙØ¯Ù","certification.step.core_skills":"Ø§ÙØ®Ø·ÙØ© 2: اÙÙ
ÙØ§Ø±Ø§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ©","certification.step.supervision":"Ø§ÙØ®Ø·ÙØ© 3: Ø§ÙØ¥Ø´Ø±Ø§Ù","certification.step.certification":"Ø§ÙØ®Ø·ÙØ© 4: Ø§ÙØ§Ø¹ØªÙ
اد","research.title":"Ø§ÙØ£Ø¨ØØ§Ø« ÙØ§ÙØ£Ø¯ÙØ©","research.subtitle":"ÙÙØ¹Ø¯Ù Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر Ù
Ù Ø£ÙØ«Ø± Ø§ÙØ£Ø³Ø§ÙÙØ¨ Ø¨ØØ«Ø§Ù ÙÙ Ø§ÙØ¹Ùاج Ø§ÙØ²ÙØ¬Ù ÙØ§ÙأسرÙ.","about.title":"ع٠GCCEFT","about.subtitle":"Ù
Ø±ÙØ² Ø¥ÙÙÙÙ
Ù ÙÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر Ù٠دÙÙ Ù
Ø¬ÙØ³ Ø§ÙØªØ¹Ø§ÙÙ Ø§ÙØ®ÙÙØ¬Ù.","about.mission":"Ù
ÙÙ
ØªÙØ§","about.mission_desc":"Ø¬Ø¹Ù Ø§ÙØ¹Ùاج اÙÙØ§Ø¦Ù
عÙÙ Ø§ÙØ£Ø¯ÙØ© ÙØ§ÙÙ
Ø±ØªÙØ² عÙÙ Ø§ÙØªØ¹ÙÙ ÙÙ Ù
ØªÙØ§ÙÙ Ø§ÙØ£Ùراد ÙØ§ÙØ£Ø²ÙØ§Ø¬ ÙØ§ÙØ¹Ø§Ø¦ÙØ§Øª Ù٠جÙ
ÙØ¹ Ø£ÙØØ§Ø¡ Ù
ÙØ·ÙØ© Ø§ÙØ®ÙÙØ¬.","contact.title":"Ø§ØªØµÙ Ø¨ÙØ§","contact.subtitle":"ÙØ±ØØ¨ Ø¨Ø§Ø³ØªÙØ³Ø§Ø±Ø§Øª Ø£ÙØ±Ø§Ø¯ Ø§ÙØ¬Ù
ÙÙØ± ÙØ§ÙÙ
ÙÙÙÙ٠عÙÙ ØØ¯ÙÙ Ø³ÙØ§Ø¡.","contact.
9inquiry_type":"ÙÙØ¹ Ø§ÙØ§Ø³ØªÙسار","contact.first_name":"Ø§ÙØ§Ø³Ù
Ø§ÙØ£ÙÙ","contact.last_name":"اسÙ
Ø§ÙØ¹Ø§Ø¦ÙØ©","contact.email":"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","contact.subject":"اÙÙ
ÙØ¶Ùع","contact.message":"Ø§ÙØ±Ø³Ø§ÙØ©","contact.submit":"Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§ÙØ©","contact.success":"Ø´ÙØ±Ø§Ù ÙÙ â Ø³ÙØªÙØ§ØµÙ Ù
Ø¹Ù ÙØ±ÙباÙ.","contact.inquiry.general":"Ø§Ø³ØªÙØ³Ø§Ø± عاÙ
","contact.inquiry.therapist":"Ø§ÙØ¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬","contact.inquiry.training":"Ø§ÙØªØ¯Ø±Ùب ÙØ§ÙاعتÙ
اد","contact.inquiry.media":"Ø§ÙØ¥Ø¹ÙاÙ
/ Ø§ÙØµØØ§ÙØ©","contact.inquiry.other":"أخرÙ","admin.title":"ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©","admin.stats.therapists":"اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
عتÙ
دÙÙ","admin.stats.pending":"Ø§ÙØ·Ùبات اÙÙ
عÙÙØ©","admin.stats.events":"ÙØ¹Ø§ÙÙØ§Øª Ø§ÙØªØ¯Ø±Ùب","admin.stats.resources":"اÙÙ
صادر","admin.pending.title":"Ø§ÙØ·Ùبات اÙÙ
عÙÙØ©","admin.pending.approve":"Ù
ÙØ§ÙÙØ©","admin.pending.reject":"Ø±ÙØ¶","admin.pending.none":"ÙØ§ ØªÙØ¬Ø¯ Ø·ÙØ¨Ø§Øª Ù
عÙÙØ©","admin.events.title":"ÙØ¹Ø§ÙÙØ§Øª Ø§ÙØªØ¯Ø±Ùب","admin.events.add":"Ø¥Ø¶Ø§ÙØ© ÙØ¹Ø§ÙÙØ©","admin.resources.title":"اÙÙ
صادر","admin.resources.add":"Ø¥Ø¶Ø§ÙØ© Ù
صدر","admin.sign_in_required":"ÙØ±Ø¬Ù تسجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙÙÙØµÙ٠إÙÙ ÙÙØØ© Ø§ÙØ¥Ø¯Ø§Ø±Ø©.","admin.sign_in":"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ","join.title":"Ø§ÙØ¶Ù
Ø¥Ù٠دÙÙ٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ","join.subtitle":"أرس٠Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ ÙÙÙ
راجعة. اÙÙÙØ§Ø¦Ù
اÙÙ
عتÙ
دة Ù
Ø±Ø¦ÙØ© ÙÙØ¹Ù
ÙÙ
.","join.submit":"إرسا٠اÙÙ
ÙÙ Ø§ÙØ´Ø®ØµÙ","login.title":"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ","login.subtitle":"سجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙÙÙØµÙ٠إÙ٠دÙÙ٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ ÙÙ
ÙØ²Ø§Øª Ø§ÙØ¥Ø¯Ø§Ø±Ø©.","filter.all_countries":"جÙ
ÙØ¹ Ø§ÙØ¯ÙÙ","filter.any_language":"Ø£Ù ÙØºØ©","filter.all_modalities":"جÙ
ÙØ¹ Ø§ÙØªØ®ØµØµØ§Øª","filter.any_format":"Ø£Ù ØµÙØºØ©","filter.any_gender":"Ø£Ù Ø¬ÙØ³","filter.any_cert":"Ø£Ù Ø´ÙØ§Ø¯Ø©","filter.filters":"اÙÙ
Ø±Ø´ØØ§Øª","filter.clear":"Ù
سØ","filter.country":"Ø§ÙØ¯ÙÙØ©","filter.language":"اÙÙØºØ©","filter.modality":"Ø§ÙØªØ®ØµØµ","filter.format":"Ø§ÙØµÙغة","filter.gender":"Ø§ÙØ¬Ùس","filter.iceeft_status":"Ù
ستÙÙ ICEEFT","dir.found":"Ù
Ø¹Ø§ÙØ¬ Ù
ÙØ¬Ùد","dir.found_plural":"Ù
Ø¹Ø§ÙØ¬ÙÙ Ù
ÙØ¬ÙدÙÙ","dir.no_results":"ÙÙ
ÙØªÙ
Ø§ÙØ¹Ø«Ùر عÙÙ Ù
Ø¹Ø§ÙØ¬ÙÙ","dir.adjust_filters":"ØØ§Ù٠تعدÙ٠اÙÙ
Ø±Ø´ØØ§Øª.","dir.browse_intro":"ØªØµÙØ اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
عتÙ
دÙÙ ÙÙ Ù
جا٠EFT عبر دÙÙ Ø§ÙØ®ÙÙØ¬. ÙÙ
Ø¨Ø§ÙØªØµÙÙØ© ØØ³Ø¨ اÙÙ
ÙÙØ¹ ÙØ§Ùتخصص ÙØ§ÙÙ
Ø²ÙØ¯.","dir.coming_soon":"دÙÙ٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ ÙØ±ÙباÙ.","dir.coming_soon_contact":"Ø¥Ù ÙÙØª Ù
Ø¹Ø§ÙØ¬Ø§Ù Ù
عتÙ
دا٠ÙÙ Ù
جا٠EFT تÙ
ارس ÙÙ Ù
ÙØ·ÙØ© Ø§ÙØ®ÙÙØ¬Ø ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ ÙØ¥Ø¯Ø±Ø§Ø¬Ù ÙÙ Ø§ÙØ¯ÙÙÙ.","profile.credentials":"Ø¨ÙØ§Ùات Ø§ÙØ§Ø¹ØªÙ
اد","profile.license_number":"رÙÙ
Ø§ÙØªØ±Ø®Ùص","profile.issuing_authority":"Ø¬ÙØ© Ø§ÙØ¥ØµØ¯Ø§Ø±","profile.modalities":"Ø§ÙØªØ®ØµØµØ§Øª","profile.languages":"اÙÙØºØ§Øª","profile.format":"ØµÙØºØ© اÙÙ
Ù
ارسة","profile.areas":"Ù
Ø¬Ø§ÙØ§Øª Ø§ÙØ§ÙتÙ
اÙ
","profile.contact":"ØªÙØ§ØµÙ Ù
ع ÙØ°Ø§ اÙÙ
Ø¹Ø§ÙØ¬","footer.disclaimer":"GCCEFT Ù٠دÙÙÙ Ù
عÙÙÙ
ات٠ÙÙ
Ø±ÙØ² تعÙÙÙ
Ù. ÙØ§ ÙÙØ¯Ù
Ø±Ø¹Ø§ÙØ© ÙÙØ·Ø¨ اÙÙÙØ³Ù.","footer.iceeft":"Ù
ÙØªØ³Ø¨ ÙÙ ICEEFT","footer.rights":"جÙ
ÙØ¹ Ø§ÙØÙÙÙ Ù
ØÙÙØ¸Ø©.","common.loading":"Ø¬Ø§Ø±Ù Ø§ÙØªØÙ
ÙÙ...","common.back":"Ø±Ø¬ÙØ¹","common.learn_more":"اعر٠اÙÙ
Ø²ÙØ¯","common.read_more":"Ø§ÙØ±Ø£ اÙÙ
Ø²ÙØ¯","common.close":"Ø¥ØºÙØ§Ù","common.save":"ØÙظ","common.cancel":"Ø¥ÙØºØ§Ø¡","common.delete":"ØØ°Ù","common.edit":"تعدÙÙ","home.eft.section_title":"Ù
ا ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعرØ","home.eft.section_desc":"Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر (EFT) ÙÙ ÙÙØ¬ Ù
ÙØ¸Ù
ÙØµÙر اÙÙ
د٠ÙÙØ¹Ùاج اÙÙÙØ³Ù ÙØ³ØªÙد Ø¥Ù٠عÙÙ
Ø§ÙØªØ¹ÙÙ. ÙØ³Ø§Ø¹Ø¯ Ø§ÙØ£Ùراد ÙØ§ÙØ£Ø²ÙØ§Ø¬ ÙØ§ÙØ¹Ø§Ø¦ÙØ§Øª عÙÙ ØªØØ¯Ùد Ø£ÙÙ
اط Ø§ÙØªÙØ§Ø¹Ù Ø§ÙØ³ÙØ¨ÙØ© ÙÙÙÙ
Ø§ÙØ§ØØªÙاجات Ø§ÙØ¹Ø§Ø·ÙÙØ© اÙÙØ§Ù
ÙØ© ÙØ¨Ùاء Ø±ÙØ§Ø¨Ø· Ø¢Ù
ÙØ© Ø¬Ø¯ÙØ¯Ø© Ù
Ù Ø§ÙØ«ÙØ© ÙØ§ÙØªÙØ§ØµÙ.","home.eft.read_more":"Ø§ÙØ±Ø£ اÙÙ
Ø²ÙØ¯ Ø¹Ù Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر â","home.pathway.public_sub":"ØªÙØ§ØµÙ Ù
ع Ù
Ø¹Ø§ÙØ¬Ù EFT اÙÙ
عتÙ
دÙÙ ÙÙ Ù
ÙØ·ÙØ© Ø§ÙØ®ÙÙØ¬ ÙÙØ£Ø²Ùاج ÙØ§ÙØ¹Ø§Ø¦ÙØ§Øª ÙØ§ÙØ£ÙØ±Ø§Ø¯.","home.pathway.therapist_sub":"Ø§ÙØªØ´Ù ÙÙÙ ÙØ´ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر Ø¬Ø±ÙØ Ø§ÙØ¹ÙØ§ÙØ§Øª ÙÙØ¹Ø²Ø² Ø§ÙØ±Ùابط Ø§ÙØ¢Ù
ÙØ©.","home.pathway.training_sub":"Ø§ÙØ¶Ù
Ø¥Ù٠براÙ
Ø¬ÙØ§ Ø§ÙØªØ¯Ø±ÙØ¨ÙØ© اÙÙ
عتÙ
دة Ù
Ù ICEEFT ÙØªÙاص٠Ù
ع Ù
جتÙ
ع Ù
٠اÙÙ
ÙÙÙÙÙ Ø§ÙØµØÙÙÙ.","home.pathways.title":"ÙÙÙ ÙÙ
ÙÙÙØ§ Ù
Ø³Ø§Ø¹Ø¯ØªÙØ","home.pathways.subtitle":"Ø³ÙØ§Ø¡ ÙÙØª ØªØ¨ØØ« Ø¹Ù Ø§ÙØ¯Ø¹Ù
Ø Ø£Ù ØªØ³ØªÙØ´Ù Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
Ø´Ø§Ø¹Ø±Ø Ø£Ù Ù
ØØªØ±ÙÙØ§ ÙØ³Ø¹Ù Ø¥Ù٠اÙÙÙ
Ù â ÙØÙ ÙÙØ§ Ù
٠أجÙÙ.","home.badge.evidence":"Ù
بÙ٠عÙÙ Ø§ÙØ£Ø¯ÙØ©","home.badge.evidence_sub":"ÙÙØ¬ Ù
ØªÙØ§ÙÙ Ù
ع ICEEFT","home.eft.eyebrow":"Ø¹Ù Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر","home.eft.point1":"ÙØ³Ø§Ø¹Ø¯ Ø§ÙØ£Ø²Ùاج عÙÙ Ø§ÙØªÙاص٠Ù
Ø¬Ø¯Ø¯ÙØ§ ÙÙØ³Ø± Ø£ÙÙ
اط Ø§ÙØªÙØ§Ø¹Ù Ø§ÙØ³ÙØ¨ÙØ©","home.eft.point2":"ÙØ¯Ø¹Ù
Ø§ÙØ£Ùراد ÙÙ Ø§ÙØ´Ùاء Ù
٠اÙÙÙÙ ÙØ§ÙØ§ÙØªØ¦Ø§Ø¨ ÙØ§ÙصدÙ
ات","home.eft.point3":"ÙØ¹Ø²Ø² Ø§ÙØ±Ùابط Ø§ÙØ£Ø³Ø±ÙØ© Ù
Ù Ø®ÙØ§Ù Ø±Ø¹Ø§ÙØ© ÙØ§Ø¦Ù
Ø© عÙÙ ÙØ¸Ø±ÙØ© Ø§ÙØªØ¹ÙÙ","home.quote.text":"ÙØØªØ§Ø¬ اÙÙØ§Ø³ Ø¥Ù٠أ٠ÙÙØÙØ¨ÙÙØ§ ÙØ£Ù ÙØ¹ÙÙ
ÙØ§ Ø£Ù Ø§ÙØØ¨ Ù
ÙØ¬Ùد â Ø®Ø§ØµØ©Ù ØÙÙ ÙØµØ¹Ø¨ Ø§ÙØ·Ø±ÙÙ.","home.quote.attribution":"ÙÙØ±Ø© Ù
ØÙØ±ÙØ© ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر","home.stats.countries":"دÙÙ Ø§ÙØ®ÙÙØ¬ Ø§ÙØªÙ ÙØ®Ø¯Ù
ÙØ§","home.stats.therapists":"Ù
Ø¹Ø§ÙØ¬ EFT Ù
عتÙ
د","home.stats.years":"سÙÙØ§Øª Ù
Ù Ø£Ø¨ØØ§Ø« EFT","home.stats.outcomes":"ÙØªØ§Ø¦Ø¬ Ø¥ÙØ¬Ø§Ø¨ÙØ© ÙÙØ£Ø²Ùاج","home.cta_bottom.title":"ÙÙ Ø£ÙØª Ù
ستعد ÙØ§ØªØ®Ø§Ø° Ø§ÙØ®Ø·ÙØ© Ø§ÙØ£ÙÙÙØ","home.cta_bottom.desc":"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬ EFT باÙÙØ±Ø¨ Ù
ÙÙØ Ø£Ù ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ â ÙØÙ ÙÙØ§ ÙÙ
ساعدتÙ.","contact.sending":"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù...","login.title_full":"تسجÙÙ Ø§ÙØ¯Ø®Ù٠إÙÙ GCCEFT","login.desc":"سجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙØªÙدÙÙ
Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ ÙÙ
Ø¹Ø§ÙØ¬Ø Ø£Ù ÙÙÙØµÙ٠إÙÙ Ø§ÙØ¯ÙÙ٠اÙÙ
ÙÙÙØ أ٠إدارة Ù
ÙØ§Ø±Ø¯ اÙÙ
ÙØµØ©.","login.cta":"اÙÙ
تابعة ÙØªØ³Ø¬ÙÙ Ø§ÙØ¯Ø®ÙÙ","login.privacy":"تسجÙ٠دخÙ٠آÙ
Ù. Ø®ØµÙØµÙت٠Ù
ØÙ
ÙØ©.","join.sign_in_required":"Ù
Ø·ÙÙØ¨ تسجÙÙ Ø§ÙØ¯Ø®ÙÙ","join.sign_in_required_desc":"ÙØ¬Ø¨ عÙÙ٠تسجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙØªÙدÙÙ
Ù
ÙÙ Ù
Ø¹Ø§ÙØ¬ Ø¥Ù٠دÙÙÙ GCCEFT.","join.sign_in_cta":"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙÙÙ
تابعة","join.page_title":"Ø§ÙØ¶Ù
Ø¥Ù٠دÙÙÙ GCCEFT","join.page_desc":"أرس٠Ù
ÙÙ٠اÙÙ
ÙÙÙ ÙØ¥Ø¯Ø±Ø§Ø¬Ù Ù٠دÙÙÙ Ù
Ø¹Ø§ÙØ¬Ù GCCEFT. جÙ
ÙØ¹ Ø§ÙØ·Ùبات تخضع ÙÙÙ
راجعة ÙØ¨Ù اÙÙ
ÙØ§ÙÙØ©.","join.section.personal":"اÙÙ
عÙÙÙ
ات Ø§ÙØ´Ø®ØµÙØ©","join.section.credentials":"Ø§ÙØ§Ø¹ØªÙ
ادات Ø§ÙØªÙظÙÙ
ÙØ©","join.section.practice":"ØªÙØ§ØµÙ٠اÙÙ
Ù
ارسة","join.section.about":"عÙÙ","join.section.contact":"Ù
عÙÙÙ
ات Ø§ÙØ§ØªØµØ§Ù","join.field.full_name":"Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù","join.field.professional_title":"اÙÙÙØ¨ اÙÙ
ÙÙÙ","join.field.gender":"Ø§ÙØ¬Ùس","join.field.license_number":"رÙÙ
Ø§ÙØªØ±Ø®Ùص","join.field.issuing_authority":"Ø¬ÙØ© Ø§ÙØ¥ØµØ¯Ø§Ø±","join.field.iceeft_status":"Ù
ستÙÙ ICEEFT","join.field.country":"Ø§ÙØ¯ÙÙØ©","join.field.city":"اÙÙ
دÙÙØ©","join.field.practice_format":"ØµÙØºØ© اÙÙ
Ù
ارسة","join.field.modalities":"Ø§ÙØªØ®ØµØµØ§Øª","join.field.languages":"اÙÙØºØ§Øª","join.field.bio":"Ø§ÙØ³Ùرة اÙÙ
ÙÙÙØ©","join.field.areas_of_focus":"Ù
Ø¬Ø§ÙØ§Øª Ø§ÙØ§ÙتÙ
اÙ
","join.field.contact_email":"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ ÙÙØªÙاصÙ","join.field.contact_phone":"ÙØ§ØªÙ Ø§ÙØªÙاصÙ","join.field.website_url":"رابط اÙÙ
ÙÙØ¹ Ø§ÙØ¥ÙÙØªØ±ÙÙÙ","join.field.select_all_apply":"(اختر ÙÙ Ù
ا ÙÙØ·Ø¨Ù)","join.submit_label":"إرسا٠اÙÙ
ÙÙ ÙÙÙ
راجعة","join.submitting":"Ø¬Ø§Ø±Ù Ø§ÙØ¥Ø±Ø³Ø§Ù...","join.disclaimer":"Ø¨Ø§ÙØ¥Ø±Ø³Ø§ÙØ ØªØ¤ÙØ¯ أ٠جÙ
ÙØ¹ اÙÙ
عÙÙÙ
ات دÙÙÙØ© ÙØ£ÙÙ ØªÙØ§Ù٠عÙ٠اÙÙ
عاÙÙØ± اÙÙ
ÙÙÙØ© ÙÙ GCCEFT.","profile.back":"Ø§ÙØ¹Ùدة Ø¥ÙÙ Ø§ÙØ¯ÙÙÙ","profile.not_found":"ÙÙ
ÙØªÙ
Ø§ÙØ¹Ø«Ùر عÙ٠اÙÙ
Ø¹Ø§ÙØ¬","profile.visit_website":"Ø²ÙØ§Ø±Ø© اÙÙ
ÙÙØ¹","profile.about":"ع٠اÙÙ
Ø¹Ø§ÙØ¬","profile.iceeft_status":"Ù
ستÙÙ ICEEFT","footer.for_public":"ÙÙØ¹Ù
ÙÙ
","footer.for_professionals":"ÙÙÙ
ÙÙÙÙÙ","footer.organisation":"اÙÙ
ÙØ¸Ù
Ø©","footer.tagline":"اÙÙ
Ø±ÙØ² Ø§ÙØ¥ÙÙÙÙ
Ù ÙÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر Ù٠دÙÙ Ù
Ø¬ÙØ³ Ø§ÙØªØ¹Ø§ÙÙ Ø§ÙØ®ÙÙØ¬Ù.","contact.subtitle_full":"ÙØ±ØØ¨ Ø¨Ø§Ø³ØªÙØ³Ø§Ø±Ø§Øª Ø§ÙØ¹Ù
ÙÙ
ÙØ§ÙÙ
ÙÙÙÙÙ ÙØ§ÙØ´Ø±ÙØ§Ø¡.","contact.message_received":"تÙ
Ø§Ø³ØªÙØ§Ù
Ø±Ø³Ø§ÙØªÙ","contact.message_received_desc":"Ø´ÙØ±Ø§Ù ÙØªÙاصÙÙ Ù
ع GCCEFT. ÙØ³Ø¹Ù ÙÙØ±Ø¯ Ø®ÙØ§Ù 2â3 Ø£ÙØ§Ù
عÙ
Ù.","contact.send":"Ø¥Ø±Ø³Ø§Ù Ø§ÙØ±Ø³Ø§ÙØ©","contact.privacy":"ØªÙØÙØ¸ Ù
عÙÙÙ
Ø§ØªÙ Ø¨Ø³Ø±ÙØ© تاÙ
Ø© ÙØªÙستخدÙ
ÙÙØ· ÙÙØ±Ø¯ عÙÙ Ø§Ø³ØªÙØ³Ø§Ø±Ù.","contact.
9inq.general":"Ø§Ø³ØªÙØ³Ø§Ø± عاÙ
","contact.inq.directory":"Ø·ÙØ¨ Ø§ÙØ§ÙضÙ
اÙ
Ø¥ÙÙ Ø§ÙØ¯ÙÙÙ","contact.inq.training":"Ø£Ø³Ø¦ÙØ© Ø§ÙØªØ¯Ø±Ùب","contact.inq.partnership":"Ù
ÙØªØ±Ø Ø´Ø±Ø§ÙØ©","contact.inq.media":"Ø·ÙØ¨ Ø¥Ø¹ÙØ§Ù
Ù","contact.select_type":"اختر ÙÙØ¹ Ø§ÙØ§Ø³ØªÙسار","contact.first_name_ph":"اسÙ
Ù Ø§ÙØ£ÙÙ","contact.last_name_ph":"اسÙ
Ø¹Ø§Ø¦ÙØªÙ","contact.email_ph":"Ø¨Ø±ÙØ¯Ù@Ø§ÙØ¥ÙÙØªØ±ÙÙÙ.com","contact.subject_ph":"Ù
ÙØ¶Ùع Ù
ختصر","contact.message_ph":"Ø±Ø³Ø§ÙØªÙ...","contact.response_time":"ÙÙØª Ø§ÙØ§Ø³ØªØ¬Ø§Ø¨Ø©","contact.response_days":"2â3 Ø£ÙØ§Ù
عÙ
Ù"}},Oj=v.createContext(void 0);function FM({children:e}){const[n,r]=v.useState(()=>{try{return localStorage.getItem("gcceft_lang")||"en"}catch{return"en"}}),s=u=>{r(u);try{localStorage.setItem("gcceft_lang",u)}catch{}};v.useEffect(()=>{document.documentElement.dir=n==="ar"?"rtl":"ltr",document.documentElement.lang=n,document.title=n==="ar"?"GCCEFT | Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙ Ø§ÙØ®ÙÙØ¬":"GCCEFT | Emotionally Focused Therapy in the Gulf"},[n]);const l=u=>Pb[n][u]||Pb.en[u]||u;return o.jsx(Oj.Provider,{value:{language:n,setLanguage:s,t:l},children:e})}function Ot(){const e=v.useContext(Oj);if(!e)throw new Error("useI18n must be used within an I18nProvider");return e}function fl(){const[e,n]=v.useState(null),[r,s]=v.useState(!0);v.useEffect(()=>{let f=!1;return fetch("/api/auth/user",{credentials:"include"}).then(h=>{if(!h.ok)throw new Error(`HTTP ${h.status}`);return h.json()}).then(h=>{f||(n(h.user??null),s(!1))}).catch(()=>{f||(n(null),s(!1))}),()=>{f=!0}},[]);const l=v.useCallback(()=>{const f="/".replace(/\/+$/,"")||"/";window.location.href=`/api/login?returnTo=${encodeURIComponent(f)}`},[]),u=v.useCallback(()=>{window.location.href="/api/logout"},[]);return{user:e,isLoading:r,isAuthenticated:!!e,login:l,logout:u}}var LM=Symbol.for("react.lazy"),su=_u[" use ".trim().toString()];function PM(e){return typeof e=="object"&&e!==null&&"then"in e}function Mj(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===LM&&"_payload"in e&&PM(e._payload)}function kj(e){const n=zM(e),r=v.forwardRef((s,l)=>{let{children:u,...f}=s;Mj(u)&&typeof su=="function"&&(u=su(u._payload));const h=v.Children.toArray(u),p=h.find(UM);if(p){const g=p.props.children,y=h.map(x=>x===p?v.Children.count(g)>1?v.Children.only(null):v.isValidElement(g)?g.props.children:null:x);return o.jsx(n,{...f,ref:l,children:v.isValidElement(g)?v.cloneElement(g,void 0,y):null})}return o.jsx(n,{...f,ref:l,children:u})});return r.displayName=`${e}.Slot`,r}var Dj=kj("Slot");function zM(e){const n=v.forwardRef((r,s)=>{let{children:l,...u}=r;if(Mj(l)&&typeof su=="function"&&(l=su(l._payload)),v.isValidElement(l)){const f=VM(l),h=IM(u,l.props);return l.type!==v.Fragment&&(h.ref=s?sl(s,f):f),v.cloneElement(l,h)}return v.Children.count(l)>1?v.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var qM=Symbol("radix.slottable");function UM(e){return v.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===qM}function IM(e,n){const r={...n};for(const s in n){const l=e[s],u=n[s];/^on[A-Z]/.test(s)?l&&u?r[s]=(...h)=>{const p=u(...h);return l(...h),p}:l&&(r[s]=l):s==="style"?r[s]={...l,...u}:s==="className"&&(r[s]=[l,u].filter(Boolean).join(" "))}return{...e,...r}}function VM(e){let n=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning;return r?e.ref:(n=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=n&&"isReactWarning"in n&&n.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}const HM=ll("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-on 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"}}),Ae=v.forwardRef(({className:e,variant:n,size:r,asChild:s=!1,...l},u)=>{const f=s?Dj:"button";return o.jsx(f,{className:Re(HM({variant:n,size:r,className:e})),ref:u,...l})});Ae.displayName="Button";var Lh="focusScope.autoFocusOnMount",Ph="focusScope.autoFocusOnUnmount",zb={bubbles:!1,cancelable:!0}
vendor: 20,007 bytes, lines 9-49
9,BM="FocusScope",Du=v.forwardRef((e,n)=>{const{loop:r=!1,trapped:s=!1,onMountAutoFocus:l,onUnmountAutoFocus:u,...f}=e,[h,p]=v.useState(null),g=jn(l),y=jn(u),x=v.useRef(null),w=Je(n,_=>p(_)),E=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(s){let _=function(M){if(E.paused||!h)return;const F=M.target;h.contains(F)?x.current=F:Er(x.current,{select:!0})},S=function(M){if(E.paused||!h)return;const F=M.relatedTarget;F!==null&&(h.contains(F)||Er(x.current,{select:!0}))},A=function(M){if(document.activeElement===document.body)for(const L of M)L.removedNodes.length>0&&Er(h)};document.addEventListener("focusin",_),document.addEventListener("focusout",S);const T=new MutationObserver(A);return h&&T.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",_),document.removeEventListener("focusout",S),T.disconnect()}}},[s,h,E.paused]),v.useEffect(()=>{if(h){Ub.add(E);const _=document.activeElement;if(!h.contains(_)){const A=new CustomEvent(Lh,zb);h.addEventListener(Lh,g),h.dispatchEvent(A),A.defaultPrevented||(GM(ZM(Fj(h)),{select:!0}),document.activeElement===_&&Er(h))}return()=>{h.removeEventListener(Lh,g),setTimeout(()=>{const A=new CustomEvent(Ph,zb);h.addEventListener(Ph,y),h.dispatchEvent(A),A.defaultPrevented||Er(_??document.body,{select:!0}),h.removeEventListener(Ph,y),Ub.remove(E)},0)}}},[h,g,y,E]);const C=v.useCallback(_=>{if(!r&&!s||E.paused)return;const S=_.key==="Tab"&&!_.altKey&&!_.ctrlKey&&!_.metaKey,A=document.activeElement;if(S&&A){const T=_.currentTarget,[M,F]=$M(T);M&&F?!_.shiftKey&&A===F?(_.preventDefault(),r&&Er(M,{select:!0})):_.shiftKey&&A===M&&(_.preventDefault(),r&&Er(F,{select:!0})):A===T&&_.preventDefault()}},[r,s,E.paused]);return o.jsx(Me.div,{tabIndex:-1,...f,ref:w,onKeyDown:C})});Du.displayName=BM;function GM(e,{select:n=!1}={}){const r=document.activeElement;for(const s of e)if(Er(s,{select:n}),document.activeElement!==r)return}function $M(e){const n=Fj(e),r=qb(n,e),s=qb(n.reverse(),e);return[r,s]}function Fj(e){const n=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:s=>{const l=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||l?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)n.push(r.currentNode);return n}function qb(e,n){for(const r of e)if(!YM(r,{upTo:n}))return r}function YM(e,{upTo:n}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(n!==void 0&&e===n)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function KM(e){return e instanceof HTMLInputElement&&"select"in e}function Er(e,{select:n=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&KM(e)&&n&&e.select()}}var Ub=QM();function QM(){let e=[];return{add(n){const r=e[0];n!==r&&r?.pause(),e=Ib(e,n),e.unshift(n)},remove(n){e=Ib(e,n),e[0]?.resume()}}}function Ib(e,n){const r=[...e],s=r.indexOf(n);return s!==-1&&r.splice(s,1),r}function ZM(e){return e.filter(n=>n.tagName!=="A")}var zh=0;function hp(){v.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Vb()),document.body.insertAdjacentElement("beforeend",e[1]??Vb()),zh++,()=>{zh===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),zh--}},[])}function Vb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ya=function(){return ya=Object.assign||function(n){for(var r,s=1,l=arguments.length;s<l;s++){r=arguments[s];for(var u in r)Object.prototype.hasOwnProperty.call(r,u)&&(n[u]=r[u])}return n},ya.apply(this,arguments)};function Lj(e,n){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&n.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(e);l<s.length;l++)n.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(e,s[l])&&(r[s[l]]=e[s[l]]);return r}function XM(e,n,r){if(r||arguments.length===2)for(var s=0,l=n.length,u;s<l;s++)(u||!(s in n))&&(u||(u=Array.prototype.slice.call(n,0,s)),u[s]=n[s]);return e.concat(u||Array.prototype.slice.call(n))}var Yc="right-scroll-bar-position",Kc="width-before-scroll-bar",WM="with-scroll-bars-hidden",JM="--removed-body-scroll-bar-size";function qh(e,n){return typeof e=="function"?e(n):e&&(e.current=n),e}function ek(e,n){var r=v.useState(function(){return{value:e,callback:n,facade:{get current(){return r.value},set current(s){var l=r.value;l!==s&&(r.value=s,r.callback(s,l))}}}})[0];return r.callback=n,r.facade}var tk=typeof window<"u"?v.useLayoutEffect:v.useEffect,Hb=new WeakMap;function nk(e,n){var r=ek(null,function(s){return e.forEach(function(l){return qh(l,s)})});return tk(function(){var s=Hb.get(r);if(s){var l=new Set(s),u=new Set(e),f=r.current;l.forEach(function(h){u.has(h)||qh(h,null)}),u.forEach(function(h){l.has(h)||qh(h,f)})}Hb.set(r,e)},[e]),r}function ak(e){return e}function rk(e,n){n===void 0&&(n=ak);var r=[],s=!1,l={read:function(){if(s)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(u){var f=n(u,s);return r.push(f),function(){r=r.filter(function(h){return h!==f})}},assignSyncMedium:function(u){for(s=!0;r.length;){var f=r;r=[],f.forEach(u)}r={push:function(h){return u(h)},filter:function(){return r}}},assignMedium:function(u){s=!0;var f=[];if(r.length){var h=r;r=[],h.forEach(u),f=r}var p=function(){var y=f;f=[],y.forEach(u)},g=function(){return Promise.resolve().then(p)};g(),r={push:function(y){f.push(y),g()},filter:function(y){return f=f.filter(y),r}}}};return l}function sk(e){e===void 0&&(e={});var n=rk(null);return n.options=ya({async:!0,ssr:!1},e),n}var Pj=function(e){var n=e.sideCar,r=Lj(e,["sideCar"]);if(!n)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var s=n.read();if(!s)throw new Error("Sidecar medium not found");return v.createElement(s,ya({},r))};Pj.isSideCarExport=!0;function ik(e,n){return e.useMedium(n),Pj}var zj=sk(),Uh=function(){},Fu=v.forwardRef(function(e,n){var r=v.useRef(null),s=v.useState({onScrollCapture:Uh,onWheelCapture:Uh,onTouchMoveCapture:Uh}),l=s[0],u=s[1],f=e.forwardProps,h=e.children,p=e.className,g=e.removeScrollBar,y=e.enabled,x=e.shards,w=e.sideCar,E=e.noRelative,C=e.noIsolation,_=e.inert,S=e.allowPinchZoom,A=e.as,T=A===void 0?"div":A,M=e.gapMode,F=Lj(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),L=w,z=nk([r,n]),P=ya(ya({},F),l);return v.createElement(v.Fragment,null,y&&v.createElement(L,{sideCar:zj,removeScrollBar:g,shards:x,noRelative:E,noIsolation:C,inert:_,setCallbacks:u,allowPinchZoom:!!S,lockRef:r,gapMode:M}),f?v.cloneElement(v.Children.only(h),ya(ya({},P),{ref:z})):v.createElement(T,ya({},P,{className:p,ref:z}),h))});Fu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fu.classNames={fullWidth:Kc,zeroRight:Yc};var ok=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function lk(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var n=ok();return n&&e.setAttribute("nonce",n),e}function ck(e,n){e.styleSheet?e.styleSheet.cssText=n:e.appendChild(document.createTextNode(n))}function uk(e){var n=document.head||document.getElementsByTagName("head")[0];n.appendChild(e)}var dk=function(){var e=0,n=null;return{add:function(r){e==0&&(n=lk())&&(ck(n,r),uk(n)),e++},remove:function(){e--,!e&&n&&(n.parentNode&&n.parentNode.removeChild(n),n=null)}}},fk=function(){var e=dk();return function(n,r){v.useEffect(function(){return e.add(n),function(){e.remove()}},[n&&r])}},qj=function(){var e=fk(),n=function(r){var s=r.styles,l=r.dynamic;return e(s,l),null};return n},hk={left:0,top:0,right:0,gap:0},Ih=function(e){return parseInt(e||"",10)||0},mk=function(e){var n=window.getComputedStyle(document.body),r=n[e==="padding"?"paddingLeft":"marginLeft"],s=n[e==="padding"?"paddingTop":"marginTop"],l=n[e==="padding"?"paddingRight":"marginRight"];return[Ih(r),Ih(s),Ih(l)]},pk=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return hk;var n=mk(e),r=document.documentElement.clientWidth,s=window.innerWidth;return{left:n[0],top:n[1],right:n[2],gap:Math.max(0,s-r+n[2]-n[0])}},gk=qj(),gi="data-scroll-locked",yk=function(e,n,r,s){var l=e.left,u=e.top,f=e.right,h=e.gap;return r===void 0&&(r="margin"),` 10 .`.concat(WM,` { 11 overflow: hidden `).concat(s,`; 12 padding-right: `).concat(h,"px ").concat(s,`; 13 } 14 body[`).concat(gi,`] { 15 overflow: hidden `).concat(s,`; 16 overscroll-behavior: contain; 17 `).concat([n&&"position: relative ".concat(s,";"),r==="margin"&&` 18 padding-left: `.concat(l,`px; 19 padding-top: `).concat(u,`px; 20 padding-right: `).concat(f,`px; 21 margin-left:0; 22 margin-top:0; 23 margin-right: `).concat(h,"px ").concat(s,`; 24 `),r==="padding"&&"padding-right: ".concat(h,"px ").concat(s,";")].filter(Boolean).join(""),` 25 } 26 27 .`).concat(Yc,` { 28 right: `).concat(h,"px ").concat(s,`; 29 } 30 31 .`).concat(Kc,` { 32 margin-right: `).concat(h,"px ").concat(s,`; 33 } 34 35 .`).concat(Yc," .").concat(Yc,` { 36 right: 0 `).concat(s,`; 37 } 38 39 .`).concat(Kc," .").concat(Kc,` { 40 margin-right: 0 `).concat(s,`; 41 } 42 43 body[`).concat(gi,`] { 44 `).concat(JM,": ").concat(h,`px; 45 } 46`)},Bb=function(){var e=parseInt(document.body.getAttribute(gi)||"0",10);return isFinite(e)?e:0},vk=function(){v.useEffect(function(){return document.body.setAttribute(gi,(Bb()+1).toString()),function(){var e=Bb()-1;e<=0?document.body.removeAttribute(gi):document.body.setAttribute(gi,e.toString())}},[])},xk=function(e){var n=e.noRelative,r=e.noImportant,s=e.gapMode,l=s===void 0?"margin":s;vk();var u=v.useMemo(function(){return pk(l)},[l]);return v.createElement(gk,{styles:yk(u,!n,l,r?"":"!important")})},fm=!1;if(typeof window<"u")try{var Pc=Object.defineProperty({},"passive",{get:function(){return fm=!0,!0}});window.addEventListener("test",Pc,Pc),window.removeEventListener("test",Pc,Pc)}catch{fm=!1}var ri=fm?{passive:!1}:!1,bk=function(e){return e.tagName==="TEXTAREA"},Uj=function(e,n){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[n]!=="hidden"&&!(r.overflowY===r.overflowX&&!bk(e)&&r[n]==="visible")},wk=function(e){return Uj(e,"overflowY")},jk=function(e){return Uj(e,"overflowX")},Gb=function(e,n){var r=n.ownerDocument,s=n;do{typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&(s=s.host);var l=Ij(e,s);if(l){var u=Vj(e,s),f=u[1],h=u[2];if(f>h)return!0}s=s.parentNode}while(s&&s!==r.body);return!1},_k=function(e){var n=e.scrollTop,r=e.scrollHeight,s=e.clientHeight;return[n,r,s]},Ek=function(e){var n=e.scrollLeft,r=e.scrollWidth,s=e.clientWidth;return[n,r,s]},Ij=function(e,n){return e==="v"?wk(n):jk(n)},Vj=function(e,n){return e==="v"?_k(n):Ek(n)},Sk=function(e,n){return e==="h"&&n==="rtl"?-1:1},Nk=function(e,n,r,s,l){var u=Sk(e,window.getComputedStyle(n).direction),f=u*s,h=r.target,p=n.contains(h),g=!1,y=f>0,x=0,w=0;do{if(!h)break;var E=Vj(e,h),C=E[0],_=E[1],S=E[2],A=_-S-u*C;(C||A)&&Ij(e,h)&&(x+=A,w+=C);var T=h.parentNode;h=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!p&&h!==document.body||p&&(n.contains(h)||n===h));return(y&&Math.abs(x)<1||!y&&Math.abs(w)<1)&&(g=!0),g},zc=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},$b=function(e){return[e.deltaX,e.deltaY]},Yb=function(e){return e&&"current"in e?e.current:e},Ck=function(e,n){return e[0]===n[0]&&e[1]===n[1]},Tk=function(e){return` 47 .block-interactivity-`.concat(e,` {pointer-events: none;} 48 .allow-interactivity-`).concat(e,` {pointer-events: all;} 49`)},Ak=0,si=[];function Rk(e){var n=v.useRef([]),r=v.useRef([0,0]),s=v.useRef(),l=v.useState(Ak++)[0],u=v.useState(qj)[0],f=v.useRef(e);v.useEffect(function(){f.current=e},[e]),v.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(l));var _=XM([e.lockRef.current],(e.shards||[]).map(Yb),!0).filter(Boolean);return _.forEach(function(S){return S.classList.add("allow-interactivity-".concat(l))}),function(){document.body.classList.remove("block-interactivity-".concat(l)),_.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(l))})}}},[e.inert,e.lockRef.current,e.shards]);var h=v.useCallback(function(_,S){if("touches"in _&&_.touches.length===2||_.type==="wheel"&&_.ctrlKey)return!f.current.allowPinchZoom;var A=zc(_),T=r.current,M="deltaX"in _?_.deltaX:T[0]-A[0],F="deltaY"in _?_.deltaY:T[1]-A[1],L,z=_.target,P=Math.abs(M)>Math.abs(F)?"h":"v";if("touches"in _&&P==="h"&&z.type==="range")return!1;var H=window.getSelection(),ie=H&&H.anchorNode,pe=ie?ie===z||ie.contains(z):!1;if(pe)return!1;var be=Gb(P,z);if(!be)return!0;if(be?L=P:(L=P==="v"?"h":"v",be=Gb(P,z)),!be)return!1;if(!s.current&&"changedTouches"in _&&(M||F)&&(s.current=L),!L)return!0;var ee=s.current||L;return Nk(ee,S,_,ee==="h"?M:F)},[]),p=v.useCallback(function(_){var S=_;if(!(!si.length||si[si.length-1]!==u)){var A="deltaY"in S?$b(S):zc(S),T=n.current.filter(function(L){return L.name===S.type&&(L.target===S.target||S.target===L.shadowParent)&&Ck(L.delta,A)})[0];if(T&&T.should){S.cancelable&&S.preventDefault();return}if(!T){var M=(f.current.shards||[]).map(Yb).filter(Boolean).filter(function(L){return L.contains(S.target)}),F=M.length>0?h(S,M[0]):!f.current.noIsolation;F&&S.cancelable&&S.preventDefault()}}},[]),g=v.useCallback(function(_,S,A,T){var M={name:_,delta:S,target:A,should:T,shadowParent:Ok(A)};n.current.push(M),setTimeout(function(){n.current=n.current.filter(function(F){return F!==M})},1)},[]),y=v.useCallback(function(_){r.current=zc(_),s.current=void 0},[]),x=v.useCallback(function(_){g(_.type,$b(_),_.target,h(_,e.lockRef.current))},[]),w=v.useCallback(function(_){g(_.type,zc(_),_.target,h(_,e.lockRef.current))},[]);v.useEffect(function(){return si.push(u),e.setCallbacks({onScrollCapture:x,onWheelCapture:x,onTouchMoveCapture:w}),document.addEventListener("wheel",p,ri),document.addEventListener("touchmove",p,ri),document.addEventListener("touchstart",y,ri),function(){si=si.filter(function(_){return _!==u}),document.removeEventListener("wheel",p,ri),document.removeEventListener("touchmove",p,ri),document.removeEventListener("touchstart",y,ri)}},[]);var E=e.removeScrollBar,C=e.inert;return v.createElement(v.Fragment,null,C?v.createElement(u,{styles:Tk(l)}):null,E?v.createElement(xk,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ok(e){for(var n=null;e!==null;)e instanceof ShadowRoot&&(n=e.host,e=e.host),e=e.parentNode;return n}const Mk=ik(zj,Rk);var Lu=v.forwardRef(function(e,n){return v.createElement(Fu,ya({},e,{ref:n,sideCar:Mk}))});Lu.classNames=Fu.classNames;var kk=function(e){if(typeof document>"u")return null;var n=Array.isArray(e)?e[0]:e;return n.ownerDocument.body},ii=new WeakMap,qc=new WeakMap,Uc={},Vh=0,Hj=function(e){return e&&(e.host||Hj(e.parentNode))},Dk=function(e,n){return n.map(function(r){if(e.contains(r))return r;var s=Hj(r);return s&&e.contains(s)?s:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Fk=function(e,n,r,s){var l=Dk(n,Array.isArray(e)?e:[e]);Uc[r]||(Uc[r]=new WeakMap);var u=Uc[r],f=[],h=new Set,p=new Set(l),g=function(x){!x||h.has(x)||(h.add(x),g(x.parentNode))};l.forEach(g);var y=function(x){!x||p.has(x)||Array.prototype.forEach.call(x.children,function(w){if(h.has(w))y(w);else try{var E=w.getAttribute(s),C=E!==null&&E!=="false",_=(ii.get(w)||0)+1,S=(u.get(w)||0)+1;ii.set(w,_),u.set(w,S),f.push(w),_===1&&C&&qc.set(w,!0),S===1&&w.setAttribute(r,"true"),C||w.setAttribute(s,"true")}catch(A){console.error("aria-hidden: cannot operate on ",w,A)}})};return y(n),h.clear(),Vh++,function(){f.forEach(function(x){var w=ii.get(x)-1,E=u.get(x)-1;ii.set(x,w),u.set(x,E),w||(qc.has(x)||x.removeAttribute(s),qc.delete(x)),E||x.removeAttribute(r)}),Vh--,Vh||(ii=new WeakMap,ii=new WeakMap,qc=new WeakMap,Uc={})}},mp=function(e,n,r){r===void 0&&(r="data-aria-hidden");var s=Array.from(Array.isArray(e)?e:[e]),l=kk(e);return l?(s.push.apply(s,Array.from(l.querySelectorAll("[aria-live], script"))),Fk(s,l,r,"aria-hidden")):function(){return null}},Pu="Dialog",[Bj]=Ln(Pu),[Lk,oa]=Bj(Pu),Gj=e=>{const{__scopeDialog:n,children:r,open:s,defaultOpen:l,onOpenChange:u,modal:f=!0}=e,h=v.useRef(null),p=v.useRef(null),[g,y]=ra({prop:s,defaultProp:l??!1,onChange:u,caller:Pu});return o.jsx(Lk,{scope:n,triggerRef:h,contentRef:p,contentId:Yn(),titleId:Yn(),descriptionId:Yn(),open:g,onOpenChange:y,onOpenToggle:v.useCallback(()=>y(x=>!x),[y]),modal:f,children:r})};Gj.displayName=Pu;var $j="DialogTrigger",Yj=v.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,l=oa($j,r),u=Je(n,l.triggerRef);return o.jsx(Me.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":yp(l.open),...s,ref:u,onClick:ue(e.onClick,l.onOpenToggle)})});Yj.displayName=$j;var pp="DialogPortal",[Pk,Kj]=Bj(pp,{forceMount:void 0}),Qj=e=>{const{__scopeDialog:n,forceMount:r,children:s,container:l}=e,u=oa(pp,n);return o.jsx(Pk,{scope:n,forceMount:r,children:v.Children.map(s,f=>o.jsx(_n,{present:r||u.open,children:o.jsx(Ai,{asChild:!0,container:l,children:f})}))})};Qj.displayName=pp;var iu="DialogOverlay",Zj=v.forwardRef((e,n)=>{const r=Kj(iu,e.__scopeDialog),{forceMount:s=r.forceMount,...l}=e,u=oa(iu,e.__scopeDialog);return u.modal?o.jsx(_n,{present:s||u.open,children:o.jsx(qk,{...l,ref:n})}):null});Zj.displayName=iu;var zk=yi("DialogOverlay.RemoveScroll"),qk=v.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,l=oa(iu,r);return o.jsx(Lu,{as:zk,allowPinchZoom:!0,shards:[l.contentRef],children:o.jsx(Me.div,{"data-state":yp(l.open),...s,ref:n,style:{pointerEvents:"auto",...s.style}})})}),cs="DialogContent",Xj=v.forwardRef((e,n)=>{const r=Kj(cs,e.__scopeDialog),{forceMount:s=r.forceMount,...l}=e,u=oa(cs,e.__scopeDialog);return o.jsx(_n,{present:s||u.open,children:u.modal?o.jsx(Uk,{...l,ref:n}):o.jsx(Ik,{...l,ref:n})})});Xj.displayName=cs;var Uk=v.forwardRef((e,n)=>{const r=oa(cs,e.__scopeDialog),s=v.useRef(null),l=Je(n,r.contentRef,s);return v.useEffect(()=>{const u=s.current;if(u)return mp(u)},[]),o.jsx(Wj,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ue(e.onCloseAutoFocus,u=>{u.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ue(e.onPointerDownOutside,u=>{const f=u.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&u.preventDefault()}),onFocusOutside:ue(e.onFocusOutside,u=>u.preventDefault())})}),Ik=v.forwardRef((e,n)=>{const r=oa(cs,e.__scopeDialog),s=v.useRef(!1),l=v.useRef(!1);return o.jsx(Wj,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:u=>{e.onCloseAutoFocus?.(u),u.defaultPrevented||(s.current||r.triggerRef.current?.focus(),u.preventDefault()),s.current=!1,l.current=!1},onInteractOutside:u=>{e.onInteractOutside?.(u),u.defaultPrevented||(s.current=!0,u.detail.originalEvent.type==="pointerdown"&&(l.current=!0));const f=u.target;r.triggerRef.current?.contains(f)&&u.preventDefault(),u.detail.originalEvent.type==="focusin"&&l.current&&u.preventDefault()}})}),Wj=v.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,...f}=e,h=oa(cs,r),p=v.useRef(null),g=Je(n,p);return hp(),o.jsxs(o.Fragment,{children:[o.jsx(Du,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:l,onUnmountAutoFocus:u,children:o.jsx(Ti,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":yp(h.open),...f,ref:g,onDismiss:()=>h.onOpenChange(!1)})}),o.jsxs(o.Fragment,{children:[o.jsx(Vk,{titleId:h.titleId}),o.jsx(Bk,{contentRef:p,descriptionId:h.descriptionId})]})]})}
49),gp="DialogTitle",Jj=v.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,l=oa(gp,r);return o.jsx(Me.h2,{id:l.titleId,...s,ref:n})});Jj.displayName=gp;var e1="DialogDescription",t1=v.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,l=oa(e1,r);return o.jsx(Me.p,{id:l.descriptionId,...s,ref:n})});t1.displayName=e1;var n1="DialogClose",a1=v.forwardRef((e,n)=>{const{__scopeDialog:r,...s}=e,l=oa(n1,r);return o.jsx(Me.button,{type:"button",...s,ref:n,onClick:ue(e.onClick,()=>l.onOpenChange(!1))})});a1.displayName=n1;function yp(e){return e?"open":"closed"}var r1="DialogTitleWarning",[jP,s1]=n2(r1,{contentName:cs,titleName:gp,docsSlug:"dialog"}),Vk=({titleId:e})=>{const n=s1(r1),r=`\`${n.contentName}\` requires a \`${n.titleName}\` for the component to be accessible for screen reader users. 50 51If you want to hide the \`${n.titleName}\`, you can wrap it with our VisuallyHidden component. 52 53For more information, see https://radix-ui.com/primitives/docs/components/${n.docsSlug}`;return v.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Hk="DialogDescriptionWarning",Bk=({contentRef:e,descriptionId:n})=>{const s=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${s1(Hk).contentName}}.`;return v.useEffect(()=>{const l=e.current?.getAttribute("aria-describedby");n&&l&&(document.getElementById(n)||console.warn(s))},[s,e,n]),null},i1=Gj,o1=Yj,l1=Qj,zu=Zj,qu=Xj,Uu=Jj,Iu=t1,c1=a1;const Gk=i1,$k=o1,Yk=l1,u1=v.forwardRef(({className:e,...n},r)=>o.jsx(zu,{className:Re("fixed inset-0 z-50 bg-overlay/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n,ref:r}));u1.displayName=zu.displayName;const Kk=ll("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),d1=v.forwardRef(({side:e="right",className:n,children:r,...s},l)=>o.jsxs(Yk,{children:[o.jsx(u1,{}),o.jsxs(qu,{ref:l,className:Re(Kk({side:e}),n),...s,children:[o.jsxs(c1,{className:"absolute right-4 top-4 roun
53ded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[o.jsx(cl,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));d1.displayName=qu.displayName;const Qk=v.forwardRef(({className:e,...n},r)=>o.jsx(Uu,{ref:r,className:Re("text-lg font-semibold text-foreground",e),...n}));Qk.displayName=Uu.displayName;const Zk=v.forwardRef(({className:e,...n},r)=>o.jsx(Iu,{ref:r,className:Re("text-sm text-muted-foreground",e),...n}));Zk.displayName=Iu.displayName;var Xk=v.createContext(void 0);function hl(e){const n=v.useContext(Xk);return e||n||"ltr"}var Hh="rovingFocusGroup.onEntryFocus",Wk={bubbles:!1,cancelable:!0},ml="RovingFocusGroup",[hm,f1,Jk]=il(ml),[eD,Vu]=Ln(ml,[Jk]),[tD,nD]=eD(ml),h1=v.forwardRef((e,n)=>o.jsx(hm.Provider,{scope:e.__scopeRovingFocusGroup,children:o.jsx(hm.Slot,{scope:e.__scopeRovingFocusGroup,children:o.jsx(aD,{...e,ref:n})})}));h1.displayName=ml;var aD=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:s,loop:l=!1,dir:u,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:p,onEntryFocus:g,preventScrollOnEntryFocus:y=!1,...x}=e,w=v.useRef(null),E=Je(n,w),C=hl(u),[_,S]=ra({prop:f,defaultProp:h??null,onChange:p,caller:ml}),[A,T]=v.useState(!1),M=jn(g),F=f1(r),L=v.useRef(!1),[z,P]=v.useState(0);return v.useEffect(()=>{const H=w.current;if(H)return H.addEventListener(Hh,M),()=>H.removeEventListener(Hh,M)},[M]),o.jsx(tD,{scope:r,orientation:s,dir:C,loop:l,currentTabStopId:_,onItemFocus:v.useCallback(H=>S(H),[S]),onItemShiftTab:v.useCallback(()=>T(!0),[]),onFocusableItemAdd:v.useCallback(()=>P(H=>H+1),[]),onFocusableItemRemove:v.useCallback(()=>P(H=>H-1),[]),children:o.jsx(Me.div,{tabIndex:A||z===0?-1:0,"data-orientation":s,...x,ref:E,style:{outline:"none",...e.style},onMouseDown:ue(e.onMouseDown,()=>{L.current=!0}),onFocus:ue(e.onFocus,H=>{const ie=!L.current;if(H.target===H.currentTarget&&ie&&!A){const pe=new CustomEvent(Hh,Wk);if(H.currentTarget.dispatchEvent(pe),!pe.defaultPrevented){const be=F().filter(D=>D.focusable),ee=be.find(D=>D.active),oe=be.find(D=>
vendor: 4,146 bytes, line 53
53D.id===_),de=[ee,oe,...be].filter(Boolean).map(D=>D.ref.current);g1(de,y)}}L.current=!1}),onBlur:ue(e.onBlur,()=>T(!1))})})}),m1="RovingFocusGroupItem",p1=v.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:s=!0,active:l=!1,tabStopId:u,children:f,...h}=e,p=Yn(),g=u||p,y=nD(m1,r),x=y.currentTabStopId===g,w=f1(r),{onFocusableItemAdd:E,onFocusableItemRemove:C,currentTabStopId:_}=y;return v.useEffect(()=>{if(s)return E(),()=>C()},[s,E,C]),o.jsx(hm.ItemSlot,{scope:r,id:g,focusable:s,active:l,children:o.jsx(Me.span,{tabIndex:x?0:-1,"data-orientation":y.orientation,...h,ref:n,onMouseDown:ue(e.onMouseDown,S=>{s?y.onItemFocus(g):S.preventDefault()}),onFocus:ue(e.onFocus,()=>y.onItemFocus(g)),onKeyDown:ue(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){y.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const A=iD(S,y.orientation,y.dir);if(A!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let M=w().filter(F=>F.focusable).map(F=>F.ref.current);if(A==="last")M.reverse();else if(A==="prev"||A==="next"){A==="prev"&&M.reverse();const F=M.indexOf(S.currentTarget);M=y.loop?oD(M,F+1):M.slice(F+1)}setTimeout(()=>g1(M))}}),children:typeof f=="function"?f({isCurrentTabStop:x,hasTabStop:_!=null}):f})})});p1.displayName=m1;var rD={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function sD(e,n){return n!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function iD(e,n,r){const s=sD(e.key,r);if(!(n==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(n==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return rD[s]}function g1(e,n=!1){const r=document.activeElement;for(const s of e)if(s===r||(s.focus({preventScroll:n}),document.activeElement!==r))return}function oD(e,n){return e.map((r,s)=>e[(n+s)%e.length])}var y1=h1,v1=p1,mm=["Enter"," "],lD=["ArrowDown","PageUp","Home"],x1=["ArrowUp","PageDown","End"],cD=[...lD,...x1],uD={ltr:[...mm,"ArrowRight"],rtl:[...mm,"ArrowLeft"]},dD={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pl="Menu",[Xo,fD,hD]=il(pl),[ps,b1]=Ln(pl,[hD,Mi,Vu]),Hu=Mi(),w1=Vu(),[mD,gs]=ps(pl),[pD,gl]=ps(pl),j1=e=>{const{__scopeMenu:n,open:r=!1,children:s,dir:l,onOpenChange:u,modal:f=!0}=e,h=Hu(n),[p,g]=v.useState(null),y=v.useRef(!1),x=jn(u),w=hl(l);return v.useEffect(()=>{const E=()=>{y.current=!0,document.addEventListener("pointerdown",C,{capture:!0,once:!0}),document.addEventListener("pointermove",C,{capture:!0,once:!0})},C=()=>y.current=!1;return document.addEventListener("keydown",E,{capture:!0}),()=>{document.removeEventListener("keydown",E,{capture:!0}),document.removeEventListener("pointerdown",C,{capture:!0}),document.removeEventListener("pointermove",C,{capture:!0})}},[]),o.jsx(wj,{...h,children:o.jsx(mD,{scope:n,open:r,onOpenChange:x,content:p,onContentChange:g,children:o.jsx(pD,{scope:n,onClose:v.useCallback(()=>x(!1),[x]),isUsingKeyboardRef:y,dir:w,modal:f,children:s})})})};j1.displayName=pl;var gD="MenuAnchor",vp=v.forwardRef((e,n)=>{const{__scopeMenu:r,...s}=e,l=Hu(r);return o.jsx(lp,{...l,...s,ref:n})});vp.displayName=gD;var xp="MenuPortal",[yD,_1]=ps(xp,{forceMount:void 0}),E1=e=>{const{__scopeMenu:n,forceMount:r,children:s,container:l}=e,u=gs(xp,n);return o.jsx(yD,{scope:n,forceMount:r,children:o.jsx(_n,{present:r||u.open,children:o.jsx(Ai,{asChild:!0,container:l,children:s})})})};E1.displayName=xp;var Kn="MenuContent",[vD,bp]=ps(Kn),S1=v.forwardRef((e,n)=>{const r=_1(Kn,e.__scopeMenu),{forceMount:s=r.forceMount,...l}=e,u=gs(Kn,e.__scopeMenu),f=gl(Kn,e.__scopeMenu);return o.jsx(Xo.Provider,{scope:e.__scopeMenu,children:o.jsx(_n,{present:s||u.open,children:o.jsx(Xo.Slot,{scope:e.__scopeMenu,children:f.modal?o.jsx(xD,{...l,ref:n}):o.jsx(bD,{...l,ref:n})})})})}),xD=v.forwardRef((e,n)=>{const r=gs(Kn,e.__scopeMenu),s=v.useRef(null),l=Je(n,s);return v.useEffect(()=>{const u=s.current;if(u)return mp(u)},[]),o.jsx(wp,{...e,ref:l,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:ue(e.onFocusOutside,u=>u.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}
vendor: 14,431 bytes, line 53
53),bD=v.forwardRef((e,n)=>{const r=gs(Kn,e.__scopeMenu);return o.jsx(wp,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),wD=yi("MenuContent.ScrollLock"),wp=v.forwardRef((e,n)=>{const{__scopeMenu:r,loop:s=!1,trapFocus:l,onOpenAutoFocus:u,onCloseAutoFocus:f,disableOutsidePointerEvents:h,onEntryFocus:p,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:w,onDismiss:E,disableOutsideScroll:C,..._}=e,S=gs(Kn,r),A=gl(Kn,r),T=Hu(r),M=w1(r),F=fD(r),[L,z]=v.useState(null),P=v.useRef(null),H=Je(n,P,S.onContentChange),ie=v.useRef(0),pe=v.useRef(""),be=v.useRef(0),ee=v.useRef(null),oe=v.useRef("right"),te=v.useRef(0),de=C?Lu:v.Fragment,D=C?{as:wD,allowPinchZoom:!0}:void 0,$=J=>{const N=pe.current+J,K=F().filter(le=>!le.disabled),re=document.activeElement,ne=K.find(le=>le.ref.current===re)?.textValue,me=K.map(le=>le.textValue),Se=kD(me,N,ne),fe=K.find(le=>le.textValue===Se)?.ref.current;(function le(Ce){pe.current=Ce,window.clearTimeout(ie.current),Ce!==""&&(ie.current=window.setTimeout(()=>le(""),1e3))})(N),fe&&setTimeout(()=>fe.focus())};v.useEffect(()=>()=>window.clearTimeout(ie.current),[]),hp();const Z=v.useCallback(J=>oe.current===ee.current?.side&&FD(J,ee.current?.area),[]);return o.jsx(vD,{scope:r,searchRef:pe,onItemEnter:v.useCallback(J=>{Z(J)&&J.preventDefault()},[Z]),onItemLeave:v.useCallback(J=>{Z(J)||(P.current?.focus(),z(null))},[Z]),onTriggerLeave:v.useCallback(J=>{Z(J)&&J.preventDefault()},[Z]),pointerGraceTimerRef:be,onPointerGraceIntentChange:v.useCallback(J=>{ee.current=J},[]),children:o.jsx(de,{...D,children:o.jsx(Du,{asChild:!0,trapped:l,onMountAutoFocus:ue(u,J=>{J.preventDefault(),P.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:f,children:o.jsx(Ti,{asChild:!0,disableOutsidePointerEvents:h,onEscapeKeyDown:g,onPointerDownOutside:y,onFocusOutside:x,onInteractOutside:w,onDismiss:E,children:o.jsx(y1,{asChild:!0,...M,dir:A.dir,orientation:"vertical",loop:s,currentTabStopId:L,onCurrentTabStopIdChange:z,onEntryFocus:ue(p,J=>{A.isUsingKeyboardRef.current||J.preventDefault()}),preventScrollOnEntryFocus:!0,children:o.jsx(cp,{role:"menu","aria-orientation":"vertical","data-state":I1(S.open),"data-radix-menu-content":"",dir:A.dir,...T,..._,ref:H,style:{outline:"none",..._.style},onKeyDown:ue(_.onKeyDown,J=>{const K=J.target.closest("[data-radix-menu-content]")===J.currentTarget,re=J.ctrlKey||J.altKey||J.metaKey,ne=J.key.length===1;K&&(J.key==="Tab"&&J.preventDefault(),!re&&ne&&$(J.key));const me=P.current;if(J.target!==me||!cD.includes(J.key))return;J.preventDefault();const fe=F().filter(le=>!le.disabled).map(le=>le.ref.current);x1.includes(J.key)&&fe.reverse(),OD(fe)}),onBlur:ue(e.onBlur,J=>{J.currentTarget.contains(J.target)||(window.clearTimeout(ie.current),pe.current="")}),onPointerMove:ue(e.onPointerMove,Wo(J=>{const N=J.target,K=te.current!==J.clientX;if(J.currentTarget.contains(N)&&K){const re=J.clientX>te.current?"right":"left";oe.current=re,te.current=J.clientX}}))})})})})})})});S1.displayName=Kn;var jD="MenuGroup",jp=v.forwardRef((e,n)=>{const{__scopeMenu:r,...s}=e;return o.jsx(Me.div,{role:"group",...s,ref:n})});jp.displayName=jD;var _D="MenuLabel",N1=v.forwardRef((e,n)=>{const{__scopeMenu:r,...s}=e;return o.jsx(Me.div,{...s,ref:n})});N1.displayName=_D;var ou="MenuItem",Kb="menu.itemSelect",Bu=v.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:s,...l}=e,u=v.useRef(null),f=gl(ou,e.__scopeMenu),h=bp(ou,e.__scopeMenu),p=Je(n,u),g=v.useRef(!1),y=()=>{const x=u.current;if(!r&&x){const w=new CustomEvent(Kb,{bubbles:!0,cancelable:!0});x.addEventListener(Kb,E=>s?.(E),{once:!0}),Bm(x,w),w.defaultPrevented?g.current=!1:f.onClose()}};return o.jsx(C1,{...l,ref:p,disabled:r,onClick:ue(e.onClick,y),onPointerDown:x=>{e.onPointerDown?.(x),g.current=!0},onPointerUp:ue(e.onPointerUp,x=>{g.current||x.currentTarget?.click()}),onKeyDown:ue(e.onKeyDown,x=>{const w=h.searchRef.current!=="";r||w&&x.key===" "||mm.includes(x.key)&&(x.currentTarget.click(),x.preventDefault())})})});Bu.displayName=ou;var C1=v.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:s=!1,textValue:l,...u}=e,f=bp(ou,r),h=w1(r),p=v.useRef(null),g=Je(n,p),[y,x]=v.useState(!1),[w,E]=v.useState("");return v.useEffect(()=>{const C=p.current;C&&E((C.textContent??"").trim())},[u.children]),o.jsx(Xo.ItemSlot,{scope:r,disabled:s,textValue:l??w,children:o.jsx(v1,{asChild:!0,...h,focusable:!s,children:o.jsx(Me.div,{role:"menuitem","data-highlighted":y?"":void 0,"aria-disabled":s||void 0,"data-disabled":s?"":void 0,...u,ref:g,onPointerMove:ue(e.onPointerMove,Wo(C=>{s?f.onItemLeave(C):(f.onItemEnter(C),C.defaultPrevented||C.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:ue(e.onPointerLeave,Wo(C=>f.onItemLeave(C))),onFocus:ue(e.onFocus,()=>x(!0)),onBlur:ue(e.onBlur,()=>x(!1))})})})}),ED="MenuCheckboxItem",T1=v.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:s,...l}=e;return o.jsx(k1,{scope:e.__scopeMenu,checked:r,children:o.jsx(Bu,{role:"menuitemcheckbox","aria-checked":lu(r)?"mixed":r,...l,ref:n,"data-state":Ep(r),onSelect:ue(l.onSelect,()=>s?.(lu(r)?!0:!r),{checkForDefaultPrevented:!1})})})});T1.displayName=ED;var A1="MenuRadioGroup",[SD,ND]=ps(A1,{value:void 0,onValueChange:()=>{}}),R1=v.forwardRef((e,n)=>{const{value:r,onValueChange:s,...l}=e,u=jn(s);return o.jsx(SD,{scope:e.__scopeMenu,value:r,onValueChange:u,children:o.jsx(jp,{...l,ref:n})})});R1.displayName=A1;var O1="MenuRadioItem",M1=v.forwardRef((e,n)=>{const{value:r,...s}=e,l=ND(O1,e.__scopeMenu),u=r===l.value;return o.jsx(k1,{scope:e.__scopeMenu,checked:u,children:o.jsx(Bu,{role:"menuitemradio","aria-checked":u,...s,ref:n,"data-state":Ep(u),onSelect:ue(s.onSelect,()=>l.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});M1.displayName=O1;var _p="MenuItemIndicator",[k1,CD]=ps(_p,{checked:!1}),D1=v.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:s,...l}=e,u=CD(_p,r);return o.jsx(_n,{present:s||lu(u.checked)||u.checked===!0,children:o.jsx(Me.span,{...l,ref:n,"data-state":Ep(u.checked)})})});D1.displayName=_p;var TD="MenuSeparator",F1=v.forwardRef((e,n)=>{const{__scopeMenu:r,...s}=e;return o.jsx(Me.div,{role:"separator","aria-orientation":"horizontal",...s,ref:n})});F1.displayName=TD;var AD="MenuArrow",L1=v.forwardRef((e,n)=>{const{__scopeMenu:r,...s}=e,l=Hu(r);return o.jsx(up,{...l,...s,ref:n})});L1.displayName=AD;var RD="MenuSub",[_P,P1]=ps(RD),Vo="MenuSubTrigger",z1=v.forwardRef((e,n)=>{const r=gs(Vo,e.__scopeMenu),s=gl(Vo,e.__scopeMenu),l=P1(Vo,e.__scopeMenu),u=bp(Vo,e.__scopeMenu),f=v.useRef(null),{pointerGraceTimerRef:h,onPointerGraceIntentChange:p}=u,g={__scopeMenu:e.__scopeMenu},y=v.useCallback(()=>{f.current&&window.clearTimeout(f.current),f.current=null},[]);return v.useEffect(()=>y,[y]),v.useEffect(()=>{const x=h.current;return()=>{window.clearTimeout(x),p(null)}},[h,p]),o.jsx(vp,{asChild:!0,...g,children:o.jsx(C1,{id:l.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":l.contentId,"data-state":I1(r.open),...e,ref:sl(n,l.onTriggerChange),onClick:x=>{e.onClick?.(x),!(e.disabled||x.defaultPrevented)&&(x.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:ue(e.onPointerMove,Wo(x=>{u.onItemEnter(x),!x.defaultPrevented&&!e.disabled&&!r.open&&!f.current&&(u.onPointerGraceIntentChange(null),f.current=window.setTimeout(()=>{r.onOpenChange(!0),y()},100))})),onPointerLeave:ue(e.onPointerLeave,Wo(x=>{y();const w=r.content?.getBoundingClientRect();if(w){const E=r.content?.dataset.side,C=E==="right",_=C?-5:5,S=w[C?"left":"right"],A=w[C?"right":"left"];u.onPointerGraceIntentChange({area:[{x:x.clientX+_,y:x.clientY},{x:S,y:w.top},{x:A,y:w.top},{x:A,y:w.bottom},{x:S,y:w.bottom}],side:E}),window.clearTimeout(h.current),h.current=window.setTimeout(()=>u.onPointerGraceIntentChange(null),300)}else{if(u.onTriggerLeave(x),x.defaultPrevented)return;u.onPointerGraceIntentChange(null)}})),onKeyDown:ue(e.onKeyDown,x=>{const w=u.searchRef.current!=="";e.disabled||w&&x.key===" "||uD[s.dir].includes(x.key)&&(r.onOpenChange(!0),r.content?.focus(),x.preventDefault())})})})});z1.displayName=Vo;var q1="MenuSubContent",U1=v.forwardRef((e,n)=>{const r=_1(Kn,e.__scopeMenu),{forceMount:s=r.forceMount,...l}=e,u=gs(Kn,e.__scopeMenu),f=gl(Kn,e.__scopeMenu),h=P1(q1,e.__scopeMenu),p=v.useRef(null),g=Je(n,p);return o.jsx(Xo.Provider,{scope:e.__scopeMenu,children:o.jsx(_n,{present:s||u.open,children:o.jsx(Xo.Slot,{scope:e.__scopeMenu,children:o.jsx(wp,{id:h.contentId,"aria-labelledby":h.triggerId,...l,ref:g,align:"start",side:f.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:y=>{f.isUsingKeyboardRef.current&&p.current?.focus(),y.preventDefault()},onCloseAutoFocus:y=>y.preventDefault(),onFocusOutside:ue(e.onFocusOutside,y=>{y.target!==h.trigger&&u.onOpenChange(!1)}),onEscapeKeyDown:ue(e.onEscapeKeyDown,y=>{f.onClose(),y.preventDefault()}),onKeyDown:ue(e.onKeyDown,y=>{const x=y.currentTarget.contains(y.target),w=dD[f.dir].includes(y.key);x&&w&&(u.onOpenChange(!1),h.trigger?.focus(),y.preventDefault())})})})})})});U1.displayName=q1;function I1(e){return e?"open":"closed"}function lu(e){return e==="indeterminate"}function Ep(e){return lu(e)?"indeterminate":e?"checked":"unchecked"}function OD(e){const n=document.activeElement;for(const r of e)if(r===n||(r.focus(),document.activeElement!==n))return}function MD(e,n){return e.map((r,s)=>e[(n+s)%e.length])}function kD(e,n,r){const l=n.length>1&&Array.from(n).every(g=>g===n[0])?n[0]:n,u=r?e.indexOf(r):-1;let f=MD(e,Math.max(u,0));l.length===1&&(f=f.filter(g=>g!==r));const p=f.find(g=>g.toLowerCase().startsWith(l.toLowerCase()));return p!==r?p:void 0}function DD(e,n){const{x:r,y:s}=e;let l=!1;for(let u=0,f=n.length-1;u<n.length;f=u++){const h=n[u],p=n[f],g=h.x,y=h.y,x=p.x,w=p.y;y>s!=w>s&&r<(x-g)*(s-y)/(w-y)+g&&(l=!l)}return l}function FD(e,n){if(!n)return!1;const r={x:e.clientX,y:e.clientY};return DD(r,n)}function Wo(e){return n=>n.pointerType==="mouse"?e(n):void 0}var LD=j1,PD=vp,zD=E1,qD=S1,UD=jp,ID=N1,VD=Bu,HD=T1,BD=R1,GD=M1,$D=D1,YD=F1,KD=L1,QD=z1,ZD=U1,Gu="DropdownMenu",[XD]=Ln(Gu,[b1]),mn=b1(),[WD,V1]=XD(Gu),H1=e=>{const{__scopeDropdownMenu:n,children:r,dir:s,open:l,defaultOpen:u,onOpenChange:f,modal:h=!0}=e,p=mn(n),g=v.useRef(null),[y,x]=ra({prop:l,defaultProp:u??!1,onChange:f,caller:Gu});return o.jsx(WD,{scope:n,triggerId:Yn(),triggerRef:g,contentId:Yn(),open:y,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(w=>!w),[x]),modal:h,children:o.jsx(LD,{...p,open:y,onOpenChange:x,dir:s,modal:h,children:r})})};H1.displayName=Gu;var B1="DropdownMenuTrigger",G1=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:s=!1,...l}=e,u=V1(B1,r),f=mn(r);return o.jsx(PD,{asChild:!0,...f,children:o.jsx(Me.button,{type:"button",id:u.triggerId,"aria-haspopup":"menu","aria-expanded":u.open,"aria-controls":u.open?u.contentId:void 0,"data-state":u.open?"open":"closed","data-disabled":s?"":void 0,disabled:s,...l,ref:sl(n,u.triggerRef),onPointerDown:ue(e.onPointerDown,h=>{!s&&h.button===0&&h.ctrlKey===!1&&(u.onOpenToggle(),u.open||h.preventDefault())}),onKeyDown:ue(e.onKeyDown,h=>{s||(["Enter"," "].includes(h.key)&&u.onOpenToggle(),h.key==="ArrowDown"&&u.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(h.key)&&h.preventDefault())})})})});G1.displayName=B1;var JD="DropdownMenuPortal",$1=e=>{const{__scopeDropdownMenu:n,...r}=e,s=mn(n);return o.jsx(zD,{...s,...r})};$1.displayName=JD;var Y1="DropdownMenuContent",K1=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=V1(Y1,r),u=mn(r),f=v.useRef(!1);return o.jsx(qD,{id:l.contentId,"aria-labelledby":l.triggerId,...u,...s,ref:n,onCloseAutoFocus:ue(e.onCloseAutoFocus,h=>{f.current||l.triggerRef.current?.focus(),f.current=!1,h.preventDefault()}),onInteractOutside:ue(e.onInteractOutside,h=>{const p=h.detail.originalEvent,g=p.button===0&&p.ctrlKey===!0,y=p.button===2||g;(!l.modal||y)&&(f.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});K1.displayName=Y1;var e4="DropdownMenuGroup",t4=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(UD,{...l,...s,ref:n})});t4.displayName=e4;var n4="DropdownMenuLabel",Q1=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(ID,{...l,...s,ref:n})});Q1.displayName=n4;var a4="DropdownMenuItem",Z1=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(VD,{...l,...s,ref:n})});Z1.displayName=a4;var r4="DropdownMenuCheckboxItem",X1=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(HD,{...l,...s,ref:n})});X1.displayName=r4;var s4="DropdownMenuRadioGroup",i4=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(BD,{...l,...s,ref:n})});i4.displayName=s4;var o4="DropdownMenuRadioItem",W1=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(GD,{...l,...s,ref:n})});W1.displayName=o4;var l4="DropdownMenuItemIndicator",J1=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx($D,{...l,...s,ref:n})});J1.displayName=l4;var c4="DropdownMenuSeparator",e_=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(YD,{...l,...s,ref:n})});e_.displayName=c4;var u4="DropdownMenuArrow",d4=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(KD,{...l,...s,ref:n})});d4.displayName=u4;var f4="DropdownMenuSubTrigger",t_=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(QD,{...l,...s,ref:n})});t_.displayName=f4;var h4="DropdownMenuSubContent",n_=v.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...s}=e,l=mn(r);return o.jsx(ZD,{...l,...s,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});
53n_.displayName=h4;var m4=H1,p4=G1,g4=$1,a_=K1,r_=Q1,s_=Z1,i_=X1,o_=W1,l_=J1,c_=e_,u_=t_,d_=n_;const Qb=m4,Zb=p4,y4=v.forwardRef(({className:e,inset:n,children:r,...s},l)=>o.jsxs(u_,{ref:l,className:Re("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",n&&"pl-8",e),...s,children:[r,o.jsx(Gc,{className:"ml-auto"})]}));y4.displayName=u_.displayName;const v4=v.forwardRef(({className:e,...n},r)=>o.jsx(d_,{ref:r,className:Re("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...n}));v4.displayName=d_.displayName;const pm=v.forwardRef(({className:e,sideOffset:n=4,...r},s)=>o.jsx(g4,{children:o.jsx(a_,{ref:s,sideOffset:n,className:Re("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md","data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",e),...r})}));pm.displayName=a_.displayName;const gm=v.forwardRef(({className:e,inset:n,...r},s)=>o.jsx(s_,{ref:s,className:Re("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",n&&"pl-8",e),...r}));gm.displayName=s_.displayName;const x4=v.forwardRef(({className:e,children:n,checked:r,...s},l)=>o.jsxs(i_,{ref:l,className:Re("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...s,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(l_,{children:o.jsx(Tu,{className:"h-4 w-4"})})}),n]}));x4.displayName=i_.displayName;const b4=v.forwardRef(({className:e,children:n,...r},s)=>o.jsxs(o_,{ref:s,className:Re("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(l_,{children:o.jsx(wA,{className:"h-2 w-2 fill-current"})})}),n]}));b4.displayName=o_.displayName;const w4=v.forwardRef(({className:e,inset:n,...r},s)=>o.jsx(r_,{ref:s,className:Re("px-2 py-1.5 text-sm font-semibold",n&&"pl-8",e),...r}));w4.displayName=r_.displayName;const j4=v.forwardRef(({className:e,...n},r)=>o.jsx(c_,{ref:r,className:Re("-mx-1 my-1 h-px bg-muted",e),...n}));j4.displayName=c_.displayName;const Xb=[{href:"/about-eft",labelKey:"about_eft_overview"},{href:"/about-eft/couples",labelKey:"about_eft_couples"},{href:"/about-eft/individuals",labelKey:"about_eft_individuals"},{href:"/about-eft/families",labelKey:"about_eft_families"}],Wb=[{href:"/get-help",labelKey:"get_help"},{href:"/research",labelKey:"research"},{href:"/certification",labelKey:"certification"},{href:"/about",labelKey:"about_org"},{href:"/contact",labelKey:"contact"}],_4={about_eft_overview:{en:"EFT Overview",ar:"ÙØ¸Ø±Ø© عاÙ
Ø© عÙÙ EFT"},about_eft_couples:{en:"EFT for Couples",ar:"EFT ÙÙØ£Ø²Ùاج"},about_eft_individuals:{en:"EFT for Individuals",ar:"EFT ÙÙØ£Ùراد"},about_eft_families:{en:"EFT for Families",ar:"EFT ÙÙØ¹Ø§Ø¦Ùات"},find_therapist:{en:"Find a Therapist",ar:"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬"},training:{en:"Training",ar:"Ø§ÙØªØ¯Ø±Ùب"},resources:{en:"Resources",ar:"اÙÙ
صادر"},get_help:{en:"Get Help",ar:"Ø§ØØµÙ عÙ٠اÙÙ
ساعدة"},research:{en:"Research & Evidence",ar:"Ø§ÙØ£Ø¨ØØ§Ø« ÙØ§ÙØ£Ø¯ÙØ©"},certification:{en:"Certification",ar:"Ø§ÙØ§Ø¹ØªÙ
اد"},about_org:{en:"About GCCEFT",ar:"ع٠GCCEFT"}
53,contact:{en:"Contact",ar:"Ø§ØªØµÙ Ø¨ÙØ§"}};function E4(){const{t:e,language:n,setLanguage:r}=Ot(),[s]=Su(),{isAuthenticated:l,logout:u,login:f}=fl(),[h,p]=v.useState(!1),g=E=>_4[E]?.[n]||E,y=[{href:"/find-therapist",label:e("nav.find_therapist")},{href:"/training",label:e("nav.training")},{href:"/resources",label:e("nav.resources")}],x=[...Xb,{href:"/find-therapist",labelKey:"find_therapist"},{href:"/training",labelKey:"training"},{href:"/resources",labelKey:"resources"},...Wb],w=E=>s===E||s.startsWith(E+"/");return o.jsx("header",{className:"sticky top-0 z-50 w-full border-b border-border bg-background/90 backdrop-blur-md",children:o.jsxs("div",{className:"container mx-auto px-4 h-16 flex items-center justify-between gap-4",children:[o.jsxs("div",{className:"flex items-center gap-6",children:[o.jsx(Ie,{href:"/",className:"shrink-0 flex items-center","aria-label":"GCCEFT Home",children:o.jsx("img",{src:"/logo.png",alt:"GCCEFT",className:"h-10 w-auto"})}),o.jsxs("nav",{className:"hidden lg:flex items-center gap-1",children:[o.jsxs(Qb,{children:[o.jsx(Zb,{asChild:!0,children:o.jsxs("button",{className:`inline-flex items-center gap-1 px-3 py-1.5 rounded-md text-sm font-medium transition-colors hover:text-primary-on hover:bg-accent ${w("/about-eft")?"text-primary-on":"text-muted-foreground"}`,children:[e("nav.about_eft")," ",o.jsx(Qo,{className:"h-3.5 w-3.5"})]})}),o.jsx(pm,{align:"start",children:Xb.map(E=>o.jsx(gm,{asChild:!0,children:o.jsx(Ie,{href:E.href,children:g(E.labelKey)})},E.href))})]}),y.map(E=>o.jsx(Ie,{href:E.href,className:`px-3 py-1.5 rounded-md text-sm font-medium transition-colors hover:text-primary-on hover:bg-accent ${w(E.href)?"text-primary-on":"text-muted-foreground"}`,children:E.label},E.href)),o.jsxs(Qb,{children:[o.jsx(Zb,{asChild:!0,children:o.jsxs("button",{className:"inline-flex items-center gap-1 px-3 py-1.5 rounded-md text-sm font-medium text-muted-foreground transition-colors hover:text-primary-on hover:bg-accent",children:[n==="ar"?"اÙÙ
Ø²ÙØ¯":"More"," ",o.jsx(Qo,{className:"h-3.5 w-3.5"})]})}),o.jsx(pm,{align:"start",children:Wb.map(E=>o.jsx(gm,{asChild:!0,children:o.jsx(Ie,{href:E.href,children:g(E.labelKey)})},E.href))})]})]})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsxs("button",{onClick:()=>r(n==="en"?"ar":"en"),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium border border-border text-muted-foreground hover:text-primary-on hover:border-primary/40 transition-colors","data-testid":"button-toggle-language","aria-label":"Toggle language",children:[o.jsx(Qm,{className:"h-3.5 w-3.5"}),n==="en"?"عربÙ":"English"]}),o.jsx("div",{className:"hidden md:flex items-center gap-2",children:l?o.jsxs(o.Fragment,{children:[o.jsx(Ie,{href:"/my-profile",className:"px-3 py-1.5 text-sm font-medium text-muted-foreground hover:text-primary-on transition-colors",children:n==="ar"?"Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ":"My Profile"}),o.jsx(Ie,{href:"/admin",className:"px-3 py-1.5 text-sm font-medium text-muted-foreground hover:text-primary-on transition-colors",children:e("nav.admin")}),o.jsx(Ie,{href:"/join-directory",children:o.jsx(Ae,{variant:"outline",size:"sm",className:"rounded-full",children:e("nav.join_directory")})}),o.jsx(Ae,{variant:"ghost",size:"sm",onClick:u,className:"rounded-full",children:e("nav.logout")})]}):o.jsx(Ae,{size:"sm",className:"rounded-full",onClick:f,"data-testid":"button-nav-login",children:e("nav.login")})}),o.jsxs(Gk,{open:h,onOpenChange:p,children:[o.jsx($k,{asChild:!0,children:o.jsx(Ae,{variant:"ghost",size:"icon",className:"lg:hidden","data-testid":"button-mobile-menu",children:o.jsx(UA,{className:"h-5 w-5"})})}),o.jsx(d1,{side:n==="ar"?"right":"left",className:"w-72",children:o.jsxs("div",{className:"flex flex-col gap-1 mt-8",children:[o.jsx(Ie,{href:"/",onClick:()=>p(!1),className:"px-3 py-2.5 rounded-lg text-base font-medium hover:bg-accent",children:e("nav.home")}),x.map(E=>o.jsx(Ie,{href:E.href,onClick:()=>p(!1),className:"px-3 py-2.5 rounded-lg text-sm font-medium text-muted-foreground hover:bg-accent hover:text-foreground transition-colors",children:g(E.labelKey)},E.href)),o.jsx("div",{className:"my-3 border-t border-border"}),l?o.jsxs(o.Fragment,{children:[o.jsx(Ie,{href:"/my-profile",onClick:()=>p(!1),className:"px-3 py-2.5 rounded-lg text-sm font-medium text-muted-foreground hover:bg-accent",children:n==="ar"?"Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ":"My Profile"}),o.jsx(Ie,{href:"/admin",onClick:()=>p(!1),className:"px-3 py-2.5 rounded-lg text-sm font-medium text-muted-foreground hover:bg-accent",children:e("nav.admin")}),o.jsx(Ie,{href:"/join-directory",onClick:()=>p(!1),className:"px-3 py-2.5 rounded-lg text-sm font-medium text-muted-foreground hover:bg-accent",children:e("nav.join_directory")}),o.jsx(Ae,{variant:"outline",onClick:()=>{u(),p(!1)},className:"mx-3 mt-2",children:e("nav.logout")})]}):o.jsx(Ae,{className:"mx-3 mt-2 rounded-full",onClick:()=>{f(),p(!1)},children:e("nav.login")})]})})]})]})]})})}function S4(){const{t:e}=Ot();return o.jsx("footer",{className:"bg-card border-t border-border mt-auto",children:o.jsxs("div",{className:"container mx-auto px-4 py-12",children:[o.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 mb-8",children:[o.jsxs("div",{className:"col-span-2 md:col-span-1",children:[o.jsx("img",{src:"/logo.png",alt:"GCCEFT",className:"h-14 w-auto mb-3"}),o.jsx("p",{className:"text-muted-foreground text-sm max-w-xs leading-relaxed",children:e("footer.tagline")})]}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold text-sm mb-4",children:e("footer.for_public")}),o.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[o.jsx("li",{children:o.jsx(Ie,{href:"/about-eft",className:"hover:text-primary-on transition-colors",children:e("nav.about_eft")})}),o.jsx("li",{children:o.jsx(Ie,{href:"/find-therapist",className:"hover:text-primary-on transition-colors",children:e("nav.find_therapist")})}),o.jsx("li",{children:o.jsx(Ie,{href:"/get-help",className:"hover:text-primary-on transition-colors",children:e("cta.get_help")})}),o.jsx("li",{children:o.jsx(Ie,{href:"/resources",className:"hover:text-primary-on transition-colors",children:e("nav.resources")})})]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold text-sm mb-4",children:e("footer.for_professionals")}),o.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[o.jsx("li",{children:o.jsx(Ie,{href:"/training",className:"hover:text-primary-on transition-colors",children:e("nav.training")})}),o.jsx("li",{children:o.jsx(Ie,{href:"/certification",className:"hover:text-primary-on transition-colors",children:e("nav.certification")})}),o.jsx("li",{children:o.jsx(Ie,{href:"/research",className:"hover:text-primary-on transition-colors",children:e("nav.research")})}),o.jsx("li",{children:o.jsx(Ie,{href:"/join-directory",className:"hover:text-primary-on transition-colors",children:e("nav.join_directory")})})]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold text-sm mb-4",children:e("footer.organisation")}),o.jsxs("ul",{className:"space-y-2 text-sm text-muted-foreground",children:[o.jsx("li",{children:o.jsx(Ie,{href:"/about",className:"hover:text-primary-on transition-colors",children:e("nav.about")})}),o.jsx("li",{children:o.jsx(Ie,{href:"/contact",className:"hover:text-primary-on transition-colors",children:e("nav.contact")})}),o.jsx("li",{children:o.jsx("a",{href:"https://iceeft.com",target:"_blank",rel:"noopener noreferrer",className:"hover:text-primary-on transition-colors",children:"ICEEFT"})})]})]})]}),o.jsxs("div",{className:"pt-8 border-t border-border flex flex-col md:flex-row justify-between items-start md:items-center gap-4",children:[o.jsx("p",{className:"text-xs text-muted-foreground max-w-xl leading-relaxed",children:e("footer.disclaimer")}),o.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:["© ",new Date().getFullYear()," GCCEFT"]})]})]})})}function N4({children:e}){return o.jsxs("div",{className:"min-h-[100dvh] flex flex-col",children:[o.jsx(E4,{}),o.jsx("main",{className:"flex-1 flex flex-col",children:e}),o.jsx(S4,{})]})}const gt=v.forwardRef(({className:e,...n},r)=>o.jsx("div",{ref:r,className:Re("rounded-xl border bg-card text-card-foreground shadow",e),...n}));
53gt.displayName="Card";const f_=v.forwardRef(({className:e,...n},r)=>o.jsx("div",{ref:r,className:Re("flex flex-col space-y-1.5 p-6",e),...n}));f_.displayName="CardHeader";const h_=v.forwardRef(({className:e,...n},r)=>o.jsx("div",{ref:r,className:Re("font-semibold leading-none tracking-tight",e),...n}));h_.displayName="CardTitle";const C4=v.forwardRef(({className:e,...n},r)=>o.jsx("div",{ref:r,className:Re("text-sm text-muted-foreground",e),...n}));C4.displayName="CardDescription";const xt=v.forwardRef(({className:e,...n},r)=>o.jsx("div",{ref:r,className:Re("p-6 pt-0",e),...n}));xt.displayName="CardContent";const T4=v.forwardRef(({className:e,...n},r)=>o.jsx("div",{ref:r,className:Re("flex items-center p-6 pt-0",e),...n}));T4.displayName="CardFooter";function A4(){return o.jsx("div",{className:"min-h-screen w-full flex items-center justify-center bg-muted",children:o.jsx(gt,{className:"w-full max-w-md mx-4",children:o.jsxs(xt,{className:"pt-6",children:[o.jsxs("div",{className:"flex mb-4 gap-2",children:[o.jsx(im,{className:"h-8 w-8 text-status-error-on"}),o.jsx("h1",{className:"text-2xl font-bold text-foreground",children:"404 Page Not Found"})]}),o.jsx("p",{className:"mt-4 text-sm text-muted-foreground",children:"Did you forget to add the page to the router?"})]})})})}function R4(){const{t:e,language:n}=Ot(),r=n==="ar";return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-[hsl(40,33%,97%)] via-[hsl(30,30%,95%)] to-[hsl(195,20%,93%)]",children:[o.jsx("div",{className:"absolute inset-0 opacity-[0.035] pointer-events-none",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23734f35' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`}}),o.jsx("div",{className:"container mx-auto px-4 py-16 md:py-24",children:o.jsxs("div",{className:"grid md:grid-cols-2 gap-12 items-center",children:[o.jsxs("div",{className:`relative z-10 ${r?"md:order-2 text-right":""}`,children:[o.jsx("span",{className:"inline-block text-xs font-medium tracking-widest text-primary-on uppercase mb-4 border border-primary/20 rounded-full px-4 py-1.5 bg-primary/5",children:e("hero.trust_strip")}),o.jsx("h1",{className:"font-serif text-4xl md:text-5xl lg:text-6xl font-bold text-foreground mb-6 leading-tight",children:e("hero.title")}),o.jsx("p",{className:"text-lg text-muted-foreground mb-10 leading-relaxed max-w-lg",children:e("hero.subtitle")}),o.jsxs("div",{className:`flex flex-wrap gap-4 ${r?"justify-end":""}`,children:[o.jsx(Ie,{href:"/find-therapist",children:o.jsxs(Ae,{size:"lg",className:"rounded-full px-8 text-base gap-2 shadow-md shadow-primary/20",children:[e("cta.find_therapist"),o.jsx(Oh,{className:`h-4 w-4 ${r?"rotate-180":""}`})]})}),o.jsx(Ie,{href:"/about-eft",children:o.jsx(Ae,{variant:"outline",size:"lg",className:"rounded-full px-8 text-base bg-card/70 border-primary/20 hover:bg-primary/5 backdrop-blur-sm",children:e("cta.learn_eft")})})]})]}),o.jsx("div",{className:`hidden md:block ${r?"md:order-1":""}`,children:o.jsxs("div",{className:"relative",children:[o.jsx("div",{className:"absolute -inset-4 rounded-3xl bg-primary/5 blur-xl"}),o.jsx("img",{src:"https://images.unsplash.com/photo-1640265290964-e57ff2c7e727?auto=format&fit=crop&w=800&q=80",alt:"",className:"relative rounded-2xl shadow-2xl shadow-primary/10 object-cover w-full aspect-[4/5]",loading:"eager"}),o.jsxs("div",{className:`absolute -bottom-4 ${r?"-right-4":"-left-4"} bg-card rounded-xl shadow-lg px-5 py-4 flex items-center gap-3 border border-border`,children:[o.jsx(QA,{className:"h-5 w-5 text-primary-on shrink-0"}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs font-semibold text-foreground",children:e("home.badge.evidence")}),o.jsx("p",{className:"text-xs text-muted-foreground",children:e("home.badge.evidence_sub")})]})]})]})})]})})]}),o.jsx("div",{className:"border-y border-border bg-muted/40 py-4",children:o.jsx("div",{className:"container mx-auto px-4 flex flex-wrap justify-center items-center gap-6 text-sm font-medium text-muted-foreground",children:["ð¦ðª UAE","ð¸ð¦ Saudi Arabia","ð´ð² Oman","ð¶ð¦ Qatar","ð§ð Bahrain","ð°ð¼ Kuwait"].map(s=>o.jsx("span",{className:"tracking-wide",children:s},s))})}),o.jsx("section",{className:"py-20 bg-background",children:o.jsxs("div",{className:"container mx-auto px-4",children:[o.jsxs("div",{className:`text-center mb-12 ${r?"text-right":""}`,children:[o.jsx("h2",{className:"font-serif text-3xl font-bold mb-3",children:e("home.pathways.title")}),o.jsx("p",{className:"text-muted-foreground max-w-xl mx-auto",children:e("home.pathways.subtitle")})]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[{href:"/find-therapist",img:"https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=600&q=80",Icon:Ow,iconColor:"text-primary-on",title:e("cta.find_therapist"),desc:e("home.pathway.public_sub")},{href:"/about-eft",img:"https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=600&q=80",Icon:Km,iconColor:"text-secondary-on",title:e("cta.learn_eft"),desc:e("home.pathway.therapist_sub")},{href:"/training",img:"https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=600&q=80",Icon:Xc,iconColor:"text-primary-on",title:e("cta.professional_training"),desc:e("home.pathway.training_sub")}].map(({href:s,img:l,Icon:u,iconColor:f,title:h,desc:p})=>o.jsx(Ie,{href:s,className:"group",children:o.jsxs(gt,{className:"border border-border/50 shadow-sm hover:shadow-lg transition-all duration-300 overflow-hidden h-full group-hover:-translate-y-1",children:[o.jsxs("div",{className:"h-48 overflow-hidden relative",children:[o.jsx("img",{src:l,alt:"",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),o.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-overlay/40 to-transparent"}),o.jsx("div",{className:`absolute bottom-4 ${r?"right-4":"left-4"}`,children:o.jsx("div",{className:"h-10 w-10 rounded-full bg-card/90 flex items-center justify-center shadow",children:o.jsx(u,{className:`h-5 w-5 ${f}`})})})]}),o.jsxs(xt,{className:`p-6 ${r?"text-right":""}`,children:[o.jsx("h3",{className:"font-serif text-xl font-semibold mb-2",children:h}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:p}
53),o.jsxs("p",{className:`text-primary-on text-sm font-medium mt-4 flex items-center gap-1 ${r?"flex-row-reverse justify-end":""}`,children:[e("common.learn_more")," ",o.jsx(Oh,{className:`h-3.5 w-3.5 ${r?"rotate-180":""}`})]})]})]})},s))})]})}),o.jsx("section",{className:"py-24 bg-card border-t border-border overflow-hidden",children:o.jsx("div",{className:"container mx-auto px-4",children:o.jsxs("div",{className:"grid md:grid-cols-2 gap-16 items-center",children:[o.jsx("div",{className:`hidden md:block rounded-2xl overflow-hidden shadow-xl ${r?"md:order-2":""}`,children:o.jsx("img",{src:"https://images.unsplash.com/photo-1509316785289-025f5b846b35?auto=format&fit=crop&w=800&q=80",alt:"",className:"w-full h-80 object-cover"})}),o.jsxs("div",{className:`${r?"text-right md:order-1":""}`,children:[o.jsx("span",{className:"inline-block text-xs font-medium tracking-widest text-primary-on uppercase mb-3",children:e("home.eft.eyebrow")}),o.jsx("h2",{className:"font-serif text-3xl font-bold mb-6",children:e("home.eft.section_title")}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:e("home.eft.section_desc")}),o.jsx("div",{className:"flex flex-col gap-3 mb-8",children:[e("home.eft.point1"),e("home.eft.point2"),e("home.eft.point3")].map((s,l)=>o.jsxs("div",{className:`flex items-start gap-3 ${r?"flex-row-reverse":""}`,children:[o.jsx("div",{className:"h-1.5 w-1.5 rounded-full bg-primary mt-2 shrink-0"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:s})]},l))}),o.jsx(Ie,{href:"/about-eft",children:o.jsxs(Ae,{className:`rounded-full gap-2 ${r?"flex-row-reverse":""}`,children:[e("home.eft.read_more"),o.jsx(Oh,{className:`h-4 w-4 ${r?"rotate-180":""}`})]})})]})]})})}),o.jsxs("section",{className:"relative py-24 overflow-hidden",children:[o.jsxs("div",{className:"absolute inset-0",children:[o.jsx("img",{src:"/hero-quote.jpg",alt:"",loading:"lazy",className:"w-full h-full object-cover"}),o.jsx("div",{className:"absolute inset-0 bg-hero-scrim/70"})]}),o.jsxs("div",{className:"container mx-auto px-4 relative z-10 text-center max-w-3xl",children:[o.jsxs("blockquote",{className:`font-serif text-2xl md:text-3xl text-hero-ink leading-relaxed mb-6 ${r?"text-right":""}`,children:["â",e("home.quote.text"),"â"]}),o.jsx("p",{className:"text-hero-ink text-sm font-medium tracking-wide uppercase",children:e("home.quote.attribution")})]})]}),o.jsx("section",{className:"py-20 bg-gradient-to-br from-primary/8 via-background to-secondary/8 border-t border-border",children:o.jsxs("div",{className:`container mx-auto px-4 text-center max-w-2xl ${r?"text-right":""}`,children:[o.jsx(vi,{className:"h-10 w-10 text-primary-on mx-auto mb-4"}),o.jsx("h2",{className:"font-serif text-3xl font-bold mb-4",children:e("home.cta_bottom.title")}),o.jsx("p",{className:"text-muted-foreground mb-8",children:e("home.cta_bottom.desc")}),o.jsxs("div",{className:"flex flex-wrap gap-4 justify-center",children:[o.jsx(Ie,{href:"/get-help",children:o.jsx(Ae,{size:"lg",className:"rounded-full px-8",children:e("cta.get_help")})}),o.jsx(Ie,{href:"/contact",children:o.jsx(Ae,{variant:"outline",size:"lg",className:"rounded-full px-8",children:e("cta.contact_us")})})]})]})})]})}function O4(){const{t:e,language:n}=Ot();return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 md:py-28 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("p",{className:"text-sm font-medium uppercase tracking-widest text-primary-on mb-4",children:n==="ar"?"تعÙÙÙ
":"Education"}),o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-6 leading-tight",children:e("about_eft.title")}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:e("about_eft.subtitle")})]})}),o.jsx("section",{className:"py-20 bg-background",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[o.jsx("h2",{className:"font-serif text-3xl font-bold mb-6",children:n==="ar"?"Ø§ÙØ£Ø³Ø§Ø³: عÙÙ
Ø§ÙØªØ¹ÙÙ":"The Foundation: Attachment Science"}),o.jsxs("div",{className:"text-muted-foreground leading-relaxed space-y-4",children:[o.jsx("p",{children:n==="ar"?"Ø·ÙÙØ±Øª Ø§ÙØ¯ÙØªÙØ±Ø© س٠جÙÙØ³ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙ Ø§ÙØ«Ù
اÙÙÙÙØ§ØªØ Ù
Ø³ØªÙØ¯Ø©Ù Ø¥ÙÙ ÙØ¸Ø±ÙØ© Ø§ÙØªØ¹ÙÙ â Ø§ÙÙÙÙ
Ø§ÙØ¹ÙÙ
Ù Ø¨Ø£Ù Ø§ÙØ¨Ø´Ø± Ù
برÙ
جÙÙ Ø¨Ø·Ø¨ÙØ¹ØªÙÙ
عÙÙ Ø§ÙØªÙاص٠Ù
ع Ø§ÙØ¢Ø®Ø±ÙÙ. ØÙÙ ÙØ´Ø¹Ø± Ø¨Ø§ÙØ£Ù
Ø§Ù ÙØ§ÙتعÙÙ Ø§ÙØ¢Ù
٠بÙ
Ù ÙØØ¨Ø ÙØ²Ø¯Ùر. ÙØÙÙ ÙØªÙدد ذÙÙ Ø§ÙØ£Ù
Ø§ÙØ ÙØ¹Ø§Ù٠ضÙÙ
53ا٠عاطÙÙØ§Ù عÙ
ÙÙØ§Ù.":"Developed by Dr. Sue Johnson in the 1980s, EFT draws from attachment theory â the scientific understanding that human beings are fundamentally wired for connection. When we feel safe and securely attached to those we love, we thrive. When that security is threatened, we experience profound emotional distress."}),o.jsx("p",{children:n==="ar"?"ÙÙØ¹Ø¯Ù Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر Ù
Ù Ø£ÙØ«Ø± Ø§ÙØ£Ø³Ø§ÙÙØ¨ Ø¨ØØ«Ø§Ù ÙÙ Ø§ÙØ¹Ùاج اÙÙÙØ³Ù. ØªÙØ¸Ùر Ø§ÙØªØ¬Ø§Ø±Ø¨ Ø§ÙØ³Ø±ÙØ±ÙØ© باستÙ
رار ØªØØ³ÙÙØ§Øª ÙØ¨Ùرة ÙÙ Ø¶Ø§Ø¦ÙØ© Ø§ÙØ¹ÙØ§ÙØ§Øª ÙØ±Ùا٠اÙÙØ±Ø¯ ÙØ£Ø¯Ø§Ø¡ Ø§ÙØ£Ø³Ø±Ø©. ÙØ¹Ø§Ùج Ø§ÙØ¬Ø°Ø± Ø§ÙØ¹Ø§Ø·ÙÙ ÙÙÙ
Ø¹Ø§ÙØ§Ø©Ø ÙØ§ Ù
جرد Ø§ÙØ³ÙÙÙ Ø§ÙØ¸Ø§ÙرÙ.":"EFT is one of the most well-researched approaches in psychotherapy. Clinical trials consistently show significant improvements in relationship distress, individual wellbeing, and family functioning. It addresses the emotional root of suffering, not just the surface behavior."}),o.jsx("p",{children:n==="ar"?"ÙÙ Ø³ÙØ§Ù Ø§ÙØ®ÙÙØ¬Ø ØÙØ« تÙ
Ø«Ù Ø§ÙØ±Ùابط Ø§ÙØ£Ø³Ø±ÙØ© رÙÙØ²Ø© اÙÙÙÙØ© Ø§ÙØ«ÙاÙÙØ©Ø ÙÙØ¯Ù
Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر إطارا٠عÙ
ÙÙ Ø§ÙØµØ¯Ù â Ø¥Ø·Ø§Ø±Ø§Ù ÙÙØ±ÙÙ
Ø§ÙØªÙØ§ØµÙ ÙØ§ÙÙÙØ§Ø¡ ÙØ§ÙØ§ÙØªÙ
اء Ø¨Ø§Ø¹ØªØ¨Ø§Ø±ÙØ§ جÙÙØ± Ø§ÙØ§Ø²Ø¯Ùار Ø§ÙØ¥ÙساÙÙ.":"In the GCC context, where family bonds are central to cultural identity, EFT offers a deeply resonant framework â one that honors connection, loyalty, and belonging as core to human flourishing."})]})]})}),o.jsx("section",{className:"py-20 bg-muted/30 border-t border-border",children:o.jsxs("div",{className:"container mx-auto px-4",children:[o.jsx("h2",{className:"font-serif text-3xl font-bold text-center mb-12",children:n==="ar"?"EFT عبر Ø§ÙØ¹ÙØ§ÙØ§Øª":"EFT Across Relationships"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[o.jsx(gt,{className:"border border-border hover:shadow-md transition-shadow",children:o.jsxs(xt,{className:"p-8 flex flex-col h-full",children:[o.jsx("div",{className:"h-14 w-14 rounded-full bg-primary/10 flex items-center justify-center mb-6",children:o.jsx(Ow,{className:"h-7 w-7 text-primary-on"})}),o.jsx("h3",{className:"font-serif text-xl font-semibold mb-3",children:e("about_eft.couples.title")}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1",children:n==="ar"?"ÙØ´Ù٠أÙÙ
اط اÙÙ
ÙØ§ØÙØ© ÙØ§ÙØ§ÙØ³ØØ§Ø¨ Ø§ÙØªÙ تآÙÙ Ø§ÙØÙ
ÙÙ
ÙØ©. ÙÙØ¹Ùد Ø¨ÙØ§Ø¡ Ø±ÙØ§Ø¨Ø· Ø¢Ù
ÙØ© ÙÙ
ØØ¨Ø© بÙÙ Ø§ÙØ´Ø±Ùاء.":"Heals the patterns of pursuit and withdrawal that erode intimacy. Rebuilds secure, loving bonds between partners."}),o.jsx(Ie,{href:"/about-eft/couples",className:"mt-6",children:o.jsxs(Ae,{variant:"link",className:"p-0 text-primary-on h-auto font-medium",children:[e("common.learn_more")," ",o.jsx(Gc,{className:"h-4 w-4 ms-1"})]})})]})}),o.jsx(gt,{className:"border border-border hover:shadow-md transition-shadow",children:o.jsxs(xt,{className:"p-8 flex flex-col h-full",children:[o.jsx("div",{className:"h-14 w-14 rounded-full bg-secondary/10 flex items-center justify-center mb-6",children:o.jsx(vi,{className:"h-7 w-7 text-secondary-on"})}),o.jsx("h3",{className:"font-serif text-xl font-semibold mb-3",children:e("about_eft.individuals.title")}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1",children:n==="ar"?"ÙØ¯Ø¹Ù
Ø§ÙØ´Ùاء Ù
٠اÙÙÙÙ ÙØ§ÙØ§ÙØªØ¦Ø§Ø¨ ÙØ§ÙصدÙ
Ø© Ù
Ù Ø®ÙØ§Ù Ù
ÙØ¸Ùر Ø§ÙØªØ¹ÙÙ. ÙÙÙÙ
ÙÙ Ø§ÙØ±ØÙ
Ø© Ø¨Ø§ÙØ°Ø§Øª ÙØ§ÙÙ
رÙÙØ©.":"Supports healing from anxiety, depression, and trauma through an attachment lens. Cultivates self-compassion and resilience."}),o.jsx(Ie,{href:"/about-eft/individuals",className:"mt-6",children:o.jsxs(Ae,{variant:"link",className:"p-0 text-primary-on h-auto font-medium",children:[e("common.learn_more")," ",o.jsx(Gc,{className:"h-4 w-4 ms-1"})]})})]})}),o.jsx(gt,{className:"border border-border hover:shadow-md transition-shadow",children:o.jsxs(xt,{className:"p-8 flex flex-col h-full",children:[o.jsx("div",{className:"h-14 w-14 roun
53ded-full bg-primary/10 flex items-center justify-center mb-6",children:o.jsx(MA,{className:"h-7 w-7 text-primary-on"})}),o.jsx("h3",{className:"font-serif text-xl font-semibold mb-3",children:e("about_eft.families.title")}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1",children:n==="ar"?"ÙÙØ¹Ø²Ø² رابطة اÙÙØ§ÙدÙÙ ÙØ§ÙØ·ÙÙ ÙØ§ÙØ±Ø¹Ø§ÙØ© بÙÙ Ø§ÙØ£Ø¬ÙاÙ. ÙØ¯Ø¹Ù
Ø§ÙØ£Ø³Ø±Ø© Ø¨ÙØµÙÙØ§ ØØ¬Ø± Ø§ÙØ£Ø³Ø§Ø³ ÙÙØ±ÙاÙ.":"Strengthens the parent-child bond and cross-generational caregiving. Supports the family as the cornerstone of wellbeing."}),o.jsx(Ie,{href:"/about-eft/families",className:"mt-6",children:o.jsxs(Ae,{variant:"link",className:"p-0 text-primary-on h-auto font-medium",children:[e("common.learn_more")," ",o.jsx(Gc,{className:"h-4 w-4 ms-1"})]})})]})})]})]})}),o.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:o.jsxs("div",{className:"container mx-auto px-4 text-center",children:[o.jsx("h2",{className:"font-serif text-3xl font-bold mb-4",children:n==="ar"?"ÙÙ Ø£ÙØª Ù
ستعد ÙÙØ®Ø·ÙØ© Ø§ÙØªØ§ÙÙØ©Ø":"Ready to take the next step?"}),o.jsx("p",{className:"text-primary-foreground mb-8 max-w-xl mx-auto",children:n==="ar"?"ØªÙØ§ØµÙ Ù
ع Ù
Ø¹Ø§ÙØ¬ EFT Ù
عتÙ
د ÙÙ Ù
ÙØ·ÙØ© Ø§ÙØ®ÙÙØ¬.":"Connect with a certified EFT therapist in the GCC region."}),o.jsx(Ie,{href:"/find-therapist",children:o.jsx(Ae,{variant:"secondary",size:"lg",className:"rounded-full px-8",children:e("cta.find_therapist")})})]})})]})}function M4(){const{t:e,language:n}=Ot();return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("p",{className:"text-sm font-medium uppercase tracking-widest text-primary-on mb-4",children:n==="ar"?"EFT ÙÙØ£Ø²Ùاج":"EFT for Couples"}),o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-6",children:n==="ar"?"Ø´ÙØ§Ø¡ ÙÙØ¨ Ø¹ÙØ§ÙتÙ":"Healing the Heart of Your Relationship"}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:n==="ar"?"ÙØ¹Ø§Ùج Ø¹ÙØ§Ø¬ Ø§ÙØ£Ø²Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر (EFCT) Ø§ÙØ£ÙÙ
اط Ø§ÙØ¹Ù
ÙÙØ© Ø§ÙØªÙ تباعد بÙÙ Ø§ÙØ´Ø±Ùاء â ÙÙØ®ÙÙ Ø§ÙØ£Ù
Ø§Ù Ø§ÙØ°Ù ÙÙ
ÙÙÙ Ø§ÙØ´Ø±Ùاء Ù
Ù Ø§ÙØªÙØ¬Ù ÙØÙ Ø¨Ø¹Ø¶ÙÙ
Ù
Ù Ø¬Ø¯ÙØ¯.":"Emotionally Focused Couple Therapy (EFCT) addresses the deep patterns that drive couples apart â and creates the safety for partners to turn toward each other again."})]})}),o.jsx("section",{className:"py-20 bg-background",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-4xl space-y-12",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"Ø¯ÙØ±Ø© اÙÙ
ÙØ§ØÙØ© ÙØ§ÙØ§ÙØ³ØØ§Ø¨":"The Pursuer-Withdrawer Cycle"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"Ù
عظÙ
Ø§ÙØ£Ø²Ùاج ÙÙ Ø¶Ø§Ø¦ÙØ© ÙÙØ¹ÙÙ ÙÙ ÙÙ
Ø· Ù
تÙÙØ¹: Ø£ØØ¯ Ø§ÙØ´Ø±Ùاء ÙÙØ§ØÙ â ÙÙØªÙد ÙÙØ·Ø§Ùب ÙÙØµØ¹Ùد â Ø¨ÙÙÙ
ا ÙÙØ³ØØ¨ Ø§ÙØ¢Ø®Ø± â ÙØµÙ
ت ÙÙØªØ±Ø§Ø¬Ø¹. ÙØ§ Ø£ØØ¯ Ù
ÙÙÙ
ا Ù
خطئ. ÙÙØ§ÙÙ
ا ÙØ³ØªØ¬Ùب ÙÙØ®Ù٠اÙÙØ§Ù
Ù ÙÙØ³Ù: Ø§ÙØ®ÙÙ Ù
Ù Ø£ÙØ§ ÙÙØØ¨ÙØ§Ø Ø£Ù Ø£Ù ÙØ§ ÙÙÙÙØ§Ø Ø£Ù Ø£Ù ÙØ§ ÙÙÙÙØ§ بأÙ
ا٠Ù
ع Ø§ÙØ¢Ø®Ø±.":"Most couples in distress fall into a predictable pattern: one partner pursues â criticizes, demands, escalates â while the other withdraws â shuts down, goes quiet, retreats. Neither partner is wrong. Both are responding to the same underlying fear: that they are not loved, not enough, not safe with the other."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-4",children:n==="ar"?"ÙØ³Ø§Ø¹Ø¯ EFCT Ø§ÙØ£Ø²Ùاج عÙÙ ØªØØ¯Ùد ÙØ°Ù Ø§ÙØ¯Ùرة Ø¨Ø§Ø¹ØªØ¨Ø§Ø±ÙØ§ اÙÙ
Ø´ÙÙØ© â ÙØ§ بعضÙÙ
Ø§ÙØ¨Ø¹Ø¶. ØÙÙ ÙØªÙ
ÙÙ ÙÙØ§ Ø§ÙØ´Ø±ÙÙÙÙ Ù
Ù Ø±Ø¤ÙØ© اÙÙÙ
Ø· Ø§ÙØ°Ù ÙØ£Ø³Ø±ÙÙ
Ø§Ø ÙØµØ¨Ø Ø´ÙØ¡ رائع Ù
Ù
ÙÙØ§Ù: Ø§ÙØªØ¹Ø§Ø
53·Ù.":"EFCT helps couples identify this cycle as the problem â not each other. When both partners can see the pattern that holds them hostage, something remarkable becomes possible: compassion."})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"ÙÙÙ ÙØ¹Ù
Ù EFCT":"How EFCT Works"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"ÙØªÙ
EFCT عادة٠عÙÙ Ù
د٠8 Ø¥ÙÙ 20 Ø¬ÙØ³Ø©. Ø³ÙØ³Ø§Ø¹Ø¯Ù Ù
Ø¹Ø§ÙØ¬Ù Ø£ÙØª ÙØ´Ø±ÙÙ٠عÙÙ:":"EFCT typically takes place over 8 to 20 sessions. Your therapist will help you and your partner:"}),o.jsx("ul",{className:"mt-4 space-y-3 text-muted-foreground",children:(n==="ar"?["ØªØØ¯Ùد Ø§ÙØ¯Ùرة Ø§ÙØ³ÙØ¨ÙØ© Ø§ÙØªÙ ØªÙØ¨ÙÙÙÙ
ا عاÙÙÙÙÙ","اÙÙØµÙ٠إÙ٠اÙÙ
شاعر Ø§ÙØ¹Ù
ÙÙØ© اÙÙØ§Ù
ÙØ© ÙØ±Ø§Ø¡ اÙÙØ²Ø§Ø¹ ÙØ§ÙØªØ¹Ø¨ÙØ± عÙÙØ§","Ø§ÙØ§Ø³ØªÙ
اع ÙØ¨Ø¹Ø¶ÙÙ
ا بطرÙÙØ© Ø¬Ø¯ÙØ¯Ø© â Ø¨ÙصÙÙÙ
ا شرÙÙØ§Ù ÙÙ Ø§ØØªÙØ§Ø¬Ø ÙØ§ Ø¹Ø¯ÙØ§Ù","Ø®Ù٠أÙÙ
اط Ø¬Ø¯ÙØ¯Ø© Ù
Ù Ø§ÙØªÙØ¬Ù ÙØÙ Ø§ÙØ¢Ø®Ø± ÙØ§Ùاستجابة Ø¨Ø§ÙØªÙ
اÙ
","ØªØ±Ø³ÙØ® رابطة Ø£ÙØ«Ø± Ø£Ù
Ø§ÙØ§Ù ÙØ«ÙØ©"]:["Identify the negative cycle that keeps you stuck","Access and express the deeper emotions beneath the conflict","Hear each other in a new way â as a partner in need, not an adversary","Create new patterns of reaching out and responding with care","Consolidate a more secure, trusting bond"]).map((r,s)=>o.jsxs("li",{className:"flex gap-3",children:[o.jsxs("span",{className:"text-primary-on font-bold",children:[s+1,"."]}),o.jsx("span",{children:r})]},s))})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"Ù
Ù ÙÙ
ÙÙÙ Ø§ÙØ§Ø³ØªÙادة":"Who Can Benefit"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"EFCT Ù
ÙØ§Ø³Ø¨ ÙÙØ£Ø²Ùاج Ø§ÙØ°ÙÙ ÙØ¹Ø§ÙÙÙ Ù
Ù Ø§ÙØµØ±Ø§Ø¹ Ø£Ù Ø§ÙØ¨Ø¹Ø¯ Ø§ÙØ¹Ø§Ø·ÙÙ Ø£Ù Ø®ÙØ§ÙØ© Ø§ÙØ«ÙØ© أ٠اÙÙÙØ§Ø± Ø§ÙØªÙاص٠أ٠تØÙÙØ§Øª Ø§ÙØÙØ§Ø© Ø£Ù Ø¶ØºÙØ· Ø§ÙØ£Ø¨ÙØ© ÙØ§ÙØ£Ù
ÙÙ
Ø© أ٠أ٠أÙÙ
ÙÙ Ø§ÙØ¹ÙØ§ÙØ©.":"EFCT is suitable for couples experiencing conflict, emotional distance, betrayal of trust, communication breakdown, life transitions, parenting stress, or any relational pain. It is not appropriate when there is active domestic violence or substance dependence that is untreated."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-4",children:n==="ar"?"ثبتت ÙØ¹Ø§ÙÙØ© EFCT عبر Ø®ÙÙÙØ§Øª Ø«ÙØ§ÙÙØ© Ù
تÙÙØ¹Ø©Ø ÙÙÙ ØØ³Ø§Ø³ بشÙ٠خاص ÙÙÙÙ
Ø§ÙØ§ÙتزاÙ
ÙØ§ÙÙÙØ§Ø¡ Ø§ÙØ£Ø³Ø±Ù ÙØ§ÙتØÙظ اÙÙ
Ø±ÙØ²ÙØ© ÙÙØ«Ùر Ù
٠أسر Ø§ÙØ®ÙÙØ¬.":"EFCT has been shown to be effective across diverse cultural backgrounds and is particularly sensitive to the values of commitment, family loyalty, and discretion that are central to many GCC families."})]})]})}),o.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:o.jsxs("div",{className:"container mx-auto px-4 text-center",children:[o.jsx("h2",{className:"font-serif text-3xl font-bold mb-4",children:n==="ar"?"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬ Ø£Ø²ÙØ§Ø¬":"Find a Couples Therapist"}),o.jsx("p",{className:"text-primary-foreground mb-8",children:n==="ar"?"ØªÙØ§ØµÙ Ù
ع Ù
Ø¹Ø§ÙØ¬ Ù
Ø¯Ø±ÙØ¨ عÙÙ EFCT ÙÙ Ø¨ÙØ¯Ù.":"Connect with an EFCT-trained therapist in your country."}),o.jsx(Ie,{href:"/find-therapist?modality=EFCT - Couples",children:o.jsx(Ae,{variant:"secondary",size:"lg",className:"rounded-full px-8",children:e("cta.find_therapist")})})]})})]})}function k4(){const{t:e,language:n}=Ot(),r=n==="ar"?[{title:"اÙÙÙÙ",desc:"ÙÙÙ
اÙÙÙ٠باعتبار٠إشارة تعÙÙ ÙØ§ Ø¥Ø®ÙØ§ÙØ§Ù Ø´Ø®ØµÙØ§Ù â ÙØªØ·ÙÙØ± Ø¹ÙØ§ÙØ© Ø£ÙØ«Ø± ØªÙØ§Ø²ÙØ§Ù ÙØ«Ø¨Ø§ØªØ§Ù Ù
ع Ø§ÙØ®ÙÙ."},{title:"Ø§ÙØ§Ùتئاب",desc:"Ø§Ø³ØªÙØ´Ø§Ù ÙÙÙ ÙÙØ³ÙÙ
Ø§ÙØ§ÙÙØµØ§Ù ÙØ§ÙØ´Ù٠اÙÙ
ÙØ¨Ùت Ù٠تدÙ٠اÙÙ
Ø²Ø§Ø¬Ø ÙØ§ÙعÙ
Ù ÙØÙ Ø§ÙØÙÙÙØ© ÙØ§ÙرØÙ
Ø© Ø¨Ø§ÙØ°Ø§Øª."},{title:"Ø§ÙØµØ¯Ù
Ø©",desc:"Ù
Ø¹Ø§ÙØ¬Ø© Ø§ÙØªØ¬Ø§Ø±Ø¨ Ø§ÙØµØ§Ø¯Ù
Ø© بطرÙÙØ© Ø¢Ù
ÙØ© ÙÙ
تدرجة â ÙÙØ§ سÙÙ
ا صدÙ
ات Ø§ÙØ¹ÙØ§ÙØ§Øª ÙØ¬Ø±ÙØ Ø§ÙØªØ¹Ù٠اÙÙ
Ø¨ÙØ±."},{title:"ØªÙØ¯Ùر Ø§ÙØ°Ø§Øª",desc:"Ø§ÙØ¹Ù
Ù Ù
ع Ø§ÙØ§Ø¹ØªÙاد Ø§ÙØ¹Ù
Ù٠بأ٠اÙÙ
رء ØºÙØ± ÙØ§Ø¨Ù ÙÙØØ¨ بشÙ٠جÙÙØ±Ù Ø£Ù ØºÙØ± ÙØ§ÙÙØ ÙØ¨Ùاء Ø¥ØØ³Ø§Ø³ Ø£ÙØ«Ø± Ø£Ù
Ø§ÙØ§Ù Ø¨Ø§ÙØ°Ø§Øª."}
53]:[{title:"Anxiety",desc:"Understanding anxiety as an attachment signal, not a personal failing â and developing a more regulated, grounded relationship with fear."},{title:"Depression",desc:"Exploring how disconnection and suppressed longing contribute to low mood, and working toward vitality and self-compassion."},{title:"Trauma",desc:"Processing traumatic experiences in a safe, paced way â particularly relational trauma and early attachment wounds."},{title:"Self-worth",desc:"Working with the deep belief that one is fundamentally unlovable or not enough, and building a more secure sense of self."}];return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("p",{className:"text-sm font-medium uppercase tracking-widest text-primary-on mb-4",children:n==="ar"?"EFT ÙÙØ£Ùراد":"EFT for Individuals"}),o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-6",children:n==="ar"?"Ø§ÙØ¹Ùدة Ø¥ÙÙ ÙÙØ³Ù":"Coming Home to Yourself"}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:n==="ar"?"ÙØ¯Ø¹Ù
Ø§ÙØ¹Ùاج اÙÙØ±Ø¯Ù اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر (EFIT) Ø§ÙØ£Ø´Ø®Ø§Øµ Ø§ÙØ°ÙÙ ÙØ¹Ø§ÙÙÙ Ù
٠اÙÙÙÙ ÙØ§ÙØ§ÙØªØ¦Ø§Ø¨ ÙØ§ÙصدÙ
Ø© ÙØ£ÙÙ
Ø§ÙØ¹ÙØ§ÙØ§Øª Ù
Ù Ø®ÙØ§Ù Ù
ÙØ¸Ùر Ø§ÙØªØ¹ÙÙ ÙØ§ÙÙ
شاعر.":"Emotionally Focused Individual Therapy (EFIT) supports people experiencing anxiety, depression, trauma, and relational pain through the lens of attachment and emotion."})]})}),o.jsx("section",{className:"py-20 bg-background",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-4xl space-y-12",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"Ù
ÙØ¸Ùر Ø§ÙØªØ¹ÙÙ ÙÙÙ
Ø¹Ø§ÙØ§Ø© اÙÙØ±Ø¯ÙØ©":"An Attachment Lens for Individual Suffering"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"ÙÙÙÙ
EFIT Ø§ÙØµØ¹Ùبات Ø§ÙØ¹Ø§Ø·ÙÙØ© â Ø§ÙÙÙÙ ÙØ§ÙØ§ÙØªØ¦Ø§Ø¨ ÙØ§ÙØ®Ø²Ù ÙØ§ÙاÙÙØµØ§Ù â Ø¨Ø§Ø¹ØªØ¨Ø§Ø±Ùا ذات Ø·Ø¨ÙØ¹Ø© Ø¹ÙØ§Ø¦ÙÙØ© Ù٠جÙÙØ±Ùا. ÙØªØ£ØªÙ ضÙÙÙØ§ ÙÙ Ø§ÙØºØ§Ùب Ù
Ù Ø§ÙØ·Ø±ÙÙØ© Ø§ÙØªÙ تعÙÙ
ÙØ§ Ø¨ÙØ§ إدارة Ø§ÙØØ§Ø¬Ø© Ø¥ÙÙ Ø§ÙØªÙاصÙ: إخÙ
Ø§Ø¯ÙØ Ø£Ù Ø§ÙØ´Ø¹Ùر Ø¨Ø§ÙØ¥Ø±Ø¨Ø§Ù Ø¨Ø³Ø¨Ø¨ÙØ أ٠عدÙ
اÙÙØ«ÙÙ Ø¨Ù ÙØ·.":"EFIT understands emotional difficulty â anxiety, depression, shame, disconnection â as fundamentally relational. Our distress often originates in how we have learned to manage the need for connection: shutting it away, becoming overwhelmed by it, or never quite trusting it."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-4",children:n==="ar"?"Ø¨Ø¯ÙØ§Ù Ù
Ù Ù
جرد إدارة Ø§ÙØ£Ø¹Ø±Ø§Ø¶Ø ÙØ¹Ù
Ù EFIT عÙÙ Ù
ستÙÙ Ø§ÙØªØ¬Ø±Ø¨Ø© Ø§ÙØ¹Ø§Ø·ÙÙØ©Ø ÙÙØ³Ø§Ø¹Ø¯ Ø§ÙØ¹Ù
ÙØ§Ø¡ عÙÙ Ù
ÙØ§Ø¬ÙØ© Ø£ÙÙØ³ÙÙ
Ø¨ØªØ¹Ø§Ø·Ù Ø£ÙØ¨Ø±Ø ÙØ¥Ø¹Ø§Ø¯Ø© تشÙÙ٠طرÙÙØ© تعاÙ
ÙÙÙ
Ù
ع Ø£ÙÙØ³ÙÙ
ÙØ§ÙآخرÙÙ.":"Rather than simply managing symptoms, EFIT works at the level of emotional experience, helping clients encounter themselves with greater compassion, and reshaping how they relate to themselves and others."})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"Ù
ا ÙØ¹Ø§Ùج٠EFIT":"What EFIT Addresses"}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:r.map(s=>o.jsxs("div",{className:"p-6 rounded-xl bg-card border border-border",children:[o.jsx("h3",{className:"font-semibold text-foreground mb-2",children:s.title}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:s.desc})]},s.title))})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"Ø±Ø¹Ø§ÙØ© ØØ³Ø§Ø³Ø© Ø«ÙØ§ÙÙØ§Ù":"Culturally Sensitive Care"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"Ø§ÙØ³Ø¹Ù ÙÙØØµÙ٠عÙÙ Ø¹ÙØ§Ø¬ ÙØ±Ø¯Ù ÙØªØ·Ùب Ø´Ø¬Ø§Ø¹Ø©Ø ÙÙØ§ سÙÙ
ا ÙÙ Ø§ÙØ³ÙØ§ÙØ§Øª Ø§ÙØªÙ ÙØ§ تزا٠ÙÙÙØ§ Ø§ÙØµØØ© اÙÙÙØ³ÙØ© Ù
صØÙبة Ø¨ÙØµÙ
Ø© اجتÙ
Ø§Ø¹ÙØ©. اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
دربÙ٠عÙÙ EFIT Ù٠دÙÙÙ GCCEFT ÙØ¯ÙÙÙ
خبرة ÙÙ Ø§ÙØ¹Ù
Ù Ù
ع عÙ
ÙØ§Ø¡ Ø§ÙØ®ÙÙØ¬ â Ù
ع Ø§ØØªØ±Ø§Ù
اÙÙÙÙ
Ø§ÙØ«ÙاÙÙØ© ÙÙØ¹Ø§Ø¦ÙØ© ÙØ§ÙØ®ØµÙØµÙØ© ÙØ§ÙØ¥ÙÙ
Ø§Ù ÙØ§ÙÙØ±Ø§Ù
Ø©Ø Ù
ع Ø®ÙÙ Ù
Ø³Ø§ØØ© Ù
Ù Ø§ÙØ£Ù
ا٠اÙÙÙØ³Ù Ø§ÙØÙÙÙÙ.":"Seeking individual therapy requires courage, particularly in contexts where mental health remains stigmatized. EFIT-trained therapists in GCCEFT's directory are experienced in working with GCC clients â respecting cultural values of family, privacy, faith, and dignity while creating a space of genuine psychological safety."})]})]})}),o.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:o.jsxs("div",{className:"container mx-auto px-4 text-center",children:[o.jsx("h2",{className:"font-serif text-3xl font-bold mb-4",children:n==="ar"?"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬ ÙØ±Ø¯Ù":"Find an Indiv
53idual Therapist"}),o.jsx("p",{className:"text-primary-foreground mb-8",children:n==="ar"?"ØªØµÙØ اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
دربÙ٠عÙÙ EFIT عبر Ù
ÙØ·ÙØ© Ø§ÙØ®ÙÙØ¬.":"Browse EFIT-trained therapists across the GCC region."}),o.jsx(Ie,{href:"/find-therapist?modality=EFIT - Individuals",children:o.jsx(Ae,{variant:"secondary",size:"lg",className:"rounded-full px-8",children:e("cta.find_therapist")})})]})})]})}function D4(){const{t:e,language:n}=Ot(),r=n==="ar"?["ØµØ¹ÙØ¨Ø§Øª Ø§ÙØ¹ÙØ§ÙØ© بÙ٠اÙÙØ§ÙدÙÙ ÙØ§ÙØ·ÙÙØ بÙ
ا Ù٠ذÙÙ Ø§ÙØ¨Ø¹Ø¯ Ø§ÙØ¹Ø§Ø·ÙÙ Ø£Ù Ø§ÙØµØ±Ø§Ø¹","ØªØØ¯Ùات سÙÙ٠اÙÙ
راÙÙÙ٠اÙÙ
تجذرة ÙÙ Ø§ØØªÙاجات Ø§ÙØªØ¹ÙÙ ØºÙØ± اÙÙ
ÙÙØ¨Ø§Ø©","Ù
ساعدة Ø§ÙØ¢Ø¨Ø§Ø¡ عÙ٠دعÙ
Ø£Ø·ÙØ§ÙÙÙ
Ø®ÙØ§Ù اÙÙÙÙ ÙØ§ÙØ§ÙØªØ¦Ø§Ø¨ Ø£Ù Ø§ÙØµØ¯Ù
Ø©","تÙÙÙ Ø§ÙØ£Ø³Ø±Ø© Ù
ع Ø§ÙØªØÙÙØ§Øª Ø§ÙØÙØ§ØªÙØ© اÙÙØ¨Ø±Ù (Ø§ÙØ·ÙØ§ÙØ اÙÙØ¬Ø±Ø©Ø اÙÙÙØ¯)","Ø§ÙØªÙاص٠بÙÙ Ø§ÙØ£Ø¬ÙØ§Ù â Ø³Ø¯ اÙÙØ¬ÙØ© بÙÙ Ø§ÙØªÙÙØ¹Ø§Øª Ø§ÙØªÙÙÙØ¯ÙØ© ÙØ§ÙÙ
عاصرة"]:["Parent-child relationship difficulties, including emotional distance or conflict","Adolescent behavioral challenges rooted in unmet attachment needs","Helping parents support children through anxiety, depression, or trauma","Family adjustment to major life transitions (divorce, migration, bereavement)","Cross-generational communication â bridging traditional and contemporary expectations"];return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("p",{className:"text-sm font-medium uppercase tracking-widest text-primary-on mb-4",children:n==="ar"?"EFT ÙÙØ¹Ø§Ø¦Ùات":"EFT for Families"}),o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-6",children:n==="ar"?"ØªØ¹Ø²ÙØ² Ø§ÙØ±Ø§Ø¨Ø·Ø© Ø§ÙØ£Ø³Ø±ÙØ©":"Strengthening the Family Bond"}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:n==="ar"?"ÙØ¹Ù
Ù Ø§ÙØ¹Ùاج Ø§ÙØ£Ø³Ø±Ù اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر (EFFT) Ù
ع Ù
ÙØ¸ÙÙ
Ø© Ø§ÙØ£Ø³Ø±Ø© بأÙÙ
ÙÙØ§ â ÙØªØ¹Ø²Ùز Ø¹ÙØ§Ùات Ø¢Ù
ÙØ© ÙÙ
ØØ¨Ø© بÙÙ Ø§ÙØ¢Ø¨Ø§Ø¡ ÙØ§ÙØ£Ø·ÙØ§Ù عبر Ø§ÙØ£Ø¬ÙاÙ.":"Emotionally Focused Family Therapy (EFFT) works with the entire family system â fostering secure, caring relationships between parents and children across generations."})]})}),o.jsx("section",{className:"py-20 bg-background",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-4xl space-y-12",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"Ø§ÙØ£Ø³Ø±Ø© Ø¨ÙØµÙÙØ§ ÙÙØ¨ Ø§ÙØ±ÙاÙ":"The Family as the Heart of Wellbeing"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"ÙÙ Ù
جتÙ
عات Ø§ÙØ®ÙÙØ¬Ø تÙ
Ø«Ù Ø§ÙØ£Ø³Ø±Ø© اÙÙ
صدر Ø§ÙØ£Ø³Ø§Ø³Ù ÙÙÙÙÙØ© ÙØ§ÙÙ
عÙÙ ÙØ§ÙدعÙ
. ØÙ٠تتعرض Ø§ÙØ¹ÙØ§ÙØ§Øª Ø§ÙØ£Ø³Ø±ÙØ© ÙÙØªÙتر â Ø¨Ø³Ø¨Ø¨ Ø§ÙØµØ±Ø§Ø¹ Ø£Ù Ø§ÙØ§ÙÙØµØ§Ù أ٠اÙÙÙØ¯ Ø£Ù Ø¶ØºÙØ· Ø§ÙØÙØ§Ø© Ø§ÙØØ¯ÙØ«Ø© â ÙÙÙÙ Ø§ÙØªØ£Ø«Ùر عÙÙ Ù٠عض٠عÙ
ÙÙØ§Ù.":"In GCC societies, the family is the primary source of identity, meaning, and support. When family relationships are strained â through conflict, disconnection, loss, or the pressures of modern life â the impact on every member can be profound."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-4",children:n==="ar"?"ÙÙØ¯Ø±Ù EFFT Ø£Ù Ø§ÙØ¢Ø¨Ø§Ø¡ ÙÙ
Ø£ÙÙ
اÙÙ
ÙØ¸Ù
ÙÙ Ø§ÙØ¹Ø§Ø·ÙÙÙÙ ÙØ£Ø·ÙاÙÙÙ
. ØÙÙ ÙØªÙ
ÙÙ Ø§ÙØ¢Ø¨Ø§Ø¡ Ù
٠أ٠ÙÙÙÙÙØ§ Ù
تاØÙ٠عاطÙÙØ§Ù ÙÙ
ØªØ¬Ø§ÙØ¨ÙÙØ ÙØ·Ùر Ø§ÙØ£Ø·Ùا٠اÙÙØ§Ø¹Ø¯Ø© Ø§ÙØ¢Ù
ÙØ© Ø§ÙØªÙ ÙÙØ·ÙÙÙÙ Ù
ÙÙØ§ ÙØ§Ø³ØªÙØ´Ø§Ù Ø§ÙØ¹Ø§ÙÙ
Ø¨Ø«ÙØ©.":"EFFT recognizes that parents are their children's most important emotional regulators. When parents can be emotionally accessible and responsive, children develop the secure base from which they can explore the world with confidence."})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"Ù
ا ÙØ¹Ø§Ùج٠EFFT":"What EFFT Addresses"}),o.jsx("ul",{className:"space-y-4",children:r.map((s,l)=>o.jsxs("li",{className:"flex gap-3 text-muted-foreground",children:[o.jsx("span",{className:"text-primary-on font-bold mt-0.5",children:"â¢"}),o.jsx("span",{className:"leading-relaxed",children:s})]},l))})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"ÙÙØ¬ Ù
تÙ
ØÙر ØÙÙ Ø§ÙØ£Ø³Ø±Ø©":"A Family-Centered Approach"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"ÙØ§ ÙÙØ¬Ø±ÙÙ
EFFT Ø§ÙØ¢Ø¨Ø§Ø¡ Ø£Ù Ø§ÙØ£Ø·ÙاÙ. Ø¨Ø¯ÙØ§Ù Ù
٠ذÙÙØ ÙÙØªØ±Ø¶ أ٠جÙ
ÙØ¹ Ø£ÙØ±Ø§Ø¯ Ø§ÙØ£Ø³Ø±Ø© ÙØ¨Ø°ÙÙÙ ÙØµØ§Ø±Ù Ø¬ÙØ¯ÙÙ
بÙ
ا ÙØ¯ÙÙÙ
Ø ÙØ£ÙÙ Ù
ع Ø§ÙØ¯Ø¹Ù
Ø§ÙØµØÙØØ ÙÙ
ÙÙ ÙÙ٠أسرة Ø£Ù ØªØªØØ±Ù ÙØÙ Ù
Ø²ÙØ¯ Ù
Ù Ø§ÙØ¯ÙØ¡ ÙØ§ÙØªÙØ§ÙÙ
ÙØ§ÙØ£Ù
اÙ.":"EFFT does not pathologize parents or children. Instead, it assumes that all family members are doing the best they can with what they have, and that with the right support, every family can move toward more warmth, understanding, and safety."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-4",children:n==="ar"?"ÙØ¯ تشÙ
Ù Ø§ÙØ¬Ùسات Ø§ÙØ£Ø³Ø±Ø© بأÙÙ
ÙÙØ§ Ø£Ù Ø«ÙØ§Ø¦Ùات Ù
ØØ¯Ø¯Ø© (اÙÙØ§ÙدÙÙ ÙØ§ÙØ·ÙÙØ Ø§ÙØ£Ø´Ùاء)Ø Ø£Ù Ø§ÙØ¢Ø¨Ø§Ø¡ بشÙÙ ÙØ±Ø¯Ù ÙØ¹Ù
ÙÙ٠عÙÙ ÙÙÙÙØ© Ø§ÙØØ¶ÙØ± Ø§ÙØ¹Ø§Ø·ÙÙ ÙØ£Ø·ÙاÙÙÙ
.":"Sessions may involve the whole family, specific dyads (parent and child, siblings), or individual parents working on how to be more emotionally present for their children."})]})]})}),o.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:o.jsxs("div",{className:"container mx-auto px-4 text-center",children:[o.jsx("h2",{className:"font-serif text-3xl font-bold mb-4",children:n==="ar"?"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬ أسرÙ":"Find a Family Therapist"}),o.jsx("p",{className:"text-primary-foreground mb-8",children:n==="ar"?"ØªÙØ§ØµÙ Ù
ع اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
دربÙ٠عÙÙ EFFT عبر Ø§ÙØ®ÙÙØ¬.":"Connect with EFFT-trained therapists across the GCC."}),o.jsx(Ie,{href:"/find-therapist?modality=EFFT - Families",children:o.jsx(Ae,{variant:"secondary",size:"lg",className:"rounded-full px-8",children:e("cta.find_therapist")})})]})})]})}var $u="Collapsible",[F4,m_]=Ln($u),[L4,Sp]=F4($u),p_=v.forwardRef((e,n
53)=>{const{__scopeCollapsible:r,open:s,defaultOpen:l,disabled:u,onOpenChange:f,...h}=e,[p,g]=ra({prop:s,defaultProp:l??!1,onChange:f,caller:$u});return o.jsx(L4,{scope:r,disabled:u,contentId:Yn(),open:p,onOpenToggle:v.useCallback(()=>g(y=>!y),[g]),children:o.jsx(Me.div,{"data-state":Cp(p),"data-disabled":u?"":void 0,...h,ref:n})})});p_.displayName=$u;var g_="CollapsibleTrigger",y_=v.forwardRef((e,n)=>{const{__scopeCollapsible:r,...s}=e,l=Sp(g_,r);return o.jsx(Me.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":Cp(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...s,ref:n,onClick:ue(e.onClick,l.onOpenToggle)})});y_.displayName=g_;var Np="CollapsibleContent",v_=v.forwardRef((e,n)=>{const{forceMount:r,...s}=e,l=Sp(Np,e.__scopeCollapsible);return o.jsx(_n,{present:r||l.open,children:({present:u})=>o.jsx(P4,{...s,ref:n,present:u})})});v_.displayName=Np;var P4=v.forwardRef((e,n)=>{const{__scopeCollapsible:r,present:s,children:l,...u}=e,f=Sp(Np,r),[h,p]=v.useState(s),g=v.useRef(null),y=Je(n,g),x=v.useRef(0),w=x.current,E=v.useRef(0),C=E.current,_=f.open||h,S=v.useRef(_),A=v.useRef(void 0);return v.useEffect(()=>{const T=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(T)},[]),Kt(()=>{const T=g.current;if(T){A.current=A.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const M=T.getBoundingClientRect();x.current=M.height,E.current=M.width,S.current||(T.style.transitionDuration=A.current.transitionDuration,T.style.animationName=A.current.animationName),p(s)}},[f.open,s]),o.jsx(Me.div,{"data-state":Cp(f.open),"data-disabled":f.disabled?"":void 0,id:f.contentId,hidden:!_,...u,ref:y,style:{"--radix-collapsible-content-height":w?`${w}px`:void 0,"--radix-collapsible-content-width":C?`${C}px`:void 0,...e.style},children:_&&l})});function Cp(e){return e?"open":"closed"}var z4=p_,q4=y_,U4=v_,la="Accordion",I4=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[Tp,V4,H4]=il(la),[Yu]=Ln(la,[H4,m_]),Ap=m_(),x_=xe.forwardRef((e,n)=>{const{type:r,...s}=e,l=s,u=s;return o.jsx(Tp.Provider,{scope:e.__scopeAccordion,children:r==="multiple"?o.jsx(Y4,{...u,ref:n}):o.jsx($4,{...l,ref:n})})});x_.displayName=la;var[b_,B4]=Yu(la),[w_,G4]=Yu(la,{collapsible:!1}),$4=xe.forwardRef((e,n)=>{const{value:r,defaultValue:s,onValueChange:l=()=>{},collapsible:u=!1,...f}=e,[h,p]=ra({prop:r,defaultProp:s??"",onChange:l,caller:la});return o.jsx(b_,{scope:e.__scopeAccordion,value:xe.useMemo(()=>h?[h]:[],[h]),onItemOpen:p,onItemClose:xe.useCallback(()=>u&&p(""),[u,p]),children:o.jsx(w_,{scope:e.__scopeAccordion,collapsible:u,children:o.jsx(j_,{...f,ref:n})})})}),Y4=xe.forwardRef((e,n)=>{const{value:r,defaultValue:s,onValueChange:l=()=>{},...u}=e,[f,h]=ra({prop:r,defaultProp:s??[],onChange:l,caller:la}),p=xe.useCallback(y=>h((x=[])=>[...x,y]),[h]),g=xe.useCallback(y=>h((x=[])=>x.filter(w=>w!==y)),[h]);return o.jsx(b_,{scope:e.__scopeAccordion,value:f,onItemOpen:p,onItemClose:g,children:o.jsx(w_,{scope:e.__scopeAccordion,collapsible:!0,children:o.jsx(j_,{...u,ref:n})})})}),[K4,Ku]=Yu(la),j_=xe.forwardRef((e,n)=>{const{__scopeAccordion:r,disabled:s,dir:l,orientation:u="vertical",...f}=e,h=xe.useRef(null),p=Je(h,n),g=V4(r),x=hl(l)==="ltr",w=ue(e.onKeyDown,E=>{if(!I4.includes(E.key))return;const C=E.target,_=g().filter(H=>!H.ref.current?.disabled),S=_.findIndex(H=>H.ref.current===C),A=_.length;if(S===-1)return;E.preventDefault();let T=S;const M=0,F=A-1,L=()=>{T=S+1,T>F&&(T=M)},z=()=>{T=S-1,T<M&&(T=F)};switch(E.key){case"Home":T=M;break;case"End":T=F;break;case"ArrowRight":u==="horizontal"&&(x?L():z());break;case"ArrowDown":u==="vertical"&&L();break;case"ArrowLeft":u==="horizontal"&&(x?z():L());break;case"ArrowUp":u==="vertical"&&z();break}const P=T%A;_[P].ref.current?.focus()});return o.jsx(K4,{scope:r,disabled:s,direction:l,orientation:u,children:o.jsx(Tp.Slot,{scope:r,children:o.jsx(Me.div,{...f,"data-orientation":u,ref:p,onKeyDown:s?void 0:w})})})}
53),cu="AccordionItem",[Q4,Rp]=Yu(cu),__=xe.forwardRef((e,n)=>{const{__scopeAccordion:r,value:s,...l}=e,u=Ku(cu,r),f=B4(cu,r),h=Ap(r),p=Yn(),g=s&&f.value.includes(s)||!1,y=u.disabled||e.disabled;return o.jsx(Q4,{scope:r,open:g,disabled:y,triggerId:p,children:o.jsx(z4,{"data-orientation":u.orientation,"data-state":A_(g),...h,...l,ref:n,disabled:y,open:g,onOpenChange:x=>{x?f.onItemOpen(s):f.onItemClose(s)}})})});__.displayName=cu;var E_="AccordionHeader",S_=xe.forwardRef((e,n)=>{const{__scopeAccordion:r,...s}=e,l=Ku(la,r),u=Rp(E_,r);return o.jsx(Me.h3,{"data-orientation":l.orientation,"data-state":A_(u.open),"data-disabled":u.disabled?"":void 0,...s,ref:n})});S_.displayName=E_;var ym="AccordionTrigger",N_=xe.forwardRef((e,n)=>{const{__scopeAccordion:r,...s}=e,l=Ku(la,r),u=Rp(ym,r),f=G4(ym,r),h=Ap(r);return o.jsx(Tp.ItemSlot,{scope:r,children:o.jsx(q4,{"aria-disabled":u.open&&!f.collapsible||void 0,"data-orientation":l.orientation,id:u.triggerId,...h,...s,ref:n})})});N_.displayName=ym;var C_="AccordionContent",T_=xe.forwardRef((e,n)=>{const{__scopeAccordion:r,...s}=e,l=Ku(la,r),u=Rp(C_,r),f=Ap(r);return o.jsx(U4,{role:"region","aria-labelledby":u.triggerId,"data-orientation":l.orientation,...f,...s,ref:n,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});T_.displayName=C_;function A_(e){return e?"open":"closed"}var Z4=x_,X4=__,W4=S_,R_=N_,O_=T_;const J4=Z4,M_=v.forwardRef(({className:e,...n},r)=>o.jsx(X4,{ref:r,className:Re("border-b",e),...n}));M_.displayName="AccordionItem";const k_=v.forwardRef(({className:e,children:n,...r},s)=>o.jsx(W4,{className:"flex",children:o.jsxs(R_,{ref:s,className:Re("flex flex-1 items-center justify-between py-4 text-sm font-medium transition-all hover:underline text-left [&[data-state=open]>svg]:rotate-180",e),...r,children:[n,o.jsx(Qo,{className:"h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200"})]})}));k_.displayName=R_.displayName;const D_=v.forwardRef(({className:e,children:n,...r},s)=>o.jsx(O_,{ref:s,className:"overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:o.jsx("div",{className:Re("pb-4 pt-0",e),children:n})}));D_.displayName=O_.displayName;function e3(){const{t:e,language:n}=Ot(),r=n==="ar"?[{step:"1",title:"ØªØµÙØ Ø§ÙØ¯ÙÙÙ",desc:"استخدÙ
دÙÙ٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ ÙÙ GCCEFT ÙÙØ¹Ø«Ùر عÙÙ Ù
تخصصÙÙ ÙÙ Ø¨ÙØ¯Ù ÙØ¹Ù
ÙÙÙ ÙÙ Ù
Ø¬Ø§Ù Ø§ÙØªÙ
اÙ
Ù â Ø³Ùاء ÙØ§Ù ذÙÙ Ø§ÙØ±Ùا٠اÙÙØ±Ø¯Ù Ø£Ù Ø¹ÙØ§ÙØªÙ Ø£Ù Ø¹Ø§Ø¦ÙØªÙ."},{step:"2",title:"Ù
راجعة اÙÙ
ÙÙØ§Øª Ø§ÙØ´Ø®ØµÙØ©",desc:"Ø§ÙØ±Ø£ Ø§ÙØ³Ùرة Ø§ÙØ°Ø§ØªÙØ© ÙÙÙ Ù
Ø¹Ø§ÙØ¬ ÙØ®ÙÙÙØªÙ Ø§ÙØªØ¯Ø±ÙØ¨ÙØ© ÙÙÙØ¬Ù Ù٠اÙÙ
Ù
ارسة. ÙÙØ¯Ù
Ù
عظÙ
اÙÙ
Ø¹Ø§ÙØ¬Ù٠استشارة Ø£ÙÙÙØ© ÙØªÙÙÙÙ
Ù
ا إذا ÙØ§ÙÙØ§ Ù
ÙØ§Ø³Ø¨ÙÙ ÙÙ."},{step:"3",title:"Ø§ÙØªÙاصÙ",desc:"اتص٠باÙÙ
Ø¹Ø§ÙØ¬ Ù
باشرة٠باستخداÙ
اÙÙ
عÙÙÙ
ات اÙÙ
ÙØ¬Ùدة ÙÙ Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ. Ù
Ù Ø§ÙØ·Ø¨Ùع٠تÙ
اÙ
Ø§Ù Ø§ÙØªØØ¯Ø« Ù
ع Ø£ÙØ«Ø± Ù
Ù Ù
Ø¹Ø§ÙØ¬ ÙØ¨Ù اتخاذ ÙØ±Ø§Ø±Ù."},{step:"4",title:"ØØ¶Ùر Ø¬ÙØ³ØªÙ Ø§ÙØ£ÙÙÙ",desc:"Ø¬ÙØ³ØªÙ Ø§ÙØ£ÙÙÙ ÙÙ ÙÙ Ø§ÙØ¹Ø§Ø¯Ø© تÙÙÙÙ
â ÙØ±ØµØ© ÙÙÙ
Ø¹Ø§ÙØ¬ ÙÙÙÙ
ÙØ¶Ø¹Ù ÙÙÙ ÙØ·Ø±Ø Ø§ÙØ£Ø³Ø¦ÙØ©. ÙØ³Øª Ù
ÙØ²Ù
Ø§Ù Ø¨Ø§ÙØ§Ø³ØªÙ
رار."}]:[{step:"1",title:"Browse the Directory",desc:"Use GCCEFT's therapist directory to find professionals in your country who work with your area of concern â whether that's individual wellbeing, your relationship, or your family."},{step:"2",title:"Review Profiles",desc:"Read each therapist's bio, training background, and practice approach. Most therapists offer an initial consultation so you can assess whether they feel like a good fit."},{step:"3",title:"Reach Out",desc:"Contact a therapist directly using the information on their profile. It is completely normal to speak to more than one therapist before deciding."},{step:"4",title:"Attend Your First Session",desc:"Your first session is typically an assessment â an opportunity for the therapist to understand your situation and for you to ask questions. You are under no obligation to continue."}],s=n==="ar"?[{q:"Ù٠ستÙÙÙ Ø¬ÙØ³Ø§ØªÙ Ø³Ø±ÙØ©Ø",a:"ÙØ¹Ù
. جÙ
ÙØ¹ اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
رخصÙÙ Ù
ÙØªØ²Ù
Ù٠بÙÙØ§Ø¹Ø¯ Ø£Ø®ÙØ§ÙÙØ§Øª Ù
ÙÙÙØ© ÙØ£ÙظÙ
Ø© ÙØ·ÙÙØ© ØªØ³ØªÙØ²Ù
Ø§ÙØ³Ø±ÙØ© Ø§ÙØªØ§Ù
Ø©. ÙØ§ ÙÙ
Ù٠اÙÙØ´Ù ع٠اÙÙ
عÙÙÙ
ات اÙÙ
Ø´ØªØ±ÙØ© ÙÙ Ø§ÙØ¹Ùاج دÙÙ Ù
ÙØ§ÙÙØªÙ Ø§ÙØ®Ø·ÙØ©Ø Ø¥ÙØ§ Ù٠ظرÙÙ Ù
ØØ¯Ùدة جدا٠ÙÙØªØ¶ÙÙØ§ اÙÙØ§ÙÙÙ."},{q:"ÙÙ٠أعر٠إذا ÙÙØª Ø¨ØØ§Ø¬Ø© Ø¥ÙÙ Ø¹ÙØ§Ø¬ ÙÙØ³ÙØ",a:"إذا ÙØ§Ù Ø§ÙØ¶ÙÙ Ø§ÙØ¹Ø§Ø·ÙÙ ÙØ¯ÙÙ Ù
ستÙ
را٠ÙÙØ¤Ø«Ø± عÙÙ Ø¹ÙØ§Ùات٠أ٠عÙ
Ù٠أ٠ØÙات٠اÙÙÙÙ
ÙØ©Ø ÙÙØ¯ ÙÙÙÙ Ù
٠اÙÙ
ÙÙØ¯ Ø§ÙØªØØ¯Ø« Ù
ع Ù
Ø¹Ø§ÙØ¬. ÙØ³Øª Ø¨ØØ§Ø¬Ø© Ø¥Ù٠أ٠تÙÙÙ Ù٠أزÙ
Ø© ÙØªØ·Ùب Ø§ÙØ¯Ø¹Ù
."},{q:"ÙÙ ÙÙ
ÙÙÙÙ Ø±Ø¤ÙØ© Ù
Ø¹Ø§ÙØ¬ عبر Ø§ÙØ¥ÙØªØ±ÙØªØ",a:"ÙØ¹Ù
. ÙÙØ¯Ù
ÙØ«Ùر Ù
٠اÙÙ
Ø¹Ø§ÙØ¬Ù٠عÙÙ GCCEFT Ø¬ÙØ³Ø§Øª عبر Ø§ÙØ¥ÙØªØ±ÙØª عبر Ù
ÙØµØ§Øª ÙÙØ¯Ù٠آÙ
ÙØ©. ÙÙ
Ù٠أ٠ÙÙÙÙ Ø§ÙØ¹Ùاج عبر Ø§ÙØ¥ÙØªØ±ÙØª ÙØ¹Ø§Ùا٠بÙÙØ³ اÙÙØ¯Ø± Ù
Ù Ø§ÙØ§ØªØµØ§Ù اÙÙ
باشر."},{q:"ÙÙ EFT Ù
ÙØ§Ø³Ø¨ ÙØØ§ÙØªÙØ",a:"Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙØ¬ ÙØ§Ø¦Ù
عÙÙ Ø§ÙØ£Ø¯ÙØ© ÙÙ٠دعÙ
Ø¨ØØ«Ù ÙÙÙ ÙØ¶Ø§Ø¦ÙØ© Ø§ÙØ¹ÙØ§ÙØ§Øª ÙØ§ÙÙÙÙ ÙØ§ÙØ§ÙØªØ¦Ø§Ø¨ ÙØ§ÙصدÙ
Ø©. سÙÙØ¬Ø±Ù Ù
Ø¹Ø§ÙØ¬Ù تÙÙÙÙ
Ø§Ù ÙØªØØ¯Ùد Ø£ÙØ¶Ù ÙÙØ¬ ÙØ§ØØªÙاجاتÙ."},{q:"Ù٠اÙÙ
Ø¹Ø§ÙØ¬Ù٠عÙÙ GCCEFT Ù
رخصÙÙØ",a:"ÙØªØÙÙ GCCEFT Ù
٠أ٠اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
درجÙÙ ÙØÙ
ÙÙÙ ØªØ±Ø®ÙØµØ§Ù ØµØ§ÙØØ§Ù Ù
Ù Ø¬ÙØ© صØÙØ© Ù
Ø¹ØªØ±Ù Ø¨ÙØ§ ÙÙ Ø¨ÙØ¯ Ù
Ù
ارستÙÙ
. ØªÙØ¹Ø±Ø¶ ØªÙØ§ØµÙÙ Ø§ÙØªØ±Ø®Ùص ÙÙ Ù
ÙÙ ÙÙ Ù
Ø¹Ø§ÙØ¬."}]:[{q:"Will my sessions be confidential?",a:"Yes. All licensed therapists are bound by professional co
53des of ethics and national regulations that require strict confidentiality. Information shared in therapy cannot be disclosed without your written consent, except in very limited circumstances required by law."},{q:"How do I know if I need therapy?",a:"If your emotional distress is persistent, affecting your relationships, work, or daily functioning, it may be helpful to speak with a therapist. You do not need to be in crisis to seek support. Therapy is for anyone who wants to understand themselves better or navigate life's challenges."},{q:"Can I see a therapist online?",a:"Yes. Many therapists on GCCEFT offer online sessions via secure video platforms. Online therapy can be equally effective as in-person, and is particularly valuable for those in locations with fewer local options or those who prefer privacy."},{q:"Is EFT suitable for my situation?",a:"EFT is an evidence-informed approach with strong research support for relationship distress, anxiety, depression, and trauma. It is suitable for a wide range of presentations and cultural contexts. Your therapist will conduct an assessment to determine the best approach for your needs."},{q:"Are the therapists on GCCEFT licensed?",a:"GCCEFT verifies that listed therapists hold a valid license from a recognized health authority in their country of practice. License details are displayed on each therapist's profile. We encourage you to verify credentials independently as well."}];return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:e("get_help.title")}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:e("get_help.subtitle")})]})}),o.jsx("section",{className:"py-16 bg-background",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl space-y-16",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-6",children:n==="ar"?"ÙÙ٠تبدأ":"How to Get Started"}),o.jsx("div",{className:"space-y-6",children:r.map(l=>o.jsxs("div",{className:"flex gap-5",children:[o.jsx("div",{className:"h-10 w-10 rounded-full bg-primary text-primary-foreground font-bold flex items-center justify-center shrink-0 text-sm",children:l.step}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold mb-1",children:l.title}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:l.desc})]})]},l.step))})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-6",children:n==="ar"?"Ø§ÙØ¬Ùسات Ø§ÙØ´Ø®ØµÙØ© Ù
ÙØ§Ø¨Ù Ø§ÙØ¬Ùسات عبر Ø§ÙØ¥ÙØªØ±ÙØª":"In-Person vs. Online Therapy"}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"p-6 rounded-xl bg-card border border-border",children:[o.jsx("h3",{className:"font-semibold mb-3",children:n==="ar"?"Ø§ÙØ¬Ùسات Ø§ÙØ´Ø®ØµÙØ©":"In-Person Sessions"}),o.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:n==="ar"?o.jsxs(o.Fragment,{children:[o.jsx("li",{children:"â¢ ØªÙØ§ØµÙ ÙØ¬Ù ÙÙØ¬Ù Ù
باشر"}),o.jsx("li",{children:"â¢ ØªÙØ§ØµÙ ØºÙØ± ÙÙØ¸Ù أسÙÙ"}),o.jsx("li",{children:"â¢ ÙØ¯ ÙÙÙØ¶ÙÙÙ ÙØ¹Ù
Ù Ø§ÙØµØ¯Ù
ات"}),o.jsx("li",{children:"⢠Ù
ØØ¯Ùد Ø¨Ø§ÙØªÙØ§ÙØ± اÙÙ
ØÙÙ"})]}):o.jsxs(o.Fragment,{children:[o.jsx("li",{children:"⢠Direct face-to-face connection"}),o.jsx("li",{children:"⢠Easier non-verbal communication"}),o.jsx("li",{children:"⢠May be preferred for trauma work"}),o.jsx("li",{children:"⢠Limited to local availability"})]})})]}),o.jsxs("div",{className:"p-6 rounded-xl bg-card border border-border",children:[o.jsx("h3",{className:"font-semibold mb-3",children:n==="ar"?"Ø§ÙØ¬Ùسات عبر Ø§ÙØ¥ÙØªØ±ÙØª":"Online Sessions"}),o.jsx("ul",{className:"space-y-2 text-sm text-muted-foreground",children:n==="ar"?o.jsxs(o.Fragment,{children:[o.jsx("li",{children:"⢠اÙÙØµÙÙ Ù
٠أ٠Ù
ÙÙØ¹"}),o.jsx("li",{children:"â¢ Ø®ØµÙØµÙØ© ÙÙ
رÙÙØ© Ø£ÙØ¨Ø±"}),o.jsx("li",{children:"⢠اÙÙØµÙ٠إÙÙ Ù
تخصصÙ٠عبر Ø§ÙØ®ÙÙØ¬"}),o.jsx("li",{children:"â¢ ÙØ¹Ùا٠بÙÙØ³ اÙÙØ¯Ø± ÙÙ
عظÙ
Ø§ÙØØ§ÙØ§Øª"})]}):o.jsxs(o.Fragment,{children:[o.jsx("li",{children:"⢠Access from any location"}),o.jsx("li",{children:"⢠Greater privacy and flexibility"}),o.jsx("li",{children:"⢠Access to specialists across the GCC"}),o.jsx("li",{children:"⢠Equally effective for most concerns"})]})})]})]})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-6",children:e("get_help.faq.title")}),o.jsx(J4,{type:"single",collapsible:!0,className:"space-y-2",children:s.map((l,u)=>o.jsxs(M_,{value:`faq-${u}`,className:"border border-border rounded-lg px-4",children:[o.jsx(k_,{className:"text-start text-sm font-medium py-4","data-testid":`faq-trigger-${u}`,children:l.q}),o.jsx(D_,{className:"text-sm text-muted-foreground leading-relaxed pb-4",children:l.a})]},u))})]})]})}),o.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:o.jsxs("div",{className:"container mx-auto px-4 text-center",children:[o.jsx("h2",{className:"font-serif text-3xl font-bold mb-4",children:n==="ar"?"Ø§Ø¨ØØ« ع٠Ù
Ø¹Ø§ÙØ¬ Ø§ÙØ¢Ù":"Find a Therapist Now"}),o.jsx("p",{className:"text-primary-foreground mb-8",children:n==="ar"?"ØªØµÙØ اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
عتÙ
دÙÙ ÙÙ EFT ÙÙ Ø¨ÙØ¯Ù.":"Browse certified EFT therapists in your country."}),o.jsx(Ie,{href:"/find-therapist",children:o.jsx(Ae,{variant:"secondary",size:"lg",className:"rounded-full px-8",children:e("cta.find_therapist")})})]})})]})}const t3=new Set([204,205,304]),n3="application/json, application/problem+json";function F_(e){return typeof Request<"u"&&e instanceof Request}function a3(e,n){return n?n.toUpperCase():F_(e)?e.method.toUpperCase():"GET"}function r3(e){return typeof URL<"u"&&e instanceof URL}function s3(e){return typeof e=="string"?e:r3(e)?e.toString():e.url}function i3(...e){const n=new Headers;for(const r of e)r&&new Headers(r).forEach((s,l)=>{n.set(l,s)});return n}
53function L_(e){const n=e.get("content-type");return n?n.split(";",1)[0].trim().toLowerCase():null}function vm(e){return e==="application/json"||!!e?.endsWith("+json")}function P_(e){return!!(e&&(e.startsWith("text/")||e==="application/xml"||e==="text/xml"||e.endsWith("+xml")||e==="application/x-www-form-urlencoded"))}function z_(e,n){return!!(n==="HEAD"||t3.has(e.status)||e.headers.get("content-length")==="0"||e.body===null)}function q_(e){return e.charCodeAt(0)===65279?e.slice(1):e}function U_(e){const n=e.trimStart();return n.startsWith("{")||n.startsWith("[")}function Po(e,n){if(!e||typeof e!="object")return;const r=e[n];if(typeof r!="string")return;const s=r.trim();return s===""?void 0:s}function o3(e,n=300){return e.length>n?`${e.slice(0,n-1)}â¦`:e}function l3(e,n){const r=`HTTP ${e.status} ${e.statusText}`;if(typeof n=="string"){const f=n.trim();return f?`${r}: ${o3(f)}`:r}const s=Po(n,"title"),l=Po(n,"detail"),u=Po(n,"message")??Po(n,"error_description")??Po(n,"error");return s&&l?`${r}: ${s} â ${l}`:l?`${r}: ${l}`:u?`${r}: ${u}`:s?`${r}: ${s}`:r}class c3 extends Error{name="ApiError";status;statusText;data;headers;response;method;url;constructor(n,r,s){super(l3(n,r)),Object.setPrototypeOf(this,new.target.prototype),this.status=n.status,this.statusText=n.statusText,this.data=r,this.headers=n.headers,this.response=n,this.method=s.method,this.url=n.url||s.url}}class u3 extends Error{name="ResponseParseError";status;statusText;headers;response;method;url;rawBody;cause;constructor(n,r,s,l){super(`Failed to parse response from ${l.method} ${n.url||l.url} (${n.status} ${n.statusText}) as JSON`),Object.setPrototypeOf(this,new.target.prototype),this.status=n.status,this.statusText=n.statusText,this.headers=n.headers,this.response=n,this.method=l.method,this.url=n.url||l.url,this.rawBody=r,this.cause=s}}async function d3(e,n){const r=await e.text(),s=q_(r);if(s.trim()==="")return null;try{return JSON.parse(s)}catch(l){throw new u3(e,r,l,n)}}async function f3(e,n){if(z_(e,n))return null;const r=L_(e.headers);if(r&&!vm(r)&&!P_(r))return typeof e.blob=="function"?e.blob():e.text();const s=await e.text(),l=q_(s);if(l.trim()==="")return null;if(vm(r)||U_(l))try{return JSON.parse(l)}catch{return s}return s}function h3(e){const n=L_(e.headers);return vm(n)?"json":P_(n)||n==null?"text":"blob"}async function m3(e,n,r){if(z_(e,r.method))return null;switch(n==="auto"?h3(e):n){case"json":return d3(e,r);case"text":{const l=await e.text();return l===""?null:l}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 Qn(e,n={}){e=e;const{responseType:r="auto",headers:s,...l}=n,u=a3(e,l.method);if(l.body!=null&&(u==="GET"||u==="HEAD"))throw new TypeError(`customFetch: ${u} requests cannot have a body.`);const f=i3(F_(e)?e.headers:void 0,s);typeof l.body=="string"&&!f.has("content-type")&&U_(l.body)&&f.set("content-type","application/json"),r==="json"&&!f.has("accept")&&f.set("accept",n3);const h={method:u,url:s3(e)},p=await fetch(e,{...l,method:u,headers:f});if(!p.ok){const g=await f3(p,u);throw new c3(p,g,h)}return await m3(p,r,h)}const p3=e=>{const n=new URLSearchParams;Object.entries(e||{}).forEach(([s,l])=>{l!==void 0&&n.append(s,l===null?"null":l.toString())});const r=n.toString();return r.length>0?`/api/therapists?${r}`:"/api/therapists"},g3=async(e,n)=>Qn(p3(e),{...n,method:"GET"}),I_=e=>["/api/therapists",...e?[e]:[]],y3=(e,n)=>{const{query:r,request:s}={};return{queryKey:r?.queryKey??I_(e),queryFn:({signal:f})=>g3(e,{signal:f,...s}),...r}};function v3(e,n){const r=y3(e);return{...$a(r),queryKey:r.queryKey}}const x3=()=>"/api/therapists",b3=async(e,n)=>Qn(x3(),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)}),w3=e=>{const n=["submitTherapistProfile"],{mutation:r,request:s}={mutation:{mutationKey:n},request:void 0};return{mutationFn:u=>{const{data:f}=u??{};return b3(f,s)},...r}},j3=e=>ja(w3()),_3=e=>`/api/therapists/${e}`,E3=async(e,n)=>Qn(_3(e),{...n,method:"GET"}),V_=e=>[`/api/therapists/${e}`],S3=(e,n)=>{const{query:r,request:s}=n??{};return{queryKey:r?.queryKey??V_(e),queryFn:({signal:f})=>E3(e,{signal:f,...s}),enabled:!!e,...r}};function N3(e,n){const r=S3(e,n);return{...$a(r),queryKey:r.queryKey}}const C3=e=>`/api/therapists/${e}/approve`,T3=async(e,n,r)=>Qn(C3(e),{...r,method:"PATCH",headers:{"Content-Type":"application/json",...r?.headers},body:JSON.stringify(n)}),A3=e=>{const n=["approveTherapistProfile"],{mutation:r,request:s}={mutation:{mutationKey:n},request:void 0};return{mutationFn:u=>{const{id:f,data:h}=u??{};return T3(f,h,s)},...r}},R3=e=>ja(A3()),O3=e=>{const n=new URLSearchParams;Object.entries(e||{}
53).forEach(([s,l])=>{l!==void 0&&n.append(s,l===null?"null":l.toString())});const r=n.toString();return r.length>0?`/api/events?${r}`:"/api/events"},M3=async(e,n)=>Qn(O3(e),{...n,method:"GET"}),Jo=e=>["/api/events",...e?[e]:[]],k3=(e,n)=>{const{query:r,request:s}=n??{};return{queryKey:r?.queryKey??Jo(e),queryFn:({signal:f})=>M3(e,{signal:f,...s}),...r}};function H_(e,n){const r=k3(e,n);return{...$a(r),queryKey:r.queryKey}}const D3=()=>"/api/events",F3=async(e,n)=>Qn(D3(),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)}),L3=e=>{const n=["createEvent"],{mutation:r,request:s}={mutation:{mutationKey:n},request:void 0};return{mutationFn:u=>{const{data:f}=u??{};return F3(f,s)},...r}},P3=e=>ja(L3()),z3=e=>`/api/events/${e}`,q3=async(e,n,r)=>Qn(z3(e),{...r,method:"PATCH",headers:{"Content-Type":"application/json",...r?.headers},body:JSON.stringify(n)}),U3=e=>{const n=["updateEvent"],{mutation:r,request:s}={mutation:{mutationKey:n},request:void 0};return{mutationFn:u=>{const{id:f,data:h}=u??{};return q3(f,h,s)},...r}},I3=e=>ja(U3()),V3=e=>`/api/events/${e}`,H3=async(e,n)=>Qn(V3(e),{...n,method:"DELETE"}),B3=e=>{const n=["deleteEvent"],{mutation:r,request:s}={mutation:{mutationKey:n},request:void 0};return{mutationFn:u=>{const{id:f}=u??{};return H3(f,s)},...r}},G3=e=>ja(B3()),$3=e=>{const n=new URLSearchParams;Object.entries(e||{}).forEach(([s,l])=>{l!==void 0&&n.append(s,l===null?"null":l.toString())});const r=n.toString();return r.length>0?`/api/resources?${r}`:"/api/resources"},Y3=async(e,n)=>Qn($3(e),{...n,method:"GET"}),el=e=>["/api/resources",...e?[e]:[]],K3=(e,n)=>{const{query:r,request:s}=n??{};return{queryKey:r?.queryKey??el(e),queryFn:({signal:f})=>Y3(e,{signal:f,...s}),...r}};function B_(e,n){const r=K3(e,n);return{...$a(r),queryKey:r.queryKey}}const Q3=()=>"/api/resources",Z3=async(e,n)=>Qn(Q3(),{...n,method:"POST",headers:{"Content-Type":"application/json",...n?.headers},body:JSON.stringify(e)}),X3=e=>{const n=["createResource"],{mutation:r,request:s}={mutation:{mutationKey:n},request:void 0};return{mutationFn:u=>{const{data:f}=u??{};return Z3(f,s)},...r}},W3=e=>ja(X3()),J3=()=>"/api/admin/stats",eF=async e=>Qn(J3(),{...e,method:"GET"}),xm=()=>["/api/admin/stats"],tF=e=>{const{query:n,request:r}=e??{};return{queryKey:n?.queryKey??xm(),queryFn:({signal:u})=>eF({signal:u,...r}),...n}};function nF(e){const n=tF(e);return{...$a(n),queryKey:n.queryKey}}const aF=()=>"/api/admin/therapists/pending",rF=async e=>Qn(aF(),{...e,method:"GET"}),bm=()=>["/api/admin/therapists/pending"],sF=e=>{const{query:n,request:r}=e??{};return{queryKey:n?.queryKey??bm(),queryFn:({signal:u})=>rF({signal:u,...r}),...n}};function iF(e){const n=sF(e);return{...$a(n),queryKey:n.queryKey}}const oF=ll("whitespace-nowrap inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 hover-elevate ",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-xs",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-xs",outline:"text-foreground border [border-color:var(--badge-outline)]"}},defaultVariants:{variant:"default"}});function Rt({className:e,variant:n,...r}){return o.jsx("div",{className:Re(oF({variant:n}),e),...r})}const Ve=v.forwardRef(({className:e,type:n,...r},s)=>o.jsx("input",{type:n,className:Re("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:s,...r}));Ve.displayName="Input";function Jb(e,[n,r]){return Math.min(r,Math.max(n,e))}function G_(e){const n=v.useRef({value:e,previous:e});return v.useMemo(()=>(n.current.value!==e&&(n.current.previous=n.current.value,n.current.value=e),n.current.previous),[e])}var lF=[" ","Enter","ArrowUp","ArrowDown"],cF=[" ","Enter"],us="Select",[Qu,Zu,uF]=il(us),[ki]=Ln(us,[uF,Mi]),Xu=Mi(),[dF,Lr]=ki(us),[fF,hF]=ki(us),$_=e=>{const{__scopeSelect:n,children:r,open:s,defaultOpen:l,onOpenChange:u,value:f,defaultValue:h,onValueChange:p,dir:g,name:y,autoComplete:x,disabled:w,required:E,form:C}=e,_=Xu(n),[S,A]=v.useState(null),[T,M]=v.useState(null),[F,L]=v.useState(!1),z=hl(g),[P,H]=ra({prop:s,defaultProp:l??!1,onChange:u,caller:us}),[ie,pe]=ra({prop:f,defaultProp:h,onChange:p,caller:us}
vendor: 18,834 bytes, line 53
53),be=v.useRef(null),ee=S?C||!!S.closest("form"):!0,[oe,te]=v.useState(new Set),de=Array.from(oe).map(D=>D.props.value).join(";");return o.jsx(wj,{..._,children:o.jsxs(dF,{required:E,scope:n,trigger:S,onTriggerChange:A,valueNode:T,onValueNodeChange:M,valueNodeHasChildren:F,onValueNodeHasChildrenChange:L,contentId:Yn(),value:ie,onValueChange:pe,open:P,onOpenChange:H,dir:z,triggerPointerDownPosRef:be,disabled:w,children:[o.jsx(Qu.Provider,{scope:n,children:o.jsx(fF,{scope:e.__scopeSelect,onNativeOptionAdd:v.useCallback(D=>{te($=>new Set($).add(D))},[]),onNativeOptionRemove:v.useCallback(D=>{te($=>{const Z=new Set($);return Z.delete(D),Z})},[]),children:r})}),ee?o.jsxs(gE,{"aria-hidden":!0,required:E,tabIndex:-1,name:y,autoComplete:x,value:ie,onChange:D=>pe(D.target.value),disabled:w,form:C,children:[ie===void 0?o.jsx("option",{value:""}):null,Array.from(oe)]},de):null]})})};$_.displayName=us;var Y_="SelectTrigger",K_=v.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:s=!1,...l}=e,u=Xu(r),f=Lr(Y_,r),h=f.disabled||s,p=Je(n,f.onTriggerChange),g=Zu(r),y=v.useRef("touch"),[x,w,E]=vE(_=>{const S=g().filter(M=>!M.disabled),A=S.find(M=>M.value===f.value),T=xE(S,_,A);T!==void 0&&f.onValueChange(T.value)}),C=_=>{h||(f.onOpenChange(!0),E()),_&&(f.triggerPointerDownPosRef.current={x:Math.round(_.pageX),y:Math.round(_.pageY)})};return o.jsx(lp,{asChild:!0,...u,children:o.jsx(Me.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":yE(f.value)?"":void 0,...l,ref:p,onClick:ue(l.onClick,_=>{_.currentTarget.focus(),y.current!=="mouse"&&C(_)}),onPointerDown:ue(l.onPointerDown,_=>{y.current=_.pointerType;const S=_.target;S.hasPointerCapture(_.pointerId)&&S.releasePointerCapture(_.pointerId),_.button===0&&_.ctrlKey===!1&&_.pointerType==="mouse"&&(C(_),_.preventDefault())}),onKeyDown:ue(l.onKeyDown,_=>{const S=x.current!=="";!(_.ctrlKey||_.altKey||_.metaKey)&&_.key.length===1&&w(_.key),!(S&&_.key===" ")&&lF.includes(_.key)&&(C(),_.preventDefault())})})})});K_.displayName=Y_;var Q_="SelectValue",Z_=v.forwardRef((e,n)=>{const{__scopeSelect:r,className:s,style:l,children:u,placeholder:f="",...h}=e,p=Lr(Q_,r),{onValueNodeHasChildrenChange:g}=p,y=u!==void 0,x=Je(n,p.onValueNodeChange);return Kt(()=>{g(y)},[g,y]),o.jsx(Me.span,{...h,ref:x,style:{pointerEvents:"none"},children:yE(p.value)?o.jsx(o.Fragment,{children:f}):u})});Z_.displayName=Q_;var mF="SelectIcon",X_=v.forwardRef((e,n)=>{const{__scopeSelect:r,children:s,...l}=e;return o.jsx(Me.span,{"aria-hidden":!0,...l,ref:n,children:s||"â¼"})});X_.displayName=mF;var pF="SelectPortal",W_=e=>o.jsx(Ai,{asChild:!0,...e});W_.displayName=pF;var ds="SelectContent",J_=v.forwardRef((e,n)=>{const r=Lr(ds,e.__scopeSelect),[s,l]=v.useState();if(Kt(()=>{l(new DocumentFragment)},[]),!r.open){const u=s;return u?Ci.createPortal(o.jsx(eE,{scope:e.__scopeSelect,children:o.jsx(Qu.Slot,{scope:e.__scopeSelect,children:o.jsx("div",{children:e.children})})}),u):null}return o.jsx(tE,{...e,ref:n})});J_.displayName=ds;var ta=10,[eE,Pr]=ki(ds),gF="SelectContentImpl",yF=yi("SelectContent.RemoveScroll"),tE=v.forwardRef((e,n)=>{const{__scopeSelect:r,position:s="item-aligned",onCloseAutoFocus:l,onEscapeKeyDown:u,onPointerDownOutside:f,side:h,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:w,collisionPadding:E,sticky:C,hideWhenDetached:_,avoidCollisions:S,...A}=e,T=Lr(ds,r),[M,F]=v.useState(null),[L,z]=v.useState(null),P=Je(n,le=>F(le)),[H,ie]=v.useState(null),[pe,be]=v.useState(null),ee=Zu(r),[oe,te]=v.useState(!1),de=v.useRef(!1);v.useEffect(()=>{if(M)return mp(M)},[M]),hp();const D=v.useCallback(le=>{const[Ce,...Le]=ee().map(rt=>rt.ref.current),[We]=Le.slice(-1),$e=document.activeElement;for(const rt of le)if(rt===$e||(rt?.scrollIntoView({block:"nearest"}),rt===Ce&&L&&(L.scrollTop=0),rt===We&&L&&(L.scrollTop=L.scrollHeight),rt?.focus(),document.activeElement!==$e))return},[ee,L]),$=v.useCallback(()=>D([H,M]),[D,H,M]);v.useEffect(()=>{oe&&$()},[oe,$]);const{onOpenChange:Z,triggerPointerDownPosRef:J}=T;v.useEffect(()=>{if(M){let le={x:0,y:0};const Ce=We=>{le={x:Math.abs(Math.round(We.pageX)-(J.current?.x??0)),y:Math.abs(Math.round(We.pageY)-(J.current?.y??0))}},Le=We=>{le.x<=10&&le.y<=10?We.preventDefault():M.contains(We.target)||Z(!1),document.removeEventListener("pointermove",Ce),J.current=null};return J.current!==null&&(document.addEventListener("pointermove",Ce),document.addEventListener("pointerup",Le,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Ce),document.removeEventListener("pointerup",Le,{capture:!0})}}},[M,Z,J]),v.useEffect(()=>{const le=()=>Z(!1);return window.addEventListener("blur",le),window.addEventListener("resize",le),()=>{window.removeEventListener("blur",le),window.removeEventListener("resize",le)}},[Z]);const[N,K]=vE(le=>{const Ce=ee().filter($e=>!$e.disabled),Le=Ce.find($e=>$e.ref.current===document.activeElement),We=xE(Ce,le,Le);We&&setTimeout(()=>We.ref.current.focus())}),re=v.useCallback((le,Ce,Le)=>{const We=!de.current&&!Le;(T.value!==void 0&&T.value===Ce||We)&&(ie(le),We&&(de.current=!0))},[T.value]),ne=v.useCallback(()=>M?.focus(),[M]),me=v.useCallback((le,Ce,Le)=>{const We=!de.current&&!Le;(T.value!==void 0&&T.value===Ce||We)&&be(le)},[T.value]),Se=s==="popper"?wm:nE,fe=Se===wm?{side:h,sideOffset:p,align:g,alignOffset:y,arrowPadding:x,collisionBoundary:w,collisionPadding:E,sticky:C,hideWhenDetached:_,avoidCollisions:S}:{};return o.jsx(eE,{scope:r,content:M,viewport:L,onViewportChange:z,itemRefCallback:re,selectedItem:H,onItemLeave:ne,itemTextRefCallback:me,focusSelectedItem:$,selectedItemText:pe,position:s,isPositioned:oe,searchRef:N,children:o.jsx(Lu,{as:yF,allowPinchZoom:!0,children:o.jsx(Du,{asChild:!0,trapped:T.open,onMountAutoFocus:le=>{le.preventDefault()},onUnmountAutoFocus:ue(l,le=>{T.trigger?.focus({preventScroll:!0}),le.preventDefault()}),children:o.jsx(Ti,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:f,onFocusOutside:le=>le.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:o.jsx(Se,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:le=>le.preventDefault(),...A,...fe,onPlaced:()=>te(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:ue(A.onKeyDown,le=>{const Ce=le.ctrlKey||le.altKey||le.metaKey;if(le.key==="Tab"&&le.preventDefault(),!Ce&&le.key.length===1&&K(le.key),["ArrowUp","ArrowDown","Home","End"].includes(le.key)){let We=ee().filter($e=>!$e.disabled).map($e=>$e.ref.current);if(["ArrowUp","End"].includes(le.key)&&(We=We.slice().reverse()),["ArrowUp","ArrowDown"].includes(le.key)){const $e=le.target,rt=We.indexOf($e);We=We.slice(rt+1)}setTimeout(()=>D(We)),le.preventDefault()}})})})})})})});tE.displayName=gF;var vF="SelectItemAlignedPosition",nE=v.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:s,...l}=e,u=Lr(ds,r),f=Pr(ds,r),[h,p]=v.useState(null),[g,y]=v.useState(null),x=Je(n,P=>y(P)),w=Zu(r),E=v.useRef(!1),C=v.useRef(!0),{viewport:_,selectedItem:S,selectedItemText:A,focusSelectedItem:T}=f,M=v.useCallback(()=>{if(u.trigger&&u.valueNode&&h&&g&&_&&S&&A){const P=u.trigger.getBoundingClientRect(),H=g.getBoundingClientRect(),ie=u.valueNode.getBoundingClientRect(),pe=A.getBoundingClientRect();if(u.dir!=="rtl"){const $e=pe.left-H.left,rt=ie.left-$e,bt=P.left-rt,Ht=P.width+bt,Ka=Math.max(Ht,H.width),Qa=window.innerWidth-ta,Jt=Jb(rt,[ta,Math.max(ta,Qa-Ka)]);h.style.minWidth=Ht+"px",h.style.left=Jt+"px"}else{const $e=H.right-pe.right,rt=window.innerWidth-ie.right-$e,bt=window.innerWidth-P.right-rt,Ht=P.width+bt,Ka=Math.max(Ht,H.width),Qa=window.innerWidth-ta,Jt=Jb(rt,[ta,Math.max(ta,Qa-Ka)]);h.style.minWidth=Ht+"px",h.style.right=Jt+"px"}const be=w(),ee=window.innerHeight-ta*2,oe=_.scrollHeight,te=window.getComputedStyle(g),de=parseInt(te.borderTopWidth,10),D=parseInt(te.paddingTop,10),$=parseInt(te.borderBottomWidth,10),Z=parseInt(te.paddingBottom,10),J=de+D+oe+Z+$,N=Math.min(S.offsetHeight*5,J),K=window.getComputedStyle(_),re=parseInt(K.paddingTop,10),ne=parseInt(K.paddingBottom,10),me=P.top+P.height/2-ta,Se=ee-me,fe=S.offsetHeight/2,le=S.offsetTop+fe,Ce=de+D+le,Le=J-Ce;if(Ce<=me){const $e=be.length>0&&S===be[be.length-1].ref.current;h.style.bottom="0px";const rt=g.clientHeight-_.offsetTop-_.offsetHeight,bt=Math.max(Se,fe+($e?ne:0)+rt+$),Ht=Ce+bt;h.style.height=Ht+"px"}else{const $e=be.length>0&&S===be[0].ref.current;h.style.top="0px";const bt=Math.max(me,de+_.offsetTop+($e?re:0)+fe)+Le;h.style.height=bt+"px",_.scrollTop=Ce-me+_.offsetTop}h.style.margin=`${ta}px 0`,h.style.minHeight=N+"px",h.style.maxHeight=ee+"px",s?.(),requestAnimationFrame(()=>E.current=!0)}},[w,u.trigger,u.valueNode,h,g,_,S,A,u.dir,s]);Kt(()=>M(),[M]);const[F,L]=v.useState();Kt(()=>{g&&L(window.getComputedStyle(g).zIndex)},[g]);const z=v.useCallback(P=>{P&&C.current===!0&&(M(),T?.(),C.current=!1)},[M,T]);return o.jsx(bF,{scope:r,contentWrapper:h,shouldExpandOnScrollRef:E,onScrollButtonChange:z,children:o.jsx("div",{ref:p,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:o.jsx(Me.div,{...l,ref:x,style:{boxSizing:"border-box",maxHeight:"100%",...l.style}})})})});nE.displayName=vF;var xF="SelectPopperPosition",wm=v.forwardRef((e,n)=>{const{__scopeSelect:r,align:s="start",collisionPadding:l=ta,...u}=e,f=Xu(r);return o.jsx(cp,{...f,...u,ref:n,align:s,collisionPadding:l,style:{boxSizing:"border-box",...u.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)"}})});wm.displayName=xF;var[bF,Op]=ki(ds,{}),jm="SelectViewport",aE=v.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:s,...l}=e,u=Pr(jm,r),f=Op(jm,r),h=Je(n,u.onViewportChange),p=v.useRef(0);return o.jsxs(o.Fragment,{children:[o.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:s}),o.jsx(Qu.Slot,{scope:r,children:o.jsx(Me.div,{"data-radix-select-viewport":"",role:"presentation",...l,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...l.style},onScroll:ue(l.onScroll,g=>{const y=g.currentTarget,{contentWrapper:x,shouldExpandOnScrollRef:w}=f;if(w?.current&&x){const E=Math.abs(p.current-y.scrollTop);if(E>0){const C=window.innerHeight-ta*2,_=parseFloat(x.style.minHeight),S=parseFloat(x.style.height),A=Math.max(_,S);if(A<C){const T=A+E,M=Math.min(C,T),F=T-M;x.style.height=M+"px",x.style.bottom==="0px"&&(y.scrollTop=F>0?F:0,x.style.justifyContent="flex-end")}}}p.current=y.scrollTop})})})]})});aE.displayName=jm;var rE="SelectGroup",[wF,jF]=ki(rE),_F=v.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e,l=Yn();return o.jsx(wF,{scope:r,id:l,children:o.jsx(Me.div,{role:"group","aria-labelledby":l,...s,ref:n})})});_F.displayName=rE;var sE="SelectLabel",iE=v.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e,l=jF(sE,r);return o.jsx(Me.div,{id:l.id,...s,ref:n})});iE.displayName=sE;var uu="SelectItem",[EF,oE]=ki(uu),lE=v.forwardRef((e,n)=>{const{__scopeSelect:r,value:s,disabled:l=!1,textValue:u,...f}=e,h=Lr(uu,r),p=Pr(uu,r),g=h.value===s,[y,x]=v.useState(u??""),[w,E]=v.useState(!1),C=Je(n,T=>p.itemRefCallback?.(T,s,l)),_=Yn(),S=v.useRef("touch"),A=()=>{l||(h.onValueChange(s),h.onOpenChange(!1))};if(s==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return o.jsx(EF,{scope:r,value:s,disabled:l,textId:_,isSelected:g,onItemTextChange:v.useCallback(T=>{x(M=>M||(T?.textContent??"").trim())},[]),children:o.jsx(Qu.ItemSlot,{scope:r,value:s,disabled:l,textValue:y,children:o.jsx(Me.div,{role:"option","aria-labelledby":_,"data-highlighted":w?"":void 0,"aria-selected":g&&w,"data-state":g?"checked":"unchecked","aria-disabled":l||void 0,"data-disabled":l?"":void 0,tabIndex:l?void 0:-1,...f,ref:C,onFocus:ue(f.onFocus,()=>E(!0)),onBlur:ue(f.onBlur,()=>E(!1)),onClick:ue(f.onClick,()=>{S.current!=="mouse"&&A()}),onPointerUp:ue(f.onPointerUp,()=>{S.current==="mouse"&&A()}),onPointerDown:ue(f.onPointerDown,T=>{S.current=T.pointerType}),onPointerMove:ue(f.onPointerMove,T=>{S.current=T.pointerType,l?p.onItemLeave?.():S.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ue(f.onPointerLeave,T=>{T.currentTarget===document.activeElement&&p.onItemLeave?.()}),onKeyDown:ue(f.onKeyDown,T=>{p.searchRef?.current!==""&&T.key===" "||(cF.includes(T.key)&&A(),T.key===" "&&T.preventDefault())})})})})});lE.displayName=uu;var Ho="SelectItemText",cE=v.forwardRef((e,n)=>{const{__scopeSelect:r,className:s,style:l,...u}=e,f=Lr(Ho,r),h=Pr(Ho,r),p=oE(Ho,r),g=hF(Ho,r),[y,x]=v.useState(null),w=Je(n,A=>x(A),p.onItemTextChange,A=>h.itemTextRefCallback?.(A,p.value,p.disabled)),E=y?.textContent,C=v.useMemo(()=>o.jsx("option",{value:p.value,disabled:p.disabled,children:E},p.value),[p.disabled,p.value,E]),{onNativeOptionAdd:_,onNativeOptionRemove:S}=g;return Kt(()=>(_(C),()=>S(C)),[_,S,C]),o.jsxs(o.Fragment,{children:[o.jsx(Me.span,{id:p.textId,...u,ref:w}),p.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Ci.createPortal(u.children,f.valueNode):null]})});cE.displayName=Ho;var uE="SelectItemIndicator",dE=v.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e;return oE(uE,r).isSelected?o.jsx(Me.span,{"aria-hidden":!0,...s,ref:n}):null});dE.displayName=uE;var _m="SelectScrollUpButton",fE=v.forwardRef((e,n)=>{const r=Pr(_m,e.__scopeSelect),s=Op(_m,e.__scopeSelect),[l,u]=v.useState(!1),f=Je(n,s.onScrollButtonChange);return Kt(()=>{if(r.viewport&&r.isPositioned){let h=function(){const g=p.scrollTop>0;u(g)};const p=r.viewport;return h(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),l?o.jsx(mE,{...e,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:p}=r;h&&p&&(h.scrollTop=h.scrollTop-p.offsetHeight)}}):null});fE.displayName=_m;var Em="SelectScrollDownButton",hE=v.forwardRef((e,n)=>{const r=Pr(Em,e.__scopeSelect),s=Op(Em,e.__scopeSelect),[l,u]=v.useState(!1),f=Je(n,s.onScrollButtonChange);return Kt(()=>{if(r.viewport&&r.isPositioned){let h=function(){const g=p.scrollHeight-p.clientHeight,y=Math.ceil(p.scrollTop)<g;u(y)};const p=r.viewport;return h(),p.addEventListener("scroll",h),()=>p.removeEventListener("scroll",h)}},[r.viewport,r.isPositioned]),l?o.jsx(mE,{...e,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:p}=r;h&&p&&(h.scrollTop=h.scrollTop+p.offsetHeight)}}):null});hE.displayName=Em;var mE=v.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:s,...l}=e,u=Pr("SelectScrollButton",r),f=v.useRef(null),h=Zu(r),p=v.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return v.useEffect(()=>()=>p(),[p]),Kt(()=>{h().find(y=>y.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[h]),o.jsx(Me.div,{"aria-hidden":!0,...l,ref:n,style:{flexShrink:0,...l.style},onPointerDown:ue(l.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(s,50))}),onPointerMove:ue(l.onPointerMove,()=>{u.onItemLeave?.(),f.current===null&&(f.current=window.setInterval(s,50))}),onPointerLeave:ue(l.onPointerLeave,()=>{p()})})}),SF="SelectSeparator",pE=v.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e;return o.jsx(Me.div,{"aria-hidden":!0,...s,ref:n})});pE.displayName=SF;var Sm="SelectArrow",NF=v.forwardRef((e,n)=>{const{__scopeSelect:r,...s}=e,l=Xu(r),u=Lr(Sm,r),f=Pr(Sm,r);return u.open&&f.position==="popper"?o.jsx(up,{...l,...s,ref:n}):null});NF.displayName=Sm;var CF="SelectBubbleInput",gE=v.forwardRef(({__scopeSelect:e,value:n,...r},s)=>{const l=v.useRef(null),u=Je(s,l),f=G_(n);return v.useEffect(()=>{const h=l.current;if(!h)return;const p=window.HTMLSelectElement.prototype,y=Object.getOwnPropertyDescriptor(p,"value").set;if(f!==n&&y){const x=new Event("change",{bubbles:!0});y.call(h,n),h.dispatchEvent(x)}},[f,n]),o.jsx(Me.select,{...r,style:{...iw,...r.style},ref:u,defaultValue:n})});gE.displayName=CF;function yE(e){return e===""||e===void 0}function vE(e){const n=jn(e),r=v.useRef(""),s=v.useRef(0),l=v.useCallback(f=>{const h=r.current+f;n(h),(function p(g){r.current=g,window.clearTimeout(s.current),g!==""&&(s.current=window.setTimeout(()=>p(""),1e3))})(h)},[n]),u=v.useCallback(()=>{r.current="",window.clearTimeout(s.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(s.current),[]),[r,l,u]}function xE(e,n,r){const l=n.length>1&&Array.from(n).every(g=>g===n[0])?n[0]:n,u=r?e.indexOf(r):-1;let f=TF(e,Math.max(u,0));l.length===1&&(f=f.filter(g=>g!==r));const p=f.find(g=>g.textValue.toLowerCase().startsWith(l.toLowerCase()));return p!==r?p:void 0}function TF(e,n){return e.map((r,s)=>e[(n+s)%e.length])}var AF=$_,bE=K_,RF=Z_,OF=X_,MF=W_,wE=J_,kF=aE,jE=iE,_E=lE,DF=cE,FF=dE,EE=fE,SE=hE,NE=pE;const Nt=AF,Ct=RF,jt=v.forwardRef(({className:e,children:n,...r},s)=>o.jsxs(bE,{ref:s,className:Re("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),...r,children:[n,o.jsx(OF,{asChild:!0,children:o.jsx(Qo,{className:"h-4 w-4 opacity-50"})})]}));jt.displayName=bE.displayName;const CE=v.forwardRef(({className:e,...n},r)=>o.jsx(EE,{ref:r,className:Re("flex cursor-default items-center justify-center py-1",e),...n,children:o.jsx(fA,{className:"h-4 w-4"})}));CE.displayName=EE.displayName;const TE=v.forwardRef(({className:e,...n},r)=>o.jsx(SE,{ref:r,className:Re("flex cursor-default items-center justify-center py-1",e),...n,children:o.jsx(Qo,{className:"h-4 w-4"})}));TE.displayName=SE.displayName;const _t=v.forwardRef(({className:e,children:n,position:r="popper",...s},l)=>o.jsx(MF,{children:o.jsxs(wE,{ref:l,className:Re("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
53de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-select-content-transform-origin]",r==="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:r,...s,children:[o.jsx(CE,{}),o.jsx(kF,{className:Re("p-1",r==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),o.jsx(TE,{})]})}));_t.displayName=wE.displayName;const LF=v.forwardRef(({className:e,...n},r)=>o.jsx(jE,{ref:r,className:Re("px-2 py-1.5 text-sm font-semibold",e),...n}));LF.displayName=jE.displayName;const it=v.forwardRef(({className:e,children:n,...r},s)=>o.jsxs(_E,{ref:s,className:Re("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),...r,children:[o.jsx("span",{className:"absolute right-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(FF,{children:o.jsx(Tu,{className:"h-4 w-4"})})}),o.jsx(DF,{children:n})]}));it.displayName=_E.displayName;const PF=v.forwardRef(({className:e,...n},r)=>o.jsx(NE,{ref:r,className:Re("-mx-1 my-1 h-px bg-muted",e),...n}));PF.displayName=NE.displayName;function ln({className:e,...n}){return o.jsx("div",{className:Re("animate-pulse rounded-md bg-primary/10",e),...n})}const zF=["UAE","Saudi Arabia","Oman","Qatar","Bahrain","Kuwait"],qF=["Arabic","English","French","Urdu"],UF=["EFCT - Couples","EFIT - Individuals","EFFT - Families"],IF=["In-Person","Online","Both"],VF=["Male","Female"],HF=["Externship","Core Skills","Certified","Supervisor","Trainer"],Sr="__all__";function oi(e){return e===Sr?"":e}function li(e){return e===""?Sr:e}function BF(){const{t:e,language:n}=Ot(),[r,s]=v.useState(""),[l,u]=v.useState(""),[f,h]=v.useState(""),[p,g]=v.useState(""),[y,x]=v.useState(""),[w,E]=v.useState(""),[C,_]=v.useState(""),S={...r&&{country:r},...l&&{city:l},...f&&{language:f},...p&&{modality:p},...y&&{practiceFormat:y},...w&&{gender:w},...C&&{iceeftStatus:C}},{data:A,isLoading:T}=v3(S),M=A?.therapists??[],F=r||l||f||p||y||w||C,L=()=>{s(""),u(""),h(""),g(""),x(""),E(""),_("")};return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-16 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("h1",{className:"font-serif text-4xl font-bold mb-4",children:e("cta.find_therapist")}),o.jsx("p",{className:"text-muted-foreground text-lg",children:e("dir.browse_intro")})]})}),o.jsx("div",{className:"container mx-auto px-4 py-10",children:o.jsxs("div",{className:"flex flex-col lg:flex-row gap-8",children:[o.jsx("aside",{className:"w-full lg:w-72 shrink-0",children:o.jsxs("div",{className:"bg-card border border-border rounded-xl p-6 sticky top-20",children:[o.jsxs("div",{className:"flex items-center justify-between mb-5",children:[o.jsxs("div",{className:"flex items-center gap-2 font-semibold",children:[o.jsx(XA,{className:"h-4 w-4 text-primary-on"}),o.jsx("span",{children:e("filter.filters")})]}),F&&o.jsxs(Ae,{variant:"ghost",size:"sm",onClick:L,className:"text-xs gap-1",children:[o.jsx(cl,{className:"h-3 w-3"})," ",e("filter.clear")]})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1.5 block",children:e("filter.country")}),o.jsxs(Nt,{value:li(r),onValueChange:z=>s(oi(z)),children:[o.jsx(jt,{"data-testid":"filter-country",children:o.jsx(Ct,{placeholder:e("filter.all_countries")})}),o.jsxs(_t,{children:[o.jsx(it,{value:Sr,children:e("filter.all_countries")}),zF.map(z=>o.jsx(it,{value:z,children:z},z))]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1.5 block",children:n==="ar"?"اÙÙ
دÙÙØ©":"City"}),o.jsxs("div",{className:"relative",children:[o.jsx(GA,{className:"absolute start-2.5 top-2.5 h-3.5 w-3.5 text-muted-foreground"}
53),o.jsx(Ve,{value:l,onChange:z=>u(z.target.value),placeholder:n==="ar"?"Ø§Ø¨ØØ« باÙÙ
دÙÙØ©...":"Search by city...",className:"ps-8 text-sm","data-testid":"filter-city"})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1.5 block",children:e("filter.language")}),o.jsxs(Nt,{value:li(f),onValueChange:z=>h(oi(z)),children:[o.jsx(jt,{"data-testid":"filter-language",children:o.jsx(Ct,{placeholder:e("filter.any_language")})}),o.jsxs(_t,{children:[o.jsx(it,{value:Sr,children:e("filter.any_language")}),qF.map(z=>o.jsx(it,{value:z,children:z},z))]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1.5 block",children:e("filter.modality")}),o.jsxs(Nt,{value:li(p),onValueChange:z=>g(oi(z)),children:[o.jsx(jt,{"data-testid":"filter-modality",children:o.jsx(Ct,{placeholder:e("filter.all_modalities")})}),o.jsxs(_t,{children:[o.jsx(it,{value:Sr,children:e("filter.all_modalities")}),UF.map(z=>o.jsx(it,{value:z,children:z},z))]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1.5 block",children:e("filter.format")}),o.jsxs(Nt,{value:li(y),onValueChange:z=>x(oi(z)),children:[o.jsx(jt,{"data-testid":"filter-format",children:o.jsx(Ct,{placeholder:e("filter.any_format")})}),o.jsxs(_t,{children:[o.jsx(it,{value:Sr,children:e("filter.any_format")}),IF.map(z=>o.jsx(it,{value:z,children:z},z))]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1.5 block",children:e("filter.gender")}),o.jsxs(Nt,{value:li(w),onValueChange:z=>E(oi(z)),children:[o.jsx(jt,{"data-testid":"filter-gender",children:o.jsx(Ct,{placeholder:e("filter.any_gender")})}),o.jsxs(_t,{children:[o.jsx(it,{value:Sr,children:e("filter.any_gender")}),VF.map(z=>o.jsx(it,{value:z,children:z},z))]})]})]}),o.jsxs("div",{children:[o.jsx("label",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-1.5 block",children:e("filter.iceeft_status")}),o.jsxs(Nt,{value:li(C),onValueChange:z=>_(oi(z)),children:[o.jsx(jt,{"data-testid":"filter-iceeft",children:o.jsx(Ct,{placeholder:e("filter.any_cert")})}),o.jsxs(_t,{children:[o.jsx(it,{value:Sr,children:e("filter.any_cert")}),HF.map(z=>o.jsx(it,{value:z,children:z},z))]})]})]})]})]})}),o.jsx("div",{className:"flex-1",children:T?o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:Array.from({length:6}).map((z,P)=>o.jsx(ln,{className:"h-48 rounded-xl"},P))}):M.length===0?o.jsx("div",{className:"text-center py-20 max-w-md mx-auto",children:F?o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-muted-foreground text-lg mb-2",children:e("dir.no_results")}),o.jsx("p",{className:"text-sm text-muted-foreground",children:e("dir.adjust_filters")})]}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-foreground text-lg font-medium mb-3",children:e("dir.coming_soon")}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:e("dir.coming_soon_contact")}),o.jsx("a",{href:"/contact",className:"inline-block mt-5 text-sm text-primary-on underline underline-offset-2",children:e("cta.contact_us")})]})}):o.jsxs(o.Fragment,{children:[o.jsxs("p",{className:"text-sm text-muted-foreground mb-4",children:[M.length," ",M.length===1?e("dir.found"):e("dir.found_plural")]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:M.map(z=>o.jsx(Ie,{href:`/find-therapist/${z.id}`,children:o.jsx(gt,{"data-testid":`card-therapist-${z.id}`,className:"border border-border hover:shadow-md hover:border-primary/30 transition-all cursor-pointer h-full",children:o.jsxs(xt,{className:"p-6 flex flex-col h-full",children:[o.jsxs("div",{className:"flex items-start gap-4 mb-4",children:[o.jsx("div",{className:"h-12 w-12 rounded-full bg-primary/10 flex items-center justify-center shrink-0 text-primary-on font-bold text-lg",children:z.fullName.charAt(0)}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("h3",{className:"font-semibold text-foreground leading-snug","data-testid":`text-therapist-name-${z.id}`,children:z.fullName}),o.jsx("p",{className:"text-sm text-muted-foreground",children:z.professionalTitle})]})]}),o.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground mb-3",children:[o.jsx(Zm,{className:"h-3.5 w-3.5 shrink-0"}),o.jsxs("span",{children:[z.city,", ",z.country]}),o.jsx("span",{className:"text-muted-foreground mx-1",children:"â¢"}),o.jsx(Mw,{className:"h-3.5 w-3.5 shrink-0"}),o.jsx("span",{children:z.languages.join(", ")})]}),o.jsx("div",{className:"flex flex-wrap gap-1.5 mb-3",children:z.modalities.map(P=>o.jsx(Rt,{variant:"secondary",className:"text-xs",children:P.split(" - ")[1]||P},P))}),z.bio&&o.jsx("p",{className:"text-sm text-muted-foreground line-clamp-2 flex-1",children:z.bio}),o.jsxs("div",{className:"mt-4 pt-4 border-t border-border flex items-center justify-between",children:[o.jsx("span",{className:"text-xs font-medium text-primary-on",children:z.iceeftStatus}),o.jsx("span",{className:"text-xs text-muted-foreground",children:z.practiceFormat})]})]})})},z.id))})]})})]})})]})}function GF(){const[,e]=dT("/find-therapist/:id"),n=e?.id?parseInt(e.id,10):0,{t:r}=Ot(),{data:s,isLoading:l}=N3(n,{query:{enabled:!!n,queryKey:V_(n)}});return l?o.jsxs("div",{className:"container mx-auto px-4 py-16 max-w-4xl",children:[o.jsx(ln,{className:"h-12 w-1/2 mb-6"}),o.jsx(ln,{className:"h-64 w-full rounded-xl"})]}):s?o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"bg-card border-b border-border py-10",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[o.jsxs(Ie,{href:"/find-therapist",className:"inline-flex items-center gap-2 text-sm text-muted-foreground hover:text-primary-on mb-6 transition-colors",children:[o.jsx(W2,{className:"h-4 w-4"}),r("profile.back")]}),o.jsxs("div",{className:"flex flex-col md:flex-row gap-6 items-start",children:[o.jsx("div",{className:"h-24 w-24 rounded-full bg-primary/10 flex items-center justify-center text-primary-on font-bold text-3xl shrink-0",children:s.fullName.charAt(0)}),o.jsxs("div",{className:"flex-1",children:[o.jsx("h1",{className:"font-serif text-3xl md:text-4xl font-bold mb-1","data-testid":"text-therapist-name",children:s.fullName}),o.jsx("p",{className:"text-muted-foreground text-lg mb-3",children:s.professionalTitle}),o.jsxs("div",{className:"flex flex-wrap gap-2",children:[o.jsxs(Rt,{variant:"outline",className:"gap-1",children:[o.jsx(Zm,{className:"h-3 w-3"}),s.city,", ",s.country]}),o.jsxs(Rt,{variant:"outline",className:"gap-1",children:[o.jsx(sm,{className:"h-3 w-3 text-primary-on"}),s.iceeftStatus]}),o.jsx(Rt,{variant:"outline",children:s.practiceFormat})]})]})]})]})}),o.jsx("div",{className:"container mx-auto px-4 py-12 max-w-4xl",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8",children:[o.jsxs("div",{className:"md:col-span-2 space-y-8",children:[s.bio&&o.jsxs("section",{children:[o.jsx("h2",{className:"font-serif text-xl font-semibold mb-3",children:r("profile.about")}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:s.bio})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"font-serif text-xl font-semibold mb-3",children:r("profile.modalities")}),o.jsx("div",{className:"flex flex-wrap gap-2",children:s.modalities.map(u=>o.jsx(Rt,{variant:"secondary",children:u},u))}),s.areasOfFocus&&s.areasOfFocus.length>0&&o.jsx("div",{className:"flex flex-wrap gap-2 mt-3",children:s.areasOfFocus.map(u=>o.jsx(Rt,{variant:"outline",children:u},u))})]}),o.jsxs("section",{children:[o.jsx("h2",{className:"font-serif text-xl font-semibold mb-3",children:r("profile.languages")}),o.jsx("div",{className:"flex flex-wrap gap-2",children:s.languages.map(u=>o.jsxs("div",{className:"flex items-center gap-1.5 px-3 py-1.5 rounded-full bg-muted text-sm",children:[o.jsx(Mw,{className:"h-3.5 w-3.5 text-muted-foreground"}),u]},u))})]})]}),o.jsxs("div",{className:"space-y-4",children:[o.jsx(gt,{className:"border border-border",children:o.jsxs(xt,{className:"p-6 space-y-4",children:[o.jsx("h3",{className:"font-semibold",children:r("profile.contact")}
53),s.contactEmail&&o.jsxs("a",{href:`mailto:${s.contactEmail}`,className:"flex items-center gap-3 text-sm text-muted-foreground hover:text-primary-on transition-colors",children:[o.jsx(Wc,{className:"h-4 w-4 shrink-0"}),o.jsx("span",{"data-testid":"text-therapist-email",children:s.contactEmail})]}),s.contactPhone&&o.jsxs("a",{href:`tel:${s.contactPhone}`,className:"flex items-center gap-3 text-sm text-muted-foreground hover:text-primary-on transition-colors",children:[o.jsx(VA,{className:"h-4 w-4 shrink-0"}),o.jsx("span",{"data-testid":"text-therapist-phone",children:s.contactPhone})]}),s.websiteUrl&&o.jsxs("a",{href:s.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"flex items-center gap-3 text-sm text-muted-foreground hover:text-primary-on transition-colors",children:[o.jsx(Qm,{className:"h-4 w-4 shrink-0"}),o.jsx("span",{children:r("profile.visit_website")})]})]})}),o.jsx(gt,{className:"border border-border",children:o.jsxs(xt,{className:"p-6 space-y-3",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[o.jsx(Jc,{className:"h-4 w-4 text-primary-on"}),o.jsx("h3",{className:"font-semibold",children:r("profile.credentials")})]}),s.licenseNumber&&o.jsxs("div",{children:[o.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wide mb-0.5",children:r("profile.license_number")}),o.jsx("p",{className:"text-sm font-medium","data-testid":"text-license-number",children:s.licenseNumber})]}),s.issuingAuthority&&o.jsxs("div",{children:[o.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wide mb-0.5",children:r("profile.issuing_authority")}),o.jsx("p",{className:"text-sm font-medium","data-testid":"text-issuing-authority",children:s.issuingAuthority})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs text-muted-foreground uppercase tracking-wide mb-0.5",children:r("profile.iceeft_status")}),o.jsx("p",{className:"text-sm font-medium",children:s.iceeftStatus})]})]})})]})]})})]}):o.jsxs("div",{className:"container mx-auto px-4 py-24 text-center",children:[o.jsx("h1",{className:"font-serif text-2xl font-bold mb-4",children:r("profile.not_found")}),o.jsx(Ie,{href:"/find-therapist",children:o.jsx(Ae,{variant:"outline",children:r("profile.back")})})]})}function ca(e){const n=Object.prototype.toString.call(e);return e instanceof Date||typeof e=="object"&&n==="[object Date]"?new e.constructor(+e):typeof e=="number"||n==="[object Number]"||typeof e=="string"||n==="[object String]"?new Date(e):new Date(NaN)}function fs(e,n){return e instanceof Date?new e.constructor(n):new Date(n)}const AE=6048e5,$F=864e5,RE=6e4,OE=36e5;let YF={};function Wu(){return YF}function tl(e,n){const r=Wu(),s=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,l=ca(e),u=l.getDay(),f=(u<s?7:0)+u-s;return l.setDate(l.getDate()-f),l.setHours(0,0,0,0),l}function du(e){return tl(e,{weekStartsOn:1})}function ME(e){const n=ca(e),r=n.getFullYear(),s=fs(e,0);s.setFullYear(r+1,0,4),s.setHours(0,0,0,0);const l=du(s),u=fs(e,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);const f=du(u);return n.getTime()>=l.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function e0(e){const n=ca(e);return n.setHours(0,0,0,0),n}function t0(e){const n=ca(e),r=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return r.setUTCFullYear(n.getFullYear()),+e-+r}function KF(e,n){const r=e0(e),s=e0(n),l=+r-t0(r),u=+s-t0(s);return Math.round((l-u)/$F)}function QF(e){const n=ME(e),r=fs(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),du(r)}function ZF(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function XF(e){if(!ZF(e)&&typeof e!="number")return!1;const n=ca(e);return!isNaN(Number(n))}function WF(e){const n=ca(e),r=fs(e,0);return r.setFullYear(n.getFullYear(),0,1),r.setHours(0,0,0,0),r}const JF={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},e5=(e,n,r)=>{let s;const l=JF[e];return typeof l=="string"?s=l:n===1?s=l.one:s=l.other.replace("{{count}}",n.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+s:s+" ago":s};function Bh(e){return(n={})=>{const r=n.width?String(n.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const t5={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},n5={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},a5={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},r5={date:Bh({formats:t5,defaultWidth:"full"}),time:Bh({formats:n5,defaultWidth:"full"}),dateTime:Bh({formats:a5,defaultWidth:"full"})},s5={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"}
vendor: 15,717 bytes, line 53
53,i5=(e,n,r,s)=>s5[e];function zo(e){return(n,r)=>{const s=r?.context?String(r.context):"standalone";let l;if(s==="formatting"&&e.formattingValues){const f=e.defaultFormattingWidth||e.defaultWidth,h=r?.width?String(r.width):f;l=e.formattingValues[h]||e.formattingValues[f]}else{const f=e.defaultWidth,h=r?.width?String(r.width):e.defaultWidth;l=e.values[h]||e.values[f]}const u=e.argumentCallback?e.argumentCallback(n):n;return l[u]}}const o5={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l5={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},c5={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u5={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},d5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},f5={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},h5=(e,n)=>{const r=Number(e),s=r%100;if(s>20||s<10)switch(s%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},m5={ordinalNumber:h5,era:zo({values:o5,defaultWidth:"wide"}),quarter:zo({values:l5,defaultWidth:"wide",argumentCallback:e=>e-1}),month:zo({values:c5,defaultWidth:"wide"}),day:zo({values:u5,defaultWidth:"wide"}),dayPeriod:zo({values:d5,defaultWidth:"wide",formattingValues:f5,defaultFormattingWidth:"wide"})};function qo(e){return(n,r={})=>{const s=r.width,l=s&&e.matchPatterns[s]||e.matchPatterns[e.defaultMatchWidth],u=n.match(l);if(!u)return null;const f=u[0],h=s&&e.parsePatterns[s]||e.parsePatterns[e.defaultParseWidth],p=Array.isArray(h)?g5(h,x=>x.test(f)):p5(h,x=>x.test(f));let g;g=e.valueCallback?e.valueCallback(p):p,g=r.valueCallback?r.valueCallback(g):g;const y=n.slice(f.length);return{value:g,rest:y}}}function p5(e,n){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&n(e[r]))return r}function g5(e,n){for(let r=0;r<e.length;r++)if(n(e[r]))return r}function y5(e){return(n,r={})=>{const s=n.match(e.matchPattern);if(!s)return null;const l=s[0],u=n.match(e.parsePattern);if(!u)return null;let f=e.valueCallback?e.valueCallback(u[0]):u[0];f=r.valueCallback?r.valueCallback(f):f;const h=n.slice(l.length);return{value:f,rest:h}}}const v5=/^(\d+)(th|st|nd|rd)?/i,x5=/\d+/i,b5={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},w5={any:[/^b/i,/^(a|c)/i]},j5={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},_5={any:[/1/i,/2/i,/3/i,/4/i]},E5={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},S5={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},N5={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},C5={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},T5={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},A5={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},R5={ordinalNumber:y5({matchPattern:v5,parsePattern:x5,valueCallback:e=>parseInt(e,10)}),era:qo({matchPatterns:b5,defaultMatchWidth:"wide",parsePatterns:w5,defaultParseWidth:"any"}),quarter:qo({matchPatterns:j5,defaultMatchWidth:"wide",parsePatterns:_5,defaultParseWidth:"any",valueCallback:e=>e+1}),month:qo({matchPatterns:E5,defaultMatchWidth:"wide",parsePatterns:S5,defaultParseWidth:"any"}),day:qo({matchPatterns:N5,defaultMatchWidth:"wide",parsePatterns:C5,defaultParseWidth:"any"}),dayPeriod:qo({matchPatterns:T5,defaultMatchWidth:"any",parsePatterns:A5,defaultParseWidth:"any"})},O5={code:"en-US",formatDistance:e5,formatLong:r5,formatRelative:i5,localize:m5,match:R5,options:{weekStartsOn:0,firstWeekContainsDate:1}};function M5(e){const n=ca(e);return KF(n,WF(n))+1}function k5(e){const n=ca(e),r=+du(n)-+QF(n);return Math.round(r/AE)+1}function kE(e,n){const r=ca(e),s=r.getFullYear(),l=Wu(),u=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??l.firstWeekContainsDate??l.locale?.options?.firstWeekContainsDate??1,f=fs(e,0);f.setFullYear(s+1,0,u),f.setHours(0,0,0,0);const h=tl(f,n),p=fs(e,0);p.setFullYear(s,0,u),p.setHours(0,0,0,0);const g=tl(p,n);return r.getTime()>=h.getTime()?s+1:r.getTime()>=g.getTime()?s:s-1}function D5(e,n){const r=Wu(),s=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,l=kE(e,n),u=fs(e,0);return u.setFullYear(l,0,s),u.setHours(0,0,0,0),tl(u,n)}function F5(e,n){const r=ca(e),s=+tl(r,n)-+D5(r,n);return Math.round(s/AE)+1}function ut(e,n){const r=e<0?"-":"",s=Math.abs(e).toString().padStart(n,"0");return r+s}const _r={y(e,n){const r=e.getFullYear(),s=r>0?r:1-r;return ut(n==="yy"?s%100:s,n.length)},M(e,n){const r=e.getMonth();return n==="M"?String(r+1):ut(r+1,2)},d(e,n){return ut(e.getDate(),n.length)},a(e,n){const r=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return r==="am"?"a.m.":"p.m."}},h(e,n){return ut(e.getHours()%12||12,n.length)},H(e,n){return ut(e.getHours(),n.length)},m(e,n){return ut(e.getMinutes(),n.length)},s(e,n){return ut(e.getSeconds(),n.length)},S(e,n){const r=n.length,s=e.getMilliseconds(),l=Math.trunc(s*Math.pow(10,r-3));return ut(l,n.length)}},ci={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},n0={G:function(e,n,r){const s=e.getFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(s,{width:"abbreviated"});case"GGGGG":return r.era(s,{width:"narrow"});default:return r.era(s,{width:"wide"})}},y:function(e,n,r){if(n==="yo"){const s=e.getFullYear(),l=s>0?s:1-s;return r.ordinalNumber(l,{unit:"year"})}return _r.y(e,n)},Y:function(e,n,r,s){const l=kE(e,s),u=l>0?l:1-l;if(n==="YY"){const f=u%100;return ut(f,2)}return n==="Yo"?r.ordinalNumber(u,{unit:"year"}):ut(u,n.length)},R:function(e,n){const r=ME(e);return ut(r,n.length)},u:function(e,n){const r=e.getFullYear();return ut(r,n.length)},Q:function(e,n,r){const s=Math.ceil((e.getMonth()+1)/3);switch(n){case"Q":return String(s);case"QQ":return ut(s,2);case"Qo":return r.ordinalNumber(s,{unit:"quarter"});case"QQQ":return r.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(s,{width:"narrow",context:"formatting"});default:return r.quarter(s,{width:"wide",context:"formatting"})}},q:function(e,n,r){const s=Math.ceil((e.getMonth()+1)/3);switch(n){case"q":return String(s);case"qq":return ut(s,2);case"qo":return r.ordinalNumber(s,{unit:"quarter"});case"qqq":return r.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(s,{width:"narrow",context:"standalone"});default:return r.quarter(s,{width:"wide",context:"standalone"})}},M:function(e,n,r){const s=e.getMonth();switch(n){case"M":case"MM":return _r.M(e,n);case"Mo":return r.ordinalNumber(s+1,{unit:"month"});case"MMM":return r.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(s,{width:"narrow",context:"formatting"});default:return r.month(s,{width:"wide",context:"formatting"})}},L:function(e,n,r){const s=e.getMonth();switch(n){case"L":return String(s+1);case"LL":return ut(s+1,2);case"Lo":return r.ordinalNumber(s+1,{unit:"month"});case"LLL":return r.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(s,{width:"narrow",context:"standalone"});default:return r.month(s,{width:"wide",context:"standalone"})}},w:function(e,n,r,s){const l=F5(e,s);return n==="wo"?r.ordinalNumber(l,{unit:"week"}):ut(l,n.length)},I:function(e,n,r){const s=k5(e);return n==="Io"?r.ordinalNumber(s,{unit:"week"}):ut(s,n.length)},d:function(e,n,r){return n==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):_r.d(e,n)},D:function(e,n,r){const s=M5(e);return n==="Do"?r.ordinalNumber(s,{unit:"dayOfYear"}):ut(s,n.length)},E:function(e,n,r){const s=e.getDay();switch(n){case"E":case"EE":case"EEE":return r.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},e:function(e,n,r,s){const l=e.getDay(),u=(l-s.weekStartsOn+8)%7||7;switch(n){case"e":return String(u);case"ee":return ut(u,2);case"eo":return r.ordinalNumber(u,{unit:"day"});case"eee":return r.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(l,{width:"short",context:"formatting"});default:return r.day(l,{width:"wide",context:"formatting"})}},c:function(e,n,r,s){const l=e.getDay(),u=(l-s.weekStartsOn+8)%7||7;switch(n){case"c":return String(u);case"cc":return ut(u,n.length);case"co":return r.ordinalNumber(u,{unit:"day"});case"ccc":return r.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(l,{width:"narrow",context:"standalone"});case"cccccc":return r.day(l,{width:"short",context:"standalone"});default:return r.day(l,{width:"wide",context:"standalone"})}},i:function(e,n,r){const s=e.getDay(),l=s===0?7:s;switch(n){case"i":return String(l);case"ii":return ut(l,n.length);case"io":return r.ordinalNumber(l,{unit:"day"});case"iii":return r.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(s,{width:"short",context:"formatting"});default:return r.day(s,{width:"wide",context:"formatting"})}},a:function(e,n,r){const l=e.getHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(l,{width:"narrow",context:"formatting"});default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},b:function(e,n,r){const s=e.getHours();let l;switch(s===12?l=ci.noon:s===0?l=ci.midnight:l=s/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(l,{width:"narrow",context:"formatting"});default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(e,n,r){const s=e.getHours();let l;switch(s>=17?l=ci.evening:s>=12?l=ci.afternoon:s>=4?l=ci.morning:l=ci.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(l,{width:"narrow",context:"formatting"});default:return r.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(e,n,r){if(n==="ho"){let s=e.getHours()%12;return s===0&&(s=12),r.ordinalNumber(s,{unit:"hour"})}return _r.h(e,n)},H:function(e,n,r){return n==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):_r.H(e,n)},K:function(e,n,r){const s=e.getHours()%12;return n==="Ko"?r.ordinalNumber(s,{unit:"hour"}):ut(s,n.length)},k:function(e,n,r){let s=e.getHours();return s===0&&(s=24),n==="ko"?r.ordinalNumber(s,{unit:"hour"}):ut(s,n.length)},m:function(e,n,r){return n==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):_r.m(e,n)},s:function(e,n,r){return n==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):_r.s(e,n)},S:function(e,n){return _r.S(e,n)},X:function(e,n,r){const s=e.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return r0(s);case"XXXX":case"XX":return as(s);default:return as(s,":")}},x:function(e,n,r){const s=e.getTimezoneOffset();switch(n){case"x":return r0(s);case"xxxx":case"xx":return as(s);default:return as(s,":")}},O:function(e,n,r){const s=e.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+a0(s,":");default:return"GMT"+as(s,":")}},z:function(e,n,r){const s=e.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+a0(s,":");default:return"GMT"+as(s,":")}},t:function(e,n,r){const s=Math.trunc(e.getTime()/1e3);return ut(s,n.length)},T:function(e,n,r){const s=e.getTime();return ut(s,n.length)}};function a0(e,n=""){const r=e>0?"-":"+",s=Math.abs(e),l=Math.trunc(s/60),u=s%60;return u===0?r+String(l):r+String(l)+n+ut(u,2)}function r0(e,n){return e%60===0?(e>0?"-":"+")+ut(Math.abs(e)/60,2):as(e,n)}function as(e,n=""){const r=e>0?"-":"+",s=Math.abs(e),l=ut(Math.trunc(s/60),2),u=ut(s%60,2);return r+l+n+u}const s0=(e,n)=>{switch(e){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});default:return n.date({width:"full"})}},DE=(e,n)=>{switch(e){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});default:return n.time({width:"full"})}},L5=(e,n)=>{const r=e.match(/(P+)(p+)?/)||[],s=r[1],l=r[2];if(!l)return s0(e,n);let u;switch(s){case"P":u=n.dateTime({width:"short"});break;case"PP":u=n.dateTime({width:"medium"});break;case"PPP":u=n.dateTime({width:"long"});break;default:u=n.dateTime({width:"full"});break}return u.replace("{{date}}",s0(s,n)).replace("{{time}}",DE(l,n))},P5={p:DE,P:L5},z5=/^D+$/,q5=/^Y+$/,U5=["D","DD","YY","YYYY"];function I5(e){return z5.test(e)}function V5(e){return q5.test(e)}function H5(e,n,r){const s=B5(e,n,r);if(console.warn(s),U5.includes(e))throw new RangeError(s)}function B5(e,n,r){const s=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${n}\`) for formatting ${s} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const G5=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$5=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Y5=/^'([^]*?)'?$/,K5=/''/g,Q5=/[a-zA-Z]/;function fu(e,n,r){const s=Wu(),l=s.locale??O5,u=s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,f=s.weekStartsOn??s.locale?.options?.weekStartsOn??0,h=ca(e);if(!XF(h))throw new RangeError("Invalid time value");let p=n.match($5).map(y=>{const x=y[0];if(x==="p"||x==="P"){const w=P5[x];return w(y,l.formatLong)}return y}).join("").match(G5).map(y=>{if(y==="''")return{isToken:!1,value:"'"};const x=y[0];if(x==="'")return{isToken:!1,value:Z5(y)};if(n0[x])return{isToken:!0,value:y};
53if(x.match(Q5))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return{isToken:!1,value:y}});l.localize.preprocessor&&(p=l.localize.preprocessor(h,p));const g={firstWeekContainsDate:u,weekStartsOn:f,locale:l};return p.map(y=>{if(!y.isToken)return y.value;const x=y.value;(V5(x)||I5(x))&&H5(x,n,String(e));const w=n0[x[0]];return w(h,x,l.localize,g)}).join("")}function Z5(e){const n=e.match(Y5);return n?n[1].replace(K5,"'"):e}function hu(e,n){const s=e6(e);let l;if(s.date){const p=t6(s.date,2);l=n6(p.restDateString,p.year)}if(!l||isNaN(l.getTime()))return new Date(NaN);const u=l.getTime();let f=0,h;if(s.time&&(f=a6(s.time),isNaN(f)))return new Date(NaN);if(s.timezone){if(h=r6(s.timezone),isNaN(h))return new Date(NaN)}else{const p=new Date(u+f),g=new Date(0);return g.setFullYear(p.getUTCFullYear(),p.getUTCMonth(),p.getUTCDate()),g.setHours(p.getUTCHours(),p.getUTCMinutes(),p.getUTCSeconds(),p.getUTCMilliseconds()),g}return new Date(u+f+h)}const Ic={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},X5=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,W5=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,J5=/^([+-])(\d{2})(?::?(\d{2}))?$/;function e6(e){const n={},r=e.split(Ic.dateTimeDelimiter);let s;if(r.length>2)return n;if(/:/.test(r[0])?s=r[0]:(n.date=r[0],s=r[1],Ic.timeZoneDelimiter.test(n.date)&&(n.date=e.split(Ic.timeZoneDelimiter)[0],s=e.substr(n.date.length,e.length))),s){const l=Ic.timezone.exec(s);l?(n.time=s.replace(l[1],""),n.timezone=l[1]):n.time=s}return n}
53function t6(e,n){const r=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+n)+"})|(\\d{2}|[+-]\\d{"+(2+n)+"})$)"),s=e.match(r);if(!s)return{year:NaN,restDateString:""};const l=s[1]?parseInt(s[1]):null,u=s[2]?parseInt(s[2]):null;return{year:u===null?l:u*100,restDateString:e.slice((s[1]||s[2]).length)}}function n6(e,n){if(n===null)return new Date(NaN);const r=e.match(X5);if(!r)return new Date(NaN);const s=!!r[4],l=Uo(r[1]),u=Uo(r[2])-1,f=Uo(r[3]),h=Uo(r[4]),p=Uo(r[5])-1;if(s)return c6(n,h,p)?s6(n,h,p):new Date(NaN);{const g=new Date(0);return!o6(n,u,f)||!l6(n,l)?new Date(NaN):(g.setUTCFullYear(n,u,Math.max(l,f)),g)}}function Uo(e){return e?parseInt(e):1}function a6(e){const n=e.match(W5);if(!n)return NaN;const r=Gh(n[1]),s=Gh(n[2]),l=Gh(n[3]);return u6(r,s,l)?r*OE+s*RE+l*1e3:NaN}function Gh(e){return e&&parseFloat(e.replace(",","."))||0}function r6(e){if(e==="Z")return 0;const n=e.match(J5);if(!n)return 0;const r=n[1]==="+"?-1:1,s=parseInt(n[2]),l=n[3]&&parseInt(n[3])||0;return d6(s,l)?r*(s*OE+l*RE):NaN}function s6(e,n,r){const s=new Date(0);s.setUTCFullYear(e,0,4);const l=s.getUTCDay()||7,u=(n-1)*7+r+1-l;return s.setUTCDate(s.getUTCDate()+u),s}const i6=[31,null,31,30,31,30,31,31,30,31,30,31];function FE(e){return e%400===0||e%4===0&&e%100!==0}function o6(e,n,r){return n>=0&&n<=11&&r>=1&&r<=(i6[n]||(FE(e)?29:28))}function l6(e,n){return n>=1&&n<=(FE(e)?366:365)}function c6(e,n,r){return n>=1&&n<=53&&r>=0&&r<=6}function u6(e,n,r){return e===24?n===0&&r===0:r>=0&&r<60&&n>=0&&n<60&&e>=0&&e<25}function d6(e,n){return n>=0&&n<=59}const f6=[{value:"",labelKey:"training.all_levels",icon:null},{value:"Externship",labelKey:"training.level1_filter",icon:Km},{value:"Core Skills",labelKey:"training.level2_filter",icon:Xc},{value:"Supervision",labelKey:"training.supervision_filter",icon:eR}],i0={Externship:{heading:"Level 1 â EFT Externship",headingAr:"اÙÙ
ستÙÙ 1 â Ø§ÙØªØ¯Ø±ÙØ¨ Ø§ÙØªÙ
ÙÙØ¯Ù",badge:"Level 1"},"Core Skills":{heading:"Level 2 â Core Skills",headingAr:"اÙÙ
ستÙÙ 2 â Ø§ÙÙ
ÙØ§Ø±Ø§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ©",badge:"Level 2"},Supervision:{heading:"Certification Supervision",headingAr:"Ø§ÙØ¥Ø´Ø±Ø§Ù ÙÙØ§Ø¹ØªÙ
اد",badge:"Supervision"},Other:{heading:"Other Events",headingAr:"ÙØ¹Ø§ÙÙØ§Øª أخرÙ",badge:"Event"}},h6=["Externship","Core Skills","Supervision","Other"];function m6(){const{t:e,language:n}=Ot(),[r,s]=v.useState(""),{data:l,isLoading:u}=H_({...r&&{level:r}}),f=l?.events??[],h=f.reduce((g,y)=>{const x=y.level||"Other";return g[x]||(g[x]=[]),g[x].push(y),g},{}),p=h6.filter(g=>h[g]);return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:e("training.title")}),o.jsx("p",{className:"text-lg text-muted-foreground",children:e("training.subtitle")})]})}),o.jsx("section",{className:"bg-muted/30 border-b border-border",children:o.jsx("div",{className:"container mx-auto px-4 py-12 max-w-4xl",children:o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:[o.jsx(gt,{className:"border border-border",children:o.jsxs(xt,{className:"p-6",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[o.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-primary text-primary-foreground text-sm font-bold",children:"1"}),o.jsx("h3",{className:"font-semibold",children:e("training.level1_title")})]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:e("training.level1_desc")})]})}),o.jsx(gt,{className:"border border-border",children:o.jsxs(xt,{className:"p-6",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[o.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-primary text-primary-foreground text-sm font-bold",children:"2"}),o.jsx("h3",{className:"font-semibold",children:e("training.level2_title")})]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:e("training.level2_desc")})]})}),o.jsx(gt,{className:"border border-border",children:o.jsxs(xt,{className:"p-6",children:[o.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[o.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-full bg-secondary text-secondary-foreground text-sm font-bold",children:"â
"}),o.jsx("h3",{className:"font-semibold",children:e("training.supervision_title")})]}),o.jsx("p",{className:"text-sm text-muted-foreground",children:e("training.supervision_desc")})]})})]})})}),o.jsxs("div",{className:"container mx-auto px-4 py-10 max-w-5xl",children:[o.jsx("div",{className:"flex gap-2 flex-wrap mb-8",children:f6.map(({value:g,labelKey:y,icon:x})=>o.jsxs(Ae,{variant:r===g?"default":"outline",size:"sm",onClick:()=>s(g),className:"rounded-full gap-1.5","data-testid":`filter-level-${g.toLowerCase().replace(/\s+/g,"-")||"all"}`,children:[x&&o.jsx(x,{className:"h-3.5 w-3.5"}),e(y)]},y))}),u?o.jsx("div",{className:"space-y-4",children:Array.from({length:4}).map((g,y)=>o.jsx(ln,{className:"h-32 rounded-xl"},y))}):f.length===0?o.jsx("div",{className:"text-center py-20",children:o.jsx("p",{className:"text-muted-foreground text-lg",children:e("training.no_events")})}):o.jsx("div",{className:"space-y-12",children:p.map(g=>{const y=h[g],x=i0[g]??i0.Other,w=n==="ar"?x.headingAr:x.heading;return o.jsxs("section",{children:[o.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[o.jsx("h2",{className:"font-serif text-2xl font-semibold whitespace-nowrap",children:w}),o.jsx("div",{className:"h-px flex-1 bg-border"}),o.jsxs(Rt,{variant:"secondary",className:"shrink-0",children:[y.length," ",n==="ar"?"ÙØ¹Ø§ÙÙØ©":"event"+(y.length!==1?"s":"")]})]}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:y.map(E=>o.jsx(gt,{"data-testid":`card-event-${E.id}`,className:"border border-border hover:shadow-md transition-shadow",children:o.jsxs(xt,{className:"p-6",children:[o.jsxs("div",{className:"flex items-start justify-between gap-4 mb-4",children:[o.jsx("h3",{className:"font-semibold text-foreground leading-snug","data-testid":`text-event-title-${E.id}`,children:E.title}),o.jsx(Rt,{variant:"outline",className:"shrink-0",children:x.badge})]}),o.jsxs("div",{className:"space-y-2 text-sm text-muted-foreground mb-4",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(sA,{className:"h-3.5 w-3.5 shrink-0"}),o.jsxs("span",{children:[fu(hu(E.startDate),"MMM d")," â ",fu(hu(E.endDate),"MMM d, yyyy")]})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(rR,{className:"h-3.5 w-3.5 shrink-0"}),o.jsx("span",{children:E.trainerName})]}),E.location&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Zm,{className:"h-3.5 w-3.5 shrink-0"}),o.jsx("span",{children:E.location})]}),E.cmeHours&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(A
53w,{className:"h-3.5 w-3.5 shrink-0"}),o.jsxs("span",{children:[E.cmeHours," ",e("training.cme_hours"),E.cmeBody?` (${E.cmeBody})`:""]})]})]}),o.jsxs("div",{className:"flex items-center justify-between pt-4 border-t border-border",children:[o.jsx("span",{className:"text-xs text-muted-foreground",children:E.language}),o.jsx("a",{href:E.registrationLink,target:"_blank",rel:"noopener noreferrer",children:o.jsxs(Ae,{size:"sm",className:"gap-1.5","data-testid":`button-register-${E.id}`,children:[e("training.register")," ",o.jsx(Rw,{className:"h-3.5 w-3.5"})]})})]})]})},E.id))})]},g)})})]})]})}function p6(){const{t:e,language:n}=Ot(),r=n==="ar"?[{icon:Jc,title:"Ø§ÙØªØÙÙ Ù
Ù Ø§ÙØªØ±Ø®Ùص",desc:"ÙØ¬Ø¨ عÙ٠جÙ
ÙØ¹ اÙÙ
Ø¹Ø§ÙØ¬ÙÙ Ù٠دÙÙÙ GCCEFT Ø£Ù ÙØÙ
ÙÙØ§ ØªØ±Ø®ÙØµØ§Ù Ù
ÙÙÙØ§Ù ØµØ§ÙØØ§Ù Ù
Ù Ø¬ÙØ© صØÙØ© Ù
Ø¹ØªØ±Ù Ø¨ÙØ§ ÙÙ Ø¨ÙØ¯ Ù
Ù
ارستÙÙ
. ØªÙØ¹Ø±Ø¶ Ø£Ø±ÙØ§Ù
Ø§ÙØªØ±Ø§Ø®Ùص ÙØ¬Ùات Ø§ÙØ¥ØµØ¯Ø§Ø± ÙÙ ÙÙ Ù
Ù٠شخصÙ."},{icon:Xc,title:"Ø§ÙØªØ¯Ø±Ùب عÙÙ EFT",desc:"ÙØ¬Ø¨ عÙ٠اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
درجÙ٠أ٠ÙÙÙÙÙØ§ ÙØ¯ أتÙ
ÙØ§ عÙÙ Ø§ÙØ£ÙÙ ØªØ¯Ø±ÙØ¨Ø§Ù تÙ
ÙÙØ¯Ùا٠Ù
Ø¹ØªØ±ÙØ§Ù ب٠Ù
Ù ICEEFT ÙÙ EFT. ØªØªØ·ÙØ¨ اÙÙÙØ§Ø¦Ù
اÙÙ
ØªÙØ¯Ù
Ø© ØªØ¯Ø±ÙØ¨ اÙÙ
ÙØ§Ø±Ø§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ© Ø£Ù Ø§ÙØØµÙ٠عÙÙ Ù
ستÙÙ Ø§ÙØ§Ø¹ØªÙ
اد."},{icon:vi,title:"Ø§ÙØ¥Ø´Ø±Ø§Ù",desc:"ÙØ´Ø¬Ø¹ GCCEFT عÙÙ Ø§ÙØ¥Ø´Ø±Ø§Ù Ø§ÙØ³Ø±Ùر٠اÙÙ
ستÙ
ر Ø¨Ø§Ø¹ØªØ¨Ø§Ø±Ù Ø¹ÙØµØ±Ø§Ù Ø£Ø³Ø§Ø³ÙØ§Ù ÙÙ Ø§ÙØªØ·ÙÙØ± اÙÙ
ÙÙÙ. ÙÙØ·Ùب Ù
٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ Ø§ÙØ³Ø§Ø¹Ù٠إÙÙ Ù
ستÙÙØ§Øª اعتÙ
اد أعÙ٠إثبات ساعات Ø³Ø±ÙØ±ÙØ© خاضعة ÙÙØ¥Ø´Ø±Ø§Ù."},{icon:sm,title:"Ø§ÙØªØ·ÙÙØ± اÙÙ
ستÙ
ر",desc:"ÙÙØªÙÙØ¹ Ù
٠اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
Ø´Ø§Ø±ÙØ© ÙÙ Ø§ÙØªØ·ÙÙØ± اÙÙ
ÙÙ٠اÙÙ
ستÙ
ر ÙÙÙØ§Ù ÙÙ
عاÙÙØ± ÙÙØ¦ØªÙÙ
Ø§ÙØªÙظÙÙ
ÙØ© اÙÙØ·ÙÙØ©."}]:[{icon:Jc,title:"License Verification",desc:"All therapists in the GCCEFT directory must hold a valid professional license from a recognized health authority in their country of practice. License numbers and issuing authorities are displayed on every profile."},{icon:Xc,title:"EFT Training",desc:"Listed therapists must have completed at minimum an ICEEFT-recognized Externship in EFT. Advanced listings require Core Skills Training or certified status."},{icon:vi,title:"Supervision",desc:"GCCEFT encourages ongoing clinical supervision as a core element of professional development. Therapists seeking higher certification levels are required to demonstrate supervised clinical hours."},{icon:sm,title:"Continuing Development",desc:"Therapists are expected to engage in continuing professional development consistent with the standards of their national regulatory body."}],s=n==="ar"?[{level:"Ø§ÙØªØ¯Ø±Ùب Ø§ÙØªÙ
ÙÙØ¯Ù (Externship)",desc:"Ù
ÙØ¯Ù
Ø© Ù
ÙØ«ÙØ© ÙÙ
دة 4 Ø£ÙØ§Ù
ÙÙØ¸Ø±ÙØ© ÙÙ
Ù
ارسة EFT. ÙÙØ·Ø© Ø§ÙØ¯Ø®ÙÙ ÙØ¬Ù
ÙØ¹ اÙÙ
Ø¹Ø§ÙØ¬Ù٠اÙÙ
تعÙÙ
ÙÙ ÙÙ EFT."},{level:"ØªØ¯Ø±ÙØ¨ اÙÙ
ÙØ§Ø±Ø§Øª Ø§ÙØ£Ø³Ø§Ø³ÙØ©",desc:"ØªØ¯Ø±ÙØ¨ Ù
ØªÙØ¯Ù
Ù٠تÙÙÙØ§Øª EFT Ù
Ù Ø®ÙØ§Ù اÙÙ
Ù
ارسة Ø§ÙØ®Ø§Ø¶Ø¹Ø© ÙÙØ¥Ø´Ø±Ø§Ù ÙØ§ÙتعÙÙ
Ø§ÙØ¬Ù
اعÙ. عادة٠8â12 ÙÙÙ
ا٠Ù
Ù Ø§ÙØªØ¯Ø±Ùب."},{level:"Ù
عتÙ
د Ù
Ù ICEEFT",desc:"إتÙ
اÙ
Ø¨Ø±ÙØ§Ù
ج اعتÙ
اد Ù
ÙØ¸Ù
ÙØ´Ù
Ù ØØ§Ùات خاضعة ÙÙØ¥Ø´Ø±Ø§Ù ÙÙ
راجعة ÙÙØ¯ÙÙ ÙØªÙÙÙÙ
ا٠Ù
ÙØªÙباÙ."},{level:"Ù
شر٠Ù
عتÙ
د",desc:"Ù
Ø®ÙÙÙ ÙÙØ¥Ø´Ø±Ø§Ù عÙ٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ Ø§ÙØ³Ø§Ø¹Ù٠إÙÙ Ø§ÙØ§Ø¹ØªÙ
اد. ÙØªØ·Ùب خبرة Ø³Ø±ÙØ±ÙØ© ÙØ¥Ø´Ø±Ø§ÙÙØ© ÙØ§Ø³Ø¹Ø©."},{level:"Ù
درب Ù
عتÙ
د",desc:"Ù
Ø®ÙÙÙ ÙØªÙدÙÙ
ØªØ¯Ø±ÙØ¨ EFT اÙÙ
عتر٠ب٠Ù
Ù ICEEFT. أعÙÙ Ù
ستÙÙ Ù
Ù Ø§ÙØ§Ø¹ØªØ±Ø§Ù ÙÙ Ù
جتÙ
ع EFT."}]:[{level:"Externship",desc:"A 4-day intensive introduction to EFT theory and practice. The entry point for all therapists learning EFT."},{level:"Core Skills Training",desc:"Advanced training in EFT techniques through supervised practice and group learning. Typically 8â12 days of training."}
53,{level:"ICEEFT Certified",desc:"Completion of a structured certification program including supervised cases, video review, and written assessment."},{level:"Certified Supervisor",desc:"Authorized to supervise therapists seeking certification. Requires extensive clinical and supervisory experience."},{level:"Certified Trainer",desc:"Authorized to deliver ICEEFT-recognized EFT training. The highest level of recognition in the EFT community."}],l=n==="ar"?["ØÙ
Ù ØªØ±Ø®ÙØµ Ù
ÙÙÙ ØµØ§ÙØ ÙÙ Ø¨ÙØ¯ اÙÙ
Ù
ارسة","إتÙ
اÙ
ØªØ¯Ø±ÙØ¨ تÙ
ÙÙØ¯Ù ÙÙ EFT عÙÙ Ø§ÙØ£ÙÙ","اÙÙ
ÙØ§ÙÙØ© عÙÙ Ù
ÙØ«Ø§Ù Ø£Ø®ÙØ§ÙÙØ§Øª GCCEFT اÙÙ
ÙÙÙØ©","ØªÙØ¯ÙÙ
Ù
عÙÙÙ
ات Ù
Ù٠شخص٠دÙÙÙØ© ÙÙØ§Ù
ÙØ©","إخطار GCCEFT بأ٠تغÙÙØ±Ø§Øª ÙÙ ØØ§ÙØ© Ø§ÙØªØ±Ø®Ùص"]:["Hold a valid professional license in their country of practice","Have completed at minimum an EFT Externship","Agree to GCCEFT's professional code of conduct","Submit accurate and complete profile information","Notify GCCEFT of any changes to their licensure status"];return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:n==="ar"?"Ø§ÙØ§Ø¹ØªÙ
اد ÙØ§ÙÙ
عاÙÙØ±":"Certification & Standards"}),o.jsx("p",{className:"text-lg text-muted-foreground",children:n==="ar"?"GCCEFT Ù
ÙØªØ²Ù
بأعÙÙ Ù
عاÙÙØ± Ø§ÙØªØ¯Ø±Ùب Ø§ÙØ³Ø±ÙØ±Ù ÙØ§ÙÙ
Ù
ارسة اÙÙ
ÙÙÙØ© ÙÙ Ù
ÙØ·ÙØ© Ø§ÙØ®ÙÙØ¬.":"GCCEFT is committed to the highest standards of clinical training and professional practice in the GCC region."})]})}),o.jsx("section",{className:"py-16 bg-background",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-4xl space-y-16",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-6",children:n==="ar"?"Ù
عاÙÙØ± Ø§ÙØ¬Ùدة ÙØ¯ÙÙØ§":"Our Quality Standards"}),o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:r.map(u=>o.jsx(gt,{className:"border border-border",children:o.jsxs(xt,{className:"p-6 flex gap-4",children:[o.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:o.jsx(u.icon,{className:"h-6 w-6 text-primary-on"})}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold mb-2",children:u.title}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:u.desc})]})]})},u.title))})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-6",children:n==="ar"?"Ù
سار اعتÙ
اد ICEEFT":"ICEEFT Certification Pathway"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mb-6",children:n==="ar"?"ÙØ¶Ø¹ اÙÙ
Ø±ÙØ² Ø§ÙØ¯ÙÙÙ ÙÙØªÙ
ÙØ² ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر (ICEEFT)Ø Ø§ÙØ°Ù Ø£Ø³Ø³ØªÙ Ø§ÙØ¯ÙØªÙØ±Ø© س٠جÙÙØ³ÙÙØ اÙÙ
Ø¹ÙØ§Ø± Ø§ÙØ¹Ø§ÙÙ
Ù ÙØªØ¯Ø±Ùب EFT. ÙØªÙاÙÙ GCCEFT Ù
ع Ù
سار اعتÙ
اد ICEEFT:":"The International Centre for Excellence in Emotionally Focused Therapy (ICEEFT), founded by Dr. Sue Johnson, sets the global standard for EFT training. GCCEFT aligns with the ICEEFT certification pathway:"}),o.jsx("div",{className:"space-y-4",children:s.map((u,f)=>o.jsxs("div",{className:"flex gap-4 p-5 rounded-xl bg-card border border-border",children:[o.jsx("div",{className:"text-primary-on font-bold text-sm w-6 shrink-0",children:f+1}),o.jsxs("div",{children:[o.jsx("h3",{className:"font-semibold mb-1",children:u.level}),o.jsx("p",{className:"text-sm text-muted-foreground",children:u.desc})]})]},u.level))})]}),o.jsxs("div",{className:"p-8 rounded-2xl bg-muted border border-border",children:[o.jsx("h2",{className:"font-serif text-xl font-bold mb-3",children:n==="ar"?"Ø´Ø±ÙØ· Ø§ÙØ¥Ø¯Ø±Ø§Ø¬ ÙÙ Ø§ÙØ¯ÙÙÙ":"Directory Eligibility"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"ÙÙØ¥Ø¯Ø±Ø§Ø¬ Ù٠دÙÙÙ GCCEFTØ ÙØ¬Ø¨ عÙ٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ:":"To be listed in the GCCEFT directory, therapists must:"}),o.jsx("ul",{className:"mt-4 space-y-2 text-sm text-muted-foreground",children:l.map((u,f)=>o.jsxs("li",{className:"flex gap-2",children:[o.jsx("span",{className:"text-primary-on",children:"â¢"})," ",u]},f))})]})]})}),o.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:o.jsxs("div",{className:"container mx-auto px-4 text-center",children:[o.jsx("h2",{className:"font-serif text-3xl font-bold mb-4",children:n==="ar"?"Ø§ÙØ¶Ù
Ø¥ÙÙ Ø§ÙØ¯ÙÙÙ":"Join the Directory"}),o.jsx("p",{className:"text-primary-foreground mb-8",children:n==="ar"?"ÙÙ
ÙÙ ÙÙÙ
ÙÙÙÙ٠اÙÙ
رخصÙ٠اÙÙ
دربÙ٠عÙÙ EFT Ø§ÙØªÙدÙ
ÙÙØ§ÙضÙ
اÙ
Ø¥Ù٠دÙÙÙ GCCEFT.":"Licensed EFT-trained professionals can a
53pply to join the GCCEFT directory."}),o.jsx(Ie,{href:"/join-directory",children:o.jsx(Ae,{variant:"secondary",size:"lg",className:"rounded-full px-8",children:n==="ar"?"ØªÙØ¯ÙÙ
Ø§ÙØ¢Ù":"Apply Now"})})]})})]})}const g6=["Public","Professional"],y6=["Article","Book","Video","Podcast","Clinical Handout"],v6=["English","Arabic","Both"];function x6({type:e}){switch(e){case"Video":return o.jsx(iR,{className:"h-4 w-4"});case"Podcast":return o.jsx(AA,{className:"h-4 w-4"});case"Book":return o.jsx(nA,{className:"h-4 w-4"});case"Clinical Handout":return o.jsx(SA,{className:"h-4 w-4"});default:return o.jsx(Km,{className:"h-4 w-4"})}}function b6(){const{t:e,language:n}=Ot(),[r,s]=v.useState(""),[l,u]=v.useState(""),[f,h]=v.useState(""),{data:p,isLoading:g}=B_({...r&&{audience:r},...l&&{type:l},...f&&{language:f}}),y=p?.resources??[];return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:e("resources.title")}),o.jsx("p",{className:"text-lg text-muted-foreground",children:e("resources.subtitle")})]})}),o.jsxs("div",{className:"container mx-auto px-4 py-10",children:[o.jsxs("div",{className:"flex flex-wrap gap-6 mb-8",children:[o.jsxs("div",{children:[o.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:e("resources.filter_audience")}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx(Ae,{variant:r===""?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>s(""),children:e("resources.all")}),g6.map(x=>o.jsx(Ae,{variant:r===x?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>s(x),"data-testid":`filter-audience-${x.toLowerCase()}`,children:e(x==="Public"?"resources.public":"resources.professional")},x))]})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:e("resources.filter_type")}),o.jsxs("div",{className:"flex flex-wrap gap-2",children:[o.jsx(Ae,{variant:l===""?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>u(""),children:e("resources.all")}),y6.map(x=>o.jsx(Ae,{variant:l===x?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>u(x),"data-testid":`filter-type-${x.toLowerCase()}`,children:x},x))]})]}),o.jsxs("div",{children:[o.jsx("p",{className:"text-xs font-medium text-muted-foreground uppercase tracking-wide mb-2",children:e("filter.language")}),o.jsxs("div",{className:"flex gap-2",children:[o.jsx(Ae,{variant:f===""?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>h(""),children:e("resources.all")}),v6.map(x=>o.jsx(Ae,{variant:f===x?"default":"outline",size:"sm",className:"rounded-full",onClick:()=>h(x),"data-testid":`filter-lang-${x.toLowerCase()}`,children:x},x))]})]})]}),g?o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:Array.from({length:6}).map((x,w)=>o.jsx(ln,{className:"h-48 rounded-xl"},w))}):y.length===0?o.jsx("div",{className:"text-center py-20",children:o.jsx("p",{className:"text-muted-foreground text-lg",children:e("dir.no_results")})}):o.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:y.map(x=>o.jsx(gt,{"data-testid":`card-resource-${x.id}`,className:"border border-border hover:shadow-md transition-shadow flex flex-col",children:o.jsxs(xt,{className:"p-6 flex flex-col h-full",children:[o.jsxs("div",{className:"flex items-start gap-3 mb-3",children:[o.jsx("div",{className:"h-9 w-9 rounded-lg bg-primary/10 text-primary-on flex items-center justify-center shrink-0",children:o.jsx(x6,{type:x.type})}),o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsxs("div",{className:"flex flex-wrap gap-1.5 mb-2",children:[o.jsx(Rt,{variant:"secondary",className:"text-xs",children:x.type}),o.jsx(Rt,{variant:"outline",className:"text-xs",children:x.audience})]}),o.jsx("h3",{className:"font-semibold text-sm leading-snug","data-testid":`text-resource-title-${x.id}`,children:n==="ar"&&x.titleAr?x.titleAr:x.titleEn})]})]}),x.summary&&o.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed line-clamp-3 flex-1",children:x.summary}),o.jsxs("div",{className:"mt-4 pt-4 border-t border-border flex items-center justify-between",children:[o.jsx("span",{className:"text-xs text-muted-foreground",children:x.language}),x.accessLink&&o.jsx("a",{href:x.accessLink,target:"_blank",rel:"noopener noreferrer",children:o.jsxs(Ae,{variant:"ghost",size:"sm",className:"gap-1.5 h-7 text-xs","data-testid":`button-resource-link-${x.id}`,children:[e("resources.access")," ",o.jsx(Rw,{className:"h-3 w-3"})]})})]})]})},x.id))})]})]})}const w6=[{area:"Couples",title:"EFT for Couples: Effectiveness in Relationship Distress",finding:"Research consistently shows that 70â75% of couples recover from distress after EFT treatment, with the majority maintaining gains at 2-year follow-up.",detail:"Johnson, S.M., Hunsley, J., Greenberg, L., & Schindler, D. (1999). Emotionally focused couples therapy: Status and challenges. Clinical Psychology: Science and Practice."},{area:"Trauma",title:"EFT and Trauma Recovery",finding:"EFT has demonstrated significant effectiveness in treating post-traumatic stress in survivors of trauma, particularly in the context of interpersonal violence.",detail:"Johnson, S.M. (2002). Emotionally Focused Couple Therapy with Trauma Survivors: Strengthening Attachment Bonds. Guilford Press."},{area:"Individuals",title:"EFIT for Depression and Anxiety",finding:"EFIT has shown meaningful reductions in depression and anxiety symptoms across clinical samples, with outcomes comparable to other evidence-informed modalities.",detail:"Furrow, J.L., Johnson, S.M., Bradley, B., & Amodeo, J. (2011). Emotionally Focused Family Therapy. Guilford Press."},{area:"Families",title:"EFFT and Parent-Child Bonds",finding:"EFFT has been found to improve parental emotional accessibility and children's attachment security, with downstream benefits for behavioral and emotional functioning.",detail:"Lafrance Robinson, A., Dolhanty, J., & Greenberg, L. (2015). Emotion-focused family therapy for eating disorders. Clinical Psychology & Psychotherapy."},{area:"Attachment",title:"Neurobiological Foundations of Attachment and EFT",finding:"Neuroscience research supports the attachment framework underlying EFT. Secure attachment relationships buffer the stress response system and promote emotional regulation.",detail:"Johnson, S.M. (2019). Attachment Theory in Practice: Emotionally Focused Therapy (EFT) with Indiv
53iduals, Couples, and Families. Guilford Press."}],j6=[{area:"Ø§ÙØ£Ø²Ùاج",title:"EFT ÙÙØ£Ø²Ùاج: اÙÙØ¹Ø§ÙÙØ© ÙÙ Ø¶Ø§Ø¦ÙØ© Ø§ÙØ¹ÙØ§ÙØ§Øª",finding:"ØªÙØ¸Ùر Ø§ÙØ£Ø¨ØØ§Ø« باستÙ
رار Ø£Ù 70â75Ùª Ù
Ù Ø§ÙØ£Ø²Ùاج ÙØªØ¹Ø§ÙÙÙ Ù
Ù Ø§ÙØ¶Ø§Ø¦ÙØ© بعد Ø¹ÙØ§Ø¬ EFTØ Ù
ع Ø§ØØªÙاظ Ø§ÙØ£ØºÙØ¨ÙØ© بÙ
ÙØªØ³Ø¨Ø§ØªÙÙ
ÙÙ Ù
تابعة ÙÙ
دة عاÙ
ÙÙ.",detail:"Johnson, S.M., Hunsley, J., Greenberg, L., & Schindler, D. (1999). Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙØ£Ø²Ùاج: اÙÙØ¶Ø¹ ÙØ§ÙØªØØ¯Ùات. عÙÙ
اÙÙÙØ³ Ø§ÙØ³Ø±ÙرÙ: Ø§ÙØ¹ÙÙ
ÙØ§ÙÙ
Ù
ارسة."},{area:"Ø§ÙØµØ¯Ù
Ø©",title:"EFT ÙØ§ÙتعاÙÙ Ù
Ù Ø§ÙØµØ¯Ù
Ø©",finding:"أثبت EFT ÙØ¹Ø§ÙÙØ© ÙØ¨Ùرة ÙÙ Ø¹ÙØ§Ø¬ اضطراب Ù
ا بعد Ø§ÙØµØ¯Ù
Ø© ÙØ¯Ù اÙÙØ§Ø¬ÙÙ Ù
Ù Ø§ÙØµØ¯Ù
Ø§ØªØ ÙÙØ§ سÙÙ
ا ÙÙ Ø³ÙØ§Ù Ø§ÙØ¹Ù٠بÙÙ Ø§ÙØ£Ø´Ø®Ø§Øµ.",detail:"Johnson, S.M. (2002). Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙØ£Ø²Ùاج Ù
ع اÙÙØ§Ø¬ÙÙ Ù
Ù Ø§ÙØµØ¯Ù
ات: ØªØ¹Ø²ÙØ² Ø±ÙØ§Ø¨Ø· Ø§ÙØªØ¹ÙÙ. Ù
ÙØ´Ùرات Guilford."},{area:"Ø§ÙØ£Ùراد",title:"EFIT ÙÙØ§Ùتئاب ÙØ§ÙÙÙÙ",finding:"Ø£Ø¸ÙØ± EFIT Ø§ÙØ®Ùاضات Ù
ÙÙ
ÙØ³Ø© Ù٠أعراض Ø§ÙØ§Ùتئاب ÙØ§ÙÙÙ٠عبر Ø§ÙØ¹ÙÙØ§Øª Ø§ÙØ³Ø±ÙØ±ÙØ©Ø Ù
ع ÙØªØ§Ø¦Ø¬ Ù
Ù
Ø§Ø«ÙØ© ÙØ·Ø±Ø§Ø¦Ù Ø£Ø®Ø±Ù ÙØ§Ø¦Ù
Ø© عÙÙ Ø§ÙØ£Ø¯ÙØ©.",detail:"Furrow, J.L., Johnson, S.M., Bradley, B., & Amodeo, J. (2011). Ø§ÙØ¹Ùاج Ø§ÙØ£Ø³Ø±Ù اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر. Ù
ÙØ´Ùرات Guilford."},{area:"Ø§ÙØ¹Ø§Ø¦Ùات",title:"EFFT ÙØ±Ùابط اÙÙØ§ÙدÙÙ ÙØ§ÙØ·ÙÙ",finding:"ÙÙØ¬Ø¯ Ø£Ù EFFT ÙØØ³Ù٠إÙ
ÙØ§ÙÙØ© اÙÙØµÙÙ Ø§ÙØ¹Ø§Ø·ÙÙ ÙÙÙØ§ÙدÙÙ ÙØ£Ù
Ø§Ù Ø§ÙØªØ¹ÙÙ Ø¹ÙØ¯ Ø§ÙØ£Ø·ÙØ§ÙØ Ù
ع ÙÙØ§Ø¦Ø¯ ÙØ§ØÙØ© ÙÙÙØ¸Ø§Ø¦Ù Ø§ÙØ³ÙÙÙÙØ© ÙØ§ÙعاطÙÙØ©.",detail:"Lafrance Robinson, A., Dolhanty, J., & Greenberg, L. (2015). Ø§ÙØ¹Ùاج Ø§ÙØ£Ø³Ø±Ù اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙØ§Ø¶Ø·Ø±Ø§Ø¨Ø§Øª Ø§ÙØ£ÙÙ. عÙÙ
اÙÙÙØ³ Ø§ÙØ³Ø±ÙØ±Ù ÙØ§ÙØ¹ÙØ§Ø¬ اÙÙÙØ³Ù."},{area:"Ø§ÙØªØ¹ÙÙ",title:"Ø§ÙØ£Ø³Ø³ Ø§ÙØ¹ØµØ¨ÙØ© Ø§ÙØ¨ÙÙÙÙØ¬ÙØ© ÙÙØªØ¹ÙÙ Ù EFT",finding:"تدعÙ
Ø£Ø¨ØØ§Ø« عÙÙ
Ø§ÙØ£Ø¹ØµØ§Ø¨ إطار Ø§ÙØªØ¹Ù٠اÙÙØ§Ù
Ù ÙØ±Ø§Ø¡ EFT. ØªØØ¬Ø¨ Ø¹ÙØ§Ùات Ø§ÙØªØ¹ÙÙ Ø§ÙØ¢Ù
Ù ÙØ¸Ø§Ù
استجابة Ø§ÙØ¥Ø¬Ùاد ÙØªØ¹Ø²Ø² Ø§ÙØªÙظÙÙ
Ø§ÙØ¹Ø§Ø·ÙÙ.",detail:"Johnson, S.M. (2019). ÙØ¸Ø±ÙØ© Ø§ÙØªØ¹ÙÙ Ù٠اÙÙ
Ù
ارسة: Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر Ù
ع Ø§ÙØ£Ùراد ÙØ§ÙØ£Ø²ÙØ§Ø¬ ÙØ§ÙØ¹Ø§Ø¦ÙØ§Øª. Ù
ÙØ´Ùرات Guilford."}];function _6(){const{t:e,language:n}=Ot(),r=n==="ar"?j6:w6;return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:e("research.title")}),o.jsx("p",{className:"text-lg text-muted-foreground",children:e("research.subtitle")})]})}),o.jsx("section",{className:"py-16 bg-background",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-4xl",children:[o.jsxs("div",{className:"mb-12",children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"ÙÙ
اذا تÙÙ
Ø§ÙØ£Ø¯ÙØ©":"Why Evidence Matters"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"Ø¹ÙØ¯ Ø§ÙØ³Ø¹Ù ÙÙØØµÙ٠عÙ٠دعÙ
Ø§ÙØµØØ© اÙÙÙØ³ÙØ©Ø Ù
٠اÙÙ
عÙÙÙ Ø£Ù ÙØ³Ø£Ù: ÙÙ ÙÙØ¬Ø ÙØ°Ø§ اÙÙÙØ¬ ÙØ¹ÙØ§ÙØ GCCEFT Ù
ÙØªØ²Ù
Ø¨ØªØ¹Ø²ÙØ² Ø§ÙØ¹Ùاجات ذات Ø§ÙØ£Ø³Ø§Ø³ Ø§ÙØ¹ÙÙ
Ù Ø§ÙØ±Ø§Ø³Ø®. تÙ
ت دراسة EFT ÙÙ Ø£ÙØ«Ø± Ù
Ù 30 تجربة Ø³Ø±ÙØ±ÙØ© Ø¹Ø´ÙØ§Ø¦ÙØ© ÙØ¹Ø¨Ø± Ù
جÙ
ÙØ¹Ø§Øª Ø³ÙØ§ÙÙØ© Ù
تÙÙØ¹Ø© ØÙÙ Ø§ÙØ¹Ø§ÙÙ
.":"When seeking mental health support, it is reasonable to ask: does this approach actually work? GCCEFT is committed to promoting therapies with a strong scientific foundation. EFT has been studied in over 30 randomized clinical trials and across diverse populations worldwide."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-4",children:n==="ar"?"ÙØ³ØªØ®Ø¯Ù
عبارة 'ÙØ§Ø¦Ù
عÙÙ Ø§ÙØ£Ø¯ÙØ©' ÙØ£Ù ÙØ§ Ø¹ÙØ§Ø¬ ÙÙØ¬Ø Ù
ع Ø§ÙØ¬Ù
ÙØ¹ Ø¨Ø§ÙØ·Ø±ÙÙØ© Ø°Ø§ØªÙØ§. ØªÙØ±Ø´Ø¯ Ø§ÙØ£Ø¯ÙØ© Ø«ÙØªÙا Ù٠أ٠EFT ÙÙØ·Ø© Ø¨Ø¯Ø§ÙØ© ÙØ¹Ø§ÙØ© â ÙÙÙØ³Øª ضÙ
Ø§ÙØ§Ù ÙØ£Ù ÙØªÙجة بعÙÙÙØ§.":'We use the phrase "evidence-informed" because no therapy works for everyone in the same way. The evidence guides our confidence that EFT is an effective starting point â not a guarantee of any specific outcome.'})]}),o.jsx("div",{className:"space-y-6",children:r.map((s,l)=>o.jsx("div",{className:"p-6 rounded-xl bg-card border border-border",children:o.jsxs("div",{className:"flex items-start gap-4",children:[o.jsx(Rt,{variant:"secondary",className:"shrink-0 mt-0.5",children:s.area}),o.jsxs("div",{className:"flex-1",children:[o.jsx("h3",{className:"font-semibold mb-3",children:s.title}),o.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed mb-3",children:s.finding}),o.jsx("p",{className:"text-xs text-muted-foreground italic",children:s.detail})]})]})},l))}),o.jsxs("div",{className:"mt-12 p-8 rounded-2xl bg-muted border border-border",children:[o.jsx("h2",{className:"font-serif text-xl font-bold mb-3",children:n==="ar"?"Ù
ÙØ§ØØ¸Ø© ØÙÙ Ø§ÙØ£Ø¯ÙØ©":"A Note on Evidence"}),o.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:n==="ar"?"ÙØ³ØªØ®Ø¯Ù
GCCEFT Ù
ÙØ®ØµØ§Øª ÙØ³Ù٠اÙÙØµÙ٠إÙÙÙØ§ ÙÙØªØ§Ø¦Ø¬ Ø§ÙØ£Ø¨ØØ§Ø« ÙÙ
ساعدة Ø§ÙØ¬Ù
ÙÙØ± عÙÙ ÙÙÙ
Ù
ا ÙÙ Ù
عرÙ٠ع٠EFT. ÙØ§ ØªÙØ´ÙÙÙ ÙØ°Ù اÙÙ
ÙØ®ØµØ§Øª Ù
53ØµÙØØ© Ø·Ø¨ÙØ©. ÙÙØ§Ø·Ùاع عÙÙ Ù
راجعة شاÙ
ÙØ© ÙØ£Ø¨ØØ§Ø« EFTØ ÙÙØµÙ بÙ
ÙÙØ¹ ICEEFT عÙÙ iceeft.com ÙØ£Ø¹Ù
ا٠س٠جÙÙØ³Ù٠اÙÙ
ÙØ´Ùرة. ÙØ¯ ØªØªÙØ§Ùت اÙÙØªØ§Ø¦Ø¬ اÙÙØ±Ø¯ÙØ©.":"GCCEFT uses accessible summaries of research findings to help the public understand what is known about EFT. These summaries do not constitute medical advice. For a comprehensive review of EFT research, we recommend the ICEEFT website at iceeft.com and Sue Johnson's published works. Individual outcomes may vary."})]})]})}),o.jsx("section",{className:"py-16 bg-primary text-primary-foreground",children:o.jsxs("div",{className:"container mx-auto px-4 text-center",children:[o.jsx("h2",{className:"font-serif text-3xl font-bold mb-4",children:n==="ar"?"Ø§Ø³ØªÙØ´Ù اÙÙ
Ø²ÙØ¯ Ù
٠اÙÙ
صادر":"Explore More Resources"}),o.jsx("p",{className:"text-primary-foreground mb-8",children:n==="ar"?"اÙÙØµÙ٠إÙ٠اÙÙ
ÙØ§Ùات ÙØ§ÙÙØªØ¨ ÙØ§ÙØ£Ø¨ØØ§Ø« ÙÙÙ
ÙÙÙÙÙ ÙØ§ÙعÙ
ÙÙ
.":"Access articles, books, and research for professionals and the public."}),o.jsx(Ie,{href:"/resources",children:o.jsx(Ae,{variant:"secondary",size:"lg",className:"rounded-full px-8",children:n==="ar"?"Ø²ÙØ§Ø±Ø© اÙÙ
ÙØªØ¨Ø©":"Visit the Library"})})]})})]})}function E6(){const{t:e,language:n}=Ot();return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("img",{src:"/logo.png",alt:"GCCEFT",className:"h-24 w-auto mx-auto mb-8"}),o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:e("about.title")}),o.jsx("p",{className:"text-lg text-muted-foreground leading-relaxed",children:n==="ar"?"ÙØÙ Ù
ÙØ¸Ù
Ø© Ù
ÙÙÙØ© Ù
ÙØ±Ø³Ø© ÙØªØ¹Ø²Ùز Ù
Ù
ارسة Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر ÙÙ Ù
ÙØ·ÙØ© Ù
Ø¬ÙØ³ Ø§ÙØªØ¹Ø§ÙÙ Ø§ÙØ®ÙÙØ¬Ù.":"We are a professional organization dedicated to advancing the practice of Emotionally Focused Therapy in the Gulf Cooperation Council region."})]})}),o.jsx("section",{className:"py-16 bg-background",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-4xl space-y-16",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-10",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:e("about.mission")}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:e("about.mission_desc")})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-4",children:n==="ar"?"Ø±Ø¤ÙØªÙا":"Our Vision"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"Ù
ÙØ·ÙØ© Ø®ÙÙØ¬ÙØ© ØªÙØ¹ØªØ±Ù ÙÙÙØ§ Ø¨Ø§ÙØ±Ùابط Ø§ÙØ¹Ø§Ø·ÙÙØ© Ø§ÙØ¢Ù
ÙØ© Ø¨Ø§Ø¹ØªØ¨Ø§Ø±ÙØ§ أساس Ø§ÙØ§Ø²Ø¯Ùار Ø§ÙØ¥ÙساÙÙ â ÙØÙØ« ÙØªÙ
تع Ù٠شخص بإÙ
ÙØ§ÙÙØ© اÙÙØµÙ٠إÙÙ Ø§ÙØ±Ø¹Ø§ÙØ© Ø§ÙØªÙ تساعد٠عÙÙ Ø¨ÙØ§Ø¡ تÙÙ Ø§ÙØ±Ùابط.":"A Gulf region where secure emotional bonds are recognized as the foundation of human flourishing â and where every person has access to the care that can help them build those bonds."})]})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-6",children:n==="ar"?"Ø§ÙØ§Ùتساب Ø¥ÙÙ ICEEFT":"ICEEFT Affiliation"}),o.jsxs("div",{className:"p-8 rounded-2xl bg-card border border-border",children:[o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"GCCEFT Ù
ÙØªØ³Ø¨ Ø¥Ù٠اÙÙ
Ø±ÙØ² Ø§ÙØ¯ÙÙÙ ÙÙØªÙ
ÙØ² ÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر (ICEEFT)Ø Ø§ÙÙ
ÙØ¸Ù
Ø© Ø§ÙØ¹Ø§ÙÙ
ÙØ© Ø§ÙØªÙ Ø£Ø³Ø³ØªÙØ§ Ø§ÙØ¯ÙØªÙØ±Ø© س٠جÙÙØ³ÙÙ. ÙØ¹ÙÙ ÙØ°Ø§ Ø§ÙØ§Ùتساب أ٠براÙ
Ø¬ÙØ§ Ø§ÙØªØ¯Ø±ÙØ¨ÙØ© تستÙÙ٠اÙÙ
عاÙÙØ± Ø§ÙØ¯ÙÙÙØ©Ø ÙÙØ¹ØªØ±Ù دÙÙ٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ ÙØ¯ÙÙØ§ بÙ
سارات Ø§ÙØ§Ø¹ØªÙ
اد اÙÙ
ØªÙØ§ÙÙØ© Ù
ع ICEEFT.":"GCCEFT is affiliated with the International Centre for Excellence in Emotionally Focused Therapy (ICEEFT), the global organization founded by Dr. Sue Johnson. This affiliation means our training programs meet international standards, and our therapist directory recognizes ICEEFT-aligned certification pathways."}),o.jsx("p",{className:"text-muted-foreground leading-relaxed mt-4",children:n==="ar"?"Ù
Ù Ø®ÙØ§Ù ÙØ°Ù Ø§ÙØ´Ø±Ø§ÙØ©Ø ÙØ¶Ù
Ù GCCEFT Ø£Ù ÙØªÙ
تع اÙÙ
ÙÙÙÙÙ ÙÙ Ù
ÙØ·ÙØ© Ø§ÙØ®ÙÙØ¬ بÙÙØ³ Ø¬ÙØ¯Ø© Ø§ÙØªØ¯Ø±Ùب عÙÙ Ø§ÙØ¹Ùاج اÙÙ
Ø±ØªÙØ² عÙ٠اÙÙ
شاعر اÙÙ
تÙÙØ±Ø© عÙÙ Ù
ستÙÙ Ø§ÙØ¹Ø§ÙÙ
Ø Ù
ع Ù
راعاة Ø§ÙØ³ÙØ§ÙØ§Øª Ø§ÙØ«ÙاÙÙØ© ÙØ§ÙØªÙØ¸ÙÙ
ÙØ© اÙÙ
ØÙÙØ©.":"Through this partnership, GCCEFT ensures that Gulf-region professionals have access to the same quality of EFT training available globally, adapted to local cultural and regulatory contexts."})]})]}),o.jsxs("div",{children:[o.jsx("h2",{className:"font-serif text-2xl font-bold mb-6",children:n==="ar"?"Ø§ÙØ´Ø±Ø§Ùات Ø§ÙØ¥ÙÙÙÙ
ÙØ©":"Regional Partnerships"}),o.jsx("p",{className:"text-muted-foreground leading-relaxed",children:n==="ar"?"ÙØ¹Ù
Ù GCCEFT Ø¨Ø§ÙØªØ¹Ø§ÙÙ Ù
ع ÙØ²Ø§Ø±Ø§Øª Ø§ÙØµØØ© ÙØ§ÙجÙ
Ø¹ÙØ§Øª اÙÙ
ÙÙÙØ© ÙØ§ÙÙ
ؤسسات Ø§ÙØ£ÙادÙÙ
ÙØ© ÙÙ
ÙØ¸Ù
ات Ø§ÙØµØØ© اÙÙÙØ³ÙØ© Ù٠جÙ
ÙØ¹ Ø£ÙØØ§Ø¡ Ø§ÙØ®ÙÙØ¬ ÙÙØ§Ø±ØªÙاء Ø¨Ø¬ÙØ¯Ø© Ø§ÙØ±Ø¹Ø§ÙØ© اÙÙÙØ³ÙØ© Ù٠اÙÙ
ÙØ·ÙØ©. ÙØ±ØØ¨ Ø¨Ø§Ø³ØªÙØ³Ø§Ø±Ø§Øª اÙÙ
ÙØ¸Ù
ات اÙÙ
ÙØªÙ
Ø© Ø¨Ø§ÙØ´Ø±Ø§ÙØ©.":"GCCEFT works in collaboration with health ministries, professional associations, academic institutions, and mental health organizations across the GCC to advance the quality of psychological care in the region. We welcome inquiries from organizations interested in partnership."}),o.jsx("div",{className:"mt-4",children:o.jsx(Ie,{href:"/contact",children:o.jsx(Ae,{variant:"outline",size:"sm",children:n==="ar"?"ØªÙØ§ØµÙ Ù
Ø¹ÙØ§ Ø¨Ø´Ø£Ù Ø§ÙØ´Ø±Ø§Ùات":"Contact us about partnerships"})})})]})]})})]})}var S6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N6=S6.reduce((e,n)=>{const r=kj(`Primitive.${n}`),s=v.forwardRef((l,u)=>{const{asChild:f,...h}=l,p=f?r:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),o.jsx(p,{...h,ref:u})});return s.displayName=`Primitive.${n}`,{...e,[n]:s}},{}
53),C6="Label",LE=v.forwardRef((e,n)=>o.jsx(N6.label,{...e,ref:n,onMouseDown:r=>{r.target.closest("button, input, select, textarea")||(e.onMouseDown?.(r),!r.defaultPrevented&&r.detail>1&&r.preventDefault())}}));LE.displayName=C6;var PE=LE;const T6=ll("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Oe=v.forwardRef(({className:e,...n},r)=>o.jsx(PE,{ref:r,className:Re(T6(),e),...n}));Oe.displayName=PE.displayName;const Di=v.forwardRef(({className:e,...n},r)=>o.jsx("textarea",{className:Re("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:r,...n}));Di.displayName="Textarea";const A6="/".replace(/\/$/,"");function R6(){const{t:e,language:n}=Ot(),{toast:r}=_a(),s=n==="ar",[l,u]=v.useState(""),[f,h]=v.useState(!1),[p,g]=v.useState(!1),[y,x]=v.useState({firstName:"",lastName:"",email:"",subject:"",message:""}),w=[{value:"general",label:e("contact.inq.general")},{value:"directory",label:e("contact.inq.directory")},{value:"training",label:e("contact.inq.training")},{value:"partnership",label:e("contact.inq.partnership")},{value:"media",label:e("contact.inq.media")}],E=async C=>{if(C.preventDefault(),!!l){g(!0);try{await fetch(`${A6}/api/contact`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({inquiryType:l,...y})}),h(!0),r({title:e("contact.message_received"),description:e("contact.message_received_desc")})}catch{r({title:"Error",description:"Could not send your message. Please try again.",variant:"destructive"})}finally{g(!1)}}};return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-20 bg-gradient-to-br from-[hsl(40,33%,97%)] to-[hsl(195,20%,93%)] border-b border-border",children:o.jsxs("div",{className:`container mx-auto px-4 max-w-3xl text-center ${s?"text-right":""}`,children:[o.jsx("h1",{className:"font-serif text-4xl md:text-5xl font-bold mb-4",children:e("contact.title")}),o.jsx("p",{className:"text-lg text-muted-foreground",children:e("contact.subtitle_full")})]})}),o.jsxs("div",{className:"container mx-auto px-4 py-16 max-w-2xl",children:[f?o.jsxs(gt,{className:"border border-border text-center p-12",children:[o.jsx("div",{className:"h-16 w-16 rounded-full bg-primary/10 text-primary-on flex items-center justify-center mx-auto mb-6",children:o.jsx(yb,{className:"h-8 w-8"})}),o.jsx("h2",{className:"font-serif text-2xl font-bold mb-3",children:e("contact.message_received")}),o.jsx("p",{className:"text-muted-foreground",children:e("contact.message_received_desc")})]}):o.jsxs("form",{onSubmit:E,className:"space-y-6",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(Oe,{htmlFor:"inquiry-type",children:e("contact.inquiry_type")}),o.jsxs(Nt,{value:l,onValueChange:u,required:!0,children:[o.jsx(jt,{id:"inquiry-type","data-testid":"select-inquiry-type",children:o.jsx(Ct,{placeholder:e("contact.select_type")})}),o.jsx(_t,{children:w.map(C=>o.jsx(it,{value:C.value,children:C.label},C.value))})]})]}),o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsx(Oe,{htmlFor:"first-name",children:e("contact.first_name")}),o.jsx(Ve,{id:"first-name",dir:"auto",placeholder:e("contact.first_name_ph"),required:!0,value:y.firstName,onChange:C=>x(_=>({..._,firstName:C.target.value})),"data-testid":"input-first-name"})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Oe,{htmlFor:"last-name",children:e("contact.last_name")}),o.jsx(Ve,{id:"last-name",dir:"auto",placeholder:e("contact.last_name_ph"),required:!0,value:y.lastName,onChange:C=>x(_=>({..._,lastName:C.target.value})),"data-testid":"input-last-name"})]})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Oe,{htmlFor:"email",children:e("contact.email")}),o.jsx(Ve,{id:"email",type:"email",dir:"ltr",placeholder:e("contact.email_ph"),required:!0,value:y.email,onChange:C=>x(_=>({..._,email:C.target.value})),"data-testid":"input-email"})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Oe,{htmlFor:"subject",children:e("contact.subject")}),o.jsx(Ve,{id:"subject",dir:"auto",placeholder:e("contact.subject_ph"),required:!0,value:y.subject,onChange:C=>x(_=>({..._,subject:C.target.value})),"data-testid":"input-subject"})]}),o.jsxs("div",{className:"space-y-2",children:[o.jsx(Oe,{htmlFor:"message",children:e("contact.message")}),o.jsx(Di,{id:"message",dir:"auto",placeholder:e("contact.message_ph"),rows:6,required:!0,value:y.message,onChange:C=>x(_=>({..._,message:C.target.value})),"data-testid":"textarea-message"})]}),o.jsxs(Ae,{type:"submit",className:"w-full gap-2",disabled:p,"data-testid":"button-submit-contact",children:[o.jsx(yb,{className:"h-4 w-4"}),e(p?"contact.sending":"contact.send")]}),o.jsx("p",{className:"text-xs text-center text-muted-foreground",children:e("contact.privacy")})]}),o.jsxs("div",{className:"mt-12 grid grid-cols-1 md:grid-cols-2 gap-4",children:[o.jsx(gt,{className:"border border-border",children:o.jsxs(xt,{className:"p-5 flex gap-3",children:[o.jsx(Wc,{className:"h-5 w-5 text-primary-on shrink-0 mt-0.5"}),o.jsxs("div",{children:[o.jsx("p",{className:"font-medium text-sm mb-1",children:e("contact.email")}),o.jsx("a",{href:"mailto:[email protected]",className:"text-xs text-muted-foreground hover:text-primary-on transition-colors",children:"[email protected]"})]})]})}),o.jsx(gt,{className:"border border-border",children:o.jsxs(xt,{className:"p-5 flex gap-3",children:[o.jsx(yA,{className:"h-5 w-5 text-primary-on shrink-0 mt-0.5"}),o.jsxs("div",{children:[o.jsx("p",{className:"font-medium text-sm mb-1",children:e("contact.response_time")}
53),o.jsx("p",{className:"text-xs text-muted-foreground",children:e("contact.response_days")})]})]})})]})]})]})}var yl=e=>e.type==="checkbox",ss=e=>e instanceof Date,wn=e=>e==null;const zE=e=>typeof e=="object";var Pt=e=>!wn(e)&&!Array.isArray(e)&&zE(e)&&!ss(e),qE=e=>Pt(e)&&e.target?yl(e.target)?e.target.checked:e.target.value:e,O6=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,UE=(e,n)=>e.has(O6(n)),M6=e=>{const n=e.constructor&&e.constructor.prototype;return Pt(n)&&n.hasOwnProperty("isPrototypeOf")},Mp=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Dt(e){if(e instanceof Date)return new Date(e);const n=typeof FileList<"u"&&e instanceof FileList;if(Mp&&(e instanceof Blob||n))return e;const r=Array.isArray(e);if(!r&&!(Pt(e)&&M6(e)))return e;const s=r?[]:Object.create(Object.getPrototypeOf(e));for(const l in e)Object.prototype.hasOwnProperty.call(e,l)&&(s[l]=Dt(e[l]));return s}var Ju=e=>/^\w*$/.test(e),vt=e=>e===void 0,kp=e=>Array.isArray(e)?e.filter(Boolean):[],Dp=e=>kp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),he=(e,n,r)=>{if(!n||!Pt(e))return r;const s=(Ju(n)?[n]:Dp(n)).reduce((l,u)=>wn(l)?l:l[u],e);return vt(s)||s===e?vt(e[n])?r:e[n]:s},On=e=>typeof e=="boolean",hn=e=>typeof e=="function",ct=(e,n,r)=>{let s=-1;const l=Ju(n)?[n]:Dp(n),u=l.length,f=u-1;for(;++s<u;){const h=l[s];let p=r;if(s!==f){const g=e[h];p=Pt(g)||Array.isArray(g)?g:isNaN(+l[s+1])?{}:[]}if(h==="__proto__"||h==="constructor"||h==="prototype")return;e[h]=p,e=e[h]}};const mu={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},na={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Va={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Fp=xe.createContext(null);Fp.displayName="HookFormControlContext";const Lp=()=>xe.useContext(Fp);var IE=(e,n,r,s=!0)=>{const l={defaultValues:n._defaultValues};for(const u in e)Object.defineProperty(l,u,{get:()=>{const f=u;return n._proxyFormState[f]!==na.all&&(n._proxyFormState[f]=!s||na.all),r&&(r[f]=!0),e[f]}});return l};const Pp=typeof window<"u"?xe.useLayoutEffect:xe.useEffect;function k6(e){const n=Lp(),{control:r=n,disabled:s,name:l,exact:u}=e||{},[f,h]=xe.useState(r._formState),p=xe.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Pp(()=>r._subscribe({name:l,formState:p.current,exact:u,callback:g=>{!s&&h({...r._formState,...g})}}),[l,s,u]),xe.useEffect(()=>{p.current.isValid&&r._setValid(!0)},[r]),xe.useMemo(()=>IE(f,r,p.current,!1),[f,r])}var kn=e=>typeof e=="string",Nm=(e,n,r,s,l)=>kn(e)?(s&&n.watch.add(e),he(r,e,l)):Array.isArray(e)?e.map(u=>(s&&n.watch.add(u),he(r,u))):(s&&(n.watchAll=!0),r),Cm=e=>wn(e)||!zE(e);function aa(e,n,r=new WeakSet){if(Cm(e)||Cm(n))return Object.is(e,n);if(ss(e)&&ss(n))return Object.is(e.getTime(),n.getTime());const s=Object.keys(e),l=Object.keys(n);if(s.length!==l.length)return!1;if(r.has(e)||r.has(n))return!0;r.add(e),r.add(n);for(const u of s){const f=e[u];if(!l.includes(u))return!1;if(u!=="ref"){const h=n[u];if(ss(f)&&ss(h)||Pt(f)&&Pt(h)||Array.isArray(f)&&Array.isArray(h)?!aa(f,h,r):!Object.is(f,h))return!1}}return!0}function D6(e){const n=Lp(),{control:r=n,name:s,defaultValue:l,disabled:u,exact:f,compute:h}=e||{},p=xe.useRef(l),g=xe.useRef(h),y=xe.useRef(void 0),x=xe.useRef(r),w=xe.useRef(s);g.current=h;const[E,C]=xe.useState(()=>{const F=r._getWatch(s,p.current);return g.current?g.current(F):F}),_=xe.useCallback(F=>{const L=Nm(s,r._names,F||r._formValues,!1,p.current);return g.current?g.current(L):L},[r._formValues,r._names,s]),S=xe.useCallback(F=>{if(!u){const L=Nm(s,r._names,F||r._formValues,!1,p.current);if(g.current){const z=g.current(L);aa(z,y.current)||(C(z),y.current=z)}else C(L)}},[r._formValues,r._names,u,s]);Pp(()=>((x.current!==r||!aa(w.current,s))&&(x.current=r,w.current=s,S()),r._subscribe({name:s,formState:{values:!0},exact:f,callback:F=>{S(F.values)}})),[r,f,s,S]),xe.useEffect(()=>r._removeUnmounted());const A=x.current!==r,T=w.current,M=xe.useMemo(()=>
53{if(u)return null;const F=!A&&!aa(T,s);return A||F?_():null},[u,A,s,T,_]);return M!==null?M:E}function F6(e){const n=Lp(),{name:r,disabled:s,control:l=n,shouldUnregister:u,defaultValue:f,exact:h=!0}=e,p=UE(l._names.array,r),g=xe.useMemo(()=>he(l._formValues,r,he(l._defaultValues,r,f)),[l,r,f]),y=D6({control:l,name:r,defaultValue:g,exact:h}),x=k6({control:l,name:r,exact:h}),w=xe.useRef(e),E=xe.useRef(void 0),C=xe.useRef(l.register(r,{...e.rules,value:y,...On(e.disabled)?{disabled:e.disabled}:{}}));w.current=e;const _=xe.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!he(x.errors,r)},isDirty:{enumerable:!0,get:()=>!!he(x.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!he(x.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!he(x.validatingFields,r)},error:{enumerable:!0,get:()=>he(x.errors,r)}}),[x,r]),S=xe.useCallback(F=>C.current.onChange({target:{value:qE(F),name:r},type:mu.CHANGE}),[r]),A=xe.useCallback(()=>C.current.onBlur({target:{value:he(l._formValues,r),name:r},type:mu.BLUR}),[r,l._formValues]),T=xe.useCallback(F=>{const L=he(l._fields,r);L&&L._f&&F&&(L._f.ref={focus:()=>hn(F.focus)&&F.focus(),select:()=>hn(F.select)&&F.select(),setCustomValidity:z=>hn(F.setCustomValidity)&&F.setCustomValidity(z),reportValidity:()=>hn(F.reportValidity)&&F.reportValidity()})},[l._fields,r]),M=xe.useMemo(()=>({name:r,value:y,...On(s)||x.disabled?{disabled:x.disabled||s}:{},onChange:S,onBlur:A,ref:T}),[r,s,x.disabled,S,A,T,y]);return xe.useEffect(()=>{const F=l._options.shouldUnregister||u,L=E.current;L&&L!==r&&!p&&l.unregister(L),l.register(r,{...w.current.rules,...On(w.current.disabled)?{disabled:w.current.disabled}:{}});const z=(P,H)=>{const ie=he(l._fields,P);ie&&ie._f&&(ie._f.mount=H)};if(z(r,!0),F){const P=Dt(he(l._options.defaultValues,r,w.current.defaultValue));ct(l._defaultValues,r,P),vt(he(l._formValues,r))&&ct(l._formValues,r,P)}return!p&&l.register(r),E.current=r,()=>{(p?F&&!l._state.action:F)?l.unregister(r):z(r,!1)}},[r,l,p,u]),xe.useEffect(()=>{l._setDisabledField({disabled:s,name:r})},[s,r,l]),xe.useMemo(()=>({field:M,formState:x,fieldState:_}),[M,x,_])}const L6=e=>e.render(F6(e)),zp=xe.createContext(null);zp.displayName="HookFormContext";const P6=()=>xe.useContext(zp),z6=e=>{const{children:n,watch:r,getValues:s,getFieldState:l,setError:u,clearErrors:f,setValue:h,trigger:p,formState:g,resetField:y,reset:x,handleSubmit:w,unregister:E,control:C,register:_,setFocus:S,subscribe:A}=e;return xe.createElement(zp.Provider,{value:xe.useMemo(()=>({watch:r,getValues:s,getFieldState:l,setError:u,clearErrors:f,setValue:h,trigger:p,formState:g,resetField:y,reset:x,handleSubmit:w,unregister:E,control:C,register:_,setFocus:S,subscribe:A}),[f,C,g,l,s,w,_,x,y,u,S,h,A,p,E,r])},xe.createElement(Fp.Provider,{value:C},n))};var VE=(e,n,r,s,l)=>n?{...r[e],types:{...r[e]&&r[e].types?r[e].types:{},[s]:l||!0}}:{},$o=e=>Array.isArray(e)?e:[e],o0=()=>{let e=[];return{get observers(){return e},next:l=>{for(const u of e)u.next&&u.next(l)},subscribe:l=>(e.push(l),{unsubscribe:()=>{e=e.filter(u=>u!==l)}}),unsubscribe:()=>{e=[]}}};function HE(e,n){const r={};for(const s in e)if(e.hasOwnProperty(s)){const l=e[s],u=n[s];if(l&&Pt(l)&&u){const f=HE(l,u);Pt(f)&&(r[s]=f)}else e[s]&&(r[s]=u)}return r}var dn=e=>Pt(e)&&!Object.keys(e).length,qp=e=>e.type==="file",pu=e=>{if(!Mp)return!1;const n=e?e.ownerDocument:0;return e instanceof(n&&n.defaultView?n.defaultView.HTMLElement:HTMLElement)},BE=e=>e.type==="select-multiple",Up=e=>e.type==="radio",q6=e=>Up(e)||yl(e),$h=e=>pu(e)&&e.isConnected;function U6(e,n){const r=n.slice(0,-1).length;let s=0;for(;s<r;)e=vt(e)?s++:e[n[s++]];return e}function I6(e){for(const n in e)if(e.hasOwnProperty(n)&&!vt(e[n]))return!1;return!0}function Ft(e,n){const r=Array.isArray(n)?n:Ju(n)?[n]:Dp(n),s=r.length===1?e:U6(e,r),l=r.length-1,u=r[l];return s&&delete s[u],l!==0&&(Pt(s)&&dn(s)||Array.isArray(s)&&I6(s))&&Ft(e,r.slice(0,-1)),e}var V6=e=>{for(const n in e)if(hn(e[n]))return!0;return!1};function GE(e){return Array.isArray(e)||Pt(e)&&!V6(e)}function Tm(e,n={}){for(const r in e){const s=e[r];GE(s)?(n[r]=Array.isArray(s)?[]:{},Tm(s,n[r])):vt(s)||(n[r]=!0)}return n}function di(e,n,r){r||(r=Tm(n));for(const s in e){const l=e[s];if(GE(l))vt(n)||Cm(r[s])?r[s]=Tm(l,Array.isArray(l)?[]:{}):di(l,wn(n)?{}:n[s],r[s]);else{const u=n[s];r[s]=!aa(l,u)}}return r}const l0={value:!1,isValid:!1},c0={value:!0,isValid:!0};var $E=e=>{if(Array.isArray(e)){if(e.length>1){const n=e.filter(r=>r&&r.checked&&!r.disabled).map(r=>r.value);return{value:n,isValid:!!n.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!vt(e[0].attributes.value)?vt(e[0].value)||e[0].value===""?c0:{value:e[0].value,isValid:!0}:c0:l0}return l0},YE=(e,{valueAsNumber:n,valueAsDate:r,setValueAs:s})=>vt(e)?e:n?e===""?NaN:e&&+e:r&&kn(e)?new Date(e):s?s(e):e;const u0={isValid:!1,value:null};var KE=e=>Array.isArray(e)?e.reduce((n,r)=>r&&r.checked&&!r.disabled?{isValid:!0,value:r.value}:n,u0):u0;function d0(e){const n=e.ref;return qp(n)?n.files:Up(n)?KE(e.refs).value:BE(n)?[...n.selectedOptions].map(({value:r})=>r):yl(n)?$E(e.refs).value:YE(vt(n.value)?e.ref.value:n.value,e)}
53var H6=(e,n,r,s)=>{const l={};for(const u of e){const f=he(n,u);f&&ct(l,u,f._f)}return{criteriaMode:r,names:[...e],fields:l,shouldUseNativeValidation:s}},gu=e=>e instanceof RegExp,Io=e=>vt(e)?e:gu(e)?e.source:Pt(e)?gu(e.value)?e.value.source:e.value:e,f0=e=>({isOnSubmit:!e||e===na.onSubmit,isOnBlur:e===na.onBlur,isOnChange:e===na.onChange,isOnAll:e===na.all,isOnTouch:e===na.onTouched});const h0="AsyncFunction";var B6=e=>!!e&&!!e.validate&&!!(hn(e.validate)&&e.validate.constructor.name===h0||Pt(e.validate)&&Object.values(e.validate).find(n=>n.constructor.name===h0)),G6=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),m0=(e,n,r)=>!r&&(n.watchAll||n.watch.has(e)||[...n.watch].some(s=>e.startsWith(s)&&/^\.\w+/.test(e.slice(s.length))));const Yo=(e,n,r,s)=>{for(const l of r||Object.keys(e)){const u=he(e,l);if(u){const{_f:f,...h}=u;if(f){if(f.refs&&f.refs[0]&&n(f.refs[0],l)&&!s)return!0;if(f.ref&&n(f.ref,f.name)&&!s)return!0;if(Yo(h,n))break}else if(Pt(h)&&Yo(h,n))break}}};function p0(e,n,r){const s=he(e,r);if(s||Ju(r))return{error:s,name:r};const l=r.split(".");for(;l.length;){const u=l.join("."),f=he(n,u),h=he(e,u);if(f&&!Array.isArray(f)&&r!==u)return{name:r};if(h&&h.type)return{name:u,error:h};if(h&&h.root&&h.root.type)return{name:`${u}.root`,error:h.root};l.pop()}return{name:r}}var $6=(e,n,r,s)=>{r(e);const{name:l,...u}=e;return dn(u)||Object.keys(u).length>=Object.keys(n).length||Object.keys(u).find(f=>n[f]===(!s||na.all))},Y6=(e,n,r)=>!e||!n||e===n||$o(e).some(s=>s&&(r?s===n:s.startsWith(n)||n.startsWith(s))),K6=(e,n,r,s,l)=>l.isOnAll?!1:!r&&l.isOnTouch?!(n||e):(r?s.isOnBlur:l.isOnBlur)?!e:(r?s.isOnChange:l.isOnChange)?e:!0,Q6=(e,n)=>!kp(he(e,n)).length&&Ft(e,n),Z6=(e,n,r)=>{const s=$o(he(e,r));return ct(s,"root",n[r]),ct(e,r,s),e};function g0(e,n,r="validate"){if(kn(e)||Array.isArray(e)&&e.every(kn)||On(e)&&!e)return{type:r,message:kn(e)?e:"",ref:n}}var ui=e=>Pt(e)&&!gu(e)?e:{value:e,message:""},y0=async(e,n,r,s,l,u)=>{const{ref:f,refs:h,required:p,maxLength:g,minLength:y,min:x,max:w,pattern:E,validate:C,name:_,valueAsNumber:S,mount:A}=e._f,T=he(r,_);if(!A||n.has(_))return{};const M=h?h[0]:f,F=ee=>{l&&M.reportValidity&&(M.setCustomValidity(On(ee)?"":ee||""),M.reportValidity())},L={},z=Up(f),P=yl(f),H=z||P,ie=(S||qp(f))&&vt(f.value)&&vt(T)||pu(f)&&f.value===""||T===""||Array.isArray(T)&&!T.length,pe=VE.bind(null,_,s,L),be=(ee,oe,te,de=Va.maxLength,D=Va.minLength)=>{const $=ee?oe:te;L[_]={type:ee?de:D,message:$,ref:f,...pe(ee?de:D,$)}};if(u?!Array.isArray(T)||!T.length:p&&(!H&&(ie||wn(T))||On(T)&&!T||P&&!$E(h).isValid||z&&!KE(h).isValid)){const{value:ee,message:oe}=kn(p)?{value:!!p,message:p}:ui(p);if(ee&&(L[_]={type:Va.required,message:oe,ref:M,...pe(Va.required,oe)},!s))return F(oe),L}if(!ie&&(!wn(x)||!wn(w))){let ee,oe;const te=ui(w),de=ui(x);if(!wn(T)&&!isNaN(T)){const D=f.valueAsNumber||T&&+T;wn(te.value)||(ee=D>te.value),wn(de.value)||(oe=D<de.value)}else{const D=f.valueAsDate||new Date(T),$=N=>new Date(new Date().toDateString()+" "+N),Z=f.type=="time",J=f.type=="week";kn(te.value)&&T&&(ee=Z?$(T)>$(te.value):J?T>te.value:D>new Date(te.value)),kn(de.value)&&T&&(oe=Z?$(T)<$(de.value):J?T<de.value:D<new Date(de.value))}if((ee||oe)&&(be(!!ee,te.message,de.message,Va.max,Va.min),!s))return F(L[_].message),L}if((g||y)&&!ie&&(kn(T)||u&&Array.isArray(T))){const ee=ui(g),oe=ui(y),te=!wn(ee.value)&&T.length>+ee.value,de=!wn(oe.value)&&T.length<+oe.value;if((te||de)&&(be(te,ee.message,oe.message),!s))return F(L[_].message),L}if(E&&!ie&&kn(T)){const{value:ee,message:oe}=ui(E);if(gu(ee)&&!T.match(ee)&&(L[_]={type:Va.pattern,message:oe,ref:f,...pe(Va.pattern,oe)},!s))return F(oe),L}if(C){if(hn(C)){const ee=await C(T,r),oe=g0(ee,M);if(oe&&(L[_]={...oe,...pe(Va.validate,oe.message)},!s))return F(oe.message),L}else if(Pt(C)){let ee={};for(const oe in C){if(!dn(ee)&&!s)break;const te=g0(await C[oe](T,r),M,oe);te&&(ee={...te,...pe(oe,te.message)},F(te.message),s&&(L[_]=ee))}if(!dn(ee)&&(L[_]={ref:M,...ee},!s))return L}}return F(!0),L};const X6={mode:na.onSubmit,reValidateMode:na.onChange,shouldFocusError:!0};function W6(e={}){let n={...X6,...e},r={submitCount:0,isDirty:!1,isReady:!1,isLoading:hn(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},s={},l=Pt(n.defaultValues)||Pt(n.values)?Dt(n.defaultValues||n.values)||{}:{},u=n.shouldUnregister?{}:Dt(l),f={action:!1,mount:!1,watch:!1,keepIsValid:!1},h={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},p,g=0;const y={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},x={...y};let w={...x};const E={array:o0(),state:o0()},C=n.criteriaMode===na.all,_=O=>I=>{clearTimeout(g),g=setTimeout(O,I)},S=async O=>{if(!f.keepIsValid&&!n.disabled&&(x.isValid||w.isValid||O)){let I;n.resolver?(I=dn((await H()).errors),A()):I=await pe(s,!0),I!==r.isValid&&E.state.next({isValid:I})}},A=(O,I)=>{!n.disabled&&(x.isValidating||x.validatingFields||w.isValidating||w.validatingFields)&&((O||Array.from(h.mount)).forEac
53h(Y=>{Y&&(I?ct(r.validatingFields,Y,I):Ft(r.validatingFields,Y))}),E.state.next({validatingFields:r.validatingFields,isValidating:!dn(r.validatingFields)}))},T=(O,I=[],Y,ge,ce=!0,ae=!0)=>{if(ge&&Y&&!n.disabled){if(f.action=!0,ae&&Array.isArray(he(s,O))){const ve=Y(he(s,O),ge.argA,ge.argB);ce&&ct(s,O,ve)}if(ae&&Array.isArray(he(r.errors,O))){const ve=Y(he(r.errors,O),ge.argA,ge.argB);ce&&ct(r.errors,O,ve),Q6(r.errors,O)}if((x.touchedFields||w.touchedFields)&&ae&&Array.isArray(he(r.touchedFields,O))){const ve=Y(he(r.touchedFields,O),ge.argA,ge.argB);ce&&ct(r.touchedFields,O,ve)}(x.dirtyFields||w.dirtyFields)&&(r.dirtyFields=di(l,u)),E.state.next({name:O,isDirty:ee(O,I),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ct(u,O,I)},M=(O,I)=>{ct(r.errors,O,I),E.state.next({errors:r.errors})},F=O=>{r.errors=O,E.state.next({errors:r.errors,isValid:!1})},L=(O,I,Y,ge)=>{const ce=he(s,O);if(ce){const ae=he(u,O,vt(Y)?he(l,O):Y);vt(ae)||ge&&ge.defaultChecked||I?ct(u,O,I?ae:d0(ce._f)):de(O,ae),f.mount&&!f.action&&S()}},z=(O,I,Y,ge,ce)=>{let ae=!1,ve=!1;const Ye={name:O};if(!n.disabled){if(!Y||ge){(x.isDirty||w.isDirty)&&(ve=r.isDirty,r.isDirty=Ye.isDirty=ee(),ae=ve!==Ye.isDirty);const Ue=aa(he(l,O),I);ve=!!he(r.dirtyFields,O),Ue?Ft(r.dirtyFields,O):ct(r.dirtyFields,O,!0),Ye.dirtyFields=r.dirtyFields,ae=ae||(x.dirtyFields||w.dirtyFields)&&ve!==!Ue}if(Y){const Ue=he(r.touchedFields,O);Ue||(ct(r.touchedFields,O,Y),Ye.touchedFields=r.touchedFields,ae=ae||(x.touchedFields||w.touchedFields)&&Ue!==Y)}ae&&ce&&E.state.next(Ye)}return ae?Ye:{}},P=(O,I,Y,ge)=>{const ce=he(r.errors,O),ae=(x.isValid||w.isValid)&&On(I)&&r.isValid!==I;if(n.delayError&&Y?(p=_(()=>M(O,Y)),p(n.delayError)):(clearTimeout(g),p=null,Y?ct(r.errors,O,Y):Ft(r.errors,O)),(Y?!aa(ce,Y):ce)||!dn(ge)||ae){const ve={...ge,...ae&&On(I)?{isValid:I}:{},errors:r.errors,name:O};r={...r,...ve},E.state.next(ve)}},H=async O=>(A(O,!0),await n.resolver(u,n.context,H6(O||h.mount,s,n.criteriaMode,n.shouldUseNativeValidation))),ie=async O=>{const{errors:I}=await H(O);if(A(O),O)for(const Y of O){const ge=he(I,Y);ge?ct(r.errors,Y,ge):Ft(r.errors,Y)}else r.errors=I;return I},pe=async(O,I,Y={valid:!0})=>{for(const ge in O){const ce=O[ge];if(ce){const{_f:ae,...ve}=ce;if(ae){const Ye=h.array.has(ae.name),Ue=ce._f&&B6(ce._f);Ue&&x.validatingFields&&A([ae.name],!0);const Qt=await y0(ce,h.disabled,u,C,n.shouldUseNativeValidation&&!I,Ye);if(Ue&&x.validatingFields&&A([ae.name]),Qt[ae.name]&&(Y.valid=!1,I||e.shouldUseNativeValidation))break;!I&&(he(Qt,ae.name)?Ye?Z6(r.errors,Qt,ae.name):ct(r.errors,ae.name,Qt[ae.name]):Ft(r.errors,ae.name))}!dn(ve)&&await pe(ve,I,Y)}}return Y.valid},be=()=>{for(const O of h.unMount){const I=he(s,O);I&&(I._f.refs?I._f.refs.every(Y=>!$h(Y)):!$h(I._f.ref))&&Ce(O)}h.unMount=new Set},ee=(O,I)=>!n.disabled&&(O&&I&&ct(u,O,I),!aa(K(),l)),oe=(O,I,Y)=>Nm(O,h,{...f.mount?u:vt(I)?l:kn(O)?{[O]:I}:I},Y,I),te=O=>kp(he(f.mount?u:l,O,n.shouldUnregister?he(l,O,[]):[])),de=(O,I,Y={})=>{const ge=he(s,O);let ce=I;if(ge){const ae=ge._f;ae&&(!ae.disabled&&ct(u,O,YE(I,ae)),ce=pu(ae.ref)&&wn(I)?"":I,BE(ae.ref)?[...ae.ref.options].forEach(ve=>ve.selected=ce.includes(ve.value)):ae.refs?yl(ae.ref)?ae.refs.forEach(ve=>{(!ve.defaultChecked||!ve.disabled)&&(Array.isArray(ce)?ve.checked=!!ce.find(Ye=>Ye===ve.value):ve.checked=ce===ve.value||!!ce)}):ae.refs.forEach(ve=>ve.checked=ve.value===ce):qp(ae.ref)?ae.ref.value="":(ae.ref.value=ce,ae.ref.type||E.state.next({name:O,values:Dt(u)})))}(Y.shouldDirty||Y.shouldTouch)&&z(O,ce,Y.shouldTouch,Y.shouldDirty,!0),Y.shouldValidate&&N(O)},D=(O,I,Y)=>{for(const ge in I){if(!I.hasOwnProperty(ge))return;const ce=I[ge],ae=O+"."+ge,ve=he(s,ae);(h.array.has(O)||Pt(ce)||ve&&!ve._f)&&!ss(ce)?D(ae,ce,Y):de(ae,ce,Y)}},$=(O,I,Y={})=>{const ge=he(s,O),ce=h.array.has(O),ae=Dt(I);ct(u,O,ae),ce?(E.array.next({name:O,values:Dt(u)}),(x.isDirty||x.dirtyFields||w.isDirty||w.dirtyFields)&&Y.shouldDirty&&E.state.next({name:O,dirtyFields:di(l,u),isDirty:ee(O,ae)})):ge&&!ge._f&&!wn(ae)?D(O,ae,Y):de(O,ae,Y),m0(O,h)?E.state.next({...r,name:O,values:Dt(u)}):E.state.next({name:f.mount?O:void 0,values:Dt(u)})},Z=async O=>{f.mount=!0;const I=O.target;let Y=I.name,ge=!0;const ce=he(s,Y),ae=Ue=>{ge=Number.isNaN(Ue)||ss(Ue)&&isNaN(Ue.getTime())||aa(Ue,he(u,Y,Ue))}
53,ve=f0(n.mode),Ye=f0(n.reValidateMode);if(ce){let Ue,Qt;const Sa=I.type?d0(ce._f):qE(O),ua=O.type===mu.BLUR||O.type===mu.FOCUS_OUT,ys=!G6(ce._f)&&!n.resolver&&!he(r.errors,Y)&&!ce._f.deps||K6(ua,he(r.touchedFields,Y),r.isSubmitted,Ye,ve),Za=m0(Y,h,ua);ct(u,Y,Sa),ua?(!I||!I.readOnly)&&(ce._f.onBlur&&ce._f.onBlur(O),p&&p(0)):ce._f.onChange&&ce._f.onChange(O);const Xn=z(Y,Sa,ua),vs=!dn(Xn)||Za;if(!ua&&E.state.next({name:Y,type:O.type,values:Dt(u)}),ys)return(x.isValid||w.isValid)&&(n.mode==="onBlur"?ua&&S():ua||S()),vs&&E.state.next({name:Y,...Za?{}:Xn});if(!ua&&Za&&E.state.next({...r}),n.resolver){const{errors:Xa}=await H([Y]);if(A([Y]),ae(Sa),ge){const od=p0(r.errors,s,Y),Pi=p0(Xa,s,od.name||Y);Ue=Pi.error,Y=Pi.name,Qt=dn(Xa)}}else A([Y],!0),Ue=(await y0(ce,h.disabled,u,C,n.shouldUseNativeValidation))[Y],A([Y]),ae(Sa),ge&&(Ue?Qt=!1:(x.isValid||w.isValid)&&(Qt=await pe(s,!0)));ge&&(ce._f.deps&&(!Array.isArray(ce._f.deps)||ce._f.deps.length>0)&&N(ce._f.deps),P(Y,Qt,Ue,Xn))}},J=(O,I)=>{if(he(r.errors,I)&&O.focus)return O.focus(),1},N=async(O,I={})=>{let Y,ge;const ce=$o(O);if(n.resolver){const ae=await ie(vt(O)?O:ce);Y=dn(ae),ge=O?!ce.some(ve=>he(ae,ve)):Y}else O?(ge=(await Promise.all(ce.map(async ae=>{const ve=he(s,ae);return await pe(ve&&ve._f?{[ae]:ve}:ve)}))).every(Boolean),!(!ge&&!r.isValid)&&S()):ge=Y=await pe(s);return E.state.next({...!kn(O)||(x.isValid||w.isValid)&&Y!==r.isValid?{}:{name:O},...n.resolver||!O?{isValid:Y}:{},errors:r.errors}),I.shouldFocus&&!ge&&Yo(s,J,O?ce:h.mount),ge},K=(O,I)=>{let Y={...f.mount?u:l};return I&&(Y=HE(I.dirtyFields?r.dirtyFields:r.touchedFields,Y)),vt(O)?Y:kn(O)?he(Y,O):O.map(ge=>he(Y,ge))},re=(O,I)=>({invalid:!!he((I||r).errors,O),isDirty:!!he((I||r).dirtyFields,O),error:he((I||r).errors,O),isValidating:!!he(r.validatingFields,O),isTouched:!!he((I||r).touchedFields,O)}),ne=O=>{const I=O?$o(O):void 0;I?.forEach(Y=>Ft(r.errors,Y)),I?I.forEach(Y=>{E.state.next({name:Y,errors:r.errors})}):E.state.next({errors:{}})},me=(O,I,Y)=>{const ge=(he(s,O,{_f:{}})._f||{}).ref,ce=he(r.errors,O)||{},{ref:ae,message:ve,type:Ye,...Ue}=ce;ct(r.errors,O,{...Ue,...I,ref:ge}),E.state.next({name:O,errors:r.errors,isValid:!1}),Y&&Y.shouldFocus&&ge&&ge.focus&&ge.focus()},Se=(O,I)=>hn(O)?E.state.subscribe({next:Y=>"values"in Y&&O(oe(void 0,I),Y)}):oe(O,I,!0),fe=O=>E.state.subscribe({next:I=>{Y6(O.name,I.name,O.exact)&&$6(I,O.formState||x,sd,O.reRenderRoot)&&O.callback({values:{...u},...r,...I,defaultValues:l})}}).unsubscribe,le=O=>(f.mount=!0,w={...w,...O.formState},fe({...O,formState:{...y,...O.formState}})),Ce=(O,I={})=>{for(const Y of O?$o(O):h.mount)h.mount.delete(Y),h.array.delete(Y),I.keepValue||(Ft(s,Y),Ft(u,Y)),!I.keepError&&Ft(r.errors,Y),!I.keepDirty&&Ft(r.dirtyFields,Y),!I.keepTouched&&Ft(r.touchedFields,Y),!I.keepIsValidating&&Ft(r.validatingFields,Y),!n.shouldUnregister&&!I.keepDefaultValue&&Ft(l,Y);E.state.next({values:Dt(u)}),E.state.next({...r,...I.keepDirty?{isDirty:ee()}:{}}),!I.keepIsValid&&S()},Le=({disabled:O,name:I})=>{if(On(O)&&f.mount||O||h.disabled.has(I)){const ce=h.disabled.has(I)!==!!O;O?h.disabled.add(I):h.disabled.delete(I),ce&&f.mount&&!f.action&&S()}},We=(O,I={})=>{let Y=he(s,O);const ge=On(I.disabled)||On(n.disabled);return ct(s,O,{...Y||{},_f:{...Y&&Y._f?Y._f:{ref:{name:O}},name:O,mount:!0,...I}}),h.mount.add(O),Y?Le({disabled:On(I.disabled)?I.disabled:n.disabled,name:O}):L(O,!0,I.value),{...ge?{disabled:I.disabled||n.disabled}:{},...n.progressive?{required:!!I.required,min:Io(I.min),max:Io(I.max),minLength:Io(I.minLength),maxLength:Io(I.maxLength),pattern:Io(I.pattern)}:{},name:O,onChange:Z,onBlur:Z,ref:ce=>{if(ce){We(O,I),Y=he(s,O);const ae=vt(ce.value)&&ce.querySelectorAll&&ce.querySelectorAll("input,select,textarea")[0]||ce,ve=q6(ae),Ye=Y._f.refs||[];if(ve?Ye.find(Ue=>Ue===ae):ae===Y._f.ref)return;ct(s,O,{_f:{...Y._f,...ve?{refs:[...Ye.filter($h),ae,...Array.isArray(he(l,O))?[{}]:[]],ref:{type:ae.type,name:O}}:{ref:ae}}}),L(O,!1,void 0,ae)}else Y=he(s,O,{}),Y._f&&(Y._f.mount=!1),(n.shouldUnregister||I.shouldUnregister)&&!(UE(h.array,O)&&f.action)&&h.unMount.add(O)}}},$e=()=>n.shouldFocusError&&Yo(s,J,h.mount),rt=O=>{On(O)&&(E.state.next({disabled:O}),Yo(s,(I,Y)=>{const ge=he(s,Y);ge&&(I.disabled=ge._f.disabled||O,Array.isArray(ge._f.refs)&&ge._f.refs.forEac
vendor: 4,350 bytes, line 53
53h(ce=>{ce.disabled=ge._f.disabled||O}))},0,!1))},bt=(O,I)=>async Y=>{let ge;Y&&(Y.preventDefault&&Y.preventDefault(),Y.persist&&Y.persist());let ce=Dt(u);if(E.state.next({isSubmitting:!0}),n.resolver){const{errors:ae,values:ve}=await H();A(),r.errors=ae,ce=Dt(ve)}else await pe(s);if(h.disabled.size)for(const ae of h.disabled)Ft(ce,ae);if(Ft(r.errors,"root"),dn(r.errors)){E.state.next({errors:{}});try{await O(ce,Y)}catch(ae){ge=ae}}else I&&await I({...r.errors},Y),$e(),setTimeout($e);if(E.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:dn(r.errors)&&!ge,submitCount:r.submitCount+1,errors:r.errors}),ge)throw ge},Ht=(O,I={})=>{he(s,O)&&(vt(I.defaultValue)?$(O,Dt(he(l,O))):($(O,I.defaultValue),ct(l,O,Dt(I.defaultValue))),I.keepTouched||Ft(r.touchedFields,O),I.keepDirty||(Ft(r.dirtyFields,O),r.isDirty=I.defaultValue?ee(O,Dt(he(l,O))):ee()),I.keepError||(Ft(r.errors,O),x.isValid&&S()),E.state.next({...r}))},Ka=(O,I={})=>{const Y=O?Dt(O):l,ge=Dt(Y),ce=dn(O),ae=ce?l:ge;if(I.keepDefaultValues||(l=Y),!I.keepValues){if(I.keepDirtyValues){const ve=new Set([...h.mount,...Object.keys(di(l,u))]);for(const Ye of Array.from(ve)){const Ue=he(r.dirtyFields,Ye),Qt=he(u,Ye),Sa=he(ae,Ye);Ue&&!vt(Qt)?ct(ae,Ye,Qt):!Ue&&!vt(Sa)&&$(Ye,Sa)}}else{if(Mp&&vt(O))for(const ve of h.mount){const Ye=he(s,ve);if(Ye&&Ye._f){const Ue=Array.isArray(Ye._f.refs)?Ye._f.refs[0]:Ye._f.ref;if(pu(Ue)){const Qt=Ue.closest("form");if(Qt){Qt.reset();break}}}}if(I.keepFieldsRef)for(const ve of h.mount)$(ve,he(ae,ve));else s={}}u=n.shouldUnregister?I.keepDefaultValues?Dt(l):{}:Dt(ae),E.array.next({values:{...ae}}),E.state.next({values:{...ae}})}h={mount:I.keepDirtyValues?h.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},f.mount=!x.isValid||!!I.keepIsValid||!!I.keepDirtyValues||!n.shouldUnregister&&!dn(ae),f.watch=!!n.shouldUnregister,f.keepIsValid=!!I.keepIsValid,f.action=!1,I.keepErrors||(r.errors={}),E.state.next({submitCount:I.keepSubmitCount?r.submitCount:0,isDirty:ce?!1:I.keepDirty?r.isDirty:!!(I.keepDefaultValues&&!aa(O,l)),isSubmitted:I.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:ce?{}:I.keepDirtyValues?I.keepDefaultValues&&u?di(l,u):r.dirtyFields:I.keepDefaultValues&&O?di(l,O):I.keepDirty?r.dirtyFields:{},touchedFields:I.keepTouched?r.touchedFields:{},errors:I.keepErrors?r.errors:{},isSubmitSuccessful:I.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:l})},Qa=(O,I)=>Ka(hn(O)?O(u):O,{...n.resetOptions,...I}),Jt=(O,I={})=>{const Y=he(s,O),ge=Y&&Y._f;if(ge){const ce=ge.refs?ge.refs[0]:ge.ref;ce.focus&&setTimeout(()=>{ce.focus(),I.shouldSelect&&hn(ce.select)&&ce.select()})}},sd=O=>{r={...r,...O}},Li={control:{register:We,unregister:Ce,getFieldState:re,handleSubmit:bt,setError:me,_subscribe:fe,_runSchema:H,_updateIsValidating:A,_focusError:$e,_getWatch:oe,_getDirty:ee,_setValid:S,_setFieldArray:T,_setDisabledField:Le,_setErrors:F,_getFieldArray:te,_reset:Ka,_resetDefaultValues:()=>hn(n.defaultValues)&&n.defaultValues().then(O=>{Qa(O,n.resetOptions),E.state.next({isLoading:!1})}),_removeUnmounted:be,_disableForm:rt,_subjects:E,_proxyFormState:x,get _fields(){return s},get _formValues(){return u},get _state(){return f},set _state(O){f=O},get _defaultValues(){return l},get _names(){return h},set _names(O){h=O},get _formState(){return r},get _options(){return n},set _options(O){n={...n,...O}}},subscribe:le,trigger:N,register:We,handleSubmit:bt,watch:Se,setValue:$,getValues:K,reset:Qa,resetField:Ht,clearErrors:ne,unregister:Ce,setError:me,setFocus:Jt,getFieldState:re};return{...Li,formControl:Li}}function J6(e={}){const n=xe.useRef(void 0),r=xe.useRef(void 0),[s,l]=xe.useState({isDirty:!1,isValidating:!1,isLoading:hn(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:hn(e.defaultValues)?void 0:e.defaultValues});if(!n.current)if(e.formControl)n.current={...e.formControl,formState:s},e.defaultValues&&!hn(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:f,...h}=W6(e);n.current={...h,formState:s}}const u=n.current.control;return u._options=e,Pp(()=>{const f=u._subscribe({formState:u._proxyFormState,callback:()=>l({...u._formState}
53),reRenderRoot:!0});return l(h=>({...h,isReady:!0})),u._formState.isReady=!0,f},[u]),xe.useEffect(()=>u._disableForm(e.disabled),[u,e.disabled]),xe.useEffect(()=>{e.mode&&(u._options.mode=e.mode),e.reValidateMode&&(u._options.reValidateMode=e.reValidateMode)},[u,e.mode,e.reValidateMode]),xe.useEffect(()=>{e.errors&&(u._setErrors(e.errors),u._focusError())},[u,e.errors]),xe.useEffect(()=>{e.shouldUnregister&&u._subjects.state.next({values:u._getWatch()})},[u,e.shouldUnregister]),xe.useEffect(()=>{if(u._proxyFormState.isDirty){const f=u._getDirty();f!==s.isDirty&&u._subjects.state.next({isDirty:f})}},[u,s.isDirty]),xe.useEffect(()=>{var f;e.values&&!aa(e.values,r.current)?(u._reset(e.values,{keepFieldsRef:!0,...u._options.resetOptions}),!((f=u._options.resetOptions)===null||f===void 0)&&f.keepIsValid||u._setValid(),r.current=e.values,l(h=>({...h}))):u._resetDefaultValues()},[u,e.values]),xe.useEffect(()=>{u._state.mount||(u._setValid(),u._state.mount=!0),u._state.watch&&(u._state.watch=!1,u._subjects.state.next({...u._formState})),u._removeUnmounted()}),n.current.formState=xe.useMemo(()=>IE(s,u),[u,s]),n.current}const v0=(e,n,r)=>{if(e&&"reportValidity"in e){const s=he(r,n);e.setCustomValidity(s&&s.message||""),e.reportValidity()}},QE=(e,n)=>{for(const r in n.fields){const s=n.fields[r];s&&s.ref&&"reportValidity"in s.ref?v0(s.ref,r,e):s.refs&&s.refs.forEach(l=>v0(l,r,e))}},eL=(e,n)=>{n.shouldUseNativeValidation&&QE(e,n);const r={};for(const s in e){const l=he(n.fields,s),u=Object.assign(e[s]||{},{ref:l&&l.ref});if(tL(n.names||Object.keys(e),s)){const f=Object.assign({},he(r,s));ct(f,"root",u),ct(r,s,f)}else ct(r,s,u)}return r},tL=(e,n)=>e.some(r=>r.startsWith(n+"."));var nL=function(e,n){for(var r={};e.length;){var s=e[0],l=s.code,u=s.message,f=s.path.join(".");if(!r[f])if("unionErrors"in s){var h=s.unionErrors[0].errors[0];r[f]={message:h.message,type:h.code}}else r[f]={message:u,type:l};if("unionErrors"in s&&s.unionErrors.forEach(function(y){return y.errors.forEach(function(x){return e.push(x)})}),n){var p=r[f].types,g=p&&p[s.code];r[f]=VE(f,n,r,l,g?[].concat(g,s.message):s.message)}e.shift()}return r},aL=function(e,n,r){return r===void 0&&(r={}),function(s,l,u){try{return Promise.resolve((function(f,h){try{var p=Promise.resolve(e[r.mode==="sync"?"parse":"parseAsync"](s,n)).then(function(g){return u.shouldUseNativeValidation&&QE({},u),{errors:{},values:r.raw?s:g}})}catch(g){return h(g)}return p&&p.then?p.then(void 0,h):p})(0,function(f){if((function(h){return Array.isArray(h?.errors)})(f))return{values:{},errors:eL(nL(f.errors,!u.shouldUseNativeValidation&&u.criteriaMode==="all"),u)};throw f}))}catch(f){return Promise.reject(f)}}},at;(function(e){e.assertEqual=l=>{};function n(l){}e.assertIs=n;function r(l){throw new Error}e.assertNever=r,e.arrayToEnum=l=>{const u={};for(const f of l)u[f]=f;return u},e.getValidEnumValues=l=>{const u=e.objectKeys(l).filter(h=>typeof l[l[h]]!="number"),f={};for(const h of u)f[h]=l[h];return e.objectValues(f)},e.objectValues=l=>e.objectKeys(l).map(function(u){return l[u]}),e.objectKeys=typeof Object.keys=="function"?l=>Object.keys(l):l=>{const u=[];for(const f in l)Object.prototype.hasOwnProperty.call(l,f)&&u.push(f);return u},e.find=(l,u)=>{for(const f of l)if(u(f))return f},e.isInteger=typeof Number.isInteger=="function"?l=>Number.isInteger(l):l=>typeof l=="number"&&Number.isFinite(l)&&Math.floor(l)===l;function s(l,u=" | "){return l.map(f=>typeof f=="string"?`'${f}'`:f).join(u)}e.joinValues=s,e.jsonStringifyReplacer=(l,u)=>typeof u=="bigint"?u.toString():u})(at||(at={}));var x0;(function(e){e.mergeShapes=(n,r)=>({...n,...r})})(x0||(x0={}));const Ee=at.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Nr=e=>{switch(typeof e){case"undefined":return Ee.undefined;case"string":return Ee.string;case"number":return Number.isNaN(e)?Ee.nan:Ee.number;case"boolean":return Ee.boolean;case"function":return Ee.function;case"bigint":return Ee.bigint;case"symbol":return Ee.symbol;case"object":return Array.isArray(e)?Ee.array:e===null?Ee.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?Ee.promise:typeof Map<"u"&&e instanceof Map?Ee.map:typeof Set<"u"&&e instanceof Set?Ee.set:typeof Date<"u"&&e instanceof Date?Ee.date:Ee.object;default:return Ee.unknown}}
vendor: 16,343 bytes, line 53
53,se=at.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 Ga extends Error{get errors(){return this.issues}constructor(n){super(),this.issues=[],this.addIssue=s=>{this.issues=[...this.issues,s]},this.addIssues=(s=[])=>{this.issues=[...this.issues,...s]};const r=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,r):this.__proto__=r,this.name="ZodError",this.issues=n}format(n){const r=n||function(u){return u.message},s={_errors:[]},l=u=>{for(const f of u.issues)if(f.code==="invalid_union")f.unionErrors.map(l);else if(f.code==="invalid_return_type")l(f.returnTypeError);else if(f.code==="invalid_arguments")l(f.argumentsError);else if(f.path.length===0)s._errors.push(r(f));else{let h=s,p=0;for(;p<f.path.length;){const g=f.path[p];p===f.path.length-1?(h[g]=h[g]||{_errors:[]},h[g]._errors.push(r(f))):h[g]=h[g]||{_errors:[]},h=h[g],p++}}};return l(this),s}static assert(n){if(!(n instanceof Ga))throw new Error(`Not a ZodError: ${n}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,at.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(n=r=>r.message){const r={},s=[];for(const l of this.issues)if(l.path.length>0){const u=l.path[0];r[u]=r[u]||[],r[u].push(n(l))}else s.push(n(l));return{formErrors:s,fieldErrors:r}}get formErrors(){return this.flatten()}}Ga.create=e=>new Ga(e);const Am=(e,n)=>{let r;switch(e.code){case se.invalid_type:e.received===Ee.undefined?r="Required":r=`Expected ${e.expected}, received ${e.received}`;break;case se.invalid_literal:r=`Invalid literal value, expected ${JSON.stringify(e.expected,at.jsonStringifyReplacer)}`;break;case se.unrecognized_keys:r=`Unrecognized key(s) in object: ${at.joinValues(e.keys,", ")}`;break;case se.invalid_union:r="Invalid input";break;case se.invalid_union_discriminator:r=`Invalid discriminator value. Expected ${at.joinValues(e.options)}`;break;case se.invalid_enum_value:r=`Invalid enum value. Expected ${at.joinValues(e.options)}, received '${e.received}'`;break;case se.invalid_arguments:r="Invalid function arguments";break;case se.invalid_return_type:r="Invalid function return type";break;case se.invalid_date:r="Invalid date";break;case se.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(r=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(r=`${r} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?r=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?r=`Invalid input: must end with "${e.validation.endsWith}"`:at.assertNever(e.validation):e.validation!=="regex"?r=`Invalid ${e.validation}`:r="Invalid";break;case se.too_small:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?r=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:r="Invalid input";break;case se.too_big:e.type==="array"?r=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?r=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?r=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?r=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?r=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:r="Invalid input";break;case se.custom:r="Invalid input";break;case se.invalid_intersection_types:r="Intersection results could not be merged";break;case se.not_multiple_of:r=`Number must be a multiple of ${e.multipleOf}`;break;case se.not_finite:r="Number must be finite";break;default:r=n.defaultError,at.assertNever(e)}return{message:r}};let rL=Am;function sL(){return rL}const iL=e=>{const{data:n,path:r,errorMaps:s,issueData:l}=e,u=[...r,...l.path||[]],f={...l,path:u};if(l.message!==void 0)return{...l,path:u,message:l.message};let h="";const p=s.filter(g=>!!g).slice().reverse();for(const g of p)h=g(f,{data:n,defaultError:h}).message;return{...l,path:u,message:h}};function ye(e,n){const r=sL(),s=iL({issueData:n,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,r,r===Am?void 0:Am].filter(l=>!!l)});e.common.issues.push(s)}class Fn{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(n,r){const s=[];for(const l of r){if(l.status==="aborted")return Pe;l.status==="dirty"&&n.dirty(),s.push(l.value)}return{status:n.value,value:s}}static async mergeObjectAsync(n,r){const s=[];for(const l of r){const u=await l.key,f=await l.value;s.push({key:u,value:f})}return Fn.mergeObjectSync(n,s)}static mergeObjectSync(n,r){const s={};for(const l of r){const{key:u,value:f}=l;if(u.status==="aborted"||f.status==="aborted")return Pe;u.status==="dirty"&&n.dirty(),f.status==="dirty"&&n.dirty(),u.value!=="__proto__"&&(typeof f.value<"u"||l.alwaysSet)&&(s[u.value]=f.value)}return{status:n.value,value:s}}}const Pe=Object.freeze({status:"aborted"}),Bo=e=>({status:"dirty",value:e}),Zn=e=>({status:"valid",value:e}),b0=e=>e.status==="aborted",w0=e=>e.status==="dirty",wi=e=>e.status==="valid",yu=e=>typeof Promise<"u"&&e instanceof Promise;var Ne;(function(e){e.errToObj=n=>typeof n=="string"?{message:n}:n||{},e.toString=n=>typeof n=="string"?n:n?.message})(Ne||(Ne={}));class kr{constructor(n,r,s,l){this._cachedPath=[],this.parent=n,this.data=r,this._path=s,this._key=l}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 j0=(e,n)=>{if(wi(n))return{success:!0,data:n.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 r=new Ga(e.common.issues);return this._error=r,this._error}}};function Qe(e){if(!e)return{};const{errorMap:n,invalid_type_error:r,required_error:s,description:l}=e;if(n&&(r||s))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return n?{errorMap:n,description:l}:{errorMap:(f,h)=>{const{message:p}=e;return f.code==="invalid_enum_value"?{message:p??h.defaultError}:typeof h.data>"u"?{message:p??s??h.defaultError}:f.code!=="invalid_type"?{message:h.defaultError}:{message:p??r??h.defaultError}},description:l}}class tt{get description(){return this._def.description}_getType(n){return Nr(n.data)}_getOrReturnCtx(n,r){return r||{common:n.parent.common,data:n.data,parsedType:Nr(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}_processInputParams(n){return{status:new Fn,ctx:{common:n.parent.common,data:n.data,parsedType:Nr(n.data),schemaErrorMap:this._def.errorMap,path:n.path,parent:n.parent}}}_parseSync(n){const r=this._parse(n);if(yu(r))throw new Error("Synchronous parse encountered promise.");return r}_parseAsync(n){const r=this._parse(n);return Promise.resolve(r)}parse(n,r){const s=this.safeParse(n,r);if(s.success)return s.data;throw s.error}safeParse(n,r){const s={common:{issues:[],async:r?.async??!1,contextualErrorMap:r?.errorMap},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Nr(n)},l=this._parseSync({data:n,path:s.path,parent:s});return j0(s,l)}"~validate"(n){const r={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Nr(n)};if(!this["~standard"].async)try{const s=this._parseSync({data:n,path:[],parent:r});return wi(s)?{value:s.value}:{issues:r.common.issues}}catch(s){s?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),r.common={issues:[],async:!0}}return this._parseAsync({data:n,path:[],parent:r}).then(s=>wi(s)?{value:s.value}:{issues:r.common.issues})}async parseAsync(n,r){const s=await this.safeParseAsync(n,r);if(s.success)return s.data;throw s.error}async safeParseAsync(n,r){const s={common:{issues:[],contextualErrorMap:r?.errorMap,async:!0},path:r?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:n,parsedType:Nr(n)},l=this._parse({data:n,path:s.path,parent:s}),u=await(yu(l)?l:Promise.resolve(l));return j0(s,u)}refine(n,r){const s=l=>typeof r=="string"||typeof r>"u"?{message:r}:typeof r=="function"?r(l):r;return this._refinement((l,u)=>{const f=n(l),h=()=>u.addIssue({code:se.custom,...s(l)});return typeof Promise<"u"&&f instanceof Promise?f.then(p=>p?!0:(h(),!1)):f?!0:(h(),!1)})}refinement(n,r){return this._refinement((s,l)=>n(s)?!0:(l.addIssue(typeof r=="function"?r(s,l):r),!1))}_refinement(n){return new _i({schema:this,typeName:ze.ZodEffects,effect:{type:"refinement",refinement:n}})}superRefine(n){return this._refinement(n)}constructor(n){this.spa=this.safeParseAsync,this._def=n,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:r=>this["~validate"](r)}}optional(){return Ar.create(this,this._def)}nullable(){return Ei.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return ba.create(this)}promise(){return wu.create(this,this._def)}or(n){return xu.create([this,n],this._def)}and(n){return bu.create(this,n,this._def)}transform(n){return new _i({...Qe(this._def),schema:this,typeName:ze.ZodEffects,effect:{type:"transform",transform:n}})}default(n){const r=typeof n=="function"?n:()=>n;return new Mm({...Qe(this._def),innerType:this,defaultValue:r,typeName:ze.ZodDefault})}brand(){return new AL({typeName:ze.ZodBranded,type:this,...Qe(this._def)})}catch(n){const r=typeof n=="function"?n:()=>n;return new km({...Qe(this._def),innerType:this,catchValue:r,typeName:ze.ZodCatch})}describe(n){const r=this.constructor;return new r({...this._def,description:n})}pipe(n){return Ip.create(this,n)}readonly(){return Dm.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}}const oL=/^c[^\s-]{8,}$/i,lL=/^[0-9a-z]+$/,cL=/^[0-9A-HJKMNP-TV-Z]{26}$/i,uL=/^[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,dL=/^[a-z0-9_-]{21}$/i,fL=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,hL=/^[-+]?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)?)??$/,mL=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,pL="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";let Yh;const gL=/^(?:(?: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])$/,yL=/^(?:(?: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])$/,vL=/^(([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]))$/,xL=/^(([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])$/,bL=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,wL=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ZE="((\\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])))",jL=new RegExp(`^${ZE}$`);function XE(e){let n="[0-5]\\d";e.precision?n=`${n}\\.\\d{${e.precision}}`:e.precision==null&&(n=`${n}(\\.\\d+)?`);const r=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${n})${r}`}function _L(e){return new RegExp(`^${XE(e)}$`)}function EL(e){let n=`${ZE}T${XE(e)}`;const r=[];return r.push(e.local?"Z?":"Z"),e.offset&&r.push("([+-]\\d{2}:?\\d{2})"),n=`${n}(${r.join("|")})`,new RegExp(`^${n}$`)}function SL(e,n){return!!((n==="v4"||!n)&&gL.test(e)||(n==="v6"||!n)&&vL.test(e))}function NL(e,n){if(!fL.test(e))return!1;try{const[r]=e.split(".");if(!r)return!1;const s=r.replace(/-/g,"+").replace(/_/g,"/").padEnd(r.length+(4-r.length%4)%4,"="),l=JSON.parse(atob(s));return!(typeof l!="object"||l===null||"typ"in l&&l?.typ!=="JWT"||!l.alg||n&&l.alg!==n)}catch{return!1}}function CL(e,n){return!!((n==="v4"||!n)&&yL.test(e)||(n==="v6"||!n)&&xL.test(e))}class Cr extends tt{_parse(n){if(this._def.coerce&&(n.data=String(n.data)),this._getType(n)!==Ee.string){const u=this._getOrReturnCtx(n);return ye(u,{code:se.invalid_type,expected:Ee.string,received:u.parsedType}),Pe}const s=new Fn;let l;for(const u of this._def.checks)if(u.kind==="min")n.data.length<u.value&&(l=this._getOrReturnCtx(n,l),ye(l,{code:se.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if(u.kind==="max")n.data.length>u.value&&(l=this._getOrReturnCtx(n,l),ye(l,{code:se.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!1,message:u.message}),s.dirty());else if(u.kind==="length"){const f=n.data.length>u.value,h=n.data.length<u.value;(f||h)&&(l=this._getOrReturnCtx(n,l),f?ye(l,{code:se.too_big,maximum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}):h&&ye(l,{code:se.too_small,minimum:u.value,type:"string",inclusive:!0,exact:!0,message:u.message}),s.dirty())}else if(u.kind==="email")mL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{val
vendor: 5,912 bytes, line 53
53idation:"email",code:se.invalid_string,message:u.message}),s.dirty());else if(u.kind==="emoji")Yh||(Yh=new RegExp(pL,"u")),Yh.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"emoji",code:se.invalid_string,message:u.message}),s.dirty());else if(u.kind==="uuid")uL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"uuid",code:se.invalid_string,message:u.message}),s.dirty());else if(u.kind==="nanoid")dL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"nanoid",code:se.invalid_string,message:u.message}),s.dirty());else if(u.kind==="cuid")oL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"cuid",code:se.invalid_string,message:u.message}),s.dirty());else if(u.kind==="cuid2")lL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"cuid2",code:se.invalid_string,message:u.message}),s.dirty());else if(u.kind==="ulid")cL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"ulid",code:se.invalid_string,message:u.message}),s.dirty());else if(u.kind==="url")try{new URL(n.data)}catch{l=this._getOrReturnCtx(n,l),ye(l,{validation:"url",code:se.invalid_string,message:u.message}),s.dirty()}else u.kind==="regex"?(u.regex.lastIndex=0,u.regex.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"regex",code:se.invalid_string,message:u.message}),s.dirty())):u.kind==="trim"?n.data=n.data.trim():u.kind==="includes"?n.data.includes(u.value,u.position)||(l=this._getOrReturnCtx(n,l),ye(l,{code:se.invalid_string,validation:{includes:u.value,position:u.position},message:u.message}),s.dirty()):u.kind==="toLowerCase"?n.data=n.data.toLowerCase():u.kind==="toUpperCase"?n.data=n.data.toUpperCase():u.kind==="startsWith"?n.data.startsWith(u.value)||(l=this._getOrReturnCtx(n,l),ye(l,{code:se.invalid_string,validation:{startsWith:u.value},message:u.message}),s.dirty()):u.kind==="endsWith"?n.data.endsWith(u.value)||(l=this._getOrReturnCtx(n,l),ye(l,{code:se.invalid_string,validation:{endsWith:u.value},message:u.message}),s.dirty()):u.kind==="datetime"?EL(u).test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{code:se.invalid_string,validation:"datetime",message:u.message}),s.dirty()):u.kind==="date"?jL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{code:se.invalid_string,validation:"date",message:u.message}),s.dirty()):u.kind==="time"?_L(u).test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{code:se.invalid_string,validation:"time",message:u.message}),s.dirty()):u.kind==="duration"?hL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"duration",code:se.invalid_string,message:u.message}),s.dirty()):u.kind==="ip"?SL(n.data,u.version)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"ip",code:se.invalid_string,message:u.message}),s.dirty()):u.kind==="jwt"?NL(n.data,u.alg)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"jwt",code:se.invalid_string,message:u.message}),s.dirty()):u.kind==="cidr"?CL(n.data,u.version)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"cidr",code:se.invalid_string,message:u.message}),s.dirty()):u.kind==="base64"?bL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"base64",code:se.invalid_string,message:u.message}),s.dirty()):u.kind==="base64url"?wL.test(n.data)||(l=this._getOrReturnCtx(n,l),ye(l,{validation:"base64url",code:se.invalid_string,message:u.message}),s.dirty()):at.assertNever(u);return{status:s.value,value:n.data}}_regex(n,r,s){return this.refinement(l=>n.test(l),{validation:r,code:se.invalid_string,...Ne.errToObj(s)})}_addCheck(n){return new Cr({...this._def,checks:[...this._def.checks,n]})}email(n){return this._addCheck({kind:"email",...Ne.errToObj(n)})}url(n){return this._addCheck({kind:"url",...Ne.errToObj(n)})}emoji(n){return this._addCheck({kind:"emoji",...Ne.errToObj(n)})}uuid(n){return this._addCheck({kind:"uuid",...Ne.errToObj(n)})}nanoid(n){return this._addCheck({kind:"nanoid",...Ne.errToObj(n)})}cuid(n){return this._addCheck({kind:"cuid",...Ne.errToObj(n)})}cuid2(n){return this._addCheck({kind:"cuid2",...Ne.errToObj(n)})}ulid(n){return this._addCheck({kind:"ulid",...Ne.errToObj(n)})}base64(n){return this._addCheck({kind:"base64",...Ne.errToObj(n)})}base64url(n){return this._addCheck({kind:"base64url",...Ne.errToObj(n)})}jwt(n){return this._addCheck({kind:"jwt",...Ne.errToObj(n)})}ip(n){return this._addCheck({kind:"ip",...Ne.errToObj(n)})}cidr(n){return this._addCheck({kind:"cidr",...Ne.errToObj(n)})}datetime(n){return typeof n=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:n}):this._addCheck({kind:"datetime",precision:typeof n?.precision>"u"?null:n?.precision,offset:n?.offset??!1,local:n?.local??!1,...Ne.errToObj(n?.message)})}date(n){return this._addCheck({kind:"date",message:n})}time(n){return typeof n=="string"?this._addCheck({kind:"time",precision:null,message:n}):this._addCheck({kind:"time",precision:typeof n?.precision>"u"?null:n?.precision,...Ne.errToObj(n?.message)})}duration(n){return this._addCheck({kind:"duration",...Ne.errToObj(n)})}regex(n,r){return this._addCheck({kind:"regex",regex:n,...Ne.errToObj(r)})}includes(n,r){return this._addCheck({kind:"includes",value:n,position:r?.position,...Ne.errToObj(r?.message)})}startsWith(n,r){return this._addCheck({kind:"startsWith",value:n,...Ne.errToObj(r)})}endsWith(n,r){return this._addCheck({kind:"endsWith",value:n,...Ne.errToObj(r)})}min(n,r){return this._addCheck({kind:"min",value:n,...Ne.errToObj(r)})}max(n,r){return this._addCheck({kind:"max",value:n,...Ne.errToObj(r)})}length(n,r){return this._addCheck({kind:"length",value:n,...Ne.errToObj(r)})}nonempty(n){return this.min(1,Ne.errToObj(n))}trim(){return new Cr({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new Cr({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new Cr({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(n=>n.kind==="datetime")}
vendor: 23,300 bytes, line 53
53get isDate(){return!!this._def.checks.find(n=>n.kind==="date")}get isTime(){return!!this._def.checks.find(n=>n.kind==="time")}get isDuration(){return!!this._def.checks.find(n=>n.kind==="duration")}get isEmail(){return!!this._def.checks.find(n=>n.kind==="email")}get isURL(){return!!this._def.checks.find(n=>n.kind==="url")}get isEmoji(){return!!this._def.checks.find(n=>n.kind==="emoji")}get isUUID(){return!!this._def.checks.find(n=>n.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(n=>n.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(n=>n.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(n=>n.kind==="cuid2")}get isULID(){return!!this._def.checks.find(n=>n.kind==="ulid")}get isIP(){return!!this._def.checks.find(n=>n.kind==="ip")}get isCIDR(){return!!this._def.checks.find(n=>n.kind==="cidr")}get isBase64(){return!!this._def.checks.find(n=>n.kind==="base64")}get isBase64url(){return!!this._def.checks.find(n=>n.kind==="base64url")}get minLength(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxLength(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}Cr.create=e=>new Cr({checks:[],typeName:ze.ZodString,coerce:e?.coerce??!1,...Qe(e)});function TL(e,n){const r=(e.toString().split(".")[1]||"").length,s=(n.toString().split(".")[1]||"").length,l=r>s?r:s,u=Number.parseInt(e.toFixed(l).replace(".","")),f=Number.parseInt(n.toFixed(l).replace(".",""));return u%f/10**l}class nl extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(n){if(this._def.coerce&&(n.data=Number(n.data)),this._getType(n)!==Ee.number){const u=this._getOrReturnCtx(n);return ye(u,{code:se.invalid_type,expected:Ee.number,received:u.parsedType}),Pe}let s;const l=new Fn;for(const u of this._def.checks)u.kind==="int"?at.isInteger(n.data)||(s=this._getOrReturnCtx(n,s),ye(s,{code:se.invalid_type,expected:"integer",received:"float",message:u.message}),l.dirty()):u.kind==="min"?(u.inclusive?n.data<u.value:n.data<=u.value)&&(s=this._getOrReturnCtx(n,s),ye(s,{code:se.too_small,minimum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),l.dirty()):u.kind==="max"?(u.inclusive?n.data>u.value:n.data>=u.value)&&(s=this._getOrReturnCtx(n,s),ye(s,{code:se.too_big,maximum:u.value,type:"number",inclusive:u.inclusive,exact:!1,message:u.message}),l.dirty()):u.kind==="multipleOf"?TL(n.data,u.value)!==0&&(s=this._getOrReturnCtx(n,s),ye(s,{code:se.not_multiple_of,multipleOf:u.value,message:u.message}),l.dirty()):u.kind==="finite"?Number.isFinite(n.data)||(s=this._getOrReturnCtx(n,s),ye(s,{code:se.not_finite,message:u.message}),l.dirty()):at.assertNever(u);return{status:l.value,value:n.data}}gte(n,r){return this.setLimit("min",n,!0,Ne.toString(r))}gt(n,r){return this.setLimit("min",n,!1,Ne.toString(r))}lte(n,r){return this.setLimit("max",n,!0,Ne.toString(r))}lt(n,r){return this.setLimit("max",n,!1,Ne.toString(r))}setLimit(n,r,s,l){return new nl({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:s,message:Ne.toString(l)}]})}_addCheck(n){return new nl({...this._def,checks:[...this._def.checks,n]})}int(n){return this._addCheck({kind:"int",message:Ne.toString(n)})}positive(n){return this._addCheck({kind:"min",value:0,inclusive:!1,message:Ne.toString(n)})}negative(n){return this._addCheck({kind:"max",value:0,inclusive:!1,message:Ne.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:0,inclusive:!0,message:Ne.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:0,inclusive:!0,message:Ne.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:Ne.toString(r)})}finite(n){return this._addCheck({kind:"finite",message:Ne.toString(n)})}safe(n){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:Ne.toString(n)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:Ne.toString(n)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}get isInt(){return!!this._def.checks.find(n=>n.kind==="int"||n.kind==="multipleOf"&&at.isInteger(n.value))}get isFinite(){let n=null,r=null;for(const s of this._def.checks){if(s.kind==="finite"||s.kind==="int"||s.kind==="multipleOf")return!0;s.kind==="min"?(r===null||s.value>r)&&(r=s.value):s.kind==="max"&&(n===null||s.value<n)&&(n=s.value)}return Number.isFinite(r)&&Number.isFinite(n)}}nl.create=e=>new nl({checks:[],typeName:ze.ZodNumber,coerce:e?.coerce||!1,...Qe(e)});class al extends tt{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(n){if(this._def.coerce)try{n.data=BigInt(n.data)}catch{return this._getInvalidInput(n)}if(this._getType(n)!==Ee.bigint)return this._getInvalidInput(n);let s;const l=new Fn;for(const u of this._def.checks)u.kind==="min"?(u.inclusive?n.data<u.value:n.data<=u.value)&&(s=this._getOrReturnCtx(n,s),ye(s,{code:se.too_small,type:"bigint",minimum:u.value,inclusive:u.inclusive,message:u.message}),l.dirty()):u.kind==="max"?(u.inclusive?n.data>u.value:n.data>=u.value)&&(s=this._getOrReturnCtx(n,s),ye(s,{code:se.too_big,type:"bigint",maximum:u.value,inclusive:u.inclusive,message:u.message}),l.dirty()):u.kind==="multipleOf"?n.data%u.value!==BigInt(0)&&(s=this._getOrReturnCtx(n,s),ye(s,{code:se.not_multiple_of,multipleOf:u.value,message:u.message}),l.dirty()):at.assertNever(u);return{status:l.value,value:n.data}}_getInvalidInput(n){const r=this._getOrReturnCtx(n);return ye(r,{code:se.invalid_type,expected:Ee.bigint,received:r.parsedType}),Pe}gte(n,r){return this.setLimit("min",n,!0,Ne.toString(r))}gt(n,r){return this.setLimit("min",n,!1,Ne.toString(r))}lte(n,r){return this.setLimit("max",n,!0,Ne.toString(r))}lt(n,r){return this.setLimit("max",n,!1,Ne.toString(r))}setLimit(n,r,s,l){return new al({...this._def,checks:[...this._def.checks,{kind:n,value:r,inclusive:s,message:Ne.toString(l)}]})}_addCheck(n){return new al({...this._def,checks:[...this._def.checks,n]})}positive(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:Ne.toString(n)})}negative(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:Ne.toString(n)})}nonpositive(n){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:Ne.toString(n)})}nonnegative(n){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:Ne.toString(n)})}multipleOf(n,r){return this._addCheck({kind:"multipleOf",value:n,message:Ne.toString(r)})}get minValue(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n}get maxValue(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n}}al.create=e=>new al({checks:[],typeName:ze.ZodBigInt,coerce:e?.coerce??!1,...Qe(e)});class _0 extends tt{_parse(n){if(this._def.coerce&&(n.data=!!n.data),this._getType(n)!==Ee.boolean){const s=this._getOrReturnCtx(n);return ye(s,{code:se.invalid_type,expected:Ee.boolean,received:s.parsedType}),Pe}return Zn(n.data)}}_0.create=e=>new _0({typeName:ze.ZodBoolean,coerce:e?.coerce||!1,...Qe(e)});class vu extends tt{_parse(n){if(this._def.coerce&&(n.data=new Date(n.data)),this._getType(n)!==Ee.date){const u=this._getOrReturnCtx(n);return ye(u,{code:se.invalid_type,expected:Ee.date,received:u.parsedType}),Pe}if(Number.isNaN(n.data.getTime())){const u=this._getOrReturnCtx(n);return ye(u,{code:se.invalid_date}),Pe}const s=new Fn;let l;for(const u of this._def.checks)u.kind==="min"?n.data.getTime()<u.value&&(l=this._getOrReturnCtx(n,l),ye(l,{code:se.too_small,message:u.message,inclusive:!0,exact:!1,minimum:u.value,type:"date"}),s.dirty()):u.kind==="max"?n.data.getTime()>u.value&&(l=this._getOrReturnCtx(n,l),ye(l,{code:se.too_big,message:u.message,inclusive:!0,exact:!1,maximum:u.value,type:"date"}),s.dirty()):at.assertNever(u);return{status:s.value,value:new Date(n.data.getTime())}}_addCheck(n){return new vu({...this._def,checks:[...this._def.checks,n]})}min(n,r){return this._addCheck({kind:"min",value:n.getTime(),message:Ne.toString(r)})}max(n,r){return this._addCheck({kind:"max",value:n.getTime(),message:Ne.toString(r)})}get minDate(){let n=null;for(const r of this._def.checks)r.kind==="min"&&(n===null||r.value>n)&&(n=r.value);return n!=null?new Date(n):null}get maxDate(){let n=null;for(const r of this._def.checks)r.kind==="max"&&(n===null||r.value<n)&&(n=r.value);return n!=null?new Date(n):null}}vu.create=e=>new vu({checks:[],coerce:e?.coerce||!1,typeName:ze.ZodDate,...Qe(e)});class E0 extends tt{_parse(n){if(this._getType(n)!==Ee.symbol){const s=this._getOrReturnCtx(n);return ye(s,{code:se.invalid_type,expected:Ee.symbol,received:s.parsedType}),Pe}return Zn(n.data)}}E0.create=e=>new E0({typeName:ze.ZodSymbol,...Qe(e)});class S0 extends tt{_parse(n){if(this._getType(n)!==Ee.undefined){const s=this._getOrReturnCtx(n);return ye(s,{code:se.invalid_type,expected:Ee.undefined,received:s.parsedType}),Pe}return Zn(n.data)}}S0.create=e=>new S0({typeName:ze.ZodUndefined,...Qe(e)});class N0 extends tt{_parse(n){if(this._getType(n)!==Ee.null){const s=this._getOrReturnCtx(n);return ye(s,{code:se.invalid_type,expected:Ee.null,received:s.parsedType}),Pe}return Zn(n.data)}}N0.create=e=>new N0({typeName:ze.ZodNull,...Qe(e)});class C0 extends tt{constructor(){super(...arguments),this._any=!0}_parse(n){return Zn(n.data)}}C0.create=e=>new C0({typeName:ze.ZodAny,...Qe(e)});class T0 extends tt{constructor(){super(...arguments),this._unknown=!0}_parse(n){return Zn(n.data)}}T0.create=e=>new T0({typeName:ze.ZodUnknown,...Qe(e)});class Dr extends tt{_parse(n){const r=this._getOrReturnCtx(n);return ye(r,{code:se.invalid_type,expected:Ee.never,received:r.parsedType}),Pe}}Dr.create=e=>new Dr({typeName:ze.ZodNever,...Qe(e)});class A0 extends tt{_parse(n){if(this._getType(n)!==Ee.undefined){const s=this._getOrReturnCtx(n);return ye(s,{code:se.invalid_type,expected:Ee.void,received:s.parsedType}),Pe}return Zn(n.data)}}A0.create=e=>new A0({typeName:ze.ZodVoid,...Qe(e)});class ba extends tt{_parse(n){const{ctx:r,status:s}=this._processInputParams(n),l=this._def;if(r.parsedType!==Ee.array)return ye(r,{code:se.invalid_type,expected:Ee.array,received:r.parsedType}),Pe;if(l.exactLength!==null){const f=r.data.length>l.exactLength.value,h=r.data.length<l.exactLength.value;(f||h)&&(ye(r,{code:f?se.too_big:se.too_small,minimum:h?l.exactLength.value:void 0,maximum:f?l.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:l.exactLength.message}),s.dirty())}if(l.minLength!==null&&r.data.length<l.minLength.value&&(ye(r,{code:se.too_small,minimum:l.minLength.value,type:"array",inclusive:!0,exact:!1,message:l.minLength.message}),s.dirty()),l.maxLength!==null&&r.data.length>l.maxLength.value&&(ye(r,{code:se.too_big,maximum:l.maxLength.value,type:"array",inclusive:!0,exact:!1,message:l.maxLength.message}),s.dirty()),r.common.async)return Promise.all([...r.data].map((f,h)=>l.type._parseAsync(new kr(r,f,r.path,h)))).then(f=>Fn.mergeArray(s,f));const u=[...r.data].map((f,h)=>l.type._parseSync(new kr(r,f,r.path,h)));return Fn.mergeArray(s,u)}get element(){return this._def.type}min(n,r){return new ba({...this._def,minLength:{value:n,message:Ne.toString(r)}})}max(n,r){return new ba({...this._def,maxLength:{value:n,message:Ne.toString(r)}})}length(n,r){return new ba({...this._def,exactLength:{value:n,message:Ne.toString(r)}})}nonempty(n){return this.min(1,n)}}ba.create=(e,n)=>new ba({type:e,minLength:null,maxLength:null,exactLength:null,typeName:ze.ZodArray,...Qe(n)});function fi(e){if(e instanceof Lt){const n={};for(const r in e.shape){const s=e.shape[r];n[r]=Ar.create(fi(s))}return new Lt({...e._def,shape:()=>n})}else return e instanceof ba?new ba({...e._def,type:fi(e.element)}):e instanceof Ar?Ar.create(fi(e.unwrap())):e instanceof Ei?Ei.create(fi(e.unwrap())):e instanceof hs?hs.create(e.items.map(n=>fi(n))):e}class Lt 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 n=this._def.shape(),r=at.objectKeys(n);return this._cached={shape:n,keys:r},this._cached}_parse(n){if(this._getType(n)!==Ee.object){const g=this._getOrReturnCtx(n);return ye(g,{code:se.invalid_type,expected:Ee.object,received:g.parsedType}),Pe}const{status:s,ctx:l}=this._processInputParams(n),{shape:u,keys:f}=this._getCached(),h=[];if(!(this._def.catchall instanceof Dr&&this._def.unknownKeys==="strip"))for(const g in l.data)f.includes(g)||h.push(g);const p=[];for(const g of f){const y=u[g],x=l.data[g];p.push({key:{status:"valid",value:g},value:y._parse(new kr(l,x,l.path,g)),alwaysSet:g in l.data})}if(this._def.catchall instanceof Dr){const g=this._def.unknownKeys;if(g==="passthrough")for(const y of h)p.push({key:{status:"valid",value:y},value:{status:"valid",value:l.data[y]}});else if(g==="strict")h.length>0&&(ye(l,{code:se.unrecognized_keys,keys:h}),s.dirty());else if(g!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{const g=this._def.catchall;for(const y of h){const x=l.data[y];p.push({key:{status:"valid",value:y},value:g._parse(new kr(l,x,l.path,y)),alwaysSet:y in l.data})}}return l.common.async?Promise.resolve().then(async()=>{const g=[];for(const y of p){const x=await y.key,w=await y.value;g.push({key:x,value:w,alwaysSet:y.alwaysSet})}return g}).then(g=>Fn.mergeObjectSync(s,g)):Fn.mergeObjectSync(s,p)}get shape(){return this._def.shape()}strict(n){return Ne.errToObj,new Lt({...this._def,unknownKeys:"strict",...n!==void 0?{errorMap:(r,s)=>{const l=this._def.errorMap?.(r,s).message??s.defaultError;return r.code==="unrecognized_keys"?{message:Ne.errToObj(n).message??l}:{message:l}}}:{}})}strip(){return new Lt({...this._def,unknownKeys:"strip"})}passthrough(){return new Lt({...this._def,unknownKeys:"passthrough"})}extend(n){return new Lt({...this._def,shape:()=>({...this._def.shape(),...n})})}merge(n){return new Lt({unknownKeys:n._def.unknownKeys,catchall:n._def.catchall,shape:()=>({...this._def.shape(),...n._def.shape()}),typeName:ze.ZodObject})}setKey(n,r){return this.augment({[n]:r})}catchall(n){return new Lt({...this._def,catchall:n})}pick(n){const r={};for(const s of at.objectKeys(n))n[s]&&this.shape[s]&&(r[s]=this.shape[s]);return new Lt({...this._def,shape:()=>r})}omit(n){const r={};for(const s of at.objectKeys(this.shape))n[s]||(r[s]=this.shape[s]);return new Lt({...this._def,shape:()=>r})}deepPartial(){return fi(this)}partial(n){const r={};for(const s of at.objectKeys(this.shape)){const l=this.shape[s];n&&!n[s]?r[s]=l:r[s]=l.optional()}return new Lt({...this._def,shape:()=>r})}required(n){const r={};for(const s of at.objectKeys(this.shape))if(n&&!n[s])r[s]=this.shape[s];else{let u=this.shape[s];for(;u instanceof Ar;)u=u._def.innerType;r[s]=u}return new Lt({...this._def,shape:()=>r})}keyof(){return WE(at.objectKeys(this.shape))}}Lt.create=(e,n)=>new Lt({shape:()=>e,unknownKeys:"strip",catchall:Dr.create(),typeName:ze.ZodObject,...Qe(n)});Lt.strictCreate=(e,n)=>new Lt({shape:()=>e,unknownKeys:"strict",catchall:Dr.create(),typeName:ze.ZodObject,...Qe(n)});Lt.lazycreate=(e,n)=>new Lt({shape:e,unknownKeys:"strip",catchall:Dr.create(),typeName:ze.ZodObject,...Qe(n)});class xu extends tt{_parse(n){const{ctx:r}=this._processInputParams(n),s=this._def.options;function l(u){for(const h of u)if(h.result.status==="valid")return h.result;for(const h of u)if(h.result.status==="dirty")return r.common.issues.push(...h.ctx.common.issues),h.result;const f=u.map(h=>new Ga(h.ctx.common.issues));return ye(r,{code:se.invalid_union,unionErrors:f}),Pe}if(r.common.async)return Promise.all(s.map(async u=>{const f={...r,common:{...r.common,issues:[]},parent:null};return{result:await u._parseAsync({data:r.data,path:r.path,parent:f}),ctx:f}})).then(l);{let u;const f=[];for(const p of s){const g={...r,common:{...r.common,issues:[]},parent:null},y=p._parseSync({data:r.data,path:r.path,parent:g});if(y.status==="valid")return y;y.status==="dirty"&&!u&&(u={result:y,ctx:g}),g.common.issues.length&&f.push(g.common.issues)}if(u)return r.common.issues.push(...u.ctx.common.issues),u.result;const h=f.map(p=>new Ga(p));return ye(r,{code:se.invalid_union,unionErrors:h}),Pe}}get options(){return this._def.options}}xu.create=(e,n)=>new xu({options:e,typeName:ze.ZodUnion,...Qe(n)});function Rm(e,n){const r=Nr(e),s=Nr(n);if(e===n)return{valid:!0,data:e};if(r===Ee.object&&s===Ee.object){const l=at.objectKeys(n),u=at.objectKeys(e).filter(h=>l.indexOf(h)!==-1),f={...e,...n};for(const h of u){const p=Rm(e[h],n[h]);if(!p.valid)return{valid:!1};f[h]=p.data}return{valid:!0,data:f}}else if(r===Ee.array&&s===Ee.array){if(e.length!==n.length)return{valid:!1};const l=[];for(let u=0;u<e.length;u++){const f=e[u],h=n[u],p=Rm(f,h);if(!p.valid)return{valid:!1};l.push(p.data)}return{valid:!0,data:l}}else return r===Ee.date&&s===Ee.date&&+e==+n?{valid:!0,data:e}:{valid:!1}}class bu extends tt{_parse(n){const{status:r,ctx:s}=this._processInputParams(n),l=(u,f)=>{if(b0(u)||b0(f))return Pe;const h=Rm(u.value,f.value);return h.valid?((w0(u)||w0(f))&&r.dirty(),{status:r.value,value:h.data}):(ye(s,{code:se.invalid_intersection_types}),Pe)};return s.common.async?Promise.all([this._def.left._parseAsync({data:s.data,path:s.path,parent:s}),this._def.right._parseAsync({data:s.data,path:s.path,parent:s})]).then(([u,f])=>l(u,f)):l(this._def.left._parseSync({data:s.data,path:s.path,parent:s}),this._def.right._parseSync({data:s.data,path:s.path,parent:s}))}}bu.create=(e,n,r)=>new bu({left:e,right:n,typeName:ze.ZodIntersection,...Qe(r)});class hs extends tt{_parse(n){const{status:r,ctx:s}=this._processInputParams(n);if(s.parsedType!==Ee.array)return ye(s,{code:se.invalid_type,expected:Ee.array,received:s.parsedType}),Pe;if(s.data.length<this._def.items.length)return ye(s,{code:se.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),Pe;!this._def.rest&&s.data.length>this._def.items.length&&(ye(s,{code:se.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),r.dirty());const u=[...s.data].map((f,h)=>{const p=this._def.items[h]||this._def.rest;return p?p._parse(new kr(s,f,s.path,h)):null}).filter(f=>!!f);return s.common.async?Promise.all(u).then(f=>Fn.mergeArray(r,f)):Fn.mergeArray(r,u)}get items(){return this._def.items}rest(n){return new hs({...this._def,rest:n})}}hs.create=(e,n)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new hs({items:e,typeName:ze.ZodTuple,rest:null,...Qe(n)})};class R0 extends tt{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(n){const{status:r,ctx:s}=this._processInputParams(n);if(s.parsedType!==Ee.map)return ye(s,{code:se.invalid_type,expected:Ee.map,received:s.parsedType}),Pe;const l=this._def.keyType,u=this._def.valueType,f=[...s.data.entries()].map(([h,p],g)=>({key:l._parse(new kr(s,h,s.path,[g,"key"])),value:u._parse(new kr(s,p,s.path,[g,"value"]))}));if(s.common.async){const h=new Map;return Promise.resolve().then(async()=>{for(const p of f){const g=await p.key,y=await p.value;if(g.status==="aborted"||y.status==="aborted")return Pe;(g.status==="dirty"||y.status==="dirty")&&r.dirty(),h.set(g.value,y.value)}return{status:r.value,value:h}})}else{const h=new Map;for(const p of f){const g=p.key,y=p.value;if(g.status==="aborted"||y.status==="aborted")return Pe;(g.status==="dirty"||y.status==="dirty")&&r.dirty(),h.set(g.value,y.value)}return{status:r.value,value:h}}}}R0.create=(e,n,r)=>new R0({valueType:n,keyType:e,typeName:ze.ZodMap,...Qe(r)});class rl extends tt{_parse(n){const{status:r,ctx:s}=this._processInputParams(n);if(s.parsedType!==Ee.set)return ye(s,{code:se.invalid_type,expected:Ee.set,received:s.parsedType}),Pe;const l=this._def;l.minSize!==null&&s.data.size<l.minSize.value&&(ye(s,{code:se.too_small,minimum:l.minSize.value,type:"set",inclusive:!0,exact:!1,message:l.minSize.message}),r.dirty()),l.maxSize!==null&&s.data.size>l.maxSize.value&&(ye(s,{code:se.too_big,maximum:l.maxSize.value,type:"set",inclusive:!0,exact:!1,message:l.maxSize.message}),r.dirty());const u=this._def.valueType;function f(p){const g=new Set;for(const y of p){if(y.status==="aborted")return Pe;y.status==="dirty"&&r.dirty(),g.add(y.value)}return{status:r.value,value:g}}const h=[...s.data.values()].map((p,g)=>u._parse(new kr(s,p,s.path,g)));return s.common.async?Promise.all(h).then(p=>f(p)):f(h)}min(n,r){return new rl({...this._def,minSize:{value:n,message:Ne.toString(r)}})}max(n,r){return new rl({...this._def,maxSize:{value:n,message:Ne.toString(r)}})}size(n,r){return this.min(n,r).max(n,r)}nonempty(n){return this.min(1,n)}}rl.create=(e,n)=>new rl({valueType:e,minSize:null,maxSize:null,typeName:ze.ZodSet,...Qe(n)});class O0 extends tt{get schema(){return this._def.getter()}_parse(n){const{ctx:r}=this._processInputParams(n);return this._def.getter()._parse({data:r.data,path:r.path,parent:r})}}O0.create=(e,n)=>new O0({getter:e,typeName:ze.ZodLazy,...Qe(n)});class Om extends tt{_parse(n){if(n.data!==this._def.value){const r=this._getOrReturnCtx(n);return ye(r,{received:r.data,code:se.invalid_literal,expected:this._def.value}),Pe}return{status:"valid",value:n.data}}get value(){return this._def.value}}Om.create=(e,n)=>new Om({value:e,typeName:ze.ZodLiteral,...Qe(n)});function WE(e,n){return new ji({values:e,typeName:ze.ZodEnum,...Qe(n)})}class ji extends tt{_parse(n){if(typeof n.data!="string"){const r=this._getOrReturnCtx(n),s=this._def.values;return ye(r,{expected:at.joinValues(s),received:r.parsedType,code:se.invalid_type}),Pe}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(n.data)){const r=this._getOrReturnCtx(n),s=this._def.values;return ye(r,{received:r.data,code:se.invalid_enum_value,options:s}),Pe}return Zn(n.data)}get options(){return this._def.values}get enum(){const n={};for(const r of this._def.values)n[r]=r;return n}get Values(){const n={};for(const r of this._def.values)n[r]=r;return n}get Enum(){const n={};for(const r of this._def.values)n[r]=r;return n}extract(n,r=this._def){return ji.create(n,{...this._def,...r})}exclude(n,r=this._def){return ji.create(this.options.filter(s=>!n.includes(s)),{...this._def,...r})}}ji.create=WE;class M0 extends tt{_parse(n){const r=at.getValidEnumValues(this._def.values),s=this._getOrReturnCtx(n);if(s.parsedType!==Ee.string&&s.parsedType!==Ee.number){const l=at.objectValues(r);return ye(s,{expected:at.joinValues(l),received:s.parsedType,code:se.invalid_type}),Pe}if(this._cache||(this._cache=new Set(at.getValidEnumValues(this._def.values))),!this._cache.has(n.data)){const l=at.objectValues(r);return ye(s,{received:s.data,code:se.invalid_enum_value,options:l}),Pe}return Zn(n.data)}get enum(){return this._def.values}}M0.create=(e,n)=>new M0({values:e,typeName:ze.ZodNativeEnum,...Qe(n)});class wu extends tt{unwrap(){return this._def.type}_parse(n){const{ctx:r}=this._processInputParams(n);if(r.parsedType!==Ee.promise&&r.common.async===!1)return ye(r,{code:se.invalid_type,expected:Ee.promise,received:r.parsedType}),Pe;
vendor: 4,098 bytes, line 53
53const s=r.parsedType===Ee.promise?r.data:Promise.resolve(r.data);return Zn(s.then(l=>this._def.type.parseAsync(l,{path:r.path,errorMap:r.common.contextualErrorMap})))}}wu.create=(e,n)=>new wu({type:e,typeName:ze.ZodPromise,...Qe(n)});class _i extends tt{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===ze.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(n){const{status:r,ctx:s}=this._processInputParams(n),l=this._def.effect||null,u={addIssue:f=>{ye(s,f),f.fatal?r.abort():r.dirty()},get path(){return s.path}};if(u.addIssue=u.addIssue.bind(u),l.type==="preprocess"){const f=l.transform(s.data,u);if(s.common.async)return Promise.resolve(f).then(async h=>{if(r.value==="aborted")return Pe;const p=await this._def.schema._parseAsync({data:h,path:s.path,parent:s});return p.status==="aborted"?Pe:p.status==="dirty"||r.value==="dirty"?Bo(p.value):p});{if(r.value==="aborted")return Pe;const h=this._def.schema._parseSync({data:f,path:s.path,parent:s});return h.status==="aborted"?Pe:h.status==="dirty"||r.value==="dirty"?Bo(h.value):h}}if(l.type==="refinement"){const f=h=>{const p=l.refinement(h,u);if(s.common.async)return Promise.resolve(p);if(p instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return h};if(s.common.async===!1){const h=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});return h.status==="aborted"?Pe:(h.status==="dirty"&&r.dirty(),f(h.value),{status:r.value,value:h.value})}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(h=>h.status==="aborted"?Pe:(h.status==="dirty"&&r.dirty(),f(h.value).then(()=>({status:r.value,value:h.value}))))}if(l.type==="transform")if(s.common.async===!1){const f=this._def.schema._parseSync({data:s.data,path:s.path,parent:s});if(!wi(f))return Pe;const h=l.transform(f.value,u);if(h instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:r.value,value:h}}else return this._def.schema._parseAsync({data:s.data,path:s.path,parent:s}).then(f=>wi(f)?Promise.resolve(l.transform(f.value,u)).then(h=>({status:r.value,value:h})):Pe);at.assertNever(l)}}_i.create=(e,n,r)=>new _i({schema:e,typeName:ze.ZodEffects,effect:n,...Qe(r)});_i.createWithPreprocess=(e,n,r)=>new _i({schema:n,effect:{type:"preprocess",transform:e},typeName:ze.ZodEffects,...Qe(r)});class Ar extends tt{_parse(n){return this._getType(n)===Ee.undefined?Zn(void 0):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Ar.create=(e,n)=>new Ar({innerType:e,typeName:ze.ZodOptional,...Qe(n)});class Ei extends tt{_parse(n){return this._getType(n)===Ee.null?Zn(null):this._def.innerType._parse(n)}unwrap(){return this._def.innerType}}Ei.create=(e,n)=>new Ei({innerType:e,typeName:ze.ZodNullable,...Qe(n)});class Mm extends tt{_parse(n){const{ctx:r}=this._processInputParams(n);let s=r.data;return r.parsedType===Ee.undefined&&(s=this._def.defaultValue()),this._def.innerType._parse({data:s,path:r.path,parent:r})}removeDefault(){return this._def.innerType}}Mm.create=(e,n)=>new Mm({innerType:e,typeName:ze.ZodDefault,defaultValue:typeof n.default=="function"?n.default:()=>n.default,...Qe(n)});class km extends tt{_parse(n){const{ctx:r}=this._processInputParams(n),s={...r,common:{...r.common,issues:[]}},l=this._def.innerType._parse({data:s.data,path:s.path,parent:{...s}});return yu(l)?l.then(u=>({status:"valid",value:u.status==="valid"?u.value:this._def.catchValue({get error(){return new Ga(s.common.issues)},input:s.data})})):{status:"valid",value:l.status==="valid"?l.value:this._def.catchValue({get error(){return new Ga(s.common.issues)},input:s.data})}}removeCatch(){return this._def.innerType}}km.create=(e,n)=>new km({innerType:e,typeName:ze.ZodCatch,catchValue:typeof n.catch=="function"?n.catch:()=>n.catch,...Qe(n)});class k0 extends tt{_parse(n){if(this._getType(n)!==Ee.nan){const s=this._getOrReturnCtx(n);return ye(s,{code:se.invalid_type,expected:Ee.nan,received:s.parsedType}),Pe}
53return{status:"valid",value:n.data}}}k0.create=e=>new k0({typeName:ze.ZodNaN,...Qe(e)});class AL extends tt{_parse(n){const{ctx:r}=this._processInputParams(n),s=r.data;return this._def.type._parse({data:s,path:r.path,parent:r})}unwrap(){return this._def.type}}class Ip extends tt{_parse(n){const{status:r,ctx:s}=this._processInputParams(n);if(s.common.async)return(async()=>{const u=await this._def.in._parseAsync({data:s.data,path:s.path,parent:s});return u.status==="aborted"?Pe:u.status==="dirty"?(r.dirty(),Bo(u.value)):this._def.out._parseAsync({data:u.value,path:s.path,parent:s})})();{const l=this._def.in._parseSync({data:s.data,path:s.path,parent:s});return l.status==="aborted"?Pe:l.status==="dirty"?(r.dirty(),{status:"dirty",value:l.value}):this._def.out._parseSync({data:l.value,path:s.path,parent:s})}}static create(n,r){return new Ip({in:n,out:r,typeName:ze.ZodPipeline})}}class Dm extends tt{_parse(n){const r=this._def.innerType._parse(n),s=l=>(wi(l)&&(l.value=Object.freeze(l.value)),l);return yu(r)?r.then(l=>s(l)):s(r)}unwrap(){return this._def.innerType}}Dm.create=(e,n)=>new Dm({innerType:e,typeName:ze.ZodReadonly,...Qe(n)});var ze;(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"})(ze||(ze={}));const an=Cr.create;Dr.create;const Kh=ba.create,RL=Lt.create;xu.create;bu.create;hs.create;const D0=Om.create;ji.create;wu.create;Ar.create;Ei.create;const OL=z6,JE=v.createContext(null),un=({...e})=>o.jsx(JE.Provider,{value:{name:e.name},children:o.jsx(L6,{...e})}),ed=()=>{const e=v.useContext(JE),n=v.useContext(eS),{getFieldState:r,formState:s}=P6();if(!e)throw new Error("useFormField should be used within <FormField>");if(!n)throw new Error("useFormField should be used within <FormItem>");const l=r(e.name,s),{id:u}=n;return{id:u,name:e.name,formItemId:`${u}-form-item`,formDescriptionId:`${u}-form-item-description`,formMessageId:`${u}-form-item-message`,...l}},eS=v.createContext(null),rn=v.forwardRef(({className:e,...n},r)=>{const s=v.useId();return o.jsx(eS.Provider,{value:{id:s},children:o.jsx("div",{ref:r,className:Re("space-y-2",e),...n})})});rn.displayName="FormItem";const sn=v.forwardRef(({className:e,...n},r)=>{const{error:s,formItemId:l}=ed();return o.jsx(Oe,{ref:r,className:Re(s&&"text-destructive-on",e),htmlFor:l,...n})});sn.displayName="FormLabel";const bn=v.forwardRef(({...e},n)=>{const{error:r,formItemId:s,formDescriptionId:l,formMessageId:u}=ed();return o.jsx(Dj,{ref:n,id:s,"aria-describedby":r?`${l} ${u}`:`${l}`,"aria-invalid":!!r,...e})});bn.displayName="FormControl";const ML=v.forwardRef(({className:e,...n},r)=>{const{formDescriptionId:s}=ed();return o.jsx("p",{ref:r,id:s,className:Re("text-[0.8rem] text-muted-foreground",e),...n})});ML.displayName="FormDescription";const on=v.forwardRef(({className:e,children:n,...r},s)=>{const{error:l,formMessageId:u}=ed(),f=l?String(l?.message??""):n;return f?o.jsx("p",{ref:s,id:u,className:Re("text-[0.8rem] font-medium text-destructive-on",e),...r,children:f}):null});on.displayName="FormMessage";var td="Checkbox",[kL]=Ln(td),[DL,Vp]=kL(td);function FL(e){const{__scopeCheckbox:n,checked:r,children:s,defaultChecked:l,disabled:u,form:f,name:h,onCheckedChange:p,required:g,value:y="on",internal_do_not_use_render:x}=e,[w,E]=ra({prop:r,defaultProp:l??!1,onChange:p,caller:td}),[C,_]=v.useState(null),[S,A]=v.useState(null),T=v.useRef(!1),M=C?!!f||!!C.closest("form"):!0,F={checked:w,disabled:u,setChecked:E,control:C,setControl:_,name:h,form:f,value:y,hasConsumerStoppedPropagationRef:T,required:g,defaultChecked:Rr(l)?!1:l,isFormControl:M,bubbleInput:S,setBubbleInput:A};return o.jsx(DL,{scope:n,...F,children:LL(x)?x(F):s})}var tS="CheckboxTrigger",nS=v.forwardRef(({__scopeCheckbox:e,onKeyDown:n,onClick:r,...s},l)=>{const{control:u,value:f,disabled:h,checked:p,required:g,setControl:y,setChecked:x,hasConsumerStoppedPropagationRef:w,isFormControl:E,bubbleInput:C}=Vp(tS,e),_=Je(l,y),S=v.useRef(p);return v.useEffect(()=>{const A=u?.form;if(A){const T=()=>x(S.current);return A.addEventListener("reset",T),()=>A.removeEventListener("reset",T)}},[u,x]),o.jsx(Me.button,{type:"button",role:"checkbox","aria-checked":Rr(p)?"mixed":p,"aria-required":g,"data-state":oS(p),"data-disabled":h?"":void 0,disabled:h,value:f,...s,ref:_,onKeyDown:ue(n,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:ue(r,A=>{x(T=>Rr(T)?!0:!T),C&&E&&(w.current=A.isPropagationStopped(),w.current||A.stopPropagation())})})});nS.displayName=tS;
53var Hp=v.forwardRef((e,n)=>{const{__scopeCheckbox:r,name:s,checked:l,defaultChecked:u,required:f,disabled:h,value:p,onCheckedChange:g,form:y,...x}=e;return o.jsx(FL,{__scopeCheckbox:r,checked:l,defaultChecked:u,disabled:h,required:f,onCheckedChange:g,name:s,form:y,value:p,internal_do_not_use_render:({isFormControl:w})=>o.jsxs(o.Fragment,{children:[o.jsx(nS,{...x,ref:n,__scopeCheckbox:r}),w&&o.jsx(iS,{__scopeCheckbox:r})]})})});Hp.displayName=td;var aS="CheckboxIndicator",rS=v.forwardRef((e,n)=>{const{__scopeCheckbox:r,forceMount:s,...l}=e,u=Vp(aS,r);return o.jsx(_n,{present:s||Rr(u.checked)||u.checked===!0,children:o.jsx(Me.span,{"data-state":oS(u.checked),"data-disabled":u.disabled?"":void 0,...l,ref:n,style:{pointerEvents:"none",...e.style}})})});rS.displayName=aS;var sS="CheckboxBubbleInput",iS=v.forwardRef(({__scopeCheckbox:e,...n},r)=>{const{control:s,hasConsumerStoppedPropagationRef:l,checked:u,defaultChecked:f,required:h,disabled:p,name:g,value:y,form:x,bubbleInput:w,setBubbleInput:E}=Vp(sS,e),C=Je(r,E),_=G_(u),S=dj(s);v.useEffect(()=>{const T=w;if(!T)return;const M=window.HTMLInputElement.prototype,L=Object.getOwnPropertyDescriptor(M,"checked").set,z=!l.current;if(_!==u&&L){const P=new Event("click",{bubbles:z});T.indeterminate=Rr(u),L.call(T,Rr(u)?!1:u),T.dispatchEvent(P)}},[w,_,u,l]);const A=v.useRef(Rr(u)?!1:u);return o.jsx(Me.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??A.current,required:h,disabled:p,name:g,value:y,form:x,...n,tabIndex:-1,ref:C,style:{...n.style,...S,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});iS.displayName=sS;function LL(e){return typeof e=="function"}function Rr(e){return e==="indeterminate"}function oS(e){return Rr(e)?"indeterminate":e?"checked":"unchecked"}const Fm=v.forwardRef(({className:e,...n},r)=>o.jsx(Hp,{ref:r,className:Re("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),...n,children:o.jsx(rS,{className:Re("grid place-content-center text-current"),children:o.jsx(Tu,{className:"h-4 w-4"})})}));Fm.displayName=Hp.displayName;const PL=["UAE","Saudi Arabia","Oman","Qatar","Bahrain","Kuwait"],zL=["EFCT - Couples","EFIT - Individuals","EFFT - Families"],qL=["Arabic","English","French","Urdu","Other"],UL=["In-Person","Online","Both"],IL=["Male","Female","Prefer not to say"],VL=["Externship","Core Skills","Certified","Supervisor","Trainer"],HL=["Relationship Distress","Anxiety","Depression","Trauma / PTSD","Grief & Loss","Life Transitions","Parenting","Adolescents","Eating Disorders","Chronic Illness","Cultural Adjustment"],BL=RL({fullName:an().min(2),professionalTitle:an().min(2),licenseNumber:an().optional(),issuingAuthority:an().optional(),iceeftStatus:an().min(1,"ICEEFT status is required"),country:an().min(1,"Country is required"),city:an().min(1,"City is required"),practiceFormat:an().min(1,"Practice format is required"),gender:an().optional(),bio:an().optional(),contactEmail:an().email("Invalid email").optional().or(D0("")),contactPhone:an().optional(),websiteUrl:an().url("Invalid URL").optional().or(D0("")),modalities:Kh(an()).min(1,"Select at least one modality"),languages:Kh(an()).min(1,"Select at least one language"),areasOfFocus:Kh(an()).optional()});function GL(){const{isAuthenticated:e,isLoading:n,login:r}=fl(),[,s]=Su(),{toast:l}=_a(),u=wa(),f=j3(),{t:h}=Ot(),p=J6({resolver:aL(BL),defaultValues:{fullName:"",professionalTitle:"",licenseNumber:"",issuingAuthority:"",iceeftStatus:"",country:"",city:"",practiceFormat:"",gender:"",bio:"",contactEmail:"",contactPhone:"",websiteUrl:"",modalities:[],languages:[],areasOfFocus:[]}}),g=y=>{f.mutate({data:{...y,contactEmail:y.contactEmail||void 0,websiteUrl:y.websiteUrl||void 0}},{onSuccess:()=>{l({title:h("join.submit"),description:h("join.subtitle")}
53),u.invalidateQueries({queryKey:I_()}),s("/")},onError:()=>{l({title:"Submission failed",description:"Please check your information and try again.",variant:"destructive"})}})};return n?o.jsxs("div",{className:"container mx-auto px-4 py-16 max-w-2xl space-y-4",children:[o.jsx(ln,{className:"h-12 w-1/2"}),o.jsx(ln,{className:"h-64 w-full rounded-xl"})]}):e?o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-16 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-3xl text-center",children:[o.jsx("h1",{className:"font-serif text-4xl font-bold mb-4",children:h("join.page_title")}),o.jsx("p",{className:"text-muted-foreground text-lg",children:h("join.page_desc")})]})}),o.jsx("div",{className:"container mx-auto px-4 py-12 max-w-2xl",children:o.jsx(OL,{...p,children:o.jsxs("form",{onSubmit:p.handleSubmit(g),className:"space-y-8",children:[o.jsxs("section",{className:"space-y-5",children:[o.jsx("h2",{className:"font-serif text-xl font-semibold border-b border-border pb-3",children:h("join.section.personal")}),o.jsx(un,{control:p.control,name:"fullName",render:({field:y})=>o.jsxs(rn,{children:[o.jsxs(sn,{children:[h("join.field.full_name")," *"]}),o.jsx(bn,{children:o.jsx(Ve,{...y,"data-testid":"input-full-name"})}),o.jsx(on,{})]})}),o.jsx(un,{control:p.control,name:"professionalTitle",render:({field:y})=>o.jsxs(rn,{children:[o.jsxs(sn,{children:[h("join.field.professional_title")," *"]}),o.jsx(bn,{children:o.jsx(Ve,{...y,placeholder:"e.g. Licensed Counseling Psychologist","data-testid":"input-professional-title"})}),o.jsx(on,{})]})}),o.jsx(un,{control:p.control,name:"gender",render:({field:y})=>o.jsxs(rn,{children:[o.jsx(sn,{children:h("join.field.gender")}),o.jsxs(Nt,{value:y.value,onValueChange:y.onChange,children:[o.jsx(bn,{children:o.jsx(jt,{"data-testid":"select-gender",children:o.jsx(Ct,{placeholder:h("join.field.gender")})})}),o.jsx(_t,{children:IL.map(x=>o.jsx(it,{value:x,children:x},x))})]}),o.jsx(on,{})]})})]}),o.jsxs("section",{className:"space-y-5",children:[o.jsx("h2",{className:"font-serif text-xl font-semibold border-b border-border pb-3",children:h("join.section.credentials")}),o.jsx(un,{control:p.control,name:"licenseNumber",render:({field:y})=>o.jsxs(rn,{children:[o.jsx(sn,{children:h("join.field.license_number")}),o.jsx(bn,{children:o.jsx(Ve,{...y,placeholder:"As issued by your licensing authority","data-testid":"input-license-number"})}),o.jsx(on,{})]})}),o.jsx(un,{control:p.control,name:"issuingAuthority",render:({field:y})=>o.jsxs(rn,{children:[o.jsx(sn,{children:h("join.field.issuing_authority")}),o.jsx(bn,{children:o.jsx(Ve,{...y,placeholder:"e.g. Dubai Health Authority, MOH Oman","data-testid":"input-issuing-authority"})}),o.jsx(on,{})]})}),o.jsx(un,{control:p.control,name:"iceeftStatus",render:({field:y})=>o.jsxs(rn,{children:[o.jsxs(sn,{children:[h("join.field.iceeft_status")," *"]}),o.jsxs(Nt,{value:y.value,onValueChange:y.onChange,children:[o.jsx(bn,{children:o.jsx(jt,{"data-testid":"select-iceeft-status",children:o.jsx(Ct,{placeholder:h("join.field.iceeft_status")})})}),o.jsx(_t,{children:VL.map(x=>o.jsx(it,{value:x,children:x},x))})]}),o.jsx(on,{})]})})]}),o.jsxs("section",{className:"space-y-5",children:[o.jsx("h2",{className:"font-serif text-xl font-semibold border-b border-border pb-3",children:h("join.section.practice")}),o.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[o.jsx(un,{control:p.control,name:"country",render:({field:y})=>o.jsxs(rn,{children:[o.jsxs(sn,{children:[h("join.field.country")," *"]}),o.jsxs(Nt,{value:y.value,onValueChange:y.onChange,children:[o.jsx(bn,{children:o.jsx(jt,{"data-testid":"select-country",children:o.jsx(Ct,{placeholder:h("join.field.country")})})}),o.jsx(_t,{children:PL.map(x=>o.jsx(it,{value:x,children:x},x))})]}),o.jsx(on,{})]})}),o.jsx(un,{control:p.control,name:"city",render:({field:y})=>o.jsxs(rn,{children:[o.jsxs(sn,{children:[h("join.field.city")," *"]}),o.jsx(bn,{children:o.jsx(Ve,{...y,"data-testid":"input-city"})}),o.jsx(on,{})]})})]}),o.jsx(un,{control:p.control,name:"practiceFormat",render:({field:y})=>o.jsxs(rn,{children:[o.jsxs(sn,{children:[h("join.field.practice_format")," *"]}),o.jsxs(Nt,{value:y.value,onValueChange:y.onChange,children:[o.jsx(bn,{children:o.jsx(jt,{"data-testid":"select-practice-format",children:o.jsx(Ct,{placeholder:h("join.field.practice_format")})})}),o.jsx(_t,{children:UL.map(x=>o.jsx(it,{value:x,children:x},x))})]}),o.jsx(on,{})]})}),o.jsx(un,{control:p.control,name:"modalities",render:()=>o.jsxs(rn,{children:[o.jsxs(sn,{children:[h("join.field.modalities")," * ",h("join.field.select_all_apply")]}),o.jsx("div",{className:"space-y-2",children:zL.map(y=>o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Fm,{id:`modality-${y}`,"data-testid":`checkbox-modality-${y}`,checked:p.watch("modalities").includes(y),onCheckedChange:x=>{const w=p.getValues("modalities");p.setValue("modalities",x?[...w,y]:w.filter(E=>E!==y),{shouldValidate:!0})}}),o.jsx(Oe,{htmlFor:`modality-${y}`,children:y})]},y))}),o.jsx(on,{})]})}),o.jsx(un,{control:p.control,name:"languages",render:()=>o.jsxs(rn,{children:[o.jsxs(sn,{children:[h("join.field.languages")," * ",h("join.field.select_all_apply")]}),o.jsx("div",{className:"space-y-2",children:qL.map(y=>o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx(Fm,{id:`lang-${y}`,"data-testid":`checkbox-language-${y}`,checked:p.watch("languages").includes(y),onCheckedChange:x=>{const w=p.getValues("languages");p.setValue("languages",x?[...w,y]:w.filter(E=>E!==y),{shouldValidate:!0})}}),o.jsx(Oe,{htmlFor:`lang-${y}`,children:y})]},y))}),o.jsx(on,{})]})})]}),o.jsxs("section",{className:"space-y-5",children:[o.jsx("h2",{className:"font-serif text-xl font-semibold border-b border-border pb-3",children:h("join.section.about")}),o.jsx(un,{control:p.control,name:"bio",render:({field:y})=>o.jsxs(rn,{children:[o.jsx(sn,{children:h("join.field.bio")}),o.jsx(bn,{children:o.jsx(Di,{...y,rows:5,placeholder:"Describe your approach, experience, and who you work with...","data-testid":"textarea-bio"})}),o.jsx(on,{})]})}),o.jsxs("div",{children:[o.jsxs(Oe,{className:"text-sm font-medium mb-2 block",children:[h("join.field.areas_of_focus")," ",h("join.field.select_all_apply")]}),o.jsx("div",{className:"flex flex-wrap gap-2",children:HL.map(y=>{const x=(p.watch("areasOfFocus")||[]).includes(y);return o.jsx("button",{type:"button",onClick:()=>{const w=p.getValues("areasOfFocus")||[];p.setValue("areasOfFocus",x?w.filter(E=>E!==y):[...w,y])},className:`px-3 py-1.5 rounded-full text-xs font-medium border transition-colors ${x?"bg-primary text-primary-foreground border-primary":"bg-background border-border text-muted-foreground hover:border-primary/50"}`,"data-testid":`toggle-focus-${y}`,children:y},y)})})]})]}),o.jsxs("section",{className:"space-y-5",children:[o.jsx("h2",{className:"font-serif text-xl font-semibold border-b border-border pb-3",children:h("join.section.contact")}),o.jsx(un,{control:p.control,name:"contactEmail",render:({field:y})=>o.jsxs(rn,{children:[o.jsx(sn,{children:h("join.field.contact_email")}),o.jsx(bn,{children:o.jsx(Ve,{type:"email",...y,"data-testid":"input-contact-email"})}),o.jsx(on,{})]})}),o.jsx(un,{control:p.control,name:"contactPhone",render:({field:y})=>o.jsxs(rn,{children:[o.jsx(sn,{children:h("join.field.contact_phone")}),o.jsx(bn,{children:o.jsx(Ve,{...y,placeholder:"+971 XX XXX XXXX","data-testid":"input-contact-phone"})}),o.jsx(on,{})]})}),o.jsx(un,{control:p.control,name:"websiteUrl",render:({field:y})=>o.jsxs(rn,{children:[o.jsx(sn,{children:h("join.field.website_url")}),o.jsx(bn,{children:o.jsx(Ve,{type:"url",...y,placeholder:"https://","data-testid":"input-website"})}),o.jsx(on,{})]})})]}),o.jsx(Ae,{type:"submit",size:"lg",className:"w-full rounded-full",disabled:f.isPending,"data-testid":"button-submit-profile",children:f.isPending?h("join.submitting"):h("join.submit_label")}),o.jsx("p",{className:"text-xs text-center text-muted-foreground",children:h("join.disclaimer")})]})})})]}):o.jsxs("div",{className:"flex flex-col flex-1 items-center justify-center py-24 text-center px-4",children:[o.jsx("div",{className:"h-20 w-20 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-6",children:o.jsx(Jc,{className:"h-10 w-10 text-primary-on"})}),o.jsx("h1",{className:"font-serif text-3xl font-bold mb-3",children:h("join.sign_in_required")}),o.jsx("p",{className:"text-muted-foreground mb-8 max-w-sm",children:h("join.sign_in_required_desc")}),o.jsx(Ae,{size:"lg",className:"rounded-full px-8",onClick:r,"data-testid":"button-login-join",children:h("join.sign_in_cta")})]})}var nd="Tabs",[$L]=Ln(nd,[Vu]),lS=Vu(),[YL,Bp]=$L(nd),cS=v.forwardRef((e,n
vendor: 4,015 bytes, line 53
53)=>{const{__scopeTabs:r,value:s,onValueChange:l,defaultValue:u,orientation:f="horizontal",dir:h,activationMode:p="automatic",...g}=e,y=hl(h),[x,w]=ra({prop:s,onChange:l,defaultProp:u??"",caller:nd});return o.jsx(YL,{scope:r,baseId:Yn(),value:x,onValueChange:w,orientation:f,dir:y,activationMode:p,children:o.jsx(Me.div,{dir:y,"data-orientation":f,...g,ref:n})})});cS.displayName=nd;var uS="TabsList",dS=v.forwardRef((e,n)=>{const{__scopeTabs:r,loop:s=!0,...l}=e,u=Bp(uS,r),f=lS(r);return o.jsx(y1,{asChild:!0,...f,orientation:u.orientation,dir:u.dir,loop:s,children:o.jsx(Me.div,{role:"tablist","aria-orientation":u.orientation,...l,ref:n})})});dS.displayName=uS;var fS="TabsTrigger",hS=v.forwardRef((e,n)=>{const{__scopeTabs:r,value:s,disabled:l=!1,...u}=e,f=Bp(fS,r),h=lS(r),p=gS(f.baseId,s),g=yS(f.baseId,s),y=s===f.value;return o.jsx(v1,{asChild:!0,...h,focusable:!l,active:y,children:o.jsx(Me.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":g,"data-state":y?"active":"inactive","data-disabled":l?"":void 0,disabled:l,id:p,...u,ref:n,onMouseDown:ue(e.onMouseDown,x=>{!l&&x.button===0&&x.ctrlKey===!1?f.onValueChange(s):x.preventDefault()}),onKeyDown:ue(e.onKeyDown,x=>{[" ","Enter"].includes(x.key)&&f.onValueChange(s)}),onFocus:ue(e.onFocus,()=>{const x=f.activationMode!=="manual";!y&&!l&&x&&f.onValueChange(s)})})})});hS.displayName=fS;var mS="TabsContent",pS=v.forwardRef((e,n)=>{const{__scopeTabs:r,value:s,forceMount:l,children:u,...f}=e,h=Bp(mS,r),p=gS(h.baseId,s),g=yS(h.baseId,s),y=s===h.value,x=v.useRef(y);return v.useEffect(()=>{const w=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(w)},[]),o.jsx(_n,{present:l||y,children:({present:w})=>o.jsx(Me.div,{"data-state":y?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":p,hidden:!w,id:g,tabIndex:0,...f,ref:n,style:{...e.style,animationDuration:x.current?"0s":void 0},children:w&&u})})});pS.displayName=mS;function gS(e,n){return`${e}-trigger-${n}`}function yS(e,n){return`${e}-content-${n}`}var KL=cS,vS=dS,xS=hS,bS=pS;const QL=KL,wS=v.forwardRef(({className:e,...n},r)=>o.jsx(vS,{ref:r,className:Re("inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...n}));wS.displayName=vS.displayName;const hi=v.forwardRef(({className:e,...n},r)=>o.jsx(xS,{ref:r,className:Re("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow",e),...n}));hi.displayName=xS.displayName;const mi=v.forwardRef(({className:e,...n},r)=>o.jsx(bS,{ref:r,className:Re("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...n}));mi.displayName=bS.displayName;const ad=i1,rd=o1,ZL=l1,jS=v.forwardRef(({className:e,...n},r)=>o.jsx(zu,{ref:r,className:Re("fixed inset-0 z-50 bg-overlay/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...n}));jS.displayName=zu.displayName;const vl=v.forwardRef(({className:e,children:n,...r},s)=>o.jsxs(ZL,{children:[o.jsx(jS,{}),o.jsxs(qu,{ref:s,className:Re("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),...r,children:[n,o.jsxs(c1,{className:"absolute right-4 top-4 roun
53ded-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:[o.jsx(cl,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));vl.displayName=qu.displayName;const xl=({className:e,...n})=>o.jsx("div",{className:Re("flex flex-col space-y-1.5 text-center sm:text-left",e),...n});xl.displayName="DialogHeader";const bl=v.forwardRef(({className:e,...n},r)=>o.jsx(Uu,{ref:r,className:Re("text-lg font-semibold leading-none tracking-tight",e),...n}));bl.displayName=Uu.displayName;const XL=v.forwardRef(({className:e,...n},r)=>o.jsx(Iu,{ref:r,className:Re("text-sm text-muted-foreground",e),...n}));XL.displayName=Iu.displayName;const Fi="/".replace(/\/$/,"");async function WL(){const e=await fetch(`${Fi}/api/admin/contact`,{credentials:"include"});if(!e.ok)throw new Error("Failed to load messages");return e.json()}async function JL(e){await fetch(`${Fi}/api/admin/contact/${e}/read`,{method:"PATCH",credentials:"include"})}function eP(){const e=wa(),{data:n,isLoading:r}=$a({queryKey:["admin-contact"],queryFn:WL}),[s,l]=v.useState(null),u=n?.submissions??[],f=async(h,p)=>{l(g=>g===h?null:h),p||(await JL(h),e.invalidateQueries({queryKey:["admin-contact"]}))};return r?o.jsx(ln,{className:"h-24 w-full"}):u.length===0?o.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No messages yet."}):o.jsx("div",{className:"space-y-3",children:u.map(h=>o.jsx(gt,{className:`border ${h.isRead?"border-border":"border-primary/30 bg-primary/[0.02]"}`,children:o.jsxs(xt,{className:"p-5",children:[o.jsxs("div",{className:"flex items-start justify-between gap-4 cursor-pointer",onClick:()=>f(h.id,h.isRead),children:[o.jsxs("div",{className:"flex items-start gap-3 min-w-0",children:[h.isRead?o.jsx(LA,{className:"h-4 w-4 text-muted-foreground shrink-0 mt-0.5"}):o.jsx(Wc,{className:"h-4 w-4 text-primary-on shrink-0 mt-0.5"}),o.jsxs("div",{className:"min-w-0",children:[o.jsxs("p",{className:`text-sm font-medium truncate ${h.isRead?"text-muted-foreground":"text-foreground"}`,children:[h.firstName," ",h.lastName," â ",h.subject]}),o.jsxs("p",{className:"text-xs text-muted-foreground",children:[h.email," · ",h.inquiryType," · ",new Date(h.createdAt).toLocaleDateString()]})]})]}),!h.isRead&&o.jsx("span",{className:"text-xs font-medium text-primary-on bg-primary/10 px-2 py-0.5 rounded-full shrink-0",children:"New"})]}),s===h.id&&o.jsxs("div",{className:"mt-4 pt-4 border-t border-border",children:[o.jsx("p",{className:"text-sm text-muted-foreground whitespace-pre-wrap leading-relaxed",children:h.message}),o.jsxs("a",{href:`mailto:${h.email}?subject=Re: ${encodeURIComponent(h.subject)}`,className:"inline-flex items-center gap-1.5 mt-3 text-xs font-medium text-primary-on hover:underline",children:[o.jsx(Wc,{className:"h-3.5 w-3.5"})," Reply to ",h.email]})]})]})},h.id))})}async function tP(){const e=await fetch(`${Fi}/api/admin/users`,{credentials:"include"});if(!e.ok)throw new Error("Failed to load users");return e.json()}async function nP(e,n){const r=await fetch(`${Fi}/api/admin/users/${e}/role`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({role:n})});if(!r.ok)throw new Error("Failed to update role");return r.json()}async function aP(e,n){const r=await fetch(`${Fi}/api/resources/${e}`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error("Failed to update resource");return r.json()}async function rP(e){if(!(await fetch(`${Fi}/api/resources/${e}`,{method:"DELETE",credentials:"include"})).ok)throw new Error("Failed to delete resource")}function Vc({icon:e,label:n,value:r}){return o.jsx(gt,{className:"border border-border",children:o.jsxs(xt,{className:"p-6 flex items-center gap-4",children:[o.jsx("div",{className:"h-12 w-12 rounded-lg bg-primary/10 text-primary-on flex items-center justify-center shrink-0",children:o.jsx(e,{className:"h-6 w-6"})}),o.jsxs("div",{children:[o.jsx("p",{className:"text-2xl font-bold",children:r??"â"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:n})]})]})})}function sP(){const{toast:e}
53=_a(),n=wa(),r=P3(),[s,l]=v.useState(!1),[u,f]=v.useState({title:"",trainerName:"",startDate:"",endDate:"",modality:"EFCT - Couples",level:"Externship",language:"English",location:"",registrationLink:"",cmeHours:"",targetAudience:""}),h=()=>{r.mutate({data:{...u,cmeHours:u.cmeHours?parseFloat(u.cmeHours):void 0}},{onSuccess:()=>{e({title:"Event created"}),n.invalidateQueries({queryKey:Jo()}),l(!1)},onError:()=>e({title:"Failed to create event",variant:"destructive"})})};return o.jsxs(ad,{open:s,onOpenChange:l,children:[o.jsx(rd,{asChild:!0,children:o.jsxs(Ae,{size:"sm",className:"gap-1.5","data-testid":"button-create-event",children:[o.jsx(kw,{className:"h-4 w-4"})," Create Event"]})}),o.jsxs(vl,{className:"max-w-lg max-h-[85vh] overflow-y-auto",children:[o.jsx(xl,{children:o.jsx(bl,{children:"Create Training Event"})}),o.jsxs("div",{className:"space-y-4 mt-2",children:[o.jsxs("div",{children:[o.jsx(Oe,{children:"Title"}),o.jsx(Ve,{value:u.title,onChange:p=>f(g=>({...g,title:p.target.value})),"data-testid":"input-event-title"})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Trainer Name"}),o.jsx(Ve,{value:u.trainerName,onChange:p=>f(g=>({...g,trainerName:p.target.value}))})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx(Oe,{children:"Start Date"}),o.jsx(Ve,{type:"date",value:u.startDate,onChange:p=>f(g=>({...g,startDate:p.target.value}))})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"End Date"}),o.jsx(Ve,{type:"date",value:u.endDate,onChange:p=>f(g=>({...g,endDate:p.target.value}))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Level"}),o.jsxs(Nt,{value:u.level,onValueChange:p=>f(g=>({...g,level:p})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["Externship","Core Skills","Masterclass"].map(p=>o.jsx(it,{value:p,children:p},p))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Modality"}),o.jsxs(Nt,{value:u.modality,onValueChange:p=>f(g=>({...g,modality:p})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["EFCT - Couples","EFIT - Individuals","EFFT - Families","General"].map(p=>o.jsx(it,{value:p,children:p},p))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Location"}),o.jsx(Ve,{value:u.location,onChange:p=>f(g=>({...g,location:p.target.value})),placeholder:"City, Country or Online"})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Registration Link"}),o.jsx(Ve,{value:u.registrationLink,onChange:p=>f(g=>({...g,registrationLink:p.target.value})),placeholder:"https://"})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"CME Hours"}),o.jsx(Ve,{type:"number",value:u.cmeHours,onChange:p=>f(g=>({...g,cmeHours:p.target.value}))})]}),o.jsx(Ae,{onClick:h,disabled:r.isPending,className:"w-full","data-testid":"button-confirm-create-event",children:r.isPending?"Creating...":"Create Event"})]})]})]})}function iP({event:e}){const{toast:n}=_a(),r=wa(),s=I3(),[l,u]=v.useState(!1),[f,h]=v.useState({title:e.title,trainerName:e.trainerName,startDate:e.startDate.slice(0,10),endDate:e.endDate.slice(0,10),modality:e.modality,level:e.level,language:e.language,location:e.location??"",registrationLink:e.registrationLink,cmeHours:e.cmeHours!=null?String(e.cmeHours):"",targetAudience:e.targetAudience??""}),p=()=>{s.mutate({id:e.id,data:{...f,cmeHours:f.cmeHours?parseFloat(f.cmeHours):void 0}},{onSuccess:()=>{n({title:"Event updated"}),r.invalidateQueries({queryKey:Jo()}),u(!1)},onError:()=>n({title:"Failed to update event",variant:"destructive"})})};return o.jsxs(ad,{open:l,onOpenChange:u,children:[o.jsx(rd,{asChild:!0,children:o.jsx(Ae,{size:"sm",variant:"ghost","data-testid":`button-edit-event-${e.id}`,title:"Edit event",children:o.jsx(Xm,{className:"h-4 w-4"})})}),o.jsxs(vl,{className:"max-w-lg max-h-[85vh] overflow-y-auto",children:[o.jsx(xl,{children:o.jsx(bl,{children:"Edit Training Event"})}),o.jsxs("div",{className:"space-y-4 mt-2",children:[o.jsxs("div",{children:[o.jsx(Oe,{children:"Title"}),o.jsx(Ve,{value:f.title,onChange:g=>h(y=>({...y,title:g.target.value})),"data-testid":"input-edit-event-title"})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Trainer Name"}),o.jsx(Ve,{value:f.trainerName,onChange:g=>h(y=>({...y,trainerName:g.target.value}))})]}),o.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[o.jsxs("div",{children:[o.jsx(Oe,{children:"Start Date"}),o.jsx(Ve,{type:"date",value:f.startDate,onChange:g=>h(y=>({...y,startDate:g.target.value}))})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"End Date"}),o.jsx(Ve,{type:"date",value:f.endDate,onChange:g=>h(y=>({...y,endDate:g.target.value}))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Level"}),o.jsxs(Nt,{value:f.level,onValueChange:g=>h(y=>({...y,level:g})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["Externship","Core Skills","Supervision"].map(g=>o.jsx(it,{value:g,children:g},g))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Modality"}),o.jsxs(Nt,{value:f.modality,onValueChange:g=>h(y=>({...y,modality:g})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["EFCT - Couples","EFIT - Individuals","EFFT - Families","General"].map(g=>o.jsx(it,{value:g,children:g},g))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Location"}),o.jsx(Ve,{value:f.location,onChange:g=>h(y=>({...y,location:g.target.value})),placeholder:"City, Country or Online"})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Registration Link"}),o.jsx(Ve,{value:f.registrationLink,onChange:g=>h(y=>({...y,registrationLink:g.target.value})),placeholder:"https://"})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"CME Hours"}),o.jsx(Ve,{type:"number",value:f.cmeHours,onChange:g=>h(y=>({...y,cmeHours:g.target.value}))})]}),o.jsx(Ae,{onClick:p,disabled:s.isPending,className:"w-full","data-testid":"button-confirm-edit-event",children:s.isPending?"Saving...":"Save Changes"})]})]})]})}function oP(){const{toast:e}=_a(),n=wa(),r=W3(),[s,l]=v.useState(!1),[u,f]=v.useState({titleEn:"",titleAr:"",type:"Article",audience:"Public",language:"English",summary:"",accessLink:""}),h=()=>{r.mutate({data:{...u}},{onSuccess:()=>{e({title:"Resource created"}),n.invalidateQueries({queryKey:el()}),l(!1)},onError:()=>e({title:"Failed to create resource",variant:"destructive"})})};return o.jsxs(ad,{open:s,onOpenChange:l,children:[o.jsx(rd,{asChild:!0,children:o.jsxs(Ae,{size:"sm",className:"gap-1.5","data-testid":"button-create-resource",children:[o.jsx(kw,{className:"h-4 w-4"})," Add Resource"]})}),o.jsxs(vl,{className:"max-w-lg max-h-[85vh] overflow-y-auto",children:[o.jsx(xl,{children:o.jsx(bl,{children:"Add Resource"})}
53),o.jsxs("div",{className:"space-y-4 mt-2",children:[o.jsxs("div",{children:[o.jsx(Oe,{children:"Title (English)"}),o.jsx(Ve,{value:u.titleEn,onChange:p=>f(g=>({...g,titleEn:p.target.value})),"data-testid":"input-resource-title"})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Title (Arabic)"}),o.jsx(Ve,{value:u.titleAr,onChange:p=>f(g=>({...g,titleAr:p.target.value}))})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Type"}),o.jsxs(Nt,{value:u.type,onValueChange:p=>f(g=>({...g,type:p})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["Article","Book","Video","Podcast","Clinical Handout"].map(p=>o.jsx(it,{value:p,children:p},p))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Audience"}),o.jsxs(Nt,{value:u.audience,onValueChange:p=>f(g=>({...g,audience:p})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["Public","Professional"].map(p=>o.jsx(it,{value:p,children:p},p))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Language"}),o.jsxs(Nt,{value:u.language,onValueChange:p=>f(g=>({...g,language:p})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["English","Arabic","Both"].map(p=>o.jsx(it,{value:p,children:p},p))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Summary"}),o.jsx(Di,{value:u.summary,onChange:p=>f(g=>({...g,summary:p.target.value})),rows:3})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Access Link"}),o.jsx(Ve,{value:u.accessLink,onChange:p=>f(g=>({...g,accessLink:p.target.value})),placeholder:"https://"})]}),o.jsx(Ae,{onClick:h,disabled:r.isPending,className:"w-full","data-testid":"button-confirm-create-resource",children:r.isPending?"Adding...":"Add Resource"})]})]})]})}function lP({resource:e}){const{toast:n}=_a(),r=wa(),[s,l]=v.useState(!1),[u,f]=v.useState({titleEn:e.titleEn,titleAr:e.titleAr??"",type:e.type,audience:e.audience,language:e.language,summary:e.summary??"",accessLink:e.accessLink??""}),h=ja({mutationFn:p=>aP(e.id,p),onSuccess:()=>{n({title:"Resource updated"}),r.invalidateQueries({queryKey:el()}),l(!1)},onError:()=>n({title:"Failed to update resource",variant:"destructive"})});return o.jsxs(ad,{open:s,onOpenChange:l,children:[o.jsx(rd,{asChild:!0,children:o.jsx(Ae,{size:"sm",variant:"ghost","data-testid":`button-edit-resource-${e.id}`,title:"Edit resource",children:o.jsx(Xm,{className:"h-4 w-4"})})}),o.jsxs(vl,{className:"max-w-lg max-h-[85vh] overflow-y-auto",children:[o.jsx(xl,{children:o.jsx(bl,{children:"Edit Resource"})}),o.jsxs("div",{className:"space-y-4 mt-2",children:[o.jsxs("div",{children:[o.jsx(Oe,{children:"Title (English)"}),o.jsx(Ve,{value:u.titleEn,onChange:p=>f(g=>({...g,titleEn:p.target.value}))})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Title (Arabic)"}),o.jsx(Ve,{value:u.titleAr,onChange:p=>f(g=>({...g,titleAr:p.target.value}))})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Type"}),o.jsxs(Nt,{value:u.type,onValueChange:p=>f(g=>({...g,type:p})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["Article","Book","Video","Podcast","Clinical Handout"].map(p=>o.jsx(it,{value:p,children:p},p))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Audience"}),o.jsxs(Nt,{value:u.audience,onValueChange:p=>f(g=>({...g,audience:p})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["Public","Professional"].map(p=>o.jsx(it,{value:p,children:p},p))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Language"}),o.jsxs(Nt,{value:u.language,onValueChange:p=>f(g=>({...g,language:p})),children:[o.jsx(jt,{children:o.jsx(Ct,{})}),o.jsx(_t,{children:["English","Arabic","Both"].map(p=>o.jsx(it,{value:p,children:p},p))})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Summary"}),o.jsx(Di,{value:u.summary,onChange:p=>f(g=>({...g,summary:p.target.value})),rows:3})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:"Access Link"}),o.jsx(Ve,{value:u.accessLink,onChange:p=>f(g=>({...g,accessLink:p.target.value})),placeholder:"https://"})]}),o.jsx(Ae,{onClick:()=>h.mutate(u),disabled:h.isPending,className:"w-full","data-testid":"button-confirm-edit-resource",children:h.isPending?"Saving...":"Save Changes"})]})]})]})}function cP(){const{toast:e}=_a(),{data:n,isLoading:r,refetch:s}=$a({queryKey:["admin-users"],queryFn:tP}),l=ja({mutationFn:({id:f,role:h})=>nP(f,h),onSuccess:()=>{e({title:"Role updated"}),s()},onError:()=>e({title:"Failed to update role",variant:"destructive"})}),u=n?.users??[];return r?o.jsx(ln,{className:"h-24 w-full"}):u.length===0?o.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No users found."}):o.jsx("div",{className:"space-y-3",children:u.map(f=>o.jsx(gt,{"data-testid":`card-user-${f.id}`,className:"border border-border",children:o.jsxs(xt,{className:"p-4 flex items-center justify-between gap-4 flex-wrap",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-medium",children:f.firstName&&f.lastName?`${f.firstName} ${f.lastName}`:f.email??"â"}),o.jsx("p",{className:"text-sm text-muted-foreground",children:f.email})]}),o.jsx("div",{className:"flex items-center gap-3",children:o.jsxs(Nt,{value:f.role,onValueChange:h=>l.mutate({id:f.id,role:h}),disabled:l.isPending,children:[o.jsx(jt,{className:"w-32","data-testid":`select-role-${f.id}`,children:o.jsx(Ct,{})}),o.jsxs(_t,{children:[o.jsx(it,{value:"public",children:"Public"}),o.jsx(it,{value:"therapist",children:"Therapist"}),o.jsx(it,{value:"admin",children:"Admin"})]})]})})]})},f.id))})}function uP(){const{isAuthenticated:e,isLoading:n,login:r,user:s}=fl(),{t:l,language:u}=Ot(),{toast:f}=_a(),h=wa(),{data:p,isLoading:g}=nF({query:{queryKey:xm()}}),{data:y,isLoading:x}=iF({query:{queryKey:bm()}}),{data:w}=H_(void 0,{query:{queryKey:Jo()}}),{data:E}=B_(void 0,{query:{queryKey:el()}}),C=R3(),_=G3(),S=ja({mutationFn:P=>rP(P),onSuccess:()=>{f({title:"Resource deleted"}),h.invalidateQueries({queryKey:el()})},onError:()=>f({title:"Failed to delete resource",variant:"destructive"})});if(n)return o.jsxs("div",{className:"container mx-auto px-4 py-16 space-y-6 max-w-5xl",children:[o.jsx(ln,{className:"h-12 w-48"}),o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:Array.from({length:4}).map((P,H)=>o.jsx(ln,{className:"h-28"},H))})]});if(!e)return o.jsxs("div",{className:"container mx-auto px-4 py-24 text-center",children:[o.jsx("p",{className:"text-muted-foreground mb-4",children:l("admin.sign_in_required")}),o.jsx(Ae,{onClick:r,children:l("admin.sign_in")})]});if(s?.role!=="admin")return o.jsxs("div",{className:"container mx-auto px-4 py-24 text-center",children:[o.jsx("p",{className:"text-lg font-semibold mb-2",children:u==="ar"?"ØºÙØ± Ù
صرØ":"Access Denied"}),o.jsx("p",{className:"text-muted-foreground",children:u==="ar"?"ÙØ°Ù Ø§ÙØµÙØØ© Ù
خصصة ÙÙÙ
سؤÙÙÙÙ ÙÙØ·.":"This page is restricted to administrators."})]});const A=p,T=y?.therapists??[],M=w?.events??[],F=E?.resources??[],L=(P,H)=>{C.mutate({id:P,data:{verificationStatus:H}},{onSuccess:()=>{f({title:H==="approved"?"Therapist approved":"Application rejected"}),h.invalidateQueries({queryKey:bm()}),h.invalidateQueries({queryKey:xm()})}})},z=P=>{_.mutate({id:P},{onSuccess:()=>{f({title:"Event deleted"}),h.invalidateQueries({queryKey:Jo()})}})};return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-12 bg-card border-b border-border",children:o.jsxs("div",{className:"container mx-auto px-4 max-w-5xl",children:[o.jsx("h1",{className:"font-serif text-3xl font-bold mb-1",children:l("admin.title")}),o.jsx("p",{className:"text-muted-foreground",children:u==="ar"?"إدارة اÙÙ
Ø¹Ø§ÙØ¬ÙÙ ÙØ§ÙÙ
ستخدÙ
ÙÙ ÙØ§ÙÙØ¹Ø§ÙÙØ§Øª ÙØ§ÙÙ
صادر.":"Manage therapists, users, events, and resources."})]})}),o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-5xl",children:[o.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-8",children:g?Array.from({length:4}).map((P,H)=>o.jsx(ln,{className:"h-28 rounded-xl"},H)):o.jsxs(o.Fragment,{children:[o.jsx(Vc,{icon:vi,label:l("admin.stats.therapists"),value:A?.totalTherapists}),o.jsx(Vc,{icon:vi,label:l("admin.stats.pending"),value:A?.pendingTherapists}),o.jsx(Vc,{icon:oA,label:l("admin.stats.events"),value:A?.totalEvents}),o.jsx(Vc,{icon:Qm,label:u==="ar"?"Ø§ÙØ¯ÙÙ":"Countries",value:A?.countriesRepresented})]})}),o.jsxs(QL,{defaultValue:"pending",className:"space-y-6",children:[o.jsxs(wS,{"data-testid":"admin-tabs",children:[o.jsxs(hi,{value:"pending","data-testid":"tab-pending",children:["Pending (",T.length,")"]}),o.jsx(hi,{value:"events","data-testid":"tab-events",children:"Events"}),o.jsx(hi,{value:"resources","data-testid":"tab-resources",children:"Resources"}),o.jsx(hi,{value:"users","data-testid":"tab-users",children:"Users"}),o.jsx(hi,{value:"messages","data-testid":"tab-messages",children:"Messages"})]}),o.jsx(mi,{value:"pending",className:"space-y-4",children:x?o.jsx(ln,{className:"h-24 w-full"}):T.length===0?o.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No pending applications."}):T.map(P=>o.jsx(gt,{"data-testid":`card-pending-${P.id}`,className:"border border-border",children:o.jsxs(xt,{className:"p-5 flex items-start justify-between gap-4",children:[o.jsxs("div",{className:"flex-1",children:[o.jsx("p",{className:"font-semibold","data-testid":`text-pending-name-${P.id}`,children:P.fullName}),o.jsx("p",{className:"text-sm text-muted-foreground",children:P.professionalTitle}),o.jsxs("div",{className:"flex flex-wrap gap-2 mt-2",children:[o.jsxs("span",{className:"text-xs text-muted-foreground",children:[P.city,", ",P.country]}),P.licenseNumber&&o.jsxs(Rt,{variant:"outline",className:"text-xs",children:["License: ",P.licenseNumber]}),P.issuingAuthority&&o.jsx(Rt,{variant:"outline",className:"text-xs",children:P.issuingAuthority}),o.jsx(Rt,{variant:"secondary",className:"text-xs",children:P.iceeftStatus})]})]}),o.jsxs("div",{className:"flex gap-2 shrink-0",children:[o.jsxs(Ae,{size:"sm",variant:"outline",className:"gap-1 border-destructive text-destructive-on hover:bg-destructive hover:text-destructive-foreground",onClick:()=>L(P.id,"rejected"),disabled:C.isPending,"data-testid":`button-reject-${P.id}`,children:[o.jsx(cl,{className:"h-3.5 w-3.5"})," Reject"]}),o.jsxs(Ae,{size:"sm",className:"gap-1",onClick:()=>L(P.id,"approved"),disabled:C.isPending,"data-testid":`button-approve-${P.id}`,children:[o.jsx(Tu,{className:"h-3.5 w-3.5"})," Approve"]})]})]})},P.id))}),o.jsxs(mi,{value:"events",className:"space-y-4",children:[o.jsx("div",{className:"flex justify-end mb-4",children:o.jsx(sP,{})}),M.length===0?o.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No events yet."}):M.map(P=>o.jsx(gt,{"data-testid":`card-admin-event-${P.id}`,className:"border border-border",children:o.jsxs(xt,{className:"p-5 flex items-center justify-between gap-4",children:[o.jsxs("div",{children:[o.jsx("p",{className:"font-semibold",children:P.title}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[fu(hu(P.startDate),"MMM d")," â ",fu(hu(P.endD
53ate),"MMM d, yyyy")," · ",P.trainerName]}),o.jsxs("div",{className:"flex gap-2 mt-1.5",children:[o.jsx(Rt,{variant:"outline",className:"text-xs",children:P.level}),o.jsx(Rt,{variant:"secondary",className:"text-xs",children:P.language})]})]}),o.jsxs("div",{className:"flex gap-1 shrink-0",children:[o.jsx(iP,{event:P}),o.jsx(Ae,{size:"sm",variant:"ghost",className:"text-destructive-on hover:bg-destructive/10",onClick:()=>z(P.id),"data-testid":`button-delete-event-${P.id}`,children:o.jsx(vb,{className:"h-4 w-4"})})]})]})},P.id))]}),o.jsxs(mi,{value:"resources",className:"space-y-4",children:[o.jsx("div",{className:"flex justify-end mb-4",children:o.jsx(oP,{})}),F.length===0?o.jsx("div",{className:"text-center py-12 text-muted-foreground",children:"No resources yet."}):F.map(P=>o.jsx(gt,{"data-testid":`card-admin-resource-${P.id}`,className:"border border-border",children:o.jsxs(xt,{className:"p-5 flex items-center justify-between gap-4",children:[o.jsxs("div",{className:"flex-1 min-w-0",children:[o.jsx("p",{className:"font-semibold truncate",children:P.titleEn}),o.jsxs("p",{className:"text-sm text-muted-foreground",children:[P.type," · ",P.audience," · ",P.language]})]}),o.jsxs("div",{className:"flex gap-1 shrink-0",children:[o.jsx(lP,{resource:P}),o.jsx(Ae,{size:"sm",variant:"ghost",className:"text-destructive-on hover:bg-destructive/10",onClick:()=>S.mutate(P.id),disabled:S.isPending,"data-testid":`button-delete-resource-${P.id}`,children:o.jsx(vb,{className:"h-4 w-4"})})]})]})},P.id))]}),o.jsx(mi,{value:"users",children:o.jsx(cP,{})}),o.jsx(mi,{value:"messages",children:o.jsx(eP,{})})]})]})]})}function dP(){const{isAuthenticated:e,isLoading:n,login:r}=fl(),[,s]=Su(),{t:l}=Ot();return v.useEffect(()=>{!n&&e&&s("/")},[e,n,s]),n?null:o.jsx("div",{className:"flex flex-col flex-1 items-center justify-center py-24 bg-background",children:o.jsxs("div",{className:"w-full max-w-sm text-center px-4",children:[o.jsx("div",{className:"h-20 w-20 rounded-full bg-primary/10 flex items-center justify-center mx-auto mb-8",children:o.jsx(gb,{className:"h-10 w-10 text-primary-on"})}),o.jsx("h1",{className:"font-serif text-3xl font-bold mb-3",children:l("login.title_full")}),o.jsx("p",{className:"text-muted-foreground mb-8 leading-relaxed",children:l("login.desc")}),o.jsxs(Ae,{size:"lg",className:"w-full rounded-full text-base gap-2",onClick:r,"data-testid":"button-login",children:[o.jsx(gb,{className:"h-5 w-5"}),l("login.cta")]}),o.jsx("p",{className:"text-xs text-muted-foreground mt-6",children:l("login.privacy")})]})})}const _S="/".replace(/\/$/,"");async function fP(){const e=await fetch(`${_S}/api/my-profile`,{credentials:"include"});if(e.status===404)return null;if(!e.ok)throw new Error("Failed to load profile");return e.json()}async function hP(e){const n=await fetch(`${_S}/api/my-profile`,{method:"PATCH",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!n.ok){const r=await n.json().catch(()=>({}));throw new Error(r.error||"Failed to update profile")}return n.json()}function mP({status:e,lang:n}){return e==="approved"?o.jsxs(Rt,{className:"gap-1.5 bg-status-ok/10 text-status-ok-on border-status-ok/20",children:[o.jsx(pA,{className:"h-3.5 w-3.5"}),n==="ar"?"Ù
عتÙ
د":"Approved"]}):e==="pending"?o.jsxs(Rt,{className:"gap-1.5 bg-status-warn/10 text-status-warn-on border-status-warn/20",children:[o.jsx(Aw,{className:"h-3.5 w-3.5"}),n==="ar"?"ÙÙØ¯ اÙÙ
راجعة":"Pending Review"]}):o.jsxs(Rt,{className:"gap-1.5 bg-status-error/10 text-status-error-on border-status-error/20",children:[o.jsx(xA,{className:"h-3.5 w-3.5"}),n==="ar"?"Ù
رÙÙØ¶":"Rejected"]})}function pP({profile:e,onCancel:n}){const{toast:r}=_a(),s=wa(),{language:l}=Ot(),u=l==="ar",[f,h]=v.useState({fullName:e.fullName,professionalTitle:e.professionalTitle,licenseNumber:e.licenseNumber??"",issuingAuthority:e.issuingAuthority??"",iceeftStatus:e.iceeftStatus,country:e.country,city:e.city,practiceFormat:e.practiceFormat,bio:e.bio??"",contactEmail:e.contactEmail??"",contactPhone:e.contactPhone??"",websiteUrl:e.websiteUrl??""}),p=ja({mutationFn:hP,onSuccess:()=>{r({title:u?"تÙ
ØªØØ¯ÙØ« اÙÙ
ÙÙ Ø§ÙØ´Ø®ØµÙ":"Profile updated"}),s.invalidateQueries({queryKey:["my-profile"]}),n()},onError:y=>{r({title:y.message,variant:"destructive"})}}),g=y=>x=>h(w=>({...w,[y]:x.target.value}));return o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[o.jsxs("div",{children:[o.jsx(Oe,{children:u?"Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù":"Full Name"}),o.jsx(Ve,{value:f.fullName,onChange:g("fullName")}
53)]}),o.jsxs("div",{children:[o.jsx(Oe,{children:u?"اÙÙÙØ¨ اÙÙ
ÙÙÙ":"Professional Title"}),o.jsx(Ve,{value:f.professionalTitle,onChange:g("professionalTitle")})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:u?"رÙÙ
Ø§ÙØªØ±Ø®Ùص":"License Number"}),o.jsx(Ve,{value:f.licenseNumber,onChange:g("licenseNumber")})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:u?"Ø¬ÙØ© Ø§ÙØ¥ØµØ¯Ø§Ø±":"Issuing Authority"}),o.jsx(Ve,{value:f.issuingAuthority,onChange:g("issuingAuthority")})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:u?"Ø§ÙØ¯ÙÙØ©":"Country"}),o.jsx(Ve,{value:f.country,onChange:g("country")})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:u?"اÙÙ
دÙÙØ©":"City"}),o.jsx(Ve,{value:f.city,onChange:g("city")})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:u?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ ÙÙØªÙاصÙ":"Contact Email"}),o.jsx(Ve,{type:"email",value:f.contactEmail,onChange:g("contactEmail")})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:u?"رÙÙ
اÙÙØ§ØªÙ":"Phone"}),o.jsx(Ve,{value:f.contactPhone,onChange:g("contactPhone")})]}),o.jsxs("div",{className:"md:col-span-2",children:[o.jsx(Oe,{children:u?"اÙÙ
ÙÙØ¹ Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"Website URL"}),o.jsx(Ve,{value:f.websiteUrl,onChange:g("websiteUrl"),placeholder:"https://"})]})]}),o.jsxs("div",{children:[o.jsx(Oe,{children:u?"ÙØ¨Ø°Ø© Ù
ÙÙÙØ©":"Bio"}),o.jsx(Di,{value:f.bio,onChange:g("bio"),rows:4})]}),o.jsxs("div",{className:"flex gap-3",children:[o.jsx(Ae,{onClick:()=>p.mutate(f),disabled:p.isPending,"data-testid":"button-save-profile",children:p.isPending?u?"Ø¬Ø§Ø±Ù Ø§ÙØÙØ¸...":"Saving...":u?"ØÙظ Ø§ÙØªØºÙÙØ±Ø§Øª":"Save Changes"}),o.jsx(Ae,{variant:"outline",onClick:n,disabled:p.isPending,children:u?"Ø¥ÙØºØ§Ø¡":"Cancel"})]})]})}function gP(){const{isAuthenticated:e,isLoading:n,login:r}=fl(),{language:s}=Ot(),l=s==="ar",[u,f]=v.useState(!1),{data:h,isLoading:p,error:g}=$a({queryKey:["my-profile"],queryFn:fP,enabled:e});if(n||e&&p)return o.jsxs("div",{className:"container mx-auto px-4 py-16 max-w-2xl space-y-4",children:[o.jsx(ln,{className:"h-10 w-48"}),o.jsx(ln,{className:"h-32 w-full"}),o.jsx(ln,{className:"h-32 w-full"})]});if(!e)return o.jsxs("div",{className:"container mx-auto px-4 py-24 text-center",children:[o.jsx(im,{className:"h-12 w-12 mx-auto text-muted-foreground mb-4"}),o.jsx("p",{className:"text-muted-foreground mb-4",children:l?"ÙØ±Ø¬Ù تسجÙÙ Ø§ÙØ¯Ø®ÙÙ ÙÙÙØµÙ٠إÙÙ Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ.":"Please sign in to view your profile."}),o.jsx(Ae,{onClick:r,children:l?"تسجÙÙ Ø§ÙØ¯Ø®ÙÙ":"Sign In"})]});if(g||h===null)return o.jsx("div",{className:"container mx-auto px-4 py-16 max-w-2xl",children:o.jsxs("div",{className:"text-center py-16",children:[o.jsx(im,{className:"h-12 w-12 mx-auto text-muted-foreground mb-4"}),o.jsx("h2",{className:"text-xl font-semibold mb-2",children:l?"ÙØ§ ÙÙØ¬Ø¯ Ù
Ù٠شخص٠بعد":"No Profile Yet"}),o.jsx("p",{className:"text-muted-foreground mb-6",children:l?"ÙÙ
ØªÙØ¯Ù
Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ بعد Ù٠دÙÙ٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ.":"You haven't submitted a therapist profile yet."}),o.jsx(Ie,{href:"/join-directory",children:o.jsx(Ae,{children:l?"Ø§ÙØ¶Ù
Ø¥ÙÙ Ø§ÙØ¯ÙÙÙ":"Join the Directory"})})]})});const y=h.verificationStatus!=="approved";return o.jsxs("div",{className:"flex flex-col w-full",children:[o.jsx("section",{className:"py-12 bg-card border-b border-border",children:o.jsx("div",{className:"container mx-auto px-4 max-w-3xl",children:o.jsxs("div",{className:"flex items-start justify-between gap-4 flex-wrap",children:[o.jsxs("div",{children:[o.jsx("h1",{className:"font-serif text-3xl font-bold mb-1",children:l?"Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ":"My Profile"}),o.jsx("p",{className:"text-muted-foreground",children:l?"عرض ÙØªØ¹Ø¯ÙÙ Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ Ù٠دÙÙ٠اÙÙ
Ø¹Ø§ÙØ¬ÙÙ.":"View and manage your therapist directory listing."})]}),o.jsx(mP,{status:h.verificationStatus,lang:s})]})})}),o.jsxs("div",{className:"container mx-auto px-4 py-8 max-w-3xl space-y-6",children:[h.verificationStatus==="pending"&&o.jsx("div",{className:"rounded-lg border border-status-warn/20 bg-status-warn/10 p-4 text-sm text-status-warn-on",children:l?"Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ ÙÙØ¯ اÙÙ
راجعة. Ø³ÙØªÙاص٠Ù
Ø¹Ù ÙØ±ÙباÙ.":"Your profile is under review. We'll be in touch shortly."}),h.verificationStatus==="rejected"&&o.jsx("div",{className:"rounded-lg border border-status-error/20 bg-status-error/10 p-4 text-sm text-status-error-on",children:l?"ÙÙ
ÙØªÙ
ÙØ¨ÙÙ Ø·ÙØ¨Ù. ÙÙ
ÙÙ٠تعدÙÙ Ù
ÙÙÙ ÙØ¥Ø¹Ø§Ø¯Ø© ØªÙØ¯ÙÙ
Ù.":"Your application was not approved. You can edit and resubmit."}),h.verificationStatus==="approved"&&o.jsx("div",{className:"rounded-lg border border-status-ok/20 bg-status-ok/10 p-4 text-sm text-status-ok-on",children:l?"Ù
ÙÙÙ Ø§ÙØ´Ø®ØµÙ Ù
عتÙ
د ÙØ¸Ø§Ùر ÙÙ Ø§ÙØ¯ÙÙÙ. ÙÙØªØ¹Ø¯ÙÙ ØªÙØ§ØµÙ Ù
ع Ø§ÙØ¥Ø¯Ø§Ø±Ø©.":"Your profile is approved and visible in the directory. Contact admin to make changes."}),o.jsxs(gt,{children:[o.jsxs(f_,{className:"flex flex-row items-center justify-between pb-3",children:[o.jsx(h_,{className:"text-lg",children:l?"اÙÙ
عÙÙÙ
ات Ø§ÙØ´Ø®ØµÙØ©":"Profile Information"}),y&&!u&&o.jsxs(Ae,{variant:"outline",size:"sm",onClick:()=>f(!0),"data-testid":"button-edit-profile",children:[o.jsx(Xm,{className:"h-4 w-4 me-1.5"}),l?"تعدÙÙ":"Edit"]})]}),o.jsx(xt,{children:u?o.jsx(pP,{profile:h,onCancel:()=>f(!1)}):o.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-x-8 gap-y-4 text-sm",children:[o.jsx(ga,{label:l?"Ø§ÙØ§Ø³Ù
اÙÙØ§Ù
Ù":"Full Name",value:h.fullName}),o.jsx(ga,{label:l?"اÙÙÙØ¨ اÙÙ
ÙÙÙ":"Title",value:h.professionalTitle}),o.jsx(ga,{label:l?"ØØ§ÙØ© ICEEFT":"ICEEFT Status",value:h.iceeftStatus}
53),o.jsx(ga,{label:l?"Ø§ÙØ¯ÙÙØ© / اÙÙ
دÙÙØ©":"Country / City",value:`${h.city}, ${h.country}`}),o.jsx(ga,{label:l?"أسÙÙØ¨ اÙÙ
Ù
ارسة":"Practice Format",value:h.practiceFormat}),h.licenseNumber&&o.jsx(ga,{label:l?"رÙÙ
Ø§ÙØªØ±Ø®Ùص":"License",value:h.licenseNumber}),h.issuingAuthority&&o.jsx(ga,{label:l?"Ø¬ÙØ© Ø§ÙØ¥ØµØ¯Ø§Ø±":"Authority",value:h.issuingAuthority}),h.contactEmail&&o.jsx(ga,{label:l?"Ø§ÙØ¨Ø±Ùد Ø§ÙØ¥ÙÙØªØ±ÙÙÙ":"Email",value:h.contactEmail}),h.contactPhone&&o.jsx(ga,{label:l?"اÙÙØ§ØªÙ":"Phone",value:h.contactPhone}),h.websiteUrl&&o.jsx(ga,{label:l?"اÙÙ
ÙÙØ¹":"Website",value:h.websiteUrl}),h.bio&&o.jsxs("div",{className:"md:col-span-2",children:[o.jsx("p",{className:"text-muted-foreground text-xs mb-1",children:l?"اÙÙØ¨Ø°Ø© اÙÙ
ÙÙÙØ©":"Bio"}),o.jsx("p",{className:"leading-relaxed",children:h.bio})]}),h.modalities.length>0&&o.jsxs("div",{className:"md:col-span-2",children:[o.jsx("p",{className:"text-muted-foreground text-xs mb-2",children:l?"Ø§ÙØªØ®ØµØµØ§Øª":"Modalities"}),o.jsx("div",{className:"flex flex-wrap gap-2",children:h.modalities.map(x=>o.jsx(Rt,{variant:"secondary",children:x},x))})]}),h.languages.length>0&&o.jsxs("div",{className:"md:col-span-2",children:[o.jsx("p",{className:"text-muted-foreground text-xs mb-2",children:l?"اÙÙØºØ§Øª":"Languages"}),o.jsx("div",{className:"flex flex-wrap gap-2",children:h.languages.map(x=>o.jsx(Rt,{variant:"outline",children:x},x))})]})]})})]})]})]})}function ga({label:e,value:n}){return o.jsxs("div",{children:[o.jsx("p",{className:"text-muted-foreground text-xs mb-0.5",children:e}),o.jsx("p",{className:"font-medium",children:n})]})}const yP=new PT;function vP(){return o.jsx(N4,{children:o.jsxs(hT,{children:[o.jsx(Ut,{path:"/",component:R4}),o.jsx(Ut,{path:"/about-eft/couples",component:M4}),o.jsx(Ut,{path:"/about-eft/individuals",component:k4}),o.jsx(Ut,{path:"/about-eft/families",component:D4}),o.jsx(Ut,{path:"/about-eft",component:O4}),o.jsx(Ut,{path:"/get-help",component:e3}),o.jsx(Ut,{path:"/find-therapist/:id",component:GF}),o.jsx(Ut,{path:"/find-therapist",component:BF}),o.jsx(Ut,{path:"/training",component:m6}),o.jsx(Ut,{path:"/certification",component:p6}),o.jsx(Ut,{path:"/resources",component:b6}),o.jsx(Ut,{path:"/research",component:_6}),o.jsx(Ut,{path:"/about",component:E6}),o.jsx(Ut,{path:"/contact",component:R6}),o.jsx(Ut,{path:"/join-directory",component:GL}),o.jsx(Ut,{path:"/my-profile",component:gP}),o.jsx(Ut,{path:"/admin",component:uP}),o.jsx(Ut,{path:"/login",component:dP}),o.jsx(Ut,{component:A4})]})})}function xP(){return o.jsx(zT,{client:yP,children:o.jsxs(kM,{children:[o.jsx(FM,{children:o.jsx(B0,{base:"/".replace(/\/$/,""),children:o.jsx(vP,{})})}),o.jsx(eO,{})]})})}GC.createRoot(document.getElementById("root")).render(o.jsx(xP,{}));
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.